tauri/examples/api/dist/assets/vendor.js

25 lines
44 KiB
JavaScript

function L(){}function zt(t){return t()}function St(){return Object.create(null)}function N(t){t.forEach(zt)}function ge(t){return typeof t=="function"}function Et(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ye(t){return Object.keys(t).length===0}function be(t,...e){if(t==null)return L;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function Wn(t,e,n){t.$$.on_destroy.push(be(e,n))}function P(t,e){t.appendChild(e)}function E(t,e,n){t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function we(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function $(t){return document.createElement(t)}function W(t){return document.createTextNode(t)}function V(){return W(" ")}function $t(){return W("")}function st(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Dn(t){return function(e){return e.preventDefault(),t.call(this,e)}}function T(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Cn(t){return t===""?null:+t}function Me(t){return Array.from(t.childNodes)}function q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Ln(t,e){t.value=e==null?"":e}function Fn(t,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===e){i.selected=!0;return}}}function xn(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}function X(t,e,n){t.classList[n?"add":"remove"](e)}class Kn{constructor(e=null){this.a=e,this.e=this.n=null}m(e,n,i=null){this.e||(this.e=$(n.nodeName),this.t=n,this.h(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)E(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(S)}}let Q;function Y(t){Q=t}function Wt(){if(!Q)throw new Error("Function called outside component initialization");return Q}function Rn(t){Wt().$$.on_mount.push(t)}function Un(t){Wt().$$.on_destroy.push(t)}const I=[],Dt=[],Z=[],Ct=[],Oe=Promise.resolve();let at=!1;function ke(){at||(at=!0,Oe.then(Lt))}function ct(t){Z.push(t)}let lt=!1;const ft=new Set;function Lt(){if(!lt){lt=!0;do{for(let t=0;t<I.length;t+=1){const e=I[t];Y(e),Ae(e.$$)}for(Y(null),I.length=0;Dt.length;)Dt.pop()();for(let t=0;t<Z.length;t+=1){const e=Z[t];ft.has(e)||(ft.add(e),e())}Z.length=0}while(I.length);for(;Ct.length;)Ct.pop()();at=!1,lt=!1,ft.clear()}}function Ae(t){if(t.fragment!==null){t.update(),N(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ct)}}const tt=new Set;let K;function dt(){K={r:0,c:[],p:K}}function ht(){K.r||N(K.c),K=K.p}function D(t,e){t&&t.i&&(tt.delete(t),t.i(e))}function R(t,e,n,i){if(t&&t.o){if(tt.has(t))return;tt.add(t),K.c.push(()=>{tt.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}function Pe(t){t&&t.c()}function Ft(t,e,n,i){const{fragment:r,on_mount:o,on_destroy:u,after_update:f}=t.$$;r&&r.m(e,n),i||ct(()=>{const d=o.map(zt).filter(ge);u?u.push(...d):N(d),t.$$.on_mount=[]}),f.forEach(ct)}function xt(t,e){const n=t.$$;n.fragment!==null&&(N(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Te(t,e){t.$$.dirty[0]===-1&&(I.push(t),ke(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function je(t,e,n,i,r,o,u=[-1]){const f=Q;Y(t);const d=t.$$={fragment:null,ctx:null,props:o,update:L,not_equal:r,bound:St(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(f?f.$$.context:[]),callbacks:St(),dirty:u,skip_bound:!1};let h=!1;if(d.ctx=n?n(t,e.props||{},(c,_,...m)=>{const g=m.length?m[0]:_;return d.ctx&&r(d.ctx[c],d.ctx[c]=g)&&(!d.skip_bound&&d.bound[c]&&d.bound[c](g),h&&Te(t,c)),_}):[],d.update(),h=!0,N(d.before_update),d.fragment=i?i(d.ctx):!1,e.target){if(e.hydrate){const c=Me(e.target);d.fragment&&d.fragment.l(c),c.forEach(S)}else d.fragment&&d.fragment.c();e.intro&&D(t.$$.fragment),Ft(t,e.target,e.anchor,e.customElement),Lt()}Y(f)}class ze{$destroy(){xt(this,1),this.$destroy=L}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!ye(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const H=[];function Bn(t,e=L){let n;const i=[];function r(f){if(Et(t,f)&&(t=f,n)){const d=!H.length;for(let h=0;h<i.length;h+=1){const c=i[h];c[1](),H.push(c,t)}if(d){for(let h=0;h<H.length;h+=2)H[h][0](H[h+1]);H.length=0}}}function o(f){r(f(t))}function u(f,d=L){const h=[f,d];return i.push(h),i.length===1&&(n=e(r)||L),f(t),()=>{const c=i.indexOf(h);c!==-1&&i.splice(c,1),i.length===0&&(n(),n=null)}}return{set:r,update:o,subscribe:u}}/*!
* hotkeys-js v3.8.5
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2021 kenny wong <wowohoo@qq.com>
* http://jaywcjlove.github.io/hotkeys
*
* Licensed under the MIT license.
*/var pt=typeof navigator!="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function mt(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),function(){n(window.event)})}function Kt(t,e){for(var n=e.slice(0,e.length-1),i=0;i<n.length;i++)n[i]=t[n[i].toLowerCase()];return n}function Rt(t){typeof t!="string"&&(t=""),t=t.replace(/\s/g,"");for(var e=t.split(","),n=e.lastIndexOf("");n>=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}function Se(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,r=!0,o=0;o<n.length;o++)i.indexOf(n[o])===-1&&(r=!1);return r}var Ut={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":pt?173:189,"=":pt?61:187,";":pt?59:186,"'":222,"[":219,"]":221,"\\":220},U={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},Bt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},A={16:!1,18:!1,17:!1,91:!1},k={};for(var et=1;et<20;et++)Ut["f".concat(et)]=111+et;var y=[],Nt="all",qt=[],nt=function(e){return Ut[e.toLowerCase()]||U[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function Ht(t){Nt=t||"all"}function J(){return Nt||"all"}function Ee(){return y.slice(0)}function $e(t){var e=t.target||t.srcElement,n=e.tagName,i=!0;return(e.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!e.readOnly)&&(i=!1),i}function We(t){return typeof t=="string"&&(t=nt(t)),y.indexOf(t)!==-1}function De(t,e){var n,i;t||(t=J());for(var r in k)if(Object.prototype.hasOwnProperty.call(k,r))for(n=k[r],i=0;i<n.length;)n[i].scope===t?n.splice(i,1):i++;J()===t&&Ht(e||"all")}function Ce(t){var e=t.keyCode||t.which||t.charCode,n=y.indexOf(e);if(n>=0&&y.splice(n,1),t.key&&t.key.toLowerCase()==="meta"&&y.splice(0,y.length),(e===93||e===224)&&(e=91),e in A){A[e]=!1;for(var i in U)U[i]===e&&(F[i]=!1)}}function Le(t){if(!t)Object.keys(k).forEach(function(u){return delete k[u]});else if(Array.isArray(t))t.forEach(function(u){u.key&&_t(u)});else if(typeof t=="object")t.key&&_t(t);else if(typeof t=="string"){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r=n[0],o=n[1];typeof r=="function"&&(o=r,r=""),_t({key:t,scope:r,method:o,splitKey:"+"})}}var _t=function(e){var n=e.key,i=e.scope,r=e.method,o=e.splitKey,u=o===void 0?"+":o,f=Rt(n);f.forEach(function(d){var h=d.split(u),c=h.length,_=h[c-1],m=_==="*"?"*":nt(_);if(!!k[m]){i||(i=J());var g=c>1?Kt(U,h):[];k[m]=k[m].map(function(b){var v=r?b.method===r:!0;return v&&b.scope===i&&Se(b.mods,g)?{}:b})}})};function Vt(t,e,n){var i;if(e.scope===n||e.scope==="all"){i=e.mods.length>0;for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(!A[r]&&e.mods.indexOf(+r)>-1||A[r]&&e.mods.indexOf(+r)===-1)&&(i=!1);(e.mods.length===0&&!A[16]&&!A[18]&&!A[17]&&!A[91]||i||e.shortcut==="*")&&e.method(t,e)===!1&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function It(t){var e=k["*"],n=t.keyCode||t.which||t.charCode;if(!!F.filter.call(this,t)){if((n===93||n===224)&&(n=91),y.indexOf(n)===-1&&n!==229&&y.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(g){var b=Bt[g];t[g]&&y.indexOf(b)===-1?y.push(b):!t[g]&&y.indexOf(b)>-1?y.splice(y.indexOf(b),1):g==="metaKey"&&t[g]&&y.length===3&&(t.ctrlKey||t.shiftKey||t.altKey||(y=y.slice(y.indexOf(b))))}),n in A){A[n]=!0;for(var i in U)U[i]===n&&(F[i]=!0);if(!e)return}for(var r in A)Object.prototype.hasOwnProperty.call(A,r)&&(A[r]=t[Bt[r]]);t.getModifierState&&!(t.altKey&&!t.ctrlKey)&&t.getModifierState("AltGraph")&&(y.indexOf(17)===-1&&y.push(17),y.indexOf(18)===-1&&y.push(18),A[17]=!0,A[18]=!0);var o=J();if(e)for(var u=0;u<e.length;u++)e[u].scope===o&&(t.type==="keydown"&&e[u].keydown||t.type==="keyup"&&e[u].keyup)&&Vt(t,e[u],o);if(n in k){for(var f=0;f<k[n].length;f++)if((t.type==="keydown"&&k[n][f].keydown||t.type==="keyup"&&k[n][f].keyup)&&k[n][f].key){for(var d=k[n][f],h=d.splitKey,c=d.key.split(h),_=[],m=0;m<c.length;m++)_.push(nt(c[m]));_.sort().join("")===y.sort().join("")&&Vt(t,d,o)}}}}function Fe(t){return qt.indexOf(t)>-1}function F(t,e,n){y=[];var i=Rt(t),r=[],o="all",u=document,f=0,d=!1,h=!0,c="+";for(n===void 0&&typeof e=="function"&&(n=e),Object.prototype.toString.call(e)==="[object Object]"&&(e.scope&&(o=e.scope),e.element&&(u=e.element),e.keyup&&(d=e.keyup),e.keydown!==void 0&&(h=e.keydown),typeof e.splitKey=="string"&&(c=e.splitKey)),typeof e=="string"&&(o=e);f<i.length;f++)t=i[f].split(c),r=[],t.length>1&&(r=Kt(U,t)),t=t[t.length-1],t=t==="*"?"*":nt(t),t in k||(k[t]=[]),k[t].push({keyup:d,keydown:h,scope:o,mods:r,shortcut:i[f],method:n,key:i[f],splitKey:c});typeof u!="undefined"&&!Fe(u)&&window&&(qt.push(u),mt(u,"keydown",function(_){It(_)}),mt(window,"focus",function(){y=[]}),mt(u,"keyup",function(_){It(_),Ce(_)}))}var vt={setScope:Ht,getScope:J,deleteScope:De,getPressedKeyCodes:Ee,isPressed:We,filter:$e,unbind:Le};for(var gt in vt)Object.prototype.hasOwnProperty.call(vt,gt)&&(F[gt]=vt[gt]);if(typeof window!="undefined"){var xe=window.hotkeys;F.noConflict=function(t){return t&&window.hotkeys===F&&(window.hotkeys=xe),F},window.hotkeys=F}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Jt=function(t,e){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])})(t,e)};function yt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Jt(t,e),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var C=function(){return(C=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function s(t,e,n,i){return new(n||(n=Promise))(function(r,o){function u(h){try{d(i.next(h))}catch(c){o(c)}}function f(h){try{d(i.throw(h))}catch(c){o(c)}}function d(h){var c;h.done?r(h.value):(c=h.value,c instanceof n?c:new n(function(_){_(c)})).then(u,f)}d((i=i.apply(t,e||[])).next())})}function a(t,e){var n,i,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(d){return function(h){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,i=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(r=u.trys,!((r=r.length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){u=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){u.label=c[1];break}if(c[0]===6&&u.label<r[1]){u.label=r[1],r=c;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(c);break}r[2]&&u.ops.pop(),u.trys.pop();continue}c=e.call(t,u)}catch(_){c=[6,_],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([d,h])}}}function B(t,e){e===void 0&&(e=!1);var n=window.crypto.getRandomValues(new Uint32Array(1))[0],i="_".concat(n);return Object.defineProperty(window,i,{value:function(r){return e&&Reflect.deleteProperty(window,i),t==null?void 0:t(r)},writable:!1,configurable:!0}),n}function Gt(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return[2,new Promise(function(i,r){var o=B(function(f){i(f),Reflect.deleteProperty(window,u)},!0),u=B(function(f){r(f),Reflect.deleteProperty(window,o)},!0);window.__TAURI_IPC__(C({cmd:t,callback:o,error:u},e))})]})})}function Ke(t,e){return e===void 0&&(e="asset"),navigator.userAgent.includes("Windows")?"https://".concat(e,".localhost/").concat(t):"".concat(e,"://").concat(t)}Object.freeze({__proto__:null,transformCallback:B,invoke:Gt,convertFileSrc:Ke});function l(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,Gt("tauri",t)]})})}function Re(t,e,n,i){return n===void 0&&(n=[]),s(this,void 0,void 0,function(){return a(this,function(r){return typeof n=="object"&&Object.freeze(n),[2,l({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:n,options:i,onEventFn:B(t)}})]})})}var bt=function(){function t(){this.eventListeners=Object.create(null)}return t.prototype.addEventListener=function(e,n){e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n]},t.prototype._emit=function(e,n){if(e in this.eventListeners)for(var i=0,r=this.eventListeners[e];i<r.length;i++)(0,r[i])(n)},t.prototype.on=function(e,n){return this.addEventListener(e,n),this},t}(),Xt=function(){function t(e){this.pid=e}return t.prototype.write=function(e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)}})]})})},t.prototype.kill=function(){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})]})})},t}(),Ue=function(t){function e(n,i,r){i===void 0&&(i=[]);var o=t.call(this)||this;return o.stdout=new bt,o.stderr=new bt,o.program=n,o.args=typeof i=="string"?[i]:i,o.options=r!=null?r:{},o}return yt(e,t),e.sidecar=function(n,i,r){i===void 0&&(i=[]);var o=new e(n,i,r);return o.options.sidecar=!0,o},e.prototype.spawn=function(){return s(this,void 0,void 0,function(){var n=this;return a(this,function(i){return[2,Re(function(r){switch(r.event){case"Error":n._emit("error",r.payload);break;case"Terminated":n._emit("close",r.payload);break;case"Stdout":n.stdout._emit("data",r.payload);break;case"Stderr":n.stderr._emit("data",r.payload)}},this.program,this.args,this.options).then(function(r){return new Xt(r)})]})})},e.prototype.execute=function(){return s(this,void 0,void 0,function(){var n=this;return a(this,function(i){return[2,new Promise(function(r,o){n.on("error",o);var u=[],f=[];n.stdout.on("data",function(d){u.push(d)}),n.stderr.on("data",function(d){f.push(d)}),n.on("close",function(d){r({code:d.code,signal:d.signal,stdout:u.join(`
`),stderr:f.join(`
`)})}),n.spawn().catch(o)})]})})},e}(bt);function Be(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})]})})}Object.freeze({__proto__:null,Command:Ue,Child:Xt,open:Be});function Ne(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"App",message:{cmd:"getAppVersion"}})]})})}function qe(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"App",message:{cmd:"getAppName"}})]})})}function He(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"App",message:{cmd:"getTauriVersion"}})]})})}Object.freeze({__proto__:null,getName:qe,getVersion:Ne,getTauriVersion:He});function Ve(t){return t===void 0&&(t=0),s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})]})})}function Ie(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"Process",message:{cmd:"relaunch"}})]})})}Object.freeze({__proto__:null,exit:Ve,relaunch:Ie});function Je(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]})})}Object.freeze({__proto__:null,getMatches:Je});function Qt(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Event",message:{cmd:"unlisten",eventId:t}})]})})}function Yt(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(i){switch(i.label){case 0:return[4,l({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:typeof n=="string"?n:JSON.stringify(n)}})];case 1:return i.sent(),[2]}})})}function wt(t,e,n){return s(this,void 0,void 0,function(){var i=this;return a(this,function(r){return[2,l({__tauriModule:"Event",message:{cmd:"listen",event:t,windowLabel:e,handler:B(n)}}).then(function(o){return function(){return s(i,void 0,void 0,function(){return a(this,function(u){return[2,Qt(o)]})})}})]})})}function Zt(t,e,n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,wt(t,e,function(r){n(r),Qt(r.id).catch(function(){})})]})})}function Mt(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,wt(t,null,e)]})})}function te(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,Zt(t,null,e)]})})}function Ot(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,Yt(t,void 0,e)]})})}Object.freeze({__proto__:null,listen:Mt,once:te,emit:Ot});function Ge(t){return t===void 0&&(t={}),s(this,void 0,void 0,function(){return a(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]})})}function Xe(t){return t===void 0&&(t={}),s(this,void 0,void 0,function(){return a(this,function(e){return typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]})})}function Qe(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t}})]})})}function Ye(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Dialog",message:{cmd:"askDialog",title:e,message:t}})]})})}function Ze(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Dialog",message:{cmd:"confirmDialog",title:e,message:t}})]})})}Object.freeze({__proto__:null,open:Ge,save:Xe,message:Qe,ask:Ye,confirm:Ze});var it;function tn(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}}).then(function(i){return new TextDecoder().decode(new Uint8Array(i))})]})})}function en(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){var n;return a(this,function(i){switch(i.label){case 0:return[4,l({__tauriModule:"Fs",message:{cmd:"readFile",path:t,options:e}})];case 1:return n=i.sent(),[2,Uint8Array.from(n)]}})})}function nn(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return typeof e=="object"&&Object.freeze(e),typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:Array.from(new TextEncoder().encode(t.contents)),options:e}})]})})}function rn(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return typeof e=="object"&&Object.freeze(e),typeof t=="object"&&Object.freeze(t),[2,l({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:Array.from(t.contents),options:e}})]})})}function on(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})]})})}function un(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]})})}function sn(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]})})}function an(t,e,n){return n===void 0&&(n={}),s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]})})}function cn(t,e){return e===void 0&&(e={}),s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]})})}function ln(t,e,n){return n===void 0&&(n={}),s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]})})}(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Desktop=6]="Desktop",t[t.Document=7]="Document",t[t.Download=8]="Download",t[t.Executable=9]="Executable",t[t.Font=10]="Font",t[t.Home=11]="Home",t[t.Picture=12]="Picture",t[t.Public=13]="Public",t[t.Runtime=14]="Runtime",t[t.Template=15]="Template",t[t.Video=16]="Video",t[t.Resource=17]="Resource",t[t.App=18]="App",t[t.Log=19]="Log"})(it||(it={}));Object.freeze({__proto__:null,get BaseDirectory(){return it},get Dir(){return it},readTextFile:tn,readBinaryFile:en,writeFile:nn,writeBinaryFile:rn,readDir:on,createDir:un,removeDir:sn,copyFile:an,removeFile:cn,renameFile:ln});var G;(function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"})(G||(G={}));var fn=function(){function t(e,n){this.type=e,this.payload=n}return t.form=function(e){var n={};for(var i in e){var r=e[i];n[i]=typeof r=="string"?r:Array.from(r)}return new t("Form",n)},t.json=function(e){return new t("Json",e)},t.text=function(e){return new t("Text",e)},t.bytes=function(e){return new t("Bytes",Array.from(e))},t}(),ee=function(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.rawHeaders=t.rawHeaders,this.data=t.data},ne=function(){function t(e){this.id=e}return t.prototype.drop=function(){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]})})},t.prototype.request=function(e){return s(this,void 0,void 0,function(){var n;return a(this,function(i){return(n=!e.responseType||e.responseType===G.JSON)&&(e.responseType=G.Text),[2,l({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then(function(r){var o=new ee(r);if(n){try{o.data=JSON.parse(o.data)}catch(u){if(o.ok&&o.data==="")o.data={};else if(o.ok)throw Error("Failed to parse response `".concat(o.data,"` as JSON: ").concat(u,";\n try setting the `responseType` option to `ResponseType.Text` or `ResponseType.Binary` if the API does not return a JSON response."))}return o}return o})]})})},t.prototype.get=function(e,n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,this.request(C({method:"GET",url:e},n))]})})},t.prototype.post=function(e,n,i){return s(this,void 0,void 0,function(){return a(this,function(r){return[2,this.request(C({method:"POST",url:e,body:n},i))]})})},t.prototype.put=function(e,n,i){return s(this,void 0,void 0,function(){return a(this,function(r){return[2,this.request(C({method:"PUT",url:e,body:n},i))]})})},t.prototype.patch=function(e,n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,this.request(C({method:"PATCH",url:e},n))]})})},t.prototype.delete=function(e,n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,this.request(C({method:"DELETE",url:e},n))]})})},t}();function ie(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then(function(n){return new ne(n)})]})})}var kt=null;function dn(t,e){var n;return s(this,void 0,void 0,function(){return a(this,function(i){switch(i.label){case 0:return kt!==null?[3,2]:[4,ie()];case 1:kt=i.sent(),i.label=2;case 2:return[2,kt.request(C({url:t,method:(n=e==null?void 0:e.method)!==null&&n!==void 0?n:"GET"},e))]}})})}Object.freeze({__proto__:null,getClient:ie,fetch:dn,Body:fn,Client:ne,Response:ee,get ResponseType(){return G}});var rt,re=function(t,e){this.type="Logical",this.width=t,this.height=e},At=function(){function t(e,n){this.type="Physical",this.width=e,this.height=n}return t.prototype.toLogical=function(e){return new re(this.width/e,this.height/e)},t}(),oe=function(t,e){this.type="Logical",this.x=t,this.y=e},Pt=function(){function t(e,n){this.type="Physical",this.x=e,this.y=n}return t.prototype.toLogical=function(e){return new oe(this.x/e,this.y/e)},t}();function hn(){return new ot(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function ue(){return window.__TAURI_METADATA__.__windows.map(function(t){return new ot(t.label,{skip:!0})})}(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(rt||(rt={}));var se=["tauri://created","tauri://error"],ae=function(){function t(e){this.label=e,this.listeners=Object.create(null)}return t.prototype.listen=function(e,n){return s(this,void 0,void 0,function(){var i=this;return a(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,wt(e,this.label,n)]})})},t.prototype.once=function(e,n){return s(this,void 0,void 0,function(){var i=this;return a(this,function(r){return this._handleTauriEvent(e,n)?[2,Promise.resolve(function(){var o=i.listeners[e];o.splice(o.indexOf(n),1)})]:[2,Zt(e,this.label,n)]})})},t.prototype.emit=function(e,n){return s(this,void 0,void 0,function(){var i,r;return a(this,function(o){if(se.includes(e)){for(i=0,r=this.listeners[e]||[];i<r.length;i++)(0,r[i])({event:e,id:-1,windowLabel:this.label,payload:n});return[2,Promise.resolve()]}return[2,Yt(e,this.label,n)]})})},t.prototype._handleTauriEvent=function(e,n){return!!se.includes(e)&&(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0)},t}(),ce=function(t){function e(){return t!==null&&t.apply(this,arguments)||this}return yt(e,t),e.prototype.scaleFactor=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})]})})},e.prototype.innerPosition=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(function(i){var r=i.x,o=i.y;return new Pt(r,o)})]})})},e.prototype.outerPosition=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(function(i){var r=i.x,o=i.y;return new Pt(r,o)})]})})},e.prototype.innerSize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(function(i){var r=i.width,o=i.height;return new At(r,o)})]})})},e.prototype.outerSize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(function(i){var r=i.width,o=i.height;return new At(r,o)})]})})},e.prototype.isFullscreen=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})]})})},e.prototype.isMaximized=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})]})})},e.prototype.isDecorated=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})]})})},e.prototype.isResizable=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})]})})},e.prototype.isVisible=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})]})})},e.prototype.center=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})]})})},e.prototype.requestUserAttention=function(n){return s(this,void 0,void 0,function(){var i;return a(this,function(r){return i=null,n&&(i=n===rt.Critical?{type:"Critical"}:{type:"Informational"}),[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:i}}}})]})})},e.prototype.setResizable=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:n}}}})]})})},e.prototype.setTitle=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:n}}}})]})})},e.prototype.maximize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})]})})},e.prototype.unmaximize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})]})})},e.prototype.toggleMaximize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})]})})},e.prototype.minimize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})]})})},e.prototype.unminimize=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})]})})},e.prototype.show=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})]})})},e.prototype.hide=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})]})})},e.prototype.close=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})]})})},e.prototype.setDecorations=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:n}}}})]})})},e.prototype.setAlwaysOnTop=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:n}}}})]})})},e.prototype.setSize=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){if(!n||n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:n.type,data:{width:n.width,height:n.height}}}}}})]})})},e.prototype.setMinSize=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){if(n&&n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:n?{type:n.type,data:{width:n.width,height:n.height}}:null}}}})]})})},e.prototype.setMaxSize=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){if(n&&n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:n?{type:n.type,data:{width:n.width,height:n.height}}:null}}}})]})})},e.prototype.setPosition=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){if(!n||n.type!=="Logical"&&n.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:n.type,data:{x:n.x,y:n.y}}}}}})]})})},e.prototype.setFullscreen=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:n}}}})]})})},e.prototype.setFocus=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})]})})},e.prototype.setIcon=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:typeof n=="string"?n:Array.from(n)}}}}})]})})},e.prototype.setSkipTaskbar=function(n){return s(this,void 0,void 0,function(){return a(this,function(i){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:n}}}})]})})},e.prototype.startDragging=function(){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})]})})},e}(ae),ot=function(t){function e(n,i){i===void 0&&(i={});var r=t.call(this,n)||this;return(i==null?void 0:i.skip)||l({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:C({label:n},i)}}}).then(function(){return s(r,void 0,void 0,function(){return a(this,function(o){return[2,this.emit("tauri://created")]})})}).catch(function(o){return s(r,void 0,void 0,function(){return a(this,function(u){return[2,this.emit("tauri://error",o)]})})}),r}return yt(e,t),e.getByLabel=function(n){return ue().some(function(i){return i.label===n})?new e(n,{skip:!0}):null},e}(ce),pn=new ot(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0});function mn(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}})]})})}function _n(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}})]})})}function vn(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}})]})})}Object.freeze({__proto__:null,WebviewWindow:ot,WebviewWindowHandle:ae,WindowManager:ce,getCurrent:hn,getAll:ue,appWindow:pn,LogicalSize:re,PhysicalSize:At,LogicalPosition:oe,PhysicalPosition:Pt,get UserAttentionType(){return rt},currentMonitor:mn,primaryMonitor:_n,availableMonitors:vn});function gn(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:B(e)}})]})})}function yn(t,e){return s(this,void 0,void 0,function(){return a(this,function(n){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:B(e)}})]})})}function bn(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]})})}function wn(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]})})}function Mn(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]})})}Object.freeze({__proto__:null,register:gn,registerAll:yn,isRegistered:bn,unregister:wn,unregisterAll:Mn});function On(){return s(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return a(this,function(n){return[2,new Promise(function(i,r){Mt("tauri://update-status",function(o){var u;(u=o==null?void 0:o.payload).error?(t(),r(u.error)):u.status==="DONE"&&(t(),i())}).then(function(o){e=o}).catch(function(o){throw t(),o}),Ot("tauri://update-install").catch(function(o){throw t(),o})})]})})}function kn(){return s(this,void 0,void 0,function(){function t(){e&&e(),e=void 0}var e;return a(this,function(n){return[2,new Promise(function(i,r){te("tauri://update-available",function(o){var u;u=o==null?void 0:o.payload,t(),i({manifest:u,shouldUpdate:!0})}).catch(function(o){throw t(),o}),Mt("tauri://update-status",function(o){var u;(u=o==null?void 0:o.payload).error?(t(),r(u.error)):u.status==="UPTODATE"&&(t(),i({shouldUpdate:!1}))}).then(function(o){e=o}).catch(function(o){throw t(),o}),Ot("tauri://update").catch(function(o){throw t(),o})})]})})}Object.freeze({__proto__:null,installUpdate:On,checkUpdate:kn});function An(t){return s(this,void 0,void 0,function(){return a(this,function(e){return[2,l({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})]})})}function Pn(){return s(this,void 0,void 0,function(){return a(this,function(t){return[2,l({__tauriModule:"Clipboard",message:{cmd:"readText"}})]})})}Object.freeze({__proto__:null,writeText:An,readText:Pn});function le(t,e,n){const i=t.slice();return i[12]=e[n],i[14]=n,i}function fe(t){let e,n,i,r,o,u,f,d,h,c,_,m,g,b,v,ut,Tt,x=t[5],M=[];for(let p=0;p<x.length;p+=1)M[p]=pe(le(t,x,p));const ve=p=>R(M[p],1,1,()=>{M[p]=null});let j=!t[3]&&me(),z=!t[3]&&t[8]&&_e();return{c(){e=$("span"),n=$("span"),i=W(t[6]),r=V(),o=$("ul");for(let p=0;p<M.length;p+=1)M[p].c();u=V(),f=$("span"),d=W(t[7]),j&&j.c(),h=V(),c=$("span"),_=W(t[6]),m=W(Sn),g=W(t[7]),z&&z.c(),b=$t(),T(n,"class","bracket svelte-gbh3pt"),T(n,"tabindex","0"),T(o,"class","svelte-gbh3pt"),T(f,"class","bracket svelte-gbh3pt"),T(f,"tabindex","0"),T(e,"class","svelte-gbh3pt"),X(e,"hidden",t[8]),T(c,"class","bracket svelte-gbh3pt"),T(c,"tabindex","0"),X(c,"hidden",!t[8])},m(p,w){E(p,e,w),P(e,n),P(n,i),P(e,r),P(e,o);for(let O=0;O<M.length;O+=1)M[O].m(o,null);P(e,u),P(e,f),P(f,d),j&&j.m(e,null),E(p,h,w),E(p,c,w),P(c,_),P(c,m),P(c,g),z&&z.m(p,w),E(p,b,w),v=!0,ut||(Tt=[st(n,"click",t[11]),st(f,"click",t[11]),st(c,"click",t[11])],ut=!0)},p(p,w){if((!v||w&64)&&q(i,p[6]),w&1591){x=p[5];let O;for(O=0;O<x.length;O+=1){const jt=le(p,x,O);M[O]?(M[O].p(jt,w),D(M[O],1)):(M[O]=pe(jt),M[O].c(),D(M[O],1),M[O].m(o,null))}for(dt(),O=x.length;O<M.length;O+=1)ve(O);ht()}(!v||w&128)&&q(d,p[7]),p[3]?j&&(j.d(1),j=null):j||(j=me(),j.c(),j.m(e,null)),w&256&&X(e,"hidden",p[8]),(!v||w&64)&&q(_,p[6]),(!v||w&128)&&q(g,p[7]),w&256&&X(c,"hidden",!p[8]),!p[3]&&p[8]?z||(z=_e(),z.c(),z.m(b.parentNode,b)):z&&(z.d(1),z=null)},i(p){if(!v){for(let w=0;w<x.length;w+=1)D(M[w]);v=!0}},o(p){M=M.filter(Boolean);for(let w=0;w<M.length;w+=1)R(M[w]);v=!1},d(p){p&&S(e),we(M,p),j&&j.d(),p&&S(h),p&&S(c),z&&z.d(p),p&&S(b),ut=!1,N(Tt)}}}function de(t){let e,n,i=t[12]+"",r,o;return{c(){e=$("span"),n=W('"'),r=W(i),o=W('":'),T(e,"class","key")},m(u,f){E(u,e,f),P(e,n),P(e,r),P(e,o)},p(u,f){f&32&&i!==(i=u[12]+"")&&q(r,i)},d(u){u&&S(e)}}}function Tn(t){let e,n=t[10](t[0][t[12]])+"",i,r,o=t[14]<t[5].length-1&&he();return{c(){e=$("span"),i=W(n),o&&o.c(),T(e,"class",r="val "+t[9](t[0][t[12]])+" svelte-gbh3pt")},m(u,f){E(u,e,f),P(e,i),o&&o.m(e,null)},p(u,f){f&33&&n!==(n=u[10](u[0][u[12]])+"")&&q(i,n),u[14]<u[5].length-1?o||(o=he(),o.c(),o.m(e,null)):o&&(o.d(1),o=null),f&33&&r!==(r="val "+u[9](u[0][u[12]])+" svelte-gbh3pt")&&T(e,"class",r)},i:L,o:L,d(u){u&&S(e),o&&o.d()}}}function jn(t){let e,n;return e=new $n({props:{json:t[0][t[12]],depth:t[1],_lvl:t[2]+1,_last:t[14]===t[5].length-1}}),{c(){Pe(e.$$.fragment)},m(i,r){Ft(e,i,r),n=!0},p(i,r){const o={};r&33&&(o.json=i[0][i[12]]),r&2&&(o.depth=i[1]),r&4&&(o._lvl=i[2]+1),r&32&&(o._last=i[14]===i[5].length-1),e.$set(o)},i(i){n||(D(e.$$.fragment,i),n=!0)},o(i){R(e.$$.fragment,i),n=!1},d(i){xt(e,i)}}}function he(t){let e;return{c(){e=$("span"),e.textContent=",",T(e,"class","comma svelte-gbh3pt")},m(n,i){E(n,e,i)},d(n){n&&S(e)}}}function pe(t){let e,n,i,r,o,u,f,d=!t[4]&&de(t);const h=[jn,Tn],c=[];function _(m,g){return g&33&&(i=m[9](m[0][m[12]])==="object"),i?0:1}return r=_(t,-1),o=c[r]=h[r](t),{c(){e=$("li"),d&&d.c(),n=V(),o.c(),u=V()},m(m,g){E(m,e,g),d&&d.m(e,null),P(e,n),c[r].m(e,null),P(e,u),f=!0},p(m,g){m[4]?d&&(d.d(1),d=null):d?d.p(m,g):(d=de(m),d.c(),d.m(e,n));let b=r;r=_(m,g),r===b?c[r].p(m,g):(dt(),R(c[b],1,1,()=>{c[b]=null}),ht(),o=c[r],o?o.p(m,g):(o=c[r]=h[r](m),o.c()),D(o,1),o.m(e,u))},i(m){f||(D(o),f=!0)},o(m){R(o),f=!1},d(m){m&&S(e),d&&d.d(),c[r].d()}}}function me(t){let e;return{c(){e=$("span"),e.textContent=",",T(e,"class","comma svelte-gbh3pt")},m(n,i){E(n,e,i)},d(n){n&&S(e)}}}function _e(t){let e;return{c(){e=$("span"),e.textContent=",",T(e,"class","comma svelte-gbh3pt")},m(n,i){E(n,e,i)},d(n){n&&S(e)}}}function zn(t){let e,n,i=t[5].length&&fe(t);return{c(){i&&i.c(),e=$t()},m(r,o){i&&i.m(r,o),E(r,e,o),n=!0},p(r,[o]){r[5].length?i?(i.p(r,o),o&32&&D(i,1)):(i=fe(r),i.c(),D(i,1),i.m(e.parentNode,e)):i&&(dt(),R(i,1,1,()=>{i=null}),ht())},i(r){n||(D(i),n=!0)},o(r){R(i),n=!1},d(r){i&&i.d(r),r&&S(e)}}}const Sn="...";function En(t,e,n){let{json:i}=e,{depth:r=1/0}=e,{_lvl:o=0}=e,{_last:u=!0}=e;const f=v=>v===null?"null":typeof v;let d,h,c,_,m;const g=v=>{switch(f(v)){case"string":return`"${v}"`;case"function":return"f () {...}";case"symbol":return v.toString();default:return v}},b=()=>{n(8,m=!m)};return t.$$set=v=>{"json"in v&&n(0,i=v.json),"depth"in v&&n(1,r=v.depth),"_lvl"in v&&n(2,o=v._lvl),"_last"in v&&n(3,u=v._last)},t.$$.update=()=>{t.$$.dirty&17&&(n(5,d=f(i)==="object"?Object.keys(i):[]),n(4,h=Array.isArray(i)),n(6,c=h?"[":"{"),n(7,_=h?"]":"}")),t.$$.dirty&6&&n(8,m=r<o)},[i,r,o,u,h,d,c,_,m,f,g,b]}class $n extends ze{constructor(e){super();je(this,e,En,zn,Et,{json:0,depth:1,_lvl:2,_last:3})}}export{Ue as $,en as A,Xe as B,Dn as C,we as D,it as E,on as F,Ke as G,Dt as H,ct as I,Fn as J,ie as K,fn as L,xn as M,Cn as N,Pt as O,At as P,re as Q,Be as R,ze as S,ot as T,rt as U,Wn as V,Bn as W,gn as X,wn as Y,Mn as Z,pn as _,V as a,kn as a0,On as a1,An as a2,Pn as a3,$n as a4,Pe as a5,Ft as a6,D as a7,R as a8,xt as a9,G as aa,$t as ab,ht as ac,dt as ad,F as ae,Kn as af,T as b,E as c,P as d,$ as e,q as f,S as g,qe as h,je as i,Ne as j,Ve as k,st as l,Ie as m,L as n,He as o,Je as p,Rn as q,N as r,Et as s,W as t,Mt as u,Un as v,Gt as w,Ot as x,Ln as y,Ge as z};