@scalar/components 0.2.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,25 +1,27 @@
1
- import { defineComponent as g, useCssVars as O, openBlock as l, createElementBlock as d, normalizeClass as s, unref as a, createElementVNode as v, createCommentVNode as h, createStaticVNode as E, reactive as V, computed as $, useAttrs as j, mergeProps as T, renderSlot as k, createVNode as x, defineAsyncComponent as N, h as W, createBlock as C, toDisplayString as y, withCtx as _, normalizeStyle as Z, createTextVNode as R, ref as B, onMounted as K, resolveDynamicComponent as U, withKeys as q } from "vue";
2
- import { defineConfig as G } from "cva";
3
- import { extendTailwindMerge as J } from "tailwind-merge";
4
- import { Dialog as Q, DialogPanel as X, DialogTitle as Y, DialogDescription as ee } from "@headlessui/vue";
5
- import { useTextareaAutosize as te } from "@vueuse/core";
6
- import { nanoid as oe } from "nanoid";
7
- const M = "scalar-component", re = J({
1
+ (function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(`.scalar-component.loader-wrapper[data-v-42a08e16],.scalar-component .loader-wrapper[data-v-42a08e16]{position:relative;height:var(--8d3a1414);width:var(--8d3a1414);display:flex;align-items:center;justify-content:center;--default-loader-size: 50%}.scalar-component.svg-loader[data-v-42a08e16],.scalar-component .svg-loader[data-v-42a08e16]{width:var(--loader-size, var(--default-loader-size));height:var(--loader-size, var(--default-loader-size));top:1rem;right:.9rem;overflow:visible;fill:none;background-color:transparent;stroke:currentColor}.scalar-component.svg-path[data-v-42a08e16],.scalar-component .svg-path[data-v-42a08e16]{stroke-width:14;fill:none;transition:.3s}.scalar-component.svg-x-mark[data-v-42a08e16],.scalar-component .svg-x-mark[data-v-42a08e16]{stroke-dasharray:57;stroke-dashoffset:57;transition-delay:0s}.scalar-component.svg-check-mark[data-v-42a08e16],.scalar-component .svg-check-mark[data-v-42a08e16]{stroke-dasharray:149;stroke-dashoffset:149;transition-delay:0s}.scalar-component.icon-is-invalid .svg-x-mark[data-v-42a08e16],.scalar-component .icon-is-invalid .svg-x-mark[data-v-42a08e16],.scalar-component.icon-is-valid .svg-check-mark[data-v-42a08e16],.scalar-component .icon-is-valid .svg-check-mark[data-v-42a08e16]{stroke-dashoffset:0;transition-delay:.3s}.scalar-component.circular-loader[data-v-42a08e16],.scalar-component .circular-loader[data-v-42a08e16]{animation:rotate-42a08e16 .7s linear infinite,fade-in-42a08e16 .4s;transform-origin:center center;transform:scale(5);background:transparent}.scalar-component.loader-path[data-v-42a08e16],.scalar-component .loader-path[data-v-42a08e16]{stroke-dasharray:50,200;stroke-dashoffset:-100;stroke-linecap:round}.scalar-component.loader-path-off[data-v-42a08e16],.scalar-component .loader-path-off[data-v-42a08e16]{stroke-dasharray:50,200;stroke-dashoffset:-100;transition:opacity .3s;opacity:0}@keyframes fade-in-42a08e16{0%{opacity:0}70%{opacity:0}to{opacity:1}}@keyframes rotate-42a08e16{0%{transform:scale(5) rotate(0)}to{transform:scale(5) rotate(360deg)}}.scalar-componentpre[class*=language-].line-numbers,.scalar-component pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}.scalar-componentpre[class*=language-].line-numbers>code,.scalar-component pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.scalar-component.line-numbers .line-numbers-rows,.scalar-component .line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;user-select:none}.scalar-component.line-numbers-rows>span,.scalar-component .line-numbers-rows>span{display:block;counter-increment:linenumber}.scalar-component.line-numbers-rows>span:before,.scalar-component .line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}.scalar-component.scalar-codeblock-code[class*=language-],.scalar-component .scalar-codeblock-code[class*=language-],.scalar-component.scalar-codeblock-pre[class*=language-],.scalar-component .scalar-codeblock-pre[class*=language-]{color:var(--theme-color-3, var(--default-theme-color-2));background:none;font-family:var(--theme-font-code, var(--default-theme-font-code));font-size:var(--theme-small, var(--default-theme-small));text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.4;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}.scalar-component.scalar-codeblock-pre[class*=language-],.scalar-component .scalar-codeblock-pre[class*=language-]{margin:0;padding:.5rem;overflow:auto}.scalar-component:not(pre)>code[class*=language-],.scalar-component :not(pre)>code[class*=language-],.scalar-component.scalar-codeblock-pre[class*=language-],.scalar-component .scalar-codeblock-pre[class*=language-]{background:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.scalar-codeblock-pre[class*=language-].line-numbers,.scalar-component .scalar-codeblock-pre[class*=language-].line-numbers{padding-left:2em;position:relative;counter-reset:linenumber}.scalar-component.line-numbers span.line-numbers-rows,.scalar-component .line-numbers span.line-numbers-rows{width:2em;border:none;left:-2em}.scalar-component.line-numbers code,.scalar-component .line-numbers code{position:relative;white-space:inherit}.scalar-component:not(pre)>code[class*=language-],.scalar-component :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.scalar-component.token.comment,.scalar-component .token.comment,.scalar-component.token.block-comment,.scalar-component .token.block-comment,.scalar-component.token.prolog,.scalar-component .token.prolog,.scalar-component.token.doctype,.scalar-component .token.doctype,.scalar-component.token.cdata,.scalar-component .token.cdata{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.token.punctuation,.scalar-component .token.punctuation{color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.token.tag,.scalar-component .token.tag,.scalar-component.token.attr-name,.scalar-component .token.attr-name,.scalar-component.token.namespace,.scalar-component .token.namespace,.scalar-component.token.deleted,.scalar-component .token.deleted{color:var(--theme-color-red, var(--default-theme-color-red))}.scalar-component.token.function-name,.scalar-component .token.function-name{color:var(--theme-color-green, var(--default-theme-color-green))}.scalar-component.token.boolean,.scalar-component .token.boolean,.scalar-component.token.number,.scalar-component .token.number,.scalar-component.token.function,.scalar-component .token.function{color:var(--theme-color-orange, var(--default-theme-color-orange))}.scalar-component.token.property,.scalar-component .token.property,.scalar-component.token.class-name,.scalar-component .token.class-name,.scalar-component.token.constant,.scalar-component .token.constant,.scalar-component.token.symbol,.scalar-component .token.symbol{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.token.selector,.scalar-component .token.selector,.scalar-component.token.important,.scalar-component .token.important,.scalar-component.token.atrule,.scalar-component .token.atrule,.scalar-component.token.keyword,.scalar-component .token.keyword,.scalar-component.token.builtin,.scalar-component .token.builtin{color:var(--theme-color-purple, var(--default-theme-color-purple))}.scalar-component.token.string,.scalar-component .token.string,.scalar-component.token.char,.scalar-component .token.char,.scalar-component.token.attr-value,.scalar-component .token.attr-value,.scalar-component.token.regex,.scalar-component .token.regex,.scalar-component.token.variable,.scalar-component .token.variable{color:var(--theme-color-blue, var(--default-theme-color-blue))}.scalar-component.light-mode .dark-mode .language-shell .token.variable,.scalar-component .light-mode .dark-mode .language-shell .token.variable{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.light-mode .dark-mode .language-shell .token.string,.scalar-component .light-mode .dark-mode .language-shell .token.string{color:var(--theme-color-blue, var(--default-theme-color-blue))}.scalar-component.language-shell .token.string,.scalar-component .language-shell .token.string{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.token.operator,.scalar-component .token.operator,.scalar-component.token.entity,.scalar-component .token.entity,.scalar-component.token.url,.scalar-component .token.url{color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.token.important,.scalar-component .token.important,.scalar-component.token.bold,.scalar-component .token.bold{font-weight:700}.scalar-component.token.italic,.scalar-component .token.italic{font-style:italic}.scalar-component.token.entity,.scalar-component .token.entity{cursor:help}.scalar-component.token.inserted,.scalar-component .token.inserted{color:var(--theme-color-green, var(--default-theme-color-green))}.scalar-component.scalar-modal-layout[data-v-ff85ced0],.scalar-component .scalar-modal-layout[data-v-ff85ced0]{animation:modal-fade-ff85ced0 .2s forwards}.scalar-component.scalar-modal[data-v-ff85ced0],.scalar-component .scalar-modal[data-v-ff85ced0]{transform:scale(.98);animation:modal-pop-ff85ced0 .15s .15s forwards}@keyframes modal-fade-ff85ced0{0%{opacity:0}to{opacity:1}}@keyframes modal-pop-ff85ced0{0%{opacity:0}to{opacity:1;transform:scale(1)}}.scalar-component.scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.scalar-input-wrapper-error .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-error .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-error-color, var(--default-theme-color-red))}.scalar-component.scalar-input[data-v-4717ec50]::-moz-selection,.scalar-component .scalar-input[data-v-4717ec50]::-moz-selection{color:var(--theme-color-1, var(--default-theme-color-1));background:#ffa55859}.scalar-component.scalar-input[data-v-4717ec50]::selection,.scalar-component .scalar-input[data-v-4717ec50]::selection{color:var(--theme-color-1, var(--default-theme-color-1));background:#ffa55859}.scalar-component.scalar-input[data-v-4717ec50]:has(+.scalar-input-label),.scalar-component .scalar-input[data-v-4717ec50]:has(+.scalar-input-label){opacity:0}.scalar-component.scalar-input[data-v-4717ec50]:not(:-moz-placeholder-shown),.scalar-component .scalar-input[data-v-4717ec50]:not(:-moz-placeholder-shown){opacity:1;-moz-transition:opacity .2s ease-in-out .15s;transition:opacity .2s ease-in-out .15s}.scalar-component.scalar-input[data-v-4717ec50]:not(:placeholder-shown),.scalar-component .scalar-input[data-v-4717ec50]:not(:placeholder-shown),.scalar-component.scalar-input-wrapper-focus .scalar-input[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus .scalar-input[data-v-4717ec50]{opacity:1;transition:opacity .2s ease-in-out .15s}.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill,.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill:hover,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill:hover,.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill:focus,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill:focus,.scalar-component.scalar-input[data-v-4717ec50]:-webkit-autofill:active,.scalar-component .scalar-input[data-v-4717ec50]:-webkit-autofill:active,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:hover,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:hover,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:focus,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:focus,.scalar-component.scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:active,.scalar-component .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:active{-webkit-box-shadow:0 0 0px 1000px var(--theme-background-1, var(--default-theme-background-1)) inset!important;-webkit-text-fill-color:var(--theme-color-1, var(--default-theme-color-1));color:var(--theme-color-1, var(--default-theme-color-1));border-radius:var(--theme-radius, var(--default-theme-radius))}.scalar-component.scalar-input:not(:-moz-placeholder-shown)+.scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input:not(:-moz-placeholder-shown)+.scalar-input-label[data-v-4717ec50]{transform:translate3d(0,-20px,0) scale(.8);transform-origin:top left}.scalar-component.scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-component.scalar-input:not(:placeholder-shown)+.scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input:not(:placeholder-shown)+.scalar-input-label[data-v-4717ec50]{transform:translate3d(0,-20px,0) scale(.8);transform-origin:top left}.scalar-component.scalar-input-wrapper-focus:has(button:active) .scalar-input-label[data-v-4717ec50],.scalar-component .scalar-input-wrapper-focus:has(button:active) .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-3, var(--default-theme-color-3))!important}.scalar-component,.scalar-component *{box-sizing:border-box;border-width:unset;border-style:unset;border-color:currentColor;font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:unset;font-weight:inherit;line-height:inherit;color:inherit;margin:unset;padding:unset}.scalar-component,.scalar-component *,.scalar-component:before,.scalar-component :before,.scalar-component:after,.scalar-component :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: }.scalar-component::backdrop,.scalar-component ::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: }.scalar-component.sr-only,.scalar-component .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.scalar-component.pointer-events-none,.scalar-component .pointer-events-none{pointer-events:none}.scalar-component.visible,.scalar-component .visible{visibility:visible}.scalar-component.fixed,.scalar-component .fixed{position:fixed}.scalar-component.absolute,.scalar-component .absolute{position:absolute}.scalar-component.relative,.scalar-component .relative{position:relative}.scalar-component.left-0,.scalar-component .left-0{left:0}.scalar-component.top-0,.scalar-component .top-0{top:0}.scalar-component.z-10,.scalar-component .z-10{z-index:10}.scalar-component.z-\\[1001\\],.scalar-component .z-\\[1001\\]{z-index:1001}.scalar-component.m-0,.scalar-component .m-0{margin:0}.scalar-component.mx-2,.scalar-component .mx-2{margin-left:8px;margin-right:8px}.scalar-component.mx-auto,.scalar-component .mx-auto{margin-left:auto;margin-right:auto}.scalar-component.my-3,.scalar-component .my-3{margin-top:12px;margin-bottom:12px}.scalar-component.mb-0,.scalar-component .mb-0{margin-bottom:0}.scalar-component.ml-2,.scalar-component .ml-2{margin-left:8px}.scalar-component.mr-2,.scalar-component .mr-2{margin-right:8px}.scalar-component.mt-1,.scalar-component .mt-1{margin-top:4px}.scalar-component.mt-1\\.5,.scalar-component .mt-1\\.5{margin-top:6px}.scalar-component.mt-20,.scalar-component .mt-20{margin-top:80px}.scalar-component.block,.scalar-component .block{display:block}.scalar-component.flex,.scalar-component .flex{display:flex}.scalar-component.grid,.scalar-component .grid{display:grid}.scalar-component.hidden,.scalar-component .hidden{display:none}.scalar-component.aspect-square,.scalar-component .aspect-square{aspect-ratio:1 / 1}.scalar-component.h-10,.scalar-component .h-10{height:40px}.scalar-component.h-3,.scalar-component .h-3{height:12px}.scalar-component.h-3\\.5,.scalar-component .h-3\\.5{height:14px}.scalar-component.h-4,.scalar-component .h-4{height:16px}.scalar-component.h-5,.scalar-component .h-5{height:20px}.scalar-component.h-6,.scalar-component .h-6{height:24px}.scalar-component.h-\\[100dvh\\],.scalar-component .h-\\[100dvh\\]{height:100dvh}.scalar-component.h-full,.scalar-component .h-full{height:100%}.scalar-component.max-h-\\[440px\\],.scalar-component .max-h-\\[440px\\]{max-height:440px}.scalar-component.max-h-\\[calc\\(100dvh-240px\\)\\],.scalar-component .max-h-\\[calc\\(100dvh-240px\\)\\]{max-height:calc(100dvh - 240px)}.scalar-component.min-h-\\[77px\\],.scalar-component .min-h-\\[77px\\]{min-height:77px}.scalar-component.w-10,.scalar-component .w-10{width:40px}.scalar-component.w-3,.scalar-component .w-3{width:12px}.scalar-component.w-3\\.5,.scalar-component .w-3\\.5{width:14px}.scalar-component.w-4,.scalar-component .w-4{width:16px}.scalar-component.w-5,.scalar-component .w-5{width:20px}.scalar-component.w-6,.scalar-component .w-6{width:24px}.scalar-component.w-\\[100dvw\\],.scalar-component .w-\\[100dvw\\]{width:100dvw}.scalar-component.w-full,.scalar-component .w-full{width:100%}.scalar-component.max-w-screen-lg,.scalar-component .max-w-screen-lg{max-width:800px}.scalar-component.max-w-screen-md,.scalar-component .max-w-screen-md{max-width:640px}.scalar-component.max-w-screen-sm,.scalar-component .max-w-screen-sm{max-width:540px}.scalar-component.max-w-screen-xs,.scalar-component .max-w-screen-xs{max-width:480px}.scalar-component.origin-top-left,.scalar-component .origin-top-left{transform-origin:top left}.scalar-component.transform,.scalar-component .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scalar-component.cursor-not-allowed,.scalar-component .cursor-not-allowed{cursor:not-allowed}.scalar-component.cursor-pointer,.scalar-component .cursor-pointer{cursor:pointer}.scalar-component.resize-none,.scalar-component .resize-none{resize:none}.scalar-component.appearance-none,.scalar-component .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.scalar-component.items-start,.scalar-component .items-start{align-items:flex-start}.scalar-component.items-center,.scalar-component .items-center{align-items:center}.scalar-component.justify-center,.scalar-component .justify-center{justify-content:center}.scalar-component.gap-1,.scalar-component .gap-1{gap:4px}.scalar-component.gap-4,.scalar-component .gap-4{gap:16px}.scalar-component.overflow-hidden,.scalar-component .overflow-hidden{overflow:hidden}.scalar-component.overflow-y-auto,.scalar-component .overflow-y-auto{overflow-y:auto}.scalar-component.rounded,.scalar-component .rounded{border-radius:var(--theme-radius, var(--default-theme-radius))}.scalar-component.rounded-lg,.scalar-component .rounded-lg{border-radius:var(--theme-radius-lg, var(--default-theme-radius-lg))}.scalar-component.border,.scalar-component .border{border-width:1px}.scalar-component.border-0,.scalar-component .border-0{border-width:0px}.scalar-component.border-solid,.scalar-component .border-solid{border-style:solid}.scalar-component.border-border,.scalar-component .border-border{border-color:var(--theme-border-color, var(--default-theme-border-color))}.scalar-component.border-error,.scalar-component .border-error{border-color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.border-fore-3,.scalar-component .border-fore-3{border-color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.bg-back-1,.scalar-component .bg-back-1{background-color:var(--theme-background-1, var(--default-theme-background-1))}.scalar-component.bg-back-2,.scalar-component .bg-back-2{background-color:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.bg-back-btn-1,.scalar-component .bg-back-btn-1{background-color:var(--theme-button-1, var(--default-theme-button-1))}.scalar-component.bg-backdrop,.scalar-component .bg-backdrop{background-color:#00000070}.scalar-component.bg-error,.scalar-component .bg-error{background-color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.bg-transparent,.scalar-component .bg-transparent{background-color:transparent}.scalar-component.p-0,.scalar-component .p-0{padding:0}.scalar-component.p-0\\.5,.scalar-component .p-0\\.5{padding:2px}.scalar-component.p-1,.scalar-component .p-1{padding:4px}.scalar-component.p-3,.scalar-component .p-3{padding:12px}.scalar-component.p-5,.scalar-component .p-5{padding:20px}.scalar-component.px-1,.scalar-component .px-1{padding-left:4px;padding-right:4px}.scalar-component.px-4,.scalar-component .px-4{padding-left:16px;padding-right:16px}.scalar-component.px-6,.scalar-component .px-6{padding-left:24px;padding-right:24px}.scalar-component.px-9,.scalar-component .px-9{padding-left:36px;padding-right:36px}.scalar-component.py-1,.scalar-component .py-1{padding-top:4px;padding-bottom:4px}.scalar-component.py-3,.scalar-component .py-3{padding-top:12px;padding-bottom:12px}.scalar-component.pb-0,.scalar-component .pb-0{padding-bottom:0}.scalar-component.pb-4,.scalar-component .pb-4{padding-bottom:16px}.scalar-component.pl-9,.scalar-component .pl-9{padding-left:36px}.scalar-component.pr-3,.scalar-component .pr-3{padding-right:12px}.scalar-component.pt-3,.scalar-component .pt-3{padding-top:12px}.scalar-component.pt-6,.scalar-component .pt-6{padding-top:24px}.scalar-component.text-left,.scalar-component .text-left{text-align:left}.scalar-component.text-sm,.scalar-component .text-sm{font-size:var(--theme-small, var(--default-theme-small, var(--theme-font-size-3, var(--default-theme-font-size-3))))}.scalar-component.text-xs,.scalar-component .text-xs{font-size:var(--theme-mini, var(--default-theme-mini, var(--theme-font-size-4, var(--default-theme-font-size-4))))}.scalar-component.font-medium,.scalar-component .font-medium{font-weight:var(--theme-font-medium, var(--default-theme-font-medium))}.scalar-component.font-normal,.scalar-component .font-normal{font-weight:400}.scalar-component.italic,.scalar-component .italic{font-style:italic}.scalar-component.text-error,.scalar-component .text-error{color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.text-fore-1,.scalar-component .text-fore-1{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.text-fore-3,.scalar-component .text-fore-3{color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-component.text-fore-btn-1,.scalar-component .text-fore-btn-1{color:var(--theme-button-1-color, var(--default-theme-button-1-color))}.scalar-component.text-ghost,.scalar-component .text-ghost{color:var(--theme-color-ghost, var(--default-theme-color-ghost))}.scalar-component.text-white,.scalar-component .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.scalar-component.opacity-0,.scalar-component .opacity-0{opacity:0}.scalar-component.shadow-none,.scalar-component .shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 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)}.scalar-component.shadow-sm,.scalar-component .shadow-sm{--tw-shadow: rgba(0, 0, 0, .09) 0px 1px 4px;--tw-shadow-colored: 0px 1px 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)}.scalar-component.outline-none,.scalar-component .outline-none{outline:2px solid transparent;outline-offset:2px}.scalar-component.outline,.scalar-component .outline{outline-style:solid}.scalar-component.blur,.scalar-component .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.filter,.scalar-component .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.transition,.scalar-component .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scalar-component.transition-opacity,.scalar-component .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scalar-component.transition-transform,.scalar-component .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.scalar-component.ease-in-out,.scalar-component .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.scalar-component.row,.scalar-component .row{display:flex;flex-direction:row}.scalar-component.col,.scalar-component .col{display:flex;flex-direction:column}.scalar-component.before\\:mr-1:before,.scalar-component .before\\:mr-1:before{content:var(--tw-content);margin-right:4px}.scalar-component.before\\:mr-1\\.5:before,.scalar-component .before\\:mr-1\\.5:before{content:var(--tw-content);margin-right:6px}.scalar-component.before\\:block:before,.scalar-component .before\\:block:before{content:var(--tw-content);display:block}.scalar-component.before\\:h-4:before,.scalar-component .before\\:h-4:before{content:var(--tw-content);height:16px}.scalar-component.before\\:w-4:before,.scalar-component .before\\:w-4:before{content:var(--tw-content);width:16px}.scalar-component.before\\:bg-error:before,.scalar-component .before\\:bg-error:before{content:var(--tw-content);background-color:var(--theme-error-color, var(--default-theme-color-red))}.scalar-component.before\\:text-center:before,.scalar-component .before\\:text-center:before{content:var(--tw-content);text-align:center}.scalar-component.before\\:text-xxs:before,.scalar-component .before\\:text-xxs:before{content:var(--tw-content);font-size:var(--theme-micro, var(--default-theme-micro, var(--theme-font-size-5, var(--default-theme-font-size-5))))}.scalar-component.before\\:font-black:before,.scalar-component .before\\:font-black:before{content:var(--tw-content);font-weight:900}.scalar-component.before\\:leading-4:before,.scalar-component .before\\:leading-4:before{content:var(--tw-content);line-height:16px}.scalar-component.before\\:text-white:before,.scalar-component .before\\:text-white:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.scalar-component.before\\:content-\\[\\'\\!\\'\\]:before,.scalar-component .before\\:content-\\[\\'\\!\\'\\]:before{--tw-content: "!";content:var(--tw-content)}.scalar-component.empty\\:hidden:empty,.scalar-component .empty\\:hidden:empty{display:none}.scalar-component.hover\\:text-fore-1:hover,.scalar-component .hover\\:text-fore-1:hover{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-component.active\\:bg-back-btn-1:active,.scalar-component .active\\:bg-back-btn-1:active{background-color:var(--theme-button-1, var(--default-theme-button-1))}.scalar-component.active\\:text-fore-2:active,.scalar-component .active\\:text-fore-2:active{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.active\\:shadow-none:active,.scalar-component .active\\:shadow-none:active{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 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)}.scalar-component.active\\:brightness-90:active,.scalar-component .active\\:brightness-90:active{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.has-actv-btn\\:border:has(button:active),.scalar-component .has-actv-btn\\:border:has(button:active){border-width:1px}.scalar-component.has-actv-btn\\:border-border:has(button:active),.scalar-component .has-actv-btn\\:border-border:has(button:active){border-color:var(--theme-border-color, var(--default-theme-border-color))}.scalar-component.\\!empty\\:flex:not(:empty),.scalar-component .\\!empty\\:flex:not(:empty){display:flex}.scalar-component.\\!empty\\:w-7:not(:empty),.scalar-component .\\!empty\\:w-7:not(:empty){width:28px}.scalar-component.\\!empty\\:items-center:not(:empty),.scalar-component .\\!empty\\:items-center:not(:empty){align-items:center}.scalar-component.\\!empty\\:pr-3:not(:empty),.scalar-component .\\!empty\\:pr-3:not(:empty){padding-right:12px}.scalar-component.hocus\\:bg-back-2:hover,.scalar-component .hocus\\:bg-back-2:hover{background-color:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.hocus\\:bg-hover-btn-1:hover,.scalar-component .hocus\\:bg-hover-btn-1:hover{background-color:var(--theme-button-1-hover, var(--default-theme-button-1-hover))}.scalar-component.hocus\\:text-fore-2:hover,.scalar-component .hocus\\:text-fore-2:hover{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.hocus\\:brightness-90:hover,.scalar-component .hocus\\:brightness-90:hover{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.scalar-component.hocus\\:bg-back-2:focus-visible,.scalar-component .hocus\\:bg-back-2:focus-visible{background-color:var(--theme-background-2, var(--default-theme-background-2))}.scalar-component.hocus\\:bg-hover-btn-1:focus-visible,.scalar-component .hocus\\:bg-hover-btn-1:focus-visible{background-color:var(--theme-button-1-hover, var(--default-theme-button-1-hover))}.scalar-component.hocus\\:text-fore-2:focus-visible,.scalar-component .hocus\\:text-fore-2:focus-visible{color:var(--theme-color-2, var(--default-theme-color-2))}.scalar-component.hocus\\:brightness-90:focus-visible,.scalar-component .hocus\\:brightness-90:focus-visible{--tw-brightness: brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.scalar-component.md\\:row,.scalar-component .md\\:row{display:flex;flex-direction:row}}`)),document.head.appendChild(a)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { defineComponent as I, useCssVars as Q, openBlock as w, createElementBlock as C, normalizeClass as k, unref as v, createElementVNode as A, createCommentVNode as T, createStaticVNode as ee, reactive as V, computed as H, useAttrs as F, mergeProps as U, renderSlot as B, createVNode as D, ref as z, watch as te, nextTick as re, onMounted as Z, toDisplayString as M, defineAsyncComponent as ae, h as ne, createBlock as P, withCtx as O, normalizeStyle as W, createTextVNode as oe, resolveDynamicComponent as se, withKeys as le } from "vue";
3
+ import { defineConfig as ie } from "cva";
4
+ import { extendTailwindMerge as ce } from "tailwind-merge";
5
+ import de from "prismjs";
6
+ import { Dialog as ue, DialogPanel as pe, DialogTitle as me, DialogDescription as he } from "@headlessui/vue";
7
+ import { useTextareaAutosize as ve } from "@vueuse/core";
8
+ import { nanoid as ge } from "nanoid";
9
+ const R = "scalar-component", fe = ce({
8
10
  extend: {
9
11
  classGroups: {
10
12
  // Add the scalar class prefix as a custom class to be deduped by tailwind-merge
11
- [M]: [M]
13
+ [R]: [R]
12
14
  }
13
15
  }
14
- }), { cva: m, cx: c, compose: et } = G({
16
+ }), { cva: N, cx: E, compose: vt } = ie({
15
17
  hooks: {
16
- onComplete: (o) => `${re(o, M)}`
18
+ onComplete: (r) => `${fe(r, R)}`
17
19
  }
18
- }), ae = /* @__PURE__ */ E('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-0f0b7a55></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-0f0b7a55></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-0f0b7a55></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-0f0b7a55></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-0f0b7a55></path>', 5), ne = {
20
+ }), be = /* @__PURE__ */ ee('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-42a08e16></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-42a08e16></path>', 5), ke = {
19
21
  key: 0,
20
22
  class: "circular-loader"
21
23
  };
22
- function tt() {
24
+ function gt() {
23
25
  return V({
24
26
  isValid: !1,
25
27
  isInvalid: !1,
@@ -30,44 +32,44 @@ function tt() {
30
32
  stopLoading() {
31
33
  this.isLoading = !1;
32
34
  },
33
- validate(o = 800) {
35
+ validate(r = 800) {
34
36
  this.isValid = !0;
35
- const t = o - 300;
37
+ const t = r - 300;
36
38
  return new Promise(
37
39
  (e) => setTimeout(() => this.clear().then(() => e(!0)), t)
38
40
  );
39
41
  },
40
- invalidate(o = 1100) {
42
+ invalidate(r = 1100) {
41
43
  this.isInvalid = !0;
42
- const t = o - 300;
44
+ const t = r - 300;
43
45
  return new Promise(
44
46
  (e) => setTimeout(() => this.clear().then(() => e(!0)), t)
45
47
  );
46
48
  },
47
- clear(o = 300) {
49
+ clear(r = 300) {
48
50
  return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((t) => {
49
51
  setTimeout(() => {
50
52
  t(!0);
51
- }, o);
53
+ }, r);
52
54
  });
53
55
  }
54
56
  });
55
57
  }
56
- const le = /* @__PURE__ */ g({
58
+ const we = /* @__PURE__ */ I({
57
59
  __name: "ScalarLoading",
58
60
  props: {
59
61
  loadingState: {},
60
62
  size: { default: "24px" }
61
63
  },
62
- setup(o) {
63
- return O((t) => ({
64
- "50aa2fee": t.size
65
- })), (t, e) => t.loadingState ? (l(), d("div", {
64
+ setup(r) {
65
+ return Q((t) => ({
66
+ "8d3a1414": t.size
67
+ })), (t, e) => t.loadingState ? (w(), C("div", {
66
68
  key: 0,
67
- class: s(a(c)("loader-wrapper"))
69
+ class: k(v(E)("loader-wrapper"))
68
70
  }, [
69
- (l(), d("svg", {
70
- class: s(["svg-loader", {
71
+ (w(), C("svg", {
72
+ class: k(["svg-loader", {
71
73
  "icon-is-valid": t.loadingState.isValid,
72
74
  "icon-is-invalid": t.loadingState.isInvalid
73
75
  }]),
@@ -75,10 +77,10 @@ const le = /* @__PURE__ */ g({
75
77
  xmlns: "http://www.w3.org/2000/svg",
76
78
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
77
79
  }, [
78
- ae,
79
- t.loadingState.isLoading ? (l(), d("g", ne, [
80
- v("circle", {
81
- class: s(["loader-path", {
80
+ be,
81
+ t.loadingState.isLoading ? (w(), C("g", ke, [
82
+ A("circle", {
83
+ class: k(["loader-path", {
82
84
  "loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
83
85
  }]),
84
86
  cx: "50",
@@ -87,16 +89,16 @@ const le = /* @__PURE__ */ g({
87
89
  r: "20",
88
90
  "stroke-width": "2"
89
91
  }, null, 2)
90
- ])) : h("", !0)
92
+ ])) : T("", !0)
91
93
  ], 2))
92
- ], 2)) : h("", !0);
94
+ ], 2)) : T("", !0);
93
95
  }
94
- }), z = (o, t) => {
95
- const e = o.__vccOpts || o;
96
- for (const [n, i] of t)
97
- e[n] = i;
96
+ }), $ = (r, t) => {
97
+ const e = r.__vccOpts || r;
98
+ for (const [s, d] of t)
99
+ e[s] = d;
98
100
  return e;
99
- }, D = /* @__PURE__ */ z(le, [["__scopeId", "data-v-0f0b7a55"]]), F = {
101
+ }, X = /* @__PURE__ */ $(we, [["__scopeId", "data-v-42a08e16"]]), K = {
100
102
  solid: [
101
103
  "scalar-button-solid",
102
104
  "bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
@@ -113,7 +115,7 @@ const le = /* @__PURE__ */ g({
113
115
  "scalar-button-danger",
114
116
  "bg-error text-white active:brightness-90 hocus:brightness-90"
115
117
  ]
116
- }, se = m({
118
+ }, _e = N({
117
119
  base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
118
120
  variants: {
119
121
  disabled: {
@@ -121,7 +123,7 @@ const le = /* @__PURE__ */ g({
121
123
  },
122
124
  fullWidth: { true: "w-full" },
123
125
  size: { md: "h-10 px-6 text-sm" },
124
- variant: F
126
+ variant: K
125
127
  },
126
128
  compoundVariants: [
127
129
  {
@@ -130,13 +132,13 @@ const le = /* @__PURE__ */ g({
130
132
  class: "bg-transparent text-ghost"
131
133
  }
132
134
  ]
133
- }), ie = ["ariaDisabled"], de = {
135
+ }), Se = ["ariaDisabled"], ye = {
134
136
  key: 0,
135
137
  class: "mr-2 h-4 w-4"
136
- }, ce = {
138
+ }, xe = {
137
139
  key: 1,
138
140
  class: "ml-2"
139
- }, ue = /* @__PURE__ */ g({
141
+ }, Ce = /* @__PURE__ */ I({
140
142
  inheritAttrs: !1,
141
143
  __name: "ScalarButton",
142
144
  props: {
@@ -146,84 +148,837 @@ const le = /* @__PURE__ */ g({
146
148
  size: { default: "md" },
147
149
  variant: { default: "solid" }
148
150
  },
149
- setup(o) {
150
- const t = $(() => {
151
- const { class: e, ...n } = j();
152
- return { className: e || "", rest: n };
151
+ setup(r) {
152
+ const t = H(() => {
153
+ const { class: e, ...s } = F();
154
+ return { className: e || "", rest: s };
153
155
  });
154
- return (e, n) => (l(), d("button", T(t.value.rest, {
156
+ return (e, s) => (w(), C("button", U(t.value.rest, {
155
157
  ariaDisabled: e.disabled || void 0,
156
- class: a(c)(
157
- a(se)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
158
+ class: v(E)(
159
+ v(_e)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
158
160
  { "pl-9 pr-3": e.loading },
159
161
  `${t.value.className}`
160
162
  ),
161
163
  type: "button"
162
164
  }), [
163
- e.$slots.icon ? (l(), d("div", de, [
164
- k(e.$slots, "icon")
165
- ])) : h("", !0),
166
- k(e.$slots, "default"),
167
- e.loading ? (l(), d("div", ce, [
168
- x(a(D), {
165
+ e.$slots.icon ? (w(), C("div", ye, [
166
+ B(e.$slots, "icon")
167
+ ])) : T("", !0),
168
+ B(e.$slots, "default"),
169
+ e.loading ? (w(), C("div", xe, [
170
+ D(v(X), {
169
171
  loadingState: e.loading,
170
172
  size: "20px"
171
173
  }, null, 8, ["loadingState"])
172
- ])) : h("", !0)
173
- ], 16, ie));
174
+ ])) : T("", !0)
175
+ ], 16, Se));
174
176
  }
175
- }), he = (o) => Object.fromEntries(Array.from(o).map((t) => [t.name, t.value])), ve = (o) => ({ raw: t }) => {
176
- const n = new o().parseFromString(t, "image/svg+xml");
177
- if (n.getElementsByTagName("parsererror").length)
177
+ });
178
+ (function(r) {
179
+ var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
180
+ pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
181
+ lookbehind: !0,
182
+ alias: "punctuation",
183
+ // this looks reasonably well in all themes
184
+ inside: null
185
+ // see below
186
+ }, s = {
187
+ bash: e,
188
+ environment: {
189
+ pattern: RegExp("\\$" + t),
190
+ alias: "constant"
191
+ },
192
+ variable: [
193
+ // [0]: Arithmetic Environment
194
+ {
195
+ pattern: /\$?\(\([\s\S]+?\)\)/,
196
+ greedy: !0,
197
+ inside: {
198
+ // If there is a $ sign at the beginning highlight $(( and )) as variable
199
+ variable: [
200
+ {
201
+ pattern: /(^\$\(\([\s\S]+)\)\)/,
202
+ lookbehind: !0
203
+ },
204
+ /^\$\(\(/
205
+ ],
206
+ number: /\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
207
+ // Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
208
+ operator: /--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
209
+ // If there is no $ sign at the beginning highlight (( and )) as punctuation
210
+ punctuation: /\(\(?|\)\)?|,|;/
211
+ }
212
+ },
213
+ // [1]: Command Substitution
214
+ {
215
+ pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
216
+ greedy: !0,
217
+ inside: {
218
+ variable: /^\$\(|^`|\)$|`$/
219
+ }
220
+ },
221
+ // [2]: Brace expansion
222
+ {
223
+ pattern: /\$\{[^}]+\}/,
224
+ greedy: !0,
225
+ inside: {
226
+ operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
227
+ punctuation: /[\[\]]/,
228
+ environment: {
229
+ pattern: RegExp("(\\{)" + t),
230
+ lookbehind: !0,
231
+ alias: "constant"
232
+ }
233
+ }
234
+ },
235
+ /\$(?:\w+|[#?*!@$])/
236
+ ],
237
+ // Escape sequences from echo and printf's manuals, and escaped quotes.
238
+ entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
239
+ };
240
+ r.languages.bash = {
241
+ shebang: {
242
+ pattern: /^#!\s*\/.*/,
243
+ alias: "important"
244
+ },
245
+ comment: {
246
+ pattern: /(^|[^"{\\$])#.*/,
247
+ lookbehind: !0
248
+ },
249
+ "function-name": [
250
+ // a) function foo {
251
+ // b) foo() {
252
+ // c) function foo() {
253
+ // but not “foo {”
254
+ {
255
+ // a) and c)
256
+ pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
257
+ lookbehind: !0,
258
+ alias: "function"
259
+ },
260
+ {
261
+ // b)
262
+ pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
263
+ alias: "function"
264
+ }
265
+ ],
266
+ // Highlight variable names as variables in for and select beginnings.
267
+ "for-or-select": {
268
+ pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
269
+ alias: "variable",
270
+ lookbehind: !0
271
+ },
272
+ // Highlight variable names as variables in the left-hand part
273
+ // of assignments (“=” and “+=”).
274
+ "assign-left": {
275
+ pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
276
+ inside: {
277
+ environment: {
278
+ pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t),
279
+ lookbehind: !0,
280
+ alias: "constant"
281
+ }
282
+ },
283
+ alias: "variable",
284
+ lookbehind: !0
285
+ },
286
+ // Highlight parameter names as variables
287
+ parameter: {
288
+ pattern: /(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,
289
+ alias: "variable",
290
+ lookbehind: !0
291
+ },
292
+ string: [
293
+ // Support for Here-documents https://en.wikipedia.org/wiki/Here_document
294
+ {
295
+ pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
296
+ lookbehind: !0,
297
+ greedy: !0,
298
+ inside: s
299
+ },
300
+ // Here-document with quotes around the tag
301
+ // → No expansion (so no “inside”).
302
+ {
303
+ pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
304
+ lookbehind: !0,
305
+ greedy: !0,
306
+ inside: {
307
+ bash: e
308
+ }
309
+ },
310
+ // “Normal” string
311
+ {
312
+ // https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
313
+ pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
314
+ lookbehind: !0,
315
+ greedy: !0,
316
+ inside: s
317
+ },
318
+ {
319
+ // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
320
+ pattern: /(^|[^$\\])'[^']*'/,
321
+ lookbehind: !0,
322
+ greedy: !0
323
+ },
324
+ {
325
+ // https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
326
+ pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
327
+ greedy: !0,
328
+ inside: {
329
+ entity: s.entity
330
+ }
331
+ }
332
+ ],
333
+ environment: {
334
+ pattern: RegExp("\\$?" + t),
335
+ alias: "constant"
336
+ },
337
+ variable: s.variable,
338
+ function: {
339
+ pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
340
+ lookbehind: !0
341
+ },
342
+ keyword: {
343
+ pattern: /(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
344
+ lookbehind: !0
345
+ },
346
+ // https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
347
+ builtin: {
348
+ pattern: /(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
349
+ lookbehind: !0,
350
+ // Alias added to make those easier to distinguish from strings.
351
+ alias: "class-name"
352
+ },
353
+ boolean: {
354
+ pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
355
+ lookbehind: !0
356
+ },
357
+ "file-descriptor": {
358
+ pattern: /\B&\d\b/,
359
+ alias: "important"
360
+ },
361
+ operator: {
362
+ // Lots of redirections here, but not just that.
363
+ pattern: /\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
364
+ inside: {
365
+ "file-descriptor": {
366
+ pattern: /^\d/,
367
+ alias: "important"
368
+ }
369
+ }
370
+ },
371
+ punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
372
+ number: {
373
+ pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
374
+ lookbehind: !0
375
+ }
376
+ }, e.inside = r.languages.bash;
377
+ for (var d = [
378
+ "comment",
379
+ "function-name",
380
+ "for-or-select",
381
+ "assign-left",
382
+ "parameter",
383
+ "string",
384
+ "environment",
385
+ "function",
386
+ "keyword",
387
+ "builtin",
388
+ "boolean",
389
+ "file-descriptor",
390
+ "operator",
391
+ "punctuation",
392
+ "number"
393
+ ], f = s.variable[1].inside, n = 0; n < d.length; n++)
394
+ f[d[n]] = r.languages.bash[d[n]];
395
+ r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
396
+ })(Prism);
397
+ Prism.languages.json = {
398
+ property: {
399
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
400
+ lookbehind: !0,
401
+ greedy: !0
402
+ },
403
+ string: {
404
+ pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,
405
+ lookbehind: !0,
406
+ greedy: !0
407
+ },
408
+ comment: {
409
+ pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,
410
+ greedy: !0
411
+ },
412
+ number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
413
+ punctuation: /[{}[\],]/,
414
+ operator: /:/,
415
+ boolean: /\b(?:false|true)\b/,
416
+ null: {
417
+ pattern: /\bnull\b/,
418
+ alias: "keyword"
419
+ }
420
+ };
421
+ Prism.languages.webmanifest = Prism.languages.json;
422
+ (function() {
423
+ if (typeof Prism > "u" || typeof document > "u")
424
+ return;
425
+ var r = (
426
+ /*dependencies_placeholder[*/
427
+ {
428
+ javascript: "clike",
429
+ actionscript: "javascript",
430
+ apex: [
431
+ "clike",
432
+ "sql"
433
+ ],
434
+ arduino: "cpp",
435
+ aspnet: [
436
+ "markup",
437
+ "csharp"
438
+ ],
439
+ birb: "clike",
440
+ bison: "c",
441
+ c: "clike",
442
+ csharp: "clike",
443
+ cpp: "c",
444
+ cfscript: "clike",
445
+ chaiscript: [
446
+ "clike",
447
+ "cpp"
448
+ ],
449
+ cilkc: "c",
450
+ cilkcpp: "cpp",
451
+ coffeescript: "javascript",
452
+ crystal: "ruby",
453
+ "css-extras": "css",
454
+ d: "clike",
455
+ dart: "clike",
456
+ django: "markup-templating",
457
+ ejs: [
458
+ "javascript",
459
+ "markup-templating"
460
+ ],
461
+ etlua: [
462
+ "lua",
463
+ "markup-templating"
464
+ ],
465
+ erb: [
466
+ "ruby",
467
+ "markup-templating"
468
+ ],
469
+ fsharp: "clike",
470
+ "firestore-security-rules": "clike",
471
+ flow: "javascript",
472
+ ftl: "markup-templating",
473
+ gml: "clike",
474
+ glsl: "c",
475
+ go: "clike",
476
+ gradle: "clike",
477
+ groovy: "clike",
478
+ haml: "ruby",
479
+ handlebars: "markup-templating",
480
+ haxe: "clike",
481
+ hlsl: "c",
482
+ idris: "haskell",
483
+ java: "clike",
484
+ javadoc: [
485
+ "markup",
486
+ "java",
487
+ "javadoclike"
488
+ ],
489
+ jolie: "clike",
490
+ jsdoc: [
491
+ "javascript",
492
+ "javadoclike",
493
+ "typescript"
494
+ ],
495
+ "js-extras": "javascript",
496
+ json5: "json",
497
+ jsonp: "json",
498
+ "js-templates": "javascript",
499
+ kotlin: "clike",
500
+ latte: [
501
+ "clike",
502
+ "markup-templating",
503
+ "php"
504
+ ],
505
+ less: "css",
506
+ lilypond: "scheme",
507
+ liquid: "markup-templating",
508
+ markdown: "markup",
509
+ "markup-templating": "markup",
510
+ mongodb: "javascript",
511
+ n4js: "javascript",
512
+ objectivec: "c",
513
+ opencl: "c",
514
+ parser: "markup",
515
+ php: "markup-templating",
516
+ phpdoc: [
517
+ "php",
518
+ "javadoclike"
519
+ ],
520
+ "php-extras": "php",
521
+ plsql: "sql",
522
+ processing: "clike",
523
+ protobuf: "clike",
524
+ pug: [
525
+ "markup",
526
+ "javascript"
527
+ ],
528
+ purebasic: "clike",
529
+ purescript: "haskell",
530
+ qsharp: "clike",
531
+ qml: "javascript",
532
+ qore: "clike",
533
+ racket: "scheme",
534
+ cshtml: [
535
+ "markup",
536
+ "csharp"
537
+ ],
538
+ jsx: [
539
+ "markup",
540
+ "javascript"
541
+ ],
542
+ tsx: [
543
+ "jsx",
544
+ "typescript"
545
+ ],
546
+ reason: "clike",
547
+ ruby: "clike",
548
+ sass: "css",
549
+ scss: "css",
550
+ scala: "java",
551
+ "shell-session": "bash",
552
+ smarty: "markup-templating",
553
+ solidity: "clike",
554
+ soy: "markup-templating",
555
+ sparql: "turtle",
556
+ sqf: "clike",
557
+ squirrel: "clike",
558
+ stata: [
559
+ "mata",
560
+ "java",
561
+ "python"
562
+ ],
563
+ "t4-cs": [
564
+ "t4-templating",
565
+ "csharp"
566
+ ],
567
+ "t4-vb": [
568
+ "t4-templating",
569
+ "vbnet"
570
+ ],
571
+ tap: "yaml",
572
+ tt2: [
573
+ "clike",
574
+ "markup-templating"
575
+ ],
576
+ textile: "markup",
577
+ twig: "markup-templating",
578
+ typescript: "javascript",
579
+ v: "clike",
580
+ vala: "clike",
581
+ vbnet: "basic",
582
+ velocity: "markup",
583
+ wiki: "markup",
584
+ xeora: "markup",
585
+ "xml-doc": "markup",
586
+ xquery: "markup"
587
+ }
588
+ ), t = (
589
+ /*aliases_placeholder[*/
590
+ {
591
+ html: "markup",
592
+ xml: "markup",
593
+ svg: "markup",
594
+ mathml: "markup",
595
+ ssml: "markup",
596
+ atom: "markup",
597
+ rss: "markup",
598
+ js: "javascript",
599
+ g4: "antlr4",
600
+ ino: "arduino",
601
+ "arm-asm": "armasm",
602
+ art: "arturo",
603
+ adoc: "asciidoc",
604
+ avs: "avisynth",
605
+ avdl: "avro-idl",
606
+ gawk: "awk",
607
+ sh: "bash",
608
+ shell: "bash",
609
+ shortcode: "bbcode",
610
+ rbnf: "bnf",
611
+ oscript: "bsl",
612
+ cs: "csharp",
613
+ dotnet: "csharp",
614
+ cfc: "cfscript",
615
+ "cilk-c": "cilkc",
616
+ "cilk-cpp": "cilkcpp",
617
+ cilk: "cilkcpp",
618
+ coffee: "coffeescript",
619
+ conc: "concurnas",
620
+ jinja2: "django",
621
+ "dns-zone": "dns-zone-file",
622
+ dockerfile: "docker",
623
+ gv: "dot",
624
+ eta: "ejs",
625
+ xlsx: "excel-formula",
626
+ xls: "excel-formula",
627
+ gamemakerlanguage: "gml",
628
+ po: "gettext",
629
+ gni: "gn",
630
+ ld: "linker-script",
631
+ "go-mod": "go-module",
632
+ hbs: "handlebars",
633
+ mustache: "handlebars",
634
+ hs: "haskell",
635
+ idr: "idris",
636
+ gitignore: "ignore",
637
+ hgignore: "ignore",
638
+ npmignore: "ignore",
639
+ webmanifest: "json",
640
+ kt: "kotlin",
641
+ kts: "kotlin",
642
+ kum: "kumir",
643
+ tex: "latex",
644
+ context: "latex",
645
+ ly: "lilypond",
646
+ emacs: "lisp",
647
+ elisp: "lisp",
648
+ "emacs-lisp": "lisp",
649
+ md: "markdown",
650
+ moon: "moonscript",
651
+ n4jsd: "n4js",
652
+ nani: "naniscript",
653
+ objc: "objectivec",
654
+ qasm: "openqasm",
655
+ objectpascal: "pascal",
656
+ px: "pcaxis",
657
+ pcode: "peoplecode",
658
+ plantuml: "plant-uml",
659
+ pq: "powerquery",
660
+ mscript: "powerquery",
661
+ pbfasm: "purebasic",
662
+ purs: "purescript",
663
+ py: "python",
664
+ qs: "qsharp",
665
+ rkt: "racket",
666
+ razor: "cshtml",
667
+ rpy: "renpy",
668
+ res: "rescript",
669
+ robot: "robotframework",
670
+ rb: "ruby",
671
+ "sh-session": "shell-session",
672
+ shellsession: "shell-session",
673
+ smlnj: "sml",
674
+ sol: "solidity",
675
+ sln: "solution-file",
676
+ rq: "sparql",
677
+ sclang: "supercollider",
678
+ t4: "t4-cs",
679
+ trickle: "tremor",
680
+ troy: "tremor",
681
+ trig: "turtle",
682
+ ts: "typescript",
683
+ tsconfig: "typoscript",
684
+ uscript: "unrealscript",
685
+ uc: "unrealscript",
686
+ url: "uri",
687
+ vb: "visual-basic",
688
+ vba: "visual-basic",
689
+ webidl: "web-idl",
690
+ mathematica: "wolfram",
691
+ nb: "wolfram",
692
+ wl: "wolfram",
693
+ xeoracube: "xeora",
694
+ yml: "yaml"
695
+ }
696
+ ), e = {}, s = "none", d = "components/", f = Prism.util.currentScript();
697
+ if (f) {
698
+ var n = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, m = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, o = f.getAttribute("data-autoloader-path");
699
+ if (o != null)
700
+ d = o.trim().replace(/\/?$/, "/");
701
+ else {
702
+ var c = f.src;
703
+ n.test(c) ? d = c.replace(n, "components/") : m.test(c) && (d = c.replace(m, "$1components/"));
704
+ }
705
+ }
706
+ var h = Prism.plugins.autoloader = {
707
+ languages_path: d,
708
+ use_minified: !0,
709
+ loadLanguages: y
710
+ };
711
+ function i(a, u, g) {
712
+ var p = document.createElement("script");
713
+ p.src = a, p.async = !0, p.onload = function() {
714
+ document.body.removeChild(p), u && u();
715
+ }, p.onerror = function() {
716
+ document.body.removeChild(p), g && g();
717
+ }, document.body.appendChild(p);
718
+ }
719
+ function b(a) {
720
+ var u = (a.getAttribute("data-dependencies") || "").trim();
721
+ if (!u) {
722
+ var g = a.parentElement;
723
+ g && g.tagName.toLowerCase() === "pre" && (u = (g.getAttribute("data-dependencies") || "").trim());
724
+ }
725
+ return u ? u.split(/\s*,\s*/g) : [];
726
+ }
727
+ function l(a) {
728
+ if (a.indexOf("!") >= 0)
729
+ return !1;
730
+ if (a = t[a] || a, a in Prism.languages)
731
+ return !0;
732
+ var u = e[a];
733
+ return u && !u.error && u.loading === !1;
734
+ }
735
+ function _(a) {
736
+ return h.languages_path + "prism-" + a + (h.use_minified ? ".min" : "") + ".js";
737
+ }
738
+ function y(a, u, g) {
739
+ typeof a == "string" && (a = [a]);
740
+ var p = a.length, L = 0, x = !1;
741
+ if (p === 0) {
742
+ u && setTimeout(u, 0);
743
+ return;
744
+ }
745
+ function S() {
746
+ x || (L++, L === p && u && u(a));
747
+ }
748
+ a.forEach(function(G) {
749
+ J(G, S, function() {
750
+ x || (x = !0, g && g(G));
751
+ });
752
+ });
753
+ }
754
+ function J(a, u, g) {
755
+ var p = a.indexOf("!") >= 0;
756
+ a = a.replace("!", ""), a = t[a] || a;
757
+ function L() {
758
+ var S = e[a];
759
+ S || (S = e[a] = {
760
+ callbacks: []
761
+ }), S.callbacks.push({
762
+ success: u,
763
+ error: g
764
+ }), !p && l(a) ? j(a, "success") : !p && S.error ? j(a, "error") : (p || !S.loading) && (S.loading = !0, S.error = !1, i(_(a), function() {
765
+ S.loading = !1, j(a, "success");
766
+ }, function() {
767
+ S.loading = !1, S.error = !0, j(a, "error");
768
+ }));
769
+ }
770
+ var x = r[a];
771
+ x && x.length ? y(x, L, g) : L();
772
+ }
773
+ function j(a, u) {
774
+ if (e[a]) {
775
+ for (var g = e[a].callbacks, p = 0, L = g.length; p < L; p++) {
776
+ var x = g[p][u];
777
+ x && setTimeout(x, 0);
778
+ }
779
+ g.length = 0;
780
+ }
781
+ }
782
+ Prism.hooks.add("complete", function(a) {
783
+ var u = a.element, g = a.language;
784
+ if (!(!u || !g || g === s)) {
785
+ var p = b(u);
786
+ /^diff-./i.test(g) ? (p.push("diff"), p.push(g.substr(5))) : p.push(g), p.every(l) || y(p, function() {
787
+ Prism.highlightElement(u);
788
+ });
789
+ }
790
+ });
791
+ })();
792
+ (function() {
793
+ if (typeof Prism > "u" || typeof document > "u")
794
+ return;
795
+ var r = "line-numbers", t = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
796
+ /**
797
+ * Get node for provided line number
798
+ *
799
+ * @param {Element} element pre element
800
+ * @param {number} number line number
801
+ * @returns {Element|undefined}
802
+ */
803
+ getLine: function(n, m) {
804
+ if (!(n.tagName !== "PRE" || !n.classList.contains(r))) {
805
+ var o = n.querySelector(".line-numbers-rows");
806
+ if (o) {
807
+ var c = parseInt(n.getAttribute("data-start"), 10) || 1, h = c + (o.children.length - 1);
808
+ m < c && (m = c), m > h && (m = h);
809
+ var i = m - c;
810
+ return o.children[i];
811
+ }
812
+ }
813
+ },
814
+ /**
815
+ * Resizes the line numbers of the given element.
816
+ *
817
+ * This function will not add line numbers. It will only resize existing ones.
818
+ *
819
+ * @param {HTMLElement} element A `<pre>` element with line numbers.
820
+ * @returns {void}
821
+ */
822
+ resize: function(n) {
823
+ s([n]);
824
+ },
825
+ /**
826
+ * Whether the plugin can assume that the units font sizes and margins are not depended on the size of
827
+ * the current viewport.
828
+ *
829
+ * Setting this to `true` will allow the plugin to do certain optimizations for better performance.
830
+ *
831
+ * Set this to `false` if you use any of the following CSS units: `vh`, `vw`, `vmin`, `vmax`.
832
+ *
833
+ * @type {boolean}
834
+ */
835
+ assumeViewportIndependence: !0
836
+ };
837
+ function s(n) {
838
+ if (n = n.filter(function(o) {
839
+ var c = d(o), h = c["white-space"];
840
+ return h === "pre-wrap" || h === "pre-line";
841
+ }), n.length != 0) {
842
+ var m = n.map(function(o) {
843
+ var c = o.querySelector("code"), h = o.querySelector(".line-numbers-rows");
844
+ if (!(!c || !h)) {
845
+ var i = o.querySelector(".line-numbers-sizer"), b = c.textContent.split(t);
846
+ i || (i = document.createElement("span"), i.className = "line-numbers-sizer", c.appendChild(i)), i.innerHTML = "0", i.style.display = "block";
847
+ var l = i.getBoundingClientRect().height;
848
+ return i.innerHTML = "", {
849
+ element: o,
850
+ lines: b,
851
+ lineHeights: [],
852
+ oneLinerHeight: l,
853
+ sizer: i
854
+ };
855
+ }
856
+ }).filter(Boolean);
857
+ m.forEach(function(o) {
858
+ var c = o.sizer, h = o.lines, i = o.lineHeights, b = o.oneLinerHeight;
859
+ i[h.length - 1] = void 0, h.forEach(function(l, _) {
860
+ if (l && l.length > 1) {
861
+ var y = c.appendChild(document.createElement("span"));
862
+ y.style.display = "block", y.textContent = l;
863
+ } else
864
+ i[_] = b;
865
+ });
866
+ }), m.forEach(function(o) {
867
+ for (var c = o.sizer, h = o.lineHeights, i = 0, b = 0; b < h.length; b++)
868
+ h[b] === void 0 && (h[b] = c.children[i++].getBoundingClientRect().height);
869
+ }), m.forEach(function(o) {
870
+ var c = o.sizer, h = o.element.querySelector(".line-numbers-rows");
871
+ c.style.display = "none", c.innerHTML = "", o.lineHeights.forEach(function(i, b) {
872
+ h.children[b].style.height = i + "px";
873
+ });
874
+ });
875
+ }
876
+ }
877
+ function d(n) {
878
+ return n ? window.getComputedStyle ? getComputedStyle(n) : n.currentStyle || null : null;
879
+ }
880
+ var f = void 0;
881
+ window.addEventListener("resize", function() {
882
+ e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, s(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
883
+ }), Prism.hooks.add("complete", function(n) {
884
+ if (n.code) {
885
+ var m = (
886
+ /** @type {Element} */
887
+ n.element
888
+ ), o = (
889
+ /** @type {HTMLElement} */
890
+ m.parentNode
891
+ );
892
+ if (!(!o || !/pre/i.test(o.nodeName)) && !m.querySelector(".line-numbers-rows") && Prism.util.isActive(m, r)) {
893
+ m.classList.remove(r), o.classList.add(r);
894
+ var c = n.code.match(t), h = c ? c.length + 1 : 1, i, b = new Array(h + 1).join("<span></span>");
895
+ i = document.createElement("span"), i.setAttribute("aria-hidden", "true"), i.className = "line-numbers-rows", i.innerHTML = b, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), n.element.appendChild(i), s([o]), Prism.hooks.run("line-numbers", n);
896
+ }
897
+ }
898
+ }), Prism.hooks.add("line-numbers", function(n) {
899
+ n.plugins = n.plugins || {}, n.plugins.lineNumbers = !0;
900
+ });
901
+ })();
902
+ const ft = /* @__PURE__ */ I({
903
+ __name: "ScalarCodeBlock",
904
+ props: {
905
+ content: {},
906
+ lang: { default: "js" },
907
+ lineNumbers: { type: Boolean, default: !1 }
908
+ },
909
+ setup(r) {
910
+ const t = r, { plugins: e, highlightElement: s } = de, d = z(null), f = H(() => t.lang === "node" ? "js" : t.lang);
911
+ return e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/", te(
912
+ () => [t.lang, t.content],
913
+ () => {
914
+ d.value && re(() => s(d.value));
915
+ }
916
+ ), Z(() => {
917
+ d.value && s(d.value);
918
+ }), (n, m) => (w(), C("pre", {
919
+ class: k(["scalar-component scalar-codeblock-pre", {
920
+ "line-numbers": n.lineNumbers
921
+ }])
922
+ }, [
923
+ A("code", {
924
+ ref_key: "el",
925
+ ref: d,
926
+ class: k(`scalar-codeblock-code lang-${f.value}`)
927
+ }, M(n.content), 3)
928
+ ], 2));
929
+ }
930
+ }), Ee = (r) => Object.fromEntries(Array.from(r).map((t) => [t.name, t.value])), Le = (r) => ({ raw: t }) => {
931
+ const s = new r().parseFromString(t, "image/svg+xml");
932
+ if (s.getElementsByTagName("parsererror").length)
178
933
  return;
179
- const i = n.documentElement, p = he(i.attributes), { width: f, height: w, ...b } = p;
180
- return W("svg", { ...b, innerHTML: i.innerHTML });
181
- }, ge = N(async () => {
182
- const o = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = ve(o);
934
+ const d = s.documentElement, f = Ee(d.attributes), { width: n, height: m, ...o } = f;
935
+ return ne("svg", { ...o, innerHTML: d.innerHTML });
936
+ }, Ae = ae(async () => {
937
+ const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = Le(r);
183
938
  return t.props = {
184
939
  raw: {
185
940
  type: String,
186
941
  required: !0
187
942
  }
188
943
  }, t;
189
- }), pe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
944
+ }), Te = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
190
945
  <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
191
946
  d="M24 1.714v44.572M1.714 24h44.572" />
192
- </svg>`, me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
947
+ </svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
193
948
  <path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
194
- </svg>`, fe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
949
+ </svg>`, Me = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
195
950
  <path d="M4.5 8.25L12 15.75L19.5 8.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
196
951
  </svg>
197
- `, we = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
952
+ `, Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
198
953
  <path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
199
954
  </svg>
200
- `, be = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
955
+ `, je = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
201
956
  <path d="M8.25 19.5L15.75 12L8.25 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
202
- </svg>`, _e = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
957
+ </svg>`, Oe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
203
958
  <path d="M19.5 15.75L12 8.25L4.5 15.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
204
959
  </svg>
205
- `, ke = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
960
+ `, Be = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
206
961
  <path d="M6,5h4c1.7,0,2-1.3,2-3c1.1,0,2,0.9,2,2v10c0,1.1-0.9,2-2,2H4c-1.1,0-2-0.9-2-2V4c0-1.1,0.9-2,2-2C4,3.7,4.3,5,6,5z M6,2V1
207
962
  c0-0.6,0.5-1,1-1h2c0.5,0,1,0.4,1,1v1.3C10,2.9,9.6,3,9,3H7C6.4,3,6,2.6,6,2z" />
208
- </svg>`, xe = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
963
+ </svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
209
964
  <path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
210
- </svg>`, Ce = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
965
+ </svg>`, Pe = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
211
966
  <path
212
967
  d="M9.557,7.243A.456.456,0,0,0,9.1,6.991C9.023,7,8.951,7,8.877,7A4,4,0,0,1,5.546.781.5.5,0,0,0,5.564.256.476.476,0,0,0,5.1,0,5,5,0,1,0,9.539,7.767.5.5,0,0,0,9.557,7.243Z"
213
968
  fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
214
- </svg>`, ye = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
969
+ </svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
215
970
  <path
216
971
  d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
217
- </svg>`, Le = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
972
+ </svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
218
973
  <g fill="none" fill-rule="evenodd" transform="translate(.67 .67)">
219
974
  <rect transform="rotate(180 4 4)" />
220
975
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"
221
976
  d="M2.85 1.73h3.4v3.4m0-3.4L1.74 6.24" />
222
977
  </g>
223
- </svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
978
+ </svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
224
979
  <path
225
980
  d="M512 0a512 512 0 0 0-162 998c26 4 35-11 35-25l-1-95c-128 23-161-32-172-60-6-15-31-61-52-73-18-10-44-33-1-33 40-1 69 37 78 52 46 78 120 56 149 43 5-33 18-56 33-69-114-13-234-56-234-253 0-56 20-101 53-137-5-13-23-65 5-136 0 0 43-13 141 53a487 487 0 0 1 256 0c98-66 141-53 141-53 28 71 10 123 5 136 33 36 53 81 53 137 0 197-120 240-234 253 18 16 35 47 35 95l-1 140c0 14 9 30 35 25A512 512 0 0 0 512 0z" />
226
- </svg>`, ze = `<svg
981
+ </svg>`, $e = `<svg
227
982
  height="24"
228
983
  viewBox="0 0 24 24"
229
984
  width="24"
@@ -232,7 +987,7 @@ const le = /* @__PURE__ */ g({
232
987
  d="M24 12a1 1 0 0 0 -1 -1h-3.91a0.51 0.51 0 0 1 -0.49 -0.4 6.83 6.83 0 0 0 -0.94 -2.28 0.5 0.5 0 0 1 0.06 -0.63l2.77 -2.76a1 1 0 1 0 -1.42 -1.42l-2.76 2.77a0.5 0.5 0 0 1 -0.63 0.06 6.83 6.83 0 0 0 -2.28 -0.94 0.5 0.5 0 0 1 -0.4 -0.49V1a1 1 0 0 0 -2 0v3.91a0.51 0.51 0 0 1 -0.4 0.49 6.83 6.83 0 0 0 -2.28 0.94 0.5 0.5 0 0 1 -0.63 -0.06L4.93 3.51a1 1 0 0 0 -1.42 1.42l2.77 2.76a0.5 0.5 0 0 1 0.06 0.63 6.83 6.83 0 0 0 -0.94 2.28 0.5 0.5 0 0 1 -0.49 0.4H1a1 1 0 0 0 0 2h3.91a0.51 0.51 0 0 1 0.49 0.4 6.83 6.83 0 0 0 0.94 2.28 0.5 0.5 0 0 1 -0.06 0.63l-2.77 2.76a1 1 0 1 0 1.42 1.42l2.76 -2.77a0.5 0.5 0 0 1 0.63 -0.06 6.83 6.83 0 0 0 2.28 0.94 0.5 0.5 0 0 1 0.4 0.49V23a1 1 0 0 0 2 0v-3.91a0.51 0.51 0 0 1 0.4 -0.49 6.83 6.83 0 0 0 2.28 -0.94 0.5 0.5 0 0 1 0.63 0.06l2.76 2.77a1 1 0 1 0 1.42 -1.42l-2.77 -2.76a0.5 0.5 0 0 1 -0.06 -0.63 6.83 6.83 0 0 0 0.94 -2.28 0.5 0.5 0 0 1 0.49 -0.4H23a1 1 0 0 0 1 -1Zm-8.74 2.5A5.76 5.76 0 0 1 9.5 8.74a5.66 5.66 0 0 1 0.16 -1.31 0.49 0.49 0 0 1 0.34 -0.36 5.36 5.36 0 0 1 1.8 -0.31 5.47 5.47 0 0 1 5.46 5.46 5.36 5.36 0 0 1 -0.31 1.8 0.49 0.49 0 0 1 -0.35 0.32 5.53 5.53 0 0 1 -1.34 0.16Z"
233
988
  fill="currentColor"
234
989
  stroke-width="1"></path>
235
- </svg>`, Se = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
990
+ </svg>`, Ge = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
236
991
  <path d="M3.500 5.000 A1.500 1.500 0 1 0 6.500 5.000 A1.500 1.500 0 1 0 3.500 5.000 Z" fill="currentColor"
237
992
  stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
238
993
  <path d="M5,2.25a.625.625,0,0,1-.625-.625v-1a.625.625,0,0,1,1.25,0v1A.625.625,0,0,1,5,2.25Z" fill="currentColor"
@@ -253,41 +1008,41 @@ const le = /* @__PURE__ */ g({
253
1008
  <path
254
1009
  d="M3.055,3.055a.623.623,0,0,1-.883,0l-.708-.707a.625.625,0,0,1,.884-.884l.707.708A.623.623,0,0,1,3.055,3.055Z"
255
1010
  fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
256
- </svg>`, Be = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
1011
+ </svg>`, qe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
257
1012
  <path fill="currentColor" fill-rule="evenodd"
258
1013
  d="M347 0c6 0 12 5 12 12v134l94-95c5-5 13-5 17 0l72 72c4 4 5 12 0 16v1l-95 94h134c7 0 12 5 12 12v101c0 7-5 12-12 12H447l95 94c4 5 5 13 0 17l-72 72c-4 4-12 5-16 0h-1l-94-95v134c0 7-5 12-12 12H246c-7 0-12-5-12-12v-70c0-22 9-43 24-59l130-130c14-14 14-37 0-51L259 142a84 84 0 0 1-25-59V12c0-7 5-12 12-12h101ZM138 52h1l219 219c14 14 14 37 0 51L139 542c-4 5-12 5-17 0l-71-70c-4-5-5-12 0-17l95-96H12c-7 0-12-5-12-12V246c0-7 5-12 12-12h134l-95-94c-4-5-4-12 0-17l71-71c4-5 12-5 16 0Z" />
259
- </svg>`, Ae = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
1014
+ </svg>`, Ve = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
260
1015
  <path fill-rule="evenodd" fill="currentColor"
261
1016
  d="M331 0a331 331 0 1 1 0 662 331 331 0 0 1 0-662Zm148.5 109 .6.9a187 187 0 1 1-297.6-.9 267 267 0 1 0 297 0Z" />
262
- </svg>`, Ve = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
1017
+ </svg>`, Fe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
263
1018
  <path fill="currentColor"
264
1019
  d="M-.653 309.29c-.078 82.272 31.848 159.735 89.739 218.178l.283.283c122.379 121.247 319.824 121.184 440.16-.283 119.967-121.1 119.409-316.933-.998-437.339l-.99-.99C468.681 30.845 390.716-1.017 307.893-.67c-82.83.354-160.443 32.994-218.814 91.79C31.209 149.555-.724 227.025-.653 309.29Zm469.271-160.789.778.778c87.9 87.9 88.325 231.005.707 319.33-77.753 78.46-199.786 87.412-288.959 26.862l198.513-198.513-.007 166.361 83.68-.07v-306.22H157.11l-.008 83.6h160.584L121.994 436.323c-59.347-87.689-50.536-208.59 26.51-286.343C236.34 61.294 379.94 60.67 468.61 148.494Z" />
265
- </svg>`, $e = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
1020
+ </svg>`, Ue = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
266
1021
  <path
267
1022
  d="M321 0a321 321 0 1 1 0 642 321 321 0 0 1 0-642Zm51.3 63L321 189.5 269.7 63l1 136.5-95.8-97.2L228 228l-125.7-53.1 97.2 95.8-136.5-1L189.5 321 63 372.3l136.5-1-97.2 95.8 125.7-53-53.1 125.6 95.8-97.2-1 136.5L321 452.5 372.3 579l-1-136.5 95.8 97.2-53-125.7 125.6 53.1-97.2-95.8 136.5 1L452.5 321 579 269.7l-136.5 1 97.2-95.8L414 228l53.1-125.7-95.8 97.2 1-136.5Z" />
268
- </svg>`, je = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
1023
+ </svg>`, Ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
269
1024
  <path
270
1025
  d="M529.2 90.8A310 310 0 1 0 90.8 529.2 310 310 0 0 0 529.2 90.8M122.4 498.2c-54.9-55-15.4-183.5 88.2-287 103.6-103.7 232.1-143.2 287-88.3 54.9 54.8 15.4 183.4-88.3 287-103.5 103.6-232 143.1-286.9 88.3m261.8-262.7A104.7 104.7 0 1 1 236 383.7a104.7 104.7 0 0 1 148.2-148.2" />
271
- </svg>`, Te = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
1026
+ </svg>`, We = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
272
1027
  <path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
273
- </svg>`, Ze = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
1028
+ </svg>`, Xe = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
274
1029
  <path fill="currentColor" fill-rule="evenodd"
275
1030
  d="M11.8214 0.0977942C12.1097 -0.00745677 12.4219 -0.0286524 12.7219 0.0367783C13.0248 0.102864 13.3024 0.254542 13.5216 0.47378C13.7408 0.693018 13.8925 0.970598 13.9586 1.27352C14.024 1.57344 14.0028 1.88572 13.8976 2.17395L10.3236 12.8859L10.3234 12.8866C10.2363 13.1501 10.083 13.3868 9.8781 13.574C9.6738 13.7606 9.42509 13.8918 9.15572 13.9549C8.8863 14.0206 8.60441 14.0151 8.33774 13.9389C8.07131 13.8628 7.82926 13.7187 7.63529 13.5209L5.71795 11.6124L3.70389 12.6538C3.54684 12.7351 3.35857 12.7273 3.20874 12.6334C3.05892 12.5395 2.96981 12.3735 2.9744 12.1967L3.05697 9.013L10.1019 3.8956C10.3812 3.69273 10.4432 3.30188 10.2403 3.02261C10.0374 2.74333 9.64659 2.68139 9.36731 2.88425L2.20283 8.08846L0.473125 6.35875L0.473067 6.3587L0.472941 6.35857C0.285618 6.17138 0.147716 5.9406 0.0716193 5.68694C-0.00393616 5.43509 -0.0162115 5.16853 0.0358379 4.91085C0.0879545 4.62934 0.213796 4.36664 0.400577 4.14957C0.588637 3.93101 0.83165 3.76664 1.1045 3.67345L1.10787 3.6723L1.10787 3.67231L11.8214 0.0977942Z"
276
1031
  clip-rule="evenodd"></path>
277
- </svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
1032
+ </svg>`, Ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
278
1033
  <path fill-rule="evenodd"
279
1034
  d="M12.6 11.2h.1l3 3a1 1 0 1 1-1.4 1.5l-3-3a1 1 0 0 1-.1-.1 7 7 0 1 1 1.4-1.4zM7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10z" />
280
- </svg>`, A = /* @__PURE__ */ Object.assign({ "./Add.svg": pe, "./CheckMark.svg": me, "./ChevronDown.svg": fe, "./ChevronLeft.svg": we, "./ChevronRight.svg": be, "./ChevronUp.svg": _e, "./Clipboard.svg": ke, "./Close.svg": xe, "./DarkMode.svg": Ce, "./Ellipses.svg": ye, "./ExternalLink.svg": Le, "./GitHub.svg": Me, "./LightDarkModeToggle.svg": ze, "./LightMode.svg": Se, "./Logo.svg": Be, "./LogoAPI.svg": Ae, "./LogoClient.svg": Ve, "./LogoMarket.svg": $e, "./LogoSwagger.svg": je, "./Menu.svg": Te, "./PaperAirplane.svg": Ze, "./Search.svg": De }), Fe = (o) => {
281
- const t = `./${o}.svg`;
282
- return A[t] === void 0 ? (console.warn(`Could not find icon: ${o}`), "") : A[t];
283
- }, I = /* @__PURE__ */ g({
1035
+ </svg>`, q = /* @__PURE__ */ Object.assign({ "./Add.svg": Te, "./CheckMark.svg": Ie, "./ChevronDown.svg": Me, "./ChevronLeft.svg": Ne, "./ChevronRight.svg": je, "./ChevronUp.svg": Oe, "./Clipboard.svg": Be, "./Close.svg": De, "./DarkMode.svg": Pe, "./Ellipses.svg": ze, "./ExternalLink.svg": Re, "./GitHub.svg": He, "./LightDarkModeToggle.svg": $e, "./LightMode.svg": Ge, "./Logo.svg": qe, "./LogoAPI.svg": Ve, "./LogoClient.svg": Fe, "./LogoMarket.svg": Ue, "./LogoSwagger.svg": Ze, "./Menu.svg": We, "./PaperAirplane.svg": Xe, "./Search.svg": Ke }), Ye = (r) => {
1036
+ const t = `./${r}.svg`;
1037
+ return q[t] === void 0 ? (console.warn(`Could not find icon: ${r}`), "") : q[t];
1038
+ }, Y = /* @__PURE__ */ I({
284
1039
  __name: "ScalarIcon",
285
1040
  props: {
286
1041
  icon: {},
287
1042
  size: {}
288
1043
  },
289
- setup(o) {
290
- const t = o, e = m({
1044
+ setup(r) {
1045
+ const t = r, e = N({
291
1046
  variants: {
292
1047
  size: {
293
1048
  xs: "h-3 w-3",
@@ -301,14 +1056,14 @@ const le = /* @__PURE__ */ g({
301
1056
  defaultVariants: {
302
1057
  size: "full"
303
1058
  }
304
- }), n = $(() => Fe(t.icon));
305
- return (i, p) => n.value ? (l(), C(a(ge), {
1059
+ }), s = H(() => Ye(t.icon));
1060
+ return (d, f) => s.value ? (w(), P(v(Ae), {
306
1061
  key: 0,
307
- class: s(a(c)("scalar-icon", a(e)({ size: i.size }))),
308
- raw: n.value
309
- }, null, 8, ["class", "raw"])) : h("", !0);
1062
+ class: k(v(E)("scalar-icon", v(e)({ size: d.size }))),
1063
+ raw: s.value
1064
+ }, null, 8, ["class", "raw"])) : T("", !0);
310
1065
  }
311
- }), Ie = ["ariaDisabled"], Pe = { class: "sr-only" }, He = /* @__PURE__ */ g({
1066
+ }), Je = ["ariaDisabled"], Qe = { class: "sr-only" }, et = /* @__PURE__ */ I({
312
1067
  __name: "ScalarIconButton",
313
1068
  props: {
314
1069
  label: {},
@@ -317,8 +1072,8 @@ const le = /* @__PURE__ */ g({
317
1072
  variant: { default: "ghost" },
318
1073
  size: { default: "md" }
319
1074
  },
320
- setup(o) {
321
- const t = m({
1075
+ setup(r) {
1076
+ const t = N({
322
1077
  base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
323
1078
  variants: {
324
1079
  size: {
@@ -330,19 +1085,19 @@ const le = /* @__PURE__ */ g({
330
1085
  disabled: {
331
1086
  true: "cursor-not-allowed shadow-none"
332
1087
  },
333
- variant: F
1088
+ variant: K
334
1089
  }
335
1090
  });
336
- return (e, n) => (l(), d("button", {
1091
+ return (e, s) => (w(), C("button", {
337
1092
  ariaDisabled: e.disabled || void 0,
338
- class: s(a(c)(a(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
1093
+ class: k(v(E)(v(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
339
1094
  type: "button"
340
1095
  }, [
341
- x(a(I), { icon: e.icon }, null, 8, ["icon"]),
342
- v("span", Pe, y(e.label), 1)
343
- ], 10, Ie));
1096
+ D(v(Y), { icon: e.icon }, null, 8, ["icon"]),
1097
+ A("span", Qe, M(e.label), 1)
1098
+ ], 10, Je));
344
1099
  }
345
- }), ot = () => V({
1100
+ }), bt = () => V({
346
1101
  open: !1,
347
1102
  show() {
348
1103
  this.open = !0;
@@ -350,7 +1105,7 @@ const le = /* @__PURE__ */ g({
350
1105
  hide() {
351
1106
  this.open = !1;
352
1107
  }
353
- }), Oe = /* @__PURE__ */ g({
1108
+ }), tt = /* @__PURE__ */ I({
354
1109
  __name: "ScalarModal",
355
1110
  props: {
356
1111
  state: {},
@@ -360,8 +1115,8 @@ const le = /* @__PURE__ */ g({
360
1115
  size: { default: "md" },
361
1116
  variant: {}
362
1117
  },
363
- setup(o) {
364
- const t = m({
1118
+ setup(r) {
1119
+ const t = N({
365
1120
  base: [
366
1121
  "scalar-modal",
367
1122
  "col leading-snug relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left text-fore-1 opacity-0"
@@ -379,46 +1134,46 @@ const le = /* @__PURE__ */ g({
379
1134
  }
380
1135
  }
381
1136
  });
382
- return (e, n) => (l(), C(a(Q), {
1137
+ return (e, s) => (w(), P(v(ue), {
383
1138
  open: e.state.open,
384
- onClose: n[0] || (n[0] = (i) => e.state.hide())
1139
+ onClose: s[0] || (s[0] = (d) => e.state.hide())
385
1140
  }, {
386
- default: _(() => [
387
- v("div", {
388
- class: s(
389
- a(c)(
1141
+ default: O(() => [
1142
+ A("div", {
1143
+ class: k(
1144
+ v(E)(
390
1145
  "scalar-modal-layout fixed left-0 top-0",
391
1146
  "z-[1001] h-[100dvh] w-[100dvw]",
392
1147
  "bg-backdrop p-5 opacity-0"
393
1148
  )
394
1149
  )
395
1150
  }, [
396
- x(a(X), {
397
- class: s(a(t)({ size: e.size, variant: e.variant })),
398
- style: Z({ maxWidth: e.maxWidth })
1151
+ D(v(pe), {
1152
+ class: k(v(t)({ size: e.size, variant: e.variant })),
1153
+ style: W({ maxWidth: e.maxWidth })
399
1154
  }, {
400
- default: _(() => [
401
- e.title ? (l(), C(a(Y), {
1155
+ default: O(() => [
1156
+ e.title ? (w(), P(v(me), {
402
1157
  key: 0,
403
- class: s(["scalar-modal-header font-semiBold m-0 rounded-lg px-6 py-3 text-left text-xs text-fore-1", { "pb-0 pt-6": e.variant === "history" }])
1158
+ class: k(["scalar-modal-header font-semiBold m-0 rounded-lg px-6 py-3 text-left text-xs text-fore-1", { "pb-0 pt-6": e.variant === "history" }])
404
1159
  }, {
405
- default: _(() => [
406
- R(y(e.title), 1)
1160
+ default: O(() => [
1161
+ oe(M(e.title), 1)
407
1162
  ]),
408
1163
  _: 1
409
- }, 8, ["class"])) : h("", !0),
410
- x(a(ee), {
411
- class: s([
1164
+ }, 8, ["class"])) : T("", !0),
1165
+ D(v(he), {
1166
+ class: k([
412
1167
  "scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
413
- a(c)(
1168
+ v(E)(
414
1169
  e.bodyClass,
415
1170
  e.variant === "history" && "pt-3",
416
1171
  e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
417
1172
  )
418
1173
  ])
419
1174
  }, {
420
- default: _(() => [
421
- k(e.$slots, "default", {}, void 0, !0)
1175
+ default: O(() => [
1176
+ B(e.$slots, "default", {}, void 0, !0)
422
1177
  ]),
423
1178
  _: 3
424
1179
  }, 8, ["class"])
@@ -430,7 +1185,7 @@ const le = /* @__PURE__ */ g({
430
1185
  _: 3
431
1186
  }, 8, ["open"]));
432
1187
  }
433
- }), Ee = /* @__PURE__ */ z(Oe, [["__scopeId", "data-v-4f0b1a0d"]]), Ne = { class: "scalar-input-container relative" }, We = ["for"], Re = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, Ke = /* @__PURE__ */ g({
1188
+ }), rt = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-ff85ced0"]]), at = { class: "scalar-input-container relative" }, nt = ["for"], ot = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, st = /* @__PURE__ */ I({
434
1189
  __name: "ScalarTextField",
435
1190
  props: {
436
1191
  modelValue: {},
@@ -446,8 +1201,8 @@ const le = /* @__PURE__ */ g({
446
1201
  disableTrim: { type: Boolean, default: !1 }
447
1202
  },
448
1203
  emits: ["submit", "update:modelValue"],
449
- setup(o, { emit: t }) {
450
- const e = o, n = m({
1204
+ setup(r, { emit: t }) {
1205
+ const e = r, s = t, d = N({
451
1206
  base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
452
1207
  variants: {
453
1208
  focus: {
@@ -455,81 +1210,81 @@ const le = /* @__PURE__ */ g({
455
1210
  },
456
1211
  error: { true: "scalar-input-wrapper-error border-error" }
457
1212
  }
458
- }), i = j(), p = i.id || `id-${oe()}`, f = B(), w = B(!1);
459
- let b;
1213
+ }), f = F(), n = f.id || `id-${ge()}`, m = z(), o = z(!1);
1214
+ let c;
460
1215
  if (e.isMultiline) {
461
- const { triggerResize: r } = te({
462
- element: f,
1216
+ const { triggerResize: l } = ve({
1217
+ element: m,
463
1218
  input: e.modelValue
464
1219
  });
465
- b = r;
1220
+ c = l;
466
1221
  }
467
- function P(r) {
468
- const u = r.target.value;
469
- e.isMultiline && b(), e.handleFieldChange ? e.handleFieldChange(u) : t("update:modelValue", u);
1222
+ function h(l) {
1223
+ const _ = l.target.value;
1224
+ e.isMultiline && c(), e.handleFieldChange ? e.handleFieldChange(_) : s("update:modelValue", _);
470
1225
  }
471
- function S(r) {
472
- const u = r.target, L = e.disableTrim || e.isMultiline ? u.value : u.value.trim();
473
- e.handleFieldSubmit ? e.handleFieldSubmit(L) : t("submit", L);
1226
+ function i(l) {
1227
+ const _ = l.target, y = e.disableTrim || e.isMultiline ? _.value : _.value.trim();
1228
+ e.handleFieldSubmit ? e.handleFieldSubmit(y) : s("submit", y);
474
1229
  }
475
- function H(r) {
476
- w.value = !1, e.emitOnBlur && e.modelValue && S(r);
1230
+ function b(l) {
1231
+ o.value = !1, e.emitOnBlur && e.modelValue && i(l);
477
1232
  }
478
- return K(() => {
479
- var r;
480
- Object.prototype.hasOwnProperty.call(i, "autofocus") && ((r = f.value) == null || r.focus());
481
- }), (r, u) => (l(), d("div", Ne, [
482
- v("div", {
483
- class: s(a(n)({ error: r.error, focus: w.value }))
1233
+ return Z(() => {
1234
+ var l;
1235
+ Object.prototype.hasOwnProperty.call(f, "autofocus") && ((l = m.value) == null || l.focus());
1236
+ }), (l, _) => (w(), C("div", at, [
1237
+ A("div", {
1238
+ class: k(v(d)({ error: l.error, focus: o.value }))
484
1239
  }, [
485
- (l(), C(U(r.isMultiline ? "textarea" : "input"), T({ id: a(p) }, r.$attrs, {
1240
+ (w(), P(se(l.isMultiline ? "textarea" : "input"), U({ id: v(n) }, l.$attrs, {
486
1241
  ref_key: "input",
487
- ref: f,
1242
+ ref: m,
488
1243
  class: [
489
1244
  "scalar-input",
490
- a(c)(
491
- { "min-h-[77px]": r.isMultiline },
1245
+ v(E)(
1246
+ { "min-h-[77px]": l.isMultiline },
492
1247
  "z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
493
1248
  "outline-none transition-opacity"
494
1249
  )
495
1250
  ],
496
- placeholder: r.placeholder,
497
- value: r.modelValue,
498
- onBlur: H,
499
- onFocus: u[0] || (u[0] = (L) => w.value = !0),
500
- onInput: P,
501
- onKeyup: q(S, ["enter"])
502
- }), null, 16, ["id", "class", "placeholder", "value", "onKeyup"])),
503
- r.label ? (l(), d("label", {
1251
+ placeholder: l.placeholder,
1252
+ value: l.modelValue,
1253
+ onBlur: b,
1254
+ onFocus: _[0] || (_[0] = (y) => o.value = !0),
1255
+ onInput: h,
1256
+ onKeyup: le(i, ["enter"])
1257
+ }), null, 16, ["id", "class", "placeholder", "value"])),
1258
+ l.label ? (w(), C("label", {
504
1259
  key: 0,
505
- class: s(
506
- a(c)(
1260
+ class: k(
1261
+ v(E)(
507
1262
  "scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
508
1263
  "shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
509
1264
  )
510
1265
  ),
511
- for: a(p),
512
- style: Z({
513
- "box-shadow": `0 0 4px 4px ${r.labelShadowColor}`,
514
- "background-color": r.labelShadowColor
1266
+ for: v(n),
1267
+ style: W({
1268
+ "box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
1269
+ "background-color": l.labelShadowColor
515
1270
  })
516
- }, y(r.label), 15, We)) : h("", !0),
517
- v("div", Re, [
518
- k(r.$slots, "default", {}, void 0, !0)
1271
+ }, M(l.label), 15, nt)) : T("", !0),
1272
+ A("div", ot, [
1273
+ B(l.$slots, "default", {}, void 0, !0)
519
1274
  ])
520
1275
  ], 2),
521
- v("span", {
522
- class: s(
523
- a(c)(
1276
+ A("span", {
1277
+ class: k(
1278
+ v(E)(
524
1279
  "helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
525
1280
  "before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
526
1281
  "before:bg-error before:text-white before:content-['!'] empty:hidden"
527
1282
  )
528
1283
  )
529
- }, y(r.helperText), 3)
1284
+ }, M(l.helperText), 3)
530
1285
  ]));
531
1286
  }
532
- }), Ue = /* @__PURE__ */ z(Ke, [["__scopeId", "data-v-acbd8aa4"]]), rt = {
1287
+ }), lt = /* @__PURE__ */ $(st, [["__scopeId", "data-v-4717ec50"]]), kt = {
533
1288
  boxShadow: {
534
1289
  DEFAULT: "var(--theme-shadow-1, var(--default-theme-shadow-1))",
535
1290
  md: "var(--theme-shadow-2, var(--default-theme-shadow-2))",
@@ -561,7 +1316,7 @@ const le = /* @__PURE__ */ g({
561
1316
  ghost: "var(--theme-color-ghost, var(--default-theme-color-ghost))",
562
1317
  transparent: "transparent"
563
1318
  }
564
- }, at = {
1319
+ }, wt = {
565
1320
  borderRadius: {
566
1321
  DEFAULT: "var(--theme-radius, var(--default-theme-radius))",
567
1322
  md: "var(--theme-radius, var(--default-theme-radius))",
@@ -585,21 +1340,22 @@ const le = /* @__PURE__ */ g({
585
1340
  "screen-md": "640px",
586
1341
  "screen-lg": "800px"
587
1342
  }
588
- }, nt = {
589
- install: (o) => {
590
- o.component("ScalarButton", ue), o.component("ScalarIcon", I), o.component("ScalarIconButton", He), o.component("ScalarLoading", D), o.component("ScalarModal", Ee), o.component("ScalarTextField", Ue);
1343
+ }, _t = {
1344
+ install: (r) => {
1345
+ r.component("ScalarButton", Ce), r.component("ScalarIcon", Y), r.component("ScalarIconButton", et), r.component("ScalarLoading", X), r.component("ScalarModal", rt), r.component("ScalarTextField", lt);
591
1346
  }
592
1347
  };
593
1348
  export {
594
- ue as ScalarButton,
595
- I as ScalarIcon,
596
- He as ScalarIconButton,
597
- D as ScalarLoading,
598
- Ee as ScalarModal,
599
- Ue as ScalarTextField,
600
- nt as default,
601
- at as extend,
602
- rt as theme,
603
- tt as useLoadingState,
604
- ot as useModal
1349
+ Ce as ScalarButton,
1350
+ ft as ScalarCodeBlock,
1351
+ Y as ScalarIcon,
1352
+ et as ScalarIconButton,
1353
+ X as ScalarLoading,
1354
+ rt as ScalarModal,
1355
+ lt as ScalarTextField,
1356
+ _t as default,
1357
+ wt as extend,
1358
+ kt as theme,
1359
+ gt as useLoadingState,
1360
+ bt as useModal
605
1361
  };