(function(d){var f=window.AmazonUIPageJS||window.P,g=f._namespace||f.attributeErrors,a=g?g("WebFlowIngressJs",""):f;a.guardFatal?a.guardFatal(d)(a,window):a.execute(function(){d(a,window)})})(function(d,f,g){d.when("jQuery").register("webflow-fetch-experience",function(a){return{fetchExperience:function(a){return fetch(a,{headers:{Accept:"application/vnd.com.amazon.xa+html"}}).then(function(a){if(a.ok)return a.text();throw Error("Network response: "+a.status);}).then(function(a){return{html:a}}).catch(function(a){return{error:a}})},
buildExperienceUrl:function(d,h){var c=new URL(d,f.location);(new URLSearchParams(a.param(h))).forEach(function(a,e){c.searchParams.set(e,a)});return c.toString()}}});d.when("A","a-modal-framework","a-modal-framework-constants").register("webflow-modal",function(a,d,f){return{presentModal:function(c){c={type:"ajax",source:c};var b='\x3cdiv class\x3d"'+f.CONTENT_WRAPPER_CLASS+'"\x3e\x3c/div\x3e';b=a.$('\x3cdiv style\x3d"background-color:white" class\x3d"overlay-container"\x3e\x3c/div\x3e').append("",
'\x3cbutton class\x3d"overlay-close"\x3e\x3cspan class\x3d"a-icon a-icon-close-white"\x3e\x3c/span\x3e\x3c/button\x3e').append(b);c=new d(b,c,{dismissStrategy:"transient",scrimType:"translucent"});c.present();c=c._frameworkWrapper.find(".overlay-close");a.declarative.create(c,"a-modal-framework-dismiss");a.declarative("a-modal-framework-dismiss",["click","keydown"],function(b){var c=a.$(b.$currentTarget).closest("."+constants.FRAMEWORK_WRAPPER_CLASS);if(0!==c.length&&(c=c.data("overlayInstance"))){var d=
"keydown"===b.type&&b.$event.which===a.constants.keycodes.ESCAPE;("click"===b.type||"persistent"!==c._dismissStrategy&&d)&&c.dismiss()}})}}});d.when().register("webflow-bottomsheet",function(){return{}});d.when("webflow-modal","webflow-bottomsheet","webflow-fetch-experience").register("webflow-routing",function(a,g,h){function c(a){try{f.top.location.href=a}catch(e){d.logError(e,"Could not change the URL in the parent window:"+a,"ERROR")}}return{show:function(b){var e=null;"url"in b.route?e=b.route.url:
"web"in b.route&&"url"in b.route.web?e=b.route.web.url:"flow"in b.route&&(e=h.buildExperienceUrl(b.route.flow.endpoint,b.route.flow.inputs));if(null===e)throw Error("Invalid Options Error: no url found");"bottom-sheet"==b.presentationConfig.presentationType&&g.presentBottomSheet(e);"modal-with-overlay"==b.presentationConfig.presentationType&&a.presentModal(e);"push"==b.presentationConfig.presentationType&&(b.route.url?c(e):b.route.web.url?c(e):(d.logError(null,"fullUrl not available:"+e+", navigating to fallbackUrl",
"WARN"),c(b.route.flow.fallbackUrl)))}}})});