@scalar/api-client 0.3.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,28 +3,16 @@
3
3
  try {
4
4
  if (typeof document != "undefined") {
5
5
  var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode(".cm-scroller,\n.custom-scroll {\n overflow-y: scroll;\n scrollbar-color: transparent transparent;\n scrollbar-width: thin;\n -webkit-overflow-scrolling: touch;\n}\n.custom-scroll-self-contain-overflow {\n overscroll-behavior: contain;\n}\n.custom-scroll-extra-padding-right {\n padding-right: 12px !important;\n}\n@supports (-moz-appearance: none) {\n .cm-scroller,\n .custom-scroll {\n padding-right: 12px;\n }\n .custom-scroll-extra-padding-right {\n padding-right: 24px !important;\n }\n}\n.cm-scroller:hover,\n.custom-scroll:hover {\n scrollbar-color: var(--theme-scrollbar-color) transparent;\n}\n.cm-scroller:hover::-webkit-scrollbar-thumb,\n.custom-scroll:hover::-webkit-scrollbar-thumb {\n background: var(--theme-scrollbar-color);\n background-clip: content-box;\n border: 3px solid transparent;\n}\n.cm-scroller::-webkit-scrollbar-thumb:active,\n.custom-scroll::-webkit-scrollbar-thumb:active {\n background: var(--theme-scrollbar-color-active);\n background-clip: content-box;\n border: 3px solid transparent;\n}\n.cm-scroller::-webkit-scrollbar-corner,\n.custom-scroll::-webkit-scrollbar-corner {\n background: transparent;\n}\n.cm-scroller::-webkit-scrollbar,\n.custom-scroll::-webkit-scrollbar {\n height: 12px;\n width: 12px;\n}\n.cm-scroller::-webkit-scrollbar-track,\n.custom-scroll::-webkit-scrollbar-track {\n background: transparent;\n}\n.cm-scroller::-webkit-scrollbar-thumb,\n.custom-scroll::-webkit-scrollbar-thumb {\n border-radius: 20px;\n background: transparent;\n background-clip: content-box;\n border: 3px solid transparent;\n}\n@media (pointer: coarse) {\n .cm-scroller,\n .custom-scroll {\n padding-right: 12px;\n }\n .custom-scroll-extra-padding-right {\n padding-right: 24px !important;\n }\n}\n:root {\n --app-header-height: 50px;\n --theme-border-width: 1px;\n --theme-radius: 3px;\n --theme-radius-lg: 6px;\n --theme-radius-xl: 8px;\n\n --theme-header-height: 50px;\n --theme-sidebar-width: 250px;\n --theme-toc-width: 250px;\n\n /* TYPOGRAPHY ------------------------------------ */\n --theme-font: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n --theme-font-code: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono',\n 'Droid Sans Mono', 'Source Code Pro', monospace;\n\n /** Font sizes for rendered text content (editor styles or static content) */\n --theme-heading-1: 40px; /* Editor Page heading */\n --theme-page-description: 24px;\n --theme-heading-2: 24px; /* Editor section headings */\n --theme-heading-3: 20px;\n --theme-heading-4: 16px;\n --theme-heading-5: 16px;\n --theme-heading-6: 16px;\n\n --theme-paragraph: 16px;\n --theme-small: 14px;\n --theme-mini: 13px;\n --theme-micro: 12px;\n --theme-bold: 600;\n --theme-semibold: 500;\n --theme-regular: 400;\n\n /* Font sizes for interactive applications (not rendered text content) */\n --theme-font-size-1: 24px;\n --theme-font-size-2: 16px;\n --theme-font-size-3: 14px;\n --theme-font-size-4: 13px;\n --theme-font-size-5: 12px;\n\n --theme-line-height-1: 32px;\n --theme-line-height-2: 24px;\n --theme-line-height-3: 20px;\n --theme-line-height-4: 18px;\n --theme-line-height-5: 16px;\n\n --theme-font-medium: 500;\n --theme-font-bold: 700;\n\n /* let's clean these up please :) */\n --scalar-api-reference-theme-header-height: 0;\n --scalar-api-reference-theme-sidebar-width: 250px;\n --scalar-api-reference-theme-toc-width: 250px;\n --scalar-api-reference-app-header-height: 100px;\n --scalar-api-reference-col-width-1: 250px;\n --scalar-api-reference-col-width-2: calc(50% - 150px);\n --scalar-api-reference-col-width-3: calc(50% - 150px);\n --scalar-api-reference-document-height: 100vh;\n --scalar-api-reference-full-height: 100%;\n}\n\n@media (max-width: 460px) {\n :root {\n --theme-font-size-1: 22px;\n --theme-font-size-2: 14px;\n --theme-font-size-3: 12px;\n }\n}\n\n@media (max-width: 720px) {\n :root {\n --theme-heading-1: 24px;\n --theme-page-description: 20px;\n }\n}\n.light-mode {\n color-scheme: light;\n --theme-color-1: #2a2f45;\n --theme-color-2: #757575;\n --theme-color-3: #8e8e8e;\n --theme-color-disabled: #b4b1b1;\n --theme-color-ghost: #a7a7a7;\n --theme-color-accent: #0099ff;\n --theme-background-1: #fff;\n --theme-background-2: #f6f6f6;\n --theme-background-3: #e7e7e7;\n --theme-background-4: rgba(0, 0, 0, 0.06);\n --theme-background-accent: #8ab4f81f;\n\n --theme-border-color: rgba(0, 0, 0, 0.1);\n --theme-scrollbar-color: rgba(0, 0, 0, 0.18);\n --theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --theme-lifted-brightness: 1;\n --theme-backdrop-brightness: 1;\n\n --theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --theme-button-1: rgb(49 53 56);\n --theme-button-1-color: #fff;\n --theme-button-1-hover: rgb(28 31 33);\n\n --theme-error-color: #ae262f;\n --theme-warning-color: #d89c6a;\n --theme-success-color: #26ae42;\n\n /* REST API Client Colors */\n --theme-post-color: #00a67d;\n --theme-post-background: #00a67d1a;\n --theme-delete-color: #ef0006;\n --theme-delete-background: #ef00061a;\n --theme-patch-color: #b2b062;\n --theme-patch-background: #ffe6001a;\n --theme-get-color: #0082d0;\n --theme-get-background: #0082d01a;\n --theme-put-color: #f3830e;\n --theme-put-background: #f3830e1a;\n\n /* Misc Scalar Branding */\n --scalar-brand: #faf6e9;\n}\n.dark-mode {\n color-scheme: dark;\n --theme-color-1: rgba(255, 255, 255, 0.9);\n --theme-color-2: rgba(255, 255, 255, 0.62);\n --theme-color-3: rgba(255, 255, 255, 0.44);\n --theme-color-disabled: rgba(255, 255, 255, 0.34);\n --theme-color-ghost: rgba(255, 255, 255, 0.26);\n --theme-color-accent: #8ab4f8;\n --theme-background-1: #1a1a1a;\n --theme-background-2: #252525;\n --theme-background-3: #323232;\n --theme-background-4: rgba(255, 255, 255, 0.06);\n --theme-background-accent: #8ab4f81f;\n\n --theme-border-color: rgba(255, 255, 255, 0.1);\n --theme-scrollbar-color: rgba(255, 255, 255, 0.24);\n --theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --theme-lifted-brightness: 1.45;\n --theme-backdrop-brightness: 0.5;\n\n --theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --theme-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 --theme-button-1: #f6f6f6;\n --theme-button-1-color: #000;\n --theme-button-1-hover: #e7e7e7;\n\n --theme-error-color: #ff0011;\n --theme-success-color: #26ae42;\n\n /* REST API Client Colors */\n --theme-post-color: #7ee787;\n --theme-post-background: #7ee78714;\n --theme-delete-color: #e77e7e;\n --theme-delete-background: #e77e7e24;\n --theme-patch-color: #b2b062;\n --theme-patch-background: #b2b06229;\n --theme-get-color: #79c0ff;\n --theme-get-background: #79c0ff21;\n --theme-put-color: #e9950c;\n --theme-put-background: #e9950c21;\n\n /* Misc Scalar Branding */\n --scalar-brand: #8b7256;\n}\n\n/** Basics */\n.scalar-api-client__codemirror__wrapper {\n width: 100%;\n display: flex;\n align-items: stretch;\n}\n.scalar-api-client__codemirror {\n flex-grow: 1;\n max-width: 100%;\n}\n.scalar-api-client__codemirror.ͼw {\n background-color: var(--theme-background-1);\n}\n.scalar-api-client__codemirror--read-only.ͼw {\n background-color: var(--theme-background-2);\n}\n\n/** URL input */\n.scalar-api-client__url-input {\n font-weight: var(--theme-semibold);\n}\n.scalar-api-client__url-input .cm-scroller {\n padding-left: 6px;\n}\n.scalar-api-client__url-input .ͼ1 .cm-scroller {\n align-items: center !important;\n}\n.scalar-api-client__variable {\n color: var(--scalar-api-client-color);\n}\n\n.modal-layout[data-v-3f4ab567] {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 1001;\n background: rgba(0, 0, 0, 0.44);\n padding: 20px;\n opacity: 0;\n animation: modal-fade-3f4ab567 0.2s forwards;\n}\n.modal-body[data-v-3f4ab567] {\n padding: 24px 12px 18px 24px;\n max-height: calc(100vh - 240px);\n background: var(--theme-background-1);\n border-radius: var(--theme-radius-lg);\n font-family: var(--theme-font);\n}\n.modal[data-v-3f4ab567] {\n margin: 80px auto 0;\n position: relative;\n background: var(--theme-background-2);\n border-radius: var(--theme-radius-lg);\n color: var(--theme-color-1);\n width: 100%;\n text-align: left;\n line-height: 1.4;\n opacity: 0;\n transform: scale(0.98);\n animation: modal-pop-3f4ab567 0.15s 0.15s forwards;\n display: flex;\n flex-direction: column;\n}\n.modal-content-large[data-v-3f4ab567] {\n max-width: 800px;\n}\n.modal-content-normal[data-v-3f4ab567] {\n max-width: 640px;\n}\n.modal-content-small[data-v-3f4ab567] {\n max-width: 480px;\n}\n@keyframes modal-fade-3f4ab567 {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n@keyframes modal-pop-3f4ab567 {\n0% {\n opacity: 0;\n}\n100% {\n opacity: 1;\n transform: scale(1);\n}\n}\n.modal-header[data-v-3f4ab567] {\n padding: 12px 24px;\n color: var(--theme-color-1);\n font-size: var(--theme-font-size-4);\n text-align: left;\n font-weight: 600;\n border-radius: var(--theme-radius-lg) var(--theme-radius-lg) 0 0;\n}\n\n.navtable-mock {\n background-repeat: repeat;\n width: 100%;\n background-image: linear-gradient(\n 0deg,\n var(--theme-border-color) 1px,\n --theme-background-1 1px\n );\n background-size: 31px 31px;\n background-position: center 1px;\n flex: 1;\n position: relative;\n}\n.navtable-mock .navtable-item {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n background: transparent;\n border-top: none;\n}\n.radio {\n height: 16px;\n width: 16px;\n background: transparent;\n border: var(--border);\n flex-shrink: 0;\n margin-right: 6px;\n margin-left: 4px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n outline: none;\n}\n.radio:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n.navtable-item__active .radio:after {\n content: '';\n width: 5px;\n height: 8px;\n border: solid white;\n border-width: 0 1.5px 1.5px 0;\n transform: rotate(45deg) translate3d(-0.5px, -1px, 0);\n}\n.radio.post {\n background: var(--theme-post-color);\n}\n.radio.delete {\n background: var(--theme-delete-color);\n}\n.radio.patch {\n background: var(--theme-patch-color);\n}\n.radio.get {\n background: var(--theme-get-color);\n}\n.radio.put {\n background: var(--theme-put-color);\n}\n\n.scalar-api-client__address-bar {\n width: 100%;\n padding: 12px 12px 10px 12px;\n display: flex;\n align-items: center;\n position: relative;\n background: var(--theme-background-1);\n}\n.scalar-api-client__url-form {\n display: flex;\n width: 100%;\n align-items: stretch;\n border-radius: var(--theme-radius-lg);\n}\n.scalar-api-client__field {\n border: 1px solid var(--theme-border-color);\n border-right: 0;\n border-radius: var(--theme-radius-lg) 0 0 var(--theme-radius-lg);\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n.scalar-api-client__address-bar-data {\n width: 100%;\n}\n.scalar-api-client__address-bar-data-meta {\n display: flex;\n margin-top: 5px;\n}\n.scalar-api-client__request-type {\n display: flex;\n align-items: center;\n background: var(--theme-background-2);\n color: var(--theme-color-disabled);\n appearance: none;\n -webkit-appearance: none;\n padding: 0 12px;\n border-right: 1px solid var(--theme-border-color);\n border-radius: var(--theme-radius-lg) 0 0 var(--theme-radius-lg);\n position: relative;\n}\n.scalar-api-client__request-type span {\n font-family: var(--theme-font-code);\n font-size: 500;\n font-size: 12px;\n text-transform: uppercase;\n}\n.scalar-api-client__request-type svg {\n margin-left: 6px;\n width: 8px;\n}\n.scalar-api-client__request-type i {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin-right: 6px;\n text-align: center;\n line-height: 18px;\n font-style: normal;\n flex-shrink: 0;\n display: inline-block;\n color: var(--theme-color-disabled);\n background: var(--scalar-api-client-color);\n}\n.meta-request-break {\n margin: 0 5px;\n}\n.scalar-api-client__history {\n appearance: none;\n -webkit-appearance: none;\n background: transparent;\n color: var(--theme-color-2);\n display: flex;\n align-items: center;\n border-radius: var(--theme-radius-lg);\n height: 100%;\n}\n.scalar-api-client__send-request-button[type='submit'] {\n font-size: var(--theme-mini);\n letter-spacing: 0.25px;\n line-height: 30px;\n font-weight: var(--theme-semibold);\n color: white;\n border: none;\n white-space: nowrap;\n padding: 0 10px;\n text-transform: uppercase;\n cursor: pointer;\n outline: none;\n border-radius: 0 var(--theme-radius-lg) var(--theme-radius-lg) 0;\n background: var(--scalar-api-client-color);\n /** #087f5b */\n display: flex;\n align-items: center;\n}\n.scalar-api-client__send-request-button svg {\n width: 12px;\n height: 12px;\n margin-right: 6px;\n}\n.scalar-api-client__send-request-button--loading {\n font-size: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 127px;\n}\n.scalar-api-client__send-request-button--loading svg {\n display: none;\n}\n.scalar-api-client__send-request-button--loading:before {\n content: '';\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-top: 1px solid white;\n animation: urlloader 0.45s linear infinite;\n background: transparent;\n width: 14px;\n height: 14px;\n margin-left: 0;\n margin-right: 9px;\n border-radius: 50%;\n}\n.scalar-api-client__send-request-button--loading:after {\n content: 'Loading';\n font-size: 12px;\n}\n@keyframes urlloader {\n0% {\n transform: rotate(0deg);\n}\nto {\n transform: rotate(1turn);\n}\n}\n.scalar-api-client__history-toggle {\n padding: 0 9px;\n line-height: 30px;\n color: var(--theme-color-disabled);\n font-size: var(--theme-mini);\n letter-spacing: 0.125px;\n font-weight: var(--theme-semibold);\n text-transform: uppercase;\n height: 100%;\n display: flex;\n align-items: center;\n cursor: pointer;\n white-space: nowrap;\n border: 1px solid var(--theme-border-color);\n margin-left: 12px;\n border-radius: var(--theme-radius-lg);\n}\n.scalar-api-client__history-toggle:hover {\n background: var(--theme-background-2);\n}\n.scalar-api-client__history-toggle svg {\n height: 13px;\n width: 13px;\n margin-right: 6px;\n color: var(--theme-color-disabled);\n}\n.scalar-api-client__address-bar-close {\n fill: var(--theme-color-disabled);\n margin-left: 12px;\n height: 24px;\n}\n.scalar-api-client__address-bar-close:hover {\n cursor: pointer;\n fill: var(--theme-color-1);\n}\n.scalar-api-client__address-bar__content {\n width: 640px;\n height: 100%;\n background: var(--theme-background-1);\n position: fixed;\n top: 0;\n right: 0;\n z-index: 1000;\n transform: translate3d(640px, 0, 0);\n opacity: 0;\n transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),\n opacity 0.01s ease-in-out 0.5s;\n pointer-events: none;\n}\n.scalar-api-client__address-bar-content-item {\n height: 100vh;\n max-height: 100vh;\n overflow: auto;\n}\n.scalar-api-client__address-bar__on {\n z-index: 100000;\n}\n.scalar-api-client__address-bar__on .scalar-api-client__address-bar__content {\n transform: translate3d(0, 0, 0);\n opacity: 1;\n pointer-events: all;\n transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);\n}\n.scalar-api-client__address-bar__on .scalar-api-client__address-bar__close {\n opacity: 1;\n pointer-events: all;\n cursor: pointer;\n}\n.scalar-api-client__address-bar .navtable-item__active {\n background: var(--theme-background-2);\n cursor: default;\n}\n.scalar-api-client__address-bar .navtable-item__active .radio:before {\n display: none;\n}\n.navigation-back {\n stroke: var(--theme-color-2);\n cursor: pointer;\n}\n.navigation-back:hover {\n stroke: var(--theme-color-1);\n}\n.scalar-api-client__address-bar__close {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n /* background: rgba(0,0,0,.55);\n */\n pointer-events: none;\n opacity: 0;\n transition: all 0.1s ease-in-out;\n z-index: 1000;\n}\n.navtable-item-request span {\n padding: 8px 9px 8px 0;\n border: none;\n outline: none;\n font-size: 12px;\n color: var(--theme-color-1);\n width: 100%;\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.navtable-item-request span em {\n text-transform: uppercase;\n font-style: normal;\n font-family: var(--theme-font-code);\n font-size: 11px;\n margin-right: 6px;\n font-weight: var(--theme-bold);\n color: var(--theme-color-disabled);\n}\n.navtable-item-time {\n font-size: 12px;\n color: var(--theme-color-1);\n text-transform: capitalize;\n padding: 0 9px;\n}\n@media screen and (max-width: 720px) {\n.scalar-api-client__history-toggle span,\n .scalar-api-client__send-request-button span {\n display: none;\n}\n.scalar-api-client__history-toggle svg,\n .scalar-api-client__send-request-button svg {\n margin-right: 0;\n}\n.scalar-api-client__history-toggle,\n .scalar-api-client__send-request-button {\n height: 31.5px;\n width: 31.5px;\n}\n}\n\n.scalar-api-client__item {\n border-radius: var(--theme-radius-lg);\n margin-bottom: 6px;\n background: var(--theme-background-2);\n box-shadow: var(--shadow1);\n position: relative;\n}\n.scalar-api-client__item button {\n background-color: transparent;\n text-align: left;\n}\n.scalar-api-client__item:hover {\n cursor: pointer;\n}\n.scalar-api-client__item--open {\n background: var(--theme-background-2);\n}\n.scalar-api-client__item--open:focus-within {\n box-shadow: var(--shadow1);\n}\n.scalar-api-client__item--open .scalar-api-client__item__content {\n display: flex;\n}\n.scalar-api-client__item--open:hover {\n cursor: default;\n}\n.scalar-api-client__item--open .scalar-api-client__toggle__icon {\n transform: rotate(90deg);\n}\n.scalar-api-client__toggle {\n padding: 6px 12px;\n min-height: 37px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n position: relative;\n width: 100%;\n}\n.scalar-api-client__item .scalar-api-client__item__title {\n color: var(--theme-color-1);\n font-size: var(--theme-small);\n font-weight: var(--theme-bold);\n user-select: none;\n flex: 1;\n}\n.scalar-api-client__item .scalar-api-client__item__title:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: block;\n}\n.scalar-api-client__item .scalar-api-client__toggle__icon {\n width: 10px;\n margin-right: 6px;\n color: var(--theme-color-1);\n}\n.scalar-api-client__item__options {\n position: relative;\n}\n.scalar-api-client__item__options span {\n background: var(--theme-background-3);\n padding: 2px 6px;\n border-radius: 3px;\n font-size: 12px;\n pointer-events: none;\n color: var(--theme-color-2);\n border: 1px solid var(--theme-border-color);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.scalar-api-client__item__options span svg {\n width: 9px;\n height: 9px;\n margin-left: 3px;\n}\n.scalar-api-client__item__options select {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n}\n\n.table {\n border: 1px solid var(--theme-border-color);\n background: transparent;\n border-radius: var(--theme-radius-lg);\n width: 100%;\n}\n.table-row {\n border-bottom: 1px solid var(--theme-border-color);\n display: flex;\n position: relative;\n}\n.table-row__add {\n border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);\n border-bottom: none;\n}\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n content: 'Required';\n position: absolute;\n top: 4px;\n right: 0;\n padding: 5px 9px 5px 6px;\n font-weight: var(--theme-semibold);\n font-size: 12px;\n background: var(--theme-background-2);\n box-shadow: -2px 0 4px var(--theme-background-2);\n}\n.table-row.required-parameter\n .table-row-item:nth-of-type(2):focus-within:after {\n display: none;\n}\n.table-row:last-of-type {\n border-bottom: none;\n}\n.table-row__active {\n border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);\n}\n.table-row-drag {\n width: 20px;\n flex-shrink: 0;\n border-right: 1px solid var(--theme-border-color);\n align-items: center;\n justify-content: center;\n display: none;\n}\n.table-row-drag svg {\n width: 6px;\n fill: var(--theme-color-disabled);\n}\n.table-row-drag .table-row-drag-add {\n width: 8px;\n}\n.table-row-item {\n width: 100%;\n border-right: 1px solid var(--theme-border-color);\n position: relative;\n}\n.table-row-item-menu {\n position: absolute;\n right: 12px;\n background: var(--theme-background-3);\n border: 1px solid var(--theme-border-color);\n width: 24px;\n height: 24px;\n top: 50%;\n transform: translate3d(0, -50%, 0);\n border-radius: var(--theme-radius-lg);\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n cursor: pointer;\n}\n.table-row-item input:focus + .table-row-item-menu,\n.table-row-item:hover .table-row-item-menu {\n opacity: 1;\n}\n.table-row-item-menu svg {\n height: 12px;\n width: initial;\n fill: var(--theme-color-disabled);\n}\n.table-row-item input {\n border: none;\n appearance: none;\n outline: none;\n padding: 9px;\n width: 100%;\n color: var(--theme-color-1);\n font-size: 12px;\n}\n.table-row-item input[disabled] {\n background: transparent;\n font-family: var(--theme-font-code);\n}\n.table-row-item input:focus {\n background: var(--theme-background-2);\n}\n.table-row-item label {\n background: transparent;\n text-transform: uppercase;\n display: block;\n padding: 9px;\n font-weight: var(--theme-bold);\n color: var(--theme-color-disabled);\n font-size: 12px;\n}\n.table-row-meta {\n overflow: hidden;\n flex-shrink: 0;\n transition: all 0.15s ease-in-out;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n user-select: none;\n}\n.table-row-meta-check {\n width: 18px;\n height: 18px;\n border-radius: var(--theme-radius-lg);\n background: rgba(47, 177, 228, 0.1);\n}\n.table-row-meta svg {\n width: 13px;\n height: 13px;\n margin: 0 1px;\n color: var(--theme-color-disabled);\n cursor: pointer;\n}\n.table-row-meta svg:hover {\n color: var(--theme-color-2);\n}\n.meta-check {\n display: flex;\n position: relative;\n cursor: pointer;\n align-items: center;\n font-size: 12px;\n border-radius: var(--theme-radius-lg);\n user-select: none;\n margin: 0 1px;\n transition: all 0.15s ease-in-out;\n}\n.meta-check input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.meta-checkmark {\n height: 15px;\n width: 15px;\n background: var(--theme-background-1);\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n.meta-check .meta-checkmark:after {\n content: '';\n display: none;\n width: 5px;\n height: 8px;\n border: solid var(--theme-color-1);\n border-width: 0 1.5px 1.5px 0;\n transform: rotate(45deg) translate3d(0, -1px, 0);\n}\n.meta-check input:checked ~ .meta-checkmark:after {\n display: block;\n}\n\n.navtable {\n width: 100%;\n}\n.navtable-follow {\n background-color: black;\n color: white;\n font-size: 9px;\n padding: 6px;\n display: -webkit-box;\n max-width: 250px;\n -webkit-line-clamp: 12;\n border-radius: 3px;\n -webkit-box-orient: vertical;\n overflow: hidden;\n line-height: 1.24;\n transform: translate3d(10px, 0, 0);\n}\n.navtable-follow:after {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 6px;\n background-color: black;\n}\n.navtable-follow * {\n font-family: var(--theme-font-code) !important;\n}\n.navtable-table {\n position: relative;\n display: flex;\n flex-direction: column;\n min-height: 381px;\n}\n.navtable-item {\n display: flex;\n position: relative;\n color: var(--theme-color-1);\n border-top: 1px solid var(--theme-border-color);\n font-weight: var(--theme-semibold);\n}\n.navtable-item > div {\n word-wrap: break-word;\n}\n.navtable-item > div:not(:first-child) {\n border-left: 1px solid var(--theme-border-color);\n}\n.navtable-item-action {\n color: var(--theme-color-2);\n font-size: 12px;\n font-weight: var(--theme-bold);\n background: var(--scalar-api-client-bg3);\n border: none;\n border-radius: 30px;\n appearance: none;\n max-height: 25px;\n margin-left: 12px;\n margin-right: 6px;\n padding: 4px 8px;\n outline: none;\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-in-out;\n white-space: nowrap;\n position: relative;\n}\n.navtable-item-action:hover {\n color: var(--theme-color-1);\n background: var(--scalar-api-client-gradient);\n box-shadow: 0 0 0 1px var(--theme-border-color);\n}\n.navtable-item-action:focus {\n background: var(--theme-background-2);\n}\n.navtable-item:hover,\n.navtable-item:focus-within .navtable-item-action {\n opacity: 1;\n}\n.navtable-item-add {\n display: flex;\n align-items: center;\n padding: 9px;\n font-weight: var(--theme-bold);\n outline: none;\n border: none;\n appearance: none;\n background: transparent;\n color: var(--theme-color-1);\n}\n.navtable-item-add:hover {\n background: var(--theme-background-2);\n cursor: pointer;\n}\n.navtable-item-25 {\n width: 25%;\n font-size: 12px;\n display: flex;\n align-items: center;\n}\n.navtable-item-33 {\n width: 33.33333%;\n display: flex;\n font-size: 12px;\n align-items: center;\n}\n.navtable-item-66 {\n width: 66.6666%;\n display: flex;\n font-size: 12px;\n align-items: center;\n}\n.navtable-item-75 {\n width: 75%;\n display: flex;\n align-items: center;\n}\n.navtable-item-75:focus-within {\n background: var(--theme-background-2);\n}\n.navtable-item-40 {\n width: 40%;\n display: flex;\n align-items: center;\n}\n.navtable-item-20 {\n width: 20%;\n display: flex;\n align-items: center;\n}\n.navtable-item-50 {\n width: 50%;\n display: flex;\n align-items: center;\n}\n.navtable-item-50:focus-within {\n background: var(--theme-background-2);\n}\n.navtable-item p {\n padding: 9px;\n}\n.navtable-item input {\n padding: 12px 6px;\n border: none;\n outline: none;\n appearance: none;\n font-size: 12px;\n color: var(--theme-color-1);\n background: transparent;\n width: 100%;\n}\n.navtable-item input:focus {\n background: var(--theme-background-2);\n}\n.navtable-item-select {\n position: relative;\n}\n.navtable-item-select select {\n background: transparent;\n outline: none;\n border: none;\n font-size: 12px;\n appearance: none;\n width: 100%;\n padding: 12px 6px;\n top: 0;\n position: relative;\n cursor: pointer;\n color: var(--theme-color-2);\n}\n.navtable-item-select svg {\n position: absolute;\n right: 6px;\n color: var(--theme-color-ghost);\n width: 6px;\n top: 12px;\n pointer-events: none;\n}\n.navtable-item .option {\n padding: 12px 6px;\n font-size: 12px;\n color: var(--theme-color-1);\n width: 100%;\n}\n.navtable-item label {\n color: var(--theme-color-disabled);\n font-size: 12px;\n font-weight: var(--theme-bold);\n text-transform: uppercase;\n padding: 9px;\n display: block;\n width: 100%;\n}\n.navtable-item-response {\n padding: 0 9px;\n}\n.navtable-item-response span {\n font-size: 12px;\n display: flex;\n align-items: center;\n margin-right: 6px;\n min-width: 50px;\n}\n.scalar-api-client__status--1xx:before,\n.scalar-api-client__status--2xx:before,\n.scalar-api-client__status--3xx:before,\n.scalar-api-client__status--4xx:before,\n.scalar-api-client__status--5xx:before,\n.scalar-api-client__status--6xx:before {\n content: '';\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin-right: 4px;\n background: var(--theme-background-2);\n}\n.scalar-api-client__status--2xx:before {\n background: green;\n}\n.scalar-api-client__status--3xx:before {\n background: orange;\n}\n.scalar-api-client__status--4xx:before {\n background: red;\n}\n.navtable-item-response span:empty {\n display: none;\n}\n.simpletable.navtable {\n padding: 0;\n}\n.simpletable.navtable .navtable-item-66,\n.simpletable.navtable .navtable-item-33 {\n display: block;\n}\n.simpletable.navtable .navtable-table {\n height: fit-content;\n}\n\n.scalar-api-client__main__left {\n width: 50%;\n border-right: 1px solid var(--theme-border-color);\n padding: 0 0 12px 12px;\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main__left {\n width: 100%;\n border-right: none;\n}\n}\n.scalar-api-client__item__content {\n flex-flow: wrap;\n padding: 0 12px 12px;\n border-radius: 3px;\n color: var(--theme-color-disabled);\n font-size: 12px;\n margin-top: -3px;\n justify-content: space-between;\n}\n.scalar-api-client__item__content .cm-s-default {\n border: 1px solid var(--theme-border-color);\n border-radius: var(--theme-radius-lg);\n}\n.scalar-api-client__item__content .scalar-api-client__item__content--code {\n width: 100%;\n max-height: calc(100vh - 200px);\n overflow: auto;\n}\n.scalar-api-client__item__content .cm-scroller {\n border: 1px solid var(--theme-border-color);\n border-radius: 3px;\n}\n.scalar-api-client__item__content .cm-editor {\n outline: none !important;\n}\n.scalar-api-client__item__content .cm-editor .cm-gutters {\n background: transparent;\n}\n.scalar-api-client__item__content .cm-scroll {\n background: transparent;\n}\n.scalar-api-client__item__content .cm-editor * {\n font-size: 11px;\n}\n.scalar-api-client__item__content .cm-editor .cm-line {\n color: var(--theme-color-1);\n}\n.scalar-api-client__item__content-button {\n width: 100%;\n appearance: none;\n border: none;\n outline: none;\n font-size: 12px;\n background: var(--scalar-api-client-color) !important;\n text-align: center;\n font-weight: var(--theme-bold);\n padding: 12px;\n text-transform: uppercase;\n border-radius: var(--theme-radius-lg);\n color: white;\n cursor: pointer;\n}\n.scalar-api-client__item__content__split {\n justify-content: space-between;\n}\n.scalar-collapsible-section-flex {\n width: 100%;\n}\n.input {\n background: var(--theme-background-2);\n border: 1px solid var(--theme-border-color);\n border-radius: 3px;\n position: relative;\n width: 100%;\n text-align: left;\n margin-bottom: 6px;\n}\n.input__half {\n width: calc(50% - 3px);\n}\n.input:focus-within {\n background: var(--theme-background-3);\n}\n.input label,\n.input input {\n padding: 12px;\n border: 0;\n outline: none;\n font-size: 12px;\n color: var(--theme-color-1);\n width: 100%;\n background: transparent;\n appearance: none;\n -webkit-appearance: none;\n left: 0;\n}\n.input label {\n position: absolute;\n color: var(--theme-color-2);\n}\n.input input {\n opacity: 0;\n position: relative;\n z-index: 99;\n padding: 18px 12px 6px 12px;\n}\n.input input:not(:placeholder-shown),\n.input:focus-within input {\n opacity: 1;\n}\n.input input:not(:placeholder-shown) + label,\n.input:focus-within label {\n font-size: 10px;\n top: -6px;\n color: var(--theme-color-1);\n}\n.input input:not(:placeholder-shown) + label {\n color: var(--theme-color-2);\n}\n.select {\n background: --theme-background-1;\n border-radius: var(--theme-radius-lg);\n font-size: 12px;\n border: 1px solid var(--theme-border-color);\n width: 100%;\n position: relative;\n margin-bottom: 6px;\n}\n.select:focus-within {\n background: var(--theme-background-3);\n}\n.select:hover {\n background: var(--theme-background-3);\n}\n.select svg {\n position: absolute;\n right: 12px;\n pointer-events: none;\n color: var(--theme-color-2);\n width: 6px;\n top: 10px;\n}\n.select label {\n display: block;\n font-size: 10px;\n color: var(--theme-color-2);\n position: absolute;\n left: 12px;\n top: 6px;\n}\n.select select {\n background: transparent;\n outline: none;\n border: none;\n -webkit-appearance: none;\n font-size: 12px;\n color: var(--theme-color-1);\n appearance: none;\n width: 100%;\n padding: 18px 12px 6px 12px;\n top: 0;\n position: relative;\n cursor: pointer;\n}\n.check {\n display: flex;\n position: relative;\n cursor: pointer;\n align-items: center;\n font-size: 12px;\n border: 1px solid var(--theme-border-color);\n border-radius: 3px;\n padding: 10px 12px;\n user-select: none;\n width: 100%;\n}\n.check p {\n color: var(--theme-color-2);\n}\n.check input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.checkmark {\n height: 15px;\n width: 15px;\n background: var(--theme-background-3);\n margin-right: 10px;\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n.check input:checked ~ p {\n color: var(--theme-color-1);\n}\n.check .checkmark:after {\n content: '';\n display: none;\n width: 5px;\n height: 8px;\n border: solid var(--theme-color-disabled);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg) translate3d(0, -1px, 0);\n}\n.check input:checked ~ .checkmark:after {\n display: block;\n}\n.scalar-api-client__main__scroll-container {\n height: calc(100vh - 320px);\n}\n.scalar-api-client__request-name {\n outline: none;\n border: none;\n appearance: none;\n -webkit-appearance: none;\n color: var(--theme-color-disabled);\n border-radius: var(--theme-radius-lg);\n font-size: var(--theme-mini);\n font-weight: var(--theme-bold);\n width: 100%;\n background: transparent;\n}\n\na[data-v-7a2c7da8] {\n text-decoration: underline;\n text-decoration-color: var(--theme-border-color);\n text-underline-offset: 2px;\n cursor: help;\n}\n\n.simple-cell[data-v-8d5b42b4] {\n border-right: 1px solid var(--theme-border-color);\n position: relative;\n padding: 0.75em;\n color: var(--theme-color-1);\n white-space: nowrap;\n}\n.simple-cell[data-v-8d5b42b4]:last-of-type {\n border-right: none;\n}\n.simple-cell.wrap[data-v-8d5b42b4] {\n white-space: normal;\n}\n.simple-cell.strong[data-v-8d5b42b4] {\n font-weight: var(--theme-semibold);\n}\n\n.simple-header[data-v-e94ec977] {\n color: var(--theme-color-disabled);\n font-weight: var(--theme-bold);\n text-transform: uppercase;\n}\n\n.simple-row[data-v-959f27bd] {\n border-top: 1px solid var(--theme-border-color);\n}\n.simple-row[data-v-959f27bd]:last-of-type {\n border-bottom: 1px solid var(--theme-border-color);\n}\n\n.simple-table[data-v-3b6be9e1] {\n display: table;\n width: 100%;\n margin: 1em 0;\n}\n\n.scalar-api-client__main__right {\n width: 50%;\n padding: 0 0 12px 12px;\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main__right {\n width: 100%;\n border-right: none;\n}\n}\n.scalar-api-client__main__right :deep(.scalar-copilot__header-button) {\n position: absolute;\n top: 6px;\n right: 12px;\n}\n\n.scalar-api-client {\n background: var(--theme-background-1);\n position: relative;\n height: 100%;\n overflow: hidden !important;\n display: flex;\n flex-direction: column;\n font-family: var(--theme-font);\n}\n@media screen and (max-width: 1000px) {\n.scalar-api-client {\n width: 100%;\n}\n}\n.scalar-api-client pre {\n font-family: var(--theme-font-code);\n}\n.scalar-api-client--post {\n --scalar-api-client-color: var(--theme-post-color);\n --scalar-api-client-background: var(--theme-post-background);\n}\n.scalar-api-client--delete {\n --scalar-api-client-color: var(--theme-delete-color);\n --scalar-api-client-background: var(--theme-delete-background);\n}\n.scalar-api-client--patch {\n --scalar-api-client-color: var(--theme-patch-color);\n --scalar-api-client-background: var(--theme-patch-background);\n}\n.scalar-api-client--get {\n --scalar-api-client-color: var(--theme-get-color);\n --scalar-api-client-background: var(--theme-get-background);\n}\n.scalar-api-client--put {\n --scalar-api-client-color: var(--theme-put-color);\n --scalar-api-client-background: var(--theme-put-background);\n}\n.scalar-api-client__mobile-navigation {\n padding: 12px 12px 0 12px;\n display: flex;\n font-size: var(--theme-small);\n color: var(--theme-color-2);\n font-weight: var(--theme-bold);\n}\n.scalar-api-client__mobile-navigation__toggle {\n appearance: none;\n margin-right: 9px;\n cursor: pointer;\n}\n.scalar-api-client__mobile-navigation--active {\n color: var(--theme-color-1);\n}\n.scalar-api-client__mobile-navigation--active:hover {\n cursor: pointer;\n}\n.scalar-api-client__main {\n display: flex;\n height: 100%;\n min-height: 0;\n background: var(--theme-background-1);\n border-top: 1px solid var(--theme-border-color);\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main {\n display: block;\n}\n}\n\n/** TODO: Consider to make a Column component */\n.scalar-api-client__main__content {\n padding: 12px;\n background: var(--theme-background-1);\n top: 0;\n position: sticky;\n z-index: 100;\n}\n.scalar-api-client__main__content label {\n font-size: var(--theme-small);\n color: var(--theme-color-1);\n font-weight: var(--theme-bold);\n display: flex;\n align-items: center;\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main__content {\n padding: 0 0 12px 0;\n}\n.scalar-api-client__main__content label {\n display: none;\n}\n}\n.meta {\n display: flex;\n font-size: var(--theme-font-size-2);\n font-weight: var(--theme-font-size-2);\n color: var(--scalar-api-client-color2);\n}\n.meta-item svg {\n fill: var(--theme-color-ghost);\n height: 14px;\n width: 14px;\n margin-right: 6px;\n}\n.meta-item {\n display: flex;\n align-items: center;\n margin-right: 12px;\n white-space: nowrap;\n font-weight: var(--theme-bold);\n font-size: 12px;\n color: var(--theme-color-disabled);\n padding: 3px 0;\n}\n.meta-item__input {\n padding: 3px 0;\n background: transparent;\n width: 100%;\n margin-right: 0;\n}\n.types {\n margin: auto;\n width: 580px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-flow: wrap;\n}\n.types-heading {\n width: 100%;\n text-align: center;\n}\n.types-heading b {\n font-size: 42px;\n}\n.types-heading p {\n margin-bottom: 20px;\n margin-top: 12px;\n font-size: 24px;\n}\n.scalar-api-client__empty-state {\n border: 1px dashed var(--theme-border-color);\n width: 100%;\n text-align: center;\n font-size: var(--theme-small);\n padding: 20px;\n}"));
6
+ elementStyle.appendChild(document.createTextNode(".cm-scroller,\n.custom-scroll {\n overflow-y: scroll;\n scrollbar-color: transparent transparent;\n scrollbar-width: thin;\n -webkit-overflow-scrolling: touch;\n}\n.custom-scroll-self-contain-overflow {\n overscroll-behavior: contain;\n}\n.custom-scroll-extra-padding-right {\n padding-right: 12px !important;\n}\n@supports (-moz-appearance: none) {\n .cm-scroller,\n .custom-scroll {\n padding-right: 12px;\n }\n .custom-scroll-extra-padding-right {\n padding-right: 24px !important;\n }\n}\n.cm-scroller:hover,\n.custom-scroll:hover {\n scrollbar-color: var(--theme-scrollbar-color) transparent;\n}\n.cm-scroller:hover::-webkit-scrollbar-thumb,\n.custom-scroll:hover::-webkit-scrollbar-thumb {\n background: var(--theme-scrollbar-color);\n background-clip: content-box;\n border: 3px solid transparent;\n}\n.cm-scroller::-webkit-scrollbar-thumb:active,\n.custom-scroll::-webkit-scrollbar-thumb:active {\n background: var(--theme-scrollbar-color-active);\n background-clip: content-box;\n border: 3px solid transparent;\n}\n.cm-scroller::-webkit-scrollbar-corner,\n.custom-scroll::-webkit-scrollbar-corner {\n background: transparent;\n}\n.cm-scroller::-webkit-scrollbar,\n.custom-scroll::-webkit-scrollbar {\n height: 12px;\n width: 12px;\n}\n.cm-scroller::-webkit-scrollbar-track,\n.custom-scroll::-webkit-scrollbar-track {\n background: transparent;\n}\n.cm-scroller::-webkit-scrollbar-thumb,\n.custom-scroll::-webkit-scrollbar-thumb {\n border-radius: 20px;\n background: transparent;\n background-clip: content-box;\n border: 3px solid transparent;\n}\n@media (pointer: coarse) {\n .cm-scroller,\n .custom-scroll {\n padding-right: 12px;\n }\n .custom-scroll-extra-padding-right {\n padding-right: 24px !important;\n }\n}\n:root {\n --app-header-height: 50px;\n --theme-border-width: 1px;\n --theme-radius: 3px;\n --theme-radius-lg: 6px;\n --theme-radius-xl: 8px;\n\n --theme-header-height: 50px;\n --theme-sidebar-width: 250px;\n --theme-toc-width: 250px;\n\n /* TYPOGRAPHY ------------------------------------ */\n --theme-font: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';\n --theme-font-code: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono',\n 'Droid Sans Mono', 'Source Code Pro', monospace;\n\n /** Font sizes for rendered text content (editor styles or static content) */\n --theme-heading-1: 40px; /* Editor Page heading */\n --theme-page-description: 24px;\n --theme-heading-2: 24px; /* Editor section headings */\n --theme-heading-3: 20px;\n --theme-heading-4: 16px;\n --theme-heading-5: 16px;\n --theme-heading-6: 16px;\n\n --theme-paragraph: 16px;\n --theme-small: 14px;\n --theme-mini: 13px;\n --theme-micro: 12px;\n --theme-bold: 600;\n --theme-semibold: 500;\n --theme-regular: 400;\n\n /* Font sizes for interactive applications (not rendered text content) */\n --theme-font-size-1: 24px;\n --theme-font-size-2: 16px;\n --theme-font-size-3: 14px;\n --theme-font-size-4: 13px;\n --theme-font-size-5: 12px;\n\n --theme-line-height-1: 32px;\n --theme-line-height-2: 24px;\n --theme-line-height-3: 20px;\n --theme-line-height-4: 18px;\n --theme-line-height-5: 16px;\n\n --theme-font-medium: 500;\n --theme-font-bold: 700;\n\n /* let's clean these up please :) */\n --scalar-api-reference-theme-header-height: 0;\n --scalar-api-reference-theme-sidebar-width: 250px;\n --scalar-api-reference-theme-toc-width: 250px;\n --scalar-api-reference-app-header-height: 100px;\n --scalar-api-reference-col-width-1: 250px;\n --scalar-api-reference-col-width-2: calc(50% - 150px);\n --scalar-api-reference-col-width-3: calc(50% - 150px);\n --scalar-api-reference-document-height: 100vh;\n --scalar-api-reference-full-height: 100%;\n}\n\n@media (max-width: 460px) {\n :root {\n --theme-font-size-1: 22px;\n --theme-font-size-2: 14px;\n --theme-font-size-3: 12px;\n }\n}\n\n@media (max-width: 720px) {\n :root {\n --theme-heading-1: 24px;\n --theme-page-description: 20px;\n }\n}\n.light-mode {\n color-scheme: light;\n --theme-color-1: #2a2f45;\n --theme-color-2: #757575;\n --theme-color-3: #8e8e8e;\n --theme-color-disabled: #b4b1b1;\n --theme-color-ghost: #a7a7a7;\n --theme-color-accent: #0099ff;\n --theme-background-1: #fff;\n --theme-background-2: #f6f6f6;\n --theme-background-3: #e7e7e7;\n --theme-background-4: rgba(0, 0, 0, 0.06);\n --theme-background-accent: #8ab4f81f;\n\n --theme-border-color: rgba(0, 0, 0, 0.1);\n --theme-scrollbar-color: rgba(0, 0, 0, 0.18);\n --theme-scrollbar-color-active: rgba(0, 0, 0, 0.36);\n --theme-lifted-brightness: 1;\n --theme-backdrop-brightness: 1;\n\n --theme-shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.11);\n --theme-shadow-2: rgba(0, 0, 0, 0.08) 0px 13px 20px 0px,\n rgba(0, 0, 0, 0.08) 0px 3px 8px 0px, #eeeeed 0px 0 0 1px;\n\n --theme-button-1: rgb(49 53 56);\n --theme-button-1-color: #fff;\n --theme-button-1-hover: rgb(28 31 33);\n\n --theme-error-color: #ae262f;\n --theme-warning-color: #d89c6a;\n --theme-success-color: #26ae42;\n\n /* REST API Client Colors */\n --theme-post-color: #00a67d;\n --theme-post-background: #00a67d1a;\n --theme-delete-color: #ef0006;\n --theme-delete-background: #ef00061a;\n --theme-patch-color: #b2b062;\n --theme-patch-background: #ffe6001a;\n --theme-get-color: #0082d0;\n --theme-get-background: #0082d01a;\n --theme-put-color: #f3830e;\n --theme-put-background: #f3830e1a;\n\n /* Misc Scalar Branding */\n --scalar-brand: #faf6e9;\n}\n.dark-mode {\n color-scheme: dark;\n --theme-color-1: rgba(255, 255, 255, 0.9);\n --theme-color-2: rgba(255, 255, 255, 0.62);\n --theme-color-3: rgba(255, 255, 255, 0.44);\n --theme-color-disabled: rgba(255, 255, 255, 0.34);\n --theme-color-ghost: rgba(255, 255, 255, 0.26);\n --theme-color-accent: #8ab4f8;\n --theme-background-1: #1a1a1a;\n --theme-background-2: #252525;\n --theme-background-3: #323232;\n --theme-background-4: rgba(255, 255, 255, 0.06);\n --theme-background-accent: #8ab4f81f;\n\n --theme-border-color: rgba(255, 255, 255, 0.1);\n --theme-scrollbar-color: rgba(255, 255, 255, 0.24);\n --theme-scrollbar-color-active: rgba(255, 255, 255, 0.48);\n --theme-lifted-brightness: 1.45;\n --theme-backdrop-brightness: 0.5;\n\n --theme-shadow-1: 0 1px 3px 0 rgb(0, 0, 0, 0.1);\n --theme-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 --theme-button-1: #f6f6f6;\n --theme-button-1-color: #000;\n --theme-button-1-hover: #e7e7e7;\n\n --theme-error-color: #ff0011;\n --theme-success-color: #26ae42;\n\n /* REST API Client Colors */\n --theme-post-color: #7ee787;\n --theme-post-background: #7ee78714;\n --theme-delete-color: #e77e7e;\n --theme-delete-background: #e77e7e24;\n --theme-patch-color: #b2b062;\n --theme-patch-background: #b2b06229;\n --theme-get-color: #79c0ff;\n --theme-get-background: #79c0ff21;\n --theme-put-color: #e9950c;\n --theme-put-background: #e9950c21;\n\n /* Misc Scalar Branding */\n --scalar-brand: #8b7256;\n}\n\n.modal-layout[data-v-3f4ab567] {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n z-index: 1001;\n background: rgba(0, 0, 0, 0.44);\n padding: 20px;\n opacity: 0;\n animation: modal-fade-3f4ab567 0.2s forwards;\n}\n.modal-body[data-v-3f4ab567] {\n padding: 24px 12px 18px 24px;\n max-height: calc(100vh - 240px);\n background: var(--theme-background-1);\n border-radius: var(--theme-radius-lg);\n font-family: var(--theme-font);\n}\n.modal[data-v-3f4ab567] {\n margin: 80px auto 0;\n position: relative;\n background: var(--theme-background-2);\n border-radius: var(--theme-radius-lg);\n color: var(--theme-color-1);\n width: 100%;\n text-align: left;\n line-height: 1.4;\n opacity: 0;\n transform: scale(0.98);\n animation: modal-pop-3f4ab567 0.15s 0.15s forwards;\n display: flex;\n flex-direction: column;\n}\n.modal-content-large[data-v-3f4ab567] {\n max-width: 800px;\n}\n.modal-content-normal[data-v-3f4ab567] {\n max-width: 640px;\n}\n.modal-content-small[data-v-3f4ab567] {\n max-width: 480px;\n}\n@keyframes modal-fade-3f4ab567 {\nfrom {\n opacity: 0;\n}\nto {\n opacity: 1;\n}\n}\n@keyframes modal-pop-3f4ab567 {\n0% {\n opacity: 0;\n}\n100% {\n opacity: 1;\n transform: scale(1);\n}\n}\n.modal-header[data-v-3f4ab567] {\n padding: 12px 24px;\n color: var(--theme-color-1);\n font-size: var(--theme-font-size-4);\n text-align: left;\n font-weight: 600;\n border-radius: var(--theme-radius-lg) var(--theme-radius-lg) 0 0;\n}\n\n.navtable-mock {\n background-repeat: repeat;\n width: 100%;\n background-image: linear-gradient(\n 0deg,\n var(--theme-border-color) 1px,\n --theme-background-1 1px\n );\n background-size: 31px 31px;\n background-position: center 1px;\n flex: 1;\n position: relative;\n}\n.navtable-mock .navtable-item {\n position: absolute;\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n background: transparent;\n border-top: none;\n}\n.radio {\n height: 16px;\n width: 16px;\n background: transparent;\n border: var(--border);\n flex-shrink: 0;\n margin-right: 6px;\n margin-left: 4px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n outline: none;\n}\n.radio:before {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n.navtable-item__active .radio:after {\n content: '';\n width: 5px;\n height: 8px;\n border: solid white;\n border-width: 0 1.5px 1.5px 0;\n transform: rotate(45deg) translate3d(-0.5px, -1px, 0);\n}\n.radio.post {\n background: var(--theme-post-color);\n}\n.radio.delete {\n background: var(--theme-delete-color);\n}\n.radio.patch {\n background: var(--theme-patch-color);\n}\n.radio.get {\n background: var(--theme-get-color);\n}\n.radio.put {\n background: var(--theme-put-color);\n}\n\n.scalar-api-client__address-bar {\n width: 100%;\n padding: 12px 12px 10px 12px;\n display: flex;\n align-items: center;\n position: relative;\n background: var(--theme-background-1);\n}\n.scalar-api-client__url-form {\n display: flex;\n width: 100%;\n align-items: stretch;\n border-radius: var(--theme-radius-lg);\n}\n.scalar-api-client__field {\n border: 1px solid var(--theme-border-color);\n border-right: 0;\n border-radius: var(--theme-radius-lg) 0 0 var(--theme-radius-lg);\n display: flex;\n align-items: stretch;\n width: 100%;\n}\n.scalar-api-client__address-bar-data {\n width: 100%;\n}\n.scalar-api-client__address-bar-data-meta {\n display: flex;\n margin-top: 5px;\n}\n.scalar-api-client__request-type {\n display: flex;\n align-items: center;\n background: var(--theme-background-2);\n color: var(--theme-color-disabled);\n appearance: none;\n -webkit-appearance: none;\n padding: 0 12px;\n border-right: 1px solid var(--theme-border-color);\n border-radius: var(--theme-radius-lg) 0 0 var(--theme-radius-lg);\n position: relative;\n}\n.scalar-api-client__request-type span {\n font-family: var(--theme-font-code);\n font-size: 500;\n font-size: 12px;\n text-transform: uppercase;\n}\n.scalar-api-client__request-type svg {\n margin-left: 6px;\n width: 8px;\n}\n.scalar-api-client__request-type i {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin-right: 6px;\n text-align: center;\n line-height: 18px;\n font-style: normal;\n flex-shrink: 0;\n display: inline-block;\n color: var(--theme-color-disabled);\n background: var(--scalar-api-client-color);\n}\n.meta-request-break {\n margin: 0 5px;\n}\n.scalar-api-client__history {\n appearance: none;\n -webkit-appearance: none;\n background: transparent;\n color: var(--theme-color-2);\n display: flex;\n align-items: center;\n border-radius: var(--theme-radius-lg);\n height: 100%;\n}\n.scalar-api-client__send-request-button[type='submit'] {\n font-size: var(--theme-mini);\n letter-spacing: 0.25px;\n line-height: 30px;\n font-weight: var(--theme-semibold);\n color: white;\n border: none;\n white-space: nowrap;\n padding: 0 10px;\n text-transform: uppercase;\n cursor: pointer;\n outline: none;\n border-radius: 0 var(--theme-radius-lg) var(--theme-radius-lg) 0;\n background: var(--scalar-api-client-color);\n /** #087f5b */\n display: flex;\n align-items: center;\n}\n.scalar-api-client__send-request-button svg {\n width: 12px;\n height: 12px;\n margin-right: 6px;\n}\n.scalar-api-client__send-request-button--loading {\n font-size: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 127px;\n}\n.scalar-api-client__send-request-button--loading svg {\n display: none;\n}\n.scalar-api-client__send-request-button--loading:before {\n content: '';\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-top: 1px solid white;\n animation: urlloader 0.45s linear infinite;\n background: transparent;\n width: 14px;\n height: 14px;\n margin-left: 0;\n margin-right: 9px;\n border-radius: 50%;\n}\n.scalar-api-client__send-request-button--loading:after {\n content: 'Loading';\n font-size: 12px;\n}\n@keyframes urlloader {\n0% {\n transform: rotate(0deg);\n}\nto {\n transform: rotate(1turn);\n}\n}\n.scalar-api-client__history-toggle {\n padding: 0 9px;\n line-height: 30px;\n color: var(--theme-color-disabled);\n font-size: var(--theme-mini);\n letter-spacing: 0.125px;\n font-weight: var(--theme-semibold);\n text-transform: uppercase;\n height: 100%;\n display: flex;\n align-items: center;\n cursor: pointer;\n white-space: nowrap;\n border: 1px solid var(--theme-border-color);\n margin-left: 12px;\n border-radius: var(--theme-radius-lg);\n}\n.scalar-api-client__history-toggle:hover {\n background: var(--theme-background-2);\n}\n.scalar-api-client__history-toggle svg {\n height: 13px;\n width: 13px;\n margin-right: 6px;\n color: var(--theme-color-disabled);\n}\n.scalar-api-client__address-bar-close {\n fill: var(--theme-color-disabled);\n margin-left: 12px;\n height: 24px;\n}\n.scalar-api-client__address-bar-close:hover {\n cursor: pointer;\n fill: var(--theme-color-1);\n}\n.scalar-api-client__address-bar__content {\n width: 640px;\n height: 100%;\n background: var(--theme-background-1);\n position: fixed;\n top: 0;\n right: 0;\n z-index: 1000;\n transform: translate3d(640px, 0, 0);\n opacity: 0;\n transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1),\n opacity 0.01s ease-in-out 0.5s;\n pointer-events: none;\n}\n.scalar-api-client__address-bar-content-item {\n height: 100vh;\n max-height: 100vh;\n overflow: auto;\n}\n.scalar-api-client__address-bar__on {\n z-index: 100000;\n}\n.scalar-api-client__address-bar__on .scalar-api-client__address-bar__content {\n transform: translate3d(0, 0, 0);\n opacity: 1;\n pointer-events: all;\n transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);\n}\n.scalar-api-client__address-bar__on .scalar-api-client__address-bar__close {\n opacity: 1;\n pointer-events: all;\n cursor: pointer;\n}\n.scalar-api-client__address-bar .navtable-item__active {\n background: var(--theme-background-2);\n cursor: default;\n}\n.scalar-api-client__address-bar .navtable-item__active .radio:before {\n display: none;\n}\n.navigation-back {\n stroke: var(--theme-color-2);\n cursor: pointer;\n}\n.navigation-back:hover {\n stroke: var(--theme-color-1);\n}\n.scalar-api-client__address-bar__close {\n width: 100%;\n height: 100%;\n position: fixed;\n top: 0;\n left: 0;\n /* background: rgba(0,0,0,.55);\n */\n pointer-events: none;\n opacity: 0;\n transition: all 0.1s ease-in-out;\n z-index: 1000;\n}\n.navtable-item-request span {\n padding: 8px 9px 8px 0;\n border: none;\n outline: none;\n font-size: 12px;\n color: var(--theme-color-1);\n width: 100%;\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.navtable-item-request span em {\n text-transform: uppercase;\n font-style: normal;\n font-family: var(--theme-font-code);\n font-size: 11px;\n margin-right: 6px;\n font-weight: var(--theme-bold);\n color: var(--theme-color-disabled);\n}\n.navtable-item-time {\n font-size: 12px;\n color: var(--theme-color-1);\n text-transform: capitalize;\n padding: 0 9px;\n}\n@media screen and (max-width: 720px) {\n.scalar-api-client__history-toggle span,\n .scalar-api-client__send-request-button span {\n display: none;\n}\n.scalar-api-client__history-toggle svg,\n .scalar-api-client__send-request-button svg {\n margin-right: 0;\n}\n.scalar-api-client__history-toggle,\n .scalar-api-client__send-request-button {\n height: 31.5px;\n width: 31.5px;\n}\n}\n\n.scalar-api-client__item {\n border-radius: var(--theme-radius-lg);\n margin-bottom: 6px;\n background: var(--theme-background-2);\n box-shadow: var(--shadow1);\n position: relative;\n}\n.scalar-api-client__item button {\n background-color: transparent;\n text-align: left;\n}\n.scalar-api-client__item:hover {\n cursor: pointer;\n}\n.scalar-api-client__item--open {\n background: var(--theme-background-2);\n}\n.scalar-api-client__item--open:focus-within {\n box-shadow: var(--shadow1);\n}\n.scalar-api-client__item--open .scalar-api-client__item__content {\n display: flex;\n}\n.scalar-api-client__item--open:hover {\n cursor: default;\n}\n.scalar-api-client__item--open .scalar-api-client__toggle__icon {\n transform: rotate(90deg);\n}\n.scalar-api-client__toggle {\n padding: 6px 12px;\n min-height: 37px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n position: relative;\n width: 100%;\n}\n.scalar-api-client__item .scalar-api-client__item__title {\n color: var(--theme-color-1);\n font-size: var(--theme-small);\n font-weight: var(--theme-bold);\n user-select: none;\n flex: 1;\n}\n.scalar-api-client__item .scalar-api-client__item__title:after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: block;\n}\n.scalar-api-client__item .scalar-api-client__toggle__icon {\n width: 10px;\n margin-right: 6px;\n color: var(--theme-color-1);\n}\n.scalar-api-client__item__options {\n position: relative;\n}\n.scalar-api-client__item__options span {\n background: var(--theme-background-3);\n padding: 2px 6px;\n border-radius: 3px;\n font-size: 12px;\n pointer-events: none;\n color: var(--theme-color-2);\n border: 1px solid var(--theme-border-color);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.scalar-api-client__item__options span svg {\n width: 9px;\n height: 9px;\n margin-left: 3px;\n}\n.scalar-api-client__item__options select {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n}\n\n.table {\n border: 1px solid var(--theme-border-color);\n background: transparent;\n border-radius: var(--theme-radius-lg);\n width: 100%;\n}\n.table-row {\n border-bottom: 1px solid var(--theme-border-color);\n display: flex;\n position: relative;\n}\n.table-row__add {\n border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);\n border-bottom: none;\n}\n.table-row.required-parameter .table-row-item:nth-of-type(2):after {\n content: 'Required';\n position: absolute;\n top: 4px;\n right: 0;\n padding: 5px 9px 5px 6px;\n font-weight: var(--theme-semibold);\n font-size: 12px;\n background: var(--theme-background-2);\n box-shadow: -2px 0 4px var(--theme-background-2);\n}\n.table-row.required-parameter\n .table-row-item:nth-of-type(2):focus-within:after {\n display: none;\n}\n.table-row:last-of-type {\n border-bottom: none;\n}\n.table-row__active {\n border-radius: 0 0 var(--theme-radius-lg) var(--theme-radius-lg);\n}\n.table-row-drag {\n width: 20px;\n flex-shrink: 0;\n border-right: 1px solid var(--theme-border-color);\n align-items: center;\n justify-content: center;\n display: none;\n}\n.table-row-drag svg {\n width: 6px;\n fill: var(--theme-color-disabled);\n}\n.table-row-drag .table-row-drag-add {\n width: 8px;\n}\n.table-row-item {\n width: 100%;\n border-right: 1px solid var(--theme-border-color);\n position: relative;\n}\n.table-row-item-menu {\n position: absolute;\n right: 12px;\n background: var(--theme-background-3);\n border: 1px solid var(--theme-border-color);\n width: 24px;\n height: 24px;\n top: 50%;\n transform: translate3d(0, -50%, 0);\n border-radius: var(--theme-radius-lg);\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n cursor: pointer;\n}\n.table-row-item input:focus + .table-row-item-menu,\n.table-row-item:hover .table-row-item-menu {\n opacity: 1;\n}\n.table-row-item-menu svg {\n height: 12px;\n width: initial;\n fill: var(--theme-color-disabled);\n}\n.table-row-item input {\n border: none;\n appearance: none;\n outline: none;\n padding: 9px;\n width: 100%;\n color: var(--theme-color-1);\n font-size: 12px;\n}\n.table-row-item input[disabled] {\n background: transparent;\n font-family: var(--theme-font-code);\n}\n.table-row-item input:focus {\n background: var(--theme-background-2);\n}\n.table-row-item label {\n background: transparent;\n text-transform: uppercase;\n display: block;\n padding: 9px;\n font-weight: var(--theme-bold);\n color: var(--theme-color-disabled);\n font-size: 12px;\n}\n.table-row-meta {\n overflow: hidden;\n flex-shrink: 0;\n transition: all 0.15s ease-in-out;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n user-select: none;\n}\n.table-row-meta-check {\n width: 18px;\n height: 18px;\n border-radius: var(--theme-radius-lg);\n background: rgba(47, 177, 228, 0.1);\n}\n.table-row-meta svg {\n width: 13px;\n height: 13px;\n margin: 0 1px;\n color: var(--theme-color-disabled);\n cursor: pointer;\n}\n.table-row-meta svg:hover {\n color: var(--theme-color-2);\n}\n.meta-check {\n display: flex;\n position: relative;\n cursor: pointer;\n align-items: center;\n font-size: 12px;\n border-radius: var(--theme-radius-lg);\n user-select: none;\n margin: 0 1px;\n transition: all 0.15s ease-in-out;\n}\n.meta-check input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.meta-checkmark {\n height: 15px;\n width: 15px;\n background: var(--theme-background-1);\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n.meta-check .meta-checkmark:after {\n content: '';\n display: none;\n width: 5px;\n height: 8px;\n border: solid var(--theme-color-1);\n border-width: 0 1.5px 1.5px 0;\n transform: rotate(45deg) translate3d(0, -1px, 0);\n}\n.meta-check input:checked ~ .meta-checkmark:after {\n display: block;\n}\n\n.navtable {\n width: 100%;\n}\n.navtable-follow {\n background-color: black;\n color: white;\n font-size: 9px;\n padding: 6px;\n display: -webkit-box;\n max-width: 250px;\n -webkit-line-clamp: 12;\n border-radius: 3px;\n -webkit-box-orient: vertical;\n overflow: hidden;\n line-height: 1.24;\n transform: translate3d(10px, 0, 0);\n}\n.navtable-follow:after {\n content: '';\n position: absolute;\n bottom: 0;\n width: 100%;\n height: 6px;\n background-color: black;\n}\n.navtable-follow * {\n font-family: var(--theme-font-code) !important;\n}\n.navtable-table {\n position: relative;\n display: flex;\n flex-direction: column;\n min-height: 381px;\n}\n.navtable-item {\n display: flex;\n position: relative;\n color: var(--theme-color-1);\n border-top: 1px solid var(--theme-border-color);\n font-weight: var(--theme-semibold);\n}\n.navtable-item > div {\n word-wrap: break-word;\n}\n.navtable-item > div:not(:first-child) {\n border-left: 1px solid var(--theme-border-color);\n}\n.navtable-item-action {\n color: var(--theme-color-2);\n font-size: 12px;\n font-weight: var(--theme-bold);\n background: var(--scalar-api-client-bg3);\n border: none;\n border-radius: 30px;\n appearance: none;\n max-height: 25px;\n margin-left: 12px;\n margin-right: 6px;\n padding: 4px 8px;\n outline: none;\n cursor: pointer;\n opacity: 0;\n transition: opacity 0.15s ease-in-out;\n white-space: nowrap;\n position: relative;\n}\n.navtable-item-action:hover {\n color: var(--theme-color-1);\n background: var(--scalar-api-client-gradient);\n box-shadow: 0 0 0 1px var(--theme-border-color);\n}\n.navtable-item-action:focus {\n background: var(--theme-background-2);\n}\n.navtable-item:hover,\n.navtable-item:focus-within .navtable-item-action {\n opacity: 1;\n}\n.navtable-item-add {\n display: flex;\n align-items: center;\n padding: 9px;\n font-weight: var(--theme-bold);\n outline: none;\n border: none;\n appearance: none;\n background: transparent;\n color: var(--theme-color-1);\n}\n.navtable-item-add:hover {\n background: var(--theme-background-2);\n cursor: pointer;\n}\n.navtable-item-25 {\n width: 25%;\n font-size: 12px;\n display: flex;\n align-items: center;\n}\n.navtable-item-33 {\n width: 33.33333%;\n display: flex;\n font-size: 12px;\n align-items: center;\n}\n.navtable-item-66 {\n width: 66.6666%;\n display: flex;\n font-size: 12px;\n align-items: center;\n}\n.navtable-item-75 {\n width: 75%;\n display: flex;\n align-items: center;\n}\n.navtable-item-75:focus-within {\n background: var(--theme-background-2);\n}\n.navtable-item-40 {\n width: 40%;\n display: flex;\n align-items: center;\n}\n.navtable-item-20 {\n width: 20%;\n display: flex;\n align-items: center;\n}\n.navtable-item-50 {\n width: 50%;\n display: flex;\n align-items: center;\n}\n.navtable-item-50:focus-within {\n background: var(--theme-background-2);\n}\n.navtable-item p {\n padding: 9px;\n}\n.navtable-item input {\n padding: 12px 6px;\n border: none;\n outline: none;\n appearance: none;\n font-size: 12px;\n color: var(--theme-color-1);\n background: transparent;\n width: 100%;\n}\n.navtable-item input:focus {\n background: var(--theme-background-2);\n}\n.navtable-item-select {\n position: relative;\n}\n.navtable-item-select select {\n background: transparent;\n outline: none;\n border: none;\n font-size: 12px;\n appearance: none;\n width: 100%;\n padding: 12px 6px;\n top: 0;\n position: relative;\n cursor: pointer;\n color: var(--theme-color-2);\n}\n.navtable-item-select svg {\n position: absolute;\n right: 6px;\n color: var(--theme-color-ghost);\n width: 6px;\n top: 12px;\n pointer-events: none;\n}\n.navtable-item .option {\n padding: 12px 6px;\n font-size: 12px;\n color: var(--theme-color-1);\n width: 100%;\n}\n.navtable-item label {\n color: var(--theme-color-disabled);\n font-size: 12px;\n font-weight: var(--theme-bold);\n text-transform: uppercase;\n padding: 9px;\n display: block;\n width: 100%;\n}\n.navtable-item-response {\n padding: 0 9px;\n}\n.navtable-item-response span {\n font-size: 12px;\n display: flex;\n align-items: center;\n margin-right: 6px;\n min-width: 50px;\n}\n.scalar-api-client__status--1xx:before,\n.scalar-api-client__status--2xx:before,\n.scalar-api-client__status--3xx:before,\n.scalar-api-client__status--4xx:before,\n.scalar-api-client__status--5xx:before,\n.scalar-api-client__status--6xx:before {\n content: '';\n width: 12px;\n height: 12px;\n border-radius: 50%;\n margin-right: 4px;\n background: var(--theme-background-2);\n}\n.scalar-api-client__status--2xx:before {\n background: green;\n}\n.scalar-api-client__status--3xx:before {\n background: orange;\n}\n.scalar-api-client__status--4xx:before {\n background: red;\n}\n.navtable-item-response span:empty {\n display: none;\n}\n.simpletable.navtable {\n padding: 0;\n}\n.simpletable.navtable .navtable-item-66,\n.simpletable.navtable .navtable-item-33 {\n display: block;\n}\n.simpletable.navtable .navtable-table {\n height: fit-content;\n}\n\n.scalar-api-client__main__left {\n width: 50%;\n border-right: 1px solid var(--theme-border-color);\n padding: 0 0 12px 12px;\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main__left {\n width: 100%;\n border-right: none;\n}\n}\n.scalar-api-client__item__content {\n flex-flow: wrap;\n padding: 0 12px 12px;\n border-radius: 3px;\n color: var(--theme-color-disabled);\n font-size: 12px;\n margin-top: -3px;\n justify-content: space-between;\n}\n.scalar-api-client__item__content .cm-s-default {\n border: 1px solid var(--theme-border-color);\n border-radius: var(--theme-radius-lg);\n}\n.scalar-api-client__item__content .scalar-api-client__item__content--code {\n width: 100%;\n max-height: calc(100vh - 200px);\n overflow: auto;\n}\n.scalar-api-client__item__content .cm-scroller {\n border: 1px solid var(--theme-border-color);\n border-radius: 3px;\n}\n.scalar-api-client__item__content .cm-editor {\n outline: none !important;\n}\n.scalar-api-client__item__content .cm-editor .cm-gutters {\n background: transparent;\n}\n.scalar-api-client__item__content .cm-scroll {\n background: transparent;\n}\n.scalar-api-client__item__content .cm-editor * {\n font-size: 11px;\n}\n.scalar-api-client__item__content .cm-editor .cm-line {\n color: var(--theme-color-1);\n}\n.scalar-api-client__item__content-button {\n width: 100%;\n appearance: none;\n border: none;\n outline: none;\n font-size: 12px;\n background: var(--scalar-api-client-color) !important;\n text-align: center;\n font-weight: var(--theme-bold);\n padding: 12px;\n text-transform: uppercase;\n border-radius: var(--theme-radius-lg);\n color: white;\n cursor: pointer;\n}\n.scalar-api-client__item__content__split {\n justify-content: space-between;\n}\n.scalar-collapsible-section-flex {\n width: 100%;\n}\n.input {\n background: var(--theme-background-2);\n border: 1px solid var(--theme-border-color);\n border-radius: 3px;\n position: relative;\n width: 100%;\n text-align: left;\n margin-bottom: 6px;\n}\n.input__half {\n width: calc(50% - 3px);\n}\n.input:focus-within {\n background: var(--theme-background-3);\n}\n.input label,\n.input input {\n padding: 12px;\n border: 0;\n outline: none;\n font-size: 12px;\n color: var(--theme-color-1);\n width: 100%;\n background: transparent;\n appearance: none;\n -webkit-appearance: none;\n left: 0;\n}\n.input label {\n position: absolute;\n color: var(--theme-color-2);\n}\n.input input {\n opacity: 0;\n position: relative;\n z-index: 99;\n padding: 18px 12px 6px 12px;\n}\n.input input:not(:placeholder-shown),\n.input:focus-within input {\n opacity: 1;\n}\n.input input:not(:placeholder-shown) + label,\n.input:focus-within label {\n font-size: 10px;\n top: -6px;\n color: var(--theme-color-1);\n}\n.input input:not(:placeholder-shown) + label {\n color: var(--theme-color-2);\n}\n.select {\n background: --theme-background-1;\n border-radius: var(--theme-radius-lg);\n font-size: 12px;\n border: 1px solid var(--theme-border-color);\n width: 100%;\n position: relative;\n margin-bottom: 6px;\n}\n.select:focus-within {\n background: var(--theme-background-3);\n}\n.select:hover {\n background: var(--theme-background-3);\n}\n.select svg {\n position: absolute;\n right: 12px;\n pointer-events: none;\n color: var(--theme-color-2);\n width: 6px;\n top: 10px;\n}\n.select label {\n display: block;\n font-size: 10px;\n color: var(--theme-color-2);\n position: absolute;\n left: 12px;\n top: 6px;\n}\n.select select {\n background: transparent;\n outline: none;\n border: none;\n -webkit-appearance: none;\n font-size: 12px;\n color: var(--theme-color-1);\n appearance: none;\n width: 100%;\n padding: 18px 12px 6px 12px;\n top: 0;\n position: relative;\n cursor: pointer;\n}\n.check {\n display: flex;\n position: relative;\n cursor: pointer;\n align-items: center;\n font-size: 12px;\n border: 1px solid var(--theme-border-color);\n border-radius: 3px;\n padding: 10px 12px;\n user-select: none;\n width: 100%;\n}\n.check p {\n color: var(--theme-color-2);\n}\n.check input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.checkmark {\n height: 15px;\n width: 15px;\n background: var(--theme-background-3);\n margin-right: 10px;\n border-radius: 3px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n.check input:checked ~ p {\n color: var(--theme-color-1);\n}\n.check .checkmark:after {\n content: '';\n display: none;\n width: 5px;\n height: 8px;\n border: solid var(--theme-color-disabled);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg) translate3d(0, -1px, 0);\n}\n.check input:checked ~ .checkmark:after {\n display: block;\n}\n.scalar-api-client__main__scroll-container {\n height: calc(100vh - 320px);\n}\n.scalar-api-client__request-name {\n outline: none;\n border: none;\n appearance: none;\n -webkit-appearance: none;\n color: var(--theme-color-disabled);\n border-radius: var(--theme-radius-lg);\n font-size: var(--theme-mini);\n font-weight: var(--theme-bold);\n width: 100%;\n background: transparent;\n}\n\na[data-v-7a2c7da8] {\n text-decoration: underline;\n text-decoration-color: var(--theme-border-color);\n text-underline-offset: 2px;\n cursor: help;\n}\n\n.simple-cell[data-v-8d5b42b4] {\n border-right: 1px solid var(--theme-border-color);\n position: relative;\n padding: 0.75em;\n color: var(--theme-color-1);\n white-space: nowrap;\n}\n.simple-cell[data-v-8d5b42b4]:last-of-type {\n border-right: none;\n}\n.simple-cell.wrap[data-v-8d5b42b4] {\n white-space: normal;\n}\n.simple-cell.strong[data-v-8d5b42b4] {\n font-weight: var(--theme-semibold);\n}\n\n.simple-header[data-v-e94ec977] {\n color: var(--theme-color-disabled);\n font-weight: var(--theme-bold);\n text-transform: uppercase;\n}\n\n.simple-row[data-v-959f27bd] {\n border-top: 1px solid var(--theme-border-color);\n}\n.simple-row[data-v-959f27bd]:last-of-type {\n border-bottom: 1px solid var(--theme-border-color);\n}\n\n.simple-table[data-v-3b6be9e1] {\n display: table;\n width: 100%;\n margin: 1em 0;\n}\n\n.scalar-api-client__main__right {\n width: 50%;\n padding: 0 0 12px 12px;\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main__right {\n width: 100%;\n border-right: none;\n}\n}\n.scalar-api-client__main__right :deep(.scalar-copilot__header-button) {\n position: absolute;\n top: 6px;\n right: 12px;\n}\n\n.scalar-api-client {\n background: var(--theme-background-1);\n position: relative;\n height: 100%;\n overflow: hidden !important;\n display: flex;\n flex-direction: column;\n font-family: var(--theme-font);\n}\n@media screen and (max-width: 1000px) {\n.scalar-api-client {\n width: 100%;\n}\n}\n.scalar-api-client pre {\n font-family: var(--theme-font-code);\n}\n.scalar-api-client--post {\n --scalar-api-client-color: var(--theme-post-color);\n --scalar-api-client-background: var(--theme-post-background);\n}\n.scalar-api-client--delete {\n --scalar-api-client-color: var(--theme-delete-color);\n --scalar-api-client-background: var(--theme-delete-background);\n}\n.scalar-api-client--patch {\n --scalar-api-client-color: var(--theme-patch-color);\n --scalar-api-client-background: var(--theme-patch-background);\n}\n.scalar-api-client--get {\n --scalar-api-client-color: var(--theme-get-color);\n --scalar-api-client-background: var(--theme-get-background);\n}\n.scalar-api-client--put {\n --scalar-api-client-color: var(--theme-put-color);\n --scalar-api-client-background: var(--theme-put-background);\n}\n.scalar-api-client__mobile-navigation {\n padding: 12px 12px 0 12px;\n display: flex;\n font-size: var(--theme-small);\n color: var(--theme-color-2);\n font-weight: var(--theme-bold);\n}\n.scalar-api-client__mobile-navigation__toggle {\n appearance: none;\n margin-right: 9px;\n cursor: pointer;\n}\n.scalar-api-client__mobile-navigation--active {\n color: var(--theme-color-1);\n}\n.scalar-api-client__mobile-navigation--active:hover {\n cursor: pointer;\n}\n.scalar-api-client__main {\n display: flex;\n height: 100%;\n min-height: 0;\n background: var(--theme-background-1);\n border-top: 1px solid var(--theme-border-color);\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main {\n display: block;\n}\n}\n\n/** TODO: Consider to make a Column component */\n.scalar-api-client__main__content {\n padding: 12px;\n background: var(--theme-background-1);\n top: 0;\n position: sticky;\n z-index: 100;\n}\n.scalar-api-client__main__content label {\n font-size: var(--theme-small);\n color: var(--theme-color-1);\n font-weight: var(--theme-bold);\n display: flex;\n align-items: center;\n}\n@media screen and (max-width: 820px) {\n.scalar-api-client__main__content {\n padding: 0 0 12px 0;\n}\n.scalar-api-client__main__content label {\n display: none;\n}\n}\n.meta {\n display: flex;\n font-size: var(--theme-font-size-2);\n font-weight: var(--theme-font-size-2);\n color: var(--scalar-api-client-color2);\n}\n.meta-item svg {\n fill: var(--theme-color-ghost);\n height: 14px;\n width: 14px;\n margin-right: 6px;\n}\n.meta-item {\n display: flex;\n align-items: center;\n margin-right: 12px;\n white-space: nowrap;\n font-weight: var(--theme-bold);\n font-size: 12px;\n color: var(--theme-color-disabled);\n padding: 3px 0;\n}\n.meta-item__input {\n padding: 3px 0;\n background: transparent;\n width: 100%;\n margin-right: 0;\n}\n.types {\n margin: auto;\n width: 580px;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-flow: wrap;\n}\n.types-heading {\n width: 100%;\n text-align: center;\n}\n.types-heading b {\n font-size: 42px;\n}\n.types-heading p {\n margin-bottom: 20px;\n margin-top: 12px;\n font-size: 24px;\n}\n.scalar-api-client__empty-state {\n border: 1px dashed var(--theme-border-color);\n width: 100%;\n text-align: center;\n font-size: var(--theme-small);\n padding: 20px;\n}"));
7
7
  document.head.appendChild(elementStyle);
8
8
  }
9
9
  } catch (e) {
10
10
  console.error("vite-plugin-css-injected-by-js", e);
11
11
  }
12
12
  })();
13
- var __defProp = Object.defineProperty;
14
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15
- var __publicField = (obj, key, value) => {
16
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
17
- return value;
18
- };
19
- import { cloneVNode, h as h$2, Fragment, inject, provide, ref, onMounted, watchEffect, computed, defineComponent, onUnmounted, watch, Teleport, reactive, unref, shallowRef, nextTick, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, getCurrentInstance, openBlock, createElementBlock, createBlock, withCtx, createElementVNode, createVNode, normalizeClass, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode, renderSlot, renderList, createStaticVNode, withDirectives, withModifiers, vShow, vModelSelect, vModelText, vModelCheckbox, withKeys } from "vue";
13
+ import { cloneVNode, h as h$2, Fragment, inject, provide, ref, onMounted, watchEffect, computed, defineComponent, onUnmounted, watch, Teleport, reactive, unref, shallowRef, nextTick, getCurrentScope, onScopeDispose, toRef as toRef$1, readonly, customRef, getCurrentInstance, openBlock, createBlock, withCtx, createElementVNode, createVNode, normalizeClass, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode, renderSlot, createElementBlock, renderList, createStaticVNode, withDirectives, withModifiers, vShow, vModelSelect, vModelText, vModelCheckbox, withKeys } from "vue";
14
+ import { CodeMirror } from "@scalar/use-codemirror";
20
15
  import nunjucks from "nunjucks";
21
- import { java } from "@codemirror/lang-java";
22
- import { javascript } from "@codemirror/lang-javascript";
23
- import { json } from "@codemirror/lang-json";
24
- import { python } from "@codemirror/lang-python";
25
- import { StreamLanguage } from "@codemirror/language";
26
- import { MatchDecorator, Decoration, ViewPlugin, EditorView, lineNumbers, keymap } from "@codemirror/view";
27
- import { useCodeMirror } from "@scalar/use-codemirror";
28
16
  function u$3(r2, n2, ...a2) {
29
17
  if (r2 in n2) {
30
18
  let e2 = n2[r2];
@@ -126,10 +114,10 @@ var l$1 = ((e2) => (e2[e2.Open = 1] = "Open", e2[e2.Closed = 2] = "Closed", e2[e
126
114
  function p$4() {
127
115
  return inject(n$2, null);
128
116
  }
129
- function c$4(o2) {
117
+ function c$3(o2) {
130
118
  provide(n$2, o2);
131
119
  }
132
- function r$2(t2, e2) {
120
+ function r$1(t2, e2) {
133
121
  if (t2)
134
122
  return t2;
135
123
  let n2 = e2 != null ? e2 : "button";
@@ -137,9 +125,9 @@ function r$2(t2, e2) {
137
125
  return "button";
138
126
  }
139
127
  function b$1(t2, e2) {
140
- let n2 = ref(r$2(t2.value.type, t2.value.as));
128
+ let n2 = ref(r$1(t2.value.type, t2.value.as));
141
129
  return onMounted(() => {
142
- n2.value = r$2(t2.value.type, t2.value.as);
130
+ n2.value = r$1(t2.value.type, t2.value.as);
143
131
  }), watchEffect(() => {
144
132
  var o$12;
145
133
  n2.value || o(e2) && o(e2) instanceof HTMLButtonElement && !((o$12 = o(e2)) != null && o$12.hasAttribute("type")) && (n2.value = "button");
@@ -172,9 +160,9 @@ class s {
172
160
  return typeof window == "undefined" || typeof document == "undefined" ? "server" : "client";
173
161
  }
174
162
  }
175
- let c$3 = new s();
163
+ let c$2 = new s();
176
164
  function m$2(r2) {
177
- if (c$3.isServer)
165
+ if (c$2.isServer)
178
166
  return null;
179
167
  if (r2 instanceof Node)
180
168
  return r2.ownerDocument;
@@ -185,20 +173,20 @@ function m$2(r2) {
185
173
  }
186
174
  return document;
187
175
  }
188
- let c$2 = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e2) => `${e2}:not([tabindex='-1'])`).join(",");
176
+ let c$1 = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e2) => `${e2}:not([tabindex='-1'])`).join(",");
189
177
  var N$1 = ((n2) => (n2[n2.First = 1] = "First", n2[n2.Previous = 2] = "Previous", n2[n2.Next = 4] = "Next", n2[n2.Last = 8] = "Last", n2[n2.WrapAround = 16] = "WrapAround", n2[n2.NoScroll = 32] = "NoScroll", n2))(N$1 || {}), T = ((o2) => (o2[o2.Error = 0] = "Error", o2[o2.Overflow = 1] = "Overflow", o2[o2.Success = 2] = "Success", o2[o2.Underflow = 3] = "Underflow", o2))(T || {}), F$2 = ((t2) => (t2[t2.Previous = -1] = "Previous", t2[t2.Next = 1] = "Next", t2))(F$2 || {});
190
178
  function E$4(e2 = document.body) {
191
- return e2 == null ? [] : Array.from(e2.querySelectorAll(c$2)).sort((r2, t2) => Math.sign((r2.tabIndex || Number.MAX_SAFE_INTEGER) - (t2.tabIndex || Number.MAX_SAFE_INTEGER)));
179
+ return e2 == null ? [] : Array.from(e2.querySelectorAll(c$1)).sort((r2, t2) => Math.sign((r2.tabIndex || Number.MAX_SAFE_INTEGER) - (t2.tabIndex || Number.MAX_SAFE_INTEGER)));
192
180
  }
193
181
  var h$1 = ((t2) => (t2[t2.Strict = 0] = "Strict", t2[t2.Loose = 1] = "Loose", t2))(h$1 || {});
194
182
  function w$1(e2, r2 = 0) {
195
183
  var t2;
196
184
  return e2 === ((t2 = m$2(e2)) == null ? void 0 : t2.body) ? false : u$3(r2, { [0]() {
197
- return e2.matches(c$2);
185
+ return e2.matches(c$1);
198
186
  }, [1]() {
199
187
  let l2 = e2;
200
188
  for (; l2 !== null; ) {
201
- if (l2.matches(c$2))
189
+ if (l2.matches(c$1))
202
190
  return true;
203
191
  l2 = l2.parentElement;
204
192
  }
@@ -266,12 +254,12 @@ function P$1(e2, r2, { sorted: t2 = true, relativeTo: l2 = null, skipElements: o
266
254
  return r2 & 6 && I(u2) && u2.select(), 2;
267
255
  }
268
256
  function u$2(e2, t2, n2) {
269
- c$3.isServer || watchEffect((o2) => {
257
+ c$2.isServer || watchEffect((o2) => {
270
258
  document.addEventListener(e2, t2, n2), o2(() => document.removeEventListener(e2, t2, n2));
271
259
  });
272
260
  }
273
261
  function w(e2, n2, t2) {
274
- c$3.isServer || watchEffect((o2) => {
262
+ c$2.isServer || watchEffect((o2) => {
275
263
  window.addEventListener(e2, n2, t2), o2(() => window.removeEventListener(e2, n2, t2));
276
264
  });
277
265
  }
@@ -312,7 +300,7 @@ let f$1 = defineComponent({ name: "Hidden", props: { as: { type: [Object, String
312
300
  function t$3() {
313
301
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
314
302
  }
315
- function r$1() {
303
+ function r() {
316
304
  let n2 = [], s2 = { addEventListener(e2, t2, i2, a2) {
317
305
  return e2.addEventListener(t2, i2, a2), s2.add(() => e2.removeEventListener(t2, i2, a2));
318
306
  }, requestAnimationFrame(...e2) {
@@ -331,7 +319,7 @@ function r$1() {
331
319
  Object.assign(e2.style, { [t2]: a2 });
332
320
  });
333
321
  }, group(e2) {
334
- let t2 = r$1();
322
+ let t2 = r();
335
323
  return e2(t2), this.add(() => t2.dispose());
336
324
  }, add(e2) {
337
325
  return n2.push(e2), () => {
@@ -354,7 +342,7 @@ function n() {
354
342
  }), o2;
355
343
  }
356
344
  function E$3(n2, e2, o2, r2) {
357
- c$3.isServer || watchEffect((t2) => {
345
+ c$2.isServer || watchEffect((t2) => {
358
346
  n2 = n2 != null ? n2 : window, n2.addEventListener(e2, o2, r2), t2(() => n2.removeEventListener(e2, o2, r2));
359
347
  });
360
348
  }
@@ -647,7 +635,7 @@ function a$1(o2, r2) {
647
635
  i2 && (t2 = i2, n2.forEach((c2) => c2()));
648
636
  } };
649
637
  }
650
- function c$1() {
638
+ function c() {
651
639
  let o2;
652
640
  return { before({ doc: e2 }) {
653
641
  var l2;
@@ -700,14 +688,14 @@ function m(e2) {
700
688
  }
701
689
  let a = a$1(() => /* @__PURE__ */ new Map(), { PUSH(e2, n2) {
702
690
  var o2;
703
- let t2 = (o2 = this.get(e2)) != null ? o2 : { doc: e2, count: 0, d: r$1(), meta: /* @__PURE__ */ new Set() };
691
+ let t2 = (o2 = this.get(e2)) != null ? o2 : { doc: e2, count: 0, d: r(), meta: /* @__PURE__ */ new Set() };
704
692
  return t2.count++, t2.meta.add(n2), this.set(e2, t2), this;
705
693
  }, POP(e2, n2) {
706
694
  let t2 = this.get(e2);
707
695
  return t2 && (t2.count--, t2.meta.delete(n2)), this;
708
696
  }, SCROLL_PREVENT({ doc: e2, d: n2, meta: t2 }) {
709
- let o2 = { doc: e2, d: n2, meta: m(t2) }, c2 = [p$1(), c$1(), l()];
710
- c2.forEach(({ before: r2 }) => r2 == null ? void 0 : r2(o2)), c2.forEach(({ after: r2 }) => r2 == null ? void 0 : r2(o2));
697
+ let o2 = { doc: e2, d: n2, meta: m(t2) }, c$12 = [p$1(), c(), l()];
698
+ c$12.forEach(({ before: r2 }) => r2 == null ? void 0 : r2(o2)), c$12.forEach(({ after: r2 }) => r2 == null ? void 0 : r2(o2));
711
699
  }, SCROLL_ALLOW({ d: e2 }) {
712
700
  e2.dispose();
713
701
  }, TEARDOWN({ doc: e2 }) {
@@ -893,7 +881,7 @@ let Q = defineComponent({ name: "Disclosure", props: { as: { type: [Object, Stri
893
881
  let a2 = (() => l2 ? l2 instanceof HTMLElement ? l2 : l2.value instanceof HTMLElement ? o(l2) : o(s2.button) : o(s2.button))();
894
882
  a2 == null || a2.focus();
895
883
  } };
896
- return provide(x, s2), c$4(computed(() => u$3(u2.value, { [0]: l$1.Open, [1]: l$1.Closed }))), () => {
884
+ return provide(x, s2), c$3(computed(() => u$3(u2.value, { [0]: l$1.Open, [1]: l$1.Closed }))), () => {
897
885
  let { defaultOpen: l2, ...a2 } = t2, c2 = { open: u2.value === 0, close: s2.close };
898
886
  return H$1({ theirProps: a2, ourProps: {}, slot: c2, slots: r2, attrs: o$12, name: "Disclosure" });
899
887
  };
@@ -4139,14 +4127,14 @@ const freezeMethods = (obj) => {
4139
4127
  }
4140
4128
  });
4141
4129
  };
4142
- const toObjectSet = (arrayOrString, delimiter2) => {
4130
+ const toObjectSet = (arrayOrString, delimiter) => {
4143
4131
  const obj = {};
4144
- const define2 = (arr) => {
4132
+ const define = (arr) => {
4145
4133
  arr.forEach((value) => {
4146
4134
  obj[value] = true;
4147
4135
  });
4148
4136
  };
4149
- isArray(arrayOrString) ? define2(arrayOrString) : define2(String(arrayOrString).split(delimiter2));
4137
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
4150
4138
  return obj;
4151
4139
  };
4152
4140
  const noop = () => {
@@ -4795,8 +4783,8 @@ const parseHeaders = (rawHeaders) => {
4795
4783
  return parsed;
4796
4784
  };
4797
4785
  const $internals = Symbol("internals");
4798
- function normalizeHeader(header2) {
4799
- return header2 && String(header2).trim().toLowerCase();
4786
+ function normalizeHeader(header) {
4787
+ return header && String(header).trim().toLowerCase();
4800
4788
  }
4801
4789
  function normalizeValue(value) {
4802
4790
  if (value === false || value == null) {
@@ -4814,12 +4802,12 @@ function parseTokens(str) {
4814
4802
  return tokens;
4815
4803
  }
4816
4804
  const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
4817
- function matchHeaderValue(context, value, header2, filter2, isHeaderNameFilter) {
4805
+ function matchHeaderValue(context, value, header, filter2, isHeaderNameFilter) {
4818
4806
  if (utils.isFunction(filter2)) {
4819
- return filter2.call(this, value, header2);
4807
+ return filter2.call(this, value, header);
4820
4808
  }
4821
4809
  if (isHeaderNameFilter) {
4822
- value = header2;
4810
+ value = header;
4823
4811
  }
4824
4812
  if (!utils.isString(value))
4825
4813
  return;
@@ -4830,17 +4818,17 @@ function matchHeaderValue(context, value, header2, filter2, isHeaderNameFilter)
4830
4818
  return filter2.test(value);
4831
4819
  }
4832
4820
  }
4833
- function formatHeader(header2) {
4834
- return header2.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
4821
+ function formatHeader(header) {
4822
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w2, char, str) => {
4835
4823
  return char.toUpperCase() + str;
4836
4824
  });
4837
4825
  }
4838
- function buildAccessors(obj, header2) {
4839
- const accessorName = utils.toCamelCase(" " + header2);
4826
+ function buildAccessors(obj, header) {
4827
+ const accessorName = utils.toCamelCase(" " + header);
4840
4828
  ["get", "set", "has"].forEach((methodName) => {
4841
4829
  Object.defineProperty(obj, methodName + accessorName, {
4842
4830
  value: function(arg1, arg2, arg3) {
4843
- return this[methodName].call(this, header2, arg1, arg2, arg3);
4831
+ return this[methodName].call(this, header, arg1, arg2, arg3);
4844
4832
  },
4845
4833
  configurable: true
4846
4834
  });
@@ -4850,7 +4838,7 @@ class AxiosHeaders {
4850
4838
  constructor(headers) {
4851
4839
  headers && this.set(headers);
4852
4840
  }
4853
- set(header2, valueOrRewrite, rewrite) {
4841
+ set(header, valueOrRewrite, rewrite) {
4854
4842
  const self2 = this;
4855
4843
  function setHeader(_value, _header, _rewrite) {
4856
4844
  const lHeader = normalizeHeader(_header);
@@ -4863,19 +4851,19 @@ class AxiosHeaders {
4863
4851
  }
4864
4852
  }
4865
4853
  const setHeaders = (headers, _rewrite) => utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
4866
- if (utils.isPlainObject(header2) || header2 instanceof this.constructor) {
4867
- setHeaders(header2, valueOrRewrite);
4868
- } else if (utils.isString(header2) && (header2 = header2.trim()) && !isValidHeaderName(header2)) {
4869
- setHeaders(parseHeaders(header2), valueOrRewrite);
4854
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
4855
+ setHeaders(header, valueOrRewrite);
4856
+ } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
4857
+ setHeaders(parseHeaders(header), valueOrRewrite);
4870
4858
  } else {
4871
- header2 != null && setHeader(valueOrRewrite, header2, rewrite);
4859
+ header != null && setHeader(valueOrRewrite, header, rewrite);
4872
4860
  }
4873
4861
  return this;
4874
4862
  }
4875
- get(header2, parser) {
4876
- header2 = normalizeHeader(header2);
4877
- if (header2) {
4878
- const key = utils.findKey(this, header2);
4863
+ get(header, parser) {
4864
+ header = normalizeHeader(header);
4865
+ if (header) {
4866
+ const key = utils.findKey(this, header);
4879
4867
  if (key) {
4880
4868
  const value = this[key];
4881
4869
  if (!parser) {
@@ -4894,15 +4882,15 @@ class AxiosHeaders {
4894
4882
  }
4895
4883
  }
4896
4884
  }
4897
- has(header2, matcher) {
4898
- header2 = normalizeHeader(header2);
4899
- if (header2) {
4900
- const key = utils.findKey(this, header2);
4885
+ has(header, matcher) {
4886
+ header = normalizeHeader(header);
4887
+ if (header) {
4888
+ const key = utils.findKey(this, header);
4901
4889
  return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
4902
4890
  }
4903
4891
  return false;
4904
4892
  }
4905
- delete(header2, matcher) {
4893
+ delete(header, matcher) {
4906
4894
  const self2 = this;
4907
4895
  let deleted = false;
4908
4896
  function deleteHeader(_header) {
@@ -4915,10 +4903,10 @@ class AxiosHeaders {
4915
4903
  }
4916
4904
  }
4917
4905
  }
4918
- if (utils.isArray(header2)) {
4919
- header2.forEach(deleteHeader);
4906
+ if (utils.isArray(header)) {
4907
+ header.forEach(deleteHeader);
4920
4908
  } else {
4921
- deleteHeader(header2);
4909
+ deleteHeader(header);
4922
4910
  }
4923
4911
  return deleted;
4924
4912
  }
@@ -4938,16 +4926,16 @@ class AxiosHeaders {
4938
4926
  normalize(format3) {
4939
4927
  const self2 = this;
4940
4928
  const headers = {};
4941
- utils.forEach(this, (value, header2) => {
4942
- const key = utils.findKey(headers, header2);
4929
+ utils.forEach(this, (value, header) => {
4930
+ const key = utils.findKey(headers, header);
4943
4931
  if (key) {
4944
4932
  self2[key] = normalizeValue(value);
4945
- delete self2[header2];
4933
+ delete self2[header];
4946
4934
  return;
4947
4935
  }
4948
- const normalized = format3 ? formatHeader(header2) : String(header2).trim();
4949
- if (normalized !== header2) {
4950
- delete self2[header2];
4936
+ const normalized = format3 ? formatHeader(header) : String(header).trim();
4937
+ if (normalized !== header) {
4938
+ delete self2[header];
4951
4939
  }
4952
4940
  self2[normalized] = normalizeValue(value);
4953
4941
  headers[normalized] = true;
@@ -4959,8 +4947,8 @@ class AxiosHeaders {
4959
4947
  }
4960
4948
  toJSON(asStrings) {
4961
4949
  const obj = /* @__PURE__ */ Object.create(null);
4962
- utils.forEach(this, (value, header2) => {
4963
- value != null && value !== false && (obj[header2] = asStrings && utils.isArray(value) ? value.join(", ") : value);
4950
+ utils.forEach(this, (value, header) => {
4951
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(", ") : value);
4964
4952
  });
4965
4953
  return obj;
4966
4954
  }
@@ -4968,7 +4956,7 @@ class AxiosHeaders {
4968
4956
  return Object.entries(this.toJSON())[Symbol.iterator]();
4969
4957
  }
4970
4958
  toString() {
4971
- return Object.entries(this.toJSON()).map(([header2, value]) => header2 + ": " + value).join("\n");
4959
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
4972
4960
  }
4973
4961
  get [Symbol.toStringTag]() {
4974
4962
  return "AxiosHeaders";
@@ -4981,7 +4969,7 @@ class AxiosHeaders {
4981
4969
  targets.forEach((target) => computed2.set(target));
4982
4970
  return computed2;
4983
4971
  }
4984
- static accessor(header2) {
4972
+ static accessor(header) {
4985
4973
  const internals = this[$internals] = this[$internals] = {
4986
4974
  accessors: {}
4987
4975
  };
@@ -4994,7 +4982,7 @@ class AxiosHeaders {
4994
4982
  accessors[lHeader] = true;
4995
4983
  }
4996
4984
  }
4997
- utils.isArray(header2) ? header2.forEach(defineAccessor) : defineAccessor(header2);
4985
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
4998
4986
  return this;
4999
4987
  }
5000
4988
  }
@@ -5144,7 +5132,7 @@ function speedometer(samplesCount, min) {
5144
5132
  let tail = 0;
5145
5133
  let firstSampleTS;
5146
5134
  min = min !== void 0 ? min : 1e3;
5147
- return function push2(chunkLength) {
5135
+ return function push(chunkLength) {
5148
5136
  const now = Date.now();
5149
5137
  const startedAt = timestamps[tail];
5150
5138
  if (!firstSampleTS) {
@@ -5627,13 +5615,13 @@ class Axios {
5627
5615
  let i2 = 0;
5628
5616
  let len;
5629
5617
  if (!synchronousRequestInterceptors) {
5630
- const chain2 = [dispatchRequest.bind(this), void 0];
5631
- chain2.unshift.apply(chain2, requestInterceptorChain);
5632
- chain2.push.apply(chain2, responseInterceptorChain);
5633
- len = chain2.length;
5618
+ const chain = [dispatchRequest.bind(this), void 0];
5619
+ chain.unshift.apply(chain, requestInterceptorChain);
5620
+ chain.push.apply(chain, responseInterceptorChain);
5621
+ len = chain.length;
5634
5622
  promise = Promise.resolve(config);
5635
5623
  while (i2 < len) {
5636
- promise = promise.then(chain2[i2++], chain2[i2++]);
5624
+ promise = promise.then(chain[i2++], chain[i2++]);
5637
5625
  }
5638
5626
  return promise;
5639
5627
  }
@@ -5928,8 +5916,8 @@ async function sendRequest(request, proxyUrl) {
5928
5916
  const auth = {
5929
5917
  type: "none"
5930
5918
  };
5931
- const variables2 = mapFromArray(request.parameters, "name", "value");
5932
- const renderedURL = templateEngine.renderString(fullUrl, variables2);
5919
+ const variables = mapFromArray(request.parameters, "name", "value");
5920
+ const renderedURL = templateEngine.renderString(fullUrl, variables);
5933
5921
  const startTime = Date.now();
5934
5922
  const requestOptions = {
5935
5923
  method,
@@ -5964,3884 +5952,6 @@ async function sendRequest(request, proxyUrl) {
5964
5952
  responseId: nanoid()
5965
5953
  } : null;
5966
5954
  }
5967
- function Context$2(indented, column, type, info, align, prev) {
5968
- this.indented = indented;
5969
- this.column = column;
5970
- this.type = type;
5971
- this.info = info;
5972
- this.align = align;
5973
- this.prev = prev;
5974
- }
5975
- function pushContext$2(state2, col, type, info) {
5976
- var indent = state2.indented;
5977
- if (state2.context && state2.context.type == "statement" && type != "statement")
5978
- indent = state2.context.indented;
5979
- return state2.context = new Context$2(indent, col, type, info, null, state2.context);
5980
- }
5981
- function popContext$2(state2) {
5982
- var t2 = state2.context.type;
5983
- if (t2 == ")" || t2 == "]" || t2 == "}")
5984
- state2.indented = state2.context.indented;
5985
- return state2.context = state2.context.prev;
5986
- }
5987
- function typeBefore(stream, state2, pos) {
5988
- if (state2.prevToken == "variable" || state2.prevToken == "type")
5989
- return true;
5990
- if (/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(stream.string.slice(0, pos)))
5991
- return true;
5992
- if (state2.typeAtEndOfLine && stream.column() == stream.indentation())
5993
- return true;
5994
- }
5995
- function isTopScope(context) {
5996
- for (; ; ) {
5997
- if (!context || context.type == "top")
5998
- return true;
5999
- if (context.type == "}" && context.prev.info != "namespace")
6000
- return false;
6001
- context = context.prev;
6002
- }
6003
- }
6004
- function clike(parserConfig) {
6005
- var statementIndentUnit = parserConfig.statementIndentUnit, dontAlignCalls = parserConfig.dontAlignCalls, keywords2 = parserConfig.keywords || {}, types2 = parserConfig.types || {}, builtin = parserConfig.builtin || {}, blockKeywords = parserConfig.blockKeywords || {}, defKeywords = parserConfig.defKeywords || {}, atoms2 = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfig.multiLineStrings, indentStatements = parserConfig.indentStatements !== false, indentSwitch = parserConfig.indentSwitch !== false, namespaceSeparator = parserConfig.namespaceSeparator, isPunctuationChar = parserConfig.isPunctuationChar || /[\[\]{}\(\),;\:\.]/, numberStart = parserConfig.numberStart || /[\d\.]/, number = parserConfig.number || /^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i, isOperatorChar2 = parserConfig.isOperatorChar || /[+\-*&%=<>!?|\/]/, isIdentifierChar = parserConfig.isIdentifierChar || /[\w\$_\xa1-\uffff]/, isReservedIdentifier = parserConfig.isReservedIdentifier || false;
6006
- var curPunc2, isDefKeyword;
6007
- function tokenBase2(stream, state2) {
6008
- var ch = stream.next();
6009
- if (hooks[ch]) {
6010
- var result = hooks[ch](stream, state2);
6011
- if (result !== false)
6012
- return result;
6013
- }
6014
- if (ch == '"' || ch == "'") {
6015
- state2.tokenize = tokenString2(ch);
6016
- return state2.tokenize(stream, state2);
6017
- }
6018
- if (numberStart.test(ch)) {
6019
- stream.backUp(1);
6020
- if (stream.match(number))
6021
- return "number";
6022
- stream.next();
6023
- }
6024
- if (isPunctuationChar.test(ch)) {
6025
- curPunc2 = ch;
6026
- return null;
6027
- }
6028
- if (ch == "/") {
6029
- if (stream.eat("*")) {
6030
- state2.tokenize = tokenComment2;
6031
- return tokenComment2(stream, state2);
6032
- }
6033
- if (stream.eat("/")) {
6034
- stream.skipToEnd();
6035
- return "comment";
6036
- }
6037
- }
6038
- if (isOperatorChar2.test(ch)) {
6039
- while (!stream.match(/^\/[\/*]/, false) && stream.eat(isOperatorChar2)) {
6040
- }
6041
- return "operator";
6042
- }
6043
- stream.eatWhile(isIdentifierChar);
6044
- if (namespaceSeparator)
6045
- while (stream.match(namespaceSeparator))
6046
- stream.eatWhile(isIdentifierChar);
6047
- var cur = stream.current();
6048
- if (contains(keywords2, cur)) {
6049
- if (contains(blockKeywords, cur))
6050
- curPunc2 = "newstatement";
6051
- if (contains(defKeywords, cur))
6052
- isDefKeyword = true;
6053
- return "keyword";
6054
- }
6055
- if (contains(types2, cur))
6056
- return "type";
6057
- if (contains(builtin, cur) || isReservedIdentifier && isReservedIdentifier(cur)) {
6058
- if (contains(blockKeywords, cur))
6059
- curPunc2 = "newstatement";
6060
- return "builtin";
6061
- }
6062
- if (contains(atoms2, cur))
6063
- return "atom";
6064
- return "variable";
6065
- }
6066
- function tokenString2(quote) {
6067
- return function(stream, state2) {
6068
- var escaped = false, next, end = false;
6069
- while ((next = stream.next()) != null) {
6070
- if (next == quote && !escaped) {
6071
- end = true;
6072
- break;
6073
- }
6074
- escaped = !escaped && next == "\\";
6075
- }
6076
- if (end || !(escaped || multiLineStrings))
6077
- state2.tokenize = null;
6078
- return "string";
6079
- };
6080
- }
6081
- function tokenComment2(stream, state2) {
6082
- var maybeEnd = false, ch;
6083
- while (ch = stream.next()) {
6084
- if (ch == "/" && maybeEnd) {
6085
- state2.tokenize = null;
6086
- break;
6087
- }
6088
- maybeEnd = ch == "*";
6089
- }
6090
- return "comment";
6091
- }
6092
- function maybeEOL(stream, state2) {
6093
- if (parserConfig.typeFirstDefinitions && stream.eol() && isTopScope(state2.context))
6094
- state2.typeAtEndOfLine = typeBefore(stream, state2, stream.pos);
6095
- }
6096
- return {
6097
- name: parserConfig.name,
6098
- startState: function(indentUnit) {
6099
- return {
6100
- tokenize: null,
6101
- context: new Context$2(-indentUnit, 0, "top", null, false),
6102
- indented: 0,
6103
- startOfLine: true,
6104
- prevToken: null
6105
- };
6106
- },
6107
- token: function(stream, state2) {
6108
- var ctx = state2.context;
6109
- if (stream.sol()) {
6110
- if (ctx.align == null)
6111
- ctx.align = false;
6112
- state2.indented = stream.indentation();
6113
- state2.startOfLine = true;
6114
- }
6115
- if (stream.eatSpace()) {
6116
- maybeEOL(stream, state2);
6117
- return null;
6118
- }
6119
- curPunc2 = isDefKeyword = null;
6120
- var style = (state2.tokenize || tokenBase2)(stream, state2);
6121
- if (style == "comment" || style == "meta")
6122
- return style;
6123
- if (ctx.align == null)
6124
- ctx.align = true;
6125
- if (curPunc2 == ";" || curPunc2 == ":" || curPunc2 == "," && stream.match(/^\s*(?:\/\/.*)?$/, false))
6126
- while (state2.context.type == "statement")
6127
- popContext$2(state2);
6128
- else if (curPunc2 == "{")
6129
- pushContext$2(state2, stream.column(), "}");
6130
- else if (curPunc2 == "[")
6131
- pushContext$2(state2, stream.column(), "]");
6132
- else if (curPunc2 == "(")
6133
- pushContext$2(state2, stream.column(), ")");
6134
- else if (curPunc2 == "}") {
6135
- while (ctx.type == "statement")
6136
- ctx = popContext$2(state2);
6137
- if (ctx.type == "}")
6138
- ctx = popContext$2(state2);
6139
- while (ctx.type == "statement")
6140
- ctx = popContext$2(state2);
6141
- } else if (curPunc2 == ctx.type)
6142
- popContext$2(state2);
6143
- else if (indentStatements && ((ctx.type == "}" || ctx.type == "top") && curPunc2 != ";" || ctx.type == "statement" && curPunc2 == "newstatement")) {
6144
- pushContext$2(state2, stream.column(), "statement", stream.current());
6145
- }
6146
- if (style == "variable" && (state2.prevToken == "def" || parserConfig.typeFirstDefinitions && typeBefore(stream, state2, stream.start) && isTopScope(state2.context) && stream.match(/^\s*\(/, false)))
6147
- style = "def";
6148
- if (hooks.token) {
6149
- var result = hooks.token(stream, state2, style);
6150
- if (result !== void 0)
6151
- style = result;
6152
- }
6153
- if (style == "def" && parserConfig.styleDefs === false)
6154
- style = "variable";
6155
- state2.startOfLine = false;
6156
- state2.prevToken = isDefKeyword ? "def" : style || curPunc2;
6157
- maybeEOL(stream, state2);
6158
- return style;
6159
- },
6160
- indent: function(state2, textAfter, context) {
6161
- if (state2.tokenize != tokenBase2 && state2.tokenize != null || state2.typeAtEndOfLine && isTopScope(state2.context))
6162
- return null;
6163
- var ctx = state2.context, firstChar = textAfter && textAfter.charAt(0);
6164
- var closing2 = firstChar == ctx.type;
6165
- if (ctx.type == "statement" && firstChar == "}")
6166
- ctx = ctx.prev;
6167
- if (parserConfig.dontIndentStatements)
6168
- while (ctx.type == "statement" && parserConfig.dontIndentStatements.test(ctx.info))
6169
- ctx = ctx.prev;
6170
- if (hooks.indent) {
6171
- var hook = hooks.indent(state2, ctx, textAfter, context.unit);
6172
- if (typeof hook == "number")
6173
- return hook;
6174
- }
6175
- var switchBlock = ctx.prev && ctx.prev.info == "switch";
6176
- if (parserConfig.allmanIndentation && /[{(]/.test(firstChar)) {
6177
- while (ctx.type != "top" && ctx.type != "}")
6178
- ctx = ctx.prev;
6179
- return ctx.indented;
6180
- }
6181
- if (ctx.type == "statement")
6182
- return ctx.indented + (firstChar == "{" ? 0 : statementIndentUnit || context.unit);
6183
- if (ctx.align && (!dontAlignCalls || ctx.type != ")"))
6184
- return ctx.column + (closing2 ? 0 : 1);
6185
- if (ctx.type == ")" && !closing2)
6186
- return ctx.indented + (statementIndentUnit || context.unit);
6187
- return ctx.indented + (closing2 ? 0 : context.unit) + (!closing2 && switchBlock && !/^(?:case|default)\b/.test(textAfter) ? context.unit : 0);
6188
- },
6189
- languageData: {
6190
- indentOnInput: indentSwitch ? /^\s*(?:case .*?:|default:|\{\}?|\})$/ : /^\s*[{}]$/,
6191
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
6192
- autocomplete: Object.keys(keywords2).concat(Object.keys(types2)).concat(Object.keys(builtin)).concat(Object.keys(atoms2)),
6193
- ...parserConfig.languageData
6194
- }
6195
- };
6196
- }
6197
- function words$1(str) {
6198
- var obj = {}, words2 = str.split(" ");
6199
- for (var i2 = 0; i2 < words2.length; ++i2)
6200
- obj[words2[i2]] = true;
6201
- return obj;
6202
- }
6203
- function contains(words2, word) {
6204
- if (typeof words2 === "function") {
6205
- return words2(word);
6206
- } else {
6207
- return words2.propertyIsEnumerable(word);
6208
- }
6209
- }
6210
- var cKeywords = "auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran";
6211
- var cppKeywords = "alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq";
6212
- var objCKeywords = "bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available";
6213
- var objCBuiltins = "FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT";
6214
- var basicCTypes = words$1("int long char short double float unsigned signed void bool");
6215
- var basicObjCTypes = words$1("SEL instancetype id Class Protocol BOOL");
6216
- function cTypes(identifier2) {
6217
- return contains(basicCTypes, identifier2) || /.+_t$/.test(identifier2);
6218
- }
6219
- function objCTypes(identifier2) {
6220
- return cTypes(identifier2) || contains(basicObjCTypes, identifier2);
6221
- }
6222
- var cBlockKeywords = "case do else for if switch while struct enum union";
6223
- var cDefKeywords = "struct enum union";
6224
- function cppHook(stream, state2) {
6225
- if (!state2.startOfLine)
6226
- return false;
6227
- for (var ch, next = null; ch = stream.peek(); ) {
6228
- if (ch == "\\" && stream.match(/^.$/)) {
6229
- next = cppHook;
6230
- break;
6231
- } else if (ch == "/" && stream.match(/^\/[\/\*]/, false)) {
6232
- break;
6233
- }
6234
- stream.next();
6235
- }
6236
- state2.tokenize = next;
6237
- return "meta";
6238
- }
6239
- function pointerHook(_stream, state2) {
6240
- if (state2.prevToken == "type")
6241
- return "type";
6242
- return false;
6243
- }
6244
- function cIsReservedIdentifier(token) {
6245
- if (!token || token.length < 2)
6246
- return false;
6247
- if (token[0] != "_")
6248
- return false;
6249
- return token[1] == "_" || token[1] !== token[1].toLowerCase();
6250
- }
6251
- function cpp14Literal(stream) {
6252
- stream.eatWhile(/[\w\.']/);
6253
- return "number";
6254
- }
6255
- function cpp11StringHook(stream, state2) {
6256
- stream.backUp(1);
6257
- if (stream.match(/^(?:R|u8R|uR|UR|LR)/)) {
6258
- var match = stream.match(/^"([^\s\\()]{0,16})\(/);
6259
- if (!match) {
6260
- return false;
6261
- }
6262
- state2.cpp11RawStringDelim = match[1];
6263
- state2.tokenize = tokenRawString;
6264
- return tokenRawString(stream, state2);
6265
- }
6266
- if (stream.match(/^(?:u8|u|U|L)/)) {
6267
- if (stream.match(
6268
- /^["']/,
6269
- /* eat */
6270
- false
6271
- )) {
6272
- return "string";
6273
- }
6274
- return false;
6275
- }
6276
- stream.next();
6277
- return false;
6278
- }
6279
- function cppLooksLikeConstructor(word) {
6280
- var lastTwo = /(\w+)::~?(\w+)$/.exec(word);
6281
- return lastTwo && lastTwo[1] == lastTwo[2];
6282
- }
6283
- function tokenAtString(stream, state2) {
6284
- var next;
6285
- while ((next = stream.next()) != null) {
6286
- if (next == '"' && !stream.eat('"')) {
6287
- state2.tokenize = null;
6288
- break;
6289
- }
6290
- }
6291
- return "string";
6292
- }
6293
- function tokenRawString(stream, state2) {
6294
- var delim = state2.cpp11RawStringDelim.replace(/[^\w\s]/g, "\\$&");
6295
- var match = stream.match(new RegExp(".*?\\)" + delim + '"'));
6296
- if (match)
6297
- state2.tokenize = null;
6298
- else
6299
- stream.skipToEnd();
6300
- return "string";
6301
- }
6302
- const c = clike({
6303
- name: "c",
6304
- keywords: words$1(cKeywords),
6305
- types: cTypes,
6306
- blockKeywords: words$1(cBlockKeywords),
6307
- defKeywords: words$1(cDefKeywords),
6308
- typeFirstDefinitions: true,
6309
- atoms: words$1("NULL true false"),
6310
- isReservedIdentifier: cIsReservedIdentifier,
6311
- hooks: {
6312
- "#": cppHook,
6313
- "*": pointerHook
6314
- }
6315
- });
6316
- clike({
6317
- name: "cpp",
6318
- keywords: words$1(cKeywords + " " + cppKeywords),
6319
- types: cTypes,
6320
- blockKeywords: words$1(cBlockKeywords + " class try catch"),
6321
- defKeywords: words$1(cDefKeywords + " class namespace"),
6322
- typeFirstDefinitions: true,
6323
- atoms: words$1("true false NULL nullptr"),
6324
- dontIndentStatements: /^template$/,
6325
- isIdentifierChar: /[\w\$_~\xa1-\uffff]/,
6326
- isReservedIdentifier: cIsReservedIdentifier,
6327
- hooks: {
6328
- "#": cppHook,
6329
- "*": pointerHook,
6330
- "u": cpp11StringHook,
6331
- "U": cpp11StringHook,
6332
- "L": cpp11StringHook,
6333
- "R": cpp11StringHook,
6334
- "0": cpp14Literal,
6335
- "1": cpp14Literal,
6336
- "2": cpp14Literal,
6337
- "3": cpp14Literal,
6338
- "4": cpp14Literal,
6339
- "5": cpp14Literal,
6340
- "6": cpp14Literal,
6341
- "7": cpp14Literal,
6342
- "8": cpp14Literal,
6343
- "9": cpp14Literal,
6344
- token: function(stream, state2, style) {
6345
- if (style == "variable" && stream.peek() == "(" && (state2.prevToken == ";" || state2.prevToken == null || state2.prevToken == "}") && cppLooksLikeConstructor(stream.current()))
6346
- return "def";
6347
- }
6348
- },
6349
- namespaceSeparator: "::"
6350
- });
6351
- clike({
6352
- name: "java",
6353
- keywords: words$1("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),
6354
- types: words$1("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),
6355
- blockKeywords: words$1("catch class do else finally for if switch try while"),
6356
- defKeywords: words$1("class interface enum @interface"),
6357
- typeFirstDefinitions: true,
6358
- atoms: words$1("true false null"),
6359
- number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
6360
- hooks: {
6361
- "@": function(stream) {
6362
- if (stream.match("interface", false))
6363
- return false;
6364
- stream.eatWhile(/[\w\$_]/);
6365
- return "meta";
6366
- },
6367
- '"': function(stream, state2) {
6368
- if (!stream.match(/""$/))
6369
- return false;
6370
- state2.tokenize = tokenTripleString;
6371
- return state2.tokenize(stream, state2);
6372
- }
6373
- }
6374
- });
6375
- const csharp = clike({
6376
- name: "csharp",
6377
- keywords: words$1("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),
6378
- types: words$1("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),
6379
- blockKeywords: words$1("catch class do else finally for foreach if struct switch try while"),
6380
- defKeywords: words$1("class interface namespace record struct var"),
6381
- typeFirstDefinitions: true,
6382
- atoms: words$1("true false null"),
6383
- hooks: {
6384
- "@": function(stream, state2) {
6385
- if (stream.eat('"')) {
6386
- state2.tokenize = tokenAtString;
6387
- return tokenAtString(stream, state2);
6388
- }
6389
- stream.eatWhile(/[\w\$_]/);
6390
- return "meta";
6391
- }
6392
- }
6393
- });
6394
- function tokenTripleString(stream, state2) {
6395
- var escaped = false;
6396
- while (!stream.eol()) {
6397
- if (!escaped && stream.match('"""')) {
6398
- state2.tokenize = null;
6399
- break;
6400
- }
6401
- escaped = stream.next() == "\\" && !escaped;
6402
- }
6403
- return "string";
6404
- }
6405
- function tokenNestedComment(depth) {
6406
- return function(stream, state2) {
6407
- var ch;
6408
- while (ch = stream.next()) {
6409
- if (ch == "*" && stream.eat("/")) {
6410
- if (depth == 1) {
6411
- state2.tokenize = null;
6412
- break;
6413
- } else {
6414
- state2.tokenize = tokenNestedComment(depth - 1);
6415
- return state2.tokenize(stream, state2);
6416
- }
6417
- } else if (ch == "/" && stream.eat("*")) {
6418
- state2.tokenize = tokenNestedComment(depth + 1);
6419
- return state2.tokenize(stream, state2);
6420
- }
6421
- }
6422
- return "comment";
6423
- };
6424
- }
6425
- clike({
6426
- name: "scala",
6427
- keywords: words$1(
6428
- /* scala */
6429
- "abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"
6430
- ),
6431
- types: words$1(
6432
- "AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"
6433
- ),
6434
- multiLineStrings: true,
6435
- blockKeywords: words$1("catch class enum do else finally for forSome if match switch try while"),
6436
- defKeywords: words$1("class enum def object package trait type val var"),
6437
- atoms: words$1("true false null"),
6438
- indentStatements: false,
6439
- indentSwitch: false,
6440
- isOperatorChar: /[+\-*&%=<>!?|\/#:@]/,
6441
- hooks: {
6442
- "@": function(stream) {
6443
- stream.eatWhile(/[\w\$_]/);
6444
- return "meta";
6445
- },
6446
- '"': function(stream, state2) {
6447
- if (!stream.match('""'))
6448
- return false;
6449
- state2.tokenize = tokenTripleString;
6450
- return state2.tokenize(stream, state2);
6451
- },
6452
- "'": function(stream) {
6453
- if (stream.match(/^(\\[^'\s]+|[^\\'])'/))
6454
- return "character";
6455
- stream.eatWhile(/[\w\$_\xa1-\uffff]/);
6456
- return "atom";
6457
- },
6458
- "=": function(stream, state2) {
6459
- var cx = state2.context;
6460
- if (cx.type == "}" && cx.align && stream.eat(">")) {
6461
- state2.context = new Context$2(cx.indented, cx.column, cx.type, cx.info, null, cx.prev);
6462
- return "operator";
6463
- } else {
6464
- return false;
6465
- }
6466
- },
6467
- "/": function(stream, state2) {
6468
- if (!stream.eat("*"))
6469
- return false;
6470
- state2.tokenize = tokenNestedComment(1);
6471
- return state2.tokenize(stream, state2);
6472
- }
6473
- },
6474
- languageData: {
6475
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
6476
- }
6477
- });
6478
- function tokenKotlinString(tripleString) {
6479
- return function(stream, state2) {
6480
- var escaped = false, next, end = false;
6481
- while (!stream.eol()) {
6482
- if (!tripleString && !escaped && stream.match('"')) {
6483
- end = true;
6484
- break;
6485
- }
6486
- if (tripleString && stream.match('"""')) {
6487
- end = true;
6488
- break;
6489
- }
6490
- next = stream.next();
6491
- if (!escaped && next == "$" && stream.match("{"))
6492
- stream.skipTo("}");
6493
- escaped = !escaped && next == "\\" && !tripleString;
6494
- }
6495
- if (end || !tripleString)
6496
- state2.tokenize = null;
6497
- return "string";
6498
- };
6499
- }
6500
- const kotlin = clike({
6501
- name: "kotlin",
6502
- keywords: words$1(
6503
- /*keywords*/
6504
- "package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"
6505
- ),
6506
- types: words$1(
6507
- /* package java.lang */
6508
- "Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"
6509
- ),
6510
- intendSwitch: false,
6511
- indentStatements: false,
6512
- multiLineStrings: true,
6513
- number: /^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,
6514
- blockKeywords: words$1("catch class do else finally for if where try while enum"),
6515
- defKeywords: words$1("class val var object interface fun"),
6516
- atoms: words$1("true false null this"),
6517
- hooks: {
6518
- "@": function(stream) {
6519
- stream.eatWhile(/[\w\$_]/);
6520
- return "meta";
6521
- },
6522
- "*": function(_stream, state2) {
6523
- return state2.prevToken == "." ? "variable" : "operator";
6524
- },
6525
- '"': function(stream, state2) {
6526
- state2.tokenize = tokenKotlinString(stream.match('""'));
6527
- return state2.tokenize(stream, state2);
6528
- },
6529
- "/": function(stream, state2) {
6530
- if (!stream.eat("*"))
6531
- return false;
6532
- state2.tokenize = tokenNestedComment(1);
6533
- return state2.tokenize(stream, state2);
6534
- },
6535
- indent: function(state2, ctx, textAfter, indentUnit) {
6536
- var firstChar = textAfter && textAfter.charAt(0);
6537
- if ((state2.prevToken == "}" || state2.prevToken == ")") && textAfter == "")
6538
- return state2.indented;
6539
- if (state2.prevToken == "operator" && textAfter != "}" && state2.context.type != "}" || state2.prevToken == "variable" && firstChar == "." || (state2.prevToken == "}" || state2.prevToken == ")") && firstChar == ".")
6540
- return indentUnit * 2 + ctx.indented;
6541
- if (ctx.align && ctx.type == "}")
6542
- return ctx.indented + (state2.context.type == (textAfter || "").charAt(0) ? 0 : indentUnit);
6543
- }
6544
- },
6545
- languageData: {
6546
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
6547
- }
6548
- });
6549
- clike({
6550
- name: "shader",
6551
- keywords: words$1("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),
6552
- types: words$1("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),
6553
- blockKeywords: words$1("for while do if else struct"),
6554
- builtin: words$1("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),
6555
- atoms: words$1("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),
6556
- indentSwitch: false,
6557
- hooks: { "#": cppHook }
6558
- });
6559
- clike({
6560
- name: "nesc",
6561
- keywords: words$1(cKeywords + " as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),
6562
- types: cTypes,
6563
- blockKeywords: words$1(cBlockKeywords),
6564
- atoms: words$1("null true false"),
6565
- hooks: { "#": cppHook }
6566
- });
6567
- const objectiveC = clike({
6568
- name: "objectivec",
6569
- keywords: words$1(cKeywords + " " + objCKeywords),
6570
- types: objCTypes,
6571
- builtin: words$1(objCBuiltins),
6572
- blockKeywords: words$1(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized"),
6573
- defKeywords: words$1(cDefKeywords + " @interface @implementation @protocol @class"),
6574
- dontIndentStatements: /^@.*$/,
6575
- typeFirstDefinitions: true,
6576
- atoms: words$1("YES NO NULL Nil nil true false nullptr"),
6577
- isReservedIdentifier: cIsReservedIdentifier,
6578
- hooks: {
6579
- "#": cppHook,
6580
- "*": pointerHook
6581
- }
6582
- });
6583
- clike({
6584
- name: "objectivecpp",
6585
- keywords: words$1(cKeywords + " " + objCKeywords + " " + cppKeywords),
6586
- types: objCTypes,
6587
- builtin: words$1(objCBuiltins),
6588
- blockKeywords: words$1(cBlockKeywords + " @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),
6589
- defKeywords: words$1(cDefKeywords + " @interface @implementation @protocol @class class namespace"),
6590
- dontIndentStatements: /^@.*$|^template$/,
6591
- typeFirstDefinitions: true,
6592
- atoms: words$1("YES NO NULL Nil nil true false nullptr"),
6593
- isReservedIdentifier: cIsReservedIdentifier,
6594
- hooks: {
6595
- "#": cppHook,
6596
- "*": pointerHook,
6597
- "u": cpp11StringHook,
6598
- "U": cpp11StringHook,
6599
- "L": cpp11StringHook,
6600
- "R": cpp11StringHook,
6601
- "0": cpp14Literal,
6602
- "1": cpp14Literal,
6603
- "2": cpp14Literal,
6604
- "3": cpp14Literal,
6605
- "4": cpp14Literal,
6606
- "5": cpp14Literal,
6607
- "6": cpp14Literal,
6608
- "7": cpp14Literal,
6609
- "8": cpp14Literal,
6610
- "9": cpp14Literal,
6611
- token: function(stream, state2, style) {
6612
- if (style == "variable" && stream.peek() == "(" && (state2.prevToken == ";" || state2.prevToken == null || state2.prevToken == "}") && cppLooksLikeConstructor(stream.current()))
6613
- return "def";
6614
- }
6615
- },
6616
- namespaceSeparator: "::"
6617
- });
6618
- clike({
6619
- name: "squirrel",
6620
- keywords: words$1("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),
6621
- types: cTypes,
6622
- blockKeywords: words$1("case catch class else for foreach if switch try while"),
6623
- defKeywords: words$1("function local class"),
6624
- typeFirstDefinitions: true,
6625
- atoms: words$1("true false null"),
6626
- hooks: { "#": cppHook }
6627
- });
6628
- var stringTokenizer = null;
6629
- function tokenCeylonString(type) {
6630
- return function(stream, state2) {
6631
- var escaped = false, next, end = false;
6632
- while (!stream.eol()) {
6633
- if (!escaped && stream.match('"') && (type == "single" || stream.match('""'))) {
6634
- end = true;
6635
- break;
6636
- }
6637
- if (!escaped && stream.match("``")) {
6638
- stringTokenizer = tokenCeylonString(type);
6639
- end = true;
6640
- break;
6641
- }
6642
- next = stream.next();
6643
- escaped = type == "single" && !escaped && next == "\\";
6644
- }
6645
- if (end)
6646
- state2.tokenize = null;
6647
- return "string";
6648
- };
6649
- }
6650
- clike({
6651
- name: "ceylon",
6652
- keywords: words$1("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),
6653
- types: function(word) {
6654
- var first = word.charAt(0);
6655
- return first === first.toUpperCase() && first !== first.toLowerCase();
6656
- },
6657
- blockKeywords: words$1("case catch class dynamic else finally for function if interface module new object switch try while"),
6658
- defKeywords: words$1("class dynamic function interface module object package value"),
6659
- builtin: words$1("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),
6660
- isPunctuationChar: /[\[\]{}\(\),;\:\.`]/,
6661
- isOperatorChar: /[+\-*&%=<>!?|^~:\/]/,
6662
- numberStart: /[\d#$]/,
6663
- number: /^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,
6664
- multiLineStrings: true,
6665
- typeFirstDefinitions: true,
6666
- atoms: words$1("true false null larger smaller equal empty finished"),
6667
- indentSwitch: false,
6668
- styleDefs: false,
6669
- hooks: {
6670
- "@": function(stream) {
6671
- stream.eatWhile(/[\w\$_]/);
6672
- return "meta";
6673
- },
6674
- '"': function(stream, state2) {
6675
- state2.tokenize = tokenCeylonString(stream.match('""') ? "triple" : "single");
6676
- return state2.tokenize(stream, state2);
6677
- },
6678
- "`": function(stream, state2) {
6679
- if (!stringTokenizer || !stream.match("`"))
6680
- return false;
6681
- state2.tokenize = stringTokenizer;
6682
- stringTokenizer = null;
6683
- return state2.tokenize(stream, state2);
6684
- },
6685
- "'": function(stream) {
6686
- if (stream.match(/^(\\[^'\s]+|[^\\'])'/))
6687
- return "string.special";
6688
- stream.eatWhile(/[\w\$_\xa1-\uffff]/);
6689
- return "atom";
6690
- },
6691
- token: function(_stream, state2, style) {
6692
- if ((style == "variable" || style == "type") && state2.prevToken == ".") {
6693
- return "variableName.special";
6694
- }
6695
- }
6696
- },
6697
- languageData: {
6698
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', '"""'] }
6699
- }
6700
- });
6701
- function pushInterpolationStack(state2) {
6702
- (state2.interpolationStack || (state2.interpolationStack = [])).push(state2.tokenize);
6703
- }
6704
- function popInterpolationStack(state2) {
6705
- return (state2.interpolationStack || (state2.interpolationStack = [])).pop();
6706
- }
6707
- function sizeInterpolationStack(state2) {
6708
- return state2.interpolationStack ? state2.interpolationStack.length : 0;
6709
- }
6710
- function tokenDartString(quote, stream, state2, raw) {
6711
- var tripleQuoted = false;
6712
- if (stream.eat(quote)) {
6713
- if (stream.eat(quote))
6714
- tripleQuoted = true;
6715
- else
6716
- return "string";
6717
- }
6718
- function tokenStringHelper(stream2, state3) {
6719
- var escaped = false;
6720
- while (!stream2.eol()) {
6721
- if (!raw && !escaped && stream2.peek() == "$") {
6722
- pushInterpolationStack(state3);
6723
- state3.tokenize = tokenInterpolation$1;
6724
- return "string";
6725
- }
6726
- var next = stream2.next();
6727
- if (next == quote && !escaped && (!tripleQuoted || stream2.match(quote + quote))) {
6728
- state3.tokenize = null;
6729
- break;
6730
- }
6731
- escaped = !raw && !escaped && next == "\\";
6732
- }
6733
- return "string";
6734
- }
6735
- state2.tokenize = tokenStringHelper;
6736
- return tokenStringHelper(stream, state2);
6737
- }
6738
- function tokenInterpolation$1(stream, state2) {
6739
- stream.eat("$");
6740
- if (stream.eat("{")) {
6741
- state2.tokenize = null;
6742
- } else {
6743
- state2.tokenize = tokenInterpolationIdentifier;
6744
- }
6745
- return null;
6746
- }
6747
- function tokenInterpolationIdentifier(stream, state2) {
6748
- stream.eatWhile(/[\w_]/);
6749
- state2.tokenize = popInterpolationStack(state2);
6750
- return "variable";
6751
- }
6752
- clike({
6753
- name: "dart",
6754
- keywords: words$1("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),
6755
- blockKeywords: words$1("try catch finally do else for if switch while"),
6756
- builtin: words$1("void bool num int double dynamic var String Null Never"),
6757
- atoms: words$1("true false null"),
6758
- hooks: {
6759
- "@": function(stream) {
6760
- stream.eatWhile(/[\w\$_\.]/);
6761
- return "meta";
6762
- },
6763
- // custom string handling to deal with triple-quoted strings and string interpolation
6764
- "'": function(stream, state2) {
6765
- return tokenDartString("'", stream, state2, false);
6766
- },
6767
- '"': function(stream, state2) {
6768
- return tokenDartString('"', stream, state2, false);
6769
- },
6770
- "r": function(stream, state2) {
6771
- var peek = stream.peek();
6772
- if (peek == "'" || peek == '"') {
6773
- return tokenDartString(stream.next(), stream, state2, true);
6774
- }
6775
- return false;
6776
- },
6777
- "}": function(_stream, state2) {
6778
- if (sizeInterpolationStack(state2) > 0) {
6779
- state2.tokenize = popInterpolationStack(state2);
6780
- return null;
6781
- }
6782
- return false;
6783
- },
6784
- "/": function(stream, state2) {
6785
- if (!stream.eat("*"))
6786
- return false;
6787
- state2.tokenize = tokenNestedComment(1);
6788
- return state2.tokenize(stream, state2);
6789
- },
6790
- token: function(stream, _2, style) {
6791
- if (style == "variable") {
6792
- var isUpper = RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$", "g");
6793
- if (isUpper.test(stream.current())) {
6794
- return "type";
6795
- }
6796
- }
6797
- }
6798
- }
6799
- });
6800
- var atoms$3 = ["false", "nil", "true"];
6801
- var specialForms = [
6802
- ".",
6803
- "catch",
6804
- "def",
6805
- "do",
6806
- "if",
6807
- "monitor-enter",
6808
- "monitor-exit",
6809
- "new",
6810
- "quote",
6811
- "recur",
6812
- "set!",
6813
- "throw",
6814
- "try",
6815
- "var"
6816
- ];
6817
- var coreSymbols = [
6818
- "*",
6819
- "*'",
6820
- "*1",
6821
- "*2",
6822
- "*3",
6823
- "*agent*",
6824
- "*allow-unresolved-vars*",
6825
- "*assert*",
6826
- "*clojure-version*",
6827
- "*command-line-args*",
6828
- "*compile-files*",
6829
- "*compile-path*",
6830
- "*compiler-options*",
6831
- "*data-readers*",
6832
- "*default-data-reader-fn*",
6833
- "*e",
6834
- "*err*",
6835
- "*file*",
6836
- "*flush-on-newline*",
6837
- "*fn-loader*",
6838
- "*in*",
6839
- "*math-context*",
6840
- "*ns*",
6841
- "*out*",
6842
- "*print-dup*",
6843
- "*print-length*",
6844
- "*print-level*",
6845
- "*print-meta*",
6846
- "*print-namespace-maps*",
6847
- "*print-readably*",
6848
- "*read-eval*",
6849
- "*reader-resolver*",
6850
- "*source-path*",
6851
- "*suppress-read*",
6852
- "*unchecked-math*",
6853
- "*use-context-classloader*",
6854
- "*verbose-defrecords*",
6855
- "*warn-on-reflection*",
6856
- "+",
6857
- "+'",
6858
- "-",
6859
- "-'",
6860
- "->",
6861
- "->>",
6862
- "->ArrayChunk",
6863
- "->Eduction",
6864
- "->Vec",
6865
- "->VecNode",
6866
- "->VecSeq",
6867
- "-cache-protocol-fn",
6868
- "-reset-methods",
6869
- "..",
6870
- "/",
6871
- "<",
6872
- "<=",
6873
- "=",
6874
- "==",
6875
- ">",
6876
- ">=",
6877
- "EMPTY-NODE",
6878
- "Inst",
6879
- "StackTraceElement->vec",
6880
- "Throwable->map",
6881
- "accessor",
6882
- "aclone",
6883
- "add-classpath",
6884
- "add-watch",
6885
- "agent",
6886
- "agent-error",
6887
- "agent-errors",
6888
- "aget",
6889
- "alength",
6890
- "alias",
6891
- "all-ns",
6892
- "alter",
6893
- "alter-meta!",
6894
- "alter-var-root",
6895
- "amap",
6896
- "ancestors",
6897
- "and",
6898
- "any?",
6899
- "apply",
6900
- "areduce",
6901
- "array-map",
6902
- "as->",
6903
- "aset",
6904
- "aset-boolean",
6905
- "aset-byte",
6906
- "aset-char",
6907
- "aset-double",
6908
- "aset-float",
6909
- "aset-int",
6910
- "aset-long",
6911
- "aset-short",
6912
- "assert",
6913
- "assoc",
6914
- "assoc!",
6915
- "assoc-in",
6916
- "associative?",
6917
- "atom",
6918
- "await",
6919
- "await-for",
6920
- "await1",
6921
- "bases",
6922
- "bean",
6923
- "bigdec",
6924
- "bigint",
6925
- "biginteger",
6926
- "binding",
6927
- "bit-and",
6928
- "bit-and-not",
6929
- "bit-clear",
6930
- "bit-flip",
6931
- "bit-not",
6932
- "bit-or",
6933
- "bit-set",
6934
- "bit-shift-left",
6935
- "bit-shift-right",
6936
- "bit-test",
6937
- "bit-xor",
6938
- "boolean",
6939
- "boolean-array",
6940
- "boolean?",
6941
- "booleans",
6942
- "bound-fn",
6943
- "bound-fn*",
6944
- "bound?",
6945
- "bounded-count",
6946
- "butlast",
6947
- "byte",
6948
- "byte-array",
6949
- "bytes",
6950
- "bytes?",
6951
- "case",
6952
- "cast",
6953
- "cat",
6954
- "char",
6955
- "char-array",
6956
- "char-escape-string",
6957
- "char-name-string",
6958
- "char?",
6959
- "chars",
6960
- "chunk",
6961
- "chunk-append",
6962
- "chunk-buffer",
6963
- "chunk-cons",
6964
- "chunk-first",
6965
- "chunk-next",
6966
- "chunk-rest",
6967
- "chunked-seq?",
6968
- "class",
6969
- "class?",
6970
- "clear-agent-errors",
6971
- "clojure-version",
6972
- "coll?",
6973
- "comment",
6974
- "commute",
6975
- "comp",
6976
- "comparator",
6977
- "compare",
6978
- "compare-and-set!",
6979
- "compile",
6980
- "complement",
6981
- "completing",
6982
- "concat",
6983
- "cond",
6984
- "cond->",
6985
- "cond->>",
6986
- "condp",
6987
- "conj",
6988
- "conj!",
6989
- "cons",
6990
- "constantly",
6991
- "construct-proxy",
6992
- "contains?",
6993
- "count",
6994
- "counted?",
6995
- "create-ns",
6996
- "create-struct",
6997
- "cycle",
6998
- "dec",
6999
- "dec'",
7000
- "decimal?",
7001
- "declare",
7002
- "dedupe",
7003
- "default-data-readers",
7004
- "definline",
7005
- "definterface",
7006
- "defmacro",
7007
- "defmethod",
7008
- "defmulti",
7009
- "defn",
7010
- "defn-",
7011
- "defonce",
7012
- "defprotocol",
7013
- "defrecord",
7014
- "defstruct",
7015
- "deftype",
7016
- "delay",
7017
- "delay?",
7018
- "deliver",
7019
- "denominator",
7020
- "deref",
7021
- "derive",
7022
- "descendants",
7023
- "destructure",
7024
- "disj",
7025
- "disj!",
7026
- "dissoc",
7027
- "dissoc!",
7028
- "distinct",
7029
- "distinct?",
7030
- "doall",
7031
- "dorun",
7032
- "doseq",
7033
- "dosync",
7034
- "dotimes",
7035
- "doto",
7036
- "double",
7037
- "double-array",
7038
- "double?",
7039
- "doubles",
7040
- "drop",
7041
- "drop-last",
7042
- "drop-while",
7043
- "eduction",
7044
- "empty",
7045
- "empty?",
7046
- "ensure",
7047
- "ensure-reduced",
7048
- "enumeration-seq",
7049
- "error-handler",
7050
- "error-mode",
7051
- "eval",
7052
- "even?",
7053
- "every-pred",
7054
- "every?",
7055
- "ex-data",
7056
- "ex-info",
7057
- "extend",
7058
- "extend-protocol",
7059
- "extend-type",
7060
- "extenders",
7061
- "extends?",
7062
- "false?",
7063
- "ffirst",
7064
- "file-seq",
7065
- "filter",
7066
- "filterv",
7067
- "find",
7068
- "find-keyword",
7069
- "find-ns",
7070
- "find-protocol-impl",
7071
- "find-protocol-method",
7072
- "find-var",
7073
- "first",
7074
- "flatten",
7075
- "float",
7076
- "float-array",
7077
- "float?",
7078
- "floats",
7079
- "flush",
7080
- "fn",
7081
- "fn?",
7082
- "fnext",
7083
- "fnil",
7084
- "for",
7085
- "force",
7086
- "format",
7087
- "frequencies",
7088
- "future",
7089
- "future-call",
7090
- "future-cancel",
7091
- "future-cancelled?",
7092
- "future-done?",
7093
- "future?",
7094
- "gen-class",
7095
- "gen-interface",
7096
- "gensym",
7097
- "get",
7098
- "get-in",
7099
- "get-method",
7100
- "get-proxy-class",
7101
- "get-thread-bindings",
7102
- "get-validator",
7103
- "group-by",
7104
- "halt-when",
7105
- "hash",
7106
- "hash-combine",
7107
- "hash-map",
7108
- "hash-ordered-coll",
7109
- "hash-set",
7110
- "hash-unordered-coll",
7111
- "ident?",
7112
- "identical?",
7113
- "identity",
7114
- "if-let",
7115
- "if-not",
7116
- "if-some",
7117
- "ifn?",
7118
- "import",
7119
- "in-ns",
7120
- "inc",
7121
- "inc'",
7122
- "indexed?",
7123
- "init-proxy",
7124
- "inst-ms",
7125
- "inst-ms*",
7126
- "inst?",
7127
- "instance?",
7128
- "int",
7129
- "int-array",
7130
- "int?",
7131
- "integer?",
7132
- "interleave",
7133
- "intern",
7134
- "interpose",
7135
- "into",
7136
- "into-array",
7137
- "ints",
7138
- "io!",
7139
- "isa?",
7140
- "iterate",
7141
- "iterator-seq",
7142
- "juxt",
7143
- "keep",
7144
- "keep-indexed",
7145
- "key",
7146
- "keys",
7147
- "keyword",
7148
- "keyword?",
7149
- "last",
7150
- "lazy-cat",
7151
- "lazy-seq",
7152
- "let",
7153
- "letfn",
7154
- "line-seq",
7155
- "list",
7156
- "list*",
7157
- "list?",
7158
- "load",
7159
- "load-file",
7160
- "load-reader",
7161
- "load-string",
7162
- "loaded-libs",
7163
- "locking",
7164
- "long",
7165
- "long-array",
7166
- "longs",
7167
- "loop",
7168
- "macroexpand",
7169
- "macroexpand-1",
7170
- "make-array",
7171
- "make-hierarchy",
7172
- "map",
7173
- "map-entry?",
7174
- "map-indexed",
7175
- "map?",
7176
- "mapcat",
7177
- "mapv",
7178
- "max",
7179
- "max-key",
7180
- "memfn",
7181
- "memoize",
7182
- "merge",
7183
- "merge-with",
7184
- "meta",
7185
- "method-sig",
7186
- "methods",
7187
- "min",
7188
- "min-key",
7189
- "mix-collection-hash",
7190
- "mod",
7191
- "munge",
7192
- "name",
7193
- "namespace",
7194
- "namespace-munge",
7195
- "nat-int?",
7196
- "neg-int?",
7197
- "neg?",
7198
- "newline",
7199
- "next",
7200
- "nfirst",
7201
- "nil?",
7202
- "nnext",
7203
- "not",
7204
- "not-any?",
7205
- "not-empty",
7206
- "not-every?",
7207
- "not=",
7208
- "ns",
7209
- "ns-aliases",
7210
- "ns-imports",
7211
- "ns-interns",
7212
- "ns-map",
7213
- "ns-name",
7214
- "ns-publics",
7215
- "ns-refers",
7216
- "ns-resolve",
7217
- "ns-unalias",
7218
- "ns-unmap",
7219
- "nth",
7220
- "nthnext",
7221
- "nthrest",
7222
- "num",
7223
- "number?",
7224
- "numerator",
7225
- "object-array",
7226
- "odd?",
7227
- "or",
7228
- "parents",
7229
- "partial",
7230
- "partition",
7231
- "partition-all",
7232
- "partition-by",
7233
- "pcalls",
7234
- "peek",
7235
- "persistent!",
7236
- "pmap",
7237
- "pop",
7238
- "pop!",
7239
- "pop-thread-bindings",
7240
- "pos-int?",
7241
- "pos?",
7242
- "pr",
7243
- "pr-str",
7244
- "prefer-method",
7245
- "prefers",
7246
- "primitives-classnames",
7247
- "print",
7248
- "print-ctor",
7249
- "print-dup",
7250
- "print-method",
7251
- "print-simple",
7252
- "print-str",
7253
- "printf",
7254
- "println",
7255
- "println-str",
7256
- "prn",
7257
- "prn-str",
7258
- "promise",
7259
- "proxy",
7260
- "proxy-call-with-super",
7261
- "proxy-mappings",
7262
- "proxy-name",
7263
- "proxy-super",
7264
- "push-thread-bindings",
7265
- "pvalues",
7266
- "qualified-ident?",
7267
- "qualified-keyword?",
7268
- "qualified-symbol?",
7269
- "quot",
7270
- "rand",
7271
- "rand-int",
7272
- "rand-nth",
7273
- "random-sample",
7274
- "range",
7275
- "ratio?",
7276
- "rational?",
7277
- "rationalize",
7278
- "re-find",
7279
- "re-groups",
7280
- "re-matcher",
7281
- "re-matches",
7282
- "re-pattern",
7283
- "re-seq",
7284
- "read",
7285
- "read-line",
7286
- "read-string",
7287
- "reader-conditional",
7288
- "reader-conditional?",
7289
- "realized?",
7290
- "record?",
7291
- "reduce",
7292
- "reduce-kv",
7293
- "reduced",
7294
- "reduced?",
7295
- "reductions",
7296
- "ref",
7297
- "ref-history-count",
7298
- "ref-max-history",
7299
- "ref-min-history",
7300
- "ref-set",
7301
- "refer",
7302
- "refer-clojure",
7303
- "reify",
7304
- "release-pending-sends",
7305
- "rem",
7306
- "remove",
7307
- "remove-all-methods",
7308
- "remove-method",
7309
- "remove-ns",
7310
- "remove-watch",
7311
- "repeat",
7312
- "repeatedly",
7313
- "replace",
7314
- "replicate",
7315
- "require",
7316
- "reset!",
7317
- "reset-meta!",
7318
- "reset-vals!",
7319
- "resolve",
7320
- "rest",
7321
- "restart-agent",
7322
- "resultset-seq",
7323
- "reverse",
7324
- "reversible?",
7325
- "rseq",
7326
- "rsubseq",
7327
- "run!",
7328
- "satisfies?",
7329
- "second",
7330
- "select-keys",
7331
- "send",
7332
- "send-off",
7333
- "send-via",
7334
- "seq",
7335
- "seq?",
7336
- "seqable?",
7337
- "seque",
7338
- "sequence",
7339
- "sequential?",
7340
- "set",
7341
- "set-agent-send-executor!",
7342
- "set-agent-send-off-executor!",
7343
- "set-error-handler!",
7344
- "set-error-mode!",
7345
- "set-validator!",
7346
- "set?",
7347
- "short",
7348
- "short-array",
7349
- "shorts",
7350
- "shuffle",
7351
- "shutdown-agents",
7352
- "simple-ident?",
7353
- "simple-keyword?",
7354
- "simple-symbol?",
7355
- "slurp",
7356
- "some",
7357
- "some->",
7358
- "some->>",
7359
- "some-fn",
7360
- "some?",
7361
- "sort",
7362
- "sort-by",
7363
- "sorted-map",
7364
- "sorted-map-by",
7365
- "sorted-set",
7366
- "sorted-set-by",
7367
- "sorted?",
7368
- "special-symbol?",
7369
- "spit",
7370
- "split-at",
7371
- "split-with",
7372
- "str",
7373
- "string?",
7374
- "struct",
7375
- "struct-map",
7376
- "subs",
7377
- "subseq",
7378
- "subvec",
7379
- "supers",
7380
- "swap!",
7381
- "swap-vals!",
7382
- "symbol",
7383
- "symbol?",
7384
- "sync",
7385
- "tagged-literal",
7386
- "tagged-literal?",
7387
- "take",
7388
- "take-last",
7389
- "take-nth",
7390
- "take-while",
7391
- "test",
7392
- "the-ns",
7393
- "thread-bound?",
7394
- "time",
7395
- "to-array",
7396
- "to-array-2d",
7397
- "trampoline",
7398
- "transduce",
7399
- "transient",
7400
- "tree-seq",
7401
- "true?",
7402
- "type",
7403
- "unchecked-add",
7404
- "unchecked-add-int",
7405
- "unchecked-byte",
7406
- "unchecked-char",
7407
- "unchecked-dec",
7408
- "unchecked-dec-int",
7409
- "unchecked-divide-int",
7410
- "unchecked-double",
7411
- "unchecked-float",
7412
- "unchecked-inc",
7413
- "unchecked-inc-int",
7414
- "unchecked-int",
7415
- "unchecked-long",
7416
- "unchecked-multiply",
7417
- "unchecked-multiply-int",
7418
- "unchecked-negate",
7419
- "unchecked-negate-int",
7420
- "unchecked-remainder-int",
7421
- "unchecked-short",
7422
- "unchecked-subtract",
7423
- "unchecked-subtract-int",
7424
- "underive",
7425
- "unquote",
7426
- "unquote-splicing",
7427
- "unreduced",
7428
- "unsigned-bit-shift-right",
7429
- "update",
7430
- "update-in",
7431
- "update-proxy",
7432
- "uri?",
7433
- "use",
7434
- "uuid?",
7435
- "val",
7436
- "vals",
7437
- "var-get",
7438
- "var-set",
7439
- "var?",
7440
- "vary-meta",
7441
- "vec",
7442
- "vector",
7443
- "vector-of",
7444
- "vector?",
7445
- "volatile!",
7446
- "volatile?",
7447
- "vreset!",
7448
- "vswap!",
7449
- "when",
7450
- "when-first",
7451
- "when-let",
7452
- "when-not",
7453
- "when-some",
7454
- "while",
7455
- "with-bindings",
7456
- "with-bindings*",
7457
- "with-in-str",
7458
- "with-loading-context",
7459
- "with-local-vars",
7460
- "with-meta",
7461
- "with-open",
7462
- "with-out-str",
7463
- "with-precision",
7464
- "with-redefs",
7465
- "with-redefs-fn",
7466
- "xml-seq",
7467
- "zero?",
7468
- "zipmap"
7469
- ];
7470
- var haveBodyParameter = [
7471
- "->",
7472
- "->>",
7473
- "as->",
7474
- "binding",
7475
- "bound-fn",
7476
- "case",
7477
- "catch",
7478
- "comment",
7479
- "cond",
7480
- "cond->",
7481
- "cond->>",
7482
- "condp",
7483
- "def",
7484
- "definterface",
7485
- "defmethod",
7486
- "defn",
7487
- "defmacro",
7488
- "defprotocol",
7489
- "defrecord",
7490
- "defstruct",
7491
- "deftype",
7492
- "do",
7493
- "doseq",
7494
- "dotimes",
7495
- "doto",
7496
- "extend",
7497
- "extend-protocol",
7498
- "extend-type",
7499
- "fn",
7500
- "for",
7501
- "future",
7502
- "if",
7503
- "if-let",
7504
- "if-not",
7505
- "if-some",
7506
- "let",
7507
- "letfn",
7508
- "locking",
7509
- "loop",
7510
- "ns",
7511
- "proxy",
7512
- "reify",
7513
- "struct-map",
7514
- "some->",
7515
- "some->>",
7516
- "try",
7517
- "when",
7518
- "when-first",
7519
- "when-let",
7520
- "when-not",
7521
- "when-some",
7522
- "while",
7523
- "with-bindings",
7524
- "with-bindings*",
7525
- "with-in-str",
7526
- "with-loading-context",
7527
- "with-local-vars",
7528
- "with-meta",
7529
- "with-open",
7530
- "with-out-str",
7531
- "with-precision",
7532
- "with-redefs",
7533
- "with-redefs-fn"
7534
- ];
7535
- var atom = createLookupMap(atoms$3);
7536
- var specialForm = createLookupMap(specialForms);
7537
- var coreSymbol = createLookupMap(coreSymbols);
7538
- var hasBodyParameter = createLookupMap(haveBodyParameter);
7539
- var delimiter = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/;
7540
- var numberLiteral = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;
7541
- var characterLiteral = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;
7542
- var qualifiedSymbol = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
7543
- function base(stream, state2) {
7544
- if (stream.eatSpace() || stream.eat(","))
7545
- return ["space", null];
7546
- if (stream.match(numberLiteral))
7547
- return [null, "number"];
7548
- if (stream.match(characterLiteral))
7549
- return [null, "string.special"];
7550
- if (stream.eat(/^"/))
7551
- return (state2.tokenize = inString)(stream, state2);
7552
- if (stream.eat(/^[(\[{]/))
7553
- return ["open", "bracket"];
7554
- if (stream.eat(/^[)\]}]/))
7555
- return ["close", "bracket"];
7556
- if (stream.eat(/^;/)) {
7557
- stream.skipToEnd();
7558
- return ["space", "comment"];
7559
- }
7560
- if (stream.eat(/^[#'@^`~]/))
7561
- return [null, "meta"];
7562
- var matches = stream.match(qualifiedSymbol);
7563
- var symbol = matches && matches[0];
7564
- if (!symbol) {
7565
- stream.next();
7566
- stream.eatWhile(function(c2) {
7567
- return !is2(c2, delimiter);
7568
- });
7569
- return [null, "error"];
7570
- }
7571
- if (symbol === "comment" && state2.lastToken === "(")
7572
- return (state2.tokenize = inComment)(stream, state2);
7573
- if (is2(symbol, atom) || symbol.charAt(0) === ":")
7574
- return ["symbol", "atom"];
7575
- if (is2(symbol, specialForm) || is2(symbol, coreSymbol))
7576
- return ["symbol", "keyword"];
7577
- if (state2.lastToken === "(")
7578
- return ["symbol", "builtin"];
7579
- return ["symbol", "variable"];
7580
- }
7581
- function inString(stream, state2) {
7582
- var escaped = false, next;
7583
- while (next = stream.next()) {
7584
- if (next === '"' && !escaped) {
7585
- state2.tokenize = base;
7586
- break;
7587
- }
7588
- escaped = !escaped && next === "\\";
7589
- }
7590
- return [null, "string"];
7591
- }
7592
- function inComment(stream, state2) {
7593
- var parenthesisCount = 1;
7594
- var next;
7595
- while (next = stream.next()) {
7596
- if (next === ")")
7597
- parenthesisCount--;
7598
- if (next === "(")
7599
- parenthesisCount++;
7600
- if (parenthesisCount === 0) {
7601
- stream.backUp(1);
7602
- state2.tokenize = base;
7603
- break;
7604
- }
7605
- }
7606
- return ["space", "comment"];
7607
- }
7608
- function createLookupMap(words2) {
7609
- var obj = {};
7610
- for (var i2 = 0; i2 < words2.length; ++i2)
7611
- obj[words2[i2]] = true;
7612
- return obj;
7613
- }
7614
- function is2(value, test) {
7615
- if (test instanceof RegExp)
7616
- return test.test(value);
7617
- if (test instanceof Object)
7618
- return test.propertyIsEnumerable(value);
7619
- }
7620
- const clojure = {
7621
- name: "clojure",
7622
- startState: function() {
7623
- return {
7624
- ctx: { prev: null, start: 0, indentTo: 0 },
7625
- lastToken: null,
7626
- tokenize: base
7627
- };
7628
- },
7629
- token: function(stream, state2) {
7630
- if (stream.sol() && typeof state2.ctx.indentTo !== "number")
7631
- state2.ctx.indentTo = state2.ctx.start + 1;
7632
- var typeStylePair = state2.tokenize(stream, state2);
7633
- var type = typeStylePair[0];
7634
- var style = typeStylePair[1];
7635
- var current = stream.current();
7636
- if (type !== "space") {
7637
- if (state2.lastToken === "(" && state2.ctx.indentTo === null) {
7638
- if (type === "symbol" && is2(current, hasBodyParameter))
7639
- state2.ctx.indentTo = state2.ctx.start + stream.indentUnit;
7640
- else
7641
- state2.ctx.indentTo = "next";
7642
- } else if (state2.ctx.indentTo === "next") {
7643
- state2.ctx.indentTo = stream.column();
7644
- }
7645
- state2.lastToken = current;
7646
- }
7647
- if (type === "open")
7648
- state2.ctx = { prev: state2.ctx, start: stream.column(), indentTo: null };
7649
- else if (type === "close")
7650
- state2.ctx = state2.ctx.prev || state2.ctx;
7651
- return style;
7652
- },
7653
- indent: function(state2) {
7654
- var i2 = state2.ctx.indentTo;
7655
- return typeof i2 === "number" ? i2 : state2.ctx.start + 1;
7656
- },
7657
- languageData: {
7658
- closeBrackets: { brackets: ["(", "[", "{", '"'] },
7659
- commentTokens: { line: ";;" },
7660
- autocomplete: [].concat(atoms$3, specialForms, coreSymbols)
7661
- }
7662
- };
7663
- var keywords$4 = {
7664
- "break": true,
7665
- "case": true,
7666
- "chan": true,
7667
- "const": true,
7668
- "continue": true,
7669
- "default": true,
7670
- "defer": true,
7671
- "else": true,
7672
- "fallthrough": true,
7673
- "for": true,
7674
- "func": true,
7675
- "go": true,
7676
- "goto": true,
7677
- "if": true,
7678
- "import": true,
7679
- "interface": true,
7680
- "map": true,
7681
- "package": true,
7682
- "range": true,
7683
- "return": true,
7684
- "select": true,
7685
- "struct": true,
7686
- "switch": true,
7687
- "type": true,
7688
- "var": true,
7689
- "bool": true,
7690
- "byte": true,
7691
- "complex64": true,
7692
- "complex128": true,
7693
- "float32": true,
7694
- "float64": true,
7695
- "int8": true,
7696
- "int16": true,
7697
- "int32": true,
7698
- "int64": true,
7699
- "string": true,
7700
- "uint8": true,
7701
- "uint16": true,
7702
- "uint32": true,
7703
- "uint64": true,
7704
- "int": true,
7705
- "uint": true,
7706
- "uintptr": true,
7707
- "error": true,
7708
- "rune": true,
7709
- "any": true,
7710
- "comparable": true
7711
- };
7712
- var atoms$2 = {
7713
- "true": true,
7714
- "false": true,
7715
- "iota": true,
7716
- "nil": true,
7717
- "append": true,
7718
- "cap": true,
7719
- "close": true,
7720
- "complex": true,
7721
- "copy": true,
7722
- "delete": true,
7723
- "imag": true,
7724
- "len": true,
7725
- "make": true,
7726
- "new": true,
7727
- "panic": true,
7728
- "print": true,
7729
- "println": true,
7730
- "real": true,
7731
- "recover": true
7732
- };
7733
- var isOperatorChar = /[+\-*&^%:=<>!|\/]/;
7734
- var curPunc$2;
7735
- function tokenBase$5(stream, state2) {
7736
- var ch = stream.next();
7737
- if (ch == '"' || ch == "'" || ch == "`") {
7738
- state2.tokenize = tokenString$3(ch);
7739
- return state2.tokenize(stream, state2);
7740
- }
7741
- if (/[\d\.]/.test(ch)) {
7742
- if (ch == ".") {
7743
- stream.match(/^[0-9]+([eE][\-+]?[0-9]+)?/);
7744
- } else if (ch == "0") {
7745
- stream.match(/^[xX][0-9a-fA-F]+/) || stream.match(/^0[0-7]+/);
7746
- } else {
7747
- stream.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/);
7748
- }
7749
- return "number";
7750
- }
7751
- if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
7752
- curPunc$2 = ch;
7753
- return null;
7754
- }
7755
- if (ch == "/") {
7756
- if (stream.eat("*")) {
7757
- state2.tokenize = tokenComment$2;
7758
- return tokenComment$2(stream, state2);
7759
- }
7760
- if (stream.eat("/")) {
7761
- stream.skipToEnd();
7762
- return "comment";
7763
- }
7764
- }
7765
- if (isOperatorChar.test(ch)) {
7766
- stream.eatWhile(isOperatorChar);
7767
- return "operator";
7768
- }
7769
- stream.eatWhile(/[\w\$_\xa1-\uffff]/);
7770
- var cur = stream.current();
7771
- if (keywords$4.propertyIsEnumerable(cur)) {
7772
- if (cur == "case" || cur == "default")
7773
- curPunc$2 = "case";
7774
- return "keyword";
7775
- }
7776
- if (atoms$2.propertyIsEnumerable(cur))
7777
- return "atom";
7778
- return "variable";
7779
- }
7780
- function tokenString$3(quote) {
7781
- return function(stream, state2) {
7782
- var escaped = false, next, end = false;
7783
- while ((next = stream.next()) != null) {
7784
- if (next == quote && !escaped) {
7785
- end = true;
7786
- break;
7787
- }
7788
- escaped = !escaped && quote != "`" && next == "\\";
7789
- }
7790
- if (end || !(escaped || quote == "`"))
7791
- state2.tokenize = tokenBase$5;
7792
- return "string";
7793
- };
7794
- }
7795
- function tokenComment$2(stream, state2) {
7796
- var maybeEnd = false, ch;
7797
- while (ch = stream.next()) {
7798
- if (ch == "/" && maybeEnd) {
7799
- state2.tokenize = tokenBase$5;
7800
- break;
7801
- }
7802
- maybeEnd = ch == "*";
7803
- }
7804
- return "comment";
7805
- }
7806
- function Context$1(indented, column, type, align, prev) {
7807
- this.indented = indented;
7808
- this.column = column;
7809
- this.type = type;
7810
- this.align = align;
7811
- this.prev = prev;
7812
- }
7813
- function pushContext$1(state2, col, type) {
7814
- return state2.context = new Context$1(state2.indented, col, type, null, state2.context);
7815
- }
7816
- function popContext$1(state2) {
7817
- if (!state2.context.prev)
7818
- return;
7819
- var t2 = state2.context.type;
7820
- if (t2 == ")" || t2 == "]" || t2 == "}")
7821
- state2.indented = state2.context.indented;
7822
- return state2.context = state2.context.prev;
7823
- }
7824
- const go = {
7825
- name: "go",
7826
- startState: function(indentUnit) {
7827
- return {
7828
- tokenize: null,
7829
- context: new Context$1(-indentUnit, 0, "top", false),
7830
- indented: 0,
7831
- startOfLine: true
7832
- };
7833
- },
7834
- token: function(stream, state2) {
7835
- var ctx = state2.context;
7836
- if (stream.sol()) {
7837
- if (ctx.align == null)
7838
- ctx.align = false;
7839
- state2.indented = stream.indentation();
7840
- state2.startOfLine = true;
7841
- if (ctx.type == "case")
7842
- ctx.type = "}";
7843
- }
7844
- if (stream.eatSpace())
7845
- return null;
7846
- curPunc$2 = null;
7847
- var style = (state2.tokenize || tokenBase$5)(stream, state2);
7848
- if (style == "comment")
7849
- return style;
7850
- if (ctx.align == null)
7851
- ctx.align = true;
7852
- if (curPunc$2 == "{")
7853
- pushContext$1(state2, stream.column(), "}");
7854
- else if (curPunc$2 == "[")
7855
- pushContext$1(state2, stream.column(), "]");
7856
- else if (curPunc$2 == "(")
7857
- pushContext$1(state2, stream.column(), ")");
7858
- else if (curPunc$2 == "case")
7859
- ctx.type = "case";
7860
- else if (curPunc$2 == "}" && ctx.type == "}")
7861
- popContext$1(state2);
7862
- else if (curPunc$2 == ctx.type)
7863
- popContext$1(state2);
7864
- state2.startOfLine = false;
7865
- return style;
7866
- },
7867
- indent: function(state2, textAfter, cx) {
7868
- if (state2.tokenize != tokenBase$5 && state2.tokenize != null)
7869
- return null;
7870
- var ctx = state2.context, firstChar = textAfter && textAfter.charAt(0);
7871
- if (ctx.type == "case" && /^(?:case|default)\b/.test(textAfter))
7872
- return ctx.indented;
7873
- var closing2 = firstChar == ctx.type;
7874
- if (ctx.align)
7875
- return ctx.column + (closing2 ? 0 : 1);
7876
- else
7877
- return ctx.indented + (closing2 ? 0 : cx.unit);
7878
- },
7879
- languageData: {
7880
- indentOnInput: /^\s([{}]|case |default\s*:)$/,
7881
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } }
7882
- }
7883
- };
7884
- function failFirstLine(stream, state2) {
7885
- stream.skipToEnd();
7886
- state2.cur = header;
7887
- return "error";
7888
- }
7889
- function start(stream, state2) {
7890
- if (stream.match(/^HTTP\/\d\.\d/)) {
7891
- state2.cur = responseStatusCode;
7892
- return "keyword";
7893
- } else if (stream.match(/^[A-Z]+/) && /[ \t]/.test(stream.peek())) {
7894
- state2.cur = requestPath;
7895
- return "keyword";
7896
- } else {
7897
- return failFirstLine(stream, state2);
7898
- }
7899
- }
7900
- function responseStatusCode(stream, state2) {
7901
- var code = stream.match(/^\d+/);
7902
- if (!code)
7903
- return failFirstLine(stream, state2);
7904
- state2.cur = responseStatusText;
7905
- var status = Number(code[0]);
7906
- if (status >= 100 && status < 400) {
7907
- return "atom";
7908
- } else {
7909
- return "error";
7910
- }
7911
- }
7912
- function responseStatusText(stream, state2) {
7913
- stream.skipToEnd();
7914
- state2.cur = header;
7915
- return null;
7916
- }
7917
- function requestPath(stream, state2) {
7918
- stream.eatWhile(/\S/);
7919
- state2.cur = requestProtocol;
7920
- return "string.special";
7921
- }
7922
- function requestProtocol(stream, state2) {
7923
- if (stream.match(/^HTTP\/\d\.\d$/)) {
7924
- state2.cur = header;
7925
- return "keyword";
7926
- } else {
7927
- return failFirstLine(stream, state2);
7928
- }
7929
- }
7930
- function header(stream) {
7931
- if (stream.sol() && !stream.eat(/[ \t]/)) {
7932
- if (stream.match(/^.*?:/)) {
7933
- return "atom";
7934
- } else {
7935
- stream.skipToEnd();
7936
- return "error";
7937
- }
7938
- } else {
7939
- stream.skipToEnd();
7940
- return "string";
7941
- }
7942
- }
7943
- function body(stream) {
7944
- stream.skipToEnd();
7945
- return null;
7946
- }
7947
- const http = {
7948
- name: "http",
7949
- token: function(stream, state2) {
7950
- var cur = state2.cur;
7951
- if (cur != header && cur != body && stream.eatSpace())
7952
- return null;
7953
- return cur(stream, state2);
7954
- },
7955
- blankLine: function(state2) {
7956
- state2.cur = body;
7957
- },
7958
- startState: function() {
7959
- return { cur: start };
7960
- }
7961
- };
7962
- function mlLike(parserConfig) {
7963
- var words2 = {
7964
- "as": "keyword",
7965
- "do": "keyword",
7966
- "else": "keyword",
7967
- "end": "keyword",
7968
- "exception": "keyword",
7969
- "fun": "keyword",
7970
- "functor": "keyword",
7971
- "if": "keyword",
7972
- "in": "keyword",
7973
- "include": "keyword",
7974
- "let": "keyword",
7975
- "of": "keyword",
7976
- "open": "keyword",
7977
- "rec": "keyword",
7978
- "struct": "keyword",
7979
- "then": "keyword",
7980
- "type": "keyword",
7981
- "val": "keyword",
7982
- "while": "keyword",
7983
- "with": "keyword"
7984
- };
7985
- var extraWords = parserConfig.extraWords || {};
7986
- for (var prop in extraWords) {
7987
- if (extraWords.hasOwnProperty(prop)) {
7988
- words2[prop] = parserConfig.extraWords[prop];
7989
- }
7990
- }
7991
- var hintWords = [];
7992
- for (var k2 in words2) {
7993
- hintWords.push(k2);
7994
- }
7995
- function tokenBase2(stream, state2) {
7996
- var ch = stream.next();
7997
- if (ch === '"') {
7998
- state2.tokenize = tokenString2;
7999
- return state2.tokenize(stream, state2);
8000
- }
8001
- if (ch === "{") {
8002
- if (stream.eat("|")) {
8003
- state2.longString = true;
8004
- state2.tokenize = tokenLongString;
8005
- return state2.tokenize(stream, state2);
8006
- }
8007
- }
8008
- if (ch === "(") {
8009
- if (stream.match(/^\*(?!\))/)) {
8010
- state2.commentLevel++;
8011
- state2.tokenize = tokenComment2;
8012
- return state2.tokenize(stream, state2);
8013
- }
8014
- }
8015
- if (ch === "~" || ch === "?") {
8016
- stream.eatWhile(/\w/);
8017
- return "variableName.special";
8018
- }
8019
- if (ch === "`") {
8020
- stream.eatWhile(/\w/);
8021
- return "quote";
8022
- }
8023
- if (ch === "/" && parserConfig.slashComments && stream.eat("/")) {
8024
- stream.skipToEnd();
8025
- return "comment";
8026
- }
8027
- if (/\d/.test(ch)) {
8028
- if (ch === "0" && stream.eat(/[bB]/)) {
8029
- stream.eatWhile(/[01]/);
8030
- }
8031
- if (ch === "0" && stream.eat(/[xX]/)) {
8032
- stream.eatWhile(/[0-9a-fA-F]/);
8033
- }
8034
- if (ch === "0" && stream.eat(/[oO]/)) {
8035
- stream.eatWhile(/[0-7]/);
8036
- } else {
8037
- stream.eatWhile(/[\d_]/);
8038
- if (stream.eat(".")) {
8039
- stream.eatWhile(/[\d]/);
8040
- }
8041
- if (stream.eat(/[eE]/)) {
8042
- stream.eatWhile(/[\d\-+]/);
8043
- }
8044
- }
8045
- return "number";
8046
- }
8047
- if (/[+\-*&%=<>!?|@\.~:]/.test(ch)) {
8048
- return "operator";
8049
- }
8050
- if (/[\w\xa1-\uffff]/.test(ch)) {
8051
- stream.eatWhile(/[\w\xa1-\uffff]/);
8052
- var cur = stream.current();
8053
- return words2.hasOwnProperty(cur) ? words2[cur] : "variable";
8054
- }
8055
- return null;
8056
- }
8057
- function tokenString2(stream, state2) {
8058
- var next, end = false, escaped = false;
8059
- while ((next = stream.next()) != null) {
8060
- if (next === '"' && !escaped) {
8061
- end = true;
8062
- break;
8063
- }
8064
- escaped = !escaped && next === "\\";
8065
- }
8066
- if (end && !escaped) {
8067
- state2.tokenize = tokenBase2;
8068
- }
8069
- return "string";
8070
- }
8071
- function tokenComment2(stream, state2) {
8072
- var prev, next;
8073
- while (state2.commentLevel > 0 && (next = stream.next()) != null) {
8074
- if (prev === "(" && next === "*")
8075
- state2.commentLevel++;
8076
- if (prev === "*" && next === ")")
8077
- state2.commentLevel--;
8078
- prev = next;
8079
- }
8080
- if (state2.commentLevel <= 0) {
8081
- state2.tokenize = tokenBase2;
8082
- }
8083
- return "comment";
8084
- }
8085
- function tokenLongString(stream, state2) {
8086
- var prev, next;
8087
- while (state2.longString && (next = stream.next()) != null) {
8088
- if (prev === "|" && next === "}")
8089
- state2.longString = false;
8090
- prev = next;
8091
- }
8092
- if (!state2.longString) {
8093
- state2.tokenize = tokenBase2;
8094
- }
8095
- return "string";
8096
- }
8097
- return {
8098
- startState: function() {
8099
- return { tokenize: tokenBase2, commentLevel: 0, longString: false };
8100
- },
8101
- token: function(stream, state2) {
8102
- if (stream.eatSpace())
8103
- return null;
8104
- return state2.tokenize(stream, state2);
8105
- },
8106
- languageData: {
8107
- autocomplete: hintWords,
8108
- commentTokens: {
8109
- line: parserConfig.slashComments ? "//" : void 0,
8110
- block: { open: "(*", close: "*)" }
8111
- }
8112
- }
8113
- };
8114
- }
8115
- const oCaml = mlLike({
8116
- name: "ocaml",
8117
- extraWords: {
8118
- "and": "keyword",
8119
- "assert": "keyword",
8120
- "begin": "keyword",
8121
- "class": "keyword",
8122
- "constraint": "keyword",
8123
- "done": "keyword",
8124
- "downto": "keyword",
8125
- "external": "keyword",
8126
- "function": "keyword",
8127
- "initializer": "keyword",
8128
- "lazy": "keyword",
8129
- "match": "keyword",
8130
- "method": "keyword",
8131
- "module": "keyword",
8132
- "mutable": "keyword",
8133
- "new": "keyword",
8134
- "nonrec": "keyword",
8135
- "object": "keyword",
8136
- "private": "keyword",
8137
- "sig": "keyword",
8138
- "to": "keyword",
8139
- "try": "keyword",
8140
- "value": "keyword",
8141
- "virtual": "keyword",
8142
- "when": "keyword",
8143
- // builtins
8144
- "raise": "builtin",
8145
- "failwith": "builtin",
8146
- "true": "builtin",
8147
- "false": "builtin",
8148
- // Pervasives builtins
8149
- "asr": "builtin",
8150
- "land": "builtin",
8151
- "lor": "builtin",
8152
- "lsl": "builtin",
8153
- "lsr": "builtin",
8154
- "lxor": "builtin",
8155
- "mod": "builtin",
8156
- "or": "builtin",
8157
- // More Pervasives
8158
- "raise_notrace": "builtin",
8159
- "trace": "builtin",
8160
- "exit": "builtin",
8161
- "print_string": "builtin",
8162
- "print_endline": "builtin",
8163
- "int": "type",
8164
- "float": "type",
8165
- "bool": "type",
8166
- "char": "type",
8167
- "string": "type",
8168
- "unit": "type",
8169
- // Modules
8170
- "List": "builtin"
8171
- }
8172
- });
8173
- mlLike({
8174
- name: "fsharp",
8175
- extraWords: {
8176
- "abstract": "keyword",
8177
- "assert": "keyword",
8178
- "base": "keyword",
8179
- "begin": "keyword",
8180
- "class": "keyword",
8181
- "default": "keyword",
8182
- "delegate": "keyword",
8183
- "do!": "keyword",
8184
- "done": "keyword",
8185
- "downcast": "keyword",
8186
- "downto": "keyword",
8187
- "elif": "keyword",
8188
- "extern": "keyword",
8189
- "finally": "keyword",
8190
- "for": "keyword",
8191
- "function": "keyword",
8192
- "global": "keyword",
8193
- "inherit": "keyword",
8194
- "inline": "keyword",
8195
- "interface": "keyword",
8196
- "internal": "keyword",
8197
- "lazy": "keyword",
8198
- "let!": "keyword",
8199
- "match": "keyword",
8200
- "member": "keyword",
8201
- "module": "keyword",
8202
- "mutable": "keyword",
8203
- "namespace": "keyword",
8204
- "new": "keyword",
8205
- "null": "keyword",
8206
- "override": "keyword",
8207
- "private": "keyword",
8208
- "public": "keyword",
8209
- "return!": "keyword",
8210
- "return": "keyword",
8211
- "select": "keyword",
8212
- "static": "keyword",
8213
- "to": "keyword",
8214
- "try": "keyword",
8215
- "upcast": "keyword",
8216
- "use!": "keyword",
8217
- "use": "keyword",
8218
- "void": "keyword",
8219
- "when": "keyword",
8220
- "yield!": "keyword",
8221
- "yield": "keyword",
8222
- // Reserved words
8223
- "atomic": "keyword",
8224
- "break": "keyword",
8225
- "checked": "keyword",
8226
- "component": "keyword",
8227
- "const": "keyword",
8228
- "constraint": "keyword",
8229
- "constructor": "keyword",
8230
- "continue": "keyword",
8231
- "eager": "keyword",
8232
- "event": "keyword",
8233
- "external": "keyword",
8234
- "fixed": "keyword",
8235
- "method": "keyword",
8236
- "mixin": "keyword",
8237
- "object": "keyword",
8238
- "parallel": "keyword",
8239
- "process": "keyword",
8240
- "protected": "keyword",
8241
- "pure": "keyword",
8242
- "sealed": "keyword",
8243
- "tailcall": "keyword",
8244
- "trait": "keyword",
8245
- "virtual": "keyword",
8246
- "volatile": "keyword",
8247
- // builtins
8248
- "List": "builtin",
8249
- "Seq": "builtin",
8250
- "Map": "builtin",
8251
- "Set": "builtin",
8252
- "Option": "builtin",
8253
- "int": "builtin",
8254
- "string": "builtin",
8255
- "not": "builtin",
8256
- "true": "builtin",
8257
- "false": "builtin",
8258
- "raise": "builtin",
8259
- "failwith": "builtin"
8260
- },
8261
- slashComments: true
8262
- });
8263
- mlLike({
8264
- name: "sml",
8265
- extraWords: {
8266
- "abstype": "keyword",
8267
- "and": "keyword",
8268
- "andalso": "keyword",
8269
- "case": "keyword",
8270
- "datatype": "keyword",
8271
- "fn": "keyword",
8272
- "handle": "keyword",
8273
- "infix": "keyword",
8274
- "infixr": "keyword",
8275
- "local": "keyword",
8276
- "nonfix": "keyword",
8277
- "op": "keyword",
8278
- "orelse": "keyword",
8279
- "raise": "keyword",
8280
- "withtype": "keyword",
8281
- "eqtype": "keyword",
8282
- "sharing": "keyword",
8283
- "sig": "keyword",
8284
- "signature": "keyword",
8285
- "structure": "keyword",
8286
- "where": "keyword",
8287
- "true": "keyword",
8288
- "false": "keyword",
8289
- // types
8290
- "int": "builtin",
8291
- "real": "builtin",
8292
- "string": "builtin",
8293
- "char": "builtin",
8294
- "bool": "builtin"
8295
- },
8296
- slashComments: true
8297
- });
8298
- function buildRegexp(patterns, options) {
8299
- options = options || {};
8300
- var prefix = options.prefix !== void 0 ? options.prefix : "^";
8301
- var suffix = options.suffix !== void 0 ? options.suffix : "\\b";
8302
- for (var i2 = 0; i2 < patterns.length; i2++) {
8303
- if (patterns[i2] instanceof RegExp) {
8304
- patterns[i2] = patterns[i2].source;
8305
- } else {
8306
- patterns[i2] = patterns[i2].replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
8307
- }
8308
- }
8309
- return new RegExp(prefix + "(" + patterns.join("|") + ")" + suffix, "i");
8310
- }
8311
- var notCharacterOrDash = "(?=[^A-Za-z\\d\\-_]|$)";
8312
- var varNames = /[\w\-:]/;
8313
- var keywords$3 = buildRegexp([
8314
- /begin|break|catch|continue|data|default|do|dynamicparam/,
8315
- /else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,
8316
- /param|process|return|switch|throw|trap|try|until|where|while/
8317
- ], { suffix: notCharacterOrDash });
8318
- var punctuation = /[\[\]{},;`\\\.]|@[({]/;
8319
- var wordOperators = buildRegexp([
8320
- "f",
8321
- /b?not/,
8322
- /[ic]?split/,
8323
- "join",
8324
- /is(not)?/,
8325
- "as",
8326
- /[ic]?(eq|ne|[gl][te])/,
8327
- /[ic]?(not)?(like|match|contains)/,
8328
- /[ic]?replace/,
8329
- /b?(and|or|xor)/
8330
- ], { prefix: "-" });
8331
- var symbolOperators = /[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/;
8332
- var operators$1 = buildRegexp([wordOperators, symbolOperators], { suffix: "" });
8333
- var numbers = /^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i;
8334
- var identifiers = /^[A-Za-z\_][A-Za-z\-\_\d]*\b/;
8335
- var symbolBuiltins = /[A-Z]:|%|\?/i;
8336
- var namedBuiltins = buildRegexp([
8337
- /Add-(Computer|Content|History|Member|PSSnapin|Type)/,
8338
- /Checkpoint-Computer/,
8339
- /Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,
8340
- /Compare-Object/,
8341
- /Complete-Transaction/,
8342
- /Connect-PSSession/,
8343
- /ConvertFrom-(Csv|Json|SecureString|StringData)/,
8344
- /Convert-Path/,
8345
- /ConvertTo-(Csv|Html|Json|SecureString|Xml)/,
8346
- /Copy-Item(Property)?/,
8347
- /Debug-Process/,
8348
- /Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
8349
- /Disconnect-PSSession/,
8350
- /Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,
8351
- /(Enter|Exit)-PSSession/,
8352
- /Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,
8353
- /ForEach-Object/,
8354
- /Format-(Custom|List|Table|Wide)/,
8355
- new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),
8356
- /Group-Object/,
8357
- /Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,
8358
- /ImportSystemModules/,
8359
- /Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,
8360
- /Join-Path/,
8361
- /Limit-EventLog/,
8362
- /Measure-(Command|Object)/,
8363
- /Move-Item(Property)?/,
8364
- new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),
8365
- /Out-(Default|File|GridView|Host|Null|Printer|String)/,
8366
- /Pause/,
8367
- /(Pop|Push)-Location/,
8368
- /Read-Host/,
8369
- /Receive-(Job|PSSession)/,
8370
- /Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,
8371
- /Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,
8372
- /Rename-(Computer|Item(Property)?)/,
8373
- /Reset-ComputerMachinePassword/,
8374
- /Resolve-Path/,
8375
- /Restart-(Computer|Service)/,
8376
- /Restore-Computer/,
8377
- /Resume-(Job|Service)/,
8378
- /Save-Help/,
8379
- /Select-(Object|String|Xml)/,
8380
- /Send-MailMessage/,
8381
- new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),
8382
- /Show-(Command|ControlPanelItem|EventLog)/,
8383
- /Sort-Object/,
8384
- /Split-Path/,
8385
- /Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,
8386
- /Stop-(Computer|Job|Process|Service|Transcript)/,
8387
- /Suspend-(Job|Service)/,
8388
- /TabExpansion2/,
8389
- /Tee-Object/,
8390
- /Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,
8391
- /Trace-Command/,
8392
- /Unblock-File/,
8393
- /Undo-Transaction/,
8394
- /Unregister-(Event|PSSessionConfiguration)/,
8395
- /Update-(FormatData|Help|List|TypeData)/,
8396
- /Use-Transaction/,
8397
- /Wait-(Event|Job|Process)/,
8398
- /Where-Object/,
8399
- /Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,
8400
- /cd|help|mkdir|more|oss|prompt/,
8401
- /ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,
8402
- /echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,
8403
- /group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,
8404
- /measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,
8405
- /rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,
8406
- /sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/
8407
- ], { prefix: "", suffix: "" });
8408
- var variableBuiltins = buildRegexp([
8409
- /[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,
8410
- /FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,
8411
- /MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,
8412
- /PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,
8413
- /PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,
8414
- /WarningPreference|WhatIfPreference/,
8415
- /Event|EventArgs|EventSubscriber|Sender/,
8416
- /Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,
8417
- /true|false|null/
8418
- ], { prefix: "\\$", suffix: "" });
8419
- var builtins$1 = buildRegexp([symbolBuiltins, namedBuiltins, variableBuiltins], { suffix: notCharacterOrDash });
8420
- var grammar = {
8421
- keyword: keywords$3,
8422
- number: numbers,
8423
- operator: operators$1,
8424
- builtin: builtins$1,
8425
- punctuation,
8426
- variable: identifiers
8427
- };
8428
- function tokenBase$4(stream, state2) {
8429
- var parent = state2.returnStack[state2.returnStack.length - 1];
8430
- if (parent && parent.shouldReturnFrom(state2)) {
8431
- state2.tokenize = parent.tokenize;
8432
- state2.returnStack.pop();
8433
- return state2.tokenize(stream, state2);
8434
- }
8435
- if (stream.eatSpace()) {
8436
- return null;
8437
- }
8438
- if (stream.eat("(")) {
8439
- state2.bracketNesting += 1;
8440
- return "punctuation";
8441
- }
8442
- if (stream.eat(")")) {
8443
- state2.bracketNesting -= 1;
8444
- return "punctuation";
8445
- }
8446
- for (var key in grammar) {
8447
- if (stream.match(grammar[key])) {
8448
- return key;
8449
- }
8450
- }
8451
- var ch = stream.next();
8452
- if (ch === "'") {
8453
- return tokenSingleQuoteString(stream, state2);
8454
- }
8455
- if (ch === "$") {
8456
- return tokenVariable(stream, state2);
8457
- }
8458
- if (ch === '"') {
8459
- return tokenDoubleQuoteString(stream, state2);
8460
- }
8461
- if (ch === "<" && stream.eat("#")) {
8462
- state2.tokenize = tokenComment$1;
8463
- return tokenComment$1(stream, state2);
8464
- }
8465
- if (ch === "#") {
8466
- stream.skipToEnd();
8467
- return "comment";
8468
- }
8469
- if (ch === "@") {
8470
- var quoteMatch = stream.eat(/["']/);
8471
- if (quoteMatch && stream.eol()) {
8472
- state2.tokenize = tokenMultiString;
8473
- state2.startQuote = quoteMatch[0];
8474
- return tokenMultiString(stream, state2);
8475
- } else if (stream.eol()) {
8476
- return "error";
8477
- } else if (stream.peek().match(/[({]/)) {
8478
- return "punctuation";
8479
- } else if (stream.peek().match(varNames)) {
8480
- return tokenVariable(stream, state2);
8481
- }
8482
- }
8483
- return "error";
8484
- }
8485
- function tokenSingleQuoteString(stream, state2) {
8486
- var ch;
8487
- while ((ch = stream.peek()) != null) {
8488
- stream.next();
8489
- if (ch === "'" && !stream.eat("'")) {
8490
- state2.tokenize = tokenBase$4;
8491
- return "string";
8492
- }
8493
- }
8494
- return "error";
8495
- }
8496
- function tokenDoubleQuoteString(stream, state2) {
8497
- var ch;
8498
- while ((ch = stream.peek()) != null) {
8499
- if (ch === "$") {
8500
- state2.tokenize = tokenStringInterpolation;
8501
- return "string";
8502
- }
8503
- stream.next();
8504
- if (ch === "`") {
8505
- stream.next();
8506
- continue;
8507
- }
8508
- if (ch === '"' && !stream.eat('"')) {
8509
- state2.tokenize = tokenBase$4;
8510
- return "string";
8511
- }
8512
- }
8513
- return "error";
8514
- }
8515
- function tokenStringInterpolation(stream, state2) {
8516
- return tokenInterpolation(stream, state2, tokenDoubleQuoteString);
8517
- }
8518
- function tokenMultiStringReturn(stream, state2) {
8519
- state2.tokenize = tokenMultiString;
8520
- state2.startQuote = '"';
8521
- return tokenMultiString(stream, state2);
8522
- }
8523
- function tokenHereStringInterpolation(stream, state2) {
8524
- return tokenInterpolation(stream, state2, tokenMultiStringReturn);
8525
- }
8526
- function tokenInterpolation(stream, state2, parentTokenize) {
8527
- if (stream.match("$(")) {
8528
- var savedBracketNesting = state2.bracketNesting;
8529
- state2.returnStack.push({
8530
- /*jshint loopfunc:true */
8531
- shouldReturnFrom: function(state3) {
8532
- return state3.bracketNesting === savedBracketNesting;
8533
- },
8534
- tokenize: parentTokenize
8535
- });
8536
- state2.tokenize = tokenBase$4;
8537
- state2.bracketNesting += 1;
8538
- return "punctuation";
8539
- } else {
8540
- stream.next();
8541
- state2.returnStack.push({
8542
- shouldReturnFrom: function() {
8543
- return true;
8544
- },
8545
- tokenize: parentTokenize
8546
- });
8547
- state2.tokenize = tokenVariable;
8548
- return state2.tokenize(stream, state2);
8549
- }
8550
- }
8551
- function tokenComment$1(stream, state2) {
8552
- var maybeEnd = false, ch;
8553
- while ((ch = stream.next()) != null) {
8554
- if (maybeEnd && ch == ">") {
8555
- state2.tokenize = tokenBase$4;
8556
- break;
8557
- }
8558
- maybeEnd = ch === "#";
8559
- }
8560
- return "comment";
8561
- }
8562
- function tokenVariable(stream, state2) {
8563
- var ch = stream.peek();
8564
- if (stream.eat("{")) {
8565
- state2.tokenize = tokenVariableWithBraces;
8566
- return tokenVariableWithBraces(stream, state2);
8567
- } else if (ch != void 0 && ch.match(varNames)) {
8568
- stream.eatWhile(varNames);
8569
- state2.tokenize = tokenBase$4;
8570
- return "variable";
8571
- } else {
8572
- state2.tokenize = tokenBase$4;
8573
- return "error";
8574
- }
8575
- }
8576
- function tokenVariableWithBraces(stream, state2) {
8577
- var ch;
8578
- while ((ch = stream.next()) != null) {
8579
- if (ch === "}") {
8580
- state2.tokenize = tokenBase$4;
8581
- break;
8582
- }
8583
- }
8584
- return "variable";
8585
- }
8586
- function tokenMultiString(stream, state2) {
8587
- var quote = state2.startQuote;
8588
- if (stream.sol() && stream.match(new RegExp(quote + "@"))) {
8589
- state2.tokenize = tokenBase$4;
8590
- } else if (quote === '"') {
8591
- while (!stream.eol()) {
8592
- var ch = stream.peek();
8593
- if (ch === "$") {
8594
- state2.tokenize = tokenHereStringInterpolation;
8595
- return "string";
8596
- }
8597
- stream.next();
8598
- if (ch === "`") {
8599
- stream.next();
8600
- }
8601
- }
8602
- } else {
8603
- stream.skipToEnd();
8604
- }
8605
- return "string";
8606
- }
8607
- const powerShell = {
8608
- name: "powershell",
8609
- startState: function() {
8610
- return {
8611
- returnStack: [],
8612
- bracketNesting: 0,
8613
- tokenize: tokenBase$4
8614
- };
8615
- },
8616
- token: function(stream, state2) {
8617
- return state2.tokenize(stream, state2);
8618
- },
8619
- languageData: {
8620
- commentTokens: { line: "#", block: { open: "<#", close: "#>" } }
8621
- }
8622
- };
8623
- function wordObj$1(words2) {
8624
- var res = {};
8625
- for (var i2 = 0; i2 < words2.length; ++i2)
8626
- res[words2[i2]] = true;
8627
- return res;
8628
- }
8629
- var commonAtoms$1 = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"];
8630
- var commonBuiltins = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"];
8631
- var commonKeywords$1 = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"];
8632
- var commonBlockKeywords = ["if", "else", "repeat", "while", "function", "for"];
8633
- var atoms$1 = wordObj$1(commonAtoms$1);
8634
- var builtins = wordObj$1(commonBuiltins);
8635
- var keywords$2 = wordObj$1(commonKeywords$1);
8636
- var blockkeywords = wordObj$1(commonBlockKeywords);
8637
- var opChars = /[+\-*\/^<>=!&|~$:]/;
8638
- var curPunc$1;
8639
- function tokenBase$3(stream, state2) {
8640
- curPunc$1 = null;
8641
- var ch = stream.next();
8642
- if (ch == "#") {
8643
- stream.skipToEnd();
8644
- return "comment";
8645
- } else if (ch == "0" && stream.eat("x")) {
8646
- stream.eatWhile(/[\da-f]/i);
8647
- return "number";
8648
- } else if (ch == "." && stream.eat(/\d/)) {
8649
- stream.match(/\d*(?:e[+\-]?\d+)?/);
8650
- return "number";
8651
- } else if (/\d/.test(ch)) {
8652
- stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);
8653
- return "number";
8654
- } else if (ch == "'" || ch == '"') {
8655
- state2.tokenize = tokenString$2(ch);
8656
- return "string";
8657
- } else if (ch == "`") {
8658
- stream.match(/[^`]+`/);
8659
- return "string.special";
8660
- } else if (ch == "." && stream.match(/.(?:[.]|\d+)/)) {
8661
- return "keyword";
8662
- } else if (/[a-zA-Z\.]/.test(ch)) {
8663
- stream.eatWhile(/[\w\.]/);
8664
- var word = stream.current();
8665
- if (atoms$1.propertyIsEnumerable(word))
8666
- return "atom";
8667
- if (keywords$2.propertyIsEnumerable(word)) {
8668
- if (blockkeywords.propertyIsEnumerable(word) && !stream.match(/\s*if(\s+|$)/, false))
8669
- curPunc$1 = "block";
8670
- return "keyword";
8671
- }
8672
- if (builtins.propertyIsEnumerable(word))
8673
- return "builtin";
8674
- return "variable";
8675
- } else if (ch == "%") {
8676
- if (stream.skipTo("%"))
8677
- stream.next();
8678
- return "variableName.special";
8679
- } else if (ch == "<" && stream.eat("-") || ch == "<" && stream.match("<-") || ch == "-" && stream.match(/>>?/)) {
8680
- return "operator";
8681
- } else if (ch == "=" && state2.ctx.argList) {
8682
- return "operator";
8683
- } else if (opChars.test(ch)) {
8684
- if (ch == "$")
8685
- return "operator";
8686
- stream.eatWhile(opChars);
8687
- return "operator";
8688
- } else if (/[\(\){}\[\];]/.test(ch)) {
8689
- curPunc$1 = ch;
8690
- if (ch == ";")
8691
- return "punctuation";
8692
- return null;
8693
- } else {
8694
- return null;
8695
- }
8696
- }
8697
- function tokenString$2(quote) {
8698
- return function(stream, state2) {
8699
- if (stream.eat("\\")) {
8700
- var ch = stream.next();
8701
- if (ch == "x")
8702
- stream.match(/^[a-f0-9]{2}/i);
8703
- else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}"))
8704
- stream.next();
8705
- else if (ch == "u")
8706
- stream.match(/^[a-f0-9]{4}/i);
8707
- else if (ch == "U")
8708
- stream.match(/^[a-f0-9]{8}/i);
8709
- else if (/[0-7]/.test(ch))
8710
- stream.match(/^[0-7]{1,2}/);
8711
- return "string.special";
8712
- } else {
8713
- var next;
8714
- while ((next = stream.next()) != null) {
8715
- if (next == quote) {
8716
- state2.tokenize = tokenBase$3;
8717
- break;
8718
- }
8719
- if (next == "\\") {
8720
- stream.backUp(1);
8721
- break;
8722
- }
8723
- }
8724
- return "string";
8725
- }
8726
- };
8727
- }
8728
- var ALIGN_YES = 1, ALIGN_NO = 2, BRACELESS = 4;
8729
- function push(state2, type, stream) {
8730
- state2.ctx = {
8731
- type,
8732
- indent: state2.indent,
8733
- flags: 0,
8734
- column: stream.column(),
8735
- prev: state2.ctx
8736
- };
8737
- }
8738
- function setFlag(state2, flag) {
8739
- var ctx = state2.ctx;
8740
- state2.ctx = {
8741
- type: ctx.type,
8742
- indent: ctx.indent,
8743
- flags: ctx.flags | flag,
8744
- column: ctx.column,
8745
- prev: ctx.prev
8746
- };
8747
- }
8748
- function pop(state2) {
8749
- state2.indent = state2.ctx.indent;
8750
- state2.ctx = state2.ctx.prev;
8751
- }
8752
- const r = {
8753
- name: "r",
8754
- startState: function(indentUnit) {
8755
- return {
8756
- tokenize: tokenBase$3,
8757
- ctx: {
8758
- type: "top",
8759
- indent: -indentUnit,
8760
- flags: ALIGN_NO
8761
- },
8762
- indent: 0,
8763
- afterIdent: false
8764
- };
8765
- },
8766
- token: function(stream, state2) {
8767
- if (stream.sol()) {
8768
- if ((state2.ctx.flags & 3) == 0)
8769
- state2.ctx.flags |= ALIGN_NO;
8770
- if (state2.ctx.flags & BRACELESS)
8771
- pop(state2);
8772
- state2.indent = stream.indentation();
8773
- }
8774
- if (stream.eatSpace())
8775
- return null;
8776
- var style = state2.tokenize(stream, state2);
8777
- if (style != "comment" && (state2.ctx.flags & ALIGN_NO) == 0)
8778
- setFlag(state2, ALIGN_YES);
8779
- if ((curPunc$1 == ";" || curPunc$1 == "{" || curPunc$1 == "}") && state2.ctx.type == "block")
8780
- pop(state2);
8781
- if (curPunc$1 == "{")
8782
- push(state2, "}", stream);
8783
- else if (curPunc$1 == "(") {
8784
- push(state2, ")", stream);
8785
- if (state2.afterIdent)
8786
- state2.ctx.argList = true;
8787
- } else if (curPunc$1 == "[")
8788
- push(state2, "]", stream);
8789
- else if (curPunc$1 == "block")
8790
- push(state2, "block", stream);
8791
- else if (curPunc$1 == state2.ctx.type)
8792
- pop(state2);
8793
- else if (state2.ctx.type == "block" && style != "comment")
8794
- setFlag(state2, BRACELESS);
8795
- state2.afterIdent = style == "variable" || style == "keyword";
8796
- return style;
8797
- },
8798
- indent: function(state2, textAfter, cx) {
8799
- if (state2.tokenize != tokenBase$3)
8800
- return 0;
8801
- var firstChar = textAfter && textAfter.charAt(0), ctx = state2.ctx, closing2 = firstChar == ctx.type;
8802
- if (ctx.flags & BRACELESS)
8803
- ctx = ctx.prev;
8804
- if (ctx.type == "block")
8805
- return ctx.indent + (firstChar == "{" ? 0 : cx.unit);
8806
- else if (ctx.flags & ALIGN_YES)
8807
- return ctx.column + (closing2 ? 0 : 1);
8808
- else
8809
- return ctx.indent + (closing2 ? 0 : cx.unit);
8810
- },
8811
- languageData: {
8812
- wordChars: ".",
8813
- commentTokens: { line: "#" },
8814
- autocomplete: commonAtoms$1.concat(commonBuiltins, commonKeywords$1)
8815
- }
8816
- };
8817
- function wordObj(words2) {
8818
- var o2 = {};
8819
- for (var i2 = 0, e2 = words2.length; i2 < e2; ++i2)
8820
- o2[words2[i2]] = true;
8821
- return o2;
8822
- }
8823
- var keywordList = [
8824
- "alias",
8825
- "and",
8826
- "BEGIN",
8827
- "begin",
8828
- "break",
8829
- "case",
8830
- "class",
8831
- "def",
8832
- "defined?",
8833
- "do",
8834
- "else",
8835
- "elsif",
8836
- "END",
8837
- "end",
8838
- "ensure",
8839
- "false",
8840
- "for",
8841
- "if",
8842
- "in",
8843
- "module",
8844
- "next",
8845
- "not",
8846
- "or",
8847
- "redo",
8848
- "rescue",
8849
- "retry",
8850
- "return",
8851
- "self",
8852
- "super",
8853
- "then",
8854
- "true",
8855
- "undef",
8856
- "unless",
8857
- "until",
8858
- "when",
8859
- "while",
8860
- "yield",
8861
- "nil",
8862
- "raise",
8863
- "throw",
8864
- "catch",
8865
- "fail",
8866
- "loop",
8867
- "callcc",
8868
- "caller",
8869
- "lambda",
8870
- "proc",
8871
- "public",
8872
- "protected",
8873
- "private",
8874
- "require",
8875
- "load",
8876
- "require_relative",
8877
- "extend",
8878
- "autoload",
8879
- "__END__",
8880
- "__FILE__",
8881
- "__LINE__",
8882
- "__dir__"
8883
- ], keywords$1 = wordObj(keywordList);
8884
- var indentWords = wordObj([
8885
- "def",
8886
- "class",
8887
- "case",
8888
- "for",
8889
- "while",
8890
- "until",
8891
- "module",
8892
- "catch",
8893
- "loop",
8894
- "proc",
8895
- "begin"
8896
- ]);
8897
- var dedentWords = wordObj(["end", "until"]);
8898
- var opening = { "[": "]", "{": "}", "(": ")" };
8899
- var closing = { "]": "[", "}": "{", ")": "(" };
8900
- var curPunc;
8901
- function chain(newtok, stream, state2) {
8902
- state2.tokenize.push(newtok);
8903
- return newtok(stream, state2);
8904
- }
8905
- function tokenBase$2(stream, state2) {
8906
- if (stream.sol() && stream.match("=begin") && stream.eol()) {
8907
- state2.tokenize.push(readBlockComment);
8908
- return "comment";
8909
- }
8910
- if (stream.eatSpace())
8911
- return null;
8912
- var ch = stream.next(), m2;
8913
- if (ch == "`" || ch == "'" || ch == '"') {
8914
- return chain(readQuoted(ch, "string", ch == '"' || ch == "`"), stream, state2);
8915
- } else if (ch == "/") {
8916
- if (regexpAhead(stream))
8917
- return chain(readQuoted(ch, "string.special", true), stream, state2);
8918
- else
8919
- return "operator";
8920
- } else if (ch == "%") {
8921
- var style = "string", embed = true;
8922
- if (stream.eat("s"))
8923
- style = "atom";
8924
- else if (stream.eat(/[WQ]/))
8925
- style = "string";
8926
- else if (stream.eat(/[r]/))
8927
- style = "string.special";
8928
- else if (stream.eat(/[wxq]/)) {
8929
- style = "string";
8930
- embed = false;
8931
- }
8932
- var delim = stream.eat(/[^\w\s=]/);
8933
- if (!delim)
8934
- return "operator";
8935
- if (opening.propertyIsEnumerable(delim))
8936
- delim = opening[delim];
8937
- return chain(readQuoted(delim, style, embed, true), stream, state2);
8938
- } else if (ch == "#") {
8939
- stream.skipToEnd();
8940
- return "comment";
8941
- } else if (ch == "<" && (m2 = stream.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) {
8942
- return chain(readHereDoc(m2[2], m2[1]), stream, state2);
8943
- } else if (ch == "0") {
8944
- if (stream.eat("x"))
8945
- stream.eatWhile(/[\da-fA-F]/);
8946
- else if (stream.eat("b"))
8947
- stream.eatWhile(/[01]/);
8948
- else
8949
- stream.eatWhile(/[0-7]/);
8950
- return "number";
8951
- } else if (/\d/.test(ch)) {
8952
- stream.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/);
8953
- return "number";
8954
- } else if (ch == "?") {
8955
- while (stream.match(/^\\[CM]-/)) {
8956
- }
8957
- if (stream.eat("\\"))
8958
- stream.eatWhile(/\w/);
8959
- else
8960
- stream.next();
8961
- return "string";
8962
- } else if (ch == ":") {
8963
- if (stream.eat("'"))
8964
- return chain(readQuoted("'", "atom", false), stream, state2);
8965
- if (stream.eat('"'))
8966
- return chain(readQuoted('"', "atom", true), stream, state2);
8967
- if (stream.eat(/[\<\>]/)) {
8968
- stream.eat(/[\<\>]/);
8969
- return "atom";
8970
- }
8971
- if (stream.eat(/[\+\-\*\/\&\|\:\!]/)) {
8972
- return "atom";
8973
- }
8974
- if (stream.eat(/[a-zA-Z$@_\xa1-\uffff]/)) {
8975
- stream.eatWhile(/[\w$\xa1-\uffff]/);
8976
- stream.eat(/[\?\!\=]/);
8977
- return "atom";
8978
- }
8979
- return "operator";
8980
- } else if (ch == "@" && stream.match(/^@?[a-zA-Z_\xa1-\uffff]/)) {
8981
- stream.eat("@");
8982
- stream.eatWhile(/[\w\xa1-\uffff]/);
8983
- return "propertyName";
8984
- } else if (ch == "$") {
8985
- if (stream.eat(/[a-zA-Z_]/)) {
8986
- stream.eatWhile(/[\w]/);
8987
- } else if (stream.eat(/\d/)) {
8988
- stream.eat(/\d/);
8989
- } else {
8990
- stream.next();
8991
- }
8992
- return "variableName.special";
8993
- } else if (/[a-zA-Z_\xa1-\uffff]/.test(ch)) {
8994
- stream.eatWhile(/[\w\xa1-\uffff]/);
8995
- stream.eat(/[\?\!]/);
8996
- if (stream.eat(":"))
8997
- return "atom";
8998
- return "variable";
8999
- } else if (ch == "|" && (state2.varList || state2.lastTok == "{" || state2.lastTok == "do")) {
9000
- curPunc = "|";
9001
- return null;
9002
- } else if (/[\(\)\[\]{}\\;]/.test(ch)) {
9003
- curPunc = ch;
9004
- return null;
9005
- } else if (ch == "-" && stream.eat(">")) {
9006
- return "operator";
9007
- } else if (/[=+\-\/*:\.^%<>~|]/.test(ch)) {
9008
- var more = stream.eatWhile(/[=+\-\/*:\.^%<>~|]/);
9009
- if (ch == "." && !more)
9010
- curPunc = ".";
9011
- return "operator";
9012
- } else {
9013
- return null;
9014
- }
9015
- }
9016
- function regexpAhead(stream) {
9017
- var start2 = stream.pos, depth = 0, next, found = false, escaped = false;
9018
- while ((next = stream.next()) != null) {
9019
- if (!escaped) {
9020
- if ("[{(".indexOf(next) > -1) {
9021
- depth++;
9022
- } else if ("]})".indexOf(next) > -1) {
9023
- depth--;
9024
- if (depth < 0)
9025
- break;
9026
- } else if (next == "/" && depth == 0) {
9027
- found = true;
9028
- break;
9029
- }
9030
- escaped = next == "\\";
9031
- } else {
9032
- escaped = false;
9033
- }
9034
- }
9035
- stream.backUp(stream.pos - start2);
9036
- return found;
9037
- }
9038
- function tokenBaseUntilBrace(depth) {
9039
- if (!depth)
9040
- depth = 1;
9041
- return function(stream, state2) {
9042
- if (stream.peek() == "}") {
9043
- if (depth == 1) {
9044
- state2.tokenize.pop();
9045
- return state2.tokenize[state2.tokenize.length - 1](stream, state2);
9046
- } else {
9047
- state2.tokenize[state2.tokenize.length - 1] = tokenBaseUntilBrace(depth - 1);
9048
- }
9049
- } else if (stream.peek() == "{") {
9050
- state2.tokenize[state2.tokenize.length - 1] = tokenBaseUntilBrace(depth + 1);
9051
- }
9052
- return tokenBase$2(stream, state2);
9053
- };
9054
- }
9055
- function tokenBaseOnce() {
9056
- var alreadyCalled = false;
9057
- return function(stream, state2) {
9058
- if (alreadyCalled) {
9059
- state2.tokenize.pop();
9060
- return state2.tokenize[state2.tokenize.length - 1](stream, state2);
9061
- }
9062
- alreadyCalled = true;
9063
- return tokenBase$2(stream, state2);
9064
- };
9065
- }
9066
- function readQuoted(quote, style, embed, unescaped) {
9067
- return function(stream, state2) {
9068
- var escaped = false, ch;
9069
- if (state2.context.type === "read-quoted-paused") {
9070
- state2.context = state2.context.prev;
9071
- stream.eat("}");
9072
- }
9073
- while ((ch = stream.next()) != null) {
9074
- if (ch == quote && (unescaped || !escaped)) {
9075
- state2.tokenize.pop();
9076
- break;
9077
- }
9078
- if (embed && ch == "#" && !escaped) {
9079
- if (stream.eat("{")) {
9080
- if (quote == "}") {
9081
- state2.context = { prev: state2.context, type: "read-quoted-paused" };
9082
- }
9083
- state2.tokenize.push(tokenBaseUntilBrace());
9084
- break;
9085
- } else if (/[@\$]/.test(stream.peek())) {
9086
- state2.tokenize.push(tokenBaseOnce());
9087
- break;
9088
- }
9089
- }
9090
- escaped = !escaped && ch == "\\";
9091
- }
9092
- return style;
9093
- };
9094
- }
9095
- function readHereDoc(phrase, mayIndent) {
9096
- return function(stream, state2) {
9097
- if (mayIndent)
9098
- stream.eatSpace();
9099
- if (stream.match(phrase))
9100
- state2.tokenize.pop();
9101
- else
9102
- stream.skipToEnd();
9103
- return "string";
9104
- };
9105
- }
9106
- function readBlockComment(stream, state2) {
9107
- if (stream.sol() && stream.match("=end") && stream.eol())
9108
- state2.tokenize.pop();
9109
- stream.skipToEnd();
9110
- return "comment";
9111
- }
9112
- const ruby = {
9113
- name: "ruby",
9114
- startState: function(indentUnit) {
9115
- return {
9116
- tokenize: [tokenBase$2],
9117
- indented: 0,
9118
- context: { type: "top", indented: -indentUnit },
9119
- continuedLine: false,
9120
- lastTok: null,
9121
- varList: false
9122
- };
9123
- },
9124
- token: function(stream, state2) {
9125
- curPunc = null;
9126
- if (stream.sol())
9127
- state2.indented = stream.indentation();
9128
- var style = state2.tokenize[state2.tokenize.length - 1](stream, state2), kwtype;
9129
- var thisTok = curPunc;
9130
- if (style == "variable") {
9131
- var word = stream.current();
9132
- style = state2.lastTok == "." ? "property" : keywords$1.propertyIsEnumerable(stream.current()) ? "keyword" : /^[A-Z]/.test(word) ? "tag" : state2.lastTok == "def" || state2.lastTok == "class" || state2.varList ? "def" : "variable";
9133
- if (style == "keyword") {
9134
- thisTok = word;
9135
- if (indentWords.propertyIsEnumerable(word))
9136
- kwtype = "indent";
9137
- else if (dedentWords.propertyIsEnumerable(word))
9138
- kwtype = "dedent";
9139
- else if ((word == "if" || word == "unless") && stream.column() == stream.indentation())
9140
- kwtype = "indent";
9141
- else if (word == "do" && state2.context.indented < state2.indented)
9142
- kwtype = "indent";
9143
- }
9144
- }
9145
- if (curPunc || style && style != "comment")
9146
- state2.lastTok = thisTok;
9147
- if (curPunc == "|")
9148
- state2.varList = !state2.varList;
9149
- if (kwtype == "indent" || /[\(\[\{]/.test(curPunc))
9150
- state2.context = { prev: state2.context, type: curPunc || style, indented: state2.indented };
9151
- else if ((kwtype == "dedent" || /[\)\]\}]/.test(curPunc)) && state2.context.prev)
9152
- state2.context = state2.context.prev;
9153
- if (stream.eol())
9154
- state2.continuedLine = curPunc == "\\" || style == "operator";
9155
- return style;
9156
- },
9157
- indent: function(state2, textAfter, cx) {
9158
- if (state2.tokenize[state2.tokenize.length - 1] != tokenBase$2)
9159
- return null;
9160
- var firstChar = textAfter && textAfter.charAt(0);
9161
- var ct = state2.context;
9162
- var closed = ct.type == closing[firstChar] || ct.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(textAfter);
9163
- return ct.indented + (closed ? 0 : cx.unit) + (state2.continuedLine ? cx.unit : 0);
9164
- },
9165
- languageData: {
9166
- indentOnInput: /^\s*(?:end|rescue|elsif|else|\})$/,
9167
- commentTokens: { line: "#" },
9168
- autocomplete: keywordList
9169
- }
9170
- };
9171
- var words = {};
9172
- function define(style, dict) {
9173
- for (var i2 = 0; i2 < dict.length; i2++) {
9174
- words[dict[i2]] = style;
9175
- }
9176
- }
9177
- var commonAtoms = ["true", "false"];
9178
- var commonKeywords = [
9179
- "if",
9180
- "then",
9181
- "do",
9182
- "else",
9183
- "elif",
9184
- "while",
9185
- "until",
9186
- "for",
9187
- "in",
9188
- "esac",
9189
- "fi",
9190
- "fin",
9191
- "fil",
9192
- "done",
9193
- "exit",
9194
- "set",
9195
- "unset",
9196
- "export",
9197
- "function"
9198
- ];
9199
- var commonCommands = [
9200
- "ab",
9201
- "awk",
9202
- "bash",
9203
- "beep",
9204
- "cat",
9205
- "cc",
9206
- "cd",
9207
- "chown",
9208
- "chmod",
9209
- "chroot",
9210
- "clear",
9211
- "cp",
9212
- "curl",
9213
- "cut",
9214
- "diff",
9215
- "echo",
9216
- "find",
9217
- "gawk",
9218
- "gcc",
9219
- "get",
9220
- "git",
9221
- "grep",
9222
- "hg",
9223
- "kill",
9224
- "killall",
9225
- "ln",
9226
- "ls",
9227
- "make",
9228
- "mkdir",
9229
- "openssl",
9230
- "mv",
9231
- "nc",
9232
- "nl",
9233
- "node",
9234
- "npm",
9235
- "ping",
9236
- "ps",
9237
- "restart",
9238
- "rm",
9239
- "rmdir",
9240
- "sed",
9241
- "service",
9242
- "sh",
9243
- "shopt",
9244
- "shred",
9245
- "source",
9246
- "sort",
9247
- "sleep",
9248
- "ssh",
9249
- "start",
9250
- "stop",
9251
- "su",
9252
- "sudo",
9253
- "svn",
9254
- "tee",
9255
- "telnet",
9256
- "top",
9257
- "touch",
9258
- "vi",
9259
- "vim",
9260
- "wall",
9261
- "wc",
9262
- "wget",
9263
- "who",
9264
- "write",
9265
- "yes",
9266
- "zsh"
9267
- ];
9268
- define("atom", commonAtoms);
9269
- define("keyword", commonKeywords);
9270
- define("builtin", commonCommands);
9271
- function tokenBase$1(stream, state2) {
9272
- if (stream.eatSpace())
9273
- return null;
9274
- var sol = stream.sol();
9275
- var ch = stream.next();
9276
- if (ch === "\\") {
9277
- stream.next();
9278
- return null;
9279
- }
9280
- if (ch === "'" || ch === '"' || ch === "`") {
9281
- state2.tokens.unshift(tokenString$1(ch, ch === "`" ? "quote" : "string"));
9282
- return tokenize(stream, state2);
9283
- }
9284
- if (ch === "#") {
9285
- if (sol && stream.eat("!")) {
9286
- stream.skipToEnd();
9287
- return "meta";
9288
- }
9289
- stream.skipToEnd();
9290
- return "comment";
9291
- }
9292
- if (ch === "$") {
9293
- state2.tokens.unshift(tokenDollar);
9294
- return tokenize(stream, state2);
9295
- }
9296
- if (ch === "+" || ch === "=") {
9297
- return "operator";
9298
- }
9299
- if (ch === "-") {
9300
- stream.eat("-");
9301
- stream.eatWhile(/\w/);
9302
- return "attribute";
9303
- }
9304
- if (ch == "<") {
9305
- if (stream.match("<<"))
9306
- return "operator";
9307
- var heredoc = stream.match(/^<-?\s*(?:['"]([^'"]*)['"]|([^'"\s]*))/);
9308
- if (heredoc) {
9309
- state2.tokens.unshift(tokenHeredoc(heredoc[1] || heredoc[2]));
9310
- return "string.special";
9311
- }
9312
- }
9313
- if (/\d/.test(ch)) {
9314
- stream.eatWhile(/\d/);
9315
- if (stream.eol() || !/\w/.test(stream.peek())) {
9316
- return "number";
9317
- }
9318
- }
9319
- stream.eatWhile(/[\w-]/);
9320
- var cur = stream.current();
9321
- if (stream.peek() === "=" && /\w+/.test(cur))
9322
- return "def";
9323
- return words.hasOwnProperty(cur) ? words[cur] : null;
9324
- }
9325
- function tokenString$1(quote, style) {
9326
- var close = quote == "(" ? ")" : quote == "{" ? "}" : quote;
9327
- return function(stream, state2) {
9328
- var next, escaped = false;
9329
- while ((next = stream.next()) != null) {
9330
- if (next === close && !escaped) {
9331
- state2.tokens.shift();
9332
- break;
9333
- } else if (next === "$" && !escaped && quote !== "'" && stream.peek() != close) {
9334
- escaped = true;
9335
- stream.backUp(1);
9336
- state2.tokens.unshift(tokenDollar);
9337
- break;
9338
- } else if (!escaped && quote !== close && next === quote) {
9339
- state2.tokens.unshift(tokenString$1(quote, style));
9340
- return tokenize(stream, state2);
9341
- } else if (!escaped && /['"]/.test(next) && !/['"]/.test(quote)) {
9342
- state2.tokens.unshift(tokenStringStart(next, "string"));
9343
- stream.backUp(1);
9344
- break;
9345
- }
9346
- escaped = !escaped && next === "\\";
9347
- }
9348
- return style;
9349
- };
9350
- }
9351
- function tokenStringStart(quote, style) {
9352
- return function(stream, state2) {
9353
- state2.tokens[0] = tokenString$1(quote, style);
9354
- stream.next();
9355
- return tokenize(stream, state2);
9356
- };
9357
- }
9358
- var tokenDollar = function(stream, state2) {
9359
- if (state2.tokens.length > 1)
9360
- stream.eat("$");
9361
- var ch = stream.next();
9362
- if (/['"({]/.test(ch)) {
9363
- state2.tokens[0] = tokenString$1(ch, ch == "(" ? "quote" : ch == "{" ? "def" : "string");
9364
- return tokenize(stream, state2);
9365
- }
9366
- if (!/\d/.test(ch))
9367
- stream.eatWhile(/\w/);
9368
- state2.tokens.shift();
9369
- return "def";
9370
- };
9371
- function tokenHeredoc(delim) {
9372
- return function(stream, state2) {
9373
- if (stream.sol() && stream.string == delim)
9374
- state2.tokens.shift();
9375
- stream.skipToEnd();
9376
- return "string.special";
9377
- };
9378
- }
9379
- function tokenize(stream, state2) {
9380
- return (state2.tokens[0] || tokenBase$1)(stream, state2);
9381
- }
9382
- const shell = {
9383
- name: "shell",
9384
- startState: function() {
9385
- return { tokens: [] };
9386
- },
9387
- token: function(stream, state2) {
9388
- return tokenize(stream, state2);
9389
- },
9390
- languageData: {
9391
- autocomplete: commonAtoms.concat(commonKeywords, commonCommands),
9392
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
9393
- commentTokens: { line: "#" }
9394
- }
9395
- };
9396
- function wordSet(words2) {
9397
- var set = {};
9398
- for (var i2 = 0; i2 < words2.length; i2++)
9399
- set[words2[i2]] = true;
9400
- return set;
9401
- }
9402
- var keywords = wordSet([
9403
- "_",
9404
- "var",
9405
- "let",
9406
- "actor",
9407
- "class",
9408
- "enum",
9409
- "extension",
9410
- "import",
9411
- "protocol",
9412
- "struct",
9413
- "func",
9414
- "typealias",
9415
- "associatedtype",
9416
- "open",
9417
- "public",
9418
- "internal",
9419
- "fileprivate",
9420
- "private",
9421
- "deinit",
9422
- "init",
9423
- "new",
9424
- "override",
9425
- "self",
9426
- "subscript",
9427
- "super",
9428
- "convenience",
9429
- "dynamic",
9430
- "final",
9431
- "indirect",
9432
- "lazy",
9433
- "required",
9434
- "static",
9435
- "unowned",
9436
- "unowned(safe)",
9437
- "unowned(unsafe)",
9438
- "weak",
9439
- "as",
9440
- "is",
9441
- "break",
9442
- "case",
9443
- "continue",
9444
- "default",
9445
- "else",
9446
- "fallthrough",
9447
- "for",
9448
- "guard",
9449
- "if",
9450
- "in",
9451
- "repeat",
9452
- "switch",
9453
- "where",
9454
- "while",
9455
- "defer",
9456
- "return",
9457
- "inout",
9458
- "mutating",
9459
- "nonmutating",
9460
- "isolated",
9461
- "nonisolated",
9462
- "catch",
9463
- "do",
9464
- "rethrows",
9465
- "throw",
9466
- "throws",
9467
- "async",
9468
- "await",
9469
- "try",
9470
- "didSet",
9471
- "get",
9472
- "set",
9473
- "willSet",
9474
- "assignment",
9475
- "associativity",
9476
- "infix",
9477
- "left",
9478
- "none",
9479
- "operator",
9480
- "postfix",
9481
- "precedence",
9482
- "precedencegroup",
9483
- "prefix",
9484
- "right",
9485
- "Any",
9486
- "AnyObject",
9487
- "Type",
9488
- "dynamicType",
9489
- "Self",
9490
- "Protocol",
9491
- "__COLUMN__",
9492
- "__FILE__",
9493
- "__FUNCTION__",
9494
- "__LINE__"
9495
- ]);
9496
- var definingKeywords = wordSet(["var", "let", "actor", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]);
9497
- var atoms = wordSet(["true", "false", "nil", "self", "super", "_"]);
9498
- var types = wordSet([
9499
- "Array",
9500
- "Bool",
9501
- "Character",
9502
- "Dictionary",
9503
- "Double",
9504
- "Float",
9505
- "Int",
9506
- "Int8",
9507
- "Int16",
9508
- "Int32",
9509
- "Int64",
9510
- "Never",
9511
- "Optional",
9512
- "Set",
9513
- "String",
9514
- "UInt8",
9515
- "UInt16",
9516
- "UInt32",
9517
- "UInt64",
9518
- "Void"
9519
- ]);
9520
- var operators = "+-/*%=|&<>~^?!";
9521
- var punc = ":;,.(){}[]";
9522
- var binary = /^\-?0b[01][01_]*/;
9523
- var octal = /^\-?0o[0-7][0-7_]*/;
9524
- var hexadecimal = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/;
9525
- var decimal = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/;
9526
- var identifier = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/;
9527
- var property = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
9528
- var instruction = /^\#[A-Za-z]+/;
9529
- var attribute = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
9530
- function tokenBase(stream, state2, prev) {
9531
- if (stream.sol())
9532
- state2.indented = stream.indentation();
9533
- if (stream.eatSpace())
9534
- return null;
9535
- var ch = stream.peek();
9536
- if (ch == "/") {
9537
- if (stream.match("//")) {
9538
- stream.skipToEnd();
9539
- return "comment";
9540
- }
9541
- if (stream.match("/*")) {
9542
- state2.tokenize.push(tokenComment);
9543
- return tokenComment(stream, state2);
9544
- }
9545
- }
9546
- if (stream.match(instruction))
9547
- return "builtin";
9548
- if (stream.match(attribute))
9549
- return "attribute";
9550
- if (stream.match(binary))
9551
- return "number";
9552
- if (stream.match(octal))
9553
- return "number";
9554
- if (stream.match(hexadecimal))
9555
- return "number";
9556
- if (stream.match(decimal))
9557
- return "number";
9558
- if (stream.match(property))
9559
- return "property";
9560
- if (operators.indexOf(ch) > -1) {
9561
- stream.next();
9562
- return "operator";
9563
- }
9564
- if (punc.indexOf(ch) > -1) {
9565
- stream.next();
9566
- stream.match("..");
9567
- return "punctuation";
9568
- }
9569
- var stringMatch;
9570
- if (stringMatch = stream.match(/("""|"|')/)) {
9571
- var tokenize2 = tokenString.bind(null, stringMatch[0]);
9572
- state2.tokenize.push(tokenize2);
9573
- return tokenize2(stream, state2);
9574
- }
9575
- if (stream.match(identifier)) {
9576
- var ident = stream.current();
9577
- if (types.hasOwnProperty(ident))
9578
- return "type";
9579
- if (atoms.hasOwnProperty(ident))
9580
- return "atom";
9581
- if (keywords.hasOwnProperty(ident)) {
9582
- if (definingKeywords.hasOwnProperty(ident))
9583
- state2.prev = "define";
9584
- return "keyword";
9585
- }
9586
- if (prev == "define")
9587
- return "def";
9588
- return "variable";
9589
- }
9590
- stream.next();
9591
- return null;
9592
- }
9593
- function tokenUntilClosingParen() {
9594
- var depth = 0;
9595
- return function(stream, state2, prev) {
9596
- var inner = tokenBase(stream, state2, prev);
9597
- if (inner == "punctuation") {
9598
- if (stream.current() == "(")
9599
- ++depth;
9600
- else if (stream.current() == ")") {
9601
- if (depth == 0) {
9602
- stream.backUp(1);
9603
- state2.tokenize.pop();
9604
- return state2.tokenize[state2.tokenize.length - 1](stream, state2);
9605
- } else
9606
- --depth;
9607
- }
9608
- }
9609
- return inner;
9610
- };
9611
- }
9612
- function tokenString(openQuote, stream, state2) {
9613
- var singleLine = openQuote.length == 1;
9614
- var ch, escaped = false;
9615
- while (ch = stream.peek()) {
9616
- if (escaped) {
9617
- stream.next();
9618
- if (ch == "(") {
9619
- state2.tokenize.push(tokenUntilClosingParen());
9620
- return "string";
9621
- }
9622
- escaped = false;
9623
- } else if (stream.match(openQuote)) {
9624
- state2.tokenize.pop();
9625
- return "string";
9626
- } else {
9627
- stream.next();
9628
- escaped = ch == "\\";
9629
- }
9630
- }
9631
- if (singleLine) {
9632
- state2.tokenize.pop();
9633
- }
9634
- return "string";
9635
- }
9636
- function tokenComment(stream, state2) {
9637
- var ch;
9638
- while (ch = stream.next()) {
9639
- if (ch === "/" && stream.eat("*")) {
9640
- state2.tokenize.push(tokenComment);
9641
- } else if (ch === "*" && stream.eat("/")) {
9642
- state2.tokenize.pop();
9643
- break;
9644
- }
9645
- }
9646
- return "comment";
9647
- }
9648
- function Context(prev, align, indented) {
9649
- this.prev = prev;
9650
- this.align = align;
9651
- this.indented = indented;
9652
- }
9653
- function pushContext(state2, stream) {
9654
- var align = stream.match(/^\s*($|\/[\/\*]|[)}\]])/, false) ? null : stream.column() + 1;
9655
- state2.context = new Context(state2.context, align, state2.indented);
9656
- }
9657
- function popContext(state2) {
9658
- if (state2.context) {
9659
- state2.indented = state2.context.indented;
9660
- state2.context = state2.context.prev;
9661
- }
9662
- }
9663
- const swift = {
9664
- name: "swift",
9665
- startState: function() {
9666
- return {
9667
- prev: null,
9668
- context: null,
9669
- indented: 0,
9670
- tokenize: []
9671
- };
9672
- },
9673
- token: function(stream, state2) {
9674
- var prev = state2.prev;
9675
- state2.prev = null;
9676
- var tokenize2 = state2.tokenize[state2.tokenize.length - 1] || tokenBase;
9677
- var style = tokenize2(stream, state2, prev);
9678
- if (!style || style == "comment")
9679
- state2.prev = prev;
9680
- else if (!state2.prev)
9681
- state2.prev = style;
9682
- if (style == "punctuation") {
9683
- var bracket = /[\(\[\{]|([\]\)\}])/.exec(stream.current());
9684
- if (bracket)
9685
- (bracket[1] ? popContext : pushContext)(state2, stream);
9686
- }
9687
- return style;
9688
- },
9689
- indent: function(state2, textAfter, iCx) {
9690
- var cx = state2.context;
9691
- if (!cx)
9692
- return 0;
9693
- var closing2 = /^[\]\}\)]/.test(textAfter);
9694
- if (cx.align != null)
9695
- return cx.align - (closing2 ? 1 : 0);
9696
- return cx.indented + (closing2 ? 0 : iCx.unit);
9697
- },
9698
- languageData: {
9699
- indentOnInput: /^\s*[\)\}\]]$/,
9700
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
9701
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
9702
- }
9703
- };
9704
- const variableHighlighterDecoration = new MatchDecorator({
9705
- regexp: /(\{[^}]+\})/g,
9706
- decoration: () => Decoration.mark({
9707
- attributes: {
9708
- class: "scalar-api-client__variable"
9709
- }
9710
- })
9711
- });
9712
- const variables = () => ViewPlugin.fromClass(
9713
- class {
9714
- constructor(view) {
9715
- __publicField(this, "variables");
9716
- this.variables = variableHighlighterDecoration.createDeco(view);
9717
- }
9718
- update(update) {
9719
- this.variables = variableHighlighterDecoration.updateDeco(
9720
- update,
9721
- this.variables
9722
- );
9723
- }
9724
- },
9725
- {
9726
- decorations: (instance) => instance.variables,
9727
- provide: (plugin) => EditorView.atomicRanges.of(
9728
- (view) => {
9729
- var _a;
9730
- return ((_a = view.plugin(plugin)) == null ? void 0 : _a.variables) || Decoration.none;
9731
- }
9732
- )
9733
- }
9734
- );
9735
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
9736
- __name: "CodeMirror",
9737
- props: {
9738
- content: {},
9739
- readOnly: { type: Boolean },
9740
- languages: {},
9741
- withVariables: { type: Boolean },
9742
- lineNumbers: { type: Boolean },
9743
- withoutTheme: { type: Boolean },
9744
- disableEnter: { type: Boolean, default: false }
9745
- },
9746
- emits: ["change"],
9747
- setup(__props, { emit }) {
9748
- const props = __props;
9749
- const syntaxHighlighting = {
9750
- axios: javascript(),
9751
- c: StreamLanguage.define(c),
9752
- clojure: StreamLanguage.define(clojure),
9753
- csharp: StreamLanguage.define(csharp),
9754
- go: StreamLanguage.define(go),
9755
- http: StreamLanguage.define(http),
9756
- java: java(),
9757
- javascript: javascript(),
9758
- json: json(),
9759
- kotlin: StreamLanguage.define(kotlin),
9760
- node: javascript(),
9761
- objc: StreamLanguage.define(objectiveC),
9762
- ocaml: StreamLanguage.define(oCaml),
9763
- powershell: StreamLanguage.define(powerShell),
9764
- python: python(),
9765
- r: StreamLanguage.define(r),
9766
- ruby: StreamLanguage.define(ruby),
9767
- shell: StreamLanguage.define(shell),
9768
- swift: StreamLanguage.define(swift)
9769
- };
9770
- const classes = ["scalar-api-client__codemirror"];
9771
- if (props.readOnly) {
9772
- classes.push("scalar-api-client__codemirror--read-only");
9773
- }
9774
- const getCodeMirrorExtensions = () => {
9775
- const extensions = [];
9776
- extensions.push(EditorView.editorAttributes.of({ class: classes.join(" ") }));
9777
- if (props.readOnly) {
9778
- extensions.push(EditorView.editable.of(false));
9779
- }
9780
- if (props.languages) {
9781
- props.languages.filter((language) => typeof syntaxHighlighting[language] !== "undefined").forEach((language) => {
9782
- extensions.push(syntaxHighlighting[language]);
9783
- });
9784
- }
9785
- if (props.lineNumbers) {
9786
- extensions.push(lineNumbers());
9787
- }
9788
- if (props.withVariables) {
9789
- extensions.push(variables());
9790
- }
9791
- if (props.disableEnter) {
9792
- extensions.push(
9793
- keymap.of([
9794
- {
9795
- key: "Enter",
9796
- run: () => {
9797
- return true;
9798
- }
9799
- },
9800
- {
9801
- key: "Ctrl-Enter",
9802
- mac: "Cmd-Enter",
9803
- run: () => {
9804
- return true;
9805
- }
9806
- },
9807
- {
9808
- key: "Shift-Enter",
9809
- run: () => {
9810
- return true;
9811
- }
9812
- }
9813
- ])
9814
- );
9815
- }
9816
- extensions.push(
9817
- EditorView.updateListener.of((v2) => {
9818
- if (!v2.docChanged) {
9819
- return;
9820
- }
9821
- emit("change", v2.state.doc.toString());
9822
- })
9823
- );
9824
- return extensions;
9825
- };
9826
- const { codeMirrorRef, setCodeMirrorContent, reconfigureCodeMirror } = useCodeMirror({
9827
- content: props.content ?? "",
9828
- extensions: getCodeMirrorExtensions(),
9829
- withoutTheme: props.withoutTheme
9830
- });
9831
- watch(props, () => {
9832
- setCodeMirrorContent(props.content ?? "");
9833
- reconfigureCodeMirror(getCodeMirrorExtensions());
9834
- });
9835
- return (_ctx, _cache) => {
9836
- return openBlock(), createElementBlock("div", {
9837
- ref_key: "codeMirrorRef",
9838
- ref: codeMirrorRef,
9839
- class: "scalar-api-client__codemirror__wrapper"
9840
- }, null, 512);
9841
- };
9842
- }
9843
- });
9844
- const CodeMirror_vue_vue_type_style_index_0_lang = "";
9845
5955
  const _hoisted_1$k = { class: "modal-layout" };
9846
5956
  const useModalState = () => reactive({
9847
5957
  open: false,
@@ -10266,7 +6376,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10266
6376
  const historyModal = useModalState();
10267
6377
  const url = computed(() => activeRequest2.url);
10268
6378
  const requestType = computed(() => activeRequest2.type);
10269
- const requestPath2 = computed(() => activeRequest2.path);
6379
+ const requestPath = computed(() => activeRequest2.path);
10270
6380
  const isSmallScreen = useMediaQuery("(max-width: 820px)");
10271
6381
  function getShortUrl(longURL) {
10272
6382
  try {
@@ -10278,7 +6388,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10278
6388
  }
10279
6389
  }
10280
6390
  const formattedUrl = computed(() => {
10281
- const fullUrl = `${url.value}${requestPath2.value}`;
6391
+ const fullUrl = `${url.value}${requestPath.value}`;
10282
6392
  return isSmallScreen.value ? `...${getShortUrl(fullUrl)}` : fullUrl;
10283
6393
  });
10284
6394
  async function send() {
@@ -10317,7 +6427,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
10317
6427
  }, null, 2),
10318
6428
  createElementVNode("span", null, toDisplayString(requestType.value), 1)
10319
6429
  ]),
10320
- createVNode(unref(_sfc_main$n), {
6430
+ createVNode(unref(CodeMirror), {
10321
6431
  class: "scalar-api-client__url-input",
10322
6432
  content: formattedUrl.value,
10323
6433
  disableEnter: true,
@@ -10885,11 +6995,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
10885
6995
  _ctx.body && _ctx.body.length === 0 && _ctx.formData && _ctx.formData.length === 0 ? (openBlock(), createElementBlock("span", _hoisted_1$c, "No Body")) : _ctx.formData && _ctx.formData.length > 0 ? (openBlock(), createBlock(unref(_sfc_main$g), {
10886
6996
  key: 1,
10887
6997
  items: _ctx.formData
10888
- }, null, 8, ["items"])) : (openBlock(), createBlock(unref(_sfc_main$n), {
6998
+ }, null, 8, ["items"])) : (openBlock(), createBlock(unref(CodeMirror), {
10889
6999
  key: 2,
10890
7000
  content: unref(activeRequest2).body,
10891
7001
  languages: ["json"],
10892
- lineNumbers: true,
7002
+ lineNumbers: "",
10893
7003
  onChange: updateActiveRequest
10894
7004
  }, null, 8, ["content"]))
10895
7005
  ]),
@@ -11033,11 +7143,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
11033
7143
  return (_ctx, _cache) => {
11034
7144
  return openBlock(), createBlock(unref(_sfc_main$i), { title: "Body" }, {
11035
7145
  default: withCtx(() => [
11036
- _ctx.active ? (openBlock(), createBlock(unref(_sfc_main$n), {
7146
+ _ctx.active ? (openBlock(), createBlock(unref(CodeMirror), {
11037
7147
  key: 0,
11038
7148
  content: _ctx.data,
11039
7149
  languages: ["json"],
11040
- readOnly: true
7150
+ readOnly: ""
11041
7151
  }, null, 8, ["content"])) : (openBlock(), createElementBlock("div", _hoisted_1$7, " No Response "))
11042
7152
  ]),
11043
7153
  _: 1
@@ -11916,8 +8026,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
11916
8026
  setup(__props) {
11917
8027
  const getDocumentationUrlForHttpHeader = (headerName) => {
11918
8028
  var _a;
11919
- return (_a = httpHeaders.find((header2) => {
11920
- return header2.name.toLowerCase() === headerName.toLowerCase();
8029
+ return (_a = httpHeaders.find((header) => {
8030
+ return header.name.toLowerCase() === headerName.toLowerCase();
11921
8031
  })) == null ? void 0 : _a.url;
11922
8032
  };
11923
8033
  const formatHeaderName = (headerName) => {
@@ -11947,24 +8057,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
11947
8057
  ]),
11948
8058
  _: 1
11949
8059
  }),
11950
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headers, (header2) => {
8060
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headers, (header) => {
11951
8061
  return openBlock(), createBlock(unref(SimpleRow), {
11952
- key: header2.name
8062
+ key: header.name
11953
8063
  }, {
11954
8064
  default: withCtx(() => [
11955
8065
  createVNode(unref(SimpleCell), {
11956
- href: getDocumentationUrlForHttpHeader(header2.name),
8066
+ href: getDocumentationUrlForHttpHeader(header.name),
11957
8067
  strong: true,
11958
8068
  wrap: false
11959
8069
  }, {
11960
8070
  default: withCtx(() => [
11961
- createTextVNode(toDisplayString(formatHeaderName(header2.name)), 1)
8071
+ createTextVNode(toDisplayString(formatHeaderName(header.name)), 1)
11962
8072
  ]),
11963
8073
  _: 2
11964
8074
  }, 1032, ["href"]),
11965
8075
  createVNode(unref(SimpleCell), null, {
11966
8076
  default: withCtx(() => [
11967
- createTextVNode(toDisplayString(header2.value), 1)
8077
+ createTextVNode(toDisplayString(header.value), 1)
11968
8078
  ]),
11969
8079
  _: 2
11970
8080
  }, 1024)
@@ -12001,11 +8111,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
12001
8111
  return prettyBytes(0);
12002
8112
  };
12003
8113
  const statusCodeInformation = computed(() => {
12004
- const responseStatusCode2 = props.response.statusCode;
12005
- if (!responseStatusCode2) {
8114
+ const responseStatusCode = props.response.statusCode;
8115
+ if (!responseStatusCode) {
12006
8116
  return void 0;
12007
8117
  }
12008
- return httpStatusCodes[responseStatusCode2] ?? void 0;
8118
+ return httpStatusCodes[responseStatusCode] ?? void 0;
12009
8119
  });
12010
8120
  return (_ctx, _cache) => {
12011
8121
  var _a, _b;
@@ -12275,7 +8385,6 @@ function useOperation(props) {
12275
8385
  }
12276
8386
  export {
12277
8387
  _sfc_main as ApiClient,
12278
- _sfc_main$n as CodeMirror,
12279
8388
  createEmptyAuthState,
12280
8389
  createPlaceholderRequest,
12281
8390
  generateParameters,