@scalar/api-client 1.2.2 → 1.2.3
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/CHANGELOG.md +9 -0
- package/dist/CodeFolder-Cf9f6-KB-BSC0O0uL.js +16 -0
- package/dist/DocsPage-Do-Ol9Hb-BNFtxcCC.js +27 -0
- package/dist/JsonObject-BvFDNssB-D5YzqgGw.js +27 -0
- package/dist/Terminal-CKp--su5-vWaGU4_z.js +29 -0
- package/dist/index.css +1 -1
- package/dist/index.js +409 -409
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ const alternateTheme = "@layer scalar-theme {\n /* basic theme */\n :root {\n
|
|
|
18
18
|
const bluePlanetTheme = "@layer scalar-theme {\n /* basic theme */\n :root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n }\n .light-mode {\n --scalar-background-1: #f0f2f5;\n --scalar-background-2: #eaecf0;\n --scalar-background-3: #e0e2e6;\n --scalar-border-color: rgb(228, 228, 231);\n\n --scalar-color-1: rgb(9, 9, 11);\n --scalar-color-2: rgb(113, 113, 122);\n --scalar-color-3: rgba(25, 25, 28, 0.5);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n .light-mode .scalar-card.dark-mode,\n .dark-mode {\n --scalar-background-1: #000e23;\n --scalar-background-2: #01132e;\n --scalar-background-3: #03193b;\n --scalar-border-color: rgba(255, 255, 255, 0.12);\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n\n --scalar-color-accent: var(--scalar-color-1);\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n /* Document Sidebar */\n .light-mode .t-doc__sidebar,\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n z-index: 1;\n }\n .light-mode .t-doc__sidebar {\n --scalar-sidebar-search-background: white;\n }\n /* advanced */\n .light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n }\n .dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n }\n /* Custom theme */\n /* Document header */\n @keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n }\n .dark-mode h2.t-editor__heading,\n .dark-mode .t-editor__page-title h1,\n .dark-mode h1.section-header,\n .dark-mode .markdown h1,\n .dark-mode .markdown h2,\n .dark-mode .markdown h3,\n .dark-mode .markdown h4,\n .dark-mode .markdown h5,\n .dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n }\n .code-languages-background {\n background: var(--scalar-background-1) !important;\n }\n .code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--scalar-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n }\n .light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n }\n .code-languages__active .code-languages-background:before {\n background: var(--scalar-background-1) !important;\n }\n .code-languages span {\n margin-top: 5px !important;\n }\n /* Hero Section Flare */\n .section-flare-item:nth-of-type(1) {\n --c1: #ffffff;\n --c2: #babfd8;\n --c3: #2e8bb2;\n --c4: #1a8593;\n --c5: #0a143e;\n --c6: #0a0f52;\n --c7: #2341b8;\n\n --solid: var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6),\n var(--c7);\n --solid-wrap: var(--solid), var(--c1);\n --trans: var(--c1), transparent, var(--c2), transparent, var(--c3),\n transparent, var(--c4), transparent, var(--c5), transparent, var(--c6),\n transparent, var(--c7);\n --trans-wrap: var(--trans), transparent, var(--c1);\n\n background: radial-gradient(circle, var(--trans)),\n conic-gradient(from 180deg, var(--trans-wrap)),\n radial-gradient(circle, var(--trans)), conic-gradient(var(--solid-wrap));\n width: 70vw;\n height: 700px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n right: 0;\n position: absolute;\n transform: rotate(-45deg);\n top: -300px;\n opacity: 0.3;\n }\n .section-flare-item:nth-of-type(3) {\n --star-color: #6b9acc;\n --star-color2: #446b8d;\n --star-color3: #3e5879;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 50px 160px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 130px 80px,\n var(--star-color),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n width: 100%;\n height: 100%;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n }\n .section-flare {\n top: -150px !important;\n height: 100vh;\n background: linear-gradient(#000, var(--scalar-background-1));\n width: 100vw;\n }\n .light-mode .section-flare {\n display: none;\n }\n .light-mode .scalar-card {\n --scalar-background-1: #fff;\n --scalar-background-2: #fff;\n --scalar-background-3: #fff;\n }\n}\n";
|
|
19
19
|
const deepSpaceTheme = "@layer scalar-theme {\n /* basic theme */\n :root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n }\n .light-mode {\n --scalar-color-1: rgb(9, 9, 11);\n --scalar-color-2: rgb(113, 113, 122);\n --scalar-color-3: rgba(25, 25, 28, 0.5);\n --scalar-color-accent: var(--scalar-color-1);\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f4f4f5;\n --scalar-background-3: #e3e3e6;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: rgb(228, 228, 231);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n .dark-mode {\n --scalar-color-1: #fafafa;\n --scalar-color-2: rgb(161, 161, 170);\n --scalar-color-3: rgba(255, 255, 255, 0.533);\n --scalar-color-accent: var(--scalar-color-1);\n\n --scalar-background-1: #09090b;\n --scalar-background-2: #18181b;\n --scalar-background-3: #2c2c30;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.12);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n\n /* Document Sidebar */\n .light-mode .t-doc__sidebar,\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n }\n .light-mode .t-doc__sidebar {\n --scalar-sidebar-item-active-background: #09090b;\n --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n }\n /* advanced */\n .light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n }\n .dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n }\n /* Custom theme */\n .dark-mode h2.t-editor__heading,\n .dark-mode .t-editor__page-title h1,\n .dark-mode h1.section-header,\n .dark-mode .markdown h1,\n .dark-mode .markdown h2,\n .dark-mode .markdown h3,\n .dark-mode .markdown h4,\n .dark-mode .markdown h5,\n .dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n }\n .examples .scalar-card-footer {\n --scalar-background-3: transparent;\n padding-top: 0;\n }\n .code-languages-background {\n background: var(--scalar-background-1) !important;\n }\n .code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--scalar-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n }\n .light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n }\n .code-languages__active .code-languages-background:before {\n background: var(--scalar-background-1) !important;\n }\n .code-languages span {\n margin-top: 5px !important;\n }\n /* Hero section flare */\n .section-flare {\n width: 100vw;\n height: 550px;\n position: relative;\n }\n .section-flare-item:nth-of-type(1) {\n position: absolute;\n width: 100vw;\n height: 550px;\n --stripesDark: repeating-linear-gradient(\n 100deg,\n #000 0%,\n #000 7%,\n transparent 10%,\n transparent 12%,\n #000 16%\n );\n --rainbow: repeating-linear-gradient(\n 100deg,\n #fff 10%,\n #fff 16%,\n #fff 22%,\n #fff 30%\n );\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: invert(100%);\n -webkit-mask-image: radial-gradient(\n ellipse at 100% 0%,\n black 40%,\n transparent 70%\n );\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n pointer-events: none;\n opacity: 0.07;\n }\n .dark-mode .section-flare-item:nth-of-type(1) {\n background-image: var(--stripesDark), var(--rainbow);\n filter: opacity(50%) saturate(200%);\n opacity: 0.25;\n height: 350px;\n }\n .section-flare-item:nth-of-type(1):after {\n content: '';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-image: var(--stripesDark), var(--rainbow);\n background-size: 200%, 100%;\n background-attachment: fixed;\n mix-blend-mode: difference;\n }\n .dark-mode .section-flare:after {\n background-image: var(--stripesDark), var(--rainbow);\n }\n .section-flare-item:nth-of-type(2) {\n --star-color: #fff;\n --star-color2: #fff;\n --star-color3: #fff;\n width: 100%;\n height: 100%;\n position: absolute;\n background-image: radial-gradient(\n 2px 2px at 20px 30px,\n var(--star-color2),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 40px 70px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 50px 160px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(2px 2px at 90px 40px, var(--star-color), rgba(0, 0, 0, 0)),\n radial-gradient(\n 2px 2px at 130px 80px,\n var(--star-color),\n rgba(0, 0, 0, 0)\n ),\n radial-gradient(\n 2px 2px at 160px 120px,\n var(--star-color3),\n rgba(0, 0, 0, 0)\n );\n background-repeat: repeat;\n background-size: 200px 200px;\n mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);\n opacity: 0.2;\n }\n}\n";
|
|
20
20
|
const defaultTheme = "@layer scalar-theme {\n /* basic theme */\n .light-mode {\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #0099ff;\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n }\n .dark-mode {\n --scalar-background-1: #0f0f0f;\n --scalar-background-2: #1a1a1a;\n --scalar-background-3: #272727;\n\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n --scalar-color-accent: #3ea6ff;\n --scalar-background-accent: #3ea6ff1f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n }\n /* Document Sidebar */\n .light-mode .t-doc__sidebar,\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-hover-color: currentColor;\n\n --scalar-sidebar-item-active-background: var(--scalar-background-2);\n --scalar-sidebar-color-active: var(--scalar-color-1);\n\n --scalar-sidebar-search-background: transparent;\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n }\n\n /* advanced */\n .light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n }\n .dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n }\n}\n";
|
|
21
|
-
const keplerTheme = "@layer scalar-theme {\n /* basic theme */\n .light-mode {\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n --scalar-color-accent: #7070ff;\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #7070ff1f;\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n }\n .dark-mode {\n --scalar-color-1: #f7f8f8;\n --scalar-color-2: rgb(180, 188, 208);\n --scalar-color-3: #b4bcd099;\n --scalar-color-accent: #828fff;\n\n --scalar-background-1: #000212;\n --scalar-background-2: rgba(255, 255, 255, 0.05);\n --scalar-background-3: rgba(255, 255, 255, 0.
|
|
21
|
+
const keplerTheme = "@layer scalar-theme {\n /* basic theme */\n .light-mode {\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n --scalar-color-accent: #7070ff;\n\n --scalar-background-1: #fff;\n --scalar-background-2: #f6f6f6;\n --scalar-background-3: #e7e7e7;\n --scalar-background-accent: #7070ff1f;\n\n --scalar-border-color: rgba(0, 0, 0, 0.1);\n\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n }\n .dark-mode {\n --scalar-color-1: #f7f8f8;\n --scalar-color-2: rgb(180, 188, 208);\n --scalar-color-3: #b4bcd099;\n --scalar-color-accent: #828fff;\n\n --scalar-background-1: #000212;\n --scalar-background-2: rgba(255, 255, 255, 0.05);\n --scalar-background-3: rgba(255, 255, 255, 0.09);\n --scalar-background-accent: #8ab4f81f;\n\n --scalar-border-color: #242537;\n --scalar-code-language-color-supersede: var(--scalar-color-3);\n }\n /* Document Sidebar */\n .light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: rgba(0, 0, 0, 0.05);\n --scalar-sidebar-search-border-color: 1px solid rgba(0, 0, 0, 0.05);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-background-2: rgba(0, 0, 0, 0.03);\n }\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-border-color: 1px solid rgba(255, 255, 255, 0.05);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n }\n /* advanced */\n .light-mode {\n --scalar-color-green: #069061;\n --scalar-color-red: #ef0006;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #0082d0;\n --scalar-color-orange: #fb892c;\n --scalar-color-purple: #5203d1;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n }\n .dark-mode {\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n }\n /* Custom Theme */\n .dark-mode h2.t-editor__heading,\n .dark-mode .t-editor__page-title h1,\n .dark-mode h1.section-header,\n .dark-mode .markdown h1,\n .dark-mode .markdown h2,\n .dark-mode .markdown h3,\n .dark-mode .markdown h4,\n .dark-mode .markdown h5,\n .dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n }\n .sidebar-search {\n backdrop-filter: blur(12px);\n }\n @keyframes headerbackground {\n from {\n background: transparent;\n backdrop-filter: none;\n }\n to {\n background: var(--header-background-1);\n backdrop-filter: blur(12px);\n }\n }\n .dark-mode .scalar-card {\n background: rgba(255, 255, 255, 0.05) !important;\n }\n .dark-mode .scalar-card * {\n --scalar-background-2: transparent !important;\n --scalar-background-1: transparent !important;\n }\n .light-mode .dark-mode.scalar-card *,\n .light-mode .dark-mode.scalar-card {\n --scalar-background-1: #0d0f1e !important;\n --scalar-background-2: #0d0f1e !important;\n --scalar-background-3: #191b29 !important;\n }\n .light-mode .dark-mode.scalar-card {\n background: #191b29 !important;\n }\n .badge {\n box-shadow: 0 0 0 1px var(--scalar-border-color);\n margin-right: 6px;\n }\n\n .table-row.required-parameter .table-row-item:nth-of-type(2):after {\n background: transparent;\n box-shadow: none;\n }\n .code-languages__active {\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n .code-languages-background {\n background: linear-gradient(\n rgba(255, 255, 255, 0) 0%,\n rgba(255, 255, 255, 0.05) 100%\n ) !important;\n box-shadow: inset 0 0 0 1px var(--scalar-border-color) !important;\n }\n /* Hero Section Flare */\n .section-flare {\n width: 100vw;\n background: radial-gradient(\n ellipse 80% 50% at 50% -20%,\n rgba(120, 119, 198, 0.3),\n transparent\n );\n height: 100vh;\n }\n}\n";
|
|
22
22
|
const marsTheme = "@layer scalar-theme {\n /* basic theme */\n :root {\n --scalar-text-decoration: underline;\n --scalar-text-decoration-hover: underline;\n }\n .light-mode {\n --scalar-background-1: #f9f6f0;\n --scalar-background-2: #f2efe8;\n --scalar-background-3: #e9e7e2;\n --scalar-border-color: rgba(203, 165, 156, 0.6);\n\n --scalar-color-1: #c75549;\n --scalar-color-2: #c75549;\n --scalar-color-3: #c75549;\n\n --scalar-color-accent: #c75549;\n --scalar-background-accent: #dcbfa81f;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n .dark-mode {\n --scalar-background-1: #140507;\n --scalar-background-2: #20090c;\n --scalar-background-3: #321116;\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n\n --scalar-color-1: rgba(255, 255, 255, 0.9);\n --scalar-color-2: rgba(255, 255, 255, 0.62);\n --scalar-color-3: rgba(255, 255, 255, 0.44);\n\n --scalar-color-accent: rgba(255, 255, 255, 0.9);\n --scalar-background-accent: #441313;\n\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n\n /* Document Sidebar */\n .light-mode .t-doc__sidebar,\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-3);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: rgba(255, 255, 255, 0.1);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n z-index: 1;\n }\n /* advanced */\n .light-mode {\n --scalar-color-green: #09533a;\n --scalar-color-red: #aa181d;\n --scalar-color-yellow: #ab8d2b;\n --scalar-color-blue: #19689a;\n --scalar-color-orange: #b26c34;\n --scalar-color-purple: #4c2191;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n }\n .dark-mode {\n --scalar-color-green: rgba(69, 255, 165, 0.823);\n --scalar-color-red: #ff8589;\n --scalar-color-yellow: #ffcc4d;\n --scalar-color-blue: #6bc1fe;\n --scalar-color-orange: #f98943;\n --scalar-color-purple: #b191f9;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n }\n /* Custom Theme */\n .dark-mode h2.t-editor__heading,\n .dark-mode .t-editor__page-title h1,\n .dark-mode h1.section-header,\n .dark-mode .markdown h1,\n .dark-mode .markdown h2,\n .dark-mode .markdown h3,\n .dark-mode .markdown h4,\n .dark-mode .markdown h5,\n .dark-mode .markdown h6 {\n -webkit-text-fill-color: transparent;\n background-image: linear-gradient(\n to right bottom,\n rgb(255, 255, 255) 30%,\n rgba(255, 255, 255, 0.38)\n );\n -webkit-background-clip: text;\n background-clip: text;\n }\n .light-mode .t-doc__sidebar {\n --scalar-sidebar-search-background: white;\n }\n .examples .scalar-card-footer {\n --scalar-background-3: transparent;\n padding-top: 0;\n }\n .code-languages-background {\n background: var(--scalar-background-1) !important;\n }\n .code-languages-background:before {\n box-shadow: inset 0 0 0 2px var(--scalar-border-color);\n background: linear-gradient(\n to right top,\n rgb(211 225 249 / 12%),\n rgb(209 223 247 / 11%),\n rgb(223 233 251 / 29%)\n ) !important;\n }\n .light-mode .code-languages-background:before {\n background: linear-gradient(\n to right top,\n rgb(0 0 0 / 8%),\n rgb(0 0 0 / 7%),\n rgb(0 0 0 / 19%)\n ) !important;\n }\n .code-languages__active .code-languages-background:before {\n background: var(--scalar-background-1) !important;\n }\n\n .code-languages span {\n margin-top: 5px !important;\n }\n /* Hero section flare */\n .section-flare-item:nth-of-type(1) {\n background: #d25019;\n width: 80vw;\n height: 500px;\n margin-top: -150px;\n border-radius: 50%;\n filter: blur(100px);\n z-index: 0;\n }\n .light-mode .section-flare {\n display: none;\n }\n .section-flare {\n top: -150px !important;\n height: 100vh;\n right: -400px !important;\n left: initial;\n }\n}\n";
|
|
23
23
|
const moonTheme = "@layer scalar-theme {\n .light-mode {\n color-scheme: light;\n --scalar-color-1: #000000;\n --scalar-color-2: #000000;\n --scalar-color-3: #000000;\n --scalar-color-accent: #645b0f;\n --scalar-background-1: #ccc9b3;\n --scalar-background-2: #c2bfaa;\n --scalar-background-3: #b8b5a1;\n --scalar-background-accent: #000000;\n\n --scalar-border-color: rgba(0, 0, 0, 0.2);\n --scalar-scrollbar-color: rgba(0, 0, 0, 0.18);\n --scalar-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --scalar-lifted-brightness: 1;\n --scalar-backdrop-brightness: 1;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px,\n var(--scalar-border-color) 0px 0 0 1px;\n\n --scalar-button-1: rgb(49 53 56);\n --scalar-button-1-color: #fff;\n --scalar-button-1-hover: rgb(28 31 33);\n\n --scalar-color-red: #b91c1c;\n --scalar-color-orange: #a16207;\n --scalar-color-green: #047857;\n --scalar-color-blue: #1d4ed8;\n --scalar-color-orange: #c2410c;\n --scalar-color-purple: #6d28d9;\n\n --scalar-code-languages-background-supersede: var(--scalar-background-3);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n\n .dark-mode {\n color-scheme: dark;\n --scalar-color-1: #fffef3;\n --scalar-color-2: #fffef3;\n --scalar-color-3: #fffef3;\n --scalar-color-accent: #c3b531;\n --scalar-background-1: #313332;\n --scalar-background-2: #393b3a;\n --scalar-background-3: #414342;\n --scalar-background-accent: #fffef3;\n\n --scalar-border-color: rgba(255, 255, 255, 0.1);\n --scalar-scrollbar-color: rgba(255, 255, 255, 0.24);\n --scalar-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --scalar-lifted-brightness: 1.45;\n --scalar-backdrop-brightness: 0.5;\n\n --scalar-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --scalar-shadow-2: rgba(15, 15, 15, 0.2) 0px 3px 6px,\n rgba(15, 15, 15, 0.4) 0px 9px 24px, 0 0 0 1px rgba(255, 255, 255, 0.1);\n\n --scalar-button-1: #f6f6f6;\n --scalar-button-1-color: #000;\n --scalar-button-1-hover: #e7e7e7;\n\n --scalar-color-green: #00b648;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #ffc90d;\n --scalar-color-blue: #4eb3ec;\n --scalar-color-orange: #ff8d4d;\n --scalar-color-purple: #b191f9;\n\n --scalar-code-languages-background-supersede: var(--scalar-background-3);\n --scalar-code-language-color-supersede: var(--scalar-color-1);\n }\n\n /* Sidebar */\n .light-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n --scalar-sidebar-search-background: var(--scalar-background-3);\n --scalar-sidebar-search-border-color: var(\n --scalar-sidebar-search-background\n );\n --scalar-sidebar-search--color: var(--scalar-color-3);\n }\n\n .dark-mode .sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-2);\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-color-active: var(--scalar-sidebar-background-1);\n --scalar-sidebar-search-background: var(--scalar-background-3);\n --scalar-sidebar-search-border-color: var(\n --scalar-sidebar-search-background\n );\n --scalar-sidebar-search--color: var(--scalar-color-3);\n }\n}\n";
|
|
24
24
|
const purpleTheme = "@layer scalar-theme {\n /* basic theme */\n .light-mode {\n --scalar-background-1: #fff;\n --scalar-background-2: #f5f6f8;\n --scalar-background-3: #eceef1;\n\n --scalar-color-1: #2a2f45;\n --scalar-color-2: #757575;\n --scalar-color-3: #8e8e8e;\n\n --scalar-color-accent: #5469d4;\n --scalar-background-accent: #5469d41f;\n\n --scalar-border-color: rgba(215, 215, 206, 0.5);\n }\n .dark-mode {\n --scalar-background-1: #15171c;\n --scalar-background-2: #1c1e24;\n --scalar-background-3: #22252b;\n\n --scalar-color-1: #fafafa;\n --scalar-color-2: #c9ced8;\n --scalar-color-3: #8c99ad;\n\n --scalar-color-accent: #5469d4;\n --scalar-background-accent: #5469d41f;\n\n --scalar-border-color: rgba(255, 255, 255, 0.12);\n }\n /* Document Sidebar */\n .light-mode .t-doc__sidebar,\n .dark-mode .t-doc__sidebar {\n --scalar-sidebar-background-1: var(--scalar-background-1);\n --scalar-sidebar-color-1: var(--scalar-color-1);\n --scalar-sidebar-color-2: var(--scalar-color-2);\n --scalar-sidebar-border-color: var(--scalar-border-color);\n\n --scalar-sidebar-item-hover-color: currentColor;\n --scalar-sidebar-item-hover-background: var(--scalar-background-3);\n\n --scalar-sidebar-item-active-background: var(--scalar-background-accent);\n --scalar-sidebar-color-active: var(--scalar-color-accent);\n\n --scalar-sidebar-search-background: var(--scalar-background-1);\n --scalar-sidebar-search-color: var(--scalar-color-3);\n --scalar-sidebar-search-border-color: var(--scalar-border-color);\n }\n\n /* advanced */\n .light-mode {\n --scalar-color-green: #17803d;\n --scalar-color-red: #e10909;\n --scalar-color-yellow: #edbe20;\n --scalar-color-blue: #1763a6;\n --scalar-color-orange: #e25b09;\n --scalar-color-purple: #5c3993;\n\n --scalar-button-1: rgba(0, 0, 0, 1);\n --scalar-button-1-hover: rgba(0, 0, 0, 0.8);\n --scalar-button-1-color: rgba(255, 255, 255, 0.9);\n }\n .dark-mode {\n --scalar-color-green: #30a159;\n --scalar-color-red: #dc1b19;\n --scalar-color-yellow: #eec644;\n --scalar-color-blue: #2b7abf;\n --scalar-color-orange: #f07528;\n --scalar-color-purple: #7a59b1;\n\n --scalar-button-1: rgba(255, 255, 255, 1);\n --scalar-button-1-hover: rgba(255, 255, 255, 0.9);\n --scalar-button-1-color: black;\n }\n}\n";
|
|
@@ -243,7 +243,7 @@ function initVisitor(visitor) {
|
|
|
243
243
|
return visitor;
|
|
244
244
|
}
|
|
245
245
|
function callVisitor(key, node, visitor, path) {
|
|
246
|
-
var _a2, _b, _c, _d,
|
|
246
|
+
var _a2, _b, _c, _d, _e2;
|
|
247
247
|
if (typeof visitor === "function")
|
|
248
248
|
return visitor(key, node, path);
|
|
249
249
|
if (isMap(node))
|
|
@@ -255,7 +255,7 @@ function callVisitor(key, node, visitor, path) {
|
|
|
255
255
|
if (isScalar(node))
|
|
256
256
|
return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path);
|
|
257
257
|
if (isAlias(node))
|
|
258
|
-
return (
|
|
258
|
+
return (_e2 = visitor.Alias) == null ? void 0 : _e2.call(visitor, key, node, path);
|
|
259
259
|
return void 0;
|
|
260
260
|
}
|
|
261
261
|
function replaceNode(key, path, node) {
|
|
@@ -758,12 +758,12 @@ function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth =
|
|
|
758
758
|
ch = text[i += 1];
|
|
759
759
|
overflow = true;
|
|
760
760
|
}
|
|
761
|
-
const
|
|
762
|
-
if (escapedFolds[
|
|
761
|
+
const j = i > escEnd + 1 ? i - 2 : escStart - 1;
|
|
762
|
+
if (escapedFolds[j])
|
|
763
763
|
return text;
|
|
764
|
-
folds.push(
|
|
765
|
-
escapedFolds[
|
|
766
|
-
end =
|
|
764
|
+
folds.push(j);
|
|
765
|
+
escapedFolds[j] = true;
|
|
766
|
+
end = j + endStep;
|
|
767
767
|
split = void 0;
|
|
768
768
|
} else {
|
|
769
769
|
overflow = true;
|
|
@@ -1420,7 +1420,7 @@ class Pair {
|
|
|
1420
1420
|
value = value.clone(schema);
|
|
1421
1421
|
return new Pair(key, value);
|
|
1422
1422
|
}
|
|
1423
|
-
toJSON(
|
|
1423
|
+
toJSON(_, ctx) {
|
|
1424
1424
|
const pair2 = (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
|
|
1425
1425
|
return addPairToJSMap(ctx, pair2, this);
|
|
1426
1426
|
}
|
|
@@ -1665,7 +1665,7 @@ class YAMLMap extends Collection {
|
|
|
1665
1665
|
* @param {Class} Type - If set, forces the returned collection type
|
|
1666
1666
|
* @returns Instance of Type, Map, or Object
|
|
1667
1667
|
*/
|
|
1668
|
-
toJSON(
|
|
1668
|
+
toJSON(_, ctx, Type) {
|
|
1669
1669
|
const map = Type ? new Type() : (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
|
|
1670
1670
|
if (ctx == null ? void 0 : ctx.onCreate)
|
|
1671
1671
|
ctx.onCreate(map);
|
|
@@ -1751,7 +1751,7 @@ class YAMLSeq extends Collection {
|
|
|
1751
1751
|
else
|
|
1752
1752
|
this.items[idx] = value;
|
|
1753
1753
|
}
|
|
1754
|
-
toJSON(
|
|
1754
|
+
toJSON(_, ctx) {
|
|
1755
1755
|
const seq = [];
|
|
1756
1756
|
if (ctx == null ? void 0 : ctx.onCreate)
|
|
1757
1757
|
ctx.onCreate(seq);
|
|
@@ -1838,9 +1838,9 @@ class YAMLOMap extends YAMLSeq {
|
|
|
1838
1838
|
* If `ctx` is given, the return type is actually `Map<unknown, unknown>`,
|
|
1839
1839
|
* but TypeScript won't allow widening the signature of a child method.
|
|
1840
1840
|
*/
|
|
1841
|
-
toJSON(
|
|
1841
|
+
toJSON(_, ctx) {
|
|
1842
1842
|
if (!ctx)
|
|
1843
|
-
return super.toJSON(
|
|
1843
|
+
return super.toJSON(_);
|
|
1844
1844
|
const map = /* @__PURE__ */ new Map();
|
|
1845
1845
|
if (ctx == null ? void 0 : ctx.onCreate)
|
|
1846
1846
|
ctx.onCreate(map);
|
|
@@ -1901,8 +1901,8 @@ class YAMLSet extends YAMLMap {
|
|
|
1901
1901
|
this.items.push(new Pair(key));
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
|
-
toJSON(
|
|
1905
|
-
return super.toJSON(
|
|
1904
|
+
toJSON(_, ctx) {
|
|
1905
|
+
return super.toJSON(_, ctx, Set);
|
|
1906
1906
|
}
|
|
1907
1907
|
toString(ctx, onComment, onChompKeep) {
|
|
1908
1908
|
if (!ctx)
|
|
@@ -4409,7 +4409,7 @@ class Facet {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
from(field, get) {
|
|
4411
4411
|
if (!get)
|
|
4412
|
-
get = (
|
|
4412
|
+
get = (x2) => x2;
|
|
4413
4413
|
return this.compute([field], (state2) => get(state2.field(field)));
|
|
4414
4414
|
}
|
|
4415
4415
|
}
|
|
@@ -5116,7 +5116,7 @@ const nonASCIISingleCaseWordChar = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u304
|
|
|
5116
5116
|
let wordChar;
|
|
5117
5117
|
try {
|
|
5118
5118
|
wordChar = /* @__PURE__ */ new RegExp("[\\p{Alphabetic}\\p{Number}_]", "u");
|
|
5119
|
-
} catch (
|
|
5119
|
+
} catch (_) {
|
|
5120
5120
|
}
|
|
5121
5121
|
function hasWordChar(str) {
|
|
5122
5122
|
if (wordChar)
|
|
@@ -5245,8 +5245,8 @@ class EditorState {
|
|
|
5245
5245
|
for (let i = 1; i < sel.ranges.length; i++) {
|
|
5246
5246
|
let result = f(sel.ranges[i]);
|
|
5247
5247
|
let newChanges = this.changes(result.changes), newMapped = newChanges.map(changes);
|
|
5248
|
-
for (let
|
|
5249
|
-
ranges[
|
|
5248
|
+
for (let j = 0; j < i; j++)
|
|
5249
|
+
ranges[j] = ranges[j].map(newMapped);
|
|
5250
5250
|
let mapBy = changes.mapDesc(newChanges, true);
|
|
5251
5251
|
ranges.push(result.range.map(mapBy));
|
|
5252
5252
|
changes = changes.compose(newMapped);
|
|
@@ -6384,24 +6384,24 @@ class StyleSet {
|
|
|
6384
6384
|
}
|
|
6385
6385
|
mount(modules) {
|
|
6386
6386
|
let sheet = this.sheet;
|
|
6387
|
-
let pos = 0,
|
|
6387
|
+
let pos = 0, j = 0;
|
|
6388
6388
|
for (let i = 0; i < modules.length; i++) {
|
|
6389
6389
|
let mod = modules[i], index = this.modules.indexOf(mod);
|
|
6390
|
-
if (index <
|
|
6390
|
+
if (index < j && index > -1) {
|
|
6391
6391
|
this.modules.splice(index, 1);
|
|
6392
|
-
|
|
6392
|
+
j--;
|
|
6393
6393
|
index = -1;
|
|
6394
6394
|
}
|
|
6395
6395
|
if (index == -1) {
|
|
6396
|
-
this.modules.splice(
|
|
6396
|
+
this.modules.splice(j++, 0, mod);
|
|
6397
6397
|
if (sheet)
|
|
6398
6398
|
for (let k = 0; k < mod.rules.length; k++)
|
|
6399
6399
|
sheet.insertRule(mod.rules[k], pos++);
|
|
6400
6400
|
} else {
|
|
6401
|
-
while (
|
|
6402
|
-
pos += this.modules[
|
|
6401
|
+
while (j < index)
|
|
6402
|
+
pos += this.modules[j++].rules.length;
|
|
6403
6403
|
pos += mod.rules.length;
|
|
6404
|
-
|
|
6404
|
+
j++;
|
|
6405
6405
|
}
|
|
6406
6406
|
}
|
|
6407
6407
|
if (sheet) {
|
|
@@ -6555,7 +6555,7 @@ function hasSelection(dom, selection) {
|
|
|
6555
6555
|
return false;
|
|
6556
6556
|
try {
|
|
6557
6557
|
return contains(dom, selection.anchorNode);
|
|
6558
|
-
} catch (
|
|
6558
|
+
} catch (_) {
|
|
6559
6559
|
return false;
|
|
6560
6560
|
}
|
|
6561
6561
|
}
|
|
@@ -6603,8 +6603,8 @@ function maxOffset(node) {
|
|
|
6603
6603
|
return node.nodeType == 3 ? node.nodeValue.length : node.childNodes.length;
|
|
6604
6604
|
}
|
|
6605
6605
|
function flattenRect(rect, left) {
|
|
6606
|
-
let
|
|
6607
|
-
return { left:
|
|
6606
|
+
let x2 = left ? rect.left : rect.right;
|
|
6607
|
+
return { left: x2, right: x2, top: rect.top, bottom: rect.bottom };
|
|
6608
6608
|
}
|
|
6609
6609
|
function windowRect(win) {
|
|
6610
6610
|
return {
|
|
@@ -6623,7 +6623,7 @@ function getScale(elt, rect) {
|
|
|
6623
6623
|
scaleY = 1;
|
|
6624
6624
|
return { scaleX, scaleY };
|
|
6625
6625
|
}
|
|
6626
|
-
function scrollRectIntoView(dom, rect, side,
|
|
6626
|
+
function scrollRectIntoView(dom, rect, side, x2, y2, xMargin, yMargin, ltr) {
|
|
6627
6627
|
let doc2 = dom.ownerDocument, win = doc2.defaultView || window;
|
|
6628
6628
|
for (let cur2 = dom, stop = false; cur2 && !stop; ) {
|
|
6629
6629
|
if (cur2.nodeType == 1) {
|
|
@@ -6648,7 +6648,7 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
|
6648
6648
|
};
|
|
6649
6649
|
}
|
|
6650
6650
|
let moveX = 0, moveY = 0;
|
|
6651
|
-
if (
|
|
6651
|
+
if (y2 == "nearest") {
|
|
6652
6652
|
if (rect.top < bounding.top) {
|
|
6653
6653
|
moveY = -(bounding.top - rect.top + yMargin);
|
|
6654
6654
|
if (side > 0 && rect.bottom > bounding.bottom + moveY)
|
|
@@ -6660,10 +6660,10 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
|
6660
6660
|
}
|
|
6661
6661
|
} else {
|
|
6662
6662
|
let rectHeight = rect.bottom - rect.top, boundingHeight = bounding.bottom - bounding.top;
|
|
6663
|
-
let targetTop =
|
|
6663
|
+
let targetTop = y2 == "center" && rectHeight <= boundingHeight ? rect.top + rectHeight / 2 - boundingHeight / 2 : y2 == "start" || y2 == "center" && side < 0 ? rect.top - yMargin : rect.bottom - boundingHeight + yMargin;
|
|
6664
6664
|
moveY = targetTop - bounding.top;
|
|
6665
6665
|
}
|
|
6666
|
-
if (
|
|
6666
|
+
if (x2 == "nearest") {
|
|
6667
6667
|
if (rect.left < bounding.left) {
|
|
6668
6668
|
moveX = -(bounding.left - rect.left + xMargin);
|
|
6669
6669
|
if (side > 0 && rect.right > bounding.right + moveX)
|
|
@@ -6674,7 +6674,7 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
|
6674
6674
|
moveX = -(bounding.left + moveX - rect.left + xMargin);
|
|
6675
6675
|
}
|
|
6676
6676
|
} else {
|
|
6677
|
-
let targetLeft =
|
|
6677
|
+
let targetLeft = x2 == "center" ? rect.left + (rect.right - rect.left) / 2 - (bounding.right - bounding.left) / 2 : x2 == "start" == ltr ? rect.left - xMargin : rect.right - (bounding.right - bounding.left) + xMargin;
|
|
6678
6678
|
moveX = targetLeft - bounding.left;
|
|
6679
6679
|
}
|
|
6680
6680
|
if (moveX || moveY) {
|
|
@@ -6699,9 +6699,9 @@ function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
|
6699
6699
|
bottom: rect.bottom - movedY
|
|
6700
6700
|
};
|
|
6701
6701
|
if (movedX && Math.abs(movedX - moveX) < 1)
|
|
6702
|
-
|
|
6702
|
+
x2 = "nearest";
|
|
6703
6703
|
if (movedY && Math.abs(movedY - moveY) < 1)
|
|
6704
|
-
|
|
6704
|
+
y2 = "nearest";
|
|
6705
6705
|
}
|
|
6706
6706
|
}
|
|
6707
6707
|
if (top2)
|
|
@@ -7503,13 +7503,13 @@ function inlineDOMAtPos(parent, pos) {
|
|
|
7503
7503
|
break;
|
|
7504
7504
|
off = end;
|
|
7505
7505
|
}
|
|
7506
|
-
for (let
|
|
7507
|
-
let prev = children[
|
|
7506
|
+
for (let j = i; j > 0; j--) {
|
|
7507
|
+
let prev = children[j - 1];
|
|
7508
7508
|
if (prev.dom.parentNode == dom)
|
|
7509
7509
|
return prev.domAtPos(prev.length);
|
|
7510
7510
|
}
|
|
7511
|
-
for (let
|
|
7512
|
-
let next = children[
|
|
7511
|
+
for (let j = i; j < children.length; j++) {
|
|
7512
|
+
let next = children[j];
|
|
7513
7513
|
if (next.dom.parentNode == dom)
|
|
7514
7514
|
return next.domAtPos(0);
|
|
7515
7515
|
}
|
|
@@ -7650,8 +7650,8 @@ class LineView extends ContentView {
|
|
|
7650
7650
|
this.children[i].merge(off, this.children[i].length, null, false, 0, 0);
|
|
7651
7651
|
i++;
|
|
7652
7652
|
}
|
|
7653
|
-
for (let
|
|
7654
|
-
end.append(this.children[
|
|
7653
|
+
for (let j = i; j < this.children.length; j++)
|
|
7654
|
+
end.append(this.children[j], 0);
|
|
7655
7655
|
while (i > 0 && this.children[i - 1].length == 0)
|
|
7656
7656
|
this.children[--i].destroy();
|
|
7657
7657
|
this.children.length = i;
|
|
@@ -8381,8 +8381,8 @@ function computeCharTypes(line, rFrom, rTo, isolates, outerType) {
|
|
|
8381
8381
|
while (end < to && types[end] == 64)
|
|
8382
8382
|
end++;
|
|
8383
8383
|
let replace = i && prev == 8 || end < rTo && types[end] == 8 ? prevStrong == 1 ? 1 : 8 : 256;
|
|
8384
|
-
for (let
|
|
8385
|
-
types[
|
|
8384
|
+
for (let j = i; j < end; j++)
|
|
8385
|
+
types[j] = replace;
|
|
8386
8386
|
i = end - 1;
|
|
8387
8387
|
} else if (type == 8 && prevStrong == 1) {
|
|
8388
8388
|
types[i] = 1;
|
|
@@ -8458,12 +8458,12 @@ function processNeutrals(rFrom, rTo, isolates, outerType) {
|
|
|
8458
8458
|
let beforeL = prev == 1;
|
|
8459
8459
|
let afterL = (end < rTo ? types[end] : outerType) == 1;
|
|
8460
8460
|
let replace = beforeL == afterL ? beforeL ? 1 : 2 : outerType;
|
|
8461
|
-
for (let
|
|
8462
|
-
if (
|
|
8463
|
-
|
|
8461
|
+
for (let j = end, jI = iI, fromJ = jI ? isolates[jI - 1].to : rFrom; j > i; ) {
|
|
8462
|
+
if (j == fromJ) {
|
|
8463
|
+
j = isolates[--jI].from;
|
|
8464
8464
|
fromJ = jI ? isolates[jI - 1].to : rFrom;
|
|
8465
8465
|
}
|
|
8466
|
-
types[--
|
|
8466
|
+
types[--j] = replace;
|
|
8467
8467
|
}
|
|
8468
8468
|
i = end;
|
|
8469
8469
|
} else {
|
|
@@ -8645,16 +8645,16 @@ const updateListener = /* @__PURE__ */ Facet.define();
|
|
|
8645
8645
|
const inputHandler$1 = /* @__PURE__ */ Facet.define();
|
|
8646
8646
|
const focusChangeEffect = /* @__PURE__ */ Facet.define();
|
|
8647
8647
|
const perLineTextDirection = /* @__PURE__ */ Facet.define({
|
|
8648
|
-
combine: (values2) => values2.some((
|
|
8648
|
+
combine: (values2) => values2.some((x2) => x2)
|
|
8649
8649
|
});
|
|
8650
8650
|
const nativeSelectionHidden = /* @__PURE__ */ Facet.define({
|
|
8651
|
-
combine: (values2) => values2.some((
|
|
8651
|
+
combine: (values2) => values2.some((x2) => x2)
|
|
8652
8652
|
});
|
|
8653
8653
|
class ScrollTarget {
|
|
8654
|
-
constructor(range,
|
|
8654
|
+
constructor(range, y2 = "nearest", x2 = "nearest", yMargin = 5, xMargin = 5, isSnapshot = false) {
|
|
8655
8655
|
this.range = range;
|
|
8656
|
-
this.y =
|
|
8657
|
-
this.x =
|
|
8656
|
+
this.y = y2;
|
|
8657
|
+
this.x = x2;
|
|
8658
8658
|
this.yMargin = yMargin;
|
|
8659
8659
|
this.xMargin = xMargin;
|
|
8660
8660
|
this.isSnapshot = isSnapshot;
|
|
@@ -8742,7 +8742,7 @@ class PluginInstance {
|
|
|
8742
8742
|
if (this.value.destroy)
|
|
8743
8743
|
try {
|
|
8744
8744
|
this.value.destroy();
|
|
8745
|
-
} catch (
|
|
8745
|
+
} catch (_) {
|
|
8746
8746
|
}
|
|
8747
8747
|
this.deactivate();
|
|
8748
8748
|
}
|
|
@@ -9138,7 +9138,7 @@ class DocView extends ContentView {
|
|
|
9138
9138
|
rawSel.collapse(anchor.node, anchor.offset);
|
|
9139
9139
|
try {
|
|
9140
9140
|
rawSel.extend(head.node, head.offset);
|
|
9141
|
-
} catch (
|
|
9141
|
+
} catch (_) {
|
|
9142
9142
|
}
|
|
9143
9143
|
} else {
|
|
9144
9144
|
let range = document.createRange();
|
|
@@ -9571,11 +9571,11 @@ function groupAt(state2, pos, bias = 1) {
|
|
|
9571
9571
|
}
|
|
9572
9572
|
return EditorSelection.range(from + line.from, to + line.from);
|
|
9573
9573
|
}
|
|
9574
|
-
function getdx(
|
|
9575
|
-
return rect.left >
|
|
9574
|
+
function getdx(x2, rect) {
|
|
9575
|
+
return rect.left > x2 ? rect.left - x2 : Math.max(0, x2 - rect.right);
|
|
9576
9576
|
}
|
|
9577
|
-
function getdy(
|
|
9578
|
-
return rect.top >
|
|
9577
|
+
function getdy(y2, rect) {
|
|
9578
|
+
return rect.top > y2 ? rect.top - y2 : Math.max(0, y2 - rect.bottom);
|
|
9579
9579
|
}
|
|
9580
9580
|
function yOverlap(a, b) {
|
|
9581
9581
|
return a.top < b.bottom - 1 && a.bottom > b.top + 1;
|
|
@@ -9586,7 +9586,7 @@ function upTop(rect, top2) {
|
|
|
9586
9586
|
function upBot(rect, bottom) {
|
|
9587
9587
|
return bottom > rect.bottom ? { top: rect.top, left: rect.left, right: rect.right, bottom } : rect;
|
|
9588
9588
|
}
|
|
9589
|
-
function domPosAtCoords(parent,
|
|
9589
|
+
function domPosAtCoords(parent, x2, y2) {
|
|
9590
9590
|
let closest, closestRect, closestX, closestY, closestOverlap = false;
|
|
9591
9591
|
let above, below, aboveRect, belowRect;
|
|
9592
9592
|
for (let child = parent.firstChild; child; child = child.nextSibling) {
|
|
@@ -9595,22 +9595,22 @@ function domPosAtCoords(parent, x, y) {
|
|
|
9595
9595
|
let rect = rects[i];
|
|
9596
9596
|
if (closestRect && yOverlap(closestRect, rect))
|
|
9597
9597
|
rect = upTop(upBot(rect, closestRect.bottom), closestRect.top);
|
|
9598
|
-
let dx = getdx(
|
|
9598
|
+
let dx = getdx(x2, rect), dy = getdy(y2, rect);
|
|
9599
9599
|
if (dx == 0 && dy == 0)
|
|
9600
|
-
return child.nodeType == 3 ? domPosInText(child,
|
|
9600
|
+
return child.nodeType == 3 ? domPosInText(child, x2, y2) : domPosAtCoords(child, x2, y2);
|
|
9601
9601
|
if (!closest || closestY > dy || closestY == dy && closestX > dx) {
|
|
9602
9602
|
closest = child;
|
|
9603
9603
|
closestRect = rect;
|
|
9604
9604
|
closestX = dx;
|
|
9605
9605
|
closestY = dy;
|
|
9606
|
-
let side = dy ?
|
|
9606
|
+
let side = dy ? y2 < rect.top ? -1 : 1 : dx ? x2 < rect.left ? -1 : 1 : 0;
|
|
9607
9607
|
closestOverlap = !side || (side > 0 ? i < rects.length - 1 : i > 0);
|
|
9608
9608
|
}
|
|
9609
9609
|
if (dx == 0) {
|
|
9610
|
-
if (
|
|
9610
|
+
if (y2 > rect.bottom && (!aboveRect || aboveRect.bottom < rect.bottom)) {
|
|
9611
9611
|
above = child;
|
|
9612
9612
|
aboveRect = rect;
|
|
9613
|
-
} else if (
|
|
9613
|
+
} else if (y2 < rect.top && (!belowRect || belowRect.top > rect.top)) {
|
|
9614
9614
|
below = child;
|
|
9615
9615
|
belowRect = rect;
|
|
9616
9616
|
}
|
|
@@ -9621,37 +9621,37 @@ function domPosAtCoords(parent, x, y) {
|
|
|
9621
9621
|
}
|
|
9622
9622
|
}
|
|
9623
9623
|
}
|
|
9624
|
-
if (aboveRect && aboveRect.bottom >=
|
|
9624
|
+
if (aboveRect && aboveRect.bottom >= y2) {
|
|
9625
9625
|
closest = above;
|
|
9626
9626
|
closestRect = aboveRect;
|
|
9627
|
-
} else if (belowRect && belowRect.top <=
|
|
9627
|
+
} else if (belowRect && belowRect.top <= y2) {
|
|
9628
9628
|
closest = below;
|
|
9629
9629
|
closestRect = belowRect;
|
|
9630
9630
|
}
|
|
9631
9631
|
if (!closest)
|
|
9632
9632
|
return { node: parent, offset: 0 };
|
|
9633
|
-
let clipX = Math.max(closestRect.left, Math.min(closestRect.right,
|
|
9633
|
+
let clipX = Math.max(closestRect.left, Math.min(closestRect.right, x2));
|
|
9634
9634
|
if (closest.nodeType == 3)
|
|
9635
|
-
return domPosInText(closest, clipX,
|
|
9635
|
+
return domPosInText(closest, clipX, y2);
|
|
9636
9636
|
if (closestOverlap && closest.contentEditable != "false")
|
|
9637
|
-
return domPosAtCoords(closest, clipX,
|
|
9638
|
-
let offset2 = Array.prototype.indexOf.call(parent.childNodes, closest) + (
|
|
9637
|
+
return domPosAtCoords(closest, clipX, y2);
|
|
9638
|
+
let offset2 = Array.prototype.indexOf.call(parent.childNodes, closest) + (x2 >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
|
|
9639
9639
|
return { node: parent, offset: offset2 };
|
|
9640
9640
|
}
|
|
9641
|
-
function domPosInText(node,
|
|
9641
|
+
function domPosInText(node, x2, y2) {
|
|
9642
9642
|
let len = node.nodeValue.length;
|
|
9643
9643
|
let closestOffset = -1, closestDY = 1e9, generalSide = 0;
|
|
9644
9644
|
for (let i = 0; i < len; i++) {
|
|
9645
9645
|
let rects = textRange(node, i, i + 1).getClientRects();
|
|
9646
|
-
for (let
|
|
9647
|
-
let rect = rects[
|
|
9646
|
+
for (let j = 0; j < rects.length; j++) {
|
|
9647
|
+
let rect = rects[j];
|
|
9648
9648
|
if (rect.top == rect.bottom)
|
|
9649
9649
|
continue;
|
|
9650
9650
|
if (!generalSide)
|
|
9651
|
-
generalSide =
|
|
9652
|
-
let dy = (rect.top >
|
|
9653
|
-
if (rect.left - 1 <=
|
|
9654
|
-
let right =
|
|
9651
|
+
generalSide = x2 - rect.left;
|
|
9652
|
+
let dy = (rect.top > y2 ? rect.top - y2 : y2 - rect.bottom) - 1;
|
|
9653
|
+
if (rect.left - 1 <= x2 && rect.right + 1 >= x2 && dy < closestDY) {
|
|
9654
|
+
let right = x2 >= (rect.left + rect.right) / 2, after = right;
|
|
9655
9655
|
if (browser.chrome || browser.gecko) {
|
|
9656
9656
|
let rectBefore = textRange(node, i).getBoundingClientRect();
|
|
9657
9657
|
if (rectBefore.left == rect.right)
|
|
@@ -9670,7 +9670,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9670
9670
|
var _a2, _b;
|
|
9671
9671
|
let content2 = view.contentDOM.getBoundingClientRect(), docTop = content2.top + view.viewState.paddingTop;
|
|
9672
9672
|
let block, { docHeight } = view.viewState;
|
|
9673
|
-
let { x, y } = coords, yOffset =
|
|
9673
|
+
let { x: x2, y: y2 } = coords, yOffset = y2 - docTop;
|
|
9674
9674
|
if (yOffset < 0)
|
|
9675
9675
|
return 0;
|
|
9676
9676
|
if (yOffset > docHeight)
|
|
@@ -9689,34 +9689,34 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9689
9689
|
bias = -bias;
|
|
9690
9690
|
}
|
|
9691
9691
|
}
|
|
9692
|
-
|
|
9692
|
+
y2 = docTop + yOffset;
|
|
9693
9693
|
let lineStart = block.from;
|
|
9694
9694
|
if (lineStart < view.viewport.from)
|
|
9695
|
-
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block,
|
|
9695
|
+
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block, x2, y2);
|
|
9696
9696
|
if (lineStart > view.viewport.to)
|
|
9697
|
-
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block,
|
|
9697
|
+
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block, x2, y2);
|
|
9698
9698
|
let doc2 = view.dom.ownerDocument;
|
|
9699
9699
|
let root = view.root.elementFromPoint ? view.root : doc2;
|
|
9700
|
-
let element = root.elementFromPoint(
|
|
9700
|
+
let element = root.elementFromPoint(x2, y2);
|
|
9701
9701
|
if (element && !view.contentDOM.contains(element))
|
|
9702
9702
|
element = null;
|
|
9703
9703
|
if (!element) {
|
|
9704
|
-
|
|
9705
|
-
element = root.elementFromPoint(
|
|
9704
|
+
x2 = Math.max(content2.left + 1, Math.min(content2.right - 1, x2));
|
|
9705
|
+
element = root.elementFromPoint(x2, y2);
|
|
9706
9706
|
if (element && !view.contentDOM.contains(element))
|
|
9707
9707
|
element = null;
|
|
9708
9708
|
}
|
|
9709
9709
|
let node, offset2 = -1;
|
|
9710
9710
|
if (element && ((_a2 = view.docView.nearest(element)) === null || _a2 === void 0 ? void 0 : _a2.isEditable) != false) {
|
|
9711
9711
|
if (doc2.caretPositionFromPoint) {
|
|
9712
|
-
let pos = doc2.caretPositionFromPoint(
|
|
9712
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
9713
9713
|
if (pos)
|
|
9714
9714
|
({ offsetNode: node, offset: offset2 } = pos);
|
|
9715
9715
|
} else if (doc2.caretRangeFromPoint) {
|
|
9716
|
-
let range = doc2.caretRangeFromPoint(
|
|
9716
|
+
let range = doc2.caretRangeFromPoint(x2, y2);
|
|
9717
9717
|
if (range) {
|
|
9718
9718
|
({ startContainer: node, startOffset: offset2 } = range);
|
|
9719
|
-
if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset2,
|
|
9719
|
+
if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset2, x2) || browser.chrome && isSuspiciousChromeCaretResult(node, offset2, x2))
|
|
9720
9720
|
node = void 0;
|
|
9721
9721
|
}
|
|
9722
9722
|
}
|
|
@@ -9725,7 +9725,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9725
9725
|
let line = LineView.find(view.docView, lineStart);
|
|
9726
9726
|
if (!line)
|
|
9727
9727
|
return yOffset > block.top + block.height / 2 ? block.to : block.from;
|
|
9728
|
-
({ node, offset: offset2 } = domPosAtCoords(line.dom,
|
|
9728
|
+
({ node, offset: offset2 } = domPosAtCoords(line.dom, x2, y2));
|
|
9729
9729
|
}
|
|
9730
9730
|
let nearest = view.docView.nearest(node);
|
|
9731
9731
|
if (!nearest)
|
|
@@ -9737,26 +9737,26 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9737
9737
|
return nearest.localPosFromDOM(node, offset2) + nearest.posAtStart;
|
|
9738
9738
|
}
|
|
9739
9739
|
}
|
|
9740
|
-
function posAtCoordsImprecise(view, contentRect, block,
|
|
9741
|
-
let into = Math.round((
|
|
9740
|
+
function posAtCoordsImprecise(view, contentRect, block, x2, y2) {
|
|
9741
|
+
let into = Math.round((x2 - contentRect.left) * view.defaultCharacterWidth);
|
|
9742
9742
|
if (view.lineWrapping && block.height > view.defaultLineHeight * 1.5) {
|
|
9743
9743
|
let textHeight = view.viewState.heightOracle.textHeight;
|
|
9744
|
-
let line = Math.floor((
|
|
9744
|
+
let line = Math.floor((y2 - block.top - (view.defaultLineHeight - textHeight) * 0.5) / textHeight);
|
|
9745
9745
|
into += line * view.viewState.heightOracle.lineLength;
|
|
9746
9746
|
}
|
|
9747
9747
|
let content2 = view.state.sliceDoc(block.from, block.to);
|
|
9748
9748
|
return block.from + findColumn$1(content2, into, view.state.tabSize);
|
|
9749
9749
|
}
|
|
9750
|
-
function isSuspiciousSafariCaretResult(node, offset2,
|
|
9750
|
+
function isSuspiciousSafariCaretResult(node, offset2, x2) {
|
|
9751
9751
|
let len;
|
|
9752
9752
|
if (node.nodeType != 3 || offset2 != (len = node.nodeValue.length))
|
|
9753
9753
|
return false;
|
|
9754
9754
|
for (let next = node.nextSibling; next; next = next.nextSibling)
|
|
9755
9755
|
if (next.nodeType != 1 || next.nodeName != "BR")
|
|
9756
9756
|
return false;
|
|
9757
|
-
return textRange(node, len - 1, len).getBoundingClientRect().left >
|
|
9757
|
+
return textRange(node, len - 1, len).getBoundingClientRect().left > x2;
|
|
9758
9758
|
}
|
|
9759
|
-
function isSuspiciousChromeCaretResult(node, offset2,
|
|
9759
|
+
function isSuspiciousChromeCaretResult(node, offset2, x2) {
|
|
9760
9760
|
if (offset2 != 0)
|
|
9761
9761
|
return false;
|
|
9762
9762
|
for (let cur2 = node; ; ) {
|
|
@@ -9768,7 +9768,7 @@ function isSuspiciousChromeCaretResult(node, offset2, x) {
|
|
|
9768
9768
|
cur2 = parent;
|
|
9769
9769
|
}
|
|
9770
9770
|
let rect = node.nodeType == 1 ? node.getBoundingClientRect() : textRange(node, 0, Math.max(node.nodeValue.length, 1)).getBoundingClientRect();
|
|
9771
|
-
return
|
|
9771
|
+
return x2 - rect.left > 5;
|
|
9772
9772
|
}
|
|
9773
9773
|
function blockAt(view, pos) {
|
|
9774
9774
|
let line = view.lineBlockAt(pos);
|
|
@@ -10306,9 +10306,9 @@ function rangeForClick(view, pos, bias, type) {
|
|
|
10306
10306
|
return EditorSelection.range(from, to);
|
|
10307
10307
|
}
|
|
10308
10308
|
}
|
|
10309
|
-
let insideY = (
|
|
10310
|
-
let inside = (
|
|
10311
|
-
function findPositionSide(view, pos,
|
|
10309
|
+
let insideY = (y2, rect) => y2 >= rect.top && y2 <= rect.bottom;
|
|
10310
|
+
let inside = (x2, y2, rect) => insideY(y2, rect) && x2 >= rect.left && x2 <= rect.right;
|
|
10311
|
+
function findPositionSide(view, pos, x2, y2) {
|
|
10312
10312
|
let line = LineView.find(view.docView, pos);
|
|
10313
10313
|
if (!line)
|
|
10314
10314
|
return 1;
|
|
@@ -10318,12 +10318,12 @@ function findPositionSide(view, pos, x, y) {
|
|
|
10318
10318
|
if (off == line.length)
|
|
10319
10319
|
return -1;
|
|
10320
10320
|
let before = line.coordsAt(off, -1);
|
|
10321
|
-
if (before && inside(
|
|
10321
|
+
if (before && inside(x2, y2, before))
|
|
10322
10322
|
return -1;
|
|
10323
10323
|
let after = line.coordsAt(off, 1);
|
|
10324
|
-
if (after && inside(
|
|
10324
|
+
if (after && inside(x2, y2, after))
|
|
10325
10325
|
return 1;
|
|
10326
|
-
return before && insideY(
|
|
10326
|
+
return before && insideY(y2, before) ? -1 : 1;
|
|
10327
10327
|
}
|
|
10328
10328
|
function queryPos(view, event) {
|
|
10329
10329
|
let pos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
|
|
@@ -10806,24 +10806,24 @@ class HeightMap {
|
|
|
10806
10806
|
static of(nodes) {
|
|
10807
10807
|
if (nodes.length == 1)
|
|
10808
10808
|
return nodes[0];
|
|
10809
|
-
let i = 0,
|
|
10809
|
+
let i = 0, j = nodes.length, before = 0, after = 0;
|
|
10810
10810
|
for (; ; ) {
|
|
10811
|
-
if (i ==
|
|
10811
|
+
if (i == j) {
|
|
10812
10812
|
if (before > after * 2) {
|
|
10813
10813
|
let split = nodes[i - 1];
|
|
10814
10814
|
if (split.break)
|
|
10815
10815
|
nodes.splice(--i, 1, split.left, null, split.right);
|
|
10816
10816
|
else
|
|
10817
10817
|
nodes.splice(--i, 1, split.left, split.right);
|
|
10818
|
-
|
|
10818
|
+
j += 1 + split.break;
|
|
10819
10819
|
before -= split.size;
|
|
10820
10820
|
} else if (after > before * 2) {
|
|
10821
|
-
let split = nodes[
|
|
10821
|
+
let split = nodes[j];
|
|
10822
10822
|
if (split.break)
|
|
10823
|
-
nodes.splice(
|
|
10823
|
+
nodes.splice(j, 1, split.left, null, split.right);
|
|
10824
10824
|
else
|
|
10825
|
-
nodes.splice(
|
|
10826
|
-
|
|
10825
|
+
nodes.splice(j, 1, split.left, split.right);
|
|
10826
|
+
j += 2 + split.break;
|
|
10827
10827
|
after -= split.size;
|
|
10828
10828
|
} else {
|
|
10829
10829
|
break;
|
|
@@ -10833,7 +10833,7 @@ class HeightMap {
|
|
|
10833
10833
|
if (next)
|
|
10834
10834
|
before += next.size;
|
|
10835
10835
|
} else {
|
|
10836
|
-
let next = nodes[--
|
|
10836
|
+
let next = nodes[--j];
|
|
10837
10837
|
if (next)
|
|
10838
10838
|
after += next.size;
|
|
10839
10839
|
}
|
|
@@ -10844,9 +10844,9 @@ class HeightMap {
|
|
|
10844
10844
|
i--;
|
|
10845
10845
|
} else if (nodes[i] == null) {
|
|
10846
10846
|
brk = 1;
|
|
10847
|
-
|
|
10847
|
+
j++;
|
|
10848
10848
|
}
|
|
10849
|
-
return new HeightMapBranch(HeightMap.of(nodes.slice(0, i)), brk, HeightMap.of(nodes.slice(
|
|
10849
|
+
return new HeightMapBranch(HeightMap.of(nodes.slice(0, i)), brk, HeightMap.of(nodes.slice(j)));
|
|
10850
10850
|
}
|
|
10851
10851
|
}
|
|
10852
10852
|
HeightMap.prototype.size = 1;
|
|
@@ -14233,7 +14233,7 @@ class TooltipViewManager {
|
|
|
14233
14233
|
update(update, above) {
|
|
14234
14234
|
var _a2;
|
|
14235
14235
|
let input = update.state.facet(this.facet);
|
|
14236
|
-
let tooltips = input.filter((
|
|
14236
|
+
let tooltips = input.filter((x2) => x2);
|
|
14237
14237
|
if (input === this.input) {
|
|
14238
14238
|
for (let t2 of this.tooltipViews)
|
|
14239
14239
|
if (t2.update)
|
|
@@ -14624,7 +14624,7 @@ GutterMarker.prototype.point = true;
|
|
|
14624
14624
|
const gutterLineClass = /* @__PURE__ */ Facet.define();
|
|
14625
14625
|
const activeGutters = /* @__PURE__ */ Facet.define();
|
|
14626
14626
|
const unfixGutters = /* @__PURE__ */ Facet.define({
|
|
14627
|
-
combine: (values2) => values2.some((
|
|
14627
|
+
combine: (values2) => values2.some((x2) => x2)
|
|
14628
14628
|
});
|
|
14629
14629
|
function gutters(config2) {
|
|
14630
14630
|
let result = [
|
|
@@ -14812,16 +14812,16 @@ class SingleGutterView {
|
|
|
14812
14812
|
this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : "");
|
|
14813
14813
|
for (let prop in config2.domEventHandlers) {
|
|
14814
14814
|
this.dom.addEventListener(prop, (event) => {
|
|
14815
|
-
let target = event.target,
|
|
14815
|
+
let target = event.target, y2;
|
|
14816
14816
|
if (target != this.dom && this.dom.contains(target)) {
|
|
14817
14817
|
while (target.parentNode != this.dom)
|
|
14818
14818
|
target = target.parentNode;
|
|
14819
14819
|
let rect = target.getBoundingClientRect();
|
|
14820
|
-
|
|
14820
|
+
y2 = (rect.top + rect.bottom) / 2;
|
|
14821
14821
|
} else {
|
|
14822
|
-
|
|
14822
|
+
y2 = event.clientY;
|
|
14823
14823
|
}
|
|
14824
|
-
let line = view.lineBlockAtHeight(
|
|
14824
|
+
let line = view.lineBlockAtHeight(y2 - view.documentTop);
|
|
14825
14825
|
if (config2.domEventHandlers[prop](view, line, event))
|
|
14826
14826
|
event.preventDefault();
|
|
14827
14827
|
});
|
|
@@ -15447,11 +15447,11 @@ class TreeBuffer {
|
|
|
15447
15447
|
slice(startI, endI, from) {
|
|
15448
15448
|
let b = this.buffer;
|
|
15449
15449
|
let copy = new Uint16Array(endI - startI), len = 0;
|
|
15450
|
-
for (let i = startI,
|
|
15451
|
-
copy[
|
|
15452
|
-
copy[
|
|
15453
|
-
let to = copy[
|
|
15454
|
-
copy[
|
|
15450
|
+
for (let i = startI, j = 0; i < endI; ) {
|
|
15451
|
+
copy[j++] = b[i++];
|
|
15452
|
+
copy[j++] = b[i++] - from;
|
|
15453
|
+
let to = copy[j++] = b[i++] - from;
|
|
15454
|
+
copy[j++] = b[i++] - startI;
|
|
15455
15455
|
len = Math.max(len, to);
|
|
15456
15456
|
}
|
|
15457
15457
|
return new TreeBuffer(copy, len, this.set);
|
|
@@ -16303,11 +16303,11 @@ function buildTree(data) {
|
|
|
16303
16303
|
if (nodeCount) {
|
|
16304
16304
|
let buffer2 = new Uint16Array(nodeCount * 4);
|
|
16305
16305
|
let start = nodes[nodes.length - 2];
|
|
16306
|
-
for (let i = nodes.length - 3,
|
|
16307
|
-
buffer2[
|
|
16308
|
-
buffer2[
|
|
16309
|
-
buffer2[
|
|
16310
|
-
buffer2[
|
|
16306
|
+
for (let i = nodes.length - 3, j = 0; i >= 0; i -= 3) {
|
|
16307
|
+
buffer2[j++] = nodes[i];
|
|
16308
|
+
buffer2[j++] = nodes[i + 1] - start;
|
|
16309
|
+
buffer2[j++] = nodes[i + 2] - start;
|
|
16310
|
+
buffer2[j++] = j;
|
|
16311
16311
|
}
|
|
16312
16312
|
children2.push(new TreeBuffer(buffer2, nodes[2] - start, nodeSet));
|
|
16313
16313
|
positions2.push(start - parentStart);
|
|
@@ -16931,10 +16931,10 @@ let FragmentCursor$1 = class FragmentCursor {
|
|
|
16931
16931
|
};
|
|
16932
16932
|
function punchRanges(outer, ranges) {
|
|
16933
16933
|
let copy = null, current = ranges;
|
|
16934
|
-
for (let i = 1,
|
|
16934
|
+
for (let i = 1, j = 0; i < outer.length; i++) {
|
|
16935
16935
|
let gapFrom = outer[i - 1].to, gapTo = outer[i].from;
|
|
16936
|
-
for (;
|
|
16937
|
-
let r2 = current[
|
|
16936
|
+
for (; j < current.length; j++) {
|
|
16937
|
+
let r2 = current[j];
|
|
16938
16938
|
if (r2.from >= gapTo)
|
|
16939
16939
|
break;
|
|
16940
16940
|
if (r2.to <= gapFrom)
|
|
@@ -16942,13 +16942,13 @@ function punchRanges(outer, ranges) {
|
|
|
16942
16942
|
if (!copy)
|
|
16943
16943
|
current = copy = ranges.slice();
|
|
16944
16944
|
if (r2.from < gapFrom) {
|
|
16945
|
-
copy[
|
|
16945
|
+
copy[j] = new Range2(r2.from, gapFrom);
|
|
16946
16946
|
if (r2.to > gapTo)
|
|
16947
|
-
copy.splice(
|
|
16947
|
+
copy.splice(j + 1, 0, new Range2(gapTo, r2.to));
|
|
16948
16948
|
} else if (r2.to > gapTo) {
|
|
16949
|
-
copy[
|
|
16949
|
+
copy[j--] = new Range2(gapTo, r2.to);
|
|
16950
16950
|
} else {
|
|
16951
|
-
copy.splice(
|
|
16951
|
+
copy.splice(j--, 1);
|
|
16952
16952
|
}
|
|
16953
16953
|
}
|
|
16954
16954
|
}
|
|
@@ -17082,13 +17082,13 @@ class Modifier {
|
|
|
17082
17082
|
}
|
|
17083
17083
|
}
|
|
17084
17084
|
function sameArray(a, b) {
|
|
17085
|
-
return a.length == b.length && a.every((
|
|
17085
|
+
return a.length == b.length && a.every((x2, i) => x2 == b[i]);
|
|
17086
17086
|
}
|
|
17087
17087
|
function powerSet(array) {
|
|
17088
17088
|
let sets = [[]];
|
|
17089
17089
|
for (let i = 0; i < array.length; i++) {
|
|
17090
|
-
for (let
|
|
17091
|
-
sets.push(sets[
|
|
17090
|
+
for (let j = 0, e = sets.length; j < e; j++) {
|
|
17091
|
+
sets.push(sets[j].concat(array[i]));
|
|
17092
17092
|
}
|
|
17093
17093
|
}
|
|
17094
17094
|
return sets.sort((a, b) => b.length - a.length);
|
|
@@ -19233,8 +19233,8 @@ function optionContent(config2) {
|
|
|
19233
19233
|
let labelElt = document.createElement("span");
|
|
19234
19234
|
labelElt.className = "cm-completionLabel";
|
|
19235
19235
|
let label = completion.displayLabel || completion.label, off = 0;
|
|
19236
|
-
for (let
|
|
19237
|
-
let from = match[
|
|
19236
|
+
for (let j = 0; j < match.length; ) {
|
|
19237
|
+
let from = match[j++], to = match[j++];
|
|
19238
19238
|
if (from > off)
|
|
19239
19239
|
labelElt.appendChild(document.createTextNode(label.slice(off, from)));
|
|
19240
19240
|
let span = labelElt.appendChild(document.createElement("span"));
|
|
@@ -20663,7 +20663,7 @@ class Stack {
|
|
|
20663
20663
|
@internal
|
|
20664
20664
|
*/
|
|
20665
20665
|
toString() {
|
|
20666
|
-
return `[${this.stack.filter((
|
|
20666
|
+
return `[${this.stack.filter((_, i) => i % 3 == 0).concat(this.state)}]@${this.pos}${this.score ? "!" + this.score : ""}`;
|
|
20667
20667
|
}
|
|
20668
20668
|
// Start an empty stack
|
|
20669
20669
|
/**
|
|
@@ -21647,7 +21647,7 @@ class TokenCache {
|
|
|
21647
21647
|
this.tokens = [];
|
|
21648
21648
|
this.mainToken = null;
|
|
21649
21649
|
this.actions = [];
|
|
21650
|
-
this.tokens = parser2.tokenizers.map((
|
|
21650
|
+
this.tokens = parser2.tokenizers.map((_) => new CachedToken());
|
|
21651
21651
|
}
|
|
21652
21652
|
getActions(stack) {
|
|
21653
21653
|
let actionIndex = 0;
|
|
@@ -21856,11 +21856,11 @@ class Parse {
|
|
|
21856
21856
|
outer:
|
|
21857
21857
|
for (let i = 0; i < newStacks.length - 1; i++) {
|
|
21858
21858
|
let stack = newStacks[i];
|
|
21859
|
-
for (let
|
|
21860
|
-
let other = newStacks[
|
|
21859
|
+
for (let j = i + 1; j < newStacks.length; j++) {
|
|
21860
|
+
let other = newStacks[j];
|
|
21861
21861
|
if (stack.sameState(other) || stack.buffer.length > 500 && other.buffer.length > 500) {
|
|
21862
21862
|
if ((stack.score - other.score || stack.buffer.length - other.buffer.length) > 0) {
|
|
21863
|
-
newStacks.splice(
|
|
21863
|
+
newStacks.splice(j--, 1);
|
|
21864
21864
|
} else {
|
|
21865
21865
|
newStacks.splice(i--, 1);
|
|
21866
21866
|
continue outer;
|
|
@@ -21984,7 +21984,7 @@ class Parse {
|
|
|
21984
21984
|
continue;
|
|
21985
21985
|
}
|
|
21986
21986
|
let force = stack.split(), forceBase = base2;
|
|
21987
|
-
for (let
|
|
21987
|
+
for (let j = 0; force.forceReduce() && j < 10; j++) {
|
|
21988
21988
|
if (verbose)
|
|
21989
21989
|
console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
21990
21990
|
let done = this.advanceFully(force, newStacks);
|
|
@@ -22055,7 +22055,7 @@ class Dialect {
|
|
|
22055
22055
|
return !this.disabled || this.disabled[term] == 0;
|
|
22056
22056
|
}
|
|
22057
22057
|
}
|
|
22058
|
-
const id = (
|
|
22058
|
+
const id = (x2) => x2;
|
|
22059
22059
|
class ContextTracker {
|
|
22060
22060
|
/**
|
|
22061
22061
|
Define a context tracker.
|
|
@@ -22100,7 +22100,7 @@ class LRParser extends Parser {
|
|
|
22100
22100
|
setProp(next, prop, propSpec[i++]);
|
|
22101
22101
|
} else {
|
|
22102
22102
|
let value = propSpec[i + -next];
|
|
22103
|
-
for (let
|
|
22103
|
+
for (let j = -next; j > 0; j--)
|
|
22104
22104
|
setProp(propSpec[i++], prop, value);
|
|
22105
22105
|
i++;
|
|
22106
22106
|
}
|
|
@@ -22354,7 +22354,7 @@ class LRParser extends Parser {
|
|
|
22354
22354
|
let disabled = null;
|
|
22355
22355
|
for (let i = 0; i < values2.length; i++)
|
|
22356
22356
|
if (!flags[i]) {
|
|
22357
|
-
for (let
|
|
22357
|
+
for (let j = this.dialects[values2[i]], id2; (id2 = this.data[j++]) != 65535; )
|
|
22358
22358
|
(disabled || (disabled = new Uint8Array(this.maxTerm + 1)))[id2] = 1;
|
|
22359
22359
|
}
|
|
22360
22360
|
return new Dialect(dialect, flags, disabled);
|
|
@@ -24192,7 +24192,7 @@ const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
|
|
|
24192
24192
|
const Methods = ["get", "post", "put", "delete"];
|
|
24193
24193
|
const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
24194
24194
|
const Bool = ["true", "false"];
|
|
24195
|
-
const S
|
|
24195
|
+
const S = {};
|
|
24196
24196
|
const Tags = {
|
|
24197
24197
|
a: {
|
|
24198
24198
|
attrs: {
|
|
@@ -24204,8 +24204,8 @@ const Tags = {
|
|
|
24204
24204
|
hreflang: null
|
|
24205
24205
|
}
|
|
24206
24206
|
},
|
|
24207
|
-
abbr: S
|
|
24208
|
-
address: S
|
|
24207
|
+
abbr: S,
|
|
24208
|
+
address: S,
|
|
24209
24209
|
area: {
|
|
24210
24210
|
attrs: {
|
|
24211
24211
|
alt: null,
|
|
@@ -24219,8 +24219,8 @@ const Tags = {
|
|
|
24219
24219
|
shape: ["default", "rect", "circle", "poly"]
|
|
24220
24220
|
}
|
|
24221
24221
|
},
|
|
24222
|
-
article: S
|
|
24223
|
-
aside: S
|
|
24222
|
+
article: S,
|
|
24223
|
+
aside: S,
|
|
24224
24224
|
audio: {
|
|
24225
24225
|
attrs: {
|
|
24226
24226
|
src: null,
|
|
@@ -24232,13 +24232,13 @@ const Tags = {
|
|
|
24232
24232
|
controls: ["controls"]
|
|
24233
24233
|
}
|
|
24234
24234
|
},
|
|
24235
|
-
b: S
|
|
24235
|
+
b: S,
|
|
24236
24236
|
base: { attrs: { href: null, target: Targets } },
|
|
24237
|
-
bdi: S
|
|
24238
|
-
bdo: S
|
|
24237
|
+
bdi: S,
|
|
24238
|
+
bdo: S,
|
|
24239
24239
|
blockquote: { attrs: { cite: null } },
|
|
24240
|
-
body: S
|
|
24241
|
-
br: S
|
|
24240
|
+
body: S,
|
|
24241
|
+
br: S,
|
|
24242
24242
|
button: {
|
|
24243
24243
|
attrs: {
|
|
24244
24244
|
form: null,
|
|
@@ -24255,10 +24255,10 @@ const Tags = {
|
|
|
24255
24255
|
}
|
|
24256
24256
|
},
|
|
24257
24257
|
canvas: { attrs: { width: null, height: null } },
|
|
24258
|
-
caption: S
|
|
24259
|
-
center: S
|
|
24260
|
-
cite: S
|
|
24261
|
-
code: S
|
|
24258
|
+
caption: S,
|
|
24259
|
+
center: S,
|
|
24260
|
+
cite: S,
|
|
24261
|
+
code: S,
|
|
24262
24262
|
col: { attrs: { span: null } },
|
|
24263
24263
|
colgroup: { attrs: { span: null } },
|
|
24264
24264
|
command: {
|
|
@@ -24276,20 +24276,20 @@ const Tags = {
|
|
|
24276
24276
|
data: { attrs: { value: null } },
|
|
24277
24277
|
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
|
24278
24278
|
datalist: { attrs: { data: null } },
|
|
24279
|
-
dd: S
|
|
24279
|
+
dd: S,
|
|
24280
24280
|
del: { attrs: { cite: null, datetime: null } },
|
|
24281
24281
|
details: { attrs: { open: ["open"] } },
|
|
24282
|
-
dfn: S
|
|
24283
|
-
div: S
|
|
24284
|
-
dl: S
|
|
24285
|
-
dt: S
|
|
24286
|
-
em: S
|
|
24282
|
+
dfn: S,
|
|
24283
|
+
div: S,
|
|
24284
|
+
dl: S,
|
|
24285
|
+
dt: S,
|
|
24286
|
+
em: S,
|
|
24287
24287
|
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
|
24288
24288
|
eventsource: { attrs: { src: null } },
|
|
24289
24289
|
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
|
24290
|
-
figcaption: S
|
|
24291
|
-
figure: S
|
|
24292
|
-
footer: S
|
|
24290
|
+
figcaption: S,
|
|
24291
|
+
figure: S,
|
|
24292
|
+
footer: S,
|
|
24293
24293
|
form: {
|
|
24294
24294
|
attrs: {
|
|
24295
24295
|
action: null,
|
|
@@ -24302,22 +24302,22 @@ const Tags = {
|
|
|
24302
24302
|
target: Targets
|
|
24303
24303
|
}
|
|
24304
24304
|
},
|
|
24305
|
-
h1: S
|
|
24306
|
-
h2: S
|
|
24307
|
-
h3: S
|
|
24308
|
-
h4: S
|
|
24309
|
-
h5: S
|
|
24310
|
-
h6: S
|
|
24305
|
+
h1: S,
|
|
24306
|
+
h2: S,
|
|
24307
|
+
h3: S,
|
|
24308
|
+
h4: S,
|
|
24309
|
+
h5: S,
|
|
24310
|
+
h6: S,
|
|
24311
24311
|
head: {
|
|
24312
24312
|
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
24313
24313
|
},
|
|
24314
|
-
header: S
|
|
24315
|
-
hgroup: S
|
|
24316
|
-
hr: S
|
|
24314
|
+
header: S,
|
|
24315
|
+
hgroup: S,
|
|
24316
|
+
hr: S,
|
|
24317
24317
|
html: {
|
|
24318
24318
|
attrs: { manifest: null }
|
|
24319
24319
|
},
|
|
24320
|
-
i: S
|
|
24320
|
+
i: S,
|
|
24321
24321
|
iframe: {
|
|
24322
24322
|
attrs: {
|
|
24323
24323
|
src: null,
|
|
@@ -24399,7 +24399,7 @@ const Tags = {
|
|
|
24399
24399
|
}
|
|
24400
24400
|
},
|
|
24401
24401
|
ins: { attrs: { cite: null, datetime: null } },
|
|
24402
|
-
kbd: S
|
|
24402
|
+
kbd: S,
|
|
24403
24403
|
keygen: {
|
|
24404
24404
|
attrs: {
|
|
24405
24405
|
challenge: null,
|
|
@@ -24411,7 +24411,7 @@ const Tags = {
|
|
|
24411
24411
|
}
|
|
24412
24412
|
},
|
|
24413
24413
|
label: { attrs: { for: null, form: null } },
|
|
24414
|
-
legend: S
|
|
24414
|
+
legend: S,
|
|
24415
24415
|
li: { attrs: { value: null } },
|
|
24416
24416
|
link: {
|
|
24417
24417
|
attrs: {
|
|
@@ -24423,7 +24423,7 @@ const Tags = {
|
|
|
24423
24423
|
}
|
|
24424
24424
|
},
|
|
24425
24425
|
map: { attrs: { name: null } },
|
|
24426
|
-
mark: S
|
|
24426
|
+
mark: S,
|
|
24427
24427
|
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
|
24428
24428
|
meta: {
|
|
24429
24429
|
attrs: {
|
|
@@ -24434,8 +24434,8 @@ const Tags = {
|
|
|
24434
24434
|
}
|
|
24435
24435
|
},
|
|
24436
24436
|
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
|
24437
|
-
nav: S
|
|
24438
|
-
noscript: S
|
|
24437
|
+
nav: S,
|
|
24438
|
+
noscript: S,
|
|
24439
24439
|
object: {
|
|
24440
24440
|
attrs: {
|
|
24441
24441
|
data: null,
|
|
@@ -24455,15 +24455,15 @@ const Tags = {
|
|
|
24455
24455
|
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
|
24456
24456
|
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
|
24457
24457
|
output: { attrs: { for: null, form: null, name: null } },
|
|
24458
|
-
p: S
|
|
24458
|
+
p: S,
|
|
24459
24459
|
param: { attrs: { name: null, value: null } },
|
|
24460
|
-
pre: S
|
|
24460
|
+
pre: S,
|
|
24461
24461
|
progress: { attrs: { value: null, max: null } },
|
|
24462
24462
|
q: { attrs: { cite: null } },
|
|
24463
|
-
rp: S
|
|
24464
|
-
rt: S
|
|
24465
|
-
ruby: S
|
|
24466
|
-
samp: S
|
|
24463
|
+
rp: S,
|
|
24464
|
+
rt: S,
|
|
24465
|
+
ruby: S,
|
|
24466
|
+
samp: S,
|
|
24467
24467
|
script: {
|
|
24468
24468
|
attrs: {
|
|
24469
24469
|
type: ["text/javascript"],
|
|
@@ -24473,7 +24473,7 @@ const Tags = {
|
|
|
24473
24473
|
charset: Charsets
|
|
24474
24474
|
}
|
|
24475
24475
|
},
|
|
24476
|
-
section: S
|
|
24476
|
+
section: S,
|
|
24477
24477
|
select: {
|
|
24478
24478
|
attrs: {
|
|
24479
24479
|
form: null,
|
|
@@ -24485,10 +24485,10 @@ const Tags = {
|
|
|
24485
24485
|
}
|
|
24486
24486
|
},
|
|
24487
24487
|
slot: { attrs: { name: null } },
|
|
24488
|
-
small: S
|
|
24488
|
+
small: S,
|
|
24489
24489
|
source: { attrs: { src: null, type: null, media: null } },
|
|
24490
|
-
span: S
|
|
24491
|
-
strong: S
|
|
24490
|
+
span: S,
|
|
24491
|
+
strong: S,
|
|
24492
24492
|
style: {
|
|
24493
24493
|
attrs: {
|
|
24494
24494
|
type: ["text/css"],
|
|
@@ -24496,13 +24496,13 @@ const Tags = {
|
|
|
24496
24496
|
scoped: null
|
|
24497
24497
|
}
|
|
24498
24498
|
},
|
|
24499
|
-
sub: S
|
|
24500
|
-
summary: S
|
|
24501
|
-
sup: S
|
|
24502
|
-
table: S
|
|
24503
|
-
tbody: S
|
|
24499
|
+
sub: S,
|
|
24500
|
+
summary: S,
|
|
24501
|
+
sup: S,
|
|
24502
|
+
table: S,
|
|
24503
|
+
tbody: S,
|
|
24504
24504
|
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
|
24505
|
-
template: S
|
|
24505
|
+
template: S,
|
|
24506
24506
|
textarea: {
|
|
24507
24507
|
attrs: {
|
|
24508
24508
|
dirname: null,
|
|
@@ -24519,12 +24519,12 @@ const Tags = {
|
|
|
24519
24519
|
wrap: ["soft", "hard"]
|
|
24520
24520
|
}
|
|
24521
24521
|
},
|
|
24522
|
-
tfoot: S
|
|
24522
|
+
tfoot: S,
|
|
24523
24523
|
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
|
24524
|
-
thead: S
|
|
24524
|
+
thead: S,
|
|
24525
24525
|
time: { attrs: { datetime: null } },
|
|
24526
|
-
title: S
|
|
24527
|
-
tr: S
|
|
24526
|
+
title: S,
|
|
24527
|
+
tr: S,
|
|
24528
24528
|
track: {
|
|
24529
24529
|
attrs: {
|
|
24530
24530
|
src: null,
|
|
@@ -24535,7 +24535,7 @@ const Tags = {
|
|
|
24535
24535
|
}
|
|
24536
24536
|
},
|
|
24537
24537
|
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
|
24538
|
-
var: S
|
|
24538
|
+
var: S,
|
|
24539
24539
|
video: {
|
|
24540
24540
|
attrs: {
|
|
24541
24541
|
src: null,
|
|
@@ -24550,7 +24550,7 @@ const Tags = {
|
|
|
24550
24550
|
controls: ["controls"]
|
|
24551
24551
|
}
|
|
24552
24552
|
},
|
|
24553
|
-
wbr: S
|
|
24553
|
+
wbr: S
|
|
24554
24554
|
};
|
|
24555
24555
|
const GlobalAttrs = {
|
|
24556
24556
|
accesskey: null,
|
|
@@ -29305,8 +29305,8 @@ function extendTailwindMerge(configExtension, ...createConfig) {
|
|
|
29305
29305
|
return typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
29306
29306
|
}
|
|
29307
29307
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
29308
|
-
function getDefaultExportFromCjs(
|
|
29309
|
-
return
|
|
29308
|
+
function getDefaultExportFromCjs(x2) {
|
|
29309
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
29310
29310
|
}
|
|
29311
29311
|
var prism = { exports: {} };
|
|
29312
29312
|
(function(module) {
|
|
@@ -29323,7 +29323,7 @@ var prism = { exports: {} };
|
|
|
29323
29323
|
var lang = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i;
|
|
29324
29324
|
var uniqueId = 0;
|
|
29325
29325
|
var plainTextGrammar = {};
|
|
29326
|
-
var
|
|
29326
|
+
var _ = {
|
|
29327
29327
|
/**
|
|
29328
29328
|
* By default, Prism will attempt to highlight all code elements (by calling {@link Prism.highlightAll}) on the
|
|
29329
29329
|
* current page after the page finished loading. This might be a problem if e.g. you wanted to asynchronously load
|
|
@@ -29432,9 +29432,9 @@ var prism = { exports: {} };
|
|
|
29432
29432
|
visited = visited || {};
|
|
29433
29433
|
var clone;
|
|
29434
29434
|
var id2;
|
|
29435
|
-
switch (
|
|
29435
|
+
switch (_.util.type(o)) {
|
|
29436
29436
|
case "Object":
|
|
29437
|
-
id2 =
|
|
29437
|
+
id2 = _.util.objId(o);
|
|
29438
29438
|
if (visited[id2]) {
|
|
29439
29439
|
return visited[id2];
|
|
29440
29440
|
}
|
|
@@ -29451,7 +29451,7 @@ var prism = { exports: {} };
|
|
|
29451
29451
|
clone
|
|
29452
29452
|
);
|
|
29453
29453
|
case "Array":
|
|
29454
|
-
id2 =
|
|
29454
|
+
id2 = _.util.objId(o);
|
|
29455
29455
|
if (visited[id2]) {
|
|
29456
29456
|
return visited[id2];
|
|
29457
29457
|
}
|
|
@@ -29609,7 +29609,7 @@ var prism = { exports: {} };
|
|
|
29609
29609
|
* });
|
|
29610
29610
|
*/
|
|
29611
29611
|
extend: function(id2, redef) {
|
|
29612
|
-
var lang2 =
|
|
29612
|
+
var lang2 = _.util.clone(_.languages[id2]);
|
|
29613
29613
|
for (var key in redef) {
|
|
29614
29614
|
lang2[key] = redef[key];
|
|
29615
29615
|
}
|
|
@@ -29692,7 +29692,7 @@ var prism = { exports: {} };
|
|
|
29692
29692
|
*/
|
|
29693
29693
|
insertBefore: function(inside2, before, insert2, root) {
|
|
29694
29694
|
root = root || /** @type {any} */
|
|
29695
|
-
|
|
29695
|
+
_.languages;
|
|
29696
29696
|
var grammar = root[inside2];
|
|
29697
29697
|
var ret = {};
|
|
29698
29698
|
for (var token in grammar) {
|
|
@@ -29711,7 +29711,7 @@ var prism = { exports: {} };
|
|
|
29711
29711
|
}
|
|
29712
29712
|
var old = root[inside2];
|
|
29713
29713
|
root[inside2] = ret;
|
|
29714
|
-
|
|
29714
|
+
_.languages.DFS(_.languages, function(key, value) {
|
|
29715
29715
|
if (value === old && key != inside2) {
|
|
29716
29716
|
this[key] = ret;
|
|
29717
29717
|
}
|
|
@@ -29721,12 +29721,12 @@ var prism = { exports: {} };
|
|
|
29721
29721
|
// Traverse a language definition with Depth First Search
|
|
29722
29722
|
DFS: function DFS(o, callback, type, visited) {
|
|
29723
29723
|
visited = visited || {};
|
|
29724
|
-
var objId =
|
|
29724
|
+
var objId = _.util.objId;
|
|
29725
29725
|
for (var i in o) {
|
|
29726
29726
|
if (o.hasOwnProperty(i)) {
|
|
29727
29727
|
callback.call(o, i, o[i], type || i);
|
|
29728
29728
|
var property = o[i];
|
|
29729
|
-
var propertyType =
|
|
29729
|
+
var propertyType = _.util.type(property);
|
|
29730
29730
|
if (propertyType === "Object" && !visited[objId(property)]) {
|
|
29731
29731
|
visited[objId(property)] = true;
|
|
29732
29732
|
DFS(property, callback, null, visited);
|
|
@@ -29752,7 +29752,7 @@ var prism = { exports: {} };
|
|
|
29752
29752
|
* @public
|
|
29753
29753
|
*/
|
|
29754
29754
|
highlightAll: function(async, callback) {
|
|
29755
|
-
|
|
29755
|
+
_.highlightAllUnder(document, async, callback);
|
|
29756
29756
|
},
|
|
29757
29757
|
/**
|
|
29758
29758
|
* Fetches all the descendants of `container` that have a `.language-xxxx` class and then calls
|
|
@@ -29775,11 +29775,11 @@ var prism = { exports: {} };
|
|
|
29775
29775
|
container,
|
|
29776
29776
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
29777
29777
|
};
|
|
29778
|
-
|
|
29778
|
+
_.hooks.run("before-highlightall", env);
|
|
29779
29779
|
env.elements = Array.prototype.slice.apply(env.container.querySelectorAll(env.selector));
|
|
29780
|
-
|
|
29780
|
+
_.hooks.run("before-all-elements-highlight", env);
|
|
29781
29781
|
for (var i = 0, element; element = env.elements[i++]; ) {
|
|
29782
|
-
|
|
29782
|
+
_.highlightElement(element, async === true, env.callback);
|
|
29783
29783
|
}
|
|
29784
29784
|
},
|
|
29785
29785
|
/**
|
|
@@ -29811,12 +29811,12 @@ var prism = { exports: {} };
|
|
|
29811
29811
|
* @public
|
|
29812
29812
|
*/
|
|
29813
29813
|
highlightElement: function(element, async, callback) {
|
|
29814
|
-
var language2 =
|
|
29815
|
-
var grammar =
|
|
29816
|
-
|
|
29814
|
+
var language2 = _.util.getLanguage(element);
|
|
29815
|
+
var grammar = _.languages[language2];
|
|
29816
|
+
_.util.setLanguage(element, language2);
|
|
29817
29817
|
var parent = element.parentElement;
|
|
29818
29818
|
if (parent && parent.nodeName.toLowerCase() === "pre") {
|
|
29819
|
-
|
|
29819
|
+
_.util.setLanguage(parent, language2);
|
|
29820
29820
|
}
|
|
29821
29821
|
var code = element.textContent;
|
|
29822
29822
|
var env = {
|
|
@@ -29827,29 +29827,29 @@ var prism = { exports: {} };
|
|
|
29827
29827
|
};
|
|
29828
29828
|
function insertHighlightedCode(highlightedCode) {
|
|
29829
29829
|
env.highlightedCode = highlightedCode;
|
|
29830
|
-
|
|
29830
|
+
_.hooks.run("before-insert", env);
|
|
29831
29831
|
env.element.innerHTML = env.highlightedCode;
|
|
29832
|
-
|
|
29833
|
-
|
|
29832
|
+
_.hooks.run("after-highlight", env);
|
|
29833
|
+
_.hooks.run("complete", env);
|
|
29834
29834
|
callback && callback.call(env.element);
|
|
29835
29835
|
}
|
|
29836
|
-
|
|
29836
|
+
_.hooks.run("before-sanity-check", env);
|
|
29837
29837
|
parent = env.element.parentElement;
|
|
29838
29838
|
if (parent && parent.nodeName.toLowerCase() === "pre" && !parent.hasAttribute("tabindex")) {
|
|
29839
29839
|
parent.setAttribute("tabindex", "0");
|
|
29840
29840
|
}
|
|
29841
29841
|
if (!env.code) {
|
|
29842
|
-
|
|
29842
|
+
_.hooks.run("complete", env);
|
|
29843
29843
|
callback && callback.call(env.element);
|
|
29844
29844
|
return;
|
|
29845
29845
|
}
|
|
29846
|
-
|
|
29846
|
+
_.hooks.run("before-highlight", env);
|
|
29847
29847
|
if (!env.grammar) {
|
|
29848
|
-
insertHighlightedCode(
|
|
29848
|
+
insertHighlightedCode(_.util.encode(env.code));
|
|
29849
29849
|
return;
|
|
29850
29850
|
}
|
|
29851
29851
|
if (async && _self2.Worker) {
|
|
29852
|
-
var worker = new Worker(
|
|
29852
|
+
var worker = new Worker(_.filename);
|
|
29853
29853
|
worker.onmessage = function(evt) {
|
|
29854
29854
|
insertHighlightedCode(evt.data);
|
|
29855
29855
|
};
|
|
@@ -29859,7 +29859,7 @@ var prism = { exports: {} };
|
|
|
29859
29859
|
immediateClose: true
|
|
29860
29860
|
}));
|
|
29861
29861
|
} else {
|
|
29862
|
-
insertHighlightedCode(
|
|
29862
|
+
insertHighlightedCode(_.highlight(env.code, env.grammar, env.language));
|
|
29863
29863
|
}
|
|
29864
29864
|
},
|
|
29865
29865
|
/**
|
|
@@ -29888,13 +29888,13 @@ var prism = { exports: {} };
|
|
|
29888
29888
|
grammar,
|
|
29889
29889
|
language: language2
|
|
29890
29890
|
};
|
|
29891
|
-
|
|
29891
|
+
_.hooks.run("before-tokenize", env);
|
|
29892
29892
|
if (!env.grammar) {
|
|
29893
29893
|
throw new Error('The language "' + env.language + '" has no grammar.');
|
|
29894
29894
|
}
|
|
29895
|
-
env.tokens =
|
|
29896
|
-
|
|
29897
|
-
return Token.stringify(
|
|
29895
|
+
env.tokens = _.tokenize(env.code, env.grammar);
|
|
29896
|
+
_.hooks.run("after-tokenize", env);
|
|
29897
|
+
return Token.stringify(_.util.encode(env.tokens), env.language);
|
|
29898
29898
|
},
|
|
29899
29899
|
/**
|
|
29900
29900
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -29953,7 +29953,7 @@ var prism = { exports: {} };
|
|
|
29953
29953
|
* @public
|
|
29954
29954
|
*/
|
|
29955
29955
|
add: function(name2, callback) {
|
|
29956
|
-
var hooks =
|
|
29956
|
+
var hooks = _.hooks.all;
|
|
29957
29957
|
hooks[name2] = hooks[name2] || [];
|
|
29958
29958
|
hooks[name2].push(callback);
|
|
29959
29959
|
},
|
|
@@ -29967,7 +29967,7 @@ var prism = { exports: {} };
|
|
|
29967
29967
|
* @public
|
|
29968
29968
|
*/
|
|
29969
29969
|
run: function(name2, env) {
|
|
29970
|
-
var callbacks =
|
|
29970
|
+
var callbacks = _.hooks.all[name2];
|
|
29971
29971
|
if (!callbacks || !callbacks.length) {
|
|
29972
29972
|
return;
|
|
29973
29973
|
}
|
|
@@ -29978,7 +29978,7 @@ var prism = { exports: {} };
|
|
|
29978
29978
|
},
|
|
29979
29979
|
Token
|
|
29980
29980
|
};
|
|
29981
|
-
_self2.Prism =
|
|
29981
|
+
_self2.Prism = _;
|
|
29982
29982
|
function Token(type, content2, alias, matchedStr) {
|
|
29983
29983
|
this.type = type;
|
|
29984
29984
|
this.content = content2;
|
|
@@ -30012,7 +30012,7 @@ var prism = { exports: {} };
|
|
|
30012
30012
|
env.classes.push(aliases);
|
|
30013
30013
|
}
|
|
30014
30014
|
}
|
|
30015
|
-
|
|
30015
|
+
_.hooks.run("wrap", env);
|
|
30016
30016
|
var attributes = "";
|
|
30017
30017
|
for (var name2 in env.attributes) {
|
|
30018
30018
|
attributes += " " + name2 + '="' + (env.attributes[name2] || "").replace(/"/g, """) + '"';
|
|
@@ -30036,11 +30036,11 @@ var prism = { exports: {} };
|
|
|
30036
30036
|
}
|
|
30037
30037
|
var patterns = grammar[token];
|
|
30038
30038
|
patterns = Array.isArray(patterns) ? patterns : [patterns];
|
|
30039
|
-
for (var
|
|
30040
|
-
if (rematch && rematch.cause == token + "," +
|
|
30039
|
+
for (var j = 0; j < patterns.length; ++j) {
|
|
30040
|
+
if (rematch && rematch.cause == token + "," + j) {
|
|
30041
30041
|
return;
|
|
30042
30042
|
}
|
|
30043
|
-
var patternObj = patterns[
|
|
30043
|
+
var patternObj = patterns[j];
|
|
30044
30044
|
var inside2 = patternObj.inside;
|
|
30045
30045
|
var lookbehind = !!patternObj.lookbehind;
|
|
30046
30046
|
var greedy = !!patternObj.greedy;
|
|
@@ -30108,14 +30108,14 @@ var prism = { exports: {} };
|
|
|
30108
30108
|
pos += before.length;
|
|
30109
30109
|
}
|
|
30110
30110
|
removeRange(tokenList, removeFrom, removeCount);
|
|
30111
|
-
var wrapped = new Token(token, inside2 ?
|
|
30111
|
+
var wrapped = new Token(token, inside2 ? _.tokenize(matchStr, inside2) : matchStr, alias, matchStr);
|
|
30112
30112
|
currentNode = addAfter(tokenList, removeFrom, wrapped);
|
|
30113
30113
|
if (after) {
|
|
30114
30114
|
addAfter(tokenList, currentNode, after);
|
|
30115
30115
|
}
|
|
30116
30116
|
if (removeCount > 1) {
|
|
30117
30117
|
var nestedRematch = {
|
|
30118
|
-
cause: token + "," +
|
|
30118
|
+
cause: token + "," + j,
|
|
30119
30119
|
reach
|
|
30120
30120
|
};
|
|
30121
30121
|
matchGrammar(text, tokenList, grammar, currentNode.prev, pos, nestedRematch);
|
|
@@ -30163,35 +30163,35 @@ var prism = { exports: {} };
|
|
|
30163
30163
|
}
|
|
30164
30164
|
if (!_self2.document) {
|
|
30165
30165
|
if (!_self2.addEventListener) {
|
|
30166
|
-
return
|
|
30166
|
+
return _;
|
|
30167
30167
|
}
|
|
30168
|
-
if (!
|
|
30168
|
+
if (!_.disableWorkerMessageHandler) {
|
|
30169
30169
|
_self2.addEventListener("message", function(evt) {
|
|
30170
30170
|
var message = JSON.parse(evt.data);
|
|
30171
30171
|
var lang2 = message.language;
|
|
30172
30172
|
var code = message.code;
|
|
30173
30173
|
var immediateClose = message.immediateClose;
|
|
30174
|
-
_self2.postMessage(
|
|
30174
|
+
_self2.postMessage(_.highlight(code, _.languages[lang2], lang2));
|
|
30175
30175
|
if (immediateClose) {
|
|
30176
30176
|
_self2.close();
|
|
30177
30177
|
}
|
|
30178
30178
|
}, false);
|
|
30179
30179
|
}
|
|
30180
|
-
return
|
|
30180
|
+
return _;
|
|
30181
30181
|
}
|
|
30182
|
-
var script =
|
|
30182
|
+
var script = _.util.currentScript();
|
|
30183
30183
|
if (script) {
|
|
30184
|
-
|
|
30184
|
+
_.filename = script.src;
|
|
30185
30185
|
if (script.hasAttribute("data-manual")) {
|
|
30186
|
-
|
|
30186
|
+
_.manual = true;
|
|
30187
30187
|
}
|
|
30188
30188
|
}
|
|
30189
30189
|
function highlightAutomaticallyCallback() {
|
|
30190
|
-
if (!
|
|
30191
|
-
|
|
30190
|
+
if (!_.manual) {
|
|
30191
|
+
_.highlightAll();
|
|
30192
30192
|
}
|
|
30193
30193
|
}
|
|
30194
|
-
if (!
|
|
30194
|
+
if (!_.manual) {
|
|
30195
30195
|
var readyState = document.readyState;
|
|
30196
30196
|
if (readyState === "loading" || readyState === "interactive" && script && script.defer) {
|
|
30197
30197
|
document.addEventListener("DOMContentLoaded", highlightAutomaticallyCallback);
|
|
@@ -30203,7 +30203,7 @@ var prism = { exports: {} };
|
|
|
30203
30203
|
}
|
|
30204
30204
|
}
|
|
30205
30205
|
}
|
|
30206
|
-
return
|
|
30206
|
+
return _;
|
|
30207
30207
|
}(_self);
|
|
30208
30208
|
if (module.exports) {
|
|
30209
30209
|
module.exports = Prism2;
|
|
@@ -30763,34 +30763,34 @@ var prism = { exports: {} };
|
|
|
30763
30763
|
})();
|
|
30764
30764
|
})(prism);
|
|
30765
30765
|
var prismExports = prism.exports;
|
|
30766
|
-
const
|
|
30767
|
-
const
|
|
30766
|
+
const x = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
|
|
30767
|
+
const P = "scalar-component", me = extendTailwindMerge({
|
|
30768
30768
|
extend: {
|
|
30769
30769
|
classGroups: {
|
|
30770
30770
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
30771
|
-
[
|
|
30771
|
+
[P]: [P]
|
|
30772
30772
|
}
|
|
30773
30773
|
}
|
|
30774
|
-
}), { cva:
|
|
30774
|
+
}), { cva: $, cx: y, compose: ra } = defineConfig({
|
|
30775
30775
|
hooks: {
|
|
30776
|
-
onComplete: (
|
|
30776
|
+
onComplete: (t2) => `${me(t2, P)}`
|
|
30777
30777
|
}
|
|
30778
|
-
}),
|
|
30778
|
+
}), ge = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), he = {
|
|
30779
30779
|
key: 0,
|
|
30780
30780
|
class: "circular-loader"
|
|
30781
30781
|
};
|
|
30782
|
-
const
|
|
30782
|
+
const fe = /* @__PURE__ */ defineComponent({
|
|
30783
30783
|
__name: "ScalarLoading",
|
|
30784
30784
|
props: {
|
|
30785
30785
|
loadingState: {},
|
|
30786
30786
|
size: { default: "24px" }
|
|
30787
30787
|
},
|
|
30788
|
-
setup(
|
|
30788
|
+
setup(t2) {
|
|
30789
30789
|
return useCssVars((a) => ({
|
|
30790
30790
|
d6cae758: a.size
|
|
30791
30791
|
})), (a, e) => a.loadingState ? (openBlock(), createElementBlock("div", {
|
|
30792
30792
|
key: 0,
|
|
30793
|
-
class: normalizeClass(unref(
|
|
30793
|
+
class: normalizeClass(unref(y)("loader-wrapper"))
|
|
30794
30794
|
}, [
|
|
30795
30795
|
(openBlock(), createElementBlock("svg", {
|
|
30796
30796
|
class: normalizeClass(["svg-loader", {
|
|
@@ -30801,8 +30801,8 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30801
30801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30802
30802
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
30803
30803
|
}, [
|
|
30804
|
-
|
|
30805
|
-
a.loadingState.isLoading ? (openBlock(), createElementBlock("g",
|
|
30804
|
+
ge,
|
|
30805
|
+
a.loadingState.isLoading ? (openBlock(), createElementBlock("g", he, [
|
|
30806
30806
|
createElementVNode("circle", {
|
|
30807
30807
|
class: normalizeClass(["loader-path", {
|
|
30808
30808
|
"loader-path-off": a.loadingState.isValid || a.loadingState.isInvalid
|
|
@@ -30817,12 +30817,12 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30817
30817
|
], 2))
|
|
30818
30818
|
], 2)) : createCommentVNode("", true);
|
|
30819
30819
|
}
|
|
30820
|
-
}),
|
|
30821
|
-
const e =
|
|
30822
|
-
for (const [
|
|
30823
|
-
e[
|
|
30820
|
+
}), z = (t2, a) => {
|
|
30821
|
+
const e = t2.__vccOpts || t2;
|
|
30822
|
+
for (const [l, h] of a)
|
|
30823
|
+
e[l] = h;
|
|
30824
30824
|
return e;
|
|
30825
|
-
},
|
|
30825
|
+
}, H = /* @__PURE__ */ z(fe, [["__scopeId", "data-v-47faceda"]]), W = {
|
|
30826
30826
|
solid: [
|
|
30827
30827
|
"scalar-button-solid",
|
|
30828
30828
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -30839,7 +30839,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30839
30839
|
"scalar-button-danger",
|
|
30840
30840
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30841
30841
|
]
|
|
30842
|
-
},
|
|
30842
|
+
}, ve = $({
|
|
30843
30843
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30844
30844
|
variants: {
|
|
30845
30845
|
disabled: {
|
|
@@ -30847,7 +30847,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30847
30847
|
},
|
|
30848
30848
|
fullWidth: { true: "w-full" },
|
|
30849
30849
|
size: { md: "h-10 px-6 text-sm" },
|
|
30850
|
-
variant:
|
|
30850
|
+
variant: W
|
|
30851
30851
|
},
|
|
30852
30852
|
compoundVariants: [
|
|
30853
30853
|
{
|
|
@@ -30856,13 +30856,13 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30856
30856
|
class: "bg-transparent text-ghost"
|
|
30857
30857
|
}
|
|
30858
30858
|
]
|
|
30859
|
-
}),
|
|
30859
|
+
}), be = ["ariaDisabled"], Se = {
|
|
30860
30860
|
key: 0,
|
|
30861
30861
|
class: "mr-2 h-4 w-4"
|
|
30862
|
-
},
|
|
30862
|
+
}, we = {
|
|
30863
30863
|
key: 1,
|
|
30864
30864
|
class: "ml-2"
|
|
30865
|
-
},
|
|
30865
|
+
}, ye = /* @__PURE__ */ defineComponent({
|
|
30866
30866
|
inheritAttrs: false,
|
|
30867
30867
|
__name: "ScalarButton",
|
|
30868
30868
|
props: {
|
|
@@ -30872,34 +30872,34 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30872
30872
|
size: { default: "md" },
|
|
30873
30873
|
variant: { default: "solid" }
|
|
30874
30874
|
},
|
|
30875
|
-
setup(
|
|
30875
|
+
setup(t2) {
|
|
30876
30876
|
const a = computed(() => {
|
|
30877
|
-
const { class: e, ...
|
|
30878
|
-
return { className: e || "", rest:
|
|
30877
|
+
const { class: e, ...l } = useAttrs();
|
|
30878
|
+
return { className: e || "", rest: l };
|
|
30879
30879
|
});
|
|
30880
|
-
return (e,
|
|
30880
|
+
return (e, l) => (openBlock(), createElementBlock("button", mergeProps(a.value.rest, {
|
|
30881
30881
|
ariaDisabled: e.disabled || void 0,
|
|
30882
|
-
class: unref(
|
|
30883
|
-
unref(
|
|
30882
|
+
class: unref(y)(
|
|
30883
|
+
unref(ve)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
30884
30884
|
{ "pl-9 pr-3": e.loading },
|
|
30885
30885
|
`${a.value.className}`
|
|
30886
30886
|
),
|
|
30887
30887
|
type: "button"
|
|
30888
30888
|
}), [
|
|
30889
|
-
e.$slots.icon ? (openBlock(), createElementBlock("div",
|
|
30889
|
+
e.$slots.icon ? (openBlock(), createElementBlock("div", Se, [
|
|
30890
30890
|
renderSlot(e.$slots, "icon")
|
|
30891
30891
|
])) : createCommentVNode("", true),
|
|
30892
30892
|
renderSlot(e.$slots, "default"),
|
|
30893
|
-
e.loading ? (openBlock(), createElementBlock("div",
|
|
30894
|
-
createVNode(unref(
|
|
30893
|
+
e.loading ? (openBlock(), createElementBlock("div", we, [
|
|
30894
|
+
createVNode(unref(H), {
|
|
30895
30895
|
loadingState: e.loading,
|
|
30896
30896
|
size: "20px"
|
|
30897
30897
|
}, null, 8, ["loadingState"])
|
|
30898
30898
|
])) : createCommentVNode("", true)
|
|
30899
|
-
], 16,
|
|
30899
|
+
], 16, be));
|
|
30900
30900
|
}
|
|
30901
30901
|
});
|
|
30902
|
-
(function(
|
|
30902
|
+
(function(t2) {
|
|
30903
30903
|
var a = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
|
|
30904
30904
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
30905
30905
|
lookbehind: true,
|
|
@@ -30907,7 +30907,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30907
30907
|
// this looks reasonably well in all themes
|
|
30908
30908
|
inside: null
|
|
30909
30909
|
// see below
|
|
30910
|
-
},
|
|
30910
|
+
}, l = {
|
|
30911
30911
|
bash: e,
|
|
30912
30912
|
environment: {
|
|
30913
30913
|
pattern: RegExp("\\$" + a),
|
|
@@ -30961,7 +30961,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
30961
30961
|
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
30962
30962
|
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
30963
30963
|
};
|
|
30964
|
-
|
|
30964
|
+
t2.languages.bash = {
|
|
30965
30965
|
shebang: {
|
|
30966
30966
|
pattern: /^#!\s*\/.*/,
|
|
30967
30967
|
alias: "important"
|
|
@@ -31019,7 +31019,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
31019
31019
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
31020
31020
|
lookbehind: true,
|
|
31021
31021
|
greedy: true,
|
|
31022
|
-
inside:
|
|
31022
|
+
inside: l
|
|
31023
31023
|
},
|
|
31024
31024
|
// Here-document with quotes around the tag
|
|
31025
31025
|
// → No expansion (so no “inside”).
|
|
@@ -31037,7 +31037,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
31037
31037
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
31038
31038
|
lookbehind: true,
|
|
31039
31039
|
greedy: true,
|
|
31040
|
-
inside:
|
|
31040
|
+
inside: l
|
|
31041
31041
|
},
|
|
31042
31042
|
{
|
|
31043
31043
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -31050,7 +31050,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
31050
31050
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
31051
31051
|
greedy: true,
|
|
31052
31052
|
inside: {
|
|
31053
|
-
entity:
|
|
31053
|
+
entity: l.entity
|
|
31054
31054
|
}
|
|
31055
31055
|
}
|
|
31056
31056
|
],
|
|
@@ -31058,7 +31058,7 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
31058
31058
|
pattern: RegExp("\\$?" + a),
|
|
31059
31059
|
alias: "constant"
|
|
31060
31060
|
},
|
|
31061
|
-
variable:
|
|
31061
|
+
variable: l.variable,
|
|
31062
31062
|
function: {
|
|
31063
31063
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
31064
31064
|
lookbehind: true
|
|
@@ -31097,8 +31097,8 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
31097
31097
|
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
31098
31098
|
lookbehind: true
|
|
31099
31099
|
}
|
|
31100
|
-
}, e.inside =
|
|
31101
|
-
for (var
|
|
31100
|
+
}, e.inside = t2.languages.bash;
|
|
31101
|
+
for (var h = [
|
|
31102
31102
|
"comment",
|
|
31103
31103
|
"function-name",
|
|
31104
31104
|
"for-or-select",
|
|
@@ -31114,9 +31114,9 @@ const me = /* @__PURE__ */ defineComponent({
|
|
|
31114
31114
|
"operator",
|
|
31115
31115
|
"punctuation",
|
|
31116
31116
|
"number"
|
|
31117
|
-
],
|
|
31118
|
-
|
|
31119
|
-
|
|
31117
|
+
], g = l.variable[1].inside, r2 = 0; r2 < h.length; r2++)
|
|
31118
|
+
g[h[r2]] = t2.languages.bash[h[r2]];
|
|
31119
|
+
t2.languages.sh = t2.languages.bash, t2.languages.shell = t2.languages.bash;
|
|
31120
31120
|
})(Prism);
|
|
31121
31121
|
Prism.languages.json = {
|
|
31122
31122
|
property: {
|
|
@@ -31146,7 +31146,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31146
31146
|
(function() {
|
|
31147
31147
|
if (typeof Prism > "u" || typeof document > "u")
|
|
31148
31148
|
return;
|
|
31149
|
-
var
|
|
31149
|
+
var t2 = "line-numbers", a = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
|
|
31150
31150
|
/**
|
|
31151
31151
|
* Get node for provided line number
|
|
31152
31152
|
*
|
|
@@ -31154,14 +31154,14 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31154
31154
|
* @param {number} number line number
|
|
31155
31155
|
* @returns {Element|undefined}
|
|
31156
31156
|
*/
|
|
31157
|
-
getLine: function(
|
|
31158
|
-
if (!(
|
|
31159
|
-
var
|
|
31160
|
-
if (
|
|
31161
|
-
var
|
|
31162
|
-
c <
|
|
31163
|
-
var
|
|
31164
|
-
return
|
|
31157
|
+
getLine: function(r2, c) {
|
|
31158
|
+
if (!(r2.tagName !== "PRE" || !r2.classList.contains(t2))) {
|
|
31159
|
+
var o = r2.querySelector(".line-numbers-rows");
|
|
31160
|
+
if (o) {
|
|
31161
|
+
var d = parseInt(r2.getAttribute("data-start"), 10) || 1, p = d + (o.children.length - 1);
|
|
31162
|
+
c < d && (c = d), c > p && (c = p);
|
|
31163
|
+
var s = c - d;
|
|
31164
|
+
return o.children[s];
|
|
31165
31165
|
}
|
|
31166
31166
|
}
|
|
31167
31167
|
},
|
|
@@ -31173,8 +31173,8 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31173
31173
|
* @param {HTMLElement} element A `<pre>` element with line numbers.
|
|
31174
31174
|
* @returns {void}
|
|
31175
31175
|
*/
|
|
31176
|
-
resize: function(
|
|
31177
|
-
|
|
31176
|
+
resize: function(r2) {
|
|
31177
|
+
l([r2]);
|
|
31178
31178
|
},
|
|
31179
31179
|
/**
|
|
31180
31180
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -31188,72 +31188,72 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31188
31188
|
*/
|
|
31189
31189
|
assumeViewportIndependence: true
|
|
31190
31190
|
};
|
|
31191
|
-
function
|
|
31192
|
-
if (
|
|
31193
|
-
var
|
|
31191
|
+
function l(r2) {
|
|
31192
|
+
if (r2 = r2.filter(function(o) {
|
|
31193
|
+
var d = h(o), p = d["white-space"];
|
|
31194
31194
|
return p === "pre-wrap" || p === "pre-line";
|
|
31195
|
-
}),
|
|
31196
|
-
var c =
|
|
31197
|
-
var
|
|
31198
|
-
if (!(!
|
|
31199
|
-
var
|
|
31200
|
-
|
|
31201
|
-
var
|
|
31202
|
-
return
|
|
31203
|
-
element:
|
|
31204
|
-
lines:
|
|
31195
|
+
}), r2.length != 0) {
|
|
31196
|
+
var c = r2.map(function(o) {
|
|
31197
|
+
var d = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
|
|
31198
|
+
if (!(!d || !p)) {
|
|
31199
|
+
var s = o.querySelector(".line-numbers-sizer"), m = d.textContent.split(a);
|
|
31200
|
+
s || (s = document.createElement("span"), s.className = "line-numbers-sizer", d.appendChild(s)), s.innerHTML = "0", s.style.display = "block";
|
|
31201
|
+
var n = s.getBoundingClientRect().height;
|
|
31202
|
+
return s.innerHTML = "", {
|
|
31203
|
+
element: o,
|
|
31204
|
+
lines: m,
|
|
31205
31205
|
lineHeights: [],
|
|
31206
|
-
oneLinerHeight:
|
|
31207
|
-
sizer:
|
|
31206
|
+
oneLinerHeight: n,
|
|
31207
|
+
sizer: s
|
|
31208
31208
|
};
|
|
31209
31209
|
}
|
|
31210
31210
|
}).filter(Boolean);
|
|
31211
|
-
c.forEach(function(
|
|
31212
|
-
var
|
|
31213
|
-
|
|
31214
|
-
if (
|
|
31215
|
-
var
|
|
31216
|
-
|
|
31211
|
+
c.forEach(function(o) {
|
|
31212
|
+
var d = o.sizer, p = o.lines, s = o.lineHeights, m = o.oneLinerHeight;
|
|
31213
|
+
s[p.length - 1] = void 0, p.forEach(function(n, S2) {
|
|
31214
|
+
if (n && n.length > 1) {
|
|
31215
|
+
var E = d.appendChild(document.createElement("span"));
|
|
31216
|
+
E.style.display = "block", E.textContent = n;
|
|
31217
31217
|
} else
|
|
31218
|
-
|
|
31218
|
+
s[S2] = m;
|
|
31219
31219
|
});
|
|
31220
|
-
}), c.forEach(function(
|
|
31221
|
-
for (var
|
|
31222
|
-
p[
|
|
31223
|
-
}), c.forEach(function(
|
|
31224
|
-
var
|
|
31225
|
-
|
|
31226
|
-
p.children[
|
|
31220
|
+
}), c.forEach(function(o) {
|
|
31221
|
+
for (var d = o.sizer, p = o.lineHeights, s = 0, m = 0; m < p.length; m++)
|
|
31222
|
+
p[m] === void 0 && (p[m] = d.children[s++].getBoundingClientRect().height);
|
|
31223
|
+
}), c.forEach(function(o) {
|
|
31224
|
+
var d = o.sizer, p = o.element.querySelector(".line-numbers-rows");
|
|
31225
|
+
d.style.display = "none", d.innerHTML = "", o.lineHeights.forEach(function(s, m) {
|
|
31226
|
+
p.children[m].style.height = s + "px";
|
|
31227
31227
|
});
|
|
31228
31228
|
});
|
|
31229
31229
|
}
|
|
31230
31230
|
}
|
|
31231
|
-
function
|
|
31232
|
-
return
|
|
31231
|
+
function h(r2) {
|
|
31232
|
+
return r2 ? window.getComputedStyle ? getComputedStyle(r2) : r2.currentStyle || null : null;
|
|
31233
31233
|
}
|
|
31234
|
-
var
|
|
31234
|
+
var g = void 0;
|
|
31235
31235
|
window.addEventListener("resize", function() {
|
|
31236
|
-
e.assumeViewportIndependence &&
|
|
31237
|
-
}), Prism.hooks.add("complete", function(
|
|
31238
|
-
if (
|
|
31236
|
+
e.assumeViewportIndependence && g === window.innerWidth || (g = window.innerWidth, l(Array.prototype.slice.call(document.querySelectorAll("pre." + t2))));
|
|
31237
|
+
}), Prism.hooks.add("complete", function(r2) {
|
|
31238
|
+
if (r2.code) {
|
|
31239
31239
|
var c = (
|
|
31240
31240
|
/** @type {Element} */
|
|
31241
|
-
|
|
31242
|
-
),
|
|
31241
|
+
r2.element
|
|
31242
|
+
), o = (
|
|
31243
31243
|
/** @type {HTMLElement} */
|
|
31244
31244
|
c.parentNode
|
|
31245
31245
|
);
|
|
31246
|
-
if (!(!
|
|
31247
|
-
c.classList.remove(
|
|
31248
|
-
var
|
|
31249
|
-
|
|
31246
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !c.querySelector(".line-numbers-rows") && Prism.util.isActive(c, t2)) {
|
|
31247
|
+
c.classList.remove(t2), o.classList.add(t2);
|
|
31248
|
+
var d = r2.code.match(a), p = d ? d.length + 1 : 1, s, m = new Array(p + 1).join("<span></span>");
|
|
31249
|
+
s = document.createElement("span"), s.setAttribute("aria-hidden", "true"), s.className = "line-numbers-rows", s.innerHTML = m, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), r2.element.appendChild(s), l([o]), Prism.hooks.run("line-numbers", r2);
|
|
31250
31250
|
}
|
|
31251
31251
|
}
|
|
31252
|
-
}), Prism.hooks.add("line-numbers", function(
|
|
31253
|
-
|
|
31252
|
+
}), Prism.hooks.add("line-numbers", function(r2) {
|
|
31253
|
+
r2.plugins = r2.plugins || {}, r2.plugins.lineNumbers = true;
|
|
31254
31254
|
});
|
|
31255
31255
|
})();
|
|
31256
|
-
const
|
|
31256
|
+
const ke = ["innerHTML"], oa = /* @__PURE__ */ defineComponent({
|
|
31257
31257
|
__name: "ScalarCodeBlock",
|
|
31258
31258
|
props: {
|
|
31259
31259
|
content: {},
|
|
@@ -31261,84 +31261,84 @@ const we = ["innerHTML"], Ue = /* @__PURE__ */ defineComponent({
|
|
|
31261
31261
|
lineNumbers: { type: Boolean, default: false },
|
|
31262
31262
|
hideCredentials: {}
|
|
31263
31263
|
},
|
|
31264
|
-
setup(
|
|
31265
|
-
const a =
|
|
31264
|
+
setup(t2) {
|
|
31265
|
+
const a = t2, e = createHash(
|
|
31266
31266
|
typeof a.content == "object" ? JSON.stringify(a.content) : a.content
|
|
31267
|
-
),
|
|
31268
|
-
a.hideCredentials &&
|
|
31267
|
+
), l = `components-scalar-code-block${e}`, { plugins: h, highlightElement: g } = x;
|
|
31268
|
+
a.hideCredentials && x.hooks.add("wrap", function(s) {
|
|
31269
31269
|
if (!a.hideCredentials)
|
|
31270
31270
|
return;
|
|
31271
|
-
let
|
|
31272
|
-
typeof a.hideCredentials == "string" ?
|
|
31273
|
-
(
|
|
31274
|
-
)),
|
|
31271
|
+
let m = false;
|
|
31272
|
+
typeof a.hideCredentials == "string" ? s.content.includes(a.hideCredentials) && (m = true) : Array.isArray(a.hideCredentials) && (m = a.hideCredentials.some(
|
|
31273
|
+
(n) => s.content.includes(n)
|
|
31274
|
+
)), m && (s.content = s.content.replace(
|
|
31275
31275
|
/<span class="credentials">.*?<\/span>/g,
|
|
31276
|
-
(
|
|
31277
|
-
),
|
|
31276
|
+
(n) => n.replace(/<span class="credentials">|<\/span>/g, "")
|
|
31277
|
+
), s.content = s.content.replace(
|
|
31278
31278
|
new RegExp(
|
|
31279
31279
|
typeof a.hideCredentials == "string" ? a.hideCredentials : a.hideCredentials.join("|"),
|
|
31280
31280
|
"g"
|
|
31281
31281
|
),
|
|
31282
|
-
(
|
|
31282
|
+
(n) => `<span class="credentials">${n}</span>`
|
|
31283
31283
|
));
|
|
31284
31284
|
});
|
|
31285
|
-
const
|
|
31285
|
+
const r2 = ref(null), c = ref(ssrState[l] ?? ""), o = computed(() => a.lang === "node" ? "js" : a.lang), d = a.lang;
|
|
31286
31286
|
watch(
|
|
31287
|
-
[() => a.lang, () => a.content,
|
|
31287
|
+
[() => a.lang, () => a.content, r2],
|
|
31288
31288
|
() => {
|
|
31289
|
-
|
|
31289
|
+
r2.value && a.content && (!c.value || a.lang !== d) && (c.value = "", nextTick(() => g(r2.value)));
|
|
31290
31290
|
},
|
|
31291
31291
|
{ immediate: true }
|
|
31292
31292
|
);
|
|
31293
31293
|
const p = /\n(?!$)/g;
|
|
31294
31294
|
return onServerPrefetch(async () => {
|
|
31295
|
-
let
|
|
31296
|
-
a.lineNumbers &&
|
|
31297
|
-
const
|
|
31298
|
-
|
|
31295
|
+
let s = "";
|
|
31296
|
+
a.lineNumbers && x.hooks.add("after-tokenize", (n) => {
|
|
31297
|
+
const S2 = n.code.match(p), E = S2 ? S2.length + 1 : 1;
|
|
31298
|
+
s = `<span aria-hidden="true" class="line-numbers-rows">${new Array(E + 1).join("<span></span>")}</span>`;
|
|
31299
31299
|
});
|
|
31300
|
-
const
|
|
31300
|
+
const m = x.highlight(
|
|
31301
31301
|
typeof a.content == "object" ? JSON.stringify(a.content) : a.content,
|
|
31302
|
-
|
|
31303
|
-
|
|
31302
|
+
x.languages[o.value],
|
|
31303
|
+
o.value
|
|
31304
31304
|
);
|
|
31305
|
-
if (c.value =
|
|
31306
|
-
const
|
|
31307
|
-
|
|
31305
|
+
if (c.value = m + s, e !== 0) {
|
|
31306
|
+
const n = useSSRContext();
|
|
31307
|
+
n.payload.data[l] = m + s;
|
|
31308
31308
|
}
|
|
31309
31309
|
}), onMounted(async () => {
|
|
31310
|
-
await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"),
|
|
31311
|
-
}), (
|
|
31310
|
+
await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), h.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
31311
|
+
}), (s, m) => (openBlock(), createElementBlock("pre", {
|
|
31312
31312
|
class: normalizeClass([
|
|
31313
|
-
`scalar-component scalar-codeblock-pre language-${
|
|
31313
|
+
`scalar-component scalar-codeblock-pre language-${o.value}`,
|
|
31314
31314
|
{
|
|
31315
|
-
"line-numbers":
|
|
31315
|
+
"line-numbers": s.lineNumbers
|
|
31316
31316
|
}
|
|
31317
31317
|
])
|
|
31318
31318
|
}, [
|
|
31319
31319
|
c.value ? (openBlock(), createElementBlock("code", {
|
|
31320
31320
|
key: 0,
|
|
31321
|
-
class: normalizeClass(`scalar-codeblock-code language-${
|
|
31321
|
+
class: normalizeClass(`scalar-codeblock-code language-${o.value}`),
|
|
31322
31322
|
innerHTML: c.value
|
|
31323
|
-
}, null, 10,
|
|
31323
|
+
}, null, 10, ke)) : (openBlock(), createElementBlock("code", {
|
|
31324
31324
|
key: 1,
|
|
31325
31325
|
ref_key: "el",
|
|
31326
|
-
ref:
|
|
31327
|
-
class: normalizeClass(`scalar-codeblock-code language-${
|
|
31328
|
-
}, toDisplayString(
|
|
31326
|
+
ref: r2,
|
|
31327
|
+
class: normalizeClass(`scalar-codeblock-code language-${o.value}`)
|
|
31328
|
+
}, toDisplayString(s.content), 3))
|
|
31329
31329
|
], 2));
|
|
31330
31330
|
}
|
|
31331
|
-
}),
|
|
31332
|
-
const a = `./${
|
|
31333
|
-
return
|
|
31334
|
-
},
|
|
31331
|
+
}), B = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v-3DrL2GXw.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U-BE06BAQA.js"), "./ChevronDown.svg": () => import("./ChevronDown-BfsntkAH-BOGiF9uG.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-gsLd5xOQ-Z0Ct_Vv2.js"), "./ChevronRight.svg": () => import("./ChevronRight-CI_7n_av-BCFTpQ51.js"), "./ChevronUp.svg": () => import("./ChevronUp-CjHRmG59-B93Q9llD.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-DFM1qMQH-DMPtwWpT.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cf9f6-KB-BSC0O0uL.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./DocsPage.svg": () => import("./DocsPage-Do-Ol9Hb-BNFtxcCC.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas-MT2ACYLZ.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./JsonObject.svg": () => import("./JsonObject-BvFDNssB-D5YzqgGw.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-DFi9Laso-BhIZrQxp.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-C8nXK33Q-cFi1tcoL.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-BXUhHSEc-GDsvyOvS.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-CSqjaNKG-DLqk_P-k.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-Dr-W1IfM-CJpftEXD.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd-DCnCiMpp.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN-CFh-lXGZ.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR-C5So-BEm.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble-BlrsZtgs.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg-9BAblfAs.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O-EDM5uqD-.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h-W6lKje7S.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), G = (t2) => {
|
|
31332
|
+
const a = `./${t2}.svg`;
|
|
31333
|
+
return B[a] ? defineAsyncComponent(B[a]) : (console.warn(`Could not find icon: ${t2}`), null);
|
|
31334
|
+
}, _e = ["src"], M = /* @__PURE__ */ defineComponent({
|
|
31335
31335
|
__name: "ScalarIcon",
|
|
31336
31336
|
props: {
|
|
31337
31337
|
icon: {},
|
|
31338
31338
|
size: {}
|
|
31339
31339
|
},
|
|
31340
|
-
setup(
|
|
31341
|
-
const a =
|
|
31340
|
+
setup(t2) {
|
|
31341
|
+
const a = t2, e = $({
|
|
31342
31342
|
variants: {
|
|
31343
31343
|
size: {
|
|
31344
31344
|
xs: "h-3 w-3",
|
|
@@ -31352,14 +31352,14 @@ const we = ["innerHTML"], Ue = /* @__PURE__ */ defineComponent({
|
|
|
31352
31352
|
defaultVariants: {
|
|
31353
31353
|
size: "full"
|
|
31354
31354
|
}
|
|
31355
|
-
}),
|
|
31356
|
-
return (
|
|
31355
|
+
}), l = G(a.icon);
|
|
31356
|
+
return (h, g) => unref(l) ? (openBlock(), createBlock(resolveDynamicComponent(unref(G)(h.icon)), {
|
|
31357
31357
|
key: 0,
|
|
31358
|
-
class: normalizeClass(unref(
|
|
31358
|
+
class: normalizeClass(unref(y)("scalar-icon", unref(e)({ size: h.size })))
|
|
31359
31359
|
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
31360
31360
|
key: 1,
|
|
31361
|
-
src:
|
|
31362
|
-
}, null, 8,
|
|
31361
|
+
src: h.icon
|
|
31362
|
+
}, null, 8, _e));
|
|
31363
31363
|
}
|
|
31364
31364
|
});
|
|
31365
31365
|
const _sfc_main$q = {};
|
|
@@ -31412,7 +31412,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31412
31412
|
createVNode(unref(ListboxButton), { as: CardFormButton }, {
|
|
31413
31413
|
default: withCtx(() => [
|
|
31414
31414
|
createElementVNode("div", _hoisted_1$m, [
|
|
31415
|
-
createVNode(unref(
|
|
31415
|
+
createVNode(unref(M), {
|
|
31416
31416
|
icon: open ? "ChevronUp" : "ChevronDown",
|
|
31417
31417
|
size: "sm"
|
|
31418
31418
|
}, null, 8, ["icon"]),
|
|
@@ -31776,7 +31776,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31776
31776
|
(_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
|
|
31777
31777
|
unref(authentication2).preferredSecurityScheme
|
|
31778
31778
|
) : "None"), 1),
|
|
31779
|
-
createVNode(unref(
|
|
31779
|
+
createVNode(unref(M), { icon: "ChevronDown" }),
|
|
31780
31780
|
createElementVNode("select", {
|
|
31781
31781
|
value: unref(authentication2).preferredSecurityScheme,
|
|
31782
31782
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -31945,7 +31945,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31945
31945
|
_hoisted_3$7
|
|
31946
31946
|
]),
|
|
31947
31947
|
meta: withCtx(() => [
|
|
31948
|
-
createVNode(unref(
|
|
31948
|
+
createVNode(unref(ye), {
|
|
31949
31949
|
class: "table-description-toggle",
|
|
31950
31950
|
variant: "text",
|
|
31951
31951
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:showDescription", !_ctx.showDescription))
|
|
@@ -32176,7 +32176,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32176
32176
|
onClick: addHandler
|
|
32177
32177
|
}, [
|
|
32178
32178
|
createElementVNode("i", _hoisted_3$4, [
|
|
32179
|
-
createVNode(unref(
|
|
32179
|
+
createVNode(unref(M), { icon: "Add" })
|
|
32180
32180
|
]),
|
|
32181
32181
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
32182
32182
|
])) : createCommentVNode("", true),
|
|
@@ -32188,7 +32188,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32188
32188
|
}, [
|
|
32189
32189
|
createTextVNode(" Show More "),
|
|
32190
32190
|
createElementVNode("i", _hoisted_4$3, [
|
|
32191
|
-
createVNode(unref(
|
|
32191
|
+
createVNode(unref(M), { icon: "ChevronDown" })
|
|
32192
32192
|
])
|
|
32193
32193
|
])) : createCommentVNode("", true)
|
|
32194
32194
|
])
|
|
@@ -32674,7 +32674,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32674
32674
|
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
|
|
32675
32675
|
default: withCtx(() => [
|
|
32676
32676
|
_ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32677
|
-
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(
|
|
32677
|
+
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(oa), {
|
|
32678
32678
|
key: 0,
|
|
32679
32679
|
class: "custom-scroll",
|
|
32680
32680
|
content: _ctx.data,
|