try{let e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`68fb7126-36c6-4520-bf92-028432845f1f`,e._sentryDebugIdIdentifier=`sentry-dbid-68fb7126-36c6-4520-bf92-028432845f1f`)}catch{}import"./rolldown-runtime-eb2nym32.js";import{Fa as e,Ia as t}from"./entry.client-dr7r6s9a.js";var n=class{async readValue(t){let n=r();return await new Promise((r,a)=>{try{n.getNativeVariable(t,n=>{if(n==null){a(new e(`not-found`,t));return}r(JSON.parse(n.value))},e=>a(i(e,t)))}catch(e){a(i(String(e),t))}})}async writeValue(e,t){let n=r();return await new Promise((r,a)=>{try{n.setNativeVariable(e,JSON.stringify(t),()=>r(),t=>a(i(t,e)))}catch(t){a(i(String(t),e))}})}};function r(){if(!sharedPreferencesPlugin)throw new t;return sharedPreferencesPlugin}function i(t,n){return new e(`unknown`,n,Error(t))}export{n as FireOSNativePlatformStorageAdaptor};