1!function(){"use strict";const e="site-refresh-aem-body";function t(){return window.location.hostname.includes("royalcaribbean")||document.body.classList.contains("js-rcl-site-refresh")||document.querySelector(".rcl-site-refresh")}function n(e){const t=document.querySelector("body");if(t&&e){const n=t.classList;if(n&&n.length>0)return n.contains(e)}return!1}let r=[],o=[];function a(e){return new Promise((t,n)=>{const r=document.createElement("script");r.src=e,r.setAttribute("defer",""),r.onload=()=>{const e=new Event("TargetScriptLoaded");document.dispatchEvent(e),window.dispatchEvent(e),t()},r.onerror=()=>n(new Error("failed to load script")),document.body.appendChild(r)})}function c(t,r,o=[]){return Array.from(t.childNodes).forEach(t=>{if(t?.tagName?.toLowerCase()==="SCRIPT".toLowerCase()){let r=n(e);t.src&&(r&&t.src.includes("clientlib-vendor")||o.push(t.src))}else{const e=t.cloneNode(!1);r.appendChild(e),t.childNodes.length>0&&c(t,e,o)}}),o}window.abTragetModule=(()=>{let s=!1,i=!1,l=null;function d(e){const t=document.querySelector(`[${e}]`);return t?.getAttribute(e)??null}function u(t="header"){const r=function(){const e=document.querySelector("[data-target-transparent]");return"true"===e?.getAttribute("data-target-transparent")}()??!1;let o;return"header"===t?o=d("data-header-api"):"footer"===t&&(o=d("data-footer-api")),o=n(e)?`${o}?isTransparent=${r}`:`${o}?isTransparent=${r}&isStatic=true`,o}function f(){return document.querySelector(".header__content")??document.querySelector(".main-navigation")??null}function y(e,t){return e?.getAttribute(t)??null}function h(){return null!=l||(l=function(e,t,n){if(e&&t&&n)return(y(e,t)??"false")==n;return!1}(f(),"data-target-enabled","true")),l}function m(){return document.getElementById("rciFooter")??document.querySelector(".xf-footer")??document.querySelector("footer")??null}function p(){return document.querySelector(".loader-header")??null}function w(){return document.querySelector(".loader-footer")??null}function b(e){e&&(e.style.display="block",e.style.opacity=1,e?.classList?.add("show"))}function g(e="header"){const t=document.createElement("div");return t.classList.add(`loader-${e}`),t.style.display="none",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.zIndex="1",t.style.justifyContent="center",t.style.alignItems="center",t.style.width="100%",t.style.height="100px",t}function S(e="header"){if("header"!==e||p()){if("footer"===e&&!document.querySelector(".loader-footer")){const e=g("footer"),t=m();t&&e&&t.insertBefore(e,t.firstChild)}}else{const e=g("header"),t=document.querySelector(".header__base")??document.querySelector(".navigationContainer")??null;t&&e&&t.insertBefore(e,t.firstChild)}}function E(e=!1,t="header"){if("header"===t){if(e)return S("header"),void(p()?.style&&(p().style.display="flex"));p()?.style&&(p().style.display="none")}else if("footer"===t){if(e)return S("footer"),void(w()?.style&&(w().style.display="flex"));w()?.style&&(w().style.display="none")}}const q=async(e="header")=>{let t=u(e);try{const e=await fetch(t);if(200===e?.status){const t=await e.text(),n=new DOMParser;return n.parseFromString(t,"text/html")}throw new Error("error is coming")}catch(e){throw A(),new Error(e)}},v=e=>{const t=f(),n=document.querySelector(".loader-header");if(r=[],n?.classList?.add("hidden"),e&&t){t.innerHTML="";const n=c(e,t,r);return setTimeout(()=>{b(t),T(),function(e){let t=e;for(;t.parentElement&&t.parentElement!==document.body;)t=t.parentElement;t.style.zIndex="unset"}(t)},500),void(n.length>0&&n.forEach(async e=>{await a(e)}))}t&&b(t)},L=e=>{o=[];const t=m(),n=document.querySelector(".loader-footer");if(n?.classList?.add("hidden"),e&&t){t.innerHTML="";const n=c(e,t,o);return b(t),void(n.length>0&&n.forEach(async e=>{await a(e)}))}t&&b(t)};function x(){var e;(e=f())&&(e.style.display="none",e?.classList?.contains("show")&&e?.classList?.remove("show")),E(!0,"header")}function C(){T()}function T(){E(!1,"header")}function A(){T(),b(f())}async function $(){if(t())try{x();const e=await q("header"),t=await q("footer");e&&e.body&&v(e.body),t&&t.body&&L(t.body),s=!1,i=!0,C()}catch(e){throw s=!1,A(),new Error("no data present")}else try{x();const e=await q("header"),t=await q("footer");e&&e.body&&v(e.body),t&&t.body&&L(t.body),s=!1,i=!0,C()}catch(e){throw s=!1,A(),new Error("no data present")}}const B=()=>{try{let e=y(f(),"data-target-exclusion-pages");return e=""!==e?e?.split(","):null,!!(e&&Array.isArray(e)&&e.length>0)&&function(e){let t=window.location.pathname;return e?.some(e=>t.endsWith(e))??!1}(e)}catch(e){return!1}};if(h())try{B()?A():$()}catch(e){A()}return{loadExperienceB:()=>{s||!h()||B()||(s=!0,$())},loadFallBackHtml:A}})()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.