PageSourceSearch

https://trackradar.ai/assets/index-BVHzL9E0.js

js trackradar.ai collected 2026-10-05 13:07:25 UTC 1,554 bytes, 1 lines download raw bytes

1import{r as p,_ as f,W as y}from"./index-Co0k7Vjv.js";import"./vendor-react-DaO0W8ik.js";import"./vendor-socketio-Dj7dGIag.js";const _=p("Preferences",{web:()=>f(()=>Promise.resolve().then(()=>m),void 0).then(n=>new n.PreferencesWeb)});class u extends y{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){typeof e=="string"&&(this.group=e)}async get(e){return{value:this.impl.getItem(this.applyPrefix(e.key))}}async set(e){this.impl.setItem(this.applyPrefix(e.key),e.value)}async remove(e){this.impl.removeItem(this.applyPrefix(e.key))}async keys(){return{keys:this.rawKeys().map(t=>t.substring(this.prefix.length))}}async clear(){for(const e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;const t=[],s=[],o="_cap_",a=Object.keys(this.impl).filter(r=>r.indexOf(o)===0);for(const r of a){const i=r.substring(o.length),l=(e=this.impl.getItem(r))!==null&&e!==void 0?e:"",{value:c}=await this.get({key:i});typeof c=="string"?s.push(i):(await this.set({key:i,value:l}),t.push(i))}return{migrated:t,existing:s}}async removeOld(){const e="_cap_",t=Object.keys(this.impl).filter(s=>s.indexOf(e)===0);for(const s of t)this.impl.removeItem(s)}get impl(){return window.localStorage}get prefix(){return this.group==="NativeStorage"?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>e.indexOf(this.prefix)===0)}applyPrefix(e){return this.prefix+e}}const m=Object.freeze(Object.defineProperty({__proto__:null,PreferencesWeb:u},Symbol.toStringTag,{value:"Module"}));export{_ as Preferences};

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.