1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{bt as t}from"./vendor-utils-C8Ev1Z53.js";import{r as n}from"./create-zustand-store-1E2bcsHT.js";var r=e(t()),i=(e,t)=>i=>{let a=`base44_store_${e}`,c=t?.storage??sessionStorage,l=s(a,c),u=t?.selector?t.selector:t?.pick?n(...t.pick):void 0;if(l){let e=u?u(l):l;e=t?.exclude?Object.fromEntries(Object.entries(e).filter(([e])=>!t.exclude.includes(e))):e,t?.sanitizeUndefined&&(e=Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0))),i.setState({...i.getInitialState(),...e})}let d=t?.debounce?(0,r.debounce)(o,t.debounce):o;i.subscribe(e=>{let n=u?u(e):e;n=t?.exclude?Object.fromEntries(Object.entries(n).filter(([e])=>!t.exclude.includes(e))):n,d(a,n,c)})},a={},o=(e,t,n)=>{try{n.setItem(e,JSON.stringify(t))}catch{a[e]=t}},s=(e,t)=>{try{let n=t.getItem(e);return n?JSON.parse(n):null}catch{return a[e]}};export{i 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.