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]="21da542d-7e7d-a5da-159a-ba46f76a5120")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,336539,e=>{"use strict";var t=e.i(843476),n=e.i(864618),r=e.i(271645);function i({className:e,aiStyle:r}){return(0,t.jsxs)("span",{className:(0,n.cn)("whitespace-nowrap",e),children:["Travelese",(0,t.jsx)("span",{className:"ms-px align-baseline tracking-tight opacity-70",style:{fontSize:"0.5em",lineHeight:1,...r},children:".ai"})]})}e.s(["Travelese",0,i,"renderWithTravelese",0,function(e){return e&&e.includes("Travelese.ai")?e.split(/(Travelese\.ai)/g).map((e,n)=>"Travelese.ai"===e?(0,t.jsx)(i,{},n):(0,t.jsx)(r.Fragment,{children:e},n)):e}])},578788,e=>{"use strict";var t=e.i(438847);e.s(["useAuthParams",0,function(){let[e,n]=(0,t.useQueryStates)({login:t.parseAsBoolean.withDefault(!1),onboarding:t.parseAsBoolean.withDefault(!1),auth_error:t.parseAsString,login_intent:(0,t.parseAsStringLiteral)(["default","continue"])});return{params:e,setParams:n,openLogin:e=>n({login:!0,onboarding:!1,auth_error:null,login_intent:e?.intent??"default"}),openOnboarding:()=>n({onboarding:!0,login:!1,auth_error:null,login_intent:null}),closeAuth:()=>n({login:!1,onboarding:!1,auth_error:null,login_intent:null}),clearAuthError:()=>n({auth_error:null})}}])},120981,457699,e=>{"use strict";let t="travelese:pending_auth_action";function n(){try{let e=sessionStorage.getItem(t);if(!e)return null;return JSON.parse(e)}catch{return null}}e.s(["peekPendingAuthAction",0,n,"setPendingAuthAction",0,function(e){try{sessionStorage.setItem(t,JSON.stringify(e))}catch{}},"takePendingAuthAction",0,function(){let e=n();try{sessionStorage.removeItem(t)}catch{}return e}],120981);var r=e.i(438847),i=e.i(979931);let o={book:r.parseAsBoolean,share:r.parseAsBoolean,tripId:r.parseAsString};(0,i.createLoader)(o),e.s(["useTripBookParams",0,function(){let[e,t]=(0,r.useQueryStates)(o);return{...e,setParams:t}}],457699)},491665,e=>{"use strict";var t=e.i(829757);function n(e,t){let n=document.createElement("a");n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)}async function r(e){let r=await (0,t.getAccessToken)(),i=`https://api.travelese.ai/files/download/trip?id=${encodeURIComponent(e)}`,o=await fetch(i,{headers:r?{Authorization:`Bearer ${r}`}:{}});if(!o.ok)throw Error(`Trip PDF failed (${o.status})`);let a=await o.blob(),s=function(e){if(!e)return null;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t?.[1])return decodeURIComponent(t[1]);let n=e.match(/filename="([^"]+)"/i);if(n?.[1])return n[1];let r=e.match(/filename=([^;]+)/i);return r?.[1]?.trim()??null}(o.headers.get("Content-Disposition"))??"trip.pdf",l=URL.createObjectURL(a);
2n(l,s),URL.revokeObjectURL(l)}e.s(["downloadFile",0,n,"downloadTripPdf",0,r])},882481,e=>{"use strict";let t=(0,e.i(768834).create)()(e=>({isOpen:!1,scope:null,setOpen:()=>e(e=>({isOpen:!e.isOpen,scope:null})),setIsOpen:t=>e(e=>({isOpen:t,scope:t?e.scope:null})),openWithScope:t=>e({isOpen:!0,scope:t})}));e.s(["useSearchStore",0,t])},610274,e=>{"use strict";let t=(0,e.i(768834).create)()(e=>({shareSheetOpen:!1,openShareSheet:()=>e({shareSheetOpen:!0}),closeShareSheet:()=>e({shareSheetOpen:!1})}));e.s(["useTripStore",0,t])},815330,e=>{"use strict";var t=e.i(271645),n=e.i(769464),r=e.i(116045);let i=t.forwardRef((e,i)=>t.createElement(n.default,{ref:i,...e,weights:r.default}));i.displayName="CaretDownIcon",e.s(["CaretDownIcon",0,i])},78333,(e,t,n)=>{var r=0/0,i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,u=e.g&&e.g.Object===Object&&e.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=u||c||Function("return this")(),f=Object.prototype.toString,m=Math.max,p=Math.min,h=function(){return d.Date.now()};function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return r;if(y(e)){var t,n="function"==typeof e.valueOf?e.valueOf():e;e=y(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var u=a.test(e);return u||s.test(e)?l(e.slice(2),u?2:8):o.test(e)?r:+e}t.exports=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function b(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||d&&r>=o}function w(){var e,n,r,i=h();if(b(i))return S(i);s=setTimeout(w,(e=i-l,n=i-u,r=t-e,d?p(r,o-n):r))}function S(e){return(s=void 0,f&&r)?g(e):(r=i=void 0,a)}function k(){var e,n=h(),o=b(n);if(r=arguments,i=this,l=n,o){if(void 0===s)return u=e=l,s=setTimeout(w,t),c?g(e):a;if(d)return s=setTimeout(w,t),g(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=v(t)||0,y(n)&&(c=!!n.leading,o=(d="maxWait"in n)?m(v(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),k.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},k.flush=function(){return void 0===s?a:S(h())},k}},39839,e=>{"use strict";var t=e.i(271645),n=e.i(78333),r="u">typeof window?t.useLayoutEffect:t.useEffect;function i(e,r=500,o){var a;let s,l=(0,t.useRef)();a=()=>{l.current&&l.current.cancel()},(s=(0,t.useRef)(a)).current=a,(0,t.useEffect)(()=>()=>{s.current()},[]);let u=(0,t.useMemo)(()=>{let t=(0,n.default)(e,r,o),i=(...e)=>t(...e);return i.cancel=()=>{t.cancel()},i.isPending=()=>!!l.current,i.flush=()=>t.flush(),i},[e,r,o]);return(0,t.useEffect)(()=>{l.current=(0,n.default)(e,r,o)},[e,r,o]),u}e.s(["useCopyToClipboard",0,function(){let[e,n]=(0,t.useState)(null);return[e,(0,t.useCallback)(async e=>{if(!(null==navigator?void 0:navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(e),n(e),!0}catch(e){return console.warn("Copy failed",e),n(null),!1}},[])]},"useDebounceCallback",0,i,"useDebounceValue",0,function(e,n,r){let o=(null==r?void 0:r.equalityFn)??((e,t)=>e===t),a=e instanceof Function?e():e,[s,l]=(0,t.useState)(a),u=(0,t.useRef)(a),c=i(l,n,r);return o(u.current,a)||(c(a),u.current=a),[s,c]},"useOnClickOutside",0,function(e,n,i="mousedown",o={}){var a,s;let l;a=t=>{let r=t.target;r&&r.isConnected&&(Array.isArray(e)?e.filter(e=>!!e.current).every(e=>e.current&&!e.current.contains(r)):e.current&&!e.current.contains(r))&&n(t)},s=void 0,l=(0,t.useRef)(a),r(()=>{l.current=a},[a]),(0,t.useEffect)(()=>{let e=(null==s?void 0:s.current)??window;if(!(e&&e.addEventListener))return;let t=e=>{l.current(e)};return e.addEventListener(i,t,o),()=>{e.removeEventListener(i,t,o)}},[i,s,o])}])},363178,e=>{"use strict";var t=e.i(271645),n=(e,t,n,r,i,o,a,s)=>{let l=document.documentElement,u=["light","dark"];function c(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?i.map(e=>o[e]||e):i;n?(l.classList.remove(...r),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),n=t,s&&u.includes(n)&&(l.style.colorScheme=n)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
2k":"light":e;c(r)}catch(e){}},r=["light","dark"],i="(prefers-color-scheme: dark)",o="u"<typeof window,a=t.createContext(void 0),s={setTheme:e=>{},themes:[]},l=["light","dark"],u=({forcedTheme:e,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:s=!0,storageKey:u="theme",themes:p=l,defaultTheme:h=o?"system":"light",attribute:y="data-theme",value:v,children:g,nonce:b,scriptProps:w})=>{let[S,k]=t.useState(()=>d(u,h)),[E,C]=t.useState(()=>"system"===S?m():S),L=v?Object.values(v):p,A=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=m());let i=v?v[t]:t,a=n?f(b):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...L),i&&l.classList.add(i)):e.startsWith("data-")&&(i?l.setAttribute(e,i):l.removeAttribute(e))};if(Array.isArray(y)?y.forEach(u):u(y),s){let e=r.includes(h)?h:null,n=r.includes(t)?t:e;l.style.colorScheme=n}null==a||a()},[b]),T=t.useCallback(e=>{let t="function"==typeof e?e(S):e;k(t);try{localStorage.setItem(u,t)}catch(e){}},[S]),O=t.useCallback(t=>{C(m(t)),"system"===S&&o&&!e&&A("system")},[S,e]);t.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(O),O(e),()=>e.removeListener(O)},[O]),t.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?k(e.newValue):T(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),t.useEffect(()=>{A(null!=e?e:S)},[e,S]);let x=t.useMemo(()=>({theme:S,setTheme:T,forcedTheme:e,resolvedTheme:"system"===S?E:S,themes:o?[...p,"system"]:p,systemTheme:o?E:void 0}),[S,T,e,E,o,p]);return t.createElement(a.Provider,{value:x},t.createElement(c,{forcedTheme:e,storageKey:u,attribute:y,enableSystem:o,enableColorScheme:s,defaultTheme:h,value:v,themes:p,nonce:b,scriptProps:w}),g)},c=t.memo(({forcedTheme:e,storageKey:r,attribute:i,enableSystem:o,enableColorScheme:a,defaultTheme:s,value:l,themes:u,nonce:c,scriptProps:d})=>{let f=JSON.stringify([i,r,s,e,u,l,o,a]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?c:"",dangerouslySetInnerHTML:{__html:`(${n.toString()})(${f})`}})}),d=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},m=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light");e.s(["ThemeProvider",0,e=>t.useContext(a)?t.createElement(t.Fragment,null,e.children):t.createElement(u,{...e}),"useTheme",0,()=>{var e;return null!=(e=t.useContext(a))?e:s}])},424814,e=>{"use strict";var t=e.i(271645);e.i(843476);var n=["shift","alt","meta","mod","ctrl","control"],r={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function i(e){return(r[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function o(e){return n.includes(e)}function a(e,t=","){return e.toLowerCase().split(t)}function s(e,t="+",r=">",o=!1,a,l){let u=[],c=!1;(e=e.trim()).includes(r)?(c=!0,u=e.toLocaleLowerCase().split(r).map(e=>i(e))):u=e.toLocaleLowerCase().split(t).map(e=>i(e));let d={alt:u.includes("alt"),ctrl:u.includes("ctrl")||u.includes("control"),shift:u.includes("shift"),meta:u.includes("meta"),mod:u.includes("mod"),useKey:o},f=u.filter(e=>!n.includes(e));return{...d,keys:f,description:a,isSequence:c,hotkey:e,metadata:l}}"u">typeof document&&(document.addEventListener("keydown",e=>{void 0!==e.code&&c([i(e.code)])}),document.addEventListener("keyup",e=>{void 0!==e.code&&d([i(e.code)])})),"u">typeof window&&(window.addEventListener("blur",()=>{l.clear()}),window.addEventListener("focus",()=>{l.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{l.clear()},0)})),"u">typeof document&&document.addEventListener("visibilitychange",()=>{l.clear()});var l=new Set;function u(e){return Array.isArray(e)}function c(e){let t=Array.isArray(e)?e:[e];
2l.has("meta")&&l.forEach(e=>{o(e)||l.delete(e.toLowerCase())}),t.forEach(e=>{l.add(e.toLowerCase())})}function d(e){"meta"===e?l.clear():(Array.isArray(e)?e:[e]).forEach(e=>{l.delete(e.toLowerCase())})}var f=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function m(e,t=!1){var n;let{target:r,composed:i}=e,o,a;return(n=r).tagName&&!n.tagName.startsWith("-")&&n.tagName.includes("-")&&i?(o=e.composedPath()[0]&&e.composedPath()[0].tagName,a=e.composedPath()[0]&&e.composedPath()[0].role):(o=r&&r.tagName,a=r&&r.role),u(t)?!!(o&&t?.some(e=>e.toLowerCase()===o.toLowerCase()||e===a)):!!(o&&t&&t)}var p=(0,t.createContext)(void 0),h=(0,t.createContext)({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),y="u">typeof window?t.useLayoutEffect:t.useEffect;e.s(["useHotkeys",0,function(e,n,r,v){var g;let b,[w,S]=(0,t.useState)(null),k=(0,t.useCallback)(e=>(S(e),()=>S(null)),[]),E=(0,t.useRef)(!1),C=Array.isArray(r)?Array.isArray(v)?void 0:v:r,L=u(e)?e.join(C?.delimiter):e,A=Array.isArray(r)?r:Array.isArray(v)?v:void 0,T=(0,t.useCallback)(n,A??[]),O=(0,t.useRef)(T);A?O.current=T:O.current=n;let x=(g=function(e){if(!e)return;let{enabled:t,preventDefault:n,ignoreEventWhen:r,...i}=e;return"function"==typeof t?i:{...i,enabled:t}}(C),function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce((r,i)=>r&&e(t[i],n[i]),!0):t===n}((b=(0,t.useRef)(void 0)).current,g)||(b.current=g),b.current),j=(0,t.useRef)(C?.enabled);j.current=C?.enabled;let K=(0,t.useRef)(C?.preventDefault);K.current=C?.preventDefault;let R=(0,t.useRef)(C?.ignoreEventWhen);R.current=C?.ignoreEventWhen;let{activeScopes:P}=(0,t.useContext)(h),I=(0,t.useContext)(p);return y(()=>{var e;if(!1===j.current||(e=x?.scopes,!((0!==P.length||!e)&&(!e||P.some(t=>e.includes(t))||P.includes("*")))))return;let t=[],n,r=(e,r=!1)=>{if(!(m(e,f)&&!m(e,x?.enableOnFormTags))){if(null!==w){let t=w.getRootNode();if((t instanceof Document||t instanceof ShadowRoot)&&t.activeElement!==w&&!w.contains(t.activeElement))return void(e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation())}e.target?.isContentEditable&&!x?.enableOnContentEditable||a(L,x?.delimiter).forEach(a=>{if(a.includes(x?.splitKey??"+")&&a.includes(x?.sequenceSplitKey??">"))return void console.warn(`Hotkey ${a} contains both ${x?.splitKey??"+"} and ${x?.sequenceSplitKey??">"} which is not supported.`);let c=s(a,x?.splitKey,x?.sequenceSplitKey,x?.useKey,x?.description,x?.metadata);if(c.isSequence){n=setTimeout(()=>{t=[]},x?.sequenceTimeoutMs??1e3);let r=c.useKey?e.key:i(e.code);if(o(r.toLowerCase()))return;if(t.push(r),r!==c.keys?.[t.length-1]){t=[],n&&clearTimeout(n);return}t.length===c.keys?.length&&(O.current(e,c),n&&clearTimeout(n),t=[])}else if(((e,t,n=!1)=>{let{alt:r,meta:o,mod:a,shift:s,ctrl:c,keys:d,useKey:f}=t,{code:m,key:p,ctrlKey:h,metaKey:y,shiftKey:v,altKey:g}=e,b=i(m),w="function"==typeof e.getModifierState&&e.getModifierState("AltGraph");if(!f&&!d?.includes(b)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(b))return!1;if(!n){if(r!==g&&"alt"!==b||s!==v&&"shift"!==b)return!1;if(a){if(!(typeof navigator>"u")&&/mac/i.test(navigator.userAgent)&&!/iphone|ipad|ipod/i.test(navigator.userAgent)?!y:!h)return!1}else if(o!==y&&"meta"!==b&&"os"!==b||c!==h&&"ctrl"!==b&&"control"!==b)return!1;if(w&&!r&&!c&&!a&&!["alt","ctrl","control"].includes(b))return!1}return!!(f&&d?.length===1&&d.includes(p.toLowerCase())||d&&1===d.length&&d.includes(b))||(d&&d.length>0?!!d.includes(b)&&function(e,t=","){return(u(e)?e:e.split(t)).every(e=>l.has(e.trim().toLowerCase()))}(d):!d||0===d.length)})(e,c,x?.ignoreModifiers)||c.keys?.includes("*")){var d,f;if(R.current?.(e)||r&&E.current||(("function"==typeof(d=K.current)&&d(e,c)||!0===d)&&e.preventDefault(),"function"==typeof(f=j.current)?!f(e,c):!0!==f&&void 0!==f))return;O.current(e,c),r||(E.current=!0)}})}},p=e=>{void 0!==e.code&&(c(i(e.code)),(x?.keydown===void 0&&x?.keyup!==!0||x?.keydown)&&r(e))},h=e=>{void 0!==e.code&&(d(i(e.code)),E.current=!1,x?.keyup&&r(e,!0))},y=w||C?.document||document;return y.addEventListener("keyup",h,C?.eventListenerOptions),y.addEventListener("keydown",p,C?.eventListenerOptions),I&&a(L,x?.delimiter).forEach(e
2=>{I.addHotkey(s(e,x?.splitKey,x?.sequenceSplitKey,x?.useKey,x?.description,x?.metadata))}),()=>{y.removeEventListener("keyup",h,C?.eventListenerOptions),y.removeEventListener("keydown",p,C?.eventListenerOptions),I&&a(L,x?.delimiter).forEach(e=>{I.removeHotkey(s(e,x?.splitKey,x?.sequenceSplitKey,x?.useKey,x?.description,x?.metadata))}),t=[],n&&clearTimeout(n)}},[w,x,P,L]),k}])},768834,e=>{"use strict";var t=e.i(271645);let n=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},r=e=>{let r=e?n(e):n,i=e=>(function(e,n=e=>e){let r=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>n(e.getState()),[e,n]),t.default.useCallback(()=>n(e.getInitialState()),[e,n]));return t.default.useDebugValue(r),r})(r,e);return Object.assign(i,r),i};e.s(["create",0,e=>e?r(e):r],768834)},827154,e=>{"use strict";var t=e.i(843476),n=e.i(864618);e.s(["Kbd",0,function({className:e,...r}){return(0,t.jsx)("kbd",{className:(0,n.cn)("pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded-[.25rem] bg-muted px-1 font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3",e),"data-slot":"kbd",...r})},"KbdGroup",0,function({className:e,...r}){return(0,t.jsx)("kbd",{className:(0,n.cn)("inline-flex items-center gap-1",e),"data-slot":"kbd-group",...r})}])}]); 3 4//# debugId=21da542d-7e7d-a5da-159a-ba46f76a5120
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.