function s(n,r,e,o){if(typeof r=="function"?n!==r||!o:!r.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?o:e==="a"?o.call(n):o?o.value:r.get(n)}function i(n,r,e,o,_){if(typeof r=="function"?n!==r||!0:!r.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r.set(n,e),e}var t;const c="__TAURI_TO_IPC_KEY__";function u(n,r=!1){return window.__TAURI_INTERNALS__.transformCallback(n,r)}async function a(n,r={},e){return window.__TAURI_INTERNALS__.invoke(n,r,e)}class d{get rid(){return s(this,t,"f")}constructor(r){t.set(this,void 0),i(this,t,r)}async close(){return a("plugin:resources|close",{rid:this.rid})}}t=new WeakMap;export{d as Resource,c as SERIALIZE_TO_IPC_FN,a as invoke,u as transformCallback};
