From 211838d374bff75e58d4a711e7c8fe78dd426f7d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 8 Sep 2023 16:06:01 +0000 Subject: [PATCH] deploy: 42806b7f705bd921ced81cd96ad48605d7d0a690 --- .nojekyll | 0 _app/immutable/assets/0.1f96fccd.css | 1 + _app/immutable/assets/_layout.1f96fccd.css | 1 + _app/immutable/chunks/api.3d2a0698.js | 3 + _app/immutable/chunks/constants.6d5eb8fd.js | 1 + _app/immutable/chunks/context.981da52b.js | 1 + _app/immutable/chunks/index.21959a4f.js | 1 + _app/immutable/chunks/index.403b996f.js | 1 + _app/immutable/chunks/localStore.3ee7e119.js | 1 + _app/immutable/chunks/navigation.95f2663e.js | 1 + _app/immutable/chunks/paths.6a5b220f.js | 1 + _app/immutable/chunks/scheduler.5c7fdb1c.js | 1 + _app/immutable/chunks/singletons.e4241f1e.js | 1 + _app/immutable/chunks/stores.e45304b0.js | 1 + _app/immutable/entry/app.9613660e.js | 1 + _app/immutable/entry/start.1a4b7076.js | 3 + _app/immutable/nodes/0.d5facf68.js | 1 + _app/immutable/nodes/1.720715e7.js | 1 + _app/immutable/nodes/2.545a67bb.js | 3 + _app/immutable/nodes/3.036923c6.js | 5 ++ _app/immutable/nodes/4.53a37fda.js | 2 + _app/immutable/nodes/5.0fab7787.js | 3 + _app/version.json | 1 + dashboard.html | 58 +++++++++++++++++++ favicon.ico | Bin 0 -> 5430 bytes index.html | 55 ++++++++++++++++++ login.html | 56 ++++++++++++++++++ logout.html | 55 ++++++++++++++++++ slash-blurple.png | Bin 0 -> 1038 bytes slash.png | Bin 0 -> 2128 bytes 30 files changed, 259 insertions(+) create mode 100644 .nojekyll create mode 100644 _app/immutable/assets/0.1f96fccd.css create mode 100644 _app/immutable/assets/_layout.1f96fccd.css create mode 100644 _app/immutable/chunks/api.3d2a0698.js create mode 100644 _app/immutable/chunks/constants.6d5eb8fd.js create mode 100644 _app/immutable/chunks/context.981da52b.js create mode 100644 _app/immutable/chunks/index.21959a4f.js create mode 100644 _app/immutable/chunks/index.403b996f.js create mode 100644 _app/immutable/chunks/localStore.3ee7e119.js create mode 100644 _app/immutable/chunks/navigation.95f2663e.js create mode 100644 _app/immutable/chunks/paths.6a5b220f.js create mode 100644 _app/immutable/chunks/scheduler.5c7fdb1c.js create mode 100644 _app/immutable/chunks/singletons.e4241f1e.js create mode 100644 _app/immutable/chunks/stores.e45304b0.js create mode 100644 _app/immutable/entry/app.9613660e.js create mode 100644 _app/immutable/entry/start.1a4b7076.js create mode 100644 _app/immutable/nodes/0.d5facf68.js create mode 100644 _app/immutable/nodes/1.720715e7.js create mode 100644 _app/immutable/nodes/2.545a67bb.js create mode 100644 _app/immutable/nodes/3.036923c6.js create mode 100644 _app/immutable/nodes/4.53a37fda.js create mode 100644 _app/immutable/nodes/5.0fab7787.js create mode 100644 _app/version.json create mode 100644 dashboard.html create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 login.html create mode 100644 logout.html create mode 100644 slash-blurple.png create mode 100644 slash.png diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/_app/immutable/assets/0.1f96fccd.css b/_app/immutable/assets/0.1f96fccd.css new file mode 100644 index 0000000..6945fb3 --- /dev/null +++ b/_app/immutable/assets/0.1f96fccd.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.invisible{visibility:hidden}.m-4{margin:1rem}.m-5{margin:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-4{margin-top:1rem}.mt-9{margin-top:2.25rem}.block{display:block}.flex{display:flex}.table{display:table}.contents{display:contents}.h-11{height:2.75rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-max{height:-moz-max-content;height:max-content}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-11{width:2.75rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-primary-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(122 126 133 / var(--tw-divide-opacity))}.divide-primary-600>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(35 38 42 / var(--tw-divide-opacity))}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-primary-700{--tw-border-opacity: 1;border-color:rgb(25 27 31 / var(--tw-border-opacity))}.bg-blurple-500{--tw-bg-opacity: 1;background-color:rgb(88 101 242 / var(--tw-bg-opacity))}.bg-blurple-600{--tw-bg-opacity: 1;background-color:rgb(81 91 239 / var(--tw-bg-opacity))}.bg-blurple-900{--tw-bg-opacity: 1;background-color:rgb(51 60 230 / var(--tw-bg-opacity))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-primary-400{--tw-bg-opacity: 1;background-color:rgb(67 70 77 / var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity: 1;background-color:rgb(44 47 51 / var(--tw-bg-opacity))}.bg-primary-600{--tw-bg-opacity: 1;background-color:rgb(35 38 42 / var(--tw-bg-opacity))}.bg-primary-800{--tw-bg-opacity: 1;background-color:rgb(15 16 20 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blurple-200{--tw-text-opacity: 1;color:rgb(126 143 252 / var(--tw-text-opacity))}.text-blurple-500{--tw-text-opacity: 1;color:rgb(88 101 242 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-pink-300{--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity))}.text-primary-100{--tw-text-opacity: 1;color:rgb(122 126 133 / var(--tw-text-opacity))}.text-primary-300{--tw-text-opacity: 1;color:rgb(85 88 91 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-primary-700{--tw-shadow-color: #191B1F;--tw-shadow: var(--tw-shadow-colored)}.shadow-primary-900{--tw-shadow-color: #050507;--tw-shadow: var(--tw-shadow-colored)}.hover\:bg-blurple-700:hover{--tw-bg-opacity: 1;background-color:rgb(72 81 236 / var(--tw-bg-opacity))}.hover\:bg-emerald-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.hover\:bg-primary-500:hover{--tw-bg-opacity: 1;background-color:rgb(44 47 51 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-offset-0:focus{--tw-ring-offset-width: 0px}@media (min-width: 1024px){.lg\:visible{visibility:visible}.lg\:mt-0{margin-top:0}.lg\:inline-block{display:inline-block}.lg\:flex{display:flex}.lg\:w-auto{width:auto}.lg\:flex-grow{flex-grow:1}.lg\:items-center{align-items:center}} diff --git a/_app/immutable/assets/_layout.1f96fccd.css b/_app/immutable/assets/_layout.1f96fccd.css new file mode 100644 index 0000000..6945fb3 --- /dev/null +++ b/_app/immutable/assets/_layout.1f96fccd.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.invisible{visibility:hidden}.m-4{margin:1rem}.m-5{margin:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-4{margin-top:1rem}.mt-9{margin-top:2.25rem}.block{display:block}.flex{display:flex}.table{display:table}.contents{display:contents}.h-11{height:2.75rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-max{height:-moz-max-content;height:max-content}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-11{width:2.75rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-primary-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(122 126 133 / var(--tw-divide-opacity))}.divide-primary-600>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(35 38 42 / var(--tw-divide-opacity))}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.border{border-width:1px}.border-primary-700{--tw-border-opacity: 1;border-color:rgb(25 27 31 / var(--tw-border-opacity))}.bg-blurple-500{--tw-bg-opacity: 1;background-color:rgb(88 101 242 / var(--tw-bg-opacity))}.bg-blurple-600{--tw-bg-opacity: 1;background-color:rgb(81 91 239 / var(--tw-bg-opacity))}.bg-blurple-900{--tw-bg-opacity: 1;background-color:rgb(51 60 230 / var(--tw-bg-opacity))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity))}.bg-primary-400{--tw-bg-opacity: 1;background-color:rgb(67 70 77 / var(--tw-bg-opacity))}.bg-primary-500{--tw-bg-opacity: 1;background-color:rgb(44 47 51 / var(--tw-bg-opacity))}.bg-primary-600{--tw-bg-opacity: 1;background-color:rgb(35 38 42 / var(--tw-bg-opacity))}.bg-primary-800{--tw-bg-opacity: 1;background-color:rgb(15 16 20 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-left{text-align:left}.text-center{text-align:center}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-wider{letter-spacing:.05em}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity))}.text-blurple-200{--tw-text-opacity: 1;color:rgb(126 143 252 / var(--tw-text-opacity))}.text-blurple-500{--tw-text-opacity: 1;color:rgb(88 101 242 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-pink-300{--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity))}.text-primary-100{--tw-text-opacity: 1;color:rgb(122 126 133 / var(--tw-text-opacity))}.text-primary-300{--tw-text-opacity: 1;color:rgb(85 88 91 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-stone-400{--tw-text-opacity: 1;color:rgb(168 162 158 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-primary-700{--tw-shadow-color: #191B1F;--tw-shadow: var(--tw-shadow-colored)}.shadow-primary-900{--tw-shadow-color: #050507;--tw-shadow: var(--tw-shadow-colored)}.hover\:bg-blurple-700:hover{--tw-bg-opacity: 1;background-color:rgb(72 81 236 / var(--tw-bg-opacity))}.hover\:bg-emerald-600:hover{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity))}.hover\:bg-primary-500:hover{--tw-bg-opacity: 1;background-color:rgb(44 47 51 / var(--tw-bg-opacity))}.hover\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-offset-0:focus{--tw-ring-offset-width: 0px}@media (min-width: 1024px){.lg\:visible{visibility:visible}.lg\:mt-0{margin-top:0}.lg\:inline-block{display:inline-block}.lg\:flex{display:flex}.lg\:w-auto{width:auto}.lg\:flex-grow{flex-grow:1}.lg\:items-center{align-items:center}} diff --git a/_app/immutable/chunks/api.3d2a0698.js b/_app/immutable/chunks/api.3d2a0698.js new file mode 100644 index 0000000..1119660 --- /dev/null +++ b/_app/immutable/chunks/api.3d2a0698.js @@ -0,0 +1,3 @@ +import{k as ke}from"./scheduler.5c7fdb1c.js";import{a as je}from"./localStore.3ee7e119.js";function he(e,t){return function(){return e.apply(t,arguments)}}const{toString:He}=Object.prototype,{getPrototypeOf:Z}=Object,I=(e=>t=>{const n=He.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>I(t)===e),M=e=>t=>typeof t===e,{isArray:P}=Array,F=M("undefined");function Ie(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const me=O("ArrayBuffer");function Me(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&me(e.buffer),t}const ze=M("string"),b=M("function"),ye=M("number"),z=e=>e!==null&&typeof e=="object",qe=e=>e===!0||e===!1,L=e=>{if(I(e)!=="object")return!1;const t=Z(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Je=O("Date"),$e=O("File"),Ve=O("Blob"),We=O("FileList"),Ke=e=>z(e)&&b(e.pipe),Ge=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||b(e.append)&&((t=I(e))==="formdata"||t==="object"&&b(e.toString)&&e.toString()==="[object FormData]"))},Xe=O("URLSearchParams"),ve=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),P(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ee=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),be=e=>!F(e)&&e!==Ee;function G(){const{caseless:e}=be(this)&&this||{},t={},n=(r,s)=>{const o=e&&we(t,s)||s;L(t[o])&&L(r)?t[o]=G(t[o],r):L(r)?t[o]=G({},r):P(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(_(t,(s,o)=>{n&&b(s)?e[o]=he(s,n):e[o]=s},{allOwnKeys:r}),e),Ze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ye=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},et=(e,t,n,r)=>{let s,o,i;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&Z(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},nt=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!ye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Z(Uint8Array)),st=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},ot=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},it=O("HTMLFormElement"),at=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ct=O("RegExp"),Se=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},ut=e=>{Se(e,(t,n)=>{if(b(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(b(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return P(e)?r(e):r(String(e).split(t)),n},ft=()=>{},dt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),$="abcdefghijklmnopqrstuvwxyz",oe="0123456789",Re={DIGIT:oe,ALPHA:$,ALPHA_DIGIT:$+$.toUpperCase()+oe},pt=(e=16,t=Re.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ht(e){return!!(e&&b(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mt=e=>{const t=new Array(10),n=(r,s)=>{if(z(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=P(r)?[]:{};return _(r,(i,u)=>{const d=n(i,s+1);!F(d)&&(o[u]=d)}),t[s]=void 0,o}}return r};return n(e,0)},yt=O("AsyncFunction"),wt=e=>e&&(z(e)||b(e))&&b(e.then)&&b(e.catch),a={isArray:P,isArrayBuffer:me,isBuffer:Ie,isFormData:Ge,isArrayBufferView:Me,isString:ze,isNumber:ye,isBoolean:qe,isObject:z,isPlainObject:L,isUndefined:F,isDate:Je,isFile:$e,isBlob:Ve,isRegExp:ct,isFunction:b,isStream:Ke,isURLSearchParams:Xe,isTypedArray:rt,isFileList:We,forEach:_,merge:G,extend:Qe,trim:ve,stripBOM:Ze,inherits:Ye,toFlatObject:et,kindOf:I,kindOfTest:O,endsWith:tt,toArray:nt,forEachEntry:st,matchAll:ot,isHTMLForm:it,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:Se,freezeMethods:ut,toObjectSet:lt,toCamelCase:at,noop:ft,toFiniteNumber:dt,findKey:we,global:Ee,isContextDefined:be,ALPHABET:Re,generateString:pt,isSpecCompliantForm:ht,toJSONObject:mt,isAsyncFn:yt,isThenable:wt};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oe=m.prototype,Ae={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ae[e]={value:e}});Object.defineProperties(m,Ae);Object.defineProperty(Oe,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Oe);return a.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Et=null;function X(e){return a.isPlainObject(e)||a.isArray(e)}function Te(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ie(e,t,n){return e?e.concat(t).map(function(s,o){return s=Te(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function bt(e){return a.isArray(e)&&!e.some(X)}const St=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function q(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,A){return!a.isUndefined(A[h])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!d&&a.isBlob(f))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function l(f,h,A){let S=f;if(f&&!A&&typeof f=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&bt(f)||(a.isFileList(f)||a.endsWith(h,"[]"))&&(S=a.toArray(f)))return h=Te(h),S.forEach(function(D,Ue){!(a.isUndefined(D)||D===null)&&t.append(i===!0?ie([h],Ue,o):i===null?h:h+"[]",c(D))}),!1}return X(f)?!0:(t.append(ie(A,h,o),c(f)),!1)}const p=[],E=Object.assign(St,{defaultVisitor:l,convertValue:c,isVisitable:X});function y(f,h){if(!a.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(f),a.forEach(f,function(S,N){(!(a.isUndefined(S)||S===null)&&s.call(t,S,a.isString(N)?N.trim():N,h,E))===!0&&y(S,h?h.concat(N):[N])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Y(e,t){this._pairs=[],e&&q(e,this,t)}const ge=Y.prototype;ge.append=function(t,n){this._pairs.push([t,n])};ge.toString=function(t){const n=t?function(r){return t.call(this,r,ae)}:ae;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Rt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ne(e,t,n){if(!t)return e;const r=n&&n.encode||Rt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Y(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ot{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ce=Ot,xe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},At=typeof URLSearchParams<"u"?URLSearchParams:Y,Tt=typeof FormData<"u"?FormData:null,gt=typeof Blob<"u"?Blob:null,Nt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),xt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),R={isBrowser:!0,classes:{URLSearchParams:At,FormData:Tt,Blob:gt},isStandardBrowserEnv:Nt,isStandardBrowserWebWorkerEnv:xt,protocols:["http","https","file","blob","url","data"]};function Pt(e,t){return q(e,new R.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return R.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ct(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ft(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=Ft(s[i])),!u)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Ct(r),s,n,0)}),n}return null}function _t(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ee={transitional:xe,adapter:R.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Pe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Pt(t,this.formSerializer).toString();if((u=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return q(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),_t(t)):t}],transformResponse:[function(t){const n=this.transitional||ee.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?m.from(u,m.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:R.classes.FormData,Blob:R.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ee.headers[e]={}});const te=ee,Bt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Dt=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Bt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ue=Symbol("internals");function C(e){return e&&String(e).trim().toLowerCase()}function U(e){return e===!1||e==null?e:a.isArray(e)?e.map(U):String(e)}function Lt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ut=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function V(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function kt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jt(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class J{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(u,d,c){const l=C(d);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(s,l);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||d]=U(u))}const i=(u,d)=>a.forEach(u,(c,l)=>o(c,l,d));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!Ut(t)?i(Dt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=C(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Lt(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=C(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||V(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=C(i),i){const u=a.findKey(r,i);u&&(!n||V(r,r[u],u,n))&&(delete r[u],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||V(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=U(s),delete n[o];return}const u=t?kt(o):String(o).trim();u!==o&&delete n[o],n[u]=U(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ue]=this[ue]={accessors:{}}).accessors,s=this.prototype;function o(i){const u=C(i);r[u]||(jt(s,i),r[u]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(J.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(J);const T=J;function W(e,t){const n=this||te,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(u){o=u.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ce(e){return!!(e&&e.__CANCEL__)}function B(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,m,{__CANCEL__:!0});function Ht(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const It=R.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,u){const d=[];d.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),a.isString(o)&&d.push("path="+o),a.isString(i)&&d.push("domain="+i),u===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Mt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Fe(e,t){return e&&!Mt(t)?zt(e,t):t}const qt=R.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const u=a.isString(i)?s(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function Jt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $t(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),l=r[o];i||(i=c),n[s]=d,r[s]=c;let p=o,E=0;for(;p!==s;)E+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,u=o-n,d=r(u),c=o<=i;n=o;const l={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:d||void 0,estimated:d&&i&&c?(i-o)/d:void 0,event:s};l[t?"download":"upload"]=!0,e(l)}}const Vt=typeof XMLHttpRequest<"u",Wt=Vt&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize(),i=e.responseType;let u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}a.isFormData(s)&&(R.isStandardBrowserEnv||R.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+f))}const l=Fe(e.baseURL,e.url);c.open(e.method.toUpperCase(),Ne(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const y=T.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:e,request:c};Ht(function(S){n(S),d()},function(S){r(S),d()},h),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(r(new m("Request aborted",m.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||xe;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),r(new m(f,h.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,c)),c=null},R.isStandardBrowserEnv){const y=(e.withCredentials||qt(l))&&e.xsrfCookieName&&It.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&a.forEach(o.toJSON(),function(f,h){c.setRequestHeader(h,f)}),a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",le(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",le(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{c&&(r(!y||y.type?new B(null,e,c):y),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const E=Jt(l);if(E&&R.protocols.indexOf(E)===-1){r(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,e));return}c.send(s||null)})},k={http:Et,xhr:Wt};a.forEach(k,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const _e={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;se instanceof T?e.toJSON():e;function x(e,t){t=t||{};const n={};function r(c,l,p){return a.isPlainObject(c)&&a.isPlainObject(l)?a.merge.call({caseless:p},c,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(c,l,p){if(a.isUndefined(l)){if(!a.isUndefined(c))return r(void 0,c,p)}else return r(c,l,p)}function o(c,l){if(!a.isUndefined(l))return r(void 0,l)}function i(c,l){if(a.isUndefined(l)){if(!a.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function u(c,l,p){if(p in t)return r(c,l);if(p in e)return r(void 0,c)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(c,l)=>s(de(c),de(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const p=d[l]||s,E=p(e[l],t[l],l);a.isUndefined(E)&&p!==u||(n[l]=E)}),n}const Be="1.5.0",ne={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ne[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pe={};ne.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Be+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!pe[i]&&(pe[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function Kt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const u=e[o],d=u===void 0||i(u,o,e);if(d!==!0)throw new m("option "+o+" must be "+d,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const v={assertOptions:Kt,validators:ne},g=v.validators;class H{constructor(t){this.defaults=t,this.interceptors={request:new ce,response:new ce}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=x(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&v.assertOptions(r,{silentJSONParsing:g.transitional(g.boolean),forcedJSONParsing:g.transitional(g.boolean),clarifyTimeoutError:g.transitional(g.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:v.assertOptions(s,{encode:g.function,serialize:g.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=T.concat(i,o);const u=[];let d=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(d=d&&h.synchronous,u.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let l,p=0,E;if(!d){const f=[fe.bind(this),void 0];for(f.unshift.apply(f,u),f.push.apply(f,c),E=f.length,l=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new B(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new re(function(s){t=s}),cancel:t}}}const Gt=re;function Xt(e){return function(n){return e.apply(null,n)}}function vt(e){return a.isObject(e)&&e.isAxiosError===!0}const Q={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Q).forEach(([e,t])=>{Q[t]=e});const Qt=Q;function De(e){const t=new j(e),n=he(j.prototype.request,t);return a.extend(n,j.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return De(x(e,s))},n}const w=De(te);w.Axios=j;w.CanceledError=B;w.CancelToken=Gt;w.isCancel=Ce;w.VERSION=Be;w.toFormData=q;w.AxiosError=m;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Xt;w.isAxiosError=vt;w.mergeConfig=x;w.AxiosHeaders=T;w.formToJSON=e=>Pe(a.isHTMLForm(e)?new FormData(e):e);w.getAdapter=_e.getAdapter;w.HttpStatusCode=Qt;w.default=w;const Le=w;function en(e,t={}){const n=ke(je),r={...t==null?void 0:t.headers,Authorization:`Bearer ${n.accessToken}`};return t.responseType="json",t.headers=r,Le(`https://discord.com/api/v10/${e}`,t)}async function tn(e,t){const n=new URLSearchParams;return n.set("grant_type","client_credentials"),n.set("scope","guilds applications.commands.update"),(await Le.post("https://discord.com/api/oauth2/token",n,{auth:{username:e,password:t}})).data.access_token}export{en as f,tn as g}; diff --git a/_app/immutable/chunks/constants.6d5eb8fd.js b/_app/immutable/chunks/constants.6d5eb8fd.js new file mode 100644 index 0000000..09c49b5 --- /dev/null +++ b/_app/immutable/chunks/constants.6d5eb8fd.js @@ -0,0 +1 @@ +var e=(t=>(t.DiscordInvite="https://discord.gg/ynwckXS9T2",t.Github="https://discord.gg/ynwckXS9T2",t))(e||{});const r=/^[0-9]{18}$/;function s(t){switch(t){case 1:return"Chat Input";case 2:return"User";case 3:return"Message";default:return"Unknown"}}export{e as U,r as d,s as t}; diff --git a/_app/immutable/chunks/context.981da52b.js b/_app/immutable/chunks/context.981da52b.js new file mode 100644 index 0000000..a60e238 --- /dev/null +++ b/_app/immutable/chunks/context.981da52b.js @@ -0,0 +1 @@ +import{l as _,m as $}from"./scheduler.5c7fdb1c.js";class P{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const g=typeof window>"u"||"Deno"in window;function W(){}function X(e,t){return typeof e=="function"?e(t):e}function Y(e){return typeof e=="number"&&e>=0&&e!==1/0}function Z(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ee(e,t,n){return b(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function te(e,t,n){return b(e)?[{...t,queryKey:e},n]:[e||{},t]}function ne(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:u,queryKey:l,stale:a}=e;if(b(l)){if(r){if(t.queryHash!==z(l,t.options))return!1}else if(!x(t.queryKey,l))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof s<"u"&&s!==t.state.fetchStatus||u&&!u(t))}function re(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:u}=e;if(b(u)){if(!t.options.mutationKey)return!1;if(n){if(E(t.options.mutationKey)!==E(u))return!1}else if(!x(t.options.mutationKey,u))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function z(e,t){return((t==null?void 0:t.queryKeyHashFn)||E)(e)}function E(e){return JSON.stringify(e,(t,n)=>O(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function x(e,t){return A(e,t)}function A(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!A(e[n],t[n])):!1}function M(e,t){if(e===t)return e;const n=C(e)&&C(t);if(n||O(e)&&O(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),u=s.length,l=n?[]:{};let a=0;for(let f=0;f"u")return!0;const n=t.prototype;return!(!j(n)||!n.hasOwnProperty("isPrototypeOf"))}function j(e){return Object.prototype.toString.call(e)==="[object Object]"}function b(e){return Array.isArray(e)}function q(e){return new Promise(t=>{setTimeout(t,e)})}function L(e){q(0).then(e)}function ie(){if(typeof AbortController=="function")return new AbortController}function oe(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?M(e,t):t}class B extends P{constructor(){super(),this.setup=t=>{if(!g&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const I=new B,K=["online","offline"];class H extends P{constructor(){super(),this.setup=t=>{if(!g&&window.addEventListener){const n=()=>t();return K.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{K.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Q=new H;function T(e){return Math.min(1e3*2**e,3e4)}function V(e){return(e??"online")==="online"?Q.isOnline():!0}class D{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function ue(e){return e instanceof D}function le(e){let t=!1,n=0,r=!1,s,u,l;const a=new Promise((o,c)=>{u=o,l=c}),f=o=>{r||(v(new D(o)),e.abort==null||e.abort())},y=()=>{t=!0},i=()=>{t=!1},h=()=>!I.isFocused()||e.networkMode!=="always"&&!Q.isOnline(),N=o=>{r||(r=!0,e.onSuccess==null||e.onSuccess(o),s==null||s(),u(o))},v=o=>{r||(r=!0,e.onError==null||e.onError(o),s==null||s(),l(o))},F=()=>new Promise(o=>{s=c=>{const d=r||!h();return d&&o(c),d},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),w=()=>{if(r)return;let o;try{o=e.fn()}catch(c){o=Promise.reject(c)}Promise.resolve(o).then(N).catch(c=>{var d,S;if(r)return;const p=(d=e.retry)!=null?d:3,m=(S=e.retryDelay)!=null?S:T,k=typeof m=="function"?m(n,c):m,U=p===!0||typeof p=="number"&&n{if(h())return F()}).then(()=>{t?v(c):w()})})};return V(e.networkMode)?w():F().then(w),{promise:a,cancel:f,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:y,continueRetry:i}}function J(){let e=[],t=0,n=i=>{i()},r=i=>{i()};const s=i=>{let h;t++;try{h=i()}finally{t--,t||a()}return h},u=i=>{t?e.push(i):L(()=>{n(i)})},l=i=>(...h)=>{u(()=>{i(...h)})},a=()=>{const i=e;e=[],i.length&&L(()=>{r(()=>{i.forEach(h=>{n(h)})})})};return{batch:s,batchCalls:l,schedule:u,setNotifyFunction:i=>{n=i},setBatchNotifyFunction:i=>{r=i}}}const ce=J(),R="$$_queryClient",ae=()=>{const e=$(R);if(!e)throw new Error("No QueryClient was found in Svelte context. Did you forget to wrap your component with QueryClientProvider?");return e},fe=e=>{_(R,e)};export{P as S,g as a,ce as b,le as c,ue as d,V as e,re as f,ie as g,z as h,Y as i,I as j,ee as k,X as l,ne as m,W as n,Q as o,te as p,E as q,oe as r,x as s,Z as t,fe as u,se as v,ae as w}; diff --git a/_app/immutable/chunks/index.21959a4f.js b/_app/immutable/chunks/index.21959a4f.js new file mode 100644 index 0000000..ccdeac3 --- /dev/null +++ b/_app/immutable/chunks/index.21959a4f.js @@ -0,0 +1 @@ +var C=Object.defineProperty;var B=(e,t,n)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var p=(e,t,n)=>(B(e,typeof t!="symbol"?t+"":t,n),n);import{r as h,n as y,q as w,v as j,p as S,w as L,x as b,y as D,z as I,A as N,B as M,C as P,D as T}from"./scheduler.5c7fdb1c.js";let $=!1;function q(){$=!0}function z(){$=!1}function H(e,t,n,i){for(;e>1);n(l)<=i?e=l+1:t=l}return e}function O(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const r=[];for(let a=0;a0&&t[n[l]].claim_order<=a?l+1:H(1,l,_=>t[n[_]].claim_order,a))-1;i[r]=n[o]+1;const c=o+1;n[c]=r,l=Math.max(c,l)}const f=[],s=[];let u=t.length-1;for(let r=n[l]+1;r!=0;r=i[r-1]){for(f.push(t[r-1]);u>=r;u--)s.push(t[u]);u--}for(;u>=0;u--)s.push(t[u]);f.reverse(),s.sort((r,a)=>r.claim_order-a.claim_order);for(let r=0,a=0;r=f[a].claim_order;)a++;const o=ae.removeEventListener(t,n,i)}function ae(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function se(e){return e.dataset.svelteH}function G(e){return Array.from(e.childNodes)}function J(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function A(e,t,n,i,l=!1){J(e);const f=(()=>{for(let s=e.claim_info.last_index;s=0;s--){const u=e[s];if(t(u)){const r=n(u);return r===void 0?e.splice(s,1):e[s]=r,l?r===void 0&&e.claim_info.last_index--:e.claim_info.last_index=s,u}}return i()})();return f.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,f}function E(e,t,n,i){return A(e,l=>l.nodeName===t,l=>{const f=[];for(let s=0;sl.removeAttribute(s))},()=>i(t))}function le(e,t,n){return E(e,t,n,W)}function ue(e,t,n){return E(e,t,n,F)}function K(e,t){return A(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>x(t),!0)}function fe(e){return K(e," ")}function ce(e,t){t=""+t,e.data!==t&&(e.data=t)}function oe(e,t){e.value=t??""}function de(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function _e(e,t){return new e(t)}const m=new Set;let d;function me(){d={r:0,c:[],p:d}}function he(){d.r||h(d.c),d=d.p}function Q(e,t){e&&e.i&&(m.delete(e),e.i(t))}function $e(e,t,n,i){if(e&&e.o){if(m.has(e))return;m.add(e),d.c.push(()=>{m.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function pe(e,t,n){const i=e.$$.props[t];i!==void 0&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}function ye(e){e&&e.c()}function xe(e,t){e&&e.l(t)}function U(e,t,n){const{fragment:i,after_update:l}=e.$$;i&&i.m(t,n),b(()=>{const f=e.$$.on_mount.map(M).filter(S);e.$$.on_destroy?e.$$.on_destroy.push(...f):h(f),e.$$.on_mount=[]}),l.forEach(b)}function X(e,t){const n=e.$$;n.fragment!==null&&(D(n.after_update),h(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Y(e,t){e.$$.dirty[0]===-1&&(P.push(e),T(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const v=g.length?g[0]:_;return a.ctx&&l(a.ctx[c],a.ctx[c]=v)&&(!a.skip_bound&&a.bound[c]&&a.bound[c](v),o&&Y(e,c)),_}):[],a.update(),o=!0,h(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){q();const c=G(t.target);a.fragment&&a.fragment.l(c),c.forEach(V)}else a.fragment&&a.fragment.c();t.intro&&Q(e.$$.fragment),U(e,t.target,t.anchor),z(),j()}N(r)}class ve{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){X(this,1),this.$destroy=y}$on(t,n){if(!S(n))return y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const l=i.indexOf(n);l!==-1&&i.splice(l,1)}}$set(t){this.$$set&&!L(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Z="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Z);export{ue as A,pe as B,oe as C,re as D,ve as S,te as a,he as b,fe as c,Q as d,ie as e,V as f,W as g,le as h,ge as i,G as j,ae as k,de as l,x as m,K as n,ce as o,me as p,_e as q,ye as r,ne as s,$e as t,xe as u,U as v,X as w,se as x,R as y,F as z}; diff --git a/_app/immutable/chunks/index.403b996f.js b/_app/immutable/chunks/index.403b996f.js new file mode 100644 index 0000000..fb71bb2 --- /dev/null +++ b/_app/immutable/chunks/index.403b996f.js @@ -0,0 +1 @@ +import{n as f,s as w,h as m,r as q,p as x}from"./scheduler.5c7fdb1c.js";const a=[];function z(e,i){return{subscribe:A(e,i).subscribe}}function A(e,i=f){let n;const r=new Set;function u(t){if(w(e,t)&&(e=t,n)){const o=!a.length;for(const s of r)s[1](),a.push(s,e);if(o){for(let s=0;s{r.delete(s),r.size===0&&n&&(n(),n=null)}}return{set:u,update:l,subscribe:b}}function E(e,i,n){const r=!Array.isArray(e),u=r?[e]:e;if(!u.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=i.length<2;return z(n,(b,t)=>{let o=!1;const s=[];let p=0,d=f;const h=()=>{if(p)return;d();const c=i(r?s[0]:s,b,t);l?b(c):d=x(c)?c:f},y=u.map((c,g)=>m(c,_=>{s[g]=_,p&=~(1<{p|=1<{const s=o==null?void 0:o.getItem(e);if(s?t(i.parse(s)):c(e,g),f){const n=u=>{u.key===e&&t(u.newValue?i.parse(u.newValue):null)};return window.addEventListener("storage",n),()=>window.removeEventListener("storage",n)}}),{subscribe:l,set:m}=a;d[e]={set(t){c(e,t),m(t)},update(t){return a.update(s=>{const n=t(s);return c(e,n),n})},subscribe:l}}return d[e]}const I=p("manager.authentication",{accessToken:"",clientId:"",clientSecret:""}),h=p("manager.application",{username:"",id:"",discriminator:""});export{I as a,h as b}; diff --git a/_app/immutable/chunks/navigation.95f2663e.js b/_app/immutable/chunks/navigation.95f2663e.js new file mode 100644 index 0000000..c5c0294 --- /dev/null +++ b/_app/immutable/chunks/navigation.95f2663e.js @@ -0,0 +1 @@ +import{h as o}from"./singletons.e4241f1e.js";const e=o("goto");export{e as g}; diff --git a/_app/immutable/chunks/paths.6a5b220f.js b/_app/immutable/chunks/paths.6a5b220f.js new file mode 100644 index 0000000..54043b8 --- /dev/null +++ b/_app/immutable/chunks/paths.6a5b220f.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_4pv2w)==null?void 0:s.base)??"/discord-slash-manager";var a;const t=((a=globalThis.__sveltekit_4pv2w)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/_app/immutable/chunks/scheduler.5c7fdb1c.js b/_app/immutable/chunks/scheduler.5c7fdb1c.js new file mode 100644 index 0000000..65da44d --- /dev/null +++ b/_app/immutable/chunks/scheduler.5c7fdb1c.js @@ -0,0 +1 @@ +function w(){}function j(t,n){for(const e in n)t[e]=n[e];return t}function v(t){return t()}function D(){return Object.create(null)}function E(t){t.forEach(v)}function M(t){return typeof t=="function"}function A(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let f;function B(t,n){return t===n?!0:(f||(f=document.createElement("a")),f.href=n,t===f.href)}function F(t){return Object.keys(t).length===0}function m(t,...n){if(t==null){for(const r of n)r(void 0);return w}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function P(t){let n;return m(t,e=>n=e)(),n}function S(t,n,e){t.$$.on_destroy.push(m(n,e))}function U(t,n,e,r){if(t){const o=x(t,n,e,r);return t[0](o)}}function x(t,n,e,r){return t[1]&&r?j(e.ctx.slice(),t[1](r(n))):e.ctx}function G(t,n,e,r){if(t[2]&&r){const o=t[2](r(e));if(n.dirty===void 0)return o;if(typeof o=="object"){const i=[],h=Math.max(n.dirty.length,o.length);for(let s=0;s32){const n=[],e=t.ctx.length/32;for(let r=0;rt.indexOf(r)===-1?n.push(r):e.push(r)),e.forEach(r=>r()),c=n}export{d as A,v as B,a as C,q as D,K as a,y as b,S as c,U as d,G as e,L as f,I as g,m as h,B as i,T as j,P as k,N as l,Q as m,w as n,J as o,M as p,D as q,E as r,A as s,R as t,H as u,O as v,F as w,C as x,V as y,_ as z}; diff --git a/_app/immutable/chunks/singletons.e4241f1e.js b/_app/immutable/chunks/singletons.e4241f1e.js new file mode 100644 index 0000000..47616db --- /dev/null +++ b/_app/immutable/chunks/singletons.e4241f1e.js @@ -0,0 +1 @@ +import{w as u}from"./index.403b996f.js";import{a as b}from"./paths.6a5b220f.js";const v="1694189155446",A="sveltekit:snapshot",R="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function _(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function T(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=_(e)}}function x(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!s||k(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:s,download:l}}function O(e){let t=null,n=null,s=null,r=null,l=null,a=null,o=e;for(;o&&o!==document.documentElement;)s===null&&(s=c(o,"preload-code")),r===null&&(r=c(o,"preload-data")),t===null&&(t=c(o,"keepfocus")),n===null&&(n=c(o,"noscroll")),l===null&&(l=c(o,"reload")),a===null&&(a=c(o,"replacestate")),o=_(o);function i(g){switch(g){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[s??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function s(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let o;return t.subscribe(i=>{(o===void 0||n&&i!==o)&&a(o=i)})}return{notify:s,set:r,subscribe:l}}function m(){const{set:e,subscribe:t}=u(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==v;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:s}}function k(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let h;function U(e){h=e.client}function L(e){return(...t)=>h[e](...t)}const N={url:p({}),page:p({}),navigating:u(null),updated:m()};export{y as I,f as P,R as S,A as a,x as b,O as c,N as d,U as e,T as f,I as g,L as h,k as i,S as s}; diff --git a/_app/immutable/chunks/stores.e45304b0.js b/_app/immutable/chunks/stores.e45304b0.js new file mode 100644 index 0000000..6b3ed1d --- /dev/null +++ b/_app/immutable/chunks/stores.e45304b0.js @@ -0,0 +1 @@ +import{d as e}from"./singletons.e4241f1e.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p}; diff --git a/_app/immutable/entry/app.9613660e.js b/_app/immutable/entry/app.9613660e.js new file mode 100644 index 0000000..df520ce --- /dev/null +++ b/_app/immutable/entry/app.9613660e.js @@ -0,0 +1 @@ +import{s as q,a as B,o as U,t as j,b as D}from"../chunks/scheduler.5c7fdb1c.js";import{S as W,i as z,s as F,e as d,c as G,a as w,t as h,b as L,d as p,f as g,g as H,h as J,j as K,k as I,l as m,m as M,n as Q,o as X,p as P,q as E,r as v,u as O,v as R,w as y}from"../chunks/index.21959a4f.js";const Y="modulepreload",Z=function(o,e){return new URL(o,e).href},T={},k=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Z(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let a=s.length-1;a>=0;a--){const u=s[a];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const c=document.createElement("link");if(c.rel=t?"stylesheet":Y,t||(c.as="script",c.crossOrigin=""),c.href=f,document.head.appendChild(c),t)return new Promise((a,u)=>{c.addEventListener("load",a),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,f(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[12](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[12](null),e&&y(e,t)}}}function x(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,f(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[11](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[11](null),e&&y(e,t)}}}function ee(o){let e,n,i;var s=o[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,f(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[10](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[10](null),e&&y(e,t)}}}function V(o){let e,n=o[6]&&A(o);return{c(){e=H("div"),n&&n.c(),this.h()},l(i){e=J(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=K(e);n&&n.l(s),s.forEach(g),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=A(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function A(o){let e;return{c(){e=M(o[7])},l(n){e=Q(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&X(e,n[7])},d(n){n&&g(e)}}}function te(o){let e,n,i,s,f;const t=[x,$],r=[];function l(a,u){return a[1][1]?0:1}e=l(o),n=r[e]=t[e](o);let c=o[5]&&V(o);return{c(){n.c(),i=F(),c&&c.c(),s=d()},l(a){n.l(a),i=G(a),c&&c.l(a),s=d()},m(a,u){r[e].m(a,u),w(a,i,u),c&&c.m(a,u),w(a,s,u),f=!0},p(a,[u]){let b=e;e=l(a),e===b?r[e].p(a,u):(P(),h(r[b],1,1,()=>{r[b]=null}),L(),n=r[e],n?n.p(a,u):(n=r[e]=t[e](a),n.c()),p(n,1),n.m(i.parentNode,i)),a[5]?c?c.p(a,u):(c=V(a),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(a){f||(p(n),f=!0)},o(a){h(n),f=!1},d(a){a&&(g(i),g(s)),r[e].d(a),c&&c.d(a)}}}function ne(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:c=null}=e;B(i.page.notify);let a=!1,u=!1,b=null;U(()=>{const _=i.page.subscribe(()=>{a&&(n(6,u=!0),j().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),_});function N(_){D[_?"unshift":"push"](()=>{t[1]=_,n(0,t)})}function S(_){D[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}function C(_){D[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}return o.$$set=_=>{"stores"in _&&n(8,i=_.stores),"page"in _&&n(9,s=_.page),"constructors"in _&&n(1,f=_.constructors),"components"in _&&n(0,t=_.components),"form"in _&&n(2,r=_.form),"data_0"in _&&n(3,l=_.data_0),"data_1"in _&&n(4,c=_.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,f,r,l,c,a,u,b,i,s,N,S,C]}class oe extends W{constructor(e){super(),z(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>k(()=>import("../nodes/0.d5facf68.js"),["../nodes/0.d5facf68.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/paths.6a5b220f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/context.981da52b.js","../assets/0.1f96fccd.css"],import.meta.url),()=>k(()=>import("../nodes/1.720715e7.js"),["../nodes/1.720715e7.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/stores.e45304b0.js","../chunks/singletons.e4241f1e.js","../chunks/index.403b996f.js","../chunks/paths.6a5b220f.js"],import.meta.url),()=>k(()=>import("../nodes/2.545a67bb.js"),["../nodes/2.545a67bb.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/paths.6a5b220f.js","../chunks/constants.6d5eb8fd.js"],import.meta.url),()=>k(()=>import("../nodes/3.036923c6.js"),["../nodes/3.036923c6.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/stores.e45304b0.js","../chunks/singletons.e4241f1e.js","../chunks/paths.6a5b220f.js","../chunks/api.3d2a0698.js","../chunks/constants.6d5eb8fd.js","../chunks/context.981da52b.js","../chunks/navigation.95f2663e.js"],import.meta.url),()=>k(()=>import("../nodes/4.53a37fda.js"),["../nodes/4.53a37fda.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/navigation.95f2663e.js","../chunks/singletons.e4241f1e.js","../chunks/paths.6a5b220f.js","../chunks/api.3d2a0698.js","../chunks/constants.6d5eb8fd.js"],import.meta.url),()=>k(()=>import("../nodes/5.0fab7787.js"),["../nodes/5.0fab7787.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/navigation.95f2663e.js","../chunks/singletons.e4241f1e.js","../chunks/paths.6a5b220f.js"],import.meta.url)],le=[],fe={"/":[2],"/dashboard":[3],"/login":[4],"/logout":[5]},ce={handleError:({error:o})=>{console.error(o)}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; diff --git a/_app/immutable/entry/start.1a4b7076.js b/_app/immutable/entry/start.1a4b7076.js new file mode 100644 index 0000000..257149d --- /dev/null +++ b/_app/immutable/entry/start.1a4b7076.js @@ -0,0 +1,3 @@ +import{o as we,t as ye}from"../chunks/scheduler.5c7fdb1c.js";import{S as Ge,a as Je,I as M,g as Ce,f as Me,b as _e,c as le,s as ee,i as ve,d as F,P as Ve,e as Xe}from"../chunks/singletons.e4241f1e.js";import{b as J}from"../chunks/paths.6a5b220f.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const u=new URL(t);for(const s of tt)Object.defineProperty(u,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(u),u}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const u of t)if(typeof u=="string"){let s=u.length;for(;s;)r=r*33^u.charCodeAt(--s)}else if(ArrayBuffer.isView(u)){const s=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ne.delete(ke(t)),fe(t,r));const ne=new Map;function st(t,r){const u=ke(t,r),s=document.querySelector(u);if(s!=null&&s.textContent){const{body:d,...f}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ne.set(u,{body:d,init:f,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,f))}return fe(t,r)}function ct(t,r,u){if(ne.size>0){const s=ke(t,u),d=ne.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(f)return r.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((w,p)=>{if(p%2){if(w.startsWith("x+"))return be(String.fromCharCode(parseInt(w.slice(2),16)));if(w.startsWith("u+"))return be(String.fromCharCode(...w.slice(2).split("-").map(U=>parseInt(U,16))));const g=lt.exec(w);if(!g)throw new Error(`Invalid param: ${w}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,D,x,k,N]=g;return r.push({name:k,matcher:N,optional:!!D,rest:!!x,chained:x?p===1&&E[0]==="":!1}),x?"(.*?)":D?"([^/]*)?":"([^/]+?)"}return be(w)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,u){const s={},d=t.slice(1);let f=0;for(let E=0;Ep).join("/"),f=0),w===void 0){l.rest&&(s[l.name]="");continue}if(!l.matcher||u[l.matcher](w)){s[l.name]=w;const p=r[E+1],g=d[E+1];p&&!p.rest&&p.optional&&g&&l.chained&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return s}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:u,matchers:s}){const d=new Set(r);return Object.entries(u).map(([l,[w,p,g]])=>{const{pattern:D,params:x}=ft(l),k={id:l,exec:N=>{const U=D.exec(N);if(U)return pt(U,x,s)},errors:[1,...g||[]].map(N=>t[N]),layouts:[0,...p||[]].map(E),leaf:f(w)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const w=l<0;return w&&(l=~l),[w,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const u=JSON.stringify(r);try{sessionStorage[t]=u}catch{}}const gt=-1,mt=-2,wt=-3,yt=-4,_t=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,s=Array(u.length);function d(f,E=!1){if(f===gt)return;if(f===wt)return NaN;if(f===yt)return 1/0;if(f===_t)return-1/0;if(f===vt)return-0;if(E)throw new Error("Invalid input");if(f in s)return s[f];const l=u[f];if(!l||typeof l!="object")s[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const w=l[0],p=r==null?void 0:r[w];if(p)return s[f]=p(d(l[1]));switch(w){case"Date":s[f]=new Date(l[1]);break;case"Set":const g=new Set;s[f]=g;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const u in t)if(typeof((r=t[u])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class te{constructor(r,u){this.status=r,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(r,u){this.status=r,this.location=u}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Ge)??{},Q=Ke(Je)??{};function Ee(t){K[t]=ee()}function It(t,r){var $e;const u=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const f=document.documentElement,E=[],l=[];let w=null;const p={before_navigate:[],on_navigate:[],after_navigate:[]};let g={branch:[],error:null,url:null},D=!1,x=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,T=($e=history.state)==null?void 0:$e[M];T||(T=Date.now(),history.replaceState({...history.state,[M]:T},"",location.href));const ue=K[T];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let q,ae,W;async function Re(){if(W=W||Promise.resolve(),await W,!W)return;W=null;const e=new URL(location.href),i=X(e,!0);w=null;const n=ae={},o=i&&await he(i);if(n===ae&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},[e.pathname],n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Ae(e){l.some(i=>i==null?void 0:i.snapshot)&&(Q[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ie(e){var i;(i=Q[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Le(){Ee(T),qe(Ge,K),Ae(T),qe(Je,Q)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},h,v){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:i?ee():null,keepfocus:o,redirect_chain:h,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Pe(e){return w={id:e.id,promise:he(e).then(i=>(i.type==="loaded"&&i.state.error&&(w=null),i))},w.promise}async function oe(...e){const n=u.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Oe(e){var o;g=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ie(T);const n={from:null,to:{params:g.params,route:{id:((o=g.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};p.after_navigate.forEach(a=>a(n)),x=!0}async function Y({url:e,params:i,branch:n,status:o,error:a,route:c,form:h}){let v="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(v=y.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(y=>y.node.component)}};h!==void 0&&(b.props.form=h);let _={},L=!q,A=0;for(let y=0;y(v.route=!0,m[O])}),params:new Proxy(o,{get:(m,O)=>(v.params.add(O),m[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(m,O){let j;m instanceof Request?(j=m.url,O={body:m.method==="GET"||m.method==="HEAD"?void 0:await m.blob(),cache:m.cache,credentials:m.credentials,headers:m.headers,integrity:m.integrity,keepalive:m.keepalive,method:m.method,mode:m.mode,redirect:m.redirect,referrer:m.referrer,referrerPolicy:m.referrerPolicy,signal:m.signal,...O}):j=m;const C=new URL(j,n);return P(C.href),C.origin===n.origin&&(j=C.href.slice(n.origin.length)),x?ct(j,C.href,O):st(j,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};h=await b.universal.load.call(null,y)??null,h=h?await kt(h):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:h,uses:v}:null,data:h??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Ue(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==g.params[c])return!0;for(const c of o.dependencies)if(E.some(h=>h(new URL(c))))return!0;return!1}function pe(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function he({id:e,invalidating:i,url:n,params:o,route:a}){if((w==null?void 0:w.id)===e)return w.promise;const{errors:c,layouts:h,leaf:v}=a,b=[...h,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let _=null;const L=g.url?e!==g.url.pathname+g.url.search:!1,A=g.route?a.id!==g.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const R=g.branch[I],$=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Ue(P,A,L,(G=R.server)==null?void 0:G.uses,o));return $&&(P=!0),$});if(y.some(Boolean)){try{_=await He(n,y)}catch(S){return ie({status:S instanceof te?S.status:500,error:await Z(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(_.type==="redirect")return _}const m=_==null?void 0:_.nodes;let O=!1;const j=b.map(async(S,I)=>{var ge;if(!S)return;const R=g.branch[I],$=m==null?void 0:m[I];if((!$||$.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Ue(O,A,L,(ge=R.universal)==null?void 0:ge.uses,o))return R;if(O=!0,($==null?void 0:$.type)==="error")throw $;return de({loader:S[1],url:n,params:o,route:a,parent:async()=>{var De;const Te={};for(let me=0;me{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:pe(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function X(e,i){if(ve(e,J))return;const n=se(e);for(const o of u){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function Ne({url:e,type:i,intent:n,delta:o}){let a=!1;const c=Be(g,n,e,i);o!==void 0&&(c.navigation.delta=o);const h={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||p.before_navigate.forEach(v=>v(h)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_chain:o,details:a,type:c,delta:h,nav_token:v={},accepted:b,blocked:_}){var j,C,S;const L=X(e,!1),A=Ne({url:e,type:c,delta:h,intent:L});if(!A){_();return}const P=T;b(),U=!0,x&&F.navigating.set(A.navigation),ae=v;let y=L&&await he(L);if(!y){if(ve(e,J))return await z(e);y=await je(e,{id:null},await Z(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,ae!==v)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o.length>10||o.includes(e.pathname))y=await ie({status:500,error:await Z(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},[...o,e.pathname],v),!1;else((j=y.props.page)==null?void 0:j.status)>=400&&await F.updated.check()&&await z(e);if(E.length=0,B=!1,N=!0,Ee(P),Ae(P),(C=y.props.page)!=null&&C.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=T+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=T+1;for(;Q[R]||K[R];)delete Q[R],delete K[R],R+=1}}if(w=null,x){g=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(p.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){p.after_navigate=p.after_navigate.filter($=>!I.includes($))};I.push(R),p.after_navigate.push(...I)}V.$set(y.props)}else Oe(y);const{activeElement:m}=document;if(await ye(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==m&&document.activeElement!==document.body;!n&&!O&&Se(),k=!0,y.props.page&&(q=y.props.page),U=!1,c==="popstate"&&Ie(T),A.fulfil(void 0),p.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!D?await ie({status:o,error:n,url:e,route:i}):await z(e)}function z(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const h=c.target;clearTimeout(e),e=setTimeout(()=>{o(h,2)},20)});function i(c){o(c.composedPath()[0],1)}f.addEventListener("mousedown",i),f.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const h of c)h.isIntersecting&&(oe(se(new URL(h.target.href))),n.unobserve(h.target))},{threshold:0});function o(c,h){const v=Me(c,f);if(!v)return;const{url:b,external:_,download:L}=_e(v,J);if(_||L)return;const A=le(v);if(!A.reload)if(h<=A.preload_data){const P=X(b,!1);P&&Pe(P)}else h<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of f.querySelectorAll("a")){const{url:h,external:v,download:b}=_e(c,J);if(v||b)continue;const _=le(c);_.reload||(_.preload_code===Ve.viewport&&n.observe(c),_.preload_code===Ve.eager&&oe(se(h)))}}p.after_navigate.push(a),a()}function Z(e,i){return e instanceof te?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{we(()=>(p.after_navigate.push(e),()=>{const i=p.after_navigate.indexOf(e);p.after_navigate.splice(i,1)}))},before_navigate:e=>{we(()=>(p.before_navigate.push(e),()=>{const i=p.before_navigate.indexOf(e);p.before_navigate.splice(i,1)}))},on_navigate:e=>{we(()=>(p.on_navigate.push(e),()=>{const i=p.on_navigate.indexOf(e);p.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!x)&&(k=!1)},goto:(e,i={})=>re(e,i,[]),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return Re()},invalidate_all:()=>(B=!0,Re()),preload_data:async e=>{const i=new URL(e,Ce(document)),n=X(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Pe(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=g;if(!o)return;const a=await xe(g.branch.length,n,o.errors);if(a){const c=await Y({url:i,params:g.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});g=c.state,V.$set(c.props),ye().then(Se)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await ye(),V.$set({form:e.data}),e.type==="success"&&Se())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Le(),!U){const a=Be(g,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};p.before_navigate.forEach(h=>h(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(i=navigator.connection)!=null&&i.saveData||Ye(),f.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Me(n.composedPath()[0],f);if(!o)return;const{url:a,external:c,target:h,download:v}=_e(o,J);if(!a)return;if(h==="_parent"||h==="_top"){if(window.parent!==window)return}else if(h&&h!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){Ne({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(g.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,Ee(T),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?ee():null,keepfocus:b.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const h=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ve(h,J))return;const v=n.target,{keep_focus:b,noscroll:_,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),h.search=new URLSearchParams(P).toString(),ce({url:h,scroll:_?ee():null,keepfocus:b??!1,redirect_chain:[],details:{state:{},replaceState:A??h.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if((o=n.state)!=null&&o[M]){if(n.state[M]===T)return;const a=K[n.state[M]];if(g.url.href.split("#")[0]===location.href.split("#")[0]){K[T]=ee(),T=n.state[M],scrollTo(a.x,a.y);return}const c=n.state[M]-T;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=n.state[M]},blocked:()=>{history.go(-c)},type:"popstate",delta:c})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++T},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){g.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:h})=>{D=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=X(v,!1)||{});let b;try{const _=n.map(async(P,y)=>{const m=c[y];return m!=null&&m.uses&&(m.uses=We(m.uses)),de({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let j=0;jP===a.id);if(A){const P=A.layouts;for(let y=0;yd?"1":"0").join(""));const s=await fe(u.href);if(!s.ok)throw new te(s.status,await s.json());return new Promise(async d=>{var g;const f=new Map,E=s.body.getReader(),l=new TextDecoder;function w(D){return bt(D,{Promise:x=>new Promise((k,N)=>{f.set(x,{fulfil:k,reject:N})})})}let p="";for(;;){const{done:D,value:x}=await E.read();if(D&&!p)break;for(p+=!x&&p?` +`:l.decode(x);;){const k=p.indexOf(` +`);if(k===-1)break;const N=JSON.parse(p.slice(0,k));if(p=p.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(g=N.nodes)==null||g.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=We(U.uses),U.data=w(U.data))}),d(N);else if(N.type==="chunk"){const{id:U,data:H,error:B}=N,V=f.get(U);f.delete(U),B?V.reject(w(B)):V.fulfil(w(H))}}}})}function We(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Se(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,u=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),u!==null?r.setAttribute("tabindex",u):r.removeAttribute("tabindex");const s=getSelection();if(s&&s.type!=="None"){const d=[];for(let f=0;f{if(s.rangeCount===d.length){for(let f=0;f{d=g,f=D});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((w=t.route)==null?void 0:w.id)??null},url:t.url},to:u&&{params:(r==null?void 0:r.params)??null,route:{id:((p=r==null?void 0:r.route)==null?void 0:p.id)??null},url:u},willUnload:!r,type:s,complete:E},fulfil:d,reject:f}}async function Ut(t,r,u){const s=It(t,r);Xe({client:s}),u?await s._hydrate(u):s.goto(location.href,{replaceState:!0}),s._start_router()}export{Ut as start}; diff --git a/_app/immutable/nodes/0.d5facf68.js b/_app/immutable/nodes/0.d5facf68.js new file mode 100644 index 0000000..adde07d --- /dev/null +++ b/_app/immutable/nodes/0.d5facf68.js @@ -0,0 +1 @@ +import{s as z,n as G,c as Y,d as ue,u as oe,g as le,e as he,o as Pe,f as Oe}from"../chunks/scheduler.5c7fdb1c.js";import{S as W,i as J,g as x,s as N,h as Q,j as $,x as B,c as V,f as M,k as F,a as I,y as D,m as Z,n as ee,o as _e,d as E,t as k,r as ce,u as de,v as fe,w as pe}from"../chunks/index.21959a4f.js";import{b as T}from"../chunks/paths.6a5b220f.js";import{a as Fe,b as De}from"../chunks/localStore.3ee7e119.js";import{i as Me,a as Se,r as we,n as C,t as xe,g as Qe,c as me,b as g,d as j,e as ye,S as ve,h as ge,p as w,m as te,f as se,j as ie,o as re,k as R,l as Ae,q as U,s as ae,u as $e}from"../chunks/context.981da52b.js";const Te=!0,nt=Object.freeze(Object.defineProperty({__proto__:null,prerender:Te},Symbol.toStringTag,{value:"Module"}));function Re(n){let e,t="Login";return{c(){e=x("a"),e.textContent=t,this.h()},l(s){e=Q(s,"A",{href:!0,class:!0,"data-svelte-h":!0}),B(e)!=="svelte-mr433o"&&(e.textContent=t),this.h()},h(){F(e,"href",T+"/login"),F(e,"class","text-md px-3 py-2 font-semibold rounded text-secondary-200 bg-green-500 mt-4 invisible lg:visible")},m(s,i){I(s,e,i)},p:G,d(s){s&&M(e)}}}function Ue(n){let e,t,s=n[1].username+"",i;return{c(){e=x("a"),t=Z("Logout "),i=Z(s),this.h()},l(r){e=Q(r,"A",{href:!0,class:!0});var a=$(e);t=ee(a,"Logout "),i=ee(a,s),a.forEach(M),this.h()},h(){F(e,"href",T+"/logout"),F(e,"class","text-md px-3 py-2 font-semibold rounded text-secondary-200 bg-red-600 mt-4 invisible lg:visible")},m(r,a){I(r,e,a),D(e,t),D(e,i)},p(r,a){a&2&&s!==(s=r[1].username+"")&&_e(i,s)},d(r){r&&M(e)}}}function Ee(n){let e,t,s=`Project Logo (Slash command @ Discord)

Slash Manager

`,i,r,a,u=`Dashboard`,l,m;function v(o,d){return o[0].accessToken!==""?Ue:Re}let q=v(n),h=q(n);return{c(){e=x("nav"),t=x("a"),t.innerHTML=s,i=N(),r=x("div"),a=x("div"),a.innerHTML=u,l=N(),m=x("div"),h.c(),this.h()},l(o){e=Q(o,"NAV",{class:!0});var d=$(e);t=Q(d,"A",{href:!0,class:!0,"data-svelte-h":!0}),B(t)!=="svelte-kqqfca"&&(t.innerHTML=s),i=V(d),r=Q(d,"DIV",{class:!0});var y=$(r);a=Q(y,"DIV",{class:!0,"data-svelte-h":!0}),B(a)!=="svelte-1pkzsxf"&&(a.innerHTML=u),l=V(y),m=Q(y,"DIV",{});var b=$(m);h.l(b),b.forEach(M),y.forEach(M),d.forEach(M),this.h()},h(){F(t,"href",T+"/"),F(t,"class","flex items-center flex-shrink-0 text-white gap-1 mr-6"),F(a,"class","text-sm lg:flex-grow"),F(r,"class","w-full block flex-grow lg:flex lg:items-center lg:w-auto"),F(e,"class","flex items-center justify-between flex-wrap shadow-primary-900 shadow-sm w-screen h-max p-4")},m(o,d){I(o,e,d),D(e,t),D(e,i),D(e,r),D(r,a),D(r,l),D(r,m),h.m(m,null)},p(o,[d]){q===(q=v(o))&&h?h.p(o,d):(h.d(1),h=q(o),h&&(h.c(),h.m(m,null)))},i:G,o:G,d(o){o&&M(e),h.d()}}}function ke(n,e,t){let s,i;return Y(n,Fe,r=>t(0,s=r)),Y(n,De,r=>t(1,i=r)),[s,i]}class Ie extends W{constructor(e){super(),J(this,e,ke,Ee,z,{})}}const X=console;class be{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Me(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Se?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Ke extends be{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||X,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||He(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const s=we(this.state.data,e,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const s=this.promise;return(t=this.retryer)==null||t.cancel(e),s?s.then(C).catch(C):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!xe(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var s,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return(r=this.retryer)==null||r.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(d=>d.options.queryFn);o&&this.setOptions(o.options)}Array.isArray(this.options.queryKey);const a=Qe(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(u);const m=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),v={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:m};if(l(v),(s=this.options.behavior)==null||s.onFetch(v),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=v.fetchOptions)==null?void 0:i.meta)){var q;this.dispatch({type:"fetch",meta:(q=v.fetchOptions)==null?void 0:q.meta})}const h=o=>{if(j(o)&&o.silent||this.dispatch({type:"error",error:o}),!j(o)){var d,y,b,P;(d=(y=this.cache.config).onError)==null||d.call(y,o,this),(b=(P=this.cache.config).onSettled)==null||b.call(P,this.state.data,o,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=me({fn:v.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:o=>{var d,y,b,P;if(typeof o>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(o),(d=(y=this.cache.config).onSuccess)==null||d.call(y,o,this),(b=(P=this.cache.config).onSettled)==null||b.call(P,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(o,d)=>{this.dispatch({type:"failed",failureCount:o,error:d})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=s=>{var i,r;switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:ye(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:(r=e.dataUpdatedAt)!=null?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return j(a)&&a.revert&&this.revertState?{...this.revertState}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function He(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=typeof e<"u",s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class Le extends ve{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,s){var i;const r=t.queryKey,a=(i=t.queryHash)!=null?i:ge(r,t);let u=this.get(a);return u||(u=new Ke({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(u)),u}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(s=>s!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){g.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[s]=w(e,t);return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(i=>te(s,i))}findAll(e,t){const[s]=w(e,t);return Object.keys(s).length>0?this.queries.filter(i=>te(s,i)):this.queries}notify(e){g.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){g.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){g.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class je extends be{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||X,this.observers=[],this.state=e.state||Ge(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var c;return this.retryer=me({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(p,_)=>{this.dispatch({type:"failed",failureCount:p,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(c=this.options.retry)!=null?c:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var s,i,r,a,u,l,m,v;if(!t){var q,h,o,d;this.dispatch({type:"loading",variables:this.options.variables}),await((q=(h=this.mutationCache.config).onMutate)==null?void 0:q.call(h,this.state.variables,this));const p=await((o=(d=this.options).onMutate)==null?void 0:o.call(d,this.state.variables));p!==this.state.context&&this.dispatch({type:"loading",context:p,variables:this.state.variables})}const c=await e();return await((s=(i=this.mutationCache.config).onSuccess)==null?void 0:s.call(i,c,this.state.variables,this.state.context,this)),await((r=(a=this.options).onSuccess)==null?void 0:r.call(a,c,this.state.variables,this.state.context)),await((u=(l=this.mutationCache.config).onSettled)==null?void 0:u.call(l,c,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,c,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:c}),c}catch(c){try{var y,b,P,A,S,O,K,f;throw await((y=(b=this.mutationCache.config).onError)==null?void 0:y.call(b,c,this.state.variables,this.state.context,this)),await((P=(A=this.options).onError)==null?void 0:P.call(A,c,this.state.variables,this.state.context)),await((S=(O=this.mutationCache.config).onSettled)==null?void 0:S.call(O,void 0,c,this.state.variables,this.state.context,this)),await((K=(f=this.options).onSettled)==null?void 0:K.call(f,void 0,c,this.state.variables,this.state.context)),c}finally{this.dispatch({type:"error",error:c})}}}dispatch(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"loading":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ye(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Ne extends ve{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,s){const i=new je({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:s,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){g.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>se(e,t))}findAll(e){return this.mutations.filter(t=>se(e,t))}notify(e){g.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(s=>s.state.isPaused);return g.batch(()=>t.reduce((s,i)=>s.then(()=>i.continue().catch(C)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Be(){return{onFetch:n=>{n.fetchFn=()=>{var e,t,s,i,r,a;const u=(e=n.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,l=(s=n.fetchOptions)==null||(i=s.meta)==null?void 0:i.fetchMore,m=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",q=(l==null?void 0:l.direction)==="backward",h=((r=n.state.data)==null?void 0:r.pages)||[],o=((a=n.state.data)==null?void 0:a.pageParams)||[];let d=o,y=!1;const b=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{var c;if((c=n.signal)!=null&&c.aborted)y=!0;else{var p;(p=n.signal)==null||p.addEventListener("abort",()=>{y=!0})}return n.signal}})},P=n.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+n.options.queryHash+"'")),A=(f,c,p,_)=>(d=_?[c,...d]:[...d,c],_?[p,...f]:[...f,p]),S=(f,c,p,_)=>{if(y)return Promise.reject("Cancelled");if(typeof p>"u"&&!c&&f.length)return Promise.resolve(f);const H={queryKey:n.queryKey,pageParam:p,meta:n.options.meta};b(H);const L=P(H);return Promise.resolve(L).then(Ce=>A(f,p,Ce,_))};let O;if(!h.length)O=S([]);else if(v){const f=typeof m<"u",c=f?m:ne(n.options,h);O=S(h,f,c)}else if(q){const f=typeof m<"u",c=f?m:Ve(n.options,h);O=S(h,f,c,!0)}else{d=[];const f=typeof n.options.getNextPageParam>"u";O=(u&&h[0]?u(h[0],0,h):!0)?S([],f,o[0]):Promise.resolve(A([],o[0],h[0]));for(let p=1;p{if(u&&h[p]?u(h[p],p,h):!0){const L=f?o[p]:ne(n.options,_);return S(_,f,L)}return Promise.resolve(A(_,o[p],h[p]))})}return O.then(f=>({pages:f,pageParams:d}))}}}}function ne(n,e){return n.getNextPageParam==null?void 0:n.getNextPageParam(e[e.length-1],e)}function Ve(n,e){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(e[0],e)}class qe{constructor(e={}){this.queryCache=e.queryCache||new Le,this.mutationCache=e.mutationCache||new Ne,this.logger=e.logger||X,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ie.subscribe(()=>{ie.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=re.subscribe(()=>{re.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[s]=w(e,t);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state.data}ensureQueryData(e,t,s){const i=R(e,t,s),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:s})=>{const i=s.data;return[t,i]})}setQueryData(e,t,s){const i=this.queryCache.find(e),r=i==null?void 0:i.state.data,a=Ae(t,r);if(typeof a>"u")return;const u=R(e),l=this.defaultQueryOptions(u);return this.queryCache.build(this,l).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return g.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,s)]))}getQueryState(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state}removeQueries(e,t){const[s]=w(e,t),i=this.queryCache;g.batch(()=>{i.findAll(s).forEach(r=>{i.remove(r)})})}resetQueries(e,t,s){const[i,r]=w(e,t,s),a=this.queryCache,u={type:"active",...i};return g.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(u,r)))}cancelQueries(e,t,s){const[i,r={}]=w(e,t,s);typeof r.revert>"u"&&(r.revert=!0);const a=g.batch(()=>this.queryCache.findAll(i).map(u=>u.cancel(r)));return Promise.all(a).then(C).catch(C)}invalidateQueries(e,t,s){const[i,r]=w(e,t,s);return g.batch(()=>{var a,u;if(this.queryCache.findAll(i).forEach(m=>{m.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(u=i.refetchType)!=null?u:i.type)!=null?a:"active"};return this.refetchQueries(l,r)})}refetchQueries(e,t,s){const[i,r]=w(e,t,s),a=g.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var m;return l.fetch(void 0,{...r,cancelRefetch:(m=r==null?void 0:r.cancelRefetch)!=null?m:!0,meta:{refetchPage:i.refetchPage}})}));let u=Promise.all(a).then(C);return r!=null&&r.throwOnError||(u=u.catch(C)),u}fetchQuery(e,t,s){const i=R(e,t,s),r=this.defaultQueryOptions(i);typeof r.retry>"u"&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,s){return this.fetchQuery(e,t,s).then(C).catch(C)}fetchInfiniteQuery(e,t,s){const i=R(e,t,s);return i.behavior=Be(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,s){return this.fetchInfiniteQuery(e,t,s).then(C).catch(C)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const s=this.queryDefaults.find(i=>U(e)===U(i.queryKey));s?s.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(s=>ae(e,s.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const s=this.mutationDefaults.find(i=>U(e)===U(i.mutationKey));s?s.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(s=>ae(e,s.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=ge(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function ze(n){let e;const t=n[2].default,s=ue(t,n,n[1],null);return{c(){s&&s.c()},l(i){s&&s.l(i)},m(i,r){s&&s.m(i,r),e=!0},p(i,[r]){s&&s.p&&(!e||r&2)&&oe(s,t,i,i[1],e?he(t,i[1],r,null):le(i[1]),null)},i(i){e||(E(s,i),e=!0)},o(i){k(s,i),e=!1},d(i){s&&s.d(i)}}}function We(n,e,t){let{$$slots:s={},$$scope:i}=e,{client:r=new qe}=e;return Pe(()=>{r.mount()}),$e(r),Oe(()=>{r.unmount()}),n.$$set=a=>{"client"in a&&t(0,r=a.client),"$$scope"in a&&t(1,i=a.$$scope)},[r,i,s]}class Je extends W{constructor(e){super(),J(this,e,We,ze,z,{client:0})}}function Xe(n){let e,t,s,i;t=new Ie({});const r=n[1].default,a=ue(r,n,n[2],null);return{c(){e=x("div"),ce(t.$$.fragment),s=N(),a&&a.c(),this.h()},l(u){e=Q(u,"DIV",{class:!0});var l=$(e);de(t.$$.fragment,l),s=V(l),a&&a.l(l),l.forEach(M),this.h()},h(){F(e,"class","bg-primary-500 text-white min-h-screen flex flex-col gap-2 overflow-x-hidden")},m(u,l){I(u,e,l),fe(t,e,null),D(e,s),a&&a.m(e,null),i=!0},p(u,l){a&&a.p&&(!i||l&4)&&oe(a,r,u,u[2],i?he(r,u[2],l,null):le(u[2]),null)},i(u){i||(E(t.$$.fragment,u),E(a,u),i=!0)},o(u){k(t.$$.fragment,u),k(a,u),i=!1},d(u){u&&M(e),pe(t),a&&a.d(u)}}}function Ye(n){let e,t;return e=new Je({props:{client:n[0],$$slots:{default:[Xe]},$$scope:{ctx:n}}}),{c(){ce(e.$$.fragment)},l(s){de(e.$$.fragment,s)},m(s,i){fe(e,s,i),t=!0},p(s,[i]){const r={};i&4&&(r.$$scope={dirty:i,ctx:s}),e.$set(r)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){k(e.$$.fragment,s),t=!1},d(s){pe(e,s)}}}function Ze(n,e,t){let{$$slots:s={},$$scope:i}=e;const r=new qe;return n.$$set=a=>{"$$scope"in a&&t(2,i=a.$$scope)},[r,s,i]}class ut extends W{constructor(e){super(),J(this,e,Ze,Ye,z,{})}}export{ut as component,nt as universal}; diff --git a/_app/immutable/nodes/1.720715e7.js b/_app/immutable/nodes/1.720715e7.js new file mode 100644 index 0000000..34dfd2b --- /dev/null +++ b/_app/immutable/nodes/1.720715e7.js @@ -0,0 +1 @@ +import{s as x,n as u,c as y}from"../chunks/scheduler.5c7fdb1c.js";import{S,i as j,g as h,m as d,s as q,h as v,j as g,n as E,f as m,c as C,a as _,y as $,o as b}from"../chunks/index.21959a4f.js";import{p as H}from"../chunks/stores.e45304b0.js";function P(p){var f;let a,t=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",c;return{c(){a=h("h1"),r=d(t),o=q(),n=h("p"),c=d(i)},l(e){a=v(e,"H1",{});var s=g(a);r=E(s,t),s.forEach(m),o=C(e),n=v(e,"P",{});var l=g(n);c=E(l,i),l.forEach(m)},m(e,s){_(e,a,s),$(a,r),_(e,o,s),_(e,n,s),$(n,c)},p(e,[s]){var l;s&1&&t!==(t=e[0].status+"")&&b(r,t),s&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&b(c,i)},i:u,o:u,d(e){e&&(m(a),m(o),m(n))}}}function k(p,a,t){let r;return y(p,H,o=>t(0,r=o)),[r]}class B extends S{constructor(a){super(),j(this,a,k,P,x,{})}}export{B as component}; diff --git a/_app/immutable/nodes/2.545a67bb.js b/_app/immutable/nodes/2.545a67bb.js new file mode 100644 index 0000000..6414177 --- /dev/null +++ b/_app/immutable/nodes/2.545a67bb.js @@ -0,0 +1,3 @@ +import{s as r,n as s}from"../chunks/scheduler.5c7fdb1c.js";import{S as l,i as m,g as d,h as c,x as p,k as f,a as h,f as u}from"../chunks/index.21959a4f.js";import{b as g}from"../chunks/paths.6a5b220f.js";import{U as o}from"../chunks/constants.6d5eb8fd.js";function x(i){let e,a=`

Discord slash command Manager

Simple tool to manage and view Discord slash command + for any application.

Discord does not include a ui to view and manage + slash command globally for your application. 😕

This tool aims to provide those missing features for you. ✨

`;return{c(){e=d("div"),e.innerHTML=a,this.h()},l(t){e=c(t,"DIV",{class:!0,"data-svelte-h":!0}),p(e)!=="svelte-jyyw0j"&&(e.innerHTML=a),this.h()},h(){f(e,"class","m-4 flex flex-col gap-2")},m(t,n){h(t,e,n)},p:s,i:s,o:s,d(t){t&&u(e)}}}class D extends l{constructor(e){super(),m(this,e,null,x,r,{})}}export{D as component}; diff --git a/_app/immutable/nodes/3.036923c6.js b/_app/immutable/nodes/3.036923c6.js new file mode 100644 index 0000000..3168fb4 --- /dev/null +++ b/_app/immutable/nodes/3.036923c6.js @@ -0,0 +1,5 @@ +import{r as ve,s as ge,n as G,h as Ce,i as Ee,b as Ie,j as Qe,c as ee,k as Te}from"../chunks/scheduler.5c7fdb1c.js";import{d as be,S as ye,i as _e,g as Q,s as L,h as T,j as O,c as F,x as N,f as p,k as f,a as P,y as m,m as U,n as A,e as te,o as q,z as V,A as H,B as Oe,r as xe,u as Se,v as Me,t as Pe,w as De,C as se,D as re}from"../chunks/index.21959a4f.js";import{b as ne}from"../chunks/localStore.3ee7e119.js";import{p as Le}from"../chunks/stores.e45304b0.js";import{b as we}from"../chunks/paths.6a5b220f.js";import{f as Fe}from"../chunks/api.3d2a0698.js";import{t as ie,d as z}from"../chunks/constants.6d5eb8fd.js";import{r as le,d as Ue}from"../chunks/index.403b996f.js";import{S as Ae,v as W,n as je,a as ae,i as oe,t as Be,j as Ve,e as He,r as ue,d as qe,b as K,w as Ne,k as Ke}from"../chunks/context.981da52b.js";import{g as ze}from"../chunks/navigation.95f2663e.js";function Y(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Re(r,e){r.d(1),e.delete(r.key)}function ke(r,e,t,s,n,a,i,l,h,u,g,o){let c=r.length,b=a.length,C=c;const d={};for(;C--;)d[r[C].key]=C;const _=[],D=new Map,E=new Map,R=[];for(C=b;C--;){const y=o(n,a,C),w=t(y);let I=i.get(w);I?s&&R.push(()=>I.p(y,e)):(I=u(w,y),I.c()),D.set(w,_[C]=I),w in d&&E.set(w,Math.abs(C-d[w]))}const S=new Set,x=new Set;function v(y){be(y,1),y.m(l,g),i.set(y.key,y),g=y.first,b--}for(;c&&b;){const y=_[b-1],w=r[c-1],I=y.key,k=w.key;y===w?(g=y.first,c--,b--):D.has(k)?!i.has(I)||S.has(I)?v(y):x.has(k)?c--:E.get(I)>E.get(k)?(x.add(I),v(y)):(S.add(k),c--):(h(w,i),c--)}for(;c--;){const y=r[c];D.has(y.key)||h(y,i)}for(;b;)v(_[b-1]);return ve(R),_}class Ge extends Ae{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ce(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Z(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Z(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),W(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const a=this.hasListeners();a&&he(this.currentQuery,n,this.options,s)&&this.executeFetch(),this.updateResult(t),a&&(this.currentQuery!==n||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==n||this.options.enabled!==s.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return We(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(je)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),ae||this.currentResult.isStale||!oe(this.options.staleTime))return;const t=Be(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(ae||this.options.enabled===!1||!oe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ve.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,n=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,h=e!==s,u=h?e.state:this.currentQueryInitialState,g=h?this.currentResult:this.previousQueryResult,{state:o}=e;let{dataUpdatedAt:c,error:b,errorUpdatedAt:C,fetchStatus:d,status:_}=o,D=!1,E=!1,R;if(t._optimisticResults){const w=this.hasListeners(),I=!w&&ce(e,t),k=w&&he(e,s,t,n);(I||k)&&(d=He(e.options.networkMode)?"fetching":"paused",c||(_="loading")),t._optimisticResults==="isRestoring"&&(d="idle")}if(t.keepPreviousData&&!o.dataUpdatedAt&&g!=null&&g.isSuccess&&_!=="error")R=g.data,c=g.dataUpdatedAt,_=g.status,D=!0;else if(t.select&&typeof o.data<"u")if(a&&o.data===(i==null?void 0:i.data)&&t.select===this.selectFn)R=this.selectResult;else try{this.selectFn=t.select,R=t.select(o.data),R=ue(a==null?void 0:a.data,R,t),this.selectResult=R,this.selectError=null}catch(w){this.selectError=w}else R=o.data;if(typeof t.placeholderData<"u"&&typeof R>"u"&&_==="loading"){let w;if(a!=null&&a.isPlaceholderData&&t.placeholderData===(l==null?void 0:l.placeholderData))w=a.data;else if(w=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof w<"u")try{w=t.select(w),this.selectError=null}catch(I){this.selectError=I}typeof w<"u"&&(_="success",R=ue(a==null?void 0:a.data,w,t),E=!0)}this.selectError&&(b=this.selectError,R=this.selectResult,C=Date.now(),_="error");const S=d==="fetching",x=_==="loading",v=_==="error";return{status:_,fetchStatus:d,isLoading:x,isSuccess:_==="success",isError:v,isInitialLoading:x&&S,data:R,dataUpdatedAt:c,error:b,errorUpdatedAt:C,failureCount:o.fetchFailureCount,failureReason:o.fetchFailureReason,errorUpdateCount:o.errorUpdateCount,isFetched:o.dataUpdateCount>0||o.errorUpdateCount>0,isFetchedAfterMount:o.dataUpdateCount>u.dataUpdateCount||o.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:v&&o.dataUpdatedAt===0,isPaused:d==="paused",isPlaceholderData:E,isPreviousData:D,isRefetchError:v&&o.dataUpdatedAt!==0,isStale:J(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,W(s,t))return;this.currentResult=s;const n={cache:!0},a=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.trackedProps.size)return!0;const h=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&h.add("error"),Object.keys(this.currentResult).some(u=>{const g=u;return this.currentResult[g]!==t[g]&&h.has(g)})};(e==null?void 0:e.listeners)!==!1&&a()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!qe(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){K.batch(()=>{if(e.onSuccess){var t,s,n,a;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(n=(a=this.options).onSettled)==null||n.call(a,this.currentResult.data,null)}else if(e.onError){var i,l,h,u;(i=(l=this.options).onError)==null||i.call(l,this.currentResult.error),(h=(u=this.options).onSettled)==null||h.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ye(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function ce(r,e){return Ye(r,e)||r.state.dataUpdatedAt>0&&Z(r,e,e.refetchOnMount)}function Z(r,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(r):t;return s==="always"||s!==!1&&J(r,e)}return!1}function he(r,e,t,s){return t.enabled!==!1&&(r!==e||s.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&J(r,t)}function J(r,e){return r.isStaleByTime(e.staleTime)}function We(r,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!W(r.getCurrentResult(),e)}function Ze(){return Ne()}function Je(r,e){const t=Ze(),s=t.defaultQueryOptions(r);s._optimisticResults="optimistic";let n=new e(t,s);s.onError&&(s.onError=K.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=K.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=K.batchCalls(s.onSettled)),le(n).subscribe(l=>{n=l,n.setOptions(s,{listeners:!1})});const a=le(n.getCurrentResult(),l=>n.subscribe(K.batchCalls(l))),{subscribe:i}=Ue(a,l=>(l=n.getOptimisticResult(s),s.notifyOnChangeProps?l:n.trackResult(l)));return{subscribe:i}}function Xe(r,e,t){const s=Ke(r,e,t);return Je(s,Ge)}function de(r,e,t){const s=r.slice();return s[10]=e[t],s}function fe(r,e,t){const s=r.slice();return s[13]=e[t],s}function pe(r,e){let t,s=e[13]+"",n;return{key:r,first:null,c(){t=Q("th"),n=U(s),this.h()},l(a){t=T(a,"TH",{scope:!0,class:!0});var i=O(t);n=A(i,s),i.forEach(p),this.h()},h(){f(t,"scope","col"),f(t,"class","px-6 py-3 text-left text-xs font-bold text-stone-400 uppercase tracking-wider"),this.first=t},m(a,i){P(a,t,i),m(t,n)},p(a,i){e=a},d(a){a&&p(t)}}}function $e(r){let e=[],t=new Map,s,n=Y(r[0]);const a=i=>i[10].id;for(let i=0;i ',D;return{key:r,first:null,c(){t=Q("tr"),s=Q("td"),a=U(n),i=L(),l=Q("td"),u=U(h),g=L(),o=Q("td"),b=U(c),C=L(),d=Q("td"),d.innerHTML=_,D=L(),this.h()},l(E){t=T(E,"TR",{});var R=O(t);s=T(R,"TD",{class:!0});var S=O(s);a=A(S,n),S.forEach(p),i=F(R),l=T(R,"TD",{class:!0});var x=O(l);u=A(x,h),x.forEach(p),g=F(R),o=T(R,"TD",{class:!0});var v=O(o);b=A(v,c),v.forEach(p),C=F(R),d=T(R,"TD",{class:!0,"data-svelte-h":!0}),N(d)!=="svelte-fndegg"&&(d.innerHTML=_),D=F(R),R.forEach(p),this.h()},h(){f(s,"class","px-4 py-4 whitespace-nowrap font-bold font-mono"),f(l,"class","px-4 py-4 whitespace-nowrap font-semibold"),f(o,"class","px-4 py-4 whitespace-nowrap"),f(d,"class","px-4 py-4 whitespace-nowrap flex justify-center items-center gap-2"),this.first=t},m(E,R){P(E,t,R),m(t,s),m(s,a),m(t,i),m(t,l),m(l,u),m(t,g),m(t,o),m(o,b),m(t,C),m(t,d),m(t,D)},p(E,R){e=E,R&1&&n!==(n=e[10].name+"")&&q(a,n),R&1&&h!==(h=ie(e[10].type)+"")&&q(u,h),R&1&&c!==(c=e[10].description+"")&&q(b,c)},d(E){E&&p(t)}}}function st(r){let e,t,s;return{c(){e=V("svg"),t=V("path"),s=V("polyline"),this.h()},l(n){e=H(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var a=O(e);t=H(a,"path",{d:!0}),O(t).forEach(p),s=H(a,"polyline",{points:!0}),O(s).forEach(p),a.forEach(p),this.h()},h(){f(t,"d","M22 11.08V12a10 10 0 1 1-5.93-9.14"),f(s,"points","22 4 12 14.01 9 11.01"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","text-green-500 h-7 w-7 mx-auto")},m(n,a){P(n,e,a),m(e,t),m(e,s)},d(n){n&&p(e)}}}function rt(r){let e,t,s,n,a;return{c(){e=V("svg"),t=V("path"),s=V("path"),n=V("path"),a=V("path"),this.h()},l(i){e=H(i,"svg",{xmlns:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var l=O(e);t=H(l,"path",{d:!0}),O(t).forEach(p),s=H(l,"path",{d:!0}),O(s).forEach(p),n=H(l,"path",{d:!0}),O(n).forEach(p),a=H(l,"path",{d:!0}),O(a).forEach(p),l.forEach(p),this.h()},h(){f(t,"d","M5 22h14"),f(s,"d","M5 2h14"),f(n,"d","M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"),f(a,"d","M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","text-yellow-500 h-7 w-7 mx-auto animate-spin")},m(i,l){P(i,e,l),m(e,t),m(e,s),m(e,n),m(e,a)},d(i){i&&p(e)}}}function nt(r){let e,t,s,n=[],a=new Map,i,l,h='',u,g,o,c,b,C=Y(r[5]);const d=v=>v[13];for(let v=0;v(u(),u=Ce(s,C=>t(8,h=C)),s);r.$$.on_destroy.push(()=>u());let o=["Name","Type","Description"],{basePath:c=""}=e,{id:b="global"}=e;return r.$$set=C=>{"basePath"in C&&t(6,c=C.basePath),"id"in C&&t(7,b=C.id)},r.$$.update=()=>{r.$$.dirty&192&&g(t(4,s=Xe({queryKey:["app.commands",b],queryFn:async()=>(await Fe(c)).data}))),r.$$.dirty&256&&t(3,n=h.isLoading),r.$$.dirty&256&&t(2,a=h.isError),r.$$.dirty&256&&t(1,i=h.isFetching),r.$$.dirty&256&&t(0,l=h.data||[])},[l,i,a,n,s,o,c,b,h]}class lt extends ye{constructor(e){super(),_e(this,e,it,nt,ge,{basePath:6,id:7})}}function at(r){let e,t="View Guild commands",s,n,a=`You are currently viewing the global list. + Enter a guild id (you bot must be invited to it) + and click the button to manage guild specific interactions`,i,l,h,u,g,o,c,b,C;return{c(){e=Q("h1"),e.textContent=t,s=L(),n=Q("p"),n.textContent=a,i=L(),l=Q("input"),h=L(),u=Q("button"),g=U("View guild commands"),this.h()},l(d){e=T(d,"H1",{"data-svelte-h":!0}),N(e)!=="svelte-1uuz0mm"&&(e.textContent=t),s=F(d),n=T(d,"P",{"data-svelte-h":!0}),N(n)!=="svelte-h1tt6h"&&(n.textContent=a),i=F(d),l=T(d,"INPUT",{class:!0}),h=F(d),u=T(d,"BUTTON",{class:!0});var _=O(u);g=A(_,"View guild commands"),_.forEach(p),this.h()},h(){f(l,"class","bg-primary-500 rounded-md p-2 focus:ring-0 focus:ring-offset-0 focus:outline-none"),u.disabled=o=r[1]==="",f(u,"class",c=(r[1]===""?"bg-primary-600 cursor-not-allowed":"bg-emerald-500 hover:bg-emerald-600")+" p-2 rounded-lg")},m(d,_){P(d,e,_),P(d,s,_),P(d,n,_),P(d,i,_),P(d,l,_),se(l,r[1]),P(d,h,_),P(d,u,_),m(u,g),b||(C=[re(l,"input",r[8]),re(u,"click",r[4])],b=!0)},p(d,_){_&2&&l.value!==d[1]&&se(l,d[1]),_&2&&o!==(o=d[1]==="")&&(u.disabled=o),_&2&&c!==(c=(d[1]===""?"bg-primary-600 cursor-not-allowed":"bg-emerald-500 hover:bg-emerald-600")+" p-2 rounded-lg")&&f(u,"class",c)},d(d){d&&(p(e),p(s),p(n),p(i),p(l),p(h),p(u)),b=!1,ve(C)}}}function ot(r){let e,t="View Global List",s,n,a,i,l,h,u,g="View global commands";return{c(){e=Q("h1"),e.textContent=t,s=L(),n=Q("p"),a=U('You are currently viewing the list for specific guild with id "'),i=U(r[0]),l=U(`" + Click the below button to view the global list`),h=L(),u=Q("a"),u.textContent=g,this.h()},l(o){e=T(o,"H1",{"data-svelte-h":!0}),N(e)!=="svelte-1mom79c"&&(e.textContent=t),s=F(o),n=T(o,"P",{});var c=O(n);a=A(c,'You are currently viewing the list for specific guild with id "'),i=A(c,r[0]),l=A(c,`" + Click the below button to view the global list`),c.forEach(p),h=F(o),u=T(o,"A",{href:!0,class:!0,"data-svelte-h":!0}),N(u)!=="svelte-ymyts1"&&(u.textContent=g),this.h()},h(){f(u,"href",we+"/dashboard"),f(u,"class","bg-emerald-500 hover:bg-emerald-600 p-2 rounded-lg")},m(o,c){P(o,e,c),P(o,s,c),P(o,n,c),m(n,a),m(n,i),m(n,l),P(o,h,c),P(o,u,c)},p(o,c){c&1&&q(i,o[0])},d(o){o&&(p(e),p(s),p(n),p(h),p(u))}}}function ut(r){let e,t,s,n,a=r[3].username+"",i,l,h=r[3].discriminator+"",u,g,o,c=r[0]&&z.test(r[0])?`In guild view for guild ${r[0]}`:"In global view",b,C,d,_,D,E,R,S;function x(k){r[7](k)}let v={basePath:r[2]};r[0]!==void 0&&(v.id=r[0]),d=new lt({props:v}),Ie.push(()=>Oe(d,"id",x));function y(k,M){return M&1&&(R=null),R==null&&(R=!!(k[0]&&z.test(k[0]))),R?ot:at}let w=y(r,-1),I=w(r);return{c(){e=Q("div"),t=Q("span"),s=Q("h1"),n=U("Logged in for "),i=U(a),l=U("#"),u=U(h),g=L(),o=Q("p"),b=U(c),C=L(),xe(d.$$.fragment),D=L(),E=Q("div"),I.c(),this.h()},l(k){e=T(k,"DIV",{class:!0});var M=O(e);t=T(M,"SPAN",{});var j=O(t);s=T(j,"H1",{class:!0});var B=O(s);n=A(B,"Logged in for "),i=A(B,a),l=A(B,"#"),u=A(B,h),B.forEach(p),g=F(j),o=T(j,"P",{class:!0});var X=O(o);b=A(X,c),X.forEach(p),j.forEach(p),C=F(M),Se(d.$$.fragment,M),D=F(M),E=T(M,"DIV",{class:!0});var $=O(E);I.l($),$.forEach(p),M.forEach(p),this.h()},h(){f(s,"class","font-bold font-mono text-3xl text-pink-300"),f(o,"class","text-sm font-medium text-primary-100"),f(E,"class","bg-blurple-900 flex flex-col p-2 rounded-lg gap-2"),f(e,"class","m-5 flex flex-col gap-2")},m(k,M){P(k,e,M),m(e,t),m(t,s),m(s,n),m(s,i),m(s,l),m(s,u),m(t,g),m(t,o),m(o,b),m(e,C),Me(d,e,null),m(e,D),m(e,E),I.m(E,null),S=!0},p(k,[M]){(!S||M&8)&&a!==(a=k[3].username+"")&&q(i,a),(!S||M&8)&&h!==(h=k[3].discriminator+"")&&q(u,h),(!S||M&1)&&c!==(c=k[0]&&z.test(k[0])?`In guild view for guild ${k[0]}`:"In global view")&&q(b,c);const j={};M&4&&(j.basePath=k[2]),!_&&M&1&&(_=!0,j.id=k[0],Qe(()=>_=!1)),d.$set(j),w===(w=y(k,M))&&I?I.p(k,M):(I.d(1),I=w(k),I&&(I.c(),I.m(E,null)))},i(k){S||(be(d.$$.fragment,k),S=!0)},o(k){Pe(d.$$.fragment,k),S=!1},d(k){k&&p(e),De(d),I.d()}}}function ct(r,e,t){let s,n,a,i,l;ee(r,Le,b=>t(6,i=b)),ee(r,ne,b=>t(3,l=b));const h=Te(ne);let u="";function g(){if(!z.test(u))return alert("Invalid guild id");t(0,n=u),ze(`?guildId=${u}`)}function o(b){n=b,t(0,n),t(5,s),t(6,i)}function c(){u=this.value,t(1,u)}return r.$$.update=()=>{r.$$.dirty&64&&t(5,s=i.url.searchParams),r.$$.dirty&32&&t(0,n=s&&s.get("guildId")||""),r.$$.dirty&1&&t(2,a=n&&z.test(n)?`/applications/${h.id}/guilds/${n}/commands`:`applications/${h.id}/commands`)},[n,u,a,l,g,s,i,o,c]}class wt extends ye{constructor(e){super(),_e(this,e,ct,ut,ge,{})}}export{wt as component}; diff --git a/_app/immutable/nodes/4.53a37fda.js b/_app/immutable/nodes/4.53a37fda.js new file mode 100644 index 0000000..153753f --- /dev/null +++ b/_app/immutable/nodes/4.53a37fda.js @@ -0,0 +1,2 @@ +import{s as Y,n as J,r as Z,k as $,o as ee}from"../chunks/scheduler.5c7fdb1c.js";import{S as te,i as ne,g as m,s as k,m as le,h as g,j as V,x,c as w,n as se,f as L,k as u,a as X,y as s,C as M,D as B}from"../chunks/index.21959a4f.js";import{a as q,b as ae}from"../chunks/localStore.3ee7e119.js";import{g as K}from"../chunks/navigation.95f2663e.js";import{f as re,g as oe}from"../chunks/api.3d2a0698.js";import{d as ie}from"../chunks/constants.6d5eb8fd.js";import{b as Q}from"../chunks/paths.6a5b220f.js";async function ue(){const n=await re("oauth2/@me"),{application:t}=n.data;return(t==null?void 0:t.bot)??{}}function W(n){let t,e="Please wait..., verifying credentials";return{c(){t=m("p"),t.textContent=e},l(a){t=g(a,"P",{"data-svelte-h":!0}),x(t)!=="svelte-uv8z2c"&&(t.textContent=e)},m(a,_){X(a,t,_)},d(a){a&&L(t)}}}function de(n){let t,e,a,_="Login",f,i,T="Enter your client id and client secret",P,y,S="NOT your client token",b,d,E=`Data is not sent to any 3rd party servers, + everything you do is only recorded to the localStorage and can be deleted if you need to.`,I,C,R='Get your application credentials from here discord.com/developers/applications',D,c,N,p,U,v,j,O,H,z,A,G,o=n[2]&&W();return{c(){t=m("div"),e=m("div"),a=m("h1"),a.textContent=_,f=k(),i=m("p"),i.textContent=T,P=k(),y=m("p"),y.textContent=S,b=k(),d=m("p"),d.innerHTML=E,I=k(),C=m("p"),C.innerHTML=R,D=k(),c=m("input"),N=k(),p=m("input"),U=k(),v=m("button"),j=le("Login with token 🚀"),z=k(),o&&o.c(),this.h()},l(r){t=g(r,"DIV",{class:!0});var h=V(t);e=g(h,"DIV",{class:!0});var l=V(e);a=g(l,"H1",{class:!0,"data-svelte-h":!0}),x(a)!=="svelte-1iq98bf"&&(a.textContent=_),f=w(l),i=g(l,"P",{class:!0,"data-svelte-h":!0}),x(i)!=="svelte-15jhly7"&&(i.textContent=T),P=w(l),y=g(l,"P",{class:!0,"data-svelte-h":!0}),x(y)!=="svelte-8qzf74"&&(y.textContent=S),b=w(l),d=g(l,"P",{class:!0,"data-svelte-h":!0}),x(d)!=="svelte-1erpz9n"&&(d.innerHTML=E),I=w(l),C=g(l,"P",{"data-svelte-h":!0}),x(C)!=="svelte-15pky1h"&&(C.innerHTML=R),D=w(l),c=g(l,"INPUT",{type:!0,placeholder:!0,class:!0}),N=w(l),p=g(l,"INPUT",{type:!0,placeholder:!0,class:!0}),U=w(l),v=g(l,"BUTTON",{class:!0});var F=V(v);j=se(F,"Login with token 🚀"),F.forEach(L),z=w(l),o&&o.l(l),l.forEach(L),h.forEach(L),this.h()},h(){u(a,"class","font-bold font-mono text-3xl"),u(i,"class","text-lg"),u(y,"class","text-sm font-bold"),u(d,"class","text-sm font-medium text-primary-300"),u(c,"type","text"),c.readOnly=n[2],u(c,"placeholder","Client Id"),u(c,"class","bg-primary-500 rounded-md p-2 focus:ring-0 focus:ring-offset-0 focus:outline-none"),u(p,"type","password"),p.readOnly=n[2],u(p,"placeholder","Client Secret"),u(p,"class","bg-primary-500 rounded-md p-2 focus:ring-0 focus:ring-offset-0 focus:outline-none"),v.disabled=O=n[3]||n[2],u(v,"class",H=(n[2]||n[3]?"bg-primary-600 cursor-not-allowed":"bg-blurple-600 hover:bg-blurple-700")+" p-2 rounded-lg"),u(e,"class","bg-primary-800 shadow-lg shadow-primary-900 border border-primary-700 opacity-90 rounded-lg p-3 w-1/2 flex flex-col gap-2 mt-9"),u(t,"class","flex justify-center")},m(r,h){X(r,t,h),s(t,e),s(e,a),s(e,f),s(e,i),s(e,P),s(e,y),s(e,b),s(e,d),s(e,I),s(e,C),s(e,D),s(e,c),M(c,n[0]),s(e,N),s(e,p),M(p,n[1]),s(e,U),s(e,v),s(v,j),s(e,z),o&&o.m(e,null),A||(G=[B(c,"input",n[5]),B(p,"input",n[6]),B(v,"click",n[4])],A=!0)},p(r,[h]){h&4&&(c.readOnly=r[2]),h&1&&c.value!==r[0]&&M(c,r[0]),h&4&&(p.readOnly=r[2]),h&2&&p.value!==r[1]&&M(p,r[1]),h&12&&O!==(O=r[3]||r[2])&&(v.disabled=O),h&12&&H!==(H=(r[2]||r[3]?"bg-primary-600 cursor-not-allowed":"bg-blurple-600 hover:bg-blurple-700")+" p-2 rounded-lg")&&u(v,"class",H),r[2]?o||(o=W(),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},i:J,o:J,d(r){r&&L(t),o&&o.d(),A=!1,Z(G)}}}function ce(n,t,e){let a,_=$(q),f=_.clientId,i=_.clientSecret,T=!1;async function P(){if(!a){if(!ie.test(f))return alert("Id is invalid.");e(2,T=!0),q.update(b=>({...b,clientId:f,clientSecret:i}));try{const b=await oe(f,i);q.update(C=>({...C,accessToken:b}));const{username:d,discriminator:E,id:I}=await ue();if(typeof d!="string"||typeof I!="string")throw new TypeError("API Returned non string values");ae.set({username:d,discriminator:E,id:I}),K(`${Q}/dashboard`)}catch(b){console.log("Error while verifying",b),q.update(d=>({...d,accessToken:""})),alert("Verification failed, try again (check your credentials)")}e(2,T=!1)}}ee(()=>{_.accessToken!==""&&K(`${Q}/dashboard`)});function y(){f=this.value,e(0,f)}function S(){i=this.value,e(1,i)}return n.$$.update=()=>{n.$$.dirty&3&&e(3,a=f===""||i==="")},[f,i,T,a,P,y,S]}class be extends te{constructor(t){super(),ne(this,t,ce,de,Y,{})}}export{be as component}; diff --git a/_app/immutable/nodes/5.0fab7787.js b/_app/immutable/nodes/5.0fab7787.js new file mode 100644 index 0000000..5d6178e --- /dev/null +++ b/_app/immutable/nodes/5.0fab7787.js @@ -0,0 +1,3 @@ +import{s as q,n as L,k as V,o as B}from"../chunks/scheduler.5c7fdb1c.js";import{S as N,i as O,g as l,s as h,m as U,h as i,j,x as g,c as v,n as z,f as x,k as p,a as A,y as a,D as F}from"../chunks/index.21959a4f.js";import{a as $,b as G}from"../chunks/localStore.3ee7e119.js";import{g as H}from"../chunks/navigation.95f2663e.js";import{b as M}from"../chunks/paths.6a5b220f.js";function J(f){let e,t,o,w="Logout",y,d,D="Everything done here? 😅",b,c,E="If you liked it please star us on github 🌟",_,r,I=`Data is not sent to any 3rd party servers, + everything you do is only recorded to the localStorage and can be deleted if you need to. + Logout does not delete any cached data!!`,C,n,k,T,P;return{c(){e=l("div"),t=l("div"),o=l("h1"),o.textContent=w,y=h(),d=l("p"),d.textContent=D,b=h(),c=l("p"),c.textContent=E,_=h(),r=l("p"),r.innerHTML=I,C=h(),n=l("button"),k=U("Logout 💔"),this.h()},l(u){e=i(u,"DIV",{class:!0});var m=j(e);t=i(m,"DIV",{class:!0});var s=j(t);o=i(s,"H1",{class:!0,"data-svelte-h":!0}),g(o)!=="svelte-15yndtu"&&(o.textContent=w),y=v(s),d=i(s,"P",{"data-svelte-h":!0}),g(d)!=="svelte-1bjxb2m"&&(d.textContent=D),b=v(s),c=i(s,"P",{"data-svelte-h":!0}),g(c)!=="svelte-w0qe6x"&&(c.textContent=E),_=v(s),r=i(s,"P",{class:!0,"data-svelte-h":!0}),g(r)!=="svelte-1mf0ujk"&&(r.innerHTML=I),C=v(s),n=i(s,"BUTTON",{class:!0});var S=j(n);k=z(S,"Logout 💔"),S.forEach(x),s.forEach(x),m.forEach(x),this.h()},h(){p(o,"class","font-bold font-mono text-3xl"),p(r,"class","text-sm font-medium text-primary-300"),n.disabled=f[0].accessToken==="",p(n,"class","bg-red-500 hover:bg-red-600 p-2 rounded-lg"),p(t,"class","bg-primary-800 shadow-lg shadow-primary-900 border border-primary-700 opacity-90 rounded-lg p-3 w-1/2 flex flex-col gap-2 mt-9"),p(e,"class","flex justify-center")},m(u,m){A(u,e,m),a(e,t),a(t,o),a(t,y),a(t,d),a(t,b),a(t,c),a(t,_),a(t,r),a(t,C),a(t,n),a(n,k),T||(P=F(n,"click",f[1]),T=!0)},p:L,i:L,o:L,d(u){u&&x(e),T=!1,P()}}}function K(f){let e=V($);function t(){$.update(o=>({...o,accessToken:""})),G.set({username:"",discriminator:"",id:""}),H(`${M}/login`)}return B(()=>{e.accessToken===""&&H(`${M}/login`)}),[e,t]}class Z extends N{constructor(e){super(),O(this,e,K,J,q,{})}}export{Z as component}; diff --git a/_app/version.json b/_app/version.json new file mode 100644 index 0000000..a2276d2 --- /dev/null +++ b/_app/version.json @@ -0,0 +1 @@ +{"version":"1694189155446"} \ No newline at end of file diff --git a/dashboard.html b/dashboard.html new file mode 100644 index 0000000..1bf99f2 --- /dev/null +++ b/dashboard.html @@ -0,0 +1,58 @@ + + + + + + + Discord Slash Manager + + + + + + + + + + + + + + + + + + + +

Logged in for #

In global view

NameTypeDescription
loading...

View Guild commands

You are currently viewing the global list. + Enter a guild id (you bot must be invited to it) + and click the button to manage guild specific interactions

+ + +
+ + diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..b57aae89623fff86f47737fea4a912271d5b605b GIT binary patch literal 5430 zcmZQzU}RuoP*7k1(h3YK1Q;097#J7?fHa7o!NS0B4#?I3iUE}{H~=w791MWs=-~hV z|MI`i9AEdPzU1Afw8;OTQX^=Kfp&oG0@(?+`|Qd6bg>uRUqE;K0^0qhu9&v|MYk7; z4-AL@1LAj>8|V?=FuO)+^3oYFj=nEnaQ;(nB6<2L33s5~Klg6m56q_qe{SFCqqiG= z?$~r5R7Lb zeZ|7_G;dQQ)$vGiArGp%2cmrma>LJ^Th0%J-SiCWVPV%m_5px)4|M+v*bg0$JOaua zAiIHW%K`0wH-Lr*@Bs&)JAEyA0VW5Mb`*$t=loS7p#*4(-8(6=oe7> rzz`?LEMz^D + + + + + + Discord Slash Manager + + + + + + + + + + + + + + + + +

Discord slash command Manager

Simple tool to manage and view Discord slash command + for any application.

Discord does not include a ui to view and manage + slash command globally for your application. 😕

This tool aims to provide those missing features for you. ✨

+ + +
+ + diff --git a/login.html b/login.html new file mode 100644 index 0000000..8d22720 --- /dev/null +++ b/login.html @@ -0,0 +1,56 @@ + + + + + + + Discord Slash Manager + + + + + + + + + + + + + + + + + + +

Login

Enter your client id and client secret

NOT your client token

Data is not sent to any 3rd party servers, + everything you do is only recorded to the localStorage and can be deleted if you need to.

Get your application credentials from here discord.com/developers/applications

+ + +
+ + diff --git a/logout.html b/logout.html new file mode 100644 index 0000000..ec2c89b --- /dev/null +++ b/logout.html @@ -0,0 +1,55 @@ + + + + + + + Discord Slash Manager + + + + + + + + + + + + + + + + +

Logout

Everything done here? 😅

If you liked it please star us on github 🌟

Data is not sent to any 3rd party servers, + everything you do is only recorded to the localStorage and can be deleted if you need to. + Logout does not delete any cached data!!

+ + +
+ + diff --git a/slash-blurple.png b/slash-blurple.png new file mode 100644 index 0000000000000000000000000000000000000000..6b08f980b8814c515ba21e7e0f3613eea6849b99 GIT binary patch literal 1038 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&F%}28J2BoosZ$T+a29w(7Bet# z3xhBt!>lDzyp5|%53`c z&-{sn*~d?eQqP}l^F7vm;`r;mzc#LCvE|5q@yN#RLxIm$$;SbVSu!FF3`~bTT^vIy z=DfWf9e&wC;J`=EOe2=-n;L_fVnQ-l_bgm+|NrWl+#6l8jc(4pX?c9}=L5|8|K-oF zeOkis%2TM}<~^IU1_x4J*3@4!+kKLeFK(v5$GkJIo7HZA6>q<)zgF|m74GEK^V_@q zCLF$K7$vQC&-bcz+_okezc7g>55B7(zAU`rT=No}>gLA(f68>`&7bP|l_@6U&)=^p z6@l_C-fQc0cd%%z=bFkK(677BE23@Jk22rHX&=I#^W+?VWVh$=g6#+XN!0LPUs1{N zLF$TLW0}!~x5{n~EG|HF;6L|Y%M%&b6f&O{^;BSrc-($l zCQYT0Wx>1YPj!727&3lcZMU1%Ab;U&CsWyhZT`Xq%yHj5nbI8g|JRY&qx_NS-<#`A zyGuS?R@Z*;-tK^Hjm)1fCpm9iT_4xzzc8-x?%#sv2kd`0u46iGCw*Y+dDen=#*BA< z+c5OoaUWQIp7FygV}?J!{xO{2XMSM&d+rbKs+s=$u48E1C*H95J#)g#YKDqm?--Wt zGj3S@o-5(CHPeq@c?`$)2{&wh&y?`inxW$NWyUjqPcppw7s60ouhg*Lo>$?*e3l6> z{24pGs57MeDrpFq&okjwFk@1!lEXTGW{z*33@7ba6>b3~e?Mk;_)o)Ompz-n`+kNe zzYjO~?6c=E*dh3ypHb(YLmb!lc81oUHmkcf{XOU$@Zjb2c@7KgYlLR)b68|wB>9a+ z>F-AAi`92zCO^}GGZM9x#_fmJ}!S;Oqp!@$+ z_iE}+__bC+kwNUrdsk0J7Ih{i1u$}`Kj~U~*1h(kXYEz*+MB+$cm2yBeyra6`PYi= zpMFL>o&4!#Ozz9CEC2BaEZXz!wvOHZfXEuVTkGQV%~tIAbvI|>|0^+d_t*Vj?|kI? g%bNV%|Ne6`?z(bZdzH5`FhekSy85}Sb4q9e0A1nry8r+H literal 0 HcmV?d00001 diff --git a/slash.png b/slash.png new file mode 100644 index 0000000000000000000000000000000000000000..72a7ba491a7012590911253c689756ab983a6b2e GIT binary patch literal 2128 zcmaJ@c~H{r7XAT>QU{{rjJCIrti%Ll7;C;yUBEA4`=cLW(SZUo;j)l?2MKW^C#?-&UN+gu$=D& zTJqx_FO}RblpiFJU`vO|Ha3+RLX&6QsT2I+_`t_U?VX&?fqpEHh`H%i(wdUF;8Drf zW0#$;j8*1S&00;E5Gw3n>YT+>#U3AH_MTbE-Madyn_u9|t>FEdc-V4XWR#lwh zx$CrQY@&4;M;;R${lP6c_5y1=Q!NMHXjb zRky|8rRd&m>QZ7h41V2NxLQSxDG1F<3Xhs;pkfd%b%E%8uC9W*`X?=Pj`GQS=G;fJ zv0Q3PxORvITKc*}Orz0Wf_#|)p+?)co1?an_=}9gD}IgQvieIhlYA;c+pFOuEc=b= zk_)1r&yNs*))o4cdyaK^wzh4>ogCG0O>77jz0j{Hdthm?Ed<{evReB`P(u5F=UF~d z@Wi*6iu=X(bL_-{&XbX!EiN5Ox1PnbE+#A_O+o<6|aw1eb|-@9n9KD znTmgZ66eUH=Q^XBqyD;jHRou()BQrLKNJN=cm=YI=C4v|x~oF^sOCGVy!Qo{{8dc{ zfj7Nw(#6F^Jl@XD&FFKKqcGsVXlJfSvW}xPc{4zU)lTgA(jJ%t`DbE;H1@rsVZ!;n zx44rGm`F-yYFb`)AlD>@Nn@A2;glg2a;Bi9*tec!5Dn0iW2CWFUO#d$j_EA_c$o_f zY%w#J;UGR_LLYLJ0*4~QCcF9#t)>O=>}$gL~%J~Q(meW0mRzvP(Wn$4HjWQ<@t8^Ngm{@hC2^yDpn%^ zG}fiu;4mG3X*~v`HU~z_0ccc1uRBi;KwkbZWr$98y6=7i30ybO{Ze2Irscq(7k<@y z@QiQda@#=R)6FA(46%wooflm&z8Jt{D}vh4yQP#cUF2P5%m;v}sNE@DtGo9O;r7 zsxElf1@YYPJT^(C)$pc99{981TeJ>mZIaFBKLiwIZT1`7q9zy$-yDydD07OhtE{T1 zXcPzplU5R@=&cV2>Wyz|Y{cQ0l38ivpE{ln+s|ndXC|@(vs0(12XB|(vr0nM1zIT` zqB5wU{C zrt?3|9OGc0tswE013VD{U*Z3;^7Z+|@lg?7+;AO{j8jrb6JS3$wto!n{GV1yT#VW-;5%iDAej^>Fu$svC^hh8`iG!gTpPNpE|sFNvC2YD~;zHy=TC{ zu?Hm}-5FkQ#5wK#P2qpf8#_fgMHeiSHPW8YYkkyW--q zSb=ETKEzO20j`MJ)g93P?fdWS$fzWlck?mFmWBosl;`Y}Ta-gbd?r_d#~Z6s)DaDB z!i-Q;8D;Ie56aWPz`&D}-G`spR#wKfR_Z>ALi_k@Yx$$=^@H}}@Ta+w{g%(SQpEk` zwY9ymQ|bVI;?eM<^71`Xv{xnDf z;R2*hcdRPjp~=a~*^L!Mgm$y0GUd;cH;2}MnmmyRllN-NM+%!JV8=+4hv3@nl%W{! z%M~TRdyR=CY^-Y>H@v#9m6h-yMfkF7sjxX^SM}eUugZm}gI5ZtOr>LbkWqW+q1mUN zuFZ~jeYGK%jkvK!JW_*d19j7W*?bTBG*5^2pN0KJEj