From fe10ab488feba486e073347a87409315aa220d18 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 3 Feb 2024 18:16:49 -0300 Subject: [PATCH] beta.1 --- .gitignore | 3 ++- Cargo.lock | 4 ++-- Cargo.toml | 2 +- examples/api/dist/assets/index.css | 1 - examples/api/dist/assets/index.js | 20 -------------------- examples/api/dist/index.html | 17 ----------------- examples/api/dist/tauri_logo.png | Bin 2810 -> 0 bytes 7 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 examples/api/dist/assets/index.css delete mode 100644 examples/api/dist/assets/index.js delete mode 100644 examples/api/dist/index.html delete mode 100644 examples/api/dist/tauri_logo.png diff --git a/.gitignore b/.gitignore index f6b47daf..f8932e56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ target node_modules -dist-js \ No newline at end of file +dist-js +dist \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 71101a58..23cb9111 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6219,9 +6219,9 @@ checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" [[package]] name = "tauri" -version = "2.0.0-beta.0" +version = "2.0.0-beta.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ab20e6305a618700ba238b21afb938559fc86c217c4b025ec6626fe5e826007" +checksum = "0f04c896fc95e8fae460dea7c5e99df8b110a2e8aa9246ac871cd853ece5081c" dependencies = [ "anyhow", "bytes", diff --git a/Cargo.toml b/Cargo.toml index dec1c253..8f0be2b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ resolver = "2" [workspace.dependencies] serde = { version = "1", features = ["derive"] } log = "0.4" -tauri = "2.0.0-beta.0" +tauri = "2.0.0-beta.1" tauri-build = "2.0.0-beta.0" tauri-plugin = "2.0.0-beta.0" serde_json = "1" diff --git a/examples/api/dist/assets/index.css b/examples/api/dist/assets/index.css deleted file mode 100644 index e44838fe..00000000 --- a/examples/api/dist/assets/index.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firacode/v22/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sJV37Nv7g.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firacode/v22/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sJVT7Nv7g.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firacode/v22/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sJVz7Nv7g.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firacode/v22/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sJVP7Nv7g.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firacode/v22/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sJV77Nv7g.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Code;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firacode/v22/uU9eCBsR6Z2vfE9aq3bL0fxyUs4tcw4W_D1sJVD7Ng.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgK_7SodY.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgIv7SodY.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgKv7SodY.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgJf7SodY.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgKP7SodY.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bX2SlFPv1weGeLZDtgJv7S.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Fira Mono;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondvHk_fUWZA.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Fira Mono;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondvHmvfUWZA.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Fira Mono;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondvHkvfUWZA.woff2) format("woff2");unicode-range:U+1F00-1FFF}@font-face{font-family:Fira Mono;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondvHnffUWZA.woff2) format("woff2");unicode-range:U+0370-03FF}@font-face{font-family:Fira Mono;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondvHkPfUWZA.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Fira Mono;font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/firamono/v14/N0bS2SlFPv1weGeLZDtondvHnvfU.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Rubik;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/rubik/v28/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFUkU1Z4Y.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}@font-face{font-family:Rubik;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/rubik/v28/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFWkU1Z4Y.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Rubik;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/rubik/v28/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFU0U1Z4Y.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Rubik;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/rubik/v28/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFVUU1Z4Y.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}@font-face{font-family:Rubik;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/rubik/v28/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFWUU1Z4Y.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Rubik;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/rubik/v28/iJWZBXyIfDnIV5PNhY1KTN7Z-Yh-B4iFV0U1.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}::-webkit-scrollbar-thumb{background-color:#3578e5}.dark ::-webkit-scrollbar-thumb{background-color:#67d6ed}code{font-size:.75rem;font-family:Fira Code,Fira Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;border-radius:.25rem;background-color:#d6d8da}.code-block{font-family:Fira Code,Fira Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem}.dark code{background-color:#282a2e}.i-codicon-bell-dot{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M12.994 7.875A4.008 4.008 0 0 1 12 8h-.01v.217c0 .909.143 1.818.442 2.691l.371 1.113h-9.63v-.012l.37-1.113a8.633 8.633 0 0 0 .443-2.691V6.004c0-.563.12-1.113.347-1.616c.227-.514.55-.969.969-1.34c.419-.382.91-.67 1.436-.837c.538-.18 1.1-.24 1.65-.18l.12.018a4 4 0 0 1 .673-.887a5.15 5.15 0 0 0-.697-.135c-.694-.072-1.4 0-2.07.227c-.67.215-1.28.574-1.794 1.053a4.923 4.923 0 0 0-1.208 1.675a5.067 5.067 0 0 0-.431 2.022v2.2a7.61 7.61 0 0 1-.383 2.37L2 12.343l.479.658h3.505c0 .526.215 1.04.586 1.412c.37.37.885.586 1.412.586c.526 0 1.04-.215 1.411-.586s.587-.886.587-1.412h3.505l.478-.658l-.586-1.77a7.63 7.63 0 0 1-.383-2.381v-.318ZM7.982 14.02a.997.997 0 0 0 .706-.3a.939.939 0 0 0 .287-.705H6.977c0 .263.107.515.299.706a.999.999 0 0 0 .706.299Z' clip-rule='evenodd'/%3E%3Cpath d='M12 7a3 3 0 1 0 0-6a3 3 0 0 0 0 6Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-chrome-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m7.116 8l-4.558 4.558l.884.884L8 8.884l4.558 4.558l.884-.884L8.884 8l4.558-4.558l-.884-.884L8 7.116L3.442 2.558l-.884.884L7.116 8z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-chrome-maximize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M3 3v10h10V3H3zm9 9H4V4h8v8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-chrome-minimize{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M14 8v1H3V8h11z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-chrome-restore{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M3 5v9h9V5H3zm8 8H4V6h7v7z'/%3E%3Cpath fill-rule='evenodd' d='M5 5h1V4h7v7h-1v1h2V3H5v2z' clip-rule='evenodd'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-clear-all{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m10 12.6l.7.7l1.6-1.6l1.6 1.6l.8-.7L13 11l1.7-1.6l-.8-.8l-1.6 1.7l-1.6-1.7l-.7.8l1.6 1.6l-1.6 1.6zM1 4h14V3H1v1zm0 3h14V6H1v1zm8 2.5V9H1v1h8v-.5zM9 13v-1H1v1h8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-clippy{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M7 13.992H4v-9h8v2h1v-2.5l-.5-.5H11v-1h-1a2 2 0 0 0-4 0H4.94v1H3.5l-.5.5v10l.5.5H7v-1zm0-11.2a1 1 0 0 1 .8-.8a1 1 0 0 1 .58.06a.94.94 0 0 1 .45.36a1 1 0 1 1-1.75.94a1 1 0 0 1-.08-.56zm7.08 9.46L13 13.342v-5.35h-1v5.34l-1.08-1.08l-.71.71l1.94 1.93h.71l1.93-1.93l-.71-.71zm-5.92-4.16h.71l1.93 1.93l-.71.71l-1.08-1.08v5.34h-1v-5.35l-1.08 1.09l-.71-.71l1.94-1.93z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-close{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m8 8.707l3.646 3.647l.708-.707L8.707 8l3.647-3.646l-.707-.708L8 7.293L4.354 3.646l-.707.708L7.293 8l-3.646 3.646l.707.708L8 8.707z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-cloud-download{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M11.957 6h.05a2.99 2.99 0 0 1 2.116.879a3.003 3.003 0 0 1 0 4.242a2.99 2.99 0 0 1-2.117.879v-1a2.002 2.002 0 0 0 0-4h-.914l-.123-.857a2.49 2.49 0 0 0-2.126-2.122A2.478 2.478 0 0 0 6.231 5.5l-.333.762l-.809-.189A2.49 2.49 0 0 0 4.523 6c-.662 0-1.297.263-1.764.732A2.503 2.503 0 0 0 4.523 11h.498v1h-.498a3.486 3.486 0 0 1-2.628-1.16a3.502 3.502 0 0 1 1.958-5.78a3.462 3.462 0 0 1 1.468.04a3.486 3.486 0 0 1 3.657-2.06A3.479 3.479 0 0 1 11.957 6zm-5.25 5.121l1.314 1.314V7h.994v5.4l1.278-1.279l.707.707l-2.146 2.147h-.708L6 11.829l.707-.708z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-files{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M17.5 0h-9L7 1.5V6H2.5L1 7.5v15.07L2.5 24h12.07L16 22.57V18h4.7l1.3-1.43V4.5L17.5 0zm0 2.12l2.38 2.38H17.5V2.12zm-3 20.38h-12v-15H7v9.07L8.5 18h6v4.5zm6-6h-12v-15H16V6h4.5v10.5z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-link-external{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M1.5 1H6v1H2v12h12v-4h1v4.5l-.5.5h-13l-.5-.5v-13l.5-.5z'/%3E%3Cpath d='M15 1.5V8h-1V2.707L7.243 9.465l-.707-.708L13.293 2H8V1h6.5l.5.5z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-menu{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 5H0V4h16v1zm0 8H0v-1h16v1zm0-4.008H0V8h16v.992z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-multiple-windows{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='m6 1.5l.5-.5h8l.5.5v7l-.5.5H12V8h2V4H7v1H6V1.5zM7 2v1h7V2H7zM1.5 7l-.5.5v7l.5.5h8l.5-.5v-7L9.5 7h-8zM2 9V8h7v1H2zm0 1h7v4H2v-4z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-radio-tower{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M2.998 5.58a5.55 5.55 0 0 1 1.62-3.88l-.71-.7a6.45 6.45 0 0 0 0 9.16l.71-.7a5.55 5.55 0 0 1-1.62-3.88zm1.06 0a4.42 4.42 0 0 0 1.32 3.17l.71-.71a3.27 3.27 0 0 1-.76-1.12a3.45 3.45 0 0 1 0-2.67a3.22 3.22 0 0 1 .76-1.13l-.71-.71a4.46 4.46 0 0 0-1.32 3.17zm7.65 3.21l-.71-.71c.33-.32.59-.704.76-1.13a3.449 3.449 0 0 0 0-2.67a3.22 3.22 0 0 0-.76-1.13l.71-.7a4.468 4.468 0 0 1 0 6.34zM13.068 1l-.71.71a5.43 5.43 0 0 1 0 7.74l.71.71a6.45 6.45 0 0 0 0-9.16zM9.993 5.43a1.5 1.5 0 0 1-.245.98a2 2 0 0 1-.27.23l3.44 7.73l-.92.4l-.77-1.73h-5.54l-.77 1.73l-.92-.4l3.44-7.73a1.52 1.52 0 0 1-.33-1.63a1.55 1.55 0 0 1 .56-.68a1.5 1.5 0 0 1 2.325 1.1zm-1.595-.34a.52.52 0 0 0-.25.14a.52.52 0 0 0-.11.22a.48.48 0 0 0 0 .29c.04.09.102.17.18.23a.54.54 0 0 0 .28.08a.51.51 0 0 0 .5-.5a.54.54 0 0 0-.08-.28a.58.58 0 0 0-.23-.18a.48.48 0 0 0-.29 0zm.23 2.05h-.27l-.87 1.94h2l-.86-1.94zm2.2 4.94l-.89-2h-2.88l-.89 2h4.66z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-record-keys{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M14 3H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zm0 8H3V4h11v7zm-3-6h-1v1h1V5zm-1 2H9v1h1V7zm2-2h1v1h-1V5zm1 4h-1v1h1V9zM6 9h5v1H6V9zm7-2h-2v1h2V7zM8 5h1v1H8V5zm0 2H7v1h1V7zM4 9h1v1H4V9zm0-4h1v1H4V5zm3 0H6v1h1V5zM4 7h2v1H4V7z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-terminal{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M1.5 3L3 1.5h18L22.5 3v18L21 22.5H3L1.5 21V3ZM3 3v18h18V3H3Z' clip-rule='evenodd'/%3E%3Cpath d='M7.06 7.5L6 8.56l4.243 4.243L6 17.046l1.06 1.06L12 13.168v-.728L7.06 7.5Zm4.94 9h6V18h-6z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-codicon-terminal-bash{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 16 16' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.655 3.56L8.918.75a1.785 1.785 0 0 0-1.82 0L2.363 3.56a1.889 1.889 0 0 0-.921 1.628v5.624a1.889 1.889 0 0 0 .913 1.627l4.736 2.812a1.785 1.785 0 0 0 1.82 0l4.736-2.812a1.888 1.888 0 0 0 .913-1.627V5.188a1.889 1.889 0 0 0-.904-1.627zm-3.669 8.781v.404a.149.149 0 0 1-.07.124l-.239.137c-.038.02-.07 0-.07-.053v-.396a.78.78 0 0 1-.545.053a.073.073 0 0 1-.027-.09l.086-.365a.153.153 0 0 1 .071-.096a.048.048 0 0 1 .038 0a.662.662 0 0 0 .497-.063a.662.662 0 0 0 .37-.567c0-.206-.112-.292-.384-.293c-.344 0-.661-.066-.67-.574A1.47 1.47 0 0 1 9.6 9.437V9.03a.147.147 0 0 1 .07-.126l.231-.147c.038-.02.07 0 .07.054v.409a.754.754 0 0 1 .453-.055a.073.073 0 0 1 .03.095l-.081.362a.156.156 0 0 1-.065.09a.055.055 0 0 1-.035 0a.6.6 0 0 0-.436.072a.549.549 0 0 0-.331.486c0 .185.098.242.425.248c.438 0 .627.199.632.639a1.568 1.568 0 0 1-.576 1.185zm2.481-.68a.094.094 0 0 1-.036.092l-1.198.727a.034.034 0 0 1-.04.003a.035.035 0 0 1-.016-.037v-.31a.086.086 0 0 1 .055-.076l1.179-.706a.035.035 0 0 1 .056.035v.273zm.827-6.914L8.812 7.515c-.559.331-.97.693-.97 1.367v5.52c0 .404.165.662.413.741a1.465 1.465 0 0 1-.248.025c-.264 0-.522-.072-.748-.207L2.522 12.15a1.558 1.558 0 0 1-.75-1.338V5.188a1.558 1.558 0 0 1 .75-1.34l4.738-2.81a1.46 1.46 0 0 1 1.489 0l4.736 2.812a1.548 1.548 0 0 1 .728 1.083c-.154-.334-.508-.427-.92-.185h.002z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ph-broadcast{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 88a40 40 0 1 0 40 40a40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24a24 24 0 0 1-24 24Zm73.71 7.14a80 80 0 0 1-14.08 22.2a8 8 0 0 1-11.92-10.67a63.95 63.95 0 0 0 0-85.33a8 8 0 1 1 11.92-10.67a80.08 80.08 0 0 1 14.08 84.47ZM69 103.09a64 64 0 0 0 11.26 67.58a8 8 0 0 1-11.92 10.67a79.93 79.93 0 0 1 0-106.67a8 8 0 1 1 11.95 10.67A63.77 63.77 0 0 0 69 103.09ZM248 128a119.58 119.58 0 0 1-34.29 84a8 8 0 1 1-11.42-11.2a103.9 103.9 0 0 0 0-145.56A8 8 0 1 1 213.71 44A119.58 119.58 0 0 1 248 128ZM53.71 200.78A8 8 0 1 1 42.29 212a119.87 119.87 0 0 1 0-168a8 8 0 1 1 11.42 11.2a103.9 103.9 0 0 0 0 145.56Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ph-globe-hemisphere-west{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm88 104a87.62 87.62 0 0 1-6.4 32.94l-44.7-27.49a15.92 15.92 0 0 0-6.24-2.23l-22.82-3.08a16.11 16.11 0 0 0-16 7.86h-8.72l-3.8-7.86a15.91 15.91 0 0 0-11-8.67l-8-1.73L96.14 104h16.71a16.06 16.06 0 0 0 7.73-2l12.25-6.76a16.62 16.62 0 0 0 3-2.14l26.91-24.34A15.93 15.93 0 0 0 166 49.1l-.36-.65A88.11 88.11 0 0 1 216 128Zm-72.69-86.66L152 56.9l-26.91 24.34L112.85 88H96.14a16 16 0 0 0-13.88 8l-8.73 15.23l-10.15-27.04l10.94-25.87a87.87 87.87 0 0 1 69-17ZM40 128a87.53 87.53 0 0 1 8.54-37.8l11.34 30.27a16 16 0 0 0 11.62 10l21.43 4.61l3.81 7.92a16.09 16.09 0 0 0 14.4 9h1.48l-7.23 16.23a16 16 0 0 0 2.86 17.37l.14.14l19.61 20.2l-1.94 10A88.11 88.11 0 0 1 40 128Zm102.58 86.78l1.13-5.81a16.09 16.09 0 0 0-4-13.9a1.85 1.85 0 0 1-.14-.14L120 174.74L133.7 144l22.82 3.08l45.72 28.12a88.18 88.18 0 0 1-59.66 39.58Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ph-hand-waving{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='m220.2 100l-18-31.18a28 28 0 0 0-47.3-1.92l-15.34-26.59a28 28 0 0 0-48.12-.63a28 28 0 0 0-43 34.78l3.34 5.79a28 28 0 0 0-22 41.92l38 65.82a87.46 87.46 0 0 0 53.43 41a88.56 88.56 0 0 0 22.92 3A88 88 0 0 0 220.2 100Zm-6.67 62.63A72 72 0 0 1 81.63 180l-38-65.82a12 12 0 0 1 20.79-12l22 38.1a8 8 0 1 0 13.85-8l-38-65.81a12 12 0 0 1 13.5-17.59a11.9 11.9 0 0 1 7.29 5.59l34 58.89a8 8 0 0 0 13.85-8l-26-45a12 12 0 0 1 20.78-12L160 107.78a48.08 48.08 0 0 0-11 61a8 8 0 0 0 13.86-8a32 32 0 0 1 11.71-43.71a8 8 0 0 0 2.93-10.93l-10-17.32a12 12 0 0 1 20.78-12l18 31.18a71.49 71.49 0 0 1 7.25 54.62Zm-29.26-132.7a8 8 0 0 1 9.8-5.66c15.91 4.27 29 14.11 36.86 27.73a8 8 0 0 1-13.86 8c-5.72-9.92-15.36-17.12-27.14-20.27a8 8 0 0 1-5.66-9.8ZM80.91 237a8 8 0 0 1-11.24 1.33c-11-8.69-20.11-19.58-28.6-34.28a8 8 0 0 1 13.86-8c7.44 12.88 15.27 22.32 24.65 29.72A8 8 0 0 1 80.91 237Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ph-moon{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M233.54 142.23a8 8 0 0 0-8-2a88.08 88.08 0 0 1-109.8-109.8a8 8 0 0 0-10-10a104.84 104.84 0 0 0-52.91 37A104 104 0 0 0 136 224a103.09 103.09 0 0 0 62.52-20.88a104.84 104.84 0 0 0 37-52.91a8 8 0 0 0-1.98-7.98Zm-44.64 48.11A88 88 0 0 1 65.66 67.11a89 89 0 0 1 31.4-26A106 106 0 0 0 96 56a104.11 104.11 0 0 0 104 104a106 106 0 0 0 14.92-1.06a89 89 0 0 1-26.02 31.4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ph-scan{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M224 40v40a8 8 0 0 1-16 0V48h-32a8 8 0 0 1 0-16h40a8 8 0 0 1 8 8ZM80 208H48v-32a8 8 0 0 0-16 0v40a8 8 0 0 0 8 8h40a8 8 0 0 0 0-16Zm136-40a8 8 0 0 0-8 8v32h-32a8 8 0 0 0 0 16h40a8 8 0 0 0 8-8v-40a8 8 0 0 0-8-8ZM40 88a8 8 0 0 0 8-8V48h32a8 8 0 0 0 0-16H40a8 8 0 0 0-8 8v40a8 8 0 0 0 8 8Zm128 96H88a16 16 0 0 1-16-16V88a16 16 0 0 1 16-16h80a16 16 0 0 1 16 16v80a16 16 0 0 1-16 16Zm-80-16h80V88H88Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.i-ph-sun{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M120 40V16a8 8 0 0 1 16 0v24a8 8 0 0 1-16 0Zm72 88a64 64 0 1 1-64-64a64.07 64.07 0 0 1 64 64Zm-16 0a48 48 0 1 0-48 48a48.05 48.05 0 0 0 48-48ZM58.34 69.66a8 8 0 0 0 11.32-11.32l-16-16a8 8 0 0 0-11.32 11.32Zm0 116.68l-16 16a8 8 0 0 0 11.32 11.32l16-16a8 8 0 0 0-11.32-11.32ZM192 72a8 8 0 0 0 5.66-2.34l16-16a8 8 0 0 0-11.32-11.32l-16 16A8 8 0 0 0 192 72Zm5.66 114.34a8 8 0 0 0-11.32 11.32l16 16a8 8 0 0 0 11.32-11.32ZM48 128a8 8 0 0 0-8-8H16a8 8 0 0 0 0 16h24a8 8 0 0 0 8-8Zm80 80a8 8 0 0 0-8 8v24a8 8 0 0 0 16 0v-24a8 8 0 0 0-8-8Zm112-88h-24a8 8 0 0 0 0 16h24a8 8 0 0 0 0-16Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em}.container{width:100%}.note{position:relative;display:inline-flex;align-items:center;border-left-width:4px;--un-border-opacity:1;border-color:rgb(53 120 229 / var(--un-border-opacity));border-radius:.25rem;background-color:#3578e51a;padding:.5rem;text-decoration:none}.note-red{position:relative;display:inline-flex;align-items:center;border-left-width:4px;--un-border-opacity:1;border-color:rgb(53 120 229 / var(--un-border-opacity));border-radius:.25rem;background-color:#3578e51a;background-color:#b91c1c1a;padding:.5rem;text-decoration:none}.nv{position:relative;display:flex;align-items:center;border-radius:.25rem;padding:.5rem;--un-text-opacity:1;color:rgb(194 197 202 / var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:125ms}.nv_selected{position:relative;display:flex;align-items:center;border-left-width:4px;border-radius:.25rem;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));padding:.5rem;--un-text-opacity:1;color:rgb(194 197 202 / var(--un-text-opacity));color:rgb(53 120 229 / var(--un-text-opacity));text-decoration:none;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:125ms}.input{height:2.5rem;display:flex;align-items:center;border-radius:.25rem;border-style:none;--un-bg-opacity:1;background-color:rgb(233 236 239 / var(--un-bg-opacity));padding:.5rem;--un-text-opacity:1;color:rgb(28 30 33 / var(--un-text-opacity));--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);outline:2px solid transparent;outline-offset:2px}.btn{-webkit-user-select:none;user-select:none;border-radius:.25rem;border-style:none;--un-bg-opacity:1;background-color:rgb(53 120 229 / var(--un-bg-opacity));padding:.5rem;--un-text-opacity:1;color:rgb(28 30 33 / var(--un-text-opacity));color:rgb(255 255 255 / var(--un-text-opacity));font-weight:400;--un-shadow:var(--un-shadow-inset) 0 4px 6px -1px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 2px 4px -2px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow);outline:2px solid transparent;outline-offset:2px}.nv:hover,.nv_selected:hover{border-left-width:4px;--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity));--un-text-opacity:1;color:rgb(53 120 229 / var(--un-text-opacity))}.dark .note{--un-border-opacity:1;border-color:rgb(103 214 237 / var(--un-border-opacity));background-color:#67d6ed1a}.dark .note-red{--un-border-opacity:1;border-color:rgb(103 214 237 / var(--un-border-opacity));background-color:#67d6ed1a;background-color:#b91c1c1a}.dark .btn{--un-bg-opacity:1;background-color:rgb(103 214 237 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(28 30 33 / var(--un-text-opacity));font-weight:600}.dark .input{--un-bg-opacity:1;background-color:rgb(36 37 38 / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(227 227 227 / var(--un-text-opacity))}.btn:hover{--un-bg-opacity:1;background-color:rgb(45 102 195 / var(--un-bg-opacity))}.dark .btn:hover{--un-bg-opacity:1;background-color:rgb(57 202 232 / var(--un-bg-opacity))}.btn:active{--un-bg-opacity:1;background-color:rgb(37 84 160 / var(--un-bg-opacity))}.dark .btn:active{--un-bg-opacity:1;background-color:rgb(25 181 213 / var(--un-bg-opacity))}.dark .note-red:after{--un-bg-opacity:1;background-color:rgb(185 28 28 / var(--un-bg-opacity))}.note-red:after{--un-bg-opacity:1;background-color:rgb(185 28 28 / var(--un-bg-opacity))}.dark .nv_selected,.dark .nv:hover,.dark .nv_selected:hover{--un-text-opacity:1;color:rgb(103 214 237 / var(--un-text-opacity))}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.z-2000{z-index:2000}.grid{display:grid}.grid-rows-\[2fr_auto\]{grid-template-rows:2fr auto}.grid-rows-\[2px_2rem_1fr\]{grid-template-rows:2px 2rem 1fr}.grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mr-2{margin-right:.5rem}.block{display:block}.contents{display:contents}.hidden{display:none}.children-h-10>*,.children\:h10>*{height:2.5rem}.children\:h-100\%>*,.h-100\%{height:100%}.children\:w-12>*{width:3rem}.h-15rem{height:15rem}.h-2px{height:2px}.h-8{height:2rem}.h-85\%{height:85%}.h-auto{height:auto}.h-screen{height:100vh}.w-100\%{width:100%}.w-8{width:2rem}.w-screen{width:100vw}.flex{display:flex}.children\:inline-flex>*{display:inline-flex}.flex-1{flex:1 1 0%}.children-flex-none>*{flex:none}.children\:grow>*,.grow{flex-grow:1}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in 1s linear 1}.animate-duration-300ms{animation-duration:.3s}.cursor-pointer{cursor:pointer}.cursor-ns-resize{cursor:ns-resize}.select-text{-webkit-user-select:text;user-select:text}.select-none{-webkit-user-select:none;user-select:none}.children\:items-center>*,.items-center{align-items:center}.self-center{align-self:center}.children\:justify-center>*,.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border{border-width:1px}.rd-1{border-radius:.25rem}.rd-8{border-radius:2rem}.bg-accent{--un-bg-opacity:1;background-color:rgb(53 120 229 / var(--un-bg-opacity))}.bg-black\/20{background-color:#0003}.bg-darkPrimaryLighter{--un-bg-opacity:1;background-color:rgb(36 37 38 / var(--un-bg-opacity))}.bg-primary{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.dark .dark\:bg-darkAccent{--un-bg-opacity:1;background-color:rgb(103 214 237 / var(--un-bg-opacity))}.dark .dark\:bg-darkPrimary{--un-bg-opacity:1;background-color:rgb(27 27 29 / var(--un-bg-opacity))}.dark .dark\:hover\:bg-darkHoverOverlay:hover{--un-bg-opacity:.05;background-color:hsla(0,0%,100%,var(--un-bg-opacity))}.dark .dark\:hover\:bg-red-700:hover{--un-bg-opacity:1;background-color:rgb(185 28 28 / var(--un-bg-opacity))}.hover\:bg-hoverOverlay:hover{--un-bg-opacity:.05;background-color:rgba(0,0,0,var(--un-bg-opacity))}.hover\:bg-red-700:hover{--un-bg-opacity:1;background-color:rgb(185 28 28 / var(--un-bg-opacity))}.active\:bg-accentDark:active{--un-bg-opacity:1;background-color:rgb(48 108 206 / var(--un-bg-opacity))}.active\:bg-hoverOverlay\/25:active{background-color:#00000040}.active\:bg-hoverOverlayDarker:active{--un-bg-opacity:.1;background-color:rgba(0,0,0,var(--un-bg-opacity))}.active\:bg-red-700\/90:active{background-color:#b91c1ce6}.dark .dark\:active\:bg-darkAccentDark:active{--un-bg-opacity:1;background-color:rgb(73 206 233 / var(--un-bg-opacity))}.dark .dark\:active\:bg-darkHoverOverlay\/25:active{background-color:#ffffff40}.dark .dark\:active\:bg-darkHoverOverlayDarker:active{--un-bg-opacity:.1;background-color:hsla(0,0%,100%,var(--un-bg-opacity))}.dark .dark\:active\:bg-red-700\/90:active{background-color:#b91c1ce6}.p-1{padding:.25rem}.p-7{padding:1.75rem}.px{padding-left:1rem;padding-right:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.children-pb-2>*{padding-bottom:.5rem}.children-pt8>*{padding-top:2rem}.pl-2{padding-left:.5rem}.all\:text-xs *{font-size:.75rem;line-height:1rem}.dark .dark\:text-darkAccent{--un-text-opacity:1;color:rgb(103 214 237 / var(--un-text-opacity))}.dark .dark\:text-darkPrimaryText,.text-darkPrimaryText{--un-text-opacity:1;color:rgb(227 227 227 / var(--un-text-opacity))}.text-accent{--un-text-opacity:1;color:rgb(53 120 229 / var(--un-text-opacity))}.text-primaryText{--un-text-opacity:1;color:rgb(28 30 33 / var(--un-text-opacity))}.hover\:text-darkPrimaryText:hover,.active\:text-darkPrimaryText:active{--un-text-opacity:1;color:rgb(227 227 227 / var(--un-text-opacity))}.font-semibold{font-weight:600}.all\:font-mono *{font-family:Fira Code,Fira Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors-250{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.25s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}@media (max-width: 639.9px){.lt-sm\:absolute{position:absolute}.lt-sm\:z-1999{z-index:1999}.lt-sm\:h-screen{height:100vh}.lt-sm\:flex{display:flex}.lt-sm\:pl-10{padding-left:2.5rem}.lt-sm\:shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.lt-sm\:shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color, rgb(0 0 0 / .1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.lt-sm\:transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}}*:not(h1,h2,h3,h4,h5,h6){margin:0;padding:0}*{box-sizing:border-box;font-family:Rubik,sans-serif}::-webkit-scrollbar{width:.25rem;height:3px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{border-radius:.25rem}code{padding:.05rem .25rem}code.code-block{padding:.5rem}#sidebar{width:18.75rem}@media screen and (max-width: 640px){#sidebar{--translate-x: -18.75rem;transform:translate(var(--translate-x))}}.sidebar-toggle{margin-top:.5rem;margin-left:.5rem}body{overflow:hidden;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}#sidebar,#console{padding-bottom:calc(env(safe-area-inset-bottom) + 24px)}.transparent{background-color:transparent}.svelte-6z96o6:where(._jsonList){list-style:none;margin:0;padding:0;padding-left:var(--jsonPaddingLeft, 1rem);border-left:var(--jsonBorderLeft, 1px dotted)}.svelte-6z96o6:where(._jsonBkt){color:var(--jsonBracketColor, currentcolor)}.svelte-6z96o6:where(._jsonBkt):not(.empty):hover{cursor:pointer;background:var(--jsonBracketHoverBackground, #e5e7eb)}.svelte-6z96o6:where(._jsonSep){color:var(--jsonSeparatorColor, currentcolor)}.svelte-6z96o6:where(._jsonKey){color:var(--jsonKeyColor, currentcolor)}.svelte-6z96o6:where(._jsonVal){color:var(--jsonValColor, #9ca3af)}:where(._jsonVal).string.svelte-6z96o6{color:var(--jsonValStringColor, #059669)}:where(._jsonVal).number.svelte-6z96o6{color:var(--jsonValNumberColor, #d97706)}:where(._jsonVal).boolean.svelte-6z96o6{color:var(--jsonValBooleanColor, #2563eb)}.progress.svelte-1xfvu87.svelte-1xfvu87{width:100%;height:50px;position:relative;margin-top:5%}.progress.svelte-1xfvu87>span.svelte-1xfvu87{font-size:1.2rem}.progress-bar.svelte-1xfvu87.svelte-1xfvu87{height:30px;background-color:#e47d07;border:1px solid #333}.invisible.svelte-u74si6.svelte-u74si6{display:none}.full-height.svelte-u74si6.svelte-u74si6{height:100%}p.svelte-u74si6.svelte-u74si6{color:#fff;font-family:sans-serif;text-align:center;font-weight:600}.container.svelte-u74si6.svelte-u74si6{width:100%;height:100%;overflow:hidden}.container.svelte-u74si6.svelte-u74si6{display:flex}.relative.svelte-u74si6.svelte-u74si6{position:relative;display:flex;flex-direction:row;justify-content:space-between;z-index:1}.square.svelte-u74si6.svelte-u74si6{width:100%;position:relative;overflow:hidden;transition:.3s}.square.svelte-u74si6.svelte-u74si6:after{content:"";top:0;display:block;padding-bottom:100%}.square.svelte-u74si6>div.svelte-u74si6{position:absolute;top:0;left:0;bottom:0;right:0}.surround-cover.svelte-u74si6.svelte-u74si6{box-shadow:0 0 0 99999px #00000080}.barcode-scanner--area--container.svelte-u74si6.svelte-u74si6{width:80%;max-width:min(500px,80vh);margin:auto}.barcode-scanner--area--outer.svelte-u74si6.svelte-u74si6{display:flex;border-radius:1em}.barcode-scanner--area--inner.svelte-u74si6.svelte-u74si6{width:100%;margin:1rem;border:2px solid #fff;box-shadow:0 0 2px 1px #00000080,inset 0 0 2px 1px #00000080;border-radius:1rem}.scanner-background.svelte-u74si6.svelte-u74si6{background:linear-gradient(45deg,#673ab7,transparent);background-position:45% 50%;background-size:cover;background-repeat:no-repeat} diff --git a/examples/api/dist/assets/index.js b/examples/api/dist/assets/index.js deleted file mode 100644 index 9d187ddd..00000000 --- a/examples/api/dist/assets/index.js +++ /dev/null @@ -1,20 +0,0 @@ -var Rn=Object.defineProperty;var Pn=(t,e,n)=>e in t?Rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Te=(t,e,n)=>(Pn(t,typeof e!="symbol"?e+"":e,n),n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function x(){}function on(t){return t()}function _t(){return Object.create(null)}function $(t){t.forEach(on)}function rn(t){return typeof t=="function"}function se(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let Be;function On(t,e){return t===e?!0:(Be||(Be=document.createElement("a")),Be.href=e,t===Be.href)}function In(t){return Object.keys(t).length===0}function Un(t,...e){if(t==null){for(const i of e)i(void 0);return x}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function an(t,e,n){t.$$.on_destroy.push(Un(e,n))}function a(t,e){t.appendChild(e)}function g(t,e,n){t.insertBefore(e,n||null)}function m(t){t.parentNode&&t.parentNode.removeChild(t)}function We(t,e){for(let n=0;nt.removeEventListener(e,n,i)}function Nn(t){return function(e){return e.preventDefault(),t.call(this,e)}}function c(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function zn(t){return Array.from(t.childNodes)}function he(t,e){e=""+e,t.data!==e&&(t.data=e)}function q(t,e){t.value=e??""}function Ve(t,e,n,i){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function et(t,e,n){for(let i=0;ie.__value)}function be(t,e,n){t.classList.toggle(e,!!n)}class jn{constructor(e=!1){Te(this,"is_svg",!1);Te(this,"e");Te(this,"n");Te(this,"t");Te(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=Dn(n.nodeName):this.e=d(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;nt.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),ze=e}const Ke=new Set;let Oe;function st(){Oe={r:0,c:[],p:Oe}}function ot(){Oe.r||$(Oe.c),Oe=Oe.p}function _e(t,e){t&&t.i&&(Ke.delete(t),t.i(e))}function Le(t,e,n,i){if(t&&t.o){if(Ke.has(t))return;Ke.add(t),Oe.c.push(()=>{Ke.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function ge(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function tt(t){t&&t.c()}function Xe(t,e,n){const{fragment:i,after_update:l}=t.$$;i&&i.m(e,n),je(()=>{const s=t.$$.on_mount.map(on).filter(rn);t.$$.on_destroy?t.$$.on_destroy.push(...s):$(s),t.$$.on_mount=[]}),l.forEach(je)}function Ye(t,e){const n=t.$$;n.fragment!==null&&(qn(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Vn(t,e){t.$$.dirty[0]===-1&&(Ne.push(t),pn(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const k=b.length?b[0]:p;return f.ctx&&l(f.ctx[w],f.ctx[w]=k)&&(!f.skip_bound&&f.bound[w]&&f.bound[w](k),h&&Vn(t,w)),p}):[],f.update(),h=!0,$(f.before_update),f.fragment=i?i(f.ctx):!1,e.target){if(e.hydrate){const w=zn(e.target);f.fragment&&f.fragment.l(w),w.forEach(m)}else f.fragment&&f.fragment.c();e.intro&&_e(t.$$.fragment),Xe(t,e.target,e.anchor),hn()}Fe(u)}class de{constructor(){Te(this,"$$");Te(this,"$$set")}$destroy(){Ye(this,1),this.$destroy=x}$on(e,n){if(!rn(n))return x;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(e){this.$$set&&!In(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Fn="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fn);const De=[];function bn(t,e=x){let n;const i=new Set;function l(r){if(se(t,r)&&(t=r,n)){const u=!De.length;for(const f of i)f[1](),De.push(f,t);if(u){for(let f=0;f{i.delete(f),i.size===0&&n&&(n(),n=null)}}return{set:l,update:s,subscribe:o}}function ft(t,e,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:e.get(t)}function mn(t,e,n,i,l){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!l:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?l.call(t,n):l?l.value=n:e.set(t,n),n}var qe,$e;function gn(t,e=!1){return window.__TAURI_INTERNALS__.transformCallback(t,e)}class Ze{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,qe.set(this,()=>{}),this.id=gn(e=>{ft(this,qe,"f").call(this,e)})}set onmessage(e){mn(this,qe,e,"f")}get onmessage(){return ft(this,qe,"f")}toJSON(){return`__CHANNEL__:${this.id}`}}qe=new WeakMap;async function C(t,e={},n){return window.__TAURI_INTERNALS__.invoke(t,e,n)}function xn(t,e="asset"){return window.__TAURI_INTERNALS__.convertFileSrc(t,e)}class _n{get rid(){return ft(this,$e,"f")}constructor(e){$e.set(this,void 0),mn(this,$e,e,"f")}async close(){return C("plugin:resources|close",{rid:this.rid})}}$e=new WeakMap;async function Gn(t,e,n=[],i){typeof n=="object"&&Object.freeze(n);const l=new Ze;return l.onmessage=t,C("plugin:shell|execute",{program:e,args:n,options:i,onEvent:l})}class at{constructor(){this.eventListeners=Object.create(null)}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}on(e,n){return e in this.eventListeners?this.eventListeners[e].push(n):this.eventListeners[e]=[n],this}once(e,n){const i=l=>{this.removeListener(e,i),n(l)};return this.addListener(e,i)}off(e,n){return e in this.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter(i=>i!==n)),this}removeAllListeners(e){return e?delete this.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,n){if(e in this.eventListeners){const i=this.eventListeners[e];for(const l of i)l(n);return!0}return!1}listenerCount(e){return e in this.eventListeners?this.eventListeners[e].length:0}prependListener(e,n){return e in this.eventListeners?this.eventListeners[e].unshift(n):this.eventListeners[e]=[n],this}prependOnceListener(e,n){const i=l=>{this.removeListener(e,i),n(l)};return this.prependListener(e,i)}}class Qn{constructor(e){this.pid=e}async write(e){return C("plugin:shell|stdin_write",{pid:this.pid,buffer:typeof e=="string"?e:Array.from(e)})}async kill(){return C("plugin:shell|kill",{cmd:"killChild",pid:this.pid})}}class nt extends at{constructor(e,n=[],i){super(),this.stdout=new at,this.stderr=new at,this.program=e,this.args=typeof n=="string"?[n]:n,this.options=i??{}}static create(e,n=[],i){return new nt(e,n,i)}static sidecar(e,n=[],i){const l=new nt(e,n,i);return l.options.sidecar=!0,l}async spawn(){return Gn(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);break}},this.program,this.args,this.options).then(e=>new Qn(e))}async execute(){return new Promise((e,n)=>{this.on("error",n);const i=[],l=[];this.stdout.on("data",s=>{i.push(s)}),this.stderr.on("data",s=>{l.push(s)}),this.on("close",s=>{e({code:s.code,signal:s.signal,stdout:this.collectOutput(i),stderr:this.collectOutput(l)})}),this.spawn().catch(n)})}collectOutput(e){return this.options.encoding==="raw"?e.reduce((n,i)=>new Uint8Array([...n,...i,10]),new Uint8Array):e.join(` -`)}}async function Xn(t,e){return C("plugin:shell|open",{path:t,with:e})}class Yn{constructor(e,n){this.type="Logical",this.width=e,this.height=n}}class pt{constructor(e,n){this.type="Physical",this.width=e,this.height=n}toLogical(e){return new Yn(this.width/e,this.height/e)}}class Jn{constructor(e,n){this.type="Logical",this.x=e,this.y=n}}class ht{constructor(e,n){this.type="Physical",this.x=e,this.y=n}toLogical(e){return new Jn(this.x/e,this.y/e)}}var Se;(function(t){t.WINDOW_RESIZED="tauri://resize",t.WINDOW_MOVED="tauri://move",t.WINDOW_CLOSE_REQUESTED="tauri://close-requested",t.WINDOW_DESTROYED="tauri://destroyed",t.WINDOW_FOCUS="tauri://focus",t.WINDOW_BLUR="tauri://blur",t.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",t.WINDOW_THEME_CHANGED="tauri://theme-changed",t.WEBVIEW_CREATED="tauri://webview-created",t.WEBVIEW_FILE_DROP="tauri://file-drop",t.WEBVIEW_FILE_DROP_HOVER="tauri://file-drop-hover",t.WEBVIEW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled"})(Se||(Se={}));async function wn(t,e){await C("plugin:event|unlisten",{event:t,eventId:e})}async function vn(t,e,n){const i=typeof(n==null?void 0:n.target)=="string"?{kind:"AnyLabel",label:n.target}:(n==null?void 0:n.target)??{kind:"Any"};return C("plugin:event|listen",{event:t,target:i,handler:gn(e)}).then(l=>async()=>wn(t,l))}async function Zn(t,e,n){return vn(t,i=>{e(i),wn(t,i.id).catch(()=>{})},n)}async function Bn(t,e){await C("plugin:event|emit",{event:t,payload:e})}async function Kn(t,e,n){await C("plugin:event|emit_to",{target:typeof t=="string"?{kind:"AnyLabel",label:t}:t,event:e,payload:n})}var bt;(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(bt||(bt={}));class $n{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}}var Ct;(function(t){t.None="none",t.Normal="normal",t.Indeterminate="indeterminate",t.Paused="paused",t.Error="error"})(Ct||(Ct={}));function mt(){return new yn(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function ct(){return window.__TAURI_INTERNALS__.metadata.windows.map(t=>new yn(t.label,{skip:!0}))}const ut=["tauri://created","tauri://error"];class yn{constructor(e,n={}){var i;this.label=e,this.listeners=Object.create(null),n!=null&&n.skip||C("plugin:window|create",{options:{...n,parent:typeof n.parent=="string"?n.parent:(i=n.parent)==null?void 0:i.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async l=>this.emit("tauri://error",l))}static getByLabel(e){return ct().find(n=>n.label===e)??null}static getCurrent(){return mt()}static getAll(){return ct()}static async getFocusedWindow(){for(const e of ct())if(await e.isFocused())return e;return null}async listen(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{const i=this.listeners[e];i.splice(i.indexOf(n),1)}):vn(e,n,{target:{kind:"Window",label:this.label}})}async once(e,n){return this._handleTauriEvent(e,n)?Promise.resolve(()=>{const i=this.listeners[e];i.splice(i.indexOf(n),1)}):Zn(e,n,{target:{kind:"Window",label:this.label}})}async emit(e,n){if(ut.includes(e)){for(const i of this.listeners[e]||[])i({event:e,id:-1,payload:n});return Promise.resolve()}return Bn(e,n)}async emitTo(e,n,i){if(ut.includes(n)){for(const l of this.listeners[n]||[])l({event:n,id:-1,payload:i});return Promise.resolve()}return Kn(e,n,i)}_handleTauriEvent(e,n){return ut.includes(e)?(e in this.listeners?this.listeners[e].push(n):this.listeners[e]=[n],!0):!1}async scaleFactor(){return C("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return C("plugin:window|inner_position",{label:this.label}).then(({x:e,y:n})=>new ht(e,n))}async outerPosition(){return C("plugin:window|outer_position",{label:this.label}).then(({x:e,y:n})=>new ht(e,n))}async innerSize(){return C("plugin:window|inner_size",{label:this.label}).then(({width:e,height:n})=>new pt(e,n))}async outerSize(){return C("plugin:window|outer_size",{label:this.label}).then(({width:e,height:n})=>new pt(e,n))}async isFullscreen(){return C("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return C("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return C("plugin:window|is_maximized",{label:this.label})}async isFocused(){return C("plugin:window|is_focused",{label:this.label})}async isDecorated(){return C("plugin:window|is_decorated",{label:this.label})}async isResizable(){return C("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return C("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return C("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return C("plugin:window|is_closable",{label:this.label})}async isVisible(){return C("plugin:window|is_visible",{label:this.label})}async title(){return C("plugin:window|title",{label:this.label})}async theme(){return C("plugin:window|theme",{label:this.label})}async center(){return C("plugin:window|center",{label:this.label})}async requestUserAttention(e){let n=null;return e&&(e===bt.Critical?n={type:"Critical"}:n={type:"Informational"}),C("plugin:window|request_user_attention",{label:this.label,value:n})}async setResizable(e){return C("plugin:window|set_resizable",{label:this.label,value:e})}async setMaximizable(e){return C("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return C("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return C("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return C("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return C("plugin:window|maximize",{label:this.label})}async unmaximize(){return C("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return C("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return C("plugin:window|minimize",{label:this.label})}async unminimize(){return C("plugin:window|unminimize",{label:this.label})}async show(){return C("plugin:window|show",{label:this.label})}async hide(){return C("plugin:window|hide",{label:this.label})}async close(){return C("plugin:window|close",{label:this.label})}async destroy(){return C("plugin:window|destroy",{label:this.label})}async setDecorations(e){return C("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return C("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return C("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return C("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return C("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return C("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return C("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return C("plugin:window|set_size",{label:this.label,value:{type:e.type,data:{width:e.width,height:e.height}}})}async setMinSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return C("plugin:window|set_min_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setMaxSize(e){if(e&&e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `size` argument must be either a LogicalSize or a PhysicalSize instance");return C("plugin:window|set_max_size",{label:this.label,value:e?{type:e.type,data:{width:e.width,height:e.height}}:null})}async setPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return C("plugin:window|set_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setFullscreen(e){return C("plugin:window|set_fullscreen",{label:this.label,value:e})}async setFocus(){return C("plugin:window|set_focus",{label:this.label})}async setIcon(e){return C("plugin:window|set_icon",{label:this.label,value:typeof e=="string"?e:Array.from(e)})}async setSkipTaskbar(e){return C("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return C("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return C("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return C("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setCursorPosition(e){if(!e||e.type!=="Logical"&&e.type!=="Physical")throw new Error("the `position` argument must be either a LogicalPosition or a PhysicalPosition instance");return C("plugin:window|set_cursor_position",{label:this.label,value:{type:e.type,data:{x:e.x,y:e.y}}})}async setIgnoreCursorEvents(e){return C("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return C("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return C("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setProgressBar(e){return C("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return C("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async onResized(e){return this.listen(Se.WINDOW_RESIZED,n=>{n.payload=ti(n.payload),e(n)})}async onMoved(e){return this.listen(Se.WINDOW_MOVED,n=>{n.payload=ei(n.payload),e(n)})}async onCloseRequested(e){return this.listen(Se.WINDOW_CLOSE_REQUESTED,n=>{const i=new $n(n);Promise.resolve(e(i)).then(()=>{if(!i.isPreventDefault())return this.destroy()})})}async onFocusChanged(e){const n=await this.listen(Se.WINDOW_FOCUS,l=>{e({...l,payload:!0})}),i=await this.listen(Se.WINDOW_BLUR,l=>{e({...l,payload:!1})});return()=>{n(),i()}}async onScaleChanged(e){return this.listen(Se.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(Se.WINDOW_THEME_CHANGED,e)}}var Lt;(function(t){t.AppearanceBased="appearanceBased",t.Light="light",t.Dark="dark",t.MediumLight="mediumLight",t.UltraDark="ultraDark",t.Titlebar="titlebar",t.Selection="selection",t.Menu="menu",t.Popover="popover",t.Sidebar="sidebar",t.HeaderView="headerView",t.Sheet="sheet",t.WindowBackground="windowBackground",t.HudWindow="hudWindow",t.FullScreenUI="fullScreenUI",t.Tooltip="tooltip",t.ContentBackground="contentBackground",t.UnderWindowBackground="underWindowBackground",t.UnderPageBackground="underPageBackground",t.Mica="mica",t.Blur="blur",t.Acrylic="acrylic",t.Tabbed="tabbed",t.TabbedDark="tabbedDark",t.TabbedLight="tabbedLight"})(Lt||(Lt={}));var At;(function(t){t.FollowsWindowActiveState="followsWindowActiveState",t.Active="active",t.Inactive="inactive"})(At||(At={}));function ei(t){return new ht(t.x,t.y)}function ti(t){return new pt(t.width,t.height)}async function kn(){return C("plugin:os|platform")}async function ni(){return C("plugin:app|version")}async function ii(){return C("plugin:app|name")}async function li(){return C("plugin:app|tauri_version")}async function si(t=0){return C("plugin:process|exit",{code:t})}async function Cn(){return C("plugin:process|restart")}function oi(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T,I,W;return{c(){e=d("p"),e.innerHTML=`This is a demo of Tauri's API capabilities using the @tauri-apps/api package. It's used as the main validation app, serving as the test bed of our - development process. In the future, this app will be used on Tauri's integration - tests.`,n=y(),i=d("br"),l=y(),s=d("br"),o=y(),r=d("pre"),u=Z("App name: "),f=d("code"),h=Z(t[2]),w=Z(` -App version: `),p=d("code"),b=Z(t[0]),k=Z(` -Tauri version: `),_=d("code"),A=Z(t[1]),L=Z(` -`),v=y(),E=d("br"),O=y(),U=d("div"),S=d("button"),S.textContent="Close application",j=y(),T=d("button"),T.textContent="Relaunch application",c(S,"class","btn"),c(T,"class","btn"),c(U,"class","flex flex-wrap gap-1 shadow-")},m(R,D){g(R,e,D),g(R,n,D),g(R,i,D),g(R,l,D),g(R,s,D),g(R,o,D),g(R,r,D),a(r,u),a(r,f),a(f,h),a(r,w),a(r,p),a(p,b),a(r,k),a(r,_),a(_,A),a(r,L),g(R,v,D),g(R,E,D),g(R,O,D),g(R,U,D),a(U,S),a(U,j),a(U,T),I||(W=[M(S,"click",t[3]),M(T,"click",t[4])],I=!0)},p(R,[D]){D&4&&he(h,R[2]),D&1&&he(b,R[0]),D&2&&he(A,R[1])},i:x,o:x,d(R){R&&(m(e),m(n),m(i),m(l),m(s),m(o),m(r),m(v),m(E),m(O),m(U)),I=!1,$(W)}}}function ri(t,e,n){let i="1.0.0",l="1.0.0",s="Unknown";ii().then(u=>{n(2,s=u)}),ni().then(u=>{n(0,i=u)}),li().then(u=>{n(1,l=u)});async function o(){await si()}async function r(){await Cn()}return[i,l,s,o,r]}class ai extends de{constructor(e){super(),ue(this,e,ri,oi,se,{})}}async function ci(){return await C("plugin:cli|cli_matches")}function ui(t){let e,n,i,l,s,o,r,u,f,h,w,p,b;return{c(){e=d("p"),e.innerHTML=`This binary can be run from the terminal and takes the following arguments: -
  --config <PATH>
-  --theme <light|dark|system>
-  --verbose
- Additionally, it has a update --background subcommand.`,n=y(),i=d("br"),l=y(),s=d("div"),s.textContent="Note that the arguments are only parsed, not implemented.",o=y(),r=d("br"),u=y(),f=d("br"),h=y(),w=d("button"),w.textContent="Get matches",c(s,"class","note"),c(w,"class","btn"),c(w,"id","cli-matches")},m(k,_){g(k,e,_),g(k,n,_),g(k,i,_),g(k,l,_),g(k,s,_),g(k,o,_),g(k,r,_),g(k,u,_),g(k,f,_),g(k,h,_),g(k,w,_),p||(b=M(w,"click",t[0]),p=!0)},p:x,i:x,o:x,d(k){k&&(m(e),m(n),m(i),m(l),m(s),m(o),m(r),m(u),m(f),m(h),m(w)),p=!1,b()}}}function di(t,e,n){let{onMessage:i}=e;function l(){ci().then(i).catch(i)}return t.$$set=s=>{"onMessage"in s&&n(1,i=s.onMessage)},[l,i]}class fi extends de{constructor(e){super(),ue(this,e,di,ui,se,{onMessage:1})}}function pi(t){let e,n,i,l,s,o,r,u;return{c(){e=d("div"),n=d("button"),n.textContent="Call Log API",i=y(),l=d("button"),l.textContent="Call Request (async) API",s=y(),o=d("button"),o.textContent="Send event to Rust",c(n,"class","btn"),c(n,"id","log"),c(l,"class","btn"),c(l,"id","request"),c(o,"class","btn"),c(o,"id","event")},m(f,h){g(f,e,h),a(e,n),a(e,i),a(e,l),a(e,s),a(e,o),r||(u=[M(n,"click",t[0]),M(l,"click",t[1]),M(o,"click",t[2])],r=!0)},p:x,i:x,o:x,d(f){f&&m(e),r=!1,$(u)}}}function hi(t,e,n){const i=mt();let{onMessage:l}=e,s;Pe(async()=>{s=await i.listen("rust-event",l)}),dn(()=>{s&&s()});function o(){C("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function r(){C("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(l).catch(l)}function u(){i.emit("js-event","this is the payload string")}return t.$$set=f=>{"onMessage"in f&&n(3,l=f.onMessage)},[o,r,u,l]}class bi extends de{constructor(e){super(),ue(this,e,hi,pi,se,{onMessage:3})}}async function mi(t={}){return typeof t=="object"&&Object.freeze(t),C("plugin:dialog|open",{options:t})}async function gi(t={}){return typeof t=="object"&&Object.freeze(t),C("plugin:dialog|save",{options:t})}async function _i(t,e){var i,l;const n=typeof e=="string"?{title:e}:e;return C("plugin:dialog|message",{message:t.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type_:n==null?void 0:n.type,okButtonLabel:(l=n==null?void 0:n.okLabel)==null?void 0:l.toString()})}async function wi(t,e){var i,l,s;const n=typeof e=="string"?{title:e}:e;return C("plugin:dialog|ask",{message:t.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type_:n==null?void 0:n.type,okButtonLabel:((l=n==null?void 0:n.okLabel)==null?void 0:l.toString())??"Yes",cancelButtonLabel:((s=n==null?void 0:n.cancelLabel)==null?void 0:s.toString())??"No"})}async function St(t,e){var i,l,s;const n=typeof e=="string"?{title:e}:e;return C("plugin:dialog|confirm",{message:t.toString(),title:(i=n==null?void 0:n.title)==null?void 0:i.toString(),type_:n==null?void 0:n.type,okButtonLabel:((l=n==null?void 0:n.okLabel)==null?void 0:l.toString())??"Ok",cancelButtonLabel:((s=n==null?void 0:n.cancelLabel)==null?void 0:s.toString())??"Cancel"})}var it;(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(it||(it={}));var Et;(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Et||(Et={}));function Ln(t){return{isFile:t.isFile,isDirectory:t.isDirectory,isSymlink:t.isSymlink,size:t.size,mtime:t.mtime!=null?new Date(t.mtime):null,atime:t.atime!=null?new Date(t.atime):null,birthtime:t.birthtime!=null?new Date(t.birthtime):null,readonly:t.readonly,fileAttributes:t.fileAttributes,dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,blksize:t.blksize,blocks:t.blocks}}class vi extends _n{constructor(e){super(e)}async read(e){if(e.byteLength===0)return 0;const[n,i]=await C("plugin:fs|read",{rid:this.rid,len:e.byteLength});return e.set(n),i===0?null:i}async seek(e,n){return C("plugin:fs|seek",{rid:this.rid,offset:e,whence:n})}async stat(){const e=await C("plugin:fs|fstat",{rid:this.rid});return Ln(e)}async truncate(e){return C("plugin:fs|ftruncate",{rid:this.rid,len:e})}async write(e){return C("plugin:fs|write",{rid:this.rid,data:Array.from(e)})}}async function yi(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const n=await C("plugin:fs|open",{path:t instanceof URL?t.toString():t,options:e});return new vi(n)}async function ki(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return C("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function Ci(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return C("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function An(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");const n=await C("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return Uint8Array.from(n)}async function Li(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return C("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function Ai(t,e,n){if(t instanceof URL&&t.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");return C("plugin:fs|rename",{oldPath:t instanceof URL?t.toString():t,newPath:e instanceof URL?e.toString():e,options:n})}async function Si(t,e){const n=await C("plugin:fs|stat",{path:t instanceof URL?t.toString():t,options:e});return Ln(n)}async function Ei(t,e,n){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return C("plugin:fs|write_text_file",{path:t instanceof URL?t.toString():t,data:e,options:n})}async function Sn(t){await C("plugin:fs|unwatch",{rid:t})}async function Mi(t,e,n){const i={recursive:!1,delayMs:2e3,...n},l=Array.isArray(t)?t:[t];for(const r of l)if(r instanceof URL&&r.protocol!=="file:")throw new TypeError("Must be a file URL.");const s=new Ze;s.onmessage=e;const o=await C("plugin:fs|watch",{paths:l.map(r=>r instanceof URL?r.toString():r),options:i,onEvent:s});return()=>{Sn(o)}}async function Ti(t,e,n){const i={recursive:!1,...n,delayMs:null},l=Array.isArray(t)?t:[t];for(const r of l)if(r instanceof URL&&r.protocol!=="file:")throw new TypeError("Must be a file URL.");const s=new Ze;s.onmessage=e;const o=await C("plugin:fs|watch",{paths:l.map(r=>r instanceof URL?r.toString():r),options:i,onEvent:s});return()=>{Sn(o)}}function Ri(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T,I,W,R,D,Y,G;return{c(){e=d("div"),n=d("input"),i=y(),l=d("input"),s=y(),o=d("br"),r=y(),u=d("div"),f=d("input"),h=y(),w=d("label"),w.textContent="Multiple",p=y(),b=d("div"),k=d("input"),_=y(),A=d("label"),A.textContent="Directory",L=y(),v=d("br"),E=y(),O=d("button"),O.textContent="Open dialog",U=y(),S=d("button"),S.textContent="Open save dialog",j=y(),T=d("button"),T.textContent="Prompt",I=y(),W=d("button"),W.textContent="Prompt (custom)",R=y(),D=d("button"),D.textContent="Message",c(n,"class","input"),c(n,"id","dialog-default-path"),c(n,"placeholder","Default path"),c(l,"class","input"),c(l,"id","dialog-filter"),c(l,"placeholder","Extensions filter, comma-separated"),c(e,"class","flex gap-2 children:grow"),c(f,"type","checkbox"),c(f,"id","dialog-multiple"),c(w,"for","dialog-multiple"),c(k,"type","checkbox"),c(k,"id","dialog-directory"),c(A,"for","dialog-directory"),c(O,"class","btn"),c(O,"id","open-dialog"),c(S,"class","btn"),c(S,"id","save-dialog"),c(T,"class","btn"),c(T,"id","prompt-dialog"),c(W,"class","btn"),c(W,"id","custom-prompt-dialog"),c(D,"class","btn"),c(D,"id","message-dialog")},m(P,z){g(P,e,z),a(e,n),q(n,t[0]),a(e,i),a(e,l),q(l,t[1]),g(P,s,z),g(P,o,z),g(P,r,z),g(P,u,z),a(u,f),f.checked=t[2],a(u,h),a(u,w),g(P,p,z),g(P,b,z),a(b,k),k.checked=t[3],a(b,_),a(b,A),g(P,L,z),g(P,v,z),g(P,E,z),g(P,O,z),g(P,U,z),g(P,S,z),g(P,j,z),g(P,T,z),g(P,I,z),g(P,W,z),g(P,R,z),g(P,D,z),Y||(G=[M(n,"input",t[11]),M(l,"input",t[12]),M(f,"change",t[13]),M(k,"change",t[14]),M(O,"click",t[7]),M(S,"click",t[8]),M(T,"click",t[4]),M(W,"click",t[5]),M(D,"click",t[6])],Y=!0)},p(P,[z]){z&1&&n.value!==P[0]&&q(n,P[0]),z&2&&l.value!==P[1]&&q(l,P[1]),z&4&&(f.checked=P[2]),z&8&&(k.checked=P[3])},i:x,o:x,d(P){P&&(m(e),m(s),m(o),m(r),m(u),m(p),m(b),m(L),m(v),m(E),m(O),m(U),m(S),m(j),m(T),m(I),m(W),m(R),m(D)),Y=!1,$(G)}}}function Pi(t,e){var n=new Blob([t],{type:"application/octet-binary"}),i=new FileReader;i.onload=function(l){var s=l.target.result;e(s.substr(s.indexOf(",")+1))},i.readAsDataURL(n)}function Oi(t,e,n){let{onMessage:i}=e,{insecureRenderHtml:l}=e,s=null,o=null,r=!1,u=!1;async function f(){St("Do you want to do something?").then(v=>i(v?"Yes":"No")).catch(i)}async function h(){St("Is Tauri awesome?",{okLabel:"Absolutely",cancelLabel:"Totally"}).then(v=>i(v?"Tauri is absolutely awesome":"Tauri is totally awesome")).catch(i)}async function w(){await _i("Tauri is awesome!")}function p(){mi({title:"My wonderful open dialog",defaultPath:s,filters:o?[{name:"Tauri Example",extensions:o.split(",").map(v=>v.trim())}]:[],multiple:r,directory:u}).then(function(v){if(Array.isArray(v))i(v);else{var E=typeof v=="string"?v:v.path,O=E.match(/\S+\.\S+$/g);An(E).then(function(U){O&&(E.includes(".png")||E.includes(".jpg"))?Pi(new Uint8Array(U),function(S){var j="data:image/png;base64,"+S;l('')}):i(v)}).catch(i(v))}}).catch(i)}function b(){gi({title:"My wonderful save dialog",defaultPath:s,filters:o?[{name:"Tauri Example",extensions:o.split(",").map(v=>v.trim())}]:[]}).then(i).catch(i)}function k(){s=this.value,n(0,s)}function _(){o=this.value,n(1,o)}function A(){r=this.checked,n(2,r)}function L(){u=this.checked,n(3,u)}return t.$$set=v=>{"onMessage"in v&&n(9,i=v.onMessage),"insecureRenderHtml"in v&&n(10,l=v.insecureRenderHtml)},[s,o,r,u,f,h,w,p,b,i,l,k,_,A,L]}class Ii extends de{constructor(e){super(),ue(this,e,Oi,Ri,se,{onMessage:9,insecureRenderHtml:10})}}function Mt(t,e,n){const i=t.slice();return i[28]=e[n],i}function Tt(t){let e,n=t[28][0]+"",i;return{c(){e=d("option"),i=Z(n),e.__value=t[28][1],q(e,e.__value)},m(l,s){g(l,e,s),a(e,i)},p:x,d(l){l&&m(e)}}}function Rt(t){let e,n,i,l,s,o;return{c(){e=d("div"),n=d("button"),n.textContent="Truncate",i=y(),l=d("button"),l.textContent="Stat",c(n,"class","btn"),c(l,"class","btn")},m(r,u){g(r,e,u),a(e,n),a(e,i),a(e,l),s||(o=[M(n,"click",t[12]),M(l,"click",t[13])],s=!0)},p:x,d(r){r&&m(e),s=!1,$(o)}}}function Ui(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T,I,W,R,D,Y,G,P,z,oe,ee,re,B,te,F,K,H,Q,fe,me,Ae,He,ae,Ee,ve,we,ne,ye,ie,ke,Me,Ce,le,N=ge(t[7]),J=[];for(let X=0;XisNaN(parseInt(P))).map(P=>[P,it[P]]);function _(){yi(s,{baseDir:Re(),read:!0,write:!0,create:!0}).then(P=>{n(2,r=P),i(`Opened ${s}`)}).catch(i)}function A(){ki(s,{baseDir:Re()}).then(()=>{i(`Created dir ${s}`)}).catch(i)}function L(){Li(s,{baseDir:Re()}).then(()=>{i(`Removed ${s}`)}).catch(i)}function v(){Ai(s,u,{oldPathBaseDir:Re(),newPathBaseDir:Re()}).then(()=>{i(`Renamed ${s} to ${u}`)}).catch(i)}function E(){r.truncate(0).then(()=>{i("Truncated file")}).catch(i)}function O(){r.stat().then(P=>{i(`File stat ${JSON.stringify(P)}`)}).catch(i)}function U(){const P={baseDir:Re()};Si(s,P).then(z=>{const oe=z.isFile;(oe?An(s,P):Ci(s,P)).then(function(re){if(oe)if(s.includes(".png")||s.includes(".jpg"))Di(new Uint8Array(re),function(B){const te="data:image/png;base64,"+B;l('')});else{const B=String.fromCharCode.apply(null,re);l(''),setTimeout(()=>{const te=document.getElementById("file-response");te.value=B,document.getElementById("file-save").addEventListener("click",function(){Ei(s,te.value,{dir:Re()}).catch(i)})})}else i(re)}).catch(i)}).catch(i)}function S(){n(1,o.src=xn(s),o)}function j(){if(T(),f){i(`Watching ${f} for changes`);let P={recursive:w,delayMs:parseInt(h)};P.delayMs===0?Ti(f,i,P).then(z=>{p=z,b=f}).catch(i):Mi(f,i,P).then(z=>{p=z,b=f}).catch(i)}}function T(){p&&(i(`Stopped watching ${b} for changes`),p()),p=void 0,b=void 0}function I(){s=this.value,n(0,s)}function W(){u=this.value,n(3,u)}function R(){f=this.value,n(4,f)}function D(){h=this.value,n(5,h)}function Y(){w=this.checked,n(6,w)}function G(P){Qe[P?"unshift":"push"](()=>{o=P,n(1,o)})}return t.$$set=P=>{"onMessage"in P&&n(18,i=P.onMessage),"insecureRenderHtml"in P&&n(19,l=P.insecureRenderHtml)},[s,o,r,u,f,h,w,k,_,A,L,v,E,O,U,S,j,T,i,l,I,W,R,D,Y,G]}class zi extends de{constructor(e){super(),ue(this,e,Ni,Ui,se,{onMessage:18,insecureRenderHtml:19})}}async function Pt(t,e){const n=e==null?void 0:e.maxRedirections,i=e==null?void 0:e.connectTimeout,l=e==null?void 0:e.proxy;e&&(delete e.maxRedirections,delete e.connectTimeout,delete e.proxy);const s=e==null?void 0:e.signal,o=new Request(t,e),r=await o.arrayBuffer(),u=r.byteLength?Array.from(new Uint8Array(r)):null,f=await C("plugin:http|fetch",{clientConfig:{method:o.method,url:o.url,headers:Array.from(o.headers.entries()),data:u,maxRedirections:n,connectTimeout:i,proxy:l}});s==null||s.addEventListener("abort",()=>{C("plugin:http|fetch_cancel",{rid:f})});const{status:h,statusText:w,url:p,headers:b,rid:k}=await C("plugin:http|fetch_send",{rid:f}),_=await C("plugin:http|fetch_read_body",{rid:k}),A=new Response(new Uint8Array(_),{headers:b,status:h,statusText:w});return Object.defineProperty(A,"url",{value:p}),A}function Ot(t,e,n){const i=t.slice();return i[10]=e[n],i[12]=n,i}function Wi(t){let e,n=t[6][0]+"",i,l,s,o,r,u=t[6][1]+"",f,h,w,p,b,k=ge(t[5]),_=[];for(let v=0;vLe(_[v],1,1,()=>{_[v]=null});let L=!t[3]&&Nt();return{c(){e=d("span"),i=Z(n),l=y(),s=d("ul");for(let v=0;v<_.length;v+=1)_[v].c();o=y(),r=d("span"),f=Z(u),L&&L.c(),h=Ie(),c(e,"class","_jsonBkt svelte-6z96o6"),c(e,"role","button"),c(e,"tabindex","0"),be(e,"isArray",t[4]),c(s,"class","_jsonList svelte-6z96o6"),c(r,"class","_jsonBkt svelte-6z96o6"),c(r,"role","button"),c(r,"tabindex","0"),be(r,"isArray",t[4])},m(v,E){g(v,e,E),a(e,i),g(v,l,E),g(v,s,E);for(let O=0;O<_.length;O+=1)_[O]&&_[O].m(s,null);g(v,o,E),g(v,r,E),a(r,f),L&&L.m(v,E),g(v,h,E),w=!0,p||(b=[M(e,"click",t[8]),M(e,"keydown",t[9]),M(r,"click",t[8]),M(r,"keydown",t[9])],p=!0)},p(v,E){if((!w||E&64)&&n!==(n=v[6][0]+"")&&he(i,n),(!w||E&16)&&be(e,"isArray",v[4]),E&55){k=ge(v[5]);let O;for(O=0;O{h[k]=null}),ot(),s=h[l],s?s.p(p,b):(s=h[l]=f[l](p),s.c()),_e(s,1),s.m(e,o))},i(p){r||(_e(s),r=!0)},o(p){Le(s),r=!1},d(p){p&&m(e),u&&u.d(),h[l].d()}}}function Nt(t){let e;return{c(){e=d("span"),e.textContent=",",c(e,"class","_jsonSep svelte-6z96o6")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function zt(t){let e;return{c(){e=d("span"),e.textContent=",",c(e,"class","_jsonSep svelte-6z96o6")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function Wt(t){let e;return{c(){e=d("span"),e.textContent=",",c(e,"class","_jsonSep svelte-6z96o6")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function Fi(t){let e,n,i,l;const s=[Hi,ji,Wi],o=[];function r(u,f){return u[5].length?u[7]?1:2:0}return e=r(t),n=o[e]=s[e](t),{c(){n.c(),i=Ie()},m(u,f){o[e].m(u,f),g(u,i,f),l=!0},p(u,[f]){let h=e;e=r(u),e===h?o[e].p(u,f):(st(),Le(o[h],1,1,()=>{o[h]=null}),ot(),n=o[e],n?n.p(u,f):(n=o[e]=s[e](u),n.c()),_e(n,1),n.m(i.parentNode,i))},i(u){l||(_e(n),l=!0)},o(u){Le(n),l=!1},d(u){u&&m(i),o[e].d(u)}}}function Je(t){return t===null?"null":typeof t}function jt(t){const e=Je(t);return e==="string"?`"${t}"`:e==="function"?"f () {...}":e==="symbol"?t.toString():t}function xi(t,e,n){let{json:i}=e,{depth:l=1/0}=e,{_cur:s=0}=e,{_last:o=!0}=e,r,u=!1,f=["",""],h=!1;function w(){n(7,h=!h)}function p(b){b instanceof KeyboardEvent&&["Enter"," "].includes(b.key)&&w()}return t.$$set=b=>{"json"in b&&n(0,i=b.json),"depth"in b&&n(1,l=b.depth),"_cur"in b&&n(2,s=b._cur),"_last"in b&&n(3,o=b._last)},t.$$.update=()=>{t.$$.dirty&17&&(n(5,r=Je(i)==="object"?Object.keys(i):[]),n(4,u=Array.isArray(i)),n(6,f=u?["[","]"]:["{","}"])),t.$$.dirty&6&&n(7,h=lt[8].call(n)),c(w,"class","input h-auto w-100%"),c(w,"id","request-body"),c(w,"placeholder","Request body"),c(w,"rows","5"),c(_,"class","btn"),c(_,"id","make-request"),c(S,"class","input"),c(T,"class","input"),c(U,"class","flex gap-2 children:grow"),c(G,"class","btn"),c(G,"type","button")},m(H,Q){g(H,e,Q),a(e,n),a(n,i),a(n,l),a(n,s),a(n,o),a(n,r),et(n,t[0],!0),a(e,u),a(e,f),a(e,h),a(e,w),q(w,t[1]),a(e,p),a(e,b),a(e,k),a(e,_),g(H,A,Q),g(H,L,Q),g(H,v,Q),g(H,E,Q),g(H,O,Q),g(H,U,Q),a(U,S),q(S,t[2]),a(U,j),a(U,T),q(T,t[3]),g(H,I,Q),g(H,W,Q),g(H,R,Q),g(H,D,Q),g(H,Y,Q),g(H,G,Q),g(H,P,Q),g(H,z,Q),g(H,oe,Q),g(H,ee,Q),g(H,re,Q),Xe(B,H,Q),te=!0,F||(K=[M(n,"change",t[8]),M(w,"input",t[9]),M(e,"submit",Nn(t[5])),M(S,"input",t[10]),M(T,"input",t[11]),M(G,"click",t[6])],F=!0)},p(H,[Q]){Q&1&&et(n,H[0]),Q&2&&q(w,H[1]),Q&4&&S.value!==H[2]&&q(S,H[2]),Q&8&&T.value!==H[3]&&q(T,H[3]);const fe={};Q&16&&(fe.json=H[4]),B.$set(fe)},i(H){te||(_e(B.$$.fragment,H),te=!0)},o(H){Le(B.$$.fragment,H),te=!1},d(H){H&&(m(e),m(A),m(L),m(v),m(E),m(O),m(U),m(I),m(W),m(R),m(D),m(Y),m(G),m(P),m(z),m(oe),m(ee),m(re)),Ye(B,H),F=!1,$(K)}}}function Qi(t,e,n){let i="GET",l="",{onMessage:s}=e;async function o(){let _=i||"GET";const A={method:_||"GET",headers:{}};let L;_!=="GET"&&(A.body=l,l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?(A.headers["Content-Type"]="application/json",L="json"):l!==""&&(L="text"));const v=await Pt("http://localhost:3003",A),E=L==="json"?await v.json():await v.text();s({url:v.url,status:v.status,ok:v.ok,headers:Object.fromEntries(v.headers.entries()),body:E})}let r="baz",u="qux",f=null;async function h(){const _=new FormData;_.append("foo",r),_.append("bar",u);const A=await Pt("http://localhost:3003",{method:"POST",body:_});n(4,f={url:A.url,status:A.status,ok:A.ok,headers:Object.fromEntries(A.headers.entries()),body:await A.text()})}function w(){i=cn(this),n(0,i)}function p(){l=this.value,n(1,l)}function b(){r=this.value,n(2,r)}function k(){u=this.value,n(3,u)}return t.$$set=_=>{"onMessage"in _&&n(7,s=_.onMessage)},[i,l,r,u,f,o,h,s,w,p,b,k]}class Xi extends de{constructor(e){super(),ue(this,e,Qi,Gi,se,{onMessage:7})}}function Yi(t){let e,n,i;return{c(){e=d("button"),e.textContent="Send test notification",c(e,"class","btn"),c(e,"id","notification")},m(l,s){g(l,e,s),n||(i=M(e,"click",t[0]),n=!0)},p:x,i:x,o:x,d(l){l&&m(e),n=!1,i()}}}function Ht(){new Notification("Notification title",{body:"This is the notification body"})}function Ji(t,e,n){let{onMessage:i}=e;function l(){Notification.permission==="default"?Notification.requestPermission().then(function(s){s==="granted"?Ht():i("Permission is "+s)}).catch(i):Notification.permission==="granted"?Ht():i("Permission is denied")}return t.$$set=s=>{"onMessage"in s&&n(1,i=s.onMessage)},[l,i]}class Zi extends de{constructor(e){super(),ue(this,e,Ji,Yi,se,{onMessage:1})}}async function Bi(t,e){const n=new Ze;return n.onmessage=e,await C("plugin:global-shortcut|register",{shortcut:t,handler:n})}async function Ki(t){return await C("plugin:global-shortcut|unregister",{shortcut:t})}async function $i(){return await C("plugin:global-shortcut|unregister_all")}function qt(t,e,n){const i=t.slice();return i[9]=e[n],i}function Vt(t){let e,n=t[9]+"",i,l,s,o,r;function u(){return t[8](t[9])}return{c(){e=d("div"),i=Z(n),l=y(),s=d("button"),s.textContent="Unregister",c(s,"class","btn"),c(s,"type","button"),c(e,"class","flex justify-between")},m(f,h){g(f,e,h),a(e,i),a(e,l),a(e,s),o||(r=M(s,"click",u),o=!0)},p(f,h){t=f,h&2&&n!==(n=t[9]+"")&&he(i,n)},d(f){f&&m(e),o=!1,r()}}}function Ft(t){let e,n,i,l,s;return{c(){e=d("br"),n=y(),i=d("button"),i.textContent="Unregister all",c(i,"class","btn"),c(i,"type","button")},m(o,r){g(o,e,r),g(o,n,r),g(o,i,r),l||(s=M(i,"click",t[5]),l=!0)},p:x,d(o){o&&(m(e),m(n),m(i)),l=!1,s()}}}function el(t){let e,n,i,l,s,o,r,u,f,h,w,p=ge(t[1]),b=[];for(let _=0;_1&&Ft(t);return{c(){e=d("div"),n=d("input"),i=y(),l=d("button"),l.textContent="Register",s=y(),o=d("br"),r=y(),u=d("div");for(let _=0;_1?k?k.p(_,A):(k=Ft(_),k.c(),k.m(u,null)):k&&(k.d(1),k=null)},i:x,o:x,d(_){_&&(m(e),m(s),m(o),m(r),m(u)),We(b,_),k&&k.d(),h=!1,$(w)}}}function tl(t,e,n){let i,{onMessage:l}=e;const s=bn([]);an(t,s,p=>n(1,i=p));let o="CmdOrControl+X";function r(){const p=o;Bi(p,()=>{l(`Shortcut ${p} triggered`)}).then(()=>{s.update(b=>[...b,p]),l(`Shortcut ${p} registered successfully`)}).catch(l)}function u(p){const b=p;Ki(b).then(()=>{s.update(k=>k.filter(_=>_!==b)),l(`Shortcut ${b} unregistered`)}).catch(l)}function f(){$i().then(()=>{s.update(()=>[]),l("Unregistered all shortcuts")}).catch(l)}function h(){o=this.value,n(0,o)}const w=p=>u(p);return t.$$set=p=>{"onMessage"in p&&n(6,l=p.onMessage)},[o,i,s,r,u,f,l,h,w]}class nl extends de{constructor(e){super(),ue(this,e,tl,el,se,{onMessage:6})}}function xt(t){let e,n,i,l,s,o,r;return{c(){e=d("br"),n=y(),i=d("input"),l=y(),s=d("button"),s.textContent="Write",c(i,"class","input"),c(i,"placeholder","write to stdin"),c(s,"class","btn")},m(u,f){g(u,e,f),g(u,n,f),g(u,i,f),q(i,t[4]),g(u,l,f),g(u,s,f),o||(r=[M(i,"input",t[14]),M(s,"click",t[8])],o=!0)},p(u,f){f&16&&i.value!==u[4]&&q(i,u[4])},d(u){u&&(m(e),m(n),m(i),m(l),m(s)),o=!1,$(r)}}}function il(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T,I=t[5]&&xt(t);return{c(){e=d("div"),n=d("div"),i=Z(`Script: - `),l=d("input"),s=y(),o=d("div"),r=Z(`Encoding: - `),u=d("input"),f=y(),h=d("div"),w=Z(`Working directory: - `),p=d("input"),b=y(),k=d("div"),_=Z(`Arguments: - `),A=d("input"),L=y(),v=d("div"),E=d("button"),E.textContent="Run",O=y(),U=d("button"),U.textContent="Kill",S=y(),I&&I.c(),c(l,"class","grow input"),c(n,"class","flex items-center gap-1"),c(u,"class","grow input"),c(o,"class","flex items-center gap-1"),c(p,"class","grow input"),c(p,"placeholder","Working directory"),c(h,"class","flex items-center gap-1"),c(A,"class","grow input"),c(A,"placeholder","Environment variables"),c(k,"class","flex items-center gap-1"),c(E,"class","btn"),c(U,"class","btn"),c(v,"class","flex children:grow gap-1"),c(e,"class","flex flex-col childre:grow gap-1")},m(W,R){g(W,e,R),a(e,n),a(n,i),a(n,l),q(l,t[0]),a(e,s),a(e,o),a(o,r),a(o,u),q(u,t[3]),a(e,f),a(e,h),a(h,w),a(h,p),q(p,t[1]),a(e,b),a(e,k),a(k,_),a(k,A),q(A,t[2]),a(e,L),a(e,v),a(v,E),a(v,O),a(v,U),a(e,S),I&&I.m(e,null),j||(T=[M(l,"input",t[10]),M(u,"input",t[11]),M(p,"input",t[12]),M(A,"input",t[13]),M(E,"click",t[6]),M(U,"click",t[7])],j=!0)},p(W,[R]){R&1&&l.value!==W[0]&&q(l,W[0]),R&8&&u.value!==W[3]&&q(u,W[3]),R&2&&p.value!==W[1]&&q(p,W[1]),R&4&&A.value!==W[2]&&q(A,W[2]),W[5]?I?I.p(W,R):(I=xt(W),I.c(),I.m(e,null)):I&&(I.d(1),I=null)},i:x,o:x,d(W){W&&m(e),I&&I.d(),j=!1,$(T)}}}function ll(t,e,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",s=i?["/C"]:["-c"],{onMessage:o}=e,r='echo "hello world"',u=null,f="SOMETHING=value ANOTHER=2",h="",w="",p;function b(){return f.split(" ").reduce((S,j)=>{let[T,I]=j.split("=");return{...S,[T]:I}},{})}function k(){n(5,p=null);const S=nt.create(l,[...s,r],{cwd:u||null,env:b(),encoding:h||void 0});S.on("close",j=>{o(`command finished with code ${j.code} and signal ${j.signal}`),n(5,p=null)}),S.on("error",j=>o(`command error: "${j}"`)),S.stdout.on("data",j=>o(`command stdout: "${j}"`)),S.stderr.on("data",j=>o(`command stderr: "${j}"`)),S.spawn().then(j=>{n(5,p=j)}).catch(o)}function _(){p.kill().then(()=>o("killed child process")).catch(o)}function A(){p.write(w).catch(o)}function L(){r=this.value,n(0,r)}function v(){h=this.value,n(3,h)}function E(){u=this.value,n(1,u)}function O(){f=this.value,n(2,f)}function U(){w=this.value,n(4,w)}return t.$$set=S=>{"onMessage"in S&&n(9,o=S.onMessage)},[r,u,f,h,w,p,k,_,A,o,L,v,E,O,U]}class sl extends de{constructor(e){super(),ue(this,e,ll,il,se,{onMessage:9})}}class ol extends _n{constructor(e){super(e.rid),this.available=e.available,this.currentVersion=e.currentVersion,this.version=e.version,this.date=e.date,this.body=e.body}async downloadAndInstall(e){const n=new Ze;return e&&(n.onmessage=e),C("plugin:updater|download_and_install",{onEvent:n,rid:this.rid})}}async function rl(t){return t!=null&&t.headers&&(t.headers=Array.from(new Headers(t.headers).entries())),C("plugin:updater|check",{...t}).then(e=>e.available?new ol(e):null)}function al(t){let e,n,i,l,s,o;return{c(){e=d("div"),n=d("span"),i=Z(t[3]),l=Z("%"),s=y(),o=d("div"),c(n,"class","svelte-1xfvu87"),c(o,"class","progress-bar svelte-1xfvu87"),Ve(o,"width",t[3]+"%"),c(e,"class","progress svelte-1xfvu87")},m(r,u){g(r,e,u),a(e,n),a(n,i),a(n,l),a(e,s),a(e,o)},p(r,u){u&8&&he(i,r[3]),u&8&&Ve(o,"width",r[3]+"%")},d(r){r&&m(e)}}}function cl(t){let e,n,i;return{c(){e=d("button"),e.textContent="Install update",c(e,"class","btn")},m(l,s){g(l,e,s),n||(i=M(e,"click",t[5]),n=!0)},p:x,d(l){l&&m(e),n=!1,i()}}}function ul(t){let e,n,i;return{c(){e=d("button"),e.textContent="Check update",c(e,"class","btn")},m(l,s){g(l,e,s),n||(i=M(e,"click",t[4]),n=!0)},p:x,d(l){l&&m(e),n=!1,i()}}}function dl(t){let e;function n(s,o){return!s[0]&&!s[2]?ul:!s[1]&&s[2]?cl:al}let i=n(t),l=i(t);return{c(){e=d("div"),l.c(),c(e,"class","flex children:grow children:h10")},m(s,o){g(s,e,o),l.m(e,null)},p(s,[o]){i===(i=n(s))&&l?l.p(s,o):(l.d(1),l=i(s),l&&(l.c(),l.m(e,null)))},i:x,o:x,d(s){s&&m(e),l.d()}}}function fl(t,e,n){let i,{onMessage:l}=e,s,o,r,u=0,f=0;async function h(){n(0,s=!0);try{const p=await rl();l(`Should update: ${p.response.available}`),l(p.response),n(2,r=p)}catch(p){l(p)}finally{n(0,s=!1)}}async function w(){n(1,o=!0),n(8,f=0);try{await r.downloadAndInstall(p=>{switch(p.event){case"Started":n(7,u=p.data.contentLength);break;case"Progress":n(8,f+=p.data.chunkLength);break;case"Finished":break}}),l("Installation complete, restarting..."),await new Promise(p=>setTimeout(p,2e3)),await Cn()}catch(p){console.error(p),l(p)}finally{n(1,o=!1)}}return t.$$set=p=>{"onMessage"in p&&n(6,l=p.onMessage)},t.$$.update=()=>{t.$$.dirty&384&&n(3,i=u?Math.round(f/u*100):0)},[s,o,r,i,h,w,l,u,f]}class pl extends de{constructor(e){super(),ue(this,e,fl,dl,se,{onMessage:6})}}async function hl(t,e){return C("plugin:clipboard-manager|write",{data:{plainText:{label:e==null?void 0:e.label,text:t}}})}async function bl(){return(await C("plugin:clipboard-manager|read")).plainText.text}function ml(t){let e,n,i,l,s,o,r,u;return{c(){e=d("div"),n=d("input"),i=y(),l=d("button"),l.textContent="Write",s=y(),o=d("button"),o.textContent="Read",c(n,"class","grow input"),c(n,"placeholder","Text to write to the clipboard"),c(l,"class","btn"),c(l,"type","button"),c(o,"class","btn"),c(o,"type","button"),c(e,"class","flex gap-1")},m(f,h){g(f,e,h),a(e,n),q(n,t[0]),a(e,i),a(e,l),a(e,s),a(e,o),r||(u=[M(n,"input",t[4]),M(l,"click",t[1]),M(o,"click",t[2])],r=!0)},p(f,[h]){h&1&&n.value!==f[0]&&q(n,f[0])},i:x,o:x,d(f){f&&m(e),r=!1,$(u)}}}function gl(t,e,n){let{onMessage:i}=e,l="clipboard message";function s(){hl(l).then(()=>{i("Wrote to the clipboard")}).catch(i)}function o(){bl().then(u=>{i(`Clipboard contents: ${u}`)}).catch(i)}function r(){l=this.value,n(0,l)}return t.$$set=u=>{"onMessage"in u&&n(3,i=u.onMessage)},[l,s,o,i,r]}class _l extends de{constructor(e){super(),ue(this,e,gl,ml,se,{onMessage:3})}}function wl(t){let e;return{c(){e=d("div"),e.innerHTML='
Not available for Linux
',c(e,"class","flex flex-col gap-2")},m(n,i){g(n,e,i)},p:x,i:x,o:x,d(n){n&&m(e)}}}function vl(t,e,n){let{onMessage:i}=e;const l=window.constraints={audio:!0,video:!0};function s(r){const u=document.querySelector("video"),f=r.getVideoTracks();i("Got stream with constraints:",l),i(`Using video device: ${f[0].label}`),window.stream=r,u.srcObject=r}function o(r){if(r.name==="ConstraintNotSatisfiedError"){const u=l.video;i(`The resolution ${u.width.exact}x${u.height.exact} px is not supported by your device.`)}else r.name==="PermissionDeniedError"&&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: ${r.name}`,r)}return Pe(async()=>{try{const r=await navigator.mediaDevices.getUserMedia(l);s(r)}catch(r){o(r)}}),dn(()=>{window.stream.getTracks().forEach(function(r){r.stop()})}),t.$$set=r=>{"onMessage"in r&&n(0,i=r.onMessage)},[i]}class yl extends de{constructor(e){super(),ue(this,e,vl,wl,se,{onMessage:0})}}var xe;(function(t){t.QRCode="QR_CODE",t.UPC_A="UPC_A",t.UPC_E="UPC_E",t.EAN8="EAN_8",t.EAN13="EAN_13",t.Code39="CODE_39",t.Code93="CODE_93",t.Code128="CODE_128",t.Codabar="CODABAR",t.ITF="ITF",t.Aztec="AZTEC",t.DataMatrix="DATA_MATRIX",t.PDF417="PDF_417"})(xe||(xe={}));async function kl(t){return await C("plugin:barcode-scanner|scan",{...t})}async function Cl(){return await C("plugin:barcode-scanner|cancel")}async function Ll(){return await C("plugin:barcode-scanner|check_permissions").then(t=>t.camera)}async function Al(){return await C("plugin:barcode-scanner|request_permissions").then(t=>t.camera)}function Gt(t,e,n){const i=t.slice();return i[9]=e[n],i}function Qt(t){let e,n=t[9]+"",i;return{c(){e=d("option"),i=Z(n),e.__value=t[9],q(e,e.__value)},m(l,s){g(l,e,s),a(e,i)},p:x,d(l){l&&m(e)}}}function Sl(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T,I,W=ge(t[3]),R=[];for(let D=0;D
',c(l,"type","checkbox"),c(l,"id","scanner-windowed"),c(o,"for","scanner-windowed"),c(f,"class","input"),c(f,"id","format"),f.multiple=!0,t[2]===void 0&&je(()=>t[8].call(f)),c(w,"class","btn"),c(w,"type","button"),c(n,"class","svelte-u74si6"),be(n,"invisible",t[0]),c(k,"class","scanner-background svelte-u74si6"),c(E,"class","svelte-u74si6"),c(U,"class","btn"),c(U,"type","button"),c(v,"class","relative svelte-u74si6"),c(j,"class","square surround-cover svelte-u74si6"),c(L,"class","barcode-scanner--area--container svelte-u74si6"),c(A,"class","container full-height svelte-u74si6"),c(b,"class","scanning full-height svelte-u74si6"),be(b,"invisible",!t[0]),c(e,"class","full-height svelte-u74si6")},m(D,Y){g(D,e,Y),a(e,n),a(n,i),a(i,l),l.checked=t[1],a(i,s),a(i,o),a(n,r),a(n,u),a(u,f);for(let G=0;G{n(0,l=!1),i(b)}).catch(b=>{n(0,l=!1),i(b)})):i("Permission denied")}async function f(){await Cl(),n(0,l=!1),i("cancelled")}function h(){s=this.checked,n(1,s)}function w(){o=Wn(this),n(2,o),n(3,r)}return t.$$set=p=>{"onMessage"in p&&n(6,i=p.onMessage)},[l,s,o,r,u,f,i,h,w]}class Ml extends de{constructor(e){super(),ue(this,e,El,Sl,se,{onMessage:6})}}var Xt;(function(t){t[t.None=0]="None",t[t.TouchID=1]="TouchID",t[t.FaceID=2]="FaceID",t[t.Iris=3]="Iris"})(Xt||(Xt={}));async function Tl(t,e){return C("plugin:biometric|authenticate",{reason:t,...e})}function Rl(t){let e,n,i,l,s,o,r,u;return{c(){e=d("div"),n=d("input"),i=y(),l=d("label"),l.textContent="Allow device credential",s=y(),o=d("button"),o.textContent="Authenticate",c(n,"type","checkbox"),c(n,"id","dllowDeviceCredential"),c(l,"for","allowDeviceCredentiale"),c(o,"class","btn"),c(o,"id","cli-matches")},m(f,h){g(f,e,h),a(e,n),n.checked=t[0],a(e,i),a(e,l),g(f,s,h),g(f,o,h),r||(u=[M(n,"change",t[3]),M(o,"click",t[1])],r=!0)},p(f,[h]){h&1&&(n.checked=f[0])},i:x,o:x,d(f){f&&(m(e),m(s),m(o)),r=!1,$(u)}}}function Pl(t,e,n){let{onMessage:i}=e,l=!0;function s(){Tl("Tauri API wants to show it is awesome :)",{allowDeviceCredential:l,cancelTitle:"Cancel request",fallbackTitle:"Trying the fallback option",title:"Tauri API Auth",subtitle:"Please authenticate :)",confirmationRequired:!1,maxAttemps:1}).then(i).catch(i)}function o(){l=this.checked,n(0,l)}return t.$$set=r=>{"onMessage"in r&&n(2,i=r.onMessage)},[l,s,i,o]}class Ol extends de{constructor(e){super(),ue(this,e,Pl,Rl,se,{onMessage:2})}}const Il=[84],Ul=[85];var Yt;(function(t){t[t.IsoDep=0]="IsoDep",t[t.MifareClassic=1]="MifareClassic",t[t.MifareUltralight=2]="MifareUltralight",t[t.Ndef=3]="Ndef",t[t.NdefFormatable=4]="NdefFormatable",t[t.NfcA=5]="NfcA",t[t.NfcB=6]="NfcB",t[t.NfcBarcode=7]="NfcBarcode",t[t.NfcF=8]="NfcF",t[t.NfcV=9]="NfcV"})(Yt||(Yt={}));var lt;(function(t){t[t.Empty=0]="Empty",t[t.NfcWellKnown=1]="NfcWellKnown",t[t.Media=2]="Media",t[t.AbsoluteURI=3]="AbsoluteURI",t[t.NfcExternal=4]="NfcExternal",t[t.Unknown=5]="Unknown",t[t.Unchanged=6]="Unchanged"})(lt||(lt={}));function Mn(t,e,n,i){return{format:t,kind:typeof e=="string"?Array.from(new TextEncoder().encode(e)):e,id:typeof n=="string"?Array.from(new TextEncoder().encode(n)):n,payload:typeof i=="string"?Array.from(new TextEncoder().encode(i)):i}}function Dl(t,e,n="en"){const i=Array.from(new TextEncoder().encode(n+t));return i.unshift(n.length),Mn(lt.NfcWellKnown,Il,e||[],i)}const Jt=["","http://www.","https://www.","http://","https://","tel:","mailto:","ftp://anonymous:anonymous@","ftp://ftp.","ftps://","sftp://","smb://","nfs://","ftp://","dav://","news:","telnet://","imap:","rtsp://","urn:","pop:","sip:","sips:","tftp:","btspp://","btl2cap://","btgoep://","tcpobex://","irdaobex://","file://","urn:epc:id:","urn:epc:tag:","urn:epc:pat:","urn:epc:raw:","urn:epc:","urn:nfc:"];function Nl(t){let e="";Jt.slice(1).forEach(function(l){(!e||e==="urn:")&&t.indexOf(l)===0&&(e=l)}),e||(e="");const n=Array.from(new TextEncoder().encode(t.slice(e.length))),i=Jt.indexOf(e);return n.unshift(i),n}function zl(t,e){return Mn(lt.NfcWellKnown,Ul,e||[],Nl(t))}function Tn(t){const{type:e,...n}=t;return{[e]:n}}async function Wl(t,e){return await C("plugin:nfc|scan",{kind:Tn(t),...e})}async function jl(t,e){const{kind:n,...i}=e||{};return n&&(i.kind=Tn(n)),await C("plugin:nfc|write",{records:t,...i})}function Zt(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k;return{c(){e=d("div"),n=d("p"),n.textContent="Filters",i=y(),l=d("div"),s=d("input"),o=y(),r=d("input"),u=y(),f=d("input"),h=y(),w=d("div"),p=d("input"),c(s,"class","input"),c(s,"placeholder","Scheme"),Ve(s,"width","33%"),c(r,"class","input"),c(r,"placeholder","Host"),Ve(r,"width","33%"),c(f,"class","input"),c(f,"placeholder","Path prefix"),Ve(f,"width","33%"),c(l,"class","flex gap-2"),c(p,"class","input"),c(p,"placeholder","Mime type"),c(w,"class","flex gap-2"),c(e,"class","flex flex-col gap-2 children:grow")},m(_,A){g(_,e,A),a(e,n),a(e,i),a(e,l),a(l,s),q(s,t[4]),a(l,o),a(l,r),q(r,t[5]),a(l,u),a(l,f),q(f,t[6]),a(e,h),a(e,w),a(w,p),q(p,t[7]),b||(k=[M(s,"input",t[13]),M(r,"input",t[14]),M(f,"input",t[15]),M(p,"input",t[16])],b=!0)},p(_,A){A&16&&s.value!==_[4]&&q(s,_[4]),A&32&&r.value!==_[5]&&q(r,_[5]),A&64&&f.value!==_[6]&&q(f,_[6]),A&128&&p.value!==_[7]&&q(p,_[7])},d(_){_&&m(e),b=!1,$(k)}}}function Hl(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T=t[8]&&Zt(t);return{c(){e=d("div"),n=d("div"),i=d("div"),l=d("input"),s=y(),o=d("label"),o.textContent="Write data",r=y(),u=d("select"),f=d("option"),f.textContent="TAG",h=d("option"),h.textContent="NDEF",w=y(),T&&T.c(),p=y(),b=d("div"),k=d("p"),k.textContent="Write Records",_=y(),A=d("div"),L=d("input"),v=y(),E=d("input"),O=y(),U=d("button"),U.textContent="Scan",c(l,"type","checkbox"),c(l,"id","nfc-write"),c(o,"for","nfc-write"),f.__value="tag",q(f,f.__value),h.__value="ndef",q(h,h.__value),c(u,"class","input"),c(u,"id","request-method"),t[0]===void 0&&je(()=>t[12].call(u)),c(n,"class","flex gap-2 children:grow items-center"),c(L,"class","input"),c(L,"placeholder","Text record"),c(E,"class","input"),c(E,"placeholder","URI record"),c(A,"class","flex"),c(b,"class","flex flex-col gap-2 children:grow"),c(U,"class","btn")},m(I,W){g(I,e,W),a(e,n),a(n,i),a(i,l),l.checked=t[1],a(i,s),a(i,o),a(n,r),a(n,u),a(u,f),a(u,h),et(u,t[0],!0),a(e,w),T&&T.m(e,null),a(e,p),a(e,b),a(b,k),a(b,_),a(b,A),a(A,L),q(L,t[2]),a(A,v),a(A,E),q(E,t[3]),a(e,O),a(e,U),S||(j=[M(l,"change",t[11]),M(u,"change",t[12]),M(L,"input",t[17]),M(E,"input",t[18]),M(U,"click",t[9])],S=!0)},p(I,[W]){W&2&&(l.checked=I[1]),W&1&&et(u,I[0]),I[8]?T?T.p(I,W):(T=Zt(I),T.c(),T.m(e,p)):T&&(T.d(1),T=null),W&4&&L.value!==I[2]&&q(L,I[2]),W&8&&E.value!==I[3]&&q(E,I[3])},i:x,o:x,d(I){I&&m(e),T&&T.d(),S=!1,$(j)}}}function ql(t,e,n){let{onMessage:i}=e;const l=new TextDecoder;let s="tag",o=!1,r="",u="",f="",h="",w="",p="",b;Pe(async()=>{n(8,b=await kn()==="android")});async function k(){i(`NFC scanning ${s}`);const T=await Wl({type:s,uri:{scheme:f||null,host:h||null,pathPrefix:w||null},mimeType:p||null},{keepSessionAlive:o,message:"Hold your iPhone near an NFC tag",successMessage:"Tag successfully read"});if(i({id:l.decode(new Uint8Array(T.id)),kind:T.kind,records:T.records.map(I=>({id:l.decode(new Uint8Array(I.id)),kind:l.decode(new Uint8Array(I.kind)),payload:l.decode(new Uint8Array(I.payload)),tnf:I.tnf}))}),o){const I=[];r&&I.push(Dl(r,"tauriTextId")),u&&I.push(zl(u,"tauriUriId")),await jl(I,{successMessage:"Data written to tag"}),i("Wrote to tag")}}function _(){k().catch(i)}function A(){o=this.checked,n(1,o)}function L(){s=cn(this),n(0,s)}function v(){f=this.value,n(4,f)}function E(){h=this.value,n(5,h)}function O(){w=this.value,n(6,w)}function U(){p=this.value,n(7,p)}function S(){r=this.value,n(2,r)}function j(){u=this.value,n(3,u)}return t.$$set=T=>{"onMessage"in T&&n(10,i=T.onMessage)},[s,o,r,u,f,h,w,p,b,_,i,A,L,v,E,O,U,S,j]}class Vl extends de{constructor(e){super(),ue(this,e,ql,Hl,se,{onMessage:10})}}function Bt(t,e,n){const i=t.slice();return i[35]=e[n],i}function Kt(t,e,n){const i=t.slice();return i[38]=e[n],i}function $t(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_;function A(S,j){return S[3]?xl:Fl}let L=A(t),v=L(t);function E(S,j){return S[2]?Ql:Gl}let O=E(t),U=O(t);return{c(){e=d("div"),n=d("span"),n.textContent="Tauri API Validation",i=y(),l=d("span"),s=d("span"),v.c(),r=y(),u=d("span"),u.innerHTML='
',f=y(),h=d("span"),U.c(),p=y(),b=d("span"),b.innerHTML='
',c(n,"class","lt-sm:pl-10 text-darkPrimaryText"),c(s,"title",o=t[3]?"Switch to Light mode":"Switch to Dark mode"),c(s,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),c(u,"title","Minimize"),c(u,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),c(h,"title",w=t[2]?"Restore":"Maximize"),c(h,"class","hover:bg-hoverOverlay active:bg-hoverOverlayDarker dark:hover:bg-darkHoverOverlay dark:active:bg-darkHoverOverlayDarker"),c(b,"title","Close"),c(b,"class","hover:bg-red-700 dark:hover:bg-red-700 hover:text-darkPrimaryText active:bg-red-700/90 dark:active:bg-red-700/90 active:text-darkPrimaryText"),c(l,"class","h-100% children:h-100% children:w-12 children:inline-flex children:items-center children:justify-center"),c(e,"class","w-screen select-none h-8 pl-2 flex justify-between items-center absolute text-primaryText dark:text-darkPrimaryText"),c(e,"data-tauri-drag-region","")},m(S,j){g(S,e,j),a(e,n),a(e,i),a(e,l),a(l,s),v.m(s,null),a(l,r),a(l,u),a(l,f),a(l,h),U.m(h,null),a(l,p),a(l,b),k||(_=[M(s,"click",t[14]),M(u,"click",t[11]),M(h,"click",t[12]),M(b,"click",t[13])],k=!0)},p(S,j){L!==(L=A(S))&&(v.d(1),v=L(S),v&&(v.c(),v.m(s,null))),j[0]&8&&o!==(o=S[3]?"Switch to Light mode":"Switch to Dark mode")&&c(s,"title",o),O!==(O=E(S))&&(U.d(1),U=O(S),U&&(U.c(),U.m(h,null))),j[0]&4&&w!==(w=S[2]?"Restore":"Maximize")&&c(h,"title",w)},d(S){S&&m(e),v.d(),U.d(),k=!1,$(_)}}}function Fl(t){let e;return{c(){e=d("div"),c(e,"class","i-ph-moon")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function xl(t){let e;return{c(){e=d("div"),c(e,"class","i-ph-sun")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function Gl(t){let e;return{c(){e=d("div"),c(e,"class","i-codicon-chrome-maximize")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function Ql(t){let e;return{c(){e=d("div"),c(e,"class","i-codicon-chrome-restore")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function Xl(t){let e;return{c(){e=d("span"),c(e,"class","i-codicon-menu animate-duration-300ms animate-fade-in")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function Yl(t){let e;return{c(){e=d("span"),c(e,"class","i-codicon-close animate-duration-300ms animate-fade-in")},m(n,i){g(n,e,i)},d(n){n&&m(e)}}}function en(t){let e,n,i,l,s,o,r,u,f;function h(b,k){return b[3]?Zl:Jl}let w=h(t),p=w(t);return{c(){e=d("a"),p.c(),n=y(),i=d("br"),l=y(),s=d("div"),o=y(),r=d("br"),c(e,"href","##"),c(e,"class","nv justify-between h-8"),c(s,"class","bg-white/5 h-2px")},m(b,k){g(b,e,k),p.m(e,null),g(b,n,k),g(b,i,k),g(b,l,k),g(b,s,k),g(b,o,k),g(b,r,k),u||(f=M(e,"click",t[14]),u=!0)},p(b,k){w!==(w=h(b))&&(p.d(1),p=w(b),p&&(p.c(),p.m(e,null)))},d(b){b&&(m(e),m(n),m(i),m(l),m(s),m(o),m(r)),p.d(),u=!1,f()}}}function Jl(t){let e,n;return{c(){e=Z(`Switch to Dark mode - `),n=d("div"),c(n,"class","i-ph-moon")},m(i,l){g(i,e,l),g(i,n,l)},d(i){i&&(m(e),m(n))}}}function Zl(t){let e,n;return{c(){e=Z(`Switch to Light mode - `),n=d("div"),c(n,"class","i-ph-sun")},m(i,l){g(i,e,l),g(i,n,l)},d(i){i&&(m(e),m(n))}}}function Bl(t){let e,n,i,l,s,o,r;function u(){return t[22](t[38])}return{c(){e=d("a"),n=d("div"),i=y(),l=d("p"),l.textContent=`${t[38].label}`,c(n,"class",t[38].icon+" mr-2"),c(e,"href","##"),c(e,"class",s="nv "+(t[1]===t[38]?"nv_selected":""))},m(f,h){g(f,e,h),a(e,n),a(e,i),a(e,l),o||(r=M(e,"click",u),o=!0)},p(f,h){t=f,h[0]&2&&s!==(s="nv "+(t[1]===t[38]?"nv_selected":""))&&c(e,"class",s)},d(f){f&&m(e),o=!1,r()}}}function tn(t){let e,n=t[38]&&Bl(t);return{c(){n&&n.c(),e=Ie()},m(i,l){n&&n.m(i,l),g(i,e,l)},p(i,l){i[38]&&n.p(i,l)},d(i){i&&m(e),n&&n.d(i)}}}function nn(t){let e,n=t[35].html+"",i;return{c(){e=new jn(!1),i=Ie(),e.a=i},m(l,s){e.m(n,l,s),g(l,i,s)},p(l,s){s[0]&128&&n!==(n=l[35].html+"")&&e.p(n)},d(l){l&&(m(i),e.d())}}}function Kl(t){let e,n,i,l,s,o,r,u,f,h,w,p,b,k,_,A,L,v,E,O,U,S,j,T,I,W,R=t[1].label+"",D,Y,G,P,z,oe,ee,re,B,te,F,K,H,Q,fe,me,Ae,He,ae=t[6]&&$t(t);function Ee(N,J){return N[0]?Yl:Xl}let ve=Ee(t),we=ve(t),ne=!t[6]&&en(t),ye=ge(t[9]),ie=[];for(let N=0;N`,w=y(),p=d("a"),p.innerHTML=`GitHub - `,b=y(),k=d("a"),k.innerHTML=`Source - `,_=y(),A=d("br"),L=y(),v=d("div"),E=y(),O=d("br"),U=y(),S=d("div");for(let N=0;N',Q=y(),fe=d("div");for(let N=0;N{Ye(V,1)}),ot()}ke?(z=vt(ke,Me(N)),tt(z.$$.fragment),_e(z.$$.fragment,1),Xe(z,P,null)):z=null}if(J[0]&128){Ce=ge(N[7]);let V;for(V=0;V{await confirm("Are you sure?")||F.preventDefault()}),l.onFileDropEvent(F=>{E(`File drop: ${JSON.stringify(F.payload)}`)});const s=navigator.userAgent.toLowerCase(),o=s.includes("android")||s.includes("iphone"),r=[{label:"Welcome",component:ai,icon:"i-ph-hand-waving"},{label:"Communication",component:bi,icon:"i-codicon-radio-tower"},!o&&{label:"CLI",component:fi,icon:"i-codicon-terminal"},{label:"Dialog",component:Ii,icon:"i-codicon-multiple-windows"},{label:"File system",component:zi,icon:"i-codicon-files"},{label:"HTTP",component:Xi,icon:"i-ph-globe-hemisphere-west"},{label:"Notifications",component:Zi,icon:"i-codicon-bell-dot"},!o&&{label:"Shortcuts",component:nl,icon:"i-codicon-record-keys"},{label:"Shell",component:sl,icon:"i-codicon-terminal-bash"},!o&&{label:"Updater",component:pl,icon:"i-codicon-cloud-download"},{label:"Clipboard",component:_l,icon:"i-codicon-clippy"},{label:"WebRTC",component:yl,icon:"i-ph-broadcast"},o&&{label:"Scanner",component:Ml,icon:"i-ph-scan"},o&&{label:"NFC",component:Vl,icon:"i-ph-nfc"},o&&{label:"Biometric",component:Ol,icon:"i-ph-scan"}];let u=r[0];function f(F){n(1,u=F)}let h;Pe(async()=>{n(2,h=await l.isMaximized()),l.onResized(async()=>{n(2,h=await l.isMaximized())})});function w(){l.minimize()}async function p(){await l.isMaximized()?l.unmaximize():l.maximize()}let b=!1;async function k(){b||(b=await wi("Are you sure that you want to close this window?",{title:"Tauri API"}),b&&l.close())}let _;Pe(()=>{n(3,_=localStorage&&localStorage.getItem("theme")=="dark"),sn(_)});function A(){n(3,_=!_),sn(_)}let L=bn([]);an(t,L,F=>n(7,i=F));let v;async function E(F){L.update(K=>[...K,{html:`
[${new Date().toLocaleTimeString()}]: `+(typeof F=="string"?F:JSON.stringify(F,null,1))+"
"}]),await kt(),v&&n(4,v.scrollTop=v.scrollHeight,v)}async function O(F){L.update(K=>[...K,{html:`
[${new Date().toLocaleTimeString()}]: `+F+"
"}]),await kt(),v&&n(4,v.scrollTop=v.scrollHeight,v)}function U(){L.update(()=>[])}let S,j,T;function I(F){T=F.clientY;const K=window.getComputedStyle(S);j=parseInt(K.height,10);const H=fe=>{const me=fe.clientY-T,Ae=j-me;n(5,S.style.height=`${Ae{document.removeEventListener("mouseup",Q),document.removeEventListener("mousemove",H)};document.addEventListener("mouseup",Q),document.addEventListener("mousemove",H)}let W;Pe(async()=>{n(6,W=await kn()==="windows")});let R=!1,D,Y,G=!1,P=0,z=0;const oe=(F,K,H)=>Math.min(Math.max(K,F),H);Pe(()=>{n(20,D=document.querySelector("#sidebar")),Y=document.querySelector("#sidebarToggle"),document.addEventListener("click",F=>{Y.contains(F.target)?n(0,R=!R):R&&!D.contains(F.target)&&n(0,R=!1)}),document.addEventListener("touchstart",F=>{if(Y.contains(F.target))return;const K=F.touches[0].clientX;(0{if(G){const K=F.touches[0].clientX;z=K;const H=(K-P)/10;D.style.setProperty("--translate-x",`-${oe(0,R?0-H:18.75-H,18.75)}rem`)}}),document.addEventListener("touchend",()=>{if(G){const F=(z-P)/10;n(0,R=R?F>-(18.75/2):F>18.75/2)}G=!1})});const ee=()=>Xn("https://tauri.app/"),re=F=>{f(F),n(0,R=!1)};function B(F){Qe[F?"unshift":"push"](()=>{v=F,n(4,v)})}function te(F){Qe[F?"unshift":"push"](()=>{S=F,n(5,S)})}return t.$$.update=()=>{if(t.$$.dirty[0]&1){const F=document.querySelector("#sidebar");F&&$l(F,R)}},[R,u,h,_,v,S,W,i,o,r,f,w,p,k,A,L,E,O,U,I,D,ee,re,B,te]}class ts extends de{constructor(e){super(),ue(this,e,es,Kl,se,{},null,[-1,-1])}}new ts({target:document.querySelector("#app")}); diff --git a/examples/api/dist/index.html b/examples/api/dist/index.html deleted file mode 100644 index 04b07493..00000000 --- a/examples/api/dist/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - Svelte + Vite App - - - - - -
- - diff --git a/examples/api/dist/tauri_logo.png b/examples/api/dist/tauri_logo.png deleted file mode 100644 index 2c53b8c4bd721c7346831ba6be581d03a0a4d755..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2810 zcmVwHth5sLepoh&l$aA>P7ref%n2|jz?>kS6AYZdW~EhRi)8HML~ZY2gfUsWoAfh zv0AP#5L6Pk7xQXFMZ9>wMV6^2xv-A2Cu9~C2k0EA9|nI5;o-eYY?&k>uopQpUXc~o zERaZ8f%_x5t!Zwct&9=h0pg{G_88R+Tpzu{sSBiYqe7G+t{t*WEwP0KK@`G3UC}5j zutqy3K`D;sQcCQjUtYOGQ?A>9etL-|td^D01?oY{V2_4G9%puO86`y%j~25@#A=xw z;*AP}Jk|I`#kBgvg+^hQxlNX-WT3?gM}Zu$yWyr*_FRw$QH&)HQk;W2=W5DjYqh42 zbc}sC23lh4grK@6UYs1$m|@{STw9^L?FQ!!MxZsaOcim2<=utV;6PpeBU=kn5`Sqx}+uV*|KNaFBnCp#6~a~4Y$c7$3gRgnvrKiygYeKmZ>7Pu%5m- zMRJpNNs5egsQ6*+sa7QVe3#f0FW;B6{aUfs$4En(T=D$mf0TfWi;JS;I2$wun$70X z;^JaC>3M_@TMr&Q@Mr*^KYuP^-lUw-Mo2K4a;3acY1`rSnd|0;X>{4dI~7h}GQ8IYe+X7+{5ix>4H zO2F5zU#s|Xax@0;MO7e>EyX!poa5ZkwG43#9N^&Q@G;!}?dYq$KZbMH&~H7?@#En8 z{@$ZUk4lv68uaM~c6m?Uo|Pdg4ybe8Z8}i}q{J&SkrKPccAgH3Z0mg@CIx)yIa52n z^a4#esZ?s0g~=jH(oZR@pWd9i>Fb-SP`NWn<{-X5_>Q)_G$X)e81rnfbW5K;eag}F z!VQ7rlJ{5#d@WAf~PyAToya^zO&-^Ox&OPY{c7OhrUzHS8 zBSc|q<}MdjN~#QRMWJ-D+O3y@CA?RmZxyx%pYKf2>)7 z&>c?XggW9z7gn`1DB=OZy?gia*tXBswtxTdv&5?S?GaY$$}ed}MRa&WH#^?ipFJ|+ z%bhTbt^!$mGEV`iTqT#@B;?`4hb)qaP{M#SA3cR=r~-5YDsdj-IQhQg2JR36aE&IM z$B!SgH>n_|`T_q(M#1=evAtNw6+U@)mKVB`7(u18zpre1&jyH!f<$K>BR?J{_wU;X zM}*pA1e4vW(TgvCr3vEt`nrFiNB}He8A7V{Z%?Pwv0ca{aCLR1v`YMtuvMcNbcE$d z+E*ToWbtfmCDBAP#B<0Z;#&4#Du`f0TiN>oZje;*NPW`g3Nac~J%Ao8-Z5LP{sy?^ zeB2u{D+I1^<;{NzN*4%Ab-MQB0S!TDnJSbBQH*ZGg!hD@%8yCex=w!Dk+|$}BmAV# z&CPLwGEpw>d%9=+NW>1{wYJYRv*?@23iW9?h(RS z4c_?v@#*s)6N{j$IyD-Dh@`Ic_A$A^Had5RZ7j;6LW>EYj)y0<_i&_o0<~u9#Q847 zWfh+8k<=^)uar1>`u2365@0NOj!_M9*I+W2V-L4~d)p1R(YZq+(#9?mP8|=+W|9tw zu~d00acJrk$f%&fQfToI}#|^eojSfL>+D3=?93_Zq9S@6_ zq+gnv!X?q0>UR7qZHY=4lbN#4Mfc=n&&y_&u>`DC9uv{qWU4%9${ka_>wCdz14aDd zhSdYHm@s$fwg2E5301b8XD^0{3mu3maZ+gH0@?F%O(sX&As5!EcEqU7Btl&_f2dJ3L{`(pg)VY%iC0TGNMc1qwEX_R+9yTI z=D_I{A*5$$R;jY2>c)Io=vHG_a{YoAox+gLl!IV#HVd|vit2&r6(ZeA6e!l|m zbs2e{Ft0*fuh|vz>+dKHz@~|5g$o%}gXX=X^T~Xw|avVRk zOIG-XLOeB1DK(3$05KK#4Xm5)R2&agl8)XKu+_>bwzJhbNHC=nt&f6Wj8Ew4^W}O< z`s=VVoGV6@k@Iovgmdw#7nhRZnQ~3K#T5O8erEtYcoYFV#CB`Hn-FB~-+tIeGPNp&e0^7<8U}WQs_nRuu__h#CTK=|E(@u9!{Xv1 zXSmndrBMv{Mu!Q^>@Y5{(P;c%wcTX3kcTrbhH3B1|2%znx(f?cinNZ=YO!VFY&`}G z8D5*%IfW1f(;CIw05@U-u}Z{(s50n$^C7O)IQ!~=)p8MwMb`D1=H9puEZS&{9hHRTsjbA?d98QDpeJG{=f+HtA&E zZ|2ems{9nTxh$?H@6Hm}Z9jSU?>t*7Rds5sH0N$zpylr9nNeN&=Xpjt8tXzq8lvLM z)ZQT1s9KiadmQTmXPwAYeNg`{gn8Ag;M|v}iKhG&V)LZaTymOXNjhRxNSTi$PW!w2 zGCNFBpk;bc)}Y1`*Dzo(0Pz*A3!Hs~u7TYmsitj)gx#Ox)26jle+;z0Hq$e0Gb)(w z@$Y}O?(YwTh_lmAZ~ldpL26gFe)K;c{5uZ<6WI=xjnxj8nIx95+5`fl6f)?}2CR@v zP0T-uu)Zqz!4UGK6m_I0YS(jLjwX4k#$vHpEEbE!VzF2(7Rzn%8+s-;M1&