import s,{DapSession as o,ScriptRunner as i,st_analyze as a,st_completions as u,connection_summary as l,create_connection_defaults as c,get_registry as _,st_hover as d,list_all_loaders as f,list_loaders as p,loader_get_machines as S,loader_get_points as J,loader_get_variables as g,loader_set_bytes as h,loader_set_bytes_multi as m,loader_set_settings as y}from"./plchelper_wasm-DS8UhsA2.js";import{LiveSession as q}from"./plchelper_wasm-DS8UhsA2.js";const O="/assets/plchelper_wasm_bg-DOozVDAO.wasm";let r=null;function b(){return r||(r=s({module_or_path:O}).then(()=>{})),r}function v(){return _()}function w(e){return l(e)}function D(e,t){return c(e,t?JSON.stringify(t):void 0)}function L(e){return p(e)}function z(e){return f(JSON.stringify(e))}function G(e,t){h(e,t)}function k(e,t){m(e,t)}function x(e,t){y(e,t)}function A(e){return S(e)}function B(e,t){return J(e,t)}function C(e,t,n){return g(e,t,n)}function E(e){return JSON.parse(a(e))}function M(e,t,n){return JSON.parse(u(e,t,n))}function R(e,t,n){return JSON.parse(d(e,t,n))}class V{sess;constructor(){this.sess=new o}pump(t){return JSON.parse(this.sess.pump(JSON.stringify(t)))}drain(){return JSON.parse(this.sess.drain())}takeLogs(){return JSON.parse(this.sess.take_logs())}dispose(){this.sess.free()}}class P{inner;constructor(t){this.inner=new i(t)}get compileError(){return this.inner.error}run(t){return JSON.parse(this.inner.run(JSON.stringify(t)))}reset(){return this.inner.reset()}dispose(){this.inner.free()}}export{V as DapClient,q as LiveSession,P as StScript,E as analyze,M as completions,w as connectionSummaryJson,D as createConnectionDefaultsJson,v as getRegistryJson,R as hover,z as listAllLoadersJson,L as listLoadersJson,b as loadStEngine,A as loaderGetMachinesJson,B as loaderGetPointsJson,C as loaderGetVariablesJson,G as loaderSetBytes,k as loaderSetBytesMulti,x as loaderSetSettingsJson};
