1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="d1bcb938-9afa-b1d8-49c3-051d8f5c0384")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,149106,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useRouterBFCache",{enumerable:!0,get:function(){return a}});let n=e.r(129580);function a(e,t,r){let[a,o]=(0,n.useState)(()=>({tree:e,cacheNode:t,stateKey:r,next:null}));if(a.tree===e)return a;let i={tree:e,cacheNode:t,stateKey:r,next:null},l=1,s=a,u=i;for(;null!==s&&l<1;){if(s.stateKey===r){u.next=s.next;break}{l++;let e={tree:s.tree,cacheNode:s.cacheNode,stateKey:s.stateKey,next:null};u.next=e,u=e}s=s.next}return o(i),i}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},683304,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let n=e.r(117844),a=e.r(530069),o=e.r(129580),i=e.r(484412),l=e.r(230298),s=e.r(428375);function u(e){let t,r,{Component:u,serverProvidedParams:c}=e;if(null!==c)t=c.searchParams,r=c.params;else{let e=(0,o.use)(a.LayoutRouterContext);r=null!==e?e.parentParams:{},t=(0,i.urlSearchParamsToParsedUrlQuery)((0,o.use)(l.SearchParamsContext))}let d=(0,s.createClientSearchParams)(t),p=(0,s.createClientParams)(r);return(0,n.jsx)(u,{params:p,searchParams:d})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},969368,(e,t,r)=>{"use strict";var n=e.r(43793),a=e.r(470325);Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ClientSegmentRoot",{enumerable:!0,get:function(){return u}});let o=e.r(117844),i=e.r(530069),l=e.r(129580),s=e.r(428375);function u(e){let t,{Component:r,slots:u,serverProvidedParams:c}=e;if(null!==c)t=c.params;else{let e=(0,l.use)(i.LayoutRouterContext);t=null!==e?e.parentParams:{}}let d=(0,s.createClientParams)(t);return(0,o.jsx)(r,a._(n._({},u),{params:d}))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},668340,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"HTTPAccessFallbackBoundary",{enumerable:!0,get:function(){return c}});let n=e.r(756662),a=e.r(117844),o=n._(e.r(129580)),i=e.r(906545),l=e.r(555113),s=e.r(530069);class u extends o.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,l.isHTTPAccessFallbackError)(e))return{triggeredStatus:(0,l.getAccessFallbackHTTPStatus)(e)};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.triggeredStatus?{triggeredStatus:void 0,previousPathname:e.pathname}:{triggeredStatus:t.triggeredStatus,previousPathname:e.pathname}}render(){let{notFound:e,forbidden:t,unauthorized:r,children:n}=this.props,{triggeredStatus:o}=this.state,i={[l.HTTPAccessErrorStatus.NOT_FOUND]:e,[l.HTTPAccessErrorStatus.FORBIDDEN]:t,[l.HTTPAccessErrorStatus.UNAUTHORIZED]:r};if(o){let s=o===l.HTTPAccessErrorStatus.NOT_FOUND&&e,u=o===l.HTTPAccessErrorStatus.FORBIDDEN&&t,c=o===l.HTTPAccessErrorStatus.UNAUTHORIZED&&r;return s||u||c?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("meta",{name:"robots",content:"noindex"}),!1,i[o]]}):n}return n}constructor(e){super(e),this.state={triggeredStatus:void 0,previousPathname:e.pathname}}}function c(e){let{notFound:t,forbidden:r,unauthorized:n,children:l}=e,c=(0,i.useUntrackedPathname)(),d=(0,o.useContext)(s.MissingSlotContext);return t||r||n?(0,a.jsx)(u,{pathname:c,notFound:t,forbidden:r,unauthorized:n,missingSlots:d,children:l}):(0,a.jsx)(a.Fragment,{children:l})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
2dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},456406,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return o},PlaceValidationBoundaryBelowThisLevel:function(){return i},RenderValidationBoundaryAtThisLevel:function(){return l},SlotMarker:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=null,i=null,l=null,s=null;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},865012,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={InstantValidationBoundaryContext:function(){return o.InstantValidationBoundaryContext},PlaceValidationBoundaryBelowThisLevel:function(){return o.PlaceValidationBoundaryBelowThisLevel},RenderValidationBoundaryAtThisLevel:function(){return o.RenderValidationBoundaryAtThisLevel},SlotMarker:function(){return o.SlotMarker}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(456406);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},170697,(e,t,r)=>{"use strict";var n=e.r(43793),a=e.r(470325);Object.defineProperty(r,"__esModule",{value:!0});var o={LoadingBoundaryProvider:function(){return C},default:function(){return x}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});let l=e.r(366503),s=e.r(756662),u=e.r(117844),c=s._(e.r(129580)),d=l._(e.r(52719)),p=e.r(530069),h=e.r(999269),f=e.r(117824),m=e.r(291522),g=e.r(528762),y=e.r(668340);e.r(865012);let b=e.r(169192),v=e.r(149106);e.r(117264);let P=e.r(230298),_=e.r(484412),T=e.r(400535);d.default.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function O(e,t,r){let n=e.getClientRects();if(0===n.length)return 0;let a=1/0;for(let e=0;e<n.length;e++){let t=n[e];t.top<a&&(a=t.top)}return a>=r()&&a<=t?1:2}c.default.Component;let S=function(e){let t=c.default.useRef(null);return(0,c.useLayoutEffect)(()=>{let{focusAndScrollRef:r,cacheNode:n}=e,a=r.forceScroll?r.scrollRef:n.scrollRef;if(null===a||!a.current)return;let o=null,i=r.hashFragment;if(i){var l,s,u;if(null===(o="top"===(l=i)?document.body:null!=(s=null!=(u=document.getElementById(l))?u:document.getElementsByName(l)[0])?s:null)){a.current=!1,r.onlyHashChange=!1,r.hashFragment=null;return}}else o=t.current;if(null===o)return;let c=!1;(0,m.disableSmoothScrollDuringRouteTransition)(()=>{let e=document.documentElement,t=null,r=null,n=null,l=()=>{var r,a;let o,i;return null===n&&(r=e,a=t,n=!Number.isFinite(i=Number.parseFloat(o=getComputedStyle(r).scrollPaddingTop))||i<0?0:o.endsWith("px")?i:o.endsWith("%")?i/100*a:0),n};(i||(t=e.clientHeight,0!==(r=O(o,t,l))))&&((c=!0,a.current=!1,i)?o.scrollIntoView():1!==r&&(e.scrollTop=0,2===O(o,t,l)&&o.scrollIntoView()))},{dontForceLayout:!0,onlyHashChange:r.onlyHashChange}),c&&(r.onlyHashChange=!1,r.hashFragment=null)},void 0),(0,u.jsx)(c.Fragment,{ref:t,children:e.children})};function j(e){let{children:t,cacheNode:r}=e,n=(0,c.useContext)(p.GlobalLayoutRouterContext);if(!n)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});return(0,u.jsx)(S,{focusAndScrollRef:n.focusAndScrollRef,cacheNode:r,children:t})}function w(e){let t,{tree:r,segmentPath:n,debugNameContext:a,cacheNode:o,params:i,url:l,isActive:s}=e,d=(0,c.useContext)(p.GlobalLayoutRouterContext);if((0,c.useContext)(P.NavigationPromisesContext),!d)throw Object.defineProperty(Error("invariant global layout router not mounted"),"__NEXT_ERROR_CODE",{value:"E473",enumerable:!1,configurable:!0});let f=null!==o?o:(0,c.use)(h.unresolvedThenable),m=null!==f.prefetchRsc?f.prefetchRsc:f.rsc,g=(0,c.useDeferredValue)(f.rsc,m);if((0,T.isDeferredRsc)(g)){let e=(0,c.use)(g);null===e&&(0,c.use)(h.unresolvedThenable),t=e}else null===g&&(0,c.use)(h.unresolvedThenable),t=g;let y=t;return(0,u.jsx)(p.LayoutRouterContext.Provider,{value:{parentTree:r,parentCacheNode:f,parentSegmentPath:n,parentParam
2s:i,parentLoadingData:null,debugNameContext:a,url:l,isActive:s},children:y})}function C(e){let{loading:t,children:r}=e,n=(0,c.use)(p.LayoutRouterContext);return null===n?r:(0,u.jsx)(p.LayoutRouterContext.Provider,{value:{parentTree:n.parentTree,parentCacheNode:n.parentCacheNode,parentSegmentPath:n.parentSegmentPath,parentParams:n.parentParams,parentLoadingData:t,debugNameContext:n.debugNameContext,url:n.url,isActive:n.isActive},children:r})}function A(e){let{name:t,loading:r,children:n}=e;if(null!==r){let e=r[0],a=r[1],o=r[2];return(0,u.jsx)(c.Suspense,{name:t,fallback:(0,u.jsxs)(u.Fragment,{children:[a,o,e]}),children:n})}return(0,u.jsx)(u.Fragment,{children:n})}function x(e){var t;let{parallelRouterKey:r,error:o,errorStyles:i,errorScripts:l,templateStyles:s,templateScripts:d,template:m,notFound:P,forbidden:T,unauthorized:O,segmentViewBoundaries:S}=e,C=(0,c.useContext)(p.LayoutRouterContext);if(!C)throw Object.defineProperty(Error("invariant expected layout router to be mounted"),"__NEXT_ERROR_CODE",{value:"E56",enumerable:!1,configurable:!0});let{parentTree:x,parentCacheNode:H,parentSegmentPath:R,parentParams:E,parentLoadingData:k,url:M,isActive:N,debugNameContext:D}=C,L=x[0],F=null===R?[r]:R.concat([L,r]),U=x[1][r],I=H.slots;(void 0===U||null===I)&&(0,c.use)(h.unresolvedThenable);let W=U[0],B=null!=(t=I[r])?t:null,q=(0,b.createRouterCacheKey)(W,!0),K=(0,v.useRouterBFCache)(U,B,q),Y=[];do{let e=K.tree,t=K.cacheNode,r=K.stateKey,c=e[0],h=E;if(Array.isArray(c)){let e=c[0],t=c[1],r=c[2],o=(0,_.getParamValueFromCacheKey)(t,r);null!==o&&(h=a._(n._({},E),{[e]:o}))}let b=function(e){if("/"===e)return"/";if("string"==typeof e)if("(__SLOT__)"===e)return;else return e+"/";return e[1]+"/"}(c),v=null!=b?b:D,S=void 0===b?void 0:D,C=(0,u.jsxs)(j,{cacheNode:t,children:[(0,u.jsx)(f.ErrorBoundary,{errorComponent:o,errorStyles:i,errorScripts:l,children:(0,u.jsx)(A,{name:S,loading:k,children:(0,u.jsx)(y.HTTPAccessFallbackBoundary,{notFound:P,forbidden:T,unauthorized:O,children:(0,u.jsxs)(g.RedirectBoundary,{children:[(0,u.jsx)(w,{url:M,tree:e,params:h,cacheNode:t,segmentPath:F,debugNameContext:v,isActive:N&&r===q}),null]})})})}),null]}),x=(0,u.jsxs)(p.TemplateContext.Provider,{value:C,children:[s,d,m]},r);Y.push(x),K=K.next}while(null!==K)return Y}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},138153,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return l}});let n=e.r(756662),a=e.r(117844),o=n._(e.r(129580)),i=e.r(530069);function l(){let e=(0,o.useContext)(i.TemplateContext);return(0,a.jsx)(a.Fragment,{children:e})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},222438,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},951060,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(222438).createRenderParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},429292,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return a}});let n=new WeakMap;function a(e){let t=n.get(e);if(t)return t;let r=Promise.resolve(e);return n.set(e,r),r}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
2dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},132526,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRenderSearchParamsFromClient",{enumerable:!0,get:function(){return n}});let n=e.r(429292).createRenderSearchParamsFromClient;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},428375,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={createClientParams:function(){return o.createRenderParamsFromClient},createClientSearchParams:function(){return i.createRenderSearchParamsFromClient}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(951060),i=e.r(132526);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},998024,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"IconMark",{enumerable:!0,get:function(){return a}});let n=e.r(117844),a=()=>"u">typeof window?null:(0,n.jsx)("meta",{name:"«nxt-icon»"})},291522,(e,t,r)=>{"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.onlyHashChange)return void e();let r=document.documentElement;if("smooth"!==r.dataset.scrollBehavior)return void e();let n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"disableSmoothScrollDuringRouteTransition",{enumerable:!0,get:function(){return n}})},463335,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3xr6c_bd8lui8.js"].map(t=>e.l(t))).then(()=>t(225191)))},514954,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0h3wbdpuc9k_1.js","static/immutable/chunks/3g6n9wamkbhai.js"].map(t=>e.l(t))).then(()=>t(738547)))},940655,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3_ipex_m_9ehh.js","static/immutable/chunks/2fve4mm52j_v4.js"].map(t=>e.l(t))).then(()=>t(292727)))},581513,e=>{"use strict";let t=new Set(["hotel","lodging","hostel","motel","inn","resort","guest house","bed and breakfast","extended stay hotel","resort hotel"]);e.s(["buildHotelSearchPrompt",0,function(e){let r,{destination:n,checkInLabel:a,checkOutLabel:o,rooms:i,adults:l,children:s,starRating:u,placeType:c,notes:d}=e,p=[],h=n.trim();(r=(null!=c?c:"").trim().toLowerCase().replaceAll("_"," "))&&(r.includes("hotel")||r.includes("lodging")||t.has(r))?h&&p.push("Look up ".concat(h)):(p.push("Find ".concat("Any"!==u?"".concat(u," "):"","hotels")),h&&p.push("in ".concat(h))),a&&p.push("checking in ".concat(a)),o&&p.push("checking out ".concat(o));let f=[];l>0&&f.push("".concat(l," adult").concat(l>1?"s":"")),s>0&&f.push("".concat(s," child").concat(s>1?"ren":"")),f.length&&p.push("for ".concat(f.join(" and "))),i>1&&p.push("".concat(i," rooms"));let m=(null!=d?d:"").trim();return m&&p.push(m),p.join(", ")},"formatHotelDestinationForPrompt",0,function(e,t){if(!t)return e.trim();let r=t.label.trim()||e.trim(),n=t.placeType||"place";return"".concat(r," (").concat(n.replaceAll("_"," "),"; coordinates ").concat(t.lat.toFixed(5),", ").concat(t.lon.toFixed(5),")")}])},348941,e=>{"use strict";var t=e.i(129580),r=e.i(150609);function n(e){let t=e.getAttribute("href"),n=(0,r.toAffiliateUrl)(t);t&&n&&n!==t&&e.setAttribute("href",n)}function a(e){e instanceof Element&&(e instanceof HTMLAnchorElement&&n(e),e.querySelectorAll("a[href]").forEach(n))}e.s(["AffiliateLinkGuard",0,function(){return(0,t.useEffect)(()=>{let e=window.open,t=(t,n,a)=>{var o;let i="string"==typeof t?t:null==t?void 0:t.toString(),l=null!=(o=(0,r.toAffiliateUrl)(i))?o:i;return e.call(window,l,n,a)};window.open=t,document.querySelectorAll("a[href]").forEach(n);let o=new MutationObserver(e=>{for(let t of e)"attributes"===t.type&&t.target instanceof HTMLAnchorElement&&n(t.target),t.addedNodes.forEac
2h(a)});o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["href"]});let i=e=>{if(e.target instanceof Element){let t=e.target.closest("a[href]");t&&n(t)}};return document.addEventListener("pointerdown",i,!0),document.addEventListener("contextmenu",i,!0),()=>{window.open===t&&(window.open=e),o.disconnect(),document.removeEventListener("pointerdown",i,!0),document.removeEventListener("contextmenu",i,!0)}},[]),null}])},123767,e=>{"use strict";var t=e.i(129580);e.s(["MobileBrowserChromeCollapse",0,function(){return(0,t.useEffect)(()=>{let e,t=window.matchMedia("(max-width: 767.98px)"),r=new WeakMap,n=!1,a=()=>{if(!t.matches)return;let e=document.documentElement.scrollHeight-window.innerHeight;!(e<=0)&&window.scrollY<1&&window.scrollTo(0,Math.min(e,1))},o=e=>{var t;let n=e.target;if(n===document||n===document.documentElement||n===document.body||!(n instanceof HTMLElement)||null==n.scrollTop)return;let{overflowY:o}=getComputedStyle(n);if("auto"!==o&&"scroll"!==o&&"overlay"!==o)return;let i=n.scrollTop;i>(null!=(t=r.get(n))?t:0)&&i>8&&a(),r.set(n,i)},i=()=>{n&&(n=!1,void 0!==e&&(window.clearTimeout(e),e=void 0),document.removeEventListener("scroll",o,{capture:!0}))},l=()=>{t.matches?n||(n=!0,r=new WeakMap,e=window.setTimeout(a,50),document.addEventListener("scroll",o,{passive:!0,capture:!0})):i()},s=()=>{t.matches&&(void 0!==e&&window.clearTimeout(e),e=window.setTimeout(a,50))};return l(),t.addEventListener("change",l),window.addEventListener("orientationchange",s),()=>{t.removeEventListener("change",l),window.removeEventListener("orientationchange",s),i()}},[]),null}])},341271,e=>{e.v(t=>Promise.all(["static/immutable/chunks/436vkdo2zqmzx.js","static/immutable/chunks/2hjce40cgpejk.js","static/immutable/chunks/2afs5s78pg04t.js"].map(t=>e.l(t))).then(()=>t(562606)))},918789,e=>{"use strict";var t=e.i(129580);e.i(145276);var r=e.i(334777);e.i(795539);var n=e.i(652552),a=e.i(154044);e.s(["CheckoutWebMcpTools",0,function(){let{session:e}=(0,r.useCheckoutState)(),o=(0,t.useMemo)(()=>(0,n.createCheckoutWebMcpTools)(()=>(0,n.summarizeCheckoutSession)(e)),[e]);return(0,a.useWebMcpTools)(o),null}])},174491,e=>{"use strict";var t=e.i(129580),r=e.i(83236);e.i(795539);var n=e.i(652552),a=e.i(154044);e.s(["WebMcpTools",0,function(){var e;let o=(0,r.useRouter)(),i=null!=(e=(0,r.usePathname)())?e:"/",l=(0,t.useMemo)(()=>(0,n.createGlobalWebMcpTools)({navigate:e=>{o.push(e)},getPathname:()=>"".concat(window.location.pathname).concat(window.location.search),getTitle:()=>"u">typeof document?document.title:""}),[i,o]);return(0,a.useWebMcpTools)(l),null}])},795539,652552,154044,e=>{"use strict";var t=e.i(450939),r=e.i(696720);let n={home:{id:"home",path:t.PATH.HOME,description:"Start a new trip-planning chat"},chat:{id:"chat",path:t.PATH.CHAT,description:"Open the planning workspace"},hotels:{id:"hotels",path:"/hotels",description:"Search stays with dates and guests"},flights:{id:"flights",path:"/flights",description:"Search flights with dates and passengers"},places:{id:"places",path:"/places",description:"Browse public place guides"},trips:{id:"trips",path:t.PATH.TRIP_WORKSPACE,description:"Open saved trips"},history:{id:"history",path:t.PATH.HISTORY,description:"Open past chats"},saved:{id:"saved",path:"/saved",description:"Open saved places"},checkout:{id:"checkout",path:"/checkout",description:"Open the booking cart"},profile:{id:"profile",path:t.PATH.PROFILE,description:"Open account and bookings"},review:{id:"review",path:"/review",description:"Review an extracted itinerary"},contact:{id:"contact",path:t.PATH.CONTACT_US,description:"Contact SearchSpot"},how_it_works:{id:"how_it_works",path:t.PATH.HOW_IT_WORKS,description:"Read how SearchSpot works"},faqs:{id:"faqs",path:t.PATH.FAQS,description:"Read frequently asked questions"},about:{id:"about",path:t.PATH.ABOUT_US,description:"Read about SearchSpot"}},a=Object.keys(n),o=[t.PATH.HOME,t.PATH.CHAT,"/hotels","/flights","/places",t.PATH.TRIP_WORKSPACE,t.PATH.HISTORY,"/saved","/checkout",t.PATH.PROFILE,"/review",t.PATH.CONTACT_US,t.PATH.HOW_IT_WORKS,t.PATH.FAQS,t.PATH.ABOUT_US,t.PATH.SIGN_IN,t.PATH.PUBLIC_CHAT];function i(e,t){return e.startsWith("/places/")&&"/places"!==e&&t.replace(/\s*[ââ|-]\s*SearchSpot.*$/i,"").replace(/\s+travel guide.*$/i,"").trim()||null}var l=e.i(964909),s=e.i(54327),u=e.i(581513);let c=/^(\d{4})-(\d{2})-(\d{2})$/;function d(e,t){if("string"!=typeof e||!e.trim())throw Error("".concat(t," is required."));return e.trim()}function p(e){if("string"==typeof e)return e.trim()||void 0}function h(e,t,r){if(null==e||""===e)return r;let n="number"==typeof e?e:Number(e);if(!Number.isInteger(n)||n<0)throw Error("".concat(t," must be a whole number of 0 or more."));return n}
2function f(e){let t=e.trim(),r=t.match(c);if(!r)return t;let n=Number(r[1]),a=Number(r[2]),o=Number(r[3]),i=new Date(Date.UTC(n,a-1,o));if(i.getUTCFullYear()!==n||i.getUTCMonth()!==a-1||i.getUTCDate()!==o)throw Error('"'.concat(t,'" is not a real calendar date.'));return i.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric",timeZone:"UTC"})}function m(e){let t=d(e,"prompt");return"/chat?q=".concat(encodeURIComponent(t))}let g=["Any","3-star","4-star","5-star"];function y(e,t){return{ok:!0,path:e,message:t}}e.s(["createCheckoutWebMcpTools",0,function(e){return[{name:"get_checkout_summary",description:"Read the current booking cart: item titles, types, and status. Does not change the cart or start payment. The traveler completes checkout in the UI.",inputSchema:{type:"object",properties:{},additionalProperties:!1},annotations:{readOnlyHint:!0},execute:()=>e()}]},"createGlobalWebMcpTools",0,function(e){return[{name:"get_page_context",description:"Read the current SearchSpot page: path, title, and which travel tools apply here.",inputSchema:{type:"object",properties:{},additionalProperties:!1},annotations:{readOnlyHint:!0},execute:()=>{let r,n=e.getPathname(),a=e.getTitle(),o="/"===(r=n||"/")||r===t.PATH.LANDING?{surface:"landing",hint:"Public marketing page. Use start_planning to begin a trip conversation."}:r===t.PATH.HOME||r.startsWith("".concat(t.PATH.HOME,"/"))||r.startsWith("".concat(t.PATH.HOME,"?"))?{surface:"home",hint:"Planning home. Use start_planning with the traveler request, or search_hotels / search_flights for structured search."}:r===t.PATH.CHAT||r.startsWith("".concat(t.PATH.CHAT,"/"))||r.startsWith("".concat(t.PATH.CHAT,"?"))?{surface:"chat",hint:"Trip-planning workspace. Use start_planning to begin a new request, or keep working in this chat."}:"/hotels"===r||r.startsWith("/hotels/")?{surface:"hotels",hint:"Hotel search. Use search_hotels with destination and stay dates."}:"/flights"===r||r.startsWith("/flights/")?{surface:"flights",hint:"Flight search. Use search_flights with origin, destination, and dates."}:r.startsWith("/places/")?{surface:"place",hint:"Public place guide. Use plan_around_place to start a trip that includes this place."}:"/places"===r?{surface:"places",hint:"Place index. Open a specific guide or use start_planning."}:r===t.PATH.TRIP_WORKSPACE||r.startsWith("".concat(t.PATH.TRIP_WORKSPACE,"/"))?{surface:"trips",hint:"Saved trips. Use open_page to move to chat or checkout."}:"/checkout"===r||r.startsWith("/checkout/")?{surface:"checkout",hint:"Booking cart. Use get_checkout_summary to read items. The traveler completes payment in the UI."}:r===t.PATH.HISTORY?{surface:"history",hint:'Past chats. Use open_page with page "chat" or "home" to start something new.'}:"/saved"===r?{surface:"saved",hint:"Saved places. Use plan_around_place or start_planning to continue."}:r===t.PATH.CONTACT_US?{surface:"contact",hint:"Contact form. Agents can fill the submit_contact_request form."}:{surface:"other",hint:"Use start_planning for a new trip request, or open_page to move to home, hotels, flights, places, or chat."},s=i(n,a);return(0,l._)({product:"SearchSpot",title:a,path:n,surface:o.surface,hint:o.hint},s?{placeName:s}:{})}},{name:"start_planning",description:"Start a SearchSpot trip-planning chat with the traveler request in their own words. Use this for destinations, dates, budget, vibe, or open-ended travel questions.",inputSchema:{type:"object",properties:{prompt:{type:"string",description:'The traveler request, such as "Plan a long weekend in Kyoto in October for two".'}},required:["prompt"],additionalProperties:!1},annotations:{readOnlyHint:!1},execute:t=>{let r=m(d(t.prompt,"prompt"));return e.navigate(r),y(r,"Started a planning chat with that request.")}},{name:"open_page",description:"Open a SearchSpot page. Use page for a named surface, or path for a known in-app URL such as /places/tokyo or /trip/abc.",inputSchema:{type:"object",properties:{page:{type:"string",enum:a,description:"Named SearchSpot surface."},path:{type:"string",description:"Root-relative SearchSpot path, for example /places/tokyo or /chat?q=Lisbon."}},additionalProperties:!1},annotations:{readOnlyHint:!1},execute:i=>{let l=function(e){let i="string"==typeof e.path?e.path.trim():"";if(i){let e=(0,r.normalizePostLoginRedirect)(i);if(function(e,r){if(r!==t.PATH.HOME)return!1;let n=e.trim();return!!n&&n!==t.PATH.LANDING&&!(n===t.PATH.HOME||n.startsWith("".concat(t.PATH.HOME,"?"))||n.startsWith("".concat(t.PATH.HOME,"#"))||n.startsWith("".concat(t.PATH.HOME,"/")))}(i,e)||!o.some(t=>e===t||e.startsWith("".concat(t,"/"))||e.startsWith("".concat(t,"?"))||e.startsWith("".concat(t,"#"))))throw Error('Unsupported path "'.concat(i,'". Use a SearchSpot page such as /home, /chat, /hotels, /flights, /places, or /trip.'));return e}let l="string"==typeof e.page?e.page.trim():"";if(!l)throw Error("Provide page or path. page must be one of: ".concat(a.join(", ")));let s=n[l];if(!s)throw Error('Unknown page "'.concat(l,'". Use one of: ').concat(a.join(", ")));return s.path}({page:p(i.page),path:p(i.path)});return e.navigate(l),y(l,"Opened ".concat(l,"."))}},{name:"search_hotels",description:"Search hotels or a specific stay. Accepts destination and stay dates in the traveler's words or as YYYY-MM-DD. Set destinationType to property when the traveler named a hotel; leave it as area for a city or neighborhood. Opens the same planning chat the Hotels page uses.",inputSchema:{type:"object",properties:{destination:{type:"string",description:'City, area, or hotel name, such as "
2Lisbon" or "Sea Hills Hotels".'},destinationType:{type:"string",enum:["area","property"],description:"Use property for a specific hotel or lodging name; use area for a city, neighborhood, or destination. Defaults to area."},checkIn:{type:"string",description:"Check-in date, such as 2026-09-04 or 4 September 2026."},checkOut:{type:"string",description:"Check-out date, such as 2026-09-08 or 8 September 2026."},adults:{type:"integer",minimum:1,description:"Number of adults. Defaults to 2."},children:{type:"integer",minimum:0,description:"Number of children. Defaults to 0."},rooms:{type:"integer",minimum:1,description:"Number of rooms. Defaults to 1."},starRating:{type:"string",enum:["Any","3-star","4-star","5-star"],description:"Preferred star rating. Defaults to Any."}},required:["destination","checkIn","checkOut"],additionalProperties:!1},annotations:{readOnlyHint:!1},execute:t=>{var r,n,a,o;let i,l,s,c,p=(r={destination:d(t.destination,"destination"),destinationType:t.destinationType,checkIn:d(t.checkIn,"checkIn"),checkOut:d(t.checkOut,"checkOut"),adults:t.adults,children:t.children,rooms:t.rooms,starRating:t.starRating},i=d(r.destination,"destination"),l=d(r.checkIn,"checkIn"),s=d(r.checkOut,"checkOut"),c=function(e){if(null==e||""===e)return"area";if("area"===e||"property"===e)return e;throw Error('destinationType must be "area" or "property".')}(r.destinationType),m((0,u.buildHotelSearchPrompt)({destination:i,checkInLabel:f(l),checkOutLabel:f(s),rooms:null!=(n=h(r.rooms,"rooms",1))?n:1,adults:null!=(a=h(r.adults,"adults",2))?a:2,children:null!=(o=h(r.children,"children",0))?o:0,starRating:function(e){if(null==e||""===e)return"Any";if("string"==typeof e&&g.includes(e))return e;throw Error("starRating must be one of: ".concat(g.join(", ")))}(r.starRating),placeType:"property"===c?"hotel":void 0})));return e.navigate(p),y(p,"Started a hotel search in a planning chat.")}},{name:"search_flights",description:"Search flights. Accepts origin, destination, and dates in the traveler's words or as YYYY-MM-DD. Opens the same planning chat the Flights page uses.",inputSchema:{type:"object",properties:{origin:{type:"string",description:'Departure city or airport, such as "London" or "LHR".'},destination:{type:"string",description:'Arrival city or airport, such as "New York" or "JFK".'},tripType:{type:"string",enum:["one-way","round-trip"],description:"Defaults to round-trip."},departureDate:{type:"string",description:"Outbound date, such as 2026-09-04 or next Thursday."},returnDate:{type:"string",description:"Return date for a round-trip."},adults:{type:"integer",minimum:1,description:"Number of adults. Defaults to 1."},children:{type:"integer",minimum:0,description:"Number of children. Defaults to 0."},infants:{type:"integer",minimum:0,description:"Number of infants. Defaults to 0."},cabinClass:{type:"string",description:"Cabin preference such as Economy, Premium Economy, Business, or First."}},required:["origin","destination","departureDate"],additionalProperties:!1},annotations:{readOnlyHint:!1},execute:t=>{let r=m(function(e){var t,r,n;let a=d(e.origin,"origin"),o=d(e.destination,"destination"),i=function(e){if("one-way"===e||"round-trip"===e)return e;if(null==e||""===e)return"round-trip";throw Error('tripType must be "one-way" or "round-trip".')}(e.tripType),l=d(e.departureDate,"departureDate"),s=p(e.returnDate);if("round-trip"===i&&!s)throw Error("returnDate is required for a round-trip search.");let u=["round-trip"===i?"Find round trip flights":"Find one-way flights","from ".concat(a),"to ".concat(o),"departing ".concat(f(l))];"round-trip"===i&&s&&u.push("returning ".concat(f(s)));let c=null!=(t=h(e.adults,"adults",1))?t:1,m=null!=(r=h(e.children,"children",0))?r:0,g=null!=(n=h(e.infants,"infants",0))?n:0,y=[];c>0&&y.push("".concat(c," adult").concat(c>1?"s":"")),m>0&&y.push("".concat(m," child").concat(m>1?"ren":"")),g>0&&y.push("".concat(g," infant").concat(g>1?"s":"")),y.length&&u.push("for ".concat(y.join(" and ")));let b=p(e.cabinClass);return b&&"Any"!==b&&"Economy"!==b&&u.push("in ".concat(b," class")),u.join(", ")}({origin:d(t.origin,"origin"),destination:d(t.destination,"destination"),tripType:t.tripType,departureDate:d(t.departureDate,"departureDate"),returnDate:t.returnDate,adults:t.adults,children:t.children,infants:t.infants,cabinClass:t.cabinClass}));return e.navigate(r),y(r,"Started a flight search in a planning chat.")}},{name:"plan_around_place",description:"Start a trip that includes a place. On a public place page, placeName defaults to that place. Same action as the Plan trip button.",inputSchema:{type:"object",properties:{placeName:{type:"string",description:"Place to include. Optional when the current page is already a place guide."}},additionalProperties:!1},annotations:{readOnlyHint:!1},execute:t=>{let r,n=p(t.placeName),a=i(e.getPathname(),e.getTitle()),o=n||a;if(!o)throw Error("placeName is required unless the current page is a SearchSpot place guide.");let l=(r=d(o,"placeName"),"/home?prompt=".concat(encodeURIComponent("Plan a trip that includes ".concat(r))));return e.navigate(l),y(l,"Started planning a trip that includes ".concat(o,"."))}}]},"summarizeCheckoutSession",0,function(e){var t;let r=(null!=(t=null==e?void 0:e.items)?t:[]).map(e=>(0,l._)({itemId:e.itemId,title:e.title},e.itemType?{itemType:e.itemType}:{},e.status?{status:e.status}:{}));return(0,s._)((0,l._)({itemCount:r.length},(null==e?void 0:e.status)?{status:e.status}:{}),{items:r})}],652552),e.s([],795539);var b=e.i(129580);async function v(e,t){if(null==t?void 0:t.aborted)return!1;let r=function(){if("u"<typeof document)return null;let e=document.modelContext;if(e&&"function"==typeof e.registerTool)return e;if("u"<typeof navigator)return null;let t=navigator.modelContext;return t&&"function"==typeof t.registerTool?t:null}();if(!r||(null==t?void 0:t.aborted))return!1;try{await Promise.all(e.map(e=>r.registerTool(e,t?{signal:t}:void 0)))}catch(e){if(null==t?void 0:t.aborted)return!1;throw e}return!(null==t?void 0:t.aborted)}e.s(["useWebMcpTools",0,function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,b.useEffect)(()=>
2{if(!t||0===e.length)return;let r=new AbortController;return v(e,r.signal),()=>{r.abort()}},[t,e])}],154044)}]); 3 4//# debugId=d1bcb938-9afa-b1d8-49c3-051d8f5c0384
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.