if("__TAURI__"in window){var __TAURI_PLUGIN_UPLOAD__=function(t){"use strict";function e(t,e,n,o){if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function n(t,e,n,o,s){if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var o,s,r;"function"==typeof SuppressedError&&SuppressedError;class i{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,o.set(this,(()=>{})),s.set(this,0),r.set(this,{}),this.id=function(t,e=!1){return window.__TAURI_INTERNALS__.transformCallback(t,e)}((({message:t,id:i})=>{if(i===e(this,s)){n(this,s,i+1),e(this,o).call(this,t);const a=Object.keys(e(this,r));if(a.length>0){let t=i+1;for(const n of a.sort()){if(parseInt(n)!==t)break;{const s=e(this,r)[n];delete e(this,r)[n],e(this,o).call(this,s),t+=1}}}}else e(this,r)[i.toString()]=t}))}set onmessage(t){n(this,o,t)}get onmessage(){return e(this,o)}toJSON(){return`__CHANNEL__:${this.id}`}}async function a(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}return o=new WeakMap,s=new WeakMap,r=new WeakMap,t.download=async function(t,e,n,o){const s=new Uint32Array(1);window.crypto.getRandomValues(s);const r=s[0],_=new i;null!=n&&(_.onmessage=n),await a("plugin:upload|download",{id:r,url:t,filePath:e,headers:o??{},onProgress:_})},t.upload=async function(t,e,n,o){const s=new Uint32Array(1);window.crypto.getRandomValues(s);const r=s[0],_=new i;return null!=n&&(_.onmessage=n),await a("plugin:upload|upload",{id:r,url:t,filePath:e,headers:o??{},onProgress:_})},t}({});Object.defineProperty(window.__TAURI__,"upload",{value:__TAURI_PLUGIN_UPLOAD__})}