@scalar/components 0.4.4 → 0.4.6
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/LICENSE +1 -1
- package/dist/index.cjs +23 -24
- package/dist/index.js +258 -605
- package/dist/main.css +1 -0
- package/dist/prism-autoloader-Dlh8Vzlw.js +370 -0
- package/dist/prism-autoloader-hGN9n4IP.cjs +1 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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
|
|
3
|
-
import { defineConfig as
|
|
4
|
-
import { extendTailwindMerge as
|
|
5
|
-
import
|
|
6
|
-
import { Dialog as
|
|
7
|
-
import { useTextareaAutosize as
|
|
8
|
-
import { nanoid as
|
|
9
|
-
const
|
|
1
|
+
import "./main.css";
|
|
2
|
+
import { defineComponent as S, useCssVars as F, openBlock as m, createElementBlock as f, normalizeClass as h, unref as c, createElementVNode as _, createCommentVNode as k, createStaticVNode as U, reactive as R, computed as O, useAttrs as z, mergeProps as P, renderSlot as A, createVNode as T, ref as M, watch as Z, nextTick as W, onServerPrefetch as X, onMounted as H, toDisplayString as x, defineAsyncComponent as q, h as K, createBlock as I, withCtx as E, 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 L 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
|
-
[
|
|
13
|
+
[N]: [N]
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
}), { cva:
|
|
16
|
+
}), { cva: y, cx: w, compose: it } = ee({
|
|
17
17
|
hooks: {
|
|
18
|
-
onComplete: (r) => `${
|
|
18
|
+
onComplete: (r) => `${ie(r, N)}`
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
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
|
|
25
|
-
return
|
|
24
|
+
function dt() {
|
|
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
|
|
58
|
+
const ue = /* @__PURE__ */ S({
|
|
59
59
|
__name: "ScalarLoading",
|
|
60
60
|
props: {
|
|
61
61
|
loadingState: {},
|
|
62
62
|
size: { default: "24px" }
|
|
63
63
|
},
|
|
64
64
|
setup(r) {
|
|
65
|
-
return
|
|
65
|
+
return F((t) => ({
|
|
66
66
|
"8d3a1414": t.size
|
|
67
|
-
})), (t, e) => t.loadingState ? (
|
|
67
|
+
})), (t, e) => t.loadingState ? (m(), f("div", {
|
|
68
68
|
key: 0,
|
|
69
|
-
class:
|
|
69
|
+
class: h(c(w)("loader-wrapper"))
|
|
70
70
|
}, [
|
|
71
|
-
(
|
|
72
|
-
class:
|
|
71
|
+
(m(), f("svg", {
|
|
72
|
+
class: h(["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
|
-
|
|
81
|
-
t.loadingState.isLoading ? (
|
|
82
|
-
|
|
83
|
-
class:
|
|
80
|
+
de,
|
|
81
|
+
t.loadingState.isLoading ? (m(), f("g", ce, [
|
|
82
|
+
_("circle", {
|
|
83
|
+
class: h(["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
|
-
])) :
|
|
92
|
+
])) : k("", !0)
|
|
93
93
|
], 2))
|
|
94
|
-
], 2)) :
|
|
94
|
+
], 2)) : k("", !0);
|
|
95
95
|
}
|
|
96
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
118
|
+
}, pe = y({
|
|
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:
|
|
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
|
-
}),
|
|
135
|
+
}), he = ["ariaDisabled"], me = {
|
|
136
136
|
key: 0,
|
|
137
137
|
class: "mr-2 h-4 w-4"
|
|
138
|
-
},
|
|
138
|
+
}, ge = {
|
|
139
139
|
key: 1,
|
|
140
140
|
class: "ml-2"
|
|
141
|
-
},
|
|
141
|
+
}, ve = /* @__PURE__ */ S({
|
|
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 =
|
|
153
|
-
const { class: e, ...s } =
|
|
152
|
+
const t = O(() => {
|
|
153
|
+
const { class: e, ...s } = z();
|
|
154
154
|
return { className: e || "", rest: s };
|
|
155
155
|
});
|
|
156
|
-
return (e, s) => (
|
|
156
|
+
return (e, s) => (m(), f("button", P(t.value.rest, {
|
|
157
157
|
ariaDisabled: e.disabled || void 0,
|
|
158
|
-
class:
|
|
159
|
-
|
|
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 ? (
|
|
166
|
-
|
|
167
|
-
])) :
|
|
168
|
-
|
|
169
|
-
e.loading ? (
|
|
170
|
-
|
|
165
|
+
e.$slots.icon ? (m(), f("div", me, [
|
|
166
|
+
A(e.$slots, "icon")
|
|
167
|
+
])) : k("", !0),
|
|
168
|
+
A(e.$slots, "default"),
|
|
169
|
+
e.loading ? (m(), f("div", ge, [
|
|
170
|
+
T(c(G), {
|
|
171
171
|
loadingState: e.loading,
|
|
172
172
|
size: "20px"
|
|
173
173
|
}, null, 8, ["loadingState"])
|
|
174
|
-
])) :
|
|
175
|
-
], 16,
|
|
174
|
+
])) : k("", !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
|
-
],
|
|
394
|
-
|
|
393
|
+
], g = s.variable[1].inside, a = 0; a < u.length; a++)
|
|
394
|
+
g[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,
|
|
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
|
|
808
|
-
|
|
809
|
-
var
|
|
810
|
-
return n.children[
|
|
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
|
|
840
|
-
return
|
|
469
|
+
var l = u(n), p = l["white-space"];
|
|
470
|
+
return p === "pre-wrap" || p === "pre-line";
|
|
841
471
|
}), a.length != 0) {
|
|
842
|
-
var
|
|
843
|
-
var
|
|
844
|
-
if (!(!
|
|
845
|
-
var
|
|
846
|
-
|
|
847
|
-
var
|
|
848
|
-
return
|
|
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"), v = 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:
|
|
480
|
+
lines: v,
|
|
851
481
|
lineHeights: [],
|
|
852
|
-
oneLinerHeight:
|
|
853
|
-
sizer:
|
|
482
|
+
oneLinerHeight: i,
|
|
483
|
+
sizer: d
|
|
854
484
|
};
|
|
855
485
|
}
|
|
856
486
|
}).filter(Boolean);
|
|
857
|
-
|
|
858
|
-
var
|
|
859
|
-
|
|
860
|
-
if (
|
|
861
|
-
var
|
|
862
|
-
|
|
487
|
+
o.forEach(function(n) {
|
|
488
|
+
var l = n.sizer, p = n.lines, d = n.lineHeights, v = n.oneLinerHeight;
|
|
489
|
+
d[p.length - 1] = void 0, p.forEach(function(i, b) {
|
|
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
|
-
|
|
494
|
+
d[b] = v;
|
|
865
495
|
});
|
|
866
|
-
}),
|
|
867
|
-
for (var
|
|
868
|
-
|
|
869
|
-
}),
|
|
870
|
-
var
|
|
871
|
-
|
|
872
|
-
|
|
496
|
+
}), o.forEach(function(n) {
|
|
497
|
+
for (var l = n.sizer, p = n.lineHeights, d = 0, v = 0; v < p.length; v++)
|
|
498
|
+
p[v] === void 0 && (p[v] = 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, v) {
|
|
502
|
+
p.children[v].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
|
|
510
|
+
var g = void 0;
|
|
881
511
|
window.addEventListener("resize", function() {
|
|
882
|
-
e.assumeViewportIndependence &&
|
|
512
|
+
e.assumeViewportIndependence && g === window.innerWidth || (g = 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
|
|
515
|
+
var o = (
|
|
886
516
|
/** @type {Element} */
|
|
887
517
|
a.element
|
|
888
518
|
), n = (
|
|
889
519
|
/** @type {HTMLElement} */
|
|
890
|
-
|
|
520
|
+
o.parentNode
|
|
891
521
|
);
|
|
892
|
-
if (!(!n || !/pre/i.test(n.nodeName)) && !
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
-
|
|
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, v = new Array(p + 1).join("<span></span>");
|
|
525
|
+
d = document.createElement("span"), d.setAttribute("aria-hidden", "true"), d.className = "line-numbers-rows", d.innerHTML = v, 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
|
|
532
|
+
const fe = ["innerHTML"], ct = /* @__PURE__ */ S({
|
|
903
533
|
__name: "ScalarCodeBlock",
|
|
904
534
|
props: {
|
|
905
535
|
content: {},
|
|
@@ -908,96 +538,119 @@ const ft = /* @__PURE__ */ I({
|
|
|
908
538
|
hideCredentials: {}
|
|
909
539
|
},
|
|
910
540
|
setup(r) {
|
|
911
|
-
const t = r, { plugins: e, highlightElement: s } =
|
|
912
|
-
t.hideCredentials &&
|
|
541
|
+
const t = r, { plugins: e, highlightElement: s } = L;
|
|
542
|
+
t.hideCredentials && L.hooks.add("wrap", function(o) {
|
|
913
543
|
if (!t.hideCredentials)
|
|
914
544
|
return;
|
|
915
|
-
let
|
|
916
|
-
typeof t.hideCredentials == "string" ?
|
|
917
|
-
(
|
|
918
|
-
)),
|
|
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
|
-
(
|
|
921
|
-
),
|
|
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
|
-
(
|
|
556
|
+
(l) => `<span class="credentials">${l}</span>`
|
|
927
557
|
));
|
|
928
558
|
});
|
|
929
|
-
const u =
|
|
930
|
-
return
|
|
559
|
+
const u = M(null), g = M(""), a = O(() => t.lang === "node" ? "js" : t.lang);
|
|
560
|
+
return Z(
|
|
931
561
|
() => [t.lang, t.content],
|
|
932
562
|
() => {
|
|
933
|
-
u.value &&
|
|
563
|
+
u.value && W(() => s(u.value));
|
|
934
564
|
}
|
|
935
|
-
),
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
565
|
+
), X(async () => {
|
|
566
|
+
const o = L.highlight(
|
|
567
|
+
typeof t.content == "object" ? JSON.stringify(t.content) : t.content,
|
|
568
|
+
L.languages[a.value],
|
|
569
|
+
a.value
|
|
570
|
+
);
|
|
571
|
+
g.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.value ? (m(), f("pre", {
|
|
575
|
+
key: 0,
|
|
576
|
+
class: h([
|
|
577
|
+
`scalar-component scalar-codeblock-pre language-${a.value}`,
|
|
578
|
+
{
|
|
579
|
+
"line-numbers": o.lineNumbers
|
|
580
|
+
}
|
|
581
|
+
])
|
|
582
|
+
}, [
|
|
583
|
+
_("code", {
|
|
584
|
+
ref_key: "el",
|
|
585
|
+
ref: u,
|
|
586
|
+
class: h(`scalar-codeblock-code language-${a.value}`),
|
|
587
|
+
innerHTML: g.value
|
|
588
|
+
}, null, 10, fe)
|
|
589
|
+
], 2)) : (m(), f("pre", {
|
|
590
|
+
key: 1,
|
|
591
|
+
class: h(["scalar-component scalar-codeblock-pre", {
|
|
592
|
+
"line-numbers": o.lineNumbers
|
|
940
593
|
}])
|
|
941
594
|
}, [
|
|
942
|
-
|
|
595
|
+
_("code", {
|
|
943
596
|
ref_key: "el",
|
|
944
597
|
ref: u,
|
|
945
|
-
class:
|
|
946
|
-
},
|
|
598
|
+
class: h(`scalar-codeblock-code lang-${a.value}`)
|
|
599
|
+
}, x(o.content), 3)
|
|
947
600
|
], 2));
|
|
948
601
|
}
|
|
949
|
-
}),
|
|
602
|
+
}), be = (r) => Object.fromEntries(Array.from(r).map((t) => [t.name, t.value])), we = (r) => ({ raw: t }) => {
|
|
950
603
|
const s = new r().parseFromString(t, "image/svg+xml");
|
|
951
604
|
if (s.getElementsByTagName("parsererror").length)
|
|
952
605
|
return;
|
|
953
|
-
const u = s.documentElement,
|
|
954
|
-
return
|
|
955
|
-
},
|
|
956
|
-
const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t =
|
|
606
|
+
const u = s.documentElement, g = be(u.attributes), { width: a, height: o, ...n } = g;
|
|
607
|
+
return K("svg", { ...n, innerHTML: u.innerHTML });
|
|
608
|
+
}, _e = q(async () => {
|
|
609
|
+
const r = typeof DOMParser > "u" ? (await import("@xmldom/xmldom")).DOMParser : DOMParser, t = we(r);
|
|
957
610
|
return t.props = {
|
|
958
611
|
raw: {
|
|
959
612
|
type: String,
|
|
960
613
|
required: !0
|
|
961
614
|
}
|
|
962
615
|
}, t;
|
|
963
|
-
}),
|
|
616
|
+
}), ke = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
|
|
964
617
|
<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.429"
|
|
965
618
|
d="M24 1.714v44.572M1.714 24h44.572" />
|
|
966
|
-
</svg>`,
|
|
619
|
+
</svg>`, Se = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 23.5" fill="currentColor">
|
|
967
620
|
<path d="M11.2 23.5 0 12.3l2.15-2.15 9.05 9.05L30.4 0l2.15 2.15z" />
|
|
968
|
-
</svg>`,
|
|
621
|
+
</svg>`, Ce = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
969
622
|
<path d="M4.5 8.25L12 15.75L19.5 8.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
970
623
|
</svg>
|
|
971
|
-
`,
|
|
624
|
+
`, xe = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
972
625
|
<path d="M15.75 19.5L8.25 12L15.75 4.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
973
626
|
</svg>
|
|
974
|
-
`,
|
|
627
|
+
`, ye = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
975
628
|
<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>`,
|
|
629
|
+
</svg>`, Ee = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
977
630
|
<path d="M19.5 15.75L12 8.25L4.5 15.75" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
978
631
|
</svg>
|
|
979
|
-
`,
|
|
632
|
+
`, Le = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 16">
|
|
980
633
|
<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
634
|
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>`,
|
|
635
|
+
</svg>`, Ae = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
983
636
|
<path stroke="currentColor" d="m12.5 1.5-11 11m0-11 11 11" />
|
|
984
|
-
</svg>`,
|
|
637
|
+
</svg>`, Te = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
985
638
|
<path
|
|
986
639
|
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
640
|
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
988
|
-
</svg>`,
|
|
641
|
+
</svg>`, Me = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
989
642
|
<path
|
|
990
643
|
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>`,
|
|
644
|
+
</svg>`, Ie = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9">
|
|
992
645
|
<g fill="none" fill-rule="evenodd" transform="translate(.67 .67)">
|
|
993
646
|
<rect transform="rotate(180 4 4)" />
|
|
994
647
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width=".5"
|
|
995
648
|
d="M2.85 1.73h3.4v3.4m0-3.4L1.74 6.24" />
|
|
996
649
|
</g>
|
|
997
|
-
</svg>`,
|
|
650
|
+
</svg>`, Ne = `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 1024 1024">
|
|
998
651
|
<path
|
|
999
652
|
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>`,
|
|
653
|
+
</svg>`, Oe = `<svg
|
|
1001
654
|
height="24"
|
|
1002
655
|
viewBox="0 0 24 24"
|
|
1003
656
|
width="24"
|
|
@@ -1006,7 +659,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1006
659
|
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
660
|
fill="currentColor"
|
|
1008
661
|
stroke-width="1"></path>
|
|
1009
|
-
</svg>`,
|
|
662
|
+
</svg>`, Be = `<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
|
|
1010
663
|
<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
664
|
stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
1012
665
|
<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 +680,41 @@ const ft = /* @__PURE__ */ I({
|
|
|
1027
680
|
<path
|
|
1028
681
|
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
682
|
fill="currentColor" stroke="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"></path>
|
|
1030
|
-
</svg>`,
|
|
683
|
+
</svg>`, De = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 593 593">
|
|
1031
684
|
<path fill="currentColor" fill-rule="evenodd"
|
|
1032
685
|
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>`,
|
|
686
|
+
</svg>`, Re = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 662 662">
|
|
1034
687
|
<path fill-rule="evenodd" fill="currentColor"
|
|
1035
688
|
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>`,
|
|
689
|
+
</svg>`, ze = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620">
|
|
1037
690
|
<path fill="currentColor"
|
|
1038
691
|
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>`,
|
|
692
|
+
</svg>`, Pe = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 642 642" fill="currentColor">
|
|
1040
693
|
<path
|
|
1041
694
|
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>`,
|
|
695
|
+
</svg>`, He = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 620 620" fill="currentColor">
|
|
1043
696
|
<path
|
|
1044
697
|
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>`,
|
|
698
|
+
</svg>`, $e = `<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 14 14">
|
|
1046
699
|
<path fill="none" stroke="currentColor" d="M14 3.4H0m14 7.2H0" />
|
|
1047
|
-
</svg>`,
|
|
700
|
+
</svg>`, Ge = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
|
1048
701
|
<path fill="currentColor" fill-rule="evenodd"
|
|
1049
702
|
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
703
|
clip-rule="evenodd"></path>
|
|
1051
|
-
</svg>`,
|
|
704
|
+
</svg>`, je = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor">
|
|
1052
705
|
<path fill-rule="evenodd"
|
|
1053
706
|
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>`,
|
|
707
|
+
</svg>`, D = /* @__PURE__ */ Object.assign({ "./Add.svg": ke, "./CheckMark.svg": Se, "./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
708
|
const t = `./${r}.svg`;
|
|
1056
|
-
return
|
|
1057
|
-
},
|
|
709
|
+
return D[t] === void 0 ? (console.warn(`Could not find icon: ${r}`), "") : D[t];
|
|
710
|
+
}, V = /* @__PURE__ */ S({
|
|
1058
711
|
__name: "ScalarIcon",
|
|
1059
712
|
props: {
|
|
1060
713
|
icon: {},
|
|
1061
714
|
size: {}
|
|
1062
715
|
},
|
|
1063
716
|
setup(r) {
|
|
1064
|
-
const t = r, e =
|
|
717
|
+
const t = r, e = y({
|
|
1065
718
|
variants: {
|
|
1066
719
|
size: {
|
|
1067
720
|
xs: "h-3 w-3",
|
|
@@ -1075,14 +728,14 @@ const ft = /* @__PURE__ */ I({
|
|
|
1075
728
|
defaultVariants: {
|
|
1076
729
|
size: "full"
|
|
1077
730
|
}
|
|
1078
|
-
}), s =
|
|
1079
|
-
return (u,
|
|
731
|
+
}), s = O(() => Ve(t.icon));
|
|
732
|
+
return (u, g) => s.value ? (m(), I(c(_e), {
|
|
1080
733
|
key: 0,
|
|
1081
|
-
class:
|
|
734
|
+
class: h(c(w)("scalar-icon", c(e)({ size: u.size }))),
|
|
1082
735
|
raw: s.value
|
|
1083
|
-
}, null, 8, ["class", "raw"])) :
|
|
736
|
+
}, null, 8, ["class", "raw"])) : k("", !0);
|
|
1084
737
|
}
|
|
1085
|
-
}),
|
|
738
|
+
}), Fe = ["ariaDisabled"], Ue = { class: "sr-only" }, Ze = /* @__PURE__ */ S({
|
|
1086
739
|
__name: "ScalarIconButton",
|
|
1087
740
|
props: {
|
|
1088
741
|
label: {},
|
|
@@ -1092,7 +745,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1092
745
|
size: { default: "md" }
|
|
1093
746
|
},
|
|
1094
747
|
setup(r) {
|
|
1095
|
-
const t =
|
|
748
|
+
const t = y({
|
|
1096
749
|
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
1097
750
|
variants: {
|
|
1098
751
|
size: {
|
|
@@ -1104,19 +757,19 @@ const ft = /* @__PURE__ */ I({
|
|
|
1104
757
|
disabled: {
|
|
1105
758
|
true: "cursor-not-allowed shadow-none"
|
|
1106
759
|
},
|
|
1107
|
-
variant:
|
|
760
|
+
variant: j
|
|
1108
761
|
}
|
|
1109
762
|
});
|
|
1110
|
-
return (e, s) => (
|
|
763
|
+
return (e, s) => (m(), f("button", {
|
|
1111
764
|
ariaDisabled: e.disabled || void 0,
|
|
1112
|
-
class:
|
|
765
|
+
class: h(c(w)(c(t)({ size: e.size, variant: e.variant, disabled: e.disabled }))),
|
|
1113
766
|
type: "button"
|
|
1114
767
|
}, [
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
], 10,
|
|
768
|
+
T(c(V), { icon: e.icon }, null, 8, ["icon"]),
|
|
769
|
+
_("span", Ue, x(e.label), 1)
|
|
770
|
+
], 10, Fe));
|
|
1118
771
|
}
|
|
1119
|
-
}),
|
|
772
|
+
}), ut = () => R({
|
|
1120
773
|
open: !1,
|
|
1121
774
|
show() {
|
|
1122
775
|
this.open = !0;
|
|
@@ -1124,7 +777,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1124
777
|
hide() {
|
|
1125
778
|
this.open = !1;
|
|
1126
779
|
}
|
|
1127
|
-
}),
|
|
780
|
+
}), We = /* @__PURE__ */ S({
|
|
1128
781
|
__name: "ScalarModal",
|
|
1129
782
|
props: {
|
|
1130
783
|
state: {},
|
|
@@ -1135,7 +788,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1135
788
|
variant: {}
|
|
1136
789
|
},
|
|
1137
790
|
setup(r) {
|
|
1138
|
-
const t =
|
|
791
|
+
const t = y({
|
|
1139
792
|
base: [
|
|
1140
793
|
"scalar-modal",
|
|
1141
794
|
"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 +806,46 @@ const ft = /* @__PURE__ */ I({
|
|
|
1153
806
|
}
|
|
1154
807
|
}
|
|
1155
808
|
});
|
|
1156
|
-
return (e, s) => (
|
|
809
|
+
return (e, s) => (m(), I(c(re), {
|
|
1157
810
|
open: e.state.open,
|
|
1158
811
|
onClose: s[0] || (s[0] = (u) => e.state.hide())
|
|
1159
812
|
}, {
|
|
1160
|
-
default:
|
|
1161
|
-
|
|
1162
|
-
class:
|
|
1163
|
-
|
|
813
|
+
default: E(() => [
|
|
814
|
+
_("div", {
|
|
815
|
+
class: h(
|
|
816
|
+
c(w)(
|
|
1164
817
|
"scalar-modal-layout fixed left-0 top-0",
|
|
1165
818
|
"z-[1001] h-[100dvh] w-[100dvw]",
|
|
1166
819
|
"bg-backdrop p-5 opacity-0"
|
|
1167
820
|
)
|
|
1168
821
|
)
|
|
1169
822
|
}, [
|
|
1170
|
-
|
|
1171
|
-
class:
|
|
1172
|
-
style:
|
|
823
|
+
T(c(ne), {
|
|
824
|
+
class: h(c(t)({ size: e.size, variant: e.variant })),
|
|
825
|
+
style: $({ maxWidth: e.maxWidth })
|
|
1173
826
|
}, {
|
|
1174
|
-
default:
|
|
1175
|
-
e.title ? (
|
|
827
|
+
default: E(() => [
|
|
828
|
+
e.title ? (m(), I(c(ae), {
|
|
1176
829
|
key: 0,
|
|
1177
|
-
class:
|
|
830
|
+
class: h(["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
831
|
}, {
|
|
1179
|
-
default:
|
|
1180
|
-
|
|
832
|
+
default: E(() => [
|
|
833
|
+
Y(x(e.title), 1)
|
|
1181
834
|
]),
|
|
1182
835
|
_: 1
|
|
1183
|
-
}, 8, ["class"])) :
|
|
1184
|
-
|
|
1185
|
-
class:
|
|
836
|
+
}, 8, ["class"])) : k("", !0),
|
|
837
|
+
T(c(oe), {
|
|
838
|
+
class: h([
|
|
1186
839
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
1187
|
-
|
|
840
|
+
c(w)(
|
|
1188
841
|
e.bodyClass,
|
|
1189
842
|
e.variant === "history" && "pt-3",
|
|
1190
843
|
e.variant === "search" && "col max-h-[440px] overflow-hidden p-0"
|
|
1191
844
|
)
|
|
1192
845
|
])
|
|
1193
846
|
}, {
|
|
1194
|
-
default:
|
|
1195
|
-
|
|
847
|
+
default: E(() => [
|
|
848
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
1196
849
|
]),
|
|
1197
850
|
_: 3
|
|
1198
851
|
}, 8, ["class"])
|
|
@@ -1204,7 +857,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1204
857
|
_: 3
|
|
1205
858
|
}, 8, ["open"]));
|
|
1206
859
|
}
|
|
1207
|
-
}),
|
|
860
|
+
}), 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__ */ S({
|
|
1208
861
|
__name: "ScalarTextField",
|
|
1209
862
|
props: {
|
|
1210
863
|
modelValue: {},
|
|
@@ -1221,7 +874,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1221
874
|
},
|
|
1222
875
|
emits: ["submit", "update:modelValue"],
|
|
1223
876
|
setup(r, { emit: t }) {
|
|
1224
|
-
const e = r, s = t, u =
|
|
877
|
+
const e = r, s = t, u = y({
|
|
1225
878
|
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
1226
879
|
variants: {
|
|
1227
880
|
focus: {
|
|
@@ -1229,81 +882,81 @@ const ft = /* @__PURE__ */ I({
|
|
|
1229
882
|
},
|
|
1230
883
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
1231
884
|
}
|
|
1232
|
-
}),
|
|
1233
|
-
let
|
|
885
|
+
}), g = z(), a = g.id || `id-${le()}`, o = M(), n = M(!1);
|
|
886
|
+
let l;
|
|
1234
887
|
if (e.isMultiline) {
|
|
1235
|
-
const { triggerResize:
|
|
1236
|
-
element:
|
|
888
|
+
const { triggerResize: i } = se({
|
|
889
|
+
element: o,
|
|
1237
890
|
input: e.modelValue
|
|
1238
891
|
});
|
|
1239
|
-
|
|
892
|
+
l = i;
|
|
1240
893
|
}
|
|
1241
|
-
function
|
|
1242
|
-
const
|
|
1243
|
-
e.isMultiline &&
|
|
894
|
+
function p(i) {
|
|
895
|
+
const b = i.target.value;
|
|
896
|
+
e.isMultiline && l(), e.handleFieldChange ? e.handleFieldChange(b) : s("update:modelValue", b);
|
|
1244
897
|
}
|
|
1245
|
-
function i
|
|
1246
|
-
const
|
|
1247
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(
|
|
898
|
+
function d(i) {
|
|
899
|
+
const b = i.target, C = e.disableTrim || e.isMultiline ? b.value : b.value.trim();
|
|
900
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(C) : s("submit", C);
|
|
1248
901
|
}
|
|
1249
|
-
function
|
|
1250
|
-
n.value = !1, e.emitOnBlur && e.modelValue && i
|
|
902
|
+
function v(i) {
|
|
903
|
+
n.value = !1, e.emitOnBlur && e.modelValue && d(i);
|
|
1251
904
|
}
|
|
1252
|
-
return
|
|
1253
|
-
var
|
|
1254
|
-
Object.prototype.hasOwnProperty.call(
|
|
1255
|
-
}), (
|
|
1256
|
-
|
|
1257
|
-
class:
|
|
905
|
+
return H(() => {
|
|
906
|
+
var i;
|
|
907
|
+
Object.prototype.hasOwnProperty.call(g, "autofocus") && ((i = o.value) == null || i.focus());
|
|
908
|
+
}), (i, b) => (m(), f("div", qe, [
|
|
909
|
+
_("div", {
|
|
910
|
+
class: h(c(u)({ error: i.error, focus: n.value }))
|
|
1258
911
|
}, [
|
|
1259
|
-
(
|
|
912
|
+
(m(), I(J(i.isMultiline ? "textarea" : "input"), P({ id: c(a) }, i.$attrs, {
|
|
1260
913
|
ref_key: "input",
|
|
1261
|
-
ref:
|
|
914
|
+
ref: o,
|
|
1262
915
|
class: [
|
|
1263
916
|
"scalar-input",
|
|
1264
|
-
|
|
1265
|
-
{ "min-h-[77px]":
|
|
917
|
+
c(w)(
|
|
918
|
+
{ "min-h-[77px]": i.isMultiline },
|
|
1266
919
|
"z-10 w-full resize-none appearance-none border-0 bg-transparent p-3 text-sm text-fore-1",
|
|
1267
920
|
"outline-none transition-opacity"
|
|
1268
921
|
)
|
|
1269
922
|
],
|
|
1270
|
-
placeholder:
|
|
1271
|
-
value:
|
|
1272
|
-
onBlur:
|
|
1273
|
-
onFocus:
|
|
1274
|
-
onInput:
|
|
1275
|
-
onKeyup:
|
|
923
|
+
placeholder: i.placeholder,
|
|
924
|
+
value: i.modelValue,
|
|
925
|
+
onBlur: v,
|
|
926
|
+
onFocus: b[0] || (b[0] = (C) => n.value = !0),
|
|
927
|
+
onInput: p,
|
|
928
|
+
onKeyup: Q(d, ["enter"])
|
|
1276
929
|
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
1277
|
-
|
|
930
|
+
i.label ? (m(), f("label", {
|
|
1278
931
|
key: 0,
|
|
1279
|
-
class:
|
|
1280
|
-
|
|
932
|
+
class: h(
|
|
933
|
+
c(w)(
|
|
1281
934
|
"scalar-input-label pointer-events-none absolute left-0 top-0 mx-2 my-3 px-1 text-xs",
|
|
1282
935
|
"shadow-current z-10 origin-top-left rounded text-fore-3 transition-transform"
|
|
1283
936
|
)
|
|
1284
937
|
),
|
|
1285
|
-
for:
|
|
1286
|
-
style:
|
|
1287
|
-
"box-shadow": `0 0 4px 4px ${
|
|
1288
|
-
"background-color":
|
|
938
|
+
for: c(a),
|
|
939
|
+
style: $({
|
|
940
|
+
"box-shadow": `0 0 4px 4px ${i.labelShadowColor}`,
|
|
941
|
+
"background-color": i.labelShadowColor
|
|
1289
942
|
})
|
|
1290
|
-
},
|
|
1291
|
-
|
|
1292
|
-
|
|
943
|
+
}, x(i.label), 15, Ke)) : k("", !0),
|
|
944
|
+
_("div", Ye, [
|
|
945
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
1293
946
|
])
|
|
1294
947
|
], 2),
|
|
1295
|
-
|
|
1296
|
-
class:
|
|
1297
|
-
|
|
948
|
+
_("span", {
|
|
949
|
+
class: h(
|
|
950
|
+
c(w)(
|
|
1298
951
|
"helper-text before:rounded-full mt-1.5 flex items-center text-xs text-error before:font-black",
|
|
1299
952
|
"before:mr-1.5 before:block before:h-4 before:w-4 before:text-center before:text-xxs before:leading-4",
|
|
1300
953
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
1301
954
|
)
|
|
1302
955
|
)
|
|
1303
|
-
},
|
|
956
|
+
}, x(i.helperText), 3)
|
|
1304
957
|
]));
|
|
1305
958
|
}
|
|
1306
|
-
}),
|
|
959
|
+
}), Qe = /* @__PURE__ */ B(Je, [["__scopeId", "data-v-4717ec50"]]), pt = {
|
|
1307
960
|
boxShadow: {
|
|
1308
961
|
DEFAULT: "var(--theme-shadow-1, var(--default-theme-shadow-1))",
|
|
1309
962
|
md: "var(--theme-shadow-2, var(--default-theme-shadow-2))",
|
|
@@ -1335,7 +988,7 @@ const ft = /* @__PURE__ */ I({
|
|
|
1335
988
|
ghost: "var(--theme-color-ghost, var(--default-theme-color-ghost))",
|
|
1336
989
|
transparent: "transparent"
|
|
1337
990
|
}
|
|
1338
|
-
},
|
|
991
|
+
}, ht = {
|
|
1339
992
|
borderRadius: {
|
|
1340
993
|
DEFAULT: "var(--theme-radius, var(--default-theme-radius))",
|
|
1341
994
|
md: "var(--theme-radius, var(--default-theme-radius))",
|
|
@@ -1359,22 +1012,22 @@ const ft = /* @__PURE__ */ I({
|
|
|
1359
1012
|
"screen-md": "640px",
|
|
1360
1013
|
"screen-lg": "800px"
|
|
1361
1014
|
}
|
|
1362
|
-
},
|
|
1015
|
+
}, mt = {
|
|
1363
1016
|
install: (r) => {
|
|
1364
|
-
r.component("ScalarButton",
|
|
1017
|
+
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
1018
|
}
|
|
1366
1019
|
};
|
|
1367
1020
|
export {
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1021
|
+
ve as ScalarButton,
|
|
1022
|
+
ct as ScalarCodeBlock,
|
|
1023
|
+
V as ScalarIcon,
|
|
1024
|
+
Ze as ScalarIconButton,
|
|
1025
|
+
G as ScalarLoading,
|
|
1026
|
+
Xe as ScalarModal,
|
|
1027
|
+
Qe as ScalarTextField,
|
|
1028
|
+
mt as default,
|
|
1029
|
+
ht as extend,
|
|
1030
|
+
pt as theme,
|
|
1031
|
+
dt as useLoadingState,
|
|
1032
|
+
ut as useModal
|
|
1380
1033
|
};
|