(function(f){var e=window.AmazonUIPageJS||window.P,m=e._namespace||e.attributeErrors,l=m?m("DetailPagePQVAssets",""):e;l.guardFatal?l.guardFatal(f)(l,window):l.execute(function(){f(l,window)})})(function(f,e,m){function l(b,c){if(!(b instanceof c))throw new TypeError("Cannot call a class as a function");}function A(){B||(B=!0,f.register("pqv-ready"))}var r=function(){function b(c,b){for(var d=0;d<b.length;d++){var a=b[d];a.enumerable=a.enumerable||!1;a.configurable=!0;"value"in a&&(a.writable=!0); Object.defineProperty(c,a.key,a)}}return function(c,a,d){a&&b(c.prototype,a);d&&b(c,d);return c}}(),B=!1;f.when("dp-latency-marker").execute(A);f.when("PQVOverlayMarker").execute(A);f.when("pqv-ready").register("PQVConstants",function(){return{AUI_COMPONENT_TYPE_DESKTOP:"popover",AUI_COMPONENT_TYPE_MOBILE:"sheet",AUI_COMPONENT_MODULE_DESKTOP:"a-modal",AUI_COMPONENT_MODULE_MOBILE:"a-sheet",FEEDBACK_METRIC_NEGATIVE:"PQV:Feedback:Negative",FEEDBACK_METRIC_POSITIVE:"PQV:Feedback:Positive",INGRESS_CLICK_METRIC:"PQV:Ingress:Click", DEVICE_TYPE_DESKTOP:"Desktop",DEVICE_TYPE_MOBILE:"Mobile",PQV_DECLARATIVE_ACTION_ID:"pqv-trigger",PQV_INGRESS_CONTAINER_ID:"pqv-hidden-ingress",PQV_POPOVER_TRIGGER_ID:"pqv-overlay",PQV_TEMPLATE_ID:"pqv-template",PQV_TIMEOUT:2E3,PQV_TRIGGER_CONTAINER:"#dp",QUICK_LINKS:"buybox unqualified-buybox buying-options reviews report-issue twister".split(" "),ELEMENTS_TO_HIDE:"price-omnibus report-issue ratings bought-in-last-month twister newer-version documents price-list-price".split(" "),SPACE_KEY_CODE:32}}); f.when("A","jQuery","3p-promise","PQVConstants").register("PQV-API",function(b,c,a,d){var n=void 0,v=void 0,h=void 0,k=void 0,w=void 0;c("#"+d.PQV_INGRESS_CONTAINER_ID).removeClass("aok-hidden");return{initialize:function(g){var a=g===d.DEVICE_TYPE_MOBILE;v=a?d.AUI_COMPONENT_TYPE_MOBILE:d.AUI_COMPONENT_TYPE_DESKTOP;a=a?d.AUI_COMPONENT_MODULE_MOBILE:d.AUI_COMPONENT_MODULE_DESKTOP;g===d.DEVICE_TYPE_MOBILE&&f.when("a-sheet").execute(function(a){b.on("a:sheet:afterShow:pqvOverlay",function(){var c=a.get("pqvOverlay"); if(c){var g=b.$("#pqvBottomSheet").height();0<g&&c.changeHeight({height:g})}})});f.when("PQVOverlayMarker","pqv_quickLink","pqv_hideElement","pqv_metrics",a).execute(function(a,n,l,p,r){var C=a.loadTime,x=void 0,y=void 0,t=[];e.aPageStart&&p.recordMetric("PQV:Modal:"+g+":ReadyTime",a.loadTime-e.aPageStart);n.initialize();l.initialize();a=document.getElementById(d.PQV_TEMPLATE_ID);if(!a)throw Error("PQV template was not found on the page");if(a.content&&a.content.cloneNode){n=a.content.cloneNode(!0); l=document.querySelector(d.PQV_TRIGGER_CONTAINER);if(!l)throw Error("PQV trigger container was not found on the page");l.insertBefore(n,l.firstChild);a.remove&&a.remove();var z=c("#"+d.PQV_POPOVER_TRIGGER_ID);if(1>z.length)throw Error("PQV trigger was not found on the page");w=r.get(z);f.register("PQVPopoverTrigger",function(){return z});b.on("a:"+v+":afterShow:pqvOverlay",function(){x=+new Date;p.incrementMetric("PQV:Modal:"+g+":View");p.recordMetric("PQV:Modal:"+g+":LaunchTime",x-C);c("body \x3e div:visible:not([aria-hidden]):not([aria-modal]):not([aria-live]):not(.a-modal-scroller):not(.a-sheet-web-container)").each(function(){0< this.innerText.length&&(this.setAttribute("aria-hidden","true"),t.push(this))});for(var a=c(".pqv-time"),b=0;b<a.length;b++){var d=c(a.get(b)),k=parseInt(d.attr("datetime"));d.text((new Date(k)).toLocaleString())}});b.on("a:"+v+":afterHide:pqvOverlay",function(){y=+new Date;p.incrementMetric("PQV:Modal:"+g+":Close");p.recordMetric("PQV:Modal:"+g+":DwellTime",y-x);C=y;k?function(){var a=c(k),g=a.attr("tabindex"),b=0<=+g;b||a.attr("tabindex","-1");a[0].focus({focusVisible:b,preventscroll:!0});a[0].scrollIntoView({behavior:"smooth"}); b||function(){a.blur(function D(){g!==a.attr("tabindex")&&("undefined"===typeof g?a.removeAttr("tabindex"):a.attr("tabindex",g));a.unbind("blur",D)})}()}():h&&h.focus();if(w.attrs){var a=!(k||h);w.attrs("restoreFocusOnHide",a);a||function(){var a=e.scrollTo;e.scrollTo=function(){};b.delay(function(){e.scrollTo=a},750)}()}h=k=m;for(a=0;a<t.length;a++)t[a].removeAttribute("aria-hidden");t.splice(0,t.length)});var q=c("#"+d.PQV_DECLARATIVE_ACTION_ID);q.click(function(){p.incrementMetric(d.INGRESS_CLICK_METRIC)}); q.keydown(function(a){a.keyCode===d.SPACE_KEY_CODE&&p.incrementMetric(d.INGRESS_CLICK_METRIC)});var u=b.$("#pqv-ingress");u.attr("tabindex",0);q.attr("tabindex",-1);u.focus(function(){u.removeAttr("tabindex");q.removeAttr("tabindex");q[0].focus()});q.blur(function(){u.attr("tabindex",0);q.attr("tabindex",-1)});0<=navigator.userAgent.toUpperCase().indexOf("MAC")&&u.addClass("has-opt-key")}})},checkVisibility:function(a){return"function"===typeof a.checkVisibility?a.checkVisibility({visibilityProperty:!0, checkVisibilityCSS:!0}):!!(a.offsetParent||a.offsetWidth||a.offsetHeight||a.getClientRects().length)&&"hidden"!==getComputedStyle(a).visibility},get:function(){n||(n=new a(function(a,c){var g=!1,k=b.delay(function(){g=!0;c()},d.PQV_TIMEOUT);f.when("PQVPopoverTrigger").execute(function(c){f.when("a-modal").execute(function(b){g||(clearTimeout(k),a(b.get(c)))})})}));return n},setReturnFocusElement:function(a){h=a},setReturnHash:function(a){k=a}}});f.when("pqv-ready").execute(function(){function b(){var c= e.innerWidth*e.innerHeight;return!!document.elementsFromPoint(Math.floor(e.innerWidth/2),Math.floor(e.innerHeight/2)).find(function(a){if(["fixed","absolute"].includes(getComputedStyle(a).position))return a=a.clientWidth*a.clientHeight,0<c&&.5<a/c})}document.addEventListener("keydown",function(c){!c.shiftKey||!c.altKey||"KeyD"!==c.code||c.repeat||c.ctrlKey||c.metaKey||f.when("PQV-API","pqv_metrics","PQVConstants").execute(function(a,c,e){c.incrementMetric("PQV:Shortcut:Pressed");a.get().then(function(d){if(d.isActive())d.hide(), c.recordMetric("PQV:Shortcut:PressedToClose",1);else{var h;if(!(h=document.activeElement.matches('input[type\x3d"text"], input[type\x3d"search"], input[type\x3d"email"], input[type\x3d"password"], textarea, [contenteditable\x3d"true"], select')||b()))a:{h=document.querySelectorAll("#hmenu-container, .a-popover, .a-dropdown, .a-popover-modal");for(var k=0;k<h.length;k++)if(a.checkVisibility(h[k])){h=!0;break a}h=!1}h?c.recordMetric("PQV:Shortcut:Blocked",1):(document.activeElement&&a.setReturnFocusElement(document.activeElement), d.show())}}).catch(function(){f.now("PQVOverlayMarker").execute(function(a){document.getElementById(e.PQV_POPOVER_TRIGGER_ID)?a?c.recordMetric("PQV:Shortcut:Failed",1):c.recordMetric("PQV:Shortcut:Failed:PQVOverlayNotFound",1):c.recordMetric("PQV:Shortcut:Failed:PQVIngressNotFound",1)})})})})});f.when("pqv-ready").register("pqv_metrics",function(){return{recordMetric:function(b,c){e.ue&&"function"===typeof e.ue.count&&e.ue.count(b,c)},incrementMetric:function(b){var c=1<arguments.length&&arguments[1]!== m?arguments[1]:1;e.ue&&"function"===typeof e.ue.count&&e.ue.count(b,(e.ue.count(b)||0)+c)},recordLatency:function(b){e.uex&&"function"===typeof e.uex&&e.uex("ld",b,{wb:1})}}});f.when("PQV-API","PQVConstants").execute(function(b,c){b.initialize(c.DEVICE_TYPE_DESKTOP)});f.when("pqv","PQV-API","PQVConstants").execute(function(b,c,a){var d=function(){function a(c,b,d,g,e,f){l(this,a);this.A=c;this.overlay=b;this.deviceType=d;this.pqv=g;this.pqvMetrics=e;this.Constants=f;this.target=null}r(a,[{key:"initialize", value:function(){var a=this;this.Constants.QUICK_LINKS.forEach(function(b){b="pqv-"+b;var d=document.getElementById(b);if(d){var g=document.querySelector(d.dataset.target);g&&""!==g.innerText&&c.checkVisibility(g)?a.A.declarative(b+"-action","click",function(c){a.redirectOnClick(c)}):(a.pqvMetrics.incrementMetric("PQV:QuickLink:"+b+":TargetNotPresent"),d.classList.add("aok-hidden"))}})}},{key:"redirectOnClick",value:function(a){var c=a.$target.context.getAttribute("data-target"),b=this.overlay.get("pqvOverlay"); b&&(a.$event.preventDefault(),this.pqv.setReturnHash(c),b.hide())}}]);return a}(),e="mobile"===b.overlayType?a.DEVICE_TYPE_MOBILE:a.DEVICE_TYPE_DESKTOP;f.when("A","pqv_metrics",e===a.DEVICE_TYPE_MOBILE?a.AUI_COMPONENT_MODULE_MOBILE:a.AUI_COMPONENT_MODULE_DESKTOP).register("pqv_quickLink",function(b,f,k){return new d(b,k,e,c,f,a)})});f.when("pqv","PQV-API","PQVConstants").execute(function(b,c,a){var d=function(){function a(c,b,d,g,e,f){l(this,a);this.A=c;this.overlay=b;this.deviceType=d;this.pqv=g; this.pqvMetrics=e;this.Constants=f;this.target=null}r(a,[{key:"initialize",value:function(){var a=this;this.Constants.ELEMENTS_TO_HIDE.forEach(function(b){b="pqv-"+b;var d=document.getElementById(b);if(d){var g=document.querySelector(d.dataset.target);if(!g||""===g.innerText||!c.checkVisibility(g)||"pqv-bought-in-last-month"===b&&d.innerText!==g.innerText)a.pqvMetrics.incrementMetric("PQV:HideElement:"+b+":TargetNotPresent"),d.classList.add("aok-hidden")}})}}]);return a}(),e="mobile"===b.overlayType? a.DEVICE_TYPE_MOBILE:a.DEVICE_TYPE_DESKTOP;f.when("A","pqv_metrics",e===a.DEVICE_TYPE_MOBILE?a.AUI_COMPONENT_MODULE_MOBILE:a.AUI_COMPONENT_MODULE_DESKTOP).register("pqv_hideElement",function(b,f,k){return new d(b,k,e,c,f,a)})});f.when("A","a-button","pqv_metrics","PQVConstants","PQVOverlayMarker").execute(function(b,c,a,d){var e=function(){function a(b,c,d,e){l(this,a);this.$=b;this.metrics=c;this.positiveButton=d;this.negativeButton=e;this.feedbackMetricRecorded=m}r(a,[{key:"setFeedback",value:function(a){if(!this.feedbackMetricRecorded){var b= a?d.FEEDBACK_METRIC_POSITIVE:d.FEEDBACK_METRIC_NEGATIVE;this.metrics.incrementMetric(b);this.feedbackMetricRecorded=b;this.positiveButton.hide();this.negativeButton.hide();a="pqv-feedback-message-"+(a?"positive":"negative");this.$("#"+a).removeClass("aok-hidden");this.$("#pqv-feedback-reset").removeClass("aok-hidden");this.$("#pqv-feedback-buttons-section")&&this.$("#pqv-feedback-buttons-section").addClass("aok-hidden");this.$("#pqv-feedback-submit-section")&&this.$("#pqv-feedback-submit-section").removeClass("aok-hidden"); this.$("#"+a+" .a-alert-content").focus()}}},{key:"resetFeedback",value:function(){if(this.feedbackMetricRecorded){this.metrics.incrementMetric(this.feedbackMetricRecorded,-1);this.feedbackMetricRecorded=m;this.positiveButton.show();this.negativeButton.show();this.$("#pqv-feedback-reset").addClass("aok-hidden");this.$("#pqv-feedback-message-positive").addClass("aok-hidden");this.$("#pqv-feedback-message-negative").addClass("aok-hidden");var a=this.$("#pqv-feedback-buttons-section"),b=this.$("#pqv-feedback-submit-section"); a&&a.removeClass("aok-hidden");b&&this.$("#pqv-feedback-submit-section").addClass("aok-hidden");this.$("#pqv-feedback-positive-native").focus()}}}]);return a}();b.$("#pqv-feedback .a-alert-content").attr("tabindex",-1);var f=c("#pqv-feedback-positive");c=c("#pqv-feedback-negative");var h=new e(b.$,a,f,c);b.declarative("pqv-feedback-positive-action","click",function(){h.setFeedback(!0)});b.declarative("pqv-feedback-negative-action","click",function(){h.setFeedback(!1)});b.declarative("pqv-feedback-reset-action", "click",function(){h.resetFeedback()})})});