12345678910111213141516171819202122232425 |
- var app=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function o(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function u(e,n,i){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const i=e.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function s(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function c(t){t.parentNode.removeChild(t)}function l(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function d(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function f(){return h(" ")}function p(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function g(t){return function(e){return e.preventDefault(),t.call(this,e)}}function m(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function v(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function b(t,e){t.value=null==e?"":e}function w(t,e,n,i){t.style.setProperty(e,n,i?"important":"")}function _(t,e){for(let n=0;n<t.options.length;n+=1){const i=t.options[n];if(i.__value===e)return void(i.selected=!0)}}function x(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}class M{constructor(t=null){this.a=t,this.e=this.n=null}m(t,e,n=null){this.e||(this.e=d(e.nodeName),this.t=e,this.h(t)),this.i(n)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)a(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(c)}}let k;function C(t){k=t}function $(){if(!k)throw new Error("Function called outside component initialization");return k}function T(t){$().$$.on_mount.push(t)}function O(t){$().$$.on_destroy.push(t)}const S=[],P=[],z=[],E=[],L=Promise.resolve();let A=!1;function W(t){z.push(t)}let j=!1;const D=new Set;function F(){if(!j){j=!0;do{for(let t=0;t<S.length;t+=1){const e=S[t];C(e),R(e.$$)}for(C(null),S.length=0;P.length;)P.pop()();for(let t=0;t<z.length;t+=1){const e=z[t];D.has(e)||(D.add(e),e())}z.length=0}while(S.length);for(;E.length;)E.pop()();A=!1,j=!1,D.clear()}}function R(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(W)}}const I=new Set;let U;function N(t,e){t&&t.i&&(I.delete(t),t.i(e))}function q(t,e,n,i){if(t&&t.o){if(I.has(t))return;I.add(t),U.c.push((()=>{I.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}function K(t){t&&t.c()}function H(t,n,r,u){const{fragment:s,on_mount:a,on_destroy:c,after_update:l}=t.$$;s&&s.m(n,r),u||W((()=>{const n=a.map(e).filter(o);c?c.push(...n):i(n),t.$$.on_mount=[]})),l.forEach(W)}function B(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function G(t,e){-1===t.$$.dirty[0]&&(S.push(t),A||(A=!0,L.then(F)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function V(e,o,r,u,s,a,l=[-1]){const d=k;C(e);const h=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:n(),dirty:l,skip_bound:!1};let f=!1;if(h.ctx=r?r(e,o.props||{},((t,n,...i)=>{const o=i.length?i[0]:n;return h.ctx&&s(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),f&&G(e,t)),n})):[],h.update(),f=!0,i(h.before_update),h.fragment=!!u&&u(h.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);h.fragment&&h.fragment.l(t),t.forEach(c)}else h.fragment&&h.fragment.c();o.intro&&N(e.$$.fragment),H(e,o.target,o.anchor,o.customElement),F()}C(d)}class J{$destroy(){B(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const X=[];function Y(e,n=t){let i;const o=[];function u(t){if(r(e,t)&&(e=t,i)){const t=!X.length;for(let t=0;t<o.length;t+=1){const n=o[t];n[1](),X.push(n,e)}if(t){for(let t=0;t<X.length;t+=2)X[t][0](X[t+1]);X.length=0}}}return{set:u,update:function(t){u(t(e))},subscribe:function(r,s=t){const a=[r,s];return o.push(a),1===o.length&&(i=n(u)||t),r(e),()=>{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(i(),i=null)}}}}
- /*!
- * 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 Q="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Z(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),(function(){n(window.event)}))}function tt(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 et(t){"string"!=typeof t&&(t="");for(var e=(t=t.replace(/\s/g,"")).split(","),n=e.lastIndexOf("");n>=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}for(var nt={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,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Q?173:189,"=":Q?61:187,";":Q?59:186,"'":222,"[":219,"]":221,"\\":220},it={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},ot={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},rt={16:!1,18:!1,17:!1,91:!1},ut={},st=1;st<20;st++)nt["f".concat(st)]=111+st;var at=[],ct="all",lt=[],dt=function(t){return nt[t.toLowerCase()]||it[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ht(t){ct=t||"all"}function ft(){return ct||"all"}var pt=function(t){var e=t.key,n=t.scope,i=t.method,o=t.splitKey,r=void 0===o?"+":o;et(e).forEach((function(t){var e=t.split(r),o=e.length,u=e[o-1],s="*"===u?"*":dt(u);if(ut[s]){n||(n=ft());var a=o>1?tt(it,e):[];ut[s]=ut[s].map((function(t){return(!i||t.method===i)&&t.scope===n&&function(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,o=!0,r=0;r<n.length;r++)-1===i.indexOf(n[r])&&(o=!1);return o}(t.mods,a)?{}:t}))}}))};function gt(t,e,n){var i;if(e.scope===n||"all"===e.scope){for(var o in i=e.mods.length>0,rt)Object.prototype.hasOwnProperty.call(rt,o)&&(!rt[o]&&e.mods.indexOf(+o)>-1||rt[o]&&-1===e.mods.indexOf(+o))&&(i=!1);(0!==e.mods.length||rt[16]||rt[18]||rt[17]||rt[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function mt(t){var e=ut["*"],n=t.keyCode||t.which||t.charCode;if(vt.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===at.indexOf(n)&&229!==n&&at.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var n=ot[e];t[e]&&-1===at.indexOf(n)?at.push(n):!t[e]&&at.indexOf(n)>-1?at.splice(at.indexOf(n),1):"metaKey"===e&&t[e]&&3===at.length&&(t.ctrlKey||t.shiftKey||t.altKey||(at=at.slice(at.indexOf(n))))})),n in rt){for(var i in rt[n]=!0,it)it[i]===n&&(vt[i]=!0);if(!e)return}for(var o in rt)Object.prototype.hasOwnProperty.call(rt,o)&&(rt[o]=t[ot[o]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===at.indexOf(17)&&at.push(17),-1===at.indexOf(18)&&at.push(18),rt[17]=!0,rt[18]=!0);var r=ft();if(e)for(var u=0;u<e.length;u++)e[u].scope===r&&("keydown"===t.type&&e[u].keydown||"keyup"===t.type&&e[u].keyup)&>(t,e[u],r);if(n in ut)for(var s=0;s<ut[n].length;s++)if(("keydown"===t.type&&ut[n][s].keydown||"keyup"===t.type&&ut[n][s].keyup)&&ut[n][s].key){for(var a=ut[n][s],c=a.splitKey,l=a.key.split(c),d=[],h=0;h<l.length;h++)d.push(dt(l[h]));d.sort().join("")===at.sort().join("")&>(t,a,r)}}}function vt(t,e,n){at=[];var i=et(t),o=[],r="all",u=document,s=0,a=!1,c=!0,l="+";for(void 0===n&&"function"==typeof e&&(n=e),"[object Object]"===Object.prototype.toString.call(e)&&(e.scope&&(r=e.scope),e.element&&(u=e.element),e.keyup&&(a=e.keyup),void 0!==e.keydown&&(c=e.keydown),"string"==typeof e.splitKey&&(l=e.splitKey)),"string"==typeof e&&(r=e);s<i.length;s++)o=[],(t=i[s].split(l)).length>1&&(o=tt(it,t)),(t="*"===(t=t[t.length-1])?"*":dt(t))in ut||(ut[t]=[]),ut[t].push({keyup:a,keydown:c,scope:r,mods:o,shortcut:i[s],method:n,key:i[s],splitKey:l});void 0!==u&&!function(t){return lt.indexOf(t)>-1}(u)&&window&&(lt.push(u),Z(u,"keydown",(function(t){mt(t)})),Z(window,"focus",(function(){at=[]})),Z(u,"keyup",(function(t){mt(t),function(t){var e=t.keyCode||t.which||t.charCode,n=at.indexOf(e);if(n>=0&&at.splice(n,1),t.key&&"meta"===t.key.toLowerCase()&&at.splice(0,at.length),93!==e&&224!==e||(e=91),e in rt)for(var i in rt[e]=!1,it)it[i]===e&&(vt[i]=!1)}(t)})))}var yt={setScope:ht,getScope:ft,deleteScope:function(t,e){var n,i;for(var o in t||(t=ft()),ut)if(Object.prototype.hasOwnProperty.call(ut,o))for(n=ut[o],i=0;i<n.length;)n[i].scope===t?n.splice(i,1):i++;ft()===t&&ht(e||"all")},getPressedKeyCodes:function(){return at.slice(0)},isPressed:function(t){return"string"==typeof t&&(t=dt(t)),-1!==at.indexOf(t)},filter:function(t){var e=t.target||t.srcElement,n=e.tagName,i=!0;return!e.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||e.readOnly)||(i=!1),i},unbind:function(t){if(t){if(Array.isArray(t))t.forEach((function(t){t.key&&pt(t)}));else if("object"==typeof t)t.key&&pt(t);else if("string"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var o=n[0],r=n[1];"function"==typeof o&&(r=o,o=""),pt({key:t,scope:o,method:r,splitKey:"+"})}}else Object.keys(ut).forEach((function(t){return delete ut[t]}))}};for(var bt in yt)Object.prototype.hasOwnProperty.call(yt,bt)&&(vt[bt]=yt[bt]);if("undefined"!=typeof window){var wt=window.hotkeys;vt.noConflict=function(t){return t&&window.hotkeys===vt&&(window.hotkeys=wt),vt},window.hotkeys=vt}
- /*! *****************************************************************************
- 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 _t=function(t,e){return(_t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function xt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_t(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Mt=function(){return(Mt=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function kt(t,e,n,i){return new(n||(n=Promise))((function(o,r){function u(t){try{a(i.next(t))}catch(t){r(t)}}function s(t){try{a(i.throw(t))}catch(t){r(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,s)}a((i=i.apply(t,e||[])).next())}))}function Ct(t,e){var n,i,o,r,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(!((o=(o=u.trys).length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function $t(t,e){void 0===e&&(e=!1);var n=function(){var t=new Int8Array(1);window.crypto.getRandomValues(t);var e=new Uint8Array(Math.max(16,Math.abs(t[0])));return window.crypto.getRandomValues(e),e.join("")}();return Object.defineProperty(window,n,{value:function(i){return e&&Reflect.deleteProperty(window,n),null==t?void 0:t(i)},writable:!1,configurable:!0}),n}function Tt(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,new Promise((function(n,i){var o=$t((function(t){n(t),Reflect.deleteProperty(window,r)}),!0),r=$t((function(t){i(t),Reflect.deleteProperty(window,o)}),!0);window.__TAURI_POST_MESSAGE__(t,Mt({__invokeKey:__TAURI_INVOKE_KEY__,callback:o,error:r},e))}))]}))}))}function Ot(t){return navigator.userAgent.includes("Windows")?"https://asset.localhost/".concat(t):"asset://".concat(t)}function St(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,Tt("tauri",t)]}))}))}function Pt(t,e,n,i){return kt(this,void 0,void 0,(function(){return Ct(this,(function(o){return"object"==typeof n&&Object.freeze(n),[2,St({__tauriModule:"Shell",message:{cmd:"execute",program:e,args:"string"==typeof n?[n]:n,options:i,onEventFn:$t(t)}})]}))}))}Object.freeze({__proto__:null,transformCallback:$t,invoke:Tt,convertFileSrc:Ot});var zt,Et,Lt=function(){function t(){this.eventListeners=Object.create(null)}return t.prototype.addEventListener=function(t,e){t in this.eventListeners?this.eventListeners[t].push(e):this.eventListeners[t]=[e]},t.prototype._emit=function(t,e){if(t in this.eventListeners)for(var n=0,i=this.eventListeners[t];n<i.length;n++)(0,i[n])(e)},t.prototype.on=function(t,e){return this.addEventListener(t,e),this},t}(),At=function(){function t(t){this.pid=t}return t.prototype.write=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:t}})]}))}))},t.prototype.kill=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})]}))}))},t}(),Wt=function(t){function e(e,n,i){void 0===n&&(n=[]);var o=t.call(this)||this;return o.stdout=new Lt,o.stderr=new Lt,o.program=e,o.args="string"==typeof n?[n]:n,o.options=null!=i?i:{},o}return xt(e,t),e.sidecar=function(t,n,i){void 0===n&&(n=[]);var o=new e(t,n,i);return o.options.sidecar=!0,o},e.prototype.spawn=function(){return kt(this,void 0,void 0,(function(){var t=this;return Ct(this,(function(e){return[2,Pt((function(e){switch(e.event){case"Error":t._emit("error",e.payload);break;case"Terminated":t._emit("close",e.payload);break;case"Stdout":t.stdout._emit("data",e.payload);break;case"Stderr":t.stderr._emit("data",e.payload)}}),this.program,this.args,this.options).then((function(t){return new At(t)}))]}))}))},e.prototype.execute=function(){return kt(this,void 0,void 0,(function(){var t=this;return Ct(this,(function(e){return[2,new Promise((function(e,n){t.on("error",n);var i=[],o=[];t.stdout.on("data",(function(t){i.push(t)})),t.stderr.on("data",(function(t){o.push(t)})),t.on("close",(function(t){e({code:t.code,signal:t.signal,stdout:i.join("\n"),stderr:o.join("\n")})})),t.spawn().catch(n)}))]}))}))},e}(Lt);function jt(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Shell",message:{cmd:"open",path:t,with:e}})]}))}))}function Dt(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"App",message:{cmd:"getAppVersion"}})]}))}))}function Ft(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"App",message:{cmd:"getAppName"}})]}))}))}function Rt(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"App",message:{cmd:"getTauriVersion"}})]}))}))}function It(t){return void 0===t&&(t=0),kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Process",message:{cmd:"exit",exitCode:t}})]}))}))}function Ut(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Process",message:{cmd:"relaunch"}})]}))}))}function Nt(e){let n,o,r,u,l,g,v,b,w,_,x,M,k,C,$,T,O,S,P,z,E;return{c(){n=d("h1"),n.textContent="Welcome",o=f(),r=d("p"),r.textContent="Tauri's API capabilities using the ` @tauri-apps/api ` package. It's used as\n the main validation app, serving as the testbed of our development process. In\n the future, this app will be used on Tauri's integration tests.",u=f(),l=d("p"),g=h("Current App version: "),v=h(e[0]),b=f(),w=d("p"),_=h("Current Tauri version: "),x=h(e[1]),M=f(),k=d("p"),C=h("Current App name: "),$=h(e[2]),T=f(),O=d("button"),O.textContent="Close application",S=f(),P=d("button"),P.textContent="Relaunch application",m(O,"class","button"),m(P,"class","button")},m(t,i){a(t,n,i),a(t,o,i),a(t,r,i),a(t,u,i),a(t,l,i),s(l,g),s(l,v),a(t,b,i),a(t,w,i),s(w,_),s(w,x),a(t,M,i),a(t,k,i),s(k,C),s(k,$),a(t,T,i),a(t,O,i),a(t,S,i),a(t,P,i),z||(E=[p(O,"click",e[3]),p(P,"click",e[4])],z=!0)},p(t,[e]){1&e&&y(v,t[0]),2&e&&y(x,t[1]),4&e&&y($,t[2])},i:t,o:t,d(t){t&&c(n),t&&c(o),t&&c(r),t&&c(u),t&&c(l),t&&c(b),t&&c(w),t&&c(M),t&&c(k),t&&c(T),t&&c(O),t&&c(S),t&&c(P),z=!1,i(E)}}}function qt(t,e,n){let i=0,o=0,r="Unknown";return Ft().then((t=>{n(2,r=t)})),Dt().then((t=>{n(0,i=t)})),Rt().then((t=>{n(1,o=t)})),[i,o,r,async function(){await It()},async function(){await Ut()}]}Object.freeze({__proto__:null,Command:Wt,Child:At,open:jt}),Object.freeze({__proto__:null,getName:Ft,getVersion:Dt,getTauriVersion:Rt}),Object.freeze({__proto__:null,exit:It,relaunch:Ut});class Kt extends J{constructor(t){super(),V(this,t,qt,Nt,r,{})}}function Ht(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]}))}))}function Bt(e){let n,i,o,r,u,l,g,v,y,b,w;return{c(){n=d("div"),i=h("This binary can be run on the terminal and takes the following arguments:\n "),o=d("ul"),o.innerHTML="<li>--config PATH</li> \n <li>--theme light|dark|system</li> \n <li>--verbose</li>",r=h("\n Additionally, it has a "),u=d("i"),u.textContent="update --background",l=h(" subcommand.\n Note that the arguments are only parsed, not implemented.\n "),g=d("br"),v=f(),y=d("button"),y.textContent="Get matches",m(y,"class","button"),m(y,"id","cli-matches")},m(t,c){a(t,n,c),s(n,i),s(n,o),s(n,r),s(n,u),s(n,l),s(n,g),s(n,v),s(n,y),b||(w=p(y,"click",e[0]),b=!0)},p:t,i:t,o:t,d(t){t&&c(n),b=!1,w()}}}function Gt(t,e,n){let{onMessage:i}=e;return t.$$set=t=>{"onMessage"in t&&n(1,i=t.onMessage)},[function(){Ht().then(i).catch(i)},i]}Object.freeze({__proto__:null,getMatches:Ht});class Vt extends J{constructor(t){super(),V(this,t,Gt,Bt,r,{onMessage:1})}}function Jt(t,e,n){return kt(this,void 0,void 0,(function(){return Ct(this,(function(i){switch(i.label){case 0:return[4,St({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})];case 1:return i.sent(),[2]}}))}))}function Xt(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Event",message:{cmd:"unlisten",eventId:t}})]}))}))}function Yt(t,e){return kt(this,void 0,void 0,(function(){var n=this;return Ct(this,(function(i){return[2,St({__tauriModule:"Event",message:{cmd:"listen",event:t,handler:$t(e)}}).then((function(t){return function(){return kt(n,void 0,void 0,(function(){return Ct(this,(function(e){return[2,Xt(t)]}))}))}}))]}))}))}function Qt(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,Yt(t,(function(t){e(t),Xt(t.id).catch((function(){}))}))]}))}))}function Zt(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,Jt(t,void 0,e)]}))}))}function te(e){let n,o,r,u,l,h,g,v;return{c(){n=d("div"),o=d("button"),o.textContent="Call Log API",r=f(),u=d("button"),u.textContent="Call Request (async) API",l=f(),h=d("button"),h.textContent="Send event to Rust",m(o,"class","button"),m(o,"id","log"),m(u,"class","button"),m(u,"id","request"),m(h,"class","button"),m(h,"id","event")},m(t,i){a(t,n,i),s(n,o),s(n,r),s(n,u),s(n,l),s(n,h),g||(v=[p(o,"click",e[0]),p(u,"click",e[1]),p(h,"click",e[2])],g=!0)},p:t,i:t,o:t,d(t){t&&c(n),g=!1,i(v)}}}function ee(t,e,n){let i,{onMessage:o}=e;return T((async()=>{i=await Yt("rust-event",o)})),O((()=>{i&&i()})),t.$$set=t=>{"onMessage"in t&&n(3,o=t.onMessage)},[function(){Tt("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})},function(){Tt("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(o).catch(o)},function(){Zt("js-event","this is the payload string")},o]}Object.freeze({__proto__:null,listen:Yt,once:Qt,emit:Zt});class ne extends J{constructor(t){super(),V(this,t,ee,te,r,{onMessage:3})}}function ie(t){return void 0===t&&(t={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return"object"==typeof t&&Object.freeze(t),[2,St({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]}))}))}function oe(t){return void 0===t&&(t={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return"object"==typeof t&&Object.freeze(t),[2,St({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]}))}))}function re(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Fs",message:{cmd:"readBinaryFile",path:t,options:e}})]}))}))}function ue(t){var e=function(t){if(t.length<65536)return String.fromCharCode.apply(null,Array.from(t));for(var e="",n=t.length,i=0;i<n;i++){var o=t.subarray(65536*i,65536*(i+1));e+=String.fromCharCode.apply(null,Array.from(o))}return e}(new Uint8Array(t));return btoa(e)}function se(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Fs",message:{cmd:"readDir",path:t,options:e}})]}))}))}function ae(e){let n,o,r,u,l,h,g,v,y,w,_,x,M,k,C,$,T,O,S,P;return{c(){n=d("div"),o=d("input"),r=f(),u=d("input"),l=f(),h=d("div"),g=d("input"),v=f(),y=d("label"),y.textContent="Multiple",w=f(),_=d("div"),x=d("input"),M=f(),k=d("label"),k.textContent="Directory",C=f(),$=d("button"),$.textContent="Open dialog",T=f(),O=d("button"),O.textContent="Open save dialog",m(o,"id","dialog-default-path"),m(o,"placeholder","Default path"),m(u,"id","dialog-filter"),m(u,"placeholder","Extensions filter, comma-separated"),m(u,"class","svelte-1eg58yg"),m(g,"type","checkbox"),m(g,"id","dialog-multiple"),m(y,"for","dialog-multiple"),m(x,"type","checkbox"),m(x,"id","dialog-directory"),m(k,"for","dialog-directory"),m($,"class","button"),m($,"id","open-dialog"),m(O,"class","button"),m(O,"id","save-dialog")},m(t,i){a(t,n,i),s(n,o),b(o,e[0]),s(n,r),s(n,u),b(u,e[1]),s(n,l),s(n,h),s(h,g),g.checked=e[2],s(h,v),s(h,y),s(n,w),s(n,_),s(_,x),x.checked=e[3],s(_,M),s(_,k),s(n,C),s(n,$),s(n,T),s(n,O),S||(P=[p(o,"input",e[7]),p(u,"input",e[8]),p(g,"change",e[9]),p(x,"change",e[10]),p($,"click",e[4]),p(O,"click",e[5])],S=!0)},p(t,[e]){1&e&&o.value!==t[0]&&b(o,t[0]),2&e&&u.value!==t[1]&&b(u,t[1]),4&e&&(g.checked=t[2]),8&e&&(x.checked=t[3])},i:t,o:t,d(t){t&&c(n),S=!1,i(P)}}}function ce(t,e,n){let{onMessage:i}=e,o=null,r=null,u=!1,s=!1;return t.$$set=t=>{"onMessage"in t&&n(6,i=t.onMessage)},[o,r,u,s,function(){ie({defaultPath:o,filters:r?[{name:"Tauri Example",extensions:r.split(",").map((t=>t.trim()))}]:[],multiple:u,directory:s}).then((function(t){if(Array.isArray(t))i(t);else{var e=t,n=e.match(/\S+\.\S+$/g);re(e).then((function(o){var r,u,s,a;n&&(e.includes(".png")||e.includes(".jpg"))?(r=new Uint8Array(o),u=function(t){i('<img src="data:image/png;base64,'+t+'"></img>')},s=new Blob([r],{type:"application/octet-binary"}),(a=new FileReader).onload=function(t){var e=t.target.result;u(e.substr(e.indexOf(",")+1))},a.readAsDataURL(s)):i(t)})).catch(i(t))}})).catch(i)},function(){oe({defaultPath:o,filters:r?[{name:"Tauri Example",extensions:r.split(",").map((t=>t.trim()))}]:[]}).then(i).catch(i)},i,function(){o=this.value,n(0,o)},function(){r=this.value,n(1,r)},function(){u=this.checked,n(2,u)},function(){s=this.checked,n(3,s)}]}Object.freeze({__proto__:null,open:ie,save:oe,message:function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Dialog",message:{cmd:"messageDialog",message:t}})]}))}))},ask:function(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Dialog",message:{cmd:"askDialog",title:e,message:t}})]}))}))},confirm:function(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Dialog",message:{cmd:"confirmDialog",title:e,message:t}})]}))}))}}),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.Current=19]="Current",t[t.Log=20]="Log"}(zt||(zt={})),Object.freeze({__proto__:null,get BaseDirectory(){return zt},get Dir(){return zt},readTextFile:function(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]}))}))},readBinaryFile:re,writeFile:function(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return"object"==typeof e&&Object.freeze(e),"object"==typeof t&&Object.freeze(t),[2,St({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:t.contents,options:e}})]}))}))},writeBinaryFile:function(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return"object"==typeof e&&Object.freeze(e),"object"==typeof t&&Object.freeze(t),[2,St({__tauriModule:"Fs",message:{cmd:"writeBinaryFile",path:t.path,contents:ue(t.contents),options:e}})]}))}))},readDir:se,createDir:function(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]}))}))},removeDir:function(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]}))}))},copyFile:function(t,e,n){return void 0===n&&(n={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(i){return[2,St({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]}))}))},removeFile:function(t,e){return void 0===e&&(e={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]}))}))},renameFile:function(t,e,n){return void 0===n&&(n={}),kt(this,void 0,void 0,(function(){return Ct(this,(function(i){return[2,St({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]}))}))}});class le extends J{constructor(t){var e;super(),document.getElementById("svelte-1eg58yg-style")||((e=d("style")).id="svelte-1eg58yg-style",e.textContent="#dialog-filter.svelte-1eg58yg{width:260px}",s(document.head,e)),V(this,t,ce,ae,r,{onMessage:6})}}function de(t,e,n){const i=t.slice();return i[8]=e[n],i}function he(e){let n,i,o=e[8][0]+"";return{c(){n=d("option"),i=h(o),n.__value=e[8][1],n.value=n.__value},m(t,e){a(t,n,e),s(n,i)},p:t,d(t){t&&c(n)}}}function fe(e){let n,o,r,u,h,v,y,w,_,x,M,k,C,$=e[2],T=[];for(let t=0;t<$.length;t+=1)T[t]=he(de(e,$,t));return{c(){n=d("form"),o=d("select"),r=d("option"),r.textContent="None";for(let t=0;t<T.length;t+=1)T[t].c();u=f(),h=d("input"),v=f(),y=d("button"),y.textContent="Read",w=f(),_=d("button"),_.textContent="Use as img src",x=f(),M=d("img"),r.__value="",r.value=r.__value,m(o,"class","button"),m(o,"id","dir"),m(h,"id","path-to-read"),m(h,"placeholder","Type the path to read..."),m(y,"class","button"),m(y,"id","read"),m(_,"class","button"),m(_,"type","button"),m(M,"alt","file")},m(t,i){a(t,n,i),s(n,o),s(o,r);for(let t=0;t<T.length;t+=1)T[t].m(o,null);s(n,u),s(n,h),b(h,e[0]),s(n,v),s(n,y),s(n,w),s(n,_),s(n,x),s(n,M),e[7](M),k||(C=[p(h,"input",e[6]),p(_,"click",e[4]),p(n,"submit",g(e[3]))],k=!0)},p(t,[e]){if(4&e){let n;for($=t[2],n=0;n<$.length;n+=1){const i=de(t,$,n);T[n]?T[n].p(i,e):(T[n]=he(i),T[n].c(),T[n].m(o,null))}for(;n<T.length;n+=1)T[n].d(1);T.length=$.length}1&e&&h.value!==t[0]&&b(h,t[0])},i:t,o:t,d(t){t&&c(n),l(T,t),e[7](null),k=!1,i(C)}}}function pe(){return document.getElementById("dir").value?parseInt(dir.value):null}function ge(t,e,n){let i,{onMessage:o}=e,r="";const u=Object.keys(zt).filter((t=>isNaN(parseInt(t)))).map((t=>[t,zt[t]]));return t.$$set=t=>{"onMessage"in t&&n(5,o=t.onMessage)},[r,i,u,function(){const t=r.match(/\S+\.\S+$/g),e={dir:pe()};(t?re(r,e):se(r,e)).then((function(e){if(t)if(r.includes(".png")||r.includes(".jpg"))!function(t,e){const n=new Blob([t],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(t){const n=t.target.result;e(n.substr(n.indexOf(",")+1))},i.readAsDataURL(n)}(new Uint8Array(e),(function(t){o('<img src="'+("data:image/png;base64,"+t)+'"></img>')}));else{const t=String.fromCharCode.apply(null,e);o('<textarea id="file-response" style="height: 400px"></textarea><button id="file-save">Save</button>'),setTimeout((()=>{const e=document.getElementById("file-response");e.value=t,document.getElementById("file-save").addEventListener("click",(function(){writeFile({file:r,contents:e.value},{dir:pe()}).catch(o)}))}))}else o(e)})).catch(o)},function(){n(1,i.src=Ot(r),i)},o,function(){r=this.value,n(0,r)},function(t){P[t?"unshift":"push"]((()=>{i=t,n(1,i)}))}]}class me extends J{constructor(t){super(),V(this,t,ge,fe,r,{onMessage:5})}}!function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"}(Et||(Et={}));var ve=function(){function t(t,e){this.type=t,this.payload=e}return t.form=function(e){return new t("Form",e)},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",e)},t}(),ye=function(t){this.url=t.url,this.status=t.status,this.ok=this.status>=200&&this.status<300,this.headers=t.headers,this.data=t.data},be=function(){function t(t){this.id=t}return t.prototype.drop=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]}))}))},t.prototype.request=function(t){return kt(this,void 0,void 0,(function(){var e;return Ct(this,(function(n){return(e=!t.responseType||t.responseType===Et.JSON)&&(t.responseType=Et.Text),[2,St({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}}).then((function(t){var n=new ye(t);if(e){try{n.data=JSON.parse(n.data)}catch(t){if(n.ok)throw Error("Failed to parse response `".concat(n.data,"` as JSON: ").concat(t,";\n try setting the `responseType` option to `ResponseType.Text` or `ResponseType.Binary` if the API does not return a JSON response."))}return n}return n}))]}))}))},t.prototype.get=function(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,this.request(Mt({method:"GET",url:t},e))]}))}))},t.prototype.post=function(t,e,n){return kt(this,void 0,void 0,(function(){return Ct(this,(function(i){return[2,this.request(Mt({method:"POST",url:t,body:e},n))]}))}))},t.prototype.put=function(t,e,n){return kt(this,void 0,void 0,(function(){return Ct(this,(function(i){return[2,this.request(Mt({method:"PUT",url:t,body:e},n))]}))}))},t.prototype.patch=function(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,this.request(Mt({method:"PATCH",url:t},e))]}))}))},t.prototype.delete=function(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,this.request(Mt({method:"DELETE",url:t},e))]}))}))},t}();function we(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then((function(t){return new be(t)}))]}))}))}var _e=null;function xe(e){let n,o,r,u,l,h,v,y,x,M,k,C,$,T,O,S,P;return{c(){n=d("form"),o=d("select"),r=d("option"),r.textContent="GET",u=d("option"),u.textContent="POST",l=d("option"),l.textContent="PUT",h=d("option"),h.textContent="PATCH",v=d("option"),v.textContent="DELETE",y=f(),x=d("input"),M=f(),k=d("br"),C=f(),$=d("textarea"),T=f(),O=d("button"),O.textContent="Make request",r.__value="GET",r.value=r.__value,u.__value="POST",u.value=u.__value,l.__value="PUT",l.value=l.__value,h.__value="PATCH",h.value=h.__value,v.__value="DELETE",v.value=v.__value,m(o,"class","button"),m(o,"id","request-method"),void 0===e[0]&&W((()=>e[5].call(o))),m(x,"id","request-url"),m(x,"placeholder","Type the request URL..."),m($,"id","request-body"),m($,"placeholder","Request body"),m($,"rows","5"),w($,"width","100%"),w($,"margin-right","10px"),w($,"font-size","12px"),m(O,"class","button"),m(O,"id","make-request")},m(t,i){a(t,n,i),s(n,o),s(o,r),s(o,u),s(o,l),s(o,h),s(o,v),_(o,e[0]),s(n,y),s(n,x),b(x,e[1]),s(n,M),s(n,k),s(n,C),s(n,$),b($,e[2]),s(n,T),s(n,O),S||(P=[p(o,"change",e[5]),p(x,"input",e[6]),p($,"input",e[7]),p(n,"submit",g(e[3]))],S=!0)},p(t,[e]){1&e&&_(o,t[0]),2&e&&x.value!==t[1]&&b(x,t[1]),4&e&&b($,t[2])},i:t,o:t,d(t){t&&c(n),S=!1,i(P)}}}function Me(t,e,n){let i="GET",o="https://jsonplaceholder.typicode.com/todos/1",r="",{onMessage:u}=e;return t.$$set=t=>{"onMessage"in t&&n(4,u=t.onMessage)},[i,o,r,async function(){const t=await we(),e={url:o||""||"",method:i||"GET"||"GET"};r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]")?e.body=ve.json(JSON.parse(r)):""!==r&&(e.body=ve.text(r)),t.request(e).then(u).catch(u)},u,function(){i=x(this),n(0,i)},function(){o=this.value,n(1,o)},function(){r=this.value,n(2,r)}]}Object.freeze({__proto__:null,getClient:we,fetch:function(t,e){var n;return kt(this,void 0,void 0,(function(){return Ct(this,(function(i){switch(i.label){case 0:return null!==_e?[3,2]:[4,we()];case 1:_e=i.sent(),i.label=2;case 2:return[2,_e.request(Mt({url:t,method:null!==(n=null==e?void 0:e.method)&&void 0!==n?n:"GET"},e))]}}))}))},Body:ve,Client:be,Response:ye,get ResponseType(){return Et}});class ke extends J{constructor(t){super(),V(this,t,Me,xe,r,{onMessage:4})}}function Ce(e){let n,i,o;return{c(){n=d("button"),n.textContent="Send test notification",m(n,"class","button"),m(n,"id","notification")},m(t,r){a(t,n,r),i||(o=p(n,"click",e[0]),i=!0)},p:t,i:t,o:t,d(t){t&&c(n),i=!1,o()}}}function $e(){new Notification("Notification title",{body:"This is the notification body"})}function Te(t,e,n){let{onMessage:i}=e;return t.$$set=t=>{"onMessage"in t&&n(1,i=t.onMessage)},[function(){"default"===Notification.permission?Notification.requestPermission().then((function(t){"granted"===t?$e():i("Permission is "+t)})).catch(i):"granted"===Notification.permission?$e():i("Permission is denied")},i]}class Oe extends J{constructor(t){super(),V(this,t,Te,Ce,r,{onMessage:1})}}var Se,Pe=function(t,e){this.type="Logical",this.width=t,this.height=e},ze=function(){function t(t,e){this.type="Physical",this.width=t,this.height=e}return t.prototype.toLogical=function(t){return new Pe(this.width/t,this.height/t)},t}(),Ee=function(t,e){this.type="Logical",this.x=t,this.y=e},Le=function(){function t(t,e){this.type="Physical",this.x=t,this.y=e}return t.prototype.toLogical=function(t){return new Ee(this.x/t,this.y/t)},t}();function Ae(){return window.__TAURI__.__windows.map((function(t){return new Fe(t.label,{skip:!0})}))}!function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"}(Se||(Se={}));var We=["tauri://created","tauri://error"],je=function(){function t(t){try{this.label=null!=t?t:window.__TAURI__.__currentWindow.label}catch(t){this.label=""}this.listeners=Object.create(null)}return t.prototype.listen=function(t,e){return kt(this,void 0,void 0,(function(){var n=this;return Ct(this,(function(i){return this._handleTauriEvent(t,e)?[2,Promise.resolve((function(){var i=n.listeners[t];i.splice(i.indexOf(e),1)}))]:[2,Yt(t,e)]}))}))},t.prototype.once=function(t,e){return kt(this,void 0,void 0,(function(){var n=this;return Ct(this,(function(i){return this._handleTauriEvent(t,e)?[2,Promise.resolve((function(){var i=n.listeners[t];i.splice(i.indexOf(e),1)}))]:[2,Qt(t,e)]}))}))},t.prototype.emit=function(t,e){return kt(this,void 0,void 0,(function(){var n,i;return Ct(this,(function(o){if(We.includes(t)){for(n=0,i=this.listeners[t]||[];n<i.length;n++)(0,i[n])({event:t,id:-1,payload:e});return[2,Promise.resolve()]}return[2,Jt(t,this.label,e)]}))}))},t.prototype._handleTauriEvent=function(t,e){return!!We.includes(t)&&(t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e],!0)},t}(),De=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xt(e,t),e.prototype.scaleFactor=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})]}))}))},e.prototype.innerPosition=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then((function(t){var e=t.x,n=t.y;return new Le(e,n)}))]}))}))},e.prototype.outerPosition=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then((function(t){var e=t.x,n=t.y;return new Le(e,n)}))]}))}))},e.prototype.innerSize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then((function(t){var e=t.width,n=t.height;return new ze(e,n)}))]}))}))},e.prototype.outerSize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then((function(t){var e=t.width,n=t.height;return new ze(e,n)}))]}))}))},e.prototype.isFullscreen=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})]}))}))},e.prototype.isMaximized=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})]}))}))},e.prototype.isDecorated=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})]}))}))},e.prototype.isResizable=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})]}))}))},e.prototype.isVisible=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})]}))}))},e.prototype.center=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})]}))}))},e.prototype.requestUserAttention=function(t){return kt(this,void 0,void 0,(function(){var e;return Ct(this,(function(n){return e=null,t&&(e=t===Se.Critical?{type:"Critical"}:{type:"Informational"}),[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:e}}}})]}))}))},e.prototype.setResizable=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:t}}}})]}))}))},e.prototype.setTitle=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:t}}}})]}))}))},e.prototype.maximize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})]}))}))},e.prototype.unmaximize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})]}))}))},e.prototype.toggleMaximize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})]}))}))},e.prototype.minimize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})]}))}))},e.prototype.unminimize=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})]}))}))},e.prototype.show=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})]}))}))},e.prototype.hide=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})]}))}))},e.prototype.close=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})]}))}))},e.prototype.setDecorations=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:t}}}})]}))}))},e.prototype.setAlwaysOnTop=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:t}}}})]}))}))},e.prototype.setSize=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){if(!t||"Logical"!==t.type&&"Physical"!==t.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:t.type,data:{width:t.width,height:t.height}}}}}})]}))}))},e.prototype.setMinSize=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){if(t&&"Logical"!==t.type&&"Physical"!==t.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})]}))}))},e.prototype.setMaxSize=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){if(t&&"Logical"!==t.type&&"Physical"!==t.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:t?{type:t.type,data:{width:t.width,height:t.height}}:null}}}})]}))}))},e.prototype.setPosition=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){if(!t||"Logical"!==t.type&&"Physical"!==t.type)throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:t.type,data:{x:t.x,y:t.y}}}}}})]}))}))},e.prototype.setFullscreen=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:t}}}})]}))}))},e.prototype.setFocus=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})]}))}))},e.prototype.setIcon=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:t}}}}})]}))}))},e.prototype.setSkipTaskbar=function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:t}}}})]}))}))},e.prototype.startDragging=function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})]}))}))},e}(je),Fe=function(t){function e(e,n){void 0===n&&(n={});var i=t.call(this,e)||this;return(null==n?void 0:n.skip)||St({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:Mt({label:e},n)}}}).then((function(){return kt(i,void 0,void 0,(function(){return Ct(this,(function(t){return[2,this.emit("tauri://created")]}))}))})).catch((function(t){return kt(i,void 0,void 0,(function(){return Ct(this,(function(e){return[2,this.emit("tauri://error",t)]}))}))})),i}return xt(e,t),e.getByLabel=function(t){return Ae().some((function(e){return e.label===t}))?new e(t,{skip:!0}):null},e}(De),Re=new Fe(null,{skip:!0});function Ie(t,e,n){const i=t.slice();return i[54]=e[n],i}function Ue(t){let e,n,i,o=t[54]+"";return{c(){e=d("option"),n=h(o),e.__value=i=t[54],e.value=e.__value},m(t,i){a(t,e,i),s(e,n)},p(t,r){2&r[0]&&o!==(o=t[54]+"")&&y(n,o),2&r[0]&&i!==(i=t[54])&&(e.__value=i,e.value=e.__value)},d(t){t&&c(e)}}}function Ne(e){let n,o,r,u,x,M,k,C,$,T,O,S,P,z,E,L,A,j,D,F,R,I,U,N,q,K,H,B,G,V,J,X,Y,Q,Z,tt,et,nt,it,ot,rt,ut,st,at,ct,lt,dt,ht,ft,pt,gt,mt,vt,yt,bt,wt,_t,xt,Mt,kt,Ct,$t,Tt,Ot,St,Pt,zt,Et,Lt,At,Wt,jt,Dt,Ft,Rt,It,Ut,Nt,qt,Kt,Ht,Bt,Gt,Vt,Jt,Xt,Yt,Qt,Zt,te,ee,ne,ie,oe,re,ue,se,ae,ce,le,de,he,fe,pe,ge,me,ve,ye,be,we,_e,xe,Me,ke,Ce,$e,Te,Oe,Se,Pe,ze,Ee,Le,Ae,We,je,De,Fe,Re,Ne,qe,Ke,He,Be,Ge,Ve,Je,Xe,Ye,Qe,Ze,tn,en,nn,on,rn,un,sn,an,cn,ln,dn,hn,fn,pn,gn,mn,vn,yn,bn,wn,_n,xn,Mn,kn,Cn,$n,Tn,On,Sn,Pn,zn,En,Ln,An,Wn,jn,Dn,Fn,Rn,In,Un,Nn=e[20].width+"",qn=e[20].height+"",Kn=e[21].width+"",Hn=e[21].height+"",Bn=e[20].toLogical(e[17]).width+"",Gn=e[20].toLogical(e[17]).height+"",Vn=e[21].toLogical(e[17]).width+"",Jn=e[21].toLogical(e[17]).height+"",Xn=e[18].x+"",Yn=e[18].y+"",Qn=e[19].x+"",Zn=e[19].y+"",ti=e[18].toLogical(e[17]).x+"",ei=e[18].toLogical(e[17]).y+"",ni=e[19].toLogical(e[17]).x+"",ii=e[19].toLogical(e[17]).y+"",oi=Object.keys(e[1]),ri=[];for(let t=0;t<oi.length;t+=1)ri[t]=Ue(Ie(e,oi,t));return{c(){n=d("div"),o=d("select");for(let t=0;t<ri.length;t+=1)ri[t].c();r=f(),u=d("div"),x=d("label"),M=d("input"),k=h("\n Resizable"),C=f(),$=d("label"),T=d("input"),O=h("\n Maximize"),S=f(),P=d("button"),P.textContent="Center",z=f(),E=d("button"),E.textContent="Minimize",L=f(),A=d("button"),A.textContent="Hide",j=f(),D=d("label"),F=d("input"),R=h("\n Transparent"),I=f(),U=d("label"),N=d("input"),q=h("\n Has decorations"),K=f(),H=d("label"),B=d("input"),G=h("\n Always on top"),V=f(),J=d("label"),X=d("input"),Y=h("\n Fullscreen"),Q=f(),Z=d("button"),Z.textContent="Change icon",tt=f(),et=d("div"),nt=d("div"),it=d("div"),ot=d("div"),rt=h("X\n "),ut=d("input"),st=f(),at=d("div"),ct=h("Y\n "),lt=d("input"),dt=f(),ht=d("div"),ft=d("div"),pt=h("Width\n "),gt=d("input"),mt=f(),vt=d("div"),yt=h("Height\n "),bt=d("input"),wt=f(),_t=d("div"),xt=d("div"),Mt=h("Min width\n "),kt=d("input"),Ct=f(),$t=d("div"),Tt=h("Min height\n "),Ot=d("input"),St=f(),Pt=d("div"),zt=d("div"),Et=h("Max width\n "),Lt=d("input"),At=f(),Wt=d("div"),jt=h("Max height\n "),Dt=d("input"),Ft=f(),Rt=d("div"),It=d("div"),Ut=d("div"),Nt=d("div"),Nt.textContent="Inner Size",qt=f(),Kt=d("span"),Ht=h("Width: "),Bt=h(Nn),Gt=f(),Vt=d("span"),Jt=h("Height: "),Xt=h(qn),Yt=f(),Qt=d("div"),Zt=d("div"),Zt.textContent="Outer Size",te=f(),ee=d("span"),ne=h("Width: "),ie=h(Kn),oe=f(),re=d("span"),ue=h("Height: "),se=h(Hn),ae=f(),ce=d("div"),le=d("div"),de=d("div"),de.textContent="Inner Logical Size",he=f(),fe=d("span"),pe=h("Width: "),ge=h(Bn),me=f(),ve=d("span"),ye=h("Height: "),be=h(Gn),we=f(),_e=d("div"),xe=d("div"),xe.textContent="Outer Logical Size",Me=f(),ke=d("span"),Ce=h("Width: "),$e=h(Vn),Te=f(),Oe=d("span"),Se=h("Height: "),Pe=h(Jn),ze=f(),Ee=d("div"),Le=d("div"),Ae=d("div"),Ae.textContent="Inner Position",We=f(),je=d("span"),De=h("x: "),Fe=h(Xn),Re=f(),Ne=d("span"),qe=h("y: "),Ke=h(Yn),He=f(),Be=d("div"),Ge=d("div"),Ge.textContent="Outer Position",Ve=f(),Je=d("span"),Xe=h("x: "),Ye=h(Qn),Qe=f(),Ze=d("span"),tn=h("y: "),en=h(Zn),nn=f(),on=d("div"),rn=d("div"),un=d("div"),un.textContent="Inner Logical Position",sn=f(),an=d("span"),cn=h("x: "),ln=h(ti),dn=f(),hn=d("span"),fn=h("y: "),pn=h(ei),gn=f(),mn=d("div"),vn=d("div"),vn.textContent="Outer Logical Position",yn=f(),bn=d("span"),wn=h("x: "),_n=h(ni),xn=f(),Mn=d("span"),kn=h("y: "),Cn=h(ii),$n=f(),Tn=d("form"),On=d("input"),Sn=f(),Pn=d("button"),Pn.textContent="Set title",zn=f(),En=d("form"),Ln=d("input"),An=f(),Wn=d("button"),Wn.textContent="Open URL",jn=f(),Dn=d("button"),Dn.textContent="Request attention",Fn=f(),Rn=d("button"),Rn.textContent="New window",m(o,"class","button"),void 0===e[0]&&W((()=>e[31].call(o))),m(M,"type","checkbox"),m(T,"type","checkbox"),m(P,"title","Unminimizes after 2 seconds"),m(E,"title","Unminimizes after 2 seconds"),m(A,"title","Visible again after 2 seconds"),m(F,"type","checkbox"),m(N,"type","checkbox"),m(B,"type","checkbox"),m(X,"type","checkbox"),m(ut,"type","number"),m(ut,"min","0"),m(ut,"class","svelte-12ggtr4"),m(lt,"type","number"),m(lt,"min","0"),m(lt,"class","svelte-12ggtr4"),m(it,"class","flex col grow svelte-12ggtr4"),m(gt,"type","number"),m(gt,"min","400"),m(gt,"class","svelte-12ggtr4"),m(bt,"type","number"),m(bt,"min","400"),m(bt,"class","svelte-12ggtr4"),m(ht,"class","flex col grow svelte-12ggtr4"),m(kt,"type","number"),m(kt,"class","svelte-12ggtr4"),m(Ot,"type","number"),m(Ot,"class","svelte-12ggtr4"),m(_t,"class","flex col grow svelte-12ggtr4"),m(Lt,"type","number"),m(Lt,"min","400"),m(Lt,"class","svelte-12ggtr4"),m(Dt,"type","number"),m(Dt,"min","400"),m(Dt,"class","svelte-12ggtr4"),m(Pt,"class","flex col grow svelte-12ggtr4"),m(nt,"class","window-controls flex flex-row svelte-12ggtr4"),m(n,"class","flex col"),m(Kt,"class","svelte-12ggtr4"),m(Vt,"class","svelte-12ggtr4"),m(Ut,"class","grow window-property svelte-12ggtr4"),m(ee,"class","svelte-12ggtr4"),m(re,"class","svelte-12ggtr4"),m(Qt,"class","grow window-property svelte-12ggtr4"),m(It,"class","flex"),m(fe,"class","svelte-12ggtr4"),m(ve,"class","svelte-12ggtr4"),m(le,"class","grow window-property svelte-12ggtr4"),m(ke,"class","svelte-12ggtr4"),m(Oe,"class","svelte-12ggtr4"),m(_e,"class","grow window-property svelte-12ggtr4"),m(ce,"class","flex"),m(je,"class","svelte-12ggtr4"),m(Ne,"class","svelte-12ggtr4"),m(Le,"class","grow window-property svelte-12ggtr4"),m(Je,"class","svelte-12ggtr4"),m(Ze,"class","svelte-12ggtr4"),m(Be,"class","grow window-property svelte-12ggtr4"),m(Ee,"class","flex"),m(an,"class","svelte-12ggtr4"),m(hn,"class","svelte-12ggtr4"),m(rn,"class","grow window-property svelte-12ggtr4"),m(bn,"class","svelte-12ggtr4"),m(Mn,"class","svelte-12ggtr4"),m(mn,"class","grow window-property svelte-12ggtr4"),m(on,"class","flex"),m(On,"id","title"),m(Pn,"class","button"),m(Pn,"type","submit"),w(Tn,"margin-top","24px"),m(Ln,"id","url"),m(Wn,"class","button"),m(Wn,"id","open-url"),w(En,"margin-top","24px"),m(Dn,"class","button"),m(Dn,"title","Minimizes the window, requests attention for 3s and then resets it"),m(Rn,"class","button")},m(t,i){a(t,n,i),s(n,o);for(let t=0;t<ri.length;t+=1)ri[t].m(o,null);_(o,e[0]),s(n,r),s(n,u),s(u,x),s(x,M),M.checked=e[2],s(x,k),s(u,C),s(u,$),s($,T),T.checked=e[3],s($,O),s(u,S),s(u,P),s(u,z),s(u,E),s(u,L),s(u,A),s(u,j),s(u,D),s(D,F),F.checked=e[16],s(D,R),s(u,I),s(u,U),s(U,N),N.checked=e[4],s(U,q),s(u,K),s(u,H),s(H,B),B.checked=e[5],s(H,G),s(u,V),s(u,J),s(J,X),X.checked=e[6],s(J,Y),s(u,Q),s(u,Z),s(n,tt),s(n,et),s(et,nt),s(nt,it),s(it,ot),s(ot,rt),s(ot,ut),b(ut,e[13]),s(it,st),s(it,at),s(at,ct),s(at,lt),b(lt,e[14]),s(nt,dt),s(nt,ht),s(ht,ft),s(ft,pt),s(ft,gt),b(gt,e[7]),s(ht,mt),s(ht,vt),s(vt,yt),s(vt,bt),b(bt,e[8]),s(nt,wt),s(nt,_t),s(_t,xt),s(xt,Mt),s(xt,kt),b(kt,e[9]),s(_t,Ct),s(_t,$t),s($t,Tt),s($t,Ot),b(Ot,e[10]),s(nt,St),s(nt,Pt),s(Pt,zt),s(zt,Et),s(zt,Lt),b(Lt,e[11]),s(Pt,At),s(Pt,Wt),s(Wt,jt),s(Wt,Dt),b(Dt,e[12]),a(t,Ft,i),a(t,Rt,i),s(Rt,It),s(It,Ut),s(Ut,Nt),s(Ut,qt),s(Ut,Kt),s(Kt,Ht),s(Kt,Bt),s(Ut,Gt),s(Ut,Vt),s(Vt,Jt),s(Vt,Xt),s(It,Yt),s(It,Qt),s(Qt,Zt),s(Qt,te),s(Qt,ee),s(ee,ne),s(ee,ie),s(Qt,oe),s(Qt,re),s(re,ue),s(re,se),s(Rt,ae),s(Rt,ce),s(ce,le),s(le,de),s(le,he),s(le,fe),s(fe,pe),s(fe,ge),s(le,me),s(le,ve),s(ve,ye),s(ve,be),s(ce,we),s(ce,_e),s(_e,xe),s(_e,Me),s(_e,ke),s(ke,Ce),s(ke,$e),s(_e,Te),s(_e,Oe),s(Oe,Se),s(Oe,Pe),s(Rt,ze),s(Rt,Ee),s(Ee,Le),s(Le,Ae),s(Le,We),s(Le,je),s(je,De),s(je,Fe),s(Le,Re),s(Le,Ne),s(Ne,qe),s(Ne,Ke),s(Ee,He),s(Ee,Be),s(Be,Ge),s(Be,Ve),s(Be,Je),s(Je,Xe),s(Je,Ye),s(Be,Qe),s(Be,Ze),s(Ze,tn),s(Ze,en),s(Rt,nn),s(Rt,on),s(on,rn),s(rn,un),s(rn,sn),s(rn,an),s(an,cn),s(an,ln),s(rn,dn),s(rn,hn),s(hn,fn),s(hn,pn),s(on,gn),s(on,mn),s(mn,vn),s(mn,yn),s(mn,bn),s(bn,wn),s(bn,_n),s(mn,xn),s(mn,Mn),s(Mn,kn),s(Mn,Cn),a(t,$n,i),a(t,Tn,i),s(Tn,On),b(On,e[22]),s(Tn,Sn),s(Tn,Pn),a(t,zn,i),a(t,En,i),s(En,Ln),b(Ln,e[15]),s(En,An),s(En,Wn),a(t,jn,i),a(t,Dn,i),a(t,Fn,i),a(t,Rn,i),In||(Un=[p(o,"change",e[31]),p(M,"change",e[32]),p(T,"change",e[33]),p(P,"click",e[34]),p(E,"click",e[26]),p(A,"click",e[25]),p(F,"change",e[35]),p(N,"change",e[36]),p(B,"change",e[37]),p(X,"change",e[38]),p(Z,"click",e[27]),p(ut,"input",e[39]),p(lt,"input",e[40]),p(gt,"input",e[41]),p(bt,"input",e[42]),p(kt,"input",e[43]),p(Ot,"input",e[44]),p(Lt,"input",e[45]),p(Dt,"input",e[46]),p(On,"input",e[47]),p(Tn,"submit",g(e[24])),p(Ln,"input",e[48]),p(En,"submit",g(e[23])),p(Dn,"click",e[29]),p(Rn,"click",e[28])],In=!0)},p(t,e){if(2&e[0]){let n;for(oi=Object.keys(t[1]),n=0;n<oi.length;n+=1){const i=Ie(t,oi,n);ri[n]?ri[n].p(i,e):(ri[n]=Ue(i),ri[n].c(),ri[n].m(o,null))}for(;n<ri.length;n+=1)ri[n].d(1);ri.length=oi.length}3&e[0]&&_(o,t[0]),4&e[0]&&(M.checked=t[2]),8&e[0]&&(T.checked=t[3]),65536&e[0]&&(F.checked=t[16]),16&e[0]&&(N.checked=t[4]),32&e[0]&&(B.checked=t[5]),64&e[0]&&(X.checked=t[6]),8192&e[0]&&v(ut.value)!==t[13]&&b(ut,t[13]),16384&e[0]&&v(lt.value)!==t[14]&&b(lt,t[14]),128&e[0]&&v(gt.value)!==t[7]&&b(gt,t[7]),256&e[0]&&v(bt.value)!==t[8]&&b(bt,t[8]),512&e[0]&&v(kt.value)!==t[9]&&b(kt,t[9]),1024&e[0]&&v(Ot.value)!==t[10]&&b(Ot,t[10]),2048&e[0]&&v(Lt.value)!==t[11]&&b(Lt,t[11]),4096&e[0]&&v(Dt.value)!==t[12]&&b(Dt,t[12]),1048576&e[0]&&Nn!==(Nn=t[20].width+"")&&y(Bt,Nn),1048576&e[0]&&qn!==(qn=t[20].height+"")&&y(Xt,qn),2097152&e[0]&&Kn!==(Kn=t[21].width+"")&&y(ie,Kn),2097152&e[0]&&Hn!==(Hn=t[21].height+"")&&y(se,Hn),1179648&e[0]&&Bn!==(Bn=t[20].toLogical(t[17]).width+"")&&y(ge,Bn),1179648&e[0]&&Gn!==(Gn=t[20].toLogical(t[17]).height+"")&&y(be,Gn),2228224&e[0]&&Vn!==(Vn=t[21].toLogical(t[17]).width+"")&&y($e,Vn),2228224&e[0]&&Jn!==(Jn=t[21].toLogical(t[17]).height+"")&&y(Pe,Jn),262144&e[0]&&Xn!==(Xn=t[18].x+"")&&y(Fe,Xn),262144&e[0]&&Yn!==(Yn=t[18].y+"")&&y(Ke,Yn),524288&e[0]&&Qn!==(Qn=t[19].x+"")&&y(Ye,Qn),524288&e[0]&&Zn!==(Zn=t[19].y+"")&&y(en,Zn),393216&e[0]&&ti!==(ti=t[18].toLogical(t[17]).x+"")&&y(ln,ti),393216&e[0]&&ei!==(ei=t[18].toLogical(t[17]).y+"")&&y(pn,ei),655360&e[0]&&ni!==(ni=t[19].toLogical(t[17]).x+"")&&y(_n,ni),655360&e[0]&&ii!==(ii=t[19].toLogical(t[17]).y+"")&&y(Cn,ii),4194304&e[0]&&On.value!==t[22]&&b(On,t[22]),32768&e[0]&&Ln.value!==t[15]&&b(Ln,t[15])},i:t,o:t,d(t){t&&c(n),l(ri,t),t&&c(Ft),t&&c(Rt),t&&c($n),t&&c(Tn),t&&c(zn),t&&c(En),t&&c(jn),t&&c(Dn),t&&c(Fn),t&&c(Rn),In=!1,i(Un)}}}function qe(t,e,n){window.UserAttentionType=Se;let i=Re.label;const o={[i]:Re};let r,u,{onMessage:s}=e,a="https://tauri.studio",c=!0,l=!1,d=!1,h=!0,f=!1,p=!1,g=900,m=700,y=600,b=600,w=null,_=null,M=100,k=100,C=1,$=new Le(M,k),T=new Le(M,k),O=new ze(g,m),S=new ze(g,m),P="Awesome Tauri Example!";function z(){o[i].innerSize().then((t=>{n(20,O=t),n(7,g=O.width),n(8,m=O.height)})),o[i].outerSize().then((t=>{n(21,S=t)}))}function E(){o[i].innerPosition().then((t=>{n(18,$=t)})),o[i].outerPosition().then((t=>{n(19,T=t),n(13,M=T.x),n(14,k=T.y)}))}return t.$$set=t=>{"onMessage"in t&&n(30,s=t.onMessage)},t.$$.update=()=>{7&t.$$.dirty[0]&&o[i].setResizable(c),11&t.$$.dirty[0]&&(l?o[i].maximize():o[i].unmaximize()),19&t.$$.dirty[0]&&o[i].setDecorations(h),35&t.$$.dirty[0]&&o[i].setAlwaysOnTop(f),67&t.$$.dirty[0]&&o[i].setFullscreen(p),387&t.$$.dirty[0]&&o[i].setSize(new ze(g,m)),1539&t.$$.dirty[0]&&(y&&b?o[i].setMinSize(new Pe(y,b)):o[i].setMinSize(null)),6147&t.$$.dirty[0]&&(w&&_?o[i].setMaxSize(new Pe(w,_)):o[i].setMaxSize(null)),24579&t.$$.dirty[0]&&o[i].setPosition(new Le(M,k)),3&t.$$.dirty[0]&&o[i].scaleFactor().then((t=>n(17,C=t))),3&t.$$.dirty[0]&&function(t){r&&r(),u&&u(),u=t.listen("tauri://move",E),r=t.listen("tauri://resize",z)}(o[i])},[i,o,c,l,h,f,p,g,m,y,b,w,_,M,k,a,d,C,$,T,O,S,P,function(){jt(a)},function(){o[i].setTitle(P)},function(){o[i].hide(),setTimeout(o[i].show,2e3)},function(){o[i].minimize(),setTimeout(o[i].unminimize,2e3)},function(){ie({multiple:!1}).then(o[i].setIcon)},function(){const t=Math.random().toString(),e=new Fe(t);n(1,o[t]=e,o),e.once("tauri://error",(function(){s("Error creating new webview")}))},async function(){await o[i].minimize(),await o[i].requestUserAttention(Se.Critical),await new Promise((t=>setTimeout(t,3e3))),await o[i].requestUserAttention(null)},s,function(){i=x(this),n(0,i),n(1,o)},function(){c=this.checked,n(2,c)},function(){l=this.checked,n(3,l)},()=>o[i].center(),function(){d=this.checked,n(16,d)},function(){h=this.checked,n(4,h)},function(){f=this.checked,n(5,f)},function(){p=this.checked,n(6,p)},function(){M=v(this.value),n(13,M)},function(){k=v(this.value),n(14,k)},function(){g=v(this.value),n(7,g)},function(){m=v(this.value),n(8,m)},function(){y=v(this.value),n(9,y)},function(){b=v(this.value),n(10,b)},function(){w=v(this.value),n(11,w)},function(){_=v(this.value),n(12,_)},function(){P=this.value,n(22,P)},function(){a=this.value,n(15,a)}]}Object.freeze({__proto__:null,WebviewWindow:Fe,WebviewWindowHandle:je,WindowManager:De,getCurrent:function(){return new Fe(window.__TAURI__.__currentWindow.label,{skip:!0})},getAll:Ae,appWindow:Re,LogicalSize:Pe,PhysicalSize:ze,LogicalPosition:Ee,PhysicalPosition:Le,get UserAttentionType(){return Se},currentMonitor:function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}})]}))}))},primaryMonitor:function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}})]}))}))},availableMonitors:function(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}})]}))}))}});class Ke extends J{constructor(t){var e;super(),document.getElementById("svelte-12ggtr4-style")||((e=d("style")).id="svelte-12ggtr4-style",e.textContent=".flex-row.svelte-12ggtr4.svelte-12ggtr4{flex-direction:row}.grow.svelte-12ggtr4.svelte-12ggtr4{flex-grow:1}.window-controls.svelte-12ggtr4 input.svelte-12ggtr4{width:50px}.window-property.svelte-12ggtr4.svelte-12ggtr4{margin-top:12px}.window-property.svelte-12ggtr4 span.svelte-12ggtr4{font-size:0.8rem}",s(document.head,e)),V(this,t,qe,Ne,r,{onMessage:30},[-1,-1])}}function He(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:$t(e)}})]}))}))}function Be(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]}))}))}function Ge(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]}))}))}function Ve(t,e,n){const i=t.slice();return i[9]=e[n],i}function Je(t){let e,n,i,o,r,u,l=t[9]+"";function g(){return t[8](t[9])}return{c(){e=d("div"),n=h(l),i=f(),o=d("button"),o.textContent="Unregister",m(o,"type","button")},m(t,c){a(t,e,c),s(e,n),s(e,i),s(e,o),r||(u=p(o,"click",g),r=!0)},p(e,i){t=e,2&i&&l!==(l=t[9]+"")&&y(n,l)},d(t){t&&c(e),r=!1,u()}}}function Xe(e){let n,i,o;return{c(){n=d("button"),n.textContent="Unregister all",m(n,"type","button")},m(t,r){a(t,n,r),i||(o=p(n,"click",e[5]),i=!0)},p:t,d(t){t&&c(n),i=!1,o()}}}function Ye(e){let n,o,r,u,h,g,v,y,w,_,x=e[1],M=[];for(let t=0;t<x.length;t+=1)M[t]=Je(Ve(e,x,t));let k=e[1].length&&Xe(e);return{c(){n=d("div"),o=d("div"),r=d("input"),u=f(),h=d("button"),h.textContent="Register",g=f(),v=d("div");for(let t=0;t<M.length;t+=1)M[t].c();y=f(),k&&k.c(),m(r,"placeholder","Type a shortcut with '+' as separator..."),m(h,"type","button")},m(t,i){a(t,n,i),s(n,o),s(o,r),b(r,e[0]),s(o,u),s(o,h),s(n,g),s(n,v);for(let t=0;t<M.length;t+=1)M[t].m(v,null);s(v,y),k&&k.m(v,null),w||(_=[p(r,"input",e[7]),p(h,"click",e[3])],w=!0)},p(t,[e]){if(1&e&&r.value!==t[0]&&b(r,t[0]),18&e){let n;for(x=t[1],n=0;n<x.length;n+=1){const i=Ve(t,x,n);M[n]?M[n].p(i,e):(M[n]=Je(i),M[n].c(),M[n].m(v,y))}for(;n<M.length;n+=1)M[n].d(1);M.length=x.length}t[1].length?k?k.p(t,e):(k=Xe(t),k.c(),k.m(v,null)):k&&(k.d(1),k=null)},i:t,o:t,d(t){t&&c(n),l(M,t),k&&k.d(),w=!1,i(_)}}}function Qe(t,e,n){let i,{onMessage:o}=e;const r=Y([]);u(t,r,(t=>n(1,i=t)));let s="CmdOrControl+X";function a(t){const e=t;Be(e).then((()=>{r.update((t=>t.filter((t=>t!==e)))),o(`Shortcut ${e} unregistered`)})).catch(o)}return t.$$set=t=>{"onMessage"in t&&n(6,o=t.onMessage)},[s,i,r,function(){const t=s;He(t,(()=>{o(`Shortcut ${t} triggered`)})).then((()=>{r.update((e=>[...e,t])),o(`Shortcut ${t} registered successfully`)})).catch(o)},a,function(){Ge().then((()=>{r.update((()=>[])),o("Unregistered all shortcuts")})).catch(o)},o,function(){s=this.value,n(0,s)},t=>a(t)]}Object.freeze({__proto__:null,register:He,registerAll:function(t,e){return kt(this,void 0,void 0,(function(){return Ct(this,(function(n){return[2,St({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:$t(e)}})]}))}))},isRegistered:function(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]}))}))},unregister:Be,unregisterAll:Ge});class Ze extends J{constructor(t){super(),V(this,t,Qe,Ye,r,{onMessage:6})}}function tn(t){let e,n,o,r,u;return{c(){e=d("input"),n=f(),o=d("button"),o.textContent="Write",m(e,"placeholder","write to stdin"),m(o,"class","button")},m(i,s){a(i,e,s),b(e,t[3]),a(i,n,s),a(i,o,s),r||(u=[p(e,"input",t[10]),p(o,"click",t[7])],r=!0)},p(t,n){8&n&&e.value!==t[3]&&b(e,t[3])},d(t){t&&c(e),t&&c(n),t&&c(o),r=!1,i(u)}}}function en(e){let n,o,r,u,l,h,g,v,y,_,x,M,k,C,$,T=e[4]&&tn(e);return{c(){n=d("div"),o=d("div"),r=d("input"),u=f(),l=d("button"),l.textContent="Run",h=f(),g=d("button"),g.textContent="Kill",v=f(),T&&T.c(),y=f(),_=d("div"),x=d("input"),M=f(),k=d("input"),m(l,"class","button"),m(g,"class","button"),m(x,"placeholder","Working directory"),m(k,"placeholder","Environment variables"),w(k,"width","300px")},m(t,i){a(t,n,i),s(n,o),s(o,r),b(r,e[0]),s(o,u),s(o,l),s(o,h),s(o,g),s(o,v),T&&T.m(o,null),s(n,y),s(n,_),s(_,x),b(x,e[1]),s(_,M),s(_,k),b(k,e[2]),C||($=[p(r,"input",e[9]),p(l,"click",e[5]),p(g,"click",e[6]),p(x,"input",e[11]),p(k,"input",e[12])],C=!0)},p(t,[e]){1&e&&r.value!==t[0]&&b(r,t[0]),t[4]?T?T.p(t,e):(T=tn(t),T.c(),T.m(o,null)):T&&(T.d(1),T=null),2&e&&x.value!==t[1]&&b(x,t[1]),4&e&&k.value!==t[2]&&b(k,t[2])},i:t,o:t,d(t){t&&c(n),T&&T.d(),C=!1,i($)}}}function nn(t,e,n){const i=navigator.userAgent.includes("Windows");let o,r=i?"cmd":"sh",u=i?["/C"]:["-c"],{onMessage:s}=e,a='echo "hello world"',c=null,l="SOMETHING=value ANOTHER=2",d="";return t.$$set=t=>{"onMessage"in t&&n(8,s=t.onMessage)},[a,c,l,d,o,function(){n(4,o=null);const t=new Wt(r,[...u,a],{cwd:c||null,env:l.split(" ").reduce(((t,e)=>{let[n,i]=e.split("=");return{...t,[n]:i}}),{})});t.on("close",(t=>{s(`command finished with code ${t.code} and signal ${t.signal}`),n(4,o=null)})),t.on("error",(t=>s(`command error: "${t}"`))),t.stdout.on("data",(t=>s(`command stdout: "${t}"`))),t.stderr.on("data",(t=>s(`command stderr: "${t}"`))),t.spawn().then((t=>{n(4,o=t)})).catch(s)},function(){o.kill().then((()=>s("killed child process"))).catch(s)},function(){o.write(d).catch(s)},s,function(){a=this.value,n(0,a)},function(){d=this.value,n(3,d)},function(){c=this.value,n(1,c)},function(){l=this.value,n(2,l)}]}class on extends J{constructor(t){super(),V(this,t,nn,en,r,{onMessage:8})}}function rn(){return kt(this,void 0,void 0,(function(){function t(){e&&e(),e=void 0}var e;return Ct(this,(function(n){return[2,new Promise((function(n,i){Yt("tauri://update-status",(function(e){var o;(o=null==e?void 0:e.payload).error?(t(),i(o.error)):"DONE"===o.status&&(t(),n())})).then((function(t){e=t})).catch((function(e){throw t(),e})),Zt("tauri://update-install").catch((function(e){throw t(),e}))}))]}))}))}function un(){return kt(this,void 0,void 0,(function(){function t(){e&&e(),e=void 0}var e;return Ct(this,(function(n){return[2,new Promise((function(n,i){Qt("tauri://update-available",(function(e){var i;i=null==e?void 0:e.payload,t(),n({manifest:i,shouldUpdate:!0})})).catch((function(e){throw t(),e})),Yt("tauri://update-status",(function(e){var o;(o=null==e?void 0:e.payload).error?(t(),i(o.error)):"UPTODATE"===o.status&&(t(),n({shouldUpdate:!1}))})).then((function(t){e=t})).catch((function(e){throw t(),e})),Zt("tauri://update").catch((function(e){throw t(),e}))}))]}))}))}function sn(e){let n,o,r,u,l,h;return{c(){n=d("div"),o=d("button"),o.textContent="Check update",r=f(),u=d("button"),u.textContent="Install update",m(o,"class","button"),m(o,"id","check_update"),m(u,"class","button hidden"),m(u,"id","start_update")},m(t,i){a(t,n,i),s(n,o),s(n,r),s(n,u),l||(h=[p(o,"click",e[0]),p(u,"click",e[1])],l=!0)},p:t,i:t,o:t,d(t){t&&c(n),l=!1,i(h)}}}function an(t,e,n){let i,{onMessage:o}=e;return T((async()=>{i=await Yt("tauri://update-status",o)})),O((()=>{i&&i()})),t.$$set=t=>{"onMessage"in t&&n(2,o=t.onMessage)},[async function(){try{document.getElementById("check_update").classList.add("hidden");const{shouldUpdate:t,manifest:e}=await un();o(`Should update: ${t}`),o(e),t&&document.getElementById("start_update").classList.remove("hidden")}catch(t){o(t)}},async function(){try{document.getElementById("start_update").classList.add("hidden"),await rn(),o("Installation complete, restart required."),await Ut()}catch(t){o(t)}},o]}Object.freeze({__proto__:null,installUpdate:rn,checkUpdate:un});class cn extends J{constructor(t){super(),V(this,t,an,sn,r,{onMessage:2})}}function ln(t){return kt(this,void 0,void 0,(function(){return Ct(this,(function(e){return[2,St({__tauriModule:"Clipboard",message:{cmd:"writeText",data:t}})]}))}))}function dn(){return kt(this,void 0,void 0,(function(){return Ct(this,(function(t){return[2,St({__tauriModule:"Clipboard",message:{cmd:"readText"}})]}))}))}function hn(e){let n,o,r,u,l,h,g,v,y;return{c(){n=d("div"),o=d("div"),r=d("input"),u=f(),l=d("button"),l.textContent="Write",h=f(),g=d("button"),g.textContent="Read",m(r,"placeholder","Text to write to the clipboard"),m(l,"type","button"),m(g,"type","button")},m(t,i){a(t,n,i),s(n,o),s(o,r),b(r,e[0]),s(o,u),s(o,l),s(n,h),s(n,g),v||(y=[p(r,"input",e[4]),p(l,"click",e[1]),p(g,"click",e[2])],v=!0)},p(t,[e]){1&e&&r.value!==t[0]&&b(r,t[0])},i:t,o:t,d(t){t&&c(n),v=!1,i(y)}}}function fn(t,e,n){let{onMessage:i}=e,o="clipboard message";return t.$$set=t=>{"onMessage"in t&&n(3,i=t.onMessage)},[o,function(){ln(o).then((()=>{i("Wrote to the clipboard")})).catch(i)},function(){dn().then((t=>{i(`Clipboard contents: ${t}`)})).catch(i)},i,function(){o=this.value,n(0,o)}]}Object.freeze({__proto__:null,writeText:ln,readText:dn});class pn extends J{constructor(t){super(),V(this,t,fn,hn,r,{onMessage:3})}}function gn(e){let n;return{c(){n=d("div"),n.innerHTML='<div class="alert"><p>Not available for Linux</p></div> \n <video id="localVideo" autoplay="" playsinline=""></video>'},m(t,e){a(t,n,e)},p:t,i:t,o:t,d(t){t&&c(n)}}}function mn(t,e,n){let{onMessage:i}=e;const o=window.constraints={audio:!0,video:!0};return T((async()=>{try{!function(t){const e=document.querySelector("video"),n=t.getVideoTracks();i("Got stream with constraints:",o),i(`Using video device: ${n[0].label}`),window.stream=t,e.srcObject=t}(await navigator.mediaDevices.getUserMedia(o))}catch(t){!function(t){if("ConstraintNotSatisfiedError"===t.name){const t=o.video;i(`The resolution ${t.width.exact}x${t.height.exact} px is not supported by your device.`)}else"PermissionDeniedError"===t.name&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${t.name}`,t)}(t)}})),O((()=>{window.stream.getTracks().forEach((function(t){t.stop()}))})),t.$$set=t=>{"onMessage"in t&&n(0,i=t.onMessage)},[i]}class vn extends J{constructor(t){super(),V(this,t,mn,gn,r,{onMessage:0})}}function yn(e){let n,o,r,u,l,g,v,w,_,x,M,k;return{c(){n=d("input"),o=f(),r=d("input"),u=f(),l=d("button"),l.textContent="Post it.",g=f(),v=d("p"),v.textContent="Result:",w=f(),_=d("pre"),x=h(e[2]),m(l,"type","button")},m(t,i){a(t,n,i),b(n,e[0]),a(t,o,i),a(t,r,i),b(r,e[1]),a(t,u,i),a(t,l,i),a(t,g,i),a(t,v,i),a(t,w,i),a(t,_,i),s(_,x),M||(k=[p(n,"input",e[4]),p(r,"input",e[5]),p(l,"click",e[3])],M=!0)},p(t,[e]){1&e&&n.value!==t[0]&&b(n,t[0]),2&e&&r.value!==t[1]&&b(r,t[1]),4&e&&y(x,t[2])},i:t,o:t,d(t){t&&c(n),t&&c(o),t&&c(r),t&&c(u),t&&c(l),t&&c(g),t&&c(v),t&&c(w),t&&c(_),M=!1,i(k)}}}function bn(t,e,n){let i="baz",o="qux",r=null;return[i,o,r,async function(){let t=navigator.userAgent.includes("Windows")?"https://customprotocol.test/example.html":"customprotocol://test/example.html";const e=await fetch(t,{method:"POST",body:JSON.stringify({foo:i,bar:o})}),u=await e.json();n(2,r=JSON.stringify(u))},function(){i=this.value,n(0,i)},function(){o=this.value,n(1,o)}]}class wn extends J{constructor(t){super(),V(this,t,bn,yn,r,{})}}function _n(t,e,n){const i=t.slice();return i[9]=e[n],i}function xn(t){let e,n,i,o,r,u,l=t[9].label+"";function g(){return t[7](t[9])}return{c(){e=d("p"),n=h(l),i=f(),m(e,"class",o="nv noselect "+(t[0]===t[9]?"nv_selected":""))},m(t,o){a(t,e,o),s(e,n),s(e,i),r||(u=p(e,"click",g),r=!0)},p(n,i){t=n,1&i&&o!==(o="nv noselect "+(t[0]===t[9]?"nv_selected":""))&&m(e,"class",o)},d(t){t&&c(e),r=!1,u()}}}function Mn(t){let e,n,o,r,u,h,g,v,y,b,_,x,k,C,$,T,O,S,P,z,E,L,A,W=t[2],j=[];for(let e=0;e<W.length;e+=1)j[e]=xn(_n(t,W,e));var D=t[0].component;function F(t){return{props:{onMessage:t[5]}}}return D&&(x=new D(F(t))),{c(){e=d("main"),n=d("div"),o=d("img"),u=f(),h=d("div"),h.innerHTML='<a class="dark-link" target="_blank" href="https://tauri.studio/en/docs/getting-started/intro">Documentation</a> \n <a class="dark-link" target="_blank" href="https://github.com/tauri-apps/tauri">Github</a> \n <a class="dark-link" target="_blank" href="https://github.com/tauri-apps/tauri/tree/dev/tauri/examples/api">Source</a>',g=f(),v=d("div"),y=d("div");for(let t=0;t<j.length;t+=1)j[t].c();b=f(),_=d("div"),x&&K(x.$$.fragment),k=f(),C=d("div"),$=d("p"),T=d("strong"),T.textContent="Tauri Console",O=f(),S=d("a"),S.textContent="clear",P=f(),m(o,"class","logo"),o.src!==(r="tauri logo.png")&&m(o,"src","tauri logo.png"),m(o,"height","60"),m(o,"alt","logo"),m(n,"class","flex row noselect just-around"),m(n,"style","margin=1em;"),m(n,"data-tauri-drag-region",""),w(y,"width","15em"),w(y,"margin-left","0.5em"),m(_,"class","content"),m(v,"class","flex row"),m(S,"class","nv"),m($,"class","flex row just-around"),z=new M(null),m(C,"id","response"),w(C,"white-space","pre-line")},m(i,r){a(i,e,r),s(e,n),s(n,o),s(n,u),s(n,h),s(e,g),s(e,v),s(v,y);for(let t=0;t<j.length;t+=1)j[t].m(y,null);s(v,b),s(v,_),x&&H(x,_,null),s(e,k),s(e,C),s(C,$),s($,T),s($,O),s($,S),s(C,P),z.m(t[1],C),E=!0,L||(A=[p(o,"click",t[6]),p(S,"click",t[8])],L=!0)},p(t,[e]){if(21&e){let n;for(W=t[2],n=0;n<W.length;n+=1){const i=_n(t,W,n);j[n]?j[n].p(i,e):(j[n]=xn(i),j[n].c(),j[n].m(y,null))}for(;n<j.length;n+=1)j[n].d(1);j.length=W.length}if(D!==(D=t[0].component)){if(x){U={r:0,c:[],p:U};const t=x;q(t.$$.fragment,1,0,(()=>{B(t,1)})),U.r||i(U.c),U=U.p}D?(x=new D(F(t)),K(x.$$.fragment),N(x.$$.fragment,1),H(x,_,null)):x=null}(!E||2&e)&&z.p(t[1])},i(t){E||(x&&N(x.$$.fragment,t),E=!0)},o(t){x&&q(x.$$.fragment,t),E=!1},d(t){t&&c(e),l(j,t),x&&B(x),L=!1,i(A)}}}function kn(t,e,n){T((()=>{vt("ctrl+b",(()=>{Tt("menu_toggle")}))}));const i=[{label:"Welcome",component:Kt},{label:"Messages",component:ne},{label:"CLI",component:Vt},{label:"Dialog",component:le},{label:"File system",component:me},{label:"HTTP",component:ke},{label:"HTTP Form",component:wn},{label:"Notifications",component:Oe},{label:"Window",component:Ke},{label:"Shortcuts",component:Ze},{label:"Shell",component:on},{label:"Updater",component:cn},{label:"Clipboard",component:pn},{label:"WebRTC",component:vn}];let o=i[0],r=Y([]),u="";function s(t){n(0,o=t)}T((()=>{r.subscribe((t=>{n(1,u=t.join("\n"))}))}));return[o,u,i,r,s,function(t){r.update((e=>[`[${(new Date).toLocaleTimeString()}]: `+("string"==typeof t?t:JSON.stringify(t)),...e]))},function(){jt("https://tauri.studio/")},t=>s(t),()=>{r.update((()=>[]))}]}return new class extends J{constructor(t){super(),V(this,t,kn,Mn,r,{})}}({target:document.body})}();
- //# sourceMappingURL=bundle.js.map
|