if("__TAURI__"inwindow){var__TAURI_PLUGIN_HTTP__=function(e){"use strict";functiont(e,t,r,n){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}functionr(e,t,r,n,s){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnt.set(e,r),r}varn,s,a;"function"==typeofSuppressedError&&SuppressedError;consto="__TAURI_TO_IPC_KEY__";classi{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,n.set(this,(()=>{})),s.set(this,0),a.set(this,[]),this.id=function(e,t=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(e,t)}((({message:e,id:o})=>{if(o==t(this,s,"f"))for(t(this,n,"f").call(this,e),r(this,s,t(this,s,"f")+1);t(this,s,"f")int(this,a,"f");){conste=t(this,a,"f")[t(this,s,"f")];t(this,n,"f").call(this,e),deletet(this,a,"f")[t(this,s,"f")],r(this,s,t(this,s,"f")+1)}elset(this,a,"f")[o]=e}))}setonmessage(e){r(this,n,e)}getonmessage(){returnt(this,n,"f")}[(n=newWeakMap,s=newWeakMap,a=newWeakMap,o)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[o]()}}asyncfunctionc(e,t={},r){returnwindow.__TAURI_INTERNALS__.invoke(e,t,r)}constd="Request canceled";returne.fetch=asyncfunction(e,t){constr=t?.signal;if(r?.aborted)thrownewError(d);constn=t?.maxRedirections,s=t?.connectTimeout,a=t?.proxy,o=t?.danger;t&&(deletet.maxRedirections,deletet.connectTimeout,deletet.proxy,deletet.danger);consth=t?.headers?t.headersinstanceofHeaders?t.headers:newHeaders(t.headers):newHeaders,f=newRequest(e,t),_=awaitf.arrayBuffer(),u=0!==_.byteLength?Array.from(newUint8Array(_)):null;for(const[e,t]off.headers)h.get(e)||h.set(e,t);constl=(hinstanceofHeaders?Array.from(h.entries()):Array.isArray(h)?h:Object.entries(h)).map((([e,t])=>[e,"string"==typeoft?t:t.toString()]));if(r?.aborted)thrownewError(d);constw=newReadableStream({start:e=>{constt=newi;t.onmessage=t=>{if(r?.aborted)returne.error(d),voide.close();(tinstanceofArrayBuffer?0!=t.byteLength:0!=t.length)?e.enqueue(newUint8Array(t)):e.close()},c("plugin:http|fetch_stream_body",{streamChannel:t}).catch((t=>{e.error(t),e.close()}))}}),p=awaitc("plugin:http|fetch",{clientConfig:{method:f.method,url:f.url,headers:l,data:u,maxRedirections:n,connectTimeout:s,proxy:a,danger:o}}),m=()=>c("plugin:http|fetch_cancel",{rid:p});if(r?.aborted)throwm(),newError(d);r?.addEventListener("abort",(()=>{m()}));const{status:y,statusText:T,url:g,headers:A}=awaitc("plugin:http|fetch_send",{rid:p}),R=newResponse(w,{status:y,statusText:T});returnObject.defineProperty(R,"url",{value:g}),Object.defineProperty(R,"headers",{value:newHeaders(A)}),R},e}({});Object.defineProperty(window.__TAURI__,"http",{value:__TAURI_PLUGIN_HTTP__})}
if("__TAURI__"inwindow){var__TAURI_PLUGIN_HTTP__=function(e){"use strict";functiont(e,t,r,n){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}functionr(e,t,r,n,s){if("function"==typeoft||!t.has(e))thrownewTypeError("Cannot write private member to an object whose class did not declare it");returnt.set(e,r),r}varn,s,a;"function"==typeofSuppressedError&&SuppressedError;consti="__TAURI_TO_IPC_KEY__";classo{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,n.set(this,(()=>{})),s.set(this,0),a.set(this,[]),this.id=function(e,t=!1){returnwindow.__TAURI_INTERNALS__.transformCallback(e,t)}((({message:e,id:i})=>{if(i==t(this,s,"f"))for(t(this,n,"f").call(this,e),r(this,s,t(this,s,"f")+1);t(this,s,"f")int(this,a,"f");){conste=t(this,a,"f")[t(this,s,"f")];t(this,n,"f").call(this,e),deletet(this,a,"f")[t(this,s,"f")],r(this,s,t(this,s,"f")+1)}elset(this,a,"f")[i]=e}))}setonmessage(e){r(this,n,e)}getonmessage(){returnt(this,n,"f")}[(n=newWeakMap,s=newWeakMap,a=newWeakMap,i)](){return`__CHANNEL__:${this.id}`}toJSON(){returnthis[i]()}}asyncfunctionc(e,t={},r){returnwindow.__TAURI_INTERNALS__.invoke(e,t,r)}constd="Request canceled";returne.fetch=asyncfunction(e,t){constr=t?.signal;if(r?.aborted)thrownewError(d);constn=t?.maxRedirections,s=t?.connectTimeout,a=t?.proxy,i=t?.danger;t&&(deletet.maxRedirections,deletet.connectTimeout,deletet.proxy,deletet.danger);consth=t?.headers?t.headersinstanceofHeaders?t.headers:newHeaders(t.headers):newHeaders,f=newRequest(e,t),_=awaitf.arrayBuffer(),u=0!==_.byteLength?Array.from(newUint8Array(_)):null;for(const[e,t]off.headers)h.get(e)||h.set(e,t);constl=(hinstanceofHeaders?Array.from(h.entries()):Array.isArray(h)?h:Object.entries(h)).map((([e,t])=>[e,"string"==typeoft?t:t.toString()]));if(r?.aborted)thrownewError(d);constw=newReadableStream({start:e=>{constt=newo;t.onmessage=t=>{r?.aborted?e.error(d):(tinstanceofArrayBuffer?0!=t.byteLength:0!=t.length)?e.enqueue(newUint8Array(t)):e.close()},c("plugin:http|fetch_stream_body",{rid:p,streamChannel:t}).catch((t=>{e.error(t)}))}}),p=awaitc("plugin:http|fetch",{clientConfig:{method:f.method,url:f.url,headers:l,data:u,maxRedirections:n,connectTimeout:s,proxy:a,danger:i}}),m=()=>c("plugin:http|fetch_cancel",{rid:p});if(r?.aborted)throwm(),newError(d);r?.addEventListener("abort",(()=>{m()}));const{status:y,statusText:T,url:g,headers:A}=awaitc("plugin:http|fetch_send",{rid:p}),R=newResponse(w,{status:y,statusText:T});returnObject.defineProperty(R,"url",{value:g}),Object.defineProperty(R,"headers",{value:newHeaders(A)}),R},e}({});Object.defineProperty(window.__TAURI__,"http",{value:__TAURI_PLUGIN_HTTP__})}