(function(e){var h=window.AmazonUIPageJS||window.P,d=h._namespace||h.attributeErrors,b=d?d("BuffetSidesheetAssets",""):h;b.guardFatal?b.guardFatal(e)(b,window):b.execute(function(){e(b,window)})})(function(e,h,d){e.when("A","jQuery","ready").register("buffet-sidesheet",function(b){function m(a,c,n,f){r(a);b.$("#"+n).hide();b.$("#"+c).hide();document.body.style.overflow=q?q:"";history.pushState({buffetSidesheetOpen:!1},"");f&&k&&k.style.position&&p&&(k.style.position="",p=!1);b.delay(function(){var a=
document.getElementById("buffet-sidesheet-ingress");f&&(a=document.getElementById("safety-and-product-resources"));a&&"hidden"!==a.style.visibility&&a.focus()},100)}function e(a,c){b.$("#"+a).show(function(){l({right:"0px"},function(){b.$("#"+c).show()},a)})}function r(a){var c=b.$("#"+a).width()+50;l({right:"-"+c+"px"},function(){b.$("#"+a).hide()},a)}function l(a,c,n){b.animate(b.$("#"+n),a,100,"ease-out",c)}function d(a,c,b,f){return function(g){"Escape"===g.key||"Esc"===g.key?(g.preventDefault(),
g.stopPropagation(),m(a,c,b,f)):"Tab"===g.key&&g.shiftKey&&g.target.id===c&&(g.preventDefault(),g.stopPropagation())}}var q=document.body.style.overflow,k,p=!1;return{initializeBuffetSidesheet:function(a,c,b,f){var g=document.getElementById(a);Array.prototype.slice.call(g.querySelectorAll("*")).forEach(function(a){if(-1!==a.id.indexOf("content-container")||-1!==a.id.indexOf("ingress"))a.setAttribute("tabindex","0"),document.getElementById(c).setAttribute("tabindex","0")});document.getElementById(c).addEventListener("keydown",
d(a,c,b,f));document.getElementById(b).addEventListener("keydown",d(a,c,b,f));document.getElementById(a).addEventListener("keydown",d(a,c,b,f))},showBuffetSidesheet:function(a,c,d,f){k=document.getElementById("leftCol");f&&k&&(k.style.position="static",p=!0);b.$("#"+d).show();e(a,c);document.body.style.overflow="hidden";h.addEventListener("popstate",function(){history.state&&history.state.buffetSidesheetOpen||m(a,c,d,f)});history.pushState({buffetSidesheetOpen:!0},"");b.delay(function(){var a=document.getElementById(c);
a&&"hidden"!==a.style.visibility&&(a.setAttribute("tabindex","0"),a.focus())},100)},closeBuffetSidesheet:m,openWindow:function(a,b){return h.open(a,b,"width\x3d800,height\x3d1000,dependent\x3dyes,directories\x3dno,location\x3dno,menubar\x3dno,resizable\x3dyes,scrollbar\x3dyes,toolbar\x3dno; return true;")}}});e.when("A","ready").register("buffet-sidesheet-mobile",function(b){var d,e;return{initialize:function(b,l){b&&l&&(d=document.getElementById(b),e=document.getElementById(l));h.addEventListener("popstate",
function(){"open"!==e.value||history.state&&history.state.buffetSidesheet||(d.style.right="-120%",d.setAttribute("aria-hidden","true"),e.value="close",history.state&&history.state.buffetSidesheet&&history.back())})},openWindow:function(b,d){return h.open(b,d,"width\x3d800,height\x3d1000,dependent\x3dyes,directories\x3dno,location\x3dno,menubar\x3dno,resizable\x3dyes,scrollbar\x3dyes,toolbar\x3dno; return true;")}}})});