@scalar/components 0.4.4 → 0.4.5

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,28 +1,28 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.loader-wrapper:where(.scalar-component[data-v-42a08e16]),:where(.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%}.svg-loader:where(.scalar-component[data-v-42a08e16]),:where(.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}.svg-path:where(.scalar-component[data-v-42a08e16]),:where(.scalar-component) .svg-path[data-v-42a08e16]{stroke-width:14;fill:none;transition:.3s}.svg-x-mark:where(.scalar-component[data-v-42a08e16]),:where(.scalar-component) .svg-x-mark[data-v-42a08e16]{stroke-dasharray:57;stroke-dashoffset:57;transition-delay:0s}.svg-check-mark:where(.scalar-component[data-v-42a08e16]),:where(.scalar-component) .svg-check-mark[data-v-42a08e16]{stroke-dasharray:149;stroke-dashoffset:149;transition-delay:0s}.icon-is-invalid .svg-x-mark:where(.scalar-component[data-v-42a08e16]),:where(.scalar-component) .icon-is-invalid .svg-x-mark[data-v-42a08e16]{stroke-dashoffset:0;transition-delay:.3s}.icon-is-valid .svg-check-mark:where(.scalar-component[data-v-42a08e16]),:where(.scalar-component) .icon-is-valid .svg-check-mark[data-v-42a08e16]{stroke-dashoffset:0;transition-delay:.3s}.circular-loader:where(.scalar-component[data-v-42a08e16]),:where(.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}.loader-path:where(.scalar-component[data-v-42a08e16]),:where(.scalar-component) .loader-path[data-v-42a08e16]{stroke-dasharray:50,200;stroke-dashoffset:-100;stroke-linecap:round}.loader-path-off:where(.scalar-component[data-v-42a08e16]),:where(.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-codeblock-code[class*=language-]:where(.scalar-component),:where(.scalar-component) .scalar-codeblock-code[class*=language-],.scalar-codeblock-pre[class*=language-]:where(.scalar-component),:where(.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-codeblock-pre[class*=language-]:where(.scalar-component),:where(.scalar-component) .scalar-codeblock-pre[class*=language-]{margin:0;padding:.5rem;overflow:auto}:not(pre)>code[class*=language-]:where(.scalar-component),:where(.scalar-component) :not(pre)>code[class*=language-],.scalar-codeblock-pre[class*=language-]:where(.scalar-component),:where(.scalar-component) .scalar-codeblock-pre[class*=language-]{background:var(--theme-background-2, var(--default-theme-background-2))}.line-numbers.scalar-codeblock-pre[class*=language-]{position:relative;padding-left:2em;counter-reset:linenumber}.line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3em;width:3em;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}:not(pre)>code[class*=language-]:where(.scalar-component),:where(.scalar-component) :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment:where(.scalar-component),:where(.scalar-component) .token.comment,.token.block-comment:where(.scalar-component),:where(.scalar-component) .token.block-comment,.token.prolog:where(.scalar-component),:where(.scalar-component) .token.prolog,.token.doctype:where(.scalar-component),:where(.scalar-component) .token.doctype,.token.cdata:where(.scalar-component),:where(.scalar-component) .token.cdata{color:var(--theme-color-2, var(--default-theme-color-2))}.token.punctuation:where(.scalar-component),:where(.scalar-component) .token.punctuation{color:var(--theme-color-3, var(--default-theme-color-3))}.token.tag:where(.scalar-component),:where(.scalar-component) .token.tag,.token.attr-name:where(.scalar-component),:where(.scalar-component) .token.attr-name,.token.namespace:where(.scalar-component),:where(.scalar-component) .token.namespace,.token.deleted:where(.scalar-component),:where(.scalar-component) .token.deleted{color:var(--theme-color-red, var(--default-theme-color-red))}.token.function-name:where(.scalar-component),:where(.scalar-component) .token.function-name{color:var(--theme-color-green, var(--default-theme-color-green))}.token.boolean:where(.scalar-component),:where(.scalar-component) .token.boolean,.token.number:where(.scalar-component),:where(.scalar-component) .token.number,.token.function:where(.scalar-component),:where(.scalar-component) .token.function{color:var(--theme-color-orange, var(--default-theme-color-orange))}.token.property:where(.scalar-component),:where(.scalar-component) .token.property,.token.class-name:where(.scalar-component),:where(.scalar-component) .token.class-name,.token.constant:where(.scalar-component),:where(.scalar-component) .token.constant,.token.symbol:where(.scalar-component),:where(.scalar-component) .token.symbol{color:var(--theme-color-1, var(--default-theme-color-1))}.token.selector:where(.scalar-component),:where(.scalar-component) .token.selector,.token.important:where(.scalar-component),:where(.scalar-component) .token.important,.token.atrule:where(.scalar-component),:where(.scalar-component) .token.atrule,.token.keyword:where(.scalar-component),:where(.scalar-component) .token.keyword,.token.builtin:where(.scalar-component),:where(.scalar-component) .token.builtin{color:var(--theme-color-purple, var(--default-theme-color-purple))}.token.string:where(.scalar-component),:where(.scalar-component) .token.string,.token.char:where(.scalar-component),:where(.scalar-component) .token.char,.token.attr-value:where(.scalar-component),:where(.scalar-component) .token.attr-value,.token.regex:where(.scalar-component),:where(.scalar-component) .token.regex,.token.variable:where(.scalar-component),:where(.scalar-component) .token.variable{color:var(--theme-color-blue, var(--default-theme-color-blue))}.light-mode .dark-mode .language-shell .token.variable:where(.scalar-component),:where(.scalar-component) .light-mode .dark-mode .language-shell .token.variable{color:var(--theme-color-1, var(--default-theme-color-1))}.light-mode .dark-mode .language-shell .token.string:where(.scalar-component),:where(.scalar-component) .light-mode .dark-mode .language-shell .token.string{color:var(--theme-color-blue, var(--default-theme-color-blue))}.language-shell .token.string:where(.scalar-component),:where(.scalar-component) .language-shell .token.string{color:var(--theme-color-1, var(--default-theme-color-1))}.token.operator:where(.scalar-component),:where(.scalar-component) .token.operator,.token.entity:where(.scalar-component),:where(.scalar-component) .token.entity,.token.url:where(.scalar-component),:where(.scalar-component) .token.url{color:var(--theme-color-3, var(--default-theme-color-3))}.token.important:where(.scalar-component),:where(.scalar-component) .token.important,.token.bold:where(.scalar-component),:where(.scalar-component) .token.bold{font-weight:700}.token.italic:where(.scalar-component),:where(.scalar-component) .token.italic{font-style:italic}.token.entity:where(.scalar-component),:where(.scalar-component) .token.entity{cursor:help}.token.inserted:where(.scalar-component),:where(.scalar-component) .token.inserted{color:var(--theme-color-green, var(--default-theme-color-green))}.credentials:where(.scalar-component),:where(.scalar-component) .credentials{font-size:0;color:transparent}.credentials:after:where(.scalar-component),:where(.scalar-component) .credentials:after{content:"·····";font-size:var(--theme-small, var(--default-theme-small));color:var(--theme-color-3, var(--default-theme-color-3))}.scalar-modal-layout:where(.scalar-component[data-v-ff85ced0]),:where(.scalar-component) .scalar-modal-layout[data-v-ff85ced0]{animation:modal-fade-ff85ced0 .2s forwards}.scalar-modal:where(.scalar-component[data-v-ff85ced0]),:where(.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-input-wrapper-focus .scalar-input-label:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-1, var(--default-theme-color-1))}.scalar-input-wrapper-error .scalar-input-label:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input-wrapper-error .scalar-input-label[data-v-4717ec50]{color:var(--theme-color-error-color, var(--default-theme-color-red))}.scalar-input::-moz-selection:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]::-moz-selection{color:var(--theme-color-1, var(--default-theme-color-1));background:#ffa55859}.scalar-input::selection:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]::selection{color:var(--theme-color-1, var(--default-theme-color-1));background:#ffa55859}.scalar-input:has(+.scalar-input-label):where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:has(+.scalar-input-label){opacity:0}.scalar-input:not(:-moz-placeholder-shown):where(.scalar-component[data-v-4717ec50]),:where(.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-input:not(:placeholder-shown):where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:not(:placeholder-shown),.scalar-input-wrapper-focus .scalar-input:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input-wrapper-focus .scalar-input[data-v-4717ec50]{opacity:1;transition:opacity .2s ease-in-out .15s}.scalar-input:-webkit-autofill:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:-webkit-autofill,.scalar-input:-webkit-autofill:hover:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:-webkit-autofill:hover,.scalar-input:-webkit-autofill:focus:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:-webkit-autofill:focus,.scalar-input:-webkit-autofill:active:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:-webkit-autofill:active,.scalar-input:focus-within:-webkit-autofill:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill,.scalar-input:focus-within:-webkit-autofill:hover:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:hover,.scalar-input:focus-within:-webkit-autofill:focus:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input[data-v-4717ec50]:focus-within:-webkit-autofill:focus,.scalar-input:focus-within:-webkit-autofill:active:where(.scalar-component[data-v-4717ec50]),:where(.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-input:not(:-moz-placeholder-shown)+.scalar-input-label:where(.scalar-component[data-v-4717ec50]),:where(.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-input-wrapper-focus .scalar-input-label:where(.scalar-component[data-v-4717ec50]),:where(.scalar-component) .scalar-input-wrapper-focus .scalar-input-label[data-v-4717ec50],.scalar-input:not(:placeholder-shown)+.scalar-input-label:where(.scalar-component[data-v-4717ec50]),:where(.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-input-wrapper-focus:has(button:active) .scalar-input-label:where(.scalar-component[data-v-4717ec50]),:where(.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}:where(.scalar-component),:where(.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}:where(.scalar-component),:where(.scalar-component) *,:before:where(.scalar-component),:where(.scalar-component) :before,:after:where(.scalar-component),:where(.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: }::backdrop:where(.scalar-component),:where(.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: }.sr-only:where(.scalar-component),:where(.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}.pointer-events-none:where(.scalar-component),:where(.scalar-component) .pointer-events-none{pointer-events:none}.visible:where(.scalar-component),:where(.scalar-component) .visible{visibility:visible}.fixed:where(.scalar-component),:where(.scalar-component) .fixed{position:fixed}.absolute:where(.scalar-component),:where(.scalar-component) .absolute{position:absolute}.relative:where(.scalar-component),:where(.scalar-component) .relative{position:relative}.left-0:where(.scalar-component),:where(.scalar-component) .left-0{left:0}.top-0:where(.scalar-component),:where(.scalar-component) .top-0{top:0}.z-10:where(.scalar-component),:where(.scalar-component) .z-10{z-index:10}.z-\\[1001\\]:where(.scalar-component),:where(.scalar-component) .z-\\[1001\\]{z-index:1001}.m-0:where(.scalar-component),:where(.scalar-component) .m-0{margin:0}.mx-2:where(.scalar-component),:where(.scalar-component) .mx-2{margin-left:8px;margin-right:8px}.mx-auto:where(.scalar-component),:where(.scalar-component) .mx-auto{margin-left:auto;margin-right:auto}.my-3:where(.scalar-component),:where(.scalar-component) .my-3{margin-top:12px;margin-bottom:12px}.mb-0:where(.scalar-component),:where(.scalar-component) .mb-0{margin-bottom:0}.ml-2:where(.scalar-component),:where(.scalar-component) .ml-2{margin-left:8px}.mr-2:where(.scalar-component),:where(.scalar-component) .mr-2{margin-right:8px}.mt-1:where(.scalar-component),:where(.scalar-component) .mt-1{margin-top:4px}.mt-1\\.5:where(.scalar-component),:where(.scalar-component) .mt-1\\.5{margin-top:6px}.mt-20:where(.scalar-component),:where(.scalar-component) .mt-20{margin-top:80px}.block:where(.scalar-component),:where(.scalar-component) .block{display:block}.flex:where(.scalar-component),:where(.scalar-component) .flex{display:flex}.grid:where(.scalar-component),:where(.scalar-component) .grid{display:grid}.hidden:where(.scalar-component),:where(.scalar-component) .hidden{display:none}.aspect-square:where(.scalar-component),:where(.scalar-component) .aspect-square{aspect-ratio:1 / 1}.h-10:where(.scalar-component),:where(.scalar-component) .h-10{height:40px}.h-3:where(.scalar-component),:where(.scalar-component) .h-3{height:12px}.h-3\\.5:where(.scalar-component),:where(.scalar-component) .h-3\\.5{height:14px}.h-4:where(.scalar-component),:where(.scalar-component) .h-4{height:16px}.h-5:where(.scalar-component),:where(.scalar-component) .h-5{height:20px}.h-6:where(.scalar-component),:where(.scalar-component) .h-6{height:24px}.h-\\[100dvh\\]:where(.scalar-component),:where(.scalar-component) .h-\\[100dvh\\]{height:100dvh}.h-full:where(.scalar-component),:where(.scalar-component) .h-full{height:100%}.max-h-\\[440px\\]:where(.scalar-component),:where(.scalar-component) .max-h-\\[440px\\]{max-height:440px}.max-h-\\[calc\\(100dvh-240px\\)\\]:where(.scalar-component),:where(.scalar-component) .max-h-\\[calc\\(100dvh-240px\\)\\]{max-height:calc(100dvh - 240px)}.min-h-\\[77px\\]:where(.scalar-component),:where(.scalar-component) .min-h-\\[77px\\]{min-height:77px}.w-10:where(.scalar-component),:where(.scalar-component) .w-10{width:40px}.w-3:where(.scalar-component),:where(.scalar-component) .w-3{width:12px}.w-3\\.5:where(.scalar-component),:where(.scalar-component) .w-3\\.5{width:14px}.w-4:where(.scalar-component),:where(.scalar-component) .w-4{width:16px}.w-5:where(.scalar-component),:where(.scalar-component) .w-5{width:20px}.w-6:where(.scalar-component),:where(.scalar-component) .w-6{width:24px}.w-\\[100dvw\\]:where(.scalar-component),:where(.scalar-component) .w-\\[100dvw\\]{width:100dvw}.w-full:where(.scalar-component),:where(.scalar-component) .w-full{width:100%}.max-w-screen-lg:where(.scalar-component),:where(.scalar-component) .max-w-screen-lg{max-width:800px}.max-w-screen-md:where(.scalar-component),:where(.scalar-component) .max-w-screen-md{max-width:640px}.max-w-screen-sm:where(.scalar-component),:where(.scalar-component) .max-w-screen-sm{max-width:540px}.max-w-screen-xs:where(.scalar-component),:where(.scalar-component) .max-w-screen-xs{max-width:480px}.origin-top-left:where(.scalar-component),:where(.scalar-component) .origin-top-left{transform-origin:top left}.transform:where(.scalar-component),:where(.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))}.cursor-not-allowed:where(.scalar-component),:where(.scalar-component) .cursor-not-allowed{cursor:not-allowed}.cursor-pointer:where(.scalar-component),:where(.scalar-component) .cursor-pointer{cursor:pointer}.resize-none:where(.scalar-component),:where(.scalar-component) .resize-none{resize:none}.appearance-none:where(.scalar-component),:where(.scalar-component) .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.items-start:where(.scalar-component),:where(.scalar-component) .items-start{align-items:flex-start}.items-center:where(.scalar-component),:where(.scalar-component) .items-center{align-items:center}.justify-center:where(.scalar-component),:where(.scalar-component) .justify-center{justify-content:center}.gap-1:where(.scalar-component),:where(.scalar-component) .gap-1{gap:4px}.gap-4:where(.scalar-component),:where(.scalar-component) .gap-4{gap:16px}.overflow-hidden:where(.scalar-component),:where(.scalar-component) .overflow-hidden{overflow:hidden}.overflow-y-auto:where(.scalar-component),:where(.scalar-component) .overflow-y-auto{overflow-y:auto}.rounded:where(.scalar-component),:where(.scalar-component) .rounded{border-radius:var(--theme-radius, var(--default-theme-radius))}.rounded-lg:where(.scalar-component),:where(.scalar-component) .rounded-lg{border-radius:var(--theme-radius-lg, var(--default-theme-radius-lg))}.border:where(.scalar-component),:where(.scalar-component) .border{border-width:1px}.border-0:where(.scalar-component),:where(.scalar-component) .border-0{border-width:0px}.border-solid:where(.scalar-component),:where(.scalar-component) .border-solid{border-style:solid}.border-border:where(.scalar-component),:where(.scalar-component) .border-border{border-color:var(--theme-border-color, var(--default-theme-border-color))}.border-error:where(.scalar-component),:where(.scalar-component) .border-error{border-color:var(--theme-error-color, var(--default-theme-color-red))}.border-fore-3:where(.scalar-component),:where(.scalar-component) .border-fore-3{border-color:var(--theme-color-3, var(--default-theme-color-3))}.bg-back-1:where(.scalar-component),:where(.scalar-component) .bg-back-1{background-color:var(--theme-background-1, var(--default-theme-background-1))}.bg-back-2:where(.scalar-component),:where(.scalar-component) .bg-back-2{background-color:var(--theme-background-2, var(--default-theme-background-2))}.bg-back-btn-1:where(.scalar-component),:where(.scalar-component) .bg-back-btn-1{background-color:var(--theme-button-1, var(--default-theme-button-1))}.bg-backdrop:where(.scalar-component),:where(.scalar-component) .bg-backdrop{background-color:#00000070}.bg-error:where(.scalar-component),:where(.scalar-component) .bg-error{background-color:var(--theme-error-color, var(--default-theme-color-red))}.bg-transparent:where(.scalar-component),:where(.scalar-component) .bg-transparent{background-color:transparent}.p-0:where(.scalar-component),:where(.scalar-component) .p-0{padding:0}.p-0\\.5:where(.scalar-component),:where(.scalar-component) .p-0\\.5{padding:2px}.p-1:where(.scalar-component),:where(.scalar-component) .p-1{padding:4px}.p-3:where(.scalar-component),:where(.scalar-component) .p-3{padding:12px}.p-5:where(.scalar-component),:where(.scalar-component) .p-5{padding:20px}.px-1:where(.scalar-component),:where(.scalar-component) .px-1{padding-left:4px;padding-right:4px}.px-4:where(.scalar-component),:where(.scalar-component) .px-4{padding-left:16px;padding-right:16px}.px-6:where(.scalar-component),:where(.scalar-component) .px-6{padding-left:24px;padding-right:24px}.px-9:where(.scalar-component),:where(.scalar-component) .px-9{padding-left:36px;padding-right:36px}.py-1:where(.scalar-component),:where(.scalar-component) .py-1{padding-top:4px;padding-bottom:4px}.py-3:where(.scalar-component),:where(.scalar-component) .py-3{padding-top:12px;padding-bottom:12px}.pb-0:where(.scalar-component),:where(.scalar-component) .pb-0{padding-bottom:0}.pb-4:where(.scalar-component),:where(.scalar-component) .pb-4{padding-bottom:16px}.pl-9:where(.scalar-component),:where(.scalar-component) .pl-9{padding-left:36px}.pr-3:where(.scalar-component),:where(.scalar-component) .pr-3{padding-right:12px}.pt-3:where(.scalar-component),:where(.scalar-component) .pt-3{padding-top:12px}.pt-6:where(.scalar-component),:where(.scalar-component) .pt-6{padding-top:24px}.text-left:where(.scalar-component),:where(.scalar-component) .text-left{text-align:left}.text-sm:where(.scalar-component),:where(.scalar-component) .text-sm{font-size:var(--theme-small, var(--default-theme-small, var(--theme-font-size-3, var(--default-theme-font-size-3))))}.text-xs:where(.scalar-component),:where(.scalar-component) .text-xs{font-size:var(--theme-mini, var(--default-theme-mini, var(--theme-font-size-4, var(--default-theme-font-size-4))))}.font-medium:where(.scalar-component),:where(.scalar-component) .font-medium{font-weight:var(--theme-font-medium, var(--default-theme-font-medium))}.font-normal:where(.scalar-component),:where(.scalar-component) .font-normal{font-weight:400}.italic:where(.scalar-component),:where(.scalar-component) .italic{font-style:italic}.text-error:where(.scalar-component),:where(.scalar-component) .text-error{color:var(--theme-error-color, var(--default-theme-color-red))}.text-fore-1:where(.scalar-component),:where(.scalar-component) .text-fore-1{color:var(--theme-color-1, var(--default-theme-color-1))}.text-fore-3:where(.scalar-component),:where(.scalar-component) .text-fore-3{color:var(--theme-color-3, var(--default-theme-color-3))}.text-fore-btn-1:where(.scalar-component),:where(.scalar-component) .text-fore-btn-1{color:var(--theme-button-1-color, var(--default-theme-button-1-color))}.text-ghost:where(.scalar-component),:where(.scalar-component) .text-ghost{color:var(--theme-color-ghost, var(--default-theme-color-ghost))}.text-white:where(.scalar-component),:where(.scalar-component) .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0:where(.scalar-component),:where(.scalar-component) .opacity-0{opacity:0}.shadow-none:where(.scalar-component),:where(.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)}.shadow-sm:where(.scalar-component),:where(.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)}.outline-none:where(.scalar-component),:where(.scalar-component) .outline-none{outline:2px solid transparent;outline-offset:2px}.outline:where(.scalar-component),:where(.scalar-component) .outline{outline-style:solid}.blur:where(.scalar-component),:where(.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)}.filter:where(.scalar-component),:where(.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)}.transition:where(.scalar-component),:where(.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}.transition-opacity:where(.scalar-component),:where(.scalar-component) .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform:where(.scalar-component),:where(.scalar-component) .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out:where(.scalar-component),:where(.scalar-component) .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.row:where(.scalar-component),:where(.scalar-component) .row{display:flex;flex-direction:row}.col:where(.scalar-component),:where(.scalar-component) .col{display:flex;flex-direction:column}.before\\:mr-1:before:where(.scalar-component),:where(.scalar-component) .before\\:mr-1:before{content:var(--tw-content);margin-right:4px}.before\\:mr-1\\.5:before:where(.scalar-component),:where(.scalar-component) .before\\:mr-1\\.5:before{content:var(--tw-content);margin-right:6px}.before\\:block:before:where(.scalar-component),:where(.scalar-component) .before\\:block:before{content:var(--tw-content);display:block}.before\\:h-4:before:where(.scalar-component),:where(.scalar-component) .before\\:h-4:before{content:var(--tw-content);height:16px}.before\\:w-4:before:where(.scalar-component),:where(.scalar-component) .before\\:w-4:before{content:var(--tw-content);width:16px}.before\\:bg-error:before:where(.scalar-component),:where(.scalar-component) .before\\:bg-error:before{content:var(--tw-content);background-color:var(--theme-error-color, var(--default-theme-color-red))}.before\\:text-center:before:where(.scalar-component),:where(.scalar-component) .before\\:text-center:before{content:var(--tw-content);text-align:center}.before\\:text-xxs:before:where(.scalar-component),:where(.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))))}.before\\:font-black:before:where(.scalar-component),:where(.scalar-component) .before\\:font-black:before{content:var(--tw-content);font-weight:900}.before\\:leading-4:before:where(.scalar-component),:where(.scalar-component) .before\\:leading-4:before{content:var(--tw-content);line-height:16px}.before\\:text-white:before:where(.scalar-component),:where(.scalar-component) .before\\:text-white:before{content:var(--tw-content);--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.before\\:content-\\[\\'\\!\\'\\]:before:where(.scalar-component),:where(.scalar-component) .before\\:content-\\[\\'\\!\\'\\]:before{--tw-content: "!";content:var(--tw-content)}.empty\\:hidden:empty:where(.scalar-component),:where(.scalar-component) .empty\\:hidden:empty{display:none}.hover\\:text-fore-1:hover:where(.scalar-component),:where(.scalar-component) .hover\\:text-fore-1:hover{color:var(--theme-color-1, var(--default-theme-color-1))}.active\\:bg-back-btn-1:active:where(.scalar-component),:where(.scalar-component) .active\\:bg-back-btn-1:active{background-color:var(--theme-button-1, var(--default-theme-button-1))}.active\\:text-fore-2:active:where(.scalar-component),:where(.scalar-component) .active\\:text-fore-2:active{color:var(--theme-color-2, var(--default-theme-color-2))}.active\\:shadow-none:active:where(.scalar-component),:where(.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)}.active\\:brightness-90:active:where(.scalar-component),:where(.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)}.has-actv-btn\\:border:has(button:active):where(.scalar-component),:where(.scalar-component) .has-actv-btn\\:border:has(button:active){border-width:1px}.has-actv-btn\\:border-border:has(button:active):where(.scalar-component),:where(.scalar-component) .has-actv-btn\\:border-border:has(button:active){border-color:var(--theme-border-color, var(--default-theme-border-color))}.\\!empty\\:flex:not(:empty):where(.scalar-component),:where(.scalar-component) .\\!empty\\:flex:not(:empty){display:flex}.\\!empty\\:w-7:not(:empty):where(.scalar-component),:where(.scalar-component) .\\!empty\\:w-7:not(:empty){width:28px}.\\!empty\\:items-center:not(:empty):where(.scalar-component),:where(.scalar-component) .\\!empty\\:items-center:not(:empty){align-items:center}.\\!empty\\:pr-3:not(:empty):where(.scalar-component),:where(.scalar-component) .\\!empty\\:pr-3:not(:empty){padding-right:12px}.hocus\\:bg-back-2:hover:where(.scalar-component),:where(.scalar-component) .hocus\\:bg-back-2:hover{background-color:var(--theme-background-2, var(--default-theme-background-2))}.hocus\\:bg-hover-btn-1:hover:where(.scalar-component),:where(.scalar-component) .hocus\\:bg-hover-btn-1:hover{background-color:var(--theme-button-1-hover, var(--default-theme-button-1-hover))}.hocus\\:text-fore-2:hover:where(.scalar-component),:where(.scalar-component) .hocus\\:text-fore-2:hover{color:var(--theme-color-2, var(--default-theme-color-2))}.hocus\\:brightness-90:hover:where(.scalar-component),:where(.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)}.hocus\\:bg-back-2:focus-visible:where(.scalar-component),:where(.scalar-component) .hocus\\:bg-back-2:focus-visible{background-color:var(--theme-background-2, var(--default-theme-background-2))}.hocus\\:bg-hover-btn-1:focus-visible:where(.scalar-component),:where(.scalar-component) .hocus\\:bg-hover-btn-1:focus-visible{background-color:var(--theme-button-1-hover, var(--default-theme-button-1-hover))}.hocus\\:text-fore-2:focus-visible:where(.scalar-component),:where(.scalar-component) .hocus\\:text-fore-2:focus-visible{color:var(--theme-color-2, var(--default-theme-color-2))}.hocus\\:brightness-90:focus-visible:where(.scalar-component),:where(.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){.md\\:row:where(.scalar-component),:where(.scalar-component) .md\\:row{display:flex;flex-direction:row}}`)),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { defineComponent as I, useCssVars as ee, openBlock as w, createElementBlock as C, normalizeClass as k, unref as g, createElementVNode as A, createCommentVNode as T, createStaticVNode as te, reactive as F, computed as H, useAttrs as U, mergeProps as Z, renderSlot as B, createVNode as D, ref as z, watch as re, nextTick as ae, onMounted as W, toDisplayString as M, defineAsyncComponent as ne, h as oe, createBlock as P, withCtx as O, normalizeStyle as X, createTextVNode as se, resolveDynamicComponent as le, withKeys as ie } from "vue";
3
- import { defineConfig as ce } from "cva";
4
- import { extendTailwindMerge as de } from "tailwind-merge";
5
- import q from "prismjs";
6
- import { Dialog as ue, DialogPanel as pe, DialogTitle as me, DialogDescription as he } from "@headlessui/vue";
7
- import { useTextareaAutosize as ge } from "@vueuse/core";
8
- import { nanoid as ve } from "nanoid";
9
- const R = "scalar-component", fe = de({
2
+ import { defineComponent as k, useCssVars as F, openBlock as g, createElementBlock as b, normalizeClass as m, unref as c, createElementVNode as _, createCommentVNode as S, createStaticVNode as U, reactive as R, computed as O, useAttrs as z, mergeProps as P, renderSlot as L, createVNode as A, ref as T, watch as Z, nextTick as W, onServerPrefetch as X, onMounted as H, defineAsyncComponent as q, h as K, createBlock as M, toDisplayString as I, withCtx as y, normalizeStyle as $, createTextVNode as Y, resolveDynamicComponent as J, withKeys as Q } from "vue";
3
+ import { defineConfig as ee } from "cva";
4
+ import { extendTailwindMerge as te } from "tailwind-merge";
5
+ import E from "prismjs";
6
+ import { Dialog as re, DialogPanel as ne, DialogTitle as ae, DialogDescription as oe } from "@headlessui/vue";
7
+ import { useTextareaAutosize as se } from "@vueuse/core";
8
+ import { nanoid as le } from "nanoid";
9
+ const N = "scalar-component", ie = te({
10
10
  extend: {
11
11
  classGroups: {
12
12
  // Add the scalar class prefix as a custom class to be deduped by tailwind-merge
13
- [R]: [R]
13
+ [N]: [N]
14
14
  }
15
15
  }
16
- }), { cva: N, cx: E, compose: gt } = ce({
16
+ }), { cva: x, cx: w, compose: lt } = ee({
17
17
  hooks: {
18
- onComplete: (r) => `${fe(r, R)}`
18
+ onComplete: (r) => `${ie(r, N)}`
19
19
  }
20
- }), be = /* @__PURE__ */ te('<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 = {
20
+ }), de = /* @__PURE__ */ U('<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), ce = {
21
21
  key: 0,
22
22
  class: "circular-loader"
23
23
  };
24
- function vt() {
25
- return F({
24
+ function it() {
25
+ return R({
26
26
  isValid: !1,
27
27
  isInvalid: !1,
28
28
  isLoading: !1,
@@ -55,21 +55,21 @@ function vt() {
55
55
  }
56
56
  });
57
57
  }
58
- const we = /* @__PURE__ */ I({
58
+ const ue = /* @__PURE__ */ k({
59
59
  __name: "ScalarLoading",
60
60
  props: {
61
61
  loadingState: {},
62
62
  size: { default: "24px" }
63
63
  },
64
64
  setup(r) {
65
- return ee((t) => ({
65
+ return F((t) => ({
66
66
  "8d3a1414": t.size
67
- })), (t, e) => t.loadingState ? (w(), C("div", {
67
+ })), (t, e) => t.loadingState ? (g(), b("div", {
68
68
  key: 0,
69
- class: k(g(E)("loader-wrapper"))
69
+ class: m(c(w)("loader-wrapper"))
70
70
  }, [
71
- (w(), C("svg", {
72
- class: k(["svg-loader", {
71
+ (g(), b("svg", {
72
+ class: m(["svg-loader", {
73
73
  "icon-is-valid": t.loadingState.isValid,
74
74
  "icon-is-invalid": t.loadingState.isInvalid
75
75
  }]),
@@ -77,10 +77,10 @@ const we = /* @__PURE__ */ I({
77
77
  xmlns: "http://www.w3.org/2000/svg",
78
78
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
79
79
  }, [
80
- be,
81
- t.loadingState.isLoading ? (w(), C("g", ke, [
82
- A("circle", {
83
- class: k(["loader-path", {
80
+ de,
81
+ t.loadingState.isLoading ? (g(), b("g", ce, [
82
+ _("circle", {
83
+ class: m(["loader-path", {
84
84
  "loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
85
85
  }]),
86
86
  cx: "50",
@@ -89,16 +89,16 @@ const we = /* @__PURE__ */ I({
89
89
  r: "20",
90
90
  "stroke-width": "2"
91
91
  }, null, 2)
92
- ])) : T("", !0)
92
+ ])) : S("", !0)
93
93
  ], 2))
94
- ], 2)) : T("", !0);
94
+ ], 2)) : S("", !0);
95
95
  }
96
- }), $ = (r, t) => {
96
+ }), B = (r, t) => {
97
97
  const e = r.__vccOpts || r;
98
98
  for (const [s, u] of t)
99
99
  e[s] = u;
100
100
  return e;
101
- }, K = /* @__PURE__ */ $(we, [["__scopeId", "data-v-42a08e16"]]), Y = {
101
+ }, G = /* @__PURE__ */ B(ue, [["__scopeId", "data-v-42a08e16"]]), j = {
102
102
  solid: [
103
103
  "scalar-button-solid",
104
104
  "bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
@@ -115,7 +115,7 @@ const we = /* @__PURE__ */ I({
115
115
  "scalar-button-danger",
116
116
  "bg-error text-white active:brightness-90 hocus:brightness-90"
117
117
  ]
118
- }, _e = N({
118
+ }, pe = x({
119
119
  base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
120
120
  variants: {
121
121
  disabled: {
@@ -123,7 +123,7 @@ const we = /* @__PURE__ */ I({
123
123
  },
124
124
  fullWidth: { true: "w-full" },
125
125
  size: { md: "h-10 px-6 text-sm" },
126
- variant: Y
126
+ variant: j
127
127
  },
128
128
  compoundVariants: [
129
129
  {
@@ -132,13 +132,13 @@ const we = /* @__PURE__ */ I({
132
132
  class: "bg-transparent text-ghost"
133
133
  }
134
134
  ]
135
- }), Se = ["ariaDisabled"], ye = {
135
+ }), he = ["ariaDisabled"], me = {
136
136
  key: 0,
137
137
  class: "mr-2 h-4 w-4"
138
- }, xe = {
138
+ }, ge = {
139
139
  key: 1,
140
140
  class: "ml-2"
141
- }, Ce = /* @__PURE__ */ I({
141
+ }, ve = /* @__PURE__ */ k({
142
142
  inheritAttrs: !1,
143
143
  __name: "ScalarButton",
144
144
  props: {
@@ -149,30 +149,30 @@ const we = /* @__PURE__ */ I({
149
149
  variant: { default: "solid" }
150
150
  },
151
151
  setup(r) {
152
- const t = H(() => {
153
- const { class: e, ...s } = U();
152
+ const t = O(() => {
153
+ const { class: e, ...s } = z();
154
154
  return { className: e || "", rest: s };
155
155
  });
156
- return (e, s) => (w(), C("button", Z(t.value.rest, {
156
+ return (e, s) => (g(), b("button", P(t.value.rest, {
157
157
  ariaDisabled: e.disabled || void 0,
158
- class: g(E)(
159
- g(_e)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
158
+ class: c(w)(
159
+ c(pe)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
160
160
  { "pl-9 pr-3": e.loading },
161
161
  `${t.value.className}`
162
162
  ),
163
163
  type: "button"
164
164
  }), [
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(g(K), {
165
+ e.$slots.icon ? (g(), b("div", me, [
166
+ L(e.$slots, "icon")
167
+ ])) : S("", !0),
168
+ L(e.$slots, "default"),
169
+ e.loading ? (g(), b("div", ge, [
170
+ A(c(G), {
171
171
  loadingState: e.loading,
172
172
  size: "20px"
173
173
  }, null, 8, ["loadingState"])
174
- ])) : T("", !0)
175
- ], 16, Se));
174
+ ])) : S("", !0)
175
+ ], 16, he));
176
176
  }
177
177
  });
178
178
  (function(r) {
@@ -390,8 +390,8 @@ const we = /* @__PURE__ */ I({
390
390
  "operator",
391
391
  "punctuation",
392
392
  "number"
393
- ], f = s.variable[1].inside, a = 0; a < u.length; a++)
394
- f[u[a]] = r.languages.bash[u[a]];
393
+ ], v = s.variable[1].inside, a = 0; a < u.length; a++)
394
+ v[u[a]] = r.languages.bash[u[a]];
395
395
  r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
396
396
  })(Prism);
397
397
  Prism.languages.json = {
@@ -419,376 +419,6 @@ Prism.languages.json = {
419
419
  }
420
420
  };
421
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", u = "components/", f = Prism.util.currentScript();
697
- if (f) {
698
- var a = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, d = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i, n = f.getAttribute("data-autoloader-path");
699
- if (n != null)
700
- u = n.trim().replace(/\/?$/, "/");
701
- else {
702
- var c = f.src;
703
- a.test(c) ? u = c.replace(a, "components/") : d.test(c) && (u = c.replace(d, "$1components/"));
704
- }
705
- }
706
- var h = Prism.plugins.autoloader = {
707
- languages_path: u,
708
- use_minified: !0,
709
- loadLanguages: y
710
- };
711
- function i(o, p, v) {
712
- var m = document.createElement("script");
713
- m.src = o, m.async = !0, m.onload = function() {
714
- document.body.removeChild(m), p && p();
715
- }, m.onerror = function() {
716
- document.body.removeChild(m), v && v();
717
- }, document.body.appendChild(m);
718
- }
719
- function b(o) {
720
- var p = (o.getAttribute("data-dependencies") || "").trim();
721
- if (!p) {
722
- var v = o.parentElement;
723
- v && v.tagName.toLowerCase() === "pre" && (p = (v.getAttribute("data-dependencies") || "").trim());
724
- }
725
- return p ? p.split(/\s*,\s*/g) : [];
726
- }
727
- function l(o) {
728
- if (o.indexOf("!") >= 0)
729
- return !1;
730
- if (o = t[o] || o, o in Prism.languages)
731
- return !0;
732
- var p = e[o];
733
- return p && !p.error && p.loading === !1;
734
- }
735
- function _(o) {
736
- return h.languages_path + "prism-" + o + (h.use_minified ? ".min" : "") + ".js";
737
- }
738
- function y(o, p, v) {
739
- typeof o == "string" && (o = [o]);
740
- var m = o.length, L = 0, x = !1;
741
- if (m === 0) {
742
- p && setTimeout(p, 0);
743
- return;
744
- }
745
- function S() {
746
- x || (L++, L === m && p && p(o));
747
- }
748
- o.forEach(function(G) {
749
- Q(G, S, function() {
750
- x || (x = !0, v && v(G));
751
- });
752
- });
753
- }
754
- function Q(o, p, v) {
755
- var m = o.indexOf("!") >= 0;
756
- o = o.replace("!", ""), o = t[o] || o;
757
- function L() {
758
- var S = e[o];
759
- S || (S = e[o] = {
760
- callbacks: []
761
- }), S.callbacks.push({
762
- success: p,
763
- error: v
764
- }), !m && l(o) ? j(o, "success") : !m && S.error ? j(o, "error") : (m || !S.loading) && (S.loading = !0, S.error = !1, i(_(o), function() {
765
- S.loading = !1, j(o, "success");
766
- }, function() {
767
- S.loading = !1, S.error = !0, j(o, "error");
768
- }));
769
- }
770
- var x = r[o];
771
- x && x.length ? y(x, L, v) : L();
772
- }
773
- function j(o, p) {
774
- if (e[o]) {
775
- for (var v = e[o].callbacks, m = 0, L = v.length; m < L; m++) {
776
- var x = v[m][p];
777
- x && setTimeout(x, 0);
778
- }
779
- v.length = 0;
780
- }
781
- }
782
- Prism.hooks.add("complete", function(o) {
783
- var p = o.element, v = o.language;
784
- if (!(!p || !v || v === s)) {
785
- var m = b(p);
786
- /^diff-./i.test(v) ? (m.push("diff"), m.push(v.substr(5))) : m.push(v), m.every(l) || y(m, function() {
787
- Prism.highlightElement(p);
788
- });
789
- }
790
- });
791
- })();
792
422
  (function() {
793
423
  if (typeof Prism > "u" || typeof document > "u")
794
424
  return;
@@ -800,14 +430,14 @@ Prism.languages.webmanifest = Prism.languages.json;
800
430
  * @param {number} number line number
801
431
  * @returns {Element|undefined}
802
432
  */
803
- getLine: function(a, d) {
433
+ getLine: function(a, o) {
804
434
  if (!(a.tagName !== "PRE" || !a.classList.contains(r))) {
805
435
  var n = a.querySelector(".line-numbers-rows");
806
436
  if (n) {
807
- var c = parseInt(a.getAttribute("data-start"), 10) || 1, h = c + (n.children.length - 1);
808
- d < c && (d = c), d > h && (d = h);
809
- var i = d - c;
810
- return n.children[i];
437
+ var l = parseInt(a.getAttribute("data-start"), 10) || 1, p = l + (n.children.length - 1);
438
+ o < l && (o = l), o > p && (o = p);
439
+ var d = o - l;
440
+ return n.children[d];
811
441
  }
812
442
  }
813
443
  },
@@ -836,40 +466,40 @@ Prism.languages.webmanifest = Prism.languages.json;
836
466
  };
837
467
  function s(a) {
838
468
  if (a = a.filter(function(n) {
839
- var c = u(n), h = c["white-space"];
840
- return h === "pre-wrap" || h === "pre-line";
469
+ var l = u(n), p = l["white-space"];
470
+ return p === "pre-wrap" || p === "pre-line";
841
471
  }), a.length != 0) {
842
- var d = a.map(function(n) {
843
- var c = n.querySelector("code"), h = n.querySelector(".line-numbers-rows");
844
- if (!(!c || !h)) {
845
- var i = n.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 = "", {
472
+ var o = a.map(function(n) {
473
+ var l = n.querySelector("code"), p = n.querySelector(".line-numbers-rows");
474
+ if (!(!l || !p)) {
475
+ var d = n.querySelector(".line-numbers-sizer"), h = l.textContent.split(t);
476
+ d || (d = document.createElement("span"), d.className = "line-numbers-sizer", l.appendChild(d)), d.innerHTML = "0", d.style.display = "block";
477
+ var i = d.getBoundingClientRect().height;
478
+ return d.innerHTML = "", {
849
479
  element: n,
850
- lines: b,
480
+ lines: h,
851
481
  lineHeights: [],
852
- oneLinerHeight: l,
853
- sizer: i
482
+ oneLinerHeight: i,
483
+ sizer: d
854
484
  };
855
485
  }
856
486
  }).filter(Boolean);
857
- d.forEach(function(n) {
858
- var c = n.sizer, h = n.lines, i = n.lineHeights, b = n.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;
487
+ o.forEach(function(n) {
488
+ var l = n.sizer, p = n.lines, d = n.lineHeights, h = n.oneLinerHeight;
489
+ d[p.length - 1] = void 0, p.forEach(function(i, f) {
490
+ if (i && i.length > 1) {
491
+ var C = l.appendChild(document.createElement("span"));
492
+ C.style.display = "block", C.textContent = i;
863
493
  } else
864
- i[_] = b;
494
+ d[f] = h;
865
495
  });
866
- }), d.forEach(function(n) {
867
- for (var c = n.sizer, h = n.lineHeights, i = 0, b = 0; b < h.length; b++)
868
- h[b] === void 0 && (h[b] = c.children[i++].getBoundingClientRect().height);
869
- }), d.forEach(function(n) {
870
- var c = n.sizer, h = n.element.querySelector(".line-numbers-rows");
871
- c.style.display = "none", c.innerHTML = "", n.lineHeights.forEach(function(i, b) {
872
- h.children[b].style.height = i + "px";
496
+ }), o.forEach(function(n) {
497
+ for (var l = n.sizer, p = n.lineHeights, d = 0, h = 0; h < p.length; h++)
498
+ p[h] === void 0 && (p[h] = l.children[d++].getBoundingClientRect().height);
499
+ }), o.forEach(function(n) {
500
+ var l = n.sizer, p = n.element.querySelector(".line-numbers-rows");
501
+ l.style.display = "none", l.innerHTML = "", n.lineHeights.forEach(function(d, h) {
502
+ p.children[h].style.height = d + "px";
873
503
  });
874
504
  });
875
505
  }
@@ -877,29 +507,29 @@ Prism.languages.webmanifest = Prism.languages.json;
877
507
  function u(a) {
878
508
  return a ? window.getComputedStyle ? getComputedStyle(a) : a.currentStyle || null : null;
879
509
  }
880
- var f = void 0;
510
+ var v = void 0;
881
511
  window.addEventListener("resize", function() {
882
- e.assumeViewportIndependence && f === window.innerWidth || (f = window.innerWidth, s(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
512
+ e.assumeViewportIndependence && v === window.innerWidth || (v = window.innerWidth, s(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
883
513
  }), Prism.hooks.add("complete", function(a) {
884
514
  if (a.code) {
885
- var d = (
515
+ var o = (
886
516
  /** @type {Element} */
887
517
  a.element
888
518
  ), n = (
889
519
  /** @type {HTMLElement} */
890
- d.parentNode
520
+ o.parentNode
891
521
  );
892
- if (!(!n || !/pre/i.test(n.nodeName)) && !d.querySelector(".line-numbers-rows") && Prism.util.isActive(d, r)) {
893
- d.classList.remove(r), n.classList.add(r);
894
- var c = a.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, n.hasAttribute("data-start") && (n.style.counterReset = "linenumber " + (parseInt(n.getAttribute("data-start"), 10) - 1)), a.element.appendChild(i), s([n]), Prism.hooks.run("line-numbers", a);
522
+ if (!(!n || !/pre/i.test(n.nodeName)) && !o.querySelector(".line-numbers-rows") && Prism.util.isActive(o, r)) {
523
+ o.classList.remove(r), n.classList.add(r);
524
+ var l = a.code.match(t), p = l ? l.length + 1 : 1, d, h = new Array(p + 1).join("<span></span>");
525
+ d = document.createElement("span"), d.setAttribute("aria-hidden", "true"), d.className = "line-numbers-rows", d.innerHTML = h, n.hasAttribute("data-start") && (n.style.counterReset = "linenumber " + (parseInt(n.getAttribute("data-start"), 10) - 1)), a.element.appendChild(d), s([n]), Prism.hooks.run("line-numbers", a);
896
526
  }
897
527
  }
898
528
  }), Prism.hooks.add("line-numbers", function(a) {
899
529
  a.plugins = a.plugins || {}, a.plugins.lineNumbers = !0;
900
530
  });
901
531
  })();
902
- const ft = /* @__PURE__ */ I({
532
+ const fe = ["innerHTML"], dt = /* @__PURE__ */ k({
903
533
  __name: "ScalarCodeBlock",
904
534
  props: {
905
535
  content: {},
@@ -908,96 +538,107 @@ const ft = /* @__PURE__ */ I({
908
538
  hideCredentials: {}
909
539
  },
910
540
  setup(r) {
911
- const t = r, { plugins: e, highlightElement: s } = q;
912
- t.hideCredentials && q.hooks.add("wrap", function(a) {
541
+ const t = r, { plugins: e, highlightElement: s } = E;
542
+ t.hideCredentials && E.hooks.add("wrap", function(o) {
913
543
  if (!t.hideCredentials)
914
544
  return;
915
- let d = !1;
916
- typeof t.hideCredentials == "string" ? a.content.includes(t.hideCredentials) && (d = !0) : Array.isArray(t.hideCredentials) && (d = t.hideCredentials.some(
917
- (n) => a.content.includes(n)
918
- )), d && (a.content = a.content.replace(
545
+ let n = !1;
546
+ typeof t.hideCredentials == "string" ? o.content.includes(t.hideCredentials) && (n = !0) : Array.isArray(t.hideCredentials) && (n = t.hideCredentials.some(
547
+ (l) => o.content.includes(l)
548
+ )), n && (o.content = o.content.replace(
919
549
  /<span class="credentials">.*?<\/span>/g,
920
- (n) => n.replace(/<span class="credentials">|<\/span>/g, "")
921
- ), a.content = a.content.replace(
550
+ (l) => l.replace(/<span class="credentials">|<\/span>/g, "")
551
+ ), o.content = o.content.replace(
922
552
  new RegExp(
923
553
  typeof t.hideCredentials == "string" ? t.hideCredentials : t.hideCredentials.join("|"),
924
554
  "g"
925
555
  ),
926
- (n) => `<span class="credentials">${n}</span>`
556
+ (l) => `<span class="credentials">${l}</span>`
927
557
  ));
928
558
  });
929
- const u = z(null), f = H(() => t.lang === "node" ? "js" : t.lang);
930
- return e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/", re(
559
+ const u = T(null), v = T(""), a = O(() => t.lang === "node" ? "js" : t.lang);
560
+ return Z(
931
561
  () => [t.lang, t.content],
932
562
  () => {
933
- u.value && ae(() => s(u.value));
563
+ u.value && W(() => s(u.value));
934
564
  }
935
- ), W(() => {
936
- u.value && s(u.value);
937
- }), (a, d) => (w(), C("pre", {
938
- class: k(["scalar-component scalar-codeblock-pre", {
939
- "line-numbers": a.lineNumbers
940
- }])
565
+ ), X(async () => {
566
+ const o = E.highlight(
567
+ typeof t.content == "object" ? JSON.stringify(t.content) : t.content,
568
+ E.languages[a.value],
569
+ a.value
570
+ );
571
+ v.value = o;
572
+ }), H(async () => {
573
+ u.value && s(u.value), await import("./prism-autoloader-Dlh8Vzlw.js"), e.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
574
+ }), (o, n) => (g(), b("pre", {
575
+ class: m([
576
+ `scalar-component scalar-codeblock-pre language-${a.value}`,
577
+ {
578
+ "line-numbers": o.lineNumbers
579
+ }
580
+ ])
941
581
  }, [
942
- A("code", {
582
+ _("code", {
943
583
  ref_key: "el",
944
584
  ref: u,
945
- class: k(`scalar-codeblock-code lang-${f.value}`)
946
- }, M(a.content), 3)
585
+ class: m(`scalar-codeblock-code language-${a.value}`),
586
+ innerHTML: v.value || o.content
587
+ }, null, 10, fe)
947
588
  ], 2));
948
589
  }
949
- }), Ee = (r) => Object.fromEntries(Array.from(r).map((t) => [t.name, t.value])), Le = (r) => ({ raw: t }) => {
590
+ }), be = (r) => Object.fromEntries(Array.from(r).map((t) => [t.name, t.value])), we = (r) => ({ raw: t }) => {
950
591
  const s = new r().parseFromString(t, "image/svg+xml");
951
592
  if (s.getElementsByTagName("parsererror").length)
952
593
  return;
953
- const u = s.documentElement, f = Ee(u.attributes), { width: a, height: d, ...n } = f;
954
- return oe("svg", { ...n, innerHTML: u.innerHTML });
955
- }, Ae = ne(async () => {
956
- const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = Le(r);
594
+ const u = s.documentElement, v = be(u.attributes), { width: a, height: o, ...n } = v;
595
+ return K("svg", { ...n, innerHTML: u.innerHTML });
596
+ }, _e = q(async () => {
597
+ const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = we(r);
957
598
  return t.props = {
958
599
  raw: {
959
600
  type: String,
960
601
  required: !0
961
602
  }
962
603
  }, t;
963
- }), Te = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
604
+ }), Se = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
964
605
  <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
965
606
  d="M24 1.714v44.572M1.714 24h44.572" />
966
- </svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
607
+ </svg>`, ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
967
608
  <path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
968
- </svg>`, Me = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
609
+ </svg>`, Ce = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
969
610
  <path d="M4.5 8.25L12 15.75L19.5 8.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
970
611
  </svg>
971
- `, Ne = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
612
+ `, xe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
972
613
  <path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
973
614
  </svg>
974
- `, je = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
615
+ `, ye = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
975
616
  <path d="M8.25 19.5L15.75 12L8.25 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
976
- </svg>`, Oe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
617
+ </svg>`, Ee = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
977
618
  <path d="M19.5 15.75L12 8.25L4.5 15.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
978
619
  </svg>
979
- `, Be = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
620
+ `, Le = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
980
621
  <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
981
622
  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" />
982
- </svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
623
+ </svg>`, Ae = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
983
624
  <path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
984
- </svg>`, Pe = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
625
+ </svg>`, Te = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
985
626
  <path
986
627
  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"
987
628
  fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
988
- </svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
629
+ </svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
989
630
  <path
990
631
  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" />
991
- </svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
632
+ </svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
992
633
  <g fill="none" fill-rule="evenodd" transform="translate(.67 .67)">
993
634
  <rect transform="rotate(180 4 4)" />
994
635
  <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"
995
636
  d="M2.85 1.73h3.4v3.4m0-3.4L1.74 6.24" />
996
637
  </g>
997
- </svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
638
+ </svg>`, Ne = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
998
639
  <path
999
640
  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" />
1000
- </svg>`, $e = `<svg
641
+ </svg>`, Oe = `<svg
1001
642
  height="24"
1002
643
  viewBox="0 0 24 24"
1003
644
  width="24"
@@ -1006,7 +647,7 @@ const ft = /* @__PURE__ */ I({
1006
647
  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"
1007
648
  fill="currentColor"
1008
649
  stroke-width="1"></path>
1009
- </svg>`, Ge = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
650
+ </svg>`, Be = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
1010
651
  <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"
1011
652
  stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
1012
653
  <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"
@@ -1027,41 +668,41 @@ const ft = /* @__PURE__ */ I({
1027
668
  <path
1028
669
  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"
1029
670
  fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
1030
- </svg>`, qe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
671
+ </svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
1031
672
  <path fill="currentColor" fill-rule="evenodd"
1032
673
  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" />
1033
- </svg>`, Ve = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
674
+ </svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
1034
675
  <path fill-rule="evenodd" fill="currentColor"
1035
676
  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" />
1036
- </svg>`, Fe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
677
+ </svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
1037
678
  <path fill="currentColor"
1038
679
  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" />
1039
- </svg>`, Ue = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
680
+ </svg>`, Pe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
1040
681
  <path
1041
682
  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" />
1042
- </svg>`, Ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
683
+ </svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
1043
684
  <path
1044
685
  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" />
1045
- </svg>`, We = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
686
+ </svg>`, $e = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
1046
687
  <path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
1047
- </svg>`, Xe = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
688
+ </svg>`, Ge = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
1048
689
  <path fill="currentColor" fill-rule="evenodd"
1049
690
  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"
1050
691
  clip-rule="evenodd"></path>
1051
- </svg>`, Ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
692
+ </svg>`, je = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
1052
693
  <path fill-rule="evenodd"
1053
694
  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" />
1054
- </svg>`, V = /* @__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) => {
695
+ </svg>`, D = /* @__PURE__ */ Object.assign({ "./Add.svg": Se, "./CheckMark.svg": ke, "./ChevronDown.svg": Ce, "./ChevronLeft.svg": xe, "./ChevronRight.svg": ye, "./ChevronUp.svg": Ee, "./Clipboard.svg": Le, "./Close.svg": Ae, "./DarkMode.svg": Te, "./Ellipses.svg": Me, "./ExternalLink.svg": Ie, "./GitHub.svg": Ne, "./LightDarkModeToggle.svg": Oe, "./LightMode.svg": Be, "./Logo.svg": De, "./LogoAPI.svg": Re, "./LogoClient.svg": ze, "./LogoMarket.svg": Pe, "./LogoSwagger.svg": He, "./Menu.svg": $e, "./PaperAirplane.svg": Ge, "./Search.svg": je }), Ve = (r) => {
1055
696
  const t = `./${r}.svg`;
1056
- return V[t] === void 0 ? (console.warn(`Could not find icon: ${r}`), "") : V[t];
1057
- }, J = /* @__PURE__ */ I({
697
+ return D[t] === void 0 ? (console.warn(`Could not find icon: ${r}`), "") : D[t];
698
+ }, V = /* @__PURE__ */ k({
1058
699
  __name: "ScalarIcon",
1059
700
  props: {
1060
701
  icon: {},
1061
702
  size: {}
1062
703
  },
1063
704
  setup(r) {
1064
- const t = r, e = N({
705
+ const t = r, e = x({
1065
706
  variants: {
1066
707
  size: {
1067
708
  xs: "h-3 w-3",
@@ -1075,14 +716,14 @@ const ft = /* @__PURE__ */ I({
1075
716
  defaultVariants: {
1076
717
  size: "full"
1077
718
  }
1078
- }), s = H(() => Ye(t.icon));
1079
- return (u, f) => s.value ? (w(), P(g(Ae), {
719
+ }), s = O(() => Ve(t.icon));
720
+ return (u, v) => s.value ? (g(), M(c(_e), {
1080
721
  key: 0,
1081
- class: k(g(E)("scalar-icon", g(e)({ size: u.size }))),
722
+ class: m(c(w)("scalar-icon", c(e)({ size: u.size }))),
1082
723
  raw: s.value
1083
- }, null, 8, ["class", "raw"])) : T("", !0);
724
+ }, null, 8, ["class", "raw"])) : S("", !0);
1084
725
  }
1085
- }), Je = ["ariaDisabled"], Qe = { class: "sr-only" }, et = /* @__PURE__ */ I({
726
+ }), Fe = ["ariaDisabled"], Ue = { class: "sr-only" }, Ze = /* @__PURE__ */ k({
1086
727
  __name: "ScalarIconButton",
1087
728
  props: {
1088
729
  label: {},
@@ -1092,7 +733,7 @@ const ft = /* @__PURE__ */ I({
1092
733
  size: { default: "md" }
1093
734
  },
1094
735
  setup(r) {
1095
- const t = N({
736
+ const t = x({
1096
737
  base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
1097
738
  variants: {
1098
739
  size: {
@@ -1104,19 +745,19 @@ const ft = /* @__PURE__ */ I({
1104
745
  disabled: {
1105
746
  true: "cursor-not-allowed shadow-none"
1106
747
  },
1107
- variant: Y
748
+ variant: j
1108
749
  }
1109
750
  });
1110
- return (e, s) => (w(), C("button", {
751
+ return (e, s) => (g(), b("button", {
1111
752
  ariaDisabled: e.disabled || void 0,
1112
- class: k(g(E)(g(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
753
+ class: m(c(w)(c(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
1113
754
  type: "button"
1114
755
  }, [
1115
- D(g(J), { icon: e.icon }, null, 8, ["icon"]),
1116
- A("span", Qe, M(e.label), 1)
1117
- ], 10, Je));
756
+ A(c(V), { icon: e.icon }, null, 8, ["icon"]),
757
+ _("span", Ue, I(e.label), 1)
758
+ ], 10, Fe));
1118
759
  }
1119
- }), bt = () => F({
760
+ }), ct = () => R({
1120
761
  open: !1,
1121
762
  show() {
1122
763
  this.open = !0;
@@ -1124,7 +765,7 @@ const ft = /* @__PURE__ */ I({
1124
765
  hide() {
1125
766
  this.open = !1;
1126
767
  }
1127
- }), tt = /* @__PURE__ */ I({
768
+ }), We = /* @__PURE__ */ k({
1128
769
  __name: "ScalarModal",
1129
770
  props: {
1130
771
  state: {},
@@ -1135,7 +776,7 @@ const ft = /* @__PURE__ */ I({
1135
776
  variant: {}
1136
777
  },
1137
778
  setup(r) {
1138
- const t = N({
779
+ const t = x({
1139
780
  base: [
1140
781
  "scalar-modal",
1141
782
  "col leading-snug relative mx-auto mb-0 mt-20 w-full rounded-lg bg-back-2 text-left text-fore-1 opacity-0"
@@ -1153,46 +794,46 @@ const ft = /* @__PURE__ */ I({
1153
794
  }
1154
795
  }
1155
796
  });
1156
- return (e, s) => (w(), P(g(ue), {
797
+ return (e, s) => (g(), M(c(re), {
1157
798
  open: e.state.open,
1158
799
  onClose: s[0] || (s[0] = (u) => e.state.hide())
1159
800
  }, {
1160
- default: O(() => [
1161
- A("div", {
1162
- class: k(
1163
- g(E)(
801
+ default: y(() => [
802
+ _("div", {
803
+ class: m(
804
+ c(w)(
1164
805
  "scalar-modal-layout fixed left-0 top-0",
1165
806
  "z-[1001] h-[100dvh] w-[100dvw]",
1166
807
  "bg-backdrop p-5 opacity-0"
1167
808
  )
1168
809
  )
1169
810
  }, [
1170
- D(g(pe), {
1171
- class: k(g(t)({ size: e.size, variant: e.variant })),
1172
- style: X({ maxWidth: e.maxWidth })
811
+ A(c(ne), {
812
+ class: m(c(t)({ size: e.size, variant: e.variant })),
813
+ style: $({ maxWidth: e.maxWidth })
1173
814
  }, {
1174
- default: O(() => [
1175
- e.title ? (w(), P(g(me), {
815
+ default: y(() => [
816
+ e.title ? (g(), M(c(ae), {
1176
817
  key: 0,
1177
- 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" }])
818
+ class: m(["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" }])
1178
819
  }, {
1179
- default: O(() => [
1180
- se(M(e.title), 1)
820
+ default: y(() => [
821
+ Y(I(e.title), 1)
1181
822
  ]),
1182
823
  _: 1
1183
- }, 8, ["class"])) : T("", !0),
1184
- D(g(he), {
1185
- class: k([
824
+ }, 8, ["class"])) : S("", !0),
825
+ A(c(oe), {
826
+ class: m([
1186
827
  "scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
1187
- g(E)(
828
+ c(w)(
1188
829
  e.bodyClass,
1189
830
  e.variant === "history" && "pt-3",
1190
831
  e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
1191
832
  )
1192
833
  ])
1193
834
  }, {
1194
- default: O(() => [
1195
- B(e.$slots, "default", {}, void 0, !0)
835
+ default: y(() => [
836
+ L(e.$slots, "default", {}, void 0, !0)
1196
837
  ]),
1197
838
  _: 3
1198
839
  }, 8, ["class"])
@@ -1204,7 +845,7 @@ const ft = /* @__PURE__ */ I({
1204
845
  _: 3
1205
846
  }, 8, ["open"]));
1206
847
  }
1207
- }), 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({
848
+ }), Xe = /* @__PURE__ */ B(We, [["__scopeId", "data-v-ff85ced0"]]), qe = { class: "scalar-input-container relative" }, Ke = ["for"], Ye = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, Je = /* @__PURE__ */ k({
1208
849
  __name: "ScalarTextField",
1209
850
  props: {
1210
851
  modelValue: {},
@@ -1221,7 +862,7 @@ const ft = /* @__PURE__ */ I({
1221
862
  },
1222
863
  emits: ["submit", "update:modelValue"],
1223
864
  setup(r, { emit: t }) {
1224
- const e = r, s = t, u = N({
865
+ const e = r, s = t, u = x({
1225
866
  base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
1226
867
  variants: {
1227
868
  focus: {
@@ -1229,81 +870,81 @@ const ft = /* @__PURE__ */ I({
1229
870
  },
1230
871
  error: { true: "scalar-input-wrapper-error border-error" }
1231
872
  }
1232
- }), f = U(), a = f.id || `id-${ve()}`, d = z(), n = z(!1);
1233
- let c;
873
+ }), v = z(), a = v.id || `id-${le()}`, o = T(), n = T(!1);
874
+ let l;
1234
875
  if (e.isMultiline) {
1235
- const { triggerResize: l } = ge({
1236
- element: d,
876
+ const { triggerResize: i } = se({
877
+ element: o,
1237
878
  input: e.modelValue
1238
879
  });
1239
- c = l;
880
+ l = i;
1240
881
  }
1241
- function h(l) {
1242
- const _ = l.target.value;
1243
- e.isMultiline && c(), e.handleFieldChange ? e.handleFieldChange(_) : s("update:modelValue", _);
882
+ function p(i) {
883
+ const f = i.target.value;
884
+ e.isMultiline && l(), e.handleFieldChange ? e.handleFieldChange(f) : s("update:modelValue", f);
1244
885
  }
1245
- function i(l) {
1246
- const _ = l.target, y = e.disableTrim || e.isMultiline ? _.value : _.value.trim();
1247
- e.handleFieldSubmit ? e.handleFieldSubmit(y) : s("submit", y);
886
+ function d(i) {
887
+ const f = i.target, C = e.disableTrim || e.isMultiline ? f.value : f.value.trim();
888
+ e.handleFieldSubmit ? e.handleFieldSubmit(C) : s("submit", C);
1248
889
  }
1249
- function b(l) {
1250
- n.value = !1, e.emitOnBlur && e.modelValue && i(l);
890
+ function h(i) {
891
+ n.value = !1, e.emitOnBlur && e.modelValue && d(i);
1251
892
  }
1252
- return W(() => {
1253
- var l;
1254
- Object.prototype.hasOwnProperty.call(f, "autofocus") && ((l = d.value) == null || l.focus());
1255
- }), (l, _) => (w(), C("div", at, [
1256
- A("div", {
1257
- class: k(g(u)({ error: l.error, focus: n.value }))
893
+ return H(() => {
894
+ var i;
895
+ Object.prototype.hasOwnProperty.call(v, "autofocus") && ((i = o.value) == null || i.focus());
896
+ }), (i, f) => (g(), b("div", qe, [
897
+ _("div", {
898
+ class: m(c(u)({ error: i.error, focus: n.value }))
1258
899
  }, [
1259
- (w(), P(le(l.isMultiline ? "textarea" : "input"), Z({ id: g(a) }, l.$attrs, {
900
+ (g(), M(J(i.isMultiline ? "textarea" : "input"), P({ id: c(a) }, i.$attrs, {
1260
901
  ref_key: "input",
1261
- ref: d,
902
+ ref: o,
1262
903
  class: [
1263
904
  "scalar-input",
1264
- g(E)(
1265
- { "min-h-[77px]": l.isMultiline },
905
+ c(w)(
906
+ { "min-h-[77px]": i.isMultiline },
1266
907
  "z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
1267
908
  "outline-none transition-opacity"
1268
909
  )
1269
910
  ],
1270
- placeholder: l.placeholder,
1271
- value: l.modelValue,
1272
- onBlur: b,
1273
- onFocus: _[0] || (_[0] = (y) => n.value = !0),
1274
- onInput: h,
1275
- onKeyup: ie(i, ["enter"])
911
+ placeholder: i.placeholder,
912
+ value: i.modelValue,
913
+ onBlur: h,
914
+ onFocus: f[0] || (f[0] = (C) => n.value = !0),
915
+ onInput: p,
916
+ onKeyup: Q(d, ["enter"])
1276
917
  }), null, 16, ["id", "class", "placeholder", "value"])),
1277
- l.label ? (w(), C("label", {
918
+ i.label ? (g(), b("label", {
1278
919
  key: 0,
1279
- class: k(
1280
- g(E)(
920
+ class: m(
921
+ c(w)(
1281
922
  "scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
1282
923
  "shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
1283
924
  )
1284
925
  ),
1285
- for: g(a),
1286
- style: X({
1287
- "box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
1288
- "background-color": l.labelShadowColor
926
+ for: c(a),
927
+ style: $({
928
+ "box-shadow": `0 0 4px 4px ${i.labelShadowColor}`,
929
+ "background-color": i.labelShadowColor
1289
930
  })
1290
- }, M(l.label), 15, nt)) : T("", !0),
1291
- A("div", ot, [
1292
- B(l.$slots, "default", {}, void 0, !0)
931
+ }, I(i.label), 15, Ke)) : S("", !0),
932
+ _("div", Ye, [
933
+ L(i.$slots, "default", {}, void 0, !0)
1293
934
  ])
1294
935
  ], 2),
1295
- A("span", {
1296
- class: k(
1297
- g(E)(
936
+ _("span", {
937
+ class: m(
938
+ c(w)(
1298
939
  "helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
1299
940
  "before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
1300
941
  "before:bg-error before:text-white before:content-['!'] empty:hidden"
1301
942
  )
1302
943
  )
1303
- }, M(l.helperText), 3)
944
+ }, I(i.helperText), 3)
1304
945
  ]));
1305
946
  }
1306
- }), lt = /* @__PURE__ */ $(st, [["__scopeId", "data-v-4717ec50"]]), kt = {
947
+ }), Qe = /* @__PURE__ */ B(Je, [["__scopeId", "data-v-4717ec50"]]), ut = {
1307
948
  boxShadow: {
1308
949
  DEFAULT: "var(--theme-shadow-1, var(--default-theme-shadow-1))",
1309
950
  md: "var(--theme-shadow-2, var(--default-theme-shadow-2))",
@@ -1335,7 +976,7 @@ const ft = /* @__PURE__ */ I({
1335
976
  ghost: "var(--theme-color-ghost, var(--default-theme-color-ghost))",
1336
977
  transparent: "transparent"
1337
978
  }
1338
- }, wt = {
979
+ }, pt = {
1339
980
  borderRadius: {
1340
981
  DEFAULT: "var(--theme-radius, var(--default-theme-radius))",
1341
982
  md: "var(--theme-radius, var(--default-theme-radius))",
@@ -1359,22 +1000,22 @@ const ft = /* @__PURE__ */ I({
1359
1000
  "screen-md": "640px",
1360
1001
  "screen-lg": "800px"
1361
1002
  }
1362
- }, _t = {
1003
+ }, ht = {
1363
1004
  install: (r) => {
1364
- r.component("ScalarButton", Ce), r.component("ScalarIcon", J), r.component("ScalarIconButton", et), r.component("ScalarLoading", K), r.component("ScalarModal", rt), r.component("ScalarTextField", lt);
1005
+ r.component("ScalarButton", ve), r.component("ScalarIcon", V), r.component("ScalarIconButton", Ze), r.component("ScalarLoading", G), r.component("ScalarModal", Xe), r.component("ScalarTextField", Qe);
1365
1006
  }
1366
1007
  };
1367
1008
  export {
1368
- Ce as ScalarButton,
1369
- ft as ScalarCodeBlock,
1370
- J as ScalarIcon,
1371
- et as ScalarIconButton,
1372
- K as ScalarLoading,
1373
- rt as ScalarModal,
1374
- lt as ScalarTextField,
1375
- _t as default,
1376
- wt as extend,
1377
- kt as theme,
1378
- vt as useLoadingState,
1379
- bt as useModal
1009
+ ve as ScalarButton,
1010
+ dt as ScalarCodeBlock,
1011
+ V as ScalarIcon,
1012
+ Ze as ScalarIconButton,
1013
+ G as ScalarLoading,
1014
+ Xe as ScalarModal,
1015
+ Qe as ScalarTextField,
1016
+ ht as default,
1017
+ pt as extend,
1018
+ ut as theme,
1019
+ it as useLoadingState,
1020
+ ct as useModal
1380
1021
  };