diff --git a/.changes/refactor-register-uri-scheme-protocol.md b/.changes/refactor-register-uri-scheme-protocol.md new file mode 100644 index 00000000000..f04210b75ae --- /dev/null +++ b/.changes/refactor-register-uri-scheme-protocol.md @@ -0,0 +1,6 @@ +--- +"tauri": patch +"tauri-runtime": patch +--- + +**Breaking change:** Removed `register_uri_scheme_protocol` from the `WebviewAttibutes` struct and renamed `register_global_uri_scheme_protocol` to `register_uri_scheme_protocol` on the `Builder` struct, which now takes a `Fn(&AppHandle, &http::Request) -> http::Response` closure. diff --git a/.changes/tauri-protocol.md b/.changes/tauri-protocol.md new file mode 100644 index 00000000000..a7f84e45faf --- /dev/null +++ b/.changes/tauri-protocol.md @@ -0,0 +1,7 @@ +--- +"tauri": minor +"tauri-runtime": minor +"tauri-runtime-wry": minor +--- + +Migrate to latest custom protocol allowing `Partial content` streaming and Header parsing. diff --git a/.gitignore b/.gitignore index 59a7c21f77d..40f8bc2233d 100644 --- a/.gitignore +++ b/.gitignore @@ -93,3 +93,4 @@ __handlers__/ # benches gh-pages +test_video.mp4 \ No newline at end of file diff --git a/core/tauri-runtime-wry/src/lib.rs b/core/tauri-runtime-wry/src/lib.rs index 6ca5a62b893..ebece72cee1 100644 --- a/core/tauri-runtime-wry/src/lib.rs +++ b/core/tauri-runtime-wry/src/lib.rs @@ -5,6 +5,10 @@ //! The [`wry`] Tauri [`Runtime`]. use tauri_runtime::{ + http::{ + Request as HttpRequest, RequestParts as HttpRequestParts, Response as HttpResponse, + ResponseParts as HttpResponseParts, + }, menu::{CustomMenuItem, Menu, MenuEntry, MenuHash, MenuItem, MenuUpdate, Submenu}, monitor::Monitor, webview::{ @@ -54,6 +58,10 @@ use wry::{ monitor::MonitorHandle, window::{Fullscreen, Icon as WindowIcon, UserAttentionType as WryUserAttentionType}, }, + http::{ + Request as WryHttpRequest, RequestParts as WryRequestParts, Response as WryHttpResponse, + ResponseParts as WryResponseParts, + }, webview::{ FileDropEvent as WryFileDropEvent, RpcRequest as WryRpcRequest, RpcResponse, WebContext, WebView, WebViewBuilder, @@ -95,9 +103,6 @@ mod system_tray; #[cfg(feature = "system-tray")] use system_tray::*; -mod mime_type; -use mime_type::MimeType; - type WebContextStore = Mutex, WebContext>>; // window type WindowEventHandler = Box; @@ -152,6 +157,72 @@ struct EventLoopContext { proxy: EventLoopProxy, } +struct HttpRequestPartsWrapper(HttpRequestParts); + +impl From for HttpRequestParts { + fn from(parts: HttpRequestPartsWrapper) -> Self { + Self { + method: parts.0.method, + uri: parts.0.uri, + headers: parts.0.headers, + } + } +} + +impl From for HttpRequestPartsWrapper { + fn from(request: HttpRequestParts) -> Self { + Self(HttpRequestParts { + method: request.method, + uri: request.uri, + headers: request.headers, + }) + } +} + +impl From for HttpRequestPartsWrapper { + fn from(request: WryRequestParts) -> Self { + Self(HttpRequestParts { + method: request.method, + uri: request.uri, + headers: request.headers, + }) + } +} + +struct HttpRequestWrapper(HttpRequest); + +impl From<&WryHttpRequest> for HttpRequestWrapper { + fn from(req: &WryHttpRequest) -> Self { + Self(HttpRequest { + body: req.body.clone(), + head: HttpRequestPartsWrapper::from(req.head.clone()).0, + }) + } +} + +// response +struct HttpResponsePartsWrapper(WryResponseParts); +impl From for HttpResponsePartsWrapper { + fn from(response: HttpResponseParts) -> Self { + Self(WryResponseParts { + mimetype: response.mimetype, + status: response.status, + version: response.version, + headers: response.headers, + }) + } +} + +struct HttpResponseWrapper(WryHttpResponse); +impl From for HttpResponseWrapper { + fn from(response: HttpResponse) -> Self { + Self(WryHttpResponse { + body: response.body, + head: HttpResponsePartsWrapper::from(response.head).0, + }) + } +} + pub struct MenuItemAttributesWrapper<'a>(pub WryMenuItemAttributes<'a>); impl<'a> From<&'a CustomMenuItem> for MenuItemAttributesWrapper<'a> { @@ -2327,6 +2398,7 @@ fn create_webview( #[allow(unused_mut)] let PendingWindow { webview_attributes, + uri_scheme_protocols, mut window_builder, rpc_handler, file_drop_handler, @@ -2375,13 +2447,10 @@ fn create_webview( handler, )); } - for (scheme, protocol) in webview_attributes.uri_scheme_protocols { - webview_builder = webview_builder.with_custom_protocol(scheme, move |url| { - protocol(url) - .map(|data| { - let mime_type = MimeType::parse(&data, url); - (data, mime_type) - }) + for (scheme, protocol) in uri_scheme_protocols { + webview_builder = webview_builder.with_custom_protocol(scheme, move |wry_request| { + protocol(&HttpRequestWrapper::from(wry_request).0) + .map(|tauri_response| HttpResponseWrapper::from(tauri_response).0) .map_err(|_| wry::Error::InitScriptError) }); } @@ -2409,7 +2478,7 @@ fn create_webview( .build() .map_err(|e| Error::CreateWebview(Box::new(e)))? } else { - let mut context = WebContext::new(webview_attributes.data_directory.clone()); + let mut context = WebContext::new(webview_attributes.data_directory); webview_builder .with_web_context(&mut context) .build() diff --git a/core/tauri-runtime/Cargo.toml b/core/tauri-runtime/Cargo.toml index 8d9da0628d9..5a3e531e60c 100644 --- a/core/tauri-runtime/Cargo.toml +++ b/core/tauri-runtime/Cargo.toml @@ -27,6 +27,9 @@ serde_json = "1.0" thiserror = "1.0" tauri-utils = { version = "1.0.0-beta.3", path = "../tauri-utils" } uuid = { version = "0.8.2", features = [ "v4" ] } +http = "0.2.4" +http-range = "0.1.4" +infer = "0.4" [target."cfg(windows)".dependencies] winapi = "0.3" diff --git a/core/tauri-runtime-wry/src/mime_type.rs b/core/tauri-runtime/src/http/mime_type.rs similarity index 94% rename from core/tauri-runtime-wry/src/mime_type.rs rename to core/tauri-runtime/src/http/mime_type.rs index 00e441530a1..f818940f4bd 100644 --- a/core/tauri-runtime-wry/src/mime_type.rs +++ b/core/tauri-runtime/src/http/mime_type.rs @@ -7,7 +7,7 @@ use std::fmt; const MIMETYPE_PLAIN: &str = "text/plain"; /// [Web Compatible MimeTypes](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#important_mime_types_for_web_developers) -pub(crate) enum MimeType { +pub enum MimeType { Css, Csv, Html, @@ -18,6 +18,7 @@ pub(crate) enum MimeType { OctetStream, Rtf, Svg, + Mp4, } impl std::fmt::Display for MimeType { @@ -33,6 +34,7 @@ impl std::fmt::Display for MimeType { MimeType::OctetStream => "application/octet-stream", MimeType::Rtf => "application/rtf", MimeType::Svg => "image/svg+xml", + MimeType::Mp4 => "video/mp4", }; write!(f, "{}", mime) } @@ -53,6 +55,7 @@ impl MimeType { Some("jsonld") => Self::Jsonld, Some("rtf") => Self::Rtf, Some("svg") => Self::Svg, + Some("mp4") => Self::Mp4, // Assume HTML when a TLD is found for eg. `wry:://tauri.studio` | `wry://hello.com` Some(_) => Self::Html, // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types @@ -118,6 +121,9 @@ mod tests { let svg: String = MimeType::parse_from_uri("https://example.com/picture.svg").to_string(); assert_eq!(svg, String::from("image/svg+xml")); + let mp4: String = MimeType::parse_from_uri("https://example.com/video.mp4").to_string(); + assert_eq!(mp4, String::from("video/mp4")); + let custom_scheme = MimeType::parse_from_uri("wry://tauri.studio").to_string(); assert_eq!(custom_scheme, String::from("text/html")); } diff --git a/core/tauri-runtime/src/http/mod.rs b/core/tauri-runtime/src/http/mod.rs new file mode 100644 index 00000000000..35a694d0281 --- /dev/null +++ b/core/tauri-runtime/src/http/mod.rs @@ -0,0 +1,20 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +// custom wry types +mod mime_type; +mod request; +mod response; + +pub use self::{ + mime_type::MimeType, + request::{Request, RequestParts}, + response::{Builder as ResponseBuilder, Response, ResponseParts}, +}; + +// re-expose default http types +pub use http::{header, method, status, uri::InvalidUri, version, Uri}; + +// re-export httprange helper as it can be useful and we need it locally +pub use http_range::HttpRange; diff --git a/core/tauri-runtime/src/http/request.rs b/core/tauri-runtime/src/http/request.rs new file mode 100644 index 00000000000..40ccd562910 --- /dev/null +++ b/core/tauri-runtime/src/http/request.rs @@ -0,0 +1,117 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use std::fmt; + +use super::{ + header::{HeaderMap, HeaderValue}, + method::Method, +}; + +/// Represents an HTTP request from the WebView. +/// +/// An HTTP request consists of a head and a potentially optional body. +/// +/// ## Platform-specific +/// +/// - **Linux:** Headers are not exposed. +pub struct Request { + pub head: RequestParts, + pub body: Vec, +} + +/// Component parts of an HTTP `Request` +/// +/// The HTTP request head consists of a method, uri, and a set of +/// header fields. +#[derive(Clone)] +pub struct RequestParts { + /// The request's method + pub method: Method, + + /// The request's URI + pub uri: String, + + /// The request's headers + pub headers: HeaderMap, +} + +impl Request { + /// Creates a new blank `Request` with the body + #[inline] + pub fn new(body: Vec) -> Request { + Request { + head: RequestParts::new(), + body, + } + } + + /// Returns a reference to the associated HTTP method. + #[inline] + pub fn method(&self) -> &Method { + &self.head.method + } + + /// Returns a reference to the associated URI. + #[inline] + pub fn uri(&self) -> &str { + &self.head.uri + } + + /// Returns a reference to the associated header field map. + #[inline] + pub fn headers(&self) -> &HeaderMap { + &self.head.headers + } + + /// Returns a reference to the associated HTTP body. + #[inline] + pub fn body(&self) -> &Vec { + &self.body + } + + /// Consumes the request returning the head and body RequestParts. + #[inline] + pub fn into_parts(self) -> (RequestParts, Vec) { + (self.head, self.body) + } +} + +impl Default for Request { + fn default() -> Request { + Request::new(Vec::new()) + } +} + +impl fmt::Debug for Request { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Request") + .field("method", self.method()) + .field("uri", &self.uri()) + .field("headers", self.headers()) + .field("body", self.body()) + .finish() + } +} + +impl RequestParts { + /// Creates a new default instance of `RequestParts` + fn new() -> RequestParts { + RequestParts { + method: Method::default(), + uri: "".into(), + headers: HeaderMap::default(), + } + } +} + +impl fmt::Debug for RequestParts { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Parts") + .field("method", &self.method) + .field("uri", &self.uri) + .field("headers", &self.headers) + .finish() + } +} diff --git a/core/tauri-runtime/src/http/response.rs b/core/tauri-runtime/src/http/response.rs new file mode 100644 index 00000000000..efe75736dfd --- /dev/null +++ b/core/tauri-runtime/src/http/response.rs @@ -0,0 +1,267 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use super::{ + header::{HeaderMap, HeaderName, HeaderValue}, + status::StatusCode, + version::Version, +}; +use std::{convert::TryFrom, fmt}; + +type Result = core::result::Result>; + +/// Represents an HTTP response +/// +/// An HTTP response consists of a head and a potentially body. +/// +/// ## Platform-specific +/// +/// - **Linux:** Headers and status code cannot be changed. +/// +/// # Examples +/// +/// ``` +/// # use tauri_runtime::http::*; +/// +/// let response = ResponseBuilder::new() +/// .status(202) +/// .mimetype("text/html") +/// .body("hello!".as_bytes().to_vec()) +/// .unwrap(); +/// ``` +/// +pub struct Response { + pub head: ResponseParts, + pub body: Vec, +} + +/// Component parts of an HTTP `Response` +/// +/// The HTTP response head consists of a status, version, and a set of +/// header fields. +#[derive(Clone)] +pub struct ResponseParts { + /// The response's status + pub status: StatusCode, + + /// The response's version + pub version: Version, + + /// The response's headers + pub headers: HeaderMap, + + /// The response's mimetype type + pub mimetype: Option, +} + +/// An HTTP response builder +/// +/// This type can be used to construct an instance of `Response` through a +/// builder-like pattern. +#[derive(Debug)] +pub struct Builder { + inner: Result, +} + +impl Response { + /// Creates a new blank `Response` with the body + #[inline] + pub fn new(body: Vec) -> Response { + Response { + head: ResponseParts::new(), + body, + } + } + + /// Returns the `StatusCode`. + #[inline] + pub fn status(&self) -> StatusCode { + self.head.status + } + + /// Returns a reference to the mime type. + #[inline] + pub fn mimetype(&self) -> Option { + self.head.mimetype.clone() + } + + /// Returns a reference to the associated version. + #[inline] + pub fn version(&self) -> Version { + self.head.version + } + + /// Returns a reference to the associated header field map. + #[inline] + pub fn headers(&self) -> &HeaderMap { + &self.head.headers + } + + /// Returns a reference to the associated HTTP body. + #[inline] + pub fn body(&self) -> &Vec { + &self.body + } +} + +impl Default for Response { + #[inline] + fn default() -> Response { + Response::new(Vec::new()) + } +} + +impl fmt::Debug for Response { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Response") + .field("status", &self.status()) + .field("version", &self.version()) + .field("headers", self.headers()) + .field("body", self.body()) + .finish() + } +} + +impl ResponseParts { + /// Creates a new default instance of `ResponseParts` + fn new() -> ResponseParts { + ResponseParts { + status: StatusCode::default(), + version: Version::default(), + headers: HeaderMap::default(), + mimetype: None, + } + } +} + +impl fmt::Debug for ResponseParts { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + f.debug_struct("Parts") + .field("status", &self.status) + .field("version", &self.version) + .field("headers", &self.headers) + .finish() + } +} + +impl Builder { + /// Creates a new default instance of `Builder` to construct either a + /// `Head` or a `Response`. + /// + /// # Examples + /// + /// ``` + /// # use tauri_runtime::http::*; + /// + /// let response = ResponseBuilder::new() + /// .status(200) + /// .mimetype("text/html") + /// .body(Vec::new()) + /// .unwrap(); + /// ``` + #[inline] + pub fn new() -> Builder { + Builder { + inner: Ok(ResponseParts::new()), + } + } + + /// Set the HTTP mimetype for this response. + pub fn mimetype(self, mimetype: &str) -> Builder { + self.and_then(move |mut head| { + head.mimetype = Some(mimetype.to_string()); + Ok(head) + }) + } + + /// Set the HTTP status for this response. + pub fn status(self, status: T) -> Builder + where + StatusCode: TryFrom, + >::Error: Into, + { + self.and_then(move |mut head| { + head.status = TryFrom::try_from(status).map_err(Into::into)?; + Ok(head) + }) + } + + /// Set the HTTP version for this response. + /// + /// This function will configure the HTTP version of the `Response` that + /// will be returned from `Builder::build`. + /// + /// By default this is HTTP/1.1 + pub fn version(self, version: Version) -> Builder { + self.and_then(move |mut head| { + head.version = version; + Ok(head) + }) + } + + /// Appends a header to this response builder. + /// + /// This function will append the provided key/value as a header to the + /// internal `HeaderMap` being constructed. Essentially this is equivalent + /// to calling `HeaderMap::append`. + pub fn header(self, key: K, value: V) -> Builder + where + HeaderName: TryFrom, + >::Error: Into, + HeaderValue: TryFrom, + >::Error: Into, + { + self.and_then(move |mut head| { + let name = >::try_from(key).map_err(Into::into)?; + let value = >::try_from(value).map_err(Into::into)?; + head.headers.append(name, value); + Ok(head) + }) + } + + /// "Consumes" this builder, using the provided `body` to return a + /// constructed `Response`. + /// + /// # Errors + /// + /// This function may return an error if any previously configured argument + /// failed to parse or get converted to the internal representation. For + /// example if an invalid `head` was specified via `header("Foo", + /// "Bar\r\n")` the error will be returned when this function is called + /// rather than when `header` was called. + /// + /// # Examples + /// + /// ``` + /// # use tauri_runtime::http::*; + /// + /// let response = ResponseBuilder::new() + /// .mimetype("text/html") + /// .body(Vec::new()) + /// .unwrap(); + /// ``` + pub fn body(self, body: Vec) -> Result { + self.inner.map(move |head| Response { head, body }) + } + + // private + + fn and_then(self, func: F) -> Self + where + F: FnOnce(ResponseParts) -> Result, + { + Builder { + inner: self.inner.and_then(func), + } + } +} + +impl Default for Builder { + #[inline] + fn default() -> Builder { + Builder { + inner: Ok(ResponseParts::new()), + } + } +} diff --git a/core/tauri-runtime/src/lib.rs b/core/tauri-runtime/src/lib.rs index 7803f6a25aa..b7e4c59f253 100644 --- a/core/tauri-runtime/src/lib.rs +++ b/core/tauri-runtime/src/lib.rs @@ -13,6 +13,7 @@ use uuid::Uuid; #[cfg(windows)] use winapi::shared::windef::HWND; +pub mod http; /// Create window and system tray menus. pub mod menu; /// Types useful for interacting with a user's monitors. @@ -27,6 +28,13 @@ use window::{ DetachedWindow, PendingWindow, WindowEvent, }; +use crate::http::{ + header::{InvalidHeaderName, InvalidHeaderValue}, + method::InvalidMethod, + status::InvalidStatusCode, + InvalidUri, +}; + #[cfg(feature = "system-tray")] #[non_exhaustive] #[derive(Debug)] @@ -123,6 +131,18 @@ pub enum Error { /// Global shortcut error. #[error(transparent)] GlobalShortcut(Box), + #[error("Invalid header name: {0}")] + InvalidHeaderName(#[from] InvalidHeaderName), + #[error("Invalid header value: {0}")] + InvalidHeaderValue(#[from] InvalidHeaderValue), + #[error("Invalid uri: {0}")] + InvalidUri(#[from] InvalidUri), + #[error("Invalid status code: {0}")] + InvalidStatusCode(#[from] InvalidStatusCode), + #[error("Invalid method: {0}")] + InvalidMethod(#[from] InvalidMethod), + #[error("Infallible error, something went really wrong: {0}")] + Infallible(#[from] std::convert::Infallible), } /// Result type. diff --git a/core/tauri-runtime/src/webview.rs b/core/tauri-runtime/src/webview.rs index 3cb87e7af8c..d1b181282b7 100644 --- a/core/tauri-runtime/src/webview.rs +++ b/core/tauri-runtime/src/webview.rs @@ -15,17 +15,13 @@ use tauri_utils::config::{WindowConfig, WindowUrl}; #[cfg(windows)] use winapi::shared::windef::HWND; -use std::{collections::HashMap, fmt, path::PathBuf}; - -type UriSchemeProtocol = - dyn Fn(&str) -> Result, Box> + Send + Sync + 'static; +use std::{fmt, path::PathBuf}; /// The attributes used to create an webview. pub struct WebviewAttributes { pub url: WindowUrl, pub initialization_scripts: Vec, pub data_directory: Option, - pub uri_scheme_protocols: HashMap>, pub file_drop_handler_enabled: bool, } @@ -47,7 +43,6 @@ impl WebviewAttributes { url, initialization_scripts: Vec::new(), data_directory: None, - uri_scheme_protocols: Default::default(), file_drop_handler_enabled: true, } } @@ -64,35 +59,6 @@ impl WebviewAttributes { self } - /// Whether the webview URI scheme protocol is defined or not. - pub fn has_uri_scheme_protocol(&self, name: &str) -> bool { - self.uri_scheme_protocols.contains_key(name) - } - - /// Registers a webview protocol handler. - /// Leverages [setURLSchemeHandler](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler) on macOS, - /// [AddWebResourceRequestedFilter](https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2.addwebresourcerequestedfilter?view=webview2-dotnet-1.0.774.44) on Windows - /// and [webkit-web-context-register-uri-scheme](https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebContext.html#webkit-web-context-register-uri-scheme) on Linux. - /// - /// # Arguments - /// - /// * `uri_scheme` The URI scheme to register, such as `example`. - /// * `protocol` the protocol associated with the given URI scheme. It's a function that takes an URL such as `example://localhost/asset.css`. - pub fn register_uri_scheme_protocol< - N: Into, - H: Fn(&str) -> Result, Box> + Send + Sync + 'static, - >( - mut self, - uri_scheme: N, - protocol: H, - ) -> Self { - let uri_scheme = uri_scheme.into(); - self - .uri_scheme_protocols - .insert(uri_scheme, Box::new(move |data| (protocol)(data))); - self - } - /// Disables the file drop handler. This is required to use drag and drop APIs on the front end on Windows. pub fn disable_file_drop_handler(mut self) -> Self { self.file_drop_handler_enabled = false; @@ -203,13 +169,6 @@ pub struct RpcRequest { pub params: Option, } -/// Uses a custom URI scheme handler to resolve file requests -pub struct CustomProtocol { - /// Handler for protocol - #[allow(clippy::type_complexity)] - pub protocol: Box Result, Box> + Send + Sync>, -} - /// The file drop event payload. #[derive(Debug, Clone)] #[non_exhaustive] diff --git a/core/tauri-runtime/src/window.rs b/core/tauri-runtime/src/window.rs index 67408a29b2e..e77ed6de577 100644 --- a/core/tauri-runtime/src/window.rs +++ b/core/tauri-runtime/src/window.rs @@ -5,13 +5,20 @@ //! A layer between raw [`Runtime`] webview windows and Tauri. use crate::{ + http::{Request as HttpRequest, Response as HttpResponse}, webview::{FileDropHandler, WebviewAttributes, WebviewRpcHandler}, Dispatch, Runtime, WindowBuilder, }; use serde::Serialize; use tauri_utils::config::WindowConfig; -use std::hash::{Hash, Hasher}; +use std::{ + collections::HashMap, + hash::{Hash, Hasher}, +}; + +type UriSchemeProtocol = + dyn Fn(&HttpRequest) -> Result> + Send + Sync + 'static; /// UI scaling utilities. pub mod dpi; @@ -65,6 +72,8 @@ pub struct PendingWindow { /// The [`WebviewAttributes`] that the webview will be created with. pub webview_attributes: WebviewAttributes, + pub uri_scheme_protocols: HashMap>, + /// How to handle RPC calls on the webview window. pub rpc_handler: Option>, @@ -85,6 +94,7 @@ impl PendingWindow { Self { window_builder, webview_attributes, + uri_scheme_protocols: Default::default(), label: label.into(), rpc_handler: None, file_drop_handler: None, @@ -101,12 +111,27 @@ impl PendingWindow { Self { window_builder: <::WindowBuilder>::with_config(window_config), webview_attributes, + uri_scheme_protocols: Default::default(), label: label.into(), rpc_handler: None, file_drop_handler: None, url: "tauri://localhost".to_string(), } } + + pub fn register_uri_scheme_protocol< + N: Into, + H: Fn(&HttpRequest) -> Result> + Send + Sync + 'static, + >( + &mut self, + uri_scheme: N, + protocol: H, + ) { + let uri_scheme = uri_scheme.into(); + self + .uri_scheme_protocols + .insert(uri_scheme, Box::new(move |data| (protocol)(data))); + } } /// A webview window that is not yet managed by Tauri. diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml index 91d7b47d142..20fa7c1ad21 100644 --- a/core/tauri/Cargo.toml +++ b/core/tauri/Cargo.toml @@ -33,7 +33,7 @@ normal = [ "attohttpc" ] [dependencies] serde_json = { version = "1.0", features = [ "raw_value" ] } serde = { version = "1.0", features = [ "derive" ] } -tokio = { version = "1.9", features = [ "rt", "rt-multi-thread", "sync", "fs" ] } +tokio = { version = "1.9", features = [ "rt", "rt-multi-thread", "sync", "fs", "io-util" ] } futures = "0.3" uuid = { version = "0.8", features = [ "v4" ] } url = { version = "2.2" } @@ -164,3 +164,7 @@ path = "../../examples/state/src-tauri/src/main.rs" [[example]] name = "resources" path = "../../examples/resources/src-tauri/src/main.rs" + +[[example]] +name = "streaming" +path = "../../examples/streaming/src-tauri/src/main.rs" diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs index 9dae72f9044..530b5ceeeca 100644 --- a/core/tauri/src/app.rs +++ b/core/tauri/src/app.rs @@ -8,10 +8,11 @@ pub(crate) mod tray; use crate::{ command::{CommandArg, CommandItem}, hooks::{InvokeHandler, OnPageLoad, PageLoadPayload, SetupHook}, - manager::WindowManager, + manager::{CustomProtocol, WindowManager}, plugin::{Plugin, PluginStore}, runtime::{ - webview::{CustomProtocol, WebviewAttributes, WindowBuilder}, + http::{Request as HttpRequest, Response as HttpResponse}, + webview::{WebviewAttributes, WindowBuilder}, window::{PendingWindow, WindowEvent}, Dispatch, ExitRequestedEventAction, RunEvent, Runtime, }, @@ -562,7 +563,7 @@ pub struct Builder { plugins: PluginStore, /// The webview protocols available to all windows. - uri_scheme_protocols: HashMap>, + uri_scheme_protocols: HashMap>>, /// App state. state: StateManager, @@ -803,9 +804,12 @@ impl Builder { /// /// * `uri_scheme` The URI scheme to register, such as `example`. /// * `protocol` the protocol associated with the given URI scheme. It's a function that takes an URL such as `example://localhost/asset.css`. - pub fn register_global_uri_scheme_protocol< + pub fn register_uri_scheme_protocol< N: Into, - H: Fn(&str) -> Result, Box> + Send + Sync + 'static, + H: Fn(&AppHandle, &HttpRequest) -> Result> + + Send + + Sync + + 'static, >( mut self, uri_scheme: N, diff --git a/core/tauri/src/lib.rs b/core/tauri/src/lib.rs index fb2226303e1..ac8087a748f 100644 --- a/core/tauri/src/lib.rs +++ b/core/tauri/src/lib.rs @@ -65,7 +65,7 @@ use serde::Serialize; use std::{collections::HashMap, fmt, sync::Arc}; // Export types likely to be used by the application. -pub use runtime::menu::CustomMenuItem; +pub use runtime::{http, menu::CustomMenuItem}; #[cfg(target_os = "macos")] #[cfg_attr(doc_cfg, doc(cfg(target_os = "macos")))] diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index d62f85ec79c..11634f7f627 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -8,10 +8,11 @@ use crate::{ hooks::{InvokeHandler, OnPageLoad, PageLoadPayload}, plugin::PluginStore, runtime::{ - webview::{ - CustomProtocol, FileDropEvent, FileDropHandler, InvokePayload, WebviewRpcHandler, - WindowBuilder, + http::{ + HttpRange, MimeType, Request as HttpRequest, Response as HttpResponse, + ResponseBuilder as HttpResponseBuilder, }, + webview::{FileDropEvent, FileDropHandler, InvokePayload, WebviewRpcHandler, WindowBuilder}, window::{dpi::PhysicalSize, DetachedWindow, PendingWindow, WindowEvent}, Icon, Runtime, }, @@ -40,9 +41,11 @@ use std::{ collections::{HashMap, HashSet}, fmt, fs::create_dir_all, + io::SeekFrom, sync::{Arc, Mutex, MutexGuard}, }; use tauri_macros::default_runtime; +use tokio::io::{AsyncReadExt, AsyncSeekExt}; use url::Url; const WINDOW_RESIZED_EVENT: &str = "tauri://resize"; @@ -73,7 +76,7 @@ pub struct InnerWindowManager { package_info: PackageInfo, /// The webview protocols protocols available to all windows. - uri_scheme_protocols: HashMap>, + uri_scheme_protocols: HashMap>>, /// The menu set to all windows. menu: Option, /// Maps runtime id to a strongly typed menu id. @@ -103,6 +106,17 @@ impl fmt::Debug for InnerWindowManager { } } +/// Uses a custom URI scheme handler to resolve file requests +pub struct CustomProtocol { + /// Handler for protocol + #[allow(clippy::type_complexity)] + pub protocol: Box< + dyn Fn(&AppHandle, &HttpRequest) -> Result> + + Send + + Sync, + >, +} + #[default_runtime(crate::Wry, wry)] #[derive(Debug)] pub struct WindowManager { @@ -138,7 +152,7 @@ impl WindowManager { plugins: PluginStore, invoke_handler: Box>, on_page_load: Box>, - uri_scheme_protocols: HashMap>, + uri_scheme_protocols: HashMap>>, state: StateManager, window_event_listeners: Vec>, (menu, menu_event_listeners): (Option, Vec>), @@ -228,6 +242,7 @@ impl WindowManager { mut pending: PendingWindow, label: &str, pending_labels: &[String], + app_handle: AppHandle, ) -> crate::Result> { let is_init_global = self.inner.config.build.with_global_tauri; let plugin_init = self @@ -257,6 +272,8 @@ impl WindowManager { )); } + pending.webview_attributes = webview_attributes; + if !pending.window_builder.has_icon() { if let Some(default_window_icon) = &self.inner.default_window_icon { let icon = Icon::Raw(default_window_icon.clone()); @@ -270,34 +287,93 @@ impl WindowManager { } } + let mut registered_scheme_protocols = Vec::new(); + for (uri_scheme, protocol) in &self.inner.uri_scheme_protocols { - if !webview_attributes.has_uri_scheme_protocol(uri_scheme) { - let protocol = protocol.clone(); - webview_attributes = webview_attributes - .register_uri_scheme_protocol(uri_scheme.clone(), move |p| (protocol.protocol)(p)); - } + registered_scheme_protocols.push(uri_scheme.clone()); + let protocol = protocol.clone(); + let app_handle = Mutex::new(app_handle.clone()); + pending.register_uri_scheme_protocol(uri_scheme.clone(), move |p| { + (protocol.protocol)(&app_handle.lock().unwrap(), p) + }); } - if !webview_attributes.has_uri_scheme_protocol("tauri") { - webview_attributes = webview_attributes - .register_uri_scheme_protocol("tauri", self.prepare_uri_scheme_protocol().protocol); + if !registered_scheme_protocols.contains(&"tauri".into()) { + pending.register_uri_scheme_protocol("tauri", self.prepare_uri_scheme_protocol()); + registered_scheme_protocols.push("tauri".into()); } - if !webview_attributes.has_uri_scheme_protocol("asset") { - webview_attributes = webview_attributes.register_uri_scheme_protocol("asset", move |url| { + if !registered_scheme_protocols.contains(&"asset".into()) { + pending.register_uri_scheme_protocol("asset", move |request| { #[cfg(target_os = "windows")] - let path = url.replace("asset://localhost/", ""); + let path = request.uri().replace("asset://localhost/", ""); #[cfg(not(target_os = "windows"))] - let path = url.replace("asset://", ""); + let path = request.uri().replace("asset://", ""); let path = percent_encoding::percent_decode(path.as_bytes()) .decode_utf8_lossy() .to_string(); - let data = crate::async_runtime::block_on(async move { tokio::fs::read(path).await })?; - Ok(data) + let path_for_data = path.clone(); + + // handle 206 (partial range) http request + if let Some(range) = request.headers().get("range") { + let mut status_code = 200; + let path_for_data = path_for_data.clone(); + let mut response = HttpResponseBuilder::new(); + let (response, status_code, data) = crate::async_runtime::block_on(async move { + let mut buf = Vec::new(); + let mut file = tokio::fs::File::open(path_for_data.clone()).await.unwrap(); + // Get the file size + let file_size = file.metadata().await.unwrap().len(); + // parse the range + let range = HttpRange::parse(range.to_str().unwrap(), file_size).unwrap(); + + // FIXME: Support multiple ranges + // let support only 1 range for now + let first_range = range.first(); + if let Some(range) = first_range { + let mut real_length = range.length; + // prevent max_length; + // specially on webview2 + if range.length > file_size / 3 { + // max size sent (400ko / request) + // as it's local file system we can afford to read more often + real_length = 1024 * 400; + } + + // last byte we are reading, the length of the range include the last byte + // who should be skipped on the header + let last_byte = range.start + real_length - 1; + // partial content + status_code = 206; + + response = response + .header("Connection", "Keep-Alive") + .header("Accept-Ranges", "bytes") + .header("Content-Length", real_length) + .header( + "Content-Range", + format!("bytes {}-{}/{}", range.start, last_byte, file_size), + ); + + file.seek(SeekFrom::Start(range.start)).await.unwrap(); + file.take(real_length).read_to_end(&mut buf).await.unwrap(); + } + + (response, status_code, buf) + }); + + if !data.is_empty() { + let mime_type = MimeType::parse(&data, &path); + return response.mimetype(&mime_type).status(status_code).body(data); + } + } + + let data = + crate::async_runtime::block_on(async move { tokio::fs::read(path_for_data).await })?; + let mime_type = MimeType::parse(&data, &path); + HttpResponseBuilder::new().mimetype(&mime_type).body(data) }); } - pending.webview_attributes = webview_attributes; - Ok(pending) } @@ -330,71 +406,78 @@ impl WindowManager { }) } - fn prepare_uri_scheme_protocol(&self) -> CustomProtocol { + #[allow(clippy::type_complexity)] + fn prepare_uri_scheme_protocol( + &self, + ) -> Box Result> + Send + Sync> + { let assets = self.inner.assets.clone(); let manager = self.clone(); - CustomProtocol { - protocol: Box::new(move |path| { - let mut path = path - .split(&['?', '#'][..]) - // ignore query string - .next() - .unwrap() - .to_string() - .replace("tauri://localhost", ""); - if path.ends_with('/') { - path.pop(); - } - path = percent_encoding::percent_decode(path.as_bytes()) - .decode_utf8_lossy() - .to_string(); - let path = if path.is_empty() { - // if the url is `tauri://localhost`, we should load `index.html` - "index.html".to_string() - } else { - // skip leading `/` - path.chars().skip(1).collect::() - }; - let is_javascript = - path.ends_with(".js") || path.ends_with(".cjs") || path.ends_with(".mjs"); - let is_html = path.ends_with(".html"); - - let asset_response = assets - .get(&path.as_str().into()) - .or_else(|| assets.get(&format!("{}/index.html", path.as_str()).into())) - .or_else(|| { - #[cfg(debug_assertions)] - eprintln!("Asset `{}` not found; fallback to index.html", path); // TODO log::error! - assets.get(&"index.html".into()) - }) - .ok_or(crate::Error::AssetNotFound(path)) - .map(Cow::into_owned); - match asset_response { - Ok(asset) => { - if is_javascript || is_html { - let contents = String::from_utf8_lossy(&asset).into_owned(); - Ok( - contents - .replacen( - "__TAURI__INVOKE_KEY_TOKEN__", - &manager.generate_invoke_key().to_string(), - 1, - ) - .as_bytes() - .to_vec(), + Box::new(move |request| { + let mut path = request + .uri() + .split(&['?', '#'][..]) + // ignore query string + .next() + .unwrap() + .to_string() + .replace("tauri://localhost", ""); + if path.ends_with('/') { + path.pop(); + } + path = percent_encoding::percent_decode(path.as_bytes()) + .decode_utf8_lossy() + .to_string(); + let path = if path.is_empty() { + // if the url is `tauri://localhost`, we should load `index.html` + "index.html".to_string() + } else { + // skip leading `/` + path.chars().skip(1).collect::() + }; + let is_javascript = path.ends_with(".js") || path.ends_with(".cjs") || path.ends_with(".mjs"); + let is_html = path.ends_with(".html"); + + let asset_response = assets + .get(&path.as_str().into()) + .or_else(|| assets.get(&format!("{}/index.html", path.as_str()).into())) + .or_else(|| { + #[cfg(debug_assertions)] + eprintln!("Asset `{}` not found; fallback to index.html", path); // TODO log::error! + assets.get(&"index.html".into()) + }) + .ok_or_else(|| crate::Error::AssetNotFound(path.clone())) + .map(Cow::into_owned); + + match asset_response { + Ok(asset) => { + let final_data = match is_javascript || is_html { + true => String::from_utf8_lossy(&asset) + .into_owned() + .replacen( + "__TAURI__INVOKE_KEY_TOKEN__", + &manager.generate_invoke_key().to_string(), + 1, ) - } else { - Ok(asset) - } - } - Err(e) => { - #[cfg(debug_assertions)] - eprintln!("{:?}", e); // TODO log::error! - Err(Box::new(e)) - } + .as_bytes() + .to_vec(), + false => asset, + }; + + let mime_type = MimeType::parse(&final_data, &path); + Ok( + HttpResponseBuilder::new() + .mimetype(&mime_type) + .body(final_data)?, + ) } - }), - } + Err(e) => { + #[cfg(debug_assertions)] + eprintln!("{:?}", e); // TODO log::error! + Err(Box::new(e)) + } + } + }) } fn prepare_file_drop(&self, app_handle: AppHandle) -> FileDropHandler { @@ -560,7 +643,7 @@ impl WindowManager { if is_local { let label = pending.label.clone(); - pending = self.prepare_pending_window(pending, &label, pending_labels)?; + pending = self.prepare_pending_window(pending, &label, pending_labels, app_handle.clone())?; pending.rpc_handler = Some(self.prepare_rpc_handler(app_handle.clone())); } diff --git a/examples/api/public/build/bundle.js b/examples/api/public/build/bundle.js index ec9f6df4420..20f3b666bf5 100644 --- a/examples/api/public/build/bundle.js +++ b/examples/api/public/build/bundle.js @@ -1,4 +1,4 @@ -var app=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(t)}function o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,n,i){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function r(e,t){e.appendChild(t)}function c(e,t,n){e.insertBefore(t,n||null)}function l(e){e.parentNode.removeChild(e)}function u(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function f(e){return function(t){return t.preventDefault(),e.call(this,t)}}function g(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e){return""===e?null:+e}function b(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function _(e,t){e.value=null==t?"":t}function v(e,t,n,i){e.style.setProperty(t,n,i?"important":"")}function w(e,t){for(let n=0;n{U.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}}function K(e){e&&e.c()}function B(e,n,a,s){const{fragment:r,on_mount:c,on_destroy:l,after_update:u}=e.$$;r&&r.m(n,a),s||j((()=>{const n=c.map(t).filter(o);l?l.push(...n):i(n),e.$$.on_mount=[]})),u.forEach(j)}function H(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(E.push(e),W||(W=!0,A.then(F)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=i.length?i[0]:n;return p.ctx&&r(p.ctx[e],p.ctx[e]=o)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](o),h&&G(t,e)),n})):[],p.update(),h=!0,i(p.before_update),p.fragment=!!s&&s(p.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);p.fragment&&p.fragment.l(e),e.forEach(l)}else p.fragment&&p.fragment.c();o.intro&&N(t.$$.fragment),B(t,o.target,o.anchor,o.customElement),F()}$(d)}class J{$destroy(){H(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const X=[];function Y(t,n=e){let i;const o=[];function s(e){if(a(t,e)&&(t=e,i)){const e=!X.length;for(let e=0;e{const e=o.indexOf(c);-1!==e&&o.splice(e,1),0===o.length&&(i(),i=null)}}}} +var app=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(t)}function o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(t,n,i){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function r(e,t){e.appendChild(t)}function c(e,t,n){e.insertBefore(t,n||null)}function l(e){e.parentNode.removeChild(e)}function u(e,t){for(let n=0;ne.removeEventListener(t,n,i)}function f(e){return function(t){return t.preventDefault(),e.call(this,t)}}function g(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e){return""===e?null:+e}function b(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function v(e,t){e.value=null==t?"":t}function _(e,t,n,i){e.style.setProperty(t,n,i?"important":"")}function w(e,t){for(let n=0;n{U.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}}function K(e){e&&e.c()}function B(e,n,a,s){const{fragment:r,on_mount:c,on_destroy:l,after_update:u}=e.$$;r&&r.m(n,a),s||j((()=>{const n=c.map(t).filter(o);l?l.push(...n):i(n),e.$$.on_mount=[]})),u.forEach(j)}function H(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function G(e,t){-1===e.$$.dirty[0]&&(S.push(e),W||(W=!0,A.then(F)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const o=i.length?i[0]:n;return p.ctx&&r(p.ctx[e],p.ctx[e]=o)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](o),h&&G(t,e)),n})):[],p.update(),h=!0,i(p.before_update),p.fragment=!!s&&s(p.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);p.fragment&&p.fragment.l(e),e.forEach(l)}else p.fragment&&p.fragment.c();o.intro&&I(t.$$.fragment),B(t,o.target,o.anchor,o.customElement),F()}$(d)}class J{$destroy(){H(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const X=[];function Y(t,n=e){let i;const o=[];function s(e){if(a(t,e)&&(t=e,i)){const e=!X.length;for(let e=0;e{const e=o.indexOf(c);-1!==e&&o.splice(e,1),0===o.length&&(i(),i=null)}}}} /*! * hotkeys-js v3.8.5 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies. @@ -7,5 +7,5 @@ var app=function(){"use strict";function e(){}function t(e){return e()}function * http://jaywcjlove.github.io/hotkeys * * Licensed under the MIT license. - */var Q="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Z(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function ee(e,t){for(var n=t.slice(0,t.length-1),i=0;i=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var ne={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Q?173:189,"=":Q?61:187,";":Q?59:186,"'":222,"[":219,"]":221,"\\":220},ie={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},oe={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ae={16:!1,18:!1,17:!1,91:!1},se={},re=1;re<20;re++)ne["f".concat(re)]=111+re;var ce=[],le="all",ue=[],de=function(e){return ne[e.toLowerCase()]||ie[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function pe(e){le=e||"all"}function he(){return le||"all"}var me=function(e){var t=e.key,n=e.scope,i=e.method,o=e.splitKey,a=void 0===o?"+":o;te(t).forEach((function(e){var t=e.split(a),o=t.length,s=t[o-1],r="*"===s?"*":de(s);if(se[r]){n||(n=he());var c=o>1?ee(ie,t):[];se[r]=se[r].map((function(e){return(!i||e.method===i)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,o=!0,a=0;a0,ae)Object.prototype.hasOwnProperty.call(ae,o)&&(!ae[o]&&t.mods.indexOf(+o)>-1||ae[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||ae[16]||ae[18]||ae[17]||ae[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ge(e){var t=se["*"],n=e.keyCode||e.which||e.charCode;if(ye.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===ce.indexOf(n)&&229!==n&&ce.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=oe[t];e[t]&&-1===ce.indexOf(n)?ce.push(n):!e[t]&&ce.indexOf(n)>-1?ce.splice(ce.indexOf(n),1):"metaKey"===t&&e[t]&&3===ce.length&&(e.ctrlKey||e.shiftKey||e.altKey||(ce=ce.slice(ce.indexOf(n))))})),n in ae){for(var i in ae[n]=!0,ie)ie[i]===n&&(ye[i]=!0);if(!t)return}for(var o in ae)Object.prototype.hasOwnProperty.call(ae,o)&&(ae[o]=e[oe[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===ce.indexOf(17)&&ce.push(17),-1===ce.indexOf(18)&&ce.push(18),ae[17]=!0,ae[18]=!0);var a=he();if(t)for(var s=0;s1&&(o=ee(ie,e)),(e="*"===(e=e[e.length-1])?"*":de(e))in se||(se[e]=[]),se[e].push({keyup:c,keydown:l,scope:a,mods:o,shortcut:i[r],method:n,key:i[r],splitKey:u});void 0!==s&&!function(e){return ue.indexOf(e)>-1}(s)&&window&&(ue.push(s),Z(s,"keydown",(function(e){ge(e)})),Z(window,"focus",(function(){ce=[]})),Z(s,"keyup",(function(e){ge(e),function(e){var t=e.keyCode||e.which||e.charCode,n=ce.indexOf(t);if(n>=0&&ce.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&ce.splice(0,ce.length),93!==t&&224!==t||(t=91),t in ae)for(var i in ae[t]=!1,ie)ie[i]===t&&(ye[i]=!1)}(e)})))}var be,_e,ve={setScope:pe,getScope:he,deleteScope:function(e,t){var n,i;for(var o in e||(e=he()),se)if(Object.prototype.hasOwnProperty.call(se,o))for(n=se[o],i=0;i1?t-1:0),i=1;i(t&&Reflect.deleteProperty(window,n),e?.(i)),writable:!1,configurable:!0}),n}async function ke(e,t={}){return new Promise(((n,i)=>{const o=Me((e=>{n(e),Reflect.deleteProperty(window,a)}),!0),a=Me((e=>{i(e),Reflect.deleteProperty(window,o)}),!0);window.rpc.notify(e,{__invokeKey:__TAURI_INVOKE_KEY__,callback:o,error:a,...t})}))}function $e(e){return navigator.userAgent.includes("Windows")?`https://asset.${e}`:`asset://${e}`}async function Ce(e){return ke("tauri",e)}Object.freeze({__proto__:null,transformCallback:Me,invoke:ke,convertFileSrc:$e});class Te{constructor(){this.eventListeners=Object.create(null)}addEventListener(e,t){e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t]}_emit(e,t){if(e in this.eventListeners){const n=this.eventListeners[e];for(const e of n)e(t)}}on(e,t){return this.addEventListener(e,t),this}}class Oe{constructor(e){this.pid=e}async write(e){return Ce({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:e}})}async kill(){return Ce({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}}class Ee extends Te{constructor(e,t=[],n){super(),this.stdout=new Te,this.stderr=new Te,this.program=e,this.args="string"==typeof t?[t]:t,this.options=n??{}}static sidecar(e,t=[],n){const i=new Ee(e,t,n);return i.options.sidecar=!0,i}async spawn(){return async function(e,t,n,i){return"object"==typeof n&&Object.freeze(n),Ce({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:"string"==typeof n?[n]:n,options:i,onEventFn:Me(e)}})}((e=>{switch(e.event){case"Error":this._emit("error",e.payload);break;case"Terminated":this._emit("close",e.payload);break;case"Stdout":this.stdout._emit("data",e.payload);break;case"Stderr":this.stderr._emit("data",e.payload)}}),this.program,this.args,this.options).then((e=>new Oe(e)))}async execute(){return new Promise(((e,t)=>{this.on("error",t);const n=[],i=[];this.stdout.on("data",(e=>{n.push(e)})),this.stderr.on("data",(e=>{i.push(e)})),this.on("close",(t=>{e({code:t.code,signal:t.signal,stdout:n.join("\n"),stderr:i.join("\n")})})),this.spawn().catch(t)}))}}async function Se(e,t){return Ce({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}async function Pe(){return Ce({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function ze(){return Ce({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Ae(){return Ce({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function We(e=0){return Ce({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function je(){return Ce({__tauriModule:"Process",message:{cmd:"relaunch"}})}function Le(t){let n,o,a,s,u,f,y,_,v,w,x,M,k,$,C,T,O,E,S,P,z;return{c(){n=d("h1"),n.textContent="Welcome",o=h(),a=d("p"),a.textContent="Tauri's API capabilities using the ` @tauri-apps/api ` package. It's used as\n the main validation app, serving as the testbed of our development process. In\n the future, this app will be used on Tauri's integration tests.",s=h(),u=d("p"),f=p("Current App version: "),y=p(t[0]),_=h(),v=d("p"),w=p("Current Tauri version: "),x=p(t[1]),M=h(),k=d("p"),$=p("Current App name: "),C=p(t[2]),T=h(),O=d("button"),O.textContent="Close application",E=h(),S=d("button"),S.textContent="Relaunch application",g(O,"class","button"),g(S,"class","button")},m(e,i){c(e,n,i),c(e,o,i),c(e,a,i),c(e,s,i),c(e,u,i),r(u,f),r(u,y),c(e,_,i),c(e,v,i),r(v,w),r(v,x),c(e,M,i),c(e,k,i),r(k,$),r(k,C),c(e,T,i),c(e,O,i),c(e,E,i),c(e,S,i),P||(z=[m(O,"click",t[3]),m(S,"click",t[4])],P=!0)},p(e,[t]){1&t&&b(y,e[0]),2&t&&b(x,e[1]),4&t&&b(C,e[2])},i:e,o:e,d(e){e&&l(n),e&&l(o),e&&l(a),e&&l(s),e&&l(u),e&&l(_),e&&l(v),e&&l(M),e&&l(k),e&&l(T),e&&l(O),e&&l(E),e&&l(S),P=!1,i(z)}}}function De(e,t,n){let i=0,o=0,a="Unknown";return ze().then((e=>{n(2,a=e)})),Pe().then((e=>{n(0,i=e)})),Ae().then((e=>{n(1,o=e)})),[i,o,a,async function(){await We()},async function(){await je()}]}Object.freeze({__proto__:null,Command:Ee,Child:Oe,open:Se}),Object.freeze({__proto__:null,getName:ze,getVersion:Pe,getTauriVersion:Ae}),Object.freeze({__proto__:null,exit:We,relaunch:je});class Fe extends J{constructor(e){super(),V(this,e,De,Le,a,{})}}async function Re(){return Ce({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function Ue(t){let n,i,o,a,s,u,f,y,b,_,v;return{c(){n=d("div"),i=p("This binary can be run on the terminal and takes the following arguments:\n "),o=d("ul"),o.innerHTML="
  • --config PATH
  • \n
  • --theme light|dark|system
  • \n
  • --verbose
  • ",a=p("\n Additionally, it has a "),s=d("i"),s.textContent="update --background",u=p(" subcommand.\n Note that the arguments are only parsed, not implemented.\n "),f=d("br"),y=h(),b=d("button"),b.textContent="Get matches",g(b,"class","button"),g(b,"id","cli-matches")},m(e,l){c(e,n,l),r(n,i),r(n,o),r(n,a),r(n,s),r(n,u),r(n,f),r(n,y),r(n,b),_||(v=m(b,"click",t[0]),_=!0)},p:e,i:e,o:e,d(e){e&&l(n),_=!1,v()}}}function Ie(e,t,n){let{onMessage:i}=t;return e.$$set=e=>{"onMessage"in e&&n(1,i=e.onMessage)},[function(){Re().then(i).catch(i)},i]}Object.freeze({__proto__:null,getMatches:Re});class Ne extends J{constructor(e){super(),V(this,e,Ie,Ue,a,{onMessage:1})}}async function qe(e,t,n){await Ce({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Ke(e){return Ce({__tauriModule:"Event",message:{cmd:"unlisten",eventId:e}})}async function Be(e,t){return Ce({__tauriModule:"Event",message:{cmd:"listen",event:e,handler:Me(t)}}).then((e=>async()=>Ke(e)))}async function He(e,t){return Be(e,(e=>{t(e),Ke(e.id).catch((()=>{}))}))}async function Ge(e,t){return qe(e,void 0,t)}function Ve(t){let n,o,a,s,u,p,f,y;return{c(){n=d("div"),o=d("button"),o.textContent="Call Log API",a=h(),s=d("button"),s.textContent="Call Request (async) API",u=h(),p=d("button"),p.textContent="Send event to Rust",g(o,"class","button"),g(o,"id","log"),g(s,"class","button"),g(s,"id","request"),g(p,"class","button"),g(p,"id","event")},m(e,i){c(e,n,i),r(n,o),r(n,a),r(n,s),r(n,u),r(n,p),f||(y=[m(o,"click",t[0]),m(s,"click",t[1]),m(p,"click",t[2])],f=!0)},p:e,i:e,o:e,d(e){e&&l(n),f=!1,i(y)}}}function Je(e,t,n){let i,{onMessage:o}=t;return T((async()=>{i=await Be("rust-event",o)})),O((()=>{i&&i()})),e.$$set=e=>{"onMessage"in e&&n(3,o=e.onMessage)},[function(){ke("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})},function(){ke("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(o).catch(o)},function(){Ge("js-event","this is the payload string")},o]}Object.freeze({__proto__:null,listen:Be,once:He,emit:Ge});class Xe extends J{constructor(e){super(),V(this,e,Je,Ve,a,{onMessage:3})}}async function Ye(e={}){return"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function Qe(e={}){return"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function Ze(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"readBinaryFile",path:e,options:t}})}function et(e){const t=function(e){if(e.length<65536)return String.fromCharCode.apply(null,Array.from(e));let t="";const n=e.length;for(let i=0;i{"onMessage"in e&&n(6,i=e.onMessage)},[o,a,s,r,function(){Ye({defaultPath:o,filters:a?[{name:"Tauri Example",extensions:a.split(",").map((e=>e.trim()))}]:[],multiple:s,directory:r}).then((function(e){if(Array.isArray(e))i(e);else{var t=e,n=t.match(/\S+\.\S+$/g);Ze(t).then((function(o){var a,s,r,c;n&&(t.includes(".png")||t.includes(".jpg"))?(a=new Uint8Array(o),s=function(e){i('')},r=new Blob([a],{type:"application/octet-binary"}),(c=new FileReader).onload=function(e){var t=e.target.result;s(t.substr(t.indexOf(",")+1))},c.readAsDataURL(r)):i(e)})).catch(i(e))}})).catch(i)},function(){Qe({defaultPath:o,filters:a?[{name:"Tauri Example",extensions:a.split(",").map((e=>e.trim()))}]:[]}).then(i).catch(i)},i,function(){o=this.value,n(0,o)},function(){a=this.value,n(1,a)},function(){s=this.checked,n(2,s)},function(){r=this.checked,n(3,r)}]}Object.freeze({__proto__:null,open:Ye,save:Qe}),function(e){e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Current=19]="Current"}(be||(be={})),Object.freeze({__proto__:null,get BaseDirectory(){return be},get Dir(){return be},readTextFile:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})},readBinaryFile:Ze,writeFile:async function(e,t={}){return"object"==typeof t&&Object.freeze(t),"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:e.path,contents:e.contents,options:t}})},writeBinaryFile:async function(e,t={}){return"object"==typeof t&&Object.freeze(t),"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Fs",message:{cmd:"writeBinaryFile",path:e.path,contents:et(e.contents),options:t}})},readDir:tt,createDir:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})},removeDir:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})},copyFile:async function(e,t,n={}){return Ce({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})},removeFile:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})},renameFile:async function(e,t,n={}){return Ce({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}});class ot extends J{constructor(e){var t;super(),document.getElementById("svelte-1eg58yg-style")||((t=d("style")).id="svelte-1eg58yg-style",t.textContent="#dialog-filter.svelte-1eg58yg{width:260px}",r(document.head,t)),V(this,e,it,nt,a,{onMessage:6})}}function at(e,t,n){const i=e.slice();return i[8]=t[n],i}function st(t){let n,i,o=t[8][0]+"";return{c(){n=d("option"),i=p(o),n.__value=t[8][1],n.value=n.__value},m(e,t){c(e,n,t),r(n,i)},p:e,d(e){e&&l(n)}}}function rt(t){let n,o,a,s,p,y,b,v,w,x,M,k,$,C=t[2],T=[];for(let e=0;eisNaN(parseInt(e)))).map((e=>[e,be[e]]));return e.$$set=e=>{"onMessage"in e&&n(5,o=e.onMessage)},[a,i,s,function(){const e=a.match(/\S+\.\S+$/g),t={dir:ct()};(e?Ze(a,t):tt(a,t)).then((function(t){if(e)if(a.includes(".png")||a.includes(".jpg"))!function(e,t){const n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(e){const n=e.target.result;t(n.substr(n.indexOf(",")+1))},i.readAsDataURL(n)}(new Uint8Array(t),(function(e){o('')}));else{const e=String.fromCharCode.apply(null,t);o(''),setTimeout((()=>{const t=document.getElementById("file-response");t.value=e,document.getElementById("file-save").addEventListener("click",(function(){writeFile({file:a,contents:t.value},{dir:ct()}).catch(o)}))}))}else o(t)})).catch(o)},function(){n(1,i.src=$e(a),i)},o,function(){a=this.value,n(0,a)},function(e){S[e?"unshift":"push"]((()=>{i=e,n(1,i)}))}]}class ut extends J{constructor(e){super(),V(this,e,lt,rt,a,{onMessage:5})}}!function(e){e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary"}(_e||(_e={}));class dt{constructor(e,t){this.type=e,this.payload=t}static form(e){return new dt("Form",e)}static json(e){return new dt("Json",e)}static text(e){return new dt("Text",e)}static bytes(e){return new dt("Bytes",e)}}class pt{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.data=e.data}}class ht{constructor(e){this.id=e}async drop(){return Ce({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){const t=!e.responseType||e.responseType===_e.JSON;return t&&(e.responseType=_e.Text),Ce({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then((e=>{const n=new pt(e);if(t){try{n.data=JSON.parse(n.data)}catch(e){if(n.ok)throw Error(`Failed to parse response \`${n.data}\` as JSON: ${e};\n try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return n}return n}))}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}}async function mt(e){return Ce({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then((e=>new ht(e)))}let ft=null;function gt(t){let n,o,a,s,u,p,y,b,x,M,k,$,C,T,O,E,S;return{c(){n=d("form"),o=d("select"),a=d("option"),a.textContent="GET",s=d("option"),s.textContent="POST",u=d("option"),u.textContent="PUT",p=d("option"),p.textContent="PATCH",y=d("option"),y.textContent="DELETE",b=h(),x=d("input"),M=h(),k=d("br"),$=h(),C=d("textarea"),T=h(),O=d("button"),O.textContent="Make request",a.__value="GET",a.value=a.__value,s.__value="POST",s.value=s.__value,u.__value="PUT",u.value=u.__value,p.__value="PATCH",p.value=p.__value,y.__value="DELETE",y.value=y.__value,g(o,"class","button"),g(o,"id","request-method"),void 0===t[0]&&j((()=>t[5].call(o))),g(x,"id","request-url"),g(x,"placeholder","Type the request URL..."),g(C,"id","request-body"),g(C,"placeholder","Request body"),g(C,"rows","5"),v(C,"width","100%"),v(C,"margin-right","10px"),v(C,"font-size","12px"),g(O,"class","button"),g(O,"id","make-request")},m(e,i){c(e,n,i),r(n,o),r(o,a),r(o,s),r(o,u),r(o,p),r(o,y),w(o,t[0]),r(n,b),r(n,x),_(x,t[1]),r(n,M),r(n,k),r(n,$),r(n,C),_(C,t[2]),r(n,T),r(n,O),E||(S=[m(o,"change",t[5]),m(x,"input",t[6]),m(C,"input",t[7]),m(n,"submit",f(t[3]))],E=!0)},p(e,[t]){1&t&&w(o,e[0]),2&t&&x.value!==e[1]&&_(x,e[1]),4&t&&_(C,e[2])},i:e,o:e,d(e){e&&l(n),E=!1,i(S)}}}function yt(e,t,n){let i="GET",o="https://jsonplaceholder.typicode.com/todos/1",a="",{onMessage:s}=t;return e.$$set=e=>{"onMessage"in e&&n(4,s=e.onMessage)},[i,o,a,async function(){const e=await mt(),t={url:o||""||"",method:i||"GET"||"GET"};a.startsWith("{")&&a.endsWith("}")||a.startsWith("[")&&a.endsWith("]")?t.body=dt.json(JSON.parse(a)):""!==a&&(t.body=dt.text(a)),e.request(t).then(s).catch(s)},s,function(){i=x(this),n(0,i)},function(){o=this.value,n(1,o)},function(){a=this.value,n(2,a)}]}Object.freeze({__proto__:null,getClient:mt,fetch:async function(e,t){return null===ft&&(ft=await mt()),ft.request({url:e,method:t?.method??"GET",...t})},Body:dt,Client:ht,Response:pt,get ResponseType(){return _e}});class bt extends J{constructor(e){super(),V(this,e,yt,gt,a,{onMessage:4})}}function _t(t){let n,i,o;return{c(){n=d("button"),n.textContent="Send test notification",g(n,"class","button"),g(n,"id","notification")},m(e,a){c(e,n,a),i||(o=m(n,"click",t[0]),i=!0)},p:e,i:e,o:e,d(e){e&&l(n),i=!1,o()}}}function vt(){new Notification("Notification title",{body:"This is the notification body"})}function wt(e,t,n){let{onMessage:i}=t;return e.$$set=e=>{"onMessage"in e&&n(1,i=e.onMessage)},[function(){"default"===Notification.permission?Notification.requestPermission().then((function(e){"granted"===e?vt():i("Permission is "+e)})).catch(i):"granted"===Notification.permission?vt():i("Permission is denied")},i]}class xt extends J{constructor(e){super(),V(this,e,wt,_t,a,{onMessage:1})}}class Mt{constructor(e,t){this.type="Logical",this.width=e,this.height=t}}class kt{constructor(e,t){this.type="Logical",this.x=e,this.y=t}}var $t;function Ct(){return new Pt(window.__TAURI__.__currentWindow.label,{skip:!0})}function Tt(){return window.__TAURI__.__windows.map((e=>new Pt(e.label,{skip:!0})))}!function(e){e[e.Critical=1]="Critical",e[e.Informational=2]="Informational"}($t||($t={}));const Ot=["tauri://created","tauri://error"];class Et{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve((()=>{const n=this.listeners[e];n.splice(n.indexOf(t),1)})):Be(e,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve((()=>{const n=this.listeners[e];n.splice(n.indexOf(t),1)})):He(e,t)}async emit(e,t){if(Ot.includes(e)){for(const n of this.listeners[e]||[])n({event:e,id:-1,payload:t});return Promise.resolve()}return qe(e,this.label,t)}_handleTauriEvent(e,t){return!!Ot.includes(e)&&(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0)}}class St extends Et{async scaleFactor(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}})}async outerPosition(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}})}async innerSize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}})}async outerSize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}})}async isFullscreen(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async center(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(t=e===$t.Critical?{type:"Critical"}:{type:"Informational"}),Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:e}}}}})}async setSkipTaskbar(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async startDragging(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}}class Pt extends St{constructor(e,t={}){super(e),t?.skip||Ce({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then((async()=>this.emit("tauri://created"))).catch((async e=>this.emit("tauri://error",e)))}static getByLabel(e){return Tt().some((t=>t.label===e))?new Pt(e,{skip:!0}):null}}const zt=new Pt(null,{skip:!0});function At(e,t,n){const i=e.slice();return i[44]=t[n],i}function Wt(e){let t,n,i,o=e[44]+"";return{c(){t=d("option"),n=p(o),t.__value=i=e[44],t.value=t.__value},m(e,i){c(e,t,i),r(t,n)},p(e,a){2&a[0]&&o!==(o=e[44]+"")&&b(n,o),2&a[0]&&i!==(i=e[44])&&(t.__value=i,t.value=t.__value)},d(e){e&&l(t)}}}function jt(t){let n,o,a,s,b,x,M,k,$,C,T,O,E,S,P,z,A,W,L,D,F,R,U,I,N,q,K,B,H,G,V,J,X,Y,Q,Z,ee,te,ne,ie,oe,ae,se,re,ce,le,ue,de,pe,he,me,fe,ge,ye,be,_e,ve,we,xe,Me,ke,$e,Ce,Te,Oe,Ee,Se,Pe,ze,Ae,We,je,Le,De,Fe,Re,Ue,Ie,Ne,qe,Ke,Be,He,Ge,Ve,Je,Xe,Ye,Qe,Ze=Object.keys(t[1]),et=[];for(let e=0;et[26].call(o))),g(x,"type","checkbox"),g(C,"type","checkbox"),g(E,"title","Unminimizes after 2 seconds"),g(P,"title","Unminimizes after 2 seconds"),g(A,"title","Visible again after 2 seconds"),g(D,"type","checkbox"),g(I,"type","checkbox"),g(B,"type","checkbox"),g(J,"type","checkbox"),g(ae,"type","number"),g(ae,"min","0"),g(ae,"class","svelte-b76pvm"),g(le,"type","number"),g(le,"min","0"),g(le,"class","svelte-b76pvm"),g(ne,"class","flex col grow svelte-b76pvm"),g(me,"type","number"),g(me,"min","400"),g(me,"class","svelte-b76pvm"),g(be,"type","number"),g(be,"min","400"),g(be,"class","svelte-b76pvm"),g(de,"class","flex col grow svelte-b76pvm"),g(Me,"type","number"),g(Me,"class","svelte-b76pvm"),g(Te,"type","number"),g(Te,"class","svelte-b76pvm"),g(ve,"class","flex col grow svelte-b76pvm"),g(ze,"type","number"),g(ze,"min","400"),g(ze,"class","svelte-b76pvm"),g(Le,"type","number"),g(Le,"min","400"),g(Le,"class","svelte-b76pvm"),g(Ee,"class","flex col grow svelte-b76pvm"),g(te,"class","window-controls flex flex-row svelte-b76pvm"),g(n,"class","flex col"),g(Re,"id","title"),g(Ie,"class","button"),g(Ie,"type","submit"),v(Fe,"margin-top","24px"),g(Ke,"id","url"),g(He,"class","button"),g(He,"id","open-url"),v(qe,"margin-top","24px"),g(Ve,"class","button"),g(Ve,"title","Minimizes the window, requests attention for 3s and then resets it"),g(Xe,"class","button")},m(e,i){c(e,n,i),r(n,o);for(let e=0;e{"onMessage"in e&&n(25,a=e.onMessage)},e.$$.update=()=>{7&e.$$.dirty[0]&&o[i].setResizable(r),11&e.$$.dirty[0]&&(c?o[i].maximize():o[i].unmaximize()),19&e.$$.dirty[0]&&o[i].setDecorations(u),35&e.$$.dirty[0]&&o[i].setAlwaysOnTop(d),67&e.$$.dirty[0]&&o[i].setFullscreen(p),387&e.$$.dirty[0]&&o[i].setSize(new Mt(h,m)),1539&e.$$.dirty[0]&&(f&&g?o[i].setMinSize(new Mt(f,g)):o[i].setMinSize(null)),6147&e.$$.dirty[0]&&(b&&_?o[i].setMaxSize(new Mt(b,_)):o[i].setMaxSize(null)),24579&e.$$.dirty[0]&&o[i].setPosition(new kt(v,w))},[i,o,r,c,u,d,p,h,m,f,g,b,_,v,w,s,l,M,function(){Se(s)},function(){o[i].setTitle(M)},function(){o[i].hide(),setTimeout(o[i].show,2e3)},function(){o[i].minimize(),setTimeout(o[i].unminimize,2e3)},function(){Ye({multiple:!1}).then(o[i].setIcon)},function(){const e=Math.random().toString(),t=new Pt(e);n(1,o[e]=t,o),t.once("tauri://error",(function(){a("Error creating new webview")}))},async function(){await o[i].minimize(),await o[i].requestUserAttention($t.Critical),await new Promise((e=>setTimeout(e,3e3))),await o[i].requestUserAttention(null)},a,function(){i=x(this),n(0,i),n(1,o)},function(){r=this.checked,n(2,r)},function(){c=this.checked,n(3,c)},()=>o[i].center(),function(){l=this.checked,n(16,l)},function(){u=this.checked,n(4,u)},function(){d=this.checked,n(5,d)},function(){p=this.checked,n(6,p)},function(){v=y(this.value),n(13,v)},function(){w=y(this.value),n(14,w)},function(){h=y(this.value),n(7,h)},function(){m=y(this.value),n(8,m)},function(){f=y(this.value),n(9,f)},function(){g=y(this.value),n(10,g)},function(){b=y(this.value),n(11,b)},function(){_=y(this.value),n(12,_)},function(){M=this.value,n(17,M)},function(){s=this.value,n(15,s)}]}Object.freeze({__proto__:null,WebviewWindow:Pt,WebviewWindowHandle:Et,WindowManager:St,getCurrent:Ct,getAll:Tt,appWindow:zt,LogicalSize:Mt,PhysicalSize:class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new Mt(this.width/e,this.height/e)}},LogicalPosition:kt,PhysicalPosition:class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new kt(this.x/e,this.y/e)}},get UserAttentionType(){return $t},currentMonitor:async function(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}})},primaryMonitor:async function(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}})},availableMonitors:async function(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}})}});class Dt extends J{constructor(e){var t;super(),document.getElementById("svelte-b76pvm-style")||((t=d("style")).id="svelte-b76pvm-style",t.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}",r(document.head,t)),V(this,e,Lt,jt,a,{onMessage:25},[-1,-1])}}async function Ft(e,t){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:Me(t)}})}async function Rt(e){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function Ut(){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function It(e,t,n){const i=e.slice();return i[9]=t[n],i}function Nt(e){let t,n,i,o,a,s,u=e[9]+"";function f(){return e[8](e[9])}return{c(){t=d("div"),n=p(u),i=h(),o=d("button"),o.textContent="Unregister",g(o,"type","button")},m(e,l){c(e,t,l),r(t,n),r(t,i),r(t,o),a||(s=m(o,"click",f),a=!0)},p(t,i){e=t,2&i&&u!==(u=e[9]+"")&&b(n,u)},d(e){e&&l(t),a=!1,s()}}}function qt(t){let n,i,o;return{c(){n=d("button"),n.textContent="Unregister all",g(n,"type","button")},m(e,a){c(e,n,a),i||(o=m(n,"click",t[5]),i=!0)},p:e,d(e){e&&l(n),i=!1,o()}}}function Kt(t){let n,o,a,s,p,f,y,b,v,w,x=t[1],M=[];for(let e=0;en(1,i=e)));let r="CmdOrControl+X";function c(e){const t=e;Rt(t).then((()=>{a.update((e=>e.filter((e=>e!==t)))),o(`Shortcut ${t} unregistered`)})).catch(o)}return e.$$set=e=>{"onMessage"in e&&n(6,o=e.onMessage)},[r,i,a,function(){const e=r;Ft(e,(()=>{o(`Shortcut ${e} triggered`)})).then((()=>{a.update((t=>[...t,e])),o(`Shortcut ${e} registered successfully`)})).catch(o)},c,function(){Ut().then((()=>{a.update((()=>[])),o("Unregistered all shortcuts")})).catch(o)},o,function(){r=this.value,n(0,r)},e=>c(e)]}Object.freeze({__proto__:null,register:Ft,registerAll:async function(e,t){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:Me(t)}})},isRegistered:async function(e){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})},unregister:Rt,unregisterAll:Ut});class Ht extends J{constructor(e){super(),V(this,e,Bt,Kt,a,{onMessage:6})}}function Gt(e){let t,n,o,a,s;return{c(){t=d("input"),n=h(),o=d("button"),o.textContent="Write",g(t,"placeholder","write to stdin"),g(o,"class","button")},m(i,r){c(i,t,r),_(t,e[3]),c(i,n,r),c(i,o,r),a||(s=[m(t,"input",e[10]),m(o,"click",e[7])],a=!0)},p(e,n){8&n&&t.value!==e[3]&&_(t,e[3])},d(e){e&&l(t),e&&l(n),e&&l(o),a=!1,i(s)}}}function Vt(t){let n,o,a,s,u,p,f,y,b,w,x,M,k,$,C,T=t[4]&&Gt(t);return{c(){n=d("div"),o=d("div"),a=d("input"),s=h(),u=d("button"),u.textContent="Run",p=h(),f=d("button"),f.textContent="Kill",y=h(),T&&T.c(),b=h(),w=d("div"),x=d("input"),M=h(),k=d("input"),g(u,"class","button"),g(f,"class","button"),g(x,"placeholder","Working directory"),g(k,"placeholder","Environment variables"),v(k,"width","300px")},m(e,i){c(e,n,i),r(n,o),r(o,a),_(a,t[0]),r(o,s),r(o,u),r(o,p),r(o,f),r(o,y),T&&T.m(o,null),r(n,b),r(n,w),r(w,x),_(x,t[1]),r(w,M),r(w,k),_(k,t[2]),$||(C=[m(a,"input",t[9]),m(u,"click",t[5]),m(f,"click",t[6]),m(x,"input",t[11]),m(k,"input",t[12])],$=!0)},p(e,[t]){1&t&&a.value!==e[0]&&_(a,e[0]),e[4]?T?T.p(e,t):(T=Gt(e),T.c(),T.m(o,null)):T&&(T.d(1),T=null),2&t&&x.value!==e[1]&&_(x,e[1]),4&t&&k.value!==e[2]&&_(k,e[2])},i:e,o:e,d(e){e&&l(n),T&&T.d(),$=!1,i(C)}}}function Jt(e,t,n){const i=navigator.userAgent.includes("Windows");let o,a=i?"cmd":"sh",s=i?["/C"]:["-c"],{onMessage:r}=t,c='echo "hello world"',l=null,u="SOMETHING=value ANOTHER=2",d="";return e.$$set=e=>{"onMessage"in e&&n(8,r=e.onMessage)},[c,l,u,d,o,function(){n(4,o=null);const e=new Ee(a,[...s,c],{cwd:l||null,env:u.split(" ").reduce(((e,t)=>{let[n,i]=t.split("=");return{...e,[n]:i}}),{})});e.on("close",(e=>{r(`command finished with code ${e.code} and signal ${e.signal}`),n(4,o=null)})),e.on("error",(e=>r(`command error: "${e}"`))),e.stdout.on("data",(e=>r(`command stdout: "${e}"`))),e.stderr.on("data",(e=>r(`command stderr: "${e}"`))),e.spawn().then((e=>{n(4,o=e)})).catch(r)},function(){o.kill().then((()=>r("killed child process"))).catch(r)},function(){o.write(d).catch(r)},r,function(){c=this.value,n(0,c)},function(){d=this.value,n(3,d)},function(){l=this.value,n(1,l)},function(){u=this.value,n(2,u)}]}class Xt extends J{constructor(e){super(),V(this,e,Jt,Vt,a,{onMessage:8})}}async function Yt(){let e;function t(){e&&e(),e=void 0}return new Promise(((n,i)=>{Be("tauri://update-status",(e=>{var o;(o=e?.payload).error?(t(),i(o.error)):"DONE"===o.status&&(t(),n())})).then((t=>{e=t})).catch((e=>{throw t(),e})),Ge("tauri://update-install").catch((e=>{throw t(),e}))}))}async function Qt(){let e;function t(){e&&e(),e=void 0}return new Promise(((n,i)=>{He("tauri://update-available",(e=>{var i;i=e?.payload,t(),n({manifest:i,shouldUpdate:!0})})).catch((e=>{throw t(),e})),Be("tauri://update-status",(e=>{var o;(o=e?.payload).error?(t(),i(o.error)):"UPTODATE"===o.status&&(t(),n({shouldUpdate:!1}))})).then((t=>{e=t})).catch((e=>{throw t(),e})),Ge("tauri://update").catch((e=>{throw t(),e}))}))}function Zt(t){let n,o,a,s,u,p;return{c(){n=d("div"),o=d("button"),o.textContent="Check update",a=h(),s=d("button"),s.textContent="Install update",g(o,"class","button"),g(o,"id","check_update"),g(s,"class","button hidden"),g(s,"id","start_update")},m(e,i){c(e,n,i),r(n,o),r(n,a),r(n,s),u||(p=[m(o,"click",t[0]),m(s,"click",t[1])],u=!0)},p:e,i:e,o:e,d(e){e&&l(n),u=!1,i(p)}}}function en(e,t,n){let i,{onMessage:o}=t;return T((async()=>{i=await Be("tauri://update-status",o)})),O((()=>{i&&i()})),e.$$set=e=>{"onMessage"in e&&n(2,o=e.onMessage)},[async function(){try{document.getElementById("check_update").classList.add("hidden");const{shouldUpdate:e,manifest:t}=await Qt();o(`Should update: ${e}`),o(t),e&&document.getElementById("start_update").classList.remove("hidden")}catch(e){o(e)}},async function(){try{document.getElementById("start_update").classList.add("hidden"),await Yt(),o("Installation complete, restart required."),await je()}catch(e){o(e)}},o]}Object.freeze({__proto__:null,installUpdate:Yt,checkUpdate:Qt});class tn extends J{constructor(e){super(),V(this,e,en,Zt,a,{onMessage:2})}}async function nn(e){return Ce({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function on(){return Ce({__tauriModule:"Clipboard",message:{cmd:"readText"}})}function an(t){let n,o,a,s,u,p,f,y,b;return{c(){n=d("div"),o=d("div"),a=d("input"),s=h(),u=d("button"),u.textContent="Write",p=h(),f=d("button"),f.textContent="Read",g(a,"placeholder","Text to write to the clipboard"),g(u,"type","button"),g(f,"type","button")},m(e,i){c(e,n,i),r(n,o),r(o,a),_(a,t[0]),r(o,s),r(o,u),r(n,p),r(n,f),y||(b=[m(a,"input",t[4]),m(u,"click",t[1]),m(f,"click",t[2])],y=!0)},p(e,[t]){1&t&&a.value!==e[0]&&_(a,e[0])},i:e,o:e,d(e){e&&l(n),y=!1,i(b)}}}function sn(e,t,n){let{onMessage:i}=t,o="clipboard message";return e.$$set=e=>{"onMessage"in e&&n(3,i=e.onMessage)},[o,function(){nn(o).then((()=>{i("Wrote to the clipboard")})).catch(i)},function(){on().then((e=>{i(`Clipboard contents: ${e}`)})).catch(i)},i,function(){o=this.value,n(0,o)}]}Object.freeze({__proto__:null,writeText:nn,readText:on});class rn extends J{constructor(e){super(),V(this,e,sn,an,a,{onMessage:3})}}function cn(t){let n;return{c(){n=d("div"),n.innerHTML='

    Not available for Linux

    \n '},m(e,t){c(e,n,t)},p:e,i:e,o:e,d(e){e&&l(n)}}}function ln(e,t,n){let{onMessage:i}=t;const o=window.constraints={audio:!0,video:!0};return T((async()=>{try{!function(e){const t=document.querySelector("video"),n=e.getVideoTracks();i("Got stream with constraints:",o),i(`Using video device: ${n[0].label}`),window.stream=e,t.srcObject=e}(await navigator.mediaDevices.getUserMedia(o))}catch(e){!function(e){if("ConstraintNotSatisfiedError"===e.name){const e=o.video;i(`The resolution ${e.width.exact}x${e.height.exact} px is not supported by your device.`)}else"PermissionDeniedError"===e.name&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${e.name}`,e)}(e)}})),O((()=>{window.stream.getTracks().forEach((function(e){e.stop()}))})),e.$$set=e=>{"onMessage"in e&&n(0,i=e.onMessage)},[i]}class un extends J{constructor(e){super(),V(this,e,ln,cn,a,{onMessage:0})}}function dn(e,t,n){const i=e.slice();return i[9]=t[n],i}function pn(e){let t,n,i,o,a,s,u=e[9].label+"";function f(){return e[7](e[9])}return{c(){t=d("p"),n=p(u),i=h(),g(t,"class",o="nv noselect "+(e[0]===e[9]?"nv_selected":""))},m(e,o){c(e,t,o),r(t,n),r(t,i),a||(s=m(t,"click",f),a=!0)},p(n,i){e=n,1&i&&o!==(o="nv noselect "+(e[0]===e[9]?"nv_selected":""))&&g(t,"class",o)},d(e){e&&l(t),a=!1,s()}}}function hn(e){let t,n,o,a,s,p,f,y,b,_,w,x,k,$,C,T,O,E,S,P,z,A,W,j=e[2],L=[];for(let t=0;tDocumentation \n Github \n Source',f=h(),y=d("div"),b=d("div");for(let e=0;e{H(e,1)})),I.r||i(I.c),I=I.p}D?(x=new D(F(e)),K(x.$$.fragment),N(x.$$.fragment,1),B(x,w,null)):x=null}(!z||2&t)&&P.p(e[1])},i(e){z||(x&&N(x.$$.fragment,e),z=!0)},o(e){x&&q(x.$$.fragment,e),z=!1},d(e){e&&l(t),u(L,e),x&&H(x),A=!1,i(W)}}}function mn(e,t,n){T((()=>{ye("ctrl+b",(()=>{ke("menu_toggle")}))}));const i=[{label:"Welcome",component:Fe},{label:"Messages",component:Xe},{label:"CLI",component:Ne},{label:"Dialog",component:ot},{label:"File system",component:ut},{label:"HTTP",component:bt},{label:"Notifications",component:xt},{label:"Window",component:Dt},{label:"Shortcuts",component:Ht},{label:"Shell",component:Xt},{label:"Updater",component:tn},{label:"Clipboard",component:rn},{label:"WebRTC",component:un}];let o=i[0],a=Y([]),s="";function r(e){n(0,o=e)}T((()=>{a.subscribe((e=>{n(1,s=e.join("\n"))}))}));return[o,s,i,a,r,function(e){a.update((t=>[`[${(new Date).toLocaleTimeString()}]: `+("string"==typeof e?e:JSON.stringify(e)),...t]))},function(){Se("https://tauri.studio/")},e=>r(e),()=>{a.update((()=>[]))}]}return new class extends J{constructor(e){super(),V(this,e,mn,hn,a,{})}}({target:document.body})}(); + */var Q="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Z(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function ee(e,t){for(var n=t.slice(0,t.length-1),i=0;i=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var ne={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Q?173:189,"=":Q?61:187,";":Q?59:186,"'":222,"[":219,"]":221,"\\":220},ie={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},oe={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ae={16:!1,18:!1,17:!1,91:!1},se={},re=1;re<20;re++)ne["f".concat(re)]=111+re;var ce=[],le="all",ue=[],de=function(e){return ne[e.toLowerCase()]||ie[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function pe(e){le=e||"all"}function he(){return le||"all"}var me=function(e){var t=e.key,n=e.scope,i=e.method,o=e.splitKey,a=void 0===o?"+":o;te(t).forEach((function(e){var t=e.split(a),o=t.length,s=t[o-1],r="*"===s?"*":de(s);if(se[r]){n||(n=he());var c=o>1?ee(ie,t):[];se[r]=se[r].map((function(e){return(!i||e.method===i)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,o=!0,a=0;a0,ae)Object.prototype.hasOwnProperty.call(ae,o)&&(!ae[o]&&t.mods.indexOf(+o)>-1||ae[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||ae[16]||ae[18]||ae[17]||ae[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ge(e){var t=se["*"],n=e.keyCode||e.which||e.charCode;if(ye.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===ce.indexOf(n)&&229!==n&&ce.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=oe[t];e[t]&&-1===ce.indexOf(n)?ce.push(n):!e[t]&&ce.indexOf(n)>-1?ce.splice(ce.indexOf(n),1):"metaKey"===t&&e[t]&&3===ce.length&&(e.ctrlKey||e.shiftKey||e.altKey||(ce=ce.slice(ce.indexOf(n))))})),n in ae){for(var i in ae[n]=!0,ie)ie[i]===n&&(ye[i]=!0);if(!t)return}for(var o in ae)Object.prototype.hasOwnProperty.call(ae,o)&&(ae[o]=e[oe[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===ce.indexOf(17)&&ce.push(17),-1===ce.indexOf(18)&&ce.push(18),ae[17]=!0,ae[18]=!0);var a=he();if(t)for(var s=0;s1&&(o=ee(ie,e)),(e="*"===(e=e[e.length-1])?"*":de(e))in se||(se[e]=[]),se[e].push({keyup:c,keydown:l,scope:a,mods:o,shortcut:i[r],method:n,key:i[r],splitKey:u});void 0!==s&&!function(e){return ue.indexOf(e)>-1}(s)&&window&&(ue.push(s),Z(s,"keydown",(function(e){ge(e)})),Z(window,"focus",(function(){ce=[]})),Z(s,"keyup",(function(e){ge(e),function(e){var t=e.keyCode||e.which||e.charCode,n=ce.indexOf(t);if(n>=0&&ce.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&ce.splice(0,ce.length),93!==t&&224!==t||(t=91),t in ae)for(var i in ae[t]=!1,ie)ie[i]===t&&(ye[i]=!1)}(e)})))}var be,ve,_e={setScope:pe,getScope:he,deleteScope:function(e,t){var n,i;for(var o in e||(e=he()),se)if(Object.prototype.hasOwnProperty.call(se,o))for(n=se[o],i=0;i1?t-1:0),i=1;i(t&&Reflect.deleteProperty(window,n),e?.(i)),writable:!1,configurable:!0}),n}async function ke(e,t={}){return new Promise(((n,i)=>{const o=Me((e=>{n(e),Reflect.deleteProperty(window,a)}),!0),a=Me((e=>{i(e),Reflect.deleteProperty(window,o)}),!0);window.rpc.notify(e,{__invokeKey:__TAURI_INVOKE_KEY__,callback:o,error:a,...t})}))}function $e(e){return navigator.userAgent.includes("Windows")?`https://asset.${e}`:`asset://${e}`}async function Ce(e){return ke("tauri",e)}Object.freeze({__proto__:null,transformCallback:Me,invoke:ke,convertFileSrc:$e});class Te{constructor(){this.eventListeners=Object.create(null)}addEventListener(e,t){e in this.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t]}_emit(e,t){if(e in this.eventListeners){const n=this.eventListeners[e];for(const e of n)e(t)}}on(e,t){return this.addEventListener(e,t),this}}class Oe{constructor(e){this.pid=e}async write(e){return Ce({__tauriModule:"Shell",message:{cmd:"stdinWrite",pid:this.pid,buffer:e}})}async kill(){return Ce({__tauriModule:"Shell",message:{cmd:"killChild",pid:this.pid}})}}class Se extends Te{constructor(e,t=[],n){super(),this.stdout=new Te,this.stderr=new Te,this.program=e,this.args="string"==typeof t?[t]:t,this.options=n??{}}static sidecar(e,t=[],n){const i=new Se(e,t,n);return i.options.sidecar=!0,i}async spawn(){return async function(e,t,n,i){return"object"==typeof n&&Object.freeze(n),Ce({__tauriModule:"Shell",message:{cmd:"execute",program:t,args:"string"==typeof n?[n]:n,options:i,onEventFn:Me(e)}})}((e=>{switch(e.event){case"Error":this._emit("error",e.payload);break;case"Terminated":this._emit("close",e.payload);break;case"Stdout":this.stdout._emit("data",e.payload);break;case"Stderr":this.stderr._emit("data",e.payload)}}),this.program,this.args,this.options).then((e=>new Oe(e)))}async execute(){return new Promise(((e,t)=>{this.on("error",t);const n=[],i=[];this.stdout.on("data",(e=>{n.push(e)})),this.stderr.on("data",(e=>{i.push(e)})),this.on("close",(t=>{e({code:t.code,signal:t.signal,stdout:n.join("\n"),stderr:i.join("\n")})})),this.spawn().catch(t)}))}}async function Ee(e,t){return Ce({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}async function Pe(){return Ce({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function ze(){return Ce({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Ae(){return Ce({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function We(e=0){return Ce({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function je(){return Ce({__tauriModule:"Process",message:{cmd:"relaunch"}})}function Le(t){let n,o,a,s,u,f,y,v,_,w,x,M,k,$,C,T,O,S,E,P,z;return{c(){n=d("h1"),n.textContent="Welcome",o=h(),a=d("p"),a.textContent="Tauri's API capabilities using the ` @tauri-apps/api ` package. It's used as\n the main validation app, serving as the testbed of our development process. In\n the future, this app will be used on Tauri's integration tests.",s=h(),u=d("p"),f=p("Current App version: "),y=p(t[0]),v=h(),_=d("p"),w=p("Current Tauri version: "),x=p(t[1]),M=h(),k=d("p"),$=p("Current App name: "),C=p(t[2]),T=h(),O=d("button"),O.textContent="Close application",S=h(),E=d("button"),E.textContent="Relaunch application",g(O,"class","button"),g(E,"class","button")},m(e,i){c(e,n,i),c(e,o,i),c(e,a,i),c(e,s,i),c(e,u,i),r(u,f),r(u,y),c(e,v,i),c(e,_,i),r(_,w),r(_,x),c(e,M,i),c(e,k,i),r(k,$),r(k,C),c(e,T,i),c(e,O,i),c(e,S,i),c(e,E,i),P||(z=[m(O,"click",t[3]),m(E,"click",t[4])],P=!0)},p(e,[t]){1&t&&b(y,e[0]),2&t&&b(x,e[1]),4&t&&b(C,e[2])},i:e,o:e,d(e){e&&l(n),e&&l(o),e&&l(a),e&&l(s),e&&l(u),e&&l(v),e&&l(_),e&&l(M),e&&l(k),e&&l(T),e&&l(O),e&&l(S),e&&l(E),P=!1,i(z)}}}function De(e,t,n){let i=0,o=0,a="Unknown";return ze().then((e=>{n(2,a=e)})),Pe().then((e=>{n(0,i=e)})),Ae().then((e=>{n(1,o=e)})),[i,o,a,async function(){await We()},async function(){await je()}]}Object.freeze({__proto__:null,Command:Se,Child:Oe,open:Ee}),Object.freeze({__proto__:null,getName:ze,getVersion:Pe,getTauriVersion:Ae}),Object.freeze({__proto__:null,exit:We,relaunch:je});class Fe extends J{constructor(e){super(),V(this,e,De,Le,a,{})}}async function Re(){return Ce({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function Ue(t){let n,i,o,a,s,u,f,y,b,v,_;return{c(){n=d("div"),i=p("This binary can be run on the terminal and takes the following arguments:\n "),o=d("ul"),o.innerHTML="
  • --config PATH
  • \n
  • --theme light|dark|system
  • \n
  • --verbose
  • ",a=p("\n Additionally, it has a "),s=d("i"),s.textContent="update --background",u=p(" subcommand.\n Note that the arguments are only parsed, not implemented.\n "),f=d("br"),y=h(),b=d("button"),b.textContent="Get matches",g(b,"class","button"),g(b,"id","cli-matches")},m(e,l){c(e,n,l),r(n,i),r(n,o),r(n,a),r(n,s),r(n,u),r(n,f),r(n,y),r(n,b),v||(_=m(b,"click",t[0]),v=!0)},p:e,i:e,o:e,d(e){e&&l(n),v=!1,_()}}}function Ne(e,t,n){let{onMessage:i}=t;return e.$$set=e=>{"onMessage"in e&&n(1,i=e.onMessage)},[function(){Re().then(i).catch(i)},i]}Object.freeze({__proto__:null,getMatches:Re});class Ie extends J{constructor(e){super(),V(this,e,Ne,Ue,a,{onMessage:1})}}async function qe(e,t,n){await Ce({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Ke(e){return Ce({__tauriModule:"Event",message:{cmd:"unlisten",eventId:e}})}async function Be(e,t){return Ce({__tauriModule:"Event",message:{cmd:"listen",event:e,handler:Me(t)}}).then((e=>async()=>Ke(e)))}async function He(e,t){return Be(e,(e=>{t(e),Ke(e.id).catch((()=>{}))}))}async function Ge(e,t){return qe(e,void 0,t)}function Ve(t){let n,o,a,s,u,p,f,y;return{c(){n=d("div"),o=d("button"),o.textContent="Call Log API",a=h(),s=d("button"),s.textContent="Call Request (async) API",u=h(),p=d("button"),p.textContent="Send event to Rust",g(o,"class","button"),g(o,"id","log"),g(s,"class","button"),g(s,"id","request"),g(p,"class","button"),g(p,"id","event")},m(e,i){c(e,n,i),r(n,o),r(n,a),r(n,s),r(n,u),r(n,p),f||(y=[m(o,"click",t[0]),m(s,"click",t[1]),m(p,"click",t[2])],f=!0)},p:e,i:e,o:e,d(e){e&&l(n),f=!1,i(y)}}}function Je(e,t,n){let i,{onMessage:o}=t;return T((async()=>{i=await Be("rust-event",o)})),O((()=>{i&&i()})),e.$$set=e=>{"onMessage"in e&&n(3,o=e.onMessage)},[function(){ke("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})},function(){ke("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(o).catch(o)},function(){Ge("js-event","this is the payload string")},o]}Object.freeze({__proto__:null,listen:Be,once:He,emit:Ge});class Xe extends J{constructor(e){super(),V(this,e,Je,Ve,a,{onMessage:3})}}async function Ye(e={}){return"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Dialog",message:{cmd:"openDialog",options:e}})}async function Qe(e={}){return"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Dialog",message:{cmd:"saveDialog",options:e}})}async function Ze(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"readBinaryFile",path:e,options:t}})}function et(e){const t=function(e){if(e.length<65536)return String.fromCharCode.apply(null,Array.from(e));let t="";const n=e.length;for(let i=0;i{"onMessage"in e&&n(6,i=e.onMessage)},[o,a,s,r,function(){Ye({defaultPath:o,filters:a?[{name:"Tauri Example",extensions:a.split(",").map((e=>e.trim()))}]:[],multiple:s,directory:r}).then((function(e){if(Array.isArray(e))i(e);else{var t=e,n=t.match(/\S+\.\S+$/g);Ze(t).then((function(o){var a,s,r,c;n&&(t.includes(".png")||t.includes(".jpg"))?(a=new Uint8Array(o),s=function(e){i('')},r=new Blob([a],{type:"application/octet-binary"}),(c=new FileReader).onload=function(e){var t=e.target.result;s(t.substr(t.indexOf(",")+1))},c.readAsDataURL(r)):i(e)})).catch(i(e))}})).catch(i)},function(){Qe({defaultPath:o,filters:a?[{name:"Tauri Example",extensions:a.split(",").map((e=>e.trim()))}]:[]}).then(i).catch(i)},i,function(){o=this.value,n(0,o)},function(){a=this.value,n(1,a)},function(){s=this.checked,n(2,s)},function(){r=this.checked,n(3,r)}]}Object.freeze({__proto__:null,open:Ye,save:Qe}),function(e){e[e.Audio=1]="Audio",e[e.Cache=2]="Cache",e[e.Config=3]="Config",e[e.Data=4]="Data",e[e.LocalData=5]="LocalData",e[e.Desktop=6]="Desktop",e[e.Document=7]="Document",e[e.Download=8]="Download",e[e.Executable=9]="Executable",e[e.Font=10]="Font",e[e.Home=11]="Home",e[e.Picture=12]="Picture",e[e.Public=13]="Public",e[e.Runtime=14]="Runtime",e[e.Template=15]="Template",e[e.Video=16]="Video",e[e.Resource=17]="Resource",e[e.App=18]="App",e[e.Current=19]="Current"}(be||(be={})),Object.freeze({__proto__:null,get BaseDirectory(){return be},get Dir(){return be},readTextFile:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"readTextFile",path:e,options:t}})},readBinaryFile:Ze,writeFile:async function(e,t={}){return"object"==typeof t&&Object.freeze(t),"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Fs",message:{cmd:"writeFile",path:e.path,contents:e.contents,options:t}})},writeBinaryFile:async function(e,t={}){return"object"==typeof t&&Object.freeze(t),"object"==typeof e&&Object.freeze(e),Ce({__tauriModule:"Fs",message:{cmd:"writeBinaryFile",path:e.path,contents:et(e.contents),options:t}})},readDir:tt,createDir:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"createDir",path:e,options:t}})},removeDir:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"removeDir",path:e,options:t}})},copyFile:async function(e,t,n={}){return Ce({__tauriModule:"Fs",message:{cmd:"copyFile",source:e,destination:t,options:n}})},removeFile:async function(e,t={}){return Ce({__tauriModule:"Fs",message:{cmd:"removeFile",path:e,options:t}})},renameFile:async function(e,t,n={}){return Ce({__tauriModule:"Fs",message:{cmd:"renameFile",oldPath:e,newPath:t,options:n}})}});class ot extends J{constructor(e){var t;super(),document.getElementById("svelte-1eg58yg-style")||((t=d("style")).id="svelte-1eg58yg-style",t.textContent="#dialog-filter.svelte-1eg58yg{width:260px}",r(document.head,t)),V(this,e,it,nt,a,{onMessage:6})}}function at(e,t,n){const i=e.slice();return i[8]=t[n],i}function st(t){let n,i,o=t[8][0]+"";return{c(){n=d("option"),i=p(o),n.__value=t[8][1],n.value=n.__value},m(e,t){c(e,n,t),r(n,i)},p:e,d(e){e&&l(n)}}}function rt(t){let n,o,a,s,p,y,b,_,w,x,M,k,$,C=t[2],T=[];for(let e=0;eisNaN(parseInt(e)))).map((e=>[e,be[e]]));return e.$$set=e=>{"onMessage"in e&&n(5,o=e.onMessage)},[a,i,s,function(){const e=a.match(/\S+\.\S+$/g),t={dir:ct()};(e?Ze(a,t):tt(a,t)).then((function(t){if(e)if(a.includes(".png")||a.includes(".jpg"))!function(e,t){const n=new Blob([e],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(e){const n=e.target.result;t(n.substr(n.indexOf(",")+1))},i.readAsDataURL(n)}(new Uint8Array(t),(function(e){o('')}));else{const e=String.fromCharCode.apply(null,t);o(''),setTimeout((()=>{const t=document.getElementById("file-response");t.value=e,document.getElementById("file-save").addEventListener("click",(function(){writeFile({file:a,contents:t.value},{dir:ct()}).catch(o)}))}))}else o(t)})).catch(o)},function(){n(1,i.src=$e(a),i)},o,function(){a=this.value,n(0,a)},function(e){E[e?"unshift":"push"]((()=>{i=e,n(1,i)}))}]}class ut extends J{constructor(e){super(),V(this,e,lt,rt,a,{onMessage:5})}}!function(e){e[e.JSON=1]="JSON",e[e.Text=2]="Text",e[e.Binary=3]="Binary"}(ve||(ve={}));class dt{constructor(e,t){this.type=e,this.payload=t}static form(e){return new dt("Form",e)}static json(e){return new dt("Json",e)}static text(e){return new dt("Text",e)}static bytes(e){return new dt("Bytes",e)}}class pt{constructor(e){this.url=e.url,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.headers=e.headers,this.data=e.data}}class ht{constructor(e){this.id=e}async drop(){return Ce({__tauriModule:"Http",message:{cmd:"dropClient",client:this.id}})}async request(e){const t=!e.responseType||e.responseType===ve.JSON;return t&&(e.responseType=ve.Text),Ce({__tauriModule:"Http",message:{cmd:"httpRequest",client:this.id,options:e}}).then((e=>{const n=new pt(e);if(t){try{n.data=JSON.parse(n.data)}catch(e){if(n.ok)throw Error(`Failed to parse response \`${n.data}\` as JSON: ${e};\n try setting the \`responseType\` option to \`ResponseType.Text\` or \`ResponseType.Binary\` if the API does not return a JSON response.`)}return n}return n}))}async get(e,t){return this.request({method:"GET",url:e,...t})}async post(e,t,n){return this.request({method:"POST",url:e,body:t,...n})}async put(e,t,n){return this.request({method:"PUT",url:e,body:t,...n})}async patch(e,t){return this.request({method:"PATCH",url:e,...t})}async delete(e,t){return this.request({method:"DELETE",url:e,...t})}}async function mt(e){return Ce({__tauriModule:"Http",message:{cmd:"createClient",options:e}}).then((e=>new ht(e)))}let ft=null;function gt(t){let n,o,a,s,u,p,y,b,x,M,k,$,C,T,O,S,E;return{c(){n=d("form"),o=d("select"),a=d("option"),a.textContent="GET",s=d("option"),s.textContent="POST",u=d("option"),u.textContent="PUT",p=d("option"),p.textContent="PATCH",y=d("option"),y.textContent="DELETE",b=h(),x=d("input"),M=h(),k=d("br"),$=h(),C=d("textarea"),T=h(),O=d("button"),O.textContent="Make request",a.__value="GET",a.value=a.__value,s.__value="POST",s.value=s.__value,u.__value="PUT",u.value=u.__value,p.__value="PATCH",p.value=p.__value,y.__value="DELETE",y.value=y.__value,g(o,"class","button"),g(o,"id","request-method"),void 0===t[0]&&j((()=>t[5].call(o))),g(x,"id","request-url"),g(x,"placeholder","Type the request URL..."),g(C,"id","request-body"),g(C,"placeholder","Request body"),g(C,"rows","5"),_(C,"width","100%"),_(C,"margin-right","10px"),_(C,"font-size","12px"),g(O,"class","button"),g(O,"id","make-request")},m(e,i){c(e,n,i),r(n,o),r(o,a),r(o,s),r(o,u),r(o,p),r(o,y),w(o,t[0]),r(n,b),r(n,x),v(x,t[1]),r(n,M),r(n,k),r(n,$),r(n,C),v(C,t[2]),r(n,T),r(n,O),S||(E=[m(o,"change",t[5]),m(x,"input",t[6]),m(C,"input",t[7]),m(n,"submit",f(t[3]))],S=!0)},p(e,[t]){1&t&&w(o,e[0]),2&t&&x.value!==e[1]&&v(x,e[1]),4&t&&v(C,e[2])},i:e,o:e,d(e){e&&l(n),S=!1,i(E)}}}function yt(e,t,n){let i="GET",o="https://jsonplaceholder.typicode.com/todos/1",a="",{onMessage:s}=t;return e.$$set=e=>{"onMessage"in e&&n(4,s=e.onMessage)},[i,o,a,async function(){const e=await mt(),t={url:o||""||"",method:i||"GET"||"GET"};a.startsWith("{")&&a.endsWith("}")||a.startsWith("[")&&a.endsWith("]")?t.body=dt.json(JSON.parse(a)):""!==a&&(t.body=dt.text(a)),e.request(t).then(s).catch(s)},s,function(){i=x(this),n(0,i)},function(){o=this.value,n(1,o)},function(){a=this.value,n(2,a)}]}Object.freeze({__proto__:null,getClient:mt,fetch:async function(e,t){return null===ft&&(ft=await mt()),ft.request({url:e,method:t?.method??"GET",...t})},Body:dt,Client:ht,Response:pt,get ResponseType(){return ve}});class bt extends J{constructor(e){super(),V(this,e,yt,gt,a,{onMessage:4})}}function vt(t){let n,i,o;return{c(){n=d("button"),n.textContent="Send test notification",g(n,"class","button"),g(n,"id","notification")},m(e,a){c(e,n,a),i||(o=m(n,"click",t[0]),i=!0)},p:e,i:e,o:e,d(e){e&&l(n),i=!1,o()}}}function _t(){new Notification("Notification title",{body:"This is the notification body"})}function wt(e,t,n){let{onMessage:i}=t;return e.$$set=e=>{"onMessage"in e&&n(1,i=e.onMessage)},[function(){"default"===Notification.permission?Notification.requestPermission().then((function(e){"granted"===e?_t():i("Permission is "+e)})).catch(i):"granted"===Notification.permission?_t():i("Permission is denied")},i]}class xt extends J{constructor(e){super(),V(this,e,wt,vt,a,{onMessage:1})}}class Mt{constructor(e,t){this.type="Logical",this.width=e,this.height=t}}class kt{constructor(e,t){this.type="Logical",this.x=e,this.y=t}}var $t;function Ct(){return new Pt(window.__TAURI__.__currentWindow.label,{skip:!0})}function Tt(){return window.__TAURI__.__windows.map((e=>new Pt(e.label,{skip:!0})))}!function(e){e[e.Critical=1]="Critical",e[e.Informational=2]="Informational"}($t||($t={}));const Ot=["tauri://created","tauri://error"];class St{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve((()=>{const n=this.listeners[e];n.splice(n.indexOf(t),1)})):Be(e,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve((()=>{const n=this.listeners[e];n.splice(n.indexOf(t),1)})):He(e,t)}async emit(e,t){if(Ot.includes(e)){for(const n of this.listeners[e]||[])n({event:e,id:-1,payload:t});return Promise.resolve()}return qe(e,this.label,t)}_handleTauriEvent(e,t){return!!Ot.includes(e)&&(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0)}}class Et extends St{async scaleFactor(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}})}async outerPosition(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}})}async innerSize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}})}async outerSize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}})}async isFullscreen(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isFullscreen"}}}})}async isMaximized(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isMaximized"}}}})}async isDecorated(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isDecorated"}}}})}async isResizable(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isResizable"}}}})}async isVisible(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"isVisible"}}}})}async center(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"center"}}}})}async requestUserAttention(e){let t=null;return e&&(t=e===$t.Critical?{type:"Critical"}:{type:"Informational"}),Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"requestUserAttention",payload:t}}}})}async setResizable(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setResizable",payload:e}}}})}async setTitle(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setTitle",payload:e}}}})}async maximize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"maximize"}}}})}async unmaximize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unmaximize"}}}})}async toggleMaximize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"toggleMaximize"}}}})}async minimize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"minimize"}}}})}async unminimize(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"unminimize"}}}})}async show(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"show"}}}})}async hide(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"hide"}}}})}async close(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"close"}}}})}async setDecorations(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setDecorations",payload:e}}}})}async setAlwaysOnTop(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setAlwaysOnTop",payload:e}}}})}async setSize(e){if(!e||"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSize",payload:{type:e.type,data:{width:e.width,height:e.height}}}}}})}async setMinSize(e){if(e&&"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMinSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setMaxSize(e){if(e&&"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setMaxSize",payload:e?{type:e.type,data:{width:e.width,height:e.height}}:null}}}})}async setPosition(e){if(!e||"Logical"!==e.type&&"Physical"!==e.type)throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setPosition",payload:{type:e.type,data:{x:e.x,y:e.y}}}}}})}async setFullscreen(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFullscreen",payload:e}}}})}async setFocus(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setFocus"}}}})}async setIcon(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setIcon",payload:{icon:e}}}}})}async setSkipTaskbar(e){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"setSkipTaskbar",payload:e}}}})}async startDragging(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"startDragging"}}}})}}class Pt extends Et{constructor(e,t={}){super(e),t?.skip||Ce({__tauriModule:"Window",message:{cmd:"createWebview",data:{options:{label:e,...t}}}}).then((async()=>this.emit("tauri://created"))).catch((async e=>this.emit("tauri://error",e)))}static getByLabel(e){return Tt().some((t=>t.label===e))?new Pt(e,{skip:!0}):null}}const zt=new Pt(null,{skip:!0});function At(e,t,n){const i=e.slice();return i[44]=t[n],i}function Wt(e){let t,n,i,o=e[44]+"";return{c(){t=d("option"),n=p(o),t.__value=i=e[44],t.value=t.__value},m(e,i){c(e,t,i),r(t,n)},p(e,a){2&a[0]&&o!==(o=e[44]+"")&&b(n,o),2&a[0]&&i!==(i=e[44])&&(t.__value=i,t.value=t.__value)},d(e){e&&l(t)}}}function jt(t){let n,o,a,s,b,x,M,k,$,C,T,O,S,E,P,z,A,W,L,D,F,R,U,N,I,q,K,B,H,G,V,J,X,Y,Q,Z,ee,te,ne,ie,oe,ae,se,re,ce,le,ue,de,pe,he,me,fe,ge,ye,be,ve,_e,we,xe,Me,ke,$e,Ce,Te,Oe,Se,Ee,Pe,ze,Ae,We,je,Le,De,Fe,Re,Ue,Ne,Ie,qe,Ke,Be,He,Ge,Ve,Je,Xe,Ye,Qe,Ze=Object.keys(t[1]),et=[];for(let e=0;et[26].call(o))),g(x,"type","checkbox"),g(C,"type","checkbox"),g(S,"title","Unminimizes after 2 seconds"),g(P,"title","Unminimizes after 2 seconds"),g(A,"title","Visible again after 2 seconds"),g(D,"type","checkbox"),g(N,"type","checkbox"),g(B,"type","checkbox"),g(J,"type","checkbox"),g(ae,"type","number"),g(ae,"min","0"),g(ae,"class","svelte-b76pvm"),g(le,"type","number"),g(le,"min","0"),g(le,"class","svelte-b76pvm"),g(ne,"class","flex col grow svelte-b76pvm"),g(me,"type","number"),g(me,"min","400"),g(me,"class","svelte-b76pvm"),g(be,"type","number"),g(be,"min","400"),g(be,"class","svelte-b76pvm"),g(de,"class","flex col grow svelte-b76pvm"),g(Me,"type","number"),g(Me,"class","svelte-b76pvm"),g(Te,"type","number"),g(Te,"class","svelte-b76pvm"),g(_e,"class","flex col grow svelte-b76pvm"),g(ze,"type","number"),g(ze,"min","400"),g(ze,"class","svelte-b76pvm"),g(Le,"type","number"),g(Le,"min","400"),g(Le,"class","svelte-b76pvm"),g(Se,"class","flex col grow svelte-b76pvm"),g(te,"class","window-controls flex flex-row svelte-b76pvm"),g(n,"class","flex col"),g(Re,"id","title"),g(Ne,"class","button"),g(Ne,"type","submit"),_(Fe,"margin-top","24px"),g(Ke,"id","url"),g(He,"class","button"),g(He,"id","open-url"),_(qe,"margin-top","24px"),g(Ve,"class","button"),g(Ve,"title","Minimizes the window, requests attention for 3s and then resets it"),g(Xe,"class","button")},m(e,i){c(e,n,i),r(n,o);for(let e=0;e{"onMessage"in e&&n(25,a=e.onMessage)},e.$$.update=()=>{7&e.$$.dirty[0]&&o[i].setResizable(r),11&e.$$.dirty[0]&&(c?o[i].maximize():o[i].unmaximize()),19&e.$$.dirty[0]&&o[i].setDecorations(u),35&e.$$.dirty[0]&&o[i].setAlwaysOnTop(d),67&e.$$.dirty[0]&&o[i].setFullscreen(p),387&e.$$.dirty[0]&&o[i].setSize(new Mt(h,m)),1539&e.$$.dirty[0]&&(f&&g?o[i].setMinSize(new Mt(f,g)):o[i].setMinSize(null)),6147&e.$$.dirty[0]&&(b&&v?o[i].setMaxSize(new Mt(b,v)):o[i].setMaxSize(null)),24579&e.$$.dirty[0]&&o[i].setPosition(new kt(_,w))},[i,o,r,c,u,d,p,h,m,f,g,b,v,_,w,s,l,M,function(){Ee(s)},function(){o[i].setTitle(M)},function(){o[i].hide(),setTimeout(o[i].show,2e3)},function(){o[i].minimize(),setTimeout(o[i].unminimize,2e3)},function(){Ye({multiple:!1}).then(o[i].setIcon)},function(){const e=Math.random().toString(),t=new Pt(e);n(1,o[e]=t,o),t.once("tauri://error",(function(){a("Error creating new webview")}))},async function(){await o[i].minimize(),await o[i].requestUserAttention($t.Critical),await new Promise((e=>setTimeout(e,3e3))),await o[i].requestUserAttention(null)},a,function(){i=x(this),n(0,i),n(1,o)},function(){r=this.checked,n(2,r)},function(){c=this.checked,n(3,c)},()=>o[i].center(),function(){l=this.checked,n(16,l)},function(){u=this.checked,n(4,u)},function(){d=this.checked,n(5,d)},function(){p=this.checked,n(6,p)},function(){_=y(this.value),n(13,_)},function(){w=y(this.value),n(14,w)},function(){h=y(this.value),n(7,h)},function(){m=y(this.value),n(8,m)},function(){f=y(this.value),n(9,f)},function(){g=y(this.value),n(10,g)},function(){b=y(this.value),n(11,b)},function(){v=y(this.value),n(12,v)},function(){M=this.value,n(17,M)},function(){s=this.value,n(15,s)}]}Object.freeze({__proto__:null,WebviewWindow:Pt,WebviewWindowHandle:St,WindowManager:Et,getCurrent:Ct,getAll:Tt,appWindow:zt,LogicalSize:Mt,PhysicalSize:class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new Mt(this.width/e,this.height/e)}},LogicalPosition:kt,PhysicalPosition:class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new kt(this.x/e,this.y/e)}},get UserAttentionType(){return $t},currentMonitor:async function(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}})},primaryMonitor:async function(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}})},availableMonitors:async function(){return Ce({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}})}});class Dt extends J{constructor(e){var t;super(),document.getElementById("svelte-b76pvm-style")||((t=d("style")).id="svelte-b76pvm-style",t.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}",r(document.head,t)),V(this,e,Lt,jt,a,{onMessage:25},[-1,-1])}}async function Ft(e,t){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"register",shortcut:e,handler:Me(t)}})}async function Rt(e){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregister",shortcut:e}})}async function Ut(){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"unregisterAll"}})}function Nt(e,t,n){const i=e.slice();return i[9]=t[n],i}function It(e){let t,n,i,o,a,s,u=e[9]+"";function f(){return e[8](e[9])}return{c(){t=d("div"),n=p(u),i=h(),o=d("button"),o.textContent="Unregister",g(o,"type","button")},m(e,l){c(e,t,l),r(t,n),r(t,i),r(t,o),a||(s=m(o,"click",f),a=!0)},p(t,i){e=t,2&i&&u!==(u=e[9]+"")&&b(n,u)},d(e){e&&l(t),a=!1,s()}}}function qt(t){let n,i,o;return{c(){n=d("button"),n.textContent="Unregister all",g(n,"type","button")},m(e,a){c(e,n,a),i||(o=m(n,"click",t[5]),i=!0)},p:e,d(e){e&&l(n),i=!1,o()}}}function Kt(t){let n,o,a,s,p,f,y,b,_,w,x=t[1],M=[];for(let e=0;en(1,i=e)));let r="CmdOrControl+X";function c(e){const t=e;Rt(t).then((()=>{a.update((e=>e.filter((e=>e!==t)))),o(`Shortcut ${t} unregistered`)})).catch(o)}return e.$$set=e=>{"onMessage"in e&&n(6,o=e.onMessage)},[r,i,a,function(){const e=r;Ft(e,(()=>{o(`Shortcut ${e} triggered`)})).then((()=>{a.update((t=>[...t,e])),o(`Shortcut ${e} registered successfully`)})).catch(o)},c,function(){Ut().then((()=>{a.update((()=>[])),o("Unregistered all shortcuts")})).catch(o)},o,function(){r=this.value,n(0,r)},e=>c(e)]}Object.freeze({__proto__:null,register:Ft,registerAll:async function(e,t){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"registerAll",shortcuts:e,handler:Me(t)}})},isRegistered:async function(e){return Ce({__tauriModule:"GlobalShortcut",message:{cmd:"isRegistered",shortcut:e}})},unregister:Rt,unregisterAll:Ut});class Ht extends J{constructor(e){super(),V(this,e,Bt,Kt,a,{onMessage:6})}}function Gt(e){let t,n,o,a,s;return{c(){t=d("input"),n=h(),o=d("button"),o.textContent="Write",g(t,"placeholder","write to stdin"),g(o,"class","button")},m(i,r){c(i,t,r),v(t,e[3]),c(i,n,r),c(i,o,r),a||(s=[m(t,"input",e[10]),m(o,"click",e[7])],a=!0)},p(e,n){8&n&&t.value!==e[3]&&v(t,e[3])},d(e){e&&l(t),e&&l(n),e&&l(o),a=!1,i(s)}}}function Vt(t){let n,o,a,s,u,p,f,y,b,w,x,M,k,$,C,T=t[4]&&Gt(t);return{c(){n=d("div"),o=d("div"),a=d("input"),s=h(),u=d("button"),u.textContent="Run",p=h(),f=d("button"),f.textContent="Kill",y=h(),T&&T.c(),b=h(),w=d("div"),x=d("input"),M=h(),k=d("input"),g(u,"class","button"),g(f,"class","button"),g(x,"placeholder","Working directory"),g(k,"placeholder","Environment variables"),_(k,"width","300px")},m(e,i){c(e,n,i),r(n,o),r(o,a),v(a,t[0]),r(o,s),r(o,u),r(o,p),r(o,f),r(o,y),T&&T.m(o,null),r(n,b),r(n,w),r(w,x),v(x,t[1]),r(w,M),r(w,k),v(k,t[2]),$||(C=[m(a,"input",t[9]),m(u,"click",t[5]),m(f,"click",t[6]),m(x,"input",t[11]),m(k,"input",t[12])],$=!0)},p(e,[t]){1&t&&a.value!==e[0]&&v(a,e[0]),e[4]?T?T.p(e,t):(T=Gt(e),T.c(),T.m(o,null)):T&&(T.d(1),T=null),2&t&&x.value!==e[1]&&v(x,e[1]),4&t&&k.value!==e[2]&&v(k,e[2])},i:e,o:e,d(e){e&&l(n),T&&T.d(),$=!1,i(C)}}}function Jt(e,t,n){const i=navigator.userAgent.includes("Windows");let o,a=i?"cmd":"sh",s=i?["/C"]:["-c"],{onMessage:r}=t,c='echo "hello world"',l=null,u="SOMETHING=value ANOTHER=2",d="";return e.$$set=e=>{"onMessage"in e&&n(8,r=e.onMessage)},[c,l,u,d,o,function(){n(4,o=null);const e=new Se(a,[...s,c],{cwd:l||null,env:u.split(" ").reduce(((e,t)=>{let[n,i]=t.split("=");return{...e,[n]:i}}),{})});e.on("close",(e=>{r(`command finished with code ${e.code} and signal ${e.signal}`),n(4,o=null)})),e.on("error",(e=>r(`command error: "${e}"`))),e.stdout.on("data",(e=>r(`command stdout: "${e}"`))),e.stderr.on("data",(e=>r(`command stderr: "${e}"`))),e.spawn().then((e=>{n(4,o=e)})).catch(r)},function(){o.kill().then((()=>r("killed child process"))).catch(r)},function(){o.write(d).catch(r)},r,function(){c=this.value,n(0,c)},function(){d=this.value,n(3,d)},function(){l=this.value,n(1,l)},function(){u=this.value,n(2,u)}]}class Xt extends J{constructor(e){super(),V(this,e,Jt,Vt,a,{onMessage:8})}}async function Yt(){let e;function t(){e&&e(),e=void 0}return new Promise(((n,i)=>{Be("tauri://update-status",(e=>{var o;(o=e?.payload).error?(t(),i(o.error)):"DONE"===o.status&&(t(),n())})).then((t=>{e=t})).catch((e=>{throw t(),e})),Ge("tauri://update-install").catch((e=>{throw t(),e}))}))}async function Qt(){let e;function t(){e&&e(),e=void 0}return new Promise(((n,i)=>{He("tauri://update-available",(e=>{var i;i=e?.payload,t(),n({manifest:i,shouldUpdate:!0})})).catch((e=>{throw t(),e})),Be("tauri://update-status",(e=>{var o;(o=e?.payload).error?(t(),i(o.error)):"UPTODATE"===o.status&&(t(),n({shouldUpdate:!1}))})).then((t=>{e=t})).catch((e=>{throw t(),e})),Ge("tauri://update").catch((e=>{throw t(),e}))}))}function Zt(t){let n,o,a,s,u,p;return{c(){n=d("div"),o=d("button"),o.textContent="Check update",a=h(),s=d("button"),s.textContent="Install update",g(o,"class","button"),g(o,"id","check_update"),g(s,"class","button hidden"),g(s,"id","start_update")},m(e,i){c(e,n,i),r(n,o),r(n,a),r(n,s),u||(p=[m(o,"click",t[0]),m(s,"click",t[1])],u=!0)},p:e,i:e,o:e,d(e){e&&l(n),u=!1,i(p)}}}function en(e,t,n){let i,{onMessage:o}=t;return T((async()=>{i=await Be("tauri://update-status",o)})),O((()=>{i&&i()})),e.$$set=e=>{"onMessage"in e&&n(2,o=e.onMessage)},[async function(){try{document.getElementById("check_update").classList.add("hidden");const{shouldUpdate:e,manifest:t}=await Qt();o(`Should update: ${e}`),o(t),e&&document.getElementById("start_update").classList.remove("hidden")}catch(e){o(e)}},async function(){try{document.getElementById("start_update").classList.add("hidden"),await Yt(),o("Installation complete, restart required."),await je()}catch(e){o(e)}},o]}Object.freeze({__proto__:null,installUpdate:Yt,checkUpdate:Qt});class tn extends J{constructor(e){super(),V(this,e,en,Zt,a,{onMessage:2})}}async function nn(e){return Ce({__tauriModule:"Clipboard",message:{cmd:"writeText",data:e}})}async function on(){return Ce({__tauriModule:"Clipboard",message:{cmd:"readText"}})}function an(t){let n,o,a,s,u,p,f,y,b;return{c(){n=d("div"),o=d("div"),a=d("input"),s=h(),u=d("button"),u.textContent="Write",p=h(),f=d("button"),f.textContent="Read",g(a,"placeholder","Text to write to the clipboard"),g(u,"type","button"),g(f,"type","button")},m(e,i){c(e,n,i),r(n,o),r(o,a),v(a,t[0]),r(o,s),r(o,u),r(n,p),r(n,f),y||(b=[m(a,"input",t[4]),m(u,"click",t[1]),m(f,"click",t[2])],y=!0)},p(e,[t]){1&t&&a.value!==e[0]&&v(a,e[0])},i:e,o:e,d(e){e&&l(n),y=!1,i(b)}}}function sn(e,t,n){let{onMessage:i}=t,o="clipboard message";return e.$$set=e=>{"onMessage"in e&&n(3,i=e.onMessage)},[o,function(){nn(o).then((()=>{i("Wrote to the clipboard")})).catch(i)},function(){on().then((e=>{i(`Clipboard contents: ${e}`)})).catch(i)},i,function(){o=this.value,n(0,o)}]}Object.freeze({__proto__:null,writeText:nn,readText:on});class rn extends J{constructor(e){super(),V(this,e,sn,an,a,{onMessage:3})}}function cn(t){let n;return{c(){n=d("div"),n.innerHTML='

    Not available for Linux

    \n '},m(e,t){c(e,n,t)},p:e,i:e,o:e,d(e){e&&l(n)}}}function ln(e,t,n){let{onMessage:i}=t;const o=window.constraints={audio:!0,video:!0};return T((async()=>{try{!function(e){const t=document.querySelector("video"),n=e.getVideoTracks();i("Got stream with constraints:",o),i(`Using video device: ${n[0].label}`),window.stream=e,t.srcObject=e}(await navigator.mediaDevices.getUserMedia(o))}catch(e){!function(e){if("ConstraintNotSatisfiedError"===e.name){const e=o.video;i(`The resolution ${e.width.exact}x${e.height.exact} px is not supported by your device.`)}else"PermissionDeniedError"===e.name&&i("Permissions have not been granted to use your camera and microphone, you need to allow the page access to your devices in order for the demo to work.");i(`getUserMedia error: ${e.name}`,e)}(e)}})),O((()=>{window.stream.getTracks().forEach((function(e){e.stop()}))})),e.$$set=e=>{"onMessage"in e&&n(0,i=e.onMessage)},[i]}class un extends J{constructor(e){super(),V(this,e,ln,cn,a,{onMessage:0})}}function dn(t){let n,o,a,s,u,f,y,_,w,x,M,k;return{c(){n=d("input"),o=h(),a=d("input"),s=h(),u=d("button"),u.textContent="Post it.",f=h(),y=d("p"),y.textContent="Result:",_=h(),w=d("pre"),x=p(t[2]),g(u,"type","button")},m(e,i){c(e,n,i),v(n,t[0]),c(e,o,i),c(e,a,i),v(a,t[1]),c(e,s,i),c(e,u,i),c(e,f,i),c(e,y,i),c(e,_,i),c(e,w,i),r(w,x),M||(k=[m(n,"input",t[4]),m(a,"input",t[5]),m(u,"click",t[3])],M=!0)},p(e,[t]){1&t&&n.value!==e[0]&&v(n,e[0]),2&t&&a.value!==e[1]&&v(a,e[1]),4&t&&b(x,e[2])},i:e,o:e,d(e){e&&l(n),e&&l(o),e&&l(a),e&&l(s),e&&l(u),e&&l(f),e&&l(y),e&&l(_),e&&l(w),M=!1,i(k)}}}function pn(e,t,n){let i="baz",o="qux",a=null;return[i,o,a,async function(){let e=navigator.userAgent.includes("Windows")?"https://customprotocol.test/example.html":"customprotocol://test/example.html";const t=await fetch(e,{method:"POST",body:JSON.stringify({foo:i,bar:o})}),s=await t.json();n(2,a=JSON.stringify(s))},function(){i=this.value,n(0,i)},function(){o=this.value,n(1,o)}]}class hn extends J{constructor(e){super(),V(this,e,pn,dn,a,{})}}function mn(e,t,n){const i=e.slice();return i[9]=t[n],i}function fn(e){let t,n,i,o,a,s,u=e[9].label+"";function f(){return e[7](e[9])}return{c(){t=d("p"),n=p(u),i=h(),g(t,"class",o="nv noselect "+(e[0]===e[9]?"nv_selected":""))},m(e,o){c(e,t,o),r(t,n),r(t,i),a||(s=m(t,"click",f),a=!0)},p(n,i){e=n,1&i&&o!==(o="nv noselect "+(e[0]===e[9]?"nv_selected":""))&&g(t,"class",o)},d(e){e&&l(t),a=!1,s()}}}function gn(e){let t,n,o,a,s,p,f,y,b,v,w,x,k,$,C,T,O,S,E,P,z,A,W,j=e[2],L=[];for(let t=0;tDocumentation \n Github \n Source',f=h(),y=d("div"),b=d("div");for(let e=0;e{H(e,1)})),N.r||i(N.c),N=N.p}D?(x=new D(F(e)),K(x.$$.fragment),I(x.$$.fragment,1),B(x,w,null)):x=null}(!z||2&t)&&P.p(e[1])},i(e){z||(x&&I(x.$$.fragment,e),z=!0)},o(e){x&&q(x.$$.fragment,e),z=!1},d(e){e&&l(t),u(L,e),x&&H(x),A=!1,i(W)}}}function yn(e,t,n){T((()=>{ye("ctrl+b",(()=>{ke("menu_toggle")}))}));const i=[{label:"Welcome",component:Fe},{label:"Messages",component:Xe},{label:"CLI",component:Ie},{label:"Dialog",component:ot},{label:"File system",component:ut},{label:"HTTP",component:bt},{label:"HTTP Form",component:hn},{label:"Notifications",component:xt},{label:"Window",component:Dt},{label:"Shortcuts",component:Ht},{label:"Shell",component:Xt},{label:"Updater",component:tn},{label:"Clipboard",component:rn},{label:"WebRTC",component:un}];let o=i[0],a=Y([]),s="";function r(e){n(0,o=e)}T((()=>{a.subscribe((e=>{n(1,s=e.join("\n"))}))}));return[o,s,i,a,r,function(e){a.update((t=>[`[${(new Date).toLocaleTimeString()}]: `+("string"==typeof e?e:JSON.stringify(e)),...t]))},function(){Ee("https://tauri.studio/")},e=>r(e),()=>{a.update((()=>[]))}]}return new class extends J{constructor(e){super(),V(this,e,yn,gn,a,{})}}({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 842d134da35..6635790fc3c 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","../../node_modules/svelte/store/index.mjs","../../node_modules/hotkeys-js/dist/hotkeys.esm.js","../../../../tooling/api/dist/fs-c61261aa.js","../../../../tooling/api/dist/http-cc253949.js","../../../../tooling/api/dist/tauri-6032cb22.js","../../../../tooling/api/dist/tauri-48bdc082.js","../../../../tooling/api/dist/shell-a5261760.js","../../../../tooling/api/dist/app-7fad8dcd.js","../../../../tooling/api/dist/process-27a9217f.js","../../src/components/Welcome.svelte","../../../../tooling/api/dist/cli-2d93cae7.js","../../src/components/Cli.svelte","../../../../tooling/api/dist/event-29f50a54.js","../../src/components/Communication.svelte","../../../../tooling/api/dist/dialog-f7c24807.js","../../src/components/Dialog.svelte","../../src/components/FileSystem.svelte","../../src/components/Http.svelte","../../src/components/Notifications.svelte","../../../../tooling/api/dist/window-d653c9f2.js","../../src/components/Window.svelte","../../../../tooling/api/dist/globalShortcut-4c1f1a9c.js","../../src/components/Shortcuts.svelte","../../src/components/Shell.svelte","../../../../tooling/api/dist/updater-9533d0e6.js","../../src/components/Updater.svelte","../../../../tooling/api/dist/clipboard-f9112aa8.js","../../src/components/Clipboard.svelte","../../src/components/WebRTC.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","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","/*!\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 function setSrc() {\n img.src = convertFileSrc(pathToRead)\n }\n\n\n
    \n \n \n \n \n\n \"file\"\n\n","\n\n
    \n \n \n
    \n \n \n\n","\n\n\n","import{i as e}from\"./tauri-48bdc082.js\";import{l as a,o as t,b as i}from\"./event-29f50a54.js\";class s{constructor(e,a){this.type=\"Logical\",this.width=e,this.height=a}}class n{constructor(e,a){this.type=\"Physical\",this.width=e,this.height=a}toLogical(e){return new s(this.width/e,this.height/e)}}class l{constructor(e,a){this.type=\"Logical\",this.x=e,this.y=a}}class r{constructor(e,a){this.type=\"Physical\",this.x=e,this.y=a}toLogical(e){return new l(this.x/e,this.y/e)}}var d;function o(){return new h(window.__TAURI__.__currentWindow.label,{skip:!0})}function c(){return window.__TAURI__.__windows.map((e=>new h(e.label,{skip:!0})))}!function(e){e[e.Critical=1]=\"Critical\",e[e.Informational=2]=\"Informational\"}(d||(d={}));const m=[\"tauri://created\",\"tauri://error\"];class u{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve((()=>{const a=this.listeners[e];a.splice(a.indexOf(t),1)})):a(e,t)}async once(e,a){return this._handleTauriEvent(e,a)?Promise.resolve((()=>{const t=this.listeners[e];t.splice(t.indexOf(a),1)})):t(e,a)}async emit(e,a){if(m.includes(e)){for(const t of this.listeners[e]||[])t({event:e,id:-1,payload:a});return Promise.resolve()}return i(e,this.label,a)}_handleTauriEvent(e,a){return!!m.includes(e)&&(e in this.listeners?this.listeners[e].push(a):this.listeners[e]=[a],!0)}}class y extends u{async scaleFactor(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"scaleFactor\"}}}})}async innerPosition(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerPosition\"}}}})}async outerPosition(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerPosition\"}}}})}async innerSize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerSize\"}}}})}async outerSize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerSize\"}}}})}async isFullscreen(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isFullscreen\"}}}})}async isMaximized(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMaximized\"}}}})}async isDecorated(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isDecorated\"}}}})}async isResizable(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isResizable\"}}}})}async isVisible(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isVisible\"}}}})}async center(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"center\"}}}})}async requestUserAttention(a){let t=null;return a&&(t=a===d.Critical?{type:\"Critical\"}:{type:\"Informational\"}),e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"requestUserAttention\",payload:t}}}})}async setResizable(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setResizable\",payload:a}}}})}async setTitle(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setTitle\",payload:a}}}})}async maximize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"maximize\"}}}})}async unmaximize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unmaximize\"}}}})}async toggleMaximize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"toggleMaximize\"}}}})}async minimize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"minimize\"}}}})}async unminimize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unminimize\"}}}})}async show(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"show\"}}}})}async hide(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"hide\"}}}})}async close(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"close\"}}}})}async setDecorations(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setDecorations\",payload:a}}}})}async setAlwaysOnTop(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setAlwaysOnTop\",payload:a}}}})}async setSize(a){if(!a||\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSize\",payload:{type:a.type,data:{width:a.width,height:a.height}}}}}})}async setMinSize(a){if(a&&\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMinSize\",payload:a?{type:a.type,data:{width:a.width,height:a.height}}:null}}}})}async setMaxSize(a){if(a&&\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMaxSize\",payload:a?{type:a.type,data:{width:a.width,height:a.height}}:null}}}})}async setPosition(a){if(!a||\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `position` argument must be either a LogicalPosition or a PhysicalPosition instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setPosition\",payload:{type:a.type,data:{x:a.x,y:a.y}}}}}})}async setFullscreen(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFullscreen\",payload:a}}}})}async setFocus(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFocus\"}}}})}async setIcon(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setIcon\",payload:{icon:a}}}}})}async setSkipTaskbar(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSkipTaskbar\",payload:a}}}})}async startDragging(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"startDragging\"}}}})}}class h extends y{constructor(a,t={}){super(a),t?.skip||e({__tauriModule:\"Window\",message:{cmd:\"createWebview\",data:{options:{label:a,...t}}}}).then((async()=>this.emit(\"tauri://created\"))).catch((async e=>this.emit(\"tauri://error\",e)))}static getByLabel(e){return c().some((a=>a.label===e))?new h(e,{skip:!0}):null}}const g=new h(null,{skip:!0});async function p(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"currentMonitor\"}}}})}async function b(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"primaryMonitor\"}}}})}async function _(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"availableMonitors\"}}}})}var w=Object.freeze({__proto__:null,WebviewWindow:h,WebviewWindowHandle:u,WindowManager:y,getCurrent:o,getAll:c,appWindow:g,LogicalSize:s,PhysicalSize:n,LogicalPosition:l,PhysicalPosition:r,get UserAttentionType(){return d},currentMonitor:p,primaryMonitor:b,availableMonitors:_});export{s as L,n as P,d as U,h as W,u as a,y as b,c,g as d,l as e,r as f,o as g,p as h,_ as i,b as p,w};\n","\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\n","import{i as r}from\"./tauri-48bdc082.js\";import{t}from\"./tauri-6032cb22.js\";async function e(e,s){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"register\",shortcut:e,handler:t(s)}})}async function s(e,s){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"registerAll\",shortcuts:e,handler:t(s)}})}async function u(t){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"isRegistered\",shortcut:t}})}async function a(t){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregister\",shortcut:t}})}async function o(){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregisterAll\"}})}var i=Object.freeze({__proto__:null,register:e,registerAll:s,isRegistered:u,unregister:a,unregisterAll:o});export{s as a,o as b,i as g,u as i,e as r,a 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{l as t,a,o as r}from\"./event-29f50a54.js\";async function e(){let r;function e(){r&&r(),r=void 0}return new Promise(((o,s)=>{t(\"tauri://update-status\",(t=>{var a;(a=t?.payload).error?(e(),s(a.error)):\"DONE\"===a.status&&(e(),o())})).then((t=>{r=t})).catch((t=>{throw e(),t})),a(\"tauri://update-install\").catch((t=>{throw e(),t}))}))}async function o(){let e;function o(){e&&e(),e=void 0}return new Promise(((s,u)=>{r(\"tauri://update-available\",(t=>{var a;a=t?.payload,o(),s({manifest:a,shouldUpdate:!0})})).catch((t=>{throw o(),t})),t(\"tauri://update-status\",(t=>{var a;(a=t?.payload).error?(o(),u(a.error)):\"UPTODATE\"===a.status&&(o(),s({shouldUpdate:!1}))})).then((t=>{e=t})).catch((t=>{throw o(),t})),a(\"tauri://update\").catch((t=>{throw o(),t}))}))}var s=Object.freeze({__proto__:null,installUpdate:e,checkUpdate:o});export{o as c,e as i,s as u};\n","\n\n
    \n \n \n
    \n","import{i as e}from\"./tauri-48bdc082.js\";async function r(r){return e({__tauriModule:\"Clipboard\",message:{cmd:\"writeText\",data:r}})}async function a(){return e({__tauriModule:\"Clipboard\",message:{cmd:\"readText\"}})}var t=Object.freeze({__proto__:null,writeText:r,readText:a});export{t as c,a as r,r as w};\n","\n\n
    \n
    \n \n \n
    \n \n
    \n","\n\n
    \n

    Not available for Linux

    \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.update(() => []);\n }}>clear\n

    \n {@html response}\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","select_value","selected_option","querySelector","HtmlTag","[object Object]","e","n","html","nodeName","t","h","innerHTML","Array","from","childNodes","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","children","l","intro","SvelteComponent","$destroy","type","index","indexOf","splice","$$props","obj","$$set","keys","subscriber_queue","writable","start","stop","subscribers","set","new_value","run_queue","s","invalidate","subscriber","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","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","Int8Array","crypto","getRandomValues","Uint8Array","Math","max","abs","defineProperty","r","Reflect","deleteProperty","configurable","async","rpc","notify","__invokeKey","__TAURI_INVOKE_KEY__","error","includes","freeze","__proto__","transformCallback","invoke","convertFileSrc","eventListeners","pid","__tauriModule","message","buffer","super","stdout","stderr","program","sidecar","onEventFn","_emit","payload","on","signal","spawn","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","String","fromCharCode","apply","subarray","btoa","defaultPath","multiple","directory","filters","extensions","f","trim","res","pathToRead","isFile","match","readBinaryFile","response","blob","reader","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","img","DirOptions","isNaN","opts","arrayBufferToBase64","setTimeout","fileInput","file","src","JSON","Text","Binary","url","status","ok","headers","client","responseType","parse","request","httpMethod","httpUrl","httpBody","getClient","startsWith","endsWith","Body","json","fetch","Client","Response","ResponseType","_sendNotification","Notification","permission","requestPermission","width","height","__TAURI__","__currentWindow","label","skip","__windows","Critical","Informational","u","listeners","_handleTauriEvent","icon","some","g","UserAttentionType","selectedWindow","getCurrent","windowMap","appWindow","urlValue","resizable","maximized","transparent","decorations","alwaysOnTop","fullscreen","minWidth","minHeight","maxWidth","maxHeight","windowTitle","setResizable","maximize","unmaximize","setDecorations","setAlwaysOnTop","setFullscreen","setSize","LogicalSize","setMinSize","setMaxSize","setPosition","LogicalPosition","setTitle","hide","show","minimize","unminimize","openDialog","setIcon","random","webview","WebviewWindow","requestUserAttention","center","WebviewWindowHandle","WindowManager","getAll","PhysicalSize","PhysicalPosition","currentMonitor","primaryMonitor","availableMonitors","shortcuts","unregister","shortcut_","unregisterShortcut","shortcuts_","registerShortcut","unregisterAllShortcuts","savedShortcut","register","registerAll","isRegistered","unregisterAll","windows","child","script","cwd","env","stdin","reduce","clause","line","kill","write","manifest","shouldUpdate","classList","checkUpdate","remove","installUpdate","writeText","readText","constraints","audio","video","stream","videoTracks","getVideoTracks","srcObject","handleSuccess","mediaDevices","getUserMedia","exact","handleError","getTracks","track","views","Welcome","Communication","Cli","Dialog","FileSystem","Http","Notifications","Window","Shortcuts","Shell","Updater","Clipboard","WebRTC","responses","view","Date","toLocaleTimeString","stringify"],"mappings":"gCAAA,SAASA,KAgBT,SAASC,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SAIXnjB,EAAWsiB,EAAM,GAEjBc,EAAYnd,MACZgQ,EAAW,YAENpW,EAAOwjB,OACdrjB,EAAWqjB,GAWbjiB,QACEgiB,EAAU5mB,WAAU8U,QAClB2E,EAAW3E,EAAEnC,KAAK,uCAVHrQ,GACjBskB,EAAUhhB,QAAOkP,aAAcgS,MAAOC,2BAAmD,iBAAVzkB,EAAqBA,EAAQgb,KAAK0J,UAAU1kB,OAAYwS,iBAIvI+C,GAAK,6BA4B4ExU,EAAOwjB,QAcpFD,EAAUhhB,0BC1IN,kEAAQ,CAClBzF,OAAQiB,SAASiX"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte/store/index.mjs","../../node_modules/hotkeys-js/dist/hotkeys.esm.js","../../../../tooling/api/dist/fs-c61261aa.js","../../../../tooling/api/dist/http-cc253949.js","../../../../tooling/api/dist/tauri-6032cb22.js","../../../../tooling/api/dist/tauri-48bdc082.js","../../../../tooling/api/dist/shell-a5261760.js","../../../../tooling/api/dist/app-7fad8dcd.js","../../../../tooling/api/dist/process-27a9217f.js","../../src/components/Welcome.svelte","../../../../tooling/api/dist/cli-2d93cae7.js","../../src/components/Cli.svelte","../../../../tooling/api/dist/event-29f50a54.js","../../src/components/Communication.svelte","../../../../tooling/api/dist/dialog-f7c24807.js","../../src/components/Dialog.svelte","../../src/components/FileSystem.svelte","../../src/components/Http.svelte","../../src/components/Notifications.svelte","../../../../tooling/api/dist/window-d653c9f2.js","../../src/components/Window.svelte","../../../../tooling/api/dist/globalShortcut-4c1f1a9c.js","../../src/components/Shortcuts.svelte","../../src/components/Shell.svelte","../../../../tooling/api/dist/updater-9533d0e6.js","../../src/components/Updater.svelte","../../../../tooling/api/dist/clipboard-f9112aa8.js","../../src/components/Clipboard.svelte","../../src/components/WebRTC.svelte","../../src/components/HttpForm.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","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","/*!\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 function setSrc() {\n img.src = convertFileSrc(pathToRead)\n }\n\n\n
    \n \n \n \n \n\n \"file\"\n\n","\n\n
    \n \n \n
    \n \n \n\n","\n\n\n","import{i as e}from\"./tauri-48bdc082.js\";import{l as a,o as t,b as i}from\"./event-29f50a54.js\";class s{constructor(e,a){this.type=\"Logical\",this.width=e,this.height=a}}class n{constructor(e,a){this.type=\"Physical\",this.width=e,this.height=a}toLogical(e){return new s(this.width/e,this.height/e)}}class l{constructor(e,a){this.type=\"Logical\",this.x=e,this.y=a}}class r{constructor(e,a){this.type=\"Physical\",this.x=e,this.y=a}toLogical(e){return new l(this.x/e,this.y/e)}}var d;function o(){return new h(window.__TAURI__.__currentWindow.label,{skip:!0})}function c(){return window.__TAURI__.__windows.map((e=>new h(e.label,{skip:!0})))}!function(e){e[e.Critical=1]=\"Critical\",e[e.Informational=2]=\"Informational\"}(d||(d={}));const m=[\"tauri://created\",\"tauri://error\"];class u{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve((()=>{const a=this.listeners[e];a.splice(a.indexOf(t),1)})):a(e,t)}async once(e,a){return this._handleTauriEvent(e,a)?Promise.resolve((()=>{const t=this.listeners[e];t.splice(t.indexOf(a),1)})):t(e,a)}async emit(e,a){if(m.includes(e)){for(const t of this.listeners[e]||[])t({event:e,id:-1,payload:a});return Promise.resolve()}return i(e,this.label,a)}_handleTauriEvent(e,a){return!!m.includes(e)&&(e in this.listeners?this.listeners[e].push(a):this.listeners[e]=[a],!0)}}class y extends u{async scaleFactor(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"scaleFactor\"}}}})}async innerPosition(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerPosition\"}}}})}async outerPosition(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerPosition\"}}}})}async innerSize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"innerSize\"}}}})}async outerSize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"outerSize\"}}}})}async isFullscreen(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isFullscreen\"}}}})}async isMaximized(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isMaximized\"}}}})}async isDecorated(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isDecorated\"}}}})}async isResizable(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isResizable\"}}}})}async isVisible(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"isVisible\"}}}})}async center(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"center\"}}}})}async requestUserAttention(a){let t=null;return a&&(t=a===d.Critical?{type:\"Critical\"}:{type:\"Informational\"}),e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"requestUserAttention\",payload:t}}}})}async setResizable(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setResizable\",payload:a}}}})}async setTitle(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setTitle\",payload:a}}}})}async maximize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"maximize\"}}}})}async unmaximize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unmaximize\"}}}})}async toggleMaximize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"toggleMaximize\"}}}})}async minimize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"minimize\"}}}})}async unminimize(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"unminimize\"}}}})}async show(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"show\"}}}})}async hide(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"hide\"}}}})}async close(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"close\"}}}})}async setDecorations(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setDecorations\",payload:a}}}})}async setAlwaysOnTop(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setAlwaysOnTop\",payload:a}}}})}async setSize(a){if(!a||\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSize\",payload:{type:a.type,data:{width:a.width,height:a.height}}}}}})}async setMinSize(a){if(a&&\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMinSize\",payload:a?{type:a.type,data:{width:a.width,height:a.height}}:null}}}})}async setMaxSize(a){if(a&&\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `size` argument must be either a LogicalSize or a PhysicalSize instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setMaxSize\",payload:a?{type:a.type,data:{width:a.width,height:a.height}}:null}}}})}async setPosition(a){if(!a||\"Logical\"!==a.type&&\"Physical\"!==a.type)throw new Error(\"the `position` argument must be either a LogicalPosition or a PhysicalPosition instance\");return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setPosition\",payload:{type:a.type,data:{x:a.x,y:a.y}}}}}})}async setFullscreen(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFullscreen\",payload:a}}}})}async setFocus(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setFocus\"}}}})}async setIcon(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setIcon\",payload:{icon:a}}}}})}async setSkipTaskbar(a){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"setSkipTaskbar\",payload:a}}}})}async startDragging(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{label:this.label,cmd:{type:\"startDragging\"}}}})}}class h extends y{constructor(a,t={}){super(a),t?.skip||e({__tauriModule:\"Window\",message:{cmd:\"createWebview\",data:{options:{label:a,...t}}}}).then((async()=>this.emit(\"tauri://created\"))).catch((async e=>this.emit(\"tauri://error\",e)))}static getByLabel(e){return c().some((a=>a.label===e))?new h(e,{skip:!0}):null}}const g=new h(null,{skip:!0});async function p(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"currentMonitor\"}}}})}async function b(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"primaryMonitor\"}}}})}async function _(){return e({__tauriModule:\"Window\",message:{cmd:\"manage\",data:{cmd:{type:\"availableMonitors\"}}}})}var w=Object.freeze({__proto__:null,WebviewWindow:h,WebviewWindowHandle:u,WindowManager:y,getCurrent:o,getAll:c,appWindow:g,LogicalSize:s,PhysicalSize:n,LogicalPosition:l,PhysicalPosition:r,get UserAttentionType(){return d},currentMonitor:p,primaryMonitor:b,availableMonitors:_});export{s as L,n as P,d as U,h as W,u as a,y as b,c,g as d,l as e,r as f,o as g,p as h,_ as i,b as p,w};\n","\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\n","import{i as r}from\"./tauri-48bdc082.js\";import{t}from\"./tauri-6032cb22.js\";async function e(e,s){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"register\",shortcut:e,handler:t(s)}})}async function s(e,s){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"registerAll\",shortcuts:e,handler:t(s)}})}async function u(t){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"isRegistered\",shortcut:t}})}async function a(t){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregister\",shortcut:t}})}async function o(){return r({__tauriModule:\"GlobalShortcut\",message:{cmd:\"unregisterAll\"}})}var i=Object.freeze({__proto__:null,register:e,registerAll:s,isRegistered:u,unregister:a,unregisterAll:o});export{s as a,o as b,i as g,u as i,e as r,a 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{l as t,a,o as r}from\"./event-29f50a54.js\";async function e(){let r;function e(){r&&r(),r=void 0}return new Promise(((o,s)=>{t(\"tauri://update-status\",(t=>{var a;(a=t?.payload).error?(e(),s(a.error)):\"DONE\"===a.status&&(e(),o())})).then((t=>{r=t})).catch((t=>{throw e(),t})),a(\"tauri://update-install\").catch((t=>{throw e(),t}))}))}async function o(){let e;function o(){e&&e(),e=void 0}return new Promise(((s,u)=>{r(\"tauri://update-available\",(t=>{var a;a=t?.payload,o(),s({manifest:a,shouldUpdate:!0})})).catch((t=>{throw o(),t})),t(\"tauri://update-status\",(t=>{var a;(a=t?.payload).error?(o(),u(a.error)):\"UPTODATE\"===a.status&&(o(),s({shouldUpdate:!1}))})).then((t=>{e=t})).catch((t=>{throw o(),t})),a(\"tauri://update\").catch((t=>{throw o(),t}))}))}var s=Object.freeze({__proto__:null,installUpdate:e,checkUpdate:o});export{o as c,e as i,s as u};\n","\n\n
    \n \n \n
    \n","import{i as e}from\"./tauri-48bdc082.js\";async function r(r){return e({__tauriModule:\"Clipboard\",message:{cmd:\"writeText\",data:r}})}async function a(){return e({__tauriModule:\"Clipboard\",message:{cmd:\"readText\"}})}var t=Object.freeze({__proto__:null,writeText:r,readText:a});export{t as c,a as r,r as w};\n","\n\n
    \n
    \n \n \n
    \n \n
    \n","\n\n
    \n

    Not available for Linux

    \n \n
    \n","\n\n\n\n\n\n

    \n\tResult:\n

    \n
    \n{result}\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.update(() => []);\n }}>clear\n

    \n {@html response}\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","select_value","selected_option","querySelector","HtmlTag","[object Object]","e","n","html","nodeName","t","h","innerHTML","Array","from","childNodes","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","children","l","intro","SvelteComponent","$destroy","type","index","indexOf","splice","$$props","obj","$$set","keys","subscriber_queue","writable","start","stop","subscribers","set","new_value","run_queue","s","invalidate","subscriber","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","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","Int8Array","crypto","getRandomValues","Uint8Array","Math","max","abs","defineProperty","r","Reflect","deleteProperty","configurable","async","rpc","notify","__invokeKey","__TAURI_INVOKE_KEY__","error","includes","freeze","__proto__","transformCallback","invoke","convertFileSrc","eventListeners","pid","__tauriModule","message","buffer","super","stdout","stderr","program","sidecar","onEventFn","_emit","payload","on","signal","spawn","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","String","fromCharCode","apply","subarray","btoa","defaultPath","multiple","directory","filters","extensions","f","trim","res","pathToRead","isFile","match","readBinaryFile","response","blob","reader","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","img","DirOptions","isNaN","opts","arrayBufferToBase64","setTimeout","fileInput","file","src","JSON","Text","Binary","url","status","ok","headers","client","responseType","parse","request","httpMethod","httpUrl","httpBody","getClient","startsWith","endsWith","Body","json","fetch","Client","Response","ResponseType","_sendNotification","Notification","permission","requestPermission","width","height","__TAURI__","__currentWindow","label","skip","__windows","Critical","Informational","u","listeners","_handleTauriEvent","icon","some","g","UserAttentionType","selectedWindow","getCurrent","windowMap","appWindow","urlValue","resizable","maximized","transparent","decorations","alwaysOnTop","fullscreen","minWidth","minHeight","maxWidth","maxHeight","windowTitle","setResizable","maximize","unmaximize","setDecorations","setAlwaysOnTop","setFullscreen","setSize","LogicalSize","setMinSize","setMaxSize","setPosition","LogicalPosition","setTitle","hide","show","minimize","unminimize","openDialog","setIcon","random","webview","WebviewWindow","requestUserAttention","center","WebviewWindowHandle","WindowManager","getAll","PhysicalSize","PhysicalPosition","currentMonitor","primaryMonitor","availableMonitors","shortcuts","unregister","shortcut_","unregisterShortcut","shortcuts_","registerShortcut","unregisterAllShortcuts","savedShortcut","register","registerAll","isRegistered","unregisterAll","windows","child","script","cwd","env","stdin","reduce","clause","line","kill","write","manifest","shouldUpdate","classList","checkUpdate","remove","installUpdate","writeText","readText","constraints","audio","video","stream","videoTracks","getVideoTracks","srcObject","handleSuccess","mediaDevices","getUserMedia","exact","handleError","getTracks","track","foo","bar","stringify","views","Welcome","Communication","Cli","Dialog","FileSystem","Http","HttpForm","Notifications","Window","Shortcuts","Shell","Updater","Clipboard","WebRTC","responses","view","Date","toLocaleTimeString"],"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,iB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,UAAWmnB,KAGXtH,MAAO,QACP7f,UAAWonB,KAGXvH,MAAO,UACP7f,UAAWqnB,KAGXxH,MAAO,YACP7f,UAAWsnB,KAGXzH,MAAO,SACP7f,UAAWunB,SAIXvjB,EAAWyiB,EAAM,GAEjBe,EAAYvd,MACZgQ,EAAW,YAENpW,EAAO4jB,OACdzjB,EAAWyjB,GAWbriB,QACEoiB,EAAUhnB,WAAU8U,QAClB2E,EAAW3E,EAAEnC,KAAK,uCAVHrQ,GACjB0kB,EAAUphB,QAAOkP,aAAcoS,MAAOC,2BAAmD,iBAAV7kB,EAAqBA,EAAQgb,KAAK0I,UAAU1jB,OAAYwS,iBAIvI+C,GAAK,6BA4B4ExU,EAAO4jB,QAcpFD,EAAUphB,0BC/IN,kEAAQ,CAClBzF,OAAQiB,SAASiX"} \ No newline at end of file diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index fbf861b7ca3..e500dd47bd8 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -1324,6 +1324,12 @@ dependencies = [ "itoa", ] +[[package]] +name = "http-range" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eee9694f83d9b7c09682fdb32213682939507884e5bcf227be9aff5d644b90dc" + [[package]] name = "ico" version = "0.1.0" @@ -1457,9 +1463,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.52" +version = "0.3.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce791b7ca6638aae45be056e068fc756d871eb3b3b10b8efa62d1c9cec616752" +checksum = "e4bf49d50e2961077d9c99f4b7997d770a1114f087c3c2e0069b36c13fc2979d" dependencies = [ "wasm-bindgen", ] @@ -1574,9 +1580,9 @@ checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" [[package]] name = "memchr" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" +checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "memoffset" @@ -1834,9 +1840,9 @@ dependencies = [ [[package]] name = "openssl" -version = "0.10.35" +version = "0.10.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "549430950c79ae24e6d02e0b7404534ecf311d94cc9f861e9e4020187d13d885" +checksum = "8d9facdb76fec0b73c406f125d44d86fdad818d66fef0531eec9233ca425ff4a" dependencies = [ "bitflags 1.3.2", "cfg-if 1.0.0", @@ -1854,9 +1860,9 @@ checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" [[package]] name = "openssl-sys" -version = "0.9.65" +version = "0.9.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a7907e3bfa08bb85105209cdfcb6c63d109f8f6c1ed6ca318fff5c1853fbc1d" +checksum = "1996d2d305e561b70d1ee0c53f1542833f4e1ac6ce9a6708b6ff2738ca67dc82" dependencies = [ "autocfg", "cc", @@ -2898,7 +2904,7 @@ dependencies = [ [[package]] name = "tauri" -version = "1.0.0-beta.6" +version = "1.0.0-beta.7" dependencies = [ "attohttpc", "base64", @@ -3011,6 +3017,9 @@ name = "tauri-runtime" version = "0.2.0" dependencies = [ "gtk", + "http", + "http-range", + "infer", "serde", "serde_json", "tauri-utils", @@ -3160,6 +3169,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01cf844b23c6131f624accf65ce0e4e9956a8bb329400ea5bcc26ae3a5c20b0b" dependencies = [ "autocfg", + "bytes", + "memchr", "num_cpus", "pin-project-lite", ] @@ -3319,9 +3330,9 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasm-bindgen" -version = "0.2.75" +version = "0.2.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b608ecc8f4198fe8680e2ed18eccab5f0cd4caaf3d83516fa5fb2e927fda2586" +checksum = "8ce9b1b516211d33767048e5d47fa2a381ed8b76fc48d2ce4aa39877f9f183e0" dependencies = [ "cfg-if 1.0.0", "wasm-bindgen-macro", @@ -3329,9 +3340,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.75" +version = "0.2.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "580aa3a91a63d23aac5b6b267e2d13cb4f363e31dce6c352fca4752ae12e479f" +checksum = "cfe8dc78e2326ba5f845f4b5bf548401604fa20b1dd1d365fb73b6c1d6364041" dependencies = [ "bumpalo", "lazy_static", @@ -3344,9 +3355,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.25" +version = "0.4.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16646b21c3add8e13fdb8f20172f8a28c3dbf62f45406bcff0233188226cfe0c" +checksum = "95fded345a6559c2cfee778d562300c581f7d4ff3edb9b0d230d69800d213972" dependencies = [ "cfg-if 1.0.0", "js-sys", @@ -3356,9 +3367,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.75" +version = "0.2.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "171ebf0ed9e1458810dfcb31f2e766ad6b3a89dbda42d8901f2b268277e5f09c" +checksum = "44468aa53335841d9d6b6c023eaab07c0cd4bddbcfdee3e2bb1e8d2cb8069fef" dependencies = [ "quote 1.0.9", "wasm-bindgen-macro-support", @@ -3366,9 +3377,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.75" +version = "0.2.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c2657dd393f03aa2a659c25c6ae18a13a4048cebd220e147933ea837efc589f" +checksum = "0195807922713af1e67dc66132c7328206ed9766af3858164fb583eedc25fbad" dependencies = [ "proc-macro2", "quote 1.0.9", @@ -3379,15 +3390,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.75" +version = "0.2.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e0c4a743a309662d45f4ede961d7afa4ba4131a59a639f29b0069c3798bbcc2" +checksum = "acdb075a845574a1fa5f09fd77e43f7747599301ea3417a9fbffdeedfc1f4a29" [[package]] name = "web-sys" -version = "0.3.52" +version = "0.3.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01c70a82d842c9979078c772d4a1344685045f1a5628f677c2b2eab4dd7d2696" +checksum = "224b2f6b67919060055ef1a67807367c2066ed520c3862cc013d26cf893a783c" dependencies = [ "js-sys", "wasm-bindgen", @@ -3548,8 +3559,7 @@ dependencies = [ [[package]] name = "wry" version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6864c505d06edcc8651c13e4a666596b9a1462211337d87dc9a022246d2846e8" +source = "git+https://github.com/tauri-apps/wry?branch=dev#851af5dae9f1c5a3aef021c1272b8a28119078dc" dependencies = [ "cocoa", "core-graphics 0.22.2", @@ -3557,6 +3567,7 @@ dependencies = [ "gio", "glib", "gtk", + "http", "libc", "log", "objc", diff --git a/examples/api/src-tauri/src/main.rs b/examples/api/src-tauri/src/main.rs index aba673c859e..64c570467d4 100644 --- a/examples/api/src-tauri/src/main.rs +++ b/examples/api/src-tauri/src/main.rs @@ -13,10 +13,11 @@ mod menu; #[cfg(target_os = "linux")] use std::path::PathBuf; -use serde::Serialize; +use serde::{Deserialize, Serialize}; use tauri::{ - api::dialog::ask, async_runtime, CustomMenuItem, Event, GlobalShortcutManager, Manager, - SystemTray, SystemTrayEvent, SystemTrayMenu, WindowBuilder, WindowUrl, + api::dialog::ask, async_runtime, http::ResponseBuilder, CustomMenuItem, Event, + GlobalShortcutManager, Manager, SystemTray, SystemTrayEvent, SystemTrayMenu, WindowBuilder, + WindowUrl, }; #[derive(Serialize)] @@ -24,6 +25,18 @@ struct Reply { data: String, } +#[derive(Serialize, Deserialize)] +struct HttpPost { + foo: String, + bar: String, +} + +#[derive(Serialize)] +struct HttpReply { + msg: String, + request: HttpPost, +} + #[tauri::command] async fn menu_toggle(window: tauri::Window) { window.menu_handle().toggle().unwrap(); @@ -45,6 +58,24 @@ fn main() { .expect("failed to emit"); }); }) + .register_uri_scheme_protocol("customprotocol", move |_app_handle, request| { + if request.method() == "POST" { + let request: HttpPost = serde_json::from_slice(request.body()).unwrap(); + return ResponseBuilder::new() + .mimetype("application/json") + .header("Access-Control-Allow-Origin", "*") + .status(200) + .body(serde_json::to_vec(&HttpReply { + request, + msg: "Hello from rust!".to_string(), + })?); + } + + ResponseBuilder::new() + .mimetype("text/html") + .status(404) + .body(Vec::new()) + }) .menu(menu::get_menu()) .on_menu_event(|event| { println!("{:?}", event.menu_item_id()); diff --git a/examples/api/src-tauri/tauri.conf.json b/examples/api/src-tauri/tauri.conf.json index 7757271298d..6e7f66d1b4c 100644 --- a/examples/api/src-tauri/tauri.conf.json +++ b/examples/api/src-tauri/tauri.conf.json @@ -75,7 +75,7 @@ } ], "security": { - "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: asset: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'" + "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: asset: customprotocol: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'" }, "systemTray": { "iconPath": "../../.icons/tray_icon_with_transparency.png", diff --git a/examples/api/src/App.svelte b/examples/api/src/App.svelte index a4ce2933325..2685e46b977 100644 --- a/examples/api/src/App.svelte +++ b/examples/api/src/App.svelte @@ -18,6 +18,7 @@ import Updater from "./components/Updater.svelte"; import Clipboard from "./components/Clipboard.svelte"; import WebRTC from './components/WebRTC.svelte' + import HttpForm from "./components/HttpForm.svelte"; const MENU_TOGGLE_HOTKEY = 'ctrl+b'; @@ -52,6 +53,10 @@ label: "HTTP", component: Http, }, + { + label: "HTTP Form", + component: HttpForm, + }, { label: "Notifications", component: Notifications, diff --git a/examples/api/src/components/HttpForm.svelte b/examples/api/src/components/HttpForm.svelte new file mode 100644 index 00000000000..27463fc9700 --- /dev/null +++ b/examples/api/src/components/HttpForm.svelte @@ -0,0 +1,32 @@ + + + + + + +

    + Result: +

    +
    +{result}
    +
    \ No newline at end of file diff --git a/examples/streaming/index.html b/examples/streaming/index.html new file mode 100644 index 00000000000..6ed6bb68d89 --- /dev/null +++ b/examples/streaming/index.html @@ -0,0 +1,31 @@ + + + + + + + + + + + + diff --git a/examples/streaming/package.json b/examples/streaming/package.json new file mode 100644 index 00000000000..390bf156704 --- /dev/null +++ b/examples/streaming/package.json @@ -0,0 +1,7 @@ +{ + "name": "streaming", + "version": "1.0.0", + "scripts": { + "tauri": "node ../../tooling/cli.js/bin/tauri" + } +} diff --git a/examples/streaming/src-tauri/.gitignore b/examples/streaming/src-tauri/.gitignore new file mode 100644 index 00000000000..270a92d275e --- /dev/null +++ b/examples/streaming/src-tauri/.gitignore @@ -0,0 +1,10 @@ +# Generated by Cargo +# will have compiled files and executables +/target/ +WixTools + +# These are backup files generated by rustfmt +**/*.rs.bk + +config.json +bundle.json diff --git a/examples/streaming/src-tauri/.license_template b/examples/streaming/src-tauri/.license_template new file mode 100644 index 00000000000..9601f8a1b49 --- /dev/null +++ b/examples/streaming/src-tauri/.license_template @@ -0,0 +1,3 @@ +// Copyright {20\d{2}(-20\d{2})?} Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/examples/streaming/src-tauri/Cargo.lock b/examples/streaming/src-tauri/Cargo.lock new file mode 100644 index 00000000000..cfd41540588 --- /dev/null +++ b/examples/streaming/src-tauri/Cargo.lock @@ -0,0 +1,3165 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "adler" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" + +[[package]] +name = "adler32" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234" + +[[package]] +name = "aho-corasick" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" +dependencies = [ + "memchr", +] + +[[package]] +name = "anyhow" +version = "1.0.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28ae2b3dec75a406790005a200b1bd89785afc02517a00ca99ecfe093ee9e6cf" + +[[package]] +name = "arrayref" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" + +[[package]] +name = "arrayvec" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be4dc07131ffa69b8072d35f5007352af944213cde02545e2103680baed38fcd" + +[[package]] +name = "atk" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a83b21d2aa75e464db56225e1bda2dd5993311ba1095acaa8fa03d1ae67026ba" +dependencies = [ + "atk-sys", + "bitflags", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "badcf670157c84bb8b1cf6b5f70b650fed78da2033c9eed84c4e49b11cbe83ea" +dependencies = [ + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "system-deps 3.2.0", +] + +[[package]] +name = "attohttpc" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8bda305457262b339322106c776e3fd21df860018e566eb6a5b1aa4b6ae02d" +dependencies = [ + "flate2", + "http", + "log", + "native-tls", + "openssl", + "serde", + "serde_json", + "serde_urlencoded", + "url", + "wildmatch", +] + +[[package]] +name = "autocfg" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "blake3" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcd555c66291d5f836dbb6883b48660ece810fe25a31f3bdfb911945dff2691f" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if 1.0.0", + "constant_time_eq", + "digest", + "rayon", +] + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "bstr" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90682c8d613ad3373e66de8c6411e0ae2ab2571e879d2efbf73558cc66f21279" +dependencies = [ + "memchr", +] + +[[package]] +name = "bumpalo" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c59e7af012c713f529e7a3ee57ce9b31ddd858d4b512923602f74608b009631" + +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + +[[package]] +name = "bytes" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040" + +[[package]] +name = "bzip2" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6afcd980b5f3a45017c57e57a2fcccbb351cc43a356ce117ef760ef8052b89b0" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + +[[package]] +name = "cairo-rs" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a408c13bbc04c3337b94194c1a4d04067097439b79dbc1dcbceba299d828b9ea" +dependencies = [ + "bitflags", + "cairo-sys-rs", + "glib", + "libc", + "thiserror", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c9c3928781e8a017ece15eace05230f04b647457d170d2d9641c94a444ff80" +dependencies = [ + "glib-sys 0.14.0", + "libc", + "system-deps 3.2.0", +] + +[[package]] +name = "cc" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e70cc2f62c6ce1868963827bd677764c62d07c3d9a3e1fb1177ee1a9ab199eb2" +dependencies = [ + "jobserver", +] + +[[package]] +name = "cfb" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca453e8624711b2f0f4eb47076a318feda166252a827ee25d067b43de83dcba0" +dependencies = [ + "byteorder", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b412e83326147c2bb881f8b40edfbf9905b9b8abaebd0e47ca190ba62fda8f0e" +dependencies = [ + "smallvec", +] + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cfg_aliases" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" + +[[package]] +name = "cocoa" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63902e9223530efb4e26ccd0cf55ec30d592d3b42e21a28defc42a9586e832" +dependencies = [ + "bitflags", + "block", + "cocoa-foundation", + "core-foundation 0.9.1", + "core-graphics 0.22.2", + "foreign-types", + "libc", + "objc", +] + +[[package]] +name = "cocoa-foundation" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ade49b65d560ca58c403a479bb396592b155c0185eada742ee323d1d68d6318" +dependencies = [ + "bitflags", + "block", + "core-foundation 0.9.1", + "core-graphics-types", + "foreign-types", + "libc", + "objc", +] + +[[package]] +name = "com" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a30a2b2a013da986dc5cc3eda3d19c0d59d53f835be1b2356eb8d00f000c793" +dependencies = [ + "com_macros", +] + +[[package]] +name = "com_macros" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7606b05842fea68ddcc89e8053b8860ebcb2a0ba8d6abfe3a148e5d5a8d3f0c1" +dependencies = [ + "com_macros_support", + "proc-macro2", + "syn", +] + +[[package]] +name = "com_macros_support" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97e9a6d20f4ac8830e309a455d7e9416e65c6af5a97c88c55fbb4c2012e107da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "constant_time_eq" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc" + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "core-foundation" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" +dependencies = [ + "core-foundation-sys 0.7.0", + "libc", +] + +[[package]] +name = "core-foundation" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62" +dependencies = [ + "core-foundation-sys 0.8.2", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" + +[[package]] +name = "core-foundation-sys" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" + +[[package]] +name = "core-graphics" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3889374e6ea6ab25dba90bb5d96202f61108058361f6dc72e8b03e6f8bbe923" +dependencies = [ + "bitflags", + "core-foundation 0.7.0", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "269f35f69b542b80e736a20a89a05215c0ce80c2c03c514abb2e318b78379d86" +dependencies = [ + "bitflags", + "core-foundation 0.9.1", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a68b68b3446082644c91ac778bf50cd4104bfb002b5a6a7c44cca5a2c70788b" +dependencies = [ + "bitflags", + "core-foundation 0.9.1", + "foreign-types", + "libc", +] + +[[package]] +name = "core-video-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ecad23610ad9757664d644e369246edde1803fcb43ed72876565098a5d3828" +dependencies = [ + "cfg-if 0.1.10", + "core-foundation-sys 0.7.0", + "core-graphics 0.19.2", + "libc", + "objc", +] + +[[package]] +name = "crc32fast" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ed27e177f16d65f0f0c22a213e17c696ace5dd64b14258b52f9417ccb52db4" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ec02e091aa634e2c3ada4a392989e7c3116673ef0ac5b72232439094d73b7fd" +dependencies = [ + "cfg-if 1.0.0", + "crossbeam-utils", + "lazy_static", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db" +dependencies = [ + "cfg-if 1.0.0", + "lazy_static", +] + +[[package]] +name = "cssparser" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "matches", + "phf 0.8.0", + "proc-macro2", + "quote", + "smallvec", + "syn", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfae75de57f2b2e85e8768c3ea840fd159c8f33e2b6522c7835b7abac81be16e" +dependencies = [ + "quote", + "syn", +] + +[[package]] +name = "darling" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d706e75d87e35569db781a9b5e2416cff1236a47ed380831f959382ccd5f858" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0c960ae2da4de88a91b2d920c2a7233b400bc33cb28453a2987822d8392519b" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn", +] + +[[package]] +name = "darling_macro" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b5a2f4ac4969822c62224815d069952656cadc7084fdca9751e6d959189b72" +dependencies = [ + "darling_core", + "quote", + "syn", +] + +[[package]] +name = "deflate" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "707b6a7b384888a70c8d2e8650b3e60170dfc6a67bb4aa67b6dfca57af4bedb4" +dependencies = [ + "adler32", + "byteorder", +] + +[[package]] +name = "deflate" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73770f8e1fe7d64df17ca66ad28994a0a623ea497fa69486e14984e715c5d174" +dependencies = [ + "adler32", + "byteorder", +] + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "derive_more" +version = "0.99.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40eebddd2156ce1bb37b20bbe5151340a31828b1f2d22ba4141f3531710e38df" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn", +] + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "dirs-next" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" +dependencies = [ + "cfg-if 1.0.0", + "dirs-sys-next", +] + +[[package]] +name = "dirs-sys-next" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +dependencies = [ + "libc", + "redox_users", + "winapi", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dtoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" + +[[package]] +name = "dtoa-short" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde03329ae10e79ede66c9ce4dc930aa8599043b0743008548680f25b91502d6" +dependencies = [ + "dtoa", +] + +[[package]] +name = "either" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" + +[[package]] +name = "embed_plist" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53dd2e43a7d32952a6054141ee0d75183958620e84e5eab045de362dff13dc99" + +[[package]] +name = "fastrand" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b394ed3d285a429378d3b384b9eb1285267e7df4b166df24b7a6939a04dc392e" +dependencies = [ + "instant", +] + +[[package]] +name = "field-offset" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e1c54951450cbd39f3dbcf1005ac413b49487dabf18a720ad2383eccfeffb92" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "filetime" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "975ccf83d8d9d0d84682850a38c8169027be83368805971cc4f238c2b245bc98" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "redox_syscall", + "winapi", +] + +[[package]] +name = "flate2" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd3aec53de10fe96d7d8c565eb17f2c687bb5518a2ec453b5b1252964526abe0" +dependencies = [ + "cfg-if 1.0.0", + "crc32fast", + "libc", + "miniz_oxide 0.4.4", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +dependencies = [ + "matches", + "percent-encoding", +] + +[[package]] +name = "futf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c9c1ce3fa9336301af935ab852c437817d14cd33690446569392e65170aac3b" +dependencies = [ + "mac", + "new_debug_unreachable", +] + +[[package]] +name = "futures" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1adc00f486adfc9ce99f77d717836f0c5aa84965eb0b4f051f4e83f7cab53f8b" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74ed2411805f6e4e3d9bc904c95d5d423b89b3b25dc0250aa74729de20629ff9" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af51b1b4a7fdff033703db39de8802c673eb91855f2e0d47dcf3bf2c0ef01f99" + +[[package]] +name = "futures-executor" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d0d535a57b87e1ae31437b892713aee90cd2d7b0ee48727cd11fc72ef54761c" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b0e06c393068f3a6ef246c75cdca793d6a46347e75286933e5e75fd2fd11582" + +[[package]] +name = "futures-lite" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694489acd39452c77daa48516b894c153f192c3578d5a839b62c58099fcbf48" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "memchr", + "parking", + "pin-project-lite", + "waker-fn", +] + +[[package]] +name = "futures-macro" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c54913bae956fb8df7f4dc6fc90362aa72e69148e3f39041fbe8742d21e0ac57" +dependencies = [ + "autocfg", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-sink" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f30aaa67363d119812743aa5f33c201a7a66329f97d1a887022971feea4b53" + +[[package]] +name = "futures-task" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbe54a98670017f3be909561f6ad13e810d9a51f3f061b902062ca3da80799f2" + +[[package]] +name = "futures-util" +version = "0.3.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eb846bfd58e44a8481a00049e82c43e0ccb5d61f8dc071057cb19249dd4d78" +dependencies = [ + "autocfg", + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "proc-macro-hack", + "proc-macro-nested", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[package]] +name = "gdk" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "679e22651cd15888e7acd01767950edca2ee9fcd6421fbf5b3c3b420d4e88bb0" +dependencies = [ + "bitflags", + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "534192cb8f01daeb8fab2c8d4baa8f9aae5b7a39130525779f5c2608e235b10f" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f097c0704201fbc8f69c1762dc58c6947c8bb188b8ed0bc7e65259f1894fe590" +dependencies = [ + "gio-sys 0.14.0", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "system-deps 3.2.0", +] + +[[package]] +name = "gdk-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e091b3d3d6696949ac3b3fb3c62090e5bfd7bd6850bef5c3c5ea701de1b1f1e" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys 0.14.0", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "pango-sys", + "pkg-config", + "system-deps 3.2.0", +] + +[[package]] +name = "generator" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1d9279ca822891c1a4dae06d185612cf8fc6acfe5dff37781b41297811b12ee" +dependencies = [ + "cc", + "libc", + "log", + "rustversion", + "winapi", +] + +[[package]] +name = "generic-array" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", +] + +[[package]] +name = "getrandom" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "wasi 0.10.2+wasi-snapshot-preview1", +] + +[[package]] +name = "gio" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86c6823b39d46d22cac2466de261f28d7f049ebc18f7b35296a42c7ed8a88325" +dependencies = [ + "bitflags", + "futures-channel", + "futures-core", + "futures-io", + "gio-sys 0.14.0", + "glib", + "libc", + "once_cell", + "thiserror", +] + +[[package]] +name = "gio-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e24fb752f8f5d2cf6bbc2c606fd2bc989c81c5e2fe321ab974d54f8b6344eac" +dependencies = [ + "glib-sys 0.10.1", + "gobject-sys 0.10.0", + "libc", + "system-deps 1.3.2", + "winapi", +] + +[[package]] +name = "gio-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0a41df66e57fcc287c4bcf74fc26b884f31901ea9792ec75607289b456f48fa" +dependencies = [ + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "system-deps 3.2.0", + "winapi", +] + +[[package]] +name = "glib" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbecad7a3a898ee749d491ce2ae0decb0bce9e736f9747bc49159b1cea5d37f4" +dependencies = [ + "bitflags", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "glib-macros", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "once_cell", + "smallvec", +] + +[[package]] +name = "glib-macros" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2aad66361f66796bfc73f530c51ef123970eb895ffba991a234fcf7bea89e518" +dependencies = [ + "anyhow", + "heck", + "proc-macro-crate 1.0.0", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "glib-sys" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7e9b997a66e9a23d073f2b1abb4dbfc3925e0b8952f67efd8d9b6e168e4cdc1" +dependencies = [ + "libc", + "system-deps 1.3.2", +] + +[[package]] +name = "glib-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c1d60554a212445e2a858e42a0e48cece1bd57b311a19a9468f70376cf554ae" +dependencies = [ + "libc", + "system-deps 3.2.0", +] + +[[package]] +name = "globset" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10463d9ff00a2a068db14231982f5132edebad0d7660cd956a1c30292dbcbfbd" +dependencies = [ + "aho-corasick", + "bstr", + "fnv", + "log", + "regex", +] + +[[package]] +name = "gobject-sys" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "952133b60c318a62bf82ee75b93acc7e84028a093e06b9e27981c2b6fe68218c" +dependencies = [ + "glib-sys 0.10.1", + "libc", + "system-deps 1.3.2", +] + +[[package]] +name = "gobject-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa92cae29759dae34ab5921d73fff5ad54b3d794ab842c117e36cafc7994c3f5" +dependencies = [ + "glib-sys 0.14.0", + "libc", + "system-deps 3.2.0", +] + +[[package]] +name = "gtk" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ae864e5eab8bc8b6b8544ed259eb02dd61b25323b20e777a77aa289c05fd0c" +dependencies = [ + "atk", + "bitflags", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "once_cell", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c14c8d3da0545785a7c5a120345b3abb534010fb8ae0f2ef3f47c027fba303e" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys 0.14.0", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "pango-sys", + "system-deps 3.2.0", +] + +[[package]] +name = "gtk3-macros" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21de1da96dc117443fb03c2e270b2d34b7de98d0a79a19bbb689476173745b79" +dependencies = [ + "anyhow", + "heck", + "proc-macro-crate 1.0.0", + "proc-macro-error", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "heck" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" +dependencies = [ + "unicode-segmentation", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "html5ever" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aafcf38a1a36118242d29b92e1b08ef84e67e4a5ed06e0a80be20e6a32bfed6b" +dependencies = [ + "log", + "mac", + "markup5ever", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "http" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527e8c9ac747e28542699a951517aa9a6945af506cd1f2e1b53a576c17b6cc11" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-range" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eee9694f83d9b7c09682fdb32213682939507884e5bcf227be9aff5d644b90dc" + +[[package]] +name = "ico" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a4b3331534254a9b64095ae60d3dc2a8225a7a70229cd5888be127cdc1f6804" +dependencies = [ + "byteorder", + "png 0.11.0", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +dependencies = [ + "matches", + "unicode-bidi", + "unicode-normalization", +] + +[[package]] +name = "ignore" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "713f1b139373f96a2e0ce3ac931cd01ee973c3c5dd7c40c0c2efe96ad2b6751d" +dependencies = [ + "crossbeam-utils", + "globset", + "lazy_static", + "log", + "memchr", + "regex", + "same-file", + "thread_local", + "walkdir", + "winapi-util", +] + +[[package]] +name = "infer" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f92b41dab759f9e8427c03f519c344a14655490b8db548dac1e57a75b3258391" +dependencies = [ + "cfb", +] + +[[package]] +name = "inflate" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f5f9f47468e9a76a6452271efadc88fe865a82be91fe75e6c0c57b87ccea59d4" +dependencies = [ + "adler32", +] + +[[package]] +name = "instant" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee0328b1209d157ef001c94dd85b4f8f64139adb0eac2659f4b08382b2f474d" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "itertools" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" + +[[package]] +name = "javascriptcore-rs" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca9c7d1445bba2889672fbadc16c3d5007bfdcf0a15a18a3a50fe9fab2c7427" +dependencies = [ + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f46ada8a08dcd75a10afae872fbfb51275df4a8ae0d46b8cc7c708f08dd2998" +dependencies = [ + "libc", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "jobserver" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af25a77299a7f711a01975c35a6a424eb6862092cc2d6c72c4ed6cbc56dfc1fa" +dependencies = [ + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4bf49d50e2961077d9c99f4b7997d770a1114f087c3c2e0069b36c13fc2979d" +dependencies = [ + "wasm-bindgen", +] + +[[package]] +name = "kuchiki" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ea8e9c6e031377cff82ee3001dc8026cdf431ed4e2e6b51f98ab8c73484a358" +dependencies = [ + "cssparser", + "html5ever", + "matches", + "selectors", +] + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.99" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7f823d141fe0a24df1e23b4af4e3c7ba9e5966ec514ea068c93024aa7deb765" + +[[package]] +name = "lock_api" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0382880606dff6d15c9476c416d18690b72742aa7b605bb6dd6ec9030fbf07eb" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "loom" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2111607c723d7857e0d8299d5ce7a0bf4b844d3e44f8de136b13da513eaf8fc4" +dependencies = [ + "cfg-if 1.0.0", + "generator", + "scoped-tls", + "serde", + "serde_json", +] + +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "markup5ever" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a24f40fb03852d1cdd84330cddcaf98e9ec08a7b7768e952fad3b4cf048ec8fd" +dependencies = [ + "log", + "phf 0.8.0", + "phf_codegen", + "string_cache", + "string_cache_codegen", + "tendril", +] + +[[package]] +name = "matches" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" + +[[package]] +name = "maybe-uninit" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00" + +[[package]] +name = "memchr" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" + +[[package]] +name = "memoffset" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9" +dependencies = [ + "autocfg", +] + +[[package]] +name = "miniz_oxide" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791daaae1ed6889560f8c4359194f56648355540573244a5448a83ba1ecc7435" +dependencies = [ + "adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" +dependencies = [ + "adler", + "autocfg", +] + +[[package]] +name = "native-tls" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d" +dependencies = [ + "lazy_static", + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[package]] +name = "ndk" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d64d6af06fde0e527b1ba5c7b79a6cc89cfc46325b0b2887dffe8f70197e0c3c" +dependencies = [ + "bitflags", + "jni-sys", + "ndk-sys", + "num_enum", + "thiserror", +] + +[[package]] +name = "ndk-glue" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3e9e94628f24e7a3cb5b96a2dc5683acd9230bf11991c2a1677b87695138420" +dependencies = [ + "lazy_static", + "libc", + "log", + "ndk", + "ndk-macro", + "ndk-sys", +] + +[[package]] +name = "ndk-macro" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05d1c6307dc424d0f65b9b06e94f88248e6305726b14729fd67a5e47b2dc481d" +dependencies = [ + "darling", + "proc-macro-crate 0.1.5", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "ndk-sys" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c44922cb3dbb1c70b5e5f443d63b64363a898564d739ba5198e3a9138442868d" + +[[package]] +name = "new_debug_unreachable" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" + +[[package]] +name = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + +[[package]] +name = "num-integer" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" +dependencies = [ + "autocfg", + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_cpus" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9bd055fb730c4f8f4f57d45d35cd6b3f0980535b056dc7ff119cee6a66ed6f" +dependencies = [ + "derivative", + "num_enum_derive", +] + +[[package]] +name = "num_enum_derive" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "486ea01961c4a818096de679a8b740b26d9033146ac5291b1c98557658f8cdd9" +dependencies = [ + "proc-macro-crate 1.0.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-foundation" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9" +dependencies = [ + "block", + "objc", + "objc_id", +] + +[[package]] +name = "objc_id" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" +dependencies = [ + "objc", +] + +[[package]] +name = "once_cell" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" + +[[package]] +name = "openssl" +version = "0.10.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d9facdb76fec0b73c406f125d44d86fdad818d66fef0531eec9233ca425ff4a" +dependencies = [ + "bitflags", + "cfg-if 1.0.0", + "foreign-types", + "libc", + "once_cell", + "openssl-sys", +] + +[[package]] +name = "openssl-probe" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" + +[[package]] +name = "openssl-sys" +version = "0.9.66" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1996d2d305e561b70d1ee0c53f1542833f4e1ac6ce9a6708b6ff2738ca67dc82" +dependencies = [ + "autocfg", + "cc", + "libc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "pango" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "415823a4fb9f1789785cd6e2d2413816f2ecff92380382969aaca9c400e13a19" +dependencies = [ + "bitflags", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2367099ca5e761546ba1d501955079f097caa186bb53ce0f718dca99ac1942fe" +dependencies = [ + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "libc", + "system-deps 3.2.0", +] + +[[package]] +name = "parking" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" + +[[package]] +name = "parking_lot" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" +dependencies = [ + "instant", + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018" +dependencies = [ + "cfg-if 1.0.0", + "instant", + "libc", + "redox_syscall", + "smallvec", + "winapi", +] + +[[package]] +name = "percent-encoding" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" + +[[package]] +name = "pest" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" +dependencies = [ + "ucd-trie", +] + +[[package]] +name = "phf" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" +dependencies = [ + "phf_macros 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", +] + +[[package]] +name = "phf" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9fc3db1018c4b59d7d582a739436478b6035138b6aecbce989fc91c3e98409f" +dependencies = [ + "phf_macros 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", +] + +[[package]] +name = "phf_codegen" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", +] + +[[package]] +name = "phf_generator" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" +dependencies = [ + "phf_shared 0.8.0", + "rand 0.7.3", +] + +[[package]] +name = "phf_generator" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" +dependencies = [ + "phf_shared 0.10.0", + "rand 0.8.4", +] + +[[package]] +name = "phf_macros" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "phf_macros" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" +dependencies = [ + "phf_generator 0.10.0", + "phf_shared 0.10.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "phf_shared" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" +dependencies = [ + "siphasher", +] + +[[package]] +name = "phf_shared" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" + +[[package]] +name = "png" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0b0cabbbd20c2d7f06dbf015e06aad59b6ca3d9ed14848783e98af9aaf19925" +dependencies = [ + "bitflags", + "deflate 0.7.20", + "inflate", + "num-iter", +] + +[[package]] +name = "png" +version = "0.16.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3287920cb847dee3de33d301c463fba14dda99db24214ddf93f83d3021f4c6" +dependencies = [ + "bitflags", + "crc32fast", + "deflate 0.8.6", + "miniz_oxide 0.3.7", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml", +] + +[[package]] +name = "proc-macro-crate" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fdbd1df62156fbc5945f4762632564d7d038153091c3fcf1067f6aef7cff92" +dependencies = [ + "thiserror", + "toml", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5" + +[[package]] +name = "proc-macro-nested" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086" + +[[package]] +name = "proc-macro2" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7ed8b8c7b886ea3ed7dde405212185f423ab44682667c8c6dd14aa1d9f6612" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc 0.2.0", + "rand_pcg", +] + +[[package]] +name = "rand" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.3", + "rand_hc 0.3.1", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.3", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" +dependencies = [ + "getrandom 0.2.3", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_hc" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" +dependencies = [ + "rand_core 0.6.3", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "raw-window-handle" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a441a7a6c80ad6473bd4b74ec1c9a4c951794285bf941c2126f607c72e48211" +dependencies = [ + "libc", +] + +[[package]] +name = "rayon" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90" +dependencies = [ + "autocfg", + "crossbeam-deque", + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "lazy_static", + "num_cpus", +] + +[[package]] +name = "redox_syscall" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" +dependencies = [ + "bitflags", +] + +[[package]] +name = "redox_users" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "528532f3d801c87aec9def2add9ca802fe569e44a544afe633765267840abe64" +dependencies = [ + "getrandom 0.2.3", + "redox_syscall", +] + +[[package]] +name = "regex" +version = "1.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.6.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" + +[[package]] +name = "remove_dir_all" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" +dependencies = [ + "winapi", +] + +[[package]] +name = "rfd" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cede43618603a102f37bb58244534a33de7daa6a3b77f00277675eef5f8174fe" +dependencies = [ + "block", + "dispatch", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "gtk-sys", + "js-sys", + "lazy_static", + "objc", + "objc-foundation", + "objc_id", + "raw-window-handle", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "winapi", +] + +[[package]] +name = "rustc_version" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" +dependencies = [ + "semver 0.11.0", +] + +[[package]] +name = "rustversion" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61b3909d758bb75c79f23d4736fac9433868679d3ad2ea7a61e3c25cfda9a088" + +[[package]] +name = "ryu" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" +dependencies = [ + "lazy_static", + "winapi", +] + +[[package]] +name = "scoped-tls" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" + +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + +[[package]] +name = "security-framework" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23a2ac85147a3a11d77ecf1bc7166ec0b92febfa4461c37944e180f319ece467" +dependencies = [ + "bitflags", + "core-foundation 0.9.1", + "core-foundation-sys 0.8.2", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e4effb91b4b8b6fb7732e670b6cee160278ff8e6bf485c7805d9e319d76e284" +dependencies = [ + "core-foundation-sys 0.8.2", + "libc", +] + +[[package]] +name = "selectors" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" +dependencies = [ + "bitflags", + "cssparser", + "derive_more", + "fxhash", + "log", + "matches", + "phf 0.8.0", + "phf_codegen", + "precomputed-hash", + "servo_arc", + "smallvec", + "thin-slice", +] + +[[package]] +name = "semver" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" + +[[package]] +name = "semver-parser" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7" +dependencies = [ + "pest", +] + +[[package]] +name = "serde" +version = "1.0.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f03b9878abf6d14e6779d3f24f07b2cfa90352cfec4acc5aab8f1ac7f146fae8" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.127" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a024926d3432516606328597e0f224a51355a493b49fdd67e9209187cbe55ecc" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.66" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "336b10da19a12ad094b59d870ebde26a45402e5b470add4b5fd03c5048a32127" +dependencies = [ + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_repr" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98d0516900518c29efa217c298fa1f4e6c6ffc85ae29fd7f4ee48f176e1a9ed5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_urlencoded" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ec5d77e2d4c73717816afac02670d5c4f534ea95ed430442cad02e7a6e32c97" +dependencies = [ + "dtoa", + "itoa", + "serde", + "url", +] + +[[package]] +name = "servo_arc" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432" +dependencies = [ + "nodrop", + "stable_deref_trait", +] + +[[package]] +name = "siphasher" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "729a25c17d72b06c68cb47955d44fda88ad2d3e7d77e025663fdd69b93dd71a1" + +[[package]] +name = "slab" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590" + +[[package]] +name = "smallvec" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" + +[[package]] +name = "soup-sys" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3c7adf08565630bbb71f955f11f8a68464817ded2703a3549747c235b58a13e" +dependencies = [ + "bitflags", + "gio-sys 0.10.1", + "glib-sys 0.10.1", + "gobject-sys 0.10.0", + "libc", + "pkg-config", + "system-deps 1.3.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "state" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cf4f5369e6d3044b5e365c9690f451516ac8f0954084622b49ea3fde2f6de5" +dependencies = [ + "loom", +] + +[[package]] +name = "streaming" +version = "0.1.0" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", +] + +[[package]] +name = "string_cache" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ddb1139b5353f96e429e1a5e19fbaf663bddedaa06d1dbd49f82e352601209a" +dependencies = [ + "lazy_static", + "new_debug_unreachable", + "phf_shared 0.8.0", + "precomputed-hash", + "serde", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f24c8e5e19d22a726626f1a5e16fe15b132dcf21d10177fa5a45ce7962996b97" +dependencies = [ + "phf_generator 0.8.0", + "phf_shared 0.8.0", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c" + +[[package]] +name = "strum" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57bd81eb48f4c437cadc685403cad539345bf703d78e63707418431cecd4522b" + +[[package]] +name = "strum" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2" + +[[package]] +name = "strum_macros" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87c85aa3f8ea653bfd3ddf25f7ee357ee4d204731f6aa9ad04002306f6e2774c" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "strum_macros" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d06aaeeee809dbc59eb4556183dd927df67db1540de5be8d3ec0b6636358a5ec" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "syn" +version = "1.0.74" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1873d832550d4588c3dbc20f01361ab00bfe741048f71e3fecf145a7cc18b29c" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "system-deps" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f3ecc17269a19353b3558b313bba738b25d82993e30d62a18406a24aba4649b" +dependencies = [ + "heck", + "pkg-config", + "strum 0.18.0", + "strum_macros 0.18.0", + "thiserror", + "toml", + "version-compare 0.0.10", +] + +[[package]] +name = "system-deps" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "480c269f870722b3b08d2f13053ce0c2ab722839f472863c3e2d61ff3a1c2fa6" +dependencies = [ + "anyhow", + "cfg-expr", + "heck", + "itertools", + "pkg-config", + "strum 0.21.0", + "strum_macros 0.21.1", + "thiserror", + "toml", + "version-compare 0.0.11", +] + +[[package]] +name = "tao" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa57de7c282b68f8906278543a724ed8f5a2568f069dd0cc05fc10d1f07036b" +dependencies = [ + "bitflags", + "cairo-rs", + "cc", + "cocoa", + "core-foundation 0.9.1", + "core-graphics 0.22.2", + "core-video-sys", + "crossbeam-channel", + "dispatch", + "gdk", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "glib-sys 0.14.0", + "gtk", + "instant", + "lazy_static", + "libc", + "log", + "ndk", + "ndk-glue", + "ndk-sys", + "objc", + "parking_lot", + "raw-window-handle", + "scopeguard", + "serde", + "unicode-segmentation", + "winapi", + "x11-dl", +] + +[[package]] +name = "tar" +version = "0.4.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f5515d3add52e0bbdcad7b83c388bb36ba7b754dda3b5f5bc2d38640cdba5c" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tauri" +version = "1.0.0-beta.7" +dependencies = [ + "attohttpc", + "bincode", + "cfg_aliases", + "dirs-next", + "either", + "embed_plist", + "flate2", + "futures", + "futures-lite", + "glib", + "gtk", + "http", + "http-range", + "ignore", + "once_cell", + "percent-encoding", + "rand 0.8.4", + "raw-window-handle", + "rfd", + "semver 1.0.4", + "serde", + "serde_json", + "serde_repr", + "state", + "tar", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "tempfile", + "thiserror", + "tokio", + "url", + "uuid", + "zip", +] + +[[package]] +name = "tauri-build" +version = "1.0.0-beta.4" +dependencies = [ + "anyhow", + "proc-macro2", + "quote", + "serde_json", + "tauri-codegen", + "tauri-utils", + "winres", +] + +[[package]] +name = "tauri-codegen" +version = "1.0.0-beta.4" +dependencies = [ + "blake3", + "kuchiki", + "proc-macro2", + "quote", + "regex", + "serde", + "serde_json", + "tauri-utils", + "thiserror", + "walkdir", + "zstd", +] + +[[package]] +name = "tauri-macros" +version = "1.0.0-beta.5" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "tauri-codegen", +] + +[[package]] +name = "tauri-runtime" +version = "0.2.0" +dependencies = [ + "gtk", + "http", + "infer", + "serde", + "serde_json", + "tauri-utils", + "thiserror", + "uuid", + "winapi", +] + +[[package]] +name = "tauri-runtime-wry" +version = "0.2.0" +dependencies = [ + "gtk", + "ico", + "infer", + "png 0.16.8", + "tauri-runtime", + "tauri-utils", + "uuid", + "winapi", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "1.0.0-beta.3" +dependencies = [ + "html5ever", + "kuchiki", + "phf 0.10.0", + "proc-macro2", + "quote", + "serde", + "serde_json", + "thiserror", + "url", + "zstd", +] + +[[package]] +name = "tempfile" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "rand 0.8.4", + "redox_syscall", + "remove_dir_all", + "winapi", +] + +[[package]] +name = "tendril" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9ef557cb397a4f0a5a3a628f06515f78563f2209e64d47055d9dc6052bf5e33" +dependencies = [ + "futf", + "mac", + "utf-8", +] + +[[package]] +name = "thin-slice" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" + +[[package]] +name = "thiserror" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93119e4feac1cbe6c798c34d3a53ea0026b0b1de6a120deef895137c0529bfe2" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "060d69a0afe7796bf42e9e2ff91f5ee691fb15c53d38b4b62a9a53eb23164745" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd" +dependencies = [ + "once_cell", +] + +[[package]] +name = "time" +version = "0.1.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "tinyvec" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "848a1e1181b9f6753b5e96a092749e29b11d19ede67dfbbd6c7dc7e0f49b5338" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" + +[[package]] +name = "tokio" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01cf844b23c6131f624accf65ce0e4e9956a8bb329400ea5bcc26ae3a5c20b0b" +dependencies = [ + "autocfg", + "bytes", + "memchr", + "num_cpus", + "pin-project-lite", +] + +[[package]] +name = "toml" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" +dependencies = [ + "serde", +] + +[[package]] +name = "typenum" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06" + +[[package]] +name = "ucd-trie" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" + +[[package]] +name = "unicode-bidi" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246f4c42e67e7a4e3c6106ff716a5d067d4132a642840b242e357e468a2a0085" + +[[package]] +name = "unicode-normalization" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-segmentation" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8895849a949e7845e06bd6dc1aa51731a103c42707010a5b591c0038fb73385b" + +[[package]] +name = "unicode-xid" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" + +[[package]] +name = "url" +version = "2.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" +dependencies = [ + "form_urlencoded", + "idna", + "matches", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "uuid" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7" +dependencies = [ + "getrandom 0.2.3", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version-compare" +version = "0.0.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d63556a25bae6ea31b52e640d7c41d1ab27faba4ccb600013837a3d0b3994ca1" + +[[package]] +name = "version-compare" +version = "0.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c18c859eead79d8b95d09e4678566e8d70105c4e7b251f707a03df32442661b" + +[[package]] +name = "version_check" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" + +[[package]] +name = "waker-fn" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca" + +[[package]] +name = "walkdir" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56" +dependencies = [ + "same-file", + "winapi", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.10.2+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" + +[[package]] +name = "wasm-bindgen" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ce9b1b516211d33767048e5d47fa2a381ed8b76fc48d2ce4aa39877f9f183e0" +dependencies = [ + "cfg-if 1.0.0", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe8dc78e2326ba5f845f4b5bf548401604fa20b1dd1d365fb73b6c1d6364041" +dependencies = [ + "bumpalo", + "lazy_static", + "log", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95fded345a6559c2cfee778d562300c581f7d4ff3edb9b0d230d69800d213972" +dependencies = [ + "cfg-if 1.0.0", + "js-sys", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44468aa53335841d9d6b6c023eaab07c0cd4bddbcfdee3e2bb1e8d2cb8069fef" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0195807922713af1e67dc66132c7328206ed9766af3858164fb583eedc25fbad" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.76" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "acdb075a845574a1fa5f09fd77e43f7747599301ea3417a9fbffdeedfc1f4a29" + +[[package]] +name = "web-sys" +version = "0.3.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224b2f6b67919060055ef1a67807367c2066ed520c3862cc013d26cf893a783c" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webkit2gtk" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e47b7f870883fc21612d2a51b74262f7f2cc5371f1621370817292a35300a9" +dependencies = [ + "bitflags", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys 0.14.0", + "glib", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66ccc9f0cb4de7c3b92376a5bf64e7ddffb33852f092721731a039ec38dda98" +dependencies = [ + "atk-sys", + "bitflags", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys 0.14.0", + "glib-sys 0.14.0", + "gobject-sys 0.14.0", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pango-sys", + "pkg-config", + "soup-sys", + "system-deps 3.2.0", +] + +[[package]] +name = "webview2" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6fab1ccfdabb098b047293c8d496c1914d1c654b68fdaa3bb77cfa47c4bca2c7" +dependencies = [ + "com", + "once_cell", + "webview2-sys", + "widestring", + "winapi", +] + +[[package]] +name = "webview2-sys" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc5288cef1e0cbcf7a0b961e6271e33589b8989c80b2e11078504e989b5346ff" +dependencies = [ + "com", + "winapi", +] + +[[package]] +name = "widestring" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c" + +[[package]] +name = "wildmatch" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f44b95f62d34113cf558c93511ac93027e03e9c29a60dd0fd70e6e025c7270a" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "winres" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff4fb510bbfe5b8992ff15f77a2e6fe6cf062878f0eda00c0f44963a807ca5dc" +dependencies = [ + "toml", +] + +[[package]] +name = "wry" +version = "0.12.1" +source = "git+https://github.com/tauri-apps/wry?branch=feat/refactor-protocol#f1bd52826e3270898d4225f5020d4de9b450d7de" +dependencies = [ + "cocoa", + "core-graphics 0.22.2", + "gdk", + "gio", + "glib", + "gtk", + "http", + "libc", + "log", + "objc", + "objc_id", + "once_cell", + "serde", + "serde_json", + "tao", + "thiserror", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2", + "webview2-sys", + "winapi", +] + +[[package]] +name = "x11-dl" +version = "2.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf981e3a5b3301209754218f962052d4d9ee97e478f4d26d4a6eced34c1fef8" +dependencies = [ + "lazy_static", + "libc", + "maybe-uninit", + "pkg-config", +] + +[[package]] +name = "xattr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "244c3741f4240ef46274860397c7c74e50eb23624996930e484c16679633a54c" +dependencies = [ + "libc", +] + +[[package]] +name = "zip" +version = "0.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93ab48844d61251bb3835145c521d88aa4031d7139e8485990f60ca911fa0815" +dependencies = [ + "byteorder", + "bzip2", + "crc32fast", + "flate2", + "thiserror", + "time", +] + +[[package]] +name = "zstd" +version = "0.9.0+zstd.1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07749a5dc2cb6b36661290245e350f15ec3bbb304e493db54a1d354480522ccd" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "4.1.1+zstd.1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c91c90f2c593b003603e5e0493c837088df4469da25aafff8bce42ba48caf079" +dependencies = [ + "libc", + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "1.6.1+zstd.1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "615120c7a2431d16cf1cf979e7fc31ba7a5b5e5707b29c8a99e5dbf8a8392a33" +dependencies = [ + "cc", + "libc", +] diff --git a/examples/streaming/src-tauri/Cargo.toml b/examples/streaming/src-tauri/Cargo.toml new file mode 100644 index 00000000000..10fcf2ef2c0 --- /dev/null +++ b/examples/streaming/src-tauri/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "streaming" +version = "0.1.0" +description = "A very simple Tauri Appplication" +edition = "2018" + +[build-dependencies] +tauri-build = { path = "../../../core/tauri-build", features = [ "codegen" ] } + +[dependencies] +serde_json = "1.0" +serde = { version = "1.0", features = [ "derive" ] } +tauri = { path = "../../../core/tauri", features = [] } + +[features] +default = [ "custom-protocol" ] +custom-protocol = [ "tauri/custom-protocol" ] diff --git a/examples/streaming/src-tauri/build.rs b/examples/streaming/src-tauri/build.rs new file mode 100644 index 00000000000..2ad1cb4e66a --- /dev/null +++ b/examples/streaming/src-tauri/build.rs @@ -0,0 +1,14 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +use tauri_build::{try_build, Attributes, WindowsAttributes}; + +fn main() { + if let Err(error) = try_build( + Attributes::new() + .windows_attributes(WindowsAttributes::new().window_icon_path("../../.icons/icon.ico")), + ) { + panic!("error found during tauri-build: {}", error); + } +} diff --git a/examples/streaming/src-tauri/src/main.rs b/examples/streaming/src-tauri/src/main.rs new file mode 100644 index 00000000000..7f79143bde4 --- /dev/null +++ b/examples/streaming/src-tauri/src/main.rs @@ -0,0 +1,112 @@ +// Copyright 2019-2021 Tauri Programme within The Commons Conservancy +// SPDX-License-Identifier: Apache-2.0 +// SPDX-License-Identifier: MIT + +#![cfg_attr( + all(not(debug_assertions), target_os = "windows"), + windows_subsystem = "windows" +)] + +fn main() { + use std::{ + io::{Read, Seek, SeekFrom}, + path::PathBuf, + process::{Command, Stdio}, + }; + use tauri::http::{HttpRange, ResponseBuilder}; + + let video_file = PathBuf::from("test_video.mp4"); + let video_url = + "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4"; + + if !video_file.exists() { + // Downloading with curl this saves us from adding + // a Rust HTTP client dependency. + println!("Downloading {}", video_url); + let status = Command::new("curl") + .arg("-L") + .arg("-o") + .arg(&video_file) + .arg(video_url) + .stdout(Stdio::inherit()) + .stderr(Stdio::inherit()) + .output() + .unwrap(); + + assert!(status.status.success()); + assert!(video_file.exists()); + } + + tauri::Builder::default() + .register_uri_scheme_protocol("stream", move |_app, request| { + // prepare our response + let mut response = ResponseBuilder::new(); + // get the wanted path + let path = request.uri().replace("stream://", ""); + + if path != "example/test_video.mp4" { + // return error 404 if it's not out video + return response.mimetype("text/plain").status(404).body(Vec::new()); + } + + // read our file + let mut content = std::fs::File::open(&video_file)?; + let mut buf = Vec::new(); + + // default status code + let mut status_code = 200; + + // if the webview sent a range header, we need to send a 206 in return + // Actually only macOS and Windows are supported. Linux will ALWAYS return empty headers. + if let Some(range) = request.headers().get("range") { + // Get the file size + let file_size = content.metadata().unwrap().len(); + + // we parse the range header with tauri helper + let range = HttpRange::parse(range.to_str().unwrap(), file_size).unwrap(); + // let support only 1 range for now + let first_range = range.first(); + if let Some(range) = first_range { + let mut real_length = range.length; + + // prevent max_length; + // specially on webview2 + if range.length > file_size / 3 { + // max size sent (400ko / request) + // as it's local file system we can afford to read more often + real_length = 1024 * 400; + } + + // last byte we are reading, the length of the range include the last byte + // who should be skipped on the header + let last_byte = range.start + real_length - 1; + // partial content + status_code = 206; + + // Only macOS and Windows are supported, if you set headers in linux they are ignored + response = response + .header("Connection", "Keep-Alive") + .header("Accept-Ranges", "bytes") + .header("Content-Length", real_length) + .header( + "Content-Range", + format!("bytes {}-{}/{}", range.start, last_byte, file_size), + ); + + // FIXME: Add ETag support (caching on the webview) + + // seek our file bytes + content.seek(SeekFrom::Start(range.start))?; + content.take(real_length).read_to_end(&mut buf)?; + } else { + content.read_to_end(&mut buf)?; + } + } + + response.mimetype("video/mp4").status(status_code).body(buf) + }) + .run(tauri::generate_context!( + "../../examples/streaming/src-tauri/tauri.conf.json" + )) + .expect("error while running tauri application"); +} diff --git a/examples/streaming/src-tauri/tauri.conf.json b/examples/streaming/src-tauri/tauri.conf.json new file mode 100644 index 00000000000..d4a6f4a124e --- /dev/null +++ b/examples/streaming/src-tauri/tauri.conf.json @@ -0,0 +1,56 @@ +{ + "build": { + "distDir": ["../index.html"], + "devPath": ["../index.html"], + "beforeDevCommand": "", + "beforeBuildCommand": "" + }, + "tauri": { + "bundle": { + "active": true, + "targets": "all", + "identifier": "com.tauri.dev", + "icon": [ + "../../.icons/32x32.png", + "../../.icons/128x128.png", + "../../.icons/128x128@2x.png", + "../../.icons/icon.icns", + "../../.icons/icon.ico" + ], + "resources": [], + "externalBin": [], + "copyright": "", + "category": "DeveloperTool", + "shortDescription": "", + "longDescription": "", + "deb": { + "depends": [], + "useBootstrapper": false + }, + "macOS": { + "frameworks": [], + "minimumSystemVersion": "", + "useBootstrapper": false, + "exceptionDomain": "" + } + }, + "allowlist": { + "all": false + }, + "windows": [ + { + "title": "Welcome to Tauri!", + "width": 800, + "height": 600, + "resizable": true, + "fullscreen": false + } + ], + "security": { + "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: stream: 'unsafe-eval' 'unsafe-inline' 'self'" + }, + "updater": { + "active": false + } + } +}