1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a09f3b-a2c9-7292-8455-e67f4da8ec97")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6030],{46030:(e,t,s)=>{s.r(t),s.d(t,{StorageWeb:()=>r});var i=s(32587);class r extends i.E_{constructor(){super(...arguments),this.group="CapacitorStorage"}async configure({group:e}){"string"==typeof e&&(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(e=>e.substring(this.prefix.length))}}async clear(){for(let e of this.rawKeys())this.impl.removeItem(e)}async migrate(){var e;let t=[],s=[],i="_cap_";for(let r of Object.keys(this.impl).filter(e=>0===e.indexOf(i))){let a=r.substring(i.length),p=null!=(e=this.impl.getItem(r))?e:"",{value:l}=await this.get({key:a});"string"==typeof l?s.push(a):(await this.set({key:a,value:p}),t.push(a))}return{migrated:t,existing:s}}async removeOld(){for(let e of Object.keys(this.impl).filter(e=>0===e.indexOf("_cap_")))this.impl.removeItem(e)}get impl(){return window.localStorage}get prefix(){return"NativeStorage"===this.group?"":`${this.group}.`}rawKeys(){return Object.keys(this.impl).filter(e=>0===e.indexOf(this.prefix))}applyPrefix(e){return this.prefix+e}}}}]); 2//# chunkId=01a09f3b-a2c9-7292-8455-e67f4da8ec97
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.