(function(w){var f=window.AmazonUIPageJS||window.P,r=f._namespace||f.attributeErrors,d=r?r("NavSharedAssets",""):f;d.guardFatal?d.guardFatal(w)(d,window):d.execute(function(){w(d,window)})})(function(w,f,r){(function(d){if(!d.$Nav||d.$Nav._replay){document.createElement("header");var a=function(){this.data={}},b=function(a){b.manager.add(a)};a.arrayAdder=function(a){return function(){this.data[a]=(this.data[a]||[]).concat([].slice.call(arguments));return this}};a.prototype={build:function(a,c){this.data.name=
a;this.data.value=c;this.data.immediate=!1;this.data.process=!0;b.manager.add(this.data)},run:function(a,c){c&&(this.data.name=a);this.data.value=c||a;this.data.process=!0;b.manager.add(this.data)},publish:function(a,c){this.data.name=a;this.data.value=c;b.manager.publish(this.data)},declare:function(a,c){this.data.name=a;this.data.value=c;b.manager.add(this.data)},when:a.arrayAdder("when"),iff:a.arrayAdder("iff"),filter:a.arrayAdder("filter"),observe:a.arrayAdder("observe")};var g=function(c){b[c]=
function(){var b=new a;return b[c].apply(b,arguments)}};for(c in a.prototype)a.prototype.hasOwnProperty(c)&&g(c);b.make=function(){return b};b.getNow=function(a,c){return b.manager.get(a,c)};b.stats=function(a){return b.manager.stats(a)};b.importEvent=function(a,c){c=c||{};c.name=a;b.manager.importEvent(c)};b.manager={pending:[],add:function(a){this.pending.push({m:"add",data:a})},publish:function(a){this.pending.push({m:"publish",data:a})},importEvent:function(a){this.pending.push({m:"importEvent",
data:a})},get:function(a,c){return c},stats:function(){return{}}};if(d.$Nav&&d.$Nav.make&&d.$Nav.make._shims){g=function(c){for(var e=new a,g=0;g<c.length;g++){var d=c[g];if("importEvent"===d.m){c=d.a[1]||{};c.name=d.a[0];b.manager.importEvent(c);break}else if(!e[d.m])break;e[d.m].apply(e,d.a)}};var c=d.$Nav.make._shims;for(var e=0;e<c.length;e++){for(var f=0;f<c[e]._replay.length;f++)g(c[e]._replay[f]);for(var h in c[e])c[e].hasOwnProperty(h)&&b.hasOwnProperty(h)&&(c[e][h]=b[h])}}d.$Nav=b}})(f);
(function(d,a,b,g){if((a=d.$Nav)&&a.manager&&a.manager.pending){var c=b.now||function(){return+new b},e=function(a){return"function"===typeof a},f="object"===typeof d.P&&"function"===typeof d.P.when&&"function"===typeof d.P.register&&"function"===typeof d.P.execute,h="object"===typeof d.AmazonUIPageJS&&"function"===typeof d.AmazonUIPageJS.when&&"function"===typeof d.AmazonUIPageJS.register&&"function"===typeof d.AmazonUIPageJS.execute,k=function(a,c){c=c||{};var b=c.start||50,e=function(){b<=(c.max||
2E4)&&!a()&&(setTimeout(e,b),b*=c.factor||2)};return e},p=function(a,c){if(1===arguments.length&&"string"===typeof a)p({message:"rcx-nav: "+a});else if(d.console&&d.console.error&&d.console.error(a,c),d.ueLogError)d.ueLogError(a,c);else throw a;},m=function(a,c){try{return a()}catch(B){"object"===typeof c&&(c.message=c.message||B.message,c.message="rcx-nav: "+c.message),p(B,c)}},A=function(){function a(){return setTimeout(b,0)}function b(){for(var b=a(),d=c();e.length;)if(e.shift()(),50<c()-d)return;
clearTimeout(b);g=!1}var e=[],g=!1;try{/OS 6_[0-9]+ like Mac OS X/i.test(navigator.userAgent)&&d.addEventListener&&d.addEventListener("scroll",a,!1)}catch(G){}return function(c){e.push(c);g||(a(),g=!0)}}(),n=function(){var a={};return{run:function(c){if(a[c]instanceof Array)for(var b=0;b<a[c].length;b++)a[c][b]();a[c]=!0},add:function(c,b){for(var e=1,g=function(){0>=--e&&A(b)},d=c.length;d--;)!0!==a[c[d]]&&((a[c[d]]=a[c[d]]||[]).push(g),e++);g()}}},t=function(a){a=a||{};this.context=a.context||d;
this.once=a.once||!1;this.async=a.async||!1;this.observers=[];this.notifyCount=0;this.notifyArgs=[]};t.prototype={notify:function(){this.notifyCount++;if(!(this.once&&1<this.notifyCount)){this.notifyArgs=[].slice.call(arguments);for(var a=0;a<this.observers.length;a++)this._run(this.observers[a])}},observe:function(a){if(e(a))if(this.once&&this.isNotified())this._run(a);else return this.observers.push(a),this.observers.length-1},remove:function(a){return-1<a&&a<this.observers.length?(this.observers[a]=
function(){},!0):!1},boundObserve:function(){var a=this;return function(){a.observe.apply(a,arguments)}},isNotified:function(){return 0<this.notifyCount},_run:function(a){var c=this.notifyArgs,b=this.context;this.async?A(function(){a.apply(b,c)}):a.apply(b,c)}};var z=function(){var a={},b=0,l={},z=n(),p={},u=function(a){this.data={name:"nav:"+b++,group:"rcx-nav",value:null,result:null,immediate:!0,process:!1,override:!1,resolved:!1,watched:!1,context:l,when:[],iff:[],filter:[],observe:[],stats:{defined:c(),
resolved:-1,buildStarted:-1,buildCompleted:-1,callCount:0,executionTime:0}};for(var e in a)a.hasOwnProperty(e)&&(this.data[e]=a[e]);-1<this.data.name.indexOf("]")&&(a=this.data.name.split("]"),2===a.length&&1<a[0].length&&0<a[1].length&&(this.data.name=a[1],this.data.group=a[0].replace("[","")))};u.prototype={getDependencyNames:function(){for(var a=[].concat(this.data.when,this.data.filter),c=0;c<this.data.iff.length;c++)"string"===typeof this.data.iff[c]?a.push(this.data.iff[c]):this.data.iff[c].name&&
a.push(this.data.iff[c].name);return a},checkIff:function(c){c=function(c){c="string"===typeof c?{name:c}:c;var b=a[c.name];if(!b||!b.data.resolved)return!1;b=b.getResult();b=c.prop&&b?b[c.prop]:b;var e=c.value||!0;switch(c.op||"truthy"){case "truthy":return!!b;case "falsey":return!b;case "eq":return b===e;case "ne":return b!==e;case "gt":return b>e;case "lt":return b<e;case "gte":return b>=e;case "lte":return b<=e}return!1};for(var b=0;b<this.data.iff.length;b++)if(!c(this.data.iff[b]))return!1;
return!0},watchModule:function(c){var b=this;p[c]||(p[c]=new t);p[c].observe(function(){var a=b.getResult();if(e(a))return a.apply(b.data.context,arguments)});a[c]&&a[c].applyObserverWrapper()},applyObserverWrapper:function(){var a=this;if(p[this.data.name]&&!this.data.watched&&this.data.resolved&&this.data.result){if(e(this.data.result)){var c=this.data.result;this.data.result=function(){var b=c.apply(a.data.context,arguments);p[a.data.name].notify(b)};for(var b in c)c.hasOwnProperty(b)&&(this.data.result[b]=
c[b])}this.data.watched=!0}},applyFilterWrapper:function(){var c=this;if(0!==this.data.filter.length&&e(this.data.result)){for(var b=[],g=[],d=0;d<this.data.filter.length;d++)if(a.hasOwnProperty(this.data.filter[d])){var f=a[this.data.filter[d]].getResult();e(f.request)&&b.push(f.request);e(f.response)&&g.push(f.response)}var h=function(a,b){for(var e=0;e<a.length;e++)if(b=a[e].call(c.data.context,b),!1===b)return!1;return b},y=this.data.result;this.data.result=function(a){if(!1!==(a=h(b,a))&&(a=
y.call(l,a),!1!==(a=h(g,a))))return a}}},execute:function(){if(this.checkIff()){for(var a=0;a<this.data.observe.length;a++)this.watchModule(this.data.observe[a]);z.run(this.data.name);this.data.resolved=!0;this.data.stats.resolved=c();this.data.immediate&&this.getResult()}},getResult:function(){var b=this,g=c();this.data.stats.callCount++;if(null!==this.data.result||!this.data.resolved)return this.data.result;this.data.stats.buildStarted=c();if(this.data.process){for(var d=[],f=0;f<this.data.when.length;f++)d.push(a.hasOwnProperty(this.data.when[f])?
a[this.data.when[f]].getResult():null);var h=this.data.group+":"+this.data.name;if("string"===typeof this.data.value){var l=this.data.when;for(f=0;f<l.length;f++){var y=l[f].indexOf(".");-1<y&&y<l[f].length&&(l[f]=l[f].substr(y+1));l[f]=l[f].replace(/[^0-9a-zA-Z_$]/g,"");l[f].length||(l[f]=String.fromCharCode(97+f))}this.data.value=m(new Function("return function ("+l.join(", ")+") { "+this.data.value+"};"),{attribution:h,logLevel:"ERROR",message:"$Nav module eval failed: "+h})}e(this.data.value)&&
(this.data.result=m(function(){return b.data.value.apply(b.data.context,d)},{attribution:h,logLevel:"ERROR",message:"$Nav module execution failed: "+h}))}else this.data.result=this.data.value;this.applyFilterWrapper();this.applyObserverWrapper();this.data.stats.buildCompleted=c();this.data.stats.executionTime+=c()-g;return this.data.result}};return{add:function(c){if(!a.hasOwnProperty(c.name)||c.override){var b=new u(c);a[b.data.name]=b;c=function(){b.execute()};var e=b.getDependencyNames();0===e.length?
A(c):z.add(e,c)}},publish:function(a){this.add(a);f?g.register(a.name,function(){return a.value}):h&&d.AmazonUIPageJS.register(a.name,function(){return a.value});d.amznJQ&&d.amznJQ.declareAvailable(a.name)},importEvent:function(a){var c=this;a=a||{};f&&g.when(a.name).execute("importEvent",function(b){b=void 0===b||null===b?a.otherwise:b;c.add({name:a.as||a.name,value:b})});if(d.amznJQ)d.amznJQ[a.useOnCompletion?"onCompletion":"available"](a.amznJQ||a.name,k(function(){if(a.global){var b=d;for(var e=
(a.global||"").split("."),g=0,f=e.length;g<f;g++)b&&e[g]&&(b=b[e[g]])}else b=a.otherwise;if(a.retry&&(void 0===b||null===b))return!1;c.add({name:a.as||a.name,value:b});return!0}))},get:function(c,b){return a[c]&&a[c].data.resolved?a[c].getResult():b},stats:function(c){var b={},e;for(e in a)if(a.hasOwnProperty(e)&&(!c||!a[e].data.resolved)){b[e]=a[e].data;b[e].blocked=[];for(var g=a[e].getDependencyNames(),d=0;d<g.length;d++)a[g[d]]&&a[g[d]].data.resolved||b[e].blocked.push(g[d])}return b}}}();if(a&&
a.manager&&a.manager.pending)for(var u=0;u<a.manager.pending.length;u++)z[a.manager.pending[u].m](a.manager.pending[u].data);a.manager=z;a.declare("now",c);a.declare("async",A);a.declare("eventGraph",n);a.declare("logError",function(a,c){c="rcx-nav: "+(c||"");a&&a.message?a.message=c+a.message:"object"===typeof a?a.message=c:a={message:c+a};d.console&&d.console.error&&d.console.error(a);if(d.ueLogError)d.ueLogError(a);else throw a;});a.declare("logUeError",p);a.declare("Observer",t);a.declare("isAuiP",
f);a.declare("isAuiPJS",h)}})(f,document,Date,w);(function(d){d.build("$F",function(){function a(a,c){this.up=a;this.action=c}function b(b){return function(){var c=[].slice.call(arguments);return new a(this,function(a){return b.apply(this,[a].concat(c))})}}a.prototype.noOp=function(){};a.prototype.on=function(a){a="function"===typeof a?a:function(){return a};return this.up?this.up.on(this.action(a)):a};a.prototype.run=function(a){return this.on(a)()};a.prototype.bind=b(function(a,c){return function(){return a.apply(c,
arguments)}});a.prototype.memoize=b(function(a){var c,b=!1;return function(){b||(b=!0,c=a.apply(this,arguments),a=null);return c}});a.prototype.once=b(function(a){var c=!1;return function(){if(!c){c=!0;var b=a.apply(this,arguments);a=null;return b}}});a.prototype.debounce=b(function(a,c,b){var e;return function(){var g,d=arguments,f=this;b&&!e&&(g=a.apply(f,d));e&&clearTimeout(e);e=setTimeout(function(){e=null;b||a.apply(f,d)},c);return g}});a.prototype.after=b(function(a,b,e){return function(){(e&&
0<b||!e&&0>=b)&&a();b--}});a.prototype.delay=b(function(a,b){var c=void 0===b?0:b;return function(){return setTimeout(a,c)}});a.prototype.partial=b(function(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(this,b.concat([].slice.call(arguments)))}});a.prototype.rpartial=b(function(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(this,[].slice.call(arguments).concat(b))}});a.prototype.throttle=b(function(a,b){function c(){g?(g=!1,setTimeout(c,
b),a()):d=!1}var d=!1,g=!1;return function(){d?g=!0:(d=!0,setTimeout(c,b),a())}});a.prototype.iff=b(function(a,b){return"function"===typeof b?function(){if(b())return a.apply(this,arguments)}:b?a:this.noOp});a.prototype.tap=b(function(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){b.apply(this,c.concat([].slice.call(arguments)));return a.apply(this,arguments)}});return new a})})(f.$Nav);(function(d){d.when("$","now","async","Observer","debugStream","debug.param").build("data",
function(a,b,d,c,e,f){var g={},l=f.value("navDisableDataKey"),p={},m=null,A=null,n=new c({async:!0}),t=function(){e("Data Batch",p);n.notify(p);m=A=null;for(var a in p)p.hasOwnProperty(a)&&(g[a]=p[a]);p={}};c=function(c){l&&l in c&&delete c[l];e("Data Added",c);p=a.extend(p,c);A&&clearTimeout(A);m||(m=b());50<m-b()?t():A=setTimeout(t,10);return c};c.get=function(a){return g[a]};c.getCache=function(){return g};c.observe=function(a,b,c){var f=-1;b&&"function"===typeof b?(f=n.observe(function(c){a in
c&&(e("Data Observed",{name:a,data:c[a]}),b(c[a]))}),!c&&a in g&&d(function(){b(g[a])})):f=n.observe(a);return f};c.remove=function(a){return n.remove(a)};return c})})(f.$Nav);(function(d){d.when("log").build("metrics",function(a){return new function(){var b=this;this.count=function(b,c){if(f.ue&&f.ue.count){var e=f.ue.count(b);e||(e=0);c=e+c;f.ue.count(b,c);a("Nav-Metrics: Incremented "+b+" to "+c);return c}a("Nav-Metrics: UE not setup. Unable to send Metrics")};this.increment=function(a){return b.count(a,
1)};this.decrement=function(a){return b.count(a,-1)}}});d.build("managerStats",function(){return function(){var a={totalCallCount:0,totalExecutionTime:0},b=d.stats(),f;for(f in b)if(b.hasOwnProperty(f)){var c=b[f].stats;a.totalCallCount+=c.callCount;a.totalExecutionTime+=c.executionTime}return a}});d.when("metrics","managerStats","config","sharedconstants","page.ATF").run("jsMetrics.ATF",function(a,b,d,c){b=b();a.count(c.TIME_UP_TO+"ATF:"+d.navDeviceType,b.totalExecutionTime)});d.when("metrics","managerStats",
"config","sharedconstants","page.CF").run("jsMetrics.CF",function(a,b,d,c){b=b();a.count(c.TIME_UP_TO+"CF:"+d.navDeviceType,b.totalExecutionTime)});d.when("metrics","managerStats","config","sharedconstants","page.loaded").run("jsMetrics.PageLoaded",function(a,b,d,c){b=b();d=d.navDeviceType;a.count(c.TIME_UP_TO+"PageLoaded:"+d,b.totalExecutionTime);a.count(c.TOTAL_CALL_COUNT+"PageLoaded:"+d,b.totalCallCount)});d.when("metrics","config","sharedconstants","page.loaded").run("jsMetrics.collector",function(a,
b,d){var c=f.navmet;if(c!==r&&c.length!==r&&(b=b.navDeviceType,f.ue_t0!==r)){var e={},g=[],h;for(h=0;h<c.length;++h){var k=c[h];e[k.key]!==r?(e[k.key].key=k.key,e[k.key].delta+=k.end-k.begin,e[k.key].completed=k.end-f.ue_t0,g[e[k.key].index]=r,e[k.key].index=h):e[k.key]={key:k.key,delta:k.end-k.begin,completed:k.end-f.ue_t0,index:h};g.push(k.key)}c.basic&&(a.count(d.CSM_LATENCY_V2+":network:D:"+b,c.basic.networkLatency),a.count(d.CSM_LATENCY_V2+":navFirstPaint:D:"+b,c.basic.navFirstPaint),a.count(d.CSM_LATENCY_V2+
":NavStart:C:"+b,c.basic.NavStart));for(h=0;h<g.length;++h)g[h]!==r&&(k=e[g[h]],a.count(d.CSM_LATENCY_V2+":"+k.key+":D:"+b,k.delta),a.count(d.CSM_LATENCY_V2+":"+k.key+":C:"+b,k.completed))}});d.when("metrics","sharedconstants","config").run("metrics.csm",function(a,b,d){if(d=d.navDeviceType){var c={UpNavBanner:{since:"ue_t0",by:"nav_t_upnav_begin"},BeginNav:{since:"ue_t0",by:"nav_t_begin_nav"},InlineCSS:{since:"ue_t0",by:"nav_t_after_inline_CSS"},PreloadJS:{since:"ue_t0",by:"nav_t_after_preload_JS"},
PreloadSprite:{since:"ue_t0",by:"nav_t_after_preload_sprite"},ANI:{since:"ue_t0",by:"nav_t_after_ANI"},Config:{since:"ue_t0",by:"nav_t_after_config_declaration"},NavBar:{since:"ue_t0",by:"nav_t_after_navbar"},SearchBar:{since:"ue_t0",by:"nav_t_after_searchbar"},EndNav:{since:"ue_t0",by:"nav_t_end_nav"}},e;for(e in c)if(c.hasOwnProperty(e)){var g=c[e];if(g){var h=f[g.by];g=f[g.since];h&&g&&a.count(b.CSM_LATENCY+":"+e+":"+d,h-g)}}}})})(f.$Nav);(function(d){d.when("$").build("agent",function(a){var b=
function(){var a=Array.prototype.slice.call(arguments,0);return(new RegExp("("+a.join("|")+")","i")).test(navigator.userAgent)},d=!!("ontouchstart"in f)||b("\\bTouch\\b")||0<f.navigator.msMaxTouchPoints,c={iPhone:b("iPhone"),iPad:b("iPad"),kindleFire:b("Kindle Fire","Silk/"),android:b("Android"),windowsPhone:b("Windows Phone"),webkit:b("WebKit"),ie11:b("Trident/7"),ie10:b("MSIE 10"),ie7:b("MSIE 7"),ie6:a.browser?a.browser.msie&&6>=parseInt(a.browser.version,10):b("MSIE 6"),opera:b("Opera"),firefox:b("Firefox"),
mac:b("Macintosh"),iOS:b("iPhone")||b("iPad")};c.ie=a.browser?a.browser.msie:c.ie11||b("MSIE");c.touch=c.iPhone||c.iPad||c.android||c.kindleFire||d;c.quirks=c.ie&&document&&"CSS1Compat"!==document.compatMode;return c})})(f.$Nav);f.$Nav.declare("sharedconstants",{ADVANCED_PREFIX:"aj:",TIME_UP_TO:"NavJS:TimeUpTo:",CSM_LATENCY:"NavJS:CSM:Latency",CSM_LATENCY_V2:"Nav:CSM:Latency",TOTAL_CALL_COUNT:"NavJS:TotalCallCount:",DWELLTIME_MIN:200});(function(d){d.build("util.addCssRule",function(){var a=null;
return function(b,d,c){if(!a){var e=document.getElementsByTagName("head")[0];if(!e)return;var f=document.createElement("style");f.appendChild(document.createTextNode(""));e.appendChild(f);a=f.sheet||{}}a.insertRule?a.insertRule(b+"{"+d+"}",c):a.addRule&&a.addRule(b,d,c)}})})(f.$Nav);(function(d){d.build("getRefTag",function(){return function(a){if(a){a=a.split("?");var b=a[0].split("/ref\x3d");if(b[1])return b[1];if(a=a[1])return a=a.split("\x26").reduce(function(a,b){b=b.split("\x3d");return a[b[0]]=
b[1],a},{}),a.ref_||a.ref}}})})(f.$Nav);(function(d){d.when("config").build("signInRedirect",function(a){return function(b,d,c){if(!a.isRecognized&&!a.isBackup){var e=a.signInUrlWithRefTag;if(e){b="ref_%3D".concat(b);e=e.replace(/ref_%3DnavSignInUrlRefTagPlaceHolder/g,b);c&&(e=e.concat("\x26ref_%3D",c));location.href=e;return}}location.href=d}})})(f.$Nav);(function(d){d.when("$").run("hamburgerIosScrollSpy",function(a){var b;return{touchStartHandler:function(a){if(!a)return!1;b=a.touches[0].clientY},
touchMoveHandler:function(d){if(!d||!b)return!1;var c=d.touches[0].clientY;var e=a(".hmenu.hmenu-visible");var f=e[0].scrollHeight;var g=e.scrollTop();e=e.outerHeight();c<b&&f-g<=e&&(b=r,d.cancelable&&d.preventDefault());c>b&&0>=g&&(b=r,d.cancelable&&d.preventDefault())},preventCurrentEvent:function(a){a.preventDefault()}}})})(f.$Nav);(function(d){d.when("$","metrics","getRefTag").build("bindFlyoutAnchorReftagMetrics",function(a,b,d){return function(c,e,f,g,k){0!==c.length&&c.each(function(){var c=
a(this),h=d(c.attr("href"));if(h){var l="Nav:"+e+"Flyout:"+k;f&&b.increment(l+"Impression:"+h);g&&c.click(function(){b.increment(l+"Click:"+h)})}})}})})(f.$Nav);(function(d){d.declare("util.getQueryString",function(){return f.location&&f.location.search?f.location.search:r});d.when("config","util.getQueryString").build("util.getQueryStringForHMenuAjax",function(a,b){return function(){return a.hasOwnProperty("isHMenuBrowserCacheDisable")&&!a.isHMenuBrowserCacheDisable?r:b()}})})(f.$Nav);(function(d,
a){d.when("jQuery","hamburgerMenuInteractionJS","util.ajax","config","metrics","util.getQueryStringForHMenuAjax").build("HamburgerMenuFirstLayerAJAXCall",function(a,d,c,e,l,h){return function(b,g){function k(a){return"".concat(n?"navm":"nav",a)}function p(){a("#nav-hamburger-menu").attr("href","/gp/site-directory?ref\x3d".concat(k("_em_ajax_fail")))}var n="mobile"===b.toLowerCase(),t={attribution:"AmazonNavigationCards",logLevel:"ERROR"};l.increment("".concat(n?"Navm":"Nav",":Hmenu:FirstLayerAjax"));
var z=Date.now(),u={ajaxTemplate:n?"hMenuFirstLayer":"hMenuDesktopFirstLayer",pageType:f.ue_pty?f.ue_pty:"NavUnknownPageType",hmDataAjaxHint:1,isFreshRegion:e.isFreshRegion,isFreshCustomer:n?e.isFreshCustomer:e.navfresh,isPrimeMember:n?e.isPrimeCustomer:e.isPrimeMember,isPrimeDay:n?e.isPrimeDay:e.primeDay,isSmile:e.isSmile,regionalStores:e.regionalStores,isBackup:e.isBackup,firstName:n?e.firstName:e.customerName,currentQueryString:h(),navDeviceType:e.navDeviceType,hashCustomerAndSessionId:e.hashCustomerAndSessionId,
environmentVFI:e.environmentVFI,languageCode:e.languageCode,customerCountryCode:e.customerCountryCode},v=function(b){var c=(b=JSON.parse(b).data)&&b.trim();c&&a(c).is("#hmenu-container")?(a("body").append(b),d(),"function"===typeof g&&g(),z&&l.count("".concat(n?"Navm":"Nav",":Hmenu:FirstLayerSuccessTotalTime"),Math.floor((Date.now()-z)/1E3))):(f.ueLogError&&(t.message=" HamburgerMenu Empty or Malformed AJAX response. AJAX Request Data: "+JSON.stringify(u)+(b?b.toString():" Empty html response."),
f.ueLogError(t)),p())};b="/nav/ajax/"+u.ajaxTemplate;c({retryMetric:k("-hmenu-ajax-retry"),errorMetric:k("-hmenu-ajax-error"),url:b,dataType:"html",cache:!e.isHMenuBrowserCacheDisable,data:u,error:function(a,b,c){var d=(a.responseText||"").split("\x3c!-- sp:error_pages --\x3e")[0];try{if(JSON.parse(d).data&&v&&"function"===typeof v){v(d);return}}catch(D){}a=" HamburgerMenu AJAX Call failed. RID: "+(f.ue&&f.ue.rid?f.ue.rid:r)+" Status Code : "+a.status+" Status text : "+b+" Exception : "+c+" Response text : "+
a.responseText+"AJAX request data : "+JSON.stringify(u);f.ueLogError&&(t.message=a,f.ueLogError(t));p()},success:v})}})})(f.$Nav,w);(function(d){d.when("$","util.ajaxReftagLogger","metrics","config").run("hMenuItemClickHandler",function(a,b,d,c){var e=null;return function(g){function h(a,b,g){var h=k.children("div.hmenu[data-menu-id\x3d"+b+"]");0===h.length?(d.increment("Navm:Hmenu:CustomerClickWithSelectedLayerError"),f.location="mobile"===c.navDeviceType?"/?ref\x3dnavm_em_linktree_fail":"/?ref\x3dnav_em_linktree_fail"):
(a.removeClass("hmenu-translateX").bind("transitionend webkitTransitionEnd oTransitionEnd",function(){a.removeClass("hmenu-visible");a.removeClass("hmenu-transition").unbind("transitionend webkitTransitionEnd oTransitionEnd")}).addClass("hmenu-transition "+(g?"hmenu-translateX-left":"hmenu-translateX-right")),h.removeClass(g?"hmenu-translateX-right":"hmenu-translateX-left").bind("transitionend webkitTransitionEnd oTransitionEnd",function(){h.removeClass("hmenu-transition").unbind("transitionend webkitTransitionEnd oTransitionEnd");
if(g){var a=k.children("div.hmenu.hmenu-hidden[data-parent-menu-id\x3d'"+b+"']");a&&a.removeClass("hmenu-hidden")}a=h.find(".hmenu-back-button");0<a.length?a.focus():0<e.length&&e.focus();e=l}).addClass("hmenu-visible hmenu-transition hmenu-translateX").scrollTop(0))}var k=a("#hmenu-content"),l=a(g.currentTarget);g=l.closest("div.hmenu");var m="";if(l.data("menu-id"))return h(g,l.data("menu-id"),!0),(m=l.data("ref-tag"))&&b(l.data("ref-tag")),!1;if(l.hasClass("hmenu-back-button"))return h(g,g.data("parent-menu-id")),
(m=l.data("ref-tag"))&&b(l.data("ref-tag")),!1}})})(f.$Nav);(function(d){d.when("$","metrics","util.ajaxReftagLogger","hamburgerIosScrollSpy","agent","hMenuItemClickHandler","hMenuCompressibleSectionsHandler","config","HamburgerMenuMainContentAJAXCall","hMenuUpdatedEvent").run("hamburgerMenuInteractionJS",function(a,b,g,c,e,l,h,k,p,m){return function(){function g(a){a.removeClass(q.transition).unbind("transitionend webkitTransitionEnd oTransitionEnd")}d.when("updateIcpReturnUrl").run("updateHamburgerMenuMozartUpdateUrl",
function(a){a("#hmenu-icp-language")});var n=a("body"),t=a("#nav-hamburger-menu"),z=a("#hmenu-container"),u=a("#hmenu-canvas"),v=a("#hmenu-canvas-background"),r=a("#hmenu-content"),B=a("#hmenu-close-icon"),F=a("#a-page"),G=a("#hmenu-header-account"),D=a("#hmenu-container .nav-side-menu-back-to-top"),w,q={transition:"hmenu-transition",visible:"hmenu-visible",translateX:"hmenu-translateX",translateXLeft:"hmenu-translateX-left",translateXRight:"hmenu-translateX-right",transparent:"hmenu-transparent",
opaque:"hmenu-opaque",lockPosition:"lock-position"},C=document.getElementById("nav-hamburger-menu");C&&C.removeEventListener("click",f.navHamburgerMetricLogger);t.one("click",function(){f.ue_t0&&b.count("mobile"===k.navDeviceType?"Navm:Hmenu:IconFirstClickTime":"Nav:Hmenu:IconFirstClickTime",Math.floor((Date.now()-f.ue_t0)/1E3));var c=d.getNow("navHMenuIconClickedNotReadyTimeStamp");b.count("mobile"===k.navDeviceType?"Navm:Hmenu:IconFirstClickWaitTime":"Nav:Hmenu:IconFirstClickWaitTime",c?Date.now()-
c:0);u.bind("transitionend webkitTransitionEnd oTransitionEnd",function(){a("div.hmenu[data-parent-menu-id\x3d'1']").removeClass("hmenu-hidden")});p()});t.click(function(){t.attr("aria-expanded",!0);r.children("div.hmenu[data-menu-id\x3d'1']").addClass(q.visible);z.addClass(q.visible);u.removeClass(q.translateXLeft).bind("transitionend webkitTransitionEnd oTransitionEnd",function(){g(u)}).addClass(q.transition+" "+q.translateX);v.removeClass(q.transparent).bind("transitionend webkitTransitionEnd oTransitionEnd",
function(){g(v)}).addClass(q.transition+" "+q.opaque);w=f.scrollY;n.css({top:"-"+w+"px"});n.addClass(q.lockPosition);F.attr("aria-hidden","true");F.attr("inert",!0);B.focus();"mobile"===k.navDeviceType&&e.iPhone&&(n[0].addEventListener("touchstart",c.touchStartHandler,{passive:!1}),n[0].addEventListener("touchmove",c.touchMoveHandler,{passive:!1}),v.bind("touchmove",c.preventCurrentEvent));b.increment("mobile"===k.navDeviceType?"Navm:Hmenu:IconClickActionComplete":"Nav:Hmenu:IconClickActionComplete")});
f.ue_t0&&b.count("mobile"===k.navDeviceType?"Navm:Hmenu:MenuAccessibleLatency":"Nav:Hmenu:MenuAccessibleLatency",Date.now()-f.ue_t0);v.click(function(d){if(d.target===this||d.target.parentElement===this){b.increment("mobile"===k.navDeviceType?"Navm:Hmenu:MenuAbandon":"Nav:Hmenu:MenuAbandon");t.attr("aria-expanded",!1);v.removeClass(q.opaque).bind("transitionend webkitTransitionEnd oTransitionEnd",function(){g(v)}).addClass(q.transition+" "+q.transparent);u.removeClass(q.translateX).bind("transitionend webkitTransitionEnd oTransitionEnd",
function(){z.removeClass(q.visible);r.children("div.hmenu:not([data-menu-id\x3d'1'])").removeClass(q.translateX+" "+q.translateXLeft+" "+q.visible).addClass(q.translateXRight);r.children("div.hmenu[data-menu-id\x3d'1']").removeClass(q.translateXLeft+" "+q.visible).scrollTop(0);g(u)}).addClass(q.transition+" "+q.translateXLeft);F.removeAttr("aria-hidden");F.removeAttr("inert");"mobile"===k.navDeviceType&&e.iPhone&&(n[0].removeEventListener("touchstart",c.touchStartHandler),n[0].removeEventListener("touchmove",
c.touchMoveHandler),v.unbind("touchmove",c.preventCurrentEvent));n.attr("tabIndex",0).focus().removeAttr("tabIndex").removeClass(q.lockPosition);n.css("top","");f.scrollTo(f.scrollX,w);if("mobile"===k.navDeviceType){var h=n.is(".fixed-navbar");f.setTimeout(function(){h&&n.addClass("fixed-navbar")},1)}else a(document).unbind("keyup.hamburgerEscape");t.focus()}});B.click(function(){v.click()});B.keydown(function(a){"Enter"===a.originalEvent.key&&v.click()});u.keyup(function(a){"Escape"===a.originalEvent.key&&
B.click()});D.click(function(){var a=r.children("div.hmenu.hmenu-visible");a.scrollTop(0);"1"===a.attr("data-menu-id")?B.focus():a.find(".hmenu-back-button").focus()});B.keydown(function(a){var b=r.children("div.hmenu.hmenu-visible");a.shiftKey&&"Tab"===a.originalEvent.key&&(a.preventDefault(),b.find("li:has(a):last \x3e a").focus())});D.keyup(function(a){"Tab"===a.originalEvent.key&&D.click()});D.keydown(function(a){"Tab"===a.originalEvent.key&&D.click()});a(".hmenu-item").click(function(a){return l(a)});
G&&G.click(function(){if(1===G.data("recognized")){var b=a("#hmenu-canvas-background"),c=a("#nav-button-avatar");b&&b.click();c&&c.click()}});h();document.getElementById("hmenu-container").style.display="block";m();f.csa&&csa("Content",{element:document.getElementById("nav-hamburger-menu")})("mark","functional:click")}})})(f.$Nav);(function(d){d.when("$","util.ajaxReftagLogger").run("hMenuCompressibleSectionsHandler",function(a,b){var d=function(c){var d=a(c.currentTarget).parent().prev(".hmenu-compress-section");
d.removeAttr("aria-hidden");d.find(".hmenu-item").removeAttr("tabindex");requestAnimationFrame(function(){var a=d.prop("scrollHeight");d.css("height",a+"px");d.removeClass("compressed");d.bind("transitionend.menuSection webkitTransitionEnd.menuSection oTransitionEnd.menuSection",function(a){"height"===a.originalEvent.propertyName&&(d.unbind("transitionend.menuSection webkitTransitionEnd.menuSection oTransitionEnd.menuSection"),d.css("height",""),d.find(".hmenu-item").first().focus())})});b("nav_em_seemore");
return!1},c=function(c){var d=a(c.currentTarget),e=d.parent().prev(".hmenu-compress-section");e.attr("aria-hidden",!0);e.find(".hmenu-item").attr("tabindex",-1);requestAnimationFrame(function(){var a=e.prop("scrollHeight");e.css("height",a+"px");requestAnimationFrame(function(){e.addClass("compressed");e.css("height","");d.siblings(".hmenu-compressed-btn").focus()})});b("nav_em_seeless");return!1};return function(){a(".hmenu-compressed-btn").click(d);a(".hmenu-expanded-btn").click(c)}})})(f.$Nav);
(function(d,a){d.when("jQuery","util.ajax","hMenuItemClickHandler","config","metrics","hMenuUpdatedEvent","util.getQueryStringForHMenuAjax").build("HamburgerMenuMainContentAJAXCall",function(a,g,c,e,l,h,k){return function(){var b={attribution:"AmazonNavigationCards",logLevel:"ERROR"},m=d.getNow("HMenuSecondLayerVariables");if(m&&Array.isArray(m.secondLayerTreeName)&&m.secondLayerTreeName.length){l.increment("mobile"===e.navDeviceType?"Navm:Hmenu:MainContentAjax":"Nav:Hmenu:MainContentAjax");var r=
Date.now();m={ajaxTemplate:"hamburgerMainContent",pageType:f.ue_pty?f.ue_pty:"NavUnknownPageType",hmDataAjaxHint:1,navDeviceType:e.navDeviceType,isSmile:m.isSmile,RegionalStores:m.RegionalStores,isPrime:m.isPrime,isBackup:e.isBackup,hashCustomerAndSessionId:e.hashCustomerAndSessionId,languageCode:e.languageCode,environmentVFI:e.environmentVFI,secondLayerTreeName:m.slt||m.secondLayerTreeName,currentQueryString:k(),customerCountryCode:e.customerCountryCode};var n=function(b){var f=(b=JSON.parse(b).data)&&
b.trim();f&&a(f).hasClass("hmenu-translateX-right")&&(a("#hmenu-content").append(b),h(),d.declare("NavHmenuMainContentAdded",!0),a(".hmenu-item").click(function(a){return c(a)}),r&&l.count("mobile"===e.navDeviceType?"Navm:Hmenu:MainContentSuccessTotalTime":"Nav:Hmenu:MainContentSuccessTotalTime",Math.floor((Date.now()-r)/1E3)))};g({retryMetric:"mobile"===e.navDeviceType?"navm-hmenu-main-content-ajax-retry":"nav-hmenu-main-content-ajax-retry",errorMetric:"mobile"===e.navDeviceType?"navm-hmenu-main-content-ajax-error":
"nav-hmenu-main-content-ajax-error",url:"/nav/ajax/"+m.ajaxTemplate,cache:!e.isHMenuBrowserCacheDisable,dataType:"html",data:m,error:function(a,c,d){var e=(a.responseText||"").split("\x3c!-- sp:error_pages --\x3e")[0];try{if(JSON.parse(e).data&&n&&"function"===typeof n){n(e);return}}catch(K){}a=" HamburgerMenu Main Content AJAX Call failed. Status Code : "+a.status+" Status text : "+c+" Exception : "+d;f.ueLogError&&(b.message=a,f.ueLogError(b))},success:n})}}})})(f.$Nav,w);(function(d){d.when("$",
"config").run("hMenuUpdatedEvent",function(a,b){return function(){if("mobile"===b.navDeviceType){var a=new Event("nav:hbm:updated",{bubbles:!0,cancelable:!1});document.dispatchEvent(a)}}})})(f.$Nav);(function(d){d.declare("hMenuShouldSwipeClose",function(a){return"left"===a})})(f.$Nav);(function(d){d.when("$","util.ajax","metrics","config").run("notificationInteractionJS",function(a,b,d,c){function e(a){return"".concat(t?"Navm":"Nav",a)}function g(a){return"".concat(t?"navm":"nav",a)}function h(a,
e,g,h,l){var m=Date.now();f.ue_t0&&d.count(a,Math.floor((m-f.ue_t0)/1E3));a={"client-id":"GlobalNav",type:"Payments","sub-type":"MFA","source-action":l,"suppression-timestamp":Date.now(),"page-type":f.ue_pty,"sub-page-type":f.ue_spty};b({retryMetric:e,errorMetric:g,url:c.isAjaxPaymentSuppressNotificationMigrated?"/nav/ajax/suppress":"/gp/navigation/notifications/1.0/suppress",data:a,method:"POST",error:function(a,b,c){var d={attribution:"AmazonNavigationCards",logLevel:"ERROR"};a=" Notification Suppression AJAX Call failed. Status Code : "+
a.status+" Status text : "+b+" Exception : "+c;f.ueLogError&&(d.message=a,f.ueLogError(d))},success:function(){k.length&&k.hide();n.length&&k.length&&!1===p&&n.show();m&&d.count(h,Math.floor((Date.now()-m)/1E3))}})}var k=a("#nav-notification"),p=0!==a("#nav-notification.nav-notification-bottom").length,m=a("a#nav-notification-right, #nav-notification-right \x3e a"),r=a("a#nav-notification-action, a#nav-notification-left"),n=a("#nav-upnav"),t="mobile"===c.navDeviceType.toLowerCase();n.length&&k.length&&
!1===p&&n.hide();m.click(function(){var a=e(":Notification:Suppress:ClickTime"),b=g("-notification-suppress-retry"),c=g("-notification-suppress-error"),d=e(":Notification:Suppress:TotalTime");h(a,b,c,d,"CloseButton")});r.click(function(){var a=e(":Notification:Action:ClickTime"),b=g("-notification-action-retry"),c=g("-notification-action-error"),d=e(":Notification:Action:TotalTime");h(a,b,c,d,"CallToAction")})})})(f.$Nav);(function(d){d.when("$","metrics").run("skipLinkAccessibility",function(a,b){a("#skiplink").focus(function(){b.increment("Nav:SkipLink:SkipLinkShow")});
a("#skiplink").blur(function(){b.increment("Nav:SkipLink:SkipLinkAbandon")});a("#skiplink").keyup(function(b){13===b.keyCode&&a("#skiplink").click()});a("#skiplink").click(function(){var a=document.getElementById("skippedLink");a.scrollIntoView(!0);a.focus();b.increment("Nav:SkipLink:SkipLinkClick")})})})(f.$Nav);(function(d,a){a.when("A").execute("cosworthSubnav",function(a){a.declarative("cosworth-subnav-chat-icon-action","click",function(a){a&&a.$currentTarget[0]&&a.$currentTarget[0].dataset&&
f.open(a.$currentTarget[0].dataset.url,"","resizable,height\x3d600,width\x3d500, top\x3d"+f.screenTop+", left\x3d"+f.screenLeft)})})})(f.$Nav,w);(function(d,a){d.when("$","metrics","logUeError","page.domReady").run("navigationAssistantAccessibility",function(b,d,c){function e(a){d.increment("Nav:NavAssistant:"+a+":")}function g(a,b){e("Failure:"+a);c({attribution:"navigationAssistantAccessibility",logLevel:"ERROR",message:b+" Additional context: Nav Assist open? "+h()+"."})}function h(){return x.hasClass("nav-assistant-visible")}
function k(){h()||(m(E),x.addClass("nav-assistant-visible"),e("Show:"+x.eventType))}function p(a){return!!a&&a.checkVisibility({visibilityProperty:!0,checkVisibilityCSS:!0})}function m(){E.each(function(a,c){var d=c.getAttribute("data-target");a=c.getAttribute("data-behavior");if(d&&!d.startsWith("/")&&"show-hide"!==a){var e=c.getAttribute("data-selector-prereq");a=c.getAttribute("data-selector-exclude");d=document.querySelector(d);d=p(d);c=b(c);var f=!!a;e=e?!!document.querySelector(e):!0;a=f?!document.querySelector(a):
!0;e&&a?c&&c.parent().toggle(d):c&&c.parent().hide()}})}function A(a){if(a){var b=getComputedStyle(a);return p(a)&&"fixed"===b.position}return!1}function n(a){return a?(a=a.getBoundingClientRect(),a.height+a.top):0}function t(a,b){0<b&&(a=a.getBoundingClientRect().top+f.scrollY,f.scrollTo({top:a-b,behavior:"instant"}))}function z(a,b,c,d,e){return new Promise(function(g){if(b.contains(a))g(0);else if(b&&c)if(A(b))g(n(b));else if(f.MutationObserver){var y=new MutationObserver(function(a,e){for(var f=
0;f<a.length;f++){var y=a[f];if(c.isSameNode(y.target)&&("attributes"===y.type||"subtree"===y.type)&&d(b)){e.disconnect();g(n(b));break}}e.disconnect();g(0)});y.observe(c,{subtree:!0,attributeFilter:["class","style"]});setTimeout(function(){y.disconnect()},100)}else setTimeout(function(){d(b)?g(n(b)):g(0)},e!==r?e:50);else g(0)})}function u(a){var b=document.getElementById("nav-belt"),c=document.getElementById("navbar"),d=document.getElementById("btf-sub-nav-desktop-tabs");c&&b&&z(a,b,c,A).then(function(b){t(a,
b)});d&&z(a,d,d,A).then(function(b){t(a,b)})}function v(a){var b=0<=a.tabIndex||null!==a.getAttribute("tabindex");if(!b||w(a)){a.setAttribute("tabindex","-1");var c=function(){!b&&document.hasFocus()&&(a.removeAttribute("tabindex"),a.removeEventListener("focusout",c))};a.addEventListener("focusout",c)}a.scrollIntoView({block:"start"});a.focus({preventscroll:!0});u(a)}function w(a){return"a"===a.tagName.toLowerCase()&&!a.hasAttribute("href")}function B(a){if(a&&a.startsWith("/"))return f.location.href=
a,!0;a=document.querySelector(a);return p(a)?(v(a),!0):!1}function F(a){return a&&!a.startsWith("/")?(document.querySelector(a).click(),!0):!1}function G(a,b){switch(b){case "show-hide":return h()?H?H.focus():document.activeElement.blur():C(-1,1,E.length-1),!0;case "navigate-activate":return B(a)&&F(a);case "activate":return F(a);default:return B(a)}}function D(a){var b=a.getAttribute("data-target"),c=a.getAttribute("data-behavior");G(b,c)?e("LinkClick:"+a.id):g(a.id,a.id+" link was clicked, but the target was not present.")}
function J(){var a=getComputedStyle(x[0]);return!!document.elementsFromPoint(parseFloat(a.marginLeft),parseFloat(a.marginTop)).find(function(a){if(["fixed","absolute"].includes(getComputedStyle(a).position)){var b=f.innerWidth*f.innerHeight;a=a.clientWidth*a.clientHeight;return 0<b&&.5<a/b}})}function q(a,c){var d=c.attr("id"),f=c.data("target"),k=c.data("behavior");document.addEventListener("keydown",function(c){for(var y=h(),n=0;n<a.length;n++){var l;var m=c;var q=a[n],t=f,u=k;if(m.repeat||!q)m=
!1;else{var v=q.eventCode,I=q.eventKey;q=q.isShiftRequired;if(v||I){(l=!m.altKey||m.ctrlKey||m.metaKey)||(l=b(document.activeElement).is('input[type\x3d"text"], input[type\x3d"search"], input[type\x3d"email"], input[type\x3d"password"], textarea, [contenteditable\x3d"true"], select'));if(!(l=l||J()))b:{l=document.querySelectorAll("#hmenu-container, .a-dropdown, .a-popover-modal");for(var w=0;w<l.length;w++)if(p(l[w])){l=!0;break b}l=!1}l||q!==m.shiftKey?m=!1:(I=I===m.key||I===r,m=v!==m.code&&v!==
r||!I?!1:"show-hide"===u||!t||t.startsWith("/")||p(document.querySelector(t))?!0:!1)}else m=!1}if(m){c.preventDefault();x.eventType="Shortcut";G(f,k)?e("Shortcut:"+d+":"+(y?"Open":"Closed")):g(d,d+" shortcut was activated, but the target was not present.");break}}})}function C(a,b,c){var d=E.length;a=(a+b+d)%d;d=E.get(a);p(d)?d.focus():a!=c&&C(a,b,c)}var x=b("#shortcut-menu"),E=b(".nav-assistant-menu-item");if(x.length&&E.length){m();["atf","cf","ready","bodyBegin"].forEach(function(b){a.when("A",
b).execute("correctInitialMenuItemVisibility",function(){m()})});x[0].contains(document.activeElement)&&!h()&&(x.eventType="Tab",k());b(".nav-assistant-link-item").keyup(function(a){13===a.keyCode&&(a.preventDefault(),D(a.currentTarget))});b(".nav-assistant-link-item").click(function(a){a.stopPropagation();a.preventDefault();D(a.currentTarget)});b(".nav-assistant-keyboard-shortcut-item").each(function(){var a=b(this),c=a.data("actuators");c&&q(c,a)});var H=null;x.keyup(function(a){27===a.keyCode&&
(H?H.focus():document.activeElement.blur())});x.focusin(function(a){var c=a.relatedTarget;x[0].contains(c)?(b(c).attr("tabIndex","-1"),b(a.target).attr("tabIndex","0")):(k(),c&&(H=c))});b("body").keydown(function(a){x.eventType=9===a.keyCode?"Tab":27===a.keyCode?"Escape":"Keyboard"});x.focusout(function(a){x[0].contains(a.relatedTarget)||(document.hasFocus()&&(H=null,h()&&(x.removeClass("nav-assistant-visible"),e("Abandon:"+x.eventType))),b(a.target).attr("tabIndex","-1"),b('a[data-nav-assist-menu-item-index\x3d"0"]').attr("tabIndex",
"0"))});x.keydown(function(a){switch(a.keyCode){case 35:case 36:case 38:case 40:case 27:a.preventDefault()}});b(".nav-assistant-menu-item").keyup(function(a){var c=E.length,d=b(this).data("nav-assist-menu-item-index");switch(a.keyCode){case 35:C(c,-1,0);break;case 36:C(-1,1,c-1);break;case 38:C(d,-1,d);break;case 40:C(d,1,d)}switch(a.keyCode){case 35:case 36:case 38:case 40:a.stopPropagation()}});x.keyup(function(a){var b=E.length;switch(a.keyCode){case 35:case 38:C(b,-1,0);break;case 36:case 40:C(-1,
1,b-1)}})}})})(f.$Nav,w)});
/* ******** */
(function(H){var h=window.AmazonUIPageJS||window.P,F=h._namespace||h.attributeErrors,f=F?F("NavDesktopAssets",""):h;f.guardFatal?f.guardFatal(H)(f,window):f.execute(function(){H(f,window)})})(function(H,h,F){(function(f){f.when("sharedconstants").build("constants",function(a){a.CAROUSEL_WIDTH_BUFFER=45;a.PINNED_NAV_SEARCH_SPACING=140;a.REMOVE_COVER_SCROLL_HEIGHT=200;return a})})(h.$Nav);(function(f){f.when("$","config","provider.ajax").iff({name:"config",prop:"searchapiEndpoint"}).run("searchApiAjax",
function(a,b,e){e({url:b.searchapiEndpoint,dataKey:"searchAjaxContent",success:function(a){a&&a.searchAjaxContent&&a.searchAjaxContent.js&&(a="var P \x3d window.AmazonUIPageJS || window.P; "+a.searchAjaxContent.js,f.when("$","iss.flyout","searchApi","util.templates").run("[sx]iss",a))},error:function(){throw"ISS failed to load.";}}).fetch()})})(h.$Nav);(function(f,a){a.importEvent("jQuery",{as:"$",global:"jQuery"});a.importEvent("jQuery",{global:"jQuery"});a.when("$").run("PageEventSetup",function(b){var e=
function(){a.declare("page.domReady");a.declare("page.ATF");a.declare("page.CF");a.declare("page.loaded");a.declare("btf.full")};b(function(){a.declare("page.domReady")});b(f).load(e);"complete"===document.readyState?e():"interactive"===document.readyState&&a.declare("page.domReady")});a.when("log","Observer","$F").run("setupPageReady",function(b,e,d){function c(){return"complete"!==document.readyState}var k=new e;k.observe(function(c){b("page.ready triggered by: "+c);a.declare("page.ready")});e=
function(a){k.notify(a)};"complete"===document.readyState?e("immediate"):(a.when("page.ATF").run("page.TriggerATF",d.partial("Event: page.ATF").tap(b).iff(c).iff(function(){return!!a.getNow("config.readyOnATF")}).on(e)),a.when("page.CF").run("page.TriggerCF",d.partial("Event: page.CF").tap(b).iff(c).on(e)),a.when("page.domReady").run("page.TriggerDom+",d.delay(1E4).partial("Event: page.domReady+").tap(b).iff(c).on(e)),a.when("page.loaded").run("page.TriggerLoaded",d.delay(100).partial("Event: page.loaded+").tap(b).on(e)))});
a.declare("noOp",function(){});a.when("$","img.sprite","util.preload","config","util.addCssRule","page.ready").run("ApplyHighResImage",function(a,e,d,c,k){a=f.devicePixelRatio||1;c.navDebugHighres&&(a=2);if(!(1>=a)){var b=c.upnavHighResImgInfo,m=c.upnav2xAiryPreloadImgInfo,n=c.upnav2xAiryPostSlateImgInfo;e["png32-2x"]&&d(e["png32-2x"],function(a){1<a.width&&(k("#navbar .nav-sprite","background-image: url("+e["png32-2x"]+"); background-size: "+Math.floor(a.width/2)+"px;"),k("#hmenu-container .nav-sprite",
"background-image: url("+e["png32-2x"]+"); background-size: "+Math.floor(a.width/2)+"px;"))});if(b&&b.upnav2xImagePath&&b.upnav2xImageHeight){var g=b.upnav2xImagePath;d(g,function(a){1<a.width&&k("#nav-upnav","background-image: url("+g+") !important;"+b.upnav2xImageHeight+" !important;")})}if(b&&b.upnav2xImagePath&&b.upnav2xImageHeight){var q=b.upnav2xImagePath;d(q,function(a){1<a.width&&(a=document.getElementById("nav-upnav"))&&(a=a.getElementsByTagName("img"),a[0]&&a[0].src&&(a[0].src=q))})}if(m&&
m.preloadImgPath&&m.preloadImgHeight){var p=m.preloadImgPath;d(p,function(a){1<a.width&&k("#nav-airy-preload-slate-image","background-image: url("+p+") !important;height:"+m.preloadImgHeight+" !important;")})}if(n&&n.postslateImgPath&&n.postslateImgHeight){var u=n.postslateImgPath;d(u,function(a){1<a.width&&k("#nav-airy-post-media-slate-image","background-image: url("+u+") !important;height:"+n.postslateImgHeight+" !important;")})}}});a.when("config","now","Observer","noOp").build("debugStream",function(a,
e,d,c){if(!a.isInternal)return a=function(){},a.observe=c,a.getHistory=c,a;var b=[],l=new d;c=function(a,c){a={data:c,msg:a,timestamp:e()};b.push(a);l.notify(a)};c.observe=l.boundObserve();c.getHistory=function(){return b};return c});a.when("debug.param","debugStream").build("log",function(a,e){return f.console&&f.console.log&&a("navDebug")?function(a){e("Log",a);f.console.log(a)}:function(){}});a.when("config","util.getQueryString").build("debug.param",function(a,e){if(!a.isInternal)return a=function(){return!1},
a.value=function(){return null},a;var b=function(){var a={},b=e();if(!b)return a;b=b.substring(1).split("\x26");for(var d=0;d<b.length;d++){var m=b[d].split("\x3d");try{a[decodeURIComponent(m[0])]=decodeURIComponent(m[1])}catch(n){}}return a}();a=function(a,d){return 1===arguments.length?a in b:b[a]===d};a.value=function(a){return a in b?b[a]:null};return a});a.when("$").iff({name:"config",prop:"isInternal"},{name:"agent",prop:"quirks"}).run(function(a){a("#nav-debug-quirks-warning").show();a("#nav-debug-quirks-warning-close").click(function(){a("#nav-debug-quirks-warning").hide()})});
a.when("$","$F","config").iff({name:"config",prop:"windowWidths"}).run("windowResizeHandler",function(a,e,d){var b=a("#navbar").parent("header"),k=a(f),l=d.windowWidths;a=e.throttle(300).on(function(){for(var a=k.width(),c=0;c<l.length;c++){var g=l[c],d="nav-w"+g;a>=g?b.addClass(d):b.removeClass(d)}});k.resize(a);a()});a.when("$","$F","config.fixedBarBeacon","fixedBar","flyouts","page.ready","nav.inline").run("fixedBarResize",function(a,e,d,c,k){if(d){var b=a(f),m=0;a.each(k.getAll(),function(a,b){b.elem().height()>
m&&"ewc"!=a&&(m=b.elem().height())});a=e.throttle(300).on(function(){var a=b.width(),d=b.height();1E3<=a&&d>=m+30?c.enable():c.disable()});b.resize(a);a()}});a.when("$","$F","config.fixedSubBarBeacon","fixedSubBar","flyouts","page.ready","nav.inline").run("fixedSubBarResize",function(a,e,d,c,k){if(d){var b=a(f),m=0;a.each(k.getAll(),function(a,b){b.elem().height()>m&&(m=b.elem().height())});a=e.throttle(300).on(function(){var a=b.width(),d=b.height();1E3<=a&&d>=m+30?c.enable():c.disable()});b.resize(a);
a()}});a.when("$","$F","config.stickySubnavConfig","stickySubNav","page.ready","nav.inline").run("stickySubNavResize",function(a,e,d,c){d&&(c.enable(),a=a(f),e=e.throttle(300).on(function(){c.setWidth()}),a.resize(e),e())});a.when("$","$F","config","pinnedNav","flyouts","page.ready","nav.inline").run("pinnedNavResize",function(a,e,d,c,k){if(d.pinnedNav){var b=a(f),m=0,n=1E3;a.each(k.getAll(),function(a,b){b.elem().height()>m&&(m=b.elem().height())});m=d.pinnedNavMinHeight?d.pinnedNavMinHeight:m+30;
d.pinnedNavMinWidth&&(n=d.pinnedNavMinWidth);a=e.throttle(300).on(function(){var a=b.width(),d=b.height();a>=n&&d>=m?c.enable():c.disable()});b.resize(a);a()}});a.when("PublishAPIs").publish("navbarJSInteraction")})(h,h.$Nav);(function(f,a){a.when("$","img.sprite","util.preload","config","util.addCssRule","page.ready").run("ApplyHighResImageDesktop",function(a,e,d,c,k){a=f.devicePixelRatio||1;c.navDebugHighres&&(a=2);if(!(1>=a)){var b=c.transientMenuImage2xHover,m=c.transientMenuImage2x;m&&d(m,function(a){1<
a.width&&k("#nav-transient-flyout-trigger","background: url("+m+") no-repeat !important;background-size: "+Math.floor(a.width/2)+"px !important;")});b&&d(m,function(a){1<a.width&&(k("#nav-transient-flyout-trigger:focus","background: url("+b+") no-repeat !important; background-size: "+Math.floor(a.width/2)+"px !important;"),k("#nav-transient-flyout-trigger:hover","background: url("+b+") no-repeat !important; background-size: "+Math.floor(a.width/2)+"px !important;"))})}})})(h,h.$Nav);(function(f){f.when("logEvent.enabled",
"$F").build("logEvent",function(a,b){var e={};return function(d,c){var k=[],l;for(l in d)d.hasOwnProperty(l)&&k.push(l+":"+d[l]);k.sort();k=k.join("|");e[k]||(e[k]=!0,f.getNow("log",b.noOp)("logEv:"+k),a&&h.ue&&h.ue.log&&h.ue.log(d,"navigation",c))}});f.when("agent","logEvent","btf.lite").run("logQuirks",function(a,b){b({quirks:a.quirks?1:0})});f.when("$F","log").build("phoneHome",function(a,b){function e(){c={t:[],e:[]};k={t:{},e:{}};l=!0}function d(a,d){!d||d in k[a]||(c[a].push(d),b("PhoneHome: "+
a+" "+d),k[a][d]=!0,l=!1)}var c,k,l;f.when("$","config.recordEvUrl","config.recordEvInterval","config.sessionId","config.requestId","eventing.onunload").run("recordEvLoop",function(a,b,d,k,p,f){function g(a,b){a=c[a].join(b);return h.encodeURIComponent(a)}function m(a){n++;if(!l){a=a||n;var c=g("t",":"),d=g("e",":");a="trigger\x3d"+c+"\x26exposure\x3d"+d+"\x26when\x3d"+a+"\x26sid\x3d"+(h.ue&&h.ue.sid||k||"")+"\x26rid\x3d"+(h.ue&&h.ue.rid||p||"");c=0<b.indexOf("?")?"\x26":"?";(new Image).src=b+c+a;
e()}}if(b){var n=0;h.setInterval(m,d);f(function(){m("beforeunload")})}});e();return{trigger:a.partial("t").on(d),exposure:a.partial("e").on(d)}})})(h.$Nav);(function(f){f.when("$","debugStream","util.checkedObserver","util.node","util.randomString").build("panels",function(a,b,e,d,c){var k={},l=0,m=function(a){return function(b){for(var c in k)k.hasOwnProperty(c)&&a.call(k[c],b||{})}},n={create:function(g){var m={name:"panel-"+l++,visible:!1,sidePanelCallback:[],locked:!1,rendered:!1,interactionDelay:750,
elem:null,groups:[],locks:[]};g=a.extend({},m,g);if(k[g.name])return k[g.name];var p={},f=!0;p.elem=function(b){if(b||f)g.elem=a(d.create(b||g.elem)),f=!1;return g.elem};var x=!1;p.interact=e({context:p,observe:function(){b("Panel Interact",p);x=!0}});p.hasInteracted=function(){return x};var h=null,y=function(){h&&(clearTimeout(h),h=null)},t=function(){y();g.rendered&&g.visible&&(h=setTimeout(p.interact,g.interactionDelay))};p.render=e({context:p,check:function(a){if(g.rendered)return!1},observe:function(a){g.rendered=
!0;t();b("Panel Render",p)}});p.reset=e({context:p,observe:function(a){g.rendered=!1;y();b("Panel Reset",p)}});p.show=e({context:p,check:function(a){if(g.visible||g.locked||!p.groups.has(a.group))return!1},observe:function(a){if(0<g.groups.length)for(var c=0;c<g.groups.length;c++)n.hideAll({group:g.groups[c]});g.rendered||p.render(a);g.visible=!0;t();b("Panel Show",p)}});p.hide=e({context:p,check:function(a){if(!g.visible||g.locked||!p.groups.has(a.group))return!1},observe:function(a){g.visible=!1;
y();b("Panel Hide",p)}});p.lockRequest=e({context:p});p.lock=e({context:p,check:function(a){var b=g.locked;p.locks.add(a.lockKey||"global");p.lockRequest();if(b)return!1},observe:function(){b("Panel Lock",p)}});p.unlockRequest=e({context:p});p.unlock=e({context:p,check:function(a){p.unlockRequest();p.locks.remove(a.lockKey||"global");if(g.locked)return!1},observe:function(){b("Panel Unlock",p)}});p.groups={add:function(a){g.groups.push(a)},remove:function(b){b=a.inArray(b,g.groups);-1<b&&g.groups.splice(b,
1)},has:function(b){return!b||-1<a.inArray(b,g.groups)?!0:!1},clear:function(){g.groups=[]}};p.locks={add:function(a){g.locks.push(a||c());g.locked=!0},remove:function(b){b=a.inArray(b,g.locks);-1<b&&g.locks.splice(b,1);0===g.locks.length&&(g.locked=!1)},has:function(b){return!b||-1<a.inArray(b,g.locks)?!0:!1},clear:function(){g.locked=!1;g.locks=[]}};p.isVisible=function(){return g.visible};p.isSideCallbackSet=function(){return null!==g.sidePanelCallback};p.setSidePanelCallback=function(a){g.sidePanelCallback.push(a)};
p.initiateSidePanel=function(){if(null!==g.sidePanelCallback)for(var a=0;a<g.sidePanelCallback.length;a++)g.sidePanelCallback[a]()};p.isLocked=function(){return 0<g.locks.length};p.isRendered=function(){return g.rendered};p.isGrouped=function(){return 0<g.groups.length};p.getName=function(){return g.name};p.destroy=e({context:p,observe:function(){y();var a=p.elem();a&&a.remove();b("Panel destroy",p)}});p.onReset=p.reset.observe;p.onRender=p.render.observe;p.onInteract=p.interact.observe;p.onShow=
p.show.observe;p.onHide=p.hide.observe;p.onLock=p.lock.observe;p.onUnlock=p.unlock.observe;p.onLockRequest=p.lockRequest.observe;p.onUnlockRequest=p.unlockRequest.observe;p.onDestroy=p.destroy.observe;a.each(g,function(a,b){a in m||a in p||(p[a]=b)});b("Panel Create",p);return k[g.name]=p},destroy:function(a){return k[a]?(k[a].destroy(),delete k[a],!0):!1},hideAll:m(function(a){this.hide(a)}),showAll:m(function(a){this.show(a)}),lockAll:m(function(a){this.lock(a)}),unlockAll:m(function(a){this.unlock(a)}),
getAll:function(a){a=a||{};var b=[],c;for(c in k)"locked"in a&&k[c].isLocked()!==a.locked||"visible"in a&&k[c].isVisible()!==a.visible||"rendered"in a&&k[c].isRendered()!==a.rendered||"group"in a&&!k[c].groups.has(a.group)||"lockKey"in a&&!k[c].locks.has(a.lockKey)||b.push(k[c]);return b},get:function(a){return k[a]}};return n})})(h.$Nav);(function(f){f.when("$","data","debugStream","panels","util.templates","metrics","util.checkedObserver").build("dataPanel",function(a,b,e,d,c,k,l){var m=0;return function(n){var g=
d.create(a.extend({id:"dataPanel-"+n.dataKey+"-"+m++,className:null,dataKey:null,groups:[],spinner:!1,visible:!0,timeoutDataKey:null,timeoutDelay:5E3,elem:function(){var b=a("\x3cdiv class\x3d'nav-template'\x3e\x3c/div\x3e");n.id&&b.attr("id",n.id);n.className&&b.addClass(n.className);n.spinner&&b.addClass("nav-spinner");return b}},n)),q=c.renderer();q.onRender(function(a){g.reset();g.render({html:a,templateName:q.templateName,data:q.data})});var p=null;g.timeout=l({context:g,check:function(){if(g.isRendered())return!1},
observe:function(){if(n.timeoutDataKey){var a=b.get(n.timeoutDataKey);if(a){a.isTimeout=!0;var c={};c[n.dataKey]=a;b(c)}k.increment("nav-panel-"+n.timeoutDataKey);e("Panel Timeout",g)}}});g.onTimeout=g.timeout.observe;g.startTimeout=function(){p&&clearTimeout(p);g.isRendered()||(p=setTimeout(g.timeout,g.timeoutDelay))};g.render.check(function(a){if(!a.html)return!1});g.onRender(function(a){var b=this.elem();b[0].className="nav-template"+(n.className?" "+n.className:"")+(a.templateName?" nav-tpl-"+
a.templateName:"")+(a.noTemplate?" nav-tpl-itemList":"");n.doNotExecuteScripts?b[0].innerHTML=a.html||"":b.html(a.html||"")});g.onReset(function(){var a=this.elem();a[0].className="nav-template"+(n.className?" "+n.className:"")+(n.spinner?" nav-spinner":"");a.html("")});g.data=l({context:g});g.onData=g.data.observe;g.onShow(function(){this.elem().show()});g.onHide(function(){this.elem().hide()});var f=function(c){c&&(c.css&&(g.styleSheet&&g.styleSheet.attr("disabled","disabled").remove(),g.styleSheet=
a("\x3cstyle type\x3d'text/css' /\x3e").appendTo("head"),g.styleSheet[0].styleSheet?g.styleSheet[0].styleSheet.cssText=c.css:g.styleSheet[0].appendChild(document.createTextNode(c.css))),c.event&&"string"===typeof c.event&&a.isFunction(g[c.event])?g[c.event].call(g):c.event&&"string"===typeof c.event.name&&a.isFunction(g[c.event.name])?g[c.event.name].apply(g,"[object Array]"===Object.prototype.toString.call(c.event.args)?c.event.args:[]):c.template?(q.templateName=c.template.name,q.data=c.template.data,
q.render()):c.html?(g.reset(),g.render({html:c.html,noTemplate:c.noTemplate})):c.dataKey&&b.get(c.dataKey)&&f(b.get(c.dataKey)),g.data(c))},x=b.observe(n.dataKey,f);g.onDestroy(function(){b.remove(x)});return g}})})(h.$Nav);(function(f){f.when("$","$F","util.parseQueryString","config.isInternal","log","metrics","onOptionClick","eventing.onunload").build("searchMetrics",function(a,b,e,d,c,k,l,m){return function(n){var g=this;this.elements=n;this.debug=!1;this.trigger="TN";this.scopeChanged=!1;this.setTrigger=
b.once().on(function(a){g.trigger=a});this.queryFirst="N";this.setQueryFirst=b.once().on(function(a){g.queryFirst=a?0:1});this.TRIGGERS={BUTTON:"TB",ENTER_KEY:"TE",ISS_KEYBOARD:"ISSK",ISS_MOUSE:"ISSM"};this._getState=function(){var a=g.elements.scopeSelect[0].selectedIndex||null,b=g.elements.inputTextfield.val();""===b&&(b=null);return{scope:a,query:b}};this._computeAction=function(a,b,c){var d="N";a?(d="R",b&&(d="NC",a!==b&&(d="M"))):b&&(d="A");return c+d};this._computeKey=function(){var a=g._getState(),
b=g._computeAction(g.initial.scope,a.scope,"S");a=g._computeAction(g.initial.query,a.query,"Q");return["QF-"+g.queryFirst,b,a,g.trigger].join(":")};this.log=function(a){g.debug&&c(a)};this.printKey=function(){if(g.debug){var a=g._computeKey();g.log("SM: key is: "+a);return a}};this._sendMetric=b.once().on(function(){var a=g._computeKey();k.increment(a)});this._setupScopeSelectListener=function(){l(this.elements.scopeSelect,function(){g.log("SM: scope changed");g.scopeChanged=!0})};this.updateScopeSelect=
function(a){this.elements.scopeSelect=a;g._setupScopeSelectListener()};this.init=function(){this.debug=d&&"1"===e().navTestSearchMetrics;this.initial=this._getState();this.log("SM: initial state");this.log(this.initial);g._setupScopeSelectListener();this.elements.inputTextfield.keypress(function(a){13===a.which?g.setTrigger(g.TRIGGERS.ENTER_KEY):(g.scopeChanged&&g.setQueryFirst(!0),g.setQueryFirst(!1))});this.elements.submitButton.click(function(){g.setTrigger(g.TRIGGERS.BUTTON)});f.when("flyoutAPI.SearchSuggest").run(function(b){b.onShow(function(){a(".srch_sggst_flyout").one("mousedown",
function(){g.setTrigger(g.TRIGGERS.ISS_MOUSE)})})});m(function(a){if(g.debug)return g.printKey(),a.preventDefault(),a.stopPropagation(),!1;g._sendMetric()})}}})})(h.$Nav);(function(f){f.when("log","sharedconstants").build("flyoutMetrics",function(a,b){function e(a){var c=0,e=!1,m,n=a.getName().split("/");n=n[n.length-1];if(h&&h.navmet){var g=h.navmet.MainEnd;g&&d("nav-flyout-"+n+"-attach-latency",new Date-g)}a.elem().click(function(){var a=m?new Date-m:void 0;d("nav-flyout-"+n+"-dwellTime",a);e=!1});
a.onShow(function(){m=new Date;e=!0});a.onHide(function(){if(e){var a=m?new Date-m:void 0;a>b.DWELLTIME_MIN&&(c++,d("nav-flyout-"+n+"-dwellTime",a),d("nav-flyout-"+n+"-bounceCount",c))}e=!1})}function d(b,d){h.ue&&h.ue.count&&(h.ue.count(b,d),a("Nav-Flyout-Metrics: "+b+" to "+d))}a("flyout metrics");return{attachTo:function(a){e(a)}}})})(h.$Nav);(function(f){f.when("$","Observer").build("util.ajax",function(a,b){return function(b){b=a.extend({url:null,data:{},type:"GET",dataType:"json",cache:!1,timeout:5E3,
retryLimit:3},b);var d=b.error;b.error=function(){0<=--this.retryLimit?(a.ajax(this),b.retry&&b.retry(this)):d&&d.apply(this,arguments)};return a.ajax(b)}})})(h.$Nav);(function(f){f.when("$","$F","agent","util.bean","util.class","config").build("util.Aligner",function(a,b,e,d,c,k){var l={top:{direction:"vert",size:0},middle:{direction:"vert",size:.5},bottom:{direction:"vert",size:1},left:{direction:"horiz",size:0},center:{direction:"horiz",size:.5},right:{direction:"horiz",size:1}};k.rightMarginAlignEnabled&&
(l.rightArrow={direction:"horiz",size:.9});var m={top:"vert",bottom:"vert",left:"horiz",right:"horiz"},n=function(a,b,c){try{return a[b?"outerHeight":"outerWidth"](c)||0}catch(x){return 0}},g=function(a,b){b=b?"top":"left";try{var c=a.offset();return c?c[b]:0}catch(x){return 0}};e=c();e.prototype.alignTo=d({value:a.fn});e.prototype.offsetTo=d({value:a.fn});e.prototype.base=d({value:a.fn});e.prototype.target=d({value:a.fn});e.prototype.fullWidth=d({value:!1});e.prototype.constrainTo=d({value:a.fn});
e.prototype.constrainBuffer=d({value:[0,0,0,0]});e.prototype.constrainChecks=d({value:[!0,!0,!0,!0]});e.prototype.fullWidthCss=d({get:function(b){return a.extend({left:"0px",right:"0px",width:"auto"},b)},value:function(){return{}}});e.prototype.anchor=d({value:{vert:"top",horiz:"left"},set:function(a){a=a.split(" ");for(var b={vert:"top",horiz:"left"},c=0;c<a.length;c++)m[a[c]]&&(b[m[a[c]]]=a[c]);return b}});e.prototype.getAlignment=function(a){var c=l[a];if(c){var d="vert"===c.direction?!0:!1,e=
d?"top":"left",k=d?"bottom":"right";return{offset:b.bind(this).on(function(){return g(this.base(),d)-g(this.offsetTo(),d)+n(this.base(),d)*c.size}),align:b.bind(this).on(function(){var a=this.from()[c.direction].offset()+this.nudgeFrom()[e],b=g(this.alignTo(),d),l=b-g(this.offsetTo(),d)+this.nudgeTo()[e],m=n(this.target(),d);a=a-l-m*c.size;var p=this.constrainTo();if(1===p.length){l=this.constrainChecks();var f=this.constrainBuffer(),q=n(p,d)-(d?f[0]+f[2]:f[1]+f[3]);p=g(p,d)+(d?f[0]:f[3]);(d&&l[0]||
!d&&l[3])&&a+b<p?a=p-b:(d&&l[2]||!d&&l[1])&&a+b+m>p+q&&(a=p+q-m-b)}b={};this.anchor()[c.direction]===e?b[e]=a:(l=n(this.alignTo(),d),b[k]=l-a-m);return b})}}return{offset:function(){return 0},align:function(){return{}}}};e.prototype.from=d({set:function(a){a=a.split(" ");for(var b={vert:this.getAlignment(),horiz:this.getAlignment()},c=0;c<a.length;c++){var d=l[a[c]];d&&(b["vert"===d.direction?"vert":"horiz"]=this.getAlignment(a[c]))}return b},value:function(){return{vert:this.getAlignment(),horiz:this.getAlignment()}}});
e.prototype.to=d({set:function(a){a=a.split(" ");for(var b={vert:this.getAlignment(),horiz:this.getAlignment()},c=0;c<a.length;c++){var d=l[a[c]];d&&(b["vert"===d.direction?"vert":"horiz"]=this.getAlignment(a[c]))}return b},value:function(){return{vert:this.getAlignment(),horiz:this.getAlignment()}}});e.prototype.nudgeFrom=d({set:function(a){return{top:a.top||0,left:a.left||0}},value:{top:0,left:0}});e.prototype.nudgeTo=d({set:function(a){return{top:a.top||0,left:a.left||0}},value:{top:0,left:0}});
e.prototype.align=function(b){b&&this.target(b);this.target().css("position","absolute");b=this.to();this.target().css(a.extend({},b.vert.align(),this.fullWidth()?this.fullWidthCss():b.horiz.align()));return this};return e})})(h.$Nav);(function(f){f.when("$","$F").build("util.bean",function(a,b){var e=0;return function(d){d=a.extend({name:"__bean_storage_"+e++,set:function(a){return a},get:function(a){return a}},d);return function(a){var c=d.context||this;c[d.name]||(c[d.name]={},"undefined"!==typeof d.value&&
(c[d.name].value=d.value instanceof Function?b.bind(c).on(d.value)():d.value));var e=c[d.name].value;if("undefined"!==typeof a)return c[d.name].set||(c[d.name].set=b.bind(c).on(d.set)),c[d.name].value=c[d.name].set(a,e),c;"undefined"===typeof e&&"undefined"!==typeof d.empty&&(c[d.name].empty||(c[d.name].empty=d.empty instanceof Function?b.bind(c).on(d.empty):function(){return d.empty}),e=c[d.name].empty());c[d.name].get||(c[d.name].get=b.bind(c).on(d.get));return c[d.name].get(e)}}})})(h.$Nav);(function(f){f.declare("util.checkedObserver",
function(a){function b(a){a=a||{};!1!==b.check(a)&&(e++,b.observe(a))}var e=0,d={},c=[],k=[];b.observe=function(a){a=a||{};if("function"===typeof a)return c.push(a),b;for(var e=0;e<c.length;e++)c[e].call(d,a)};b.check=function(a){a=a||{};if("function"===typeof a)return k.push(a),b;for(var c=0;c<k.length;c++)if(!1===k[c].call(d,a))return!1;return!0};b.context=function(a){return a?(d=a,b):d};b.count=function(a){return a?(e=a,b):e};if(a)for(var l in a)if(a.hasOwnProperty(l)&&b[l])b[l](a[l]);return b})})(h.$Nav);
(function(f){f.when("$","$F").build("util.class",function(a,b){return function(e){e=a.extend({construct:b.noOp},e);var d=function(a){for(var b in a)this[b](a[b]);e.construct.apply(this,arguments)};d.newInstance=function(){var a=Array.prototype.slice.call(arguments),b=function(){return d.apply(this,a)};b.prototype=d.prototype;return new b};d.isInstance=function(a){return a instanceof this};return d}})})(h.$Nav);(function(f){f.when("$","$F","util.bean","util.class").build("util.Ellipsis",function(a,
b,e,d){b=d();b.prototype._storage=[];b.prototype.elem=function(b){var c=this;b instanceof a&&b.get&&(b=b.get());var d=function(b){b=a(b);c._storage.push({$elem:b,text:b.text(),isTruncated:!1})};if(b instanceof Array)for(var e=0;e<b.length;e++)d(b[e]);else d(b);return this};b.prototype.lines=e({value:!1});b.prototype.external=e({value:!1});b.prototype.lastCharacter=e({value:"..."});b.prototype.dimensions=e({empty:function(){var a=this.lines();return function(b){return{width:b.innerWidth(),height:a?
parseInt(b.css("line-height"),10)*a:b.parent().height()}}},set:function(a){var b=this;return function(c){c=a.call(b,c);return{width:c.width||0,height:c.height||0}}}});b.prototype.refresh=function(){this.reset();this.truncate();return this};b.prototype.truncate=function(){var b=this.lastCharacter(),d=this.external(),e=this.dimensions(),m;d&&(m=a("\x3cdiv\x3e\x3c/div\x3e").css({position:"absolute",left:"-10000px",visibility:"hidden"}).appendTo(document.body));a.each(this._storage,function(a,c){if(!c.isTruncated){c.isTruncated=
!0;a=e(c.$elem);d&&m.css({width:a.width+"px",lineHeight:c.$elem.css("line-height")});var g=d?m:c.$elem;g.text("");for(var k=g.height(),l=c.text.split(" "),n=0,f="";k<=a.height;){var h=l.slice(0,++n).join(" ");if(""!==l[n]){if(h.length===f.length){c.$elem.text(c.text);return}g.text(h+b);k=g.height();f=h}}c.$elem.text(l.slice(0,n-1).join(" ")+b)}});d&&m.remove();return this};b.prototype.reset=function(){a.each(this._storage,function(a,b){b.isTruncated&&(b.isTruncated=!1,b.$elem.text(b.text))});return this};
return b})})(h.$Nav);(function(f){f.when("$").build("eventing.onunload",function(a){var b=f.getNow("config.pageHideEnabled");return function(e){b&&h.addEventListener&&(h.onpagehide||null===h.onpagehide)?h.addEventListener("pagehide",e,!1):a(h).bind("beforeunload",e)}})})(h.$Nav);(function(f){f.build("util.getComputedStyle",function(){return h.getComputedStyle||function(a,b){return{el:a,getPropertyValue:function(b){var d=/(\-([a-z]){1})/g;"float"===b&&(b="styleFloat");d.test(b)&&(b=b.replace(d,function(a,
b,d){return d.toUpperCase()}));return a.currentStyle&&a.currentStyle[b]?a.currentStyle[b]:null}}}})})(h.$Nav);(function(f){f.when("$","img.pixel","util.getComputedStyle").build("util.highContrast",function(a,b,e){var d=document.createElement("div");d.style.cssText="position:absolute; left:-1000px; height:10px; width:10px; border-left:1px solid black; border-right:1px solid white; background-image: url('"+b+"')";document.body.appendChild(d);b=e(d,"backgroundImage");e="none"===b||"url(invalid-url:)"===
b||e(d,"borderLeftColor")===e(d,"borderRightColor");a.browser&&a.browser.msie&&7>=parseInt(a.browser.version,10)?d.outerHTML="":document.body.removeChild(d);return e})})(h.$Nav);(function(f){f.build("util.highRes",function(){return 1<h.devicePixelRatio?!0:!1})})(h.$Nav);(function(f){f.when("agent").build("util.inlineBlock",function(a){return function(b){a.ie6||a.quirks?b.css({display:"inline",zoom:"1"}):b.css({display:"inline-block"})}})})(h.$Nav);(function(f){f.when("$F","util.Keycode").build("util.onKey",
function(a,b){return function(e,d,c,k){if(!e||!d)return{bind:a.noOp,unbind:a.noOp};c=c||"keydown";k=!1===k?!1:!0;var l=function(a){var c=new b(a);return d.call(c,a)};k&&e.bind(c,l);return{bind:function(){k||(e.bind(c,l),k=!0)},unbind:function(){k&&(e.unbind(c,l),k=!1)}}}});f.when("$").build("util.Keycode",function(a){function b(a){this.evt=a;this.code=a.keyCode||a.which}b.prototype.isAugmented=function(){return this.evt.altKey||this.evt.ctrlKey||this.evt.metaKey};b.prototype.isAugmentor=function(){return 0<=
a.inArray(this.code,[0,16,20,17,18,224,91,93])};b.prototype.isTextFieldControl=function(){return 0<=a.inArray(this.code,[8,9,13,32,35,36,37,38,39,40,45,46])};b.prototype.isControl=function(){return 46>=this.code||91<=this.code&&95>=this.code||112<=this.code&&145>=this.code?!0:!1};b.prototype.isShiftTab=function(){return 9===this.code&&this.evt.shiftKey};b.prototype.isTab=function(){return 9===this.code};b.prototype.isEnter=function(){return 13===this.code};b.prototype.isBackspace=function(){return 8===
this.code};b.prototype.isSpace=function(){return 32===this.code};b.prototype.isEscape=function(){return 27===this.code};return b});f.when("$F").build("util.onClick",function(a){return function(b,e,d){if(!b||!e)return{bind:a.noOp,unbind:a.noOp};d=!1===d?!1:!0;var c=function(a){return e.call(b,a)};d&&b.bind("click",c);return{bind:function(){d||(b.bind("click",c),d=!0)},unbind:function(){d&&(b.unbind("click",c),d=!1)}}}})})(h.$Nav);(function(f){f.when("$","now","agent").build("util.MouseTracker",function(a,
b,e){function d(a){var c=k.length;if(c&&(c=k[c-1],c.x===a.pageX&&c.y===a.pageY))return;k.push({x:a.pageX,y:a.pageY,when:l?a.timeStamp:b()});100<k.length&&(k=k.slice(-10))}function c(){this.active=!0;0===m&&a(document).mousemove(d);m++}var k=[],l=!e.firefox,m=0;c.prototype.stop=function(){this.active&&(m--,0===m&&(a(document).unbind("mousemove",d),this.active=!1,k=[]))};c.prototype.position=function(){var b=k.length;return b?a.extend(!0,{},k[b-1]):null};c.prototype.velocity=function(){var a=k.length;
if(1<a&&75>=b()-k[a-1].when)for(var c=k[a-1],d=2;d<=a;d++){var e=k[a-d],l=c.when-e.when;e=Math.abs(c.x-e.x)+Math.abs(c.y-e.y);if(0<e&&0<l)return e/l*1E3}return 0};c.prototype.history=function(b){var c=k.length;if(0===c)return[];var d=Math.min(c,10);0<arguments.length&&(d=Math.min(d,b));var e=[],l=c-1;for(c-=d;l>=c;l--)e.push(a.extend(!0,{},k[l]));return e};return{start:function(){return new c}}});f.when("$","$F","util.MouseTracker","debug.param").build("util.Proximity",function(a,b,e,d){function c(b,
c){var d=[],e=[],k=[],m=[];b.each(function(b,c){c=a(c);b=c.offset();k.push(b.top);m.push(b.top+c.height());l?(d.push(a(h).width()-(b.left+c.width())),e.push(a(h).width()-b.left)):(d.push(b.left),e.push(b.left+c.width()))});return{left:Math.min.apply(Math,d)-c[3],top:Math.min.apply(Math,k)-c[0],right:Math.max.apply(Math,e)+c[1],bottom:Math.max.apply(Math,m)+c[2]}}var k=d("navDebugProximity"),l="rtl"===a("body").css("direction");return{onEnter:function(d,n,g,f,p){function m(){k&&y.show().css({background:"rgba(255,0,0,0.1)"});
B&&(h.clearInterval(B),B=null);q&&(q.stop(),q=null);r=null}var q=e.start(),r=c(d,n);if(k){var y=a("\x3cdiv\x3e\x3c/div\x3e").css({position:"absolute",top:r.top,left:l?"auto":r.left,right:l?r.left:"auto",width:r.right-r.left,height:r.bottom-r.top,background:"rgba(0,255,0,0.1)",zIndex:1E3,clickEvents:"none"});y.click(function(){y.hide().remove()});y.show();a("body").append(y)}var t=f?b.throttle(f).on(g):b.once().on(function(){m();g()});var E,v,w,D,C,A,B=h.setInterval(function(){p&&(w=h.scrollX,D=h.scrollY,
A=a(h).width(),w!==E||D!==v||A!==C)&&(r=c(d,n),k&&y.show().css({top:r.top,left:l?"auto":r.left,right:l?r.left:"auto",width:r.right-r.left,height:r.bottom-r.top}),E=w,v=D,C=A);var b=q.position();b&&b.x>=r.left&&b.x<=r.right&&b.y>=r.top&&b.y<=r.bottom&&t()},100);return{unbind:function(){m()}}}}});f.when("$","$F","Observer","util.MouseTracker").build("util.MouseIntent",function(a,b,e,d){function c(a,b,c,d){var e=(c.x-b.x)*(d.y-b.y)-(d.x-b.x)*(c.y-b.y),k=((d.x-a.x)*(b.y-a.y)-(b.x-a.x)*(d.y-a.y))/e;b=
((b.x-a.x)*(c.y-a.y)-(c.x-a.x)*(b.y-a.y))/e;return 0<((c.x-a.x)*(d.y-a.y)-(d.x-a.x)*(c.y-a.y))/e&&0<k&&0<b}function k(c,k){c=a(c);k=a.extend({slop:25,minorDelay:200,majorDelay:100},k);this._onStrayEvent=new e({once:!0,async:!0});this._onArriveEvent=new e({once:!0,async:!0});this._tracker=d.start();this.onArrive(b.bind(this._tracker).on(this._tracker.stop));this.onStray(b.bind(this._tracker).on(this._tracker.stop));this._minorDelay=k.minorDelay;this._majorDelay=k.majorDelay;var l=k.slop,g=c.offset();
k={x:g.left,y:g.top-l};c={x:g.left+c.outerWidth(),y:g.top+c.outerHeight()+l};this._upperLeft=k;this._lowerRight=c;this._minor=0;this._tick()}k.prototype.onArrive=function(a){this._onArriveEvent.observe(a);return this};k.prototype.onStray=function(a){this._onStrayEvent.observe(a);return this};k.prototype._scheduleTick=function(a){this._timer=b.delay(a).bind(this).run(this._tick)};k.prototype.cancel=function(){this._timer&&h.clearTimeout(this._timer)};k.prototype._tick=function(){if(!this._onStrayEvent.isNotified()&&
!this._onArriveEvent.isNotified()){var a=this._tracker.history(10);if(2>a.length)this._scheduleTick(this._minorDelay);else{for(var b=a.shift(),d=null;a.length&&(d=a.shift(),2>Math.abs(d.x-b.x)&&2>Math.abs(d.y-b.y)););if(d){a=this._upperLeft;var e=this._lowerRight;b.x>=a.x&&b.x<=e.x&&b.y>=a.y&&b.y<=e.y?this._onArriveEvent.notify():c(b,d,this._upperLeft,this._lowerRight)||c(b,d,{x:this._lowerRight.x,y:this._upperLeft.y},{x:this._upperLeft.x,y:this._lowerRight.y})?2>Math.abs(b.x-d.x)&&2>Math.abs(b.y-
d.y)?2<=this._minor?this._onStrayEvent.notify():(this._minor++,this._scheduleTick(this._minorDelay)):(this._minor=0,this._scheduleTick(this._majorDelay)):this._onStrayEvent.notify()}else this._scheduleTick(this._minorDelay)}}};return k});f.when("$","agent","Observer","util.bean","util.class").build("util.ClickOut",function(a,b,e,d,c){b=c({construct:function(){var b=this;this._isEnabled=!1;this._clickHandler=function(c){var d=b.ignore(),e=d.length;c=c.target;0===a(c).parents().add(c).filter(function(){for(var a=
0;a<e;a++)if(this===d[a])return!0;return!1}).length&&b.action()}}});b.prototype.attachTo=d({value:function(){return a(document.body)}});b.prototype.ignore=d({value:function(){return[]},set:function(b,c){c.push(b instanceof a?b.get(0):b);return c}});b.prototype.action=d({value:function(){return new e},set:function(a,b){b.observe(a);return b},get:function(a){a.notify()}});b.prototype.enable=function(){if(!this._isEnabled)return this.attachTo().bind("click touchstart",this._clickHandler),this._isEnabled=
!0,this};b.prototype.disable=function(){if(this._isEnabled)return this.attachTo().unbind("click touchstart",this._clickHandler),this._isEnabled=!1,this};return b});f.when("$","Observer").build("util.mouseOut",function(a,b){return function(a){a=a||10;var d=new b,c=d.boundObserve(),e=new b,l=[],m=!1,n=null,g=!1,f=function(){n&&(clearTimeout(n),n=null)},p=function(){f();n=setTimeout(function(){d.notify();f();g=!1},a)},h=function(){g||e.notify();g=!0;f()};return{add:function(a){m&&a.hover(f,p);l.push(a)},
enable:function(){if(!m){for(var a=0;a<l.length;a++)l[a].hover(h,p);m=!0}},changeTimeout:function(b){a=b},disable:function(){if(m){f();for(var a=0;a<l.length;a++)l[a].unbind("mouseenter mouseleave");g=m=!1}},onEnter:e.boundObserve(),onLeave:c,action:c}}});f.when("$","Observer","util.MouseTracker").build("util.velocityTracker",function(a,b,e){return function(){var a={},c=null,k=!1,l=null,m=new b({context:a});a.enable=function(){k||(c=e.start(),l=h.setInterval(function(){m.notify(c.velocity())},25),
k=!0)};a.disable=function(){k&&(h.clearInterval(l),l=null,c.stop(),c=null,k=!1)};a.addThreshold=function(b,c){b&&c&&m.observe(function(d){(!b.above||d>b.above)&&(!b.below||d<b.below)&&c.call(a,d)})};return a}})})(h.$Nav);(function(f){f.when("$").build("util.node",function(a){function b(a){return"object"===typeof h.Node?a instanceof h.Node:a&&"object"===typeof a&&"number"===typeof a.nodeType&&"string"===typeof a.nodeName}function e(d){if(b(d))return d;if(d instanceof a)return d[0];if("function"===
typeof d)return e(d());if("string"===typeof d){var c=document.createElement("div");c.innerHTML=d;return c.firstChild}return d&&"string"===typeof d.jquery?d[0]:null}return{is:b,create:e}})})(h.$Nav);(function(f){f.when("util.getQueryString").build("util.parseQueryString",function(a){return function(b){b=b||{};var e=a();if(e){e=e.substring(1).split("\x26");for(var d=0;d<e.length;d++){var c=e[d].split("\x3d");1<c.length&&(b[c[0]]=c[1])}}return b}})})(h.$Nav);(function(f){f.build("util.preload",function(){return function(a,
b){var e=new Image;b&&(e.onload=function(){b(e)});e.src=a;return e}})})(h.$Nav);(function(f){f.declare("util.randomString",function(a){a=a||{};var b="",e=a.charset||"1234567890abcdefghijklmnopqurstuvwxyz";a=a.length||10;for(var d=0;d<a;d++)b+=e.substr(Math.floor(Math.random()*e.length),1);return b})})(h.$Nav);(function(f){f.when("$","Observer","debugStream").build("util.templates",function(a,b,e){var d={},c=[],k=function(b){var c=new Function("obj","var p\x3d[],print\x3dfunction(){p.push.apply(p,arguments);};with(obj){p.push('"+
b.replace(/[\r\t\n]/g," ").replace(/'(?=[^#]*#>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<#=(.+?)#>/g,"',$1,'").split("\x3c#").join("');").split("#\x3e").join("p.push('")+"');}return p.join('');");return function(b){try{return b.jQuery=a,c(b)}catch(g){return""}}};return{add:function(a,b){if(a&&b&&!d[a]){d[a]=k(b);e("Template Added",{name:a,template:d[a]});for(b=0;b<c.length;b++)c[b].templateName===a&&c[b].render();"cart"===a&&f.declare("cartTemplateAvailable");return d[a]}},
use:function(a,b){if(d[a])return d[a](b)},get:function(a){return d[a]},getAll:function(){return d},build:k,renderer:function(a){a=a||{};var k={data:a.data||{},templateName:a.templateName||null,disabled:!1},l=new b({context:k});k.onRender=l.boundObserve();k.render=function(){if(d[k.templateName]&&k.data&&!k.disabled){var a=d[k.templateName](k.data);a&&(e("Renderer Rendered",{html:a,renderer:k}),l.notify(a))}};if(a.onRender)k.onRender(a.onRender);e("Renderer Created",k);k.render();c.push(k);return k}}})})(h.$Nav);
(function(f){f.when("$","$F").build("util.tabbing",function(a,b){var e={isEnabled:b.noOp,enable:b.noOp,disable:b.noOp,focus:b.noOp,destroy:b.noOp,bind:b.noOp,unbind:b.noOp,tailAction:b.noOp},d=[];return function(b){if(!b||1>b.length)return e;b.attr("tabindex",1);var c=".navTabbing"+d.length,l=-1,m="natural",f=!1,g=function(d){var e=l;l=-1;-1<e&&(d||b.eq(e).blur());a(document).unbind(c)},q=function(a){var c=a.keyCode||a.which;if(-1!==l&&9===c){c=l;g();if(a.shiftKey&&0===c)if("loop"===m)b.eq(b.length-
1).focus();else{if("natural"===m)return}else if(a.shiftKey)b.eq(c-1).focus();else if(c===b.length-1)if("loop"===m)b.eq(0).focus();else{if("natural"===m){b.attr("tabindex",-1);setTimeout(function(){b.attr("tabindex",1)},1);return}}else b.eq(c+1).focus();a.preventDefault();return!1}},p={isEnabled:function(){return f},bind:function(b){for(var e=0;e<d.length;e++)d[e].unbind();l=b;a(document).bind("keydown"+c,q)},unbind:g,focus:function(){if(f){for(var a=!1,c=0;c<b.length;c++)if(b.get(c)===document.activeElement){a=
!0;break}a||b.eq(0).focus()}},enable:function(){if(!f)return a.each(b,function(b){a(this).bind("focus"+c+" focusin"+c,function(){b!==l&&p.bind(b)}).bind("blur"+c+" focusout"+c,function(){p.unbind(!0)})}),f=!0,p},disable:function(){if(f)return a.each(b,function(){a(this).unbind(c)}),p.unbind(),f=!1,p},destroy:function(){p.disable();b=null;p=e},tailAction:function(a){m="block"===a?"block":"loop"===a?"loop":"natural";return p}};d.push(p);return p}})})(h.$Nav);(function(f){f.build("util.cleanUrl",function(){return function(a,
b){b.https&&(a=a.replace(/^http:\/\//i,"https://"));b.ref&&(a.match(/ref=/g)?a=a.replace(/(ref=)[^&\?]+/g,"ref\x3d"+b.ref):a.match(/ref_=/g)?a=a.replace(/(ref_=)[^&\?]+/g,"ref_\x3d"+b.ref):(a+=a.match(/\?/g)?"\x26":"?",a+="ref_\x3d"+b.ref));b.encode&&(a=encodeURIComponent(a));return a}})})(h.$Nav);(function(f){f.when("$").run("util.session.builder",function(){try{if(!h.sessionStorage)return;h.sessionStorage.setItem("testKey",1);h.sessionStorage.removeItem("testKey")}catch(a){return}f.declare("util.session",
{get:function(a){return h.JSON.parse(h.sessionStorage.getItem(a))},set:function(a,b){h.sessionStorage.setItem(a,h.JSON.stringify(b))},getString:function(a){return h.sessionStorage.getItem(a)},setString:function(a,b){h.sessionStorage.setItem(a,b)}})})})(h.$Nav);(function(f){h.navbar={};f.build("api.publish",function(){h.navbar.use=function(a,b){f.when("api."+a).run(b)};return function(a,b){h.navbar[a]=b;f.publish("nav."+a,b);f.declare("api."+a,b)}});f.when("$","$F","config","agent","data","async",
"api.publish","util.node","util.Proximity","util.Aligner","util.ajax","phoneHome","flyouts","flyouts.anchor","subnav.builder","searchBar","provider.dynamicMenu","util.ClickOut","SignInRedirect","fixedBar","pinnedNav","constants","flyouts.cover","nav.inline").run("PublishAPIs",function(a,b,e,d,c,k,l,m,n,g,q,p,u,x,r,y,t,E,v,w,D,C,A){var B=a("#navbar"),z=a(h),G={getFlyout:u.get,lockFlyouts:function(a){a&&u.hideAll();u.lockAll()},unlockFlyouts:u.unlockAll,toggleFlyout:function(a,b,c){if(a=u.get(a))a.unlock(),
!0===b?a.show():!1===b?a.hide():a.isVisible()?a.hide():a.show(),c&&a.lock()},setCartCount:function(a,b){c({cartCount:a});e.ewc&&(f.when("ewc.flyout").run(function(b){b&&(e.ewc.cartCount=parseInt(a,10),b.ableToPersist()&&b.persist({noAnimation:!0}))}),e.ewc.isCompactEWCRendered&&!b&&H.when("EWC").execute(function(a){a.refresh()}))},setVehicleCartCount:function(a){c({vehicleCartCount:a})},overrideCartButtonClick:function(b){e.ewc||(a("#nav-cart").click(b),a("#nav-cart-menu-button").click(b))},getLightningDealsData:function(){return e.lightningDeals||
{}},unHideSWM:function(){var b=a("#navHiddenSwm"),c=e.swmStyleData;if(b.length&&c){var d=a("#nav-swmslot");d.parent().attr("style",c.style||"");d.children().css("display","none");b.css("display","");p.exposure(b.attr("data-selection-id"))}},navDimensions:function(){var b=B.offset();b.height=B.height();b.bottom=b.top+b.height;b.fixedBottom=B.hasClass("nav-fixed")?Math.max(z.scrollTop()+a("#nav-belt").height(),b.bottom):b.bottom;return b},fixedBar:function(a){w&&(!1===a?w.disable():w.enable())},pinnedNav:function(a){D&&
(!1===a?D.disable():D.enable())},sidePanel:function(d){if(!e.primeDay){d=a.extend({flyoutName:null,data:null,dataAjaxUrl:null},d);var k=d.flyoutName;"yourAccount"===k&&e.accountList&&(k="accountList");var g=u.get(k),l=function(a){if(a){var b={};b[g.sidePanel.dataKey]=a;c(b)}};if(g&&g.sidePanel&&g.sidePanel.dataKey){if(d.data)return l(d.data),!0;if(d.dataAjaxUrl&&g.link)return k=b.once().on(function(){q({url:d.dataAjaxUrl,dataType:"json",success:function(a){l(a)}})}),g.isVisible()?k():(n.onEnter(g.link,
[20,100,60,100],k),g.onShow(k),g.link.focus(k)),!0}return!1}},createTooltip:function(b){b=a.extend({arrow:"top",timeout:1E4,cover:!1,addCloseX:!1,disableCoverPinned:!0,clickCallback:null,closeOnMouseOut:!1},b);var c=G.createFlyout(b);if(c){var d=a.extend(c,{addCloseX:function(){d.elem().append('\x3cdiv class\x3d"nav-tooltip-close nav-timeline-icon"\x3e\x3c/div\x3e')},fadeIn:function(a,b){d.isVisible()||(d.show(),d.elem().css("opacity",0).fadeTo(a||400,1,b))},fadeOut:function(a,b){if(d.isVisible()){d.hide();
var c=d.elem();c.show();c.css("opacity",1).fadeTo(a||400,0,function(){b&&b();c.hide().css("opacity",1)})}}});b.addCloseX&&d.addCloseX();b.cover&&A(d,b.disableCoverPinned);b.clickCallback&&d.elem().click(function(c){a(c.target).hasClass("nav-tooltip-close")?d.hide():b.clickCallback()});var e=null,k=b.timeout,g=E.newInstance(),l=function(){clearTimeout(e);d.fadeOut(400,function(){g.disable()})};d.elem().hover(function(){d.show();d.elem().stop().css("opacity",1);clearTimeout(e)},function(){"none"!==
k?e=setTimeout(l,k):b.closeOnMouseOut&&l()});g.ignore(d.elem()).action(l).enable();d.onShow(function(){if("none"!==k)e=setTimeout(l,k);else{var b=a(document);b.scroll(function(){b.scrollTop()>C.REMOVE_COVER_SCROLL_HEIGHT&&l()})}});f.when("navDismissTooltip").run(function(){d.hide();d.lock()});return d}},createFlyout:function(c){c=a.extend(!0,{name:null,content:"\x3cdiv\x3e\x3c/div\x3e",arrow:null,className:"",align:{from:"bottom center",to:"top center",base:"#navbar",alignTo:null,offsetTo:"#navbar"},
onAlign:b.noOp},c);if(c.name&&c.content){var d=u.create({name:c.name,buildNode:function(){var b=a("\x3cdiv class\x3d'"+c.className+"'\x3e\x3c/div\x3e");"top"===c.arrow&&b.append("\x3cdiv class\x3d'nav-arrow'\x3e\x3cdiv class\x3d'nav-arrow-inner'\x3e\x3c/div\x3e\x3c/div\x3e");b.append(m.create(c.content));return b}}),e=null;d.onAlign(function(){if(!e){c.align.target=d.elem();c.align.base=a(c.align.base);c.align.alignTo=a(c.align.alignTo||x());c.align.offsetTo=a(c.align.offsetTo);var b=new g(c.align);
e=function(){b.align();c.onAlign.apply(d,arguments)}}e()});f.declare("flyoutAPI."+c.name.replace(" ",""),d);return d}},update:function(b){if(e.signInOverride){var d=a('#navbar [data-nav-role\x3d"signin"]');a.each(d,function(b,c){v.setRedirectUrl(a(c),null,null)})}return b instanceof Object?(b.cart&&b.cart.data&&"count"===b.cart.type&&G.setCartCount(b.cart.data.count),b.catsubnav&&r(b.catsubnav),b.searchbar&&"searchbar"===b.searchbar.type&&c({searchbar:b.searchbar.data}),b.swmSlot&&(b=b.swmSlot.swmContent,
d=a("#nav-swmslot"),b.data&&"html"===b.type&&1===d.length&&d.html(b.data)),!0):!1},updateSearchDropdown:function(a){return y.updateSearchDropdownCard(a)},showSubnav:function(){var b=a("#nav-subnav");b&&(b.style.display="block")},hideSubnav:function(){var b=a("#nav-subnav");b&&(b.style.display="none")},hasSubnav:function(){return!!a("#nav-subnav")},getSearchBackState:function(){return e.searchBackState||{}},removePrimeExperience:function(){c({isPrime:!1})}},I;for(I in G)G.hasOwnProperty(I)&&l(I,G[I]);
f.publish("navbarJSLoaded")});f.when("$","data").run("setupRefreshPrime",function(a,b){b.observe("isPrime",function(b){b||(a("#nav-logo").removeClass("nav-prime-1"),a(".nav-logo-tagline").text("Try Prime"),a(".nav-logo-tagline").attr("href","/gp/prime/ref\x3dnav_logo_prime_join"),a("#nav-link-amazonprime .nav-line-1").text("Try"))})})})(h.$Nav);(function(f){f.when("$","subnav.initFlyouts","nav.inline").run("subnav.init",function(a,b){var e=a("#nav-subnav");0<e.length&&b();var d=location.href.toLowerCase().split("?");
a("a[data-nav-link-highlight]",e).each(function(){var b=this.href.toLowerCase().split("?"),e=0;2===d.length&&2===b.length?-1<d[0].indexOf(b[0])&&d[1]===b[1]&&(e=1):1===d.length&&1===b.length&&-1<d[0].indexOf(b[0])&&(e=1);e&&(b=a(this),b.attr("data-nav-link-bold")&&b.css({"font-weight":"bold"}),b.attr("data-nav-link-color")&&b.css({color:b.attr("data-nav-link-color")}),b.attr("data-nav-link-bottom-style")&&b.css({"border-bottom":b.attr("data-nav-link-bottom-style")}))})});f.when("$","subnav.initFlyouts",
"constants","nav.inline").build("subnav.builder",function(a,b,e){a("#navbar");return function(d){var c=a("#nav-subnav");0===c.length&&(c=a("\x3cdiv id\x3d'nav-subnav'\x3e\x3c/div\x3e").appendTo("#navbar"));var k=location.href.toLowerCase().split("?");c.html("");c.hide();if(d.categoryKey&&d.digest){c.attr("data-category",d.categoryKey).attr("data-digest",d.digest).attr("class",d.category.data.categoryStyle);d.style?c.attr("style",d.style):c.attr("style")&&c.removeAttr("style");var l=function(b){if(b&&
b.href){var d="nav-a",l=b.text,f=b.dataKey;if(!l&&!b.image)if(f&&0===f.indexOf(e.ADVANCED_PREFIX))l="",d+=" nav-aText";else return;l=b.image?"\x3cimg src\x3d'"+b.image+"'class\x3d'nav-categ-image' \x3e\x3c/a\x3e":l;d=a("\x3ca href\x3d'"+b.href+"' class\x3d'"+d+"'\x3e\x3c/a\x3e");l=a("\x3cspan class\x3d'nav-a-content'\x3e"+l+"\x3c/span\x3e");"image"===b.type&&(l.html(""),d.addClass("nav-hasImage"),b.rightText="");b.bold&&!b.image&&d.addClass("nav-b");b.floatRight&&d.addClass("nav-right");b.flyoutFullWidth&&
"0"!==b.flyoutFullWidth&&d.attr("data-nav-flyout-full-width","1");if(b.src){var m=["nav-image"];b["absolute-right"]&&m.push("nav-image-abs-right");b["absolute-right"]&&m.push("nav-image-abs-right");a("\x3cimg src\x3d'"+b.src+"' class\x3d'"+m.join(" ")+"' alt\x3d'"+(b.alt||"")+"' /\x3e").appendTo(l)}b.rightText&&l.append(b.rightText);l.appendTo(d);f&&(a("\x3cspan class\x3d'nav-arrow'\x3e\x3c/span\x3e").appendTo(d),d.attr("data-nav-key",f).addClass("nav-hasArrow"));b.highlightLink&&(d.attr("data-nav-link-highlight",
b.highlightLink),f=b.href.toLowerCase().split("?"),l=0,2===k.length&&2===f.length?-1<k[0].indexOf(f[0])&&k[1]===f[1]&&(l=1):1===k.length&&1===f.length&&-1<k[0].indexOf(f[0])&&(l=1),l&&(b.highlightLinkBold&&d.css({"font-weight":"bold"}),b.highlightLinkColor&&d.css({color:b.highlightLinkColor}),b.highlightLinkBottomStyle&&d.css({"border-bottom":b.highlightLinkBottomStyle})));d.appendTo(c);c.append(document.createTextNode(" "))}};d.category&&d.category.data&&(d.category.data.bold=!0,l(d.category.data));
if(d.subnav&&"linkSequence"===d.subnav.type)for(var f=0;f<d.subnav.data.length;f++)l(d.subnav.data[f]);c.show();b()}}});f.when("$","$F","panels","debugStream","util.Proximity","provider.subnavFlyouts","util.mouseOut","flyouts.create","cover","flyouts.accessibility","provider.advancedSubnavFlyouts","advKeyDecoder","constants","util.Aligner","flyouts.anchor","flyouts","config").build("subnav.initFlyouts",function(a,b,e,d,c,k,l,m,n,g,h,p,u,x,r,y,t){var q=null,v=l(),w=null,D=u.ADVANCED_PREFIX,C=a("#navbar"),
A=function(){k.fetch();h.fetchLazy()},B={},z=function(c){var d=c.attr("data-nav-key"),e=c.attr("data-event"),k=c.attr("data-nav-flyout-full-width"),l=c.attr("data-nav-asinsubnav-flyout");if(d){l=k&&l?"nav-fullWidthSubnavFlyout nav-asinsubnav-flyout":k?"nav-fullWidthSubnavFlyout":"nav-subnavFlyout";y.destroy(d);var h=p(d),q=m({key:d,panelDataKey:h?D+h.jsonkey+"Content":d,link:c,event:{t:"subnav",id:e},fullWidth:!!k,className:l,arrow:"top",suspendTabbing:!0,aligner:k?F:function(b){var c=b.$link.find(".nav-arrow, .nav-icon"),
d=t.rightMarginAlignEnabled&&b.$flyout.find(".right-margin-subnav-flyout").length?"top rightArrow":"top center",e=new x({base:c,target:b.$flyout,from:"bottom center",to:d,anchor:"top",alignTo:r(),constrainTo:C,constrainBuffer:[3,0,0,3],constrainChecks:[!0,!1,!1,!0],offsetTo:C}),k=new x({base:c,target:a(".nav-arrow",b.$flyout),offsetTo:C,alignTo:b.$flyout,anchor:"top center",from:"center",to:"center"});return function(){e.align();k.align();b.$flyout.addClass("nav-subnavFlyout-nudged")}}});if(h){d=
h.jsonkey;c.setSubnavText=function(a){var b=c.find(".nav-arrow");c.html(a).removeClass("nav-hasAtext").append(b)};var u=D+d;B[u]={flyout:q,link:c};f.declare(D+d+".flyout",function(){return B[u].flyout});f.declare(D+d+".toplink",function(){return B[u].link})}var G=g({link:c,onEscape:function(){q.hide();c.focus()}});q.groups.add("subnavFlyoutGroup");v.add(c);v.add(q.elem());q.getPanel().onData(function(a){a.flyoutWidth&&q.elem().css({width:a.flyoutWidth})});q.getPanel().onRender(b.once().on(function(){G.elems(a(".nav-hasPanel, a",
q.elem()))}));q.onHide(function(){G.disable()});q.onShow(function(){var a=w;w=this;a&&a!==this&&a.hide();n.hide()});q.onShow(A)}};return function(){h.refresh();h.fetchOnload();var b=a("#nav-subnav");q&&q.unbind();q=c.onEnter(b,[20,40,40,40],A);a("a[data-nav-key]",b).each(function(){z(a(this))});v.onEnter(function(){});v.onLeave(function(){w&&w.hide();w=null});v.enable()}});f.when("$","dataPanel","advKeyDecoder","constants","metrics","subnav.initShelf").run("subnav.shelf.create",function(a,b,e,d,c,
k){var l=a("#nav-subnav-content-shelf");if(0!==l.length){l=l.data("nav-key");e=e(l);var f=new Date;b=b({dataKey:e?d.ADVANCED_PREFIX+e.jsonkey+"Content":l,className:"subnav-shelf-content",spinner:!0,visible:!0,timeoutDataKey:null,timeoutDelay:5E3});b.onRender(function(){c.count("subnav_shelf_render_latency",new Date-f)});a("#nav-subnav-content-shelf").html(b.elem());k()}});f.when("$","provider.subnavContentShelf","provider.advancedSubnavShelf").build("subnav.initShelf",function(a,b,e){if(0!==a("#nav-subnav-content-shelf").length)return function(){b.fetch();
e.refresh();e.fetchAll()}})})(h.$Nav);(function(f){f.when("constants").build("advKeyDecoder",function(a){return function(b){if(!b||0!==b.indexOf(a.ADVANCED_PREFIX))return!1;b=b.split(":");var e=b.length;return 4>e?!1:{jsonkey:b[e-2],endpoint:b.slice(1,-2).join(":"),onload:"1"===b[e-1]}}})})(h.$Nav);(function(f){f.when("Observer").build("searchBar.observers",function(a){return{scopeChanged:new a}});f.when("$","$F","agent","config","onOptionClick","async","searchMetrics","searchBar.observers","nav.inline").run("searchBar",
function(a,b,e,d,c,k,l,f){function m(){var c=b.noOp;return{active:c,inactive:c,clearBlur:c,focus:c,blur:c,keyListener:c,form:a(),input:{hasValue:c,val:c,el:a()},scope:{prevIndex:null,init:c,hasTextChanged:c,text:c,value:c,digest:c,selectedIndex:c,set:c,getOptions:function(){return a()},appendOption:c},facade:{init:c,resize:c,text:c,update:c,select:c}}}function g(){c(t,function(){z.clearBlur();B.update();B.select();v.focus()});t.change(B.update).keyup(z.keyListener).blur(z.blur);t.focus(function(){p.length||
z.clearBlur();x.addClass("nav-focus")}).blur(function(){x.removeClass("nav-focus")});r.click(function(a){v.focus();return!1})}if(e.ie6)return m();var q=a("#nav-search");if(0===q.length)return m();d=a(h);var p=a("#navbar.layout2"),u=a(".nav-searchbar",q),x=a(".nav-search-scope",q),r=a(".nav-search-facade",q),y=a(".nav-search-label",r),t=a(".nav-search-dropdown",q),E=a(".nav-search-submit",q);q=a(".nav-search-submit .nav-input",q);var v=a("#twotabsearchtextbox"),w=a(".srch_sggst_flyout"),D=new l({scopeSelect:t,
inputTextfield:v,submitButton:q,issContainer:w});D.init();var C=null;l={hasValue:function(){var a=!!v.val();u[a?"addClass":"removeClass"]("nav-hasTerm");return a},val:function(a){if(a)v.val(a);else return v.val()},el:v};var A={prevIndex:null,init:b.once().on(function(){A.prevIndex=t[0].selectedIndex}),hasTextChanged:function(){return A.prevIndex!==t[0].selectedIndex},text:function(){A.prevIndex=t[0].selectedIndex;var b=a("option:selected",t);return 0===b.length?null:b.html()},value:function(){var b=
a("option:selected",t);return 0===b.length?null:b.val()},digest:function(a){return a?(t.attr("data-nav-digest",a),a):t.attr("data-nav-digest")},selectedIndex:function(b){if(0<b||0===b){t.attr("data-nav-selected",b);a("option",t).eq(b).attr("selected","selected");var c=a("option",t).eq(b).text(),d=t.attr("title");v.attr("placeholder")&&d&&c&&v.attr("placeholder",d+" "+c.trim());return b}return t.attr("data-nav-selected")},set:function(b,c,d){A.prevIndex=null;if(c&&c===A.digest())d!==A.selectedIndex()&&
A.selectedIndex(d||0);else{t.blur().empty();for(var e=0;e<b.length;e++){var k=b[e],g=k._display||"";delete k._display;a("\x3coption /\x3e").html(g).attr(k).appendTo(t)}A.digest(c||" ");A.selectedIndex(d||0)}},getOptions:function(){return a("option",t)},appendOption:function(a){a.appendTo(t);B.update()}};var B={formAction:"/s/ref\x3d",searchAlias:"search-alias",init:b.once().on(function(){r.attr("data-value")!==A.value()&&B.update();A.init()}),resize:function(){if(x.is(":visible")){var a=x.outerHeight(),
b=t.outerHeight();t.css({top:(a-b)/2});y.css({width:"auto"});a=p.length?150:140;v.width()<a&&(a=Math.max(0,u.width()-a-E.width()-(x.outerWidth(!0)-y.width())),y.css({width:a.toString()+"px"}));a=x.width();(e.iOS||t.width()<a)&&t.width(a)}},text:function(a){if(!a)return y.text();y.html(a);f.scopeChanged.notify(a);B.resize()},update:function(){A.hasTextChanged()&&B.text(A.text())},select:function(){if(z&&z.form&&z.form.attr("dd-ref")){var a=z.form.attr("action");if(a&&a.startsWith(B.formAction)){var b=
A.value();if(b&&b.startsWith(B.searchAlias)&&(b=b.split("\x3d"),2===b.length&&(b=b[1],a=a.split("\x3d"),2===a.length))){a=a[1];var c=B.formAction;a.match(/^nb_sb_(no)?ss(?!.*_sa_)/)?c+=a+"_sa_"+b:a.match(/^nb_sb_(no)?ss.*_sa_/)&&(c+=a.replace(/^(.*_sa_).*$/,"$1"+b));z.form.attr("action",c)}}}}};var z={active:function(){u.addClass("nav-active")},inactive:function(){u.removeClass("nav-active")},clearBlur:function(){C&&(clearTimeout(C),C=null)},focus:function(){z.active();z.clearBlur()},blur:function(){C&&
(clearTimeout(C),C=null);C=setTimeout(function(){z.inactive();z.clearBlur()},300)},keyListener:function(a){13===a.which&&v.focus();9!==a.which&&16!==a.which&&B.update()},updateSearchDropdownCard:function(b){b=a("\x3cdiv/\x3e").append(b);var c=a(".nav-search-scope",b),d=a(".nav-search-facade",b),e=a(".nav-search-label",b),k=a(".nav-search-dropdown",b);return 0<c.length&&0<d.length&&0<e.length&&0<k.length?(x=c,r=d,y=e,t=k,a("#nav-search-dropdown-card").empty().append(b.children()),D.updateScopeSelect(t),
g(),!0):!1},form:u,input:l,scope:A,facade:B};g();v.focus(z.focus).blur(z.blur);q.blur(z.blur);q.focus(function(){p.length||z.clearBlur();E.addClass("nav-focus")}).blur(function(){E.removeClass("nav-focus")});d.resize(b.throttle(300).on(B.resize));v[0]===document.activeElement&&z.focus();k(B.init);return z});f.when("data","searchBar").run("searchBarUpdater",function(a,b){a.observe("searchbar",function(a){var d=a["nav-metadata"]||{};a.options&&(b.scope.set(a.options,d.digest,d.selected),b.facade.update(),
b.facade.resize())})});f.when("searchBar","search-js-autocomplete").run("SddIss",function(a,b){b.keydown(function(b){setTimeout(function(){a.keyListener(b)},10)});f.declare("SddIssComplete")});f.when("$","agent").build("onOptionClick",function(a,b){return function(e,d){var c=a(e);if(b.mac&&b.webkit||b.touch&&!b.ie10)c.change(function(){d.apply(c)});else{var k={click:0,change:0};e=function(a,b){return function(){k[a]=(new Date).getTime();100>=k[a]-k[b]&&d.apply(c)}};c.click(e("click","change")).change(e("change",
"click"))}}});f.when("$","searchBar","iss.flyout","searchBar.observers").build("searchApi",function(a,b,e,d){var c={};c.val=b.input.val;c.on=function(a,c){if(a&&c&&"function"===typeof c)switch(a){case "scopeChanged":d.scopeChanged.observe(c);break;case "issShown":e.onShow(c);break;case "issHidden":e.onHide(c);break;default:b.input.el.bind(a,c)}};c.scope=function(a){if(a)b.facade.text(a);else return b.facade.text()};c.options=function(c,d){c&&(c=a(c),d&&c.attr("selected","selected"),b.scope.appendOption(c));
return b.scope.getOptions()};c.action=function(a){if(a)b.form.attr("action",a);else return b.form.attr("action")};c.submit=function(a){a&&"function"!==typeof a?b.form.submit(a):b.form.submit()};c.flyout=e;return c})})(h.$Nav);(function(f){f.when("$","flyoutAPI.SearchSuggest","config","cover","nav.inline").run("issHackery",function(a,b,e,d){var c=a("#nav-iss-attach"),k=a("#nav-search .nav-searchbar");b.onAlign(function(){a("div:first-child",this.elem()).css({width:c.width()})});b.onShow(function(){d.show();
k.addClass("nav-issOpen")});b.onHide(function(){d.hide();k.removeClass("nav-issOpen")})})})(h.$Nav);(function(f){f.when("$","$F","panels","config","debugStream","nav.inline").build("cover",function(a,b,e,d,c){var k=a(document),l=a(h),f=a("#navbar"),n=function(){},g=e.create({name:"cover",visible:!1,rendered:!0,elem:function(){return a("\x3cdiv id\x3d'nav-cover'\x3e\x3c/div\x3e").click(function(){return n.apply(this,arguments)}).appendTo(f)}});g.LAYERS={ALL:6,BELT:5,MAIN:2,SUB:1,NONE:"auto"};g.setLayer=
function(a){a&&a in g.LAYERS||(a="NONE");g.elem().css({zIndex:g.LAYERS[a]})};g.setClick=function(a){a&&"function"===typeof a||(a=b.noOp);n=a};var q=function(){var b=Math.max(k.height(),l.height())-f.offset().top,c=a(".nav-ewc-persistent-hover").hasClass("nav-ewc-full-height-persistent-hover"),d=a(".nav-ewc-persistent-hover").hasClass("nav-ewc-compact-view");c||d?g.elem().css({height:b,width:f.outerWidth()+a("#nav-flyout-ewc").outerWidth()}):g.elem().css({height:b})};g.onShow(function(a){a=a||{};c("Cover: Show");
g.setLayer(a.layer);g.setClick(a.click);q();a=100;if(d.fullWidthCoreFlyout||d.flyoutAnimation)a=550;g.elem().fadeIn(a,function(){var a=g.elem().get(0);a.style.removeAttribute&&a.style.removeAttribute("filter")});l.resize(q)});g.onHide(function(){c("Cover: Hide");g.elem().stop().fadeOut(100,function(){g.elem().css("opacity","0.6")});l.unbind("resize",q)});return g})})(h.$Nav);(function(f){f.when("$","$F","data","config","flyout.yourAccount","provider.ajax","util.Proximity","logEvent","sidepanel.yaNotis").iff({name:"sidepanel.yaNotis",
op:"falsey"}).run("sidepanel.csYourAccount",function(a,b,e,d,c,k,l,f){if(!d.primeDay){var m=!0,g=!1,h,p,u=function(){g||(m=!1,h&&(h(p),g=!0))};b=function(){return{register:function(a,b){g||(h=a,p=b);m||u()}}}();var x={count:0,decrement:function(){x.count=Math.max(x.count-1,0)}},r=function(){var b=a("#csr-hcb-wrapper"),c=a(".csr-hcb-content",b);b.remove();if(1!==c.length)return u(),!1;f({t:"hcb"});e({"yourAccount-sidePanel":{html:c[0].outerHTML}});return!0};if(!d.csYourAccount||!d.csYourAccount.url)return m=
r(),b;var y=k({url:d.csYourAccount.url,data:{rid:d.requestId},success:function(b){if(b)if(1>(((b.template||{}).data||{}).items||[]).length)r();else{var k=b.template.name;if(k){b={"yourAccount-sidePanel":b};"notificationsList"===k?f({t:"csnoti"}):("discoveryPanelList"===k||"discoveryPanelSummary"===k)&&f({t:"discoverypanel"});if("notificationsList"===k)c.sidePanel.onRender(function(){var b=this.elem(),e=a(".nav-item",b).not(".nav-title");x.count=e.length;var k=function(){var c=b.height();a(".nav-item",
b).each(function(){var b=a(this);c-=b.outerHeight(!0);b[0<=c?"show":"hide"]()})},g=function(b){a.ajax({url:d.csYourAccount.url,type:"POST",data:{dismiss:b.attr("data-noti-id"),rid:d.requestId},cache:!1,timeout:500});var e=b.parent();e.slideUp(300,function(){e.remove();k()});x.decrement();0===x.count&&(c.sidePanel.hide(),r()||(b=a("#nav-flyout-profile").find(".nav-column"),b=b.eq(3),b.removeClass("nav-column-break")))};b.bind("click",function(b){var c=a(b.target);if(c.is(".nav-noti-list-x"))return g(c),
b.preventDefault(),!1})});e(b)}else r()}else r()},error:r});k=function(){y.fetch()};c.onShow(k);c.link.focus(k);l.onEnter(c.link,[20,40,40,40],k);return b}})})(h.$Nav);(function(f){f.when("$","$F","agent","flyouts","fixedBarWithEwcHandling").build("fixedBar",function(a,b,e,d,c){function k(){v&&0!==v.length||(v=a("#nav-belt"));var b=a(h).width(),c=a(".nav-ewc-persistent-hover #nav-flyout-ewc");c=c&&0<c.length&&c[0]?c[0].offsetWidth:0;0==c?v.css("width","100%"):v.css("width",b-c+"px")}function l(){var a=
q.scrollTop();a>w?D-=(a-w)/2:a<w&&(D+=(w-a)/2);D=Math.max(-C,Math.min(0,D));v.css("top",D+"px");w=a;A=!1}function f(){A||(h.requestAnimationFrame(l),A=!0)}var n=!1,g=!1,q,p,u,x,r,y,t,E,v,w,D,C,A=!1,B=b.once().on(function(){q=a(h);a("#navbar");p=a("#nav-main");u=a("#nav-shop");x=a("#nav-search");r=a("#nav-tools");y=a("#nav-swmslot");a("#nav-xshop-container");t=a("#nav-main \x3e .nav-left");a("#nav-main \x3e .nav-right");E=a("#nav-main \x3e .nav-fill");v=a("#nav-belt");0<E.find("#nav-shop").length&&
u.detach().appendTo(t);w=q.scrollTop();D=0;C=v?v.outerHeight():0}),z=function(){r.css({right:""});y.show();x.css({left:0,right:0});v.removeClass("nav-updated-pinned-config");a("#navbar").hasClass("layout3")||a("#nav-belt \x3e .nav-left").css({width:a("#nav-logo").outerWidth(!0)+a("#nav-hamburger-menu").outerWidth(!0)});c.setRelative();g=!1};a(h).resize(function(){k()});var G=function(){v&&0!==v.length||(v=a("#nav-belt"));var b=q.scrollTop();0<b&&d.hideAll();g&&p.offset().top>=b?z():!g&&p.offset().top<
b&&(v.addClass("nav-updated-pinned-config"),k(),g=!0)};return{enable:function(){n||e.ie6||e.quirks||(B(),q.bind("scroll.navFixed",G),q.bind("scroll.navFixed",f),G(),n=!0)},disable:function(){n&&(q.unbind("scroll.navFixed"),z(),n=!1)}}})})(h.$Nav);(function(f){f.when("$","$F","constants","metrics","config","agent","page.domReady").build("carousel",function(a,b,e,d,c,k){function l(a){a=a.children();for(var b=a.length,c=0,d=0;d<b;d++)c+=a.eq(d).width();return c+e.CAROUSEL_WIDTH_BUFFER}function f(){r.css({width:C,
"float":"left"})}function n(c){y.hover(function(){t.fadeIn()},function(){t.fadeOut()});z.resize(b.throttle(300).on(function(){A=a("#navbar").width();r.css("left","0");v.removeClass("nav-feed-control-disabled");E.addClass("nav-feed-control-disabled");f()}));E.click(function(a){a.preventDefault();u(c);return!1});v.click(function(a){a.preventDefault();p(c);return!1});k.touch&&h.addEventListener("touchstart",x,!1)}function g(a){w.bind("mouseenter",function(){a.mouseOutUtility&&a.mouseOutUtility.changeTimeout(600)});
y.bind("mouseenter",function(){a.mouseOutUtility&&a.mouseOutUtility.changeTimeout(0)})}function q(a,b){d.increment("nav-"+a.getName()+"-"+b+"-arrow-clicked");c.pageType&&d.increment("nav-"+a.getName()+"-"+b+"-arrow-clicked-"+c.pageType.toLowerCase())}function p(a){E.removeClass("nav-feed-control-disabled");var b=parseInt(r.css("left"),10);if(isNaN(b)||null===b)b=0;var c=A-C;b-=B;b<c&&(b=c);r.animate({left:b},300,function(){b===c&&v.addClass("nav-feed-control-disabled")});q(a,"right")}function u(a){v.removeClass("nav-feed-control-disabled");
var b=r.css("left");b=parseInt(b,10)+B;0<b&&(b=0);r.animate({left:b},300,function(){0===b&&E.addClass("nav-feed-control-disabled")});q(a,"left")}function x(){y.addClass("nav-carousel-swipe");t.remove()}var r,y,t,E,v,w,D,C,A,B,z;return{create:function(b,c){var d=l(b);0===b.parent(".nav-carousel-container").length&&d>=a(h).width()&&0<a(".nav-timeline-item").length&&(r=b,r.wrap('\x3cdiv class\x3d"nav-carousel-container"\x3e\x3c/div\x3e'),r.after('\x3cdiv class\x3d"nav-control-hidden"\x3e\x3ca class\x3d"nav-feed-carousel-control nav-feed-left nav-feed-control-disabled " href\x3d"#"\x3e\x3cspan class\x3d"nav-timeline-icon nav-feed-arrow"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class\x3d"nav-control-hidden nav-control-hidden-right"\x3e\x3ca class\x3d"nav-feed-carousel-control nav-feed-right" href\x3d"#"\x3e\x3cspan class\x3d"nav-timeline-icon nav-feed-arrow"\x3e\x3c/span\x3e\x3c/a\x3e\x3c/div\x3e'),
y=r.parent(".nav-carousel-container"),t=y.find(".nav-feed-carousel-control"),E=y.find(".nav-feed-left"),v=y.find(".nav-feed-right"),w=y.find(".nav-control-hidden"),D=r.children(":first").width(),C=l(r),A=y.width(),B=A-D,z=a(h),f(),n(c),g(c))},readjust:function(a){r=a;C=l(r);C<=A&&(a=y.parent(),a.append(r),a.css("width","100%"),y.remove(),r.css("left",0))}}})})(h.$Nav);(function(f){f.when("$","metrics","page.domReady").run("navbackToTopButton",function(a,b){a("#navBackToTop").click(function(){b.increment("nav-backToTop");
document.documentElement.scrollTop=0;a("#nav-logo-sprites").focus()})})})(h.$Nav);(function(f){f.when("$","getRefTag","metrics").run("xshopImpressions",function(a,b,e){var d=a("#nav-xshop");if(0!==d.length){var c=d.offset().top+d.outerHeight();a("#nav-xshop \x3e .nav-ul \x3e .nav-li \x3e .nav-div \x3e .nav-a").each(function(){var d=b(a(this).attr("href"));d&&a(this).offset().top+a(this).outerHeight()<c&&e.increment("Nav:Xshop:Impression:"+d)})}})})(h.$Nav);(function(f,a){"object"===typeof h.P&&"function"===
typeof h.P.when&&"function"===typeof h.P.register&&"function"===typeof h.P.execute&&a.when("A").register("navDesktopAssetsGlowWidgetConstants",function(a){return{ADDRESS_SELECTIONS_ENDPOINT:"/portal-migration/hz/glow/get-rendered-address-selections"}})})(h.$Nav,H);(function(f,a){"object"===typeof h.P&&"function"===typeof h.P.when&&"function"===typeof h.P.register&&"function"===typeof h.P.execute&&a.when("A","packardGlowIngressJsEnabled").execute(function(a){var b=F;a.on("a:popover:beforeShow:glow-modal",
function(){b=document.activeElement});a.on("a:popover:afterHide:glow-modal",function(d){d.popover.attrs("restoreFocusOnHide",!1);a.delay(function(){document.body.contains(b)&&b.focus()},400)})})})(h.$Nav,H);(function(f){f.when("configComplete").run("buildConfigObject",function(){if(!f.getNow("config")){var a={},b=f.stats(),e;for(e in b)if(b.hasOwnProperty(e)){var d=e.split("config.");2===d.length&&(a[d[1]]=b[e].value)}f.declare("config",a)}});f.when("$","data","debug.param","page.domReady").build("dataProviders.primeTooltip",
function(a,b,e){var d=!1,c={load:function(){if(!d){var c=a("#nav-prime-tooltip").html();return c?(b({primeTooltipContent:{html:c}}),d=!0):!1}}};e("navDisablePrimeTooltipData")||c.load();return c});f.when("$","now","debugStream","data","util.ajax","debug.param","metrics","logUeError").build("provider.ajax",function(a,b,e,d,c,k,l,f){var m=function(a){var c={},d=function(a){a=a||{};var b="";try{b=h.JSON.stringify(a)}catch(y){b=a.url+"?";a=a.data||{};for(var c in a)a.hasOwnProperty(c)&&"string"===typeof a[c]&&
(b+=c+":"+a[c]+";")}return b};return{add:function(a){c[d(a)]=b()},ok:function(e){return(e=c[d(e)])?e<b()-a:!0},reset:function(){c={}}}};return function(b){b=a.extend({throttle:24E4},b);var g=null,p=m(b.throttle);b.dataType="json";var h={fetch:function(m){m=a.extend(!0,{},m||{},b);if(g)setTimeout(function(){h.fetch(m)},250);else{if(m.isNavyaanContent||m.isRawHTMLContent||m.isNavyaanData)m.dataType="html";if(p.ok(m)){var n=new Date,q=m.success,t=m.error;m.error=function(a,b,c){if(m.isShoppingPortalAjax){var d=
(a.responseText||"").split("\x3c!-- sp:error_pages --\x3e")[0];try{if(JSON.parse(d).data&&q&&"function"===typeof q){q(d);return}}catch(C){}}f({logLevel:"ERROR",message:"AJAX call failed for "+m.url+" with "+b+": "+c});m.data&&(d=m.data.metricKey||"")&&l.increment(d+"-AjaxCallCountError");t&&"function"===typeof t&&t(a,b,c)};m.success=function(a){if(k("navDisableAjax"))m.error&&"function"===typeof m.error&&m.error();else{g=null;p.add(m);m.isShoppingPortalAjax&&(a=JSON.parse(a).data);if(a){var b=/\x3c!--.*--\x3e/g;
m.isNavyaanContent?eval(a.replace(b,"")):m.isNavyaanData&&d(JSON.parse(a.replace(b,"")));m.dataKey&&(b={},b[m.dataKey]=a,a=b);m.data&&(b=m.data.metricKey||"")&&(l.increment(b+"-AjaxCallCount"),l.count(b+"-AjaxLatency",new Date-n));m.isRawHTMLContent||d(a)}q&&q(a)}};e("Ajax Data Provider Fired",m);g=c(m)}}},boundFetch:function(a){return function(){h.fetch(a)}},reset:function(){g&&(g.abort(),g=null);p.reset()}};return h}});f.when("$","provider.generic.subnav.flyoutAndShelf","constants").build("provider.subnavFlyouts",
function(a,b,e){return b(F,function(b){var c=[];a("a[data-nav-key]",b).each(function(){var b=a(this).data("nav-key");0!==b.indexOf(e.ADVANCED_PREFIX)&&c.push(b)});return c},F)});f.when("$","provider.generic.subnav.flyoutAndShelf","constants").build("provider.subnavContentShelf",function(a,b,e){var d=a("#nav-subnav-content-shelf");if(0!==d.length)return b(d,function(b){b=a(b).data("nav-key");var c=[];if(0===b.indexOf(e.ADVANCED_PREFIX))return c;c.push(b);return c},"_nav_shelf_cs")});f.when("$","config",
"provider.ajax").build("provider.generic.subnav.flyoutAndShelf",function(a,b,e){return function(d,c,k){var l=e({url:b.subnavFlyoutUrl}),f=l.fetch;l.fetch=function(b){var e=a("#nav-subnav");if(0!==e.length){var l=e.data("category");l&&(e=c(d?d:e),0!==e.length&&(b=a.extend(!0,b||{},{isNavyaanData:!0,dataKey:"subnavFlyout",data:{ajaxTemplate:"subnavFlyout",subnavCategory:l,keys:1===e.length?e[0]:e.join(";"),metricKey:k?l+k:F},isShoppingPortalAjax:!0}),f(b)))}};return l}});f.when("$","provider.generic.advanced.subnav.flyoutAndShelf",
"constants").build("provider.advancedSubnavFlyouts",function(a,b,e){return b(F,function(b){var c=[];a("a[data-nav-key]",b).each(function(){var b=a(this).data("nav-key");0===b.indexOf(e.ADVANCED_PREFIX)&&c.push(b)});return c},F)});f.when("$","provider.generic.advanced.subnav.flyoutAndShelf","constants").build("provider.advancedSubnavShelf",function(a,b,e){var d=a("#nav-subnav-content-shelf");if(0!==d.length)return b(d,function(b){b=a(b).data("nav-key");var c=[];0===b.indexOf(e.ADVANCED_PREFIX)&&c.push(b);
return c},"_nav_shelf_cs")});f.when("$","$F","data","provider.ajax","constants","advKeyDecoder").build("provider.generic.advanced.subnav.flyoutAndShelf",function(a,b,e,d,c,k){return function(b,m,h){var g=c.ADVANCED_PREFIX,l,p,n,x=function(){l=[];p=[];n=[];var c=a("#nav-subnav");if(0!==c.length){var q=c.data("category");c=m(b?b:c);if(0!==c.length)for(var x=function(a){if(a=k(a)){var b=a.endpoint,c={jsonkey:a.jsonkey};n[b]?n[b].push(c):(n[b]=[c],c=d({data:{metricKey:q&&h?q+h:F},url:b,timeout:1E4,error:function(){for(var a=
n[b],c=0;c<a.length;c++){var d={};d[g+a[c].jsonkey+"Content"]=e.get("genericError");e(d)}},success:function(a){if(a&&"object"===typeof a)for(var b in a)if(a.hasOwnProperty(b)){var c=g+b+".flyout",d=g+b+".toplink",k={};k[g+b+"Content"]=a[b];e(k);a&&a[b]&&a[b].js&&f.when("$",c,d).run("[rcx-nav] adv-panel-"+c,a[b].js)}}}),a.onload?p.push(c):l.push(c))}},r=0;r<c.length;r++)x(c[r])}},r={refresh:function(){x()},fetchOnload:function(){for(var a=0;a<p.length;a++)p[a].fetch()},fetchLazy:function(){for(var a=
0;a<l.length;a++)l[a].fetch()},fetchAll:function(){r.fetchOnload();r.fetchLazy()}};return r}});f.when("util.templates","data").run("provider.templates",function(a,b){b.observe("templates",function(b){for(var d in b)b.hasOwnProperty(d)&&b[d]&&a.add(d,b[d])})});f.when("config","provider.ajax").build("provider.dynamicMenu",function(a,b){return b({url:a.dynamicMenuUrl,data:a.dynamicMenuArgs})});f.when("config","provider.ajax").build("provider.genericMenu",function(a,b){return b({url:"/gp/navigation/ajax/generic.html",
data:{rid:a.requestId},isNavyaanContent:!0})});f.when("config","provider.ajax").build("provider.genericNavyaanData",function(a,b){return b({url:"/gp/navigation/ajax/generic.html",data:{rid:a.requestId},isNavyaanData:!0})});f.when("config","provider.ajax").build("provider.spAjaxEndpoint",function(a,b){return function(e,d){return b({url:"/nav/ajax/"+e,data:{rid:a.requestId},isNavyaanContent:!d,isNavyaanData:d,isShoppingPortalAjax:!0})}});f.when("config","data","provider.ajax","debug.param").build("provider.amazonfresh",
function(a,b,e,d){return e({url:"/fsx/storeingress/fresh/flyout/desktop",data:{rid:a.requestId},success:function(a){b({amazonfreshContent:{html:a.html||""}})},error:function(){var c=document.createElement("a");c.href="/alm/storefront?almBrandId\x3dQW1hem9uIEZyZXNo\x26ref\x3dnav_primefresh_startshop";c.innerHTML={en_US:"Start shopping",es_US:"Comenzar a comprar",en_GB:"Start shopping",de_DE:"Einkauf beginnen",nl_NL:"Begin met winkelen",pl_PL:"Rozpocznij zakupy",tr_TR:"Alışverişe başla",cs_CZ:"Začít s nákupem",
fr_FR:"Commencer à acheter",it_IT:"Inizia lo shopping",es_ES:"Empezar a comprar",pt_PT:"Começar a comprar",ja_JP:"ショッピングを開始",zh_CN:"开始购物",en_SG:"Start shopping"}[a.languageCode]||"Start shopping";b({amazonfreshContent:{html:c.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.groceries",function(a,b,e,d){var c={en_US:"Explore grocery shopping options",es_US:"Explore las opciones de compra de comestibles",cs_CZ:"Prozkoumejte možnosti nákupu potravin",de_DE:"Entdecken Sie Einkaufsmöglichkeiten",
fr_FR:"Explorez les options d'achat d'épicerie",zh_CN:"探索杂货店购物选择",pt_PT:"Explore as opções de compras de supermercado",it_IT:"Esplora le opzioni per fare la spesa",es_ES:"Explore las opciones de compra de comestibles",ja_JP:"食料品の買い物オプションを探す",en_GB:"Explore grocery shopping options",nl_NL:"Ontdek mogelijkheden om boodschappen te doen",tr_TR:"Market alışverişi seçeneklerini keşfedin",pl_PL:"Przeglądaj opcje zakupów spożywczych",en_SG:"Explore grocery shopping options",en_AE:"Explore grocery shopping options",
ar_AE:"اكتشف خيارات تسوق البقالة",en_IN:"Explore grocery shopping options",hi_IN:"किराने की खरीदारी के विकल्प तलाशें",mr_IN:"किराणा खरेदीचे पर्याय एक्सप्लोर करा",bn_IN:"মুদি কেনাকাটার বিকল্পগুলি অন্বেষণ করুন",kn_IN:"ದಿನಸಿ ಶಾಪಿಂಗ್ ಆಯ್ಕೆಗಳನ್ನು ಅನ್ವೇಷಿಸಿ",ml_IN:"പലചരക്ക് ഷോപ്പിംഗ് ഓപ്ഷനുകൾ പര്യവേക്ഷണം ചെയ്യുക",ta_IN:"மளிகை ஷாப்பிங் விருப்பங்களை ஆராயுங்கள்",te_IN:"కిరాణా షాపింగ్ ఎంపికలను అన్వేషించండి"},k=function(){var b=a.languageCode.toString(),d=function(a){return'\x3ca href\x3d"/fmc/learn-more?ref\x3dnav_cs_dsk_grfl_lm"\x3e'+
a+"\x3c/a\x3e"};return c.hasOwnProperty(b)?{html:d(c[b])}:{html:d("Explore grocery shopping options")}};return e({url:"/fsx/storeingress/groceries/flyout/desktop",data:{rid:a.requestId},success:function(a){var c="";a.html&&(c=a.html);b({groceriesContent:{html:c}})},error:function(){b({groceriesContent:k()})}})});f.when("config","data","provider.ajax","debug.param").build("provider.amazonprime",function(a,b,e,d){return e({url:"/hz/primenavigation/primeflyout",data:{isPrime:a.isPrimeMember,rid:a.requestId},
success:function(a){b({amazonprimeContent:{html:a.content||""}})},error:function(){var c=document.createElement("a");c.href=a.isPrimeMember?"/amazonprime?_encoding\x3dUTF8\x26ref\x3dprime_flyout_err":"/gp/prime/pipeline/membersignup";c.innerHTML="Prime Flyout";b({amazonprimeContent:{html:c.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.abCatAccountLink",function(a,b,e,d){return e({url:"/abcatflyout/accountLinking",success:function(a){b({abCatAccountLinkContent:{html:a.html||
""}})},error:function(){var a=document.createElement("a");a.href="/business/register/welcome?return_to\x3d%2F\x26ref_\x3dnav_ab_acc_link";a.innerHTML="Check the latest status of your verification";b({abCatAccountLinkContent:{html:a.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.abCatAcquisition",function(a,b,e,d){return e({url:"/abcatflyout/acquisition",success:function(a){b({abCatAcquisitionContent:{html:a.html||""}})},error:function(){var a=document.createElement("a");
a.href="/business/register/org/landing?ref_\x3dnav_ab_acq_flyout_image";a.innerHTML="Find work supplies with exclusive deals at Amazon Business";b({abCatAcquisitionContent:{html:a.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.abCatClaimedDomain",function(a,b,e,d){return e({url:"/abcatflyout/claimedDomain",success:function(a){b({abCatClaimedDomainContent:{html:a.html||""}})},error:function(){var a=document.createElement("a");a.href="/ab/invitations/s/request-to-join?ref_\x3dnav_ab_claimed";
a.innerHTML="Request to join your organization’s account for business purchases";b({abCatClaimedDomainContent:{html:a.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.abCatPendingInvitation",function(a,b,e,d){return e({url:"/abcatflyout/pendingInvitation",success:function(a){b({abCatPendingInvitationContent:{html:a.html||""}})},error:function(){var a=document.createElement("a");a.href="/ab/invitations/s/pending-invitation?ref_\x3dnav_ab_pending";a.innerHTML=
"Your organization has invited you to make business purchases with their account";b({abCatPendingInvitationContent:{html:a.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.abCatShuma",function(a,b,e,d){return e({url:"/abcatflyout/shuma",success:function(a){b({abCatShumaContent:{html:a.html||""}})},error:function(){var a=document.createElement("a");a.href="/business/register/welcome?return_to\x3d%2F\x26ref_\x3dnav_ab_shuma";a.innerHTML="Check the latest status of your verification";
b({abCatShumaContent:{html:a.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.giftCards",function(a,b,e,d){var c={en_US:"Browse All Gift Cards",es_US:"Explora todas las tarjetas de regalo",cs_CZ:"Procházet všechny dárkové karty",de_DE:"Alle Geschenkkarten durchsuchen",fr_FR:"Explorer toutes les cartes-cadeaux",zh_CN:"浏览所有礼品卡",pt_PT:"Procurar todos os cartões oferta",it_IT:"Sfoglia tutti i buoni regalo",es_ES:"Ver todas las tarjetas regalo",ja_JP:"すべてのギフト券を見る",
en_GB:"Browse All Gift Cards",nl_NL:"Bekijk alle cadeaubonnen",tr_TR:"Tüm Hediye Kartlarına Göz At",pl_PL:"Przeglądaj wszystkie karty podarunkowe",en_SG:"Browse All Gift Cards",en_AE:"Browse All Gift Cards",ar_AE:"تصفح جميع بطاقات الهدايا",en_IN:"Browse All Gift Cards",hi_IN:"सभी गिफ़्ट कार्ड देखें",mr_IN:"सर्व गिफ्ट कार्ड पहा",bn_IN:"সব উপহার কার্ড দেখুন",kn_IN:"ಎಲ್ಲಾ ಉಡುಗೊರೆ ಕಾರ್ಡ್‌ಗಳನ್ನು ವೀಕ್ಷಿಸಿ",ml_IN:"എല്ലാ ഗിഫ്റ്റ് കാർഡുകളും ബ്രൗസ് ചെയ്യുക",ta_IN:"அனைத்து கிஃப்ட் கார்டுகளிலும் உலாவவும்",te_IN:"అన్ని గిఫ్ట్ కార్డులను బ్రౌజ్ చేయండి",
da_DK:"Gennemse alle gavekort",en_CA:"Browse all gift cards",fr_CA:"Parcourir toutes les cartes-cadeaux",pt_BR:"Procure todos os cartões-presente",es_MX:"Explora todas las tarjetas de regalo",en_AU:"Browse All Gift Cards",sv_SE:"Bläddra bland alla presentkort"},k={ATVPDKIKX0DER:"2238192011",A2EUQ1WTGCTBG2:"9230166011",A1AM78C64UM0Y8:"19117234011",A1F83G8C2ARO7P:"1571304031",A1PA6795UKMFR9:"1571256031",A13V1IB3VIYZZH:"2524127031",A1RKKUPIHCS9HS:"3564279031",APJ6JRA9NG5V4:"3557017031",A1VC38T7YXB528:"2351652051",
A39IBJ37TRP1C6:"5264602051",A33AVAJ2PDY3EV:"16594144031",A2VIGQ35RCS4UG:"15149951031",AAHKV2X7AFYLW:"311868071",A21TJRUUN4KGV:"3704982031",A17E79C6D8DWNP:"16636846031",A1805IZSGTT6HS:"16241984031",A19VAU5U5O7RUS:"6876351051",A2NODRKZP88ZB9:"20512852031",AMEN7PMS3EDWL:"27156732031",A1C3SOZRARQ6R3:"20657799031"},l=function(){var b=a.languageCode.toString(),d=a.marketplaceId.toString(),e=function(a){var b=document.createElement("a");b.href=d&&k.hasOwnProperty(d)?"b/ref\x3dnav_cs_gift_cards_shop_all_gift_cards_error?node\x3d"+
k[d]:"/gift-cards/ref\x3dnav_cs_gift_cards_shop_all_gift_cards_error";b.innerText=a;return b};return c.hasOwnProperty(b)?{html:e(c[b])}:{html:e(c.en_US)}};return e({url:"/gc/flyout/desktop",data:{rid:a.requestId},success:function(a){var c="";a.html&&(c=a.html);b({giftCardsContent:{html:c}})},error:function(){b({giftCardsContent:l()})}})});f.when("config","data","provider.ajax","debug.param").build("provider.abCatActivation",function(a,b,e,d){return e({url:"/abcatflyout/activation",success:function(a){b({abCatActivationContent:{html:a.html||
""}})},error:function(){var a=document.createElement("a");a.href="/business/register/org/status?ref_\x3dnav_ab_activation_flyout";a.innerHTML="Check the latest status of your verification";b({abCatActivationContent:{html:a.outerHTML}})}})});f.when("config","data","provider.ajax","debug.param").build("provider.health",function(a,b,e,d){var c={en_US:"See all health services",es_US:"Ver todos los servicios de salud",en_GB:"See all health services",de_DE:"Alle Gesundheitsprodukte bei Amazon entdecken",
nl_NL:"Winkel alle gezondheidsproducten op Amazon",pl_PL:"Przeglądaj wszystkie oferty w kategorii Zdrowie na Amazon",tr_TR:"Tüm sağlık ürünlerini Amazon'da satın alabilirsiniz",cs_CZ:"Nakupujte veškeré produkty pro své zdraví na Amazonu",fr_FR:"Acheter dans toute la section santé sur Amazon",it_IT:"Acquista tutti i prodotti per la salute su Amazon",es_ES:"Ver todos los servicios de salud",pt_PT:"Comprar todos os produtos de saúde na Amazon",ja_JP:"Amazonですべてのヘルスケアから購入する",zh_CN:"在亚马逊上购买所有保健商品",en_SG:"See all health services"},
k=function(){var b=a.languageCode.toString(),d=function(a){var b=document.createElement("a");b.href="https://health.amazon.com/?ref\x3dnav_cs_ahi_homepage";b.innerText=a;return b};return c.hasOwnProperty(b)?{html:d(c[b])}:{html:d(c.en_US)}};return e({url:"/hst/healthingress/flyout/desktop",data:{rid:a.requestId},success:function(a){var c="";a.html&&(c=a.html);b({healthContent:{html:c}})},error:function(){b({healthContent:k()})}})});f.when("config","data","provider.ajax","debug.param").build("provider.pharmacy",
function(a,b,e,d){var c={en_US:"How it works",es_US:"Entiende cómo funciona",en_GB:"How it works",de_DE:"So funktioniert es",nl_NL:"Hoe het werkt",pl_PL:"Jak to działa",tr_TR:"Nasıl çalışır?",cs_CZ:"Jak to funguje",fr_FR:"Comment ça marche",it_IT:"Come funziona",es_ES:"Entiende cómo funciona",pt_PT:"Como funciona",ja_JP:"仕組み",zh_CN:"工作原理",en_SG:"How it works"},k=function(){var b=a.languageCode.toString(),d=function(a){var b=document.createElement("a");b.href="https://pharmacy.amazon.com/how-it-works/?ref_\x3dnav_cs_ahi_ap_homepage";
b.innerText=a;return b};return c.hasOwnProperty(b)?{html:d(c[b])}:{html:d(c.en_US)}};return e({url:"/hst/healthingress/pharmacy/flyout/desktop",data:{rid:a.requestId},success:function(a){var c="";a.html&&(c=a.html);b({pharmacyContent:{html:c}})},error:function(){b({pharmacyContent:k()})}})})})(h.$Nav);(function(f){f.when("$","$F","config","dataPanel","flyout.yourAccount","provider.ajax","util.Proximity").iff({name:"config",prop:"carnac"}).run("carnac",function(a,b,e,d,c,k,l){if(e.carnac.url){var f=
d({id:"nav-carnac-panel",dataKey:"yourAccountCarnacContent",className:"nav-flyout-content",spinner:!0,visible:!0});c.elem().append(f.elem());var h=c.getPanel();h.elem().remove();c.getPanel=function(){return f};var g=k({url:e.carnac.url,dataKey:"yourAccountCarnacContent",data:{rid:e.requestId}}),q=b.once().delay(5E3).on(function(){f.isRendered()||(f.elem().remove(),c.elem().append(h.elem()),c.getPanel=function(){return h})});a=function(){g.fetch();q()};c.onShow(a);c.link.focus(a);l.onEnter(c.link,
[20,40,40,40],a)}})})(h.$Nav);(function(f){f.when("config.flyoutURL","debug.param","btf.full").run("provider.remote",function(a,b){a&&!b("navDisableJsonp")&&(b=document.createElement("script"),b.setAttribute("type","text/javascript"),b.setAttribute("src",a),(document.head||document.getElementsByTagName("head")[0]).appendChild(b))});f.when("$","$F","provider.dynamicMenu","provider.genericMenu","provider.genericNavyaanData","provider.spAjaxEndpoint","provider.amazonprime","provider.abCatAccountLink",
"provider.abCatAcquisition","provider.abCatActivation","provider.abCatPendingInvitation","provider.abCatClaimedDomain","provider.abCatShuma","provider.amazonfresh","provider.groceries","provider.health","provider.pharmacy","provider.giftCards","util.Proximity","config","flyout.amazonfresh","flyout.groceries","flyout.amazonprime","flyout.wishlist","flyout.accountList","flyout.timeline","flyout.abCatAccountLink","flyout.abCatAcquisition","flyout.abCatActivation","flyout.abCatPendingInvitation","flyout.abCatClaimedDomain",
"flyout.abCatShuma","flyout.health","flyout.pharmacy","flyout.giftCards","bindFlyoutAnchorReftagMetrics","flyout.groceriesFlyoutUpdate").run("bindProvidersToEvents",function(a,b,e,d,c,k,l,m,h,g,q,p,u,x,r,y,t,E,v,w,D,C,A,B,z,G,I,K,P,Q,M,L,J,O,N,F,H){if(!w.primeDay){var n={prefetchGatewayHero:b.once().on(function(){w.prefetchGatewayHero&&"function"===typeof w.prefetchGatewayHero&&w.prefetchGatewayHero()}),setupAmazonFreshFlyout:function(){if(D){var a=x.boundFetch({data:{amazonfreshContent:"amazonfresh",
metricKey:"amazonfreshMetric"}});n._bindProviderToEvents(D,D.link,a);v.onEnter(D.link,[20,40,40,40],function(){a();n.prefetchGatewayHero()})}},setupGroceriesFlyout:function(){if(C){f.publish("nav.refreshGroceriesProvider",function(){r.reset();w.groceriesFlyoutNeedsRefresh=!0});var a=r.boundFetch({data:{groceriesContent:"groceries",metricKey:"groceriesMetric"}});n._bindProviderToEvents(C,C.link,a);v.onEnter(C.link,[20,40,40,40],function(){w.groceriesFlyoutHasBeenFetchedBefore||(a(),w.groceriesFlyoutHasBeenFetchedBefore=
!0,w.groceriesFlyoutNeedsRefresh=!1);w.groceriesFlyoutNeedsRefresh&&(a(),H(),w.groceriesFlyoutNeedsRefresh=!1);C.onShow(function(){F(C.elem().find(".f3-cgi-flyout-section a"),"Grocery",!0,!0,"Store");F(C.elem().find(".f3-cgi-flyout-static-links-section a"),"Grocery",!0,!0,"Store");F(C.elem().find(".f3-cgi-store-finder-section-container a"),"Grocery",!0,!0,"StoreFinder")});n.prefetchGatewayHero()},1E3)}},_getWishlistFetch:function(){var a={wishlistItems:"wishlist",metricKey:"wishlistMetric",ajaxTemplate:"wishlist"};
w.alexaListEnabled&&(a.alexaItems="alexa",a.metricKey="alexaMetric");return k("wishlist",!0).boundFetch({data:a})},setupTimeline:function(){var a=[100,100,100,100];w.timelineAsinPriceEnabled&&(a=[20,50,30,30]);var b=k("timeline",!1).boundFetch({data:{timelineContent:"timeline",pageType:w.pageType,subPageType:w.subPageType,metricKey:"timelineMetric",ajaxTemplate:"timeline"}});n._bindProviderToEvents(G,G.link,b);v.onEnter(G.link,a,function(){b();n.prefetchGatewayHero()})},setupWishlistFlyout:function(){var a=
n._getWishlistFetch(),b=B;w.accountList&&(b=z);n._bindProviderToEvents(b,b.link,a);v.onEnter(b.link,[20,20,40,100],function(){a();n.prefetchGatewayHero()})},setupAmazonPrimeFlyout:function(){if(A){var a=l.boundFetch({data:{amazonprimeflyoutContent:"amazonprime",metricKey:"primeMetric"}});n._bindProviderToEvents(A,A.link,a);v.onEnter(A.link,[20,40,40,40],function(){a();n.prefetchGatewayHero()})}},setupAccountListFlyout:function(){if(z)if(w.accountListFlyoutRedesign){var a=d.boundFetch({data:{accountListRedesignContent:"accountListRedesign",
metricKey:"accountListRedesignMetric",ajaxTemplate:"accountListFlyoutRedesign"}});n._bindProviderToEvents(z,z.link,a);v.onEnter(z.link,[20,40,40,40],function(){a();n.prefetchGatewayHero()})}else{var b=d.boundFetch({data:{accountListContent:"accountList",metricKey:"accountListMetric",ajaxTemplate:"accountListFlyout"}});n._bindProviderToEvents(z,z.link,b);v.onEnter(z.link,[20,40,40,40],function(){b();n.prefetchGatewayHero()})}},setupABCATAccountLink:function(){if(I){var a=m.boundFetch({data:{abCatAccountLinkContent:"abCatAccountLink",
metricKey:"abCatAccountLinkMetric",pageType:w.pageType,subPageType:w.subPageType}});n._bindProviderToEvents(I,I.link,a);v.onEnter(I.link,[15,15,15,15],function(){a()})}},setupABCATAcquisition:function(){if(K){var a=h.boundFetch({data:{abCatAcquisitionContent:"abCatAcquisition",metricKey:"abCatAcquisitionMetric",pageType:w.pageType,subPageType:w.subPageType}});n._bindProviderToEvents(K,K.link,a);v.onEnter(K.link,[15,15,15,15],function(){a()})}},setupABCATClaimedDomain:function(){if(M){var a=p.boundFetch({data:{abCatClaimedDomainContent:"abCatClaimedDomain",
metricKey:"abCatClaimedDomainMetric",pageType:w.pageType,subPageType:w.subPageType}});n._bindProviderToEvents(M,M.link,a);v.onEnter(M.link,[15,15,15,15],function(){a()})}},setupABCATPendingInvitation:function(){if(Q){var a=q.boundFetch({data:{abCatPendingInvitationContent:"abCatPendingInvitation",metricKey:"abCatPendingInvitationMetric",pageType:w.pageType,subPageType:w.subPageType}});n._bindProviderToEvents(Q,Q.link,a);v.onEnter(Q.link,[15,15,15,15],function(){a()})}},setupABCATShuma:function(){if(L){var a=
u.boundFetch({data:{abCatShumaContent:"abCatShuma",metricKey:"abCatShumaMetric",pageType:w.pageType,subPageType:w.subPageType}});n._bindProviderToEvents(L,L.link,a);v.onEnter(L.link,[15,15,15,15],function(){a()})}},setupGiftCardsFlyout:function(){if(N){var a=E.boundFetch({data:{giftCardsContent:"giftCards",metricKey:"giftCardsMetric"}});n._bindProviderToEvents(N,N.link,a);v.onEnter(N.link,[20,40,40,40],function(){a();N.onShow(function(){F(N.elem().find(".gc-flyout-section a"),"GiftCards",!0,!0,"Store");
F(N.elem().find(".gc-flyout-static-links-section a"),"GiftCards",!0,!0,"Store")});n.prefetchGatewayHero()})}},setupABCATActivation:function(){if(P){var a=g.boundFetch({data:{abCatActivationContent:"abCatActivation",metricKey:"abCatActivationMetric",pageType:w.pageType,subPageType:w.subPageType}});n._bindProviderToEvents(P,P.link,a);v.onEnter(P.link,[15,15,15,15],function(){a()})}},setupHealthFlyout:function(){if(J){var a=y.boundFetch({data:{healthContent:"health",metricKey:"healthMetric"}});n._bindProviderToEvents(J,
J.link,a);v.onEnter(J.link,[20,40,40,40],function(){a();J.onShow(function(){F(J.elem().find(".ahi-flyout-section a"),"Health",!0,!0,"Store");F(J.elem().find(".ahi-flyout-static-links-section a"),"Health",!0,!0,"Store")});n.prefetchGatewayHero()})}},setupPharmacyFlyout:function(){if(O){var a=t.boundFetch({data:{pharmacyContent:"pharmacy",metricKey:"pharmacyMetric"}});n._bindProviderToEvents(O,O.link,a);v.onEnter(O.link,[20,40,40,40],function(){a();O.onShow(function(){F(O.elem().find(".ahi-ap-flyout-section a"),
"Pharmacy",!0,!0,"Store");F(O.elem().find(".ahi-ap-flyout-static-links-section a"),"Pharmacy",!0,!0,"Store")});n.prefetchGatewayHero()})}},_bindProviderToEvents:function(a,b,c){a.onShow(c);b.focus(c)},init:function(){n.setupAmazonPrimeFlyout();n.setupWishlistFlyout();n.setupABCATAccountLink();n.setupABCATAcquisition();n.setupABCATActivation();n.setupAmazonFreshFlyout();n.setupGroceriesFlyout();n.setupHealthFlyout();n.setupPharmacyFlyout();n.setupGiftCardsFlyout();n.setupABCATPendingInvitation();n.setupABCATClaimedDomain();
n.setupABCATShuma();w.isPureAjaxALF&&n.setupAccountListFlyout();w.timeline&&n.setupTimeline()}};n.init()}})})(h.$Nav);(function(f){f.when("$","$F","panels","util.checkedObserver","flyouts.anchor","flyouts.fixers","metrics","config","nav.inline").run("flyouts",function(a,b,e,d,c,k,l,f){var m={};a(h).bind("resize",function(){for(var a in m)m.hasOwnProperty(a)&&m[a].align()});return{create:function(b){b=a.extend({enableFlyoutBuffer:!0,elem:function(){var d=b.buildNode?b.buildNode():a("\x3cdiv\x3e\x3c/div\x3e");
d.addClass("nav-flyout").appendTo(b.anchor||c());b.enableFlyoutBuffer&&d.append("\x3cdiv class\x3d'nav-flyout-buffer-left'\x3e\x3c/div\x3e\x3cdiv class\x3d'nav-flyout-buffer-right'\x3e\x3c/div\x3e\x3cdiv class\x3d'nav-flyout-buffer-top'\x3e\x3c/div\x3e\x3cdiv class\x3d'nav-flyout-buffer-bottom'\x3e\x3c/div\x3e");return d},groups:["flyouts"],transition:{show:function(){g.elem().show();g.flyoutFullyAnimated=!1;if(g.animateDown){a.extend(a.easing,{easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*
b*b+1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c}});var b=g.elem().height();g.elem().stop(!0,!0).css({height:"10px"}).animate({height:b},250,"easeOutCubic",function(){a(this).css("height","auto");g.initiateSidePanel();g.flyoutFullyAnimated=!0});g.elem().find(".nav-flyout-content, #nav-flyout-wl-items, #nav-profile-bottom-bia-wrapper").hide().addClass("nav-add-filter").stop(!0,!0).fadeIn({duration:300,easing:"easeInCubic"},function(){a(this).removeClass("nav-add-filter")})}g.align();
l.increment("nav-flyout-"+g.getName()+"-show");l.increment("nav-flyout-aggregate-show");f.pageType&&l.increment("nav-flyout-"+g.getName()+"-"+f.pageType.toLowerCase()+"-show")},hide:function(){g.elem().stop(!0,!0).hide()}}},b);var g=e.create(b);g.align=d({context:g,check:function(){if(!g.isVisible())return!1}});g.onAlign=g.align.observe;g.show.observe(function(){b.transition.show.apply(g,arguments)});g.hide.observe(function(){b.transition.hide.apply(g,arguments)});g.lock.observe(function(){g.elem().addClass("nav-locked")});
g.unlock.observe(function(){g.elem().removeClass("nav-locked")});k(g);return m[b.name]=g},destroy:function(a){return m[a]?(m[a].destroy(),delete m[a],e.destroy(a),!0):!1},hideAll:function(){e.hideAll({group:"flyouts"})},lockAll:function(){e.lockAll({group:"flyouts",lockKey:"global-flyout-lock-key"})},unlockAll:function(){e.unlockAll({group:"flyouts",lockKey:"global-flyout-lock-key"})},get:function(a){return m[a]},getAll:function(){return m}}});f.when("$","$F").build("flyouts.anchor",function(a,b){return a("#nav-subnav").length?
b.memoize().on(function(){return a("\x3cdiv id\x3d'nav-flyout-anchor' /\x3e").insertAfter("#nav-subnav")}):b.memoize().on(function(){return a("\x3cdiv id\x3d'nav-flyout-anchor' /\x3e").insertAfter("#nav-belt")})});f.when("$","$F","cover","debugStream").build("flyouts.cover",function(a,b,e,d){var c=null,k=!1,l=function(){c&&(clearTimeout(c),c=null)},f=function(){l();k||(c=setTimeout(function(){k||(l(),e.hide(),k=!1);c=null},10))},n=function(){l();e.show({layer:"SUB",click:function(){f();k=!1}})};return function(b,
c){b.onShow(function(){0<a("#navbar.nav-pinned").length&&c||n()});b.onHide(f)}});f.when("$","$F","agent").build("flyouts.fixers",function(a,b,e){return function(d){if(e.kindleFire){var c=a([]);d.onShow(function(){var b=this.elem(),d=a("img[usemap]").filter(function(){return 0===a(this).parents(b).length});c=c.add(d);d.each(function(){this.disabledUseMap=a(this).attr("usemap");a(this).attr("usemap","")})});d.onHide(function(){c.each(function(){a(this).attr("usemap",this.disabledUseMap)});c=a([])})}if(e.touch)d.onShow(function(){var c=
a("video");c.css("visibility","hidden");b.delay(10).run(function(){c.css("visibility","")})})}});f.when("$","$F","agent","config","util.ClickOut","util.mouseOut","util.velocityTracker","util.MouseIntent","debug.param","util.onKey").build("flyouts.linkTrigger",function(a,b,e,d,c,k,l,f,n,g){var m=n("navFlyoutClick");return function(d,e,n,h,q,t,E){t=m||t;var p=new c,w=l(),r=E?k(E):k(),x=null,u=!1,B=function(){x&&(x.cancel(),x=null,u=!1)};a(e).bind("mouseleave",function(){B();d.isVisible()&&(x=(new f(d.elem(),
{slop:0})).onArrive(function(){B()}).onStray(function(){u&&d.hide();B()}))});n?r.add(n):r.add(e);t||r.action(function(){x?u=!0:d.hide()});p.action(function(){d.hide()});d.onShow(b.once().on(function(){var a=d.elem();p.ignore(a);t||(r.add(a),r.enable())}));d.onShow(function(){a(".nav-icon, .nav-arrow",e).addClass("nav-active");a(".nav-icon, .nav-arrow",e).attr("aria-expanded","true");p.enable();w.disable()});d.onHide(function(){a(".nav-icon, .nav-arrow",e).removeClass("nav-active");a(".nav-icon, .nav-arrow",
e).attr("aria-expanded","false");p.disable();B()});d.onLock(function(){d.isVisible()||a(".nav-icon, .nav-arrow",e).css({visibility:"hidden"})});d.onUnlock(function(){a(".nav-icon, .nav-arrow",e).css({visibility:"visible"})});var y=!1,G=b.debounce(500,!0).on(function(){if(d.isVisible()||d.isLocked()){if(q||d.isLocked()){y=!1;return}d.hide()}else d.show();y=!0}),F=function(a){G();if(y||!q)return a.stopPropagation(),a.preventDefault(),!1};e.bind("touchstart",F);e.bind("click",function(b){if(a(b.target).hasClass("nav-arrow")||
a(b.target).closest(".nav-arrow").length)return b.preventDefault(),b.stopPropagation(),d.isLocked()||(d.isVisible()?(d.hide(),a(".nav-arrow",e).attr("aria-expanded","false")):(d.show(),a(".nav-arrow",e).attr("aria-expanded","true"))),!1});g(a(".nav-icon, .nav-arrow",e),function(){if(this.isEnter()||this.isSpace())return F(this.evt)},"keydown");t||e.hover(function(a){a.originalEvent.acknowledge&&a.originalEvent.acknowledge();w.enable();h&&h()},function(){w.disable()});var K=b.debounce(500,!0).on(function(){d.show()});
w.addThreshold({below:40},function(){d.isVisible()||setTimeout(function(){K()},1);w.disable()});a(".nav-icon",e).show().css({visibility:"visible"});return r}});f.when("$","$F","noOp","Observer","util.tabbing","util.onKey","util.onClick").build("flyouts.accessibility",function(a,b,e,d,c,k,l){var f=b.memoize().on(function(){var b=new d;k(a(document),function(){this.isEscape()&&b.notify()},"keydown");return b.boundObserve()});return function(b){b=a.extend({link:null,onEscape:e},b);var d={},m=!1,h=null,
n=!1,x=a([]);f()(function(){m&&(b.onEscape(),d.disable())});k(b.link,function(){(this.isEnter()||this.isSpace())&&d.enable()},"keyup");l(b.link,function(){setTimeout(function(){d.enable()},10)});var r=null,y=function(){h&&(clearTimeout(h),h=null)},t=function(){h&&(clearTimeout(h),h=null);h=setTimeout(function(){},10)},E=function(){!n&&m&&(r=c(x),r.tailAction("loop"),r.enable(),x.focus(y),x.blur(t),r.focus(),n=!0)};d.elems=function(a){n=!1;x.unbind("focus blur");r&&(r.destroy(),r=null);x=a;E()};d.disable=
function(){m=!1;r&&r.disable()};d.enable=function(){m=!0;E();r&&!r.isEnabled()&&(r.enable(),r.focus())};d.flyoutEnabled=function(){m=!0};return d}});f.when("$","$F","agent","dataPanel","config").build("flyouts.sidePanel",function(a,b,e,d,c){return function(k){var l=k.getName();"accountList"===l&&(l="yourAccount");var f=d({dataKey:l+"-sidePanel",className:"nav-flyout-sidePanel-content",spinner:!1,visible:!1,doNotExecuteScripts:!0}),h=b.memoize().on(function(){var b=a("\x3cdiv class\x3d'nav-flyout-sidePanel' /\x3e").appendTo(k.elem()).append(f.elem()),
c=-b.width();k.elem().find(".nav-flyout-buffer-left").css({left:c-10});k.elem().find(".nav-flyout-buffer-top, .nav-flyout-buffer-bottom").css({left:c});return b}),g=function(){if(f.isVisible()&&k.isVisible()){var b=function(){var b=f.elem().height();a(".nav-item",f.elem()).each(function(){var c=a(this);b-=c.outerHeight(!0);c[0<=b?"show":"hide"]()});k.a11ysetup()};c.flyoutAnimation?k.setSidePanelCallback(b):b()}};k.onShow(g);k.onRender(g);f.onShow(function(){h().css({width:"0px",display:"block"}).animate({width:"240px"},
300,"swing",g)});f.onHide(function(){h().animate({width:"0px"},300,function(){a(this).hide()})});f.onRender(f.show);f.onReset(f.hide);if(e.quirks)k.onShow(function(){h().css({height:k.elem().outerHeight()})});k.sidePanel=f}});f.when("$","$F","config","data","dataPanel","logEvent","phoneHome","flyouts","flyouts.cover","flyouts.linkTrigger","flyouts.aligner","flyouts.accessibility","flyouts.sidePanel","debugStream","panels","flyoutMetrics","btf.exists").build("flyouts.create",function(a,b,e,d,c,k,f,
m,h,g,q,p,u,x,r,y){return function(e){e=a.extend({key:null,panelDataKey:null,event:{},elem:null,link:null,altMouseoutElem:null,mouseEnterCallback:null,arrow:null,fullWidth:!1,animateDown:!1,cover:!1,aligner:null,sidePanel:!1,linkCounter:!1,clickThrough:!0,clickTrigger:!1,spinner:!0,className:"nav-coreFlyout",suspendTabbing:!1,disableCoverPinned:!1,timeoutDelay:5E3,mouseoutTimeOut:250,enableFlyoutBuffer:!0,ariaLabel:null},e);e.key&&e.link&&0!==e.link.length||x("Bad Flyout Config (key: "+e.key+")");
"string"===typeof e.event&&(e.event={t:e.event});var l=c({dataKey:e.panelDataKey||e.key+"Content",className:"nav-flyout-content",spinner:e.spinner,visible:!0,timeoutDataKey:e.key+"Timeout",timeoutDelay:e.timeoutDelay}),n=m.create({name:e.key,link:e.link,buildNode:function(){var b=e.elem||a("\x3cdiv id\x3d'nav-flyout-"+e.key+"'\x3e\x3c/div\x3e");b.addClass(e.className);b.attr("aria-modal","false");b.attr("role","dialog");e.ariaLabel&&b.attr("aria-label",e.ariaLabel);e.arrow&&b.append("\x3cdiv class\x3d'nav-arrow'\x3e\x3cdiv class\x3d'nav-arrow-inner'\x3e\x3c/div\x3e\x3c/div\x3e");
b.append(l.elem());return b},anchor:e.anchor,transition:e.transition,enableFlyoutBuffer:e.enableFlyoutBuffer}),w=null;n.onAlign(function(){w||(w=(e.aligner||q)({$flyout:n.elem(),$link:e.link,$key:e.key,arrow:e.arrow,fullWidth:e.fullWidth}));w()});if(e.link){var t=p({link:e.link,onEscape:function(){n.hide();a(".nav-icon, .nav-arrow",e.link).focus()}});n.a11y=t;y.attachTo(n);n.a11ysetup=function(){if(!e.suspendTabbing){var b=a(n.elem().find(".nav-flyout-content").find(".nav-link,\x3ea,\x3espan"));0<
b.length?t.elems(b):t.elems(a(n.elem().find("a")))}};n.onShow(b.once().on(function(){n.a11ysetup()}));n.onShow(function(){t.flyoutEnabled();e.link.addClass("nav-active")});n.onHide(function(){e.link.removeClass("nav-active");t.disable()});n.onShow(function(){if("ewc"!==n.getName()){var b=m.get("ewc");b&&b.isPersistent()&&b.elem().css({zIndex:"1"});(b=a(".nav-ewc-arrow"))&&b.css({borderRight:"6px solid #666666"})}});n.onHide(function(){if("ewc"!==n.getName()){var b=m.get("ewc"),c=a(".nav-ewc-arrow");
b&&b.isPersistent()&&b.elem().css({zIndex:""});c&&c.css({borderRight:""})}})}n.onShow(function(){l.startTimeout()});n.onInteract(b.once().on(function(){k(e.event)}));l.onData(function(a){if("wlTriggers"in a)if(n.hasInteracted()&&n.isVisible())f.trigger(a.wlTriggers);else n.onInteract(b.once().on(function(){f.trigger(a.wlTriggers)}))});n.getPanel=function(){return l};e.sidePanel&&u(n);if(e.link){e.cover&&h(n,e.disableCoverPinned);if(e.linkCounter){var C=b.memoize().on(function(){return a("\x3cspan class\x3d'nav-counter'\x3e\x3c/span\x3e").insertBefore(a(".nav-icon",
e.link))});d.observe(e.key+"-counter",function(a){0>=a?(C().hide(),e.link.removeClass("nav-hasCounter")):(C().show().text(a),e.link.addClass("nav-hasCounter"))})}var A=g(n,e.link,e.altMouseoutElem,e.mouseEnterCallback,e.clickThrough,e.clickTrigger,e.mouseoutTimeOut);n.mouseOutUtility=A;n.animateDown=e.animateDown}n.onDestroy(function(){r.destroy(l.getName())});return n}})})(h.$Nav);(function(f){f.when("$","flyouts.anchor","util.Aligner","config").build("flyouts.aligner",function(a,b,e,d){var c=a("#navbar");
return function(d){d=a.extend({$flyout:null,$link:null,arrow:null,fullWidth:!1},d);var k=new e({base:d.$link,target:d.$flyout,offsetTo:c,constrainTo:c,constrainBuffer:[3,3,0,3],constrainChecks:[!0,!0,!1,!0],alignTo:b(),anchor:"top left",from:"bottom left",to:"nav-flyout-accountList"===d.$flyout.context.id?"top center":"top left",fullWidth:d.fullWidth,fullWidthCss:{"border-radius":"0px","border-right":"0px","border-left":"0px","padding-left":"0px","padding-right":"0px","min-width":"1000px","max-width":c.width()}}),
f=null;"top"===d.arrow&&(f=new e({base:a(".nav-arrow, .nav-icon",d.$link).filter(":visible"),target:a(".nav-arrow",d.$flyout),offsetTo:c,alignTo:d.$flyout,anchor:"top left",from:"center",to:"center"}));return function(){"accountListRedesign"!==d.$key&&k.align();f&&f.align()}}})})(h.$Nav);(function(f){f.when("$","$F","config","flyouts.create","SignInRedirect","dataPanel","util.addCssRule","flyout.accountList").run("flyout.yourAccount",function(a,b,e,d,c,k,f,m){return e.accountList?m:function(){var b=
{t:"ya"};1===a("#nav-noti-wrapper .nav-noti-content").length&&(b.noti=1);var k=!1,f=!1;e.primeDay||(f=k=!0);var l=d({key:"yourAccount",link:a("#nav-link-yourAccount"),event:b,sidePanel:!0,linkCounter:!0,arrow:"top",cover:k,disableCoverPinned:f,animateDown:e.flyoutAnimation}),m=!1;l.getPanel().onData(function(b){b.signInHtml&&!m&&(l.elem().prepend(b.signInHtml),m=!0,e.signInOverride&&(b=a('[data-nav-role\x3d"signin"]',l.elem()),a.each(b,function(b,d){c.setRedirectUrl(a(d),null,null)})))});return l}()});
f.when("$","agent","$F","data","flyout.yourAccount","config.dismissNotificationUrl","config","page.domReady").run("sidepanel.yaNotis",function(a,b,e,d,c,k,f){if(!f.primeDay){var l=a("#nav-noti-wrapper"),n=a(".nav-noti-content",l),g={count:parseInt(n.attr("data-noti-count")||"0",10),render:function(){var a=g.count;1>a&&(a=0);9<a&&(a="9+");d({"yourAccount-counter":a})},decrement:function(){g.count=Math.max(g.count-1,0);g.render()}};l.remove();if(1!==n.length||1>g.count)return!1;c.sidePanel.onRender(function(){var d=
this.elem(),l=a(".nav-noti-item",d).not("#nav-noti-empty"),m=function(){var b=function(){var b=a("#nav-noti-all",d);a(".nav-noti-title");var c=d.height()-b.outerHeight(!0),e=!1;l.each(function(){var b=a(this);e?b.hide():(c-=a(this).outerHeight(),0<c?b.show():(e=!0,b.hide()))})};f.flyoutAnimation?c.setSidePanelCallback(b):b()};l.each(function(){var d=a(this);b.touch?d.addClass("nav-noti-touch"):d.hover(function(){a(this).addClass("nav-noti-hover")},function(){a(this).removeClass("nav-noti-hover")});
a(".nav-noti-x",d).click(function(b){a.ajax({url:k,type:"POST",data:{id:d.attr("data-noti-id")},cache:!1,timeout:500});d.slideUp(300,function(){d.remove();m()});g.decrement();0===g.count&&c.sidePanel.hide();b.preventDefault();return!1}).hover(function(){a(this).addClass("nav-noti-x-hover")},function(){a(this).removeClass("nav-noti-x-hover")})});if(c.isVisible())m();else c.onShow(e.once().on(m))});d({"yourAccount-sidePanel":{html:n[0].outerHTML}});g.render();return!0}});f.when("$","data","logEvent",
"sidepanel.csYourAccount","page.domReady").iff({name:"sidepanel.csYourAccount",op:"falsey"}).run("sidepanel.yaHighConf",function(a,b,e){var d=a("#csr-hcb-wrapper");a=a(".csr-hcb-content",d);d.remove();if(1!==a.length)return!1;e({t:"hcb"});b({"yourAccount-sidePanel":{html:a[0].outerHTML}});return!0});f.when("$","$F","config","flyout.yourAccount","SignInRedirect").run(function(a,b,e,d,c){d.onRender(function(){a("#nav-item-switch-account").click(function(){var b=a("#nav-item-switch-account");c.setRedirectUrl(a(b),
0<=h.location.pathname.indexOf("/gp/buy/thankyou")?(new URL("/",h.location.origin)).href:null,null)})});if(e.yourAccountPrimeURL){var k=b.once().on(function(){(new Image).src=e.yourAccountPrimeURL});d.onRender(function(){a("#nav_prefetch_yourorders").mousedown(function(){k()});if(e.yourAccountPrimeHover){var b=null;a("#nav_prefetch_yourorders").hover(function(){b=h.setTimeout(function(){k()},75)},function(){b&&(h.clearTimeout(b),b=null)})}})}})})(h.$Nav);(function(f){f.when("$","config").build("prime.presentation",
function(a,b){var e={};return function(b,c,k){b={id:b,pt:c,et:(new Date).getTime()};b=a.extend(b,k);k=b;c=[];for(d in k)k.hasOwnProperty(d)&&"et"!==d&&c.push(d+":"+k[d]);c.sort();var d=c.join("|");e[d]||(e[d]=!0,h.ue&&h.ue.log&&h.ue.log(b,"prime-presentation-metrics"))}});f.when("$","config").build("prime.metadata",function(a,b){return function(e){var d={};b.requestId&&(d.r=b.requestId);b.sessionId&&(d.s=b.sessionId);a(e).each(function(b){b=a(this).attr("data-metadata");"string"===typeof b&&Object.prototype.hasOwnProperty.call(h,
"JSON")&&(b=h.JSON.parse(b));var c={};b&&b.hasOwnProperty("customerID")&&(c.cid=b.customerID);b&&b.hasOwnProperty("marketplaceID")&&(c.mid=b.marketplaceID);b&&b.hasOwnProperty("containerRequestID")&&(c.mgid=b.containerRequestID);d=a.extend(d,c);return!1});return d}});f.when("$","$F","config","data","prime.presentation","prime.metadata","flyouts.create","flyouts.accessibility","util.checkedObserver").run("flyout.amazonprime",function(a,b,e,d,c,k,f,m,n){if(!(e.genz&&e.genzMap&&e.genzMap.genzPrime)){var g=
a("#nav-link-amazonprime"),l=function(d){var f=m({link:g,onEscape:function(){d.hide();g.focus()}}),l=0,h=n({check:function(a){return 2===l},observe:function(a){c(1,"PrimeNavigationMenu",k("div#prime-ms3-nav-metadata"))}});d.getPanel().onRender(b.once().on(function(){e.dynamicMenuArgs&&e.dynamicMenuArgs.primeMenuWidth&&d.elem().css({width:e.dynamicMenuArgs.primeMenuWidth+"px"});f.elems(a(".nav-hasPanel, a",d.elem()));d.align();l++;h()}));d.onInteract(b.once().on(function(){l++;h()}));d.onShow(b.once().on(function(){f.elems(a(".nav-hasPanel, a",
d.elem()))}))};return function(){d.observe("primeMenu",function(a){d({primeContent:{html:a}})});var b=a("#pin-flyout-heading-text").text();b=f({key:"amazonprime",link:g,clickThrough:!0,event:"amazonprime",arrow:"top",suspendTabbing:!0,cover:!0,animateDown:e.flyoutAnimation,ariaLabel:b});l(b);return b}()}});f.when("$","$F","flyouts.create","util.Aligner","flyouts.anchor","dataProviders.primeTooltip").run("flyout.primeTooltip",function(a,b,e,d,c,k){if(a("#nav-logo .nav-prime-try").html()){var f=e({key:"primeTooltip",
link:a("#nav-logo .nav-logo-tagline"),event:"prime-tt",arrow:"top",className:"",aligner:function(b){var e=new d({base:b.$link,target:b.$flyout,from:"middle right",to:"middle left",anchor:"top left",alignTo:c(),constrainTo:a("#navbar"),constrainBuffer:[3,0,0,3],constrainChecks:[!0,!1,!1,!0],offsetTo:a("#navbar")});return function(){e.align()}}});f.getPanel().onRender(b.once().on(function(){f.getPanel().elem().attr("id","nav-prime-tooltip")}));f.show.check(function(){if(!this.getPanel().isRendered())return k.load()&&
setTimeout(function(){f.show()},10),!1});a("#nav-prime-tooltip").remove();return f}})})(h.$Nav);(function(f){f.when("$","$F","flyouts.create","util.Aligner","config","cover").build("iss.flyout",function(a,b,e,d,c,k){a("#navbar");var l=a("#nav-search"),m=a("#twotabsearchtextbox"),n=a(".nav-search-field",l),g=a(".nav-search-submit"),q=a(h),p=!c.primeDay,u=b.memoize().on(function(){return a("\x3cdiv id\x3d'nav-flyout-iss-anchor' /\x3e").insertAfter("#nav-belt")}),x=e({key:"searchAjax",className:"nav-issFlyout",
event:"searchAjax",spinner:!1,enableFlyoutBuffer:!1,anchor:u(),aligner:function(a){var b=new d({base:m,target:a.$flyout,from:"bottom left",to:"top left",anchor:"top left",alignTo:u()});return function(){b.align()}}}),r=function(){var b=n.width();b+=g.width();a(x.elem()).width(b)};x.onShow(function(){q.bind("resize",r);r();p&&k.show()});x.onHide(function(){q.unbind("resize",r);p&&k.hide()});f.declare("search.flyout",x);return x})})(h.$Nav);(function(f){f.when("$","$F","config","nav.createTooltip",
"util.ajax","data","logUeError","now","util.Aligner","metrics","page.domReady").iff({name:"config",prop:"primeTooltip"}).run("tooltip.prime",function(a,b,e,d,c,k,f,m,n,g){k={type:"load",isPrime:e.isPrimeMember,referrer:document.referrer,height:a(h).height(),width:a(h).width()};e=e.primeTooltip.url;var l=a("#navbar"),p=a("#nav-link-amazonprime"),u=null,x=b.memoize().on(function(b){var c=a(".nav-arrow",b);return 0<c.length?new n({base:p,target:c,offsetTo:l,alignTo:b,anchor:"top left",from:"center",
to:"center"}):{align:function(){}}});f=a("#nav-xshop");b=a("#nav-link-amazonprime \x3e .nav-a");if(b.length&&f.length)return f=f.offset().top+f.outerHeight(),b.offset().top+b.outerHeight()<f&&c({url:e,data:k,error:function(){g.increment("nav-tooltip-Prime-errorCount")},success:function(b){b&&b.content&&(u=d({key:"primeFlyoutTT",event:"primeFlyoutTT",content:a("\x3cdiv\x3e\x3c/div\x3e").html(b.content),name:"primeFlyoutTT",className:"nav-prime-tt",timeout:1E4,align:{base:p,from:"bottom center",to:"top center",
constrainTo:l,constrainBuffer:[3,3,0,3],constrainChecks:[!0,!0,!1,!0]},arrow:"top",onAlign:function(){x(this.elem()).align()}}),u.fadeIn())}}),u})})(h.$Nav);(function(f){f.when("$","config","flyouts.create","util.ajax","metrics","page.domReady").iff({name:"config",prop:"pseudoPrimeFirstBrowse"}).run("tooltip.pseudoPrime",function(a,b,e,d,c){var f={triggerType:"load",referrer:document.referrer,height:a(h).height(),width:a(h).width()},l=b.pseudoPrimeFirstBrowse.url,m=a("#nav-cart"),n=null;d({url:l,
data:f,error:function(){c.increment("nav-pseudo-prime-first-browse-errorCount")},success:function(c){c&&c.content&&(n=e({key:"pseudoPrimeFirstBrowseMessage",link:m,event:"pseudoPrimeFirstBrowseMessage",arrow:"top",elem:a("\x3cdiv\x3e\x3c/div\x3e").html("\x3cdiv\x3e"+c.content+"\x3c/div\x3e"),className:"nav-pseudo-prime-first-browse-message",spinner:!1,animateDown:b.flyoutAnimation}),n.show())}});return n})})(h.$Nav);(function(f){f.when("$","$F","data","config","flyouts.create","flyouts.accessibility",
"debug.param").run("flyout.cart",function(a,b,e,d,c,k,l){if(!l("navShowCart")&&(d.cartFlyoutDisabled||d.ewc))return!1;var m=a("#nav-cart"),h=c({key:"cart",link:m,event:"cart",className:"nav-cartFlyout",arrow:"top",suspendTabbing:!0,cover:!0,disableCoverPinned:!0}),g=k({link:m,onEscape:function(){h.hide();m.focus()}});h.getPanel().onRender(function(){a("#nav-cart-flyout").removeClass("nav-empty");a(".nav-dynamic-full",h.elem()).addClass("nav-spinner");f.when("CartContent").run("CartContentApply",function(b){e.observe("cartItems",
function(c){b.render(c);var d=0;c.count&&(d=parseInt(c.count,10));c.fresh&&c.fresh.count?d+=parseInt(c.fresh.count,10):c.cart&&c.cart.fresh&&c.cart.fresh.count&&(d+=parseInt(c.cart.fresh.count,10));e({cartCount:d});a(".nav-dynamic-full",h.elem()).removeClass("nav-spinner");g.elems(a(".nav-hasPanel, a",h.elem()));h.isVisible()&&h.align()})})});h.onShow(b.once().on(function(){g.elems(a(".nav-hasPanel, a",h.elem()))}));h.onShow(function(){0<a("#navbar.nav-pinned").length&&h.hide()});return h});f.when("$",
"data","config","nav.inline").run("setupCartCount",function(a,b,e){b.observe("cartCount",function(b){var c={en_US:"${count} item in cart",ml_IN:"${count} കാര്‍ട്ടിലെ ഇനം",zh_TW:"${count} 商品在購物車中",hi_IN:"कार्ट में ${count} आइटम",it_IT:"${count} articolo nel carrello",mr_IN:"कार्टमध्ये${count}वस्तू",kn_IN:"ಕಾರ್ಟ್ ನಲ್ಲಿರುವ ${count} ವಸ್ತು",ar_AE:"${count} سلعة في عربة التسوق",he_IL:"פריט ${count} בעגלה",en_CA:"${count} item in cart",en_GB:"${count} item in shopping basket",en_IE:"${count} item in shopping basket",
cs_CZ:"${count} položka v nákupním košíku",es_MX:"${count} artículo en el carrito",en_ZA:"${count} item in shopping basket",ko_KR:"장바구니의 ${count}개 품목",da_DK:"${count} vare i indkøbskurven",en_AE:"${count} item in cart",ja_JP:"カート内の商品数：${count}",nl_NL:"${count} item in winkelwagen",es_ES:"${count} artículo en la cesta",el_GR:"${count} προϊόν στο καλάθι",fr_CA:"${count} article dans le panier",zh_CN:"购物车中有 ${count} 件商品",es_CL:"${count} artículo en el carrito",nl_BE:"${count} item in winkelwagen",en_AU:"${count} item in shopping basket",
ms_MY:"${count} item dalam troli",bn_IN:"কার্টে ${count} আইটেম",es_CO:"${count} artículo en el carrito",te_IN:"కార్ట్ లో ${count} ఐటమ్",en_IN:"${count} item in cart",pt_BR:"${count} item no carrinho",pl_PL:"Liczba przedmiotów w koszyku: ${count}",en_NG:"${count} item in shopping basket",en_SG:"${count} item in cart",tr_TR:"Alışveriş sepetinde ${count} ürün var",ta_IN:"கார்ட் இல் ${count} பொருள் உள்ளது",es_US:"${count} artículo en el carrito",pt_PT:"${count} produtos no carrinho de compras",ru_RU:"${count} товар в корзине",
fr_BE:"${count} article dans le panier",sv_SE:"${count} artiklar i kundvagnen",de_DE:"${count} Artikel in Einkaufswagen",fr_FR:"${count} article dans le panier"},d={en_US:"${count} items in cart",es_ES:"${count} artículos en la cesta",de_DE:"${count} Artikel in Einkaufswagen",en_AU:"${count} items in shopping basket",pt_PT:"${count} produtos no carrinho de compras",cs_CZ:"${count} položek v košíku",nl_BE:"${count} items in winkelwagen",pl_PL:"Liczba przedmiotów w koszyku: ${count}",en_IN:"${count} items in cart",
kn_IN:"ಕಾರ್ಟ್ ನಲ್ಲಿರುವ ${count} ವಸ್ತುಗಳು",ml_IN:"${count} കാര്‍ട്ടിലെ ഇനങ്ങൾ",hi_IN:"आपकी कार्ट में ${count} आइटम",ta_IN:"கார்ட்டில் ${count}பொருட்கள் உள்ளன",da_DK:"${count} varer i indkøbskurven",es_CO:"${count} artículos en el carrito",he_IL:"${count} פריטים בעגלה",sv_SE:"${count} artiklar i kundvagnen",es_US:"${count} artículos en el carrito",ja_JP:"カート内の商品数：${count}",en_NG:"${count} items in shopping basket",nl_NL:"${count} items in winkelwagen",fr_CA:"${count} articles dans le panier",pt_BR:"${count} itens no carrinho",
en_GB:"${count} items in shopping basket",ko_KR:"장바구니의 ${count}개 품목",ms_MY:"${count} item dalam troli",es_CL:"${count} artículos en el carrito",zh_CN:"购物车中有 ${count} 件商品",en_CA:"${count} items in cart",en_ZA:"${count} items in shopping basket",es_MX:"${count} artículos en el carrito",en_SG:"${count} items in cart",it_IT:"${count} articoli nel carrello",zh_TW:"${count} 商品在購物車中",en_AE:"${count} items in cart",en_IE:"${count} items in shopping basket",fr_BE:"${count} articles dans le panier",fr_FR:"${count} articles dans le panier",
el_GR:"${count} προϊόντα στο καλάθι",bn_IN:"কার্টে ${count} আইটেম আছে",mr_IN:"कार्टमध्ये${count}आयटम",ru_RU:"${count} товаров в корзине",tr_TR:"Alışveriş sepetinde ${count} ürün var",te_IN:"కార్ట్ లో ${count} ఐటమ్ లు",ar_AE:"${count} سلع في عربة التسوق"},f={en_US:"${count} items in cart",ml_IN:"${count} കാര്‍ട്ടിലെ ഇനങ്ങൾ",kn_IN:"ಕಾರ್ಟ್ ನಲ್ಲಿರುವ ${count} ವಸ್ತುಗಳು",hi_IN:"आपकी कार्ट में ${count} आइटम",ko_KR:"장바구니의 ${count} 품목",ja_JP:"カート内の商品数：${count}",en_GB:"${count} items in shopping basket",el_GR:"${count} προϊόντα στο καλάθι",
zh_CN:"购物车中有 ${count} 件商品",pt_BR:"${count} itens no carrinho",pl_PL:"Liczba przedmiotów w koszyku: ${count}",en_NG:"${count} items in shopping basket",de_DE:"${count} Artikel in Einkaufswagen",en_IN:"${count} items in cart",pt_PT:"${count} produtos no carrinho de compras",ms_MY:"${count} item dalam troli",es_CL:"${count} artículos en el carrito",nl_NL:"${count} items in winkelwagen",ta_IN:"கார்ட்டில் ${count}பொருட்கள் உள்ளன",en_AU:"${count} items in shopping basket",cs_CZ:"Počet položek v nákupním košíku: ${count}",
fr_FR:"${count} articles dans le panier",tr_TR:"Alışveriş sepetinde ${count} ürün var",es_CO:"${count} artículos en el carrito",en_AE:"${count} items in cart",en_CA:"${count} items in cart",es_ES:"${count} artículos en la cesta",he_IL:"${count} פריטים בעגלה",en_IE:"${count} items in shopping basket",da_DK:"${count} varer i indkøbskurven",it_IT:"${count} articoli nel carrello",en_ZA:"${count} items in shopping basket",es_MX:"${count} artículos en el carrito",nl_BE:"${count} items in winkelwagen",es_US:"${count} artículos en el carrito",
zh_TW:"${count} 商品在購物車中",ar_AE:"${count} سلع في عربة التسوق",te_IN:"కార్ట్ లో ${count} ఐటమ్ లు",fr_CA:"${count} articles dans le panier",fr_BE:"${count} articles dans le panier",en_SG:"${count} items in cart",bn_IN:"কার্টে ${count} আইটেম আছে",mr_IN:"कार्टमध्ये${count}आयटम",ru_RU:"${count} товаров в корзине",sv_SE:"${count} artiklar i kundvagnen"},m=a("#nav-cart-menu-button-count .nav-cart-count, #nav-cart .nav-cart-count"),h=a("#nav-cart .nav-cart-count");b+="";b.match(/^(|0|[1-9][0-9]*|99\+)$/)||
(b=0);b=parseInt(b,10)||0;h.removeClass("nav-cart-0 nav-cart-1 nav-cart-10 nav-cart-20 nav-cart-100");var g=0===b?"nav-cart-0":10>b?"nav-cart-1":20>b?"nav-cart-10":100>b?"nav-cart-20":"nav-cart-100";m.html(100<=b?"99+":b.toString());h.addClass(g);m=e.languageCode.toString();m=m in f?m:"en_US";c=(c=1<b?f[m]:1===b?c[m]:d[m])?c.replace("${count}",100<=b?"99+":b.toString()):c;a("#nav-cart").attr("aria-label",c);0===b?(a("#nav-cart-one, #nav-cart-many").hide(),a("#nav-cart-zero").show()):1>=b?(a("#nav-cart-zero, #nav-cart-many").hide(),
a("#nav-cart-one").show()):(a("#nav-cart-zero, #nav-cart-one").hide(),a("#nav-cart-many").show())})});f.when("$","data","nav.inline").run("setupVehicleCartCount",function(a,b){b.observe("vehicleCartCount",function(b){b=String(b);b.match(/^(|0|[1-9][0-9]*|99\+)$/)||(b=0);b=parseInt(b,10)||0;100<=b&&(b="99+");a("#cosworth-subnav-cart-count").html(b)})});f.when("$","$F","util.templates","util.Ellipsis","util.inlineBlock","nav.inline","cartTemplateAvailable").build("CartContent",function(a,b,e,d,c){var k=
f.getNow("config.doubleCart"),l=a("#nav-cart-flyout"),h={content:a("#nav-cart-standard")};h.title=a(".nav-cart-title",h.content);h.subtitle=a(".nav-cart-subtitle",h.content);h.items=a(".nav-cart-items",h.content);var n={content:a("#nav-cart-pantry")};n.title=a(".nav-cart-title",n.content);n.subtitle=a(".nav-cart-subtitle",n.content);n.items=a(".nav-cart-items",n.content);var g={content:a("#nav-cart-fresh")};g.title=a(".nav-cart-title",g.content);g.subtitle=a(".nav-cart-subtitle",g.content);g.items=
a(".nav-cart-items",g.content);var q=l.attr("data-one"),p=l.attr("data-many"),u=n.content.attr("data-box"),x=n.content.attr("data-boxes"),r=n.content.attr("data-box-filled"),y=n.content.attr("data-boxes-filled"),t=function(b){b=a.extend(!0,{title:!0,subtitle:!0,boxes:0,items:[],count:0,$parent:null,doubleWide:!1},b);var f=b.$parent;b.title&&b.doubleWide?c(f.title):b.title?f.title.css({display:"block"}):f.title.hide();f.subtitle.html("").hide();if(b.subtitle){var k=[],g="";if(0<b.boxes){var l=Math.ceil(b.boxes);
1===l?k.push(u.replace("{count}",l)):k.push(x.replace("{count}",l))}1===b.count?k.push(q.replace("{count}",b.count)):1<b.count&&k.push(p.replace("{count}",b.count));if(0<b.boxes){l=Math.floor(b.boxes);var h=Math.round(1E3*(b.boxes-l))/10;0===l||0===h?k.push(r.replace("{pct}",0===h?100:h)):k.push(y.replace("{pct}",h))}for(l=0;l<k.length;l++)g+="\x3cspan class\x3d'nav-cart-subtitle-item "+(0===l?"nav-firstChild ":"")+(l===k.length-1?"nav-lastChild ":"")+"'\x3e"+k[l]+"\x3c/span\x3e";f.subtitle.html(g);
b.doubleWide?c(f.subtitle):f.subtitle.css({display:"block"})}0<b.items.length&&f.items&&f.items.html(e.use("cart",{items:b.items}));d.newInstance().elem(a(".nav-cart-item-title",f.content)).external(!0).dimensions(function(a){return{width:parseInt(a.css("width"),10),height:2*parseInt(a.css("line-height"),10)}}).truncate();f.content.show()},E=b.once().on(function(){l.addClass("nav-cart-double")}),v=b.once().on(function(){l.addClass("nav-cart-dividers")});return{render:function(b){b=a.extend(!0,{status:!1,
count:0,items:[],pantry:{status:!1,count:0,weight:{unit:"",value:-1},boxes:0,items:[]},fresh:{status:!1,count:0,items:[]}},b);l.removeClass("nav-cart-double nav-cart-dividers");var c={title:!1,subtitle:!1,count:b.count-b.pantry.count,items:b.items,$parent:h},d={count:b.pantry.count,boxes:parseFloat(b.pantry.boxes,10),items:b.pantry.items,$parent:n},e={count:b.fresh.count,items:b.fresh.items,$parent:g};if(b.status)l.addClass("nav-ajax-success");else return l.addClass("nav-ajax-error"),!1;if(0===b.items.length&&
0===b.pantry.items.length&&0===b.fresh.items.length)return l.addClass("nav-empty").removeClass("nav-full"),!0;l.removeClass("nav-empty").addClass("nav-full");if(0<b.items.length&&0===b.pantry.items.length&&0===b.fresh.items.length)5>=b.items.length?t(c):k?(E(),t(a.extend(c,{items:b.items.slice(0,10),doubleWide:!0}))):t(a.extend(c,{items:b.items.slice(0,5)}));else if(0===b.items.length&&0<b.pantry.items.length&&0===b.fresh.items.length)5>=b.pantry.items.length?t(d):(E(),t(a.extend(d,{items:b.pantry.items.slice(0,
10),doubleWide:!0})));else if(0===b.items.length&&0===b.pantry.items.length&&0<b.fresh.items.length)t(a.extend(e,{items:b.fresh.items.slice(0,5),doubleWide:!0}));else if(0<b.fresh.items.length&&0<b.items.length&&0===b.pantry.items.length)v(),t(a.extend(c,{items:b.items.slice(0,4),title:!0,subtitle:!0,doubleWide:!0})),t(a.extend(e,{items:b.fresh.items.slice(0,4),doubleWide:!0}));else if(0<b.fresh.items.length&&0===b.items.length&&0<b.pantry.items.length)v(),t(a.extend(d,{items:b.pantry.items.slice(0,
4),doubleWide:!0})),t(a.extend(e,{items:b.fresh.items.slice(0,4),doubleWide:!0}));else if(0<b.items.length&&0<b.pantry.items.length&&0===b.fresh.items.length)if(v(),4>=b.items.length+b.pantry.items.length)t(a.extend(c,{title:!0,subtitle:!0})),t(d);else{E();e=Math.ceil(b.items.length/2);var f=Math.ceil(b.pantry.items.length/2);2>=e||1>=f&&3===e?t(a.extend(c,{title:!0,subtitle:!0,doubleWide:!0})):t(a.extend(c,{items:b.items.slice(0,1>=f?6:4),title:!0,subtitle:!0,doubleWide:!0}));2>=f||1>=e&&3===f?t(a.extend(d,
{doubleWide:!0})):t(a.extend(d,{items:b.pantry.items.slice(0,1>=e?6:4),doubleWide:!0}))}else 0<b.fresh.items.length&&0<b.items.length&&0<b.pantry.items.length&&(v(),t(a.extend(c,{items:b.items.slice(0,4),title:!0,subtitle:!0,doubleWide:!0})),t(a.extend(d,{items:b.pantry.items.slice(0,4),doubleWide:!0})),t(a.extend(e,{items:b.fresh.items.slice(0,4),doubleWide:!0})));return!0}}})})(h.$Nav);(function(f){f.when("$","config","flyouts.create","dataPanel").run("flyout.wishlist",function(a,b,e,d){if(!b.accountList){var c=
{createFlyout:function(){return e({key:"wishlist",link:a("#nav-link-wishlist"),event:"wishlist",arrow:"top",cover:!0,animateDown:b.flyoutAnimation})},createWishlistDataPanel:function(){return d({id:"nav-flyout-wl-items",dataKey:"wishlistItems",spinner:!0,visible:!1})},createAlexaListDataPanel:function(){return d({id:"nav-flyout-wl-alexa",dataKey:"alexaItems",spinner:!1,visible:!1})},setPanelVisibilityRules:function(a){a.onData(function(a){0===a.count?this.hide():this.show()});a.onTimeout(function(){this.hide()})},
onFlyoutPanelRender:function(a){c.flyout.getPanel().onRender(function(d){if(!d.data||!d.data.isTimeout){var e=c.flyout.elem();d=e;b.fullWidthCoreFlyout&&(d=e.find(".nav-column:first-child .nav-panel"));for(e=0;e<a.length;e++){var f=a[e];f.elem().prependTo(d).show();f.startTimeout()}}})},init:function(){var a=[];c.flyout=c.createFlyout();if(b.isRecognized){var d=c.createWishlistDataPanel();c.setPanelVisibilityRules(d);a.push(d);b.alexaListEnabled&&(d=c.createAlexaListDataPanel(),c.setPanelVisibilityRules(d),
a.push(d))}c.onFlyoutPanelRender(a)}};c.init();return c.flyout}})})(h.$Nav);(function(f){f.when("$","flyouts.create","config","dataPanel","SignInRedirect","nav.inline").run("flyout.accountList",function(a,b,e,d,c){if(e.accountList){var f={createAndShowListDataPanel:function(b,c,e,f,k,g){b=d({id:b,className:e,dataKey:c,spinner:f,visible:!1});this.setPanelVisibilityRules(b);this.setA11yRules(g,b);k?b.elem().appendTo(a("#nav-al-wishlist")):b.elem().insertAfter(a("#nav-al-title"));this.showListPanel(b);
return b},showListPanel:function(a){a.show();a.startTimeout()},setPanelVisibilityRules:function(a){a.onData(function(a){0===a.count?this.hide():this.show()});a.onTimeout(function(){this.hide()})},setA11yRules:function(a,b){b.onRender(function(b){a.a11ysetup&&a.a11ysetup()})}},l=a("#a-page"),m=a("body"),n=0,g=0,q={en_US:"Account settings and Lists management",pt_PT:"Definições de conta e gestão de listas",en_JP:"Account settings and Lists management",mr_IN:"खाते सेटिंग्ज आणि सूचींचे व्यवस्थापन",nl_NL:"Accountinstellingen en lijstbeheer",
es_CO:"Configuración de cuenta y administración de listas",en_AU:"Account settings and Lists management",en_SG:"Account settings and Lists management",en_NG:"Account settings and Lists management",nl_BE:"Accountinstellingen en lijstbeheer",fr_CA:"Paramètres du compte et gestion des listes",el_GR:"Ρυθμίσεις λογαριασμού και διαχείριση λιστών",kn_IN:"ಖಾತೆ ಸೆಟ್ಟಿಂಗ್‌ಗಳು ಮತ್ತು ಪಟ್ಟಿಗಳ ನಿರ್ವಹಣೆ",hi_IN:"अकाउंट सेटिंग और लिस्ट मैनेजमेंट",en_ZA:"Account settings and Lists management",zh_CN:"账户设置和清单管理",es_MX:"Configuración de cuenta y administración de listas",
ko_KR:"계정 설정 및 리스트 관리",da_DK:"Kontoindstillinger og listeadministration",de_DE:"Kontoeinstellungen und Listenverwaltung",pt_BR:"Configurações da conta e gerenciamento de listas",fr_FR:"Paramètres du compte et Gestion des listes",es_CL:"Configuración de cuenta y administración de listas",cs_CZ:"Nastavení účtu a správa seznamů",it_IT:"Impostazioni dell’account e gestione delle liste",tr_TR:"Hesap ayarları ve liste yönetimi",es_ES:"Configuración de cuentas y gestión de listas",es_US:"Configuración de cuenta y administración de listas",
en_GB:"Account settings and Lists management",en_IE:"Account settings and Lists management",fr_BE:"Paramètres du compte et gestion des listes",sv_SE:"Kontoinställningar och Listhantering",bn_IN:"অ্যাকাউন্ট সেটিংস এবং তালিকা ব্যবস্থাপনা",pl_PL:"Ustawienia konta i zarządzanie listami",te_IN:"ఖాతా సెట్టింగ్‌లు మరియు జాబితాల నిర్వహణ",en_DE:"Account settings and Lists management",zh_TW:"帳戶設定和清單管理",en_IN:"Account settings and Lists management",ta_IN:"கணக்கு அமைப்புகள் மற்றும் பட்டியல்கள் மேலாண்மை",ms_MY:"Tetapan akaun dan pengurusan senarai",
en_CA:"Account settings and Lists management",en_AE:"Account settings and Lists management",ml_IN:"അക്കൗണ്ട് ക്രമീകരണങ്ങളും ലിസ്റ്റുകള്‍ കൈകാര്യം ചെയ്യലും",ar_AE:"إعدادات الحساب وإدارة القوائم",ja_JP:"アカウント設定と購入品リスト管理",he_IL:"הגדרות חשבון וניהול רשימות"},p=e.languageCode.toString();q=q.hasOwnProperty(p)?q[p]:q.en_US;var u=b({key:e.accountListFlyoutRedesign?"accountListRedesign":"accountList",className:"nav-coreFlyout",link:a("#nav-link-accountList"),cover:!e.primeDay,clickThrough:!0,sidePanel:!0,
event:{t:"ya"},arrow:"top",animateDown:e.flyoutAnimation,ariaLabel:q});u.getPanel().onData(function(b){e.signInOverride&&(b=a('[data-nav-role\x3d"signin"]',u.elem()),a.each(b,function(b,d){c.setRedirectUrl(a(d),null,null)}))});u.a11ysetup=function(){if(!opts.suspendTabbing){var b=a([]);a.each("#nav-flyout-ya-signin #nav-flyout-ya-newCust #nav-al-profile #bia-hcb-widget #nav-al-wishlist #nav-al-your-account".split(" "),function(c,d){b=a.merge(b,u.elem().find(d).find(".nav-link,\x3ea,\x3espan,.a-link-normal,.a-button-input,button"))});
0<b.length?u.a11y.elems(b):u.a11y.elems(a(u.elem().find("a")))}};u.getPanel().onRender(function(a){e.isRecognized&&(f.createAndShowListDataPanel("nav-flyout-wl-items","wishlistItems",e.isNavALFRegistryGiftList?null:"have-bot-border",!0,!1,u),e.alexaListEnabled&&f.createAndShowListDataPanel("nav-flyout-wl-alexa","alexaItems",e.isALFRedesignPT2?null:"have-bot-border",!1,e.isALFRedesignPT2,u))});e.accountListFlyoutRedesign&&(u.onShow(function(){var b=a("#nav-link-accountList");b=b.offset().top+b.outerHeight();
a("#nav-flyout-accountListRedesign").css("top",b-h.pageYOffset);n=h.pageYOffset;g=h.pageXOffset;m.addClass("lock-position").css({top:"-"+n+"px",width:"100%"});e.isTabletBrowser||m.css({position:"fixed","overflow-y":"scroll"});0!=g&&m.css({left:"-"+g+"px"});l.attr("aria-hidden","true")}),u.onHide(function(){m.attr("tabIndex",0).focus().removeAttr("tabIndex").removeClass("lock-position").css({position:"static",top:"",left:""});e.isTabletBrowser||m.css({"overflow-y":"auto"});h.scrollTo(g,n)}));return u}})})(h.$Nav);
(function(f){f.when("$","config","util.cleanUrl").run("SignInRedirect",function(a,b,e){var d={setRedirectUrl:function(a,c,d){var f=a.attr("href");if(!f)return!0;c=c?c:h.location.href;var k=a.attr("data-nav-ref")||!1;"nav-item-switch-account"===a.attr("id")&&(k="nav_youraccount_switchacct");c=e(c,{https:!0,encode:!0,ref:k});f=-1===f.indexOf("currentPageURL")?f.replace(/(openid.return_to(%3D|=))[^&\?]+/g,"openid.return_to\x3d"+c):f.replace(/(currentPageURL(%3D|=))[^&\?]+/g,"currentPageURL\x3d"+c);f=
f.replace(/(pageType(%3D|=))[^&\?]*/g,"pageType\x3d"+b.pageType);a.attr("href",f);d&&d(f)}},c=a('#navbar [data-nav-role\x3d"signin"]');a.each(c,function(b,c){d.setRedirectUrl(a(c),null,null)});return d})})(h.$Nav);(function(f){f.when("$","data","config","page.domReady").run("timelineContent",function(a,b,e){if(e.timeline){e=a("#nav-timeline-wrapper");var d=a("#nav-timeline",e);b.observe("flyoutErrorContent",function(c){c=a("#nav-timeline-error",a(c)[0]);var e="\x3cdiv id\x3d'nav-timeline'\x3e\x3cdiv id\x3d'nav-timeline-data' class\x3d'nav-center'\x3e"+
c[0].outerHTML+"\x3c/div\x3e\x3c/div\x3e";0===d.length&&1===c.length&&b({timelineContent:{html:e}})});1>d.length||(e.remove(),b({timelineContent:{html:d[0].outerHTML}}))}});f.when("$","$F","flyouts.create","config","util.Aligner","flyouts.anchor","carousel","util.Ellipsis","data","provider.dynamicMenu","provider.genericNavyaanData","agent","log").run("flyout.timeline",function(a,b,e,d,c,f,l,h,n,g,q,p,u){if(d.timeline){b=a("#nav-recently-viewed");var k=e({key:"timeline",className:"nav-coreFlyout nav-fullWidthFlyout",
link:b,cover:!0,clickThrough:!0,event:"timeline",arrow:"top",fullWidth:1,animateDown:d.flyoutAnimation}),m=!1;b.hover(function(){m=!0},function(){m=!1});b.click(function(){a(this).blur();m&&(k.show(),m=!1)});var y=function(){h.newInstance().elem(a(".nav-timeline-asin-title",".nav-timeline-asin")).external(!0).dimensions(function(a){return{width:parseInt(a.css("width"),10),height:2*parseInt(a.css("line-height"),10)}}).truncate()},t=function(){n.observe("timelineContent",function(b){l.create(a("#nav-timeline-data"),
k);d.timelineAsinPriceEnabled||y()})};k.getPanel().onRender(function(){});k.onShow(function(){t()});return k}});f.when("$","nav.createTooltip","config","flyout.timeline","data","page.domReady").run("timelineTooltipDynamic",function(a,b,e,d,c){e.timeline&&c.observe("timelineTooltipContent",function(c){if(c.html){var d=a("#navbar"),e=a("#nav-recently-viewed"),f=b({name:"timelineTT",content:c.html,className:"nav-timeline-tt",timeout:"none",cover:!0,addCloseX:!0,align:{base:e,from:"bottom center",to:"top center",
constrainTo:d,constrainBuffer:[3,3,0,3],constrainChecks:[!0,!0,!1,!0]},arrow:"top",clickCallback:function(){f.hide();e.trigger("mouseover")}});f.fadeIn()}})})})(h.$Nav);(function(f){f.when("$","flyouts.create","config").run("flyout.amazonfresh",function(a,b,e){return b({key:"amazonfresh",link:a("#nav-link-amazonfresh"),cover:!0,clickThrough:!0,sidePanel:!0,event:"amazonfresh",arrow:"top",animateDown:e.flyoutAnimation})})})(h.$Nav);(function(f){f.when("$","$F","flyouts.create","config","flyouts.accessibility").run("flyout.groceries",
function(a,b,e,d,c){var f=a("#nav-link-groceries"),l=e({key:"groceries",link:f,cover:!0,clickThrough:!0,sidePanel:!0,event:"groceries",arrow:"top",suspendTabbing:!0,animateDown:d.flyoutAnimation}),h=c({link:f,onEscape:function(){l.hide();f.focus()}});l.getPanel().onRender(b.once().on(function(){h.elems(a(".nav-hasPanel, a",l.elem()));l.align()}));l.onShow(b.once().on(function(){h.elems(a(".nav-hasPanel, a",l.elem()))}));return l});f.when("$","data").build("flyout.groceriesFlyoutUpdate",function(a,
b){return function(){b.get("groceriesContent")&&a("#nav-flyout-groceries").find(".nav-flyout-content").html(b.get("groceriesContent"))}})})(h.$Nav);(function(f){f.when("$","$F","util.Proximity","config","flyout.accountList").run("flyout.profilePicker",function(a,b,e,d,c){if(c){var f=!1,l=function(a){h.ue&&"function"===typeof h.ue.count&&h.ue.count(a,(h.ue.count(a)||0)+1)},m=function(b){"function"===typeof h.uex&&h.uex("ld","p13nprofilepicker:nav:fetch-flyout-desktop",{wb:1});l("p13nprofilepicker:nav:fetch-flyout-desktop:success");
a("#nav-al-profile").append(b)},n=function(){l("p13nprofilepicker:nav:fetch-flyout-desktop:failure")},g=b.once().on(function(){l("p13nprofilepicker:nav:fetch-flyout-desktop");"function"===typeof h.uet&&h.uet("bb","p13nprofilepicker:nav:fetch-flyout-desktop",{wb:1});a.ajax({type:"GET",url:"/hz/profilepicker",success:m,error:n});f=!0}),q=function(){0!==a("#nav-al-profile").length&&g()};if(!e||d.isTabletBrowser)h.addEventListener?h.addEventListener("load",q,!1):h.attachEvent("onload",q),d.isTabletBrowser?
l("p13nprofilepicker:nav:fetch-flyout-desktop:tablet"):l("p13nprofilepicker:nav:fetch-flyout-desktop:no-proximity");else e.onEnter(c.link,[100,100,100,100],q);c.onRender(function(){f||(q(),l("p13nprofilepicker:nav:fetch-flyout-desktop:onRender"))})}})})(h.$Nav);(function(f){f.when("$","config","nav.inline").run("enableNavbarTabbing",function(a,b){if(!(2>a("#navbar [tabindex]").get().length)){a("#nav-upnav").find("map area, a").each(function(){a(this).attr("tabindex",0)});a("#nav-swmslot").find("map area, a").each(function(){a(this).attr("tabindex",
0)}).focus(function(){a("#navSwmHoliday").addClass("nav-focus")}).blur(function(){a("#navSwmHoliday").removeClass("nav-focus")});b=a("#nav-subnav");var e=b.children(".nav-a");b.length&&2<=e.length&&e.attr("tabindex",0)}});f.when("$","$F","config","now","logEvent","util.Proximity").run("setupSslTriggering",function(a,b,e,d,c,k){var l=e.sslTriggerType,m=e.sslTriggerRetry;if("pageReady"===l||"flyoutProximityLarge"===l){var n="https://"+h.location.hostname+"/empty.gif",g=0;e=b.after(m+1,!0).on(function(){(new Image).src=
n+"?"+d();g++;c({t:"ssl",id:g+"-"+l})});var q=m?b.debounce(45E3,!0).on(e):b.once().on(e);"pageReady"===l&&f.when("btf.full").run("NavbarSSLPageReadyTrigger",function(){if(m){var a=m,b=function(){q();0<a&&(a--,setTimeout(function(){b()},45100))};b()}else q()});if("flyoutProximityLarge"===l)var p=k.onEnter(a("#navbar"),[0,0,250,0],function(){p.unbind();q()},m?45E3:0)}})})(h.$Nav);(function(f){f.when("$","metrics","page.domReady").run("upnavMetrics",function(a,b){var e=a("#nav-upnav");if(0!==e.length){a=
e.find("a");e=e.find("map area");var d=a.length,c=e.length;if(0!==d||0!==c)if(a=0<d?a.attr("href"):e.attr("href"))a=a.split("/"),1<a.length&&((a=a[a.length-1].split("?")[0].split("\x3d"))&&1<a.length&&"ref"===a[0]?b.increment("upnav-"+a[1]+"-show"):b.increment("upnav show"))}});f.when("$","config.upnavAiryVideoPlayerAlignment","page.domReady","Airy.PlayerReady").run("upnavAiryVideoAlignment",function(a,b){if(b){var e=a("#nav-airy-player-container .airy-renderer-container");if(0!==e.length){var d=
a(".nav-airy-widget-wrapper"),c=function(){var a=d.width()/2,b=e.width()/2;e.css("left",Math.floor(a-b))};a(h).resize(function(){c()});c()}}})})(h.$Nav);(function(f){f.when("$","util.ajax","metrics","config").run("upnavSuppressionJS",function(a,b,e,d){function c(){var a=Date.now();h.ue_t0&&e.count("Nav:Upnav:Suppress:ClickTime",Math.floor((a-h.ue_t0)/1E3));e.increment("Nav:Upnav:Suppression:Click");b({retryMetric:"nav-upnav-suppression-ajax-retry",errorMetric:"nav-upnav-suppression-ajax-error",url:"/gp/navigation/ajax/generic.html",
dataType:"html",data:{ajaxTemplate:"upnavSuppression"},error:function(a,b,c){var d={attribution:"AmazonNavigationCards",logLevel:"ERROR"};a=" Upnav Suppression AJAX Call failed. Status Code : "+a.status+" Status text : "+b+" Exception : "+c;h.ueLogError&&(d.message=a,h.ueLogError(d))},success:function(b){e.increment("Nav:Upnav:Suppression:Success");a&&e.count("Nav:Upnav:Suppress:TotalTime",Math.floor((Date.now()-a)/1E3))}})}d=a("#nav-upnav-close");var f=a("#nav-upnav");d.click(function(){c();f.hide()})})})(h.$Nav);
(function(f){f.when("$","$F","config").iff({name:"config",prop:"newTabClick"}).run("newTabClick",function(a,b,e){var d=e.newTabClick.targetUrlPatterns;if(d&&0!==d.length){for(b=0;b<d.length;b++)d[b]=new RegExp(d[b]);var c=document.location.href.split(/#/)[0];a(document).click(function(b){var e=b.target||b.srcElement;if(!b.which||1===b.which)if(e=a(e).parents("a:first, area:first").andSelf().filter("a:first, area:first").eq(0),0!==e.length){b=e.attr("href");var f;(f=0!==(e.attr("target")||"").length||
!b||b.match(/^javascript:/i))||(f=b.split(/#/)[0],f=0<=c.indexOf(f)?1:0);if(!(f=f||e.parents("#navbar").length)){a:{b=b.split("?")[0];for(f=0;f<d.length;f++)if(b.match(d[f])){b=1;break a}b=0}f=!b}f||e.attr("target","_blank")}})}})})(h.$Nav);(function(f){f.when("$","$F","data","flyouts.create","flyouts.anchor","util.Aligner","config.transientFlyoutTrigger").iff({name:"config",prop:"transientFlyoutTrigger"}).run("flyout.transient",function(a,b,e,d,c,f,l){var k=a("#navbar"),h=a(l),g=function(){var a=
h.offset().left,b=a+h.innerWidth();a=(a+b)/2;q.elem().find(".nav-arrow").css({position:"absolute",left:a-q.elem().offset().left});q.align()},q=d({key:"transientFlyout",link:h,arrow:"top",aligner:function(a){var b=new f({base:a.$link,target:a.$flyout,from:"bottom right",to:"top center",anchor:"top",alignTo:c(),constrainTo:k,constrainBuffer:[3,0,0,3],constrainChecks:[!0,!1,!1,!0],offsetTo:k});return function(){b.align()}}});q.onRender(b.once().on(function(){e.observe("transientFlyoutContent",function(){g()})}));
q.onShow(function(){g()});return q})})(h.$Nav);(function(f){f.when("$","$F","agent","flyouts","config","constants","metrics","flyout.yourAccount","nav.inline").build("pinnedNav",function(a,b,e,d,c,f,l,m){if(c.pinnedNav){var k=!1,g=!1,q="nav-pinned",p,u,x,r,y,t=700,E,v,w,D,C,A,B,z;c.pinnedNavStart&&(t=c.pinnedNavStart);if(c.iPadTablet)var F=c.iPadTablet;c.pinnedNavWithEWC&&(q="nav-pinned nav-pinned-ewc");var I=b.once().on(function(){p=a(h);u=a("#navbar");w=a("#nav-belt");a("#nav-main");r=a("#nav-subnav");
x=a("#nav-tools");v=a("#nav-shop");D=a("#nav-search");C=a("#nav-logo");E="\x3cdiv class\x3d'nav-divider'\x3e\x3c/div\x3e";y="\x3cdiv id\x3d'nav-sbd-pinned'\x3e\x3cspan class\x3d'nav-line1'\x3e\x3c/span\x3e\x3cspan class\x3d'nav-line2'\x3e\x3c/span\x3e\x3cspan class\x3d'nav-line3'\x3e\x3c/span\x3e\x3c/div\x3e";A=a(".nav-search-field \x3e input");B=a("#searchDropdownBox");z=d.get("cart")||Q}),K=function(){var b="Search"===c.pageType;(!b&&0<r.children().length||b&&0===r.find(".nav-category-button").length)&&
r.show();u.removeClass(q);w.css("width","100%");a("div",v).remove("#nav-sbd-pinned");a("div",x).remove(".nav-divider");F&&(A.unbind("focus"),B.unbind("click"));a("#navbar").hasClass("layout3")||a("#nav-belt \x3e .nav-left").css({width:a("#nav-logo").outerWidth()});m.unlock();z.unlock();g=!1},P=function(){F&&("twotabsearchtextbox"===document.activeElement.id&&A.blur(),A.bind("focus",function(a){p.scrollTop(0,0)}),B.bind("click",function(a){p.scrollTop(0,0);B.blur()}));r.hide();u.addClass(q);w.css("width",
L());u.css({top:"-55px"});C.css({top:"-55px"});D.css({top:"-55px"});u.animate({top:"0"},300);D.animate({top:"0"},300);C.animate({top:"0"},300);a("a",v).append(y);a(E).insertBefore("#nav-cart");m.lock();if(z.isVisible())z.onHide(b.once().on(function(){z.isVisible()||z.isLocked()||!g||z.lock()}));else z.lock();g=!0;a("#nav-search, #nav-link-yourAccount, #nav-cart").click(function(){var b=a(this).attr("id");l.increment("nav-pinned-"+b+"-clicked")});a("#nav-link-shopall").hover(function(){var b=a(this).attr("id");
l.increment("nav-pinned-"+b+"-hovered")},function(){})},Q={lock:b.noOp,unlock:b.noOp,isVisible:b.noOp,onHide:b.noOp},M=function(){var b=a("#nav-flyout-ewc");0<b.length?"0px"!==b.css("right")&&d.hideAll():d.hideAll()},L=function(){var a=x.width(),b=v.width();return p.width()-a-b+f.PINNED_NAV_SEARCH_SPACING},J=function(){var a=p.scrollTop();g&&a<t?(M(),K()):!g&&a>=t&&(M(),P())};return{enable:function(){k||e.ie6||e.quirks||(I(),p.bind("scroll.navFixed",J),p.resize(b.throttle(300).on(function(){u.hasClass(q)&&
w.css("width",L())})),J(),k=!0)},disable:function(){k&&(p.unbind("scroll.navFixed"),K(),k=!1)}}}})})(h.$Nav);(function(f){f.when("page.loaded","$").run("registerMoment",function(a,b){document.getElementById("countdown")&&b.getScript("https://images-na.ssl-images-amazon.com/images/G/01/poppin/JavaScript/moment.min._TTD_.js",function(){b.getScript("https://images-na.ssl-images-amazon.com/images/G/01/poppin/JavaScript/moment-timezone-with-data.min._TTD_.js",function(){f.declare("moment",h.moment)})})});
f.when("page.loaded","moment").run("countdowntimer",function(a,b){var e={log:function(a){},warn:function(a){}},d=document.getElementById("countdown");a=d.getAttribute("data-server-time-str");var c=d.getAttribute("data-timer-start-at"),f=d.getAttribute("data-live-start-at"),l=d.getAttribute("data-live-end-at"),h=d.getAttribute("data-live-days"),n=d.getAttribute("data-standby-text"),g=d.getAttribute("data-countdown-text-prefix");d=d.getAttribute("data-live-text");(function(a,c,d,f,g,k,l,h){var m="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
n=new Date(a);e.log("[poppinCountDown] loadServerTime: "+n);var p=new Date,q=function(a,c){var d=a.split(" "),e=d[0].split(":");a=n.getFullYear();var f=parseInt(n.getMonth(),10)+1,g=n.getDate(),k="pm"===d[1].toLowerCase()?parseInt(e[0],10)%12+12:parseInt(e[0],10)%12;e=e[1];d=d[2];var l=b.tz(""+a+"-01-01T12:00:00","America/Los_Angeles").format("Z");f=b.tz(""+a+"-"+(10>f?"0":"")+f+"-"+(10>g?"0":"")+g+"T12:00:00","America/Los_Angeles").format("Z");d=l!==f?d[0]+"D"+d[1]:d[0]+"S"+d[1];for(a=new Date(""+
m[parseInt(n.getMonth(),10)]+" "+g+" "+a+" "+k+":"+e+":0 "+d);c&&a.getTime()<=c.getTime();)a=new Date(a.getTime()+864E5);return a};a=q(c);var r=q(d,a);q=q(f,r);e.log("[csTimeStrTimerStartAt] csTimeStrTimerStartAt: "+c);e.log("[countdownStart] countdownStart: "+a);e.log("[csTimeStrLiveStartAt] csTimeStrLiveStartAt: "+d);e.log("[liveStart] liveStart: "+r);e.log("[csTimeStrLiveEndAt] csTimeStrLiveEndAt: "+f);e.log("[liveEnd] liveEnd: "+q);var t=a.getTime(),u=r.getTime(),x=q.getTime(),y=function(){var a=
function(a){document.getElementById("countdown-text").innerHTML=a},b=function(a){document.getElementById("countdown-timer").innerHTML=a},c=(new Date).getTime()-p.getTime(),d=function(a){a="UMTWRFS".charAt(a.getDay());var b;for(b=0;b<g.length;b++)if(g.charAt(b)===a)return!0;return!1},e=new Date(n.getTime()+c);c=e.getTime();if(c<t||g&&!d(e))setTimeout(y,t-c),a(k),b("");else if(c<u){d=Math.round((u-c)/1E3);e=Math.floor(d/3600);var f=Math.floor(d%3600/60);f=10>f?"0"+f:f;d%=60;d=10>d?"0"+d:d;a(l);b(" "+
e+":"+f+":"+d);setTimeout(y,1E3*(Math.floor((c-t)/1E3)+1)-(c-t))}else c<x?(setTimeout(y,x-c),a(h)):a(k),b("")};y()})(a,c,f,l,h,n,g,d)})})(h.$Nav);(function(f){f.when("$","config","flyout.yourAccount","flyout.amazonprime","flyout.wishlist","nav.inline").run("primeDayNav",function(a,b,e,d,c){b.primeDay&&(d.lock(),c.lock())})})(h.$Nav);(function(f,a){"object"===typeof h.P&&"function"===typeof h.P.when&&"function"===typeof h.P.register&&"function"===typeof h.P.execute&&(a.when("A","nav.refreshGroceriesProvider").execute(function(a,
e){a.on("packard:glow:destinationChangeAll",function(){e()})}),a.when("A","a-modal","packardGlowIngressJsEnabled","packardGlowStoreName","navDesktopAssetsGlowWidgetConstants").execute("GLOWWidget",function(a,e,d,c,f){function b(a){h.ue&&"function"===typeof h.ue.count&&h.ue.count(a,(h.ue.count(a)||0)+1)}function k(){return h.ue_pty?h.ue_pty:"NoPageType"}if(d){var n=a.$;a.on("packard:glow:destinationChangeNav",function(){n.ajax({type:"GET",url:"/portal-migration/hz/glow/get-location-label",data:{storeContext:c,
pageType:k(),actionSource:"desktop-modal"},success:function(d){a:{var g=d;try{d=g&&"object"===typeof g?g:h.JSON.parse(g);break a}catch(p){b("GLOW:parse-glow-label-response:failure")}d=g}d.deliveryLine1&&n("#glow-ingress-line1").html(d.deliveryLine1);d.deliveryLine2&&n("#glow-ingress-line2").html(d.deliveryLine2);d.deliveryShortLine&&(n("#nav-packard-delivery").html(d.deliveryShortLine),d.customerIntent&&"REALM_DEFAULT"!==d.customerIntent.locationType&&n("#nav-packard-glow-fy-header").removeClass("aok-hidden"));
d.selectedDestination&&(d.selectedDestination.destinationObfuscatedAddressId&&n("#unifiedLocation1ClickAddress").val(d.selectedDestination.destinationObfuscatedAddressId),d.selectedDestination.destinationType&&d.selectedDestination.destinationValue&&(g=e.get("glow-modal"))&&g.attrs("url",f.ADDRESS_SELECTIONS_ENDPOINT+"?selectedLocationType\x3d"+d.selectedDestination.destinationType+"\x26selectedLocationValue\x3d"+d.selectedDestination.destinationValue+"\x26deviceType\x3ddesktop\x26pageType\x3d"+k()+
"\x26storeContext\x3d"+c+"\x26actionSource\x3ddesktop-modal"));a.trigger("packard:glow:destinationChangeNavAck")}})});a.on("a:popover:beforeShow:glow-modal",function(){"function"===typeof h.uet&&h.uet("bb","glow-modal-api-timer:desktop",{wb:1})});a.on("a:popover:ajaxContentLoaded:glow-modal",function(){"function"===typeof h.uex&&h.uex("ld","glow-modal-api-timer:desktop",{wb:1})});a.on("a:popover:ajaxSuccess:glow-modal",function(){b("GLOW:fetch-modal:DESKTOP:success")});a.on("a:popover:ajaxFail:glow-modal",
function(){b("GLOW:fetch-modal:DESKTOP:failure")});a.on("GLOW:desktop:open-glow:with-args",function(d){var g=e.get(a.$("#nav-global-location-slot"));g.attrs("url",f.ADDRESS_SELECTIONS_ENDPOINT+"?deviceType\x3ddesktop\x26pageType\x3d"+k()+"\x26storeContext\x3d"+c+"\x26actionSource\x3ddesktop-modal\x26"+d);g.show();b("GLOW:desktop:open-glow:with-args")});n("#nav-packard-glow-fy").click(function(){n("#nav-global-location-slot").click()})}}),f.when("$","nav.createTooltip","config","util.session","metrics",
"util.ajax","page.domReady").iff({name:"config",prop:"packardGlowTooltip"}).run("packardGlowTooltip",function(a,e,d,c,f,l){var b=c.get("nav-packard-tt"),k=(new Date).getDate(),g=!0,h=0;b&&(g=k>=b.date+3,h=b.count);if(!b||3>h&&g)c.set("nav-packard-tt",{count:h+1,date:k}),l({url:d.dynamicMenuUrl,data:{packardContent:"packardGlowFlyout",pageType:d.pageType,subPageType:d.subPageType},error:function(){f.increment("nav-tooltip-packard-errorCount")},success:function(b){if(b&&b.packardContent.html){var c=
e({content:a("\x3cdiv\x3e\x3c/div\x3e").html(b.packardContent.html),name:"packardTT",className:"nav-packard-tt",timeout:7E3,cover:!1,align:{base:a("#nav-packard-glow-fy"),from:"bottom center",to:"top center",constrainTo:a("#navbar"),constrainBuffer:[3,3,0,0],constrainChecks:[!0,!0,!1,!0]},arrow:"top",clickCallback:function(){c.hide();a("#nav-packard-glow-fy").trigger("mouseover")}});c.fadeIn();f.increment("nav-tooltip-packard-show");d.pageType&&f.increment("nav-tooltip-packard-"+d.pageType.toLowerCase()+
"-show")}}})}))})(h.$Nav,H);(function(f){f.when("$","$F","flyouts.create","config").run("flyout.packardGlow",function(a,b,e,d){if(d.packardGlowFlyout)return a=a("#nav-packard-glow-fy"),e({key:"packard",className:"nav-coreFlyout",link:a,cover:!0,clickThrough:!1,arrow:"top",event:"packard"})})})(h.$Nav);(function(f){f.when("$","$F","agent","flyouts","config.fixedBarBeacon","nav.inline").build("fixedSubBar",function(a,b,e,d,c){var f=!1,l=!1,m,n,g,q,p,u=b.once().on(function(){m=a(h);n=a("#navbar");g=
a("#nav-main");p=a("#nav-subnav");q=a("\x3cdiv\x3e\x3c/div\x3e").css({position:"relative",display:"none",width:"100%",height:p.height()+"px"}).insertBefore(p)}),x=function(){n.removeClass("subnav-fixed");p.css({top:0});q.hide();l=!1},r=function(){var a=m.scrollTop();d.hideAll();c&&(a+=g.height());l&&q.offset().top>=a?x():!l&&p.offset().top<a&&(n.addClass("subnav-fixed"),a=c?g.height():0,p.css({top:a}),q.show(),l=!0)};return{enable:function(){f||e.ie6||e.quirks||(u(),m.bind("scroll.navFixed",r),r(),
f=!0)},disable:function(){f&&(m.unbind("scroll.navFixed"),x(),f=!1)}}})})(h.$Nav);(function(f){f.when("$","$F","agent","flyouts","config.stickySubnavConfig","nav.inline").build("stickySubNav",function(a,b,e,d){var c=!1,f=!1,l,m,n,g,q=b.once().on(function(){l=a(h);m=a("#navbar");g=a("#nav-subnav");n=a("\x3cdiv\x3e\x3c/div\x3e").css({position:"relative",display:"none",width:"100%",height:g.outerHeight()+"px"}).insertBefore(g)}),p=function(){m.removeClass("subnav-sticky");g.css({top:0});n.hide();f=!1},
u=function(){var a=l.scrollTop();d.hideAll();f&&n.offset().top>=a?p():!f&&g.offset().top<a&&(m.addClass("subnav-sticky"),g.css({top:0}),g.css({width:m.width()}),n.show(),f=!0)};return{enable:function(){c||e.ie6||e.quirks||(q(),l.bind("scroll.navFixed",u),u(),c=!0)},disable:function(){c&&(l.unbind("scroll.navFixed"),p(),c=!1)},setWidth:function(){m=a("#navbar");g=a("#nav-subnav");g.css({width:m.width()})}}})})(h.$Nav);(function(f){f.when("$","config").run("genzXshopAlign",function(a,b){function e(){for(var b=
a("#nav-xshop").children("a"),c=b.get(0).offsetTop,e=b.length-1;0<e;e--)b.get(e).offsetTop>c&&a(b.get(e)).addClass("nav-a-removed")}b.genz&&(a(h).resize(function(){for(var b=a("#nav-xshop").children("a"),c=0;c<b.length;c++)a(b.get(c)).removeClass("nav-a-removed");e()}),a(document).ready(function(){e();for(var b=a("#nav-xshop").children("a"),c=0;c<b.length;c++)a(b.get(c)).removeClass("nav-a-hidden")}))})})(h.$Nav);(function(f){f.when("util.ajax","config").build("util.ajaxReftagLogger",function(a,b){return function(b){var d=
{attribution:"AmazonNavigationCards",logLevel:"ERROR"};b=["hitType\x3dpageTouch","pageType\x3d"+(h.ue_pty?h.ue_pty:"NavUnknownPageType"),"ref_\x3d"+b].join("\x26");return a({type:"POST",url:"/acp/navigation/v1/ajax-reftag-logger/track?"+b,headers:{"x-amz-acp-params":"ajax-reftag-logger"},retryMetric:"nav-ajax-reftag-logger-retry",errorMetric:"nav-ajax-reftag-logger-error",error:function(a,b,e){a=" Reftag logger AJAX Call failed. Status Code : "+a.status+" Status text : "+b+" Exception : "+e;h.ueLogError&&
h.ueLogError(a,d)}})}})})(h.$Nav);(function(f,a){f.when("$","HamburgerMenuFirstLayerAJAXCall","SignInRedirect","metrics").run("HamburgerMenuFirstLayerAJAXCallDesktop",function(a,e,d,c){var b=function(){var b=a("#hmenu-customer-profile-link");d.setRedirectUrl(a(b),null,null);!0===f.getNow("navHMenuIconClicked")&&(c.increment("Nav:Hmenu:HMenuIconClickDelayedComplete"),setTimeout(function(){a("#nav-hamburger-menu").click()},50))};return function(){e("desktop",b)}})})(h.$Nav,H);(function(f,a){f.when("jQuery",
"hamburgerMenuIconAvailableOnLoad","config","HamburgerMenuFirstLayerAJAXCallDesktop","util.Proximity","agent").run("HamburgerMenuAJAXCall",function(a,e,d,c,f,l){var b="rtl"===a("body").css("direction"),k=function(){function e(){c();a("#nav-hamburger-menu").unbind("focus",e)}f.onEnter(a("#nav-hamburger-menu"),d.HmenuProximityArea,e,!1,d.fixedBarBeacon||b);a("#nav-hamburger-menu").bind("focus",e)};d.isTabletBrowser||l.touch||!d.HMenuIsProximity?e?h.onload=hamburgerAjaxCall:c():k()})})(h.$Nav,H);(function(f){f.when("$",
"metrics").run("searchDropdownMetrics",function(a,b){a(".nav-search-dropdown").change(function(){b.increment("Nav:SearchDropdown:Change")})})})(h.$Nav);(function(f,a){a.when("A","a-popover","ready").execute(function(a,e){var b=a.$;a=b("#nav-checkout-privacy-popover-content");var c=b("#nav-checkout-privacy-popover-a11y-label"),f=b("#nav-checkout-privacy-popover-close-button-label");b=b("#nav-checkout-title-header");if(0!==a.length&&0!==c.length&&0!==f.length&&0!==b.length){var h=a.find("a");h.length&&
(h.attr("target","_blank"),h.attr("rel","noopener noreferrer"));a={activate:"onclick",position:"triggerBottom",dataStrategy:"inline",inlineContent:a.html(),popoverLabel:c.text(),closeButtonLabel:f.text()};e.create(b,a)}})})(h.$Nav,H);(function(f){f.when("$","metrics").run("accessibilityNav",function(a){document.body.addEventListener("keydown",function(){a("#navbar").removeClass("using-mouse")});document.body.addEventListener("mousedown",function(){a("#navbar").addClass("using-mouse")})})})(h.$Nav);
(function(f){f.when("$","$F","flyouts.create","config","flyouts.accessibility").run("flyout.health",function(a,b,e,d,c){var f=a("#nav_link_allhealthingress"),h=e({key:"health",link:f,cover:!0,clickThrough:!0,sidePanel:!0,event:"health",arrow:"top",animateDown:d.flyoutAnimation}),m=c({link:f,onEscape:function(){h.hide();f.focus()}});h.getPanel().onRender(b.once().on(function(){m.elems(a(".nav-hasPanel, a",h.elem()));h.align()}));h.onShow(b.once().on(function(){m.elems(a(".nav-hasPanel, a",h.elem()))}));
return h})})(h.$Nav);(function(f){f.when("$","$F","flyouts.create","config","flyouts.accessibility").run("flyout.pharmacy",function(a,b,e,d,c){var f=a("#nav_link_allpharmacyingress"),h=e({key:"pharmacy",link:f,cover:!0,clickThrough:!0,sidePanel:!0,event:"pharmacy",arrow:"top",animateDown:d.flyoutAnimation}),m=c({link:f,onEscape:function(){h.hide();f.focus()}});h.getPanel().onRender(b.once().on(function(){m.elems(a(".nav-hasPanel, a",h.elem()));h.align()}));h.onShow(b.once().on(function(){m.elems(a(".nav-hasPanel, a",
h.elem()))}));return h})})(h.$Nav);(function(f){f.when("$","$F","flyouts.create","config","flyouts.accessibility").run("flyout.giftCards",function(a,b,e,d,c){var f=a("#nav_link_gift_cards");if(f){var h=e({key:"giftCards",link:f,cover:!0,clickThrough:!0,sidePanel:!0,event:"giftCards",arrow:"top",animateDown:d.flyoutAnimation}),m=c({link:f,onEscape:function(){h.hide();f.focus()}});h.getPanel().onRender(b.once().on(function(){m.elems(a(".nav-hasPanel, a",h.elem()));h.align()}));h.onShow(b.once().on(function(){m.elems(a(".nav-hasPanel, a",
h.elem()))}));return h}})})(h.$Nav)});
/* ******** */
(function(a){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("SearchAutocompleteConfig",""):c;b.guardFatal?b.guardFatal(a)(b,window):b.execute(function(){a(b,window)})})(function(a,c,d){a.register("autocomplete-endpoints",function(){return{completion:"completion.amazon.nl"}});"use strict";a.register("autocomplete-config",function(){return{endpoints:{completion:"completion.amazon.nl"},marketplaceId:"A1805IZSGTT6HS"}})});
/* ******** */
(function(b){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,a=d?d("SearchAutocompleteStrings",""):c;a.guardFatal?a.guardFatal(b)(a,window):a.execute(function(){b(a,window)})})(function(b,c,d){b.register("autocomplete-translations-localizedStrings",function(){return{crossCategoryString:"${query} in ${category}",filterByString:"filter ${keyword} by ${refinement}",askRufus:"Ask Rufus"}})});
/* ******** */
(function(G){var q=window.AmazonUIPageJS||window.P,p=q._namespace||q.attributeErrors,M=p?p("RetailSearchAutocompleteAssets@core","RetailSearchAutocompleteAssets"):q;M.guardFatal?M.guardFatal(G)(M,window):M.execute(function(){G(M,window)})})(function(G,q,p){q.$Nav.when("$","nav.inline").run(function(p){q.$Nav.declare("config.blackbelt",0<p("#nav-belt").length)});q.$Nav.when("config.blackbelt").run(function(p){p?q.$Nav.when("searchApi").run(function(p){q.$Nav.declare("sxSearchApi",p)}):q.$Nav.declare("sxSearchApi")});
q.$Nav.when("$","sxSearchApi","sx.iss.AttributionUtil").build("NavDomApi",function(r,t,B){function x(){if(N)return E().find('input[type\x3d"text"]');"undefined"===typeof Q&&(Q=r(K.searchBox));return Q}function I(){if(N)return t.flyout.elem();"undefined"===typeof a&&(a=r(l),E().after(a));return a}function C(){if(N)return t.options().parents("select");"undefined"===typeof b&&(b=r(K.aliasDropdown));return b}function F(){N?t.flyout.hide():I().hide();M(!1);S(null)}function E(){return N?t.options().parents("form"):
r(K.form)}function G(){var c=x();return c?c[0].selectionStart||(c.val()?c.val().length:0):0}function H(){return e&&m&&v}function T(){H()&&(e.innerText="",m.innerText="",v.innerText="")}function S(c){var e=x();e&&0!==e.length&&(c&&""!=c?e[0].setAttribute(A.activeDescendant,c):e[0].removeAttribute(A.activeDescendant))}function M(c){var e=x();e&&0!==e.length&&e[0].setAttribute(A.expanded,c)}function U(c){if(!c)return C().find("option:selected");c=C().find('option[value$\x3d"search-alias\x3d'+c+'"]');
return 0<c.length?r(c[0]):r()}function V(){return x().get(0)===document.activeElement}function O(){var c=P(),e=I();!I().is(":visible")||1>e.html().length||e.css({left:c.offset().left,width:c.width()})}function P(){h===p&&(h=r("#nav-iss-attach"));return h}var N=t!==p,K={searchBox:"#twotabsearchtextbox",searchSuggestions:"#srch_sggst",navBar:"#navbar",aliasDropdown:"#searchDropdownBox",dropdownId:"search-dropdown",form:"#nav-search-bar-form",issPrefixEl:"#issprefix",issFieldRestriction:"#issFieldRestriction",
browseNodeId:"#issBrowseNodeId",issCridEl:"#isscrid",suggestion:".s-suggestion"},Q,d,a,b,h,f="",k=!1,l='\x3cdiv id\x3d"'+K.dropdownId+'" class\x3d"search-dropdown"\x3e\x3c/div\x3e',n=/search-alias\s*=\s*([\w-]+)/,g=/^\s+/,c=document.getElementById("twotabsearchtextbox"),e=document.getElementById("ac-prefix"),m=document.getElementById("ac-prediction"),v=document.getElementById("ac-liveField"),A={expanded:"aria-expanded",activeDescendant:"aria-activedescendant"};t===p&&r(q).resize(O);return{setAttribution:function(c,
e,m){B.setRefTag(E(),c);B.setCompletionResponseId(E(),e);B.setPrefix(E(),m)},getAliasDropdown:C,getSearchBox:x,setRefTag:function(c){B.setRefTag(E(),c)},getSearchInput:function(){return x()[0]},getSearchBoxId:function(){return K.searchBox},getSearchSuggestions:function(){"undefined"===typeof d&&(d=r(K.searchSuggestions));return d},getKeyword:function(){var c=(t!==p?t:x()).val();return c?c.replace(g,""):c},getCursorPosition:G,setKeyword:function(c){if(t!==p)t.val(c);else return x().val(c)},getAliasFromDropdown:function(){var c=
C().val();return(c=c&&c.match(n))?c[1]:p},setAlias:function(c,e,m){var g=U(c),a=C(),n=void 0;0!==g.length?n=g.val():m&&e&&c&&(e=m({value:c,display:e}),a.append(e),n="search-alias\x3d"+c);n&&a.val(n).trigger("change")},getCategoryNameFromDropdown:function(c){var e="";c?(c=C().find('option[value$\x3d"search-alias\x3d'+c+'"]'),e=0<c.length?r(c[0]).text():e):e=C().find("option:selected").text();return r.trim(e)},getDropdown:I,showDropdown:function(c){V()&&(N?("undefined"!==typeof c&&t.flyout.elem().html(c),
t.flyout.show()):("undefined"!==typeof c&&I().hide().html(c),c=P(),I().css({left:c.offset().left,width:c.width()}).show()),M(!0))},hideDropdown:F,getOption:U,getForm:E,getIssPrefixElem:function(){return r(K.issPrefixEl)},getIssFieldRestrictionElem:function(){return r(K.issFieldRestriction)},getIssBrowseNodeIdElem:function(){return r(K.browseNodeId)},getIssCridElem:function(){return r(K.issCridEl)},getSuggestions:function(){return r(K.suggestion)},submitForm:function(){E().submit()},getOriginalSearchTerm:function(){return E().data("originalSearchTerm")},
getOriginalAlias:function(){return E().data("originalAlias")},isSearchBoxFocused:V,activateSearchBox:function(){E().addClass("nav-active")},deactivateSearchBox:function(){E().removeClass("nav-active")},getSearchApi:function(){return t},blurAutocomplete:function(){F();x()[0].blur()},getSelectedSearchDropdownUrl:function(){return C().val()||p},setSelectedSearchDropdownUrl:function(c){C().has("option[value\x3d'"+c+"']").val(c).trigger("change")},setPredictedText:function(g,a,n){G();var l={en_US:"Press right arrow key or Tab key to accept suggestion",
es_US:"Presione la tecla de flecha derecha o la tecla de tabulación para aceptar la sugerencia.",es_ES:"Presione la tecla de flecha derecha o la tecla de tabulación para aceptar la sugerencia.",es_MX:"Presione la tecla de flecha derecha o la tecla de tabulación para aceptar la sugerencia.",ar_AE:"اضغط على مفتاح السهم الأيمن أو مفتاح Tab لقبول الاقتراح",ar_SA:"اضغط على مفتاح السهم الأيمن أو مفتاح Tab لقبول الاقتراح",de_DE:"Drücken Sie die rechte Pfeiltaste oder die Tabulatortaste, um den Vorschlag zu akzeptieren",
hi_IN:"सुझाव स्वीकार करने के लिए दायाँ तीर कुंजी या टैब कुंजी दबाएँ",fr_FR:"Appuyez sur la touche flèche droite ou sur la touche Tab pour accepter la suggestion",fr_CA:"Appuyez sur la touche flèche droite ou sur la touche Tab pour accepter la suggestion",ja_JP:"提案を受け入れるには右矢印キーまたはTabキーを押してください",tr_TR:"Öneriyi kabul etmek için sağ ok tuşuna veya sekme tuşuna basın",nl_NL:"Druk op de pijl-rechts of de tab-toets om de suggestie te accepteren",it_IT:"Premere il tasto freccia destra o il tasto Tab per accettare il suggerimento",
pt_BR:"Pressione a tecla de seta para a direita ou a tecla Tab para aceitar a sugestão"};n&&(f=l[n]||l.en_US);c&&H()&&(a&&g?a===g?T():(n=/[A-Z]/.test(c.value),e.innerText=n?c.value:a,m.innerText=g.slice(a.length),v.innerText=f?f+" "+g:""):T())},dismissPredictiveText:T,showPredictiveTextOnSearchBar:function(){c&&m&&0<m.textContent.trim().length&&(c.value+=m.innerText,e.innerText="",m.innerText="")},updatePreviousCursorPosition:function(){G()},getPrediction:function(){return m?m.innerText:""},isPredictiveTextElementsPresent:H,
setDeletePressed:function(c){k=c},getDeleteKeyPressed:function(){return k},notifySearchBoxSelection:S}});"use strict";q.$Nav.when("$","NavDomApi").build("sx.iss.PublicApi",function(q,t){function r(p){t.getSearchBox().focus(p)}function x(q){q===p?t.getSearchBox().blur():t.getSearchBox().blur(q)}var I=/node\s*=\s*([\d]+)/,C=/bbn\s*=\s*([\d]+)/,F=/^me=([0-9A-Z]*)/,E=/^\s+/,G=/\s+/g,H=/gp\/help\/customer\/display\.html/;return{searchAlias:function(){return t.getAliasFromDropdown()},searchNode:function(){var p=
t.getAliasDropdown().val().match(I);return p?p[1]:null},bbn:function(){var p=t.getAliasDropdown().val().match(C);return p?p[1]:null},merchant:function(){var p=t.getAliasDropdown().val().match(F);return p?p[1]:null},encoding:function(){var p=t.getForm().find('input[name^\x3d"__mk_"]');if(p.length)return[p.attr("name"),p.val()]},keyword:function(q){return q!==p?t.setKeyword(q):t.getKeyword().replace(E,"").replace(G," ")},submit:function(p){var q=t.getForm();q.submit(function(t){if(!(q&&q[0]&&q[0].action&&
q[0].action.match(H)))return console.log("Attaching the submit event handler to the form..."),p.call(this,t)})},onFocus:r,onBlur:x,focus:r,blur:x,keydown:function(p){var q="#"+t.getSearchBox().attr("id");t.getForm().delegate(q,"keydown",p)},keyup:function(p){var q="#"+t.getSearchBox().attr("id");t.getForm().delegate(q,"keyup",p)},setupFastLab:function(p){console.log("Weblabs are no longer triggered in the front end. Fastlab",p)}}});"use strict";q.$Nav.importEvent("jQuery",{as:"$",global:"jQuery"});
q.$Nav.when("$","sx.iss.IssParentCoordinator","sx.iss.PublicApi").build("sx.iss",function(p,q,B){q={IssParentCoordinator:q,isNewIss:!0};p.extend(q,q,B);return q});q.$Nav.when("sx.iss").run(function(p){q.$Nav.publish("sx.iss",p);q.$Nav.publish("search-js-autocomplete",p)});"use strict";q.$Nav.build("sx.iss.Platform",function(){return{name:"desktop",cid:"search-ui",maxSuggestions:11}});"use strict";q.$Nav.build("sx.iss.Defaults",function(){return{}});"use strict";var M=function(){return function(q,
t){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q)){var r=[],x=!0,I=!1,C=p;try{for(var F=q[Symbol.iterator](),E;!(x=(E=F.next()).done)&&(r.push(E.value),!t||r.length!==t);x=!0);}catch(W){I=!0,C=W}finally{try{if(!x&&F["return"])F["return"]()}finally{if(I)throw C;}}return r}throw new TypeError("Invalid attempt to destructure non-iterable instance");}}(),ca=function(){function p(p,q){for(var t=0;t<q.length;t++){var r=q[t];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=
!0);Object.defineProperty(p,r.key,r)}}return function(q,r,x){r&&p(q.prototype,r);x&&p(q,x);return q}}(),H="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"===typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Y=function(r,t){var B=2<arguments.length&&arguments[2]!==p?arguments[2]:{},x=3<arguments.length&&arguments[3]!==p?arguments[3]:{},I=4<arguments.length&&arguments[4]!==p?arguments[4]:{};return function(C,
F,E,W){function Z(){Q||(G.register("on-autocomplete-shown",function(){return!0}),Q=!0)}function T(d){d.$searchbox[0].addEventListener("focus",function(){F.showDropdown();Z()});var a=function(a){a:{for(a=a.target;a;){if(a===d.$form[0]||a===O){a=!0;break a}a=a.parentElement}a=!1}a||(d.$form.find("input")[0].blur(),F.hideDropdown(),S())};(x.focusOutDismissEvents||["click","touch"]).forEach(function(b){return document.addEventListener(b,a)});F.getForm().submit(function(){return F.hideDropdown()})}function S(){var d=
document.getElementById("ac-prefix"),a=document.getElementById("ac-prediction");d&&a&&(document.getElementById("ac-prefix").innerText="",document.getElementById("ac-prediction").innerText="")}var Y=function(d){function a(h){if(b[h])return b[h].exports;var f=b[h]={i:h,l:!1,exports:{}};d[h].call(f.exports,f,f.exports,a);f.l=!0;return f.exports}var b={};a.m=d;a.c=b;a.d=function(b,f,k){a.o(b,f)||Object.defineProperty(b,f,{enumerable:!0,get:k})};a.r=function(a){"undefined"!==typeof Symbol&&Symbol.toStringTag&&
Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})};a.t=function(b,f){f&1&&(b=a(b));if(f&8||f&4&&"object"===("undefined"===typeof b?"undefined":H(b))&&b&&b.__esModule)return b;var k=Object.create(null);a.r(k);Object.defineProperty(k,"default",{enumerable:!0,value:b});if(f&2&&"string"!=typeof b)for(var l in b)a.d(k,l,function(a){return b[a]}.bind(null,l));return k};a.n=function(b){var f=b&&b.__esModule?function(){return b["default"]}:function(){return b};
a.d(f,"a",f);return f};a.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)};a.p="";return a(a.s=82)}([function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(a,b,l,n){n===p&&(n=l);Object.defineProperty(a,n,{enumerable:!0,get:function(){return b[l]}})}:function(a,b,l,n){n===p&&(n=l);a[n]=b[l]});d=this&&this.__exportStar||function(a,b){for(var l in a)"default"===l||Object.prototype.hasOwnProperty.call(b,l)||h(b,a,l)};Object.defineProperty(a,"__esModule",{value:!0});
d(b(12),a);d(b(132),a);d(b(6),a);d(b(157),a);d(b(72),a)},function(d,a,b){d.exports={Stores:b(161),MultiAsinsMobile:b(162),TileCarousel:b(163),TileRows:b(164),NileSearchSuggestionsWidgetDesktop:b(165),NileSearchSuggestionsWidget:b(166),MultiAsins:b(167),ButtonCarousel:b(168),ResizableTileRows:b(169),Highlighted:b(13),TextWithLink:b(170),DisplayKeywordWithByline:b(74),KeywordWithByline:b(171),DisplayString:b(25),TrendingSearchSuggestion:b(172),SuggestionWithoutTitle:b(75),ProductPreview:b(173),EntityTitleOnly:b(174),
EntityBasicContainer:b(41),EntityBasic:b(175),EntityBasicDropdown:b(176),MultiKeywordSuggestions:b(177),CarouselControl:b(26),EntityEgressDropDown:b(178),LowercaseHeader:b(27),Options:b(179),WidgetHeader:b(76),UppercaseHeader:b(7),CardsWidget:b(180),TextRefinement:b(181),ImageRefinement:b(182),SuggestionWithTitle:b(183),ImageAndTextSuggestion:b(184),ImageSuggestion:b(185),AsinHeader:b(77),WidgetAsin:b(186),ThumbnailImage:b(78),KeywordSuggestion:b(42),RecentSearchSuggestion:b(187),KeywordImageSuggestion:b(188),
Separator:b(189)}},function(d,a,b){(function(a){var b=function(a){return a&&a.Math==Math&&a};d.exports=b("object"==("undefined"===typeof globalThis?"undefined":H(globalThis))&&globalThis)||b("object"==("undefined"===typeof q?"undefined":H(q))&&q)||b("object"==("undefined"===typeof self?"undefined":H(self))&&self)||b("object"==("undefined"===typeof a?"undefined":H(a))&&a)||function(){return this}()||Function("return this")()}).call(this,b(87))},function(d,a,b){function h(c){return c&&(c=c.metadata)&&
c.entityTemplateConfig?JSON.parse(c.entityTemplateConfig):p}function f(c){return c.template===a.ENTITY_TEMPLATE}function k(c){var m;return null===(m=null===c||void 0===c?void 0:c.disclosurePaneTriggeringList)||void 0===m?void 0:m.includes(e.EntityDisclosurePaneTriggeringSource.DEFAULT_SHOW)}function l(c){return null===c||void 0===c?void 0:c.find(function(c){return f(c.data)})}function n(c,e){var m,g;e=e?a.ENTITY_WIDGET_CSS_DISPLAY_STYLE:a.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE;null===(g=null===(m=l(c))||
void 0===m?void 0:m.domElement.getElementsByClassName(a.ENTITY_DISCLOSURE_PANE_CONTAINER_CLASS_NAME).item(0))||void 0===g?void 0:g.setAttribute("style",e)}function g(c){var m;c=h(c);return(null===(m=null===c||void 0===c?void 0:c.disclosurePaneTriggeringList)||void 0===m?0:m.includes(e.EntityDisclosurePaneTriggeringSource.MOUSEOVER))?!0:!1}function c(c){var e=new RegExp(/browse\/node=/);return(new RegExp(/b[\/]?\?(?:node=|.*?&node=)/)).test(c)||e.test(c)}Object.defineProperty(a,"__esModule",{value:!0});
a.TOGGLE_CHEVRON_ICON_MAP=a.getEntityLinkURL=a.isEntityPDKeyboardA11yEnabled=a.isBrowseNodePageLink=a.generateCSATag=a.canTriggerEntityDisclosurePaneByDropdownButton=a.canTriggerEntityDisclosurePaneByKeyboardSelect=a.hasMouseoverTriggeringEntityWidget=a.canTriggerEntityDisclosurePaneByMouseOver=a.triggerEntityWidgetDisclosurePane=a.setEntityWidgetLeftDisclosurePaneVisibility=a.getEntityWidgetElementInAutocompleteList=a.getEntityWidgetSuggestion=a.isEntityDisclosurePaneDefaultShow=a.isEntityWidget=
a.getEntityTemplateConfig=a.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE=a.ENTITY_WIDGET_CSS_DISPLAY_STYLE=a.DROPDOWN_BUTTON_CHEVRON_ICON_ID_NAME=a.DROPDOWN_BUTTON_CONTAINER_ID_NAME=a.DROPDOWN_BUTTON_CLASS_NAME=a.ENTITY_DISCLOSURE_PANE_CONTAINER_CLASS_NAME=a.ENTITY_DEFAULT_PANE_CONTAINER_CLASS_NAME=a.ENTITY_TEMPLATE=void 0;var e=b(12),m=b(6),v=b(0);a.ENTITY_TEMPLATE="entity";a.ENTITY_DEFAULT_PANE_CONTAINER_CLASS_NAME="s-entity-default-pane";a.ENTITY_DISCLOSURE_PANE_CONTAINER_CLASS_NAME="s-entity-disclosure-pane";
a.DROPDOWN_BUTTON_CLASS_NAME="s-entity-chevron-button";a.DROPDOWN_BUTTON_CONTAINER_ID_NAME="s-entity-dropdown-button-container-id";a.DROPDOWN_BUTTON_CHEVRON_ICON_ID_NAME="s-entity-chevron-icon-id";a.ENTITY_WIDGET_CSS_DISPLAY_STYLE="";a.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE="display:none";a.getEntityTemplateConfig=h;a.isEntityWidget=f;a.isEntityDisclosurePaneDefaultShow=k;a.getEntityWidgetSuggestion=function(c){return null===c||void 0===c?void 0:c.find(function(c){return f(c)})};a.getEntityWidgetElementInAutocompleteList=
l;a.setEntityWidgetLeftDisclosurePaneVisibility=n;a.triggerEntityWidgetDisclosurePane=function(c){var m,g=c.getAutocompleteView().list,a=c.getAutocompleteView().twoPanelists,b=null===(m=l(g.autocompleteListElements))||void 0===m?void 0:m.data;b&&(m=h(b))&&k(m)&&(m=m.entityLayout,m===e.EntityLayout.LEFT_AND_RIGHT_PANE?a.triggerEntityProgressiveDisclosureTwoPane(b,c):m===e.EntityLayout.LEFT_PANE_ONLY&&n(g.autocompleteListElements,!0))};a.canTriggerEntityDisclosurePaneByMouseOver=g;a.hasMouseoverTriggeringEntityWidget=
function(c){var e;return(c=null===(e=l(c))||void 0===e?void 0:e.data)?f(c)&&g(c):!1};a.canTriggerEntityDisclosurePaneByKeyboardSelect=function(c){var m;c=h(c);return(null===(m=null===c||void 0===c?void 0:c.disclosurePaneTriggeringList)||void 0===m?0:m.includes(e.EntityDisclosurePaneTriggeringSource.KEYBOARD_SELECT))?!0:!1};a.canTriggerEntityDisclosurePaneByDropdownButton=function(c){var m;c=h(c);return(null===(m=null===c||void 0===c?void 0:c.disclosurePaneTriggeringList)||void 0===m?0:m.includes(e.EntityDisclosurePaneTriggeringSource.DROPDOWN_BUTTON_CLICK))?
!0:!1};a.generateCSATag=function(c){return"false"===c.metadata.removeWidgetIdFromRefTag?c.strategyId+"-"+c.widgetId:c.strategyId};a.isBrowseNodePageLink=c;a.isEntityPDKeyboardA11yEnabled=function(c){return"desktop"===m.getSiteVariant()&&c.some(function(c){return"WIDGET"===c.type?f(c):!1})};a.getEntityLinkURL=function(e,g,a){var n=v.normalizeInputObject(e),l=JSON.parse(n.metadata.link);e=m.constructRefTag(e.refTag,e.strategyId,a,l.tag,l.serviceGeneratedLinkTag,e.widgetId,e.metadata.removeWidgetIdFromRefTag);
return m.buildEntityLinkURL(n,l.link,g,e,c(l.link))};a.TOGGLE_CHEVRON_ICON_MAP={"s-entity-chevron-icon-downward":"s-entity-chevron-icon-upward","s-entity-chevron-icon-upward":"s-entity-chevron-icon-downward","s-entity-chevron-button-downward":"s-entity-chevron-button-upward","s-entity-chevron-button-upward":"s-entity-chevron-button-downward"}},function(d,a,b){function h(a,n,g,c,e){var m=a.value;a=a.crid;g=g.getContextField("prefix");n.startsWith("/")&&(n=n.substr(1));c={k:m,ref_:c,crid:a,sprefix:g};
e&&delete c.k;e=n.includes("?")?"\x26":"?";return n.includes("#")?(n=n.split("#"),m=n[1],"https://"+f.searchDomain+"/"+n[0]+e+k.paramsToURLParameters(c)+"#"+m):"https://"+f.searchDomain+"/"+n+e+k.paramsToURLParameters(c)}Object.defineProperty(a,"__esModule",{value:!0});a.updateEntityWidgetLinkUrls=void 0;var f=b(0),k=b(24);a.default=h;a.updateEntityWidgetLinkUrls=function(a,n,g,c){g.forEach(function(e,m){g[m].constructedLinkUrl=h(a,e.link,n,e.constructedRefTag?e.constructedRefTag:a.refTag,c)});return g}},
function(d,a,b){a=b(9);d.exports=!a(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(a,b,l,n){n===p&&(n=l);Object.defineProperty(a,n,{enumerable:!0,get:function(){return b[l]}})}:function(a,b,l,n){n===p&&(n=l);a[n]=b[l]});d=this&&this.__exportStar||function(a,b){for(var l in a)"default"===l||Object.prototype.hasOwnProperty.call(b,l)||h(b,a,l)};Object.defineProperty(a,"__esModule",{value:!0});
d(b(67),a);d(b(136),a);d(b(38),a);d(b(154),a);d(b(155),a);d(b(156),a)},function(d,a){function b(a,b,n){n=b.customCss!==p&&null!==b.customCss?b.customCss:"";a.assertNotNull(b,["header","cssPrefix"]);return a.root("autocomplete","UppercaseHeader",[a.createElement("div",{"class":f(["s-heavy",b.cssPrefix+"-suggestion-header","sac-header-component-single-line-header",n]),role:"text","aria-label":b.header,id:"sac-widget-suggestion-header"},b.header)])}function h(a){return null!==a&&a!==p&&""!==a}function f(a){a=
a.join(" ").split(" ").filter(h).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.UppercaseHeader=b},function(d,a,b){var h=b(2),f=b(44).f,k=b(33),l=b(93),n=b(32),g=b(96),c=b(100);d.exports=function(e,m){var a=e.target,b=e.global,d=e.stat,u,y,J;if(y=b?h:d?h[a]||n(a,{}):(h[a]||{}).prototype)for(J in m){var L=m[J];var D=e.noTargetGet?(u=f(y,J))&&u.value:y[J];u=c(b?J:a+(d?".":"#")+J,e.forced);if(!u&&D!==p){if(("undefined"===typeof L?"undefined":H(L))===("undefined"===typeof D?
"undefined":H(D)))continue;g(L,D)}(e.sham||D&&D.sham)&&k(L,"sham",!0);l(y,J,L,e)}}},function(d,a){d.exports=function(a){try{return!!a()}catch(h){return!0}}},function(d,a){d.exports=function(a){return"object"===("undefined"===typeof a?"undefined":H(a))?null!==a:"function"===typeof a}},function(d,a,b){var h=b(17),f={}.hasOwnProperty;d.exports=Object.hasOwn||function(a,b){return f.call(h(a),b)}},function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(a,b,l,n){n===p&&(n=l);Object.defineProperty(a,
n,{enumerable:!0,get:function(){return b[l]}})}:function(a,b,l,n){n===p&&(n=l);a[n]=b[l]});d=this&&this.__exportStar||function(a,b){for(var l in a)"default"===l||Object.prototype.hasOwnProperty.call(b,l)||h(b,a,l)};Object.defineProperty(a,"__esModule",{value:!0});d(b(129),a);d(b(130),a);d(b(131),a)},function(d,a){function b(a,b,l){a.assertNotNull(b,["highlightFragments"]);return a.root("autocomplete","Highlighted",[h(b.highlightFragments).map(function(b,g){return[b.hit?""+b.text:a.createElement("span",
{"class":"s-heavy"},""+b.text)]})])}function h(a){return!a.map&&Java.from?Java.from(a):a}d.exports={};d.exports.default=b;d.exports.Highlighted=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,e){c.__proto__=e}||function(c,e){for(var m in e)Object.prototype.hasOwnProperty.call(e,m)&&(c[m]=e[m])};return a(c,e)};return function(c,e){function m(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):
(m.prototype=e.prototype,new m)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=d(b(4)),l=b(0),n=b(3);b=function(a){function c(c,m,g){void 0===g&&(g=f.EntityWidgetPane.Disclosure);var e=a.call(this)||this;e.kataRuntime=c;e.api=m;e.pane=g;e.$=m.getJQuery();return e}h(c,a);c.prototype.accept=function(c,m){m=this.transformInputObject(c,m);m.metadata.csaTag=n.generateCSATag(c);return m};c.prototype.navigateToSelectedLink=
function(c,m){m=m instanceof HTMLAnchorElement?m:m.querySelector("a");(null===m||void 0===m?0:m.href)&&q.location.assign(m.href);this.click(c);return!0};c.prototype.getEntityLinkURL=function(c){var e=JSON.parse(c.metadata.link),a=f.constructRefTag(c.refTag,c.strategyId,f.EntityWidgetPane.Disclosure,e.tag,e.serviceGeneratedLinkTag,c.widgetId,c.metadata.removeWidgetIdFromRefTag);return k.default(c,e.link,this.api.getContext(),a)};c.prototype.click=function(c){l.logOneTimeEvent(l.SearchAcceptanceMetric);
l.emitCounter(l.SearchAcceptanceMetric);a.prototype.click.call(this,c);return!0};return c}(f.InstrumentedSuggestion);a.default=b},function(d,a,b){var h=b(29),f=b(47);d.exports=function(a){return h(f(a))}},function(d,a,b){var h=b(2);d.exports=function(a,b){if(2>arguments.length){var l=h[a];l="function"==typeof l?l:p}else l=h[a]&&h[a][b];return l}},function(d,a,b){var h=b(47);d.exports=function(a){return Object(h(a))}},function(d,a,b){d=b(5);var h=b(54),f=b(19),k=b(48),l=Object.defineProperty;a.f=d?
l:function(a,g,c){f(a);g=k(g);f(c);if(h)try{return l(a,g,c)}catch(e){}if("get"in c||"set"in c)throw TypeError("Accessors not supported");"value"in c&&(a[g]=c.value);return a}},function(d,a,b){var h=b(10);d.exports=function(a){if(!h(a))throw TypeError(String(a)+" is not an object");return a}},function(d,a,b){var h=b(60),f=Math.min;d.exports=function(a){return 0<a?f(h(a),9007199254740991):0}},function(d,a,b){a=b(30);var h=b(102);b=b(18);var f=a("unscopables"),k=Array.prototype;k[f]==p&&b.f(k,f,{configurable:!0,
value:h(null)});d.exports=function(a){k[f][a]=!0}},function(d,a,b){var h=b(2),f=b(36),k=Function.call;d.exports=function(a,b,g){return f(k,h[a].prototype[b],g)}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.getSiteVariant=void 0;var h=null,f={Android:function(){var a;try{var b=(new RegExp(/amzn-app-id\s*=\s*([^;]*)?;/g)).exec("; "+document.cookie);if(b&&2===b.length)return"850"===(null===(a=b[1].split("/")[1].split(".").pop())||void 0===a?void 0:a.trim())}catch(n){console.error("Invalid Version Number")}return!1}()?
"android-tablet-mshop":"android-mshop",iOS:"ios-iphone-mshop"};a.getSiteVariant=function(){if(!h){var a=(a=(new RegExp(/amzn-app-ctxt\s*=\s*([^;]*)?;/g)).exec("; "+document.cookie))&&2===a.length?a[1]:"";a?(a=decodeURIComponent(a),h=(a=(new RegExp(/"os"\s*:\s*"([^"]*)?"/g)).exec(a))&&2===a.length&&a[1]?a[1]in f?f[a[1]]:"unknown":"unknown"):h=document.documentElement.classList.contains("a-mobile")?"mobile":"desktop"}return h}},function(d,a,b){function h(a,g){return a.replace(/\${(.+?)}/g,function(c,
e){return"undefined"===typeof g[e]?c:g[e]})}Object.defineProperty(a,"__esModule",{value:!0});a.MID_TO_PRIMARY_LOP=a.guardError=a.onScroll=a.onResize=a.createThrottledEventHandler=a.throttle=a.getDocument=a.getWindow=a.getElement=a.getElements=a.getVisibleArea=a.setDefaultMetadata=a.buildCrossCategoryString=a.substituteStringInterpolations=a.paramsToURLParameters=a.shouldWarmUp=void 0;b(146);var f=b(0),k=["CreRedTeamBotThatsSignedIn"];a.shouldWarmUp=function(){return navigator?!k.some(function(a){return navigator.userAgent.includes(a)}):
!0};a.paramsToURLParameters=function(a){return Object.entries(a).filter(function(a){a=a[1];return a!==p&&null!==a}).flatMap(function(a){var c=a[0];a=a[1];return Array.isArray(a)?a.map(function(e){return[c,e]}):[[c,a]]}).map(function(a){var c=a[1];return encodeURIComponent(a[0])+"\x3d"+encodeURIComponent(c)}).join("\x26")};a.substituteStringInterpolations=h;a.buildCrossCategoryString=function(a,g,c){return g&&0<g.length?g[0]!==p&&"aps"==g[0].value?p:h(a,{query:"",category:g[0].display}).trim():p};
a.setDefaultMetadata=function(a){var g,c,e,m;a==p&&(a={});a.headerPrefix=null!==(g=a.headerPrefix)&&void 0!==g?g:"";a.header=null!==(c=a.header)&&void 0!==c?c:"";a.headerSuffix=null!==(e=a.headerSuffix)&&void 0!==e?e:"";a.title=null!==(m=a.title)&&void 0!==m?m:"";return a};a.getVisibleArea=function(b){var g=b.top,c=b.bottom,e=b.left,m=b.right,n=a.getWindow();b=n.innerHeight;e=l(e,m,n.innerWidth);g=l(g,c,b);return e*g};var l=function(a,g,c){return 0<=a?Math.min(c-a,g-a):0<g?Math.min(Math.min(g,c),
g-a):0};a.getElements=function(a,g){return Array.prototype.slice.call((g||document.body).querySelectorAll(a))};a.getElement=function(b,g){g=g||document.body;var c;(c=!b)||(c=g,c="matches"in c?c.matches(b):"msMatchesSelector"in c?c.msMatchesSelector(b):"webkitMatchesSelector"in c?c.webkitMatchesSelector(b):0<=a.getElements(b,a.getDocument().body).indexOf(c));return c?g:g.querySelector(b)};a.getWindow=function(){return a.getDocument().defaultView};a.getDocument=function(){return document.body.ownerDocument};
a.throttle=function(b,g){var c=!1,e=a.getWindow();return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];c||(b.apply(void 0,a),c=!0,e.setTimeout(function(){c=!1},g))}};a.createThrottledEventHandler=function(b,g,c){var e=(null===c||void 0===c?void 0:c.ms)||25,m=(null===c||void 0===c?void 0:c.el)||a.getWindow(),l=a.throttle(g,e);m.addEventListener(b,l);return function(){m.removeEventListener(b,l)}};a.onResize=function(b,g){return a.createThrottledEventHandler("resize",b,g)};a.onScroll=
function(b,g){return a.createThrottledEventHandler("scroll",b,g)};a.guardError=function(a,g){return function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];try{g.apply(void 0,c)}catch(m){f.logJsError(m,a)}}};a.MID_TO_PRIMARY_LOP={1:"en_US",3:"en_GB",4:"de_DE",5:"fr_FR",35691:"it_IT",44551:"es_ES",623225021:"en_AE",44571:"en_IN",6:"ja_JP",7:"en_CA",3240:"zh_CN",526970:"pt_BR",771770:"es_MX",111172:"en_AU",328451:"nl_NL",338801:"en_AE",338811:"en_AE",338851:"tr_TR",104444012:"en_SG",712115121:"pl_PL",
704403121:"sv_SE",679831071:"fr_BE",680844071:"en_ZA"}},function(d,a,b){function h(a,b,n){a.assertNotNull(b,["highlightFragments"]);n=f.Highlighted;return a.root("autocomplete","DisplayString",[n(a,{highlightFragments:b.highlightFragments},[]),null!==b.crossCategoryString&&"undefined"!==typeof b.crossCategoryString?[" ",a.createElement("span",{"class":"s-store s-highlight-secondary"},b.crossCategoryString)]:p])}var f=b(13);d.exports={};d.exports.default=h;d.exports.DisplayString=h},function(d,a){function b(a,
b,k){return a.root("autocomplete","CarouselControl",[[a.createElement("div",{"class":"discover-tr-carousel-control discover-tr-carousel-control-left discover-tr-prevent-close"},a.createElement("img",{alt:"","class":"discover-tr-carousel-control-left discover-tr-prevent-close",src:"https://m.media-amazon.com/images/G/01/shopbylook/shoppable-images/next_tab_control._CB416468320_.svg"})),a.createElement("div",{"class":"discover-tr-carousel-control discover-tr-carousel-control-right discover-tr-prevent-close"},
a.createElement("img",{alt:"","class":"discover-tr-carousel-control-right discover-tr-prevent-close",src:"https://m.media-amazon.com/images/G/01/shopbylook/shoppable-images/next_tab_control._CB416468320_.svg"}))]])}d.exports={};d.exports.default=b;d.exports.CarouselControl=b},function(d,a){function b(a,b,n){n=b.customCss!==p&&null!==b.customCss?b.customCss:"";a.assertNotNull(b,["headerPrefix","header","headerSuffix","cssPrefix"]);return a.root("autocomplete","LowercaseHeader",[a.createElement("div",
{"class":f([b.cssPrefix+"-suggestion-header","sac-header-component-single-line-header",n]),role:"text","aria-label":b.headerPrefix+b.header+b.headerSuffix,id:"sac-widget-suggestion-header"},a.createElement("span",{"class":"s-heavy"},b.headerPrefix),b.header,a.createElement("span",{"class":"s-heavy"},b.headerSuffix))])}function h(a){return null!==a&&a!==p&&""!==a}function f(a){a=a.join(" ").split(" ").filter(h).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.LowercaseHeader=
b},function(d,a,b){d={}.propertyIsEnumerable;var h=Object.getOwnPropertyDescriptor;b=h&&!d.call({1:2},1);a.f=b?function(a){a=h(this,a);return!!a&&a.enumerable}:d},function(d,a,b){a=b(9);var h=b(46),f="".split;d.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return"String"==h(a)?f.call(a,""):Object(a)}:Object},function(d,a,b){a=b(2);var h=b(52),f=b(11),k=b(53),l=b(51);b=b(50);var n=h("wks"),g=a.Symbol,c=b?g:g&&g.withoutSetter||k;d.exports=function(a){if(!f(n,a)||!l&&
"string"!=typeof n[a])l&&f(g,a)?n[a]=g[a]:n[a]=c("Symbol."+a);return n[a]}},function(d,a,b){a=b(2);b=b(32);b=a["__core-js_shared__"]||b("__core-js_shared__",{});d.exports=b},function(d,a,b){var h=b(2);d.exports=function(a,b){try{Object.defineProperty(h,a,{value:b,configurable:!0,writable:!0})}catch(l){h[a]=b}return b}},function(d,a,b){a=b(5);var h=b(18),f=b(45);d.exports=a?function(a,b,n){return h.f(a,b,f(1,n))}:function(a,b,n){a[b]=n;return a}},function(d,a){d.exports={}},function(d,a){d.exports=
"constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(d,a,b){var h=b(63);d.exports=function(a,b,l){h(a);if(b===p)return a;switch(l){case 0:return function(){return a.call(b)};case 1:return function(l){return a.call(b,l)};case 2:return function(l,g){return a.call(b,l,g)};case 3:return function(l,g,c){return a.call(b,l,g,c)}}return function(){return a.apply(b,arguments)}}},function(d,a,b){var h=b(58),f=b(35);d.exports=Object.keys||function(a){return h(a,
f)}},function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(c,a,e,m){m===p&&(m=e);Object.defineProperty(c,m,{enumerable:!0,get:function(){return a[e]}})}:function(c,a,e,m){m===p&&(m=e);c[m]=a[e]});d=this&&this.__exportStar||function(c,a){for(var e in c)"default"===e||Object.prototype.hasOwnProperty.call(a,e)||h(a,c,e)};var f=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{"default":c}};Object.defineProperty(a,"__esModule",{value:!0});a.constructPrefixAttribution=
a.updateWidgetItemRefTag=a.constructRefTag=a.implicitRefTag=a.buildNileDialogBoxDataStream=a.textSuggestionSelectionHandler=a.highlightText=a.normalizeInputObject=a.buildNileSearchLinkURL=a.buildEntityLinkURL=a.buildSearchLinkUrl=void 0;var k=b(68);d(b(39),a);d(b(69),a);var l=b(145);Object.defineProperty(a,"buildSearchLinkUrl",{enumerable:!0,get:function(){return f(l).default}});var n=b(4);Object.defineProperty(a,"buildEntityLinkURL",{enumerable:!0,get:function(){return f(n).default}});var g=b(40);
Object.defineProperty(a,"buildNileSearchLinkURL",{enumerable:!0,get:function(){return f(g).default}});var c=b(147);Object.defineProperty(a,"normalizeInputObject",{enumerable:!0,get:function(){return f(c).default}});d(b(24),a);var e=b(148);Object.defineProperty(a,"highlightText",{enumerable:!0,get:function(){return f(e).default}});d(b(68),a);var m=b(149);Object.defineProperty(a,"textSuggestionSelectionHandler",{enumerable:!0,get:function(){return f(m).default}});var v=b(70);Object.defineProperty(a,
"buildNileDialogBoxDataStream",{enumerable:!0,get:function(){return f(v).default}});d(b(23),a);d(b(150),a);var A=b(151);Object.defineProperty(a,"implicitRefTag",{enumerable:!0,get:function(){return f(A).default}});d(b(152),a);var w=b(153);Object.defineProperty(a,"constructRefTag",{enumerable:!0,get:function(){return w.constructRefTag}});Object.defineProperty(a,"updateWidgetItemRefTag",{enumerable:!0,get:function(){return w.updateWidgetItemRefTag}});a.constructPrefixAttribution=function(c,a){return(c||
"")+","+(a||"aps")+","+Math.ceil(k.getAverageResponseTime())}},function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(a,b,g,c){c===p&&(c=g);Object.defineProperty(a,c,{enumerable:!0,get:function(){return b[g]}})}:function(a,b,g,c){c===p&&(c=g);a[c]=b[g]}),f=this&&this.__setModuleDefault||(Object.create?function(a,b){Object.defineProperty(a,"default",{enumerable:!0,value:b})}:function(a,b){a["default"]=b}),k=this&&this.__importStar||function(a){if(a&&a.__esModule)return a;var b={};
if(null!=a)for(var g in a)"default"!==g&&Object.prototype.hasOwnProperty.call(a,g)&&h(b,a,g);f(b,a);return b};Object.defineProperty(a,"__esModule",{value:!0});a.autocompleteServiceDomain=a.domainSuffix=a.searchDomain=void 0;d=b(69);b=k(b(67));a.searchDomain=d.getSearchDomain(b.location.hostname);a.domainSuffix=d.getAmazonDomainSuffix(a.searchDomain);a.autocompleteServiceDomain="completion"+a.domainSuffix},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(24),f=b(39),k=b(38);
a.default=function(a,b){var g=a.value,c=a.refTag;a=a.crid;var e=b.searchContext.context,m=e.bbn,l=e.node;e=e.rh;var n=b.getContextField("prefix"),d=b.getContextField("n"),u=b.getContextField("alias");b=b.getContextField("srs");return"https://"+f.searchDomain+"/s?"+h.paramsToURLParameters({bbn:m,node:l,rh:e,k:g,i:u,ref:c,srs:b,n:d,crid:a,sprefix:k.constructPrefixAttribution(n,u),qis:"NileOptionInAutocomplete",ni:"1"})}},function(d,a){function b(a,b,n){a.assertNotNull(b,"title subtitle imageUrl imageShape addDropdownButton addEgressChevron".split(" "));
return a.root("autocomplete","EntityBasicContainer",[a.createElement("div",{"class":f(["s-entity-default-pane-container-row","s-suggestion"+(null!==b.suggestionClasses&&"undefined"!==typeof b.suggestionClasses?" "+b.suggestionClasses:"")]),role:"button"},a.createElement("div",{"class":f(["s-entity-default-pane-thumbnail-container-"+b.imageShape])},a.createElement("img",{"class":f(["s-entity-suggestion-image-default-pane-"+b.imageShape]),src:b.imageUrl})),a.createElement("div",{"class":"s-entity-title-container"},
a.createElement("div",{"class":"s-entity-default-pane-text"},b.title),a.createElement("span",{"class":"s-highlight-secondary s-entity-default-pane-subtext"},b.subtitle)),b.addDropdownButton?a.createElement("div",{"class":"s-entity-dropdown-button-container"},a.createElement("div",{"class":"s-entity-chevron-button s-entity-chevron-button-downward"})):p,b.addEgressChevron?a.createElement("div",{"class":"s-entity-chevron-container"},a.createElement("div",{"class":"s-entity-chevron-icon s-entity-egress-chevron"})):
p)])}function h(a){return null!==a&&a!==p&&""!==a}function f(a){a=a.join(" ").split(" ").filter(h).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.EntityBasicContainer=b},function(d,a,b){function h(a,c,e){a.assertNotNull(c,["suggestion","enabledFeatures"]);var m=l.ThumbnailImage,b=n.DisplayString;return a.root("autocomplete","KeywordSuggestion",[a.createElement("div",{"class":"s-suggestion-container"},c.enabledFeatures.rightSideImage?m(a,{imageUrl:c.suggestion.imageUrl,
side:"right"},[]):p,a.createElement("div",{"class":k(["s-suggestion"+(null!==c.suggestionClasses&&"undefined"!==typeof c.suggestionClasses?" "+c.suggestionClasses:""),"s-suggestion-ellipsis-direction"]),role:"button","aria-label":c.suggestion.value},b(a,{highlightFragments:c.suggestion.highlightFragments,crossCategoryString:c.suggestion.crossCategoryString},[])),c.enabledFeatures.leftSideImage?m(a,{imageUrl:c.suggestion.imageUrl,side:"left"},[]):null!==c.suggestionClasses&&"undefined"!==typeof c.suggestionClasses?
["s-recentSearchDistinct"===c.suggestionClasses?a.createElement("div",{"class":"icon-suggestion-div past-icon-div","suggestion-icon-div":!0},a.createElement("i",{"class":"icon-past-search-suggestion s-suggestion-icon-left","past-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})):p,"s-recentSearchDistinct"!==c.suggestionClasses?a.createElement("div",{"class":"icon-suggestion-div search-icon-div","suggestion-icon-div":!0},a.createElement("i",
{"class":"icon-search-suggestion s-suggestion-icon-left","suggestion-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})):p]:a.createElement("div",{"class":"icon-suggestion-div search-icon-div","suggestion-icon-div":!0},a.createElement("i",{"class":"icon-search-suggestion s-suggestion-icon-left","suggestion-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})),c.enabledFeatures.autofill?
null!==c.suggestionClasses&&"undefined"!==typeof c.suggestionClasses?"s-recentSearchDistinct"!==c.suggestionClasses?a.createElement("div",{"class":"s-suggestion-autofillDistinct",autofill:!0,role:"button","aria-label":"append suggestion "+c.suggestion.value},a.createElement("i",{"class":"icon-autofill",autofill:!0})):p:a.createElement("div",{"class":"s-suggestion-autofillDistinct",autofill:!0,role:"button","aria-label":"append suggestion "+c.suggestion.value},a.createElement("i",{"class":"icon-autofill",
autofill:!0})):p,e)])}function f(a){return null!==a&&a!==p&&""!==a}function k(a){a=a.join(" ").split(" ").filter(f).join(" ");return 0<a.length?a:p}var l=b(78),n=b(25);d.exports={};d.exports.default=h;d.exports.KeywordSuggestion=h},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.leftCarouselControl=a.rightCarouselControl=void 0;var h=b(0),f=b(72);a.rightCarouselControl="discover-tr-carousel-control-right";a.leftCarouselControl="discover-tr-carousel-control-left";d=function(){function b(b,
n,g){var c=this;this.click=function(a){var e,b,g;a=null!==a&&void 0!==a?a:f.highlightSuggestion;a=null===(g=null===(b=null===(e=c.elements)||void 0===e?void 0:e.scrollableArea)||void 0===b?void 0:b.find("."+a))||void 0===g?void 0:g.find("a");return 0<(null===a||void 0===a?void 0:a.length)?(h.logOneTimeEvent(h.SearchAcceptanceMetric),h.emitCounter(h.SearchAcceptanceMetric),h.emitEvents(),c.clickLink(a[0]),!0):!1};this.scrollToHighlightedSuggestion=function(a){var e,b,g,l;(null===(e=c.elements)||void 0===
e?0:e.scrollableArea.length)&&a.length&&(null===(b=c.elements)||void 0===b?void 0:b.scrollableArea.stop(),e=(null===(g=c.elements)||void 0===g?NaN:g.scrollableArea.outerWidth(!0))/2,a=a.get(0).offsetLeft+a.get(0).offsetWidth/2,null===(l=c.elements)||void 0===l?void 0:l.scrollableArea.animate({scrollLeft:a-e}))};this.arrowClickHandler=function(e){var m=e.target||e.srcElement;if(!m)return!0;m.className&&-1!==m.className.indexOf(a.rightCarouselControl)?c.scrollTo("right"):m.className&&-1!==m.className.indexOf(a.leftCarouselControl)&&
c.scrollTo("left");e.preventDefault();return!1};this.carouselClickHandler=function(a){var e,b;a=null===(b=null===(e=c.elements)||void 0===e?void 0:e.scrollableArea)||void 0===b?void 0:b.find(a.target);if(0<a.length){e=a.closest("a",c.scrollableAreaSelector);var g=0<e.length?e:a.find("a")}return 0<(null===g||void 0===g?void 0:g.length)?(c.api.hideDropdown(),!0):!1};this.updateControlVisibility=function(){var a,m,b,g,l,n,f,k,h=c.getControlVisibility();h.left?null===(m=null===(a=c.elements)||void 0===
a?void 0:a.scrollArrowLeft)||void 0===m?void 0:m.show():null===(g=null===(b=c.elements)||void 0===b?void 0:b.scrollArrowLeft)||void 0===g?void 0:g.hide();h.right?null===(n=null===(l=c.elements)||void 0===l?void 0:l.scrollArrowRight)||void 0===n?void 0:n.show():null===(k=null===(f=c.elements)||void 0===f?void 0:f.scrollArrowRight)||void 0===k?void 0:k.hide()};this.getControlVisibility=function(){var a,m,b,g,l=0!==(null===(a=c.elements)||void 0===a?void 0:a.scrollableArea.scrollLeft());a=(null===(m=
c.elements)||void 0===m?void 0:m.scrollableArea.scrollLeft())<(null===(b=c.elements)||void 0===b?NaN:b.scrollableArea.get(0).scrollWidth)-(null===(g=c.elements)||void 0===g?NaN:g.scrollableArea.outerWidth(!0));return{left:l,right:a}};this.scrollTo=function(a){var e,b,g;null===(b=null===(e=c.elements)||void 0===e?void 0:e.scrollableArea)||void 0===b?void 0:b.animate({scrollLeft:(null===(g=c.elements)||void 0===g?void 0:g.scrollableArea.scrollLeft())+250*("right"===a?1:-1)})};this.clickLink=function(c){var a=
new MouseEvent("click",{view:q,bubbles:!0,cancelable:!0,clientX:20});c.dispatchEvent(a)};this.api=b;this.$=n;this.scrollableAreaSelector=g}b.prototype.attachEventHandlers=function(b){var l=this,g,c,e,m,f,k,h,d;this.elements={scrollableArea:this.$(b).find(this.scrollableAreaSelector),scrollArrowLeft:this.$(b).find("."+a.leftCarouselControl),scrollArrowRight:this.$(b).find("."+a.rightCarouselControl)};null===(c=null===(g=this.elements)||void 0===g?void 0:g.scrollableArea)||void 0===c?void 0:c.scroll(function(){l.updateControlVisibility()});
null===(m=null===(e=this.elements)||void 0===e?void 0:e.scrollArrowLeft)||void 0===m?void 0:m.bind("click",this.arrowClickHandler);null===(k=null===(f=this.elements)||void 0===f?void 0:f.scrollArrowRight)||void 0===k?void 0:k.bind("click",this.arrowClickHandler);null===(d=null===(h=this.elements)||void 0===h?void 0:h.scrollableArea)||void 0===d?void 0:d.bind("click",this.carouselClickHandler)};b.prototype.onRendered=function(){this.updateControlVisibility()};b.prototype.onResized=function(){var a;
(null===(a=this.elements)||void 0===a?0:a.scrollableArea.length)&&this.updateControlVisibility()};return b}();a.default=d},function(d,a,b){d=b(5);var h=b(28),f=b(45),k=b(15),l=b(48),n=b(11),g=b(54),c=Object.getOwnPropertyDescriptor;a.f=d?c:function(a,b){a=k(a);b=l(b);if(g)try{return c(a,b)}catch(v){}if(n(a,b))return f(!h.f.call(a,b),a[b])}},function(d,a){d.exports=function(a,h){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:h}}},function(d,a){var b={}.toString;d.exports=function(a){return b.call(a).slice(8,
-1)}},function(d,a){d.exports=function(a){if(a==p)throw TypeError("Can't call method on "+a);return a}},function(d,a,b){var h=b(88),f=b(49);d.exports=function(a){a=h(a,"string");return f(a)?a:String(a)}},function(d,a,b){var h=b(16);a=b(50);d.exports=a?function(a){return"symbol"==("undefined"===typeof a?"undefined":H(a))}:function(a){var b=h("Symbol");return"function"==typeof b&&Object(a)instanceof b}},function(d,a,b){a=b(51);d.exports=a&&!Symbol.sham&&"symbol"==H(Symbol.iterator)},function(d,a,b){var h=
b(89);a=b(9);d.exports=!!Object.getOwnPropertySymbols&&!a(function(){var a=Symbol();return!String(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&h&&41>h})},function(d,a,b){a=b(92);var h=b(31);(d.exports=function(a,b){return h[a]||(h[a]=b!==p?b:{})})("versions",[]).push({version:"3.17.3",mode:a?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(d,a){var b=0,h=Math.random();d.exports=function(a){return"Symbol("+String(a===p?"":a)+")_"+(++b+h).toString(36)}},function(d,a,
b){a=b(5);var h=b(9),f=b(55);d.exports=!a&&!h(function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a})},function(d,a,b){a=b(2);b=b(10);var h=a.document,f=b(h)&&b(h.createElement);d.exports=function(a){return f?h.createElement(a):{}}},function(d,a,b){a=b(31);var h=Function.toString;"function"!=typeof a.inspectSource&&(a.inspectSource=function(a){return h.call(a)});d.exports=a.inspectSource},function(d,a,b){a=b(52);var h=b(53),f=a("keys");d.exports=function(a){return f[a]||
(f[a]=h(a))}},function(d,a,b){var h=b(11),f=b(15),k=b(59).indexOf,l=b(34);d.exports=function(a,b){a=f(a);var c=0,e=[],m;for(m in a)!h(l,m)&&h(a,m)&&e.push(m);for(;b.length>c;)h(a,m=b[c++])&&(~k(e,m)||e.push(m));return e}},function(d,a,b){var h=b(15),f=b(20),k=b(99);a=function(a){return function(b,g,c){b=h(b);var e=f(b.length);c=k(c,e);if(a&&g!=g)for(;e>c;){if(g=b[c++],g!=g)return!0}else for(;e>c;c++)if((a||c in b)&&b[c]===g)return a||c||0;return!a&&-1}};d.exports={includes:a(!0),indexOf:a(!1)}},function(d,
a){var b=Math.ceil,h=Math.floor;d.exports=function(a){return isNaN(a=+a)?0:(0<a?h:b)(a)}},function(d,a){a.f=Object.getOwnPropertySymbols},function(d,a,b){var h=b(36),f=b(29),k=b(17),l=b(20),n=b(64),g=[].push;a=function(a){var c=1==a,b=2==a,v=3==a,d=4==a,w=6==a,u=7==a,y=5==a||w;return function(e,m,A,q){var J=k(e),L=f(J);m=h(m,A,3);A=l(L.length);var D=0;q=q||n;e=c?q(e,A):b||u?q(e,0):p;for(var X;A>D;D++)if(y||D in L)if(q=L[D],X=m(q,D,J),a)if(c)e[D]=X;else if(X)switch(a){case 3:return!0;case 5:return q;
case 6:return D;case 2:g.call(e,q)}else switch(a){case 4:return!1;case 7:g.call(e,q)}return w?-1:v||d?d:e}};d.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}},function(d,a){d.exports=function(a){if("function"!=typeof a)throw TypeError(String(a)+" is not a function");return a}},function(d,a,b){var h=b(101);d.exports=function(a,b){return new (h(a))(0===b?0:b)}},function(d,a,b){var h=b(46);d.exports=Array.isArray||function(a){return"Array"==
h(a)}},function(d,a,b){a=b(2);d.exports=a},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.location=void 0;a.location=q.location},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.recordResponseTime=a.getAverageResponseTime=void 0;var h=0,f=0;a.getAverageResponseTime=function(){return f?h/f:0};a.recordResponseTime=function(a){f+=1;h+=a}},function(d,a,b){function h(a){return a.substr(a.indexOf(".amazon."))}Object.defineProperty(a,"__esModule",{value:!0});a.getSearchDomain=
a.getAmazonDomainSuffix=void 0;a.getAmazonDomainSuffix=h;a.getSearchDomain=function(a){return a&&(/.*\bdev-dsk\b.*/.test(a)||/.*\bhp-shoppingportal\b.*/.test(a))?"www"+h(a):a}},function(d,a,b){d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var h=d(b(40));a.default=function(a,b){var l=a.value;a={url:h.default(a,b)};return{qis:"NileOptionInAutocomplete",query:l,metricName:"NileAutocompleteClick",metadata:a}}},function(d,
a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0);d=function(){function a(a){this.enabledA11yColorContrast=null===a||void 0===a?void 0:a.enabledA11yColorContrast}a.prototype.deSelect=function(a){this.enabledA11yColorContrast?a.classList.remove(h.highlightSuggestionByKeyboardFocus):a.classList.remove(h.highlightSuggestion)};a.prototype.select=function(a,b,n){this.enabledA11yColorContrast&&b instanceof KeyboardEvent?a.classList.add(h.highlightSuggestionByKeyboardFocus):a.classList.add(h.highlightSuggestion);
b.preventDefault()};a.prototype.isSelected=function(a){return this.enabledA11yColorContrast?a.classList.contains(h.highlightSuggestion)||a.classList.contains(h.highlightSuggestionByKeyboardFocus):a.classList.contains(h.highlightSuggestion)};a.prototype.matchesSearchQuery=function(a,b){return a===b.value};a.prototype.isDelimited=function(){return!1};a.prototype.click=function(a){h.emitEvents();return!1};a.prototype.resize=function(a){};a.prototype.getSelectedId=function(a){if(!a)return"";var b=this.enabledA11yColorContrast?
h.highlightSuggestionByKeyboardFocus:h.highlightSuggestion;return a&&a.classList&&a.classList.contains(b)&&(b=a.querySelector('[role\x3d"gridcell"]'))&&b.id?b.id:a.id?a.id:""};return a}();a.default=d},function(d,a,b){function h(a){for(var c={},e=0;e<a.length;e++)for(var b=a[e],m=0,g=b.type();m<g.length;m++){var l=g[m];if(c[l])throw Error("Multiple template registrations for "+l);c[l]=b}return c}var f=this&&this.__createBinding||(Object.create?function(a,c,e,b){b===p&&(b=e);Object.defineProperty(a,
b,{enumerable:!0,get:function(){return c[e]}})}:function(a,c,e,b){b===p&&(b=e);a[b]=c[e]});d=this&&this.__exportStar||function(a,c){for(var e in a)"default"===e||Object.prototype.hasOwnProperty.call(c,e)||f(c,a,e)};var k=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.renderingFunctionsForEntityDisclosurePane=a.renderingFunctionsForEntityDefaultPane=a.renderingFunctions=a.dispatchTable=a.delimiter=a.options=void 0;
var l=k(b(160)),n=k(b(190)),g=k(b(191)),c=k(b(192)),e=k(b(193)),m=k(b(194)),v=k(b(195)),A=k(b(196)),w=k(b(197)),u=k(b(198)),y=k(b(199)),J=k(b(200)),L=k(b(201)),D=k(b(202)),q=k(b(203)),R=k(b(204)),da=k(b(80)),t=k(b(205)),r=k(b(206)),x=k(b(81)),C=k(b(207)),I=k(b(208)),B=k(b(209)),F=k(b(210)),E=k(b(211)),G=k(b(212)),H=k(b(213)),K=k(b(214)),M=k(b(215));d(b(216),a);var z=new (b(224).DomKataRuntime);b=b(1);var N=b.Separator,O=b.Options;a.options=function(a){return O.default(z,a)};a.delimiter=function(){return N.default(z,
{})};a.dispatchTable=h;a.renderingFunctions=function(a){var b=a.getContext();a=[new l.default(z,a,b),new n.default(z,a,b),new g.default(z,a,b),new c.default(z,a,b),new e.default(z,a),new m.default(z,a),new v.default(z,a),new A.default(z,a),new w.default(z),new u.default(z,a),new y.default(z),new D.default(z),new J.default(z,a),new L.default(z,a,b),new q.default(z,a),new I.default(z,a),new R.default(z,a,b),new F.default(z,a,b),new x.default(z,a,b),new C.default(z,a,b),new B.default(z,a,b)];return h(a)};
a.renderingFunctionsForEntityDefaultPane=function(a){var c=a.getContext();a=[new da.default(z,a,c),new t.default(z,a,c),new r.default(z,a,c)];return h(a)};a.renderingFunctionsForEntityDisclosurePane=function(a){a=[new E.default(z,a),new G.default(z,a),new H.default(z,a),new K.default(z,a),new M.default(z,a)];return h(a)}},function(d,a,b){function h(a){return a&&a.length!==p?a.length:"object"===("undefined"===typeof a?"undefined":H(a))&&null!==a?Object.keys(a).length:0}function f(a){return 0===h(a)}
function k(a){return f(a)?a:a.trim()}b.r(a);var l={toJSON:function(a){return JSON.stringify(a)},size:h,isEmpty:f,trim:k,isBlank:function(a){a=k(a);return f(a)},toUpperCase:function(a){return f(a)?a:a.toLocaleUpperCase()},toLowerCase:function(a){return f(a)?a:a.toLocaleLowerCase()},range:function(a,b){var c=[];if(a===p||null===a||b===p||null===b)return c;for(;a<=b;)c.push(a),a++;return c},renameKeys:function(a,b){var c={};Object.keys(b).forEach(function(e){c[a[e]||e]=b[e]});return c},keys:function(a){return Object.keys(a)},
contains:function(a,b){return f(a)?!1:0<=a.indexOf(b)}};a["default"]=function(){return l}},function(d,a,b){function h(a,b,n){a.assertNotNull(b,["highlightFragments","byline"]);n=f.Highlighted;return a.root("autocomplete","DisplayKeywordWithByline",[n(a,{highlightFragments:b.highlightFragments},[])," ",a.createElement("span",{"class":"s-store s-highlight-secondary"},b.byline)])}var f=b(13);d.exports={};d.exports.default=h;d.exports.DisplayKeywordWithByline=h},function(d,a,b){function h(a,b,n){a.assertNotNull(b,
["suggestion","enabledFeatures"]);n=f.DisplayString;return a.root("autocomplete","SuggestionWithoutTitle",[a.createElement("div",{"class":"s-suggestion-container"},a.createElement("div",{"class":"s-suggestion s-relatedSearchDistinct s-suggestion-ellipsis-direction",role:"button","aria-label":b.suggestion.value},n(a,{highlightFragments:b.suggestion.highlightFragments},[])),a.createElement("div",{"class":"icon-suggestion-div search-icon-div","suggestion-icon-div":!0},a.createElement("i",{"class":"icon-search-suggestion s-suggestion-icon-left",
"suggestion-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})),b.enabledFeatures.autofill?a.createElement("div",{"class":"s-suggestion-autofillDistinct",autofill:!0,role:"button","aria-label":"append suggestion "+b.suggestion.value},a.createElement("i",{"class":"icon-autofill",autofill:!0})):p)])}var f=b(25);d.exports={};d.exports.default=h;d.exports.SuggestionWithoutTitle=h},function(d,a){function b(a,b,k){return a.root("autocomplete","WidgetHeader",
[null!==b.widgetHeader&&"undefined"!==typeof b.widgetHeader?a.createElement("div",{"class":"s-bia-widget-header sac-header-component-single-line-header"},b.widgetHeader):p])}d.exports={};d.exports.default=b;d.exports.WidgetHeader=b},function(d,a){function b(a,b,k){a.assertNotNull(b,["header"]);return a.root("autocomplete","AsinHeader",[null!==b.brandingPrefix&&"undefined"!==typeof b.brandingPrefix?[a.createElement("div",{"class":"s-size-mini s-asin-branding-prefix"},b.brandingPrefix),a.createElement("div",
{"class":"s-size-mini s-sug-pp-caption-with-branding"},b.header)]:a.createElement("div",{"class":"s-size-mini s-sug-pp-caption"},b.header)])}d.exports={};d.exports.default=b;d.exports.AsinHeader=b},function(d,a){function b(a,b,n){a.assertNotNull(b,["side"]);return a.root("autocomplete","ThumbnailImage",[null!==b.imageUrl&&"undefined"!==typeof b.imageUrl?a.createElement("div",{"class":f(["s-suggestion-image-container",b.side])},a.createElement("img",{"class":"s-suggestion-image-left",src:b.imageUrl,
alt:""}),a.createElement("div",{"class":"s-sugg-image-background s-suggestion-image-background-grey-shield"})):p])}function h(a){return null!==a&&a!==p&&""!==a}function f(a){a=a.join(" ").split(" ").filter(h).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.ThumbnailImage=b},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.setTitle=void 0;var h=b(0);a.setTitle=function(a,b){a.metadata.title=h.substituteStringInterpolations(b,{keyword:a.value,refinement:a.metadata.refinement});
return a}},function(d,a,b){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var c,b=1,g=arguments.length;b<
g;b++){c=arguments[b];for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(a[l]=c[l])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});a.dropdownButtonDownwardClassName=a.dropdownButtonUpwardClassName=void 0;var k=b(0),l=b(3);d=b(1);var n=d.EntityBasicDropdown,g=d.EntityBasic;a.dropdownButtonUpwardClassName="s-entity-chevron-button-upward";a.dropdownButtonDownwardClassName="s-entity-chevron-button-downward";d=function(a){function c(c,b,e,g){void 0===
g&&(g=k.EntityWidgetPane.Default);var m=a.call(this)||this;m.select=function(a,c,b){};m.deSelect=function(a){};m.api=b;m.context=e;m.kataRuntime=c;m.pane=g;return m}h(c,a);c.prototype.accept=function(a,c){c=f(f({},a),{responseMetadata:c});c.metadata.csaTag=l.generateCSATag(a);return c};c.prototype.type=function(){return[k.EntityDefaultPaneTemplate.ENTITY_BASIC,k.EntityDefaultPaneTemplate.ENTITY_BASIC_DROPDOWN]};c.prototype.click=function(a){return!0};c.prototype.generateHtml=function(a){var c;a=k.normalizeInputObject(a);
var b=JSON.parse(a.metadata.image),e=null===b||void 0===b?void 0:b.url;b=(b.shape?b.shape:k.EntityImageShape.RECTANGLE).toLowerCase();var m="ENTITY_BASIC_DROPDOWN"===l.getEntityTemplateConfig(a).defaultPaneTemplate,d=(null===(c=a.metadata)||void 0===c?void 0:c.addEgressChevron)||!1;return m?n.default(this.kataRuntime,f({suggestion:a,imageUrl:e,imageShape:b,addDropdownButton:m,addEgressChevron:d},this.context)):g.default(this.kataRuntime,f({suggestion:a,imageUrl:e,imageShape:b,addDropdownButton:m,
addEgressChevron:d},this.context))};return c}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=this&&this.__assign||
function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(a[m]=b[m])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).SuggestionWithoutTitle;d=function(a){function b(c,b,m){var e=a.call(this)||this;e.select=function(a,c,b){if(a=a.querySelector(".s-suggestion-container"))a.classList.add(k.highlightSuggestionByKeyboardFocus),c.preventDefault(),
k.textSuggestionSelectionHandler(b,e.api)};e.isDelimited=function(){var a=e.context.enabledFeatures;if(a.useSuggestionDelimiter!==p)return a.useSuggestionDelimiter;a=e.api.getContext().getContextField("site-variant");return k.isMShop(a)};e.attachEventHandlers=function(a,c){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?e.api.autofillSuggestion(c.value):e.click(c)}))};e.generateHtml=function(a){return l.default(e.kataRuntime,{suggestion:a,
enabledFeatures:e.context.enabledFeatures})};e.api=b;e.context=m;e.kataRuntime=c;return e}h(b,a);b.prototype.accept=function(a,b){a=f(f({},a),{crid:b.responseId,highlightFragments:k.highlightText(a.value,a.value)});return k.normalizeInputObject(a)};b.prototype.type=function(){return["SUGGESTION_WITHOUT_TITLE"]};b.prototype.deSelect=function(a){a.querySelectorAll("div").forEach(function(a){a.classList.remove(k.highlightSuggestionByKeyboardFocus)})};b.prototype.isSelected=function(a){return(a=a.querySelector(".s-suggestion-container"))?
a.classList.contains(k.highlightSuggestionByKeyboardFocus):!1};b.prototype.click=function(c){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,c);q.location.assign(k.buildSearchLinkUrl(c,this.api.getContext()));return!0};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){function h(a,c){var b=a("#marketplace"),e=a("#alias");e.length&&b.length&&(c.getContext().autocompleteContext.updateContext({alias:e.val(),mid:b.val()}),
e.bind("input",function(a){return c.getContext().autocompleteContext.updateContext({alias:e.val()})}),b.bind("input",function(a){return c.getContext().autocompleteContext.updateContext({mid:b.val()})}))}var f=this&&this.__assign||function(){f=Object.assign||function(a){for(var c,b=1,e=arguments.length;b<e;b++){c=arguments[b];for(var m in c)Object.prototype.hasOwnProperty.call(c,m)&&(a[m]=c[m])}return a};return f.apply(this,arguments)};d=this&&this.__importDefault||function(a){return a&&a.__esModule?
a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.component=void 0;b(83);b(105);b(109);b(115);b(119);b(124);var k=b(0),l=b(217),n=d(b(218)),g=d(b(221)),c=d(b(222)),e=d(b(223));a.component=function(a){var b,m,d=a.$,u=a.AutocompletePlugin,y=a.JSON,J=a.localizedStrings||y.parse(d("#autocomplete-string-localizations")[0].innerHTML);u=new c.default(u);var p=a.inputBox?a.inputBox:new g.default(d("#search-box")[0],u),D=a.resultsContainer||d("#attach-to-me")[0],q=a.leftPaneResultsContainer||
d("#attach-to-me")[0],R=a.rightPaneResultsContainer||d("#attach-to-me")[0],t=new e.default(d,f(f(f({},(null===(b=null===a||void 0===a?void 0:a.platform)||void 0===b?0:b.maxSuggestions)?{maxSuggestions:a.platform.maxSuggestions}:{}),(null===(m=null===a||void 0===a?void 0:a.endpoints)||void 0===m?0:m.completion)?{completion:a.endpoints.completion}:{}),(null===a||void 0===a?0:a.config)?{config:a.config}:{}));b=(new k.AutocompleteContext(a.cfg,a.platform,a.autocompleteContextOverrides)).context;var r=
new n.default(d,t,u,p,D,q,R,J,b,a.flags||{});r.getContext().autocompleteContext.updateContext((new k.AutocompleteContext(a.cfg,a.platform,a.autocompleteContextOverrides)).context);h(d,r);a.warmup&&k.shouldWarmUp()&&t.warmupRequest();return{setSearchUrlContext:function(a){r.getContext().searchContext.updateContext(a)},logMetric:function(a){l.logMShopMetric(a)},searchQuery:function(a){a=y.parse(a);a.query&&p.setKeyword(a.query);"searchUrlContext"in a&&(this.setSearchUrlContext(a.searchUrlContext),delete a.searchUrlContext);
"webviewHeight"in a&&(r.getContext().updateWebviewHeight(a.webviewHeight),delete a.webviewHeight);"keyboardEnabled"in a&&(r.getContext().updateKeyboardEnabled(a.keyboardEnabled),delete a.keyboardEnabled);r.getSuggestions(l.searchQueryToSuggestionsRequest(a))},navigationListener:function(a){return r.navigation(a)},listener:r.onInput,logPrefixSearch:function(){k.logOneTimeEvent(k.SearchNonAcceptanceMetric);k.emitCounter(k.SearchNonAcceptanceMetric);k.emitEvents()}}}},function(d,a,b){a=b(84);d.exports=
a},function(d,a,b){a=b(85);d.exports=a},function(d,a,b){b(86);a=b(22);d.exports=a("Array","find")},function(d,a,b){d=b(8);var h=b(62).find;b=b(21);var f=!0;"find"in[]&&Array(1).find(function(){f=!1});d({target:"Array",proto:!0,forced:f},{find:function(a){return h(this,a,1<arguments.length?arguments[1]:p)}});b("find")},function(d,a){a=function(){return this}();try{a=a||(new Function("return this"))()}catch(b){"object"===("undefined"===typeof q?"undefined":H(q))&&(a=q)}d.exports=a},function(d,a,b){var h=
b(10),f=b(49),k=b(91),l=b(30)("toPrimitive");d.exports=function(a,b){if(!h(a)||f(a))return a;var c=a[l];if(c!==p){b===p&&(b="default");a=c.call(a,b);if(!h(a)||f(a))return a;throw TypeError("Can't convert object to primitive value");}b===p&&(b="number");return k(a,b)}},function(d,a,b){a=b(2);b=b(90);var h=a.process;a=a.Deno;a=(a=h&&h.versions||a&&a.version)&&a.v8;if(a){a=a.split(".");var f=4>a[0]?1:a[0]+a[1]}else b&&(a=b.match(/Edge\/(\d+)/),(!a||74<=a[1])&&(a=b.match(/Chrome\/(\d+)/))&&(f=a[1]));
d.exports=f&&+f},function(d,a,b){a=b(16);d.exports=a("navigator","userAgent")||""},function(d,a,b){var h=b(10);d.exports=function(a,b){var l,f;if("string"===b&&"function"==typeof(l=a.toString)&&!h(f=l.call(a))||"function"==typeof(l=a.valueOf)&&!h(f=l.call(a))||"string"!==b&&"function"==typeof(l=a.toString)&&!h(f=l.call(a)))return f;throw TypeError("Can't convert object to primitive value");}},function(d,a){d.exports=!1},function(d,a,b){var h=b(2),f=b(33),k=b(11),l=b(32),n=b(56);a=b(94);var g=a.get,
c=a.enforce,e=String(String).split("String");(d.exports=function(a,b,g,n){var m=n?!!n.unsafe:!1,v=n?!!n.enumerable:!1;n=n?!!n.noTargetGet:!1;if("function"==typeof g){"string"!=typeof b||k(g,"name")||f(g,"name",b);var d=c(g);d.source||(d.source=e.join("string"==typeof b?b:""))}a===h?v?a[b]=g:l(b,g):(m?!n&&a[b]&&(v=!0):delete a[b],v?a[b]=g:f(a,b,g))})(Function.prototype,"toString",function(){return"function"==typeof this&&g(this).source||n(this)})},function(d,a,b){a=b(95);var h=b(2),f=b(10),k=b(33),
l=b(11),n=b(31),g=b(57);b=b(34);h=h.WeakMap;if(a||n.state){var c=n.state||(n.state=new h),e=c.get,m=c.has,v=c.set;var A=function(a,b){if(m.call(c,a))throw new TypeError("Object already initialized");b.facade=a;v.call(c,a,b);return b};var w=function(a){return e.call(c,a)||{}};var u=function(a){return m.call(c,a)}}else{var y=g("state");b[y]=!0;A=function(a,c){if(l(a,y))throw new TypeError("Object already initialized");c.facade=a;k(a,y,c);return c};w=function(a){return l(a,y)?a[y]:{}};u=function(a){return l(a,
y)}}d.exports={set:A,get:w,has:u,enforce:function(a){return u(a)?w(a):A(a,{})},getterFor:function(a){return function(c){var b;if(!f(c)||(b=w(c)).type!==a)throw TypeError("Incompatible receiver, "+a+" required");return b}}}},function(d,a,b){a=b(2);b=b(56);a=a.WeakMap;d.exports="function"===typeof a&&/native code/.test(b(a))},function(d,a,b){var h=b(11),f=b(97),k=b(44),l=b(18);d.exports=function(a,b){for(var c=f(b),e=l.f,m=k.f,g=0;g<c.length;g++){var n=c[g];h(a,n)||e(a,n,m(b,n))}}},function(d,a,b){a=
b(16);var h=b(98),f=b(61),k=b(19);d.exports=a("Reflect","ownKeys")||function(a){var b=h.f(k(a)),g=f.f;return g?b.concat(g(a)):b}},function(d,a,b){var h=b(58),f=b(35).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(a){return h(a,f)}},function(d,a,b){var h=b(60),f=Math.max,k=Math.min;d.exports=function(a,b){a=h(a);return 0>a?f(a+b,0):k(a,b)}},function(d,a,b){var h=b(9),f=/#|\.prototype\./;a=function(a,b){a=l[k(a)];return a==g?!0:a==n?!1:"function"==typeof b?h(b):!!b};var k=a.normalize=
function(a){return String(a).replace(f,".").toLowerCase()},l=a.data={},n=a.NATIVE="N",g=a.POLYFILL="P";d.exports=a},function(d,a,b){var h=b(10),f=b(65),k=b(30)("species");d.exports=function(a){if(f(a)){var b=a.constructor;"function"!=typeof b||b!==Array&&!f(b.prototype)?h(b)&&(b=b[k],null===b&&(b=p)):b=p}return b===p?Array:b}},function(d,a,b){var h=b(19),f=b(103),k=b(35);a=b(34);var l=b(104),n=b(55),g=b(57)("IE_PROTO"),c=function(){},e=function(a){a.write("\x3cscript\x3e\x3c/script\x3e");a.close();
return a.parentWindow.Object},m,v=function(){try{m=new ActiveXObject("htmlfile")}catch(w){}if("undefined"!=typeof document)if(document.domain&&m)var a=e(m);else a=n("iframe"),a.style.display="none",l.appendChild(a),a.src="javascript:",a=a.contentWindow.document,a.open(),a.write("\x3cscript\x3edocument.F\x3dObject\x3c/script\x3e"),a.close(),a=a.F;else a=e(m);v=a;for(a=k.length;a--;)delete v.prototype[k[a]];return v()};a[g]=!0;d.exports=Object.create||function(a,b){if(null!==a){c.prototype=h(a);var e=
new c;c.prototype=null;e[g]=a}else e=v();return b===p?e:f(e,b)}},function(d,a,b){a=b(5);var h=b(18),f=b(19),k=b(37);d.exports=a?Object.defineProperties:function(a,b){f(a);for(var g=k(b),c=g.length,e=0,m;c>e;)h.f(a,m=g[e++],b[m]);return a}},function(d,a,b){a=b(16);d.exports=a("document","documentElement")},function(d,a,b){a=b(106);d.exports=a},function(d,a,b){a=b(107);d.exports=a},function(d,a,b){b(108);a=b(22);d.exports=a("Array","findIndex")},function(d,a,b){d=b(8);var h=b(62).findIndex;b=b(21);
var f=!0;"findIndex"in[]&&Array(1).findIndex(function(){f=!1});d({target:"Array",proto:!0,forced:f},{findIndex:function(a){return h(this,a,1<arguments.length?arguments[1]:p)}});b("findIndex")},function(d,a,b){a=b(110);d.exports=a},function(d,a,b){a=b(111);d.exports=a},function(d,a,b){b(112);b(114);a=b(22);d.exports=a("Array","flatMap")},function(d,a,b){d=b(8);var h=b(113),f=b(17),k=b(20),l=b(63),n=b(64);d({target:"Array",proto:!0},{flatMap:function(a){var c=f(this),b=k(c.length);l(a);var m=n(c,0);
m.length=h(m,c,c,b,0,1,a,1<arguments.length?arguments[1]:p);return m}})},function(d,a,b){var h=b(65),f=b(20),k=b(36);d.exports=function u(a,b,c,e,m,v,d,w){var g=0;for(d=d?k(d,w,3):!1;g<e;){if(g in c){w=d?d(c[g],g,b):c[g];if(0<v&&h(w))m=u(a,b,w,f(w.length),m,v-1)-1;else{if(9007199254740991<=m)throw TypeError("Exceed the acceptable array length");a[m]=w}m++}g++}return m}},function(d,a,b){b(21)("flatMap")},function(d,a,b){a=b(116);d.exports=a},function(d,a,b){a=b(117);d.exports=a},function(d,a,b){b(118);
a=b(22);d.exports=a("Array","includes")},function(d,a,b){d=b(8);var h=b(59).includes;b=b(21);d({target:"Array",proto:!0},{includes:function(a){return h(this,a,1<arguments.length?arguments[1]:p)}});b("includes")},function(d,a,b){a=b(120);d.exports=a},function(d,a,b){a=b(121);d.exports=a},function(d,a,b){b(122);a=b(66);d.exports=a.Object.assign},function(d,a,b){d=b(8);b=b(123);d({target:"Object",stat:!0,forced:Object.assign!==b},{assign:b})},function(d,a,b){var h=b(5);a=b(9);var f=b(37),k=b(61),l=b(28),
n=b(17),g=b(29),c=Object.assign,e=Object.defineProperty;d.exports=!c||a(function(){if(h&&1!==c({b:1},c(e({},"a",{enumerable:!0,get:function(){e(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var a={},b={},g=Symbol();a[g]=7;"abcdefghijklmnopqrst".split("").forEach(function(a){b[a]=a});return 7!=c({},a)[g]||"abcdefghijklmnopqrst"!=f(c({},b)).join("")})?function(a,c){for(var b=n(a),e=arguments.length,m=1,v=k.f,d=l.f;e>m;)for(var p=g(arguments[m++]),D=v?f(p).concat(v(p)):f(p),q=D.length,R=0,
r;q>R;)if(r=D[R++],!h||d.call(p,r))b[r]=p[r];return b}:c},function(d,a,b){a=b(125);d.exports=a},function(d,a,b){a=b(126);d.exports=a},function(d,a,b){b(127);a=b(66);d.exports=a.Object.entries},function(d,a,b){d=b(8);var h=b(128).entries;d({target:"Object",stat:!0},{entries:function(a){return h(a)}})},function(d,a,b){var h=b(5),f=b(37),k=b(15),l=b(28).f;a=function(a){return function(b){b=k(b);for(var c=f(b),e=c.length,m=0,g=[],n;e>m;)n=c[m++],h&&!l.call(b,n)||g.push(a?[n,b[n]]:b[n]);return g}};d.exports=
{entries:a(!0),values:a(!1)}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.EntityWidgetPane=a.TileSize=a.EntityLayout=a.EntityDisclosurePaneTriggeringSource=a.EntityDisclosurePaneTemplate=a.EntityDefaultPaneTemplate=a.EntityImageShape=a.EntityType=void 0;(function(a){a.EVENT="EVENT";a.BOOK="BOOK"})(a.EntityType||(a.EntityType={}));(function(a){a.RECTANGLE="RECTANGLE";a.CIRCLE="CIRCLE";a.ROUNDED="ROUNDED"})(a.EntityImageShape||(a.EntityImageShape={}));(function(a){a.ENTITY_BASIC=
"ENTITY_BASIC";a.ENTITY_BASIC_DROPDOWN="ENTITY_BASIC_DROPDOWN";a.ENTITY_EGRESS_DROPDOWN="ENTITY_EGRESS_DROPDOWN";a.ENTITY_TITLE_ONLY="ENTITY_TITLE_ONLY"})(a.EntityDefaultPaneTemplate||(a.EntityDefaultPaneTemplate={}));(function(a){a.BUTTON_CAROUSEL="BUTTON_CAROUSEL";a.RESIZABLE_TILE_ROWS="RESIZABLE_TILE_ROWS";a.TILE_ROWS="TILE_ROWS";a.CAROUSEL_TILE="CAROUSEL_TILE";a.PRODUCT_PREVIEW="PRODUCT_PREVIEW"})(a.EntityDisclosurePaneTemplate||(a.EntityDisclosurePaneTemplate={}));(function(a){a.DEFAULT_SHOW=
"DEFAULT_SHOW";a.MOUSEOVER="MOUSEOVER";a.KEYBOARD_SELECT="KEYBOARD_SELECT";a.DROPDOWN_BUTTON_CLICK="DROPDOWN_BUTTON_CLICK"})(a.EntityDisclosurePaneTriggeringSource||(a.EntityDisclosurePaneTriggeringSource={}));(function(a){a.LEFT_PANE_ONLY="LEFT_PANE_ONLY";a.LEFT_AND_RIGHT_PANE="LEFT_AND_RIGHT_PANE"})(a.EntityLayout||(a.EntityLayout={}));(function(a){a.TILE="TILE";a.WIDER_TILE="WIDER_TILE"})(a.TileSize||(a.TileSize={}));(function(a){a.Default="de";a.Disclosure="di"})(a.EntityWidgetPane||(a.EntityWidgetPane=
{}))},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.getEventType=void 0;var h=b(0);a.getEventType=function(a,b){if(!b||0>=b.length)return"onfocus";if("input"===a||"clickToAcceptPredictiveText"===a||"arrowRightToAcceptPredictiveText"===a||"tabKeyToAcceptPredictiveText"===a)return"onkeypress";if("focus"===a&&b&&0<b.length)return"onfocuswithsearchterm";h.logOneTimeEvent(h.EventTypeNoneMetric);h.emitCounter(h.EventTypeNoneMetric);return"none"}},function(d,a,b){Object.defineProperty(a,
"__esModule",{value:!0});a.isMobileWeb=a.isIOS=a.isMShop=void 0;a.isMShop=function(a){return a?a.includes("mshop"):!1};a.isIOS=function(a){return a?a.includes("ios"):!1};a.isMobileWeb=function(a){return a?a.includes("mobile"):!1}},function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(a,b,l,n){n===p&&(n=l);Object.defineProperty(a,n,{enumerable:!0,get:function(){return b[l]}})}:function(a,b,l,n){n===p&&(n=l);a[n]=b[l]});d=this&&this.__exportStar||function(a,b){for(var l in a)"default"===
l||Object.prototype.hasOwnProperty.call(b,l)||h(b,a,l)};Object.defineProperty(a,"__esModule",{value:!0});d(b(133),a);d(b(134),a);d(b(135),a)},function(d,a,b){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):
(e.prototype=b.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var c,b=1,g=arguments.length;b<g;b++){c=arguments[b];for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(a[l]=c[l])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});a.logError=a.logEvent=a.logOneTimeEvent=a.timedPromiseWrapper=a.latencyWrapper=a.timedFunctionWrapper=a.CSMCounterLatencyMetric=a.CSMLatencyMetric=a.logJsError=void 0;var k=b(23);a.logJsError=
function(a,b){void 0===b&&(b={});if("function"===typeof ueLogError){var c=b.attribution&&0!==b.attribution.length?"SearchAutocomplete:"+b.attribution:"SearchAutocomplete";ueLogError(a,f(f({},b),{attribution:c}))}};var l=function(){return function(a){var c=this;this.record=function(a){c.isEnabled()&&(0>=a?c.consoleError("cannot log "+c.metricName+" with value "+a+", it is negative or 0"):q.ue.count(c.metricName+":"+k.getSiteVariant(),a))};this.consoleError=function(a){console.error("CSM logging failed for "+
c.metricName+" - "+a)};this.isEnabled=function(){var a=!!q.ue;a||c.consoleError("CSM not found in window");return a};this.metricName=a}}(),n=function(a){function c(c){var b=a.call(this,c)||this;b.start=function(){b.isCSMTimingEnabled()&&(0,q.uet)("bb",b.scope,{wb:1})};b.setRequestId=function(a){b.isCSMTimingEnabled()&&a&&(0,q.ues)("id",b.scope,a)};b.finish=function(){b.isCSMTimingEnabled()&&((0,q.uet)("be",b.scope,{wb:1}),(0,q.uex)("ld",b.scope,{wb:1}))};b.isCSMTimingEnabled=function(){var a=q.uet&&
q.ues&&q.uex;a||b.consoleError("CSM not found in window");return a};b.scope=b.metricName+":"+k.getSiteVariant();return b}h(c,a);return c}(l);a.CSMLatencyMetric=n;var g=function(a){function c(c){var b=a.call(this,c)||this;b.finish=function(){return b.record((new Date).getTime()-b.startTime)};b.startTime=(new Date).getTime();return b}h(c,a);return c}(l);a.CSMCounterLatencyMetric=g;a.timedFunctionWrapper=function(a,b){return function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];e=new g(a);
c=b.apply(void 0,c);e.finish();return c}};a.latencyWrapper=function(a,b){return function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];e=new n(a);e.start();c=b.apply(void 0,c);e.finish();return c}};a.timedPromiseWrapper=function(a,b){var c=new g(a);return b.then(function(a){c.finish();return Promise.resolve(a)},function(a){c.finish();return Promise.reject(a)})};a.logOneTimeEvent=function(a){a=new n(a);a.start();a.finish()};a.logEvent=function(a,b){void 0===b&&(b=1);(new l(a)).record(b)};
a.logError=function(a){(new l("Error:"+a)).record(1)}},function(d,a,b){var h=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function e(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}}();Object.defineProperty(a,"__esModule",{value:!0});a.emitError=
a.emitLatency=a.emitCounter=a.measuredMethod=a.measuredPromise=a.LatencyMetric=a.emitEvents=a.eventsQueue=void 0;var f=b(0),k=b(23),l={};a.eventsQueue=[];a.emitEvents=function(){if(!(1>a.eventsQueue.length)){for(var c=[];0<a.eventsQueue.length;){var b=a.eventsQueue.pop();c.push({data:b})}b=q.AutocompleteAPI;null===b||void 0===b?void 0:b.getJQuery().ajax({url:"https://unagi"+f.domainSuffix+"/1/events/com.amazon.eel.SearchAutocompleteUIServiceMetrics.nexus",type:"POST",contentType:"application/json",
data:JSON.stringify({events:c}),error:function(a,c,b){console.error("Metric emission failed with message: "+c+", errorThrown: "+b)}})}};setInterval(function(){q.AutocompleteAPI&&a.emitEvents()},3E3);d=function(){return function(c,b,m){var e=this,g,n,d;this.emit=function(){var c=!f.SKIP_DEDUPLICATE_METRICS_NAMES.includes(e.metricName),b=l[e.metricName]||0,m=e.timestamp||(new Date).getTime();c&&3E3>m-b||(l[e.metricName]=m,c={metricName:e.metricName,platform:e.platform,marketplaceId:e.marketplaceId,
isError:e.isError,timestamp:m},e.count?c.count=e.count:e.latency&&(c.latency=e.latency),a.eventsQueue.push(c))};this.isEnabled=function(){var a=!!e.api;a||e.consoleError("Emit called before API is ready");return a};this.consoleError=function(a){console.error("Unagi logging failed for "+e.metricName+" - "+a)};this.metricName=c;this.platform=k.getSiteVariant();this.api=q.AutocompleteAPI;this.marketplaceId=null===(d=null===(n=null===(g=this.api)||void 0===g?void 0:g.getContext().autocompleteContext)||
void 0===n?void 0:n.context)||void 0===d?void 0:d.mid;this.isError=b||!1;this.timestamp=m}}();var n=function(a){function c(c,b,e,g){void 0===b&&(b=1);c=a.call(this,c,e,g)||this;c.count=b;return c}h(c,a);return c}(d),g=function(a){function c(c,b,e,g){var m=a.call(this,c,e,g)||this;m.start=function(){m.startTime||(m.startTime=(new Date).getTime())};m.finish=function(){m.startTime&&!m.endTime&&(m.endTime=(new Date).getTime(),m.latency=m.endTime-m.startTime,m.emit())};b&&(m.latency=b);return m}h(c,a);
return c}(d);a.LatencyMetric=g;a.measuredPromise=function(a,b){var c=new g(a);c.start();b.then(function(){c.finish()},function(){c.finish()}).catch(function(){});return b};a.measuredMethod=function(a,b){return function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];e=new g(a);e.start();c=b.apply(void 0,c);e.finish();return c}};a.emitCounter=function(a,b,m){void 0===b&&(b=1);(new n(a,b,!1,m)).emit()};a.emitLatency=function(a,b,m){(new g(a,b,!1,m)).emit()};a.emitError=function(a){(new n(a,
1,!0)).emit()}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.SKIP_DEDUPLICATE_METRICS_NAMES=a.EventTypeNoneMetric=a.NavxGhostingFieldsNotAvailableOnRetailMetric=a.NavxGhostingFieldsNotAvailableOnABMetric=a.NavxGhostingFieldsNotAvailableMetric=a.EnabledGhostingClickedTabMetric=a.EnabledGhostingClickedOnSearchBarMetric=a.EnabledGhostingClickedArrowRightMetric=a.SearchNonAcceptanceMetric=a.SearchAcceptanceMetric=a.AutofillLatencyMetricName=void 0;a.AutofillLatencyMetricName="AutofillLatency";
a.SearchAcceptanceMetric="SearchAcceptance";a.SearchNonAcceptanceMetric="SearchNonAcceptance";a.EnabledGhostingClickedArrowRightMetric="EnabledGhostingClickedArrowRight";a.EnabledGhostingClickedOnSearchBarMetric="EnabledGhostingClickedOnSearchBar";a.EnabledGhostingClickedTabMetric="EnabledGhostingClickedTab";a.NavxGhostingFieldsNotAvailableMetric="NavxGhostingFieldsNotAvailable";a.NavxGhostingFieldsNotAvailableOnABMetric="NavxGhostingFieldsNotAvailableOnAB";a.NavxGhostingFieldsNotAvailableOnRetailMetric=
"NavxGhostingFieldsNotAvailableOnRetail";a.EventTypeNoneMetric="EventTypeNone";a.SKIP_DEDUPLICATE_METRICS_NAMES=[a.NavxGhostingFieldsNotAvailableMetric,a.NavxGhostingFieldsNotAvailableOnABMetric,a.NavxGhostingFieldsNotAvailableOnRetailMetric,a.EventTypeNoneMetric,a.EnabledGhostingClickedArrowRightMetric,a.EnabledGhostingClickedOnSearchBarMetric,a.EnabledGhostingClickedTabMetric]},function(d,a,b){var h=this&&this.__createBinding||(Object.create?function(a,c,b,e){e===p&&(e=b);Object.defineProperty(a,
e,{enumerable:!0,get:function(){return c[b]}})}:function(a,c,b,e){e===p&&(e=b);a[e]=c[b]});d=this&&this.__exportStar||function(a,c){for(var b in a)"default"===b||Object.prototype.hasOwnProperty.call(c,b)||h(c,a,b)};var f=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.keyboardVerticalNavHandler=a.cardsKeyboardScrollHandler=a.keyboardScrollHandler=a.AutocompleteView=a.AutocompleteListTwoPane=a.AutocompleteList=void 0;
var k=b(137);Object.defineProperty(a,"AutocompleteList",{enumerable:!0,get:function(){return f(k).default}});var l=b(139);Object.defineProperty(a,"AutocompleteListTwoPane",{enumerable:!0,get:function(){return f(l).default}});var n=b(140);Object.defineProperty(a,"AutocompleteView",{enumerable:!0,get:function(){return f(n).default}});var g=b(141);Object.defineProperty(a,"keyboardScrollHandler",{enumerable:!0,get:function(){return f(g).default}});var c=b(142);Object.defineProperty(a,"cardsKeyboardScrollHandler",
{enumerable:!0,get:function(){return f(c).default}});var e=b(143);Object.defineProperty(a,"keyboardVerticalNavHandler",{enumerable:!0,get:function(){return f(e).default}});d(b(144),a)},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0),f=b(3),k=b(138),l=0;d=function(){function a(a,c,b,m){var e=this;void 0===m&&(m=null);var g,n;this.render=function(a,c){var b,g,m,n,d,v,A,w,u=0,p=!1,y,r;e.autocompleteContainer.style.position="auto";e.autocompleteContainer.style.height="auto";
var t=[],x=c.enabledFeatures;x=void 0===x?{}:x;t=e.deduplicateSuggestions(a.suggestions);e.statusMessageContainer&&(e.statusMessageContainer.textContent=k.getStatusMessage(a.prefix,t,c));t.forEach(function(b,g){var m,l,n,d,k="WIDGET"===b.type?b.template:b.type;try{var v=e.dataToTemplate(b);if(v){var A=(new Date).getTime(),w=v.render(b,a);if(w&&0<w.childNodes.length){u>=e.autocompleteContainer.children.length?e.autocompleteContainer.appendChild(w):(null===(m=e.autocompleteListElements[u])||void 0===
m?void 0:m.data)!==b&&e.autocompleteContainer.replaceChild(w,e.autocompleteContainer.children[u]);e.autocompleteListElements[u]=new h.AutocompleteListElement(w,b,v);e.applyAccessibilityForSuggestion(w,u);(null===(l=null===c||void 0===c?void 0:c.enabledFeatures)||void 0===l?0:l.entityPD)?e.autocompleteListElements[u].addMouseOverEventListener(e.api,null===(n=f.getEntityTemplateConfig(f.getEntityWidgetSuggestion(t)))||void 0===n?void 0:n.entityLayout,f.hasMouseoverTriggeringEntityWidget(e.autocompleteListElements)):
e.autocompleteListElements[u].addMouseOverEventListener(e.api,null===(d=f.getEntityTemplateConfig(e.autocompleteListElements[0].data))||void 0===d?void 0:d.entityLayout,e.hasMouseoverTriggeringEntityWidget());if(v.isDelimited()&&a.suggestions.length>g+1){var J=e.$(w);h.delimiter().forEach(function(a){J.append(a)})}u+=1;"WIDGET"===b.type&&(r=b,"PIN_TO_BOTTOM"===r.slot&&(p=!0,y=w));v.onRendered(w,b);"WIDGET"===b.type&&(h.logEvent("WidgetGenerated::"+b.strategyId,1),h.logEvent("TimeToRenderSuggestion::"+
b.strategyId,(new Date).getTime()-A))}else h.logError("LoadingFailure::"+b.strategyId),h.logJsError({message:"LoadingFailure"},{logLevel:"ERROR",attribution:"render:"+b.strategyId+":"+k})}}catch(aa){h.logError("RenderingFailure::"+b.strategyId+"::"+aa.name),h.logJsError(aa,{attribution:"render:"+b.strategyId+":"+k})}});var C=(null===(b=e.input)||void 0===b?void 0:b.getSearchInput().selectionStart)||0;x.predictiveText&&a.predictiveText&&0<a.predictiveText.length&&a.prefix!=a.predictiveText?(b=null===
(m=null===(g=c.autocompleteContext)||void 0===g?void 0:g.context)||void 0===m?void 0:m.lop,g=(null===(n=e.input)||void 0===n?void 0:n.getSearchInput().value)||"",n=null===(d=e.input)||void 0===d?void 0:d.getDeleteKeyPressed(),C===g.length&&C>=l&&!n?e.setPredictiveTextSuggestion(a,b,x.predictiveText):null===(v=e.input)||void 0===v?void 0:v.dismissPredictiveText()):x.predictiveText&&(null===(A=e.input)||void 0===A?void 0:A.dismissPredictiveText());e.updateLastCursorPosition(C);a.suggestions&&0<a.suggestions.length&&
e.api.getAutocompletePluginCall("searchSuggestionRendered")({});d=e.autocompleteContainer.children.length-u;e.autocompleteListElements=e.autocompleteListElements.slice(0,u);for(v=0;v<d;v+=1)e.autocompleteContainer.removeChild(e.autocompleteContainer.children[u]);p&&r&&y&&(d=e.api.getContext().webviewHeight,e.api.getContext().keyboardEnabled?(e.autocompleteContainer.style.height=d+"px",v=e.getContainerTotalHeight(),n=y.offsetHeight,v>=d?(y.style.position="sticky",y.style.bottom="0",y.style.marginTop=
d-n+"px",q.addEventListener("scroll",h.guardError({attribution:"AutocompleteList"},function(){y&&(y.style.marginTop="0")}),{once:!0})):(y.style.position="absolute",y.style.bottom="0",y.style.width="100%",e.autocompleteContainer.style.position="relative")):e.autocompleteContainer.removeChild(y));a.prefix.length||e.applyButtonHeight();e.resetSelection();(null===(w=null===c||void 0===c?void 0:c.enabledFeatures)||void 0===w?0:w.entityPD)?f.triggerEntityWidgetDisclosurePane(e.api):e.triggerEntityWidgetDisclosurePane()};
this.resizeListElements=function(){e.autocompleteListElements.forEach(function(a){return a.resize()})};this.resetSelection=function(){e.autocompleteListElements.forEach(function(a){return a.deSelect()})};this.getSelectedElement=function(){return e.autocompleteListElements.find(function(a){return a.isSelected()})};this.moveSelectionUp=function(a){var b=e.findSelectedElementIndex();if(-1===b)return e.selectLast(a),!0;0<=b&&b<e.autocompleteContainer.children.length&&e.autocompleteListElements[b].deSelect();
return 0<b?(e.autocompleteListElements[b-1].select(a),!0):!1};this.moveSelectionDown=function(a){var b=e.findSelectedElementIndex();0<=b&&b<e.autocompleteContainer.children.length&&e.autocompleteListElements[b].deSelect();return b!==e.autocompleteContainer.children.length-1?(e.autocompleteListElements[b+1].select(a),!0):!1};this.selectLast=function(a){e.autocompleteListElements[e.autocompleteListElements.length-1].select(a);return!0};this.dataToTemplate=function(a){return e.renderingFunctions["WIDGET"===
a.type?a.template:a.type]};this.findSelectedElementIndex=function(){return e.autocompleteListElements.findIndex(function(a){return a.isSelected()})};this.applyButtonHeight=function(){switch(h.getSiteVariant()){case "ios-iphone-mshop":e.autocompleteContainer.style.paddingBottom="60px";break;case "android-mshop":e.autocompleteContainer.style.paddingBottom="64px"}};this.getContainerTotalHeight=function(){for(var a=0,b=0;b<e.autocompleteContainer.children.length;b+=1)a+=parseInt(q.getComputedStyle(e.autocompleteContainer.children[b],
null).getPropertyValue("height"),10);return a};this.deduplicateSuggestions=function(a){for(var b=new Set,c=[],e=0;e<a.length;e++){var g=a[e];"PAST_SEARCHES"!=g.type||b.has(g.value)?"PAST_SEARCHES"!==g.type&&c.push(g):(b.add(g.value),c.push(g))}return c};this.setPredictiveTextSuggestion=function(a,b,c){var g,m,l,n;c&&(c=(null===(g=e.input)||void 0===g?void 0:g.getSearchInput().value)||"",g=null===(m=e.input)||void 0===m?void 0:m.getSearchInput().selectionStart,""!==c&&(null===(l=a.predictiveText)||
void 0===l?0:l.startsWith(c.toLowerCase()))&&g===c.length?e.input.setPredictedText(a.predictiveText,a.prefix,b):null===(n=e.input)||void 0===n?void 0:n.dismissPredictiveText())};this.updateLastCursorPosition=function(a){l=a};this.autocompleteContainer=a;this.autocompleteListElements=[];this.renderingFunctions=h.renderingFunctions(c);this.api=c;this.$=c.getJQuery();this.input=b;this.statusMessageContainer=m;this.previousInputLength=(null===(n=null===(g=this.input)||void 0===g?void 0:g.getSearchInput().value)||
void 0===n?void 0:n.length)||0}a.prototype.applyAccessibilityForSuggestion=function(a,b){var c;a.setAttribute("id","sac-suggestion-row-"+(b+1));a.setAttribute("role","row");a.setAttribute("aria-rowindex",""+(b+1));var g=a.querySelector("div");g&&(g.setAttribute("id","sac-suggestion-row-"+(b+1)+"-cell-1"),g.setAttribute("role","gridcell"),a.setAttribute("aria-owns",""+g.id));!0===(null===(c=this.api.getContext().enabledFeatures)||void 0===c?void 0:c.mShopKeyboardNavigation)&&this.applyMShopAccessibilityForSuggestion(a,
g)};a.prototype.applyMShopAccessibilityForSuggestion=function(a,b){document.body.tabIndex=0;a.setAttribute("tabindex","0");b&&((a=b.querySelector(".s-suggestion-autofillDistinct"))?a.setAttribute("tabindex","0"):(b=b.querySelector(".s-suggestion-deleteDistinct"))&&b.setAttribute("tabindex","0"))};a.prototype.triggerEntityWidgetDisclosurePane=function(){var a,b=null===(a=this.autocompleteListElements[0])||void 0===a?void 0:a.data;b&&f.isEntityWidget(b)&&(a=f.getEntityTemplateConfig(b))&&f.isEntityDisclosurePaneDefaultShow(a)&&
(a=a.entityLayout,a===h.EntityLayout.LEFT_AND_RIGHT_PANE?this.api.getAutocompleteView().twoPanelists.triggerEntityProgressiveDisclosureTwoPane(b,this.api):a===h.EntityLayout.LEFT_PANE_ONLY&&this.setEntityWidgetLeftDisclosurePaneVisibility(!0))};a.prototype.setEntityWidgetLeftDisclosurePaneVisibility=function(a){var b,e;a=a?f.ENTITY_WIDGET_CSS_DISPLAY_STYLE:f.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE;null===(e=null===(b=this.autocompleteListElements[0])||void 0===b?void 0:b.domElement.getElementsByClassName(f.ENTITY_DISCLOSURE_PANE_CONTAINER_CLASS_NAME).item(0))||
void 0===e?void 0:e.setAttribute("style",a)};a.prototype.hasMouseoverTriggeringEntityWidget=function(){var a,b=null===(a=this.autocompleteListElements[0])||void 0===a?void 0:a.data;return b.template===f.ENTITY_TEMPLATE?f.isEntityWidget(b)&&f.canTriggerEntityDisclosurePaneByMouseOver(b):!1};return a}();a.default=d},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.getStatusMessage=void 0;var h=b(0),f={en:{prefixMessage:"Prefix {{prefix}}",noSuggestionMessage:"No suggestions",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} individual suggestions",
widgetItemStatusMessage:"{{numWidgetItems}} suggestions"},es:{prefixMessage:"Prefijo {{prefix}}",noSuggestionMessage:"Sin sugerencias",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} sugerencias individuales",widgetItemStatusMessage:"{{numWidgetItems}} sugerencias"},fr:{prefixMessage:"Préfixe {{prefix}}",noSuggestionMessage:"Aucune suggestion",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} suggestions individuelles",widgetItemStatusMessage:"{{numWidgetItems}} suggestions"},de:{prefixMessage:"Präfix {{prefix}}",
noSuggestionMessage:"Keine Vorschläge",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} individuelle Vorschläge",widgetItemStatusMessage:"{{numWidgetItems}} Vorschläge"},it:{prefixMessage:"Prefisso {{prefix}}",noSuggestionMessage:"Nessun suggerimento",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} suggerimenti individuali",widgetItemStatusMessage:"{{numWidgetItems}} suggerimenti"},pl:{prefixMessage:"Prefiks {{prefix}}",noSuggestionMessage:"Żadnych sugestii",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} indywidualne sugestie",
widgetItemStatusMessage:"{{numWidgetItems}} sugestie"},ja:{prefixMessage:"{{prefix}}接頭辞",noSuggestionMessage:"提案はありません",atomicSuggestionStatusMessage:"{{numKeywordSuggs}}つの個別の提案",widgetItemStatusMessage:"{{numWidgetItems}}つの提案"},pt:{prefixMessage:"Prefixo {{prefix}}",noSuggestionMessage:"Nenhuma sugestão",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} sugestões individuais",widgetItemStatusMessage:"{{numWidgetItems}} sugestões"},nl:{prefixMessage:"Voorvoegsel {{prefix}}",noSuggestionMessage:"geen suggesties",
atomicSuggestionStatusMessage:"{{numKeywordSuggs}} individuele suggesties",widgetItemStatusMessage:"{{numWidgetItems}} suggesties"},tr:{prefixMessage:"Önek {{prefix}}",noSuggestionMessage:"Öneri yok",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} bireysel öneriler",widgetItemStatusMessage:"{{numWidgetItems}} öneri"},sv:{prefixMessage:"Prefix {{prefix}}",noSuggestionMessage:"Inga förslag",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} individuella förslag",widgetItemStatusMessage:"{{numWidgetItems}} förslag"},
cs:{prefixMessage:"Předpona {{prefix}}",noSuggestionMessage:"Žádné návrhy",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} individuálních návrhů",widgetItemStatusMessage:"{{numWidgetItems}} návrhů"},da:{prefixMessage:"Præfiks {{prefix}}",noSuggestionMessage:"Ingen forslag",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} individuelle forslag",widgetItemStatusMessage:"{{numWidgetItems}} forslag"},ar:{prefixMessage:"بادئة {{prefix}}",noSuggestionMessage:"لا يوجد اقتراحات",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} اقتراحات فردية",
widgetItemStatusMessage:"{{numWidgetItems}} اقتراحات"},zh:{prefixMessage:"前缀{{prefix}}",noSuggestionMessage:"无建议",atomicSuggestionStatusMessage:"{{numKeywordSuggs}}条单独建议",widgetItemStatusMessage:"{{numWidgetItems}}条建议"},ko:{prefixMessage:"접두사{{prefix}}",noSuggestionMessage:"제안이 없습니다",atomicSuggestionStatusMessage:"{{numKeywordSuggs}}개의 개별 제안",widgetItemStatusMessage:"{{numWidgetItems}}개의 제안"},he:{prefixMessage:"קידומת{{prefix}}",noSuggestionMessage:"אין הצעות",atomicSuggestionStatusMessage:"{{numKeywordSuggs}} הצעות בודדות",
widgetItemStatusMessage:"{{numWidgetItems}} הצעות"}},k={};"KEYWORD PAST_SEARCHES TRENDING_SEARCHES SUGGESTION_WITHOUT_TITLE SUGGESTION_WITH_TITLE keyword-with-byline kw-img-l kw-img-r keywords-link promoted-suggestion asin storefront stores nile-keyword-suggestions nile-keyword-suggestions-desktop".split(" ").forEach(function(a){return k[a]=!0});var l=function(a){a=h.setDefaultMetadata(a.metadata);return a.title?a.title:a.header?[a.headerPrefix,a.header,a.headerSuffix].join(" ").trim():""},n=function(a){for(var b=
[],e=0;e<a.length;e++){var m=a[e];"WIDGET"!=m.type||!l(m)||m.template in k||b.push(m)}return b};a.getStatusMessage=function(a,b,e){var c,g,d,w=null===(c=e.getContextField("lop"))||void 0===c?void 0:c.split("_")[0];w in f?e=w:(e=e.getContextField("plain-mid"),e=null!==(d=null===(g=h.MID_TO_PRIMARY_LOP[e])||void 0===g?void 0:g.split("_")[0])&&void 0!==d?d:"en");var u=f[e];if(b==p||0==b.length)return u.noSuggestionMessage;g=n(b);b=b.filter(function(a){return("WIDGET"==a.type?a.template:a.type)in k}).length;
var y=[];a&&y.push(u.prefixMessage.replace("{{prefix}}",a));0<b&&y.push(u.atomicSuggestionStatusMessage.replace("{{numKeywordSuggs}}",b.toString()));g.forEach(function(a){y.push(l(a));y.push(u.widgetItemStatusMessage.replace("{{numWidgetItems}}",a.widgetItems.length.toString()))});return y.join(", ")}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0),f=b(3);d=function(){function a(a,b,g){var c=this;this.highlightMultiAsinSuggestion="s-asin-suggestion";this.render=function(a){var b=
0,e=0;a.suggestions.forEach(function(g,m){var l,n="WIDGET"===g.type?g.template:g.type;try{var f="WIDGET"===g.type&&"RIGHT_SLOT"===g.slot,d=f?c.autocompleteRightContainer:c.autocompleteLeftContainer,k=f?c.autocompleteRightListElements:c.autocompleteLeftListElements,v=f?e:b,A=c.dataToTemplate(g);if(A){var w=(new Date).getTime(),u=A.render(g,a);if(u&&0<u.childNodes.length){v>=d.children.length?d.appendChild(u):(null===(l=k[v])||void 0===l?void 0:l.data)!==g&&d.replaceChild(u,d.children[v]);k[v]=new h.AutocompleteListElement(u,
g,A);c.applyAccessibilityForSuggestion(u,v);if(A.isDelimited()&&a.suggestions.length>m+1){var p=c.$(u);h.delimiter().forEach(function(a){p.append(a)})}f?e+=1:b+=1;A.onRendered(u,g);"WIDGET"===g.type&&(h.logEvent("WidgetGenerated::"+g.strategyId,1),h.logEvent("TimeToRenderTwoPaneSuggestion::"+g.strategyId,(new Date).getTime()-w))}else h.logError("LoadingFailure::"+g.strategyId),h.logJsError({message:"LoadingFailure"},{logLevel:"ERROR",attribution:"render:"+g.strategyId+":"+n})}}catch(ba){h.logError("RenderingFailure::"+
g.strategyId+"::"+ba.name),h.logJsError(ba,{attribution:"render:"+g.strategyId+":"+n})}});0===b?c.context.enabledFeatures.enableTwoPaneWidgetOnlyExperience?(c.autocompleteRightContainer.setAttribute("style","flex: 1"),c.autocompleteLeftContainer.setAttribute("style","display:none")):c.clearContent():(c.autocompleteRightContainer.removeAttribute("style"),c.autocompleteLeftContainer.setAttribute("style","flex: 0 0 50%"));a.suggestions&&0<a.suggestions.length&&c.api.getAutocompletePluginCall("searchSuggestionRendered")({});
var g=c.autocompleteLeftContainer.children.length-b;c.autocompleteLeftListElements=c.autocompleteLeftListElements.slice(0,b);for(var l=0;l<g;l+=1)c.autocompleteLeftContainer.removeChild(c.autocompleteLeftContainer.children[b]);c.resetSelection()};this.clearContent=function(){for(;c.autocompleteRightContainer.firstChild;)c.autocompleteRightContainer.removeChild(c.autocompleteRightContainer.firstChild);c.autocompleteRightContainer.setAttribute("style","display:none");c.autocompleteLeftContainer.setAttribute("style",
"flex: 1")};this.resizeListElements=function(){c.autocompleteLeftListElements.forEach(function(a){return a.resize()});c.autocompleteRightListElements.forEach(function(a){return a.resize()})};this.resetSelection=function(){c.autocompleteLeftListElements.forEach(function(a){return a.deSelect()});c.autocompleteRightListElements.forEach(function(a){return a.deSelect()})};this.getSelectedElement=function(){return c.getSelectedListElements().find(function(a){return a.isSelected()})};this.moveSelectionUp=
function(a){var b,e,g,l,n=c.getSelectedContainer(),f=c.getSelectedListElements(),d=c.findSelectedElementIndex();if(-1===d)return c.selectLast(a),!0;if(c.$(null===(b=f[d])||void 0===b?void 0:b.domElement).find("."+h.highlightMultiItemsWidgetSuggestion).length)return f[d].select(a),!0;0<=d&&d<n.children.length&&f[d].deSelect();return 0<d?(f[d-1].select(a),c.leftPaneExists()||(null===(l=null===(g=c.$(null===(e=f[0])||void 0===e?void 0:e.domElement).find("."+c.highlightMultiAsinSuggestion))||void 0===
g?void 0:g.first())||void 0===l?void 0:l.addClass(h.highlightMultiItemsWidgetSuggestion)),!0):!1};this.moveSelectionDown=function(a){var b,e,g,l,n=c.getSelectedContainer(),f=c.getSelectedListElements(),d=c.findSelectedElementIndex();if(-1!==d&&c.$(null===(b=f[d])||void 0===b?void 0:b.domElement).find("."+h.highlightMultiItemsWidgetSuggestion).length)return f[d].select(a),!0;0<=d&&d<n.children.length&&f[d].deSelect();return d!==n.children.length-1?(f[d+1].select(a),c.leftPaneExists()||(null===(l=null===
(g=c.$(null===(e=f[0])||void 0===e?void 0:e.domElement).find("."+c.highlightMultiAsinSuggestion))||void 0===g?void 0:g.first())||void 0===l?void 0:l.addClass(h.highlightMultiItemsWidgetSuggestion)),!0):!1};this.moveSelectionHorizontal=function(a){var b=c.getSelectedListElements(),e=c.findSelectedElementIndex(),g=c.getNextSelectedListElements();-1!==e&&b[e].deSelect();g[0].select(a);return!0};this.moveSelectionWithinEntityPDRightPane=function(a){if(!c.isEntityPDRightPaneSelected())return!1;var b=c.autocompleteRightListElements,
e=c.findSelectedElementIndex(),g=c.findNextIndexForEntityPDRightPane(a);-1!==e&&b[e].deSelect();-1!==g&&(b[g].select(a),b[g].scrollIntoView());return!0};this.moveSelectionBetweenEntityPanes=function(a){if(!c.isEntityPDLeftPaneSelected()&&!c.isEntityPDRightPaneSelected())return!1;var b=c.autocompleteRightListElements,e=b.length,g=c.findEntityPDRightPaneSelectedElementIndex(),l=c.findNextIndexForEntityPDRightPane(a);0<=l&&l<e&&(b[l].select(a),b[l].scrollIntoView());0<=g&&g<e&&b[g].deSelect();-1===g&&
0===l&&0<c.api.getAutocompleteView().list.autocompleteListElements.length&&c.api.getAutocompleteView().list.autocompleteListElements[0].removeHighlightFocus();(0>l||l>=e)&&(0===g||g===e-1)&&0<c.api.getAutocompleteView().list.autocompleteListElements.length&&(b[0].scrollIntoView(),c.api.getAutocompleteView().list.autocompleteListElements[0].addHighlightFocus());return!0};this.findNextIndexForEntityPDRightPane=function(a){var b=c.findEntityPDRightPaneSelectedElementIndex(),e=c.autocompleteRightListElements.length,
g=0;"Down"===a.key||"ArrowDown"===a.key||"Right"===a.key||"ArrowRight"===a.key?g+=1:("Up"===a.key||"ArrowUp"===a.key||"Left"===a.key||"ArrowLeft"===a.key)&&--g;return"Up"===a.key||"ArrowUp"===a.key||"Down"===a.key||"ArrowDown"===a.key?(b+g+e)%e:"Left"===a.key||"ArrowLeft"===a.key||"Right"===a.key||"ArrowRight"===a.key?b+g:0};this.selectLast=function(a){var b,e,g,l=c.getSelectedListElements();l[l.length-1].select(a);c.leftPaneExists()||(null===(g=null===(e=c.$(null===(b=l[0])||void 0===b?void 0:b.domElement).find("."+
c.highlightMultiAsinSuggestion))||void 0===e?void 0:e.first())||void 0===g?void 0:g.addClass(h.highlightMultiItemsWidgetSuggestion));return!0};this.dataToTemplate=function(a){return c.renderingFunctions["WIDGET"===a.type?a.template:a.type]};this.dataToEntityDisclosureTemplate=function(a){return(a=f.getEntityTemplateConfig(a))?c.renderingFunctionsForEntityDisclosurePane[a.disclosurePaneTemplate]:p};this.findSelectedElementIndex=function(){return c.getSelectedListElements().findIndex(function(a){return a.isSelected()})};
this.findEntityPDRightPaneSelectedElementIndex=function(){return c.autocompleteRightListElements.findIndex(function(a){return a.isSelected()})};this.leftPaneExists=function(){return 0<c.autocompleteLeftListElements.length?!0:!c.context.enabledFeatures.enableTwoPaneWidgetOnlyExperience};this.isEntityPDRightPaneSelected=function(){return c.autocompleteRightListElements.find(function(a){return a.isSelected()})!==p};this.isEntityPDLeftPaneSelected=function(){var a;return!0===(null===(a=c.api.getAutocompleteView().list.autocompleteListElements.find(function(a){a=
a.data;return"WIDGET"===a.type?f.isEntityWidget(a):!1}))||void 0===a?void 0:a.isSelected())};this.isRightPaneSelected=function(){return c.autocompleteRightListElements.find(function(a){return a.isSelected()})!==p||!c.leftPaneExists()};this.getSelectedListElements=function(){return c.isRightPaneSelected()?c.autocompleteRightListElements:c.autocompleteLeftListElements};this.getNextSelectedListElements=function(){return c.isRightPaneSelected()?c.autocompleteLeftListElements:c.autocompleteRightListElements};
this.getSelectedContainer=function(){return c.isRightPaneSelected()?c.autocompleteRightContainer:c.autocompleteLeftContainer};this.autocompleteLeftContainer=a;this.autocompleteRightContainer=b;this.autocompleteLeftListElements=[];this.autocompleteRightListElements=[];this.renderingFunctions=h.renderingFunctions(g);this.renderingFunctionsForEntityDisclosurePane=h.renderingFunctionsForEntityDisclosurePane(g);this.api=g;this.context=g.getContext();this.$=g.getJQuery()}a.prototype.showRightPaneWithSugg=
function(a,b){var g,c=this.dataToEntityDisclosureTemplate(a);if(c){var e=(new Date).getTime();if((b=c.render(a,b))&&0<b.childNodes.length){var m=this.autocompleteRightContainer,l=this.autocompleteRightListElements;f.isEntityPDKeyboardA11yEnabled([a])&&0<(null===(g=b.querySelectorAll("a"))||void 0===g?void 0:g.length)?b.querySelectorAll("a").forEach(function(b){b.innerText!==b.innerHTML?l.push(new h.AutocompleteListElement(b.closest("div"),a,c)):l.push(new h.AutocompleteListElement(b,a,c))}):l.push(new h.AutocompleteListElement(b,
a,c));m.appendChild(b);this.updateAccessibilityOnShowRightPaneSuggestions(b);h.logEvent("DisclosurePaneTriggered::"+a.strategyId,1);0<(new Date).getTime()-e&&h.logEvent("TimeToRenderDisclosurePane::"+a.strategyId,(new Date).getTime()-e);this.autocompleteRightContainer.removeAttribute("style");this.autocompleteLeftContainer.setAttribute("style","flex: 0 0 50%")}else g=a.template,h.logError("ShowDisclosurePaneFailure::"+a.strategyId),h.logJsError({message:"ShowDisclosurePaneFailure"},{logLevel:"ERROR",
attribution:"render:"+a.strategyId+":"+g+":showDisclosurePane"})}};a.prototype.hideDisclosurePane=function(){this.autocompleteRightContainer.setAttribute("style",f.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE);this.autocompleteLeftContainer.setAttribute("style","flex: 1 1 0");this.updateAccessibilityOnHideRightPaneSuggestions()};a.prototype.removeDisclosurePaneElements=function(){var a,b,g,c;this.autocompleteRightListElements.splice(0);for(var e=(null===(b=null===(a=this.autocompleteRightContainer)||void 0===
a?void 0:a.children)||void 0===b?NaN:b.length)-1;0<=e;--e)null===(c=null===(g=this.autocompleteRightContainer.children)||void 0===g?void 0:g.item(e))||void 0===c?void 0:c.remove()};a.prototype.triggerEntityProgressiveDisclosureTwoPane=function(a,b){var g=h.normalizeInputObject(a);g=JSON.parse(JSON.stringify(g));g.template=f.ENTITY_TEMPLATE;this.removeDisclosurePaneElements();a={alias:b.getContext().getContextField("alias"),prefix:b.getContext().getContextField("prefix"),responseId:a.crid};this.showRightPaneWithSugg(g,
a)};a.prototype.hideEntityProgressiveDisclosureTwoPane=function(){this.removeDisclosurePaneElements();this.hideDisclosurePane()};a.prototype.applyAccessibilityForSuggestion=function(a,b){var g;a.setAttribute("id","sac-suggestion-row-"+(b+1));a.setAttribute("role","row");a.setAttribute("aria-rowindex",String(b+1));var c=a.querySelector("div");c&&(c.setAttribute("id","sac-suggestion-row-"+(b+1)+"-cell-1"),c.setAttribute("role","gridcell"),a.setAttribute("aria-owns",""+c.id));!0===(null===(g=this.api.getContext().enabledFeatures)||
void 0===g?void 0:g.mShopKeyboardNavigation)&&this.applyMShopAccessibilityForSuggestion(a,c)};a.prototype.applyMShopAccessibilityForSuggestion=function(a,b){document.body.tabIndex=0;a.setAttribute("tabindex","0");b&&((a=b.querySelector(".s-suggestion-autofillDistinct"))?a.setAttribute("tabindex","0"):(b=b.querySelector(".s-suggestion-deleteDistinct"))&&b.setAttribute("tabindex","0"))};a.prototype.updateAccessibilityOnShowRightPaneSuggestions=function(a){"desktop"===h.getSiteVariant()&&(a=a.querySelector("div"))&&
(a.id="sac-suggestion-row-1-cell-2",a.setAttribute("role","gridcell"),a=document.getElementById("sac-suggestion-row-1"),null===a||void 0===a?void 0:a.setAttribute("aria-owns","sac-suggestion-row-1-cell-1 sac-suggestion-row-1-cell-2"))};a.prototype.updateAccessibilityOnHideRightPaneSuggestions=function(){if("desktop"===h.getSiteVariant()){var a=document.getElementById("sac-suggestion-row-1");null===a||void 0===a?void 0:a.setAttribute("aria-owns","sac-suggestion-row-1-cell-1")}};return a}();a.default=
d},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0),f=b(3);d=function(){function a(a,b,g){var c=this;this.render=function(a,b){c.input.showDropdown();c.enableTwoPane=a.suggestions.some(function(a){if("WIDGET"===a.type&&"RIGHT_SLOT"===a.slot)return!0});c.enableEntityPDKeyboardAccessibility=f.isEntityPDKeyboardA11yEnabled(a.suggestions);c.enableTwoPane?c.twoPanelists.render(a):(c.twoPanelists.clearContent(),c.list.render(a,b));h.finishTimeToFirstSuggestion();a.startTime&&
h.recordResponseTime((new Date).getTime()-a.startTime);c.input.setAttribution(h.implicitRefTag(c.enableTwoPane?c.twoPanelists.autocompleteLeftListElements:c.list.autocompleteListElements,a.prefix),a.responseId,h.constructPrefixAttribution(a.prefix,b.getContextField("alias")),a.startTime)};this.resetSelection=function(){c.enableTwoPane?c.twoPanelists.resetSelection():c.list.resetSelection()};this.handleWindowResizeEvent=function(){c.enableTwoPane?c.twoPanelists.resizeListElements():c.list.resizeListElements()};
this.handleNavigationEvent=function(a){var b,e,g;switch(a.key){case "Enter":if(c.enableTwoPane&&(null===(b=c.twoPanelists.getSelectedElement())||void 0===b?0:b.click())||c.enableEntityPDKeyboardAccessibility&&(null===(e=c.twoPanelists.getSelectedElement())||void 0===e?0:e.navigateToSelectedLink())||(null===(g=c.list.getSelectedElement())||void 0===g?0:g.click()))return a.preventDefault(),!0;h.emitEvents();return!1;case "Up":case "ArrowUp":if(c.enableEntityPDKeyboardAccessibility&&c.twoPanelists.moveSelectionWithinEntityPDRightPane(a))break;
c.input.isSelected()?(c.input.toggleIsSelected(),c.enableTwoPane?c.twoPanelists.selectLast(a):c.list.selectLast(a)):(c.enableTwoPane&&!c.twoPanelists.moveSelectionUp(a)||!c.enableTwoPane&&!c.list.moveSelectionUp(a))&&c.input.toggleIsSelected();break;case "Down":case "ArrowDown":c.input.isSelected()&&c.input.toggleIsSelected();if(c.enableEntityPDKeyboardAccessibility&&c.twoPanelists.moveSelectionWithinEntityPDRightPane(a))break;(c.enableTwoPane&&!c.twoPanelists.moveSelectionDown(a)||!c.enableTwoPane&&
!c.list.moveSelectionDown(a))&&c.input.toggleIsSelected();break;case "Right":case "ArrowRight":case "Left":case "ArrowLeft":if(c.enableTwoPane){c.input.isSelected()&&c.input.toggleIsSelected();c.twoPanelists.moveSelectionHorizontal(a)||c.input.toggleIsSelected();break}if(c.enableEntityPDKeyboardAccessibility&&c.twoPanelists.moveSelectionBetweenEntityPanes(a))break;default:if(b=c.enableTwoPane?c.twoPanelists.getSelectedElement():c.list.getSelectedElement())b.select(a);else return!1}c.notifySearchBoxSelection();
a.preventDefault();return!0};this.input=a;this.list=b;this.twoPanelists=g;this.enableEntityPDKeyboardAccessibility=this.enableTwoPane=!1;q.addEventListener("resize",h.guardError({attribution:"AutocompleteView"},function(){c.handleWindowResizeEvent()}))}a.prototype.notifySearchBoxSelection=function(){this.list.getSelectedElement()?this.input.notifySearchBoxSelection(this.list.getSelectedElement().getSelectedId()):this.twoPanelists.getSelectedElement()?this.input.notifySearchBoxSelection(this.twoPanelists.getSelectedElement().getSelectedId()):
this.input.notifySearchBoxSelection()};return a}();a.default=d},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0),f=function(a,b){b.length&&(null===a||void 0===a?void 0:a.removeClass(h.highlightSuggestion),b.addClass(h.highlightSuggestion))};a.default=function(a,b,n,g){var c,e;switch(a){case "ArrowRight":case "Right":return b=null===b||void 0===b?void 0:b.find("."+h.highlightSuggestion),n=null===b||void 0===b?void 0:b.parents(g).next().find(n),f(b,n),n;case "ArrowLeft":case "Left":return b=
null===b||void 0===b?void 0:b.find("."+h.highlightSuggestion),n=null===b||void 0===b?void 0:b.parents(g).prev().find(n),f(b,n),n;default:return g=null===b||void 0===b?void 0:b.find("."+h.highlightSuggestionInactive),g.length?(g.removeClass(h.highlightSuggestionInactive),g.addClass(h.highlightSuggestion),g):null===(e=null===(c=null===b||void 0===b?void 0:b.find(n))||void 0===c?void 0:c.first())||void 0===e?void 0:e.addClass(h.highlightSuggestion)}}},function(d,a,b){Object.defineProperty(a,"__esModule",
{value:!0});var h=b(0),f=function(a,b){b.length&&(null===a||void 0===a?void 0:a.removeClass(h.highlightSuggestionCardByKeyboardFocus),b.addClass(h.highlightSuggestionCardByKeyboardFocus))};a.default=function(a,b,n){var g,c;switch(a){case "ArrowRight":case "Right":return b=null===b||void 0===b?void 0:b.find("."+h.highlightSuggestionCardByKeyboardFocus),n=null===b||void 0===b?void 0:b.next(),f(b,n),n;case "ArrowLeft":case "Left":return b=null===b||void 0===b?void 0:b.find("."+h.highlightSuggestionCardByKeyboardFocus),
n=null===b||void 0===b?void 0:b.prev(),f(b,n),n;default:return a=null===b||void 0===b?void 0:b.find("."+h.highlightSuggestionInactive),a.length?(a.removeClass(h.highlightSuggestionInactive),a.addClass(h.highlightSuggestionCardByKeyboardFocus),a):null===(c=null===(g=null===b||void 0===b?void 0:b.find(n))||void 0===g?void 0:g.first())||void 0===c?void 0:c.addClass(h.highlightSuggestionCardByKeyboardFocus)}}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0),f=function(a,b){b.length&&
(null===a||void 0===a?void 0:a.removeClass(h.highlightSuggestion),b.addClass(h.highlightSuggestion))};a.default=function(a,b,n,g){var c,e,m,l,d,k,u;switch(a){case "ArrowDown":case "Down":var p=null===b||void 0===b?void 0:b.find("."+h.highlightSuggestion);g=null===p||void 0===p?void 0:p.parents(g).next().find(n);0===g.length&&(g=null===(e=null===(c=null===b||void 0===b?void 0:b.find(n))||void 0===c?void 0:c.first())||void 0===e?void 0:e.addClass(h.highlightSuggestion));f(p,g);return g;case "ArrowUp":case "Up":return p=
null===b||void 0===b?void 0:b.find("."+h.highlightSuggestion),g=null===p||void 0===p?void 0:p.parents(g).prev().find(n),0===g.length&&(g=null===(l=null===(m=null===b||void 0===b?void 0:b.find(n))||void 0===m?void 0:m.last())||void 0===l?void 0:l.addClass(h.highlightSuggestion)),f(p,g),g;default:return c=null===b||void 0===b?void 0:b.find("."+h.highlightMultiItemsWidgetSuggestion),c.length?c.removeClass(h.highlightMultiItemsWidgetSuggestion):null===(d=null===(p=null===b||void 0===b?void 0:b.find(n))||
void 0===p?void 0:p.first())||void 0===d?void 0:d.addClass(h.highlightMultiItemsWidgetSuggestion),null===(u=null===(k=null===b||void 0===b?void 0:b.find(n))||void 0===k?void 0:k.first())||void 0===u?void 0:u.addClass(h.highlightSuggestion)}}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0})},function(d,a,b){var h=this&&this.__assign||function(){h=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,
m)&&(a[m]=b[m])}return a};return h.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var f=b(24),k=b(39),l=b(38);a.default=function(a,b){var c,e,g,n=a.value,d=a.refTag,w=a.scopes;a=a.crid;var u=b.searchContext.context,y=u.bbn,J=u.node;u=u.rh;var L=b.getContextField("prefix"),D=b.getContextField("n"),q=b.getContextField("alias"),r=b.getContextField("srs"),t=b.getContextField("bbn"),x=b.getContextField("tab"),C=b.getContextField("gsc"),I=b.getContextField("s_metadata_rescope_node"),
B=b.getContextField("s_metadata_rescope_parameter");w&&0!==w.length?(q=w[0].value,w=null===(e=w[1])||void 0===e?void 0:e.value):w=r;return"https://"+k.searchDomain+"/s?"+f.paramsToURLParameters(h({bbn:null===y||y===p?t:y,node:J,rh:u,k:n,i:q,ref:d,srs:w,n:D,crid:a,sprefix:l.constructPrefixAttribution(L,q),tab:x,gsc:C},(null===(g=b.enabledFeatures)||void 0===g?0:g.mWebScoping)&&B&&I?(c={},c[B]=I,c):{}))}},function(d,a,b){b.r(a);Array.prototype.flat||Object.defineProperty(Array.prototype,"flat",{configurable:!0,
value:function k(a){var b=isNaN(a)?1:Number(a);return b?Array.prototype.reduce.call(this,function(a,g){return Array.isArray(g)?a.push.apply(a,k.call(g,b-1)):a.push(g),a},[]):Array.prototype.slice.call(this)},writable:!0});Array.prototype.flatMap||Object.defineProperty(Array.prototype,"flatMap",{configurable:!0,value:function(a){return Array.prototype.map.apply(this,arguments).flat()},writable:!0})},function(d,a,b){function h(a){return Object.keys(a).reduce(function(b,f){if(f.includes("_")){var n=
f.split("_");for(var g=1;g<n.length;g+=1)0<n[g].length&&(n[g]=n[g].charAt(0).toUpperCase()+n[g].slice(1));n=n.join("")}else n=f;f=a[f];g="undefined"===typeof f?"undefined":H(f);f&&"object"===g?f=Array.isArray(f)?f.map(function(a){return h(a)}):h(f):"string"===g&&(f=f.replace(/&amp;/g,"\x26"));b[n]=f;return b},{})}Object.defineProperty(a,"__esModule",{value:!0});a.default=h},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.default=function(a,b){if(!b||0===b.length)return[{text:a,
hit:!1}];var f=a.toLowerCase().indexOf(b.toLowerCase());if(-1===f)return[{text:a,hit:!1}];var l=[];0!==f&&l.push({text:a.substr(0,f),hit:!1});l.push({text:a.substr(f,b.length),hit:!0});f+b.length!==a.length&&l.push({text:a.substr(f+b.length),hit:!1});return l}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.default=function(a,b){var f,l,n=null===(f=b.getAutocompleteView())||void 0===f?void 0:f.input;n&&(n.setKeyword(a.value),b=null===(l=b.getContext())||void 0===l?void 0:l.getContextField("alias"),
n.setAlias(a.scopes?a.scopes[0].value:b||"aps",a.scopes?a.scopes[0].display:p))}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.finishTimeToFirstSuggestion=a.startTimeToFirstSuggestion=a.timeToFirstSuggestionMetricName=void 0;var h=b(0),f=!0,k=!0;a.timeToFirstSuggestionMetricName="TimeToFirstSuggestion";var l=new h.CSMLatencyMetric(a.timeToFirstSuggestionMetricName),n=0;a.startTimeToFirstSuggestion=function(){f&&(f=!1,l.start(),n=(new Date).getTime())};a.finishTimeToFirstSuggestion=
function(){k&&!f&&(k=!1,l.finish(),h.emitLatency(a.timeToFirstSuggestionMetricName,(new Date).getTime()-n))}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.default=function(a,b){return a.length?a.find(function(a){return a.matchesSearchQuery(b)})?"nb_sb_noss_1":"nb_sb_noss_2":"nb_sb_noss"}},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.decodeSearchDropdownUrl=void 0;a.decodeSearchDropdownUrl=function(a){var b=Object.create(null);a.split("\x26").forEach(function(a){var f=
a.indexOf("\x3d"),n=a.slice(0,f);a=a.slice(f+1);b[n]=a});return b}},function(d,a,b){function h(a,b,l,n,g,c,e){var m=new RegExp("(^nb_sb_ss_w_"+b+")_(\\w+)$");"false"===e?m=new RegExp("(^nb_sb_ss_w_"+b+"_"+c+")_(\\w+)$"):c&&c!==b&&(b=a.indexOf("_"+c),-1!==b&&(a=""+a.substr(0,b)+a.substr(b+c.length+1)));return(c=m.exec(a))&&c[1]&&c[2]?(g?a=[c[1],g,c[2]]:(a=[c[1],l],n&&a.push(n),a.push(c[2])),a.join("_")):a}Object.defineProperty(a,"__esModule",{value:!0});a.updateWidgetItemRefTag=a.constructRefTag=void 0;
a.constructRefTag=h;a.updateWidgetItemRefTag=function(a,b,l){for(var f=function(b){a.widgetItems.forEach(function(c){if(c.metadata[b]){var e=JSON.parse(c.metadata[b]);c.metadata[b]=e;Array.isArray(e)?e.forEach(function(b){return b.constructedRefTag=h(a.refTag,a.strategyId,l,b.tag,b.serviceGeneratedLinkTag,a.widgetId,a.metadata.removeWidgetIdFromRefTag)}):e.constructedRefTag=h(a.refTag,a.strategyId,l,e.tag,e.serviceGeneratedLinkTag,a.widgetId,a.metadata.removeWidgetIdFromRefTag)}})},g=0;g<b.length;g++)f(b[g])}},
function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.suffixFieldName=a.prefixFieldName=void 0;a.prefixFieldName="prefix";a.suffixFieldName="suffix"},function(d,a,b){var h=this&&this.__assign||function(){h=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(a[m]=b[m])}return a};return h.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});a.Context=a.SearchContext=a.AutocompleteContext=
void 0;var f=b(0),k=function(){function a(a,b,e){var c,g=this;this._context=(c={},c[f.prefixFieldName]="",c["page-type"]="Search",c.alias=p,c["site-variant"]="desktop",c.version="2",c.event="onkeypress",c.wc="",c.lop="en_US",c["last-prefix"]="\x00",c["avg-ks-time"]=0,c.fb="1",c.srs=p,c.predicted_text_accepted="",c.implicit_alias=p,c.s_metadata_alias=p,c.s_metadata_rescope_node=p,c.s_metadata_rescope_parameter=p,c);this.updateContext=function(a){void 0===a&&(a={});Object.keys(a).forEach(function(b){var c=
a[b];if(c||-1!==[f.prefixFieldName,f.suffixFieldName].indexOf(b)&&""===c)g._context[b]=c});return g._context};a&&b&&this.updateContext(h(h({},this._context),{alias:a.alias,"session-id":a.sessionId,"customer-id":a.customerId,"request-id":a.requestId,"page-type":a.pageType,lop:a.language,mid:a.obfMkt,"plain-mid":a.mkt,"site-variant":b.name,"client-info":b.cid,b2b:a.b2b,fresh:a.fresh,fb:a.fb,n:a.n,asin:a.asin,predicted_text_accepted:a.predicted_text_accepted,implicit_alias:a.implicitAlias,s_metadata_alias:a.searchMetadataAlias,
s_metadata_rescope_node:a.searchMetadataRescopeNode,s_metadata_rescope_parameter:a.searchMetadataRescopeParameter}));e&&(this._context=h(h({},this._context),e))}Object.defineProperty(a.prototype,"context",{get:function(){return this._context},enumerable:!1,configurable:!0});return a}();a.AutocompleteContext=k;var l=function(){function a(){var a=this;this.searchParameterDefaults="search-url-context";this.validSearchContextUrlPrefix="/s";this._context={bbn:"",node:"",rh:""};this.updateField=function(b,
e){return Object.prototype.hasOwnProperty.call(a._context,b)?(a._context[b]=e,!0):!1}}a.prototype.updateContext=function(a){var b=this;a.startsWith(this.validSearchContextUrlPrefix)&&a.includes("?")&&(new URLSearchParams(a.split("?")[1])).forEach(function(a,c){c&&c in b._context&&a&&(b._context[c]=a)})};Object.defineProperty(a.prototype,"context",{get:function(){var a={};Object.entries(this._context).filter(function(a){return a[1]}).forEach(function(b){a[b[0]]=b[1]});return a},enumerable:!1,configurable:!0});
return a}();a.SearchContext=l;d=function(){function a(a,b,e,m){var c=this;void 0===b&&(b={});this.getContextField=function(a){return c._autocompleteContext.context[a]};this.updateEnabledFeatures=function(a){Object.keys(a).forEach(function(b){c.enabledFeatures[b]=a[b]});return c.enabledFeatures};this.localizationContext=a;this.enabledFeatures=b;this._autocompleteContext=new k(e,m);this._searchContext=new l;this._webviewHeight=0;this._keyboardEnabled=!0}Object.defineProperty(a.prototype,"autocompleteContext",
{get:function(){return this._autocompleteContext},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"searchContext",{get:function(){return this._searchContext},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"filterByString",{get:function(){return this.localizationContext.filterByString},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"crossCategoryString",{get:function(){return this.localizationContext.crossCategoryString},enumerable:!1,configurable:!0});
Object.defineProperty(a.prototype,"askRufus",{get:function(){return this.localizationContext.askRufus},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"webviewHeight",{get:function(){return this._webviewHeight},enumerable:!1,configurable:!0});Object.defineProperty(a.prototype,"keyboardEnabled",{get:function(){return this._keyboardEnabled},enumerable:!1,configurable:!0});a.prototype.updateWebviewHeight=function(a){this._webviewHeight=a};a.prototype.updateKeyboardEnabled=function(a){this._keyboardEnabled=
a};return a}();a.Context=d},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0})},function(d,a,b){var h=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.InstrumentedSuggestion=a.AutocompleteListElement=a.AutocompleteSuggestion=void 0;var f=b(71);Object.defineProperty(a,"AutocompleteSuggestion",{enumerable:!0,get:function(){return h(f).default}});var k=b(158);Object.defineProperty(a,"AutocompleteListElement",
{enumerable:!0,get:function(){return h(k).default}});var l=b(159);Object.defineProperty(a,"InstrumentedSuggestion",{enumerable:!0,get:function(){return h(l).default}})},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0),f=b(3);d=function(){return function(a,b,d){var g=this;this.isSelected=function(){return g.suggestion.isSelected(g.domElement)};this.select=function(a){g.suggestion.select(g.domElement,a,g.data)};this.deSelect=function(){g.suggestion.deSelect(g.domElement)};
this.getSelectedId=function(){return g.suggestion.getSelectedId(g.domElement)};this.matchesSearchQuery=function(a){return g.suggestion.matchesSearchQuery(a,g.data)};this.click=function(){return g.suggestion.click(g.data)};this.resize=function(){return g.suggestion.resize(g.domElement)};this.scrollIntoView=function(){g.domElement.scrollIntoView({behavior:"smooth",block:"center"})};this.addMouseOverEventListener=function(a,b,m){m&&g.domElement.addEventListener("mouseover",h.guardError({},function(){var c,
e,m,d,l=g.data,n=a.getAutocompleteView().list,k=a.getAutocompleteView().twoPanelists;b&&(f.isEntityWidget(l)?b===h.EntityLayout.LEFT_AND_RIGHT_PANE?k.triggerEntityProgressiveDisclosureTwoPane(l,a):b===h.EntityLayout.LEFT_PANE_ONLY&&((null===(e=null===(c=a.getContext())||void 0===c?void 0:c.enabledFeatures)||void 0===e?0:e.entityPD)?f.setEntityWidgetLeftDisclosurePaneVisibility(n.autocompleteListElements,!0):n.setEntityWidgetLeftDisclosurePaneVisibility(!0)):b===h.EntityLayout.LEFT_AND_RIGHT_PANE?
k.hideEntityProgressiveDisclosureTwoPane():b===h.EntityLayout.LEFT_PANE_ONLY&&((null===(d=null===(m=a.getContext())||void 0===m?void 0:m.enabledFeatures)||void 0===d?0:d.entityPD)?f.setEntityWidgetLeftDisclosurePaneVisibility(n.autocompleteListElements,!1):n.setEntityWidgetLeftDisclosurePaneVisibility(!1)))}))};this.navigateToSelectedLink=function(){return f.isEntityWidget(g.data)?g.suggestion.navigateToSelectedLink(g.data,g.domElement):!1};this.addHighlightFocus=function(){return f.isEntityWidget(g.data)?
g.suggestion.addHighlightFocus(g.domElement):!1};this.removeHighlightFocus=function(){return f.isEntityWidget(g.data)?g.suggestion.removeHighlightFocus(g.domElement):!1};this.domElement=a;this.data=b;this.suggestion=d}}();a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,f)};return function(b,
f){function d(){this.constructor=b}a(b,f);b.prototype=null===f?Object.create(f):(d.prototype=f.prototype,new d)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.onRendered=function(a,b){};b.render=function(a,g){a=b.accept(a,g);g=b.generateHtml(a);var c=document.createElement("div");if(c.append)c.append.apply(c,g);else for(var e=0;e<g.length;e++)c.appendChild(g[e]);
b.attachEventHandlers(c,a);return c};return b}h(b,a);b.prototype.attachEventHandlers=function(a,b){};return b}(d(b(71)).default);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):
(e.prototype=c.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(a[m]=b[m])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).KeywordWithByline;d=function(a){function b(b,e,g){var c,m=a.call(this,{enabledA11yColorContrast:!0})||this;m.isDelimited=function(){var a=m.context.enabledFeatures;if(a.useSuggestionDelimiter!==
p)return a.useSuggestionDelimiter;a=m.api.getContext().getContextField("site-variant");return k.isMShop(a)};m.select=function(b,c,e){a.prototype.select.call(m,b,c,e);k.textSuggestionSelectionHandler(e,m.api)};m.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?m.api.autofillSuggestion(b.value):m.click(b)}))};m.generateHtml=function(a){return l.default(m.kataRuntime,f(f({suggestion:a},m.context),{isCustomLinkEnabled:m.isCustomLinkEnabled}))};
m.api=e;m.context=g;m.kataRuntime=b;m.isCustomLinkEnabled=null===(c=m.api.getContext().enabledFeatures)||void 0===c?void 0:c.keywordWithBylineCustomLink;return m}h(b,a);b.prototype.accept=function(a,b){var c,e,g=(null===(e=null===(c=null===a||void 0===a?void 0:a.widgetItems)||void 0===c?void 0:c[0])||void 0===e?void 0:e.metadata)||{};c=g.link_url;c=void 0===c?"":c;g=g.byline;g=void 0===g?"":g;return f(f({},a),{crid:b.responseId,highlightFragments:a.highlightFragments||k.highlightText(a.value,b.prefix),
link:this.isCustomLinkEnabled?c:"",customByline:this.isCustomLinkEnabled?g:""})};b.prototype.type=function(){return this.isCustomLinkEnabled?["keyword-with-byline","keyword-with-link-byline"]:["keyword-with-byline"]};b.prototype.click=function(b){var c,g,f;k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);var d=this.getRefinementSelection(b);d&&this.api.getContext().searchContext.updateField("rh",d);a.prototype.click.call(this,b);q.location.assign(this.isCustomLinkEnabled&&
(null===(f=null===(g=null===(c=b.widgetItems)||void 0===c?void 0:c[0])||void 0===g?void 0:g.metadata)||void 0===f?0:f.link_url)?b.widgetItems[0].metadata.link_url:k.buildSearchLinkUrl(b,this.api.getContext()));return!0};b.prototype.getRefinementSelection=function(a){var b;return(null===(b=a.metadata)||void 0===b?0:b.refinement)?a.metadata.refinement:null};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a){function b(a,b,d){a.assertNotNull(b,["suggestion"]);var f;return a.root("autocomplete",
"Stores",[h(b.suggestion.widgetItems).map(function(b){return[(f=b.metadata,[a.createElement("div",{"class":"s-suggestion s-store-suggestion","data-keyword":""+f.text,role:"button","aria-label":""+f.text},a.createElement("a",{"class":"s-store-sug-link","aria-label":""+f.text,href:""+f.linkUrl},a.createElement("div",{"class":"s-store-sug-logo-container",style:"opacity: 1;"},a.createElement("img",{"class":"s-store-sug-logo",alt:""+f.text,src:""+f.imageUrl})),a.createElement("div",{"class":"s-store-sug-text-container"},
a.createElement("div",{"class":"s-store-sug-text"},""+f.text))))])]})])}function h(a){return!a.map&&Java.from?Java.from(a):a}d.exports={};d.exports.default=b;d.exports.Stores=b},function(d,a){function b(a,b,d){a.assertNotNull(b,["suggestion"]);var f;return a.root("autocomplete","MultiAsinsMobile",[""!==b.suggestion.metadata.header?a.createElement("div",{"class":"p13n-bia-mam-widget-header sac-header-component-single-line-header"},b.suggestion.metadata.header):p,a.createElement("div",{"class":"p13n-bia-mam-suggestion"},
h(b.suggestion.widgetItems).map(function(b,c){return[5>c?(f=b.metadata,[a.createElement("div",{"class":"p13n-bia-mam-asin-sug-container"},a.createElement("div",{"class":"p13n-bia-mam-asin-suggestion p13n-bia-mam-suggestion"},a.createElement("a",{"class":"p13n-bia-mam-asin-sug-link",href:""+f.linkUrl},a.createElement("div",{"class":"p13n-bia-mam-asin-sug-left"},a.createElement("div",{"class":"p13n-bia-mam-asin-image-container",style:"opacity: 1;"},a.createElement("img",{"class":"p13n-bia-mam-asin-image",
src:""+f.imageUrl}))),a.createElement("div",{"class":"p13n-bia-mam-asin-sug-right"},""!==f.asinHeader?a.createElement("div",{"class":"p13n-bia-mam-sug-pp-caption"},f.asinHeader):p,a.createElement("div",{"class":"p13n-bia-mam-asin-title"},""+f.asinTitle)))),a.createElement("hr",{"class":"p13n-bia-mam-top-line-separator"}))]):p]}))])}function h(a){return!a.map&&Java.from?Java.from(a):a}d.exports={};d.exports.default=b;d.exports.MultiAsinsMobile=b},function(d,a){function b(a,b,g){a.assertNotNull(b,["suggestion",
"elementClassName"]);var c,e,m;return a.root("autocomplete","TileCarousel",[(c=b.suggestion.metadata.csaTag,[a.createElement("div",{"class":"s-entity-pd-carousel-tile-suggestion","data-csa-c-type":"widget","data-csa-c-content-id":c+"-disclosure-pane","data-csa-c-slot-id":c+"-disclosure-pane"},a.createElement("ol",{"class":"s-entity-pd-carousel-tile-container"},(e=b.suggestion.widgetItems,[h(e).map(function(c){return[(m=c.metadata,[a.createElement("li",{"class":k(["s-entity-pd-"+b.elementClassName+
"-element-container"])},a.createElement("a",{"class":"s-entity-pd-carousel-tile-link",href:""+m.formattedCardLink},a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-element-image-container"])},a.createElement("img",{"class":"s-entity-pd-carousel-tile-element-image",src:""+m.tileCardImageUrl})),a.createElement("div",{"class":"s-entity-pd-carousel-tile-element-title-container","aria-label":""+m.tileCardTitle},""+m.tileCardTitle)))])]})])))])])}function h(a){return!a.map&&Java.from?
Java.from(a):a}function f(a){return null!==a&&a!==p&&""!==a}function k(a){a=a.join(" ").split(" ").filter(f).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.TileCarousel=b},function(d,a){function b(a,b,g){a.assertNotNull(b,["suggestion","elementClassName"]);var c,e,m;return a.root("autocomplete","TileRows",[(c=b.suggestion.metadata.csaTag,[a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-suggestion"]),"data-csa-c-type":"widget","data-csa-c-content-id":c+
"-disclosure-pane","data-csa-c-slot-id":c+"-disclosure-pane"},(e=b.suggestion.widgetItems,[h(e).map(function(c,e){return[(m=c.metadata,[a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-element-container"])},a.createElement("a",{"class":k(["s-entity-pd-"+b.elementClassName+"-link"]),href:""+m.formattedCardLink},a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-element-image-container"])},a.createElement("img",{"class":k(["s-entity-pd-"+b.elementClassName+"-element-image"]),
src:""+m.tileCardImageUrl})),a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-element-title-container"])},""+m.tileCardTitle)))])]})]))])])}function h(a){return!a.map&&Java.from?Java.from(a):a}function f(a){return null!==a&&a!==p&&""!==a}function k(a){a=a.join(" ").split(" ").filter(f).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.TileRows=b},function(d,a){function b(a,b,d){a.assertNotNull(b,["suggestion"]);return a.root("autocomplete","NileSearchSuggestionsWidgetDesktop",
[a.createElement("div",{"class":"s-suggestion-nile-desktop-container"},a.createElement("div",{"class":"s-suggestion-nile-desktop-icon-container"},a.createElement("i",{"class":"s-suggestion-nile-desktop-icon","nile-keyword-desktop-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})),a.createElement("div",{"class":"s-suggestion-nile-desktop s-suggestion-ellipsis-direction",role:"button","aria-label":b.suggestion.value},a.createElement("span",
{"class":"s-suggestion-nile-desktop-value"},b.suggestion.value)))])}d.exports={};d.exports.default=b;d.exports.NileSearchSuggestionsWidgetDesktop=b},function(d,a){function b(a,b,d){a.assertNotNull(b,["suggestion","enabledFeatures","isFirstNileSuggestion"]);return a.root("autocomplete","NileSearchSuggestionsWidget",[b.isFirstNileSuggestion?a.createElement("div",{"class":"nile-ask-a-question-header sac-header-component-single-line-header"},a.createElement("h3",{"class":"nile-ask-a-question-text"},b.suggestion.metadata.title)):
p,a.createElement("div",{"class":"s-nile-suggestion-container"},b.enabledFeatures.darkPills?a.createElement("div",{"class":"s-nile-suggestion-dark-pill s-suggestion-ellipsis-direction",role:"button","aria-label":b.suggestion.value},a.createElement("span",{"class":"nile-suggestion-value-dark-pill"},b.suggestion.value)):a.createElement("div",{"class":"s-nile-suggestion s-suggestion-ellipsis-direction",role:"button","aria-label":b.suggestion.value},a.createElement("span",{"class":"nile-suggestion-value"},
b.suggestion.value)))])}d.exports={};d.exports.default=b;d.exports.NileSearchSuggestionsWidget=b},function(d,a,b){function h(a,b,g){var c=k(a.context||{});a.assertNotNull(b,["suggestion"]);var e;return a.root("autocomplete","MultiAsins",[""!==b.suggestion.metadata.header?a.createElement("div",{"class":"s-bia-widget-header sac-header-component-single-line-header"},b.suggestion.metadata.header):p,a.createElement("div",{"class":"s-bia-suggestion"},f(b.suggestion.widgetItems).map(function(g,f){return[(e=
g.metadata,[a.createElement("div",{"class":"s-asin-sug-container"},a.createElement("div",{"class":"s-asin-suggestion s-suggestion"},a.createElement("a",{"class":"s-asin-sug-link",href:""+e.linkUrl},a.createElement("div",{"class":"s-asin-sug-left"},a.createElement("div",{"class":"s-asin-image-container",style:"opacity: 1;"},a.createElement("img",{"class":"s-asin-image",src:""+e.imageUrl}))),a.createElement("div",{"class":"s-asin-sug-right"},""!==e.asinHeader?a.createElement("div",{"class":"s-size-mini s-sug-pp-caption"},
e.asinHeader):p,a.createElement("div",{"class":"s-asin-title"},""+e.asinTitle)))),f<c.size(b.suggestion.widgetItems)-1?a.createElement("hr",{"class":"s-top-line-separator"}):p)])]}))])}function f(a){return!a.map&&Java.from?Java.from(a):a}var k=b(73).default;d.exports={};d.exports.default=h;d.exports.MultiAsins=h},function(d,a){function b(a,b,d){a.assertNotNull(b,["suggestion"]);var f,g,c;return a.root("autocomplete","ButtonCarousel",[(f=b.suggestion.strategyId,[a.createElement("div",{"class":"s-entity-button-carousel-container",
"data-csa-c-type":"widget","data-csa-c-content-id":f+"-disclosure-pane","data-csa-c-slot-id":f+"-disclosure-pane"},a.createElement("ol",{"class":"entity-carousel-container"},h(b.suggestion.widgetItems).map(function(b,m){return[(g=b.metadata,[(c=g.buttonList,[[h(c).map(function(b){return[a.createElement("li",{"class":"entity-carousel-card entity-textnav-pill"},a.createElement("div",{"class":"entity-carousel-sug-item"},a.createElement("a",{href:""+b.constructedLinkUrl},a.createElement("div",{"class":"entity-textnav-pill"},
a.createElement("div",{"class":"s-suggestion entity-suggestion",role:"button","aria-label":""+b.name},""+b.name)))))]})]])])]})))])])}function h(a){return!a.map&&Java.from?Java.from(a):a}d.exports={};d.exports.default=b;d.exports.ButtonCarousel=b},function(d,a){function b(a,b,g){a.assertNotNull(b,["suggestion","elementClassName"]);var c,e,m,d;return a.root("autocomplete","ResizableTileRows",[(c=b.suggestion.metadata.disclosureTitle,[(e=b.suggestion.metadata.csaTag,[""!==c?a.createElement("div",{"class":"s-entity-pd-disclosure-header"},
c):p,a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-suggestion"]),"data-csa-c-type":"widget","data-csa-c-content-id":e+"-disclosure-pane","data-csa-c-slot-id":e+"-disclosure-pane"},(m=b.suggestion.widgetItems,[h(m).map(function(c,e){return[(d=c.metadata,[a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-container"])},a.createElement("a",{"class":k(["s-entity-pd-"+b.elementClassName+"-link"]),href:""+d.formattedCardLink},a.createElement("div",{"class":k(["s-entity-pd-"+
b.elementClassName+"-image-container"])},a.createElement("img",{"class":k(["s-entity-pd-"+b.elementClassName+"-image"]),src:""+d.tileCardImageUrl})),a.createElement("div",{"class":k(["s-entity-pd-"+b.elementClassName+"-title-container"])},""+d.tileCardTitle)))])]})]))])])])}function h(a){return!a.map&&Java.from?Java.from(a):a}function f(a){return null!==a&&a!==p&&""!==a}function k(a){a=a.join(" ").split(" ").filter(f).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.ResizableTileRows=
b},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["twl"]);d=f.Highlighted;return a.root("autocomplete","TextWithLink",[a.createElement("div",{"class":"s-suggestion s-suggestion-link-template"},a.createElement("a",{href:b.twl.linkUrl},d(a,{highlightFragments:b.twl.highlightFragments},[])))])}var f=b(13);d.exports={};d.exports.default=h;d.exports.TextWithLink=h},function(d,a,b){function h(a,b,e){a.assertNotNull(b,["suggestion","enabledFeatures","isCustomLinkEnabled"]);var c=l.Highlighted,g=n.DisplayKeywordWithByline;
return a.root("autocomplete","KeywordWithByline",[a.createElement("div",{"class":"s-suggestion-container"},b.isCustomLinkEnabled&&""!==b.suggestion.link&&""!==b.suggestion.customByline?a.createElement("div",{"class":"s-suggestion s-suggestion-ellipsis-container",role:"button","aria-label":b.suggestion.value},a.createElement("div",{"class":"s-suggestion-ellipsis-content"},c(a,{highlightFragments:b.suggestion.highlightFragments},[]))," ",a.createElement("span",{"class":"s-store s-highlight-secondary s-suggestion-ellipsis-byline-text"},
b.suggestion.customByline)):a.createElement("div",{"class":k(["s-suggestion"+(null!==b.suggestionClasses&&"undefined"!==typeof b.suggestionClasses?" "+b.suggestionClasses:"")]),role:"button","aria-label":b.suggestion.value},g(a,{highlightFragments:b.suggestion.highlightFragments,byline:b.suggestion.metadata.byline},[])),b.enabledFeatures.useSuggestionsIcons?null!==b.suggestionClasses&&"undefined"!==typeof b.suggestionClasses?["s-recentSearchDistinct"===b.suggestionClasses?a.createElement("div",{"class":"icon-suggestion-div past-icon-div",
"suggestion-icon-div":!0},a.createElement("i",{"class":"icon-past-search-suggestion s-suggestion-icon-left","past-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})):p,"s-recentSearchDistinct"!==b.suggestionClasses?a.createElement("div",{"class":"icon-suggestion-div search-icon-div","suggestion-icon-div":!0},a.createElement("i",{"class":"icon-search-suggestion s-suggestion-icon-left","suggestion-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})):
p]:a.createElement("div",{"class":"icon-suggestion-div search-icon-div","suggestion-icon-div":!0},a.createElement("i",{"class":"icon-search-suggestion s-suggestion-icon-left","suggestion-icon":!0}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})):p,b.enabledFeatures.autofill?null!==b.suggestionClasses&&"undefined"!==typeof b.suggestionClasses?"s-recentSearchDistinct"!==b.suggestionClasses?a.createElement("div",{"class":"s-suggestion-autofillDistinct",
autofill:!0,role:"button","aria-label":"append suggestion "+b.suggestion.value},a.createElement("i",{"class":"icon-autofill",autofill:!0})):p:a.createElement("div",{"class":"s-suggestion-autofillDistinct",autofill:!0,role:"button","aria-label":"append suggestion "+b.suggestion.value},a.createElement("i",{"class":"icon-autofill",autofill:!0})):p,e)])}function f(a){return null!==a&&a!==p&&""!==a}function k(a){a=a.join(" ").split(" ").filter(f).join(" ");return 0<a.length?a:p}var l=b(13),n=b(74);d.exports=
{};d.exports.default=h;d.exports.KeywordWithByline=h},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","enabledFeatures"]);d=f.DisplayString;return a.root("autocomplete","TrendingSearchSuggestion",[a.createElement("div",{"class":"s-suggestion-trending-container"},a.createElement("div",{"class":"s-suggestion-trending-icon-container"},a.createElement("i",{"class":"s-suggestion-trending-icon s-suggestion-icon-left"}),a.createElement("div",{"class":"s-sugg-icon-background s-suggestion-icon-background-grey-shield"})),
a.createElement("div",{"class":"s-suggestion-trending s-suggestion-ellipsis-direction",role:"button","aria-label":b.suggestion.value},d(a,{highlightFragments:b.suggestion.highlightFragments,crossCategoryString:b.suggestion.crossCategoryString},[])),b.enabledFeatures.autofill?a.createElement("div",{"class":"s-suggestion-autofillDistinct",autofill:!0,role:"button","aria-label":"append suggestion "+b.suggestion.value},a.createElement("i",{"class":"icon-autofill",autofill:!0})):p)])}var f=b(25);d.exports=
{};d.exports.default=h;d.exports.TrendingSearchSuggestion=h},function(d,a,b){function h(a,b,g){var c=k(a.context||{});a.assertNotNull(b,["suggestion","imageUrl"]);var e,m,d,n;return a.root("autocomplete","ProductPreview",[(e=b.suggestion.strategyId,[a.createElement("div",{"class":"s-entity-product-preview-disclosure-pane-container","data-csa-c-type":"widget","data-csa-c-content-id":e+"-disclosure-pane","data-csa-c-slot-id":e+"-disclosure-pane"},a.createElement("a",{"class":"s-entity-suggestion-link",
"aria-label":b.suggestion.metadata.title,href:""+b.suggestion.metadata.formattedSuggLink},f(b.suggestion.widgetItems).map(function(e,g){return[(m=e.metadata,[a.createElement("div",{"class":"s-entity-product-preview-widget-item-container"},a.createElement("div",{"class":"s-entity-product-preview-widget-item-container s-suggestion",role:"button"},a.createElement("div",{"class":"s-entity-product-preview-left-column-container"},a.createElement("div",{"class":"s-entity-product-preview-image-container"},
a.createElement("img",{"class":"s-entity-product-preview-image",src:b.imageUrl}))),a.createElement("div",{"class":"s-entity-product-preview-right-column-container"},a.createElement("div",{"class":"s-entity-product-preview-title"},b.suggestion.metadata.title),a.createElement("div",{"class":"s-entity-product-preview-link-list-title"},""+m.contributorTitle,": ",(d=m.contributorList,[[f(d).map(function(b,e){return[2>e?[a.createElement("a",{href:""+b.constructedLinkUrl,id:"s-entity-product-preview-contributor-"+
e},""+b.name),e<=c.size(d)-2?", ":p]:p,2===e?"et al.":p]})]])),a.createElement("div",{"class":"s-entity-product-preview-link-list-title"},""+m.optionTitle,": ",(n=m.optionList,[[f(n).map(function(b,e){return[a.createElement("a",{href:""+b.constructedLinkUrl,id:"s-entity-product-preview-option-"+e},""+b.name),e<=c.size(n)-2?", ":p]})]])))),g<c.size(b.suggestion.widgetItems)-1?a.createElement("hr",{"class":"s-top-line-separator"}):p)])]})))])])}function f(a){return!a.map&&Java.from?Java.from(a):a}var k=
b(73).default;d.exports={};d.exports.default=h;d.exports.ProductPreview=h},function(d,a){function b(a,b,d){a.assertNotNull(b,["suggestion","title"]);var g;return a.root("autocomplete","EntityTitleOnly",[(g=b.suggestion.metadata.csaTag,[a.createElement("div",{"class":"s-entity-default-pane-container","data-csa-c-type":"widget","data-csa-c-content-id":g+"-default-pane","data-csa-c-slot-id":g+"-default-pane"},a.createElement("div",{"class":f(["s-entity-default-pane-container-row","s-suggestion"+(null!==
b.suggestionClasses&&"undefined"!==typeof b.suggestionClasses?" "+b.suggestionClasses:"")])},a.createElement("div",{"class":"s-entity-title-container"},a.createElement("div",{"class":"s-entity-title-only-pane-text"},b.title))))])])}function h(a){return null!==a&&a!==p&&""!==a}function f(a){a=a.join(" ").split(" ").filter(h).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.EntityTitleOnly=b},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","imageUrl","imageShape",
"addDropdownButton","addEgressChevron"]);var g;d=f.EntityBasicContainer;return a.root("autocomplete","EntityBasic",[(g=b.suggestion.metadata.csaTag,[a.createElement("div",{"class":"s-entity-default-pane-container","data-csa-c-type":"widget","data-csa-c-content-id":g+"-default-pane","data-csa-c-slot-id":g+"-default-pane"},d(a,{title:b.suggestion.metadata.title,subtitle:b.suggestion.metadata.subtitle,imageUrl:b.imageUrl,imageShape:b.imageShape,addDropdownButton:b.addDropdownButton,addEgressChevron:b.addEgressChevron,
suggestionClasses:b.suggestionClasses},[]))])])}var f=b(41);d.exports={};d.exports.default=h;d.exports.EntityBasic=h},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","imageUrl","imageShape","addDropdownButton","addEgressChevron"]);var g;d=f.EntityBasicContainer;return a.root("autocomplete","EntityBasicDropdown",[(g=b.suggestion.metadata.csaTag,[a.createElement("div",{"class":"s-entity-default-pane-container-hidable","data-csa-c-type":"widget","data-csa-c-content-id":g+"-default-pane",
"data-csa-c-slot-id":g+"-default-pane"},d(a,{title:b.suggestion.metadata.title,subtitle:b.suggestion.metadata.subtitle,imageUrl:b.imageUrl,imageShape:b.imageShape,addDropdownButton:b.addDropdownButton,addEgressChevron:b.addEgressChevron,suggestionClasses:b.suggestionClasses},[]))])])}var f=b(41);d.exports={};d.exports.default=h;d.exports.EntityBasicDropdown=h},function(d,a){function b(a,b,g){a.assertNotNull(b,["suggestion"]);return a.root("autocomplete","MultiKeywordSuggestions",[""!==b.suggestion.label?
a.createElement("div",{"class":"s-onfocus-label"},b.suggestion.label):p,h(b.suggestion.suggestions).map(function(b,e){return[a.createElement("div",{"class":k(["s-suggestion-container","s-onfocus","s-onfocus-"+e])},a.createElement("div",{"class":"s-suggestion s-suggestion-ellipsis-direction",role:"button","aria-label":b.value},b.value))]})])}function h(a){return!a.map&&Java.from?Java.from(a):a}function f(a){return null!==a&&a!==p&&""!==a}function k(a){a=a.join(" ").split(" ").filter(f).join(" ");return 0<
a.length?a:p}d.exports={};d.exports.default=b;d.exports.MultiKeywordSuggestions=b},function(d,a){function b(a,b,d){a.assertNotNull(b,"title subtitle imageUrl imageShape addDropdownButton csaTag defaultShow".split(" "));return a.root("autocomplete","EntityEgressDropDown",[a.createElement("div",{"class":"s-entity-default-pane-container-hidable","data-csa-c-type":"widget","data-csa-c-content-id":b.csaTag+"-default-pane","data-csa-c-slot-id":b.csaTag+"-default-pane"},a.createElement("div",{"class":"s-entity-default-pane-container-row s-suggestion",
role:"button","aria-label":b.title},a.createElement("div",{"class":f(["s-entity-default-pane-thumbnail-container-"+b.imageShape])},a.createElement("img",{"class":f(["s-entity-suggestion-image-default-pane-"+b.imageShape]),src:b.imageUrl})),a.createElement("div",{"class":"s-entity-title-expanded-container"},a.createElement("div",{"class":"s-entity-default-pane-text"},b.title),a.createElement("span",{"class":"s-entity-default-pane-subtext"},b.subtitle)),b.addDropdownButton?null!==b.buttonText&&"undefined"!==
typeof b.buttonText?a.createElement("div",{"class":"s-entity-dropdown-button-with-text-container",id:"s-entity-dropdown-button-container-id"},a.createElement("div",{"class":"s-entity-dropdown-button-text"},b.buttonText),b.defaultShow?a.createElement("div",{"class":"s-entity-chevron-icon s-entity-chevron-icon-upward",id:"s-entity-chevron-icon-id"}):a.createElement("div",{"class":"s-entity-chevron-icon s-entity-chevron-icon-downward",id:"s-entity-chevron-icon-id"})):a.createElement("div",{"class":"s-entity-dropdown-button-container",
id:"s-entity-dropdown-button-container-id"},b.defaultShow?a.createElement("div",{"class":"s-entity-chevron-button s-entity-chevron-button-upward",id:"s-entity-chevron-icon-id"}):a.createElement("div",{"class":"s-entity-chevron-button s-entity-chevron-button-downward",id:"s-entity-chevron-icon-id"})):p))])}function h(a){return null!==a&&a!==p&&""!==a}function f(a){a=a.join(" ").split(" ").filter(h).join(" ");return 0<a.length?a:p}d.exports={};d.exports.default=b;d.exports.EntityEgressDropDown=b},function(d,
a){function b(a,b,d){a.assertNotNull(b,["value","display"]);return a.root("autocomplete","Options",[a.createElement("option",{value:"search-alias\x3d"+b.value},b.display)])}d.exports={};d.exports.default=b;d.exports.Options=b},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","prefix","showCarouselControl"]);d=n.LowercaseHeader;var e=g.UppercaseHeader,m=c.CarouselControl;return a.root("autocomplete","CardsWidget",[a.createElement("div",{"class":l([b.prefix+"_widget-suggestion"])},
b.suggestion.metadata.separator?a.createElement("hr",{"class":"cards_discover_widget-hr"}):p,""!==b.suggestion.metadata.headerPrefix||""!==b.suggestion.metadata.headerSuffix?d(a,{headerPrefix:b.suggestion.metadata.headerPrefix,header:b.suggestion.metadata.header,headerSuffix:b.suggestion.metadata.headerSuffix,cssPrefix:b.suggestion.metadata.useTopLineSeparator?"bottom-cards-carousel":"cards-carousel"},[]):""!==b.suggestion.metadata.title||""!==b.suggestion.metadata.header?"PIN_TO_BOTTOM"===b.suggestion.slot||
"BOTTOM_SLOT"===b.suggestion.slot?e(a,{header:""!==b.suggestion.metadata.title?b.suggestion.metadata.title:b.suggestion.metadata.header,cssPrefix:"cards_carousel_widget_bottom"},[]):e(a,{header:""!==b.suggestion.metadata.title?b.suggestion.metadata.title:b.suggestion.metadata.header,cssPrefix:"cards_carousel_widget"},[]):p,a.createElement("div",{"class":l([b.prefix+"_widget-sug-container-top"])},f(b.suggestion.widgetItems).map(function(c,e){return[a.createElement("div",{"class":l([b.prefix+"_widget-sug-column"])},
a.createElement("div",{"class":l([b.prefix+"_widget-sug-card"]),role:"button","aria-label":""+c.metadata.text,id:b.prefix+"_widget-sug-card-"+e,"aria-describedby":"sac-widget-suggestion-header"},a.createElement("a",{"class":l([b.prefix+"_widget-sug-link"]),href:""+c.metadata.linkUrl},a.createElement("div",{"class":l([b.prefix+"_widget-sug-image-container"])},a.createElement("img",{"class":l([b.prefix+"_widget-sug-image"]),src:""+c.metadata.imageUrl}),a.createElement("div",{"class":l([b.prefix+"_widget-sug-image-background",
b.prefix+"_widget-sug-image-grey-shield"])})),c.metadata.text&&!c.metadata.secondaryText?a.createElement("div",{"class":l([b.prefix+"_widget-sug-text"])},""+c.metadata.text):p,c.metadata.text&&c.metadata.secondaryText?a.createElement("div",{"class":"cards_carousel_text_left_widget-sug-text"},""+c.metadata.text):p,c.metadata.secondaryText?a.createElement("div",{"class":"cards_carousel_nview_widget-sug-text"},""+c.metadata.secondaryText):p)))]})),b.showCarouselControl?m(a,{},[]):p)])}function f(a){return!a.map&&
Java.from?Java.from(a):a}function k(a){return null!==a&&a!==p&&""!==a}function l(a){a=a.join(" ").split(" ").filter(k).join(" ");return 0<a.length?a:p}var n=b(27),g=b(7),c=b(26);d.exports={};d.exports.default=h;d.exports.CardsWidget=h},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","showCarouselControl","prefix"]);d=n.UppercaseHeader;var e=g.LowercaseHeader,m=c.CarouselControl;return a.root("autocomplete","TextRefinement",[a.createElement("div",{"class":l([b.prefix,"PIN_TO_BOTTOM"===
b.suggestion.slot?"pin-to-bottom":""])},""!==b.suggestion.metadata.title?d(a,{header:b.suggestion.metadata.title,cssPrefix:"text_refinement_widget"},[]):p,""!==b.suggestion.metadata.headerPrefix||""!==b.suggestion.metadata.headerSuffix?e(a,{headerPrefix:b.suggestion.metadata.headerPrefix,header:b.suggestion.metadata.header,headerSuffix:b.suggestion.metadata.headerSuffix,cssPrefix:"BOTTOM_SLOT"===b.suggestion.slot||"PIN_TO_BOTTOM"===b.suggestion.slot?"bottom_slot_"+b.prefix:b.prefix},[]):p,a.createElement("ol",
{"class":l([b.prefix+"-carousel-container"])},f(b.suggestion.widgetItems).map(function(c,e){return[a.createElement("li",{"class":l([b.prefix+"-carousel-card","discover-textnav-pill"])},a.createElement("div",{"class":l([b.prefix+"-carousel-sug-item"]),id:b.prefix+"-carousel-sug-item-"+e},a.createElement("a",{href:""+c.metadata.linkUrl},a.createElement("div",{"class":"discover-textnav-pill"},a.createElement("div",{"class":l(["s-suggestion",b.prefix+"-suggestion"]),role:"button","aria-label":""+c.metadata.text,
"aria-describedby":"sac-widget-suggestion-header"},""+c.metadata.text)))))]})),b.showCarouselControl?m(a,{},[]):p)])}function f(a){return!a.map&&Java.from?Java.from(a):a}function k(a){return null!==a&&a!==p&&""!==a}function l(a){a=a.join(" ").split(" ").filter(k).join(" ");return 0<a.length?a:p}var n=b(7),g=b(27),c=b(26);d.exports={};d.exports.default=h;d.exports.TextRefinement=h},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","showCarouselControl","useSmallPill"]);d=n.LowercaseHeader;
var e=g.UppercaseHeader,m=c.CarouselControl;return a.root("autocomplete","ImageRefinement",[a.createElement("div",{"class":"image_refinement_widget-suggestion"},b.suggestion.metadata.headerPrefix||b.suggestion.metadata.headerSuffix?d(a,{headerPrefix:b.suggestion.metadata.headerPrefix,header:b.suggestion.metadata.header,headerSuffix:b.suggestion.metadata.headerSuffix,cssPrefix:"image-refinement"},[]):e(a,{header:b.suggestion.metadata.title,cssPrefix:"image_refinement_widget"},[]),a.createElement("div",
{"class":"image_refinement_widget-sug-container"},f(b.suggestion.widgetItems).map(function(c){return[c.metadata.imageUrl?a.createElement("div",{"class":"image_refinement_widget-sug-column"},a.createElement("div",{"class":"s-suggestion image_refinement_widget-sug-item",role:"button","aria-label":""+c.metadata.text,"aria-describedby":"sac-widget-suggestion-header"},a.createElement("a",{"class":l(["image_refinement_widget-sug-link",b.useSmallPill?"small-pill-link":""]),href:""+c.metadata.linkUrl},a.createElement("div",
{"class":l(["image_refinement_widget-sug-image-container",b.useSmallPill?"small-pill-container":""]),style:"padding: "+c.metadata.imagePadding},a.createElement("img",{"class":l(["image_refinement_widget-sug-image",b.useSmallPill?"small-pill-image":""]),src:""+c.metadata.imageUrl})),a.createElement("div",{"class":"image_refinement_widget-sug-text"},""+c.metadata.text)))):p]})),b.showCarouselControl?m(a,{},[]):p)])}function f(a){return!a.map&&Java.from?Java.from(a):a}function k(a){return null!==a&&
a!==p&&""!==a}function l(a){a=a.join(" ").split(" ").filter(k).join(" ");return 0<a.length?a:p}var n=b(27),g=b(7),c=b(26);d.exports={};d.exports.default=h;d.exports.ImageRefinement=h},function(d,a,b){function h(a,b,g){a.assertNotNull(b,["suggestion","enabledFeatures","header","headerCssPrefix"]);g=f.UppercaseHeader;var c=k.SuggestionWithoutTitle;return a.root("autocomplete","SuggestionWithTitle",[g(a,{header:b.header,cssPrefix:b.headerCssPrefix,customCss:"non-clickable-suggestion-header"},[]),c(a,
{suggestion:b.suggestion,enabledFeatures:b.enabledFeatures},[])])}var f=b(7),k=b(75);d.exports={};d.exports.default=h;d.exports.SuggestionWithTitle=h},function(d,a,b){function h(a,b,g){a.assertNotNull(b,["suggestion"]);g=k.UppercaseHeader;return a.root("autocomplete","ImageAndTextSuggestion",[a.createElement("div",{"class":"image_text_suggestion_widget-suggestion"},""!==b.suggestion.metadata.header?g(a,{header:b.suggestion.metadata.header,cssPrefix:"image_text_suggestion"},[]):p,a.createElement("div",
{"class":"image_text_suggestion_widget-sug-container"},f(b.suggestion.widgetItems).map(function(b){return[b.metadata.imageUrl?a.createElement("div",{"class":"image_text_suggestion_widget-sug-column"},a.createElement("div",{"class":"s-suggestion image_text_suggestion_widget-sug-item",role:"button","aria-label":""+b.metadata.text,"aria-describedby":"sac-widget-suggestion-header"},a.createElement("a",{"class":"image_text_suggestion_widget-sug-link",href:""+b.metadata.linkUrl},a.createElement("div",{"class":"image_text_suggestion_widget-sug-image-container"},
a.createElement("img",{"class":"image_text_suggestion_widget-sug-image",src:""+b.metadata.imageUrl})),a.createElement("div",{"class":"image_text_suggestion_widget-sug-text"},""+b.metadata.text)))):p]})))])}function f(a){return!a.map&&Java.from?Java.from(a):a}var k=b(7);d.exports={};d.exports.default=h;d.exports.ImageAndTextSuggestion=h},function(d,a,b){function h(a,b,g){a.assertNotNull(b,["suggestion"]);g=k.UppercaseHeader;return a.root("autocomplete","ImageSuggestion",[a.createElement("div",{"class":"image_suggestion_widget-suggestion"},
""!==b.suggestion.metadata.header?g(a,{header:b.suggestion.metadata.header,cssPrefix:"image_suggestion"},[]):p,a.createElement("div",{"class":"image_suggestion_widget-sug-container-top"},f(b.suggestion.widgetItems).map(function(b){return[b.metadata.imageUrl?a.createElement("div",{"class":"image_suggestion_widget-sug-column"},a.createElement("div",{"class":"image_suggestion_widget-sug-card",role:"button"},a.createElement("a",{"class":"image_suggestion_widget-sug-link",href:""+b.metadata.linkUrl},a.createElement("div",
{"class":"image_suggestion_widget-sug-image-container"},a.createElement("img",{"class":"image_suggestion_widget-sug-image",src:""+b.metadata.imageUrl}))))):p]})))])}function f(a){return!a.map&&Java.from?Java.from(a):a}var k=b(7);d.exports={};d.exports.default=h;d.exports.ImageSuggestion=h},function(d,a,b){function h(a,b,g){a.assertNotNull(b,["asin"]);g=f.WidgetHeader;var c=k.AsinHeader;return a.root("autocomplete","WidgetAsin",[b.asin.topLineSeparator?a.createElement("hr",{"class":"s-top-line-separator"}):
p,g(a,{widgetHeader:b.asin.widgetHeader},[]),a.createElement("div",{"class":"s-asin-suggestion s-suggestion"},a.createElement("a",{"class":"s-asin-sug-link",href:b.asin.link},a.createElement("div",{"class":"s-asin-sug-left"},a.createElement("div",{"class":"s-asin-image-container",style:"opacity: 1;"},a.createElement("img",{"class":"s-asin-image",src:b.asin.image}))),a.createElement("div",{"class":"s-asin-sug-right"},c(a,{brandingPrefix:b.asin.brandingPrefix,header:b.asin.header},[]),a.createElement("div",
{"class":"s-asin-title"},b.asin.title))))])}var f=b(76),k=b(77);d.exports={};d.exports.default=h;d.exports.WidgetAsin=h},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","enabledFeatures"]);d=f.KeywordSuggestion;return a.root("autocomplete","RecentSearchSuggestion",[d(a,{suggestion:b.suggestion,enabledFeatures:b.enabledFeatures,suggestionClasses:"s-recentSearchDistinct"},[a.createElement("div",{"class":"s-suggestion-deleteDistinct",deleteurl:!0,role:"button","aria-label":"delete"},
a.createElement("i",{"class":"a-icon a-icon-close s-suggestion-close-icon-display s-suggestion-icon-left",deleteurl:!0}),a.createElement("i",{"class":"icon-close s-suggestion-icon-left",deleteurl:!0}))])])}var f=b(42);d.exports={};d.exports.default=h;d.exports.RecentSearchSuggestion=h},function(d,a,b){function h(a,b,d){a.assertNotNull(b,["suggestion","enabledFeatures"]);d=f.KeywordSuggestion;return a.root("autocomplete","KeywordImageSuggestion",[d(a,{suggestion:b.suggestion,enabledFeatures:b.enabledFeatures,
suggestionClasses:b.suggestionClasses},[])])}var f=b(42);d.exports={};d.exports.default=h;d.exports.KeywordImageSuggestion=h},function(d,a){function b(a,b,d){return a.root("autocomplete","Separator",[a.createElement("div",{"class":"s-separator"})])}d.exports={};d.exports.default=b;d.exports.Separator=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(a[m]=b[m])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).KeywordSuggestion;d=function(a){function b(b,
e,g){var c=a.call(this,{enabledA11yColorContrast:!0})||this;c.isDelimited=function(){var a=c.context.enabledFeatures;if(a.useSuggestionDelimiter!==p)return a.useSuggestionDelimiter;a=c.api.getContext().getContextField("site-variant");return k.isMShop(a)};c.select=function(b,e,g){a.prototype.select.call(c,b,e,g);k.textSuggestionSelectionHandler(g,c.api)};c.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?
c.api.autofillSuggestion(b.value):c.click(b)}))};c.generateHtml=function(a){return l.default(c.kataRuntime,{suggestion:a,enabledFeatures:f(f(f({},c.context.enabledFeatures),!!a.imageUrl&&"left"===a.imagePosition&&{leftSideImage:!0}),!!a.imageUrl&&"right"===a.imagePosition&&{rightSideImage:!0})})};c.api=e;c.context=g;c.kataRuntime=b;return c}h(b,a);b.prototype.accept=function(a,b){var c,e,g,d,n,h;return f(f({},a),{crid:b.responseId,highlightFragments:a.highlightFragments||k.highlightText(a.value,b.prefix),
crossCategoryString:k.buildCrossCategoryString(this.context.crossCategoryString,a.scopes,this.context),imageUrl:null===(e=null===(c=a.complementaryInfo)||void 0===c?void 0:c.THUMBNAIL_IMAGE)||void 0===e?void 0:e.value,imagePosition:"hit-vc-nw"===(null===(d=null===(g=a.complementaryInfo)||void 0===g?void 0:g.THUMBNAIL_IMAGE)||void 0===d?void 0:d.strategyId)||(null===(h=null===(n=a.complementaryInfo)||void 0===n?void 0:n.THUMBNAIL_IMAGE)||void 0===h?0:h.strategyId.endsWith("left"))?"left":"right"})};
b.prototype.type=function(){return["KEYWORD"]};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,b);q.location.assign(k.buildSearchLinkUrl(b,this.api.getContext()));return!0};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(a[m]=b[m])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).KeywordImageSuggestion;d=function(a){function b(b,
e,g){var c=a.call(this,{enabledA11yColorContrast:!0})||this;c.isDelimited=function(){var a=c.context.enabledFeatures;if(a.useSuggestionDelimiter!==p)return a.useSuggestionDelimiter;a=c.api.getContext().getContextField("site-variant");return k.isMShop(a)};c.select=function(b,e,g){a.prototype.select.call(c,b,e,g);k.textSuggestionSelectionHandler(g,c.api)};c.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?
c.api.autofillSuggestion(b.value):c.click(b)}))};c.generateHtml=function(a){return l.default(c.kataRuntime,{suggestion:a,enabledFeatures:f(f(f({},c.context.enabledFeatures),"kw-img-l"===a.template&&{leftSideImage:!0}),{rightSideImage:"kw-img-r"===a.template})})};c.api=e;c.context=g;c.kataRuntime=b;return c}h(b,a);b.prototype.accept=function(a,b){return f(f({},a),{crid:b.responseId,highlightFragments:a.highlightFragments||k.highlightText(a.value,b.prefix),crossCategoryString:k.buildCrossCategoryString(this.context.crossCategoryString,
a.scopes,this.context),imageUrl:a.metadata.imageUrl})};b.prototype.type=function(){return["kw-img-l","kw-img-r"]};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,b);q.location.assign(k.buildSearchLinkUrl(b,this.api.getContext()));return!0};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var m in b)Object.prototype.hasOwnProperty.call(b,m)&&(a[m]=b[m])}return a};return f.apply(this,arguments)};
Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).RecentSearchSuggestion;d=function(a){function b(b,e,g){var c=a.call(this,{enabledA11yColorContrast:!0})||this;c.generateHtml=function(a){return l.default(c.kataRuntime,{suggestion:a,enabledFeatures:c.context.enabledFeatures})};c.select=function(b,e,g){a.prototype.select.call(c,b,e,g);k.textSuggestionSelectionHandler(g,c.api)};c.isDelimited=function(){var a=c.context.enabledFeatures;if(a.useSuggestionDelimiter!==p)return a.useSuggestionDelimiter;
a=c.api.getContext().getContextField("site-variant");return k.isMShop(a)};c.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("deleteurl")?c.api.deleteSuggestion(b.deleteUrl):a.target instanceof Element&&a.target.hasAttribute("autofill")?c.api.autofillSuggestion(b.value):c.click(b)}))};c.api=e;c.kataRuntime=b;c.context=g;return c}h(b,a);b.prototype.accept=function(a,b){return f(f({},a),{crid:b.responseId,highlightFragments:k.highlightText(a.value,
b.prefix),crossCategoryString:k.buildCrossCategoryString(this.context.crossCategoryString,a.scopes,this.context)})};b.prototype.type=function(){return["PAST_SEARCHES"]};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,b);q.location.assign(k.buildSearchLinkUrl(b,this.api.getContext()));return!0};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,
c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(6),l=d(b(43)),n=b(23),g=b(1).CardsWidget,
c={cards:"cards_discover","discover-top-grey":"cards_discover","discover-bot-grey":"cards_discover","card-carousel":"cards_carousel","lifestyle-card":"lifestyles_card","mini-lifestyle-card":"mini_lifestyles_card",cardCarousel:"cards_carousel","ufs-tiles-card":"ufs_tiles_card"},e=function(a){return{cardsRowContainer:"."+a+"_widget-sug-container-top",cardContainer:"."+a+"_widget-sug-column",selectionClass:"."+a+"_widget-sug-card",prefix:a}};b=function(a){function b(b,g){var d=a.call(this)||this;d.isDelimited=
function(){return!0};d.attachEventHandlers=function(a){d.carouselControl.attachEventHandlers(a)};d.select=function(a,b){var c,e;a="cards_carousel"===d.classes.prefix?f.cardsKeyboardScrollHandler(b.key,null===(c=d.carouselControl.elements)||void 0===c?void 0:c.scrollableArea,d.classes.cardContainer):f.keyboardScrollHandler(b.key,null===(e=d.carouselControl.elements)||void 0===e?void 0:e.scrollableArea,d.classes.selectionClass,d.classes.cardContainer);d.carouselControl.scrollToHighlightedSuggestion(a)};
d.click=function(){return d.isSelected()&&d.carouselControl.click(d.getHighlightSuggestionClass())};d.isSelected=function(){var a,b;return 0<(null===(b=null===(a=d.carouselControl.elements)||void 0===a?void 0:a.scrollableArea)||void 0===b?void 0:b.find("."+d.getHighlightSuggestionClass()).length)};d.deSelect=function(){var a,b;null===(b=null===(a=d.carouselControl.elements)||void 0===a?void 0:a.scrollableArea)||void 0===b?void 0:b.find(d.getHighlightSelectionClass()).each(function(a,b){if(null===
b||void 0===b?0:b.classList.contains(d.getHighlightSuggestionClass()))null===b||void 0===b?void 0:b.classList.remove(d.getHighlightSuggestionClass()),null===b||void 0===b?void 0:b.classList.add(f.highlightSuggestionInactive)})};d.onRendered=function(){d.carouselControl.onRendered()};d.showCarouselControl=function(){return"desktop"===n.getSiteVariant()&&("cards_carousel"===d.classes.prefix||"lifestyles_card"===d.classes.prefix)};d.getHighlightSuggestionClass=function(){return"cards_carousel"===d.classes.prefix?
f.highlightSuggestionCardByKeyboardFocus:f.highlightSuggestion};d.getHighlightSelectionClass=function(){return"cards_carousel"===d.classes.prefix?d.classes.cardContainer:d.classes.selectionClass};d.api=g;d.$=g.getJQuery();d.kataRuntime=b;d.classes=e(c.cards);d.carouselControl=new l.default(g,d.$,d.classes.cardsRowContainer);return d}h(b,a);b.prototype.accept=function(a){var b=this.classes.cardsRowContainer;this.classes=e(c[a.template]);b!==this.classes.cardsRowContainer&&(this.carouselControl=new l.default(this.api,
this.$,this.classes.cardsRowContainer));a.metadata=k.setDefaultMetadata(a.metadata);return f.normalizeInputObject(a)};b.prototype.generateHtml=function(a){return g.default(this.kataRuntime,{suggestion:a,prefix:this.classes.prefix,showCarouselControl:this.showCarouselControl()})};b.prototype.getSelectedId=function(a){if(!a)return"";if(this.getHighlightSuggestionClass()===f.highlightSuggestion){var b=a.querySelector("."+f.highlightSuggestion);if(b)return b.id}else if(this.getHighlightSuggestionClass()===
f.highlightSuggestionCardByKeyboardFocus&&(b=a.querySelector("."+f.highlightSuggestionCardByKeyboardFocus))&&b.children&&0<b.children.length)return b.children[0].id;return a.id?a.id:""};b.prototype.type=function(){return"cards discover-top-grey discover-bot-grey card-carousel lifestyle-card mini-lifestyle-card cardCarousel ufs-tiles-card".split(" ")};return b}(f.InstrumentedSuggestion);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(6),l=d(b(43)),n=b(79),g=b(1).ImageRefinement;b=function(a){function b(b,
c){var e=a.call(this,{enabledA11yColorContrast:!0})||this;e.select=function(a,b){var c;a=f.keyboardScrollHandler(b.key,null===(c=e.carouselControl.elements)||void 0===c?void 0:c.scrollableArea,".image_refinement_widget-sug-item",".image_refinement_widget-sug-column");e.carouselControl.scrollToHighlightedSuggestion(a);b.preventDefault()};e.isDelimited=function(){return!0};e.deSelect=function(){var a,b;null===(b=null===(a=e.carouselControl.elements)||void 0===a?void 0:a.scrollableArea)||void 0===b?
void 0:b.find(".image_refinement_widget-sug-item").each(function(a,b){if(null===b||void 0===b?0:b.classList.contains(f.highlightSuggestion))null===b||void 0===b?void 0:b.classList.remove(f.highlightSuggestion),null===b||void 0===b?void 0:b.classList.add(f.highlightSuggestionInactive)})};e.isSelected=function(){var a,b;return 0<(null===(b=null===(a=e.carouselControl.elements)||void 0===a?void 0:a.scrollableArea)||void 0===b?void 0:b.find("."+f.highlightSuggestion).length)};e.attachEventHandlers=function(a){e.carouselControl.attachEventHandlers(a)};
e.click=function(){return e.isSelected()&&e.carouselControl.click()};e.onRendered=function(){e.carouselControl.onRendered()};e.showCarouselControl=function(){return"desktop"===f.getSiteVariant()};e.$=c.getJQuery();e.api=c;e.filterByString=c.getContext().filterByString;e.kataRuntime=b;e.carouselControl=new l.default(c,e.$,".image_refinement_widget-sug-container");return e}h(b,a);b.prototype.accept=function(a){var b,c;this.filterByString&&(null===(b=a.metadata)||void 0===b?0:b.refinement)&&(a=n.setTitle(a,
this.filterByString));a.metadata=k.setDefaultMetadata(a.metadata);for(b=0;b<a.widgetItems.length;b+=1){var e=a.widgetItems[b];e.metadata.image_url&&(e.metadata.imagePadding=null!==(c=e.metadata.image_padding)&&void 0!==c?c:"0")}return f.normalizeInputObject(a)};b.prototype.resize=function(a){this.carouselControl.onResized()};b.prototype.generateHtml=function(a){return g.default(this.kataRuntime,{suggestion:a,showCarouselControl:this.showCarouselControl(),useSmallPill:"true"==a.metadata.useSmallPill})};
b.prototype.type=function(){return["image-refinement"]};return b}(f.InstrumentedSuggestion);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();
d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};var f;Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(6),n=d(b(43)),g=b(79),c=b(1).TextRefinement,e;(function(a){a.DISCOVER="discover-top-refinement-desktop-top";a.TEXT_REFINEMENT="text-refinement"})(e||(e={}));var m=(f={},f[e.DISCOVER]="discover-tr",f[e.TEXT_REFINEMENT]="text-refinement",f),v=function(a){return{cardsRowContainer:"."+a+"-carousel-container",cardContainer:"."+a+"-carousel-card",selectionClass:"."+
a+"-carousel-sug-item",prefix:a}};b=function(a){function b(b,g){var d=a.call(this,{enabledA11yColorContrast:!0})||this;d.select=function(a,b){var c;a=k.keyboardScrollHandler(b.key,null===(c=d.carouselControl.elements)||void 0===c?void 0:c.scrollableArea,d.classes.selectionClass,d.classes.cardContainer);d.carouselControl.scrollToHighlightedSuggestion(a);b.preventDefault()};d.isDelimited=function(){return!0};d.deSelect=function(){var a,b;null===(b=null===(a=d.carouselControl.elements)||void 0===a?void 0:
a.scrollableArea)||void 0===b?void 0:b.find(d.classes.selectionClass).each(function(a,b){if(null===b||void 0===b?0:b.classList.contains(k.highlightSuggestion))null===b||void 0===b?void 0:b.classList.remove(k.highlightSuggestion),null===b||void 0===b?void 0:b.classList.add(k.highlightSuggestionInactive)})};d.isSelected=function(){var a,b;return 0<(null===(b=null===(a=d.carouselControl.elements)||void 0===a?void 0:a.scrollableArea)||void 0===b?void 0:b.find("."+k.highlightSuggestion).length)};d.attachEventHandlers=
function(a){d.carouselControl.attachEventHandlers(a)};d.click=function(){return d.isSelected()&&d.carouselControl.click()};d.onRendered=function(){d.carouselControl.onRendered()};d.generateHtml=function(a){return c.default(d.kataRuntime,{suggestion:a,showCarouselControl:d.showCarouselControl(),prefix:d.classes.prefix})};d.showCarouselControl=function(){return"desktop"===k.getSiteVariant()};d.$=g.getJQuery();d.api=g;d.filterByString=g.getContext().filterByString;d.kataRuntime=b;d.classes=v(m[e.DISCOVER]);
d.carouselControl=new n.default(g,d.$,d.classes.cardsRowContainer);return d}h(b,a);b.prototype.accept=function(a){var b,c=this.classes.cardsRowContainer;this.classes=v(m[a.template]);c!==this.classes.cardsRowContainer&&(this.carouselControl=new n.default(this.api,this.$,this.classes.cardsRowContainer));this.filterByString&&(null===(b=a.metadata)||void 0===b?0:b.refinement)&&(a=g.setTitle(a,this.filterByString));a.metadata=l.setDefaultMetadata(a.metadata);return k.normalizeInputObject(a)};b.prototype.getSelectedId=
function(a){if(!a)return"";var b=a.querySelector("."+k.highlightSuggestion);return b?b.id:a.id?a.id:""};b.prototype.resize=function(a){this.carouselControl.onResized()};b.prototype.type=function(){return[e.DISCOVER,e.TEXT_REFINEMENT]};return b}(k.InstrumentedSuggestion);a.default=b},function(d,a,b){function h(a,b){var c,e,g;return{highlightFragments:a.highlightFragments||k.highlightText(null===(e=null===(c=null===a||void 0===a?void 0:a.widgetItems[0])||void 0===c?void 0:c.metadata)||void 0===e?void 0:
e.text,b.prefix),linkUrl:null===(g=null===a||void 0===a?void 0:a.widgetItems[0])||void 0===g?void 0:g.metadata.link_url}}var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();
Object.defineProperty(a,"__esModule",{value:!0});a.translate=void 0;var k=b(0),l=b(1).TextWithLink;a.translate=h;d=function(a){function b(b,e){var c=a.call(this)||this;c.isDelimited=function(){return!0};c.click=function(){var a=document.querySelectorAll(".s-suggestion-link-template a");if(0===a.length)return k.logError("ClickedNonExistingWidget"),k.emitError("ClickedNonExistingWidget"),!1;a[0].click();return!0};c.attachEventHandlers=function(a){var b;if(null===(b=c.api.getContext().enabledFeatures)||
void 0===b?0:b.storeModeExitFix)if(b=c.api.getContext().getContextField("site-variant"),k.isIOS(b))return;a.addEventListener("click",k.guardError({},function(a){c.click()}))};c.api=e;c.kataRuntime=b;return c}f(b,a);b.prototype.accept=function(a,b){return h(a,b)};b.prototype.generateHtml=function(a){return l.default(this.kataRuntime,{twl:a})};b.prototype.type=function(){return["keywords-link","promoted-suggestion"]};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){function h(a){var b,
c,e=null===(b=null===a||void 0===a?void 0:a.widgetItems[0])||void 0===b?void 0:b.metadata;return{header:e.asin_header,image:e.image_url,link:e.link_url,title:e.asin_title,topLineSeparator:"storefront"===(null===a||void 0===a?void 0:a.template)||"BOTTOM_SLOT"===(null===a||void 0===a?void 0:a.slot),brandingPrefix:e.branding_prefix,widgetHeader:null===(c=null===a||void 0===a?void 0:a.metadata)||void 0===c?void 0:c.header}}var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();Object.defineProperty(a,"__esModule",{value:!0});a.translate=void 0;var k=b(0),l=b(1).WidgetAsin;a.translate=h;d=function(a){function b(b){var c=a.call(this,{enabledA11yColorContrast:!0})||this;c.isDelimited=
function(){return!0};c.kataRuntime=b;return c}f(b,a);b.prototype.accept=function(a){return h(a)};b.prototype.click=function(a){a=document.getElementsByClassName("s-asin-sug-link");if(0===a.length)return k.logError("ClickedNonExistingWidget"),k.emitError("ClickedNonExistingWidget"),!1;a[0].click();return!0};b.prototype.generateHtml=function(a){return l.default(this.kataRuntime,{asin:a})};b.prototype.type=function(){return["asin","storefront"]};return b}(k.InstrumentedSuggestion);a.default=d},function(d,
a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];
for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).Stores;d=function(a){function b(b,e){var c=a.call(this,f(f({},e.getContext().enabledFeatures),{enabledA11yColorContrast:!0}))||this;c.click=function(){var a=document.getElementsByClassName("s-store-sug-link");if(0===a.length)return k.logError("ClickedNonExistingWidget"),k.emitError("ClickedNonExistingWidget"),!1;a[0].click();
return!0};c.attachEventHandlers=function(a){var b;if(null===(b=c.api.getContext().enabledFeatures)||void 0===b?0:b.storeModeExitFix)if(b=c.api.getContext().getContextField("site-variant"),k.isIOS(b))return;a.addEventListener("click",k.guardError({},function(a){c.click()}))};c.api=e;c.kataRuntime=b;return c}h(b,a);b.prototype.accept=function(a){return k.normalizeInputObject(a)};b.prototype.generateHtml=function(a){return l.default(this.kataRuntime,{suggestion:a})};b.prototype.type=function(){return["stores"]};
return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),
k=b(1).ImageAndTextSuggestion;d=function(a){function b(b){var c=a.call(this)||this;c.onRendered=function(a){a.style.width="100%"};c.kataRuntime=b;return c}h(b,a);b.prototype.accept=function(a){return f.normalizeInputObject(a)};b.prototype.generateHtml=function(a){return k.default(this.kataRuntime,{suggestion:a})};b.prototype.type=function(){return["image-text-suggestion"]};return b}(f.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,d){a=
Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(1).MultiKeywordSuggestions;d=function(a){function b(b,c){var e=a.call(this)||this;e.isDelimited=function(){return!0};e.select=
function(b,c,d){a.prototype.select.call(e,b,c,d);f.textSuggestionSelectionHandler(d,e.api)};e.attachEventHandlers=function(a,b){a.addEventListener("click",f.guardError({},function(c){if(c.target instanceof Element){c=c.target.closest(".s-onfocus");for(var d=0<e.$(a).children(".s-onfocus-label").length,g=0;g<a.childNodes.length;g+=1)if(a.childNodes[g].isEqualNode(c))return f.logOneTimeEvent(f.SearchAcceptanceMetric),f.emitCounter(f.SearchAcceptanceMetric),f.emitEvents(),q.location.assign(f.buildSearchLinkUrl(b.suggestions[g-
(d?1:0)],e.api.getContext())),!0}return!1}))};e.generateHtml=function(a){return k.default(e.kataRuntime,{suggestion:a})};e.api=c;e.kataRuntime=b;e.$=c.getJQuery();return e}h(b,a);b.prototype.accept=function(a){var b,e,d={label:null!==(e=null===(b=a.metadata)||void 0===b?void 0:b.header)&&void 0!==e?e:"",suggestions:[]};b=0;for(a=a.widgetItems;b<a.length;b++)e=a[b],d.suggestions.push({value:e.metadata.value,type:e.metadata.type,refTag:e.metadata.reftag,strategyId:e.metadata.strategyid,crid:e.metadata.crid});
return d};b.prototype.type=function(){return["MultiKeywordSuggestions"]};return b}(f.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,
new e)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(1).TrendingSearchSuggestion;d=function(a){function b(b,e,d){var c=a.call(this,{enabledA11yColorContrast:!0})||this;c.isDelimited=function(){var a=c.context.enabledFeatures;if(a.useSuggestionDelimiter!==
p)return a.useSuggestionDelimiter;a=c.api.getContext().getContextField("site-variant");return k.isMShop(a)};c.select=function(b,e,d){a.prototype.select.call(c,b,e,d);k.textSuggestionSelectionHandler(d,c.api)};c.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?c.api.autofillSuggestion(b.value):c.click(b)}))};c.generateHtml=function(a){return l.default(c.kataRuntime,{suggestion:a,enabledFeatures:c.context.enabledFeatures})};
c.api=e;c.context=d;c.kataRuntime=b;return c}h(b,a);b.prototype.accept=function(a,b){return f(f({},a),{crid:b.responseId,highlightFragments:a.highlightFragments||k.highlightText(a.value,b.prefix),crossCategoryString:k.buildCrossCategoryString(this.context.crossCategoryString,a.scopes,this.context)})};b.prototype.type=function(){return["TRENDING_SEARCHES"]};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,
b);q.location.assign(k.buildSearchLinkUrl(b,this.api.getContext()));return!0};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,
new c)}}();Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(1).ImageSuggestion;d=function(a){function b(b){var c=a.call(this)||this;c.onRendered=function(a){a.style.width="100%"};c.kataRuntime=b;return c}h(b,a);b.prototype.accept=function(a){return f.normalizeInputObject(a)};b.prototype.generateHtml=function(a){return k.default(this.kataRuntime,{suggestion:a})};b.prototype.type=function(){return["image-suggestion"]};return b}(f.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=
this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(6),l=b(1).MultiAsins;d=function(a){function b(b,e){var c=a.call(this)||
this;c.attachEventHandlers=function(a){c.navigationArea=c.$(a).find(c.classes.widgetSuggestionContainer)};c.select=function(a,b){f.keyboardVerticalNavHandler(b.key,c.navigationArea,c.classes.asinSuggestion,c.classes.asinSuggestionContainer)};c.isSelected=function(){var a;return 0<(null===(a=c.navigationArea)||void 0===a?void 0:a.find("."+f.highlightSuggestion).length)};c.deSelect=function(){var a;null===(a=c.navigationArea)||void 0===a?void 0:a.find(c.classes.asinSuggestion).each(function(a,b){if(null===
b||void 0===b?0:b.classList.contains(f.highlightSuggestion))null===b||void 0===b?void 0:b.classList.remove(f.highlightSuggestion),null===b||void 0===b?void 0:b.classList.add(f.highlightSuggestionInactive);if(null===b||void 0===b?0:b.classList.contains(f.highlightMultiItemsWidgetSuggestion))null===b||void 0===b?void 0:b.classList.remove(f.highlightMultiItemsWidgetSuggestion)})};c.api=e;c.$=e.getJQuery();c.kataRuntime=b;c.classes={widgetSuggestionContainer:".s-bia-suggestion",asinSuggestion:".s-asin-suggestion",
asinSuggestionContainer:".s-asin-sug-container"};return c}h(b,a);b.prototype.accept=function(a){a.metadata=k.setDefaultMetadata(a.metadata);return f.normalizeInputObject(a)};b.prototype.generateHtml=function(a){return l.default(this.kataRuntime,{suggestion:a})};b.prototype.click=function(a){var b,c;a=null===(c=null===(b=this.navigationArea)||void 0===b?void 0:b.find("."+f.highlightSuggestion))||void 0===c?void 0:c.find("a");return 0<(null===a||void 0===a?void 0:a.length)?(a[0].click(),!0):!1};b.prototype.type=
function(){return["multiAsins"]};return b}(f.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),f=this&&this.__assign||
function(){f=Object.assign||function(a){for(var b,e=1,d=arguments.length;e<d;e++){b=arguments[e];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return f.apply(this,arguments)};d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=d(b(40)),n=b(1).NileSearchSuggestionsWidget;b=function(a){function b(b,c,d){var e,g=a.call(this)||this;g.generateHtml=function(a){var b=/^(?:nas)(\d+)/,
c=!1;a.widgetId&&(b=a.widgetId.match(b))&&"0"===b[1]&&(c=!0);return n.default(g.kataRuntime,{suggestion:a,enabledFeatures:f(f({},g.context.enabledFeatures),{darkPills:"nile-keyword-suggestions-v2"===a.template}),isFirstNileSuggestion:c})};g.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?g.api.autofillSuggestion(b.value):g.click(b)}))};g.api=c;g.context=d;g.kataRuntime=b;g.askRufus=null!==(e=c.getContext().askRufus)&&
void 0!==e?e:"Ask Rufus";return g}h(b,a);b.prototype.accept=function(a,b){a=f(f({},a),{crid:b.responseId,metadata:{title:this.askRufus}});return k.normalizeInputObject(a)};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,b);q.location.assign(l.default(b,this.api.getContext()));return!0};b.prototype.type=function(){return["nile-keyword-suggestions"]};return b}(k.InstrumentedSuggestion);a.default=b},function(d,
a,b){var h=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,e=1,d=arguments.length;e<d;e++){b=arguments[e];
for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(3),n=b(1).EntityEgressDropDown;d=function(a){function b(b,c,d,g){void 0===g&&(g=k.EntityWidgetPane.Default);var e=a.call(this)||this;e.select=function(a,b,c){};e.deSelect=function(a){};e.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){(a=a.target)&&!a.closest("#"+l.DROPDOWN_BUTTON_CONTAINER_ID_NAME)&&
(q.location.assign(l.getEntityLinkURL(b,e.api.getContext(),k.EntityWidgetPane.Default)),e.click(b))}))};e.api=c;e.context=d;e.kataRuntime=b;e.pane=g;return e}h(b,a);b.prototype.accept=function(a,b){b=f(f({},a),{responseMetadata:b});b.metadata.csaTag=l.generateCSATag(a);return b};b.prototype.type=function(){return[k.EntityDefaultPaneTemplate.ENTITY_EGRESS_DROPDOWN]};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,
b);return!0};b.prototype.generateHtml=function(a){a=k.normalizeInputObject(a);var b=JSON.parse(a.metadata.image),c=null===b||void 0===b?void 0:b.url;b=(b.shape?b.shape:k.EntityImageShape.RECTANGLE).toLowerCase();var e=l.isEntityDisclosurePaneDefaultShow(l.getEntityTemplateConfig(a));return n.default(this.kataRuntime,{title:a.metadata.title,subtitle:a.metadata.subtitle,imageUrl:c,imageShape:b,addDropdownButton:!0,csaTag:a.metadata.csaTag,defaultShow:e,buttonText:a.metadata.buttonText||null})};return b}(k.InstrumentedSuggestion);
a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,e=1,d=arguments.length;e<
d;e++){b=arguments[e];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return f.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(3),n=b(1).EntityTitleOnly;d=function(a){function b(b,c,d,g){void 0===g&&(g=k.EntityWidgetPane.Default);var e=a.call(this)||this;e.select=function(a,b,c){};e.deSelect=function(a){};e.api=c;e.context=d;e.kataRuntime=b;e.pane=g;return e}h(b,a);b.prototype.accept=function(a,b){b=f(f({},a),{responseMetadata:b});
b.metadata.csaTag=l.generateCSATag(a);return b};b.prototype.type=function(){return[k.EntityDefaultPaneTemplate.ENTITY_TITLE_ONLY]};b.prototype.click=function(a){return!0};b.prototype.generateHtml=function(a){a=k.normalizeInputObject(a);return n.default(this.kataRuntime,f({suggestion:a,title:a.metadata.title},this.context))};return b}(k.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&
function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,d)};return function(b,d){function c(){this.constructor=b}a(b,d);b.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0);d=d(b(81));var k=b(1).SuggestionWithTitle;b=function(a){function b(b,c,e){var d=a.call(this,b,c,
e)||this;d.attachEventHandlers=function(a,b){a.addEventListener("click",f.guardError({},function(a){a.target instanceof Element&&a.target.hasAttribute("autofill")?d.api.autofillSuggestion(b.value):a.target instanceof Element&&a.target.classList.contains("non-clickable-suggestion-header")?a.preventDefault():d.click(b)}))};d.generateHtml=function(a){var b,c,e=null===(b=a.metadata)||void 0===b?void 0:b.header;b=(null===(c=a.metadata)||void 0===c?void 0:c.headerCssPrefix)||"suggestion-wt";return k.default(d.kataRuntime,
{suggestion:a,enabledFeatures:d.context.enabledFeatures,header:e,headerCssPrefix:b})};d.kataRuntime=b;d.api=c;d.context=e;return d}h(b,a);b.prototype.type=function(){return["SUGGESTION_WITH_TITLE"]};return b}(d.default);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,
c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(6),l=b(1).MultiAsinsMobile;d=function(a){function b(b,e){var c=a.call(this)||this;c.attachEventHandlers=function(a){c.navigationArea=c.$(a).find(c.classes.widgetSuggestionContainer)};c.select=function(a,b){f.keyboardVerticalNavHandler(b.key,c.navigationArea,c.classes.asinSuggestion,c.classes.asinSuggestionContainer)};c.isSelected=
function(){var a;return 0<(null===(a=c.navigationArea)||void 0===a?void 0:a.find("."+f.highlightSuggestion).length)};c.deSelect=function(){var a;null===(a=c.navigationArea)||void 0===a?void 0:a.find(c.classes.asinSuggestion).each(function(a,b){if(null===b||void 0===b?0:b.classList.contains(f.highlightSuggestion))null===b||void 0===b?void 0:b.classList.remove(f.highlightSuggestion),null===b||void 0===b?void 0:b.classList.add(f.highlightSuggestionInactive);if(null===b||void 0===b?0:b.classList.contains(f.highlightMultiItemsWidgetSuggestion))null===
b||void 0===b?void 0:b.classList.remove(f.highlightMultiItemsWidgetSuggestion)})};c.api=e;c.$=e.getJQuery();c.kataRuntime=b;c.classes={widgetSuggestionContainer:".p13n-bia-mam-suggestion",asinSuggestion:".p13n-bia-mam-asin-suggestion",asinSuggestionContainer:".p13n-bia-mam-asin-sug-container"};return c}h(b,a);b.prototype.accept=function(a){a.metadata=k.setDefaultMetadata(a.metadata);return f.normalizeInputObject(a)};b.prototype.generateHtml=function(a){return l.default(this.kataRuntime,{suggestion:a})};
b.prototype.click=function(a){var b,c;a=null===(c=null===(b=this.navigationArea)||void 0===b?void 0:b.find("."+f.highlightSuggestion))||void 0===c?void 0:c.find("a");return 0<(null===a||void 0===a?void 0:a.length)?(a[0].click(),!0):!1};b.prototype.type=function(){return["multiAsinsMobile"]};return b}(f.InstrumentedSuggestion);a.default=d},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||
function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),f=this&&this.__assign||function(){f=Object.assign||function(a){for(var b,e=1,d=arguments.length;e<d;e++){b=arguments[e];for(var g in b)Object.prototype.hasOwnProperty.call(b,g)&&(a[g]=b[g])}return a};return f.apply(this,arguments)};d=this&&this.__importDefault||function(a){return a&&
a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=d(b(70)),n=b(1).NileSearchSuggestionsWidgetDesktop;b=function(a){function b(b,c,d){var e=a.call(this)||this;e.generateHtml=function(a){return n.default(e.kataRuntime,{suggestion:a})};e.attachEventHandlers=function(a,b){a.addEventListener("click",k.guardError({},function(a){e.click(b)}))};e.api=c;e.context=d;e.kataRuntime=b;return e}h(b,a);b.prototype.accept=function(a,b){a=f(f({},a),{crid:b.responseId});return k.normalizeInputObject(a)};
b.prototype.click=function(b){var c=this,e;k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,b);null===(e=null===q||void 0===q?void 0:q.P)||void 0===e?void 0:e.now("rufus-handle-stream").execute("Rufus Dialog Box Handler",function(a){a&&a(l.default(b,c.context))});this.api.hideDropdown();return!0};b.prototype.deSelect=function(a){a.classList.remove(k.highlightNileSearchSuggestionWidget);a.classList.remove(k.highlightSuggestionByKeyboardFocus)};
b.prototype.select=function(a,b,c){a.classList.add(k.highlightNileSearchSuggestionWidget);a.classList.add(k.highlightSuggestionByKeyboardFocus);this.revertSearchInputToPrefix();b.preventDefault()};b.prototype.isSelected=function(a){return a.classList.contains(k.highlightNileSearchSuggestionWidget)};b.prototype.revertSearchInputToPrefix=function(){var a,b=this.context.getContextField("prefix"),c=null===(a=this.api.getAutocompleteView())||void 0===a?void 0:a.input;c&&c.setKeyword(b)};b.prototype.type=
function(){return["nile-keyword-suggestions-desktop"]};return b}(k.InstrumentedSuggestion);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),f=
this&&this.__assign||function(){f=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d])}return a};return f.apply(this,arguments)};d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var k=b(0),l=b(3),n=b(80),g=d(b(4)),c=b(1).Separator;b=function(a){function b(b,c,e,d){void 0===d&&(d=k.EntityWidgetPane.Default);var g=a.call(this)||
this;g.select=function(b,c,e){var d;a.prototype.select.call(g,b,c,e);l.canTriggerEntityDisclosurePaneByKeyboardSelect(e)&&(b=l.getEntityTemplateConfig(e),(null===b||void 0===b?void 0:b.entityLayout)===k.EntityLayout.LEFT_AND_RIGHT_PANE?g.api.getAutocompleteView().twoPanelists.triggerEntityProgressiveDisclosureTwoPane(e,g.api):(null===b||void 0===b?void 0:b.entityLayout)===k.EntityLayout.LEFT_PANE_ONLY&&((null===(d=g.context.enabledFeatures)||void 0===d?0:d.entityPD)?l.setEntityWidgetLeftDisclosurePaneVisibility(g.api.getAutocompleteView().list.autocompleteListElements,
!0):g.api.getAutocompleteView().list.setEntityWidgetLeftDisclosurePaneVisibility(!0)))};g.deSelect=function(b){var c,e;a.prototype.deSelect.call(g,b);(null===(c=g.context.enabledFeatures)||void 0===c?0:c.entityPD)?(b=l.getEntityWidgetElementInAutocompleteList(g.api.getAutocompleteView().list.autocompleteListElements),b=null===(e=l.getEntityTemplateConfig(b.data))||void 0===e?void 0:e.entityLayout,b===k.EntityLayout.LEFT_PANE_ONLY?l.setEntityWidgetLeftDisclosurePaneVisibility(g.api.getAutocompleteView().list.autocompleteListElements,
!1):b===k.EntityLayout.LEFT_AND_RIGHT_PANE&&g.api.getAutocompleteView().twoPanelists.hideEntityProgressiveDisclosureTwoPane()):"desktop"===k.getSiteVariant()&&(g.api.getAutocompleteView().twoPanelists.hideEntityProgressiveDisclosureTwoPane(),g.api.getAutocompleteView().list.setEntityWidgetLeftDisclosurePaneVisibility(!1))};g.addHighlightFocus=function(a){a.classList.add(k.highlightSuggestion)};g.removeHighlightFocus=function(a){a.classList.remove(k.highlightSuggestion)};g.attachEventHandlers=function(a,
b){var c;switch(null===(c=l.getEntityTemplateConfig(b))||void 0===c?void 0:c.defaultPaneTemplate){case k.EntityDefaultPaneTemplate.ENTITY_EGRESS_DROPDOWN:l.canTriggerEntityDisclosurePaneByDropdownButton(b)&&(c=a.querySelector("#"+l.DROPDOWN_BUTTON_CONTAINER_ID_NAME),null===c||void 0===c?void 0:c.addEventListener("click",k.guardError({},function(b){g.toggleDropdownDisclosurePaneDisplay(a);g.toggleDropdownButtonStyle(a,!0)})));break;default:c=a.getElementsByClassName(l.ENTITY_DEFAULT_PANE_CONTAINER_CLASS_NAME).item(0),
l.canTriggerEntityDisclosurePaneByDropdownButton(b)?null===c||void 0===c?void 0:c.addEventListener("click",k.guardError({},function(b){g.toggleDropdownDisclosurePaneDisplay(a);g.toggleDropdownButtonStyle(a)})):null===c||void 0===c?void 0:c.addEventListener("click",k.guardError({},function(a){g.click(b)}))}};g.toggleDropdownDisclosurePaneDisplay=function(a){var b,c;(a=null===(b=a.getElementsByClassName(l.ENTITY_DISCLOSURE_PANE_CONTAINER_CLASS_NAME))||void 0===b?void 0:b.item(0))&&((null===(c=a.getAttribute("style"))||
void 0===c?0:c.includes(l.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE))?a.setAttribute("style",l.ENTITY_WIDGET_CSS_DISPLAY_STYLE):a.setAttribute("style",l.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE))};g.showSeparator=function(){var a=g.api.getContext().getContextField("site-variant");return k.isMShop(a)||k.isMobileWeb(a)};g.api=c;g.context=e;g.kataRuntime=b;g.pane=d;return g}h(b,a);b.prototype.accept=function(a,b){return f(f({},a),{responseMetadata:b})};b.prototype.type=function(){return[l.ENTITY_TEMPLATE]};b.prototype.getEntityLinkURL=
function(a){var b=k.normalizeInputObject(a),c=JSON.parse(b.metadata.link);a=k.constructRefTag(a.refTag,a.strategyId,k.EntityWidgetPane.Default,c.tag,c.serviceGeneratedLinkTag,a.widgetId,a.metadata.removeWidgetIdFromRefTag);return g.default(b,c.link,this.api.getContext(),a,l.isBrowseNodePageLink(c.link))};b.prototype.click=function(b){k.logOneTimeEvent(k.SearchAcceptanceMetric);k.emitCounter(k.SearchAcceptanceMetric);a.prototype.click.call(this,b);q.location.assign(this.getEntityLinkURL(b));return!0};
b.prototype.generateHtml=function(a){var b=l.getEntityTemplateConfig(a),e=k.renderingFunctionsForEntityDefaultPane(this.api)[b.defaultPaneTemplate],d=[];if(e&&(e=e.render(a,a.responseMetadata),e.firstChild)){e.classList.add(l.ENTITY_DEFAULT_PANE_CONTAINER_CLASS_NAME);d.push(e);if(b.entityLayout===k.EntityLayout.LEFT_PANE_ONLY){var g=k.renderingFunctionsForEntityDisclosurePane(this.api)[b.disclosurePaneTemplate];g&&(a=g.render(a,a.responseMetadata),a.firstChild&&(a.classList.add(l.ENTITY_DISCLOSURE_PANE_CONTAINER_CLASS_NAME),
this.setDisclosureInitialDisplayStatus(a,e,b),d.push(a)))}b=c.default(this.kataRuntime,{})[0];this.showSeparator()&&b&&d.push(b)}return d};b.prototype.setDisclosureInitialDisplayStatus=function(a,b,c){l.isEntityDisclosurePaneDefaultShow(c)?(a.setAttribute("style",l.ENTITY_WIDGET_CSS_DISPLAY_STYLE),a=b.querySelector("#"+l.DROPDOWN_BUTTON_CONTAINER_ID_NAME),b.getElementsByClassName(l.DROPDOWN_BUTTON_CLASS_NAME)&&!a&&this.toggleDropdownButtonStyle(b)):a.setAttribute("style",l.ENTITY_WIDGET_CSS_NO_DISPLAY_STYLE)};
b.prototype.toggleDropdownButtonStyle=function(a,b){var c;if(b){var e=a.querySelector("#"+l.DROPDOWN_BUTTON_CHEVRON_ICON_ID_NAME);if(e){var d;Object.entries(l.TOGGLE_CHEVRON_ICON_MAP).forEach(function(a){a=a[0];e.classList.contains(a)&&(d=a)});d&&e.classList.replace(d,l.TOGGLE_CHEVRON_ICON_MAP[d])}}else(a=null===(c=a.getElementsByClassName(l.DROPDOWN_BUTTON_CLASS_NAME))||void 0===c?void 0:c.item(0))&&(a.classList.contains(n.dropdownButtonUpwardClassName)?a.classList.replace(n.dropdownButtonUpwardClassName,
n.dropdownButtonDownwardClassName):a.classList.contains(n.dropdownButtonDownwardClassName)&&a.classList.replace(n.dropdownButtonDownwardClassName,n.dropdownButtonUpwardClassName))};return b}(k.InstrumentedSuggestion);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,
c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.tileCardContainerClassName=void 0;var f=b(0),k=d(b(14)),l=d(b(4)),n=b(12),g=b(3),c=b(1).ResizableTileRows;a.tileCardContainerClassName="s-entity-pd-resizable-tile-rows-container";b=function(b){function e(){var c=null!==b&&b.apply(this,arguments)||this;
c.attachEventHandlers=function(b,e){var d=b.getElementsByClassName(a.tileCardContainerClassName);b=function(a){d.item(a).addEventListener("click",f.guardError({},function(a){c.click(e)}));d.item(a).addEventListener("mouseover",f.guardError({},function(b){for(var g=0;g<d.length;g+=1)c.deSelect(d.item(g));c.select(d.item(a),b,e)}));d.item(a).addEventListener("mouseout",f.guardError({},function(a){for(a=0;a<d.length;a+=1)c.deSelect(d.item(a))}))};for(var g=0;g<d.length;g+=1)b(g)};return c}h(e,b);e.prototype.generateHtml=
function(a){a=f.normalizeInputObject(a);f.updateWidgetItemRefTag(a,this.getLinkFields(),this.pane);a.metadata.toDisplayCardNum=a.widgetItems.length;for(var b=0,e=a.widgetItems;b<e.length;b++){var d=e[b],h=d.metadata.tileCardLink;d.metadata.formattedCardLink=l.default(a,h.link,this.api.getContext(),h.constructedRefTag,g.isBrowseNodePageLink(h.link))}return c.default(this.kataRuntime,{suggestion:a,elementClassName:"resizable-tile-rows"})};e.prototype.transformInputObject=function(a,b){return a};e.prototype.deSelect=
function(a){a.classList.remove(f.highlightEntityTileCardSuggestion)};e.prototype.select=function(a,b,c){a.classList.add(f.highlightEntityTileCardSuggestion);b.preventDefault()};e.prototype.isSelected=function(a){return a.classList.contains(f.highlightEntityTileCardSuggestion)};e.prototype.getLinkFields=function(){return["tileCardLink"]};e.prototype.type=function(){return[n.EntityDisclosurePaneTemplate.RESIZABLE_TILE_ROWS]};return e}(k.default);a.default=b},function(d,a,b){var h=this&&this.__extends||
function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.tileCardContainerClassName=
void 0;var f=b(0),k=d(b(14)),l=d(b(4)),n=b(3),g=b(1).TileRows;a.tileCardContainerClassName="s-entity-pd-tile-rows-element-container";b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.attachEventHandlers=function(a,c){a=a.getElementsByClassName("s-entity-pd-tile-rows-element-container");for(var e=0;e<a.length;e+=1)a.item(e).addEventListener("click",f.guardError({},function(a){b.click(c)}))};return b}h(b,a);b.prototype.transformInputObject=function(a,b){return a};b.prototype.generateHtml=
function(a){a=f.normalizeInputObject(a);f.updateWidgetItemRefTag(a,this.getLinkFields(),this.pane);for(var b=0,c=a.widgetItems;b<c.length;b++){var e=c[b],d=e.metadata.tileCardLink;e.metadata.formattedCardLink=l.default(a,d.link,this.api.getContext(),d.constructedRefTag,n.isBrowseNodePageLink(d.link))}return g.default(this.kataRuntime,{suggestion:a,elementClassName:"tile-rows"})};b.prototype.click=function(b){f.logOneTimeEvent(f.SearchAcceptanceMetric);f.emitCounter(f.SearchAcceptanceMetric);a.prototype.click.call(this,
b);return!0};b.prototype.getLinkFields=function(){return["tileCardLink"]};b.prototype.type=function(){return[f.EntityDisclosurePaneTemplate.TILE_ROWS]};return b}(k.default);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,e)};return function(b,e){function c(){this.constructor=b}
a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.carouselButtonClassName=void 0;var f=b(0);d=d(b(14));var k=b(4),l=b(12),n=b(1).ButtonCarousel;a.carouselButtonClassName="entity-carousel-sug-item";b=function(b){function c(){var c=null!==b&&b.apply(this,arguments)||this;c.attachEventHandlers=function(b,e){b=b.getElementsByClassName(a.carouselButtonClassName);
for(var d=0;d<b.length;d+=1)b.item(d).addEventListener("click",f.guardError({},function(a){c.click(e)}))};return c}h(c,b);c.prototype.generateHtml=function(a){var b=this;a=f.normalizeInputObject(a);var c=this.getLinkFields();f.updateWidgetItemRefTag(a,c,this.pane);for(var e=!1,d=function(c){a.widgetItems.forEach(function(d){d.metadata[c]&&2<=d.metadata[c].length&&(e=!0,d.metadata[c]=k.updateEntityWidgetLinkUrls(a,b.api.getContext(),d.metadata[c]))})},g=0;g<c.length;g++)d(c[g]);return e?n.default(this.kataRuntime,
{suggestion:a}):[]};c.prototype.getLinkFields=function(){return["buttonList"]};c.prototype.transformInputObject=function(a,b){return a};c.prototype.type=function(){return[l.EntityDisclosurePaneTemplate.BUTTON_CAROUSEL]};return c}(d.default);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=function(b,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};
return a(b,e)};return function(b,e){function c(){this.constructor=b}a(b,e);b.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=b(4);d=d(b(14));var l=b(12),n=b(1).ProductPreview;b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.attachEventHandlers=function(a,c){a.addEventListener("click",f.guardError({},function(a){b.click(c)}))};
return b}h(b,a);b.prototype.generateHtml=function(a){var b=this;a=f.normalizeInputObject(a);var c=this.getLinkFields();f.updateWidgetItemRefTag(a,c,this.pane);for(var e=function(c){var e="contributorList"===c;a.widgetItems.forEach(function(d){d.metadata[c]&&(d.metadata[c]=k.updateEntityWidgetLinkUrls(a,b.api.getContext(),d.metadata[c],e))})},d=0;d<c.length;d++)e(c[d]);a.metadata.formattedSuggLink=this.getEntityLinkURL(a);c=JSON.parse(a.metadata.image).url;return n.default(this.kataRuntime,{suggestion:a,
imageUrl:c})};b.prototype.getLinkFields=function(){return["contributorList","optionList"]};b.prototype.transformInputObject=function(a,b){return a};b.prototype.deSelect=function(a){a.classList.remove(this.getProductPreviewHighlightSuggestion(a))};b.prototype.select=function(a,b,c){a.classList.add(this.getProductPreviewHighlightSuggestion(a));b.preventDefault()};b.prototype.isSelected=function(a){return a.classList.contains(this.getProductPreviewHighlightSuggestion(a))};b.prototype.getProductPreviewHighlightSuggestion=
function(a){return a instanceof HTMLAnchorElement?f.highlightHyperlinkSuggestion:f.highlightSuggestion};b.prototype.getSelectedId=function(a){if(!a)return"";var b=this.getProductPreviewHighlightSuggestion(a);return(b=a.classList&&a.classList.contains(b)?a.querySelector('[role\x3d"gridcell"]'):a.querySelector("."+b))?b.id:a.id?a.id:""};b.prototype.type=function(){return[l.EntityDisclosurePaneTemplate.PRODUCT_PREVIEW]};return b}(d.default);a.default=b},function(d,a,b){var h=this&&this.__extends||function(){var a=
function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});a.tileCardContainerClassName=void 0;
var f=b(0),k=d(b(14)),l=d(b(4)),n=b(3),g=b(1).TileCarousel;a.tileCardContainerClassName="s-entity-pd-carousel-tile-element-container";var c={TILE:"tile",WIDER_TILE:"wider-tile"};b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.attachEventHandlers=function(a,c){var d,e,g=a.getElementsByClassName("s-entity-pd-carousel-tile-element-container"),h=a.getElementsByClassName("s-entity-pd-carousel-tile-container")[0],k=a.getElementsByClassName("s-entity-pd-carousel-tile-suggestion")[0];
for(a=0;a<g.length;a+=1)g.item(a).addEventListener("click",f.guardError({},function(a){b.click(c)}));(null===(e=null===(d=b.api.getContext())||void 0===d?void 0:d.enabledFeatures)||void 0===e?0:e.entityPD)&&h.addEventListener("scroll",f.guardError({},function(a){b.dynamicallyAddRightEdge(k,h)}))};b.dynamicallyAddRightEdge=function(a,b){Math.ceil(b.scrollLeft+b.offsetWidth)>=b.scrollWidth?a.style.setProperty("margin-right","8px"):a.style.setProperty("margin-right","0px")};return b}h(b,a);b.prototype.transformInputObject=
function(a,b){return a};b.prototype.generateHtml=function(a){a=f.normalizeInputObject(a);f.updateWidgetItemRefTag(a,this.getLinkFields(),this.pane);var b=c[a.metadata&&"tileSize"in a.metadata?a.metadata.tileSize:f.TileSize.TILE]||"tile",d=0,e=a.widgetItems;for(;d<e.length;d++){var h=e[d],k=h.metadata.tileCardLink;h.metadata.formattedCardLink=l.default(a,k.link,this.api.getContext(),k.constructedRefTag,n.isBrowseNodePageLink(k.link))}return g.default(this.kataRuntime,{suggestion:a,elementClassName:"carousel-"+
b})};b.prototype.click=function(b){f.logOneTimeEvent(f.SearchAcceptanceMetric);f.emitCounter(f.SearchAcceptanceMetric);a.prototype.click.call(this,b);return!0};b.prototype.getLinkFields=function(){return["tileCardLink"]};b.prototype.type=function(){return[f.EntityDisclosurePaneTemplate.CAROUSEL_TILE]};return b}(k.default);a.default=b},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.highlightNileSearchSuggestionWidget=a.highlightHyperlinkSuggestion=a.highlightEntityTileCardSuggestion=
a.highlightMultiItemsWidgetSuggestion=a.highlightSuggestionInactive=a.highlightSuggestionCardByKeyboardFocus=a.highlightSuggestionByKeyboardFocus=a.highlightSuggestion=void 0;a.highlightSuggestion="s-selected";a.highlightSuggestionByKeyboardFocus="s-selected-keyboard-focus";a.highlightSuggestionCardByKeyboardFocus="s-selected-card-keyboard-focus";a.highlightSuggestionInactive="s-selected-inactive";a.highlightMultiItemsWidgetSuggestion="s-widget-selected";a.highlightEntityTileCardSuggestion="s-entity-tile-card-selected";
a.highlightHyperlinkSuggestion="s-entity-hyperlink-selected";a.highlightNileSearchSuggestionWidget="s-suggestion-nile-desktop-container-selected"},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.logMShopMetric=a.searchQueryToSuggestionsRequest=void 0;var h=b(0),f=!0,k=6E4*(new Date).getTimezoneOffset(),l={query:h.prefixFieldName},n=function(a){return a.split("").map(function(a,b){var c=a.toLowerCase();return c===a||0===b?c:"-"+c}).join("")};a.searchQueryToSuggestionsRequest=function(a){a=
Object.entries(a).reduce(function(a,b){var c=b[0];b=b[1];l[c]?a[l[c]]=b:a[n(c)]=b;return a},{});f?(f=!1,a.event=a.prefix?"onfocuswithsearchterm":"onfocus"):a.event="onkeypress";a["site-variant"]=h.getSiteVariant().startsWith("android")?h.getSiteVariant():a["site-variant"];return a};a.logMShopMetric=function(a){a&&a.metricName&&(a.timestamp&&(a.timestamp-=k),a.latency?h.emitLatency(a.metricName,a.latency,a.timestamp):a.count&&h.emitCounter(a.metricName,a.count,a.timestamp))}},function(d,a,b){var h=
this&&this.__assign||function(){h=Object.assign||function(a){for(var b,c=1,d=arguments.length;c<d;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return h.apply(this,arguments)};d=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{"default":a}};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k=d(b(219)),l=b(220);b=function(){function a(a,b,d,n,v,r,w,u,t,x){var c=this;this.statusMessageContainer=null;this.onInput=function(a){var b,
d,e,g;void 0===a&&(a="input");var h=c.autocompleteView.input.getKeyword(),k=c.autocompleteView.input.getAliasFromDropdown();(null===(d=c.context.enabledFeatures)||void 0===d?0:d.mWebScoping)&&(null===(e=c.context.enabledFeatures)||void 0===e?0:e.mWebSuggestionScoping)&&"aps"===k&&(k=c.context.getContextField("s_metadata_alias")||c.context.getContextField("implicit_alias")||"aps");(null===(g=c.context.enabledFeatures)||void 0===g?0:g.mWebSuggestionScoping)&&"ab-gateway"===k&&(k="aps");d="";c.context.enabledFeatures.predictiveText&&
(c.autocompleteView.input.isPredictiveTextElementsPresent()||(d=document.querySelector("#nav-logo a"),d=null===d||void 0===d?void 0:d.href,(null===d||void 0===d?0:d.endsWith("ref\x3dnav_logo"))?(f.logEvent(f.NavxGhostingFieldsNotAvailableOnRetailMetric),f.emitCounter(f.NavxGhostingFieldsNotAvailableOnRetailMetric)):(null===d||void 0===d?0:d.endsWith("?ref_\x3dabn_logo"))?(f.logEvent(f.NavxGhostingFieldsNotAvailableOnABMetric),f.emitCounter(f.NavxGhostingFieldsNotAvailableOnABMetric)):(f.logEvent(f.NavxGhostingFieldsNotAvailableMetric),
f.emitCounter(f.NavxGhostingFieldsNotAvailableMetric))),d="arrowRightToAcceptPredictiveText"===a||"clickToAcceptPredictiveText"===a||"tabKeyToAcceptPredictiveText"===a?c.predictiveTextAccepted:c.defaultPredictiveTextAccepted);if(e=c.autocompleteView.input.getSelectedSearchDropdownUrl()){e=f.decodeSearchDropdownUrl(e);if(e.srs){var l=e.srs;k=e["search-alias"]}if(e.bbn)var n=e.bbn}c.getSuggestions(c.context.autocompleteContext.updateContext((b={prefix:h,alias:k,srs:l,bbn:n,event:f.getEventType(a,h)},
b["cursor-position"]=c.autocompleteView.input.getCursorPosition(),b.predicted_text_accepted=d,b)))};this.removeEscapeCharacters=function(a){return a?a.replace(/\\(.)/g,function(a,b){switch(b){case '"':return'"';default:return b}}):a};this.renderSuggestions=function(a){return function(b){c.handleSuggestions(b);f.measuredMethod("TimeToRedraw",function(a,b){return f.timedFunctionWrapper("TimeToRedraw",c.autocompleteView.render)(a,b)})(b,c.context);c.context.autocompleteContext.updateContext({"last-prefix":a.prefix})}};
this.getSuggestions=function(a){l.recordKeyPress();f.startTimeToFirstSuggestion();return c.handler.getSuggestions(c.getSuggestionsRequestParameters(a),c.renderSuggestions(a))};this.deleteSuggestion=function(a){var b=c.getSuggestionsRequestParameters();return c.handler.deleteSuggestion(a,b,c.updateSuggestionList,c.renderSuggestions(b))};this.getSuggestionsRequestParameters=function(a){a&&"desktop"===f.getSiteVariant()&&(!0===c.flags.enableRufusLiteExperiment?c.getNileEligibilityWithRufusLiteExperiment(a):
c.getNileEligibility(a));return c.context.autocompleteContext.updateContext(h(h({},a),{"avg-ks-time":l.getAverageKeyPressTime(),"client-info":c.getClientInfo(f.getSiteVariant(),c.context.autocompleteContext.context["client-info"])}))};this.getClientInfo=function(a,b){if(b)return b;switch(a){case "ios-iphone-mshop":case "ios-ipad-mshop":return"search-ios-mshop";case "android-mshop":case "android-tablet-mshop":return"search-android-mshop";default:return b}};this.autofillSuggestion=function(a){var b=
new f.CSMCounterLatencyMetric(f.AutofillLatencyMetricName),d=new f.LatencyMetric(f.AutofillLatencyMetricName);d.start();c.autocompletePluginHandler.call("autofill")({text:a},function(){b.finish();d.finish()});f.logEvent("AutoFillSelected");f.emitCounter("AutoFillSelected")};this.updateSuggestionList=function(){var a=c.context.autocompleteContext;c.getSuggestions(a.updateContext(a))};this.getAutocompleteView=function(){return c.autocompleteView};this.navigation=function(a){return c.autocompleteView.handleNavigationEvent(a)};
this.getJQuery=function(){return c.$};this.getAutocompletePluginCall=function(a){return c.autocompletePluginHandler.call(a)};this.hideDropdown=function(){c.searchInput.hideDropdown()};this.getNileEligibility=function(a){var b;null===(b=null===q||void 0===q?void 0:q.P)||void 0===b?void 0:b.now("rufus-eligible","rufus-handle-stream").execute("Rufus Desktop Eligibility Check",function(b,c){b&&c&&(a.ni="1")})};this.getNileEligibilityWithRufusLiteExperiment=function(a){var b;null===(b=null===q||void 0===
q?void 0:q.P)||void 0===b?void 0:b.now("rufus-eligible","rufus-handle-stream","rufus-nav-only-treatment").execute("Rufus Desktop Eligibility Check",function(b,c,d){b&&c&&"T1"===d?a.ni="2":b&&c&&(a.ni="1")})};this.addPredictiveTextEventListeners=function(){c.context.enabledFeatures.predictiveText?(c.autocompleteView.input.getSearchInput().addEventListener("keydown",f.guardError({attribution:"ApiImpl:keydown"},function(a){var b=c.autocompleteView.input.getPrediction(),d=c.autocompleteView.input.getSearchInput(),
e=d.selectionStart;d=d.value;c.autocompleteView.input.setDeletePressed(!1);!c.isPredictiveTextAvailable(b)||"ArrowRight"!==a.key&&9!==a.keyCode||null===e||e!==d.length?"ArrowLeft Left ArrowUp Up ArrowDown Down Backspace Delete".split(" ").includes(a.key)?(["Delete","Backspace"].includes(a.key)&&c.autocompleteView.input.setDeletePressed(!0),c.autocompleteView.input.dismissPredictiveText()):c.isPredictiveTextAvailable(b)||9!==a.keyCode||(c.autocompleteView.input.hideDropdown(),c.autocompleteView.input.dismissPredictiveText()):
(c.predictiveTextAccepted=b,c.autocompleteView.input.showPredictiveTextOnSearchBar(),c.autocompleteView.input.updatePreviousCursorPosition(),c.onInput("ArrowRight"===a.key?"arrowRightToAcceptPredictiveText":"tabKeyToAcceptPredictiveText"),9===a.keyCode&&a.preventDefault(),c.predictiveTextAccepted=c.defaultPredictiveTextAccepted,f.logEvent("ArrowRight"===a.key?f.EnabledGhostingClickedArrowRightMetric:f.EnabledGhostingClickedTabMetric),f.emitCounter("ArrowRight"===a.key?f.EnabledGhostingClickedArrowRightMetric:
f.EnabledGhostingClickedTabMetric));c.autocompleteView.input.updatePreviousCursorPosition()})),c.autocompleteView.input.getSearchInput().addEventListener("click",f.guardError({attribution:"ApiImpl:click"},function(){var a=c.autocompleteView.input.getPrediction();c.isPredictiveTextAvailable(a)&&(c.predictiveTextAccepted=a,c.autocompleteView.input.showPredictiveTextOnSearchBar(),c.autocompleteView.input.updatePreviousCursorPosition(),c.onInput("clickToAcceptPredictiveText"),c.predictiveTextAccepted=
c.defaultPredictiveTextAccepted,f.logEvent(f.EnabledGhostingClickedOnSearchBarMetric),f.emitCounter(f.EnabledGhostingClickedOnSearchBarMetric))}))):c.autocompleteView.input.getSearchInput().addEventListener("keydown",f.guardError({attribution:"ApiImpl:keydown"},function(a){9==a.keyCode&&c.autocompleteView.input.isSearchBoxFocused()&&(c.autocompleteView.input.hideDropdown(),c.autocompleteView.input.dismissPredictiveText())}))};this.isPredictiveTextAvailable=function(a){return a&&0<a.length&&a!==c.defaultPredictiveTextAccepted};
this.$=a;this.handler=b;this.autocompletePluginHandler=d;this.resultsContainer=v;this.leftPaneResultsContainer=r;this.rightPaneResultsContainer=w;this.flags=x;this.predictiveTextAccepted="";this.rightArrowSelected=!1;this.defaultPredictiveTextAccepted=" ";this.context=new f.Context(u,this.autocompletePluginHandler.getCordovaEnabledFeatures());this.flags.entityPD&&this.context.updateEnabledFeatures({entityPD:!0});this.flags.keywordWithBylineCustomLink&&this.context.updateEnabledFeatures({keywordWithBylineCustomLink:!0});
this.flags.useSuggestionsIcons&&this.context.updateEnabledFeatures({useSuggestionsIcons:!0});this.flags.predictiveText&&this.context.updateEnabledFeatures({predictiveText:!0});this.flags.useSuggestionDelimiter!==p&&this.context.updateEnabledFeatures({useSuggestionDelimiter:this.flags.useSuggestionDelimiter});this.flags.enableTwoPaneWidgetOnlyExperience&&this.context.updateEnabledFeatures({enableTwoPaneWidgetOnlyExperience:!0});this.flags.storeModeExitFix&&this.context.updateEnabledFeatures({storeModeExitFix:!0});
this.flags.mShopKeyboardNavigation!==p&&this.context.updateEnabledFeatures({mShopKeyboardNavigation:this.flags.mShopKeyboardNavigation});this.flags.mWebScoping&&this.context.updateEnabledFeatures({mWebScoping:!0});this.flags.mWebSuggestionScoping&&this.context.updateEnabledFeatures({mWebSuggestionScoping:!0});"desktop"===f.getSiteVariant()&&this.resultsContainer&&this.resultsContainer.parentNode&&(this.statusMessageContainer=document.createElement("div"),this.statusMessageContainer.className="status-message-container",
this.statusMessageContainer.setAttribute("role","status"),this.resultsContainer.parentNode.appendChild(this.statusMessageContainer));this.context.autocompleteContext.updateContext(t);this.searchInput="desktop"===f.getSiteVariant()||"mobile"===f.getSiteVariant()?new k.default(n,this):n;this.autocompleteView=new f.AutocompleteView(this.searchInput,new f.AutocompleteList(this.leftPaneResultsContainer,this,this.searchInput,this.statusMessageContainer),new f.AutocompleteListTwoPane(this.leftPaneResultsContainer,
this.rightPaneResultsContainer,this));["focus","input"].forEach(function(a){return c.autocompleteView.input.getSearchInput().addEventListener(a,f.guardError({attribution:"ApiImpl:input"},function(){var b=c.autocompleteView.input.getSearchInput();c.context.enabledFeatures.predictiveText&&""===b.value?(c.autocompleteView.input.dismissPredictiveText(),"input"===a&&(c.autocompleteView.input.updatePreviousCursorPosition(),c.predictiveTextAccepted=c.defaultPredictiveTextAccepted)):c.predictiveTextAccepted=
c.defaultPredictiveTextAccepted;c.onInput(a)}))});this.addPredictiveTextEventListeners();this.autocompleteView.input.getSearchInput().addEventListener("keydown",f.guardError({attribution:"ApiImpl:enter"},function(a){"Enter"===a.key&&c.autocompleteView.input.getKeyword()&&c.autocompleteView.input.isSelected()&&(f.logOneTimeEvent(f.SearchNonAcceptanceMetric),f.emitCounter(f.SearchNonAcceptanceMetric),f.emitEvents())}));q.AutocompleteAPI=this}a.prototype.getContext=function(){return this.context};a.prototype.handleSuggestions=
function(a){var b=this;a.suggestions.forEach(function(c){var d,e;c.crid=a.responseId;c.value=b.removeEscapeCharacters(c.value);if("highlightFragments"in c&&c.highlightFragments&&0<c.highlightFragments.length&&(c.highlightFragments=c.highlightFragments.map(function(a){a.text=b.removeEscapeCharacters(a.text);return a}),1<c.highlightFragments.length)){var g='"'===(null===(d=c.highlightFragments[0])||void 0===d?void 0:d.text);d='"'===(null===(e=c.highlightFragments[c.highlightFragments.length-1])||void 0===
e?void 0:e.text);g&&d&&(c.highlightFragments=c.highlightFragments.slice(1,-1))}})};return a}();a.default=b},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});var h=b(0);d=function(){function a(a,b){var d=this;this._isSelected=!0;this.showDropdown=function(){return d.delegateSearchInput.showDropdown()};this.hideDropdown=function(){d.dismissPredictiveText();d.delegateSearchInput.hideDropdown()};this.isSelected=function(){return d._isSelected};this.toggleIsSelected=function(){var a;d._isSelected=
!d._isSelected;d._isSelected&&(d.setKeyword(d.typedInputValue),d.api&&d.setAlias(null===(a=d.api.getContext())||void 0===a?void 0:a.getContextField("alias")));return d._isSelected};this.delegateSearchInput=a;this.api=b;var g=this.delegateSearchInput.getSearchInput();this.typedInputValue=g.value;g.addEventListener("input",h.guardError({attribution:"BrowserSearchInput"},function(a){d.typedInputValue=g.value}))}a.prototype.setAttribution=function(a,b,d,g){this.delegateSearchInput.setAttribution(a,b,
d,g)};a.prototype.getAliasFromDropdown=function(){return this.delegateSearchInput.getAliasFromDropdown()};a.prototype.getKeyword=function(){return this.delegateSearchInput.getKeyword()};a.prototype.getCursorPosition=function(){return this.delegateSearchInput.getCursorPosition()};a.prototype.getSearchInput=function(){return this.delegateSearchInput.getSearchInput()};a.prototype.setAlias=function(a,b){this.delegateSearchInput.setAlias(a,b,h.options)};a.prototype.setKeyword=function(a){this.delegateSearchInput.setKeyword(a)};
a.prototype.getSelectedSearchDropdownUrl=function(){return this.delegateSearchInput.getSelectedSearchDropdownUrl()};a.prototype.setSelectedSearchDropdownUrl=function(a){return this.delegateSearchInput.setSelectedSearchDropdownUrl(a)};a.prototype.setPredictedText=function(a,b,d){return this.delegateSearchInput.setPredictedText(a,b,d)};a.prototype.dismissPredictiveText=function(){return this.delegateSearchInput.dismissPredictiveText()};a.prototype.showPredictiveTextOnSearchBar=function(){return this.delegateSearchInput.showPredictiveTextOnSearchBar()};
a.prototype.updatePreviousCursorPosition=function(){return this.delegateSearchInput.updatePreviousCursorPosition()};a.prototype.setDeletePressed=function(a){return this.delegateSearchInput.setDeletePressed(a)};a.prototype.getDeleteKeyPressed=function(){return this.delegateSearchInput.getDeleteKeyPressed()};a.prototype.isSearchBoxFocused=function(){return this.delegateSearchInput.isSearchBoxFocused()};a.prototype.getPrediction=function(){return this.delegateSearchInput.getPrediction()};a.prototype.isPredictiveTextElementsPresent=
function(){return this.delegateSearchInput.isPredictiveTextElementsPresent()};a.prototype.notifySearchBoxSelection=function(a){this.delegateSearchInput.notifySearchBoxSelection(a)};return a}();a.default=d},function(d,a,b){Object.defineProperty(a,"__esModule",{value:!0});a.recordKeyPress=a.getAverageKeyPressTime=void 0;var h=0,f=0,k=-1;a.getAverageKeyPressTime=function(){return f?Math.round(h/f):0};a.recordKeyPress=function(){f+=1;var a=(new Date).getTime();0<=k&&(h+=a-k);k=a}},function(d,a,b){Object.defineProperty(a,
"__esModule",{value:!0});var h=b(0);d=function(){function a(a,b){var d=this,g;this._isSelected=!0;this.setKeyword=function(a){d.input.value=a};this.isSelected=function(){return d._isSelected};this.toggleIsSelected=function(){d._isSelected=!d._isSelected;d._isSelected&&(d.input.value=d.typedInputValue,setTimeout(function(){d.input.selectionStart=d.typedInputValue.length;d.input.selectionEnd=d.typedInputValue.length},0));return d._isSelected};this.showDropdown=function(){};this.hideDropdown=function(){};
this.getAliasFromDropdown=function(){return""};this.setAlias=function(a){};this.setPredictedText=function(a,b,d){};this.dismissPredictiveText=function(){};this.input=a;this.typedInputValue=a.value;this.autocompletePluginHandler=b;this.cursorPosition=(null===(g=a.value)||void 0===g?void 0:g.length)||0;a.addEventListener("input",h.guardError({attribution:"MShopSearchInput"},function(b){var c;d.typedInputValue=a.value;d.cursorPosition=a.selectionStart||(null===(c=a.value)||void 0===c?void 0:c.length)||
0}))}a.prototype.setAttribution=function(a,b,d,g){var c;null===(c=this.autocompletePluginHandler)||void 0===c?void 0:c.call("setAttribution")({refTag:a,crid:b,prefix:d,timeStamp:g||(new Date).getTime()})};a.prototype.getKeyword=function(){return this.input.value};a.prototype.getCursorPosition=function(){return this.cursorPosition};a.prototype.getSearchInput=function(){return this.input};a.prototype.getSelectedSearchDropdownUrl=function(){return p};a.prototype.setSelectedSearchDropdownUrl=function(a){};
a.prototype.showPredictiveTextOnSearchBar=function(){};a.prototype.isSearchBoxFocused=function(){return!1};a.prototype.updatePreviousCursorPosition=function(){};a.prototype.getPrediction=function(){return""};a.prototype.setDeletePressed=function(){return!1};a.prototype.getDeleteKeyPressed=function(){return!1};a.prototype.isPredictiveTextElementsPresent=function(){return!1};a.prototype.notifySearchBoxSelection=function(a){};return a}();a.default=d},function(d,a,b){var h=this&&this.__assign||function(){h=
Object.assign||function(a){for(var b,d=1,c=arguments.length;d<c;d++){b=arguments[d];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a};return h.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k={setSearchEntryText:"autofill",setAttribution:"setAttribution",searchSuggestionRendered:"searchSuggestionRendered"};d=function(){return function(a){var b=this;void 0===a&&(a={});this.featureToCordovaCall={};this.getCordovaEnabledFeatures=function(){return b.cordovaEnabledFeatures};
this.call=function(a){return function(c,d,g){void 0===d&&(d=function(a){});void 0===g&&(g=function(a){});a in b.cordovaEnabledFeatures&&(["android-mshop","android-tablet-mshop"].includes(f.getSiteVariant())&&(c=h(h({},c),{successCallback:function(a){d(a)},failCallback:function(b){f.logError("Plugin:"+a);f.emitError("Plugin:"+a);g(b)}})),b.AutocompletePlugin[b.featureToCordovaCall[a]](c))}};this.AutocompletePlugin=a;this.cordovaEnabledFeatures=Object.keys(this.AutocompletePlugin).reduce(function(a,
c){var d=k[c];a[d]=!0;d in b.featureToCordovaCall&&(f.logError("Plugin:Conflict"),f.emitError("Plugin:Conflict"));b.featureToCordovaCall[d]=c;return a},{})}}();a.default=d},function(d,a,b){var h=this&&this.__assign||function(){h=Object.assign||function(a){for(var b,d=1,c=arguments.length;d<c;d++){b=arguments[d];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a};return h.apply(this,arguments)};Object.defineProperty(a,"__esModule",{value:!0});var f=b(0),k="_ alias avg-ks-time b2b client-info event fb fresh ks last-prefix limit lop mid page-type search-keyword plain-mid prefix suffix request-id session-id site-variant version wc asin client-version ni predicted_text_accepted".split(" ");
d=function(){function a(a,b){var c,d,g;this.$=a;this.completionDomain=b.completion||(null===(d=null===(c=b.config)||void 0===c?void 0:c.endpoints)||void 0===d?void 0:d.completion)||f.autocompleteServiceDomain;this.suggestionParams=h(h(h({},b.maxSuggestions?{limit:b.maxSuggestions}:{}),(null===(g=b.config)||void 0===g?0:g.marketplaceId)?{mid:b.config.marketplaceId}:{}),{prefix:"","suggestion-type":["WIDGET","KEYWORD"]});this.isCDNEnabled=!this.completionDomain.includes("completion");this.lastRequest=
(new Date).getTime()}a.prototype.warmupRequest=function(){var a=this;return this.ajaxAction("HeadLatency",function(){return{type:"HEAD",url:"https://"+a.completionDomain+"/api/2017/suggestions",xhrFields:{withCredentials:!0},error:function(a){}}},{},function(){})};a.prototype.getSuggestions=function(a,b){var c=this;return a.alias?this.ajaxAction("RetrieveSuggestionsLatency",function(a){return c.suggestionRequest(a)},a,b):Promise.resolve()};a.prototype.deleteSuggestion=function(a,b,c,d){var e=this;
return this.ajaxAction("DeleteRecentSearchSuggestionLatency",function(a){return e.deleteRecentSearchSuggestionRequest(a,b)},a,this.isCDNEnabled?d:c)};a.prototype.filterSuggestionsRequestParameters=function(a){return Object.keys(a).map(function(b){return[b,a[b]]}).filter(function(a){return k.includes(a[0])}).reduce(function(a,b){var c,d=b[0];b=b[1];return h(h({},a),(c={},c[d]=b,c))},this.suggestionParams)};a.prototype.suggestionRequest=function(a){a=this.filterSuggestionsRequestParameters(a);return{url:"https://"+
this.completionDomain+"/api/2017/suggestions?"+f.paramsToURLParameters(a),dataType:"json",startTime:(new Date).getTime(),xhrFields:{withCredentials:!0},error:function(a){f.logError("RetrieveSuggestionsFailure");f.emitError("RetrieveSuggestionsFailure")}}};a.prototype.deleteRecentSearchSuggestionRequest=function(a,b){this.isCDNEnabled?(b=f.paramsToURLParameters(this.filterSuggestionsRequestParameters(b)),a=a.replace(/mid=[A-z0-9]+&/,""),a="https://"+this.completionDomain+"/api/2017/suggestions?"+b+
"\x26"+a,b="GET"):(a="https://"+this.completionDomain+"/api/2017/recentsearches?"+a,b="DELETE");return{type:b,url:a,dataType:"json",startTime:(new Date).getTime(),xhrFields:{withCredentials:!0},error:function(a){f.logError("DeleteRecentSearchSuggestionFailure");f.emitError("DeleteRecentSearchSuggestionFailure")}}};a.prototype.request=function(a){var b=this;return new Promise(function(c,d){b.$.ajax(a).then(c,function(a,b,c){d(c)})})};a.prototype.ajaxAction=function(a,b,c,d){function e(a){try{d(a)}catch(u){f.logJsError(u,
{attribution:"ajaxAction:callback"})}}var g=this,h=b(c);b=h.error||p;delete h.error;return f.measuredPromise(a,f.timedPromiseWrapper(a,this.request(h))).then(h.startTime?function(a){h.startTime>g.lastRequest&&(g.lastRequest=h.startTime,a.startTime=h.startTime,e(a))}:e,b).catch(function(a){f.logJsError(a,{attribution:"ajaxAction"})})};return a}();a.default=d},function(d,a,b){function h(a){return a.reduce(function(a,b){return a.concat(Array.isArray(b)?h(b):b)},[])}function f(a){return a instanceof Node?
a.parentNode?a.cloneNode(!0):a:document.createTextNode(a===p||null===a?"":a)}b.r(a);b.d(a,"DomKataRuntime",function(){return l});var k=0,l=function(){function a(){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.context={}}ca(a,[{key:"generateInstanceId",value:function(){return"inst"+k++}},{key:"root",value:function(a,b,d){var c=new Set;return h(d).filter(function(a){return!!a}).map(function(a){a=f(a);if(c.has(a))return a.cloneNode(!0);c.add(a);return a})}},{key:"createElement",
value:function(a,b){var c=document.createElement(a);Object.entries(b).forEach(function(a){a=M(a,2);return c.setAttribute(a[0],a[1])});for(var d=arguments.length,g=Array(2<d?d-2:0),k=2;k<d;k++)g[k-2]=arguments[k];h(g).forEach(function(a){return c.appendChild(f(a))});return c}},{key:"assertNotNull",value:function(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(!a.hasOwnProperty(d)||null===d||d===p)throw Error("Required template key is undefined: "+d);}}},{key:"createComment",value:function(a){return document.createComment(a)}},
{key:"createDoctype",value:function(a){return document.implementation.createDocumentType(a,"","")}},{key:"shallowMerge",value:function(a,b){return Object.assign(Object.assign({},a),b)}},{key:"dynamicInstance",value:function(a,b,d){}},{key:"testCondition",value:function(a){return!1}}]);return a}()}]),U="Down ArrowDown Up ArrowUp Left ArrowLeft Right ArrowRight Enter".split(" "),V=["Esc","Escape"],O=document.createElement("div");O.className="autocomplete-results-container";O.id="sac-autocomplete-results-container";
O.role="grid";var P=document.createElement("div");P.className="two-pane-results-container";P.role="rowgroup";var N=document.createElement("div");N.className="left-pane-results-container";var K=document.createElement("div");K.className="right-pane-results-container";var Q=!1;return{init:function(d,a){O.appendChild(P);P.appendChild(N);P.appendChild(K);a.$dropdown[0].appendChild(O);T(a);var b=Y.component({$:C,JSON:JSON,localizedStrings:t,inputBox:F,resultsContainer:O,twoPaneResultsContainer:P,leftPaneResultsContainer:N,
rightPaneResultsContainer:K,cfg:Object.assign({},W,d),endpoints:r,warmup:!0,platform:E,autocompleteContextOverrides:B,flags:I});q.addEventListener("keydown",function(a){F.isSearchBoxFocused()&&(!a.defaultPrevented&&U.includes(a.key)?b.navigationListener(a):V.includes(a.key)&&(F.blurAutocomplete(),S()))},!1);F.isSearchBoxFocused()&&(b.listener(),F.showDropdown(),Z())}}}};G.when("autocomplete-endpoints","autocomplete-translations-localizedStrings","autocomplete-two-pane-widget-only-experience","autocomplete-icons-handler",
"autocomplete-entity-pd","autocomplete-predictive-text","autocomplete-keyword-with-byline-custom-link","autocomplete-nile-desktop-enable-rufus-lite-rac-cx").execute("load autocomplete",function(p,t,B,x,I,C,F,E){q.$Nav.when("$","NavDomApi","sx.iss.Platform","sx.iss.Defaults").build("sx.iss.AutocompleteUXFramework",Y(p,t,{version:3},{},{enableTwoPaneWidgetOnlyExperience:B(),useSuggestionsIcons:x(),entityPD:I(),predictiveText:C(),keywordWithBylineCustomLink:F(),enableRufusLiteExperiment:E()}))});"use strict";
q.$Nav.when("$","sx.iss.AutocompleteUXFramework","NavDomApi").build("sx.iss.IssParentCoordinator",function(p,q,B){return function(r){"undefined"!==typeof r&&r||(r={});var t={$form:B.getForm(),$dropdown:B.getDropdown(),$searchbox:B.getSearchBox(),$aliasDropDown:B.getAliasDropdown()};r.useAmazonEmberFontFamily&&p("head").append('\x3cstyle\x3e.s-suggestion { padding: 8px 10px; font-size: 16px; font-family: "Amazon Ember"; cursor: pointer; }\x3c/style\x3e');B.getForm().data("originalSearchTerm",B.getKeyword());
B.getForm().data("originalAlias",B.getAliasFromDropdown());q.init(r,t)}});"use strict";"use strict";q.$Nav.when("$").build("sx.iss.AttributionUtil",function(p){function q(q,r,t,B){r=p('\x3cinput type\x3d"hidden" /\x3e').attr("id",r).attr("name",t).attr("value",B);q.append(r)}var r=/(ref=[\-\w]+)/;return{setRefTag:function(p,q){var t=p.attr("action");r.test(t)?t=t.replace(r,"ref\x3d"+q):("/"!==t.charAt(t.length-1)&&(t+="/"),t+=q);p.attr("action",t)},setCompletionResponseId:function(r,t){if(t){var x=
p("#isscrid");0<x.length?x.attr("value",t):q(r,"isscrid","crid",t)}},setPrefix:function(r,t){var x=p("#issprefix");0<x.length?x.attr("value",t):q(r,"issprefix","sprefix",t)}}});"use strict";G.register("autocomplete-icons-handler",function(){return function(){return!0}});"use strict";G.register("autocomplete-two-pane-widget-only-experience",function(){return function(){return!0}});"use strict";G.register("autocomplete-entity-pd",function(){return function(){return!1}});"use strict";G.register("autocomplete-predictive-text",
function(){return function(){return!1}});"use strict";G.register("autocomplete-keyword-with-byline-custom-link",function(){return function(){return!1}});"use strict";G.register("autocomplete-nile-desktop-enable-rufus-lite-rac-cx",function(){return function(){return!1}});"use strict";q.$Nav.when().build("kuprr-scoped-search-iss",function(){return!1});"use strict";G.register("mweb-scoping",function(){return function(){return!0}});"use strict";G.register("mweb-suggestion-scoping",function(){return function(){return!1}})});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("RetailSearchAutocompleteAssets@tightTriggerWAEAA","RetailSearchAutocompleteAssets"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("RetailSearchAutocompleteAssets@tightTriggerValidation","RetailSearchAutocompleteAssets"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("RetailSearchAutocompleteAssets@tightTriggerDesktopImprovements","RetailSearchAutocompleteAssets"):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
(function(h){var q=window.AmazonUIPageJS||window.P,t=q._namespace||q.attributeErrors,a=t?t("P13NSharedSitewideJS",""):q;a.guardFatal?a.guardFatal(h)(a,window):a.execute(function(){h(a,window)})})(function(h,q,t){(function(a){h.register("p13n-sc-math",function(){return Math});h.register("p13n-sc-document",function(){return a});h.register("p13n-sc-window",function(){return q});h.register("p13n-sc-undefined",function(){});var e=function(){return"undefined"!==typeof a.hidden?function(){return a.hidden}:
"undefined"!==typeof a.msHidden?function(){return a.msHidden}:"undefined"!==typeof a.webkitHidden?function(){return a.webkitHidden}:function(){return!1}}(),g=function(){return q.P&&q.P.AUI_BUILD_DATE};g()?(h.when("jQuery").register("p13n-sc-jQuery",function(a){return a}),h.when("ready").register("p13n-sc-ready",function(){})):q.amznJQ&&(q.amznJQ.available("jQuery",function(){h.register("p13n-sc-jQuery",function(){return q.amznJQ.jQuery})}),q.amznJQ.onReady("jQuery",function(){h.register("p13n-sc-ready",
function(){})}),q.amznJQ.available("amazonShoveler",function(){h.register("p13n-sc-amznJQ-shoveler",function(){})}));var d=function(a,d){return(a=d.getCarousel(a).dom.$container.data("aCarouselOptions"))&&a.name?a.name:null},k=function(a,d,c){d=c.getCarousel(d);c=d.dom.$container.data("aCarouselOptions");if(!c)return"p13n-sc-carousel-"+a;c.name||(a="p13n-sc-carousel-"+a,c.name=a,d.setAttr("name",a));return c.name};h.register("p13n-sc-util",function(){var a=q.ueLogError;"function"!==typeof a&&(a=function(a,
b){if(b&&b.message)throw Error(b.message);if(a&&a.message)throw Error(a.message);});var m=function(c,b){a({logLevel:c,attribution:"P13NSharedSitewideJS",message:"[p13n-sc] "+b})};return{constants:{DATA_ATTR_P13N_FEATURE_NAME:"p13nFeatureName"},count:q.ue&&q.ue.count||function(){},isAUI:g,isPageHidden:e,getCarouselName:d,createCarouselName:k,log:{warn:function(a){m("WARN",a)},error:function(a){m("ERROR",a)}},parseInt:function(a){return parseInt(a,10)}}})})(document);h.when("p13n-sc-jQuery","p13n-sc-window",
"p13n-sc-util","p13n-sc-undefined").register("p13n-sc-heartbeat",function(a,e,g,d){function k(){a.each(m,function(a,c){c.call(e)})}var n=e.clearInterval,m={},c,b,f=function(){if(!c){var a=e.setInterval(function(){if(a!==c)n(a);else if(!g.isPageHidden()){var f=(new Date).getTime();(!b||200<f-b)&&k();b=(new Date).getTime()}},200);c=a}};return{subscribe:function(a,c){m[a]||(m[a]=c,f())},unsubscribe:function(a){m[a]&&delete m[a];a=!0;for(var b in m)m.hasOwnProperty(b)&&(a=!1);a&&(n(c),c=d)}}});h.when("p13n-sc-jQuery",
"p13n-sc-heartbeat").register("p13n-sc-call-on-visible",function(a,e){function g(){for(var a=k.scrollTop()+k.height(),g=k.scrollLeft()+k.width(),c=d.length-1;0<=c;c--){var b=d[c],f=b.callback,p=b.$element,A=b.distanceY;b=b.distanceX;if(0===p.parents("body").size())d.splice(c,1);else if(!p.is(":hidden")){var r=p.offset();a-A>r.top&&g-b>r.left&&(d.splice(c,1),f.call(null,p[0]))}}0===d.length&&e.unsubscribe("p13n-sc-call-on-visible")}var d=[],k=a(q);return{register:function(n,k,c){var b=c&&"undefined"!==
typeof c.distance?c.distance:0,f=c&&"undefined"!==typeof c.distanceY?c.distanceY:b,p=c&&"undefined"!==typeof c.distanceX?c.distanceX:0;a(n).each(function(){d.push({$element:a(this),callback:k,distanceY:f,distanceX:p})});e.subscribe("p13n-sc-call-on-visible",g)}}});h.when("A","jQuery","p13n-sc-call-on-visible","p13n-sc-util","p13n-sc-math").register("p13n-sc-view-trigger",function(a,e,g,d,k){var n=function(c){function b(){n+=1;e.ajax(g)}var f=e(c);c=f.attr("data-params");var p=f.attr("data-url");if(c&&
p){c=a.parseJSON(c);var d=f.offset();f=[d.top,d.left,f.height(),e(q).width()];c.elementRect=f.join(",");var n=0,g={cache:!0,crossDomain:!1,data:e.param(c,!1),error:function(a){a=a.status||0;3<=n||400<=a&&500>a||setTimeout(b,200*k.pow(2,n))},global:!1,url:p};b()}},m=function(c){var b=e(c);if(1===b.size()){var f=b.attr("data-params");f=f?a.parseJSON(f):{};if(!0===f.allowEmpty||0!==e.trim(b.text()).length){var d=b.height();!0!==f.allowEmpty&&5>d||(d=0,"number"===typeof f.distance&&(d=f.distance),b.attr("data-p13n-sc-vt-initialized")||
(b.attr("data-p13n-sc-vt-initialized",!0),g.register(c,function(){n(c)},{distance:d})))}}};d=function(){a.each(e(".p13n-sc-vt:not([data-p13n-sc-vt-initialized])"),function(a){m(a)})};h.execute(d);h.when("afterReady").execute("p13n-sc-view-trigger:init",d);return{initializeElement:m}});h.when("p13n-sc-jQuery","p13n-sc-util","p13n-sc-window","p13n-sc-document","p13n-sc-ready").register("p13n-sc-logger",function(a,e,g,d){function k(l,c){l=l.attr(c);c={};l!==t&&null!==l&&(c="undefined"!==typeof a.parseJSON?
a.parseJSON(l):eval("("+l+")"));return c}function n(l,c){for(var b=[l.widget,":"],f=0;f<l.asins.length;f++){var d=l.asins[f];b.push(d.asin,"@");a.each(d,function(a,c){"asin"!==a&&b.push(a,"\x3d",c,"|")});b.splice(b.length-1,1);b.push(",")}0<l.asins.length&&b.splice(b.length-1,1);c&&(b.push(":","action\x3d",l.action),a.each(l.meta,function(a,c){b.push(",",a,"\x3d",c)}));return b.join("")}function m(c,b){if((b=k(a(b),"data-p13n-asin-metadata"))&&b.asin){var l=b.asin;(c=k(a(c),"data-p13n-asin-metadata"))&&
a.extend(!0,b,c[l]);return b}}function c(b,c){var l=new Image;e.count("p13n:logger:attempt",1);l.onerror=function(){f++;e.count("p13n:logger:error",1)};l.src=["https:"===d.location.protocol?"https://":"http://",g.ue_furl||"fls-na.amazon.com","/1/p13n-shared-components/1/OP/p13n/",c,["?",a.param(k(a(b.featureElement),"data-p13n-global"))].join("")].join("")}function b(){return 3<f?(p||(e.count("p13n:logger:abort",1),p=!0),!0):!1}var f=0,p=!1,h={},r={},x={logAction:function(l){if(!b())if("featureElement"in
l)if("action"in l){var f=a(l.featureElement);l.widgetViewport&&a(l.widgetViewport);var d=f.offset().left,p=f.width()+d;l.asins=a.map(a(l.featureElement).find(".p13n-asin").filter(":visible"),function(b){var c=a(b).offset().left;if(!(c<d||c>p))return m(f,b)});l.meta=l.meta||{};var g=k(f,"data-p13n-feature-metadata");a.extend(!0,l.meta,g);l.widget=f.attr("data-p13n-feature-name");l.widget in h||(h[l.widget]={});if(0!==l.asins.length){g=[];for(var r=0;r<l.asins.length;r++)l.asins[r].asin in h[l.widget]||
(h[l.widget][l.asins[r].asin]=!0,g.push(l.asins[r]));l.logOnlyOnNew&&0===g.length||(l.logOnlyNew&&0<g.length&&(l.asins=g),g=["action/",[l.widget,"_:",l.action,"@v\x3d",l.eventtime||0,",impressed@v\x3d",l.asins.length].join(""),"/",n(l,!0)].join(""),l.replicateAsinImpressions&&(r=["asin/",n(l,!1)].join(""),g=["batch/",g,"$",r].join("")),c(l,g))}}else e.log.warn("action missing in eventData for logAction");else e.log.warn("featureElement missing in eventData for logAction")},logAsyncAction:function(b){var c=
(new Date).getTime(),f="number"===typeof b.initialDelay?b.initialDelay:400,d="number"===typeof b.timeout?b.timeout:5E3,l=a(b.featureElement);b.widget=l.attr("data-p13n-feature-name");b.widget in r&&g.clearTimeout(r[b.widget]);var p=function(){var a=b.isEventComplete(),f=(new Date).getTime();f-c<d&&!a?r[b.widget]=g.setTimeout(p,150):(a||("meta"in b||(b.meta={}),b.meta.err="notfinished"),b.eventtime=f-c,delete r[b.widget],x.logAction(b))};r[b.widget]=g.setTimeout(p,f)},eventPending:function(b){return a(b).attr("data-p13n-feature-name")in
r},impressAsin:function(f){if(!b())if("featureElement"in f)if("faceoutElement"in f){var d=a(f.faceoutElement),p=a(f.featureElement);f.widget=p.attr("data-p13n-feature-name");f.asins=[m(p,d)];d=["asin/",n(f,!1)].join("");c(f,d)}else e.log.warn("faceoutElement missing in eventData for logAction");else e.log.warn("featureElement missing in eventData for logAction")},resetImpressions:function(a){a in h&&(h[a]={})}};return x});h.when("jQuery","A","p13n-sc-call-on-visible","p13n-sc-logger","ready").register("p13n-sc-faceout-logger",
function(a,e,g,d){var k=function(e,k){e=a(e);var c=a(k);1!==e.length||e.attr("data-p13n-sc-fl-initialized")||(e.attr("data-p13n-sc-fl-initialized",!0),g.register(e,function(){d.logAction({featureElement:c,action:"view",replicateAsinImpressions:!0})}))};e.on("p13n:faceoutsloaded",function(d){a(d).find(".p13n-asin:not([data-p13n-sc-fl-initialized])").each(function(a,c){k(c,d)})})});h.when("A","jQuery").register("p13n-sc-lazy-image-loader",function(a,e){return{loadImages:function(g){a.executeDeferred();
g.find(".p13n-sc-lazy-loaded-img").each(function(d,g){var k=e(g);d=k.find(".a-dynamic-image");d.load(function(){k.removeClass("p13n-sc-lazy-loaded-img")});a.loadDynamicImage(d)})}}});h.when("A","jQuery","p13n-sc-call-on-visible").register("p13n-sc-lazy-widget-loader",function(a,e,g){function d(a,d,g){a.find("."+d).each(function(a,b){a=e(b);b=a.find(".lazy-widget-template");if(b.length){a.append(b.html());b.remove();b=a.find(".lazy-widget-encoded-content");if(b.length)try{var f=decodeURIComponent(b.html());
b.html(f);b.removeClass("lazy-widget-encoded-content")}catch(p){a.addClass("aok-hidden")}g&&g(a)}})}return{revealWidgets:function(){d(e(document),"js-revealed-widget")},revealWhenVisible:function(a,n,h){g.register(a,function(a){d(e(a),"js-onvisible-widget",n)},h)}}});h.when("p13n-sc-jQuery","p13n-sc-util","p13n-sc-math").register("p13n-sc-line-truncator",function(a,e,g){function d(b){this.$element=b;this.$experimentElement=a("\x3cdiv\x3e").addClass("p13n-sc-offscreen-truncate");this.maxRows=b.attr("data-rows");
this.lineHeight=this.getLineHeight();this.maxRows?this.lineHeight||e.log.error("Truncation element does not have a line height or it is zero"):e.log.error("Truncation element missing necessary line number data")}function k(b,f,c){b=b.split(c);var d=g.floor(f.width()/parseInt(f.css("font-size"),10)),p=function(b){b=a("\x3cdiv\x3e").addClass("p13n-sc-offscreen-truncate").css("overflow","hidden").text(b).appendTo(f);var c=b[0].clientWidth>=b[0].scrollWidth;b.remove();return c},e=function(b){var f=b.length-
d;a.trim(b).length>d&&!p(b)&&(b=a.map(b,function(a,b){return b>d&&b<=f&&m.test(a)?"\x26shy;"+a:a}));return b};b=a.map(b,function(a){return e(a)});return b.join("")}var n=/(?=[ \-\/])|(?=[\u3105-\u312F])|(?=[\u31A0-\u31BA])|(?=[\u4E00-\u9FD5])|(?=[\u3400-\u4DB5])|(?=[\uF900-\uFAFF])|(?=[\u3040-\u309F])|(?=[\u30A0-\u30FF])|(?=[\u3190-\u319F])/,m=/[^\/\-\[\]():\s]/;d.prototype.truncate=function(){var b=a.trim(this.$element.html()),f=a.trim(this.$element.text());b=k(b,this.$element,n);this.$element.append(this.$experimentElement);
if(this.checkLineFit(b))this.$experimentElement.remove(),this.$element.html(b);else{var c=this.truncateByToken(b);c?(this.$element.html(c),this.$element.attr({title:f})):e.log.error("Unable to successfully truncate line "+b);this.$experimentElement.remove()}};d.prototype.getLineHeight=function(){var a=this.$element.html();this.$element.html("\x26hellip;");var f=this.$element.innerHeight();this.$element.html(a);return f};d.prototype.checkLineFit=function(a){this.$experimentElement.html(a);a=this.$experimentElement.get(0).clientHeight/
this.lineHeight;return g.round(a)<=this.maxRows};d.prototype.truncateByToken=function(a){a=a.split(n);for(var b=1,c=a.length,d,e,k=0;b!==c;)if(d=g.floor((c+b)/2),e=a.slice(0,d).join("")+"\x26hellip;",this.checkLineFit(e)){if(1>=c-d){for(k=d;0<k&&!m.test(a[k-1]);)k--;break}b=d}else c=d;if(0!==k)return a.slice(0,k).join("")+"\x26hellip;"};var c=function(){};h.when("A").execute("trigger-linestruncated",function(a){c=function(){a.trigger("p13n:linestruncated")}});return{truncateLines:function(b){b.find(".p13n-sc-truncate:visible, .p13n-sc-truncate-medium:visible, .p13n-sc-truncate-sky:visible").each(function(){(new d(a(this))).truncate();
a(this).addClass("p13n-sc-truncated").removeClass("p13n-sc-truncate p13n-sc-truncate-medium p13n-sc-truncate-sky");a(this).removeClass(function(a,b){return(b.match(/p13n-sc-line-clamp-\d/g)||[]).join(" ")})});c()}}});h.when("A","jQuery","p13n-sc-call-on-visible","p13n-sc-logger","p13n-sp-logging").register("p13n-sc-list-logger",function(a,e,g,d,k){a.on("p13n-sc-list-log",function(a,e){d.logAction({featureElement:a,action:e,replicateAsinImpressions:!0});k.logHiddenSponsoredProducts(a)})});h.when("jQuery",
"A","p13n-sc-line-truncator","a-carousel-framework","p13n-sc-util").register("p13n-sc-carousel",function(a,e,g,d,k){function n(a){g.truncateLines(a.carousel.dom.$container)}function m(a){e.loadDynamicImage(a.carousel.dom.$container.find(".p13n-sc-dynamic-image"))}function c(b){b=a(b);var c=b.find(".a-carousel-viewport"),d=0;c.find(".a-carousel-card").each(function(b,c){d=Math.max(d,a(c).height())});0<d&&(c.height(d),b.find(".p13n-sc-sunk-container").addClass("p13n-sc-sunken"))}var b=function(a,b){var f=
k.getCarouselName(b,d);f||(f=k.createCarouselName(a,b,d));a=d.getCarousel(b).dom.$container;g.truncateLines(a);e.loadDynamicImage(a.find(".p13n-sc-dynamic-image"));c(b);e.on("a:carousel:"+f+":change:animating",function(a){n(a);m(a);!1===a.newValue&&c(b)});e.on("a:carousel:"+f+":change:pageSize",function(a){n(a);m(a);c(b)});e.on("a:carousel:"+f+":change:loading",function(a){n(a);m(a);!1===a.newValue&&c(b)})};h.when("afterReady","a-carousel-framework").execute("p13n-sc-carousel-add-truncation",function(){a(".p13n-sc-carousel").each(b)});
return{initializeElement:b}});h.when("A","jQuery","a-carousel-framework","p13n-sc-call-on-visible","p13n-sc-logger","p13n-sc-util","p13n-sp-logging","ready").register("p13n-sc-carousel-logger",function(a,e,g,d,k,h,m){function c(a,b){var c=a.getAttr("pageNumber"),d=a.dom.$container,f=d;d.find(".a-carousel-viewport")&&(f=d.find(".a-carousel-viewport"));d.data("p13nPreviousPage",c);k.logAsyncAction(e.extend(!0,{},{featureElement:d,widgetViewport:f,isEventComplete:function(){return 0===d.find(".a-carousel-card-empty").size()&&
!a.getAttr("animating")},meta:{p:c},replicateAsinImpressions:!0},b))}function b(a){f(a)&&d.register(a.dom.$container,function(){c(a,{action:"view"});m.logHiddenSponsoredProducts(a.dom.$container)})}var f=function(a){return"undefined"===typeof a?!1:a.dom.$container.data(h.constants.DATA_ATTR_P13N_FEATURE_NAME)?!0:!1};a.each(g.getAllCarousels(),function(a){a.dom.$container.hasClass("a-carousel-initialized")&&b(a)});a.on("a:carousel:init",function(a){b(a.carousel)});e(document).delegate(".a-carousel-container[data-p13n-feature-name] .a-carousel-goto-nextpage",
"click",function(a){a=g.getCarousel(a.target);c(a,{action:"shovel_right",logOnlyOnNew:!0})});e(document).delegate(".a-carousel-container[data-p13n-feature-name] .a-carousel-goto-prevpage","click",function(a){a=g.getCarousel(a.target);c(a,{action:"shovel_left",logOnlyOnNew:!0})});e(document).delegate(".a-carousel-container[data-p13n-feature-name] .a-carousel-restart","click",function(a){a=g.getCarousel(a.target);c(a,{action:"start_over",logOnlyOnNew:!0,meta:{op:a.dom.$container.data("p13nPreviousPage")}})});
a.on("a:carousel:change:pageSize",function(a){a=a.carousel;f(a)&&a.dom.$container.hasClass("a-carousel-initialized")&&c(a,{action:"resize",logOnlyOnNew:!0})})});h.when("p13n-sc-jQuery","p13n-sc-window","p13n-sc-document","p13n-sc-call-on-visible","p13n-sc-logger","p13n-sc-util","p13n-sc-amznJQ-shoveler").register("p13n-sc-non-aui-carousel",function(a,e,g,d,k,n){var m=function(b){function c(){var c=t;b.find(".p13nimp, .p13n-asin").each(function(){var b=a(this).outerHeight(!0);b>c&&(c=b)});c>t&&(t=
c,h.animate({height:c},200,"linear"));y||d()}function d(){var a=t/2;b.find("a.next-button, a.back-button").css("top",a);y=!0}n.count("p13n-sc-non-aui-carousel:init",1);var f=b.attr("data-widgetname"),g=a("#"+f+"Data");if(1!==g.length||b.attr("data-p13n-sc-carousel-initialized"))return!1;b.attr("data-p13n-sc-carousel-initialized",!0);var l=g.text().split(","),h=b.find(".shoveler-content \x3e ul"),m="input#"+f+"ShvlState",q=function(){},t=200,y=!1,u=b.find(".shoveler").shoveler(function(b,c){var d=
"undefined"!==typeof e.JSON?JSON.parse(g.attr("data-ajax")):eval("("+g.attr("data-ajax")+")");d.asins=l.slice(b,b+c).join(",");d.count=c;d.offset=b;b=a.param(d);return g.attr("data-url")+"?"+b},l.length,{cellTransformer:function(a){return null===a?"":a},cellChangeSpeedInMs:30,preloadNextPage:!0,prevButtonSelector:"a.back-button",nextButtonSelector:"a.next-button",startOverSelector:"span.start-over",startOverLinkSelector:"a",horizPadding:14,state:{ready:function(){return 0<a(m).val().length},get:function(){return parseInt(a(m).val(),
10)},set:function(b){a(m).val(b)}},onUpdateUIHandler:function(){c();q()}}),z=0,B=function(){var b=a(e).width();z!==b&&(u.updateUI(),z=b)},w=null;b.resize(function(){w&&e.clearTimeout(w);w=e.setTimeout(B,100)});var v=function(c){k.logAsyncAction(a.extend(!0,{},{featureElement:b,isEventComplete:function(){return 0===b.find("li.shoveler-cell.shoveler-progress").size()},replicateAsinImpressions:!0},c))};v({action:"view",meta:{p:u.getCurrentPage()+1}});b.find(".back-button").click(function(){v({action:"shovel_left",
meta:{p:u.getCurrentPage()+1}})});b.find(".next-button").click(function(){v({action:"shovel_right",meta:{p:u.getCurrentPage()+1}})});b.find(".start-over-link").mousedown(function(){v({action:"start_over",meta:{p:1,op:u.getCurrentPage()+1}})});q=function(){k.eventPending(b)||v({action:"resize",page:u.getCurrentPage()+1,logOnlyOnNew:!0,initialDelay:2E3})}},c=function(b){var c={distanceY:-250,distanceX:0};a(b).find(".p13n-sc-nonAUI-carousel").andSelf().filter(".p13n-sc-nonAUI-carousel").each(function(b,
f){d.register(f,function(){m(a(f))},c)})},b=function(){c(g)};b();h.when("p13n-sc-ready").execute("p13n-sc-non-aui-carousel:readyInit",b);return{init:c}});h.when("p13n-sc-jQuery","p13n-sc-util").execute("p13n-sc-carousel-initialization-setup",function(a,e){e.isAUI()?h.when("a-carousel-framework").register("p13n-sc-carousel-init",function(a){return{init:function(){a.createAll()}}}):h.when("p13n-sc-non-aui-carousel").register("p13n-sc-carousel-init",function(a){return{init:function(d){a.init(d)}}})});
h.when("jQuery","A","p13n-sc-call-on-visible","p13n-sc-lazy-image-loader","p13n-sc-line-truncator","p13n-sc-list-logger").register("p13n-sc-static-list",function(a,e,g,d,k){function n(e){this.$container=a(e);d.loadImages(this.$container);k.truncateLines(this.$container)}h.when("afterReady").execute("p13n-sc-static-list:init",function(){function d(a){g.register(a,function(){var b=new n(a);e.trigger("p13n-sc-list-log",b.$container,"view")},c)}var c={distanceY:-500,distanceX:0};a(".p13n-sc-static-list").each(function(a,
c){d(c)})});return n});h.when("A","jQuery","p13n-sc-util").execute("updateDpLink",function(a,e,g){var d=/([?&]preST=)([^&]*)/;a.on("a:image:load:p13nImage",function(a){var k=a.$imageElement[0];if("undefined"!==typeof k&&(g.count("p13n:dynImgCallback",(g.count("p13n:dynImgCallback")||0)+1),k=e(k).closest("a"),0<k.length)){var h=e(k).attr("href"),c=h.match(d);a=a.url.split("/").pop().split(".");e.isArray(a)&&3===a.length&&(a=encodeURIComponent(a[1]),null!==c&&e.isArray(c)&&3===c.length&&c[2]!==a&&(a=
h.replace(d,"$1"+a),e(k).attr("href",a)))}})});h.when("fresh-add-to-cart","a-carousel-framework").execute(function(a,e){a.attachCallbacks({success:function(a,d){(d=a.$target.parents(".p13n-asin").find(".s-add-to-cart-badge-position"))&&d.removeClass("aok-hidden");if((d=a.$declarativeParent.parents(".p13n-sc-carousel"))&&d.data()&&d.data("a-carousel-options")&&d.data("a-carousel-options").name&&(d=d.data("a-carousel-options").name,d=e.getCarouselByName(d),null!==d)){var g=d.getAttr("fetchedItems");
a=a.data.position-1;0<=a&&(g[a]=g[a].replace("aok-hidden",""),d.setAttr("fetchedItems",g))}},error:function(a,d,e,h){a.$target.parents(".p13n-asin").find(".s-add-to-cart-badge-position").addClass("aok-hidden")},clientID:"p13n"})});h.when("A","p13n-sc-heartbeat","a-carousel-framework","p13n-sc-util").execute("p13n-sc-carousel-resize-detector",function(a,e,g,d){var k=a.$;e.subscribe("p13n-sc-carousel-resize-detector",a.throttle(function(){for(var a=k(".p13n-sc-carousel"),e=a.length-1;0<=e;e--){var c=
k(a[e]),b=c.width();if(b){var f=c.data("previous-width");c.data("previous-width",b);f&&b!==f&&(d.count("p13n:carousel:resize",(d.count("p13n:carousel:resize")||0)+1),(c=g.getCarousel(c))&&c.resize())}}},500))});h.when("A","p13n-sc-jQuery","a-modal").execute("desktop-carousel-add-to-list",function(a,e,g){a.declarative("p13n-sc-atl","click",function(d){function e(){var a=d.data.modalFailureMsg;h.find(".p13n-sc-atl-in-progress").hide();b.show();g.create(c,{name:"p13n-sc-failure-modal",content:a,width:400}).show()}
var h=d.$declarativeParent.parents(".p13n-asin"),m=d.data.spinnerHTML,c=h.find(".p13n-sc-atl-alert-row"),b=h.find(".p13n-sc-atl-button");b.hide();c.html(m);g.remove(c);a.post(d.data.addToListURL,{success:function(a){var b=d.data.inlineSuccessHTML,f=d.data.viewListText,g=a.listName,k=a.listExternalId;!a.hasError&&g&&k?(h.find(".p13n-sc-atl-in-progress").hide(),c.html(b),13<g.length&&(g=g.substring(0,10).concat("...")),a=h.find(".p13n-sc-atl-link"),a.attr("href","/hz/wishlist/ls/".concat(k).concat("/ref\x3dsc-atl-lists")),
a.attr("title",f),a.attr("alt",f),a.text(g)):a.hasError&&"INVALID_SESSION_ID"===a.error?q.location.href=a.loginUrl:e()},error:e,params:d.data.listArgs})})})});
/* ******** */
(function(f){var c=window.AmazonUIPageJS||window.P,d=c._namespace||c.attributeErrors,b=d?d("RecentHistoryFooterJS",""):c;b.guardFatal?b.guardFatal(f)(b,window):b.execute(function(){f(b,window)})})(function(f,c,d){f.when("jQuery","ready").execute(function(b){function f(a,e,c){var d=c&&"undefined"!==typeof c.distance?c.distance:0;b(a).each(function(){g={$element:b(this),callback:e,distanceY:d}});y()}function y(){l||(l=t=c.setInterval(function(){var a=t;if(a!==l)c.clearInterval(a);else{var e=(new Date).getTime();
if(!m||200<e-m){e=b(c);e=e.scrollTop()+e.height();var f=g.callback,h=g.distanceY,k=g.$element.offset();e-h>k.top&&(f.call(null,g.$element[0]),g=d)}g||(c.clearInterval(a),l=d);m=(new Date).getTime()}},200))}function h(a,b){c.ue&&"function"===typeof c.ue.count&&c.ue.count(a,b)}function z(){k=new Date;var a=n.rhfHandlerParams;a.cardJSPresent=c.mix_d!==d;a.cardJSPresent&&(p||u.show(),a=b.param(a),b.ajax({url:"/hz/rhf?"+a,timeout:5E3,type:"GET",success:A,error:v}))}function A(a){q=new Date;a&&a.success&&
"object"===typeof a&&"string"===typeof a.html?r.html(a.html):v();k&&q&&h("p13n:rhf:renderingLatency",q.getTime()-k.getTime());p=!0}function v(){p||(r.hide(),w.show())}var p=!1,k,q,g,l,m,t;var n=function(a){try{return"undefined"===typeof b.parseJSON?eval("("+a+")"):b.parseJSON(a)}catch(e){return d}}(b("#rhf-context script").html());var r=b("#rhf-container");var w=b("#rhf-error");var u=b(".rhf-frame");var x=b("#rhf");(function(){if("object"!==typeof n||null===n)return h("p13n:rhf:invalidPage",1),!1;
for(var a=[r,w,u,x],b=0;b<a.length;b++){var c=a[b];if("undefined"===typeof c||"undefined"===typeof c.size||0===c.size())return h("p13n:rhf:expectedElementsMissing",1),!1}return!0})()&&f(x,z,{distance:-400})})});
/* ******** */
(function(c){var a=window.AmazonUIPageJS||window.P,d=a._namespace||a.attributeErrors,b=d?d("InternationalCustomerPreferencesNavAssets",""):a;b.guardFatal?b.guardFatal(c)(b,window):b.execute(function(){c(b,window)})})(function(c,a,d){a.$Nav&&(new MutationObserver(function(b,c){a.google&&a.google.translate&&(ue&&ue.count("googleTranslation",1),c.disconnect())})).observe(document,{attributes:!0,childList:!0,subtree:!0})});
/* ******** */
(function(n){var a=window.AmazonUIPageJS||window.P,p=a._namespace||a.attributeErrors,l=p?p("InternationalCustomerPreferencesNavDesktopAssets",""):a;l.guardFatal?l.guardFatal(n)(l,window):l.execute(function(){n(l,window)})})(function(n,a,p){a.$Nav&&a.$Nav.when("$").run("icp.main",function(g){function h(a,c){if(a=g(c).attr("href"))a=a.replace("preferencesReturnUrl\x3d%2F","preferencesReturnUrl\x3d"+b),g(c).attr("href",a)}var b=encodeURIComponent(a.location.pathname+a.location.search);g("#icp-nav-dialog, #icp-nav-flyout").each(h);
g("#icp-touch-link-language, #icp-touch-link-country, #icp-touch-link-cop").each(h);g("*[id*\x3dicp-flyout-mkt-change]").each(h);a.$Nav.when("$","page.loaded").run("icp.latency_exp",function(a){if(a("#icp-country-button-experiment").length){var g=a("#icp-country-button-experiment").html(),h=a("#icp-country-button-experiment-url").html();h=h.replace("preferencesReturnUrl\x3d%2F","preferencesReturnUrl\x3d"+b);g='\x3ca href\x3d"'+h+'" class\x3d"icp-button a-declarative" id\x3d"icp-touch-link-country"\x3e \x3cspan class\x3d"icp-flag-3 icp-flag-3-jp"\x3e\x3c/span\x3e\x3cspan class\x3d"icp-color-base"\x3e'+
g+"\x3c/span\x3e \x3c/a\x3e";a("#icp-country-button-experiment").replaceWith(a(g));a("#icp-country-button-experiment-url").remove()}})});n={flyoutDataEndpoint:"/customer-preferences/api/flyout/xop-and-country",saveSettingsEndpoint:"/customer-preferences/api/xop"};var l={I18N_PREFERENCES_UI_SERVICE_PROFILES_INTEGRATION_1131528:"C"},v={I18NPREFS_FLYOUT_A11Y_1186053:"C"};"use strict";a.$Nav&&(a.$Nav.when("$","data","flyouts.create","flyouts.accessibility","flyout.icp.language.endpointConfig","flyout.icp.language.saveLanguageAndReloadPage",
"flyout.icp.weblabConfig","flyout.icp.accessiblityweblab").build("flyout.icp.language.builder",function(g,h,b,k,c,l,n,v){var z=c||{},w=n||{},r=function(){return{extractLanguage:function(f){var a=(f||"").indexOf("#switch-lang\x3d");return-1===a?"":f.substr(a+13)},insertLanguage:function(a){return"#switch-lang\x3d"+a}}}(),t,u,x,y=function(a,d){a&&d.push({text:'\x3cspan role\x3d"heading" aria-level\x3d"6"\x3e'+a.changeText+"\x3c/span\x3e"+(a.helpLinkText?' \x3ca href\x3d"'+a.helpLinkHref+'" class\x3d"icp-flyout-learn-more" aria-label\x3d"'+
a.helpLinkAriaText+'"\x3e'+a.helpLinkText+"\x3c/a\x3e":"")})};h.observe("data",function(f){f=f||{};var d=f.languages,e=f.languages&&f.languages.strings||{},g=f.inputs||{},m=e.disclaimer||{},c=f.accessibility||{},b=[];if(d!==p&&d.all!==p&&1<d.all.length){var q=d.strings;"T1"===w.I18N_PREFERENCES_UI_SERVICE_PROFILES_INTEGRATION_1131528?y(q,b):f.cop&&y(q,b);for(q=0;q<d.all.length;q++){var k=d.all[q];var l=k.current?'\x3ci class\x3d"icp-radio icp-radio-active"\x3e\x3c/i\x3e':'\x3ci class\x3d"icp-radio"\x3e\x3c/i\x3e',
n=r.insertLanguage(k.code);k={text:l+k.name,url:n};1===q&&(k.dividerBefore=!d.localeDividerHidden,x=!0);b.push(k)}}m.text?t='\x3cdiv class\x3d"icp-flyout-bottom"\x3e\x3cdiv class\x3d"icp-flyout-disclaimer"\x3e'+m.text+"\x3c/div\x3e\x3c/div\x3e":!f.cop&&e.helpLinkHref&&e.helpLinkText&&"T1"!==w.I18N_PREFERENCES_UI_SERVICE_PROFILES_INTEGRATION_1131528&&b.push({text:'\x3cdiv class\x3d"icp-helplink" aria-label\x3d"'+e.helpLinkAriaText+'"\x3e'+e.helpLinkText+"\x3c/div\x3e",url:e.helpLinkHref});f.cop&&f.currency&&
(e=f.currency,e.strings&&(e=e.strings,b.push({text:'\x3cspan role\x3d"heading" aria-level\x3d"6"\x3e'+e.changeText+"\x3c/span\x3e"+(e.helpLinkText?' \x3ca href\x3d"'+e.helpLinkHref+'" class\x3d"icp-flyout-learn-more" aria-label\x3d"'+e.helpLinkAriaText+'"\x3e'+e.helpLinkText+"\x3c/a\x3e":""),dividerBefore:d!==p&&d.all!==p&&1<d.all.length}),m="\x3cspan\x3e"+e.currencyName+"\x3c/span\x3e",q=encodeURIComponent(a.location.pathname+a.location.search),m+='\x3ca href\x3d"'+e.changeHref.replace("%s",q)+'" class\x3d"icp-flyout-change"\x3e'+
e.changeShortText+"\x3c/a\x3e",b.push({text:m})));f.marketplace&&(e=f.marketplace,m=e.strings,e.country&&m.text&&(b.push({text:'\x3ci class\x3d"icp-flyout-flag icp-flyout-flag-'+e.country+'"\x3e\x3c/i\x3e'+m.text,dividerBefore:d!==p||f.cop&&f.currency!==p}),e.href&&m.link&&b.push({text:'\x3cdiv class\x3d"icp-mkt-change-lnk"\x3e'+m.link+"\x3c/div\x3e",url:e.href,id:"icp-flyout-mkt-change"})));c&&c.flyoutAriaLabel&&(u=c.flyoutAriaLabel);h({icpContent:{template:{name:"itemList",data:{items:b,inputs:g}}}})});
return function(a){a=a||{};var d=b({key:a.name,panelDataKey:"icpContent",link:a.target,event:"icp",arrow:"top",cover:a.isCoverEnabled});d.a11ysetup=function(){if(!opts.suspendTabbing){var a=g(d.elem().find(".nav-flyout-content").find(".nav-link,\x3ea,.icp-flyout-learn-more,.icp-flyout-change"));0<a.length?d.a11y.elems(a):d.a11y.elems(g(d.elem().find("a")))}};d.getPanel().onData(function(e){t&&!d.elem().find(".icp-flyout-bottom").length&&d.elem().append(t);u&&d.elem().attr("aria-label",u);var b=d.elem().find(".nav-divider"),
c=x?1:0;if(b.length>1+c)for(;c<=b.length;c++){var f=b.eq(c);f.addClass("icp-flyout-curr-divider");a.isHeader||(f.hide(),f.nextAll().hide())}b=d.elem().find('a[href*\x3d"#switch-lang"]');c=b.first().nextUntil(b.last(),".nav-divider");f=b.add(c);b.wrap("\x3cli\x3e\x3c/li\x3e");c.wrap("\x3cli aria-hidden\x3d'true'\x3e\x3c/li\x3e");f.parent().wrapAll('\x3cul role\x3d"list"\x3e\x3c/ul\x3e');var k=a.isHeader?"tn":"fo";d.elem().find('a[href*\x3d"#switch-lang"]').each(function(a,b){var c=g(b);a=r.extractLanguage(c.attr("href"));
c.attr("lang",a.replace("_","-"));0<c.find("span:has(i.icp-radio-active)").length&&c.attr("aria-current","true");c.click(function(a){a.preventDefault();a=r.extractLanguage(c.attr("href"));var b="icp_lop_"+a.replace("_","-")+"_"+k;l(g,z.saveSettingsEndpoint+"?ref_\x3d"+b,a,e.template.data.inputs.token)})})});return d}}),a.$Nav.when("provider.ajax","util.Proximity","flyout.icp.language.endpointConfig").build("flyout.icp.language.ajax",function(a,h,b){var g=a({url:b&&b.flyoutDataEndpoint,data:{icpContent:"icp"}}).boundFetch();
return function(a){a.onShow(g);a.link.focus(g);a.link.find("button").first().focus(g);h.onEnter(a.link,[20,40,40,40],g)}}),a.$Nav.declare&&(a.$Nav.declare("flyout.icp.language.endpointConfig",n),a.$Nav.declare("flyout.icp.weblabConfig",l),a.$Nav.declare("flyout.icp.accessiblityweblab",v)),a.$Nav.when("$","flyout.icp.language.builder","flyout.icp.language.ajax","config","page.loaded").run("flyout.icp.language",function(a,h,b,k){var c=a("#icp-nav-flyout");k=!k.primeDay;1===c.length&&b(h({name:"icp",
target:c,isHeader:!0,isCoverEnabled:k}));a=a("#icp-touch-link-language");1===a.find(".icp-up-down-arrow").length&&b(h({name:"icp-footer-flyout",target:a,isHeader:!1}))}));a.$Nav.declare&&a.$Nav.declare("flyout.icp.language.saveLanguageAndReloadPage",function(g,h,b,k){g.ajax({url:h,type:"POST",contentType:"application/json; charset\x3dUTF-8",data:JSON.stringify({lop:b}),headers:{"anti-csrftoken-a2z":k},success:function(c){c=new URLSearchParams(a.location.search);c.set("language",b);a.location.search=
c.toString()}})})});
/* ******** */
(function(k){var m=window.AmazonUIPageJS||window.P,w=m._namespace||m.attributeErrors,b=w?w("GLUXAssets",""):m;b.guardFatal?b.guardFatal(k)(b,window):b.execute(function(){k(b,window)})})(function(k,m,w){k.when("A","GLUXConfig","GLUXWidget","GLUXWidgetController","GLUXRegionData","LocationTypes","GLUXMetrics","GLUXWeblabUtil","GLUXCartConflict","addressChangeConstants","GLUXCartConflictUtil").register("GLUXActionHandler",function(b,g,a,f,c,h,e,d,p,z,n){var t=d.doesWeblabMatchTreatment("PACKARD_GLOBAL_DESKTOP_124721",
d.TREATMENTS.T1),A=d.doesWeblabMatchTreatment("DEX_GLOW_A11Y_POSTAL_CODE_SECTION_1055948",d.TREATMENTS.T1),x=d.doesWeblabMatchTreatment("DEX_GLOW_A11Y_CHOOSE_ADDRESS_1104000",d.TREATMENTS.T1),v=d.doesWeblabMatchTreatment("DEX_GLOW_SPINNER_1231008",d.TREATMENTS.T1),B=b.$("#"+a.IDs.ADDRESS_LIST+" li").length,L=b.$("#"+a.IDs.ADDRESS_LIST_DELIVERY+" li").length,y=b.$("#"+a.IDs.ADDRESS_LIST_PICKUP+" li").length,u=a.INITIAL_DISPLAY_ADDRESS_INDEX&&t?a.INITIAL_DISPLAY_ADDRESS_INDEX:4,r=u,F=u,M=u,I=g.ADDRESS_BOOK_URL,
N=z.ENDPOINT,J=g.SIGNIN_URL,G="input[id^\x3d"+a.IDs.ZIP_UPDATE_INPUT+"]",H=function(a,c,f,e){b.$("#"+a+" li").show();f=e-1;b.$("#"+c).hide();return f},C=function(a,c){b.$("#"+a).show();b.$("[id\x3d"+c+"]").hide()},q=function(l,c,e){if(c===h.TYPE_ADDRESS_ID){var d=!1;k.now("GLUXExternalConfig").execute("updateDestinationHandler",function(a){a!==w&&a.updateDestinationHandler&&(a.updateDestinationHandler(addressID),d=!0)});if(d)return}k.now("packardGlowStoreName").execute("setStoreContext",function(a){a&&
(l.storeContext=a)});l.deviceType="web";l.pageType=m.ue_pty;l.actionSource="glow";l.almBrandId=n.getAlmBrandId();f.resetErrors();var K=c===h.TYPE_ADDRESS_ID&&"FRESH_PICKUP"===e;b.post(N,{headers:{"anti-csrftoken-a2z":a?a.CSRF_TOKEN:"","Content-Type":z.CONTENT_TYPE},params:l,paramsFormat:z.PARAMS_FORMAT,success:function(a){f.handleLocationUpdateResponse(a.sembuUpdated,a.isTransitOutOfAis,c,l,K)},error:function(a){f.handleLocationUpdateResponseError(l,K)}})},O=function(a){return function(b,l){return q(b,
l,a)}},E=function(a){return a.replace(/[^A-Za-z0-9\- ]/g,"")},P=function(){[a.IDs.ADDRESS_LIST,a.IDs.ADDRESS_LIST_DELIVERY,a.IDs.ADDRESS_LIST_PICKUP].forEach(function(a){b.$("#"+a).find(".a-button-selected input").each(function(){this.setAttribute("disabled","disabled")})})},Q=function(){[a.IDs.ADDRESS_LIST,a.IDs.ADDRESS_LIST_DELIVERY,a.IDs.ADDRESS_LIST_PICKUP].forEach(function(a){b.$("#"+a).find(".a-button-selected input").each(function(){this.setAttribute("readonly","readonly");this.setAttribute("aria-pressed",
"true")})})},D=function(){var a=b.$(".GLUX_Popover");a.append('\x3cspan id\x3d"address-spinner" class\x3d"address-spinner-overlay"\x3e\x3cspan class\x3d"a-spinner-medium"\x3e\x3c/span\x3e\x3c/span\x3e');k.when("a-spinner").execute(function(a){a("#address-spinner").show()});a[0].inert=!0;a=document.createElement("div");a.className="glux-desktop-ui-blocker";document.body.appendChild(a)};b.on("a:button-group:GLUXAddresses:toggle",function(l){l=l.selectedButton.buttonName;var c=l.split(":")[0],e=l.split(":")[1];
l=b.$('input[name\x3d"'+String(l)+'"]');var d=l.attr("deliverydestinationtype");if((!x||"readonly"!==l.attr("readonly"))&&"MANAGE_ADDRESS"!==c){f.resetAddressRowState();if(t||A)x?Q():P();var r=h.TYPE_ACCOUNT_ADDRESS;0===parseInt(e,10)&&b.$("#"+a.IDs.DEAFULT_ADDRESS_TEXT).length&&(r=h.TYPE_DEFAULT_ADDRESS);c={locationType:r,addressId:c,totalCustomerAddresses:B,selectedAddressIndex:e,almBrandId:n.getAlmBrandId(),storeRegionId:l.attr("storeregionid"),deviceType:"web"};p.reset();f.clearPostalSelection();
f.clearCountrySelection();f.clearCitySelection();e=l.next().html();b.$("#"+a.IDs.ADDRESS_SUCCESS_PLACEHOLDER).html(e);l.blur();v&&D();c.almBrandId&&c.storeRegionId?n.checkForCartConflict(c,h.TYPE_ADDRESS_ID,O(d),f.hideWidget):q(c,h.TYPE_ADDRESS_ID,d)}});b.on("a:dropdown:GLUXCityList:select",function(c){c=c.value;var l=b.$("#"+a.IDs.CITY_VALUE).text(),e={locationType:h.TYPE_CITY,city:c,cityName:l,almBrandId:n.getAlmBrandId(),deviceType:"web"};v&&D();p.reset();f.clearAddressSelection();f.clearAndReselectCityDropdown(c);
f.clearPostalSelection();f.clearCountrySelection();b.$("#"+a.IDs.ADDRESS_SUCCESS_PLACEHOLDER).html(l);e.almBrandId&&n.unrecCartConflictWeblabEnabled?n.checkForCartConflict(e,h.TYPE_CITY,q,f.hideWidget):q(e,h.TYPE_CITY)});b.on("a:dropdown:GLUXCountryList:select",function(l){l=l.value;var e=b.$("#"+a.IDs.COUNTRY_VALUE).text(),d;v&&D();2<l.length?(d=c.mapRegionCodeToLocationData(l))||(d={locationType:h.TYPE_REGION,addressLabel:l,countryCode:a.COUNTRY_CODE}):d={locationType:h.TYPE_COUNTRY,district:l,
countryCode:l};d.almBrandId=n.getAlmBrandId();d.deviceType="web";p.reset();f.clearPostalSelection();f.clearAddressSelection();f.clearAndReselectCountryDropdown(l);b.$("#"+a.IDs.ADDRESS_SUCCESS_PLACEHOLDER).html(e);d.almBrandId&&n.unrecCartConflictWeblabEnabled?n.checkForCartConflict(d,h.TYPE_COUNTRY,q,f.hideWidget):q(d,h.TYPE_COUNTRY)});b.declarative(a.ACTIONS.MOBILE_BACK,"click touchstart",function(){f.restoreWidget(!0)});b.declarative(a.ACTIONS.MOBILE_CLOSE,"click touchstart",function(){f.hideWidget();
e.logEvent(e.getEvents().view.close)});b.declarative(a.ACTIONS.DELIVERY_TAB,"click",function(){C(a.IDs.LINKS_DELIVERY,a.IDs.LINKS_PICKUP);e.logEvent(e.getEvents().click.tabChangeDelivery)});b.declarative(a.ACTIONS.DELIVERY_TAB,"keyup",function(b){13===b.$event.which&&(C(a.IDs.LINKS_DELIVERY,a.IDs.LINKS_PICKUP),e.logEvent(e.getEvents().click.tabChangeDelivery))});b.declarative(a.ACTIONS.PICKUP_TAB,"click",function(){C(a.IDs.LINKS_PICKUP,a.IDs.LINKS_DELIVERY);e.logEvent(e.getEvents().click.tabChangePickup)});
b.declarative(a.ACTIONS.PICKUP_TAB,"keyup",function(b){13===b.$event.which&&(C(a.IDs.LINKS_PICKUP,a.IDs.LINKS_DELIVERY),e.logEvent(e.getEvents().click.tabChangePickup))});b.declarative(a.ACTIONS.MORE_LINK,"click",function(){u=H(a.IDs.ADDRESS_LIST,a.IDs.MORE_LINK,u,B);e.logEvent(e.getEvents().click.seeMore)});b.declarative(a.ACTIONS.MORE_LINK,"keyup",function(c){13===c.$event.which&&b.$("#"+a.IDs.MORE_LINK).click()});b.declarative(a.ACTIONS.MORE_LINK_DELIVERY,"click",function(){r=H(a.IDs.ADDRESS_LIST_DELIVERY,
a.IDs.MORE_LINK_DELIVERY,r,L);e.logEvent(e.getEvents().click.seeMoreDelivery)});b.declarative(a.ACTIONS.MORE_LINK_DELIVERY,"keyup",function(c){13===c.$event.which&&b.$("#"+a.IDs.MORE_LINK_DELIVERY).click()});b.declarative(a.ACTIONS.MORE_LINK_PICKUP,"click",function(){F=H(a.IDs.ADDRESS_LIST_PICKUP,a.IDs.MORE_LINK_PICKUP,F,y);e.logEvent(e.getEvents().click.seeMorePickup)});b.declarative(a.ACTIONS.MORE_LINK_PICKUP,"keyup",function(c){13===c.$event.which&&b.$("#"+a.IDs.MORE_LINK_PICKUP).click()});b.declarative(a.ACTIONS.MANAGE_ADDRESS_BOOK_LINK,
"click touchstart",function(){m.location.href=I;e.logEvent(e.getEvents().click.manageAddressBook)});b.declarative(a.ACTIONS.MANAGE_ADDRESS_BOOK_LINK,"keyup",function(a){13===a.$event.which&&(m.location.href=I,e.logEvent(e.getEvents().click.manageAddressBook))});b.declarative(a.ACTIONS.SPECIFY_LOCATION_LINK,"click",function(){C(a.IDs.SPECIFY_LOCATION_DIV,a.IDs.SPECIFY_LOCATION_LINK);e.logEvent(e.getEvents().click.showSpecifyLocation)});b.declarative(a.ACTIONS.SPECIFY_LOCATION_LINK,"keyup",function(c){13===
c.$event.which&&b.$("#"+a.IDs.SPECIFY_LOCATION_LINK).click()});b.declarative(a.ACTIONS.POSTAL_UPDATE,"click touchstart",function(){var c=b.$(G);v&&D();if(2===c.length){var e=[];for(var d=0;d<c.length;d++){var r=E(b.$(c[d]).val().toUpperCase());e.push(r);b.$(c[d]).attr("value",r)}d=E(b.$("#"+a.IDs.ZIP_DELIMITER).text()||"");e=e.join(d)}else e=E(b.$("#"+a.IDs.ZIP_UPDATE_INPUT).val()),b.$("#"+a.IDs.ZIP_UPDATE_INPUT).attr("value",e);p.reset();f.clearAddressSelection();f.clearCountrySelection();b.$("#"+
a.IDs.ADDRESS_SUCCESS_PLACEHOLDER).html(e);(c=2===c.length?document.getElementById(a.IDs.ZIP_UPDATE_INPUT+"_0"):document.getElementById(a.IDs.ZIP_UPDATE_INPUT))&&c.focus();(t||A)&&b.$("#"+a.IDs.ZIP_CONFIRMATION_VALUE).html(e);c={locationType:h.TYPE_LOCATION_INPUT,zipCode:e,almBrandId:n.getAlmBrandId(),deviceType:"web"};c.almBrandId&&n.unrecCartConflictWeblabEnabled?n.checkForCartConflict(c,h.TYPE_POSTAL_CODE,q,f.hideWidget):q(c,h.TYPE_POSTAL_CODE)});b.declarative(a.ACTIONS.POSTAL_INPUT,"keyup",function(c){var d=
b.$(G);if(13===c.$event.which)b.$("#"+a.IDs.ZIP_BUTTON).find("input").click(),e.logEvent(e.getEvents().click.keypressEnterPostal);else if(2===d.length){var f=b.$(d[0]),l=b.$(d[1]);c=c.$event.which;String.fromCharCode(c).match(/\w/)?(d=b.$(G),2===d.length&&(c=parseInt(f.attr("maxlength"),10),f=f.val().length,c===f&&l.focus())):8===c&&0===l.val().length&&f.focus()}});b.declarative(a.ACTIONS.MOBILE_COUNTRY_SELECT,"click",function(a){var b=a.data.value;b={locationType:h.TYPE_COUNTRY,district:b,countryCode:b,
almBrandId:n.getAlmBrandId(),deviceType:"web"};a.$currentTarget.addClass("a-active");f.clearPostalSelection();p.reset();f.clearAddressSelection();f.clearAndReselectCountryDropdown(a);b.almBrandId&&n.unrecCartConflictWeblabEnabled?n.checkForCartConflict(b,h.TYPE_COUNTRY,q,f.hideWidget):q(b,h.TYPE_COUNTRY)});b.on("a:popover:beforeHide:glow-modal",function(){b.$("#a-page")[0].inert=!1;f.restoreWidget();e.logEvent(e.getEvents().view.close);r=F=u=M;p.substitute()});b.declarative(a.ACTIONS.MOBILE_CITY_SELECT,
"click",function(a){var b={locationType:h.TYPE_CITY,city:a.data.value,cityName:a.data.name,almBrandId:n.getAlmBrandId(),deviceType:"web"};a.$currentTarget.addClass("a-active");p.reset();f.clearAddressSelection();f.clearAndReselectCityDropdown(a);f.clearPostalSelection();f.clearCountrySelection();b.almBrandId&&n.unrecCartConflictWeblabEnabled?n.checkForCartConflict(b,h.TYPE_CITY,q,f.hideWidget):q(b,h.TYPE_CITY)});b.declarative(a.IDs.MOBILE_CITY_LINK,"touchend",function(a){a.$event.stopPropagation();
a.$event.preventDefault();f.showCitySelection();e.logEvent(e.getEvents().click.citySelector)});b.declarative(a.IDs.MOBILE_POSTAL_CODE_LINK,"touchend",function(a){a.$event.stopPropagation();a.$event.preventDefault();f.showZipCodeInput();e.logEvent(e.getEvents().click.postalInput)});b.declarative(a.IDs.MOBILE_COUNTRY_LINK,"touchend",function(a){a.$event.stopPropagation();a.$event.preventDefault();f.showCountrySelection();e.logEvent(e.getEvents().click.countrySelector)});b.declarative(a.ACTIONS.SIGNIN,
"click touchstart",function(){var a=J+m.location.pathname,b=m.ue_pty;if("Search"===b||"Detail"===b||"FreshMerchandisedContent"===b||"Landing"===b)a+=m.location.search;m.location.href=encodeURI(a);e.logEvent(e.getEvents().click.signIn)});b.declarative(a.ACTIONS.CHANGE_POSTAL_CODE_LINK,"click",function(){f.replacePostalCodeConfirmationWithInput();e.logEvent(e.getEvents().click.changePostalCodeFromConfirm)});b.declarative(a.ACTIONS.CHANGE_POSTAL_CODE_LINK,"keyup",function(c){13===c.$event.which&&b.$("#"+
a.IDs.CHANGE_POSTAL_CODE_LINK).click()});return{STATIC_DEVICE_TYPE:"web",updateDestination:q,sanitize:E,addSpinnerAndDisableElements:D,isAddressThrottleEnabled:v}});k.when("A").register("addressChangeConstants",function(b){return{ENDPOINT:"/portal-migration/hz/glow/address-change?actionSource\x3dglow",PARAMS_FORMAT:"json",CONTENT_TYPE:"application/json"}});"use strict";k.register("GLUXConfig",function(){return{SIGNIN_URL:"/gp/sign-in.html?ie\x3dUTF8\x26useRedirectOnSuccess\x3d1\x26ref_\x3ddex_glow_signin\x26path\x3d",
ADDRESS_BOOK_URL:"/a/addresses",POSTAL_CODE_TO_CITY_LOOKUP_BASE_URL:"/gp/glow/lookup-zipcode.html?"}});k.when("A").execute(function(b){b.on("a:popover:ajaxSuccess:glow-modal",function(b){var a=b.popover;k.when("A","a-modal","GLUXWidget").execute("gluxWidgetInit",function(b,c,h){if(a.isActive()&&1==a.$container.length){if(c=a.$container[0].querySelector(".a-popover-wrapper")){var e=c.offsetWidth;c.classList.add("GLUX_Popover");c.style.left=e-c.offsetWidth+"px"}b.$("#a-page")[0].inert=!0;b=a.$container[0].getElementsByClassName("a-popover-header-content");
1==b.length&&(b=b[0])&&h.GLOW_TITLE&&(b.innerText=h.GLOW_TITLE)}})})});k.when("A","a-modal","GLUXWidget","GLUXRefreshController","GLUXMetrics","GLUXWeblabUtil","LocationTypes","GLUXCartConflict").register("GLUXWidgetController",function(b,g,a,f,c,h,e,d){function p(){var a=b.$("#nav-global-location-slot");(a=g.get(a))&&a.hide();(a=g.get("program_specific_modal"))&&a.hide()}function m(){b.$("#"+a.IDs.ZIP_INPUT_SECTION).hide();b.$("#"+a.IDs.ZIP_CONFIRMATION_SECTION).show()}function n(){b.$("#"+a.IDs.ZIP_CONFIRMATION_SECTION).hide();
b.$("#"+a.IDs.ZIP_INPUT_SECTION).show()}function t(){var c=y?"input[readonly]":"input[disabled]";[a.IDs.ADDRESS_LIST,a.IDs.ADDRESS_LIST_DELIVERY,a.IDs.ADDRESS_LIST_PICKUP].forEach(function(a){b.$("#"+a).find(c).each(function(){y?(this.setAttribute("aria-pressed",!1),this.removeAttribute("readonly")):this.removeAttribute("disabled");b.$(this).parent().parent().removeClass("a-button-focus");b.$(this).parent().parent().removeClass("a-button-selected")})})}function A(d){var e=g.get(b.$("#nav-global-location-slot")),
f=e.getContent();if(f){var h=f.prop("innerHTML"),t=e.attrs("header");d&&(b.$("#"+a.IDs.SUCCESS_SUB_TEXT).addClass("GLUX_Hidden"),b.$("#"+a.IDs.SUCCESS_SUB_TEXT_AIS_EGRESS).removeClass("GLUX_Hidden"));d=b.$("#"+a.IDs.SUCCESS_DIALOG).clone().removeClass("GLUX_Hidden").prop("outerHTML");var r=b.$("#"+a.IDs.SUCCESS_FOOTER).prop("innerHTML"),k=a.CONFIRM_HEADER;0<b.$(f).find("#GLUXHiddenSuccessDialog").length&&(b.state.replace("GLUXInfo",{oldContent:h,oldHeader:t}),e.update({content:d,footer:r,width:375,
header:k}),b.declarative("GLUXConfirmAction","click",p))}else c.logEvent(c.getEvents().error.missingContent)}function x(d){switch(d){case "ADDRESS_ID":b.$("#"+a.IDs.ADDRESS_SET_ERROR).show();c.logEvent(c.getEvents().error.addressSelection);break;case "POSTAL_CODE":b.$("#"+a.IDs.ZIP_ERROR).show();c.logEvent(c.getEvents().error.postalInput);break;case "POSTAL_CODE_SERVER":b.$("#"+a.IDs.ZIP_SERVER_ERROR).show();c.logEvent(c.getEvents().error.postalServer);break;case "COUNTRY":b.$("#"+a.IDs.ADDRESS_SET_ERROR).show();
c.logEvent(c.getEvents().error.addressSelection);break;case "POSTAL_CODE_WITH_CITY":b.$("#"+a.IDs.POSTAL_CODE_WITH_CITY_ERROR_MSG).removeClass("GLUX_Hidden"),c.logEvent(c.getEvents().error.postalCodeWithCityInput)}}function v(){var a=b.$(".GLUX_Popover"),c=b.$("#address-spinner");c&&c.remove();a[0].inert=!1;(a=document.querySelector(".glux-desktop-ui-blocker"))&&a.parentNode.removeChild(a)}var B=h.doesWeblabMatchTreatment("PACKARD_GLOBAL_DESKTOP_124721",h.TREATMENTS.T1),w=h.doesWeblabMatchTreatment("DEX_GLOW_A11Y_POSTAL_CODE_SECTION_1055948",
h.TREATMENTS.T1),y=h.doesWeblabMatchTreatment("DEX_GLOW_A11Y_CHOOSE_ADDRESS_1104000",h.TREATMENTS.T1),u=h.doesWeblabMatchTreatment("DEX_GLOW_SPINNER_1231008",h.TREATMENTS.T1);return{handleLocationUpdateResponse:function(t,g,n,z,y){u&&v();if(t){0<b.$("#"+a.IDs.ZIP_UPDATE_INPUT).length&&b.$("#"+a.IDs.ZIP_UPDATE_INPUT).attr("aria-invalid",!1);if(n===e.TYPE_ADDRESS_ID||h.checkUnrecognisedCartConflictWeblabEnabledAndRecordTrigger())try{d.resolve()}catch(J){c.logEvent(c.getEvents().cartConflict.uncaughtExceptionError)}B||
w?g?(A(g),f.subscribeAfterHidePopoverEvent()):("POSTAL_CODE"===n&&m(),k.when("CondoEvents").execute(function(a){b.trigger(a.FEATURE_NOTIFY,"AddressList","CustomerIntent")})):g?(A(g),f.subscribeAfterHidePopoverEvent()):(p(),k.when("CondoEvents").execute(function(a){b.trigger(a.FEATURE_NOTIFY,"AddressList","CustomerIntent")}));c.logLocationChange(n)}else 0<b.$("#"+a.IDs.ZIP_UPDATE_INPUT).length&&b.$("#"+a.IDs.ZIP_UPDATE_INPUT).attr("aria-invalid",!0),x(n),y&&c.logAlmPickupError("GLOW error while selecting pickup addressId:"+
z.addressId)},handleLocationUpdateResponseError:function(a,b){u&&v();x("POSTAL_CODE_SERVER");b&&c.logAlmPickupError("Server error while selecting pickup addressId:"+a.addressId)},resetErrors:function(){b.$("#"+a.IDs.ADDRESS_SET_ERROR).hide();b.$("#"+a.IDs.ZIP_ERROR).hide();b.$("#"+a.IDs.ZIP_SERVER_ERROR).hide()},restoreWidget:function(){k.when("CondoAPI").execute(function(a){a.restoreTakeover()})},hideWidget:p,resetAddressRowState:t,clearAddressSelection:function(){[a.IDs.ADDRESS_LIST,a.IDs.ADDRESS_LIST_DELIVERY,
a.IDs.ADDRESS_LIST_PICKUP].forEach(function(a){b.$("#"+a+" li\x3espan\x3espan").removeClass("a-button-selected");b.$("#"+a+" li\x3espan\x3espan").removeClass("a-button-focus")});t()},clearPostalSelection:function(){(B||w)&&n();var c="input[id^\x3d"+a.IDs.ZIP_UPDATE_INPUT+"]";b.$(c).val("");b.$(c).attr("value","")},clearCountrySelection:function(){var c=a.COUNTRY_LIST_PLACEHOLDER;b.$("#"+a.IDs.COUNTRY_VALUE).text(c);b.$("#"+a.IDs.COUNTRY_LIST_DROPDOWN).removeClass("a-button-focus")},clearCitySelection:function(){var c=
a.CITY_LIST_PLACEHOLDER;b.$("#"+a.IDs.CITY_VALUE).text(c);b.$("#"+a.IDs.CITY_LIST_DROPDOWN).removeClass("a-button-focus")},clearAndReselectCountryDropdown:function(c){b.$("#"+a.IDs.COUNTRY_LIST+' optgroup option[selected\x3d"selected"]').each(function(){b.$(this).removeAttr("selected")});(c=b.$("#"+a.IDs.COUNTRY_LIST+' optgroup option[value\x3d"'+c+'"]'))&&b.$(c).attr("selected","selected")},clearAndReselectCityDropdown:function(c){b.$("#"+a.IDs.CITY_LIST+' optgroup option[selected\x3d"selected"]').each(function(){b.$(this).removeAttr("selected")});
(c=b.$("#"+a.IDs.CITY_LIST+' optgroup option[value\x3d"'+c+'"]'))&&b.$(c).attr("selected","selected")},replacePostalCodeInputWithConfirmation:m,replacePostalCodeConfirmationWithInput:n}});k.when("A").register("GLUXRefreshController",function(b){function g(){b.trigger("packard:glow:destinationChangeNav")}return{notifyDestinationChangeNav:g,subscribeAfterHidePopoverEvent:function(){b.on("a:popover:afterHide:glow-modal",function(){g();b.off("a:popover:afterHide:glow-modal")})},getAfterHidePopoverEvent:"a:popover:afterHide:glow-modal"}});
"use strict";k.when("A","jQuery","GLUXMetrics","GLUXWeblabUtil","LocationTypes").register("GLUXCartConflict",function(b,g,a,f,c){function h(){if(null==d)return!1;var a=["almBrandId","locationType","storeContext","deviceType"];if(d.locationType===c.TYPE_LOCATION_INPUT)a.push("zipCode");else if(d.locationType===c.TYPE_DEFAULT_ADDRESS||d.locationType===c.TYPE_ACCOUNT_ADDRESS)a.push("storeRegionId","addressId");else if(d.locationType===c.TYPE_GPS_INPUT)a.push("latitude","longitude");else if(d.locationType===
c.TYPE_REGION)a.push("addressLabel","countryCode");else if(d.locationType===c.TYPE_COUNTRY)a.push("district","countryCode");else if(d.locationType===c.TYPE_CITY)a.push("city");else if(d.locationType===c.TYPE_PCD)a.push("city","state","district");else if(d.locationType===c.TYPE_POSTAL_CODE_WITH_CITY)a.push("city","zipCode");else return!1;return a.every(function(a){return d.hasOwnProperty(a)})}function e(a){a.brandId=d.almBrandId;a.client="glow";a.newLocation=JSON.stringify(p);d.storeRegionId&&(a.newRegionId=
d.storeRegionId);d.addressId&&(a.newAddressId=d.addressId);return a}var d=null,p=null,k=!0,n=f.doesWeblabMatchTreatment("PACKARD_GLOBAL_DESKTOP_124721",f.TREATMENTS.T1);return{reset:function(){p=d=null;k=!0},getConflictSummary:function(c){d=c.data;if(h()){p={postalCode:d.zipCode,destinationId:d.addressId,countryCode:d.countryCode,provinceOrState:d.state,city:d.cityName?d.cityName:d.city,districtOrCounty:d.district,geocode:{latitude:d.latitude,longitude:d.longitude}};var f={};f=e(f);b.post("/afx/cartconflicts/getconflictsummary",
{timeout:5E3,success:function(a){!1===a.isSuccess||!1===a.canShopRegion||!1===a.hasConflicts?(k=!1,c.updateDestination(d,c.addressType)):(k=!0,n||c.hideWidget())},error:function(){a.logEvent(a.getEvents().cartConflict.getSummaryError);c.updateDestination(d,c.addressType)},params:f})}else a.logEvent(a.getEvents().cartConflict.validateDataError),c.updateDestination(d,c.addressType)},resolve:function(){if(h()){var c={};c=e(c);b.post("/afx/cartconflicts/resolve",{timeout:5E3,success:function(){a.logEvent(a.getEvents().cartConflict.resolveSuccess)},
error:function(){a.logEvent(a.getEvents().cartConflict.resolveError)},params:c})}},substitute:function(){try{if(h()&&k){var b={deviceType:d.deviceType,locationType:d.locationType,storeContext:d.storeContext,sourceUrl:m.location.pathname+m.location.search};b=e(b);var c=g.param(b);a.logEvent(a.getEvents().cartConflict.substituteSuccess);m.location.href="/afx/cartconflicts/resolve/substitute?"+c}}catch(x){a.logEvent(a.getEvents().cartConflict.substituteError)}}}});k.when("A","GLUXWidget").register("LocationTypes",
function(b,g){return{TYPE_LOCATION_INPUT:"LOCATION_INPUT",TYPE_DEFAULT_ADDRESS:"DEFAULT_ADDRESS",TYPE_ACCOUNT_ADDRESS:"ACCOUNT_ADDRESS",TYPE_ADDRESS_ID:"ADDRESS_ID",TYPE_POSTAL_CODE:"POSTAL_CODE",TYPE_POSTAL_CODE_WITH_CITY:"POSTAL_CODE_WITH_CITY",TYPE_GPS_INPUT:"GPS_INPUT",TYPE_COUNTRY:"COUNTRY",TYPE_CITY:"CITY",TYPE_REGION:"REGION",TYPE_PCD:"PCD"}});k.when("A").register("lookupPlacesConstants",function(b){return{EU_ENDPOINT:"https://addresssuggest-eu.amazon.com/v1/lookup/places",PARAMS_FORMAT:"json",
CONTENT_TYPE:"application/json"}});k.when("A").register("lookupZipcodeConstants",function(b){return{ENDPOINT:"/portal-migration/hz/glow/lookup-zipcode",IS_HORIZONTE:!0}});k.when("A","GLUXWidget","LocationTypes").register("GLUXRegionData",function(b,g,a){var f={"FR-CH":{countryCode:"FR",zipCode:"20000"}};return{getRegions:function(){return f},mapRegionCodeToLocationData:function(b){b=f.hasOwnProperty(b)?{addressLabel:b,countryCode:f[b].countryCode,zipCode:f[b].zipCode,locationType:a.TYPE_REGION}:null;
return b}}});k.when("A","ready","navCF").execute(function(b){b=b.$;var g=m.ue_pty;if(g&&("Detail"===g||"DetailAW"===g)&&0!==b("#glow-ingress-block").length&&(g=b("#addToCart"),0!==g.length)){if(0===b("#addToCart input[name\x3ddropdown-selection]").length){var a=b("#nav-global-location-slot #unifiedLocation1ClickAddress");0!==a.length&&a.clone().attr("id","cartAddressNew").appendTo(g)}0===b("#addToCart input[name\x3ddropdown-selection-ubb]").length&&(b=b("#nav-global-location-slot #ubbShipTo"),0!==
b.length&&b.clone().attr("id","cartAddressUsed").appendTo(g))}});k.when("A","GLUXWidget").register("GLUXMetrics",function(b){function g(a,b,e){m.ueLogError&&a&&m.ueLogError({message:a},{logLevel:b||"ERROR",attribution:e||"GLOW"})}function a(a){m.ue?m.ue.count(a,(m.ue.count(a)||0)+1):g("Failed to increment metrics counter: "+a+" because window.ue is not present.","ERROR","GLOW")}var f={click:{signIn:"click.signIn",seeMore:"click.seeMore",seeMoreDelivery:"click.seeMoreDelivery",seeMorePickup:"click.seeMorePickup",
tabChangeDelivery:"click.tabDelivery",tabChangePickup:"click.tabPickup",postalInput:"click.postalInput",postalCodeWithCityInput:"click.postalCodeWithCityInput",gpsInput:"click.gpsInput",countrySelector:"click.countrySelector",citySelector:"click.citySelector",cityWithDistrictSelector:"click.cityWithDistrictSelector",keypressEnterPostal:"click.keypressEnterPostal",manageAddressBook:"click.manageAddressBook",showSpecifyLocation:"click.showSpecifyLocation",changePostalCodeFromConfirm:"click.changePostalCodeFromConfirm",
freshPickupLocationC:"click.freshPickupLocationC",freshPickupLocationT1:"click.freshPickupLocationT1"},postalCodeLookup:{ajaxSuccessWithValidResponse:"postalCodeLookup.ajaxSuccessWithValidResponse",ajaxSuccessWithEmptyCityListOrErrorMessage:"postalCodeLookup.ajaxSuccessWithEmptyCityListOrErrorMessage",ajaxFailure:"postalCodeLookup.ajaxFailure"},placesLookup:{ajaxSuccessWithValidResponse:"placesLookup.ajaxSuccessWithValidResponse",ajaxSuccessWithEmptyCityListOrErrorMessage:"placesLookup.ajaxSuccessWithEmptyCityListOrErrorMessage",
ajaxSuccessWithEmptyDistrictListOrErrorMessage:"placesLookup.ajaxSuccessWithEmptyDistrictListOrErrorMessage",ajaxFailure:"placesLookup.ajaxFailure"},view:{open:"view.open",close:"view.close"},error:{addressSelection:"error.addressSelection",postalInput:"error.postalInput",postalServer:"error.postalServer",postalCodeWithCityInput:"error.postalCodeWithCityInput",gpsInput:"error.gpsInput",missingContent:"error.getContent",pcdInput:"error.pcdInput"},cartConflict:{getSummarySuccess:"success.cartConflict.getConflictSummary",
getSummaryError:"error.cartConflict.getConflictSummary",resolveSuccess:"success.cartConflict.resolve",resolveError:"error.cartConflict.resolve",substituteSuccess:"success.cartConflict.substitute",substituteError:"error.cartConflict.substitute",validateDataError:"error.cartConflict.data",uncaughtExceptionError:"error.cartConflict.uncaughtException"},locationChange:"locationChange"};return{getPageType:function(){return m.ue_pty},getEvents:function(){return f},logLocationChange:function(b){a("GLOW."+
f.locationChange+"."+b)},logEvent:function(b){a("GLOW."+b)},logError:g,logAlmPickupError:function(a){g(a,"ERROR","glow-alm-pickup-selection-error")}}});k.when("A","GLUXWidget").register("GLUXWeblabUtil",function(b,g){function a(a,b){return g.WEBLABS&&g.WEBLABS[a]===b}return{TREATMENTS:{C:"C",T1:"T1",T2:"T2"},doesWeblabMatchTreatment:a,checkUnrecognisedCartConflictWeblabEnabledAndRecordTrigger:function(){var b=a("F3_RENDER_ATC_FOR_UNREC_CUSTOMERS_582065","T1"),c=a("F3_ALM_UNREC_SHOPPING_EXPERIMENT_576789",
"T1");b=b&&c;!b&&a("F3_ALM_SHOP_BY_LOCATION_716181","T1")&&g.WEBLABS&&g.WEBLABS.F3_ALM_SHOP_BY_LOCATION_EXPERIMENT_727241&&(b=g.WEBLABS.F3_ALM_SHOP_BY_LOCATION_EXPERIMENT_727241,m.ue&&"function"===typeof m.ue.trigger&&m.ue.trigger("F3_ALM_SHOP_BY_LOCATION_EXPERIMENT_727241",b),b="T1"===b);return b}}});k.when("A","lookupPlacesConstants","GLUXMetrics").register("cityWithDistrictUtil",function(b,g,a){var f={"en-ae":"en_AE","ar-ae":"ar_AE"};return{fetchCitiesSA:function(c){var f={partialAddress:{countryCode:"SA"},
locale:"",dataLevelRequested:"city",compressResponse:!0},e=0,d=function(){b.post(g.EU_ENDPOINT,{params:f,paramsFormat:g.PARAMS_FORMAT,contentType:g.CONTENT_TYPE,success:function(b){b=b.places.map(function(a){return{city:a.address.city,state:a.address.state}});0===b.length&&a.logEvent(a.getEvents().placesLookup.ajaxSuccessWithEmptyCityListOrErrorMessage);a.logEvent(a.getEvents().placesLookup.ajaxSuccessWithValidResponse);c(b)},error:function(){a.logEvent(a.getEvents().placesLookup.ajaxFailure);1>e?
(e++,d()):c([])}})};d()},fetchDistrictsSA:function(c,f,e){if(c&&f){var d=0,h={partialAddress:{countryCode:"SA",city:c,state:f},locale:"",dataLevelRequested:"city",compressResponse:!0},k=function(){b.post(g.EU_ENDPOINT,{params:h,paramsFormat:g.PARAMS_FORMAT,contentType:g.CONTENT_TYPE,success:function(b){b=b.places.map(function(a){return a.address.district});0===b.length&&a.logEvent(a.getEvents().placesLookup.ajaxSuccessWithEmptyDistrictListOrErrorMessage);a.logEvent(a.getEvents().placesLookup.ajaxSuccessWithValidResponse);
e(b)},error:function(){a.logEvent(a.getEvents().placesLookup.ajaxFailure);1>d?(d++,k()):e([])}})};k()}else e([])},sortFilteredResultsBasedOnLocale:function(a){if(0!==a.length){var c=b.$("html").attr("lang");switch(b.$.trim(f[c]||"en_AE").toLowerCase()){case "en_ae":a.sort(function(a,b){return a.city.localeCompare(b.city)});break;case "ar_ae":a.sort(function(a,b){a=a.city;b=b.city;if(0===a.length&&0===b.length)return-1;if(0===a.length)return 1;if(0===b.length)return-1;var c=/[a-zA-Z0-9]/,d=c.test(a.toString().charAt(0));
c=c.test(b.toString().charAt(0));return d===c?a.localeCompare(b):c?-1:1})}return a}}}});k.when("A","GLUXWeblabUtil","GLUXCartConflict").register("GLUXCartConflictUtil",function(b,g,a){var f=function(){var a={};m.location.href.replace(/[?&]+([^=&]+)=([^&#]*)/gi,function(b,c,d){a[c]=d});return a};return{getAlmBrandId:function(){return f().almBrandId},checkForCartConflict:function(b,f,e,d){null!=b&&("web"===b.deviceType?k.now("packardGlowStoreName").execute("setStoreContext",function(a){a&&(b.storeContext=
a)}):k.now("glowMobileStoreName").execute("setStoreContext",function(a){a&&(b.storeContext=a)}));a.getConflictSummary({data:b,addressType:f,updateDestination:e,hideWidget:d})},unrecCartConflictWeblabEnabled:g.checkUnrecognisedCartConflictWeblabEnabledAndRecordTrigger()}})});
/* ******** */
/*
 CryptoJS v3.1.2
 code.google.com/p/crypto-js
 (c) 2009-2013 by Jeff Mott. All rights reserved.
 code.google.com/p/crypto-js/wiki/License
*/
(function(w){var v=window.AmazonUIPageJS||window.P,B=v._namespace||v.attributeErrors,y=B?B("AssociatesSiteStripeJS","AssociatesSiteStripeJS"):v;y.guardFatal?y.guardFatal(w)(y,window):y.execute(function(){w(y,window)})})(function(w,v,B){var y=y||function(d,p){var l={},e=l.lib={},c=function(){},r=e.Base={extend:function(a){c.prototype=this;var b=new c;a&&b.mixIn(a);b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)});b.init.prototype=b;b.$super=this;return b},create:function(){var a=
this.extend();a.init.apply(a,arguments);return a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},q=e.WordArray=r.extend({init:function(a,b){a=this.words=a||[];this.sigBytes=b!=p?b:4*a.length},toString:function(a){return(a||k).stringify(this)},concat:function(a){var b=this.words,n=a.words,m=this.sigBytes;a=a.sigBytes;this.clamp();if(m%4)for(var c=
0;c<a;c++)b[m+c>>>2]|=(n[c>>>2]>>>24-c%4*8&255)<<24-(m+c)%4*8;else if(65535<n.length)for(c=0;c<a;c+=4)b[m+c>>>2]=n[c>>>2];else b.push.apply(b,n);this.sigBytes+=a;return this},clamp:function(){var a=this.words,b=this.sigBytes;a[b>>>2]&=4294967295<<32-b%4*8;a.length=d.ceil(b/4)},clone:function(){var a=r.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var b=[],n=0;n<a;n+=4)b.push(4294967296*d.random()|0);return new q.init(b,a)}}),u=l.enc={},k=u.Hex={stringify:function(a){var b=
a.words;a=a.sigBytes;for(var n=[],c=0;c<a;c++){var m=b[c>>>2]>>>24-c%4*8&255;n.push((m>>>4).toString(16));n.push((m&15).toString(16))}return n.join("")},parse:function(a){for(var b=a.length,c=[],n=0;n<b;n+=2)c[n>>>3]|=parseInt(a.substr(n,2),16)<<24-n%8*4;return new q.init(c,b/2)}},b=u.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],n=0;n<a;n++)c.push(String.fromCharCode(b[n>>>2]>>>24-n%4*8&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],n=0;n<b;n++)c[n>>>2]|=
(a.charCodeAt(n)&255)<<24-n%4*8;return new q.init(c,b)}},t=u.Utf8={stringify:function(a){try{return decodeURIComponent(escape(b.stringify(a)))}catch(N){throw Error("Malformed UTF-8 data");}},parse:function(a){return b.parse(unescape(encodeURIComponent(a)))}},m=e.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new q.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=t.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b=this._data,c=
b.words,m=b.sigBytes,n=this.blockSize,e=m/(4*n);e=a?d.ceil(e):d.max((e|0)-this._minBufferSize,0);a=e*n;m=d.min(4*a,m);if(a){for(var l=0;l<a;l+=n)this._doProcessBlock(c,l);l=c.splice(0,a);b.sigBytes-=m}return new q.init(l,m)},clone:function(){var a=r.clone.call(this);a._data=this._data.clone();return a},_minBufferSize:0});e.Hasher=m.extend({cfg:r.extend(),init:function(a){this.cfg=this.cfg.extend(a);this.reset()},reset:function(){m.reset.call(this);this._doReset()},update:function(a){this._append(a);
this._process();return this},finalize:function(a){a&&this._append(a);return this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,c){return(new a.init(c)).finalize(b)}},_createHmacHelper:function(b){return function(c,m){return(new a.HMAC.init(b,m)).finalize(c)}}});var a=l.algo={};return l}(Math);(function(d){function p(b,a,c,e,l,k,d){b=b+(a&c|~a&e)+l+d;return(b<<k|b>>>32-k)+a}function l(b,a,c,e,l,k,d){b=b+(a&e|c&~e)+l+d;return(b<<k|b>>>32-k)+a}function e(b,a,c,e,l,k,d){b=b+
(a^c^e)+l+d;return(b<<k|b>>>32-k)+a}function c(b,a,c,e,l,k,d){b=b+(c^(a|~e))+l+d;return(b<<k|b>>>32-k)+a}var r=y,q=r.lib,u=q.WordArray,k=q.Hasher;q=r.algo;for(var b=[],t=0;64>t;t++)b[t]=4294967296*d.abs(d.sin(t+1))|0;q=q.MD5=k.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,a){for(var n=0;16>n;n++){var k=a+n,d=m[k];m[k]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}n=this._hash.words;k=m[a+0];d=m[a+1];var q=m[a+2],r=m[a+
3],t=m[a+4],u=m[a+5],v=m[a+6],w=m[a+7],F=m[a+8],C=m[a+9],z=m[a+10],E=m[a+11],A=m[a+12],K=m[a+13],x=m[a+14];m=m[a+15];a=n[0];var f=n[1],h=n[2],g=n[3];a=p(a,f,h,g,k,7,b[0]);g=p(g,a,f,h,d,12,b[1]);h=p(h,g,a,f,q,17,b[2]);f=p(f,h,g,a,r,22,b[3]);a=p(a,f,h,g,t,7,b[4]);g=p(g,a,f,h,u,12,b[5]);h=p(h,g,a,f,v,17,b[6]);f=p(f,h,g,a,w,22,b[7]);a=p(a,f,h,g,F,7,b[8]);g=p(g,a,f,h,C,12,b[9]);h=p(h,g,a,f,z,17,b[10]);f=p(f,h,g,a,E,22,b[11]);a=p(a,f,h,g,A,7,b[12]);g=p(g,a,f,h,K,12,b[13]);h=p(h,g,a,f,x,17,b[14]);f=p(f,
h,g,a,m,22,b[15]);a=l(a,f,h,g,d,5,b[16]);g=l(g,a,f,h,v,9,b[17]);h=l(h,g,a,f,E,14,b[18]);f=l(f,h,g,a,k,20,b[19]);a=l(a,f,h,g,u,5,b[20]);g=l(g,a,f,h,z,9,b[21]);h=l(h,g,a,f,m,14,b[22]);f=l(f,h,g,a,t,20,b[23]);a=l(a,f,h,g,C,5,b[24]);g=l(g,a,f,h,x,9,b[25]);h=l(h,g,a,f,r,14,b[26]);f=l(f,h,g,a,F,20,b[27]);a=l(a,f,h,g,K,5,b[28]);g=l(g,a,f,h,q,9,b[29]);h=l(h,g,a,f,w,14,b[30]);f=l(f,h,g,a,A,20,b[31]);a=e(a,f,h,g,u,4,b[32]);g=e(g,a,f,h,F,11,b[33]);h=e(h,g,a,f,E,16,b[34]);f=e(f,h,g,a,x,23,b[35]);a=e(a,f,h,g,
d,4,b[36]);g=e(g,a,f,h,t,11,b[37]);h=e(h,g,a,f,w,16,b[38]);f=e(f,h,g,a,z,23,b[39]);a=e(a,f,h,g,K,4,b[40]);g=e(g,a,f,h,k,11,b[41]);h=e(h,g,a,f,r,16,b[42]);f=e(f,h,g,a,v,23,b[43]);a=e(a,f,h,g,C,4,b[44]);g=e(g,a,f,h,A,11,b[45]);h=e(h,g,a,f,m,16,b[46]);f=e(f,h,g,a,q,23,b[47]);a=c(a,f,h,g,k,6,b[48]);g=c(g,a,f,h,w,10,b[49]);h=c(h,g,a,f,x,15,b[50]);f=c(f,h,g,a,u,21,b[51]);a=c(a,f,h,g,A,6,b[52]);g=c(g,a,f,h,r,10,b[53]);h=c(h,g,a,f,z,15,b[54]);f=c(f,h,g,a,d,21,b[55]);a=c(a,f,h,g,F,6,b[56]);g=c(g,a,f,h,m,10,
b[57]);h=c(h,g,a,f,v,15,b[58]);f=c(f,h,g,a,K,21,b[59]);a=c(a,f,h,g,t,6,b[60]);g=c(g,a,f,h,E,10,b[61]);h=c(h,g,a,f,q,15,b[62]);f=c(f,h,g,a,C,21,b[63]);n[0]=n[0]+a|0;n[1]=n[1]+f|0;n[2]=n[2]+h|0;n[3]=n[3]+g|0},_doFinalize:function(){var b=this._data,a=b.words,c=8*this._nDataBytes,k=8*b.sigBytes;a[k>>>5]|=128<<24-k%32;var e=d.floor(c/4294967296);a[(k+64>>>9<<4)+15]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360;a[(k+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360;b.sigBytes=4*(a.length+
1);this._process();b=this._hash;a=b.words;for(c=0;4>c;c++)k=a[c],a[c]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360;return b},clone:function(){var b=k.clone.call(this);b._hash=this._hash.clone();return b}});r.MD5=k._createHelper(q);r.HmacMD5=k._createHmacHelper(q)})(Math);"use strict";w.when("A","amzn-ss-app-config","amzn-ss-make-xhr").register("amzn-ss-link-id",function(d,p,l){var e=function(c){if("string"!==typeof c.tag)throw Error("Invalid Tag");var e=c.linkCode,d=c.toolCreation,u=parseInt(p.getMarketplaceId(),
10),k={p_parameter:"SS v2",test_name:p.getTestName()},b;if("string"!==typeof e||2>e.length||3<e.length)throw Error("Invalid LinkCode");if("string"!==typeof d||null===d.match(/^(AC|SS|Pubstudio|Feeds|PAAPI)$/i))throw Error("Invalid ToolCreation");if(isNaN(u))throw Error("Invalid Marketplace");e=p.getSushiEelUrl();for(b in c)c.hasOwnProperty(b)&&(k[b]=c[b]);k.createTime=(new Date).getTime();try{var t=y.MD5(JSON.stringify(k)).toString()}catch(m){t="z7b5638deb81af5805803e8dc94cfdez"}this.linkId=t;c=JSON.parse(JSON.stringify(k));
c.linkId=t;c.createDate=(new Date).toISOString().split("T")[0];c.destinationUrl=v.location.href;c.schemaId="creatorLinks.LinkId.2";c.timestamp=(new Date).toISOString();c.producerId="associates";c.messageId=y.MD5(JSON.stringify(c)).toString();l.makeXHR({url:e,methodType:"POST",dataType:"json",data:JSON.stringify({events:[{data:c}]}),successCB:function(){},failureCB:function(){},successCBArgs:[],failureCBArgs:[]});this.get=function(){return this.linkId}};return{get:function(c){return(new e(c)).get()}}});
"use strict";w.when("A").register("amzn-ss-make-xhr",function(d){var p=d.$;return{makeXHR:function(d){p.ajax({url:d.url,timeout:d.timeout?d.timeout:3E3,data:d.data,method:d.methodType,type:d.methodType,dataType:d.dataType,cache:d.cache,success:function(d){return function(c){d.successCBArgs.push(c);d.successCB.apply(B,d.successCBArgs)}}(d),error:function(d){return function(c,e,l){d.failureCBArgs.push(c);d.failureCBArgs.push(e);d.failureCBArgs.push(l);d.failureCB.apply(B,d.failureCBArgs)}}(d)})}}});
"use strict";w.when("A","ready").register("amzn-ss-widget-utils",function(d){var p=d.$;return{toggleCheckbox:function(d,e){e=p("#"+e);var c=e.find("i"),l=e.find("input");d?(e.attr("aria-checked","true"),c.removeClass("a-icon-checkbox-inactive"),c.addClass("a-icon-checkbox-active"),l.attr("checked","checked")):(e.attr("aria-checked","false"),c.removeClass("a-icon-checkbox-active"),c.addClass("a-icon-checkbox-inactive"),l.removeAttr("checked"))},toggleRadioButton:function(d,e){e=p("#"+e);var c=e.find("i"),
l=e.find("input");d?(e.attr("aria-checked","true"),c.removeClass("a-icon-radio-inactive"),c.addClass("a-icon-radio-active")):(e.attr("aria-checked","false"),c.removeClass("a-icon-radio-active"),c.addClass("a-icon-radio-inactive"));l.attr("checked",d)},isCheckboxChecked:function(d){return"true"===p("#"+d).attr("aria-checked")?!0:!1},isRadioButtonChecked:function(d){return"true"===p("#"+d).attr("aria-checked")?!0:!1}}});"use strict";w.when("twisterModule","amzn-ss-store-tag").execute(function(d,p){d=
d.getState();d!==B&&p.setTwisterState(d)});"use strict";w.when("A","amzn-ss-app-config","amzn-ss-store-tag","amzn-ss-make-xhr","ready").execute(function(d,p,l,e){d=d.$;var c=p.getForesterPublisherStudioUrl(),r=function(c){var d=l.getGlobalStoreTag();return{pParameter:"SS v2",testName:p.getTestName(),storeId:d.storeId,trackingId:d.trackingId,marketplaceId:p.getMarketplaceId(),asin:l.getAsin(),url:v.location.href,toolCreation:"SS",createTime:(new Date).getTime(),event:c.dataset.eventName}};d("body").delegate(".amzn-ss-wrap-content",
"click",function(d){(d=d.target)&&d.dataset&&d.dataset.eventName&&(d=r(d),e.makeXHR({url:c+encodeURIComponent(JSON.stringify(d)),methodType:"GET",dataType:"json",successCB:function(){},failureCB:function(){},successCBArgs:[],failureCBArgs:[]}))})});"use strict";w.when("A","a-dropdown","amzn-ss-app-config","amzn-ss-store-tag","amzn-ss-store-tag-manager","ready").execute(function(d,p,l,e,c){function r(a,b){c.setButtonClicked(b);q(a,function(){u(".amzn-ss-link-home-page").unbind("click").click();u("#amzn-ss-earnings-link").unbind("click").click();
u("#amzn-ss-help-link").unbind("click").click();u(".amzn-ss-settings-option").unbind("click").click()})}function q(a,b){e.isStoreTagMapAssigned||(a.preventDefault(),e.populateStoreTagDropdown(),b())}var u=d.$,k=c.getGlobalStore(),b=c.getGlobalTag();if(k===B||""===k.trim())e.populateStoreTagDropdown();else{d=["text","image","text-image"];l=d.length;var t=[],m=[];t[0]=k;m[0]=b;for(k=0;k<l;k++)e.updateDropdown(p.getSelect("amzn-ss-store-id-dropdown-"+d[k]),t),e.updateDropdown(p.getSelect("amzn-ss-tracking-id-dropdown-"+
d[k]),m)}u(".amzn-ss-link-home-page").click(function(a){r(a,c.ButtonsClicked.HOME)});u("#amzn-ss-earnings-link").click(function(a){r(a,c.ButtonsClicked.EARNINGS)});u("#amzn-ss-help-link").click(function(a){r(a,c.ButtonsClicked.HELP)});u(".amzn-ss-settings-option").click(function(a){r(a,c.ButtonsClicked.SETTINGS)})});"use strict";w.when("A","amzn-ss-default-store-tag","amzn-ss-app-config","amzn-ss-make-xhr","ready").register("amzn-ss-store-tag-manager",function(d,p,l,e){var c=d.$,r={},q=[],u={},k=
!1,b={NONE:"",HOME:"Home",EARNINGS:"Earnings",HELP:"Help",SETTINGS:"Settings"},t=b.NONE,m=p.getDefaultStoreId(),a=p.getDefaultTrackingId(),n=l.getLocale(),w=JSON.parse(l.getLocaleBaseUrls().replace(/&quot;/g,'"')),y=function(a,b,c,d,k){a=[a,b,c,d,k];e.makeXHR({url:"/associates/sitestripe/getStoreTagMap",methodType:"GET",data:{marketplaceId:p.getMarketplaceId()},dataType:"json",timeout:8E3,successCB:H,successCBArgs:a,failureCB:I,failureCBArgs:a})},M=function(b,c,d){d&&1===d.status&&(m=b,a=c)},J=function(){},
G=function(b,c){b===m&&c===a||e.makeXHR({url:"/associates/sitestripe/setDefaultStoreTag",methodType:"GET",data:{marketplaceId:p.getMarketplaceId(),storeId:b,trackingId:c},dataType:"json",successCB:M,failureCB:J,successCBArgs:[b,c],failureCBArgs:[]})},D=function(a,b,c){"function"===typeof a&&a.apply(b,c)},H=function(b,e,l,p,t,f){if(f)if(1===f.status){var h=f.storeTagMap;f=f.storeHomeCountryMap;var g=0,z=[];for(A in h)h.hasOwnProperty(A)&&(z[g++]=A);var A=!1;g=m;-1===c.inArray(g,z)&&(g=z[0],A=!0);var E=
f[g],x=a,v=h[g];-1===c.inArray(x,v)&&(x=v[0],A=!0);r=h;k=!0;q=z;u=f;n!==E&&C(E);F();A&&G(g,x);A=[];switch(p){case "storeArray":A=[z,f,e];break;case "tagArray":A=t&&-1!==c.inArray(t,z)?[h[t],e]:[[],e];break;case "storeTagMap":A=[h,e]}D(b,l,A)}else 2===f.status&&(D(b,l,[B,e]),d.trigger("amzn-ss-action-disable-ss"))},I=function(b,a,c,d,k,f,e,g){D(d,f,[B,k,b,a,c])},F=function(){t===b.HOME?v.open(document.getElementsByClassName("amzn-ss-brand amzn-ss-link-container")[0].getElementsByTagName("a")[0].href):
t===b.EARNINGS?v.open(document.getElementById("amzn-ss-earnings-link").getElementsByTagName("a")[0].href):t===b.HELP?v.open(document.getElementById("amzn-ss-help-link").getElementsByTagName("a")[0].href):t===b.SETTINGS&&v.open(document.getElementsByClassName("amzn-ss-settings-option")[0].getElementsByTagName("a")[0].href);t=b.NONE},C=function(b){var a="https://"+w[b],c=a+"/home/account/sitestripe";document.getElementsByClassName("amzn-ss-settings-option")[0].getElementsByTagName("a")[0].href=c;c=
a+"/home/reports";document.getElementById("amzn-ss-earnings-link").getElementsByTagName("a")[0].href=c;c=a+"/help/stripe.html";document.getElementById("amzn-ss-help-link").getElementsByTagName("a")[0].href=c;a+="/home";document.getElementsByClassName("amzn-ss-brand amzn-ss-link-container")[0].getElementsByTagName("a")[0].href=a;n=b};return{getGlobalStore:function(){return m},getGlobalTag:function(){return a},fetchStores:function(a,b,c){k?D(a,c,[q,u,b]):y(a,b,c,"storeArray","")},fetchTags:function(a,
b,d,e){k?-1===c.inArray(e,q)?D(a,d,[[],b]):D(a,d,[q,b]):y(a,b,d,"tagArray",e)},fetchStoreTagMap:function(a,b,c){k?(D(a,c,[r,u,b]),F()):y(a,b,c,"storeTagMap","")},updateGlobalStoreTag:G,isStoreTagMapAssigned:function(){return k},updateUrls:C,setButtonClicked:function(a){t=a},ButtonsClicked:b}});"use strict";"use strict";w.when("A","a-popover","a-modal","amzn-ss-link-id","amzn-ss-app-config","amzn-ss-store-tag","amzn-ss-widget-utils","amzn-ss-make-xhr","amzn-ss-sitestripe").register("amzn-ss-text-popover",
function(d,p,l,e,c,r,q,u,k){var b=d.$,t=c.isDetailPage();l=c.getStringMap();var m,a=!1,n=!1,v=b("#amzn-ss-text-link"),w=b(".amzn-ss-popover-spinner"),B=b(".amzn-ss-popover-third-party-message"),y=b("#amzn-ss-popover-text-preload-content-container"),G=b(".amzn-ss-popover-link-failure-message"),D=b("#amzn-ss-txt-success-msg"),H=b("#amzn-ss-txt-failure-msg"),I=b("#amzn-ss-txt-update-msg"),F=b("#amzn-ss-loading-spinner"),C=b("#amzn-ss-text-fulllink-textarea"),z=b("#amzn-ss-text-shortlink-textarea"),E=
function(){w.hide();B.hide();G.hide();y.hide()},A=function(){D.hide();H.hide();I.hide();F.hide()},K={name:"amzn-ss-popover-text-preload-content",popoverLabel:l.amzn_ss_popover_title_txt,header:l.amzn_ss_popover_title_txt,activate:"onclick",width:560},x={toolCreation:"SS",adUnitType:"TEXT",adUnitDescription:"Product links Text only link",destinationType:"1"===t?"ASIN":"MULTIPLE",marketplaceId:c.getMarketplaceId()},f=function(){q.toggleRadioButton(!1,"amzn-ss-full-link-radio-button");q.toggleRadioButton(!1,
"amzn-ss-short-link-radio-button")},h=function(b,c){E();c&&!0===c.isOk?null===c.shortUrl?B.show():(y.show(),A(),D.show(),r.enableGetLinkButton(!1),a=!0,C.hide(),z.show(),z.text(c.shortUrl),setTimeout(function(){z.select()},10)):g(b)},g=function(a,b,c,d){E();a?(y.show(),A(),H.show()):G.show()},L=function(a,b){m=r.getLongUrlTemplate();x.store=a.storeId;x.tag=a.trackingId;x.asin=r.getAsin();x.adUnitSubType="ShortLinks";x.linkCode="1"===t?c.getLinkCode().textShortLink_dp:c.getLinkCode().textShortLink_ndp;
a=e.get(x);var d=m.replace("__LINKCODE__",x.linkCode);d=d.replace("__REFTAG__",c.getRefTag().textLink);d=d.replace("__LANGUAGE__",k.getLanguagePreferance());d=d.replace("__TRACKINGID__",x.tag);d=d.replace("__LINKID__",a);F.show();u.makeXHR({url:"/associates/sitestripe/getShortUrl",methodType:"GET",data:{longUrl:d,marketplaceId:x.marketplaceId},dataType:"json",successCB:h,failureCB:g,successCBArgs:[b],failureCBArgs:[b]});f();q.toggleRadioButton(!0,"amzn-ss-short-link-radio-button");C.hide();z.show()};
z.bind("click",function(){b(this).select()});C.bind("click",function(){b(this).select()});d.declarative("amzn-ss-get-link-shortlink","click",function(a){f();q.toggleRadioButton(!0,"amzn-ss-short-link-radio-button");C.hide();z.show();z.select()});d.declarative("amzn-ss-get-link-fulllink","click",function(b){if(a){a=!1;x.adUnitSubType="FullLinks";x.linkCode="1"===t?c.getLinkCode().textLongLink_dp:c.getLinkCode().textLongLink_ndp;b=e.get(x);var d=m.replace("__LINKCODE__",x.linkCode);d=d.replace("__REFTAG__",
c.getRefTag().textLink);d=d.replace("__LANGUAGE__",k.getLanguagePreferance());d=d.replace("__TRACKINGID__",x.tag);d=d.replace("__LINKID__",b);C.text(d)}f();q.toggleRadioButton(!0,"amzn-ss-full-link-radio-button");z.hide();C.show();C.select()});d.declarative("amzn-ss-show-text-popover","click",function(a){n||(r.getAsin(),a=p.create(v,K),E(),w.show(),a.show(),L(r.getGlobalStoreTag(),!1))});d.on("a:popover:beforeShow:amzn-ss-popover-text-preload-content",function(a){r.populateStoreTagDropdown("text")});
d.on("a:popover:show:amzn-ss-popover-text-preload-content",function(a){n=!0;k.addActiveToPopoverContainer(a.popover)});d.on("a:popover:afterHide:amzn-ss-popover-text-preload-content",function(a){n=!1;k.removeActiveFromPopoverContainer(a.popover);r.updateDefaultStoreTagAtServer()});d.on("a:dropdown:amzn-ss-store-id-dropdown-text:select",function(a){r.handleStoreDropdownChange("text")});d.on("a:dropdown:amzn-ss-tracking-id-dropdown-text:select",function(a){r.handleTagDropdownChange("text")});d.on("amzn-ss-text-popover-get-link",
function(a){L(a,!0)});d.on("amzn-ss-text-popover-store-tag-updated",function(b){A();I.show();z.text("");C.text("");a=!1})});"use strict";w.when("A","a-popover","a-switch","amzn-ss-sitestripe","amzn-ss-make-xhr","amzn-ss-app-config").register("amzn-ss-sitestripe-settings",function(d,p,l,e,c,r){var q=d.$;c=q("#amzn-ss-settings-toggle-switch");var u=q("#amzn-ss-settings-popover-container"),k=l.getSwitch(c),b=q("#amzn-ss-settings-popover-link"),t={name:"amzn-ss-settings-popover-preload-content",popoverLabel:r.getStringMap().amzn_ss_popover_title_settings,
header:r.getStringMap().amzn_ss_popover_title_settings,activate:"onclick",width:300};d.declarative("amzn-ss-turnoff-message-got-it","click",function(b){k.isOn()||d.trigger("amzn-ss-action-disable-ss")});d.declarative("amzn-ss-settings-popover","click",function(c){c=p.create(b,t);u.show();c.show()});d.on("a:popover:show:amzn-ss-settings-popover-preload-content",function(b){e.addActiveToPopoverContainer(b.popover)});d.on("a:popover:afterHide:amzn-ss-settings-popover-preload-content",function(b){b=b.popover;
k.isOn(!0);e.removeActiveFromPopoverContainer(b)});d.on("a:switch:amzn-ss-settings-toggle-switch:flip",function(b){k.isOn()?(k.label(r.getStringMap().amzn_ss_popover_content_sett_turnoff_ss),q("#amzn-ss-turnoff-message").fadeOut()):(k.label(r.getStringMap().amzn_ss_popover_content_sett_turnedoff),q("#amzn-ss-turnoff-message").fadeIn())})});"use strict";w.when("A","a-popover","amzn-ss-app-config","amzn-ss-make-xhr","ready").register("amzn-ss-sitestripe",function(d,p,l,e){var c=function(c,b,d){v.location.reload(!1)},
r=function(c,b){v.location.reload(!1)},q=function(c){v.location.reload(!1)},u=function(c,b,d){v.location.reload(!1)};d.declarative("amzn-ss-action-toggle-ss","click",function(d){d=d.data;e.makeXHR({url:"hide"===d.action?"/associates/sitestripe/hideSiteStripe":"/associates/sitestripe/showSiteStripe",methodType:"GET",data:{marketplaceId:l.getMarketplaceId()},dataType:"json",successCB:r,failureCB:c,successCBArgs:[d],failureCBArgs:[d]})});d.on("amzn-ss-action-disable-ss",function(){e.makeXHR({url:"/associates/sitestripe/disableSiteStripe",
methodType:"GET",data:{marketplaceId:l.getMarketplaceId()},dataType:"json",successCB:q,failureCB:u,successCBArgs:[],failureCBArgs:[]})});return{getLanguagePreferance:function(){var c=l.getLanguageCodeCookieName();return document.cookie.replace(new RegExp("(?:(?:^|.*;\\s*)"+c+"\\s*\\\x3d\\s*([^;]*).*$)|^.*$"),"$1")},addActiveToPopoverContainer:function(c){c.$trigger&&(c.$trigger.closest("li").addClass("active"),c.$container&&c.$container.addClass(c.$trigger.data("a-class")))},removeActiveFromPopoverContainer:function(c){c.$trigger&&
c.$trigger.closest("li").removeClass("active")},getUpdatedUrl:function(){var c=l.getRetailWebsiteUrl(),b=v.location.pathname;b=b.replace(/\/$/,"");-1<b.indexOf("/ref\x3d")&&(b=b.replace(/(\/ref=)[^?"]+/ig,""));c+=b;if(1==!!document.documentMode){b=decodeURIComponent(v.location.search);var d=[/(&?language=)[^&"]+/ig,/(&?linkId=)[^&"]+/ig,/(&?tag=)[^&"]+/ig,/(&?creative=)[^&"]+/ig,/(&?camp=)[^&"]+/ig,/(&?creativeASIN=)[^&"]+/ig,/(&?linkCode=)[^&"]+/ig,/(&?ref=)[^&"]+/ig,/(&?ref_=)[^&"]+/ig];if(b)for(var e=
0;e<d.length;e++)b=b.replace(d[e],"");else b="?ie\x3dUTF8";b=encodeURI(b)}else b=new URLSearchParams(v.location.search),b.delete("language"),b.delete("linkId"),b.delete("tag"),b.delete("creative"),b.delete("camp"),b.delete("creativeASIN"),b.delete("linkCode"),b.delete("ref"),b.delete("ref_"),b="?"+b.toString();return c+b}}});"use strict";w.when("A","a-dropdown","a-button","amzn-ss-app-config","amzn-ss-sitestripe","amzn-ss-make-xhr","amzn-ss-store-tag-manager").register("amzn-ss-store-tag",function(d,
p,l,e,c,r,q){var u=d.$,k=e.isDetailPage(),b={storeId:q.getGlobalStore(),trackingId:q.getGlobalTag()},t=function(){return b.trackingId},m=function(){if(b.storeId===B||""===b.storeId.trim())b.storeId=q.getGlobalStore();if(b.trackingId===B||""===b.trackingId.trim())b.trackingId=q.getGlobalTag();return b},a=function(a){return p.getSelect("amzn-ss-store-id-dropdown-"+a)},n=function(a){return p.getSelect("amzn-ss-tracking-id-dropdown-"+a)},v=function(a){var b=l(".amzn-ss-get-link-btn");!0===a?b.enable():
b.disable()},w=function(){var a=c.getUpdatedUrl();return"1"!==k?"NA":y(a)},y=function(a){for(var b=[/\/gp\/product\/([a-zA-Z0-9]{10})/,/\/dp\/([a-zA-Z0-9]{10})/],c=0;c<b.length;c++){var d=b[c].exec(a);if(d)return d[1]}return"NA"},J=function(a,b){if(a){for(var c=[],d=a.getOptions().size(),e=0;e<d;e++)c[e]=e;a.removeOptions(c);c=[];for(e=0;e<b.length;e++)c[e]={text:b[e],value:b[e]};a.addOptions(c)}},G=function(c,d,e){if(c){var k=a(e),l=n(e),m=k.val(),p=l.val();c=c[m];m!==B&&c!==B&&"object"===typeof c&&
(b.storeId=k.val(),q.updateUrls(d[m]),J(l,c),l.setValue(-1===u.inArray(p,c)?c[0]:p),D(e))}},D=function(a){var c=n(a);b.trackingId=c.val();v(!0);switch(a){case "text":d.trigger("amzn-ss-text-popover-store-tag-updated",m());break;case "image":d.trigger("amzn-ss-image-popover-get-link",m());break;case "text-image":d.trigger("amzn-ss-text-image-popover-get-link",m())}},H=function(c,d){var e=b.storeId,k=t(),l=a(d);d=n(d);c=c[e];c!==B&&-1!==u.inArray(k,c)&&l&&d&&(l.setValue(e),J(d,c),d.setValue(k))},I=
function(b,c){if(b){var d=c.length,e=0,k=[],l;for(l in b)b.hasOwnProperty(l)&&(k[e++]=l);for(e=0;e<d;e++)J(a(c[e]),k),H(b,c[e])}};d.declarative("amzn-ss-get-link","click",function(a){d.trigger("amzn-ss-text-popover-get-link",m())});d.on("amzn-ss-store-tag-change-event",H);return{getLongUrlTemplate:function(){var a=c.getUpdatedUrl();if("1"===k){var b=w(),d=y(a);a=b!==d?a.replace(d,b):a}a+="\x26linkCode\x3d__LINKCODE__\x26tag\x3d__TRACKINGID__\x26linkId\x3d__LINKID__";c.getLanguagePreferance()&&(a+=
"\x26language\x3d__LANGUAGE__");return a+"\x26ref_\x3d__REFTAG__"},getAsin:w,getGlobalStoreTag:m,getTag:t,enableGetLinkButton:v,updateDefaultStoreTagAtServer:function(){q.updateGlobalStoreTag(b.storeId,t())},setTwisterState:function(a){},updateDropdown:J,handleStoreDropdownChange:function(a){q.fetchStoreTagMap(G,a)},handleTagDropdownChange:D,populateStoreTagDropdown:function(a){q.isStoreTagMapAssigned()?q.fetchStoreTagMap(I,[a]):q.fetchStoreTagMap(I,["text","image","text-image"])}}})});
/* ******** */
(function(g){var e=window.AmazonUIPageJS||window.P,h=e._namespace||e.attributeErrors,a=h?h("GlowToasterAssets",""):e;a.guardFatal?a.guardFatal(g)(a,window):a.execute(function(){g(a,window)})})(function(g,e,h){g.when("A","a-alert","glow-toaster-action-registry","glow-toaster-overlay","glow-toaster-strings").register("glow-toaster",function(a,f,m,b,d){function l(c){e.ue&&"function"===typeof e.ue.count&&e.ue.count(c,(e.ue.count(c)||0)+1)}function n(){return a.capabilities.mobile?"MOBILE":"DESKTOP"}var k=
a.$;a.on("a:sheet:afterHide:wfm_mweb_qr_bottom_sheet",function(){g.register("QRClosed",function(){})});var p=function(c){this.animationEnabled=!0;this.params=c||{};this.slot="DEFAULT";this.csrfToken="";this.type=h;this.blocking=!1;this.automaticAction=h;this.executeAction={OPEN_GLOW:this.openGlowAutomaticAction};this.FETCH_TOASTER_SUCCESS_METRIC="GLOW:fetch-toaster:"+n()+":success";this.FETCH_TOASTER_FAILURE_METRIC="GLOW:fetch-toaster:"+n()+":failure";this.GLOW_TOASTER_SCOPE="glow-toaster-api-timer-"+
n();this.slots={DEFAULT:a.capabilities.mobile?"#nav-subnav-toaster":"#nav-flyout-anchor",SUBNAV:"#nav-subnav-toaster"};this.selectors={navbar:"#navbar",subnav:"#nav-subnav",toaster:".glow-toaster",actionButton:".glow-toaster-button",actionError:".glow-toaster-error"};this.endpoint="/portal-migration/hz/glow/get-rendered-toaster";this.refreshXhr=h;this.initEvents()};k.extend(p.prototype,{initEvents:function(){a.on("packard:glow:destinationChangeAll",this.handleGlowAddressChange.bind(this));a.on("a:popover:beforeShow",
this.handlePopoverBeforeShow.bind(this));a.on("a:popover:afterHide",this.handlePopoverAfterHide.bind(this));a.on("a:sheet:beforeShow",this.handleSheetBeforeShow.bind(this));a.on("a:sheet:afterHide",this.handleSheetAfterHide.bind(this));a.on.ready(this.handlePageReady.bind(this));k(e).bind("beforeunload",this.handleBeforeUnload.bind(this));k(e).bind("focusin",this.handleFocusIn.bind(this))},refresh:function(){this.ready&&(this.hide(),this.abortRefresh(),"function"===typeof e.uet&&e.uet("bb",this.GLOW_TOASTER_SCOPE,
{wb:1}),this.refreshXhr=a.get(this.endpoint,{params:this.params,cache:!1,success:function(c,a,d){l(this.FETCH_TOASTER_SUCCESS_METRIC);"string"===typeof c&&(this.update(c),"function"===typeof e.uex&&e.uex("ld",this.GLOW_TOASTER_SCOPE,{wb:1}))}.bind(this),error:function(c,a,d){l(this.FETCH_TOASTER_FAILURE_METRIC);e.ueLogError&&e.ueLogError(d,{logLevel:"WARN",attribution:"glow-toaster-refresh-error",message:"Glow toaster load failed with status:"+a})}.bind(this)}))},remove:function(){this.getToasterElement().remove()},
show:function(){!a.capabilities.mobile&&"DEFAULT"==this.slot||!this.animationEnabled?this.getToasterElement().show():this.getToasterElement().slideDown();this.blocking&&b.show();a.capabilities.isAmazonApp&&a.capabilities.ios&&e.scrollTo(0,-999)},hide:function(){!a.capabilities.mobile&&"DEFAULT"==this.slot||!this.animationEnabled?this.getToasterElement().hide():this.getToasterElement().slideUp();this.blocking&&b.hide()},isHidden:function(){return!this.getToasterElement().length||this.getToasterElement().is(":hidden")},
isVisible:function(){return!this.isHidden()},showError:function(c){this.setError(c);this.show()},showErrorID:function(c){c=d.get(c);this.showError(c)},setError:function(c){var a=this.getToasterElement().find(this.selectors.actionError);a=f(a);a.text(c||"");c?a.show():a.hide()},clearError:function(){this.setError("")},isActionFailureEmulated:function(){return/[?&]glowToasterActionEmulateFailure=1(&|$)/.test(location.href)},syncOverlay:function(){this.blocking?b.show():b.hide()},update:function(c){c=
c.trim();var a=!c.length;this.remove();a||(a=k(c).hide(),a.is(this.selectors.toaster)||(a=this.createFatalErrorToaster(c)),this.importProps(a),this.attachActions(a),this.syncOverlay(),this.getContainerElement().append(a),this.show())},createFatalErrorToaster:function(c){var d="glow-toaster glow-toaster-theme-alert glow-toaster-slot-default a-padding-medium",b="";a.capabilities.isAmazonApp?d+=" glow-toaster-app":a.capabilities.mobile||(d+=" nav-coreFlyout nav-flyout",b='\x3cdiv class\x3d"nav-arrow"\x3e\x3cdiv class\x3d"nav-arrow-inner"\x3e\x3c/div\x3e\x3c/div\x3e');
c=k('\x3cdiv class\x3d"'+d+'" data-toaster-slot\x3d"DEFAULT"\x3e\x3cdiv class\x3d"glow-toaster-content"\x3e'+b+'\x3cdiv class\x3d"glow-toaster-body"\x3e'+c+"\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e");c.hide();return c},getCurrentContainer:function(){return this.slots[this.slot]},getContainerElement:function(){var c=this.getCurrentContainer();return k(c)},getToasterElement:function(){var c=this.getCurrentContainer();return k(c+" "+this.selectors.toaster)},importProps:function(c){c=c.data();c.toasterSlot&&
(this.slot=c.toasterSlot);this.type=c.toasterType||h;this.blocking=!!parseInt(c.toasterBlocking);this.automaticAction=c.toasterAutomaticAction||h;this.csrfToken=c.toasterCsrftoken||c.csrfToken||""},attachActions:function(c){c.bind("click touchstart",this.selectors.actionButton,this.handleActionButtonClick.bind(this));this.automaticAction&&this.executeAction[this.automaticAction]&&this.executeAction[this.automaticAction].call(this)},abortRefresh:function(){this.refreshXhr&&(this.refreshXhr.abort(),
this.refreshXhr=h)},handleActionButtonClick:function(c){k(c.target).is("a")||(c.stopImmediatePropagation(),c.preventDefault());c=k(c.target).data();if(c.actionType){var a=m.getByActionType(c.actionType);a&&("SET_POSTAL_CODE"===c.actionType&&(c.actionParams.zipCode=k("input#glow-toaster-postal-code-input").val()),a.handle(this,c.actionParams))}},handleGlowAddressChange:function(){this.refresh()},handlePopoverBeforeShow:function(a){a=a&&a.popover&&a.popover.type;this.blocking&&"modal"==a&&this.isVisible()&&
b.hide()},handlePopoverAfterHide:function(a){a=a&&a.popover&&a.popover.type;this.blocking&&"modal"==a&&this.isVisible()&&b.show()},handleSheetBeforeShow:function(){this.blocking&&this.isVisible()&&b.hide()},handleSheetAfterHide:function(){this.blocking&&this.isVisible()&&b.show()},handleBeforeUnload:function(){this.abortRefresh()},handlePageReady:function(){this.ready=!0;this.refresh()},handleFocusIn:function(a){if(this.blocking&&b.isVisible()){var c=this.getToasterElement(),d=k(this.selectors.subnav).has(a.target).length,
f=k(this.selectors.navbar).add(this.getContainerElement()).has(a.target).length;a=this.getContainerElement().has(a.target).length;if(d||!f&&!a)c.focus(),b.sync()}},openGlowAutomaticAction:function(){var a=e.location.pathname.includes("storefront"),d=this.openGlow.bind(this),b="GlowToaster:OPEN_GLOW:"+this.type+":"+n()+":";l(b);a?(g.when("A","FMCShowQrCodeTrue","QRClosed").execute(function(){d()}),g.when("A","FMCShowQrCodeFalse").execute(function(){d()})):this.openGlow()},openGlow:function(){var a=
k("#nav-global-location-slot .a-declarative"),d=k("#nav-global-location-slot.a-declarative");a&&a.length?a.click():d&&d.length&&d.click()}});return p});"use strict";g.when("A").register("glow-toaster-string-container",function(a){var f=a.$;a=function(a){this.stringMap=a||{}};f.extend(a.prototype,{get:function(a){return this.stringMap[a]!==h?this.stringMap[a]:""},load:function(a){f.extend(this.stringMap,a)}});return a});"use strict";g.when("glow-toaster-string-container").register("glow-toaster-strings",
function(a){return new a({"glow-toaster-address-change-error":"An address change error has occurred. Please try again.","glow-toaster-unknown-error":"An error has occurred. Please try again."})});"use strict";g.when("A","glow-toaster").register("glow-toaster-manager",function(a,f){var e=function(){};a.$.extend(e.prototype,{toasters:[],create:function(a){a=new f(a);this.toasters.push(a);return a},getAll:function(){return this.toasters}});return new e});"use strict";g.when("A").register("glow-toaster-overlay",
function(a){var f=a.$,g=function(){this.overlayClass="glow-toaster-overlay";this.overlayLockClass="glow-toaster-overlay-lock";this.insertAfterSelector="#nav-subnav-toaster";this.$overlay=h;this.$body=f(document.body);this.animationEnabled=!0};f.extend(g.prototype,{hide:function(){this.$overlay&&(this.$body.removeClass(this.overlayLockClass),this.animationEnabled?this.$overlay.fadeOut():this.$overlay.hide())},show:function(){this.$overlay||(this.createOverlay(),this.initEvents());this.sync();this.$body.addClass(this.overlayLockClass);
this.animationEnabled?this.$overlay.fadeIn():this.$overlay.show()},isVisible:function(){return!!(this.$overlay&&this.$overlay.length&&this.$overlay.is(":visible"))},isHidden:function(){return!this.isVisible()},sync:function(){this.scrollTop();this.syncSize()},scrollTop:function(){f(document).scrollTop(0)},createOverlay:function(){this.$overlay=f("\x3cdiv\x3e").addClass(this.overlayClass).height(0).insertAfter(this.insertAfterSelector);a.capabilities.touch&&this.disableTouch()},disableTouch:function(){this.$overlay.bind("click touchstart",
function(a){a.cancelable&&a.preventDefault()})},initEvents:function(){f(e).bind("resize",this.syncSize.bind(this))},syncSize:function(){if(this.$overlay&&this.$overlay.length){var a=this.getScreenHeight();this.$overlay.height(a);var d=this.getDocumentHeight();d>a&&this.$overlay.height(d)}},getScreenHeight:function(){return f(e).height()},getDocumentHeight:function(){return f(document).height()}});return new g});"use strict";g.when("A","glow-toaster-set-address-action","glow-toaster-select-location-action",
"glow-toaster-dismiss-action","glow-toaster-set-postalcode-action").register("glow-toaster-action-registry",function(a,f,e,b,d){var l=function(a){this.actions=a||[];this.hashActionsByType()};a.$.extend(l.prototype,{getByActionType:function(a){return this.actionsByType[a]},getAll:function(){return this.actions},hashActionsByType:function(){this.actionsByType=a.reduce(this.actions,function(a,d){a[d.name]=d;return a},{})}});return new l([f,e,b,d])});g.when("A").register("glow-toaster-dismiss-toaster-constants",
function(a){return{ENDPOINT:"/portal-migration/hz/glow/dismiss-toaster",PARAMS_FORMAT:"json",CONTENT_TYPE:"application/json"}});g.when("A").register("glow-toaster-select-location-constants",function(a){return{ALM_ADDRESS_INELIGIBLE:"ALM_ADDRESS_INELIGIBLE"}});g.when("A").register("glow-toaster-set-address-constants",function(a){return{ENDPOINT:"/portal-migration/hz/glow/address-change?actionSource\x3dglow-toaster",PARAMS_FORMAT:"json",CONTENT_TYPE:"application/json"}});"use strict";g.when("A","glow-toaster-dismiss-toaster-constants").register("glow-toaster-dismiss-action",
function(a,e){var f=a.$,b=function(){};f.extend(b.prototype,{name:"DISMISS",endpoint:e.ENDPOINT,errorStringID:"glow-toaster-unknown-error",paramsFormat:e.PARAMS_FORMAT,contentType:e.CONTENT_TYPE,skipRefreshToasterTypes:["AEE_AUTO_DETECTED_LOCATION","AIS_EGRESS"],handle:function(d,b){d.hide();b.actionSource="web-"+(a.capabilities.mobile?"mobile":"desktop");a.post(this.endpoint,{params:b,paramsFormat:this.paramsFormat,headers:{"anti-csrftoken-a2z":f(".glow-toaster").attr("data-toaster-csrfToken")||
"","Content-Type":this.contentType},success:function(a,b,e){"object"!==typeof a||!a.success||d.isActionFailureEmulated()?d.showErrorID(this.errorStringID):this.skipRefreshToasterTypes.includes(d.type)||d.refresh()}.bind(this),error:function(a,b,e){d.showErrorID(this.errorStringID)}.bind(this)})}});return new b});"use strict";g.when("A","glow-toaster-select-location-constants").register("glow-toaster-select-location-action",function(a,f){var h=a.$,b=function(){};h.extend(b.prototype,{name:"SELECT_LOCATION",
errorStringID:"glow-toaster-unknown-error",handle:function(a,b){a.type!==f.ALM_ADDRESS_INELIGIBLE&&a.hide();this.showAddressSelector(a,b)},showAddressSelector:function(d,b){a.capabilities.isAmazonApp?this.showAppAddressSelector(d,b):this.showWebAddressSelector(d)},showAppAddressSelector:function(a,b){this.csmLogCount(a);g.when("BottomSheetPlugin").execute(function(a){a.ShowBottomSheet({useCase:"LocUX",paramsInJson:b||{}})})},showWebAddressSelector:function(a){var d=h("#nav-global-location-slot .a-declarative"),
b=h("#nav-global-location-slot.a-declarative"),e=a.isActionFailureEmulated();d.length&&!e?(d.click(),this.csmLogCount(a)):b.length&&!e?(b.click(),this.csmLogCount(a)):(a.showErrorID(this.errorStringID),this.csmLogCount(a,!0))},csmLogCount:function(a,b){e.ue&&e.ue.count&&(a="GlowToaster:"+(b?"SelectLocationFailed":"SelectLocation")+":"+a.type+":"+this.getDeviceType()+":",e.ue.count(a,1))},getDeviceType:function(){return a.capabilities.isAmazonApp?"APP":a.capabilities.tablet?"TABLET":a.capabilities.mobile?
"MOBILE":"DESKTOP"}});return new b});"use strict";g.when("A","glow-toaster-set-address-constants").register("glow-toaster-set-address-action",function(a,f){var h=function(){};a.$.extend(h.prototype,{name:"SET_ADDRESS",endpoint:f.ENDPOINT,errorStringID:"glow-toaster-address-change-error",forceReload:!0,handle:function(b,d){if(d&&d.addressID){b.hide();var g="generic";b.params&&b.params.storeName&&(g=b.params.storeName);a.post(this.endpoint,{headers:{"anti-csrftoken-a2z":b&&b.csrfToken?b.csrfToken:""},
params:{locationType:"ACCOUNT_ADDRESS",addressId:d.addressID,storeContext:g,deviceType:"web",pageType:e.ue_pty,actionSource:"glow-toaster",toasterType:b.type},paramsFormat:f.PARAMS_FORMAT,contentType:f.CONTENT_TYPE,success:function(a,d,e){"object"!==typeof a||!a.sembuUpdated||b.isActionFailureEmulated()?b.showErrorID(this.errorStringID):this.refreshGlowIngress()}.bind(this),error:function(a,d,e){b.showErrorID(this.errorStringID)}.bind(this)})}},refreshGlowIngress:function(){a.capabilities.isAmazonApp?
g.when("BottomSheetPlugin").execute(function(a){a.UpdateGlowIngress({});this.onGlowIngressRefreshComplete()}.bind(this)):(a.trigger("packard:glow:destinationChangeNav"),this.onGlowIngressRefreshComplete())},onGlowIngressRefreshComplete:function(){this.forceReload?e.location.reload():toaster.refresh()}});return new h});"use strict";g.when("A","glow-toaster-set-address-constants").register("glow-toaster-set-postalcode-action",function(a,f){var m=a.$,b=function(){};m.extend(b.prototype,{name:"SET_POSTAL_CODE",
endpoint:f.ENDPOINT,forceReload:!0,handle:function(d,b){b&&null!==b.zipCode&&b.zipCode!==h&&a.post(this.endpoint,{headers:{"anti-csrftoken-a2z":d&&d.csrfToken?d.csrfToken:""},params:{locationType:"LOCATION_INPUT",zipCode:this.preparePostalCodeForSubmit(b.zipCode),deviceType:"web",pageType:e.ue_pty,actionSource:"glow-toaster",toasterType:d.type},paramsFormat:f.PARAMS_FORMAT,contentType:f.CONTENT_TYPE,success:function(a,e,f){"object"!==typeof a||!a.sembuUpdated||d.isActionFailureEmulated()?(d.showError(b.inputError),
m("input#glow-toaster-postal-code-input").addClass("a-form-error")):this.refreshGlowIngress()}.bind(this),error:function(a,e,f){d.showError(b.inputError)}.bind(this)})},refreshGlowIngress:function(){a.capabilities.isAmazonApp?g.when("BottomSheetPlugin").execute(function(a){a.UpdateGlowIngress({});this.onGlowIngressRefreshComplete()}.bind(this)):(a.trigger("packard:glow:destinationChangeNav"),this.onGlowIngressRefreshComplete())},preparePostalCodeForSubmit:function(a){return a.replace(/[^A-Za-z0-9- /]+/g,
"")},onGlowIngressRefreshComplete:function(){this.forceReload?e.location.reload():toaster.refresh()}});return new b})});
/* ******** */
(function(h){var f=window.AmazonUIPageJS||window.P,k=f._namespace||f.attributeErrors,a=k?k("AmazonBusinessRetailNavigationAssets",""):f;a.guardFatal?a.guardFatal(h)(a,window):a.execute(function(){h(a,window)})})(function(h,f,k){(function(a){a.when("$","$F","flyouts.create","config","flyouts.anchor","data","provider.dynamicMenu","agent","log").run("flyout.abAcquisition",function(g,c,a,b,d,f,h,k,l){c=g("#nav-ab-acquisition");if(!c)return!1;var e=a({key:"abAcquisition",className:"nav-coreFlyout",link:c,
cover:!0,clickThrough:!0,event:"abAcquisition",arrow:"top",animateDown:b.flyoutAnimation});c.click(function(){g(this).blur();e.show()});return e})})(f.$Nav);(function(a){a.when("$","$F","flyouts.create","config").run("flyout.abActivation",function(g,c,a,b){c=g("#nav-ab-activation");if(!c)return!1;var d=a({key:"abActivation",className:"nav-coreFlyout",link:c,cover:!0,clickThrough:!0,event:"abActivation",arrow:"top",animateDown:b.flyoutAnimation});c.click(function(){g(this).blur();d.show()});return d})})(f.$Nav);
(function(a){a.when("$","$F","flyouts.create","config").run("flyout.abAccountLink",function(a,c,e,b){c=a("#nav-ab-account-link");if(!c)return!1;var d=e({key:"abAccountLink",className:"nav-coreFlyout",link:c,cover:!0,clickThrough:!0,event:"abAccountLink",arrow:"top",animateDown:b.flyoutAnimation});c.click(function(){a(this).blur();d.show()});return d})})(f.$Nav);(function(a){a.when("$","flyouts.create","config").run("flyout.abCatAcquisition",function(a,c,e){var b=a("#nav-ab-cat-acquisition");if(!b)return!1;
var d=c({key:"abCatAcquisition",link:b,cover:!0,clickThrough:!0,event:"abCatAcquisition",arrow:"top",animateDown:e.flyoutAnimation,className:"nav-coreFlyout"});b.click(function(){a(this).blur();d.show()});return d})})(f.$Nav);(function(a){a.when("$","flyouts.create","config").run("flyout.abCatActivation",function(a,c,e){var b=a("#nav-ab-cat-activation");if(!b)return!1;var d=c({key:"abCatActivation",link:b,cover:!0,clickThrough:!0,event:"abCatActivation",arrow:"top",animateDown:e.flyoutAnimation,className:"nav-coreFlyout"});
b.click(function(){a(this).blur();d.show()});return d})})(f.$Nav);(function(a){a.when("$","flyouts.create","config").run("flyout.abCatAccountLink",function(a,c,e){var b=a("#nav-ab-cat-account-link");if(!b)return!1;var d=c({key:"abCatAccountLink",link:b,cover:!0,clickThrough:!0,event:"abCatAccountLink",arrow:"top",animateDown:e.flyoutAnimation,className:"nav-coreFlyout"});b.click(function(){a(this).blur();d.show()});return d})})(f.$Nav);(function(a){a.when("$","flyouts.create","config").run("flyout.abCatShuma",
function(a,c,e){var b=a("#nav-ab-cat-shuma");if(!b)return!1;var d=c({key:"abCatShuma",link:b,cover:!0,clickThrough:!0,event:"abCatShuma",arrow:"top",animateDown:e.flyoutAnimation,className:"nav-coreFlyout"});b.click(function(){a(this).blur();d.show()});return d})})(f.$Nav);(function(a){a.when("$","flyouts.create","config").run("flyout.abCatClaimedDomain",function(a,c,e){var b=a("#nav-ab-cat-claimed-domain");if(!b)return!1;var d=c({key:"abCatClaimedDomain",link:b,cover:!0,clickThrough:!0,event:"abCatClaimedDomain",
arrow:"top",animateDown:e.flyoutAnimation,className:"nav-coreFlyout"});b.click(function(){a(this).blur();d.show()});return d})})(f.$Nav);(function(a){a.when("$","flyouts.create","config").run("flyout.abCatPendingInvitation",function(a,c,e){var b=a("#nav-ab-cat-pending-invitation");if(!b)return!1;var d=c({key:"abCatPendingInvitation",link:b,cover:!0,clickThrough:!0,event:"abCatPendingInvitation",arrow:"top",animateDown:e.flyoutAnimation,className:"nav-coreFlyout"});b.click(function(){a(this).blur();
d.show()});return d})})(f.$Nav)});
/* ******** */
(function(l){var a=window.AmazonUIPageJS||window.P,g=a._namespace||a.attributeErrors,e=g?g("EverywhereCartIngressAssets",""):a;e.guardFatal?e.guardFatal(l)(e,window):e.execute(function(){l(e,window)})})(function(l,a,g){(function(e){e.when("$","config").run("ewc.ajax",function(u,c){if(c.ewc&&!c.ewc.debugInlineJS){if(!c.ewc.EarlyLoadEWCContentTreatment){var k=u("#nav-flyout-ewc .nav-ewc-content"),d=function(){k.html(c.ewc.errorContent.html).addClass("nav-tpl-flyoutError")},y=/\$Nav/g,p=function(a){if(a){a=
"var P \x3d window.AmazonUIPageJS; "+a;if(y.test(a))return d(),!1;e.when("ewc.flyout","ewc.cartCount").run("[rcx-nav-cart]ewc",a)}return!0},h=function(d){var e={};d?e.isReloaded=!0:(c.ewc.freshCartCount!==g&&(e.freshCartCount=c.ewc.freshCartCount),c.ewc.almCartCount!==g&&(e.almCartCount=c.ewc.almCartCount),c.ewc.primeWardrobeCartCount!==g&&(e.primeWardrobeCartCount=c.ewc.primeWardrobeCartCount),c.ewc.bazaarCartCount!==g&&(e.bazaarCartCount=c.ewc.bazaarCartCount));e.widerCompactView=1280<a.innerWidth;
return e},n=function(e){u.ajax({url:c.ewc.url,data:h(e),type:"GET",dataType:c.ewc.isCompactEWCRendered?"html":"json",cache:!1,timeout:c.ewc.timeout||3E4,beforeSend:function(){c.ewc.isCompactEWCRendered?"function"===typeof a.uet&&a.uet("af","ewc2-compact",{wb:1}):(k.addClass("nav-spinner"),"function"===typeof a.uet&&a.uet("af","ewc",{wb:1}))},error:d,success:function(d){"function"===typeof a.uet&&a.uet("bb","ewc",{wb:1});if(c.ewc.isCompactEWCRendered){if(e){var f=u(d).find("#ewc-total-quantity").val();
a.$Nav&&f&&a.$Nav.when("api.setCartCount").run(function(a){a(parseInt(f),!0)})}else l.register("EWC",function(){a.EwcP===g&&(a.EwcP=a.AmazonUIPageJS||l);return{refresh:function(){a.ue&&a.ue.count&&a.ue.count("ewc2-refresh",1);n(!0);l.when("EWCRefreshCallback").execute(function(a){a.update()})}}});k.html(d)}p(d.js)&&k.html(d.html);"function"===typeof a.uet&&a.uet("be","ewc",{wb:1})},complete:function(){c.ewc.isCompactEWCRendered||k.removeClass("nav-spinner");"function"===typeof a.uet&&a.uet("cf","ewc",
{wb:1});"function"===typeof a.uex&&a.uex("ld","ewc",{wb:1})}})};c.ewc.flyout.ableToPersist()?(n(),e.declare("ewc.loadContent",function(){})):e.declare("ewc.loadContent",n)}l.when("ewc.pageload-content-loader").execute(function(a){a.loadContent(!0)})}})})(a.$Nav);$Nav.when("$","$F","config").build("fixedBarWithEwcHandling",function(a,g,c){var e=a("#nav-search"),d=a("#nav-tools");return{setFixed:function(a,c){d.css({right:0});e.css({left:a,right:c})},setRelative:function(){}}});(function(e,l){e.when("$",
"config").build("compactEWCSmallScreenCheck",function(c,e){return{canCompactEWCHideContentOnPage:function(){var d=e.ewc.isCompactEWCRendered,k=document.getElementById("a-page"),p=document.getElementById("nav-belt"),h=document.getElementById("nav-flyout-ewc"),n,f,l=function(a){a.forEach(function(a){a.hide()})},q=function(a){a.forEach(function(a){a.show()})},v=function(){l([c("#nav-upnav")]);var a=k.scrollWidth;q([c("#nav-upnav")]);return a},m=function(d){var e,f;return function(){var k=c(a).width();
k!==e&&(e=k,f=d.apply(this,arguments));return f}}(function(){if(f===g)return 25<v()-p.scrollWidth?(r(),!0):n===g&&(c(".nav-ewc-compact-view")?r():(h.style.visibility="hidden",inlineFlyout.applyPageLayoutForPersistent(),r(),inlineFlyout.unapplyPageLayoutForPersistent(),h.style.visibility=""),f!==g&&f>p.scrollWidth)?!0:!1;if(f!==g){var a=p.scrollWidth;n&&(a=p.scrollWidth+100);return f>a}}),r=function(){25<v()-p.scrollWidth&&(f=v()-25+100)};return function(){if(!d||1280<(a.innerWidth||document.documentElement.clientWidth||
document.body.clientWidth)||"loading"===document.readyState)return!1;var c=k&&p&&m(),e=!c;if(e!==g){var f=e?"shown":"hidden";var h;n===g?h=f:n!==e&&(h="resizeto"+f);if(f=h)f=["compactEWCVisibleState",f],a.ue&&a.ue.count&&a.ue.count(f.join(":"),1);n=e}return c}}()}})})(a.$Nav,l);(function(e,g){e.when("$").run("ewc.before.flyout",function(){"function"===typeof a.uet&&a.uet("x3","ewc",{wb:1})});e.when("$","config","flyouts.anchor").run("ewc.resetArrow",function(a,e,d){a("#nav-flyout-ewc .nav-ewc-arrow").length&&
a(".nav-ewc-arrow").detach().appendTo(d())});e.when("$","$F","config","flyouts.create","ewc.loadContent","data","logUeError","now","metrics","util.checkedObserver","compactEWCSmallScreenCheck").run("ewc.flyout",function(c,k,d,l,p,h,n,f,A,q,v){if(d.ewc&&!d.ewc.debugInlineJS){"function"===typeof a.uet&&a.uet("x4","ewc",{wb:1});var m=d.ewc.flyout;f=n=!1;d.beaconbeltCover&&!d.ewc.enablePersistent&&(f=n=!0);var r=c(a);c(document.documentElement);c("#nav-belt");c("#nav-cart");A=d.ewc.timeout||3E4;var u=
d.ewc.isCompactEWCRendered,y=v.canCompactEWCHideContentOnPage,w=function(){return m.ableToPersist()&&(u?!y():!0)},B=function(){var b=a.document.documentElement.clientHeight,c=a.document.body;return"CSS1Compat"===a.document.compatMode&&b||c&&c.clientHeight||b};d.ewc.isEWCLogging&&(w(),B());var C=k.once().on(p);e.declare("ewc.cartCount",function(a){h.observe("cartCount",a)});var b=l({elem:c("#nav-flyout-ewc"),key:"ewc",link:d.ewc.isTriggerEnabled?c("#nav-cart"):null,event:"ewc",className:"nav-ewcFlyout",
cover:n,disableCoverPinned:f,enableFlyoutBuffer:!1,anchor:c("#navbar"),timeoutDelay:A,aligner:function(a){var b=a.$flyout,e=c(".nav-flyout-body",b),f=c("#nav-belt");a=c("#nav-main");var z=f.outerHeight();a.outerHeight();c("#nav-tools").outerHeight();return function(){var a=f.offset().top,c=r.scrollTop(),k=B(),h=0,g=0;c<a?h=a-c:c<=a+z&&(g=a-c);a={top:h+"px",height:k-h+"px"};u&&w()?a.right=m.getEWCRightOffsetCssProperty?m.getEWCRightOffsetCssProperty():"0":d.ewc.isCompactEWCRendered||e.css({top:g+"px",
height:b.height()-g+"px"});b.css(a)}}});b.getPanel().onRender(function(){var c=b.elem();c.hasClass("nav-ewc-lazy-align")&&c.removeClass("nav-ewc-hide-head");d.ewc.isEWCStateExpanded||"function"===typeof a.uex&&a.uex("ld","ewc",{wb:1})});var t;d.ewc.pinnable&&(t=function(b){var e=b.elem(),f=e.find(".nav-ewc-pin-tail"),h=f.find(".nav-ewc-pin-button"),g=function(a,d){d=d||(b.isPersistent()?"crt_ewc_pin":"crt_ewc_unpin");c.ajax({type:"GET",cache:!1,url:"/gp/navigation/ajax/save-ewc-status.html/ref\x3d"+
d+a})},k=function(a){d.ewc.isEWCStateExpanded="1"===a;g("?persistent\x3d"+a)},z=function(){var a="?ttDisplayed\x3d1";d.ewc.ewcDebugTTP&&(a+="\x26ewcDebugTTP\x3d"+d.ewc.ewcDebugTTP);g(a,"crt_ewc_incttd")},n=function(a){a?f.removeClass("nav-ewc-unpin").addClass("nav-ewc-pin"):f.removeClass("nav-ewc-pin").addClass("nav-ewc-unpin")},l=e.find(".nav-ewc-pin-tt"),m=function(){return{fadeIn:function(){l.stop(!0,!0).css({top:h.position().top+h.height()/2-l.outerHeight(!0)/2+"px"}).fadeIn(200)},fadeOut:function(){l.stop(!0,
!0).fadeOut(200)},hide:function(){l.stop(!0,!0).hide()}}}();h.bind("mouseenter",function(){m.fadeIn()});h.bind("mouseleave",function(){m.fadeOut()});h.bind("click",function(){m.hide();f.hasClass("nav-ewc-pin")?(b.persist({noAnimation:!0}),k("1")):(b.unpersist({noAnimation:!0}),k("0"))});return{align:function(){var a=e.find(".nav-flyout-head");h.css({top:a.outerHeight()-a.height()+(parseInt(a.css("top"),10)||0)+250+"px"})},tryToShowTrainingTip:function(){f.hasClass("nav-ewc-pin")||(m.fadeIn(),setTimeout(function(){m.fadeOut()},
2E3),z())},resetVisibility:function(){(a.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)>=d.ewc.viewportWidthForPersistent?(e.find(".nav-flyout-body").addClass("nav-ewc-unpinbody"),f.show()):(f.hide(),e.find(".nav-flyout-body").removeClass("nav-ewc-unpinbody"))},isVisible:function(){return f.is(":visible")},collapse:function(){n(!0)},expand:function(){C();n(!1)}}}(b));b.onAlign(function(){d.ewc.pinnable&&t.align()});b.onShow(function(){b.lock()});b.onRender(k.once().on(function(){"function"===
typeof a.uet&&a.uet("x5","ewc",{wb:1});var e=b.elem(),f=b.getPanel().elem(),g=c("#nav-cart"),n=e.find(".nav-cart");d.ewc.isEWCStateExpanded?(f.hide(),b.getPanel().render({html:" "})):e.find(".nav-flyout-body").append(f);h.observe("cartCount",function(){n.html(g.html())});d.ewc.pinnable&&(t.resetVisibility(),r.resize(k.throttle(300).on(t.resetVisibility)))}));b.ableToPersist=w;b.hasQualifiedViewportForPersistent=function(){return m.hasQualifiedViewportForPersistent?m.hasQualifiedViewportForPersistent():
!1};var D=function(){e.getNow("isAuiP")&&g.when("A").execute("ForceAuiResize",function(b){b.trigger("resize",a,{width:1,height:1})})};b.applyPageLayoutForPersistent=function(){m.applyPageLayoutForPersistent();"function"===typeof a.maintainHeight&&a.maintainHeight();D()};b.unapplyPageLayoutForPersistent=function(){m.unapplyPageLayoutForPersistent();D()};(function(){var a,e=function(b){b.stop(!1,!0).animate({left:"-"+b.width()+"px"},400,function(){a=setTimeout(function(){f(b)},2E3)})},f=function(b){b.stop(!0,
!0).fadeOut(400,function(){b.css({left:"",display:""})});clearTimeout(a)},h=function(a,b){var d={right:"-"+a[0].offsetWidth+"px"};b?a.css(d):(a.animate(d,400,function(){c(this).css("right","")}),e(c(".nav-flyout-tail",a)))},g=!1;d.ewc.pinnable&&(g?t.expand():t.collapse());b.isSlidedIn=function(){return g};b.slideIn=q({context:b,check:function(){if(g)return!1},observe:function(a){C();b.isVisible()||b.show();var d=this.elem();a=a.noAnimation;var e={right:m.getEWCRightOffsetCssProperty?m.getEWCRightOffsetCssProperty():
"0"};a?d.stop().css(e):(d.stop().animate(e,400),f(c(".nav-flyout-tail",d)));g=!0}});b.onSlideIn=b.slideIn.observe;b.onSlideIn(function(){d.ewc.pinnable&&t.expand()});b.slideOut=q({context:b,check:function(){if(!g)return!1},observe:function(a){b.isVisible()||b.show();h(this.elem(),a.noAnimation);g=!1}});b.onSlideOut=b.slideOut.observe;b.onSlideOut(function(){d.ewc.pinnable&&t.collapse()})})();(function(){var a=!1;b.persist=q({context:b,check:function(b){if(a)return!1},observe:function(c){a=!0;b.applyPageLayoutForPersistent();
b.slideIn({noAnimation:c.noAnimation});b.lock()}});b.onPersist=b.persist.observe;b.unpersist=q({context:b,check:function(b){if(!a)return!1},observe:function(c){a=!1;b.unlock();b.slideOut({noAnimation:c.noAnimation});b.unapplyPageLayoutForPersistent()}});b.onUnpersist=b.unpersist.observe;b.isPersistent=function(){return a}})();var x=function(){!0===d.ewc.isEWCExpandCollapseFeatureEnabled?w()?(ewcExpandCollapseButton.style.display="flex",b.showUserPreference()):(b.unpersist({noAnimation:!0}),ewcExpandCollapseButton.style.display=
"none"):w()?b.persist({noAnimation:!0}):b.unpersist({noAnimation:!0})},E=function(a){c("#navbar").is(":hidden")?setTimeout(function(){E(a)},1E3):a()};E(function(){!0!==d.ewc.isEWCExpandCollapseFeatureEnabled&&b.show();r.scroll(function(){b.align()});r.resize(k.throttle(300).on(b.align));m.unbindEvents();!0===d.ewc.isEWCExpandCollapseFeatureEnabled?(ewcExpandCollapseButton.addEventListener("click",b.ewcExpandCollapseEventCallBack),a.addEventListener("load",x)):u&&m.ableToPersist()&&(b.persist({noAnimation:!0}),
a.addEventListener("load",x),c("#nav-flyout-ewc").addClass("nav-flyout-ewc-compact"));x();d.ewc.pinnable&&d.ewc.enableTrainingTip&&t.tryToShowTrainingTip();r.resize(k.throttle(300).on(x))});return b}});e.when("$","$F","config","util.mouseOut","util.velocityTracker","ewc.flyout").run("ewc.hoverTrigger",function(c,e,d,g,l,h){if(d.ewc.enableHover){var k=c("#nav-cart"),f=l();d=g(500);d.add(k);d.add(h.elem());d.enable();k.hover(function(){f.enable()},function(){f.disable()});d.action(function(){h.hasQualifiedViewportForPersistent()||
h.slideOut()});var p=e.debounce(500,!0).on(function(){h.hasQualifiedViewportForPersistent()||h.slideIn()});f.addThreshold({below:40},function(){p();f.disable()});var q=function(){var a=c(".nav-icon",k);h.hasQualifiedViewportForPersistent()?a.hide().css({visibility:"hidden"}):a.show().css({visibility:"visible"})};q();c(a).resize(function(){q()})}})})(a.$Nav,l)});
/* ******** */
(function(c){var b=window.AmazonUIPageJS||window.P,d=b._namespace||b.attributeErrors,a=d?d("RufusIngressAssets",""):b;a.guardFatal?a.guardFatal(c)(a,window):a.execute(function(){c(a,window)})})(function(c,b,d){});
/* ******** */
