From 954460c5205d57444ef4b1412051fbedf3e38676 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Tue, 15 Jun 2021 22:04:44 -0300 Subject: [PATCH] feat(core): MenuHandle `show`, `hide`, `is_visible` and `toggle` APIs (#1958) --- .changes/core-show-hide-menu.md | 5 ++ .changes/runtime-show-hide-menu.md | 6 +++ Cargo.toml | 2 +- core/tauri-runtime-wry/src/lib.rs | 50 +++++++++++++++++++ core/tauri-runtime/src/lib.rs | 12 +++++ core/tauri/src/window/menu.rs | 24 +++++++++ examples/api/package.json | 1 + examples/api/public/build/bundle.js | 13 ++++- examples/api/public/build/bundle.js.map | 2 +- examples/api/src-tauri/src/main.rs | 8 ++- examples/api/src/App.svelte | 10 ++++ examples/api/src/components/Welcome.svelte | 7 +-- examples/api/yarn.lock | 5 ++ .../test/jest/__tests__/template.spec.js | 2 +- 14 files changed, 138 insertions(+), 9 deletions(-) create mode 100644 .changes/core-show-hide-menu.md create mode 100644 .changes/runtime-show-hide-menu.md diff --git a/.changes/core-show-hide-menu.md b/.changes/core-show-hide-menu.md new file mode 100644 index 000000000..bd3c98775 --- /dev/null +++ b/.changes/core-show-hide-menu.md @@ -0,0 +1,5 @@ +--- +"tauri": patch +--- + +Adds `show`, `hide`, `is_visible` and `toggle` APIs to the `MenuHandle`. diff --git a/.changes/runtime-show-hide-menu.md b/.changes/runtime-show-hide-menu.md new file mode 100644 index 000000000..07bd25130 --- /dev/null +++ b/.changes/runtime-show-hide-menu.md @@ -0,0 +1,6 @@ +--- +"tauri-runtime": patch +"tauri-runtime-wry": patch +--- + +Adds `show_menu`, `hide_menu` and `is_menu_visible` APIs to the `Dispatcher` trait. diff --git a/Cargo.toml b/Cargo.toml index ff0eafeb2..803986026 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ members = [ ] [patch.crates-io] -tao = { git = "https://github.com/tauri-apps/tao", rev = "5be88eb9488e3ad27194b5eff2ea31a473128f9c" } +tao = { git = "https://github.com/tauri-apps/tao", rev = "66360eea4ec6af8a52afcebb7700f486a0092168" } # default to small, optimized workspace release binaries [profile.release] diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 7c81d9121..ea9a2e97c 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -57,6 +57,9 @@ use std::{ }, }; +#[cfg(feature = "menu")] +use std::sync::atomic::{AtomicBool, Ordering}; + #[cfg(any(feature = "menu", feature = "system-tray"))] mod menu; #[cfg(any(feature = "menu", feature = "system-tray"))] @@ -456,6 +459,8 @@ enum WindowMessage { IsDecorated(Sender), IsResizable(Sender), IsVisible(Sender), + #[cfg(feature = "menu")] + IsMenuVisible(Sender), CurrentMonitor(Sender>), PrimaryMonitor(Sender>), AvailableMonitors(Sender>), @@ -469,6 +474,10 @@ enum WindowMessage { Unmaximize, Minimize, Unminimize, + #[cfg(feature = "menu")] + ShowMenu, + #[cfg(feature = "menu")] + HideMenu, Show, Hide, Close, @@ -618,6 +627,11 @@ impl Dispatch for WryDispatcher { Ok(dispatcher_getter!(self, WindowMessage::IsVisible)) } + #[cfg(feature = "menu")] + fn is_menu_visible(&self) -> Result { + Ok(dispatcher_getter!(self, WindowMessage::IsMenuVisible)) + } + fn current_monitor(&self) -> Result> { Ok( dispatcher_getter!(self, WindowMessage::CurrentMonitor) @@ -741,6 +755,24 @@ impl Dispatch for WryDispatcher { .map_err(|_| Error::FailedToSendMessage) } + #[cfg(feature = "menu")] + fn show_menu(&self) -> Result<()> { + self + .context + .proxy + .send_event(Message::Window(self.window_id, WindowMessage::ShowMenu)) + .map_err(|_| Error::FailedToSendMessage) + } + + #[cfg(feature = "menu")] + fn hide_menu(&self) -> Result<()> { + self + .context + .proxy + .send_event(Message::Window(self.window_id, WindowMessage::HideMenu)) + .map_err(|_| Error::FailedToSendMessage) + } + fn show(&self) -> Result<()> { self .context @@ -916,6 +948,8 @@ struct WebviewWrapper { inner: WebView, #[cfg(feature = "menu")] menu_items: HashMap, + #[cfg(feature = "menu")] + is_menu_visible: AtomicBool, } /// A Tauri [`Runtime`] wrapper around wry. @@ -1275,6 +1309,10 @@ fn handle_event_loop( WindowMessage::IsDecorated(tx) => tx.send(window.is_decorated()).unwrap(), WindowMessage::IsResizable(tx) => tx.send(window.is_resizable()).unwrap(), WindowMessage::IsVisible(tx) => tx.send(window.is_visible()).unwrap(), + #[cfg(feature = "menu")] + WindowMessage::IsMenuVisible(tx) => tx + .send(webview.is_menu_visible.load(Ordering::Relaxed)) + .unwrap(), WindowMessage::CurrentMonitor(tx) => tx.send(window.current_monitor()).unwrap(), WindowMessage::PrimaryMonitor(tx) => tx.send(window.primary_monitor()).unwrap(), WindowMessage::AvailableMonitors(tx) => { @@ -1295,6 +1333,16 @@ fn handle_event_loop( WindowMessage::Unmaximize => window.set_maximized(false), WindowMessage::Minimize => window.set_minimized(true), WindowMessage::Unminimize => window.set_minimized(false), + #[cfg(feature = "menu")] + WindowMessage::ShowMenu => { + window.show_menu(); + webview.is_menu_visible.store(true, Ordering::Relaxed); + } + #[cfg(feature = "menu")] + WindowMessage::HideMenu => { + window.hide_menu(); + webview.is_menu_visible.store(false, Ordering::Relaxed); + } WindowMessage::Show => window.set_visible(true), WindowMessage::Hide => window.set_visible(false), WindowMessage::Close => { @@ -1494,6 +1542,8 @@ fn create_webview>( inner: webview, #[cfg(feature = "menu")] menu_items, + #[cfg(feature = "menu")] + is_menu_visible: AtomicBool::new(true), }) } diff --git a/core/tauri-runtime/src/lib.rs b/core/tauri-runtime/src/lib.rs index fae99de2c..dfaf3917f 100644 --- a/core/tauri-runtime/src/lib.rs +++ b/core/tauri-runtime/src/lib.rs @@ -301,6 +301,10 @@ pub trait Dispatch: Clone + Send + Sized + 'static { /// Gets the window's current vibility state. fn is_visible(&self) -> crate::Result; + /// Gets the window menu current visibility state. + #[cfg(feature = "menu")] + fn is_menu_visible(&self) -> crate::Result; + /// Returns the monitor on which the window currently resides. /// /// Returns None if current monitor can't be detected. @@ -350,6 +354,14 @@ pub trait Dispatch: Clone + Send + Sized + 'static { /// Unminimizes the window. fn unminimize(&self) -> crate::Result<()>; + /// Shows the window menu. + #[cfg(feature = "menu")] + fn show_menu(&self) -> crate::Result<()>; + + /// Hides the window menu. + #[cfg(feature = "menu")] + fn hide_menu(&self) -> crate::Result<()>; + /// Shows the window. fn show(&self) -> crate::Result<()>; diff --git a/core/tauri/src/window/menu.rs b/core/tauri/src/window/menu.rs index 5c3463164..13c9666dd 100644 --- a/core/tauri/src/window/menu.rs +++ b/core/tauri/src/window/menu.rs @@ -70,6 +70,30 @@ impl MenuHandle

{ } panic!("item id not found") } + + /// Shows the menu. + pub fn show(&self) -> crate::Result<()> { + self.dispatcher.show_menu().map_err(Into::into) + } + + /// Hides the menu. + pub fn hide(&self) -> crate::Result<()> { + self.dispatcher.hide_menu().map_err(Into::into) + } + + /// Whether the menu is visible or not. + pub fn is_visible(&self) -> crate::Result { + self.dispatcher.is_menu_visible().map_err(Into::into) + } + + /// Toggles the menu visibility. + pub fn toggle(&self) -> crate::Result<()> { + if self.is_visible()? { + self.hide() + } else { + self.show() + } + } } impl MenuItemHandle

{ diff --git a/examples/api/package.json b/examples/api/package.json index a215f9ba5..a5dd72048 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -18,6 +18,7 @@ }, "dependencies": { "@tauri-apps/api": "link:../../tooling/api/dist", + "hotkeys-js": "^3.8.5", "sirv-cli": "1.0.11" } } diff --git a/examples/api/public/build/bundle.js b/examples/api/public/build/bundle.js index 4284aef12..6765dcdbc 100644 --- a/examples/api/public/build/bundle.js +++ b/examples/api/public/build/bundle.js @@ -1,4 +1,13 @@ -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 c(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode.removeChild(t)}function l(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function v(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 g(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function _(t,e){t.value=null==e?"":e}function b(t,e,n,i){t.style.setProperty(e,n,i?"important":"")}function w(t,e){for(let n=0;n{D.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}function q(t){t&&t.c()}function N(t,n,r,u){const{fragment:s,on_mount:c,on_destroy:a,after_update:l}=t.$$;s&&s.m(n,r),u||W((()=>{const n=c.map(e).filter(o);a?a.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]&&(z.push(t),O||(O=!0,E.then(F)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=i.length?i[0]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),h&&G(e,t)),n})):[],f.update(),h=!0,i(f.before_update),f.fragment=!!u&&u(f.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);f.fragment&&f.fragment.l(t),t.forEach(a)}else f.fragment&&f.fragment.c();o.intro&&I(e.$$.fragment),N(e,o.target,o.anchor,o.customElement),F()}M(d)}class V{$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)}} +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 c(t,e,n){t.insertBefore(e,n||null)}function a(t){t.parentNode.removeChild(t)}function l(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function v(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 g(t){return""===t?null:+t}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function _(t,e){t.value=null==e?"":e}function b(t,e,n,i){t.style.setProperty(e,n,i?"important":"")}function w(t,e){for(let n=0;n{F.delete(t),i&&(n&&t.d(1),i())})),t.o(e)}}function K(t){t&&t.c()}function N(t,n,r,u){const{fragment:s,on_mount:c,on_destroy:a,after_update:l}=t.$$;s&&s.m(n,r),u||j((()=>{const n=c.map(e).filter(o);a?a.push(...n):i(n),t.$$.on_mount=[]})),l.forEach(j)}function q(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 B(t,e){-1===t.$$.dirty[0]&&(O.push(t),z||(z=!0,T.then(L)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=i.length?i[0]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=o)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](o),h&&B(e,t)),n})):[],f.update(),h=!0,i(f.before_update),f.fragment=!!u&&u(f.ctx),o.target){if(o.hydrate){const t=function(t){return Array.from(t.childNodes)}(o.target);f.fragment&&f.fragment.l(t),t.forEach(a)}else f.fragment&&f.fragment.c();o.intro&&I(e.$$.fragment),N(e,o.target,o.anchor,o.customElement),L()}M(d)}class H{$destroy(){q(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)}} +/*! + * hotkeys-js v3.8.5 + * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. + * + * Copyright (c) 2021 kenny wong + * http://jaywcjlove.github.io/hotkeys + * + * Licensed under the MIT license. + */var V="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function J(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),(function(){n(window.event)}))}function X(t,e){for(var n=e.slice(0,e.length-1),i=0;i=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}for(var Q={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,"-":V?173:189,"=":V?61:187,";":V?59:186,"'":222,"[":219,"]":221,"\\":220},Z={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},tt={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},et={16:!1,18:!1,17:!1,91:!1},nt={},it=1;it<20;it++)Q["f".concat(it)]=111+it;var ot=[],rt="all",ut=[],st=function(t){return Q[t.toLowerCase()]||Z[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ct(t){rt=t||"all"}function at(){return rt||"all"}var lt=function(t){var e=t.key,n=t.scope,i=t.method,o=t.splitKey,r=void 0===o?"+":o;Y(e).forEach((function(t){var e=t.split(r),o=e.length,u=e[o-1],s="*"===u?"*":st(u);if(nt[s]){n||(n=at());var c=o>1?X(Z,e):[];nt[s]=nt[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;r0,et)Object.prototype.hasOwnProperty.call(et,o)&&(!et[o]&&e.mods.indexOf(+o)>-1||et[o]&&-1===e.mods.indexOf(+o))&&(i=!1);(0!==e.mods.length||et[16]||et[18]||et[17]||et[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 ft(t){var e=nt["*"],n=t.keyCode||t.which||t.charCode;if(ht.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===ot.indexOf(n)&&229!==n&&ot.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var n=tt[e];t[e]&&-1===ot.indexOf(n)?ot.push(n):!t[e]&&ot.indexOf(n)>-1?ot.splice(ot.indexOf(n),1):"metaKey"===e&&t[e]&&3===ot.length&&(t.ctrlKey||t.shiftKey||t.altKey||(ot=ot.slice(ot.indexOf(n))))})),n in et){for(var i in et[n]=!0,Z)Z[i]===n&&(ht[i]=!0);if(!e)return}for(var o in et)Object.prototype.hasOwnProperty.call(et,o)&&(et[o]=t[tt[o]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===ot.indexOf(17)&&ot.push(17),-1===ot.indexOf(18)&&ot.push(18),et[17]=!0,et[18]=!0);var r=at();if(e)for(var u=0;u1&&(o=X(Z,t)),(t="*"===(t=t[t.length-1])?"*":st(t))in nt||(nt[t]=[]),nt[t].push({keyup:c,keydown:a,scope:r,mods:o,shortcut:i[s],method:n,key:i[s],splitKey:l});void 0!==u&&!function(t){return ut.indexOf(t)>-1}(u)&&window&&(ut.push(u),J(u,"keydown",(function(t){ft(t)})),J(window,"focus",(function(){ot=[]})),J(u,"keyup",(function(t){ft(t),function(t){var e=t.keyCode||t.which||t.charCode,n=ot.indexOf(e);if(n>=0&&ot.splice(n,1),t.key&&"meta"===t.key.toLowerCase()&&ot.splice(0,ot.length),93!==e&&224!==e||(e=91),e in et)for(var i in et[e]=!1,Z)Z[i]===e&&(ht[i]=!1)}(t)})))}var pt={setScope:ct,getScope:at,deleteScope:function(t,e){var n,i;for(var o in t||(t=at()),nt)if(Object.prototype.hasOwnProperty.call(nt,o))for(n=nt[o],i=0;i1?e-1:0),i=1;i0&&o[o.length-1])||6!==r[0]&&2!==r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{n(2,r=t)})),at().then((t=>{n(0,i=t)})),dt().then((t=>{n(1,o=t)})),[i,o,r,async function(){await ft()},async function(){await ht()}]}Object.freeze({__proto__:null,Command:st,Child:ut,open:ct}),Object.freeze({__proto__:null,getName:lt,getVersion:at,getTauriVersion:dt}),Object.freeze({__proto__:null,exit:ft,relaunch:ht});class mt extends V{constructor(t){super(),H(this,t,vt,pt,r,{})}}function gt(){return Y(this,void 0,void 0,(function(){return Q(this,(function(t){return[2,et({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]}))}))}function yt(e){let n,i,o,r;return{c(){n=d("div"),i=d("button"),i.textContent="Get matches",m(i,"class","button"),m(i,"id","cli-matches")},m(t,u){c(t,n,u),s(n,i),o||(r=p(i,"click",e[0]),o=!0)},p:t,i:t,o:t,d(t){t&&a(n),o=!1,r()}}}function _t(t,e,n){let{onMessage:i}=e;return t.$$set=t=>{"onMessage"in t&&n(1,i=t.onMessage)},[function(){gt().then(i).catch(i)},i]}Object.freeze({__proto__:null,getMatches:gt});class bt extends V{constructor(t){super(),H(this,t,_t,yt,r,{onMessage:1})}}function wt(t,e,n){return Y(this,void 0,void 0,(function(){return Q(this,(function(i){switch(i.label){case 0:return[4,et({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})];case 1:return i.sent(),[2]}}))}))}function xt(t){return Y(this,void 0,void 0,(function(){return Q(this,(function(e){return[2,et({__tauriModule:"Event",message:{cmd:"unlisten",eventId:t}})]}))}))}function Mt(t,e){return Y(this,void 0,void 0,(function(){var n=this;return Q(this,(function(i){return[2,et({__tauriModule:"Event",message:{cmd:"listen",event:t,handler:Z(e)}}).then((function(t){return function(){return Y(n,void 0,void 0,(function(){return Q(this,(function(e){return[2,xt(t)]}))}))}}))]}))}))}function kt(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,Mt(t,(function(t){e(t),xt(t.id).catch((function(){}))}))]}))}))}function $t(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,wt(t,void 0,e)]}))}))}function Ct(e){let n,o,r,u,l,f,v,g;return{c(){n=d("div"),o=d("button"),o.textContent="Call Log API",r=h(),u=d("button"),u.textContent="Call Request (async) API",l=h(),f=d("button"),f.textContent="Send event to Rust",m(o,"class","button"),m(o,"id","log"),m(u,"class","button"),m(u,"id","request"),m(f,"class","button"),m(f,"id","event")},m(t,i){c(t,n,i),s(n,o),s(n,r),s(n,u),s(n,l),s(n,f),v||(g=[p(o,"click",e[0]),p(u,"click",e[1]),p(f,"click",e[2])],v=!0)},p:t,i:t,o:t,d(t){t&&a(n),v=!1,i(g)}}}function zt(t,e,n){let i,{onMessage:o}=e;return $((async()=>{i=await Mt("rust-event",o)})),C((()=>{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(){$t("js-event","this is the payload string")},o]}Object.freeze({__proto__:null,listen:Mt,once:kt,emit:$t});class Tt extends V{constructor(t){super(),H(this,t,zt,Ct,r,{onMessage:3})}}function Pt(t){return void 0===t&&(t={}),Y(this,void 0,void 0,(function(){return Q(this,(function(e){return"object"==typeof t&&Object.freeze(t),[2,et({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]}))}))}function St(t){return void 0===t&&(t={}),Y(this,void 0,void 0,(function(){return Q(this,(function(e){return"object"==typeof t&&Object.freeze(t),[2,et({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]}))}))}function Et(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"Fs",message:{cmd:"readBinaryFile",path:t,options:e}})]}))}))}function Ot(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{"onMessage"in t&&n(6,i=t.onMessage)},[o,r,u,s,function(){Pt({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);Et(e).then((function(o){var r,u,s,c;n&&(e.includes(".png")||e.includes(".jpg"))?(r=new Uint8Array(o),u=function(t){i('')},s=new Blob([r],{type:"application/octet-binary"}),(c=new FileReader).onload=function(t){var e=t.target.result;u(e.substr(e.indexOf(",")+1))},c.readAsDataURL(s)):i(t)})).catch(i(t))}})).catch(i)},function(){St({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:Pt,save:St}),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"}(it||(it={})),Object.freeze({__proto__:null,get BaseDirectory(){return it},get Dir(){return it},readTextFile:function(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]}))}))},readBinaryFile:Et,writeFile:function(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return"object"==typeof e&&Object.freeze(e),"object"==typeof t&&Object.freeze(t),[2,et({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:t.contents,options:e}})]}))}))},writeBinaryFile:function(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return"object"==typeof e&&Object.freeze(e),"object"==typeof t&&Object.freeze(t),[2,et({__tauriModule:"Fs",message:{cmd:"writeBinaryFile",path:t.path,contents:Ot(t.contents),options:e}})]}))}))},readDir:Wt,createDir:function(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]}))}))},removeDir:function(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]}))}))},copyFile:function(t,e,n){return void 0===n&&(n={}),Y(this,void 0,void 0,(function(){return Q(this,(function(i){return[2,et({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]}))}))},removeFile:function(t,e){return void 0===e&&(e={}),Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]}))}))},renameFile:function(t,e,n){return void 0===n&&(n={}),Y(this,void 0,void 0,(function(){return Q(this,(function(i){return[2,et({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]}))}))}});class Ft extends V{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)),H(this,t,At,jt,r,{onMessage:6})}}function Lt(t,e,n){const i=t.slice();return i[5]=e[n],i}function Dt(e){let n,i,o=e[5][0]+"";return{c(){n=d("option"),i=f(o),n.__value=e[5][1],n.value=n.__value},m(t,e){c(t,n,e),s(n,i)},p:t,d(t){t&&a(n)}}}function Rt(e){let n,o,r,u,f,g,y,b,w,x=e[1],M=[];for(let t=0;tisNaN(parseInt(t)))).map((t=>[t,it[t]]));return t.$$set=t=>{"onMessage"in t&&n(3,i=t.onMessage)},[o,r,function(){const t=o.match(/\S+\.\S+$/g),e={dir:It()};(t?Et(o,e):Wt(o,e)).then((function(e){if(t)if(o.includes(".png")||o.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){i('')}));else{const t=String.fromCharCode.apply(null,e);i(''),setTimeout((()=>{const e=document.getElementById("file-response");e.value=t,document.getElementById("file-save").addEventListener("click",(function(){writeFile({file:o,contents:e.value},{dir:It()}).catch(i)}))}))}else i(e)})).catch(i)},i,function(){o=this.value,n(0,o)}]}class qt extends V{constructor(t){super(),H(this,t,Ut,Rt,r,{onMessage:3})}}!function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"}(ot||(ot={}));var Nt=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}(),Bt=function(){function t(t){this.id=t}return t.prototype.drop=function(){return Y(this,void 0,void 0,(function(){return Q(this,(function(t){return[2,et({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]}))}))},t.prototype.request=function(t){return Y(this,void 0,void 0,(function(){return Q(this,(function(e){return[2,et({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}})]}))}))},t.prototype.get=function(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,this.request(K({method:"GET",url:t},e))]}))}))},t.prototype.post=function(t,e,n){return Y(this,void 0,void 0,(function(){return Q(this,(function(i){return[2,this.request(K({method:"POST",url:t,body:e},n))]}))}))},t.prototype.put=function(t,e,n){return Y(this,void 0,void 0,(function(){return Q(this,(function(i){return[2,this.request(K({method:"PUT",url:t,body:e},n))]}))}))},t.prototype.patch=function(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,this.request(K({method:"PATCH",url:t},e))]}))}))},t.prototype.delete=function(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,this.request(K({method:"DELETE",url:t},e))]}))}))},t}();function Gt(t){return Y(this,void 0,void 0,(function(){return Q(this,(function(e){return[2,et({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then((function(t){return new Bt(t)}))]}))}))}var Ht=null;function Vt(e){let n,o,r,u,l,f,g,y,x,M,k,$,C,z,T,P,S;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",f=d("option"),f.textContent="PATCH",g=d("option"),g.textContent="DELETE",y=h(),x=d("input"),M=h(),k=d("br"),$=h(),C=d("textarea"),z=h(),T=d("button"),T.textContent="Make request",r.__value="GET",r.value=r.__value,u.__value="POST",u.value=u.__value,l.__value="PUT",l.value=l.__value,f.__value="PATCH",f.value=f.__value,g.__value="DELETE",g.value=g.__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(C,"id","request-body"),m(C,"placeholder","Request body"),m(C,"rows","5"),b(C,"width","100%"),b(C,"margin-right","10px"),b(C,"font-size","12px"),m(T,"class","button"),m(T,"id","make-request")},m(t,i){c(t,n,i),s(n,o),s(o,r),s(o,u),s(o,l),s(o,f),s(o,g),w(o,e[0]),s(n,y),s(n,x),_(x,e[1]),s(n,M),s(n,k),s(n,$),s(n,C),_(C,e[2]),s(n,z),s(n,T),P||(S=[p(o,"change",e[5]),p(x,"input",e[6]),p(C,"input",e[7]),p(n,"submit",v(e[3]))],P=!0)},p(t,[e]){1&e&&w(o,t[0]),2&e&&x.value!==t[1]&&_(x,t[1]),4&e&&_(C,t[2])},i:t,o:t,d(t){t&&a(n),P=!1,i(S)}}}function Jt(t,e,n){let i="GET",o="",r="",{onMessage:u}=e;return t.$$set=t=>{"onMessage"in t&&n(4,u=t.onMessage)},[i,o,r,async function(){const t=await Gt(),e={url:o||""||"",method:i||"GET"||"GET"};r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]")?e.body=Nt.json(JSON.parse(r)):""!==r&&(e.body=Nt.text(r)),t.request(e).then(u).catch(u)},u,function(){i=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(0,i)},function(){o=this.value,n(1,o)},function(){r=this.value,n(2,r)}]}Object.freeze({__proto__:null,getClient:Gt,fetch:function(t,e){var n;return Y(this,void 0,void 0,(function(){return Q(this,(function(i){switch(i.label){case 0:return null!==Ht?[3,2]:[4,Gt()];case 1:Ht=i.sent(),i.label=2;case 2:return[2,Ht.request(K({url:t,method:null!==(n=null==e?void 0:e.method)&&void 0!==n?n:"GET"},e))]}}))}))},Body:Nt,Client:Bt});class Xt extends V{constructor(t){super(),H(this,t,Jt,Vt,r,{onMessage:4})}}function Kt(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){c(t,n,r),i||(o=p(n,"click",e[0]),i=!0)},p:t,i:t,o:t,d(t){t&&a(n),i=!1,o()}}}function Yt(){new Notification("Notification title",{body:"This is the notification body"})}function Qt(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?Yt():i("Permission is "+t)})).catch(i):"granted"===Notification.permission?Yt():i("Permission is denied")},i]}class Zt extends V{constructor(t){super(),H(this,t,Qt,Kt,r,{onMessage:1})}}var te=function(t,e){this.type="Logical",this.width=t,this.height=e},ee=function(){function t(t,e){this.type="Physical",this.width=t,this.height=e}return t.prototype.toLogical=function(t){return new te(this.width/t,this.height/t)},t}(),ne=function(t,e){this.type="Logical",this.x=t,this.y=e},ie=function(){function t(t,e){this.type="Physical",this.x=t,this.y=e}return t.prototype.toLogical=function(t){return new ne(this.x/t,this.y/t)},t}();function oe(){return window.__TAURI__.__windows}var re=["tauri://created","tauri://error"],ue=function(){function t(t){this.label=t,this.listeners=Object.create(null)}return t.prototype.listen=function(t,e){return Y(this,void 0,void 0,(function(){var n=this;return Q(this,(function(i){return this._handleTauriEvent(t,e)?[2,Promise.resolve((function(){var i=n.listeners[t];i.splice(i.indexOf(e),1)}))]:[2,Mt(t,e)]}))}))},t.prototype.once=function(t,e){return Y(this,void 0,void 0,(function(){var n=this;return Q(this,(function(i){return this._handleTauriEvent(t,e)?[2,Promise.resolve((function(){var i=n.listeners[t];i.splice(i.indexOf(e),1)}))]:[2,kt(t,e)]}))}))},t.prototype.emit=function(t,e){return Y(this,void 0,void 0,(function(){var n,i;return Q(this,(function(o){if(re.includes(t)){for(n=0,i=this.listeners[t]||[];n{"onMessage"in t&&n(23,w=t.onMessage)},t.$$.update=()=>{1&t.$$.dirty[0]&&i(M),2&t.$$.dirty[0]&&(k?r():u()),4&t.$$.dirty[0]&&d(C),8&t.$$.dirty[0]&&f(z),16&t.$$.dirty[0]&&y(T),96&t.$$.dirty[0]&&h(new te(P,S)),384&t.$$.dirty[0]&&p(E&&O?new te(E,O):null),1536&t.$$.dirty[0]&&v(W&&j?new te(W,j):null),6144&t.$$.dirty[0]&&m(new ne(A,F))},[M,k,C,z,T,P,S,E,O,W,j,A,F,x,$,L,b,function(){ct(x)},function(){o(L)},function(){l(),setTimeout(a,2e3)},function(){s(),setTimeout(c,2e3)},function(){Pt({multiple:!1}).then(_)},function(){new se(Math.random().toString()).once("tauri://error",(function(){w("Error creating new webview")}))},w,function(){M=this.checked,n(0,M)},function(){k=this.checked,n(1,k)},function(){$=this.checked,n(14,$)},function(){C=this.checked,n(2,C)},function(){z=this.checked,n(3,z)},function(){T=this.checked,n(4,T)},function(){A=g(this.value),n(11,A)},function(){F=g(this.value),n(12,F)},function(){P=g(this.value),n(5,P)},function(){S=g(this.value),n(6,S)},function(){E=g(this.value),n(7,E)},function(){O=g(this.value),n(8,O)},function(){W=g(this.value),n(9,W)},function(){j=g(this.value),n(10,j)},function(){L=this.value,n(15,L)},function(){x=this.value,n(13,x)}]}Object.freeze({__proto__:null,WebviewWindow:se,WebviewWindowHandle:ue,WindowManager:ce,getCurrent:function(){return new ue(window.__TAURI__.__currentWindow.label)},getAll:oe,appWindow:ae,LogicalSize:te,PhysicalSize:ee,LogicalPosition:ne,PhysicalPosition:ie,currentMonitor:function(){return Y(this,void 0,void 0,(function(){return Q(this,(function(t){return[2,et({__tauriModule:"Window",message:{cmd:"currentMonitor"}})]}))}))},primaryMonitor:function(){return Y(this,void 0,void 0,(function(){return Q(this,(function(t){return[2,et({__tauriModule:"Window",message:{cmd:"primaryMonitor"}})]}))}))},availableMonitors:function(){return Y(this,void 0,void 0,(function(){return Q(this,(function(t){return[2,et({__tauriModule:"Window",message:{cmd:"availableMonitors"}})]}))}))}});class fe extends V{constructor(t){var e;super(),document.getElementById("svelte-b76pvm-style")||((e=d("style")).id="svelte-b76pvm-style",e.textContent=".flex-row.svelte-b76pvm.svelte-b76pvm{flex-direction:row}.grow.svelte-b76pvm.svelte-b76pvm{flex-grow:1}.window-controls.svelte-b76pvm input.svelte-b76pvm{width:50px}",s(document.head,e)),H(this,t,de,le,r,{onMessage:23},[-1,-1])}}const he=[];function pe(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:Z(e)}})]}))}))}function ve(t){return Y(this,void 0,void 0,(function(){return Q(this,(function(e){return[2,et({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]}))}))}function me(){return Y(this,void 0,void 0,(function(){return Q(this,(function(t){return[2,et({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]}))}))}function ge(t,e,n){const i=t.slice();return i[9]=e[n],i}function ye(t){let e,n,i,o,r,u,l=t[9]+"";function v(){return t[8](t[9])}return{c(){e=d("div"),n=f(l),i=h(),o=d("button"),o.textContent="Unregister",m(o,"type","button")},m(t,a){c(t,e,a),s(e,n),s(e,i),s(e,o),r||(u=p(o,"click",v),r=!0)},p(e,i){t=e,2&i&&l!==(l=t[9]+"")&&y(n,l)},d(t){t&&a(e),r=!1,u()}}}function _e(e){let n,i,o;return{c(){n=d("button"),n.textContent="Unregister all",m(n,"type","button")},m(t,r){c(t,n,r),i||(o=p(n,"click",e[5]),i=!0)},p:t,d(t){t&&a(n),i=!1,o()}}}function be(e){let n,o,r,u,f,v,g,y,b,w,x=e[1],M=[];for(let t=0;t{const t=o.indexOf(c);-1!==t&&o.splice(t,1),0===o.length&&(i(),i=null)}}}}([]);u(e,c,(t=>i(1,o=t)));let a="CmdOrControl+X";function l(t){const e=t;ve(e).then((()=>{c.update((t=>t.filter((t=>t!==e)))),s(`Shortcut ${e} unregistered`)})).catch(s)}return e.$$set=t=>{"onMessage"in t&&i(6,s=t.onMessage)},[a,o,c,function(){const t=a;pe(t,(()=>{s(`Shortcut ${t} triggered`)})).then((()=>{c.update((e=>[...e,t])),s(`Shortcut ${t} registered successfully`)})).catch(s)},l,function(){me().then((()=>{c.update((()=>[])),s("Unregistered all shortcuts")})).catch(s)},s,function(){a=this.value,i(0,a)},t=>l(t)]}Object.freeze({__proto__:null,register:pe,registerAll:function(t,e){return Y(this,void 0,void 0,(function(){return Q(this,(function(n){return[2,et({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:Z(e)}})]}))}))},isRegistered:function(t){return Y(this,void 0,void 0,(function(){return Q(this,(function(e){return[2,et({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]}))}))},unregister:ve,unregisterAll:me});class xe extends V{constructor(t){super(),H(this,t,we,be,r,{onMessage:6})}}function Me(t){let e,n,o,r,u;return{c(){e=d("input"),n=h(),o=d("button"),o.textContent="Write",m(e,"placeholder","write to stdin"),m(o,"class","button")},m(i,s){c(i,e,s),_(e,t[3]),c(i,n,s),c(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]&&_(e,t[3])},d(t){t&&a(e),t&&a(n),t&&a(o),r=!1,i(u)}}}function ke(e){let n,o,r,u,l,f,v,g,y,w,x,M,k,$,C,z=e[4]&&Me(e);return{c(){n=d("div"),o=d("div"),r=d("input"),u=h(),l=d("button"),l.textContent="Run",f=h(),v=d("button"),v.textContent="Kill",g=h(),z&&z.c(),y=h(),w=d("div"),x=d("input"),M=h(),k=d("input"),m(l,"class","button"),m(v,"class","button"),m(x,"placeholder","Working directory"),m(k,"placeholder","Environment variables"),b(k,"width","300px")},m(t,i){c(t,n,i),s(n,o),s(o,r),_(r,e[0]),s(o,u),s(o,l),s(o,f),s(o,v),s(o,g),z&&z.m(o,null),s(n,y),s(n,w),s(w,x),_(x,e[1]),s(w,M),s(w,k),_(k,e[2]),$||(C=[p(r,"input",e[9]),p(l,"click",e[5]),p(v,"click",e[6]),p(x,"input",e[11]),p(k,"input",e[12])],$=!0)},p(t,[e]){1&e&&r.value!==t[0]&&_(r,t[0]),t[4]?z?z.p(t,e):(z=Me(t),z.c(),z.m(o,null)):z&&(z.d(1),z=null),2&e&&x.value!==t[1]&&_(x,t[1]),4&e&&k.value!==t[2]&&_(k,t[2])},i:t,o:t,d(t){t&&a(n),z&&z.d(),$=!1,i(C)}}}function $e(t,e,n){const i=navigator.userAgent.includes("Windows");let o,r=i?"cmd":"sh",u=i?["/C"]:["-c"],{onMessage:s}=e,c='echo "hello world"',a=null,l="SOMETHING=value ANOTHER=2",d="";return t.$$set=t=>{"onMessage"in t&&n(8,s=t.onMessage)},[c,a,l,d,o,function(){n(4,o=null);const t=new st(r,[...u,c],{cwd:a||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(){c=this.value,n(0,c)},function(){d=this.value,n(3,d)},function(){a=this.value,n(1,a)},function(){l=this.value,n(2,l)}]}class Ce extends V{constructor(t){super(),H(this,t,$e,ke,r,{onMessage:8})}}function ze(){return Y(this,void 0,void 0,(function(){function t(){e&&e(),e=void 0}var e;return Q(this,(function(n){return[2,new Promise((function(n,i){Mt("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})),$t("tauri://update-install").catch((function(e){throw t(),e}))}))]}))}))}function Te(){return Y(this,void 0,void 0,(function(){function t(){e&&e(),e=void 0}var e;return Q(this,(function(n){return[2,new Promise((function(n,i){kt("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})),Mt("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})),$t("tauri://update").catch((function(e){throw t(),e}))}))]}))}))}function Pe(e){let n,o,r,u,l,f;return{c(){n=d("div"),o=d("button"),o.textContent="Check update",r=h(),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){c(t,n,i),s(n,o),s(n,r),s(n,u),l||(f=[p(o,"click",e[0]),p(u,"click",e[1])],l=!0)},p:t,i:t,o:t,d(t){t&&a(n),l=!1,i(f)}}}function Se(t,e,n){let i,{onMessage:o}=e;return $((async()=>{i=await Mt("tauri://update-status",o)})),C((()=>{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 Te();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 ze(),o("Installation complete, restart required."),await ht()}catch(t){o(t)}},o]}Object.freeze({__proto__:null,installUpdate:ze,checkUpdate:Te});class Ee extends V{constructor(t){super(),H(this,t,Se,Pe,r,{onMessage:2})}}function Oe(t,e,n){const i=t.slice();return i[8]=e[n],i}function We(t){let e,n,i,o,r,u,l=t[8].label+"";function v(){return t[6](t[8])}return{c(){e=d("p"),n=f(l),i=h(),m(e,"class",o="nv noselect "+(t[0]===t[8]?"nv_selected":""))},m(t,o){c(t,e,o),s(e,n),s(e,i),r||(u=p(e,"click",v),r=!0)},p(n,i){t=n,1&i&&o!==(o="nv noselect "+(t[0]===t[8]?"nv_selected":""))&&m(e,"class",o)},d(t){t&&a(e),r=!1,u()}}}function je(t){let e,n,o,r,u,v,g,_,w,x,M,k,$,C,z,T,P,S,E,O,W,j,A,F=t[2],L=[];for(let e=0;eDocumentation \n Github \n Source',g=h(),_=d("div"),w=d("div");for(let t=0;t{B(t,1)})),R.r||i(R.c),R=R.p}D?(k=new D(G(t)),q(k.$$.fragment),I(k.$$.fragment,1),N(k,M,null)):k=null}(!W||2&e)&&y(O,t[1])},i(t){W||(k&&I(k.$$.fragment,t),W=!0)},o(t){k&&U(k.$$.fragment,t),W=!1},d(t){t&&a(e),l(L,t),k&&B(k),j=!1,i(A)}}}function Ae(t,e,n){const i=[{label:"Welcome",component:mt},{label:"Messages",component:Tt},{label:"CLI",component:bt},{label:"Dialog",component:Ft},{label:"File system",component:qt},{label:"HTTP",component:Xt},{label:"Notifications",component:Zt},{label:"Window",component:fe},{label:"Shortcuts",component:xe},{label:"Shell",component:Ce},{label:"Updater",component:Ee}];let o=i[0],r=[""];function u(t){n(0,o=t)}return[o,r,i,u,function(t){n(1,r+="string"==typeof t?t:JSON.stringify(t)),n(1,r+="\n")},function(){ct("https://tauri.studio/")},t=>u(t),()=>{n(1,r=[""])}]}return new class extends V{constructor(t){super(),H(this,t,Ae,je,r,{})}}({target:document.body})}(); + ***************************************************************************** */var gt=function(t,e){return(gt=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 yt(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}gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _t=function(){return(_t=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&o[o.length-1])||6!==r[0]&&2!==r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]{n(2,r=t)})),zt().then((t=>{n(0,i=t)})),At().then((t=>{n(1,o=t)})),[i,o,r,async function(){await Wt()},async function(){await Lt()}]}Object.freeze({__proto__:null,Command:St,Child:Pt,open:Tt}),Object.freeze({__proto__:null,getName:jt,getVersion:zt,getTauriVersion:At}),Object.freeze({__proto__:null,exit:Wt,relaunch:Lt});class Rt extends H{constructor(t){super(),G(this,t,Ft,Dt,r,{})}}function It(){return bt(this,void 0,void 0,(function(){return wt(this,(function(t){return[2,kt({__tauriModule:"Cli",message:{cmd:"cliMatches"}})]}))}))}function Ut(e){let n,i,o,r;return{c(){n=d("div"),i=d("button"),i.textContent="Get matches",m(i,"class","button"),m(i,"id","cli-matches")},m(t,u){c(t,n,u),s(n,i),o||(r=p(i,"click",e[0]),o=!0)},p:t,i:t,o:t,d(t){t&&a(n),o=!1,r()}}}function Kt(t,e,n){let{onMessage:i}=e;return t.$$set=t=>{"onMessage"in t&&n(1,i=t.onMessage)},[function(){It().then(i).catch(i)},i]}Object.freeze({__proto__:null,getMatches:It});class Nt extends H{constructor(t){super(),G(this,t,Kt,Ut,r,{onMessage:1})}}function qt(t,e,n){return bt(this,void 0,void 0,(function(){return wt(this,(function(i){switch(i.label){case 0:return[4,kt({__tauriModule:"Event",message:{cmd:"emit",event:t,windowLabel:e,payload:n}})];case 1:return i.sent(),[2]}}))}))}function Bt(t){return bt(this,void 0,void 0,(function(){return wt(this,(function(e){return[2,kt({__tauriModule:"Event",message:{cmd:"unlisten",eventId:t}})]}))}))}function Gt(t,e){return bt(this,void 0,void 0,(function(){var n=this;return wt(this,(function(i){return[2,kt({__tauriModule:"Event",message:{cmd:"listen",event:t,handler:xt(e)}}).then((function(t){return function(){return bt(n,void 0,void 0,(function(){return wt(this,(function(e){return[2,Bt(t)]}))}))}}))]}))}))}function Ht(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,Gt(t,(function(t){e(t),Bt(t.id).catch((function(){}))}))]}))}))}function Vt(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,qt(t,void 0,e)]}))}))}function Jt(e){let n,o,r,u,l,f,v,g;return{c(){n=d("div"),o=d("button"),o.textContent="Call Log API",r=h(),u=d("button"),u.textContent="Call Request (async) API",l=h(),f=d("button"),f.textContent="Send event to Rust",m(o,"class","button"),m(o,"id","log"),m(u,"class","button"),m(u,"id","request"),m(f,"class","button"),m(f,"id","event")},m(t,i){c(t,n,i),s(n,o),s(n,r),s(n,u),s(n,l),s(n,f),v||(g=[p(o,"click",e[0]),p(u,"click",e[1]),p(f,"click",e[2])],v=!0)},p:t,i:t,o:t,d(t){t&&a(n),v=!1,i(g)}}}function Xt(t,e,n){let i,{onMessage:o}=e;return $((async()=>{i=await Gt("rust-event",o)})),C((()=>{i&&i()})),t.$$set=t=>{"onMessage"in t&&n(3,o=t.onMessage)},[function(){Mt("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})},function(){Mt("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(o).catch(o)},function(){Vt("js-event","this is the payload string")},o]}Object.freeze({__proto__:null,listen:Gt,once:Ht,emit:Vt});class Yt extends H{constructor(t){super(),G(this,t,Xt,Jt,r,{onMessage:3})}}function Qt(t){return void 0===t&&(t={}),bt(this,void 0,void 0,(function(){return wt(this,(function(e){return"object"==typeof t&&Object.freeze(t),[2,kt({__tauriModule:"Dialog",message:{cmd:"openDialog",options:t}})]}))}))}function Zt(t){return void 0===t&&(t={}),bt(this,void 0,void 0,(function(){return wt(this,(function(e){return"object"==typeof t&&Object.freeze(t),[2,kt({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:t}})]}))}))}function te(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"Fs",message:{cmd:"readBinaryFile",path:t,options:e}})]}))}))}function ee(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{"onMessage"in t&&n(6,i=t.onMessage)},[o,r,u,s,function(){Qt({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);te(e).then((function(o){var r,u,s,c;n&&(e.includes(".png")||e.includes(".jpg"))?(r=new Uint8Array(o),u=function(t){i('')},s=new Blob([r],{type:"application/octet-binary"}),(c=new FileReader).onload=function(t){var e=t.target.result;u(e.substr(e.indexOf(",")+1))},c.readAsDataURL(s)):i(t)})).catch(i(t))}})).catch(i)},function(){Zt({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:Qt,save:Zt}),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"}(Ct||(Ct={})),Object.freeze({__proto__:null,get BaseDirectory(){return Ct},get Dir(){return Ct},readTextFile:function(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"Fs",message:{cmd:"readTextFile",path:t,options:e}})]}))}))},readBinaryFile:te,writeFile:function(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return"object"==typeof e&&Object.freeze(e),"object"==typeof t&&Object.freeze(t),[2,kt({__tauriModule:"Fs",message:{cmd:"writeFile",path:t.path,contents:t.contents,options:e}})]}))}))},writeBinaryFile:function(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return"object"==typeof e&&Object.freeze(e),"object"==typeof t&&Object.freeze(t),[2,kt({__tauriModule:"Fs",message:{cmd:"writeBinaryFile",path:t.path,contents:ee(t.contents),options:e}})]}))}))},readDir:ne,createDir:function(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"Fs",message:{cmd:"createDir",path:t,options:e}})]}))}))},removeDir:function(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"Fs",message:{cmd:"removeDir",path:t,options:e}})]}))}))},copyFile:function(t,e,n){return void 0===n&&(n={}),bt(this,void 0,void 0,(function(){return wt(this,(function(i){return[2,kt({__tauriModule:"Fs",message:{cmd:"copyFile",source:t,destination:e,options:n}})]}))}))},removeFile:function(t,e){return void 0===e&&(e={}),bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"Fs",message:{cmd:"removeFile",path:t,options:e}})]}))}))},renameFile:function(t,e,n){return void 0===n&&(n={}),bt(this,void 0,void 0,(function(){return wt(this,(function(i){return[2,kt({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:t,newPath:e,options:n}})]}))}))}});class re extends H{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)),G(this,t,oe,ie,r,{onMessage:6})}}function ue(t,e,n){const i=t.slice();return i[5]=e[n],i}function se(e){let n,i,o=e[5][0]+"";return{c(){n=d("option"),i=f(o),n.__value=e[5][1],n.value=n.__value},m(t,e){c(t,n,e),s(n,i)},p:t,d(t){t&&a(n)}}}function ce(e){let n,o,r,u,f,g,y,b,w,x=e[1],M=[];for(let t=0;tisNaN(parseInt(t)))).map((t=>[t,Ct[t]]));return t.$$set=t=>{"onMessage"in t&&n(3,i=t.onMessage)},[o,r,function(){const t=o.match(/\S+\.\S+$/g),e={dir:ae()};(t?te(o,e):ne(o,e)).then((function(e){if(t)if(o.includes(".png")||o.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){i('')}));else{const t=String.fromCharCode.apply(null,e);i(''),setTimeout((()=>{const e=document.getElementById("file-response");e.value=t,document.getElementById("file-save").addEventListener("click",(function(){writeFile({file:o,contents:e.value},{dir:ae()}).catch(i)}))}))}else i(e)})).catch(i)},i,function(){o=this.value,n(0,o)}]}class de extends H{constructor(t){super(),G(this,t,le,ce,r,{onMessage:3})}}!function(t){t[t.JSON=1]="JSON",t[t.Text=2]="Text",t[t.Binary=3]="Binary"}(Ot||(Ot={}));var fe=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}(),he=function(){function t(t){this.id=t}return t.prototype.drop=function(){return bt(this,void 0,void 0,(function(){return wt(this,(function(t){return[2,kt({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})]}))}))},t.prototype.request=function(t){return bt(this,void 0,void 0,(function(){return wt(this,(function(e){return[2,kt({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:t}})]}))}))},t.prototype.get=function(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,this.request(_t({method:"GET",url:t},e))]}))}))},t.prototype.post=function(t,e,n){return bt(this,void 0,void 0,(function(){return wt(this,(function(i){return[2,this.request(_t({method:"POST",url:t,body:e},n))]}))}))},t.prototype.put=function(t,e,n){return bt(this,void 0,void 0,(function(){return wt(this,(function(i){return[2,this.request(_t({method:"PUT",url:t,body:e},n))]}))}))},t.prototype.patch=function(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,this.request(_t({method:"PATCH",url:t},e))]}))}))},t.prototype.delete=function(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,this.request(_t({method:"DELETE",url:t},e))]}))}))},t}();function pe(t){return bt(this,void 0,void 0,(function(){return wt(this,(function(e){return[2,kt({__tauriModule:"Http",message:{cmd:"createClient",options:t}}).then((function(t){return new he(t)}))]}))}))}var ve=null;function me(e){let n,o,r,u,l,f,g,y,x,M,k,$,C,O,E,P,S;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",f=d("option"),f.textContent="PATCH",g=d("option"),g.textContent="DELETE",y=h(),x=d("input"),M=h(),k=d("br"),$=h(),C=d("textarea"),O=h(),E=d("button"),E.textContent="Make request",r.__value="GET",r.value=r.__value,u.__value="POST",u.value=u.__value,l.__value="PUT",l.value=l.__value,f.__value="PATCH",f.value=f.__value,g.__value="DELETE",g.value=g.__value,m(o,"class","button"),m(o,"id","request-method"),void 0===e[0]&&j((()=>e[5].call(o))),m(x,"id","request-url"),m(x,"placeholder","Type the request URL..."),m(C,"id","request-body"),m(C,"placeholder","Request body"),m(C,"rows","5"),b(C,"width","100%"),b(C,"margin-right","10px"),b(C,"font-size","12px"),m(E,"class","button"),m(E,"id","make-request")},m(t,i){c(t,n,i),s(n,o),s(o,r),s(o,u),s(o,l),s(o,f),s(o,g),w(o,e[0]),s(n,y),s(n,x),_(x,e[1]),s(n,M),s(n,k),s(n,$),s(n,C),_(C,e[2]),s(n,O),s(n,E),P||(S=[p(o,"change",e[5]),p(x,"input",e[6]),p(C,"input",e[7]),p(n,"submit",v(e[3]))],P=!0)},p(t,[e]){1&e&&w(o,t[0]),2&e&&x.value!==t[1]&&_(x,t[1]),4&e&&_(C,t[2])},i:t,o:t,d(t){t&&a(n),P=!1,i(S)}}}function ge(t,e,n){let i="GET",o="",r="",{onMessage:u}=e;return t.$$set=t=>{"onMessage"in t&&n(4,u=t.onMessage)},[i,o,r,async function(){const t=await pe(),e={url:o||""||"",method:i||"GET"||"GET"};r.startsWith("{")&&r.endsWith("}")||r.startsWith("[")&&r.endsWith("]")?e.body=fe.json(JSON.parse(r)):""!==r&&(e.body=fe.text(r)),t.request(e).then(u).catch(u)},u,function(){i=function(t){const e=t.querySelector(":checked")||t.options[0];return e&&e.__value}(this),n(0,i)},function(){o=this.value,n(1,o)},function(){r=this.value,n(2,r)}]}Object.freeze({__proto__:null,getClient:pe,fetch:function(t,e){var n;return bt(this,void 0,void 0,(function(){return wt(this,(function(i){switch(i.label){case 0:return null!==ve?[3,2]:[4,pe()];case 1:ve=i.sent(),i.label=2;case 2:return[2,ve.request(_t({url:t,method:null!==(n=null==e?void 0:e.method)&&void 0!==n?n:"GET"},e))]}}))}))},Body:fe,Client:he});class ye extends H{constructor(t){super(),G(this,t,ge,me,r,{onMessage:4})}}function _e(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){c(t,n,r),i||(o=p(n,"click",e[0]),i=!0)},p:t,i:t,o:t,d(t){t&&a(n),i=!1,o()}}}function be(){new Notification("Notification title",{body:"This is the notification body"})}function we(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?be():i("Permission is "+t)})).catch(i):"granted"===Notification.permission?be():i("Permission is denied")},i]}class xe extends H{constructor(t){super(),G(this,t,we,_e,r,{onMessage:1})}}var Me=function(t,e){this.type="Logical",this.width=t,this.height=e},ke=function(){function t(t,e){this.type="Physical",this.width=t,this.height=e}return t.prototype.toLogical=function(t){return new Me(this.width/t,this.height/t)},t}(),$e=function(t,e){this.type="Logical",this.x=t,this.y=e},Ce=function(){function t(t,e){this.type="Physical",this.x=t,this.y=e}return t.prototype.toLogical=function(t){return new $e(this.x/t,this.y/t)},t}();function Oe(){return window.__TAURI__.__windows}var Ee=["tauri://created","tauri://error"],Pe=function(){function t(t){this.label=t,this.listeners=Object.create(null)}return t.prototype.listen=function(t,e){return bt(this,void 0,void 0,(function(){var n=this;return wt(this,(function(i){return this._handleTauriEvent(t,e)?[2,Promise.resolve((function(){var i=n.listeners[t];i.splice(i.indexOf(e),1)}))]:[2,Gt(t,e)]}))}))},t.prototype.once=function(t,e){return bt(this,void 0,void 0,(function(){var n=this;return wt(this,(function(i){return this._handleTauriEvent(t,e)?[2,Promise.resolve((function(){var i=n.listeners[t];i.splice(i.indexOf(e),1)}))]:[2,Ht(t,e)]}))}))},t.prototype.emit=function(t,e){return bt(this,void 0,void 0,(function(){var n,i;return wt(this,(function(o){if(Ee.includes(t)){for(n=0,i=this.listeners[t]||[];n{"onMessage"in t&&n(23,w=t.onMessage)},t.$$.update=()=>{1&t.$$.dirty[0]&&i(M),2&t.$$.dirty[0]&&(k?r():u()),4&t.$$.dirty[0]&&d(C),8&t.$$.dirty[0]&&f(O),16&t.$$.dirty[0]&&y(E),96&t.$$.dirty[0]&&h(new Me(P,S)),384&t.$$.dirty[0]&&p(T&&z?new Me(T,z):null),1536&t.$$.dirty[0]&&v(j&&A?new Me(j,A):null),6144&t.$$.dirty[0]&&m(new $e(W,L))},[M,k,C,O,E,P,S,T,z,j,A,W,L,x,$,D,b,function(){Tt(x)},function(){o(D)},function(){l(),setTimeout(a,2e3)},function(){s(),setTimeout(c,2e3)},function(){Qt({multiple:!1}).then(_)},function(){new Se(Math.random().toString()).once("tauri://error",(function(){w("Error creating new webview")}))},w,function(){M=this.checked,n(0,M)},function(){k=this.checked,n(1,k)},function(){$=this.checked,n(14,$)},function(){C=this.checked,n(2,C)},function(){O=this.checked,n(3,O)},function(){E=this.checked,n(4,E)},function(){W=g(this.value),n(11,W)},function(){L=g(this.value),n(12,L)},function(){P=g(this.value),n(5,P)},function(){S=g(this.value),n(6,S)},function(){T=g(this.value),n(7,T)},function(){z=g(this.value),n(8,z)},function(){j=g(this.value),n(9,j)},function(){A=g(this.value),n(10,A)},function(){D=this.value,n(15,D)},function(){x=this.value,n(13,x)}]}Object.freeze({__proto__:null,WebviewWindow:Se,WebviewWindowHandle:Pe,WindowManager:Te,getCurrent:function(){return new Pe(window.__TAURI__.__currentWindow.label)},getAll:Oe,appWindow:ze,LogicalSize:Me,PhysicalSize:ke,LogicalPosition:$e,PhysicalPosition:Ce,currentMonitor:function(){return bt(this,void 0,void 0,(function(){return wt(this,(function(t){return[2,kt({__tauriModule:"Window",message:{cmd:"currentMonitor"}})]}))}))},primaryMonitor:function(){return bt(this,void 0,void 0,(function(){return wt(this,(function(t){return[2,kt({__tauriModule:"Window",message:{cmd:"primaryMonitor"}})]}))}))},availableMonitors:function(){return bt(this,void 0,void 0,(function(){return wt(this,(function(t){return[2,kt({__tauriModule:"Window",message:{cmd:"availableMonitors"}})]}))}))}});class We extends H{constructor(t){var e;super(),document.getElementById("svelte-b76pvm-style")||((e=d("style")).id="svelte-b76pvm-style",e.textContent=".flex-row.svelte-b76pvm.svelte-b76pvm{flex-direction:row}.grow.svelte-b76pvm.svelte-b76pvm{flex-grow:1}.window-controls.svelte-b76pvm input.svelte-b76pvm{width:50px}",s(document.head,e)),G(this,t,Ae,je,r,{onMessage:23},[-1,-1])}}const Le=[];function De(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:t,handler:xt(e)}})]}))}))}function Fe(t){return bt(this,void 0,void 0,(function(){return wt(this,(function(e){return[2,kt({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:t}})]}))}))}function Re(){return bt(this,void 0,void 0,(function(){return wt(this,(function(t){return[2,kt({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})]}))}))}function Ie(t,e,n){const i=t.slice();return i[9]=e[n],i}function Ue(t){let e,n,i,o,r,u,l=t[9]+"";function v(){return t[8](t[9])}return{c(){e=d("div"),n=f(l),i=h(),o=d("button"),o.textContent="Unregister",m(o,"type","button")},m(t,a){c(t,e,a),s(e,n),s(e,i),s(e,o),r||(u=p(o,"click",v),r=!0)},p(e,i){t=e,2&i&&l!==(l=t[9]+"")&&y(n,l)},d(t){t&&a(e),r=!1,u()}}}function Ke(e){let n,i,o;return{c(){n=d("button"),n.textContent="Unregister all",m(n,"type","button")},m(t,r){c(t,n,r),i||(o=p(n,"click",e[5]),i=!0)},p:t,d(t){t&&a(n),i=!1,o()}}}function Ne(e){let n,o,r,u,f,v,g,y,b,w,x=e[1],M=[];for(let t=0;t{const t=o.indexOf(c);-1!==t&&o.splice(t,1),0===o.length&&(i(),i=null)}}}}([]);u(e,c,(t=>i(1,o=t)));let a="CmdOrControl+X";function l(t){const e=t;Fe(e).then((()=>{c.update((t=>t.filter((t=>t!==e)))),s(`Shortcut ${e} unregistered`)})).catch(s)}return e.$$set=t=>{"onMessage"in t&&i(6,s=t.onMessage)},[a,o,c,function(){const t=a;De(t,(()=>{s(`Shortcut ${t} triggered`)})).then((()=>{c.update((e=>[...e,t])),s(`Shortcut ${t} registered successfully`)})).catch(s)},l,function(){Re().then((()=>{c.update((()=>[])),s("Unregistered all shortcuts")})).catch(s)},s,function(){a=this.value,i(0,a)},t=>l(t)]}Object.freeze({__proto__:null,register:De,registerAll:function(t,e){return bt(this,void 0,void 0,(function(){return wt(this,(function(n){return[2,kt({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:t,handler:xt(e)}})]}))}))},isRegistered:function(t){return bt(this,void 0,void 0,(function(){return wt(this,(function(e){return[2,kt({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:t}})]}))}))},unregister:Fe,unregisterAll:Re});class Be extends H{constructor(t){super(),G(this,t,qe,Ne,r,{onMessage:6})}}function Ge(t){let e,n,o,r,u;return{c(){e=d("input"),n=h(),o=d("button"),o.textContent="Write",m(e,"placeholder","write to stdin"),m(o,"class","button")},m(i,s){c(i,e,s),_(e,t[3]),c(i,n,s),c(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]&&_(e,t[3])},d(t){t&&a(e),t&&a(n),t&&a(o),r=!1,i(u)}}}function He(e){let n,o,r,u,l,f,v,g,y,w,x,M,k,$,C,O=e[4]&&Ge(e);return{c(){n=d("div"),o=d("div"),r=d("input"),u=h(),l=d("button"),l.textContent="Run",f=h(),v=d("button"),v.textContent="Kill",g=h(),O&&O.c(),y=h(),w=d("div"),x=d("input"),M=h(),k=d("input"),m(l,"class","button"),m(v,"class","button"),m(x,"placeholder","Working directory"),m(k,"placeholder","Environment variables"),b(k,"width","300px")},m(t,i){c(t,n,i),s(n,o),s(o,r),_(r,e[0]),s(o,u),s(o,l),s(o,f),s(o,v),s(o,g),O&&O.m(o,null),s(n,y),s(n,w),s(w,x),_(x,e[1]),s(w,M),s(w,k),_(k,e[2]),$||(C=[p(r,"input",e[9]),p(l,"click",e[5]),p(v,"click",e[6]),p(x,"input",e[11]),p(k,"input",e[12])],$=!0)},p(t,[e]){1&e&&r.value!==t[0]&&_(r,t[0]),t[4]?O?O.p(t,e):(O=Ge(t),O.c(),O.m(o,null)):O&&(O.d(1),O=null),2&e&&x.value!==t[1]&&_(x,t[1]),4&e&&k.value!==t[2]&&_(k,t[2])},i:t,o:t,d(t){t&&a(n),O&&O.d(),$=!1,i(C)}}}function Ve(t,e,n){const i=navigator.userAgent.includes("Windows");let o,r=i?"cmd":"sh",u=i?["/C"]:["-c"],{onMessage:s}=e,c='echo "hello world"',a=null,l="SOMETHING=value ANOTHER=2",d="";return t.$$set=t=>{"onMessage"in t&&n(8,s=t.onMessage)},[c,a,l,d,o,function(){n(4,o=null);const t=new St(r,[...u,c],{cwd:a||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(){c=this.value,n(0,c)},function(){d=this.value,n(3,d)},function(){a=this.value,n(1,a)},function(){l=this.value,n(2,l)}]}class Je extends H{constructor(t){super(),G(this,t,Ve,He,r,{onMessage:8})}}function Xe(){return bt(this,void 0,void 0,(function(){function t(){e&&e(),e=void 0}var e;return wt(this,(function(n){return[2,new Promise((function(n,i){Gt("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})),Vt("tauri://update-install").catch((function(e){throw t(),e}))}))]}))}))}function Ye(){return bt(this,void 0,void 0,(function(){function t(){e&&e(),e=void 0}var e;return wt(this,(function(n){return[2,new Promise((function(n,i){Ht("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})),Gt("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})),Vt("tauri://update").catch((function(e){throw t(),e}))}))]}))}))}function Qe(e){let n,o,r,u,l,f;return{c(){n=d("div"),o=d("button"),o.textContent="Check update",r=h(),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){c(t,n,i),s(n,o),s(n,r),s(n,u),l||(f=[p(o,"click",e[0]),p(u,"click",e[1])],l=!0)},p:t,i:t,o:t,d(t){t&&a(n),l=!1,i(f)}}}function Ze(t,e,n){let i,{onMessage:o}=e;return $((async()=>{i=await Gt("tauri://update-status",o)})),C((()=>{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 Ye();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 Xe(),o("Installation complete, restart required."),await Lt()}catch(t){o(t)}},o]}Object.freeze({__proto__:null,installUpdate:Xe,checkUpdate:Ye});class tn extends H{constructor(t){super(),G(this,t,Ze,Qe,r,{onMessage:2})}}function en(t,e,n){const i=t.slice();return i[8]=e[n],i}function nn(t){let e,n,i,o,r,u,l=t[8].label+"";function v(){return t[6](t[8])}return{c(){e=d("p"),n=f(l),i=h(),m(e,"class",o="nv noselect "+(t[0]===t[8]?"nv_selected":""))},m(t,o){c(t,e,o),s(e,n),s(e,i),r||(u=p(e,"click",v),r=!0)},p(n,i){t=n,1&i&&o!==(o="nv noselect "+(t[0]===t[8]?"nv_selected":""))&&m(e,"class",o)},d(t){t&&a(e),r=!1,u()}}}function on(t){let e,n,o,r,u,v,g,_,w,x,M,k,$,C,O,E,P,S,T,z,j,A,W,L=t[2],D=[];for(let e=0;eDocumentation \n Github \n Source',g=h(),_=d("div"),w=d("div");for(let t=0;t{q(t,1)})),R.r||i(R.c),R=R.p}F?(k=new F(B(t)),K(k.$$.fragment),I(k.$$.fragment,1),N(k,M,null)):k=null}(!j||2&e)&&y(z,t[1])},i(t){j||(k&&I(k.$$.fragment,t),j=!0)},o(t){k&&U(k.$$.fragment,t),j=!1},d(t){t&&a(e),l(D,t),k&&q(k),A=!1,i(W)}}}function rn(t,e,n){$((()=>{ht("ctrl+b",(()=>{Mt("menu_toggle")}))}));const i=[{label:"Welcome",component:Rt},{label:"Messages",component:Yt},{label:"CLI",component:Nt},{label:"Dialog",component:re},{label:"File system",component:de},{label:"HTTP",component:ye},{label:"Notifications",component:xe},{label:"Window",component:We},{label:"Shortcuts",component:Be},{label:"Shell",component:Je},{label:"Updater",component:tn}];let o=i[0],r=[""];function u(t){n(0,o=t)}return[o,r,i,u,function(t){n(1,r+="string"==typeof t?t:JSON.stringify(t)),n(1,r+="\n")},function(){Tt("https://tauri.studio/")},t=>u(t),()=>{n(1,r=[""])}]}return new class extends H{constructor(t){super(),G(this,t,rn,on,r,{})}}({target:document.body})}(); //# sourceMappingURL=bundle.js.map diff --git a/examples/api/public/build/bundle.js.map b/examples/api/public/build/bundle.js.map index 7dac72431..0e0a37b9c 100644 --- a/examples/api/public/build/bundle.js.map +++ b/examples/api/public/build/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../../../tooling/api/dist/tauri-b1e0a757.js","../../../../tooling/api/dist/tauri-6780f362.js","../../../../tooling/api/dist/shell-34b270e6.js","../../../../tooling/api/dist/fs-70af0f1b.js","../../../../tooling/api/dist/http-4b44e978.js","../../../../tooling/api/dist/app-03bcb4ae.js","../../../../tooling/api/dist/process-b7d96de1.js","../../src/components/Welcome.svelte","../../../../tooling/api/dist/cli-d253ec1a.js","../../src/components/Cli.svelte","../../../../tooling/api/dist/event-dd8cd2a2.js","../../src/components/Communication.svelte","../../../../tooling/api/dist/dialog-74f65622.js","../../src/components/Dialog.svelte","../../src/components/FileSystem.svelte","../../src/components/Http.svelte","../../src/components/Notifications.svelte","../../../../tooling/api/dist/window-4ced7716.js","../../src/components/Window.svelte","../../node_modules/svelte/store/index.mjs","../../../../tooling/api/dist/globalShortcut-751fa2a4.js","../../src/components/Shortcuts.svelte","../../src/components/Shell.svelte","../../../../tooling/api/dist/updater-41b8e007.js","../../src/components/Updater.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.35.0' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","/*! *****************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\nvar t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(n,e)};function n(n,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Class extends value \"+String(e)+\" is not a constructor or null\");function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var e=function(){return(e=Object.assign||function(t){for(var n,e=1,r=arguments.length;e0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]\n import { getName, getVersion, getTauriVersion } from \"@tauri-apps/api/app\";\n import { relaunch, exit } from \"@tauri-apps/api/process\";\n let version = 0.0;\n let tauriVersion = 0.0;\n let appName = 'Unknown';\n\n getName().then(n => {appName = n});\n getVersion().then(v => {version = v});\n getTauriVersion().then(v => {tauriVersion = v});\n\n async function closeApp() {\n await exit();\n }\n\n async function relaunchApp() {\n await relaunch();\n }\n\n

Welcome

\n

\n 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.\n

\n\n

Current App version: {version}

\n

Current Tauri version: {tauriVersion}

\n

Current App name: {appName}

\n\n\n\n","import{_ as t,a as r}from\"./tauri-b1e0a757.js\";import{i as e}from\"./tauri-6780f362.js\";function i(){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,e({__tauriModule:\"Cli\",message:{cmd:\"cliMatches\"}})]}))}))}var a=Object.freeze({__proto__:null,getMatches:i});export{a as c,i as g};\n","\n\n
\n \n
\n","import{_ as t,a as n,t as i}from\"./tauri-b1e0a757.js\";import{i as e}from\"./tauri-6780f362.js\";function r(i,r,u){return t(this,void 0,void 0,(function(){return n(this,(function(t){switch(t.label){case 0:return[4,e({__tauriModule:\"Event\",message:{cmd:\"emit\",event:i,windowLabel:r,payload:u}})];case 1:return t.sent(),[2]}}))}))}function u(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,e({__tauriModule:\"Event\",message:{cmd:\"unlisten\",eventId:i}})]}))}))}function o(r,o){return t(this,void 0,void 0,(function(){var s=this;return n(this,(function(c){return[2,e({__tauriModule:\"Event\",message:{cmd:\"listen\",event:r,handler:i(o)}}).then((function(i){return function(){return t(s,void 0,void 0,(function(){return n(this,(function(t){return[2,u(i)]}))}))}}))]}))}))}function s(i,e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,o(i,(function(t){e(t),u(t.id).catch((function(){}))}))]}))}))}function c(i,e){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,r(i,void 0,e)]}))}))}var a=Object.freeze({__proto__:null,listen:o,once:s,emit:c});export{a,r as b,c as e,o as l,s as o};\n","\n\n
\n \n \n \n
\n","import{_ as o,a as e}from\"./tauri-b1e0a757.js\";import{i as t}from\"./tauri-6780f362.js\";function i(i){return void 0===i&&(i={}),o(this,void 0,void 0,(function(){return e(this,(function(o){return\"object\"==typeof i&&Object.freeze(i),[2,t({__tauriModule:\"Dialog\",message:{cmd:\"openDialog\",options:i}})]}))}))}function r(i){return void 0===i&&(i={}),o(this,void 0,void 0,(function(){return e(this,(function(o){return\"object\"==typeof i&&Object.freeze(i),[2,t({__tauriModule:\"Dialog\",message:{cmd:\"saveDialog\",options:i}})]}))}))}var n=Object.freeze({__proto__:null,open:i,save:r});export{n as d,i as o,r as s};\n","\n\n
\n \n \n
\n \n \n
\n
\n \n \n
\n\n
\n\n\n","\n\n
\n \n \n \n\n","\n\n
\n \n \n
\n \n \n\n","\n\n\n","import{_ as t,a as i,d as n,b as e}from\"./tauri-b1e0a757.js\";import{i as o}from\"./tauri-6780f362.js\";import{l as r,o as u,b as s}from\"./event-dd8cd2a2.js\";var a=function(t,i){this.type=\"Logical\",this.width=t,this.height=i},c=function(){function t(t,i){this.type=\"Physical\",this.width=t,this.height=i}return t.prototype.toLogical=function(t){return new a(this.width/t,this.height/t)},t}(),d=function(t,i){this.type=\"Logical\",this.x=t,this.y=i},h=function(){function t(t,i){this.type=\"Physical\",this.x=t,this.y=i}return t.prototype.toLogical=function(t){return new d(this.x/t,this.y/t)},t}();function f(){return new m(window.__TAURI__.__currentWindow.label)}function l(){return window.__TAURI__.__windows}var p=[\"tauri://created\",\"tauri://error\"],m=function(){function n(t){this.label=t,this.listeners=Object.create(null)}return n.prototype.listen=function(n,e){return t(this,void 0,void 0,(function(){var t=this;return i(this,(function(i){return this._handleTauriEvent(n,e)?[2,Promise.resolve((function(){var i=t.listeners[n];i.splice(i.indexOf(e),1)}))]:[2,r(n,e)]}))}))},n.prototype.once=function(n,e){return t(this,void 0,void 0,(function(){var t=this;return i(this,(function(i){return this._handleTauriEvent(n,e)?[2,Promise.resolve((function(){var i=t.listeners[n];i.splice(i.indexOf(e),1)}))]:[2,u(n,e)]}))}))},n.prototype.emit=function(n,e){return t(this,void 0,void 0,(function(){var t,o;return i(this,(function(i){if(p.includes(n)){for(t=0,o=this.listeners[n]||[];t\n import { appWindow, WebviewWindow, LogicalSize, LogicalPosition } from \"@tauri-apps/api/window\";\n import { open as openDialog } from \"@tauri-apps/api/dialog\";\n import { open } from \"@tauri-apps/api/shell\";\n\n const {\n setResizable,\n setTitle,\n maximize,\n unmaximize,\n minimize,\n unminimize,\n show,\n hide,\n setDecorations,\n setAlwaysOnTop,\n setSize,\n setMinSize,\n setMaxSize,\n setPosition,\n setFullscreen,\n setIcon,\n center,\n } = appWindow;\n\n export let onMessage;\n\n let urlValue = \"https://tauri.studio\";\n let resizable = true;\n let maximized = false;\n let transparent = false;\n let decorations = true;\n let alwaysOnTop = false;\n let fullscreen = false;\n let width = 900;\n let height = 700;\n let minWidth = 600;\n let minHeight = 600;\n let maxWidth = null;\n let maxHeight = null;\n let x = 100;\n let y = 100;\n\n let windowTitle = \"Awesome Tauri Example!\";\n\n function openUrl() {\n open(urlValue);\n }\n\n function setTitle_() {\n setTitle(windowTitle);\n }\n\n function hide_() {\n hide();\n setTimeout(show, 2000);\n }\n\n function minimize_() {\n minimize();\n setTimeout(unminimize, 2000);\n }\n\n function getIcon() {\n openDialog({\n multiple: false,\n }).then(setIcon);\n }\n\n function createWindow() {\n const webview = new WebviewWindow(Math.random().toString());\n webview.once('tauri://error', function () {\n onMessage(\"Error creating new webview\")\n })\n }\n\n $: setResizable(resizable);\n $: maximized ? maximize() : unmaximize();\n $: setDecorations(decorations);\n $: setAlwaysOnTop(alwaysOnTop);\n $: setFullscreen(fullscreen);\n\n $: setSize(new LogicalSize(width, height));\n $: minWidth && minHeight ? setMinSize(new LogicalSize(minWidth, minHeight)) : setMinSize(null);\n $: maxWidth && maxHeight ? setMaxSize(new LogicalSize(maxWidth, maxHeight)) : setMaxSize(null);\n $: setPosition(new LogicalPosition(x, y));\n\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n X\n \n
\n
\n Y\n \n
\n
\n\n
\n
\n Width\n \n
\n
\n Height\n \n
\n
\n\n
\n
\n Min width\n \n
\n
\n Min height\n \n
\n
\n\n
\n
\n Max width\n \n
\n
\n Max height\n \n
\n
\n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n\n\n\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = [];\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (let i = 0; i < subscribers.length; i += 1) {\n const s = subscribers[i];\n s[1]();\n subscriber_queue.push(s, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.push(subscriber);\n if (subscribers.length === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n const index = subscribers.indexOf(subscriber);\n if (index !== -1) {\n subscribers.splice(index, 1);\n }\n if (subscribers.length === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import{_ as t,a as r,t as e}from\"./tauri-b1e0a757.js\";import{i}from\"./tauri-6780f362.js\";function u(u,n){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"register\",shortcut:u,handler:e(n)}})]}))}))}function n(u,n){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"registerAll\",shortcuts:u,handler:e(n)}})]}))}))}function o(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"isRegistered\",shortcut:e}})]}))}))}function s(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregister\",shortcut:e}})]}))}))}function a(){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregisterAll\"}})]}))}))}var c=Object.freeze({__proto__:null,register:u,registerAll:n,isRegistered:o,unregister:s,unregisterAll:a});export{n as a,a as b,c as g,o as i,u as r,s as u};\n","\n\n
\n
\n \n \n
\n
\n {#each $shortcuts as savedShortcut}\n
\n {savedShortcut}\n
\n {/each}\n {#if $shortcuts.length}\n \n {/if}\n
\n
\n","\n\n
\n
\n \n \n \n {#if child}\n \n \n {/if}\n
\n
\n \n \n
\n
\n","import{_ as t,a as n}from\"./tauri-b1e0a757.js\";import{l as a,e as o,o as r}from\"./event-dd8cd2a2.js\";function i(){return t(this,void 0,void 0,(function(){function t(){r&&r(),r=void 0}var r;return n(this,(function(n){return[2,new Promise((function(n,i){a(\"tauri://update-status\",(function(a){var o;(o=null==a?void 0:a.payload).error?(t(),i(o.error)):\"DONE\"===o.status&&(t(),n())})).then((function(t){r=t})).catch((function(n){throw t(),n})),o(\"tauri://update-install\").catch((function(n){throw t(),n}))}))]}))}))}function u(){return t(this,void 0,void 0,(function(){function t(){i&&i(),i=void 0}var i;return n(this,(function(n){return[2,new Promise((function(n,u){r(\"tauri://update-available\",(function(a){var o;o=null==a?void 0:a.payload,t(),n({manifest:o,shouldUpdate:!0})})).catch((function(n){throw t(),n})),a(\"tauri://update-status\",(function(a){var o;(o=null==a?void 0:a.payload).error?(t(),u(o.error)):\"UPTODATE\"===o.status&&(t(),n({shouldUpdate:!1}))})).then((function(t){i=t})).catch((function(n){throw t(),n})),o(\"tauri://update\").catch((function(n){throw t(),n}))}))]}))}))}var e=Object.freeze({__proto__:null,installUpdate:i,checkUpdate:u});export{u as c,i,e as u};\n","\n\n
\n \n \n
\n","\n\n
\n \n
\n
\n {#each views as view}\n

select(view)}\n >\n {view.label}\n

\n {/each}\n
\n
\n \n
\n
\n
\n

\n Tauri Console\n {\n responses = [\"\"];\n }}>clear\n

\n {responses}\n
\n
\n","import App from \"./App.svelte\";\n\nconst app = new App({\n target: document.body,\n});\n\nexport default app;\n"],"names":["noop","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","component_subscribe","component","store","callback","$$","on_destroy","push","callbacks","unsub","subscribe","unsubscribe","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","i","length","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","prevent_default","preventDefault","call","this","attr","attribute","value","removeAttribute","getAttribute","setAttribute","to_number","set_data","wholeText","set_input_value","input","set_style","key","important","style","setProperty","select_option","select","option","__value","selected","current_component","set_current_component","get_current_component","Error","onMount","on_mount","onDestroy","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","Set","flush","update","pop","has","add","clear","fragment","before_update","dirty","p","ctx","after_update","outroing","outros","transition_in","block","local","delete","transition_out","o","c","create_component","mount_component","customElement","m","new_on_destroy","map","filter","destroy_component","make_dirty","then","fill","init","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","intro","SvelteComponent","[object Object]","$destroy","type","index","indexOf","splice","$$props","obj","$$set","keys","t","n","e","setPrototypeOf","__proto__","prototype","hasOwnProperty","TypeError","String","r","constructor","assign","arguments","apply","u","next","throw","done","label","sent","trys","ops","return","Symbol","iterator","Int8Array","window","crypto","getRandomValues","Uint8Array","Math","max","abs","join","defineProperty","Reflect","deleteProperty","writable","configurable","rpc","notify","error","s","freeze","__tauriModule","message","cmd","program","args","onEventFn","transformCallback","invoke","eventListeners","_emit","on","pid","write","buffer","kill","stdout","stderr","sidecar","spawn","payload","execute","code","signal","catch","path","with","exitCode","version","tauriVersion","appName","getName","getVersion","v","getTauriVersion","exit","relaunch","Command","Child","open","onMessage","getMatches","windowLabel","eventId","id","unlisten","endpoint","body","emit","once","fromCharCode","subarray","btoa","defaultPath","multiple","directory","filters","extensions","split","f","trim","res","isArray","pathToRead","isFile","match","readBinaryFile","response","blob","reader","includes","base64","Blob","FileReader","onload","evt","dataurl","result","substr","readAsDataURL","save","Audio","Cache","Config","Data","LocalData","Desktop","Document","Download","Executable","Font","Home","Picture","Public","Runtime","Template","Video","Resource","App","Current","BaseDirectory","Dir","readTextFile","writeFile","contents","writeBinaryFile","readDir","createDir","removeDir","copyFile","source","destination","removeFile","renameFile","oldPath","newPath","getDir","getElementById","parseInt","dir","DirOptions","isNaN","opts","arrayBufferToBase64","setTimeout","fileInput","file","JSON","Text","Binary","form","json","bytes","drop","client","request","get","method","url","post","put","patch","httpMethod","httpUrl","httpBody","getClient","startsWith","endsWith","Body","parse","selected_option","querySelector","fetch","Client","_sendNotification","Notification","permission","requestPermission","width","height","toLogical","x","y","h","__TAURI__","__windows","listeners","_handleTauriEvent","getByLabel","some","_","scaleFactor","innerPosition","outerPosition","innerSize","outerSize","isFullscreen","isMaximized","isDecorated","isResizable","isVisible","center","setResizable","setTitle","maximize","unmaximize","minimize","unminimize","show","hide","close","setDecorations","setAlwaysOnTop","setSize","setMinSize","setMaxSize","setPosition","setFullscreen","setFocus","setIcon","icon","setSkipTaskbar","startDragging","appWindow","urlValue","resizable","maximized","transparent","decorations","alwaysOnTop","fullscreen","minWidth","minHeight","maxWidth","maxHeight","windowTitle","LogicalSize","LogicalPosition","openDialog","WebviewWindow","random","toString","WebviewWindowHandle","WindowManager","getCurrent","__currentWindow","getAll","PhysicalSize","PhysicalPosition","currentMonitor","primaryMonitor","availableMonitors","subscriber_queue","shortcut","shortcuts","start","stop","subscribers","set","new_value","run_queue","invalidate","subscriber","unregister","shortcut_","unregisterShortcut","shortcuts_","registerShortcut","unregisterAllShortcuts","savedShortcut","register","registerAll","isRegistered","unregisterAll","windows","navigator","userAgent","child","script","cwd","env","stdin","command","reduce","clause","line","status","manifest","shouldUpdate","classList","checkUpdate","remove","installUpdate","views","Welcome","Communication","Cli","Dialog","FileSystem","Http","Notifications","Window","Shortcuts","Shell","Updater","responses","view","stringify"],"mappings":"gCAAA,SAASA,KAgBT,SAASC,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAyBhF,SAASE,EAAoBC,EAAWC,EAAOC,GAC3CF,EAAUG,GAAGC,WAAWC,KAb5B,SAAmBJ,KAAUK,GACzB,GAAa,MAATL,EACA,OAAOhB,EAEX,MAAMsB,EAAQN,EAAMO,aAAaF,GACjC,OAAOC,EAAME,YAAc,IAAMF,EAAME,cAAgBF,EAQ1BC,CAAUP,EAAOC,IAwIlD,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NxO,EAAU,kDACJJ,WAEA7E,GACNiF,EAAUjF,QDhDkjClK,OAAO2M,OAAO,CAACvC,UAAU,KAAKuT,cAAczb,GAAEub,YAAY3S,yKEqGnnCrE,KAAKyE,uGAFezE,OAAaA,KAAO,cAAgB,uGAApCA,OAAaA,KAAO,cAAgB,iHADpDA,0BAALtE,qCAQsBsE,KAAS9F,qsBAUlC8F,+mBAjC+CA,8DAevCA,aAALtE,+HAAAA,iBAQsBsE,KAAS9F,kB1BsqBnCiG,EAAS,CACL6D,EAAG,EACHtD,EAAG,GACHX,EAAGI,iDAIFA,EAAO6D,GACRvK,EAAQ0G,EAAOO,GAEnBP,EAASA,EAAOJ,0F0BtqBfC,+IApGGmX,IAEF1S,MAAO,UACPvK,UAAWkd,KAGX3S,MAAO,WACPvK,UAAWmd,KAGX5S,MAAO,MACPvK,UAAWod,KAGX7S,MAAO,SACPvK,UAAWqd,KAGX9S,MAAO,cACPvK,UAAWsd,KAGX/S,MAAO,OACPvK,UAAWud,KAGXhT,MAAO,gBACPvK,UAAWwd,KAGXjT,MAAO,SACPvK,UAAWyd,KAGXlT,MAAO,YACPvK,UAAW0d,KAGXnT,MAAO,QACPvK,UAAW2d,KAGXpT,MAAO,UACPvK,UAAW4d,SAIX5Z,EAAWiZ,EAAM,GAEjBY,GAAa,aAERha,EAAOia,OACd9Z,EAAW8Z,2BAGMhb,OACjB+a,GAA8B,iBAAV/a,EAAqBA,EAAQiR,KAAKgK,UAAUjb,QAChE+a,GAAa,kBAIbtP,GAAK,6BAsB4E1K,EAAOia,YAcpFD,GAAa,cC/GT,kEAAQ,CAClBld,OAAQiB,SAASmN"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/hotkeys-js/dist/hotkeys.esm.js","../../../../tooling/api/dist/tauri-b1e0a757.js","../../../../tooling/api/dist/tauri-6780f362.js","../../../../tooling/api/dist/shell-34b270e6.js","../../../../tooling/api/dist/fs-70af0f1b.js","../../../../tooling/api/dist/http-4b44e978.js","../../../../tooling/api/dist/app-03bcb4ae.js","../../../../tooling/api/dist/process-b7d96de1.js","../../src/components/Welcome.svelte","../../../../tooling/api/dist/cli-d253ec1a.js","../../src/components/Cli.svelte","../../../../tooling/api/dist/event-dd8cd2a2.js","../../src/components/Communication.svelte","../../../../tooling/api/dist/dialog-74f65622.js","../../src/components/Dialog.svelte","../../src/components/FileSystem.svelte","../../src/components/Http.svelte","../../src/components/Notifications.svelte","../../../../tooling/api/dist/window-4ced7716.js","../../src/components/Window.svelte","../../node_modules/svelte/store/index.mjs","../../../../tooling/api/dist/globalShortcut-751fa2a4.js","../../src/components/Shortcuts.svelte","../../src/components/Shell.svelte","../../../../tooling/api/dist/updater-41b8e007.js","../../src/components/Updater.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.35.0' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","/*!\n * hotkeys-js v3.8.5\n * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.\n * \n * Copyright (c) 2021 kenny wong \n * http://jaywcjlove.github.io/hotkeys\n * \n * Licensed under the MIT license.\n */\n\nvar isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件\n\nfunction addEvent(object, event, method) {\n if (object.addEventListener) {\n object.addEventListener(event, method, false);\n } else if (object.attachEvent) {\n object.attachEvent(\"on\".concat(event), function () {\n method(window.event);\n });\n }\n} // 修饰键转换成对应的键码\n\n\nfunction getMods(modifier, key) {\n var mods = key.slice(0, key.length - 1);\n\n for (var i = 0; i < mods.length; i++) {\n mods[i] = modifier[mods[i].toLowerCase()];\n }\n\n return mods;\n} // 处理传的key字符串转换成数组\n\n\nfunction getKeys(key) {\n if (typeof key !== 'string') key = '';\n key = key.replace(/\\s/g, ''); // 匹配任何空白字符,包括空格、制表符、换页符等等\n\n var keys = key.split(','); // 同时设置多个快捷键,以','分割\n\n var index = keys.lastIndexOf(''); // 快捷键可能包含',',需特殊处理\n\n for (; index >= 0;) {\n keys[index - 1] += ',';\n keys.splice(index, 1);\n index = keys.lastIndexOf('');\n }\n\n return keys;\n} // 比较修饰键的数组\n\n\nfunction compareArray(a1, a2) {\n var arr1 = a1.length >= a2.length ? a1 : a2;\n var arr2 = a1.length >= a2.length ? a2 : a1;\n var isIndex = true;\n\n for (var i = 0; i < arr1.length; i++) {\n if (arr2.indexOf(arr1[i]) === -1) isIndex = false;\n }\n\n return isIndex;\n}\n\nvar _keyMap = {\n backspace: 8,\n tab: 9,\n clear: 12,\n enter: 13,\n return: 13,\n esc: 27,\n escape: 27,\n space: 32,\n left: 37,\n up: 38,\n right: 39,\n down: 40,\n del: 46,\n delete: 46,\n ins: 45,\n insert: 45,\n home: 36,\n end: 35,\n pageup: 33,\n pagedown: 34,\n capslock: 20,\n num_0: 96,\n num_1: 97,\n num_2: 98,\n num_3: 99,\n num_4: 100,\n num_5: 101,\n num_6: 102,\n num_7: 103,\n num_8: 104,\n num_9: 105,\n num_multiply: 106,\n num_add: 107,\n num_enter: 108,\n num_subtract: 109,\n num_decimal: 110,\n num_divide: 111,\n '⇪': 20,\n ',': 188,\n '.': 190,\n '/': 191,\n '`': 192,\n '-': isff ? 173 : 189,\n '=': isff ? 61 : 187,\n ';': isff ? 59 : 186,\n '\\'': 222,\n '[': 219,\n ']': 221,\n '\\\\': 220\n}; // Modifier Keys\n\nvar _modifier = {\n // shiftKey\n '⇧': 16,\n shift: 16,\n // altKey\n '⌥': 18,\n alt: 18,\n option: 18,\n // ctrlKey\n '⌃': 17,\n ctrl: 17,\n control: 17,\n // metaKey\n '⌘': 91,\n cmd: 91,\n command: 91\n};\nvar modifierMap = {\n 16: 'shiftKey',\n 18: 'altKey',\n 17: 'ctrlKey',\n 91: 'metaKey',\n shiftKey: 16,\n ctrlKey: 17,\n altKey: 18,\n metaKey: 91\n};\nvar _mods = {\n 16: false,\n 18: false,\n 17: false,\n 91: false\n};\nvar _handlers = {}; // F1~F12 special key\n\nfor (var k = 1; k < 20; k++) {\n _keyMap[\"f\".concat(k)] = 111 + k;\n}\n\nvar _downKeys = []; // 记录摁下的绑定键\n\nvar _scope = 'all'; // 默认热键范围\n\nvar elementHasBindEvent = []; // 已绑定事件的节点记录\n// 返回键码\n\nvar code = function code(x) {\n return _keyMap[x.toLowerCase()] || _modifier[x.toLowerCase()] || x.toUpperCase().charCodeAt(0);\n}; // 设置获取当前范围(默认为'所有')\n\n\nfunction setScope(scope) {\n _scope = scope || 'all';\n} // 获取当前范围\n\n\nfunction getScope() {\n return _scope || 'all';\n} // 获取摁下绑定键的键值\n\n\nfunction getPressedKeyCodes() {\n return _downKeys.slice(0);\n} // 表单控件控件判断 返回 Boolean\n// hotkey is effective only when filter return true\n\n\nfunction filter(event) {\n var target = event.target || event.srcElement;\n var tagName = target.tagName;\n var flag = true; // ignore: isContentEditable === 'true', and '\n );\n setTimeout(() => {\n const fileInput = document.getElementById(\"file-response\");\n fileInput.value = value;\n document\n .getElementById(\"file-save\")\n .addEventListener(\"click\", function () {\n writeFile(\n {\n file: pathToRead,\n contents: fileInput.value,\n },\n {\n dir: getDir(),\n }\n ).catch(onMessage);\n });\n });\n }\n } else {\n onMessage(response);\n }\n })\n .catch(onMessage);\n }\n\n\n
\n \n \n \n\n","\n\n
\n \n \n
\n \n \n\n","\n\n\n","import{_ as t,a as i,d as n,b as e}from\"./tauri-b1e0a757.js\";import{i as o}from\"./tauri-6780f362.js\";import{l as r,o as u,b as s}from\"./event-dd8cd2a2.js\";var a=function(t,i){this.type=\"Logical\",this.width=t,this.height=i},c=function(){function t(t,i){this.type=\"Physical\",this.width=t,this.height=i}return t.prototype.toLogical=function(t){return new a(this.width/t,this.height/t)},t}(),d=function(t,i){this.type=\"Logical\",this.x=t,this.y=i},h=function(){function t(t,i){this.type=\"Physical\",this.x=t,this.y=i}return t.prototype.toLogical=function(t){return new d(this.x/t,this.y/t)},t}();function f(){return new m(window.__TAURI__.__currentWindow.label)}function l(){return window.__TAURI__.__windows}var p=[\"tauri://created\",\"tauri://error\"],m=function(){function n(t){this.label=t,this.listeners=Object.create(null)}return n.prototype.listen=function(n,e){return t(this,void 0,void 0,(function(){var t=this;return i(this,(function(i){return this._handleTauriEvent(n,e)?[2,Promise.resolve((function(){var i=t.listeners[n];i.splice(i.indexOf(e),1)}))]:[2,r(n,e)]}))}))},n.prototype.once=function(n,e){return t(this,void 0,void 0,(function(){var t=this;return i(this,(function(i){return this._handleTauriEvent(n,e)?[2,Promise.resolve((function(){var i=t.listeners[n];i.splice(i.indexOf(e),1)}))]:[2,u(n,e)]}))}))},n.prototype.emit=function(n,e){return t(this,void 0,void 0,(function(){var t,o;return i(this,(function(i){if(p.includes(n)){for(t=0,o=this.listeners[n]||[];t\n import { appWindow, WebviewWindow, LogicalSize, LogicalPosition } from \"@tauri-apps/api/window\";\n import { open as openDialog } from \"@tauri-apps/api/dialog\";\n import { open } from \"@tauri-apps/api/shell\";\n\n const {\n setResizable,\n setTitle,\n maximize,\n unmaximize,\n minimize,\n unminimize,\n show,\n hide,\n setDecorations,\n setAlwaysOnTop,\n setSize,\n setMinSize,\n setMaxSize,\n setPosition,\n setFullscreen,\n setIcon,\n center,\n } = appWindow;\n\n export let onMessage;\n\n let urlValue = \"https://tauri.studio\";\n let resizable = true;\n let maximized = false;\n let transparent = false;\n let decorations = true;\n let alwaysOnTop = false;\n let fullscreen = false;\n let width = 900;\n let height = 700;\n let minWidth = 600;\n let minHeight = 600;\n let maxWidth = null;\n let maxHeight = null;\n let x = 100;\n let y = 100;\n\n let windowTitle = \"Awesome Tauri Example!\";\n\n function openUrl() {\n open(urlValue);\n }\n\n function setTitle_() {\n setTitle(windowTitle);\n }\n\n function hide_() {\n hide();\n setTimeout(show, 2000);\n }\n\n function minimize_() {\n minimize();\n setTimeout(unminimize, 2000);\n }\n\n function getIcon() {\n openDialog({\n multiple: false,\n }).then(setIcon);\n }\n\n function createWindow() {\n const webview = new WebviewWindow(Math.random().toString());\n webview.once('tauri://error', function () {\n onMessage(\"Error creating new webview\")\n })\n }\n\n $: setResizable(resizable);\n $: maximized ? maximize() : unmaximize();\n $: setDecorations(decorations);\n $: setAlwaysOnTop(alwaysOnTop);\n $: setFullscreen(fullscreen);\n\n $: setSize(new LogicalSize(width, height));\n $: minWidth && minHeight ? setMinSize(new LogicalSize(minWidth, minHeight)) : setMinSize(null);\n $: maxWidth && maxHeight ? setMaxSize(new LogicalSize(maxWidth, maxHeight)) : setMaxSize(null);\n $: setPosition(new LogicalPosition(x, y));\n\n\n
\n
\n \n \n \n \n \n \n \n \n \n \n
\n
\n
\n
\n
\n X\n \n
\n
\n Y\n \n
\n
\n\n
\n
\n Width\n \n
\n
\n Height\n \n
\n
\n\n
\n
\n Min width\n \n
\n
\n Min height\n \n
\n
\n\n
\n
\n Max width\n \n
\n
\n Max height\n \n
\n
\n
\n
\n
\n
\n \n \n
\n
\n \n \n
\n\n\n\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = [];\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (let i = 0; i < subscribers.length; i += 1) {\n const s = subscribers[i];\n s[1]();\n subscriber_queue.push(s, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.push(subscriber);\n if (subscribers.length === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n const index = subscribers.indexOf(subscriber);\n if (index !== -1) {\n subscribers.splice(index, 1);\n }\n if (subscribers.length === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import{_ as t,a as r,t as e}from\"./tauri-b1e0a757.js\";import{i}from\"./tauri-6780f362.js\";function u(u,n){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"register\",shortcut:u,handler:e(n)}})]}))}))}function n(u,n){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"registerAll\",shortcuts:u,handler:e(n)}})]}))}))}function o(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"isRegistered\",shortcut:e}})]}))}))}function s(e){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregister\",shortcut:e}})]}))}))}function a(){return t(this,void 0,void 0,(function(){return r(this,(function(t){return[2,i({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregisterAll\"}})]}))}))}var c=Object.freeze({__proto__:null,register:u,registerAll:n,isRegistered:o,unregister:s,unregisterAll:a});export{n as a,a as b,c as g,o as i,u as r,s as u};\n","\n\n
\n
\n \n \n
\n
\n {#each $shortcuts as savedShortcut}\n
\n {savedShortcut}\n
\n {/each}\n {#if $shortcuts.length}\n \n {/if}\n
\n
\n","\n\n
\n
\n \n \n \n {#if child}\n \n \n {/if}\n
\n
\n \n \n
\n
\n","import{_ as t,a as n}from\"./tauri-b1e0a757.js\";import{l as a,e as o,o as r}from\"./event-dd8cd2a2.js\";function i(){return t(this,void 0,void 0,(function(){function t(){r&&r(),r=void 0}var r;return n(this,(function(n){return[2,new Promise((function(n,i){a(\"tauri://update-status\",(function(a){var o;(o=null==a?void 0:a.payload).error?(t(),i(o.error)):\"DONE\"===o.status&&(t(),n())})).then((function(t){r=t})).catch((function(n){throw t(),n})),o(\"tauri://update-install\").catch((function(n){throw t(),n}))}))]}))}))}function u(){return t(this,void 0,void 0,(function(){function t(){i&&i(),i=void 0}var i;return n(this,(function(n){return[2,new Promise((function(n,u){r(\"tauri://update-available\",(function(a){var o;o=null==a?void 0:a.payload,t(),n({manifest:o,shouldUpdate:!0})})).catch((function(n){throw t(),n})),a(\"tauri://update-status\",(function(a){var o;(o=null==a?void 0:a.payload).error?(t(),u(o.error)):\"UPTODATE\"===o.status&&(t(),n({shouldUpdate:!1}))})).then((function(t){i=t})).catch((function(n){throw t(),n})),o(\"tauri://update\").catch((function(n){throw t(),n}))}))]}))}))}var e=Object.freeze({__proto__:null,installUpdate:i,checkUpdate:u});export{u as c,i,e as u};\n","\n\n
\n \n \n
\n","\n\n
\n \n
\n
\n {#each views as view}\n

select(view)}\n >\n {view.label}\n

\n {/each}\n
\n
\n \n
\n
\n
\n

\n Tauri Console\n {\n responses = [\"\"];\n }}>clear\n

\n {responses}\n
\n
\n","import App from \"./App.svelte\";\n\nconst app = new App({\n target: document.body,\n});\n\nexport default app;\n"],"names":["noop","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","component_subscribe","component","store","callback","$$","on_destroy","push","callbacks","unsub","subscribe","unsubscribe","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","i","length","d","element","name","document","createElement","text","data","createTextNode","space","listen","event","handler","options","addEventListener","removeEventListener","prevent_default","preventDefault","call","this","attr","attribute","value","removeAttribute","getAttribute","setAttribute","to_number","set_data","wholeText","set_input_value","input","set_style","key","important","style","setProperty","select_option","select","option","__value","selected","current_component","set_current_component","get_current_component","Error","onMount","on_mount","onDestroy","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","Set","flush","update","pop","has","add","clear","fragment","before_update","dirty","p","ctx","after_update","outroing","outros","transition_in","block","local","delete","transition_out","o","c","create_component","mount_component","customElement","m","new_on_destroy","map","filter","destroy_component","make_dirty","then","fill","init","instance","create_fragment","not_equal","props","parent_component","bound","on_disconnect","context","Map","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","intro","SvelteComponent","[object Object]","$destroy","type","index","indexOf","splice","$$props","obj","$$set","keys","isff","navigator","userAgent","toLowerCase","addEvent","object","method","attachEvent","concat","window","getMods","modifier","mods","slice","getKeys","replace","split","lastIndexOf","_keyMap","backspace","tab","enter","return","esc","escape","left","up","right","down","del","ins","home","end","pageup","pagedown","capslock","num_0","num_1","num_2","num_3","num_4","num_5","num_6","num_7","num_8","num_9","num_multiply","num_add","num_enter","num_subtract","num_decimal","num_divide","⇪",",",".","/","`","-","=",";","'","[","]","\\","_modifier","⇧","shift","⌥","alt","⌃","ctrl","control","⌘","cmd","command","modifierMap","16","18","17","91","shiftKey","ctrlKey","altKey","metaKey","_mods","_handlers","k","_downKeys","_scope","elementHasBindEvent","code","x","toUpperCase","charCodeAt","setScope","scope","getScope","eachUnbind","_ref","_ref$splitKey","splitKey","originKey","unbindKeys","len","lastKey","keyCode","record","a1","a2","arr1","arr2","isIndex","compareArray","eventHandler","modifiersMatch","y","prototype","hasOwnProperty","shortcut","returnValue","stopPropagation","cancelBubble","dispatch","asterisk","which","charCode","hotkeys","keyName","keyNum","e","getModifierState","keydown","keyup","_i","keyShortcut","_downKeysCurrent","sort","join","undefined","toString","isElementBind","clearModifier","_api","deleteScope","newScope","handlers","getPressedKeyCodes","isPressed","srcElement","tagName","flag","isContentEditable","readOnly","unbind","keysInfo","isArray","info","_len","arguments","args","_key","_hotkeys","noConflict","deep","t","n","setPrototypeOf","__proto__","TypeError","String","r","constructor","assign","apply","u","next","throw","done","label","sent","trys","ops","Symbol","iterator","Int8Array","crypto","getRandomValues","Uint8Array","Math","max","abs","defineProperty","Reflect","deleteProperty","writable","configurable","rpc","notify","error","s","freeze","__tauriModule","message","program","onEventFn","transformCallback","invoke","eventListeners","_emit","on","pid","write","buffer","kill","stdout","stderr","sidecar","spawn","payload","execute","signal","catch","path","with","exitCode","version","tauriVersion","appName","getName","getVersion","v","getTauriVersion","exit","relaunch","Command","Child","open","onMessage","getMatches","windowLabel","eventId","id","unlisten","endpoint","body","emit","once","fromCharCode","subarray","btoa","defaultPath","multiple","directory","filters","extensions","f","trim","res","pathToRead","isFile","match","readBinaryFile","response","blob","reader","includes","base64","Blob","FileReader","onload","evt","dataurl","result","substr","readAsDataURL","save","Audio","Cache","Config","Data","LocalData","Desktop","Document","Download","Executable","Font","Home","Picture","Public","Runtime","Template","Video","Resource","App","Current","BaseDirectory","Dir","readTextFile","writeFile","contents","writeBinaryFile","readDir","createDir","removeDir","copyFile","source","destination","removeFile","renameFile","oldPath","newPath","getDir","getElementById","parseInt","dir","DirOptions","isNaN","opts","arrayBufferToBase64","setTimeout","fileInput","file","JSON","Text","Binary","form","json","bytes","drop","client","request","get","url","post","put","patch","httpMethod","httpUrl","httpBody","getClient","startsWith","endsWith","Body","parse","selected_option","querySelector","fetch","Client","_sendNotification","Notification","permission","requestPermission","width","height","toLogical","h","__TAURI__","__windows","listeners","_handleTauriEvent","getByLabel","some","_","scaleFactor","innerPosition","outerPosition","innerSize","outerSize","isFullscreen","isMaximized","isDecorated","isResizable","isVisible","center","setResizable","setTitle","maximize","unmaximize","minimize","unminimize","show","hide","close","setDecorations","setAlwaysOnTop","setSize","setMinSize","setMaxSize","setPosition","setFullscreen","setFocus","setIcon","icon","setSkipTaskbar","startDragging","appWindow","urlValue","resizable","maximized","transparent","decorations","alwaysOnTop","fullscreen","minWidth","minHeight","maxWidth","maxHeight","windowTitle","LogicalSize","LogicalPosition","openDialog","WebviewWindow","random","WebviewWindowHandle","WindowManager","getCurrent","__currentWindow","getAll","PhysicalSize","PhysicalPosition","currentMonitor","primaryMonitor","availableMonitors","subscriber_queue","shortcuts","start","stop","subscribers","set","new_value","run_queue","invalidate","subscriber","unregister","shortcut_","unregisterShortcut","shortcuts_","registerShortcut","unregisterAllShortcuts","savedShortcut","register","registerAll","isRegistered","unregisterAll","windows","child","script","cwd","env","stdin","reduce","clause","line","status","manifest","shouldUpdate","classList","checkUpdate","remove","installUpdate","views","Welcome","Communication","Cli","Dialog","FileSystem","Http","Notifications","Window","Shortcuts","Shell","Updater","responses","view","stringify"],"mappings":"gCAAA,SAASA,KAgBT,SAASC,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAA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Y3R,yKE+GnnCrO,KAAKyO,uGAFezO,OAAaA,KAAO,cAAgB,uGAApCA,OAAaA,KAAO,cAAgB,iHADpDA,0BAALtE,qCAQsBsE,KAAS9F,qsBAUlC8F,+mBAjC+CA,8DAevCA,aAALtE,+HAAAA,iBAQsBsE,KAAS9F,kB3B4pBnCiG,EAAS,CACL8N,EAAG,EACHvN,EAAG,GACHX,EAAGI,iDAIFA,EAAO8N,GACRxU,EAAQ0G,EAAOO,GAEnBP,EAASA,EAAOJ,0F2B5pBfC,yIA1GHzB,QACE8M,GAHyB,eAIvBgF,GAAO,2BAIL8P,IAEF1R,MAAO,UACPvU,UAAWkmB,KAGX3R,MAAO,WACPvU,UAAWmmB,KAGX5R,MAAO,MACPvU,UAAWomB,KAGX7R,MAAO,SACPvU,UAAWqmB,KAGX9R,MAAO,cACPvU,UAAWsmB,KAGX/R,MAAO,OACPvU,UAAWumB,KAGXhS,MAAO,gBACPvU,UAAWwmB,KAGXjS,MAAO,SACPvU,UAAWymB,KAGXlS,MAAO,YACPvU,UAAW0mB,KAGXnS,MAAO,QACPvU,UAAW2mB,KAGXpS,MAAO,UACPvU,UAAW4mB,SAIX5iB,EAAWiiB,EAAM,GAEjBY,GAAa,aAERhjB,EAAOijB,OACd9iB,EAAW8iB,2BAGMhkB,OACjB+jB,GAA8B,iBAAV/jB,EAAqBA,EAAQya,KAAKwJ,UAAUjkB,QAChE+jB,GAAa,kBAIb5O,GAAK,6BAsB4EpU,EAAOijB,YAcpFD,GAAa,cCzHT,kEAAQ,CAClBlmB,OAAQiB,SAAS6W"} \ No newline at end of file diff --git a/examples/api/src-tauri/src/main.rs b/examples/api/src-tauri/src/main.rs index 829cc4e53..4318ac029 100644 --- a/examples/api/src-tauri/src/main.rs +++ b/examples/api/src-tauri/src/main.rs @@ -20,6 +20,11 @@ struct Reply { data: String, } +#[tauri::command] +async fn menu_toggle(window: tauri::Window) { + window.menu_handle().toggle().unwrap(); +} + fn main() { tauri::Builder::default() .on_page_load(|window, _| { @@ -86,7 +91,8 @@ fn main() { }) .invoke_handler(tauri::generate_handler![ cmd::log_operation, - cmd::perform_request + cmd::perform_request, + menu_toggle, ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index d11d5ac55..005608505 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -1,6 +1,8 @@