1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:weroad":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`f00762cb-4c9b-4ee9-9cbf-5833e735e3cc`,e._sentryDebugIdIdentifier=`sentry-dbid-f00762cb-4c9b-4ee9-9cbf-5833e735e3cc`)}catch{}})();import{l as e,xt as t}from"./BSXR3eMi.js";import{t as n}from"./Ci8UjNx3.js";import{g as r,h as i}from"./RDmOsr4V.js";import{t as a}from"./B3KSCJh4.js";import{t as o}from"./Dl5eCTZ82.js";var s=`travel-ai-history`,c=`has_travel_ai_history`,l=80,u=10,d=i({sessionId:r(),title:r(),query:r(),date:r()}),f=a(()=>{let r=n(c,{path:`/`,maxAge:31536e3}),i=t([]),a=t(r.value===!0),f=t(!1),p=()=>{if(!o())return[];try{let e=JSON.parse(localStorage.getItem(s)||`[]`);return Array.isArray(e)?e.filter(e=>d.safeParse(e).success):[]}catch{return[]}},m=e=>{if(o())try{localStorage.setItem(s,JSON.stringify(e)),r.value=e.length>0||void 0}catch{}},h=()=>{o()&&(r.value=p().length>0||void 0)},g=()=>{i.value=p(),f.value=!0,h()};return{history:i,shouldShowSkeleton:e(()=>a.value&&!f.value&&i.value.length===0),refresh:g,addSession:(e,t,n)=>{let r=p().filter(t=>t.sessionId!==e);r.unshift({sessionId:e,title:t.slice(0,l),query:n,date:new Date().toISOString()}),m(r.slice(0,u)),g()},findSession:e=>p().find(t=>t.sessionId===e)}});export{f as t};
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.