(function(a){var n=window.AmazonUIPageJS||window.P,h=n._namespace||n.attributeErrors,f=h?h("AXFClientPluginAsset",""):n;f.guardFatal?f.guardFatal(a)(f,window):f.execute(function(){a(f,window)})})(function(a,n,h){a.when("A","ready").register("ContextualActionsAUI",function(f){function h(b){n.ue&&"function"===typeof n.ue.count&&n.ue.count(b,1)}function p(){a.when("mash","A").execute(function(b,c){c.on("a:pageUpdate",function(a){var k=c.$;a=k("#corePriceDisplay_mobile_feature_div").attr("data-csa-c-asin"); var q=!1;(k=k(".a-price-range span"))&&(q=2=e.length)){var y=document.getElementById(h),z=document.getElementById("buy-now-button"),v=c.$(u),r=c.$(x),p=0d):(l=d.scrollTop(),d.height(),e=e+0>l),m=e):(0g):(g=d.scrollTop(),d.height(),f=e.offset().top,e=e.height(),g=f+e>g),m=g,f=q,g=!1),k===m&&!a))return;k=m;e=a=!1;y&&(a=null!=y.offsetParent);z&&(e=null!=z.offsetParent);b.dispatchEvent({type:"appx:axf:buybox.availability",detail:{isBuyboxOnScreen:m,isCartButtonActive:a,isBuyNowButtonActive:e,isCustomAttribute:g,widgetID:f}})}};b&&(b.addEventListener("afx.mash.onclick.jumpToBuybox",d),b.addEventListener("appPause",function(c){b.removeEventListener("afx.mash.onclick.jumpToBuybox", d)}),b.addEventListener("appResume",function(c){b.addEventListener("afx.mash.onclick.jumpToBuybox",d)}),q="buybox",h="add-to-cart-button",u='[cel_widget_id\x3d"p13n-mobile-sims-fbt_DPSims_0"]',x=".sponsored-products-detail-mobile",a.scroll(function(){g(!1)}),0=d.length)){var p=document.getElementById("add-to-cart-button"),m=document.getElementById("buy-now-button"),q=c.$('[cel_widget_id\x3d"p13n-mobile-sims-fbt_DPSims_0"]'),r=c.$(".sponsored-products-detail-mobile"),u=c.$("#aw-udpv3-customer-reviews_feature_div"),t=0h):(g=h.scrollTop(),h.height(),d=d+-20>g),l=d):(0k):(k=h.scrollTop(),h.height(),e=d.offset().top,d=d.height(),k=e+d>k),l=k,e="buybox",k=!1),f===l&&!a))return;f=l;d=a=!1;p&&(a=null!=p.offsetParent);m&&(d=null!=m.offsetParent);b.dispatchEvent({type:"appx:axf:buybox.availability",detail:{isBuyboxOnScreen:l,isCartButtonActive:a,isBuyNowButtonActive:d,isCustomAttribute:k, widgetID:e}})}};b&&(b.addEventListener("afx.mash.onclick.jumpToBuybox",r),b.addEventListener("appPause",function(a){b.removeEventListener("afx.mash.onclick.jumpToBuybox",r)}),b.addEventListener("appResume",function(a){b.addEventListener("afx.mash.onclick.jumpToBuybox",r)}),a.scroll(function(){p(!1)}),0