1import{i as L}from"./index-84b426e0.js";window.addEventListener("DOMContentLoaded",()=>{var h,y;(window.matchMedia("(prefers-color-scheme: dark)").matches||localStorage.getItem("color-theme")==="dark")&&document.documentElement.classList.add("dark");const t=document.querySelector("#myVideo"),i=document.querySelector("#showVideo");let v=0,m=null;if(t){const a=()=>{var o;if(t.dataset.ready==="true")return;const n=t.dataset.hlsSrc;if(n){if(t.canPlayType("application/vnd.apple.mpegurl"))t.src=n;else if((o=window.Hls)!=null&&o.isSupported()){const s=new window.Hls({maxBufferLength:18,capLevelToPlayerSize:!0,autoStartLoad:!1});s.loadSource(n),s.attachMedia(t),t._hls=s}else t.src=n;t.dataset.ready="true"}},l=()=>{window.clearInterval(m),m=null};t.addEventListener("play",()=>{l(),m=window.setInterval(()=>{v+=1},1e3)}),t.addEventListener("pause",l),t.addEventListener("ended",l),i==null||i.addEventListener("click",async()=>{var n,o;a(),(n=t._hls)==null||n.startLoad(),t.muted=!1,t.volume=1,t.currentTime=0,i.classList.add("hidden");try{await t.play(),await((o=t.requestFullscreen)==null?void 0:o.call(t))}catch(s){console.debug("Video playback or fullscreen was unavailable.",s)}})}const d=document.querySelector("[data-booking-form]"),e=document.querySelector("#phone");if(!d||!e)return;const f=((y=(h=document.querySelector('[name="iso_code"]'))==null?void 0:h.content)==null?void 0:y.toLowerCase())||"us",c=L(e,{utilsScript:"https://cdn.jsdelivr.net/npm/[email protected]/build/js/utils.js",nationalMode:!1,excludeCountries:["eh"],initialCountry:f});e.value?c.setNumber(e.value.startsWith("+")?e.value:`+${e.value}`):e.value=`+${c.getSelectedCountryData().dialCode}`;const r=document.querySelector("[data-phone-error]"),p=document.querySelector("[data-phone-label]"),u=(a=!0)=>{const l=`+${c.getSelectedCountryData().dialCode}`,n=e.value.length>=7&&e.value.startsWith(l)&&!e.value.startsWith(`${l}0`)&&!e.value.startsWith(`${l} 0`)&&!e.value.startsWith(`${l}-0`);return e.setCustomValidity(n?"":(r==null?void 0:r.textContent.trim())||"Enter a valid phone number."),e.classList.toggle("border-red-600",!n&&a),p==null||p.classList.toggle("text-red-600",!n&&a),r==null||r.classList.toggle("hidden",n||!a),n};e.addEventListener("keypress",a=>{"+0123456789".includes(a.key)||a.preventDefault()}),e.addEventListener("input",()=>u(!1)),e.addEventListener("blur",()=>{const a=`+${c.getSelectedCountryData().dialCode}`;e.value.startsWith(a)||(e.value=`${a}${e.value}`),u()}),e.addEventListener("countrychange",()=>u(!1)),d.addEventListener("submit",a=>{if(!(u()&&d.checkValidity())){a.preventDefault(),d.reportValidity();return}document.querySelector("#watch_video").value=String(v),d.querySelector('[type="submit"]').disabled=!0})});
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.