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]=`9e471444-7e6d-4815-be48-3ce1b972fb79`,e._sentryDebugIdIdentifier=`sentry-dbid-9e471444-7e6d-4815-be48-3ce1b972fb79`)}catch{}import"./rolldown-runtime-nx40z1zs.js";import"./entry.client-mpghtlrl.js";var e=`wgt-private`;function t(t){i(t);let n=r(),o;try{return o=n.openFile(`${e}/${t}`,`r`),o.readString()}catch(e){if(a(e))return null;throw e}finally{if(o)try{o.close()}catch{}}}function n(t,n){i(t);let a=r(),o;try{o=a.openFile(`${e}/${t}`,`w`,!0),o.writeString(n)}finally{if(o)try{o.close()}catch{}}}function r(){if(globalThis.window===void 0||!globalThis.window.tizen?.filesystem)throw Error(`Tizen filesystem API not available`);return globalThis.window.tizen.filesystem}function i(e){if(e.includes(`/`)||e.includes(`\\`)||e.includes(`..`))throw Error(`Invalid storage key "${e}": must not contain path separators or ".."`)}function a(e){return typeof e==`object`&&!!e&&`name`in e&&e.name===`NotFoundError`}export{t as getNativeVariable,n as setNativeVariable};