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