vitepress-openapi
Version:
Generate VitePress API Documentation from OpenAPI Specification.
702 lines • 265 kB
JavaScript
var Zo = Object.defineProperty;
var ei = (e, t, n) => t in e ? Zo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
var K = (e, t, n) => ei(e, typeof t != "symbol" ? t + "" : t, n);
import { toRef as ti, readonly as rr, ref as R, customRef as ni, onMounted as or, nextTick as _t, getCurrentInstance as it, watch as Ee, hasInjectionContext as ir, inject as ar, getCurrentScope as sr, onScopeDispose as ri, computed as ne, shallowRef as Ne, toValue as ce, watchEffect as oi, unref as Ae, isRef as cr } from "vue";
const ii = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#4d9375","activityBar.background":"#121212","activityBar.border":"#191919","activityBar.foreground":"#dbd7caee","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#121212","badge.background":"#dedcd590","badge.foreground":"#121212","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#181818","breadcrumb.focusForeground":"#dbd7caee","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#121212","button.background":"#4d9375","button.foreground":"#121212","button.hoverBackground":"#4d9375","checkbox.background":"#181818","checkbox.border":"#2f363d","debugToolBar.background":"#121212","descriptionForeground":"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#121212","dropdown.border":"#191919","dropdown.foreground":"#dbd7caee","dropdown.listBackground":"#181818","editor.background":"#121212","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7caee","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#181818","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#121212","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#181818","editorInlayHint.foreground":"#666666","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#181818","editorStickyScrollHover.background":"#181818","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#121212","errorForeground":"#cb7676","focusBorder":"#00000000","foreground":"#dbd7caee","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#181818","input.border":"#191919","input.foreground":"#dbd7caee","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#181818","list.activeSelectionForeground":"#dbd7caee","list.focusBackground":"#181818","list.highlightForeground":"#4d9375","list.hoverBackground":"#181818","list.hoverForeground":"#dbd7caee","list.inactiveFocusBackground":"#121212","list.inactiveSelectionBackground":"#181818","list.inactiveSelectionForeground":"#dbd7caee","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#121212","notificationCenterHeader.foreground":"#959da5","notifications.background":"#121212","notifications.border":"#191919","notifications.foreground":"#dbd7caee","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#121212","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7caee","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#121212","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#121212","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7caee","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#121212","quickInput.foreground":"#dbd7caee","quickInputList.focusBackground":"#181818","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7caee","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#121212","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#121212","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7caee","sideBarTitle.foreground":"#dbd7caee","statusBar.background":"#121212","statusBar.border":"#191919","statusBar.debuggingBackground":"#181818","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#121212","statusBarItem.prominentBackground":"#181818","tab.activeBackground":"#121212","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7caee","tab.border":"#191919","tab.hoverBackground":"#181818","tab.inactiveBackground":"#121212","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#121212","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7caee","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#121212","textBlockQuote.border":"#191919","textCodeBlock.background":"#121212","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#121212","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#181818","titleBar.inactiveBackground":"#121212","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"Vitesse Dark","name":"vitesse-dark","semanticHighlighting":true,"semanticTokenColors":{"class":"#6872ab","interface":"#5d99a9","namespace":"#db889a","property":"#b8a965","type":"#5d99a9"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#758575dd"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#666666"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#c99076"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#80a665"}},{"scope":"variable.parameter.function","settings":{"foreground":"#dbd7caee"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#4d9375"}},{"scope":"entity.name.function","settings":{"foreground":"#80a665"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#4d9375"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#cb7676"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#dbd7caee"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#c98a7d"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#c98a7d77"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#b8a96577"}},{"scope":"support","settings":{"foreground":"#b8a965"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#b8a965"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#bd976a"}},{"scope":["variable","identifier"],"settings":{"foreground":"#bd976a"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#5DA994"}},{"scope":"namespace","settings":{"foreground":"#db889a"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#cb7676"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#c98a7d"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#c4704f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#c98a7d"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#e6cc77"}},{"scope":["support.constant"],"settings":{"foreground":"#c99076"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#4C9A91"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#cb7676"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#4d9375"}},{"scope":"meta.module-reference","settings":{"foreground":"#4d9375"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d4976c"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#4d9375"}},{"scope":"markup.quote","settings":{"foreground":"#5d99a9"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#dbd7caee"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#dbd7caee"}},{"scope":"markup.raw","settings":{"foreground":"#4d9375"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#c98a7d"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#dedcd590"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#6872ab"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#80a665"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"dark"}')), ai = Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c6b48","activityBar.background":"#ffffff","activityBar.border":"#f0f0f0","activityBar.foreground":"#393a34","activityBar.inactiveForeground":"#393a3450","activityBarBadge.background":"#4e4f47","activityBarBadge.foreground":"#ffffff","badge.background":"#393a3490","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#22222218","breadcrumb.background":"#f7f7f7","breadcrumb.focusForeground":"#393a34","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#ffffff","button.background":"#1c6b48","button.foreground":"#ffffff","button.hoverBackground":"#1c6b48","checkbox.background":"#f7f7f7","checkbox.border":"#d1d5da","debugToolBar.background":"#ffffff","descriptionForeground":"#393a3490","diffEditor.insertedTextBackground":"#1c6b4830","diffEditor.removedTextBackground":"#ab595940","dropdown.background":"#ffffff","dropdown.border":"#f0f0f0","dropdown.foreground":"#393a34","dropdown.listBackground":"#f7f7f7","editor.background":"#ffffff","editor.findMatchBackground":"#e6cc7744","editor.findMatchHighlightBackground":"#e6cc7766","editor.focusedStackFrameHighlightBackground":"#fff5b1","editor.foldBackground":"#22222210","editor.foreground":"#393a34","editor.inactiveSelectionBackground":"#22222210","editor.lineHighlightBackground":"#f7f7f7","editor.selectionBackground":"#22222218","editor.selectionHighlightBackground":"#22222210","editor.stackFrameHighlightBackground":"#fffbdd","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#2993a3","editorBracketHighlight.foreground2":"#1e754f","editorBracketHighlight.foreground3":"#a65e2b","editorBracketHighlight.foreground4":"#a13865","editorBracketHighlight.foreground5":"#bda437","editorBracketHighlight.foreground6":"#296aa3","editorBracketMatch.background":"#1c6b4820","editorError.foreground":"#ab5959","editorGroup.border":"#f0f0f0","editorGroupHeader.tabsBackground":"#ffffff","editorGroupHeader.tabsBorder":"#f0f0f0","editorGutter.addedBackground":"#1e754f","editorGutter.commentRangeForeground":"#393a3450","editorGutter.deletedBackground":"#ab5959","editorGutter.foldingControlForeground":"#393a3490","editorGutter.modifiedBackground":"#296aa3","editorHint.foreground":"#1e754f","editorIndentGuide.activeBackground":"#00000030","editorIndentGuide.background":"#00000015","editorInfo.foreground":"#296aa3","editorInlayHint.background":"#f7f7f7","editorInlayHint.foreground":"#999999","editorLineNumber.activeForeground":"#4e4f47","editorLineNumber.foreground":"#393a3450","editorOverviewRuler.border":"#fff","editorStickyScroll.background":"#f7f7f7","editorStickyScrollHover.background":"#f7f7f7","editorWarning.foreground":"#a65e2b","editorWhitespace.foreground":"#00000015","editorWidget.background":"#ffffff","errorForeground":"#ab5959","focusBorder":"#00000000","foreground":"#393a34","gitDecoration.addedResourceForeground":"#1e754f","gitDecoration.conflictingResourceForeground":"#a65e2b","gitDecoration.deletedResourceForeground":"#ab5959","gitDecoration.ignoredResourceForeground":"#393a3450","gitDecoration.modifiedResourceForeground":"#296aa3","gitDecoration.submoduleResourceForeground":"#393a3490","gitDecoration.untrackedResourceForeground":"#2993a3","input.background":"#f7f7f7","input.border":"#f0f0f0","input.foreground":"#393a34","input.placeholderForeground":"#393a3490","inputOption.activeBackground":"#393a3450","list.activeSelectionBackground":"#f7f7f7","list.activeSelectionForeground":"#393a34","list.focusBackground":"#f7f7f7","list.highlightForeground":"#1c6b48","list.hoverBackground":"#f7f7f7","list.hoverForeground":"#393a34","list.inactiveFocusBackground":"#ffffff","list.inactiveSelectionBackground":"#f7f7f7","list.inactiveSelectionForeground":"#393a34","menu.separatorBackground":"#f0f0f0","notificationCenterHeader.background":"#ffffff","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#ffffff","notifications.border":"#f0f0f0","notifications.foreground":"#393a34","notificationsErrorIcon.foreground":"#ab5959","notificationsInfoIcon.foreground":"#296aa3","notificationsWarningIcon.foreground":"#a65e2b","panel.background":"#ffffff","panel.border":"#f0f0f0","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#1c6b48","panelTitle.activeForeground":"#393a34","panelTitle.inactiveForeground":"#6a737d","peekViewEditor.background":"#ffffff","peekViewResult.background":"#ffffff","pickerGroup.border":"#f0f0f0","pickerGroup.foreground":"#393a34","problemsErrorIcon.foreground":"#ab5959","problemsInfoIcon.foreground":"#296aa3","problemsWarningIcon.foreground":"#a65e2b","progressBar.background":"#1c6b48","quickInput.background":"#ffffff","quickInput.foreground":"#393a34","quickInputList.focusBackground":"#f7f7f7","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#393a3450","scrollbarSlider.background":"#393a3410","scrollbarSlider.hoverBackground":"#393a3450","settings.headerForeground":"#393a34","settings.modifiedItemIndicator":"#1c6b48","sideBar.background":"#ffffff","sideBar.border":"#f0f0f0","sideBar.foreground":"#4e4f47","sideBarSectionHeader.background":"#ffffff","sideBarSectionHeader.border":"#f0f0f0","sideBarSectionHeader.foreground":"#393a34","sideBarTitle.foreground":"#393a34","statusBar.background":"#ffffff","statusBar.border":"#f0f0f0","statusBar.debuggingBackground":"#f7f7f7","statusBar.debuggingForeground":"#4e4f47","statusBar.foreground":"#4e4f47","statusBar.noFolderBackground":"#ffffff","statusBarItem.prominentBackground":"#f7f7f7","tab.activeBackground":"#ffffff","tab.activeBorder":"#f0f0f0","tab.activeBorderTop":"#393a3490","tab.activeForeground":"#393a34","tab.border":"#f0f0f0","tab.hoverBackground":"#f7f7f7","tab.inactiveBackground":"#ffffff","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#f0f0f0","tab.unfocusedActiveBorderTop":"#f0f0f0","tab.unfocusedHoverBackground":"#ffffff","terminal.ansiBlack":"#121212","terminal.ansiBlue":"#296aa3","terminal.ansiBrightBlack":"#aaaaaa","terminal.ansiBrightBlue":"#296aa3","terminal.ansiBrightCyan":"#2993a3","terminal.ansiBrightGreen":"#1e754f","terminal.ansiBrightMagenta":"#a13865","terminal.ansiBrightRed":"#ab5959","terminal.ansiBrightWhite":"#dddddd","terminal.ansiBrightYellow":"#bda437","terminal.ansiCyan":"#2993a3","terminal.ansiGreen":"#1e754f","terminal.ansiMagenta":"#a13865","terminal.ansiRed":"#ab5959","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#bda437","terminal.foreground":"#393a34","terminal.selectionBackground":"#22222218","textBlockQuote.background":"#ffffff","textBlockQuote.border":"#f0f0f0","textCodeBlock.background":"#ffffff","textLink.activeForeground":"#1c6b48","textLink.foreground":"#1c6b48","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#4e4f47","titleBar.border":"#f7f7f7","titleBar.inactiveBackground":"#ffffff","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"Vitesse Light","name":"vitesse-light","semanticHighlighting":true,"semanticTokenColors":{"class":"#5a6aa6","interface":"#2e808f","namespace":"#b05a78","property":"#998418","type":"#2e808f"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#a0ada0"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#999999"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#a65e2b"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#59873a"}},{"scope":"variable.parameter.function","settings":{"foreground":"#393a34"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#1e754f"}},{"scope":"entity.name.function","settings":{"foreground":"#59873a"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#1e754f"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#ab5959"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#393a34"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#b56959"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#b5695977"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#99841877"}},{"scope":"support","settings":{"foreground":"#998418"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#998418"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#b07d48"}},{"scope":["variable","identifier"],"settings":{"foreground":"#b07d48"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#2e8f82"}},{"scope":"namespace","settings":{"foreground":"#b05a78"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#ab5959"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#b56959"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#ab5e3f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#b56959"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#bda437"}},{"scope":["support.constant"],"settings":{"foreground":"#a65e2b"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#2f798a"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#ab5959"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#1e754f"}},{"scope":"meta.module-reference","settings":{"foreground":"#1c6b48"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#a65e2b"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#1c6b48"}},{"scope":"markup.quote","settings":{"foreground":"#2e808f"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#393a34"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#393a34"}},{"scope":"markup.raw","settings":{"foreground":"#1c6b48"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#b56959"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#393a3490"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#5a6aa6"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#59873a"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"light"}'));
function si(e) {
return sr() ? (ri(e), !0) : !1;
}
const ft = /* @__PURE__ */ new WeakMap(), ci = (...e) => {
var t;
const n = e[0], r = (t = it()) == null ? void 0 : t.proxy;
if (r == null && !ir())
throw new Error("injectLocal must be called in setup");
return r && ft.has(r) && n in ft.get(r) ? ft.get(r)[n] : ar(...e);
}, li = typeof window < "u" && typeof document < "u";
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const ui = (e) => typeof e < "u", di = Object.prototype.toString, fi = (e) => di.call(e) === "[object Object]", pi = () => {
};
function lr(...e) {
if (e.length !== 1)
return ti(...e);
const t = e[0];
return typeof t == "function" ? rr(ni(() => ({ get: t, set: pi }))) : R(t);
}
function gi(e, t) {
function n(...r) {
return new Promise((o, s) => {
Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(s);
});
}
return n;
}
const ur = (e) => e();
function mi(e = ur, t = {}) {
const {
initialState: n = "active"
} = t, r = lr(n === "active");
function o() {
r.value = !1;
}
function s() {
r.value = !0;
}
const a = (...i) => {
r.value && e(...i);
};
return { isActive: rr(r), pause: o, resume: s, eventFilter: a };
}
function En(e) {
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
}
function pt(e) {
return Array.isArray(e) ? e : [e];
}
function hi(e) {
return it();
}
function yi(e, t, n = {}) {
const {
eventFilter: r = ur,
...o
} = n;
return Ee(
e,
gi(
r,
t
),
o
);
}
function bi(e, t, n = {}) {
const {
eventFilter: r,
initialState: o = "active",
...s
} = n, { eventFilter: a, pause: i, resume: c, isActive: l } = mi(r, { initialState: o });
return { stop: yi(
e,
t,
{
...s,
eventFilter: a
}
), pause: i, resume: c, isActive: l };
}
function dr(e, t = !0, n) {
hi() ? or(e, n) : t ? e() : _t(e);
}
function vi(e, t, n) {
return Ee(
e,
t,
{
...n,
immediate: !0
}
);
}
const _e = li ? window : void 0;
function fr(e) {
var t;
const n = ce(e);
return (t = n == null ? void 0 : n.$el) != null ? t : n;
}
function Ct(...e) {
const t = [], n = () => {
t.forEach((i) => i()), t.length = 0;
}, r = (i, c, l, u) => (i.addEventListener(c, l, u), () => i.removeEventListener(c, l, u)), o = ne(() => {
const i = pt(ce(e[0])).filter((c) => c != null);
return i.every((c) => typeof c != "string") ? i : void 0;
}), s = vi(
() => {
var i, c;
return [
(c = (i = o.value) == null ? void 0 : i.map((l) => fr(l))) != null ? c : [_e].filter((l) => l != null),
pt(ce(o.value ? e[1] : e[0])),
pt(Ae(o.value ? e[2] : e[1])),
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
ce(o.value ? e[3] : e[2])
];
},
([i, c, l, u]) => {
if (n(), !(i != null && i.length) || !(c != null && c.length) || !(l != null && l.length))
return;
const f = fi(u) ? { ...u } : u;
t.push(
...i.flatMap(
(g) => c.flatMap(
(p) => l.map((m) => r(g, p, m, f))
)
)
);
},
{ flush: "post" }
), a = () => {
s(), n();
};
return si(n), a;
}
function Si() {
const e = Ne(!1), t = it();
return t && or(() => {
e.value = !0;
}, t), e;
}
function $i(e) {
const t = Si();
return ne(() => (t.value, !!e()));
}
const ki = Symbol("vueuse-ssr-width");
function Ti() {
const e = ir() ? ci(ki, null) : null;
return typeof e == "number" ? e : void 0;
}
function Oi(e, t = {}) {
const { window: n = _e, ssrWidth: r = Ti() } = t, o = $i(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = Ne(typeof r == "number"), a = Ne(), i = Ne(!1), c = (l) => {
i.value = l.matches;
};
return oi(() => {
if (s.value) {
s.value = !o.value;
const l = ce(e).split(",");
i.value = l.some((u) => {
const f = u.includes("not all"), g = u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), p = u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);
let m = !!(g || p);
return g && m && (m = r >= En(g[1])), p && m && (m = r <= En(p[1])), f ? !m : m;
});
return;
}
o.value && (a.value = n.matchMedia(ce(e)), i.value = a.value.matches);
}), Ct(a, "change", c, { passive: !0 }), ne(() => i.value);
}
function wi(e) {
return JSON.parse(JSON.stringify(e));
}
const We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ye = "__vueuse_ssr_handlers__", Ei = /* @__PURE__ */ xi();
function xi() {
return Ye in We || (We[Ye] = We[Ye] || {}), We[Ye];
}
function pr(e, t) {
return Ei[e] || t;
}
function ji(e) {
return Oi("(prefers-color-scheme: dark)", e);
}
function Ai(e) {
return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
}
const Ci = {
boolean: {
read: (e) => e === "true",
write: (e) => String(e)
},
object: {
read: (e) => JSON.parse(e),
write: (e) => JSON.stringify(e)
},
number: {
read: (e) => Number.parseFloat(e),
write: (e) => String(e)
},
any: {
read: (e) => e,
write: (e) => String(e)
},
string: {
read: (e) => e,
write: (e) => String(e)
},
map: {
read: (e) => new Map(JSON.parse(e)),
write: (e) => JSON.stringify(Array.from(e.entries()))
},
set: {
read: (e) => new Set(JSON.parse(e)),
write: (e) => JSON.stringify(Array.from(e))
},
date: {
read: (e) => new Date(e),
write: (e) => e.toISOString()
}
}, xn = "vueuse-storage";
function Pi(e, t, n, r = {}) {
var o;
const {
flush: s = "pre",
deep: a = !0,
listenToStorageChanges: i = !0,
writeDefaults: c = !0,
mergeDefaults: l = !1,
shallow: u,
window: f = _e,
eventFilter: g,
onError: p = (O) => {
console.error(O);
},
initOnMounted: m
} = r, b = (u ? Ne : R)(typeof t == "function" ? t() : t), h = ne(() => ce(e));
if (!n)
try {
n = pr("getDefaultStorage", () => {
var O;
return (O = _e) == null ? void 0 : O.localStorage;
})();
} catch (O) {
p(O);
}
if (!n)
return b;
const S = ce(t), v = Ai(S), k = (o = r.serializer) != null ? o : Ci[v], { pause: C, resume: P } = bi(
b,
() => U(b.value),
{ flush: s, deep: a, eventFilter: g }
);
Ee(h, () => w(), { flush: s }), f && i && dr(() => {
n instanceof Storage ? Ct(f, "storage", w, { passive: !0 }) : Ct(f, xn, x), m && w();
}), m || w();
function I(O, A) {
if (f) {
const L = {
key: h.value,
oldValue: O,
newValue: A,
storageArea: n
};
f.dispatchEvent(n instanceof Storage ? new StorageEvent("storage", L) : new CustomEvent(xn, {
detail: L
}));
}
}
function U(O) {
try {
const A = n.getItem(h.value);
if (O == null)
I(A, null), n.removeItem(h.value);
else {
const L = k.write(O);
A !== L && (n.setItem(h.value, L), I(A, L));
}
} catch (A) {
p(A);
}
}
function T(O) {
const A = O ? O.newValue : n.getItem(h.value);
if (A == null)
return c && S != null && n.setItem(h.value, k.write(S)), S;
if (!O && l) {
const L = k.read(A);
return typeof l == "function" ? l(L, S) : v === "object" && !Array.isArray(L) ? { ...S, ...L } : L;
} else return typeof A != "string" ? A : k.read(A);
}
function w(O) {
if (!(O && O.storageArea !== n)) {
if (O && O.key == null) {
b.value = S;
return;
}
if (!(O && O.key !== h.value)) {
C();
try {
(O == null ? void 0 : O.newValue) !== k.write(b.value) && (b.value = T(O));
} catch (A) {
p(A);
} finally {
O ? _t(P) : P();
}
}
}
}
function x(O) {
w(O.detail);
}
return b;
}
const Li = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
function Ii(e = {}) {
const {
selector: t = "html",
attribute: n = "class",
initialValue: r = "auto",
window: o = _e,
storage: s,
storageKey: a = "vueuse-color-scheme",
listenToStorageChanges: i = !0,
storageRef: c,
emitAuto: l,
disableTransition: u = !0
} = e, f = {
auto: "",
light: "light",
dark: "dark",
...e.modes || {}
}, g = ji({ window: o }), p = ne(() => g.value ? "dark" : "light"), m = c || (a == null ? lr(r) : Pi(a, r, s, { window: o, listenToStorageChanges: i })), b = ne(() => m.value === "auto" ? p.value : m.value), h = pr(
"updateHTMLAttrs",
(C, P, I) => {
const U = typeof C == "string" ? o == null ? void 0 : o.document.querySelector(C) : fr(C);
if (!U)
return;
const T = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Set();
let x = null;
if (P === "class") {
const A = I.split(/\s/g);
Object.values(f).flatMap((L) => (L || "").split(/\s/g)).filter(Boolean).forEach((L) => {
A.includes(L) ? T.add(L) : w.add(L);
});
} else
x = { key: P, value: I };
if (T.size === 0 && w.size === 0 && x === null)
return;
let O;
u && (O = o.document.createElement("style"), O.appendChild(document.createTextNode(Li)), o.document.head.appendChild(O));
for (const A of T)
U.classList.add(A);
for (const A of w)
U.classList.remove(A);
x && U.setAttribute(x.key, x.value), u && (o.getComputedStyle(O).opacity, document.head.removeChild(O));
}
);
function S(C) {
var P;
h(t, n, (P = f[C]) != null ? P : C);
}
function v(C) {
e.onChanged ? e.onChanged(C, S) : S(C);
}
Ee(b, v, { flush: "post", immediate: !0 }), dr(() => v(b.value));
const k = ne({
get() {
return l ? m.value : b.value;
},
set(C) {
m.value = C;
}
});
return Object.assign(k, { store: m, system: p, state: b });
}
function Bi(e = {}) {
const {
valueDark: t = "dark",
valueLight: n = ""
} = e, r = Ii({
...e,
onChanged: (a, i) => {
var c;
e.onChanged ? (c = e.onChanged) == null || c.call(e, a === "dark", i, a) : i(a);
},
modes: {
dark: t,
light: n
}
}), o = ne(() => r.system.value);
return ne({
get() {
return r.value === "dark";
},
set(a) {
const i = a ? "dark" : "light";
o.value === i ? r.value = "auto" : r.value = i;
}
});
}
const Pe = /* @__PURE__ */ new Map();
function Jp(e) {
const t = sr();
function n(i) {
var c;
const l = Pe.get(e) || /* @__PURE__ */ new Set();
l.add(i), Pe.set(e, l);
const u = () => o(i);
return (c = t == null ? void 0 : t.cleanups) == null || c.push(u), u;
}
function r(i) {
function c(...l) {
o(c), i(...l);
}
return n(c);
}
function o(i) {
const c = Pe.get(e);
c && (c.delete(i), c.size || s());
}
function s() {
Pe.delete(e);
}
function a(i, c) {
var l;
(l = Pe.get(e)) == null || l.forEach((u) => u(i, c));
}
return { on: n, once: r, off: o, emit: a, reset: s };
}
function zp(e, t, n, r = {}) {
var o, s, a;
const {
clone: i = !1,
passive: c = !1,
eventName: l,
deep: u = !1,
defaultValue: f,
shouldEmit: g
} = r, p = it(), m = n || (p == null ? void 0 : p.emit) || ((o = p == null ? void 0 : p.$emit) == null ? void 0 : o.bind(p)) || ((a = (s = p == null ? void 0 : p.proxy) == null ? void 0 : s.$emit) == null ? void 0 : a.bind(p == null ? void 0 : p.proxy));
let b = l;
t || (t = "modelValue"), b = b || `update:${t.toString()}`;
const h = (k) => i ? typeof i == "function" ? i(k) : wi(k) : k, S = () => ui(e[t]) ? h(e[t]) : f, v = (k) => {
g ? g(k) && m(b, k) : m(b, k);
};
if (c) {
const k = S(), C = R(k);
let P = !1;
return Ee(
() => e[t],
(I) => {
P || (P = !0, C.value = h(I), _t(() => P = !1));
}
), Ee(
C,
(I) => {
!P && (I !== e[t] || u) && v(I);
},
{ deep: u }
), C;
} else
return ne({
get() {
return S();
},
set(k) {
v(k);
}
});
}
const jn = "", An = `
`;
class D {
/**
* Helper object to format and aggragate lines of code.
* Lines are aggregated in a `code` array, and need to be joined to obtain a proper code snippet.
*/
constructor({ indent: t, join: n } = {}) {
this.postProcessors = [], this.code = [], this.indentationCharacter = jn, this.lineJoin = An, this.indentLine = (r, o = 0) => `${this.indentationCharacter.repeat(o)}${r}`, this.unshift = (r, o) => {
const s = this.indentLine(r, o);
this.code.unshift(s);
}, this.push = (r, o) => {
const s = this.indentLine(r, o);
this.code.push(s);
}, this.blank = () => {
this.code.push("");
}, this.join = () => {
const r = this.code.join(this.lineJoin);
return this.postProcessors.reduce((s, a) => a(s), r);
}, this.addPostProcessor = (r) => {
this.postProcessors = [...this.postProcessors, r];
}, this.indentationCharacter = t || jn, this.lineJoin = n ?? An;
}
}
function Ze(e, t = {}) {
const { delimiter: n = '"', escapeChar: r = "\\", escapeNewlines: o = !0 } = t;
return [...e.toString()].map((a) => a === "\b" ? `${r}b` : a === " " ? `${r}t` : a === `
` ? o ? `${r}n` : a : a === "\f" ? `${r}f` : a === "\r" ? o ? `${r}r` : a : a === r ? r + r : a === n ? r + n : a < " " || a > "~" ? JSON.stringify(a).slice(1, -1) : a).join("");
}
const Ht = (e) => Ze(e, { delimiter: "'" }), V = (e) => Ze(e, { delimiter: '"' }), Ri = {
info: {
key: "libcurl",
title: "Libcurl",
link: "http://curl.haxx.se/libcurl",
description: "Simple REST and HTTP API Client for C"
},
convert: ({ method: e, fullUrl: t, headersObj: n, allHeaders: r, postData: o }) => {
const { push: s, blank: a, join: i } = new D();
s("CURL *hnd = curl_easy_init();"), a(), s(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`), s(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);
const c = Object.keys(n);
return c.length && (a(), s("struct curl_slist *headers = NULL;"), c.forEach((l) => {
s(`headers = curl_slist_append(headers, "${l}: ${V(n[l])}");`);
}), s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")), r.cookie && (a(), s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${r.cookie}");`)), o != null && o.text && (a(), s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(o.text)});`)), a(), s("CURLcode ret = curl_easy_perform(hnd);"), i();
}
};
function M(e, t) {
var f, g, p, m;
const n = new URL((t == null ? void 0 : t.url) ?? ""), r = n.pathname === "/" ? n.origin : n.toString(), o = {
method: (t == null ? void 0 : t.method) ?? "GET",
url: r,
httpVersion: "HTTP/1.1",
cookies: [],
// Cookies are handled through headers
headers: (t == null ? void 0 : t.headers) ?? [],
headersSize: -1,
bodySize: -1,
queryString: Array.from(n.searchParams.entries()).map(([b, h]) => ({
name: b,
value: h
})),
postData: t == null ? void 0 : t.postData
}, s = ((o == null ? void 0 : o.headers) ?? []).reduce((b, h) => ({
...b,
[h.name]: h.value
}), {}), a = (o.queryString ?? []).reduce((b, h) => ({
...b,
[h.name]: h.value
}), {}), i = (o.cookies ?? []).reduce((b, h) => ({
...b,
[h.name]: h.value
}), {}), c = new URL(o.url), l = {
protocol: c.protocol,
hostname: c.hostname,
host: c.hostname,
port: c.port,
pathname: c.pathname.split("/").map((b) => encodeURIComponent(decodeURIComponent(b))).join("/") + c.search,
path: c.pathname.split("/").map((b) => encodeURIComponent(decodeURIComponent(b))).join("/") + c.search,
search: c.search,
hash: c.hash,
href: c.href,
origin: c.origin,
password: c.password,
searchParams: c.searchParams,
username: c.username,
toString: c.toString,
toJSON: () => c.toJSON()
}, u = {
url: o.url,
uriObj: l,
method: ((f = o.method) == null ? void 0 : f.toLocaleUpperCase()) ?? "GET",
httpVersion: o.httpVersion,
cookies: o.cookies ?? [],
headers: o.headers ?? [],
headersSize: o.headersSize,
headersObj: s ?? {},
bodySize: o.bodySize,
queryString: o.queryString ?? [],
postData: o.postData ? {
mimeType: o.postData.mimeType ?? "application/json",
text: o.postData.text ?? "",
params: o.postData.params ?? [],
paramsObj: ((g = o.postData.params) == null ? void 0 : g.reduce((b, h) => (h.name && h.value !== void 0 && (b[h.name] = h.value), b), {})) ?? {}
} : void 0,
allHeaders: s ?? {},
fullUrl: o.url,
queryObj: a ?? {},
cookiesObj: i ?? {}
};
if (((p = u.postData) == null ? void 0 : p.mimeType) === "application/json" && ((m = u.postData) != null && m.text))
try {
u.postData.jsonObj = JSON.parse(u.postData.text);
} catch (b) {
console.error("Error parsing JSON:", b);
}
return typeof e.convert == "function" ? e.convert(u) : "";
}
const Ni = {
target: "c",
client: "libcurl",
title: "Libcurl",
generate(e) {
return M(Ri, e);
}
}, Ui = {
info: {
key: "nethttp",
title: "java.net.http",
link: "https://openjdk.java.net/groups/net/httpclient/intro.html",
description: "Java Standardized HTTP Client API"
},
convert: ({ allHeaders: e, fullUrl: t, method: n, postData: r }, o) => {
const s = {
indent: " ",
...o
}, { push: a, join: i } = new D({ indent: s.indent });
return a("HttpRequest request = HttpRequest.newBuilder()"), a(`.uri(URI.create("${t}"))`, 2), Object.keys(e).forEach((c) => {
a(`.header("${c}", "${V(e[c])}")`, 2);
}), r != null && r.text ? a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(r.text)}))`, 2) : a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`, 2), a(".build();", 2), a("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"), a("System.out.println(response.body());"), i();
}
}, Mi = {
target: "java",
client: "nethttp",
title: "java.net.http",
generate(e) {
return M(Ui, e);
}
}, Di = {
info: {
key: "okhttp",
title: "OkHttp",
link: "http://square.github.io/okhttp/",
description: "An HTTP Request Client Library"
},
convert: ({ postData: e, method: t, fullUrl: n, allHeaders: r }, o) => {
const s = {
indent: " ",
...o
}, { push: a, blank: i, join: c } = new D({ indent: s.indent }), l = ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD"], u = ["POST", "PUT", "DELETE", "PATCH"];
return a("OkHttpClient client = new OkHttpClient();"), i(), e != null && e.text && (e.boundary ? a(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`) : a(`MediaType mediaType = MediaType.parse("${e.mimeType}");`), a(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)), a("Request request = new Request.Builder()"), a(`.url("${n}")`, 1), l.includes(t.toUpperCase()) ? u.includes(t.toUpperCase()) ? e != null && e.text ? a(`.${t.toLowerCase()}(body)`, 1) : a(`.${t.toLowerCase()}(null)`, 1) : a(`.${t.toLowerCase()}()`, 1) : e != null && e.text ? a(`.method("${t.toUpperCase()}", body)`, 1) : a(`.method("${t.toUpperCase()}", null)`, 1), Object.keys(r).forEach((f) => {
a(`.addHeader("${f}", "${V(r[f])}")`, 1);
}), a(".build();", 1), i(), a("Response response = client.newCall(request).execute();"), c();
}
}, _i = {
target: "java",
client: "okhttp",
title: "OkHttp",
generate(e) {
return M(Di, e);
}
}, Hi = {
info: {
key: "unirest",
title: "Unirest",
link: "http://unirest.io/java.html",
description: "Lightweight HTTP Request Client Library"
},
convert: ({ method: e, allHeaders: t, postData: n, fullUrl: r }, o) => {
const s = {
indent: " ",
...o
}, { join: a, push: i } = new D({ indent: s.indent });
return ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"].includes(e.toUpperCase()) ? i(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${r}")`) : i(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${r}")`), Object.keys(t).forEach((l) => {
i(`.header("${l}", "${V(t[l])}")`, 1);
}), n != null && n.text && i(`.body(${JSON.stringify(n.text)})`, 1), i(".asString();", 1), a();
}
}, Fi = {
target: "java",
client: "unirest",
title: "Unirest",
generate(e) {
return M(Hi, e);
}
}, ie = (e, t) => Object.keys(e).find((n) => n.toLowerCase() === t.toLowerCase()), ue = (e, t) => {
const n = ie(e, t);
if (n)
return e[n];
}, gr = (e, t) => !!ie(e, t), qi = (e) => {
let t = ue(e, "accept-encoding");
if (!t)
return [];
const n = {
gzip: "DecompressionMethods.GZip",
deflate: "DecompressionMethods.Deflate"
}, r = [];
return typeof t == "string" && (t = [t]), t.forEach((o) => {
o.split(",").forEach((s) => {
const a = /\s*([^;\s]+)/.exec(s);
if (a) {
const i = n[a[1]];
i && r.push(i);
}
});
}), r;
}, Vi = {
info: {
key: "httpclient",
title: "HttpClient",
link: "https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",
description: ".NET Standard HTTP Client"
},
convert: ({ allHeaders: e, postData: t, method: n, fullUrl: r }, o) => {
let s, a;
const i = {
indent: " ",
...o
}, { push: c, join: l } = new D({ indent: i.indent });
c("using System.Net.Http.Headers;");
let u = "";
const f = !!e.cookie, g = qi(e);
(f || g.length) && (u = "