flask-openapi3-scalar 1.34.1__py3-none-any.whl → 1.34.2__py3-none-any.whl
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.
Potentially problematic release.
This version of flask-openapi3-scalar might be problematic. Click here for more details.
- flask_openapi3_scalar/__version__.py +1 -1
- flask_openapi3_scalar/templates/scalar/js/scalar.standalone.js +3 -3
- {flask_openapi3_scalar-1.34.1.dist-info → flask_openapi3_scalar-1.34.2.dist-info}/METADATA +1 -1
- {flask_openapi3_scalar-1.34.1.dist-info → flask_openapi3_scalar-1.34.2.dist-info}/RECORD +6 -6
- {flask_openapi3_scalar-1.34.1.dist-info → flask_openapi3_scalar-1.34.2.dist-info}/WHEEL +0 -0
- {flask_openapi3_scalar-1.34.1.dist-info → flask_openapi3_scalar-1.34.2.dist-info}/entry_points.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Minified by jsDelivr using Terser v5.39.0.
|
|
3
|
-
* Original file: /npm/@scalar/api-reference@1.34.
|
|
3
|
+
* Original file: /npm/@scalar/api-reference@1.34.2/dist/browser/standalone.js
|
|
4
4
|
*
|
|
5
5
|
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
6
|
*/
|
|
@@ -40,5 +40,5 @@ const dfe="undefined"!=typeof document;function pfe(e){return"object"==typeof e|
|
|
|
40
40
|
/*!
|
|
41
41
|
* focus-trap 7.6.2
|
|
42
42
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
43
|
-
*/function SCe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _Ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ECe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TCe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ECe(Object(r),!0).forEach((function(t){_Ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ECe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ACe=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},CCe=function(e){return ACe(e)&&!e.shiftKey},PCe=function(e){return ACe(e)&&e.shiftKey},$Ce=function(e){return setTimeout(e,0)},DCe=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},MCe=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},RCe=[],NCe=function(e,t){var r,n=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||RCe,o=TCe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:CCe,isKeyBackward:PCe},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,r){return e&&void 0!==e[t]?e[t]:o[r||t]},l=function(e,t){var r="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return i.containerGroups.findIndex((function(t){var n=t.container,a=t.tabbableNodes;return n.contains(e)||(null==r?void 0:r.includes(n))||a.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.hasFallback,a=void 0!==r&&r,i=t.params,s=void 0===i?[]:i,l=o[e];if("function"==typeof l&&(l=l.apply(void 0,function(e){return function(e){if(Array.isArray(e))return SCe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return SCe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?SCe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=n.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},u=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!kCe(e,o.tabbableOptions))if(l(n.activeElement)>=0)e=n.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t=function(e,t){var r;return r=(t=t||{}).getShadowRoot?dCe([e],t.includeContainer,{filter:bCe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yCe}):uCe(e,t.includeContainer,bCe.bind(null,t)),OCe(r)}(e,o.tabbableOptions),r=function(e,t){return(t=t||{}).getShadowRoot?dCe([e],t.includeContainer,{filter:vCe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):uCe(e,t.includeContainer,vCe.bind(null,t))}(e,o.tabbableOptions),n=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,i=r.find((function(e){return wCe(e)})),s=r.slice().reverse().find((function(e){return wCe(e)})),l=!!t.find((function(e){return hCe(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNode:a,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?n?r.slice(r.indexOf(e)+1).find((function(e){return wCe(e)})):r.slice(0,r.indexOf(e)).reverse().find((function(e){return wCe(e)})):t[a+(n?1:-1)]}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find((function(e){return e.posTabIndexesFound}))&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?p(t.shadowRoot):t},h=function(e){!1!==e&&e!==p(document)&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(u()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},m=function(e){var t=e.target,r=e.event,n=e.isBackward,a=void 0!==n&&n;t=t||MCe(r),d();var s=null;if(i.tabbableGroups.length>0){var u=l(t,r),p=u>=0?i.containerGroups[u]:void 0;if(u<0)s=a?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(a){var h=i.tabbableGroups.findIndex((function(e){var r=e.firstTabbableNode;return t===r}));if(h<0&&(p.container===t||kCe(t,o.tabbableOptions)&&!wCe(t,o.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(h=u),h>=0){var f=0===h?i.tabbableGroups.length-1:h-1,m=i.tabbableGroups[f];s=hCe(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else ACe(r)||(s=p.nextTabbableNode(t,!1))}else{var g=i.tabbableGroups.findIndex((function(e){var r=e.lastTabbableNode;return t===r}));if(g<0&&(p.container===t||kCe(t,o.tabbableOptions)&&!wCe(t,o.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=u),g>=0){var v=g===i.tabbableGroups.length-1?0:g+1,b=i.tabbableGroups[v];s=hCe(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else ACe(r)||(s=p.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},g=function(e){var t=MCe(e);l(t,e)>=0||(DCe(o.clickOutsideDeactivates,e)?r.deactivate({returnFocus:o.returnFocusOnDeactivate}):DCe(o.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=MCe(e),r=l(t,e)>=0;if(r||t instanceof Document)r&&(i.mostRecentlyFocusedNode=t);else{var n;e.stopImmediatePropagation();var a=!0;if(i.mostRecentlyFocusedNode)if(hCe(i.mostRecentlyFocusedNode)>0){var s=l(i.mostRecentlyFocusedNode),c=i.containerGroups[s].tabbableNodes;if(c.length>0){var d=c.findIndex((function(e){return e===i.mostRecentlyFocusedNode}));d>=0&&(o.isKeyForward(i.recentNavEvent)?d+1<c.length&&(n=c[d+1],a=!1):d-1>=0&&(n=c[d-1],a=!1))}}else i.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return hCe(e)>0}))}))||(a=!1);else a=!1;a&&(n=m({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),h(n||i.mostRecentlyFocusedNode||u())}i.recentNavEvent=void 0},b=function(e){(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.recentNavEvent=e;var r=m({event:e,isBackward:t});r&&(ACe(e)&&e.preventDefault(),h(r))}(e,o.isKeyBackward(e))},y=function(e){(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)})(e)&&!1!==DCe(o.escapeDeactivates,e)&&(e.preventDefault(),r.deactivate())},O=function(e){var t=MCe(e);l(t,e)>=0||DCe(o.clickOutsideDeactivates,e)||DCe(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(i.active)return function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)}(a,r),i.delayInitialFocusTimer=o.delayInitialFocus?$Ce((function(){h(u())})):h(u()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",O,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),n.addEventListener("keydown",y),r},x=function(){if(i.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",O,!0),n.removeEventListener("keydown",b,!0),n.removeEventListener("keydown",y),r},k="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===i.mostRecentlyFocusedNode}))}))&&h(u())})):void 0,S=function(){k&&(k.disconnect(),i.active&&!i.paused&&i.containers.map((function(e){k.observe(e,{subtree:!0,childList:!0})})))};return(r={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),r=s(e,"onPostActivate"),a=s(e,"checkCanFocusTrap");a||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,null==t||t();var o=function(){a&&d(),w(),S(),null==r||r()};return a?(a(i.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!i.active)return this;var t=TCe({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,x(),i.active=!1,i.paused=!1,S(),function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}(a,r);var n=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var d=function(){$Ce((function(){u&&h(f(i.nodeFocusedBeforeActivation)),null==l||l()}))};return u&&c?(c(f(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(i.paused||!i.active)return this;var t=s(e,"onPause"),r=s(e,"onPostPause");return i.paused=!0,null==t||t(),x(),S(),null==r||r(),this},unpause:function(e){if(!i.paused||!i.active)return this;var t=s(e,"onUnpause"),r=s(e,"onPostUnpause");return i.paused=!1,null==t||t(),d(),w(),S(),null==r||r(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?n.querySelector(e):e})),i.active&&d(),S(),this}}).updateContainerElements(e),r};const ICe=()=>{var e;return"undefined"!=typeof navigator&&((null==(e=navigator.userAgentData)?void 0:e.platform)?navigator.userAgentData.platform.toLowerCase().includes("mac"):/Mac/.test(navigator.userAgent))},LCe=["Escape","ArrowDown","ArrowUp","Enter","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],jCe={Escape:{event:"closeModal"},Enter:{event:"executeRequest",modifiers:["default"]},b:{event:"toggleSidebar",modifiers:["default"]},k:{event:"openCommandPalette",modifiers:["default"]},l:{event:"focusAddressBar",modifiers:["default"]}},BCe={Alt:"altKey",Control:"ctrlKey",Shift:"shiftKey",Meta:"metaKey"},UCe=e=>e.map((e=>"default"===e?ICe()?"metaKey":"ctrlKey":BCe[e])),FCe={class:"scalar scalar-app"},QCe={class:"scalar-container"},zCe=["id"],qCe=Li({__name:"ApiClientModal",setup(e){const{activeWorkspace:t}=Eye(),{modalState:r,events:n}=Obe(),a=So(null),o=ji(),{activate:i,deactivate:s}=function(e,t={}){let r;const{immediate:n,...a}=t,o=So(!1),i=So(!1),s=e=>r&&r.activate(e),l=e=>r&&r.deactivate(e);return ul(hc((()=>{const t=BL(e);return(Array.isArray(t)?t:[t]).map((e=>{const t=BL(e);return"string"==typeof t?t:KL(t)})).filter(FL)})),(e=>{e.length&&(r=NCe(e,{...a,onActivate(){o.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){o.value=!1,t.onDeactivate&&t.onDeactivate()}}),n&&s())}),{flush:"post"}),jL((()=>l())),{hasFocus:o,isPaused:i,activate:s,deactivate:l,pause:()=>{r&&(r.pause(),i.value=!0)},unpause:()=>{r&&(r.unpause(),i.value=!1)}}}(a,{allowOutsideClick:!0,fallbackFocus:`#${o}`}),l=e=>{var r;return((e,t,{hotKeys:r=jCe,modifiers:n=["default"]}={})=>{const a=" "===e.key?"Space":e.key,o=r[a];o&&("Escape"===a?t.emit({[o.event]:e}):UCe(o.modifiers||n).every((t=>!0===e[t]))?t.emit({[o.event]:e}):!(e=>{if(!(e.target instanceof HTMLElement))return!1;const t=e.target;return"INPUT"===t.tagName?!LCe.includes(e.key):!("TEXTAREA"!==t.tagName&&!t.getAttribute("contenteditable")&&"true"!==t.contentEditable)})(e)&&void 0===o.modifiers&&t.emit({[o.event]:e}))})(e,n.hotKeys,null==(r=t.value)?void 0:r.hotKeyConfig)};ul((()=>r.open),(e=>{e?(window.addEventListener("keydown",l),document.documentElement.style.overflow="hidden",i({checkCanFocusTrap:()=>Ko()})):(window.removeEventListener("keydown",l),document.documentElement.style.removeProperty("overflow"),s())})),Gi((()=>t6()));const c=e=>(null==e?void 0:e.closeModal)&&r.open&&r.hide();return Yi((()=>n.hotKeys.on(c))),es((()=>{document.documentElement.style.removeProperty("overflow"),n.hotKeys.off(c)})),(e,t)=>ui((Pl(),Rl("div",FCe,[Ul("div",QCe,[Ul("div",{id:Ao(o),ref_key:"client",ref:a,"aria-label":"API Client","aria-modal":"true",class:"scalar-app-layout scalar-client",role:"dialog",tabindex:"-1"},[Fl(Ao(M8),null,{default:ci((()=>[Fl(Ao(Nme),{key:"$route.fullPath"})])),_:1})],8,zCe),Ul("div",{class:"scalar-app-exit",onClick:t[0]||(t[0]=e=>Ao(r).hide())})])],512)),[[Fc,Ao(r).open]])}}),HCe=a6(qCe,[["__scopeId","data-v-45e9730e"]]),VCe=Symbol(),ZCe="2.5.0",WCe="scalar_api_client_data_version",XCe=e=>{const t=localStorage.getItem(e)||"[{}]";return"["===t[0]?Vve(t):JSON.parse(t)},GCe=(e,t)=>{const r=e=>{const[t=0,r=0,n=0]=e.split(".").map((e=>Number.parseInt(e,10)));return{major:t,minor:r,patch:n}},{major:n,minor:a,patch:o}=r(e),{major:i,minor:s,patch:l}=r(t);return n<i||!(n>i)&&(a<s||!(a>s)&&o<l)},YCe=(e,t,r)=>e.forEach((e=>{const n=hL(e,t,!1);n&&r(n)})),KCe=({el:e,appComponent:t,configuration:r={},isReadOnly:n=!1,store:a,persistData:o=!0,mountOnInitialize:i=!0,layout:s="desktop",router:l})=>{const c=So(Bt.parse(r)),u=a||bbe({proxyUrl:c.value.proxyUrl,theme:c.value.theme,showSidebar:c.value.showSidebar??!0,hideClientButton:c.value.hideClientButton??!1,_integration:c.value._integration,useLocalStorage:o}),d=Sye({...u,router:l}),p=(({layout:e})=>({collapsedSidebarFolders:uo({}),isSidebarOpen:So("modal"!==e)}))({layout:s}),h=LTe({plugins:c.value.plugins??[]}),f=()=>{try{return typeof window<"u"&&void 0!==window.localStorage}catch{return!1}};if(f()&&localStorage.getItem(VI)&&!n)try{const e={};let t=0,r=0,n="";for(n in localStorage)Object.prototype.hasOwnProperty.call(localStorage,n)&&(r=2*(localStorage[n].length+n.length),t+=r,e[n]=(r/1024).toFixed(2)+" KB");e.Total=(t/1024).toFixed(2)+" KB",console.table(e),(e=>{const{collectionMutators:t,cookieMutators:r,environmentMutators:n,tagMutators:a,requestExampleMutators:o,requestMutators:i,serverMutators:s,securitySchemeMutators:l,workspaceMutators:c}=e;try{const{collections:e,cookies:u,environments:d,requestExamples:p,requests:h,servers:f,securitySchemes:m,tags:g,workspaces:v}=(()=>{const e=(()=>{const e=localStorage.getItem("collection"),t=localStorage.getItem(WCe);if(t)return t;if(!(null==e?void 0:e.length)||"{"===(null==e?void 0:e[0]))return"0.0.0";try{const[t]=Object.values(Vve(e)??{});return"collection"===(null==t?void 0:t.type)?"2.1.0":"0.0.0"}catch(e){return console.error(e),"0.0.0"}})();console.info("Data version: "+e);let t={collections:XCe("collection"),cookies:XCe("cookie"),environments:XCe("environment"),requestExamples:XCe("requestExample"),requests:XCe("request"),securitySchemes:XCe("securityScheme"),servers:XCe("server"),tags:XCe("tag"),workspaces:XCe("workspace")};return GCe(e,"2.1.0")&&(t=(e=>{console.info("Performing data migration v-0.0.0 to v-2.1.0");const t={...e,folders:XCe("folder")},r=e=>e.reduce(((e,n)=>{var a;const o=t.requests[n];if(o)e.requestUids.add(n),null==(a=o.securitySchemeUids)||a.forEach((t=>e.authUids.add(t)));else if(t.folders[n]){const{requestUids:a,tagUids:o,authUids:i}=r(t.folders[n].childUids??[]);e.tagUids.add(n),a.forEach((t=>e.requestUids.add(t))),o.forEach((t=>e.tagUids.add(t))),i.forEach((t=>e.authUids.add(t)))}return e}),{requestUids:new Set,tagUids:new Set,authUids:new Set}),n={},a=Object.values(t.collections??{}).reduce(((e,a)=>{var o,i,s,l,c,u,d;const{requestUids:p,tagUids:h,authUids:f}=r(a.childUids??[]),m=[...new Set([...f,...Object.values(a.securitySchemeDict??{})])];p.forEach((e=>n[e]=m));const g=m.reduce(((e,r)=>{const n=t.securitySchemes[r];return(null==n?void 0:n.uid)&&e&&(e[r]=(e=>"apiKey"===e.type?{type:"apiKey",name:e.name,value:e.value??""}:"http"===e.type?{type:"http",username:e.value??"",password:e.secondValue??"",token:e.value??""}:"oauth2"===e.type&&"implicit"===e.flow.type?{type:"oauth-implicit",token:e.flow.token??""}:"oauth2"===e.type&&"password"===e.flow.type?{type:"oauth-password",token:e.flow.token??"",username:e.flow.value??"",password:e.flow.secondValue??"",clientSecret:e.flow.clientSecret??""}:"oauth2"===e.type&&"clientCredentials"===e.flow.type?{type:"oauth-clientCredentials",token:e.flow.token??"",clientSecret:e.flow.clientSecret??""}:"oauth2"===e.type&&"authorizationCode"===e.flow.type?{type:"oauth-authorizationCode",token:e.flow.token??"",clientSecret:e.flow.clientSecret??""}:{type:"apiKey",name:"",value:""})(n)),e}),{});return e[a.uid]={type:"collection",openapi:(null==(o=a.spec)?void 0:o.openapi)||"3.1.0",info:(null==(i=a.spec)?void 0:i.info)||{title:"OpenAPI Spec",version:"0.0.1"},security:(null==(s=a.spec)?void 0:s.security)||[],externalDocs:null==(l=a.spec)?void 0:l.externalDocs,uid:a.uid,securitySchemes:m,selectedSecuritySchemeUids:[],selectedServerUid:a.selectedServerUid||(null==(u=null==(c=a.spec)?void 0:c.serverUids)?void 0:u[0])||"",servers:(null==(d=a.spec)?void 0:d.serverUids)||[],requests:[...p],tags:[...h],auth:g,children:a.childUids||[],"x-scalar-icon":"interface-content-folder",watchMode:!1,watchModeStatus:"IDLE"},e}),{}),o=t.cookies??{},i=Object.values(t.environments??{}).reduce(((e,t)=>(e[t.uid]={...t,value:t.raw??""},e)),{}),s=Object.values(t.requests??{}).reduce(((e,t)=>{var r,a,o,i,s;const l=[...Object.values((null==(r=t.parameters)?void 0:r.path)??{}),...Object.values((null==(a=t.parameters)?void 0:a.query)??{}),...Object.values((null==(o=t.parameters)?void 0:o.headers)??{}),...Object.values((null==(i=t.parameters)?void 0:i.cookies)??{})].filter((e=>e)),c=(t.selectedSecuritySchemeUids||[]).filter((e=>{var r;return null==(r=n[t.uid])?void 0:r.includes(e)}));return e[t.uid]={...t,parameters:l,type:"request",method:(null==(s=t.method)?void 0:s.toLowerCase())??"get",examples:t.childUids||[],selectedSecuritySchemeUids:c,selectedServerUid:"",servers:[]},e}),{}),l=Object.values(t.requestExamples??{}).reduce(((e,t)=>(e[t.uid]={...t,type:"requestExample"},e)),{}),c=e=>{const t={refreshUrl:e.refreshUrl||"",selectedScopes:e.selectedScopes||[],scopes:e.scopes||{}};return"implicit"===e.type?{...e,...t,type:"implicit","x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||""}:"password"===e.type||"clientCredentials"===e.type?{...e,...t,tokenUrl:e.tokenUrl||""}:{...e,...t,"x-usePkce":"no","x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||"",authorizationUrl:e.authorizationUrl||"",tokenUrl:e.tokenUrl||""}},u=e=>{switch(null==e?void 0:e.type){case"apiKey":return`${TL(e.in)}`;case"http":return`${TL(e.scheme)} Authentication`;case"oauth2":return((e="")=>e.replace(/([A-Z]{2,})/g," $1").replace(/([A-Z])(?=[a-z])/g," $1").replace(/^./,(e=>e.toUpperCase())).trim())(e.flow.type);case"openIdConnect":return"Open ID Connect";default:return"None"}},d=Object.values(t.securitySchemes??{}).reduce(((e,t)=>(e[t.uid]="oauth2"===t.type?{...t,nameKey:u(t),"x-scalar-client-id":t.clientId||"",flow:c(t.flow)}:{...t,nameKey:u(t)},e)),{}),p=Object.values(t.servers??{}).reduce(((e,t)=>(e[t.uid]={...t,variables:t.variables??{}},e)),{});return{collections:a,cookies:o,environments:i,requestExamples:l,requests:s,securitySchemes:d,servers:p,tags:Object.values(t.folders??{}).reduce(((e,t)=>(e[t.uid]={type:"tag",uid:t.uid,name:t.name||"unknownTag",description:t.description,children:t.childUids||[],"x-scalar-children":[]},e)),{}),workspaces:Object.values(t.workspaces??{}).reduce(((e,t)=>(e[t.uid]={...t,description:t.description??"Basic Scalar Workspace",cookies:t.cookieUids||[],collections:t.collectionUids||[],environments:t.environmentUids||[]},e)),{})}})(t)),GCe(e,"2.2.0")&&(t=(e=>{console.info("Performing data migration v-2.1.0 to v-2.2.0");const t=Object.values(e.securitySchemes).reduce(((t,r)=>{var n;const a=Object.values(e.collections).find((e=>e.securitySchemes.includes(r.uid))),o=null==(n=null==a?void 0:a.auth)?void 0:n[r.uid];if(!o)return t;const i=((e,t)=>{if("apiKey"===e.type&&"apiKey"===t.type)return{...e,value:t.value};if("http"===e.type&&"http"===t.type)return{...e,username:t.username,password:t.password,token:t.token};if("oauth2"===e.type){const{flow:r,...n}=e;if("implicit"===r.type&&"oauth-implicit"===t.type)return{...n,flows:{implicit:{...r,scopes:r.scopes,token:t.token,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("password"===r.type&&"oauth-password"===t.type)return{...n,flows:{password:{...r,username:t.username,password:t.password,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("clientCredentials"===r.type&&"oauth-clientCredentials"===t.type)return{...n,flows:{clientCredentials:{...r,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("authorizationCode"===r.type&&"oauth-authorizationCode"===t.type)return{...n,flows:{authorizationCode:{...r,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}}}return null})(r,o);return i&&(t[r.uid]=i),t}),{}),r=e.servers;return{...e,securitySchemes:t,servers:r}})(t)),GCe(e,"2.3.0")&&(t=(e=>{console.info("Performing data migration v-2.2.0 to v-2.3.0");const t=e.environments,r=Object.values(e.workspaces).reduce(((e,r)=>{const n={};return Object.entries(t).forEach((([e,t])=>{const r="string"==typeof t.value?JSON.parse(t.value):t.value;"default"===e&&Object.assign(n,r)})),e[r.uid]={...r,environments:n},e}),{}),n=Object.values(e.collections).reduce(((e,t)=>(e[t.uid]={...t,"x-scalar-environments":t["x-scalar-environments"]||{}},e)),{});return Object.values(r).forEach((e=>{Object.entries(t).forEach((([t,r])=>{if("default"!==t){const a="string"==typeof r.value?JSON.parse(r.value):r.value,o=r.name;Object.values(n).forEach((r=>{r["x-scalar-environments"]=r["x-scalar-environments"]||{},r["x-scalar-environments"][o]={variables:a},e.activeEnvironmentId===t&&(r["x-scalar-active-environment"]=o??"")}))}}))})),{...e,collections:n,workspaces:r}})(t)),GCe(e,"2.4.0")&&(t=(e=>{console.info("Performing data migration v-2.3.0 to v-2.4.0");const t=Object.values(e.collections).reduce(((t,r)=>{var n;return"Drafts"===(null==(n=r.info)?void 0:n.title)&&(r.servers=[],Object.values(e.requests).forEach((t=>{if(t.selectedServerUid&&r.requests.includes(t.uid)){const r=e.servers[t.selectedServerUid];r&&(t.path=`${r.url}${t.path}`),t.selectedServerUid=""}}))),t[r.uid]=r,t}),{});return{...e,collections:t}})(t)),GCe(e,"2.5.0")&&(t=(e=>{console.info("Performing data migration v-2.4.0 to v-2.5.0");const t=Object.entries(e.cookies||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),r=Object.entries(e.collections||{}).reduce(((e,[t,r])=>(e[t]={...r,info:r.info??{title:"API",version:"1.0"},uid:r.uid,selectedSecuritySchemeUids:r.selectedSecuritySchemeUids,servers:r.servers.map((e=>e)),tags:r.tags.map((e=>e)),requests:r.requests.map((e=>e)),children:r.children.map((e=>e)),selectedServerUid:r.selectedServerUid,useCollectionSecurity:!1},e)),{}),n=Object.entries(e.environments||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),a=Object.entries(e.requests||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,servers:r.servers,selectedServerUid:r.selectedServerUid,examples:r.examples,selectedSecuritySchemeUids:r.selectedSecuritySchemeUids},e)),{}),o=Object.entries(e.requestExamples||{}).reduce(((e,[t,r])=>{const n=r.parameters.headers;return n.some((e=>"accept"===e.key.toLowerCase()))||n.unshift({key:"Accept",value:"*/*",enabled:!0}),e[t]={...r,uid:r.uid,requestUid:r.requestUid,parameters:{...r.parameters,headers:n}},e}),{}),i=Object.entries(e.securitySchemes||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),s=Object.entries(e.servers||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,variables:Object.entries(r.variables||{}).reduce(((e,[t,r])=>{var n;return e[t]={default:r.default??"",description:r.description??"",...(null==(n=r.enum)?void 0:n.length)&&{enum:r.enum}},e}),{})},e)),{}),l=Object.entries(e.tags||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,children:r.children},e)),{}),c=Object.entries(e.workspaces||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,collections:r.collections.map((e=>e)),cookies:r.cookies.map((e=>e)),selectedHttpClient:{targetKey:"shell",clientKey:"curl"}},e)),{});return{...e,collections:r,cookies:t,environments:n,requests:a,requestExamples:o,securitySchemes:i,servers:s,tags:l,workspaces:c}})(t)),t={collections:Object.values(t.collections),cookies:Object.values(t.cookies),environments:Object.values(t.environments),requestExamples:Object.values(t.requestExamples),requests:Object.values(t.requests),securitySchemes:Object.values(t.securitySchemes),servers:Object.values(t.servers),tags:Object.values(t.tags),workspaces:Object.values(t.workspaces)},t})();YCe(e,tve,t.rawAdd),YCe(u,GEe,r.add),YCe(d,Gve,n.add),YCe(p,Ove,o.rawAdd),YCe(h,Ave,i.rawAdd),YCe(f,ive,s.rawAdd),YCe(m,Hge,l.rawAdd),YCe(g,Kge,a.rawAdd),YCe(v,vbe,c.rawAdd),localStorage.setItem(WCe,ZCe)}catch(e){console.error(e)}})(u)}catch(e){console.warn("Failed to load from localStorage:",e)}else if(n||c.value.url||c.value.content){const e=vbe.parse({uid:"default",name:"Workspace",proxyUrl:c.value.proxyUrl});u.workspaceMutators.rawAdd(e)}else if(u.workspaceMutators.add({uid:"default",name:"Workspace",proxyUrl:c.value.proxyUrl}),f())try{localStorage.setItem(WCe,ZCe)}catch(e){console.warn("Failed to set localStorage version:",e)}const m=$u(t);m.use(l),m.provide(ybe,u),m.provide(nge,s),m.provide(_ye,d),m.provide(Ybe,p),m.provide(VCe,c),m.provide(jTe,h),m.config.idPrefix="scalar-client";const{collectionMutators:g,importSpecFile:v,importSpecFromUrl:b,modalState:y,requests:O,securitySchemes:w,securitySchemeMutators:x,servers:k,workspaceMutators:S,requestExampleMutators:_}=u,{activeCollection:E,activeWorkspace:T}=d,A=(t=e)=>{t?m.mount(t):console.error("[@scalar/api-client-modal] Could not create the API client.","Invalid HTML element provided.","Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")};i&&A();const C=e=>{const t=((e,t)=>{const{requestUid:r,method:n,path:a}=t??{};if(r)return r;if(!a||!n)return Object.keys(e)[0];const o=Object.values(e),i=o.find((e=>e.path.toLowerCase()===a.toLowerCase()&&e.method.toLowerCase()===n.toLowerCase()));if(i)return i.uid;const{request:s}=((e,t,r)=>{let n=[];return{request:r.find((r=>{if(r.method.toLowerCase()!==t.toLowerCase())return!1;if(r.path===e)return!0;const a=(e=>{const t="^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{([^}]+)\\\}/g,"([^/]+)")+"$";return new RegExp(t)})(r.path),o=e.match(a);return!!o&&(n=o.slice(1).flatMap(((e,t)=>{var n;const a=null==(n=r.path.split("{")[t+1])?void 0:n.split("}")[0];return a?[{key:a,value:e}]:[]})),!0)})),pathParams:n}})(a,n,o);return(null==s?void 0:s.uid)||Object.keys(e)[0]})(O,e);t?l.push({name:"request",query:null!=e&&e._source?{source:e._source}:{},params:{workspace:"default",request:t}}):console.warn("[@scalar/api-client] Could not find request for path and method",e)},P=()=>{var e;u.collectionMutators.reset(),u.requestMutators.reset(),u.requestExampleMutators.reset(),u.securitySchemeMutators.reset(),u.serverMutators.reset(),u.tagMutators.reset(),S.edit(null==(e=T.value)?void 0:e.uid,"collections",[])};return{app:m,resetStore:P,updateConfig:async e=>{var t,r;const a=Bt.parse(e);if(a.url||a.content||a.servers||a.authentication||a.slug||a.title||a.baseServerURL||a.proxyUrl||a.showSidebar){P();const e={...a,useCollectionSecurity:n};c.value=e,a.url?await b(a.url,(null==(t=T.value)?void 0:t.uid)??"default",e):a.content?await v(a.content,(null==(r=T.value)?void 0:r.uid)??"default",e):console.error("[@scalar/api-client-modal] Could not create the API client.",'Please provide an OpenAPI document: { url: "…" }',"Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")}},updateServer:e=>{var t;const r=Object.values(k).find((t=>t.url===e));r&&E.value&&g.edit(null==(t=E.value)?void 0:t.uid,"selectedServerUid",r.uid)},onUpdateServer:e=>{ul((()=>{var e;return null==(e=E.value)?void 0:e.selectedServerUid}),(t=>{const r=Object.values(k).find((e=>e.uid===t));null!=r&&r.url&&e(r.url)}))},updateAuth:({nameKey:e,propertyKey:t,value:r})=>{const n=Object.values(w).find((t=>t.nameKey===e));n&&x.edit(n.uid,t,r)},route:C,open:e=>{const{method:t,path:r,requestUid:n}=e??{};(t&&r||n)&&C(e),y.open=!0},mount:A,modalState:y,store:u,updateExample:(e,t)=>{var r,n,a,o,i;if(!e||!t)return;const s=Object.values(O).find((({operationId:e,path:r})=>e===t||r===t));if(!s)return;const l=Object.keys((null==(r=s.requestBody)?void 0:r.content)||{})[0]||"",c=null==(i=null==(o=null==(a=null==(n=s.requestBody)?void 0:n.content)?void 0:a[l])?void 0:o.examples)?void 0:i[e];c&&_.edit(s.examples[0],"body.raw.value",pL(c.value))}}},JCe=So(null),ePe=()=>({client:JCe,init:async e=>{const t=await(async({el:e=null,configuration:t={},mountOnInitialize:r=!0,store:n})=>{const a={...t},o=KCe({el:e,appComponent:HCe,configuration:a,persistData:!1,isReadOnly:!0,store:n,mountOnInitialize:r,router:Ime({history:Gfe(),routes:kye}),layout:"modal"}),{importSpecFile:i,importSpecFromUrl:s}=o.store;return n||(t.url?await s(t.url,"default",{proxyUrl:t.proxyUrl,useCollectionSecurity:!0,...t}):t.content&&await i(t.content,"default",{useCollectionSecurity:!0,...t})),o})(e);return JCe.value=t,t}}),tPe=Li({__name:"ApiClientModal",props:{configuration:{},dereferencedDocument:{}},setup(e){const t=So(null),{client:r,init:n}=ePe(),{selectedExampleKey:a,operationId:o}={selectedExampleKey:rCe,operationId:nCe},i=Eye(),s=Obe(),{isIntersectionEnabled:l}=KOe(),c=()=>({name:"on-before-request",hooks:{onBeforeRequest:e.configuration.onBeforeRequest}});return Yi((()=>{t.value&&n({el:t.value,configuration:{...e.configuration,plugins:e.configuration.onBeforeRequest?[c]:[]},store:s})})),XL((()=>e.dereferencedDocument),((t,n)=>{var a,o;t&&JSON.stringify(t)!==JSON.stringify(n||{})&&(i.activeCollection.value&&(null==(a=r.value)||a.resetStore()),s.importSpecFile(void 0,"default",{dereferencedDocument:t,shouldLoad:!1,documentUrl:null==(o=e.configuration)?void 0:o.url,useCollectionSecurity:!0,...e.configuration}))})),XL((()=>e.configuration),((t,r)=>{if(!r||!i.activeCollection.value)return;const n=i.activeCollection.value,a=XAe(r,t),o=a.some((e=>"url"===e.path[0]||"content"===e.path[0]||"url"===e.path[1]||"content"===e.path[1]));if(o);else if(a.forEach((e=>{"authentication"===e.path[0]&&tCe(e,i,s)})),t.servers||r.servers){n.servers.forEach((e=>{s.serverMutators.delete(e,n.uid)}));const r=rbe(t.servers??e.dereferencedDocument.servers,{baseServerURL:t.baseServerURL});r.forEach((e=>{s.serverMutators.add(e,n.uid)})),r.length&&s.collectionMutators.edit(n.uid,"selectedServerUid",r[r.length-1].uid)}l.value=!1,setTimeout((()=>{l.value=!0}),1e3)}),{deep:!0,debounce:300}),ul(a,(e=>{r.value&&e&&o.value&&r.value.updateExample(e,o.value)})),es((()=>{var e;return null==(e=r.value)?void 0:e.app.unmount()})),(e,r)=>(Pl(),Rl("div",{ref_key:"el",ref:t},null,512))}}),rPe=["method"],nPe=Aye(Li({__name:"TestRequestButton",props:{method:{},path:{}},setup(e){const{client:t}=ePe(),r=HOe(),n=hc((()=>!0!==r.value.hideTestRequestButton)),a=()=>{var r;null==(r=t.value)||r.open({method:e.method,path:e.path})};return(e,t)=>n.value?(Pl(),Rl("button",{key:0,class:"show-api-client-button",method:e.method,type:"button",onClick:Su(a,["stop"])},[Fl(Ao(vz),{class:"size-3",weight:"fill"}),t[0]||(t[0]=Ul("span",null,"Test Request",-1)),Fl(vSe,null,{default:ci((()=>[ql("("+Gn(e.method)+" "+Gn(e.path)+")",1)])),_:1})],8,rPe)):(Pl(),Rl(Sl,{key:1},[ql(" ")],64))}}),[["__scopeId","data-v-976c9c1f"]]),aPe={class:"operation-title"},oPe={class:"operation-details"},iPe={class:"endpoint-label"},sPe={class:"endpoint-label-path"},lPe={class:"endpoint-label-name"},cPe={class:"endpoint-content"},uPe={class:"operation-details-card"},dPe={class:"operation-details-card-item"},pPe={class:"operation-details-card-item"},hPe={key:0,class:"operation-details-card-item"},fPe=Aye(Li({__name:"ClassicLayout",props:{id:{},path:{},clientOptions:{},method:{},operation:{},oldOperation:{},parameters:{},isWebhook:{type:Boolean},server:{},securitySchemes:{},schemas:{},store:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=hc((()=>e.operation.summary||e.path||"")),{copyToClipboard:n}=dH(),a=HOe(),o=t,i=e=>{o("update:modelValue",e)};return(e,t)=>(Pl(),Nl(Ao(eSe),{id:e.id,class:"reference-endpoint",transparent:""},hs({title:ci((()=>[Ul("div",aPe,[Ul("div",oPe,[Fl(Ao(Rke),{class:"endpoint-type",method:e.method,short:""},null,8,["method"]),Fl(Ao(OSe),{id:e.id,class:"endpoint-anchor"},{default:ci((()=>[Ul("h3",iPe,[Ul("div",sPe,[Fl(GTe,{deprecated:Ao(wL)(e.operation),path:e.path},null,8,["deprecated","path"])]),Ul("div",lPe,Gn(r.value),1),Ao(xL)(e.operation)?(Pl(),Nl(Ao(bke),{key:0,class:zn(Ao(kL)(e.operation))},{default:ci((()=>[ql(Gn(Ao(xL)(e.operation)),1)])),_:1},8,["class"])):Vl("",!0),e.isWebhook?(Pl(),Nl(Ao(bke),{key:1,class:"font-code text-green flex w-fit items-center justify-center gap-1"},{default:ci((()=>[Fl(Ao(yq),{weight:"bold"}),t[1]||(t[1]=ql("Webhook "))])),_:1,__:[1]})):Vl("",!0)])])),_:1},8,["id"])])])])),actions:ci((({active:r})=>{var o;return[r&&!e.isWebhook?(Pl(),Nl(Ao(nPe),{key:0,method:e.method,path:e.path},null,8,["method","path"])):(null==(o=Ao(a))?void 0:o.hideTestRequestButton)?Vl("",!0):(Pl(),Nl(Ao(vz),{key:1,class:"endpoint-try-hint size-4.5"})),Fl(Ao(e8),{class:"endpoint-copy p-0.5",icon:Ao(xQ),label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:t[0]||(t[0]=Su((t=>Ao(n)(e.path)),["stop"]))},null,8,["icon"])]})),default:ci((()=>{var t;return[Ul("div",cPe,[Ul("div",uPe,[Ul("div",dPe,[Fl(jAe,{requestBody:e.oldOperation.requestBody,parameters:e.parameters,schemas:e.schemas,"onUpdate:modelValue":i},null,8,["requestBody","parameters","schemas"])]),Ul("div",pPe,[Fl(BAe,{collapsableItems:!1,responses:e.oldOperation.responses,schemas:e.schemas},null,8,["responses","schemas"])]),(null==(t=e.operation)?void 0:t.callbacks)?(Pl(),Rl("div",hPe,[Fl(ZAe,{method:e.method,path:e.path,callbacks:e.operation.callbacks,schemas:e.schemas},null,8,["method","path","callbacks","schemas"])])):Vl("",!0)]),Fl(Ao(bAe),{class:"operation-example-card",responses:e.operation.responses},null,8,["responses"]),Ul("div",null,[e.operation.externalDocs?(Pl(),Nl(Ao(yke),{key:0},{default:ci((()=>[Fl(Ao(NSe),{value:e.operation.externalDocs},null,8,["value"])])),_:1})):Vl("",!0),Fl(Ao(PX),null,{default:ci((()=>[Fl(Ao(uAe),{class:"operation-example-card",method:e.method,selectedServer:e.server,clientOptions:e.clientOptions,selectedClient:e.store.workspace["x-scalar-default-client"],securitySchemes:e.securitySchemes,path:e.path,fallback:"",operation:e.operation,"onUpdate:modelValue":i},null,8,["method","selectedServer","clientOptions","selectedClient","securitySchemes","path","operation"])])),_:1})])])]})),_:2},[e.operation.description?{name:"description",fn:ci((()=>[Fl(Ao(o8),{value:e.operation.description,withImages:"",withAnchors:"",transformType:"heading",anchorPrefix:e.id},null,8,["value","anchorPrefix"])])),key:"0"}:void 0]),1032,["id"]))}}),[["__scopeId","data-v-d52c6d10"]]),mPe={class:"operation-details"},gPe={class:"examples"},vPe=Aye(Li({__name:"ModernLayout",props:{id:{},path:{},clientOptions:{},method:{},operation:{},oldOperation:{},parameters:{},isWebhook:{type:Boolean},securitySchemes:{},server:{},schemas:{},store:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=hc((()=>e.operation.summary||e.path||"")),n=t,a=ji(),o=HOe(),i=e=>{n("update:modelValue",e)};return(e,t)=>(Pl(),Nl(Ao(Xke),{id:e.id,"aria-labelledby":Ao(a),label:r.value,tabindex:"-1"},{default:ci((()=>[Fl(Ao(pSe),{loading:Ao(o).isLoading},{default:ci((()=>[Ao(xL)(e.operation)?(Pl(),Nl(Ao(bke),{key:0,class:zn(["capitalize",Ao(kL)(e.operation)])},{default:ci((()=>[ql(Gn(Ao(xL)(e.operation)),1)])),_:1},8,["class"])):Vl("",!0),e.isWebhook?(Pl(),Nl(Ao(bke),{key:1,class:"font-code text-green flex w-fit items-center justify-center gap-1"},{default:ci((()=>[Fl(Ao(yq),{weight:"bold"}),t[0]||(t[0]=ql("Webhook "))])),_:1,__:[0]})):Vl("",!0),Ul("div",{class:zn(Ao(wL)(e.operation)?"deprecated":"")},[Fl(Ao(fSe),null,{default:ci((()=>[Fl(Ao(OSe),{id:e.id},{default:ci((()=>[Fl(Ao(mSe),{id:Ao(a),level:3},{default:ci((()=>[ql(Gn(r.value),1)])),_:1},8,["id"])])),_:1},8,["id"])])),_:1})],2),Fl(Ao(aSe),null,{default:ci((()=>[Fl(Ao(rSe),null,{default:ci((()=>[Ul("div",mPe,[Fl(Ao(o8),{value:e.operation.description,withImages:"",withAnchors:"",transformType:"heading",anchorPrefix:e.id},null,8,["value","anchorPrefix"]),Fl(jAe,{breadcrumb:[e.id],parameters:e.parameters,requestBody:e.oldOperation.requestBody,schemas:e.schemas,"onUpdate:modelValue":i},null,8,["breadcrumb","parameters","requestBody","schemas"]),Fl(BAe,{breadcrumb:[e.id],responses:e.oldOperation.responses,schemas:e.schemas},null,8,["breadcrumb","responses","schemas"]),Fl(Ao(PX),null,{default:ci((()=>[e.operation.callbacks?(Pl(),Nl(ZAe,{key:0,class:"mt-6",path:e.path,callbacks:e.operation.callbacks,method:e.method,schemas:e.schemas},null,8,["path","callbacks","method","schemas"])):Vl("",!0)])),_:1})])])),_:1}),Fl(Ao(rSe),null,{default:ci((()=>[Ul("div",gPe,[e.operation.externalDocs?(Pl(),Nl(Ao(yke),{key:0},{default:ci((()=>[Fl(Ao(NSe),{value:e.operation.externalDocs},null,8,["value"])])),_:1})):Vl("",!0),Fl(Ao(PX),null,{default:ci((()=>[Fl(Ao(uAe),{method:e.method,selectedServer:e.server,clientOptions:e.clientOptions,securitySchemes:e.securitySchemes,selectedClient:e.store.workspace["x-scalar-default-client"],path:e.path,fallback:"",operation:e.operation,"onUpdate:modelValue":i},hs({header:ci((()=>{var t;return[Fl(GTe,{class:"font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",deprecated:null==(t=e.operation)?void 0:t.deprecated,path:e.path},null,8,["deprecated","path"])]})),_:2},[e.isWebhook?void 0:{name:"footer",fn:ci((()=>[Fl(Ao(nPe),{method:e.method,path:e.path},null,8,["method","path"])])),key:"0"}]),1032,["method","selectedServer","clientOptions","securitySchemes","selectedClient","path","operation"])])),_:1}),Fl(Ao(PX),null,{default:ci((()=>[Fl(Ao(bAe),{responses:e.operation.responses,style:{"margin-top":"12px"}},null,8,["responses"])])),_:1})])])),_:1})])),_:1})])),_:1},8,["loading"])])),_:1},8,["id","aria-labelledby","label"]))}}),[["__scopeId","data-v-8ffb0fcc"]]),bPe=Li({__name:"Operation",props:{path:{},method:{},clientOptions:{},isWebhook:{type:Boolean},layout:{default:"modern"},id:{},server:{},store:{},collection:{},document:{}},setup(e){var t,r;const n=hc((()=>{var t,r;const n=e.isWebhook?"webhooks":"paths";return null==(r=null==(t=e.store.workspace.activeDocument)?void 0:t[n])?void 0:r[e.path]})),a=hc((()=>{var t;const r=null==(t=n.value)?void 0:t[e.method];return nC(r)?null:r})),o=hc((()=>{var t,r,n,a,o,i;return e.isWebhook?null==(n=null==(r=null==(t=e.document)?void 0:t.webhooks)?void 0:r[e.path])?void 0:n[e.method]:null==(i=null==(o=null==(a=e.document)?void 0:a.paths)?void 0:o[e.path])?void 0:i[e.method]})),{handleDiscriminatorChange:i}=function(e,t){var r,n,a;const o=null==(a=null==(n=null==(r=null==e?void 0:e.requestBody)?void 0:r.content)?void 0:n["application/json"])?void 0:a.schema,i=hc((()=>{return!(!(e=o)||!(e.discriminator||"array"===e.type&&e.items&&"object"==typeof e.items&&"discriminator"in e.items));var e})),s=i.value?function({schema:e,schemas:t,onSchemaChange:r}){const n=hc((()=>function(e){if(e)return"array"===e.type&&e.items&&"object"==typeof e.items&&!("$ref"in e.items)?e.items:e}(e))),a=hc((()=>function(e){var t;if(null==(t=null==e?void 0:e.discriminator)?void 0:t.mapping)return e.discriminator.mapping}(n.value))),o=hc((()=>a.value&&Object.keys(a.value)[0]||"")),i=So(o.value);ul(o,(e=>{e&&!i.value&&(i.value=e)}),{immediate:!0});const s=hc((()=>function(e){var t;return null==(t=null==e?void 0:e.discriminator)?void 0:t.propertyName}(n.value))),l=hc((()=>function(e){return void 0!==(null==e?void 0:e.discriminator)}(n.value))),c=hc((()=>{if(!n.value||!t||!i.value)return e;const a=function(e,t,r){var n;if(!(null==(n=e.discriminator)?void 0:n.mapping)||!t)return;const a=e.discriminator.mapping[t];if(!a)return;const o=a.split("/").pop();if(!o||!r[o])return;const i=r[o];if(i.allOf){const t={type:i.type||"object",properties:{},required:[],...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}},n={},a=new Set;e.required&&e.required.forEach((e=>a.add(e)));for(const e of i.allOf)if("$ref"in e){const t=e.$ref.split("/").pop();if(t&&r[t]){const e=r[t];e.properties&&Object.assign(n,e.properties),e.required&&e.required.forEach((e=>a.add(e)))}}else"properties"in e&&(Object.assign(n,e.properties),"required"in e&&Array.isArray(e.required)&&e.required.forEach((e=>a.add(e))));return t.properties=n,t.required=Array.from(a),t}return{type:i.type||e.type,properties:{...e.properties||{},...i.properties||{}},required:[...e.required||[],...i.required||[]],discriminator:e.discriminator,...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}}}(n.value,i.value,t);if(!a)return e;const o="array"===(null==e?void 0:e.type)?{type:"array",items:a,...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}}:a;return null==r||r(o),o}));return{selectedType:i,discriminatorMapping:a,defaultType:o,discriminatorPropertyName:s,hasDiscriminator:l,mergedSchema:c,generateExampleValue:(e=!1)=>{if(!c.value)return e?[]:{};const t={},r="array"===c.value.type?c.value.items:c.value;"properties"in r&&r.properties&&Object.entries(r.properties).forEach((([e,r])=>{const n=r;null!==n&&(t[e]=(e=>{if("default"in e)return e.default;if("example"in e)return e.example;switch(e.type){case"string":return"";case"integer":case"number":return e.nullable?null:0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}})(n))})),s.value&&i.value&&(t[s.value]=i.value);const n=e?[t]:t;return JSON.parse(JSON.stringify(n))}}}({schema:o,schemas:t,onSchemaChange:t=>{var r,n;(null==(n=null==(r=null==e?void 0:e.requestBody)?void 0:r.content)?void 0:n["application/json"])&&(e.requestBody.content["application/json"].schema=t)}}):{selectedType:So(""),discriminatorMapping:hc((()=>({}))),discriminatorPropertyName:hc((()=>"")),hasDiscriminator:hc((()=>!1)),mergedSchema:hc((()=>o)),generateExampleValue:()=>({})},{selectedType:l,discriminatorMapping:c,discriminatorPropertyName:u,hasDiscriminator:d,mergedSchema:p,generateExampleValue:h}=s;if(i.value){const e=hc((()=>({selectedType:l.value||void 0,discriminatorMapping:c.value||{},discriminatorPropertyName:u.value||"",hasDiscriminator:d.value,mergedSchema:p.value})));js(s_e,e),js(l_e,{generateExampleValue:h})}else js(s_e,hc((()=>null))),js(l_e,{generateExampleValue:()=>({})});return{hasSchemaDiscriminator:i,handleDiscriminatorChange:e=>{i.value&&(l.value=e)}}}(o.value,null==(r=null==(t=e.document)?void 0:t.components)?void 0:r.schemas),{securitySchemes:s}=Obe(),l=hc((()=>{var t,r;return((e,t=[],r={})=>{const n=new Set((null==e?void 0:e.map((e=>Object.keys(e).sort().join(","))))??[]);return t.reduce(((e,t)=>{const a=Array.isArray(t)?t:[t],o=a.map((e=>{var t;return null==(t=r[e])?void 0:t.nameKey})).sort().join(",");return n.has(o)&&e.push(...a.map((e=>r[e])).filter(_L)),e}),[])})((null==(t=a.value)?void 0:t.security)||(null==(r=e.document)?void 0:r.security),e.collection.selectedSecuritySchemeUids,s).map(ZTe)})),c=hc((()=>{var e,t;return[...(null==(e=n.value)?void 0:e.parameters)??[],...(null==(t=a.value)?void 0:t.parameters)??[]].filter(aC)}));return(e,t)=>{var r,n,s,u;return a.value&&o.value?(Pl(),Rl(Sl,{key:0},["classic"===e.layout?(Pl(),Nl(fPe,{key:0,id:e.id,isWebhook:e.isWebhook,method:e.method,operation:a.value,oldOperation:o.value,clientOptions:e.clientOptions,securitySchemes:l.value,parameters:c.value,store:e.store,path:e.path,schemas:null==(n=null==(r=e.document)?void 0:r.components)?void 0:n.schemas,server:e.server,"onUpdate:modelValue":Ao(i)},null,8,["id","isWebhook","method","operation","oldOperation","clientOptions","securitySchemes","parameters","store","path","schemas","server","onUpdate:modelValue"])):(Pl(),Nl(vPe,{key:1,id:e.id,isWebhook:e.isWebhook,method:e.method,clientOptions:e.clientOptions,oldOperation:o.value,securitySchemes:l.value,parameters:c.value,path:e.path,store:e.store,operation:a.value,schemas:null==(u=null==(s=e.document)?void 0:s.components)?void 0:u.schemas,server:e.server,"onUpdate:modelValue":Ao(i)},null,8,["id","isWebhook","method","clientOptions","oldOperation","securitySchemes","parameters","path","store","operation","schemas","server","onUpdate:modelValue"]))],64)):Vl("",!0)}}}),yPe=Li({__name:"TraversedEntry",props:{level:{default:0},rootIndex:{},entries:{},document:{},config:{},clientOptions:{},activeCollection:{},activeServer:{},store:{}},setup(e,{expose:t}){const r=e=>"isGroup"in e&&e.isGroup,n=e=>"tag"in e&&!r(e),a=e=>"operation"in e,o=e=>"webhook"in e,i=e=>"isWebhooks"in e&&Boolean(e.isWebhooks),s=hc((()=>0===e.level)),{hash:l}=KOe(),c=hc((()=>s.value?e.rootIndex:DEe(l.value,e.entries))),u=(e,t)=>r(e)?null:t<c.value?"prev":t>c.value+2?"after":null;return t({currentIndex:c}),(e,t)=>{const l=ss("TraversedEntry",!0);return Pl(!0),Rl(Sl,null,ps(e.entries,((t,c)=>(Pl(),Nl(Ao(BOe),{key:t.id,id:t.id,prev:"prev"===u(t,c),isLazy:Boolean(u(t,c))},{default:ci((()=>[a(t)||o(t)?(Pl(),Nl(Ao(iSe),{key:0,omit:!s.value},{default:ci((()=>[Fl(Ao(bPe),{path:o(t)?t.name:t.path,method:t.method,id:t.id,document:e.document,collection:e.activeCollection,clientOptions:e.clientOptions,layout:e.config.layout,store:e.store,server:e.activeServer,isWebhook:o(t)},null,8,["path","method","id","document","collection","clientOptions","layout","store","server","isWebhook"])])),_:2},1032,["omit"])):i(t)||n(t)?(Pl(),Nl(Ao(UEe),{key:1,tag:t,layout:e.config.layout,moreThanOneTag:e.entries.filter(n).length>1},{default:ci((()=>{var r;return["children"in t&&(null==(r=t.children)?void 0:r.length)?(Pl(),Nl(l,{key:0,level:e.level+1,entries:t.children,activeCollection:e.activeCollection,activeServer:e.activeServer,clientOptions:e.clientOptions,rootIndex:e.rootIndex,config:e.config,document:e.document,store:e.store},null,8,["level","entries","activeCollection","activeServer","clientOptions","rootIndex","config","document","store"])):Vl("",!0)]})),_:2},1032,["tag","layout","moreThanOneTag"])):r(t)?(Pl(),Nl(l,{key:2,level:e.level+1,rootIndex:e.rootIndex,entries:t.children||[],activeCollection:e.activeCollection,activeServer:e.activeServer,clientOptions:e.clientOptions,config:e.config,document:e.document,store:e.store},null,8,["level","rootIndex","entries","activeCollection","activeServer","clientOptions","config","document","store"])):Vl("",!0)])),_:2},1032,["id","prev","isLazy"])))),128)}}}),OPe={key:0},wPe=Li({__name:"TraversedEntryContainer",props:{document:{},config:{},clientOptions:{},store:{}},emits:["allEntriesLoaded"],setup(e,{emit:t}){const r=t,{collections:n,servers:a}=Obe(),{activeCollection:o}=Eye(),i=hc((()=>{var t;if(null==(t=e.config)?void 0:t.slug){const t=n[ebe(e.config.slug)];if(t)return t}return o.value})),s=hc((()=>{if(i.value){if(i.value.selectedServerUid){const e=a[i.value.selectedServerUid];if(e)return e}return a[i.value.servers[0]]}})),{items:l}=Dke(),{hash:c,isIntersectionEnabled:u}=KOe(),d=(e=>{if(!e)return()=>null;let t=null,r=document.getElementById(e);const n=new MutationObserver((()=>{r||(r=document.getElementById(e)),r&&(null!==t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{null==r||r.scrollIntoView(),t=null})))}));return n.observe(document.body,{childList:!0,subtree:!0}),()=>{null!==t&&cancelAnimationFrame(t),n.disconnect()}})(c.value),p=()=>{null==d||d(),jOe.value=!0,u.value=!0},h=So(new Set),f=hc((()=>DEe(c.value,l.value.entries)));return LOe.on((({loading:e,loaded:t,save:n})=>{jOe.value||(e&&n&&h.value.add(e),t&&n&&h.value.delete(t),0===h.value.size&&(r("allEntriesLoaded",!0),setTimeout((()=>p()),300)))})),setTimeout((()=>p()),5e3),(e,t)=>Ao(l).entries.length&&i.value?(Pl(),Rl("div",OPe,[Fl(yPe,{entries:Ao(l).entries,activeCollection:i.value,activeServer:s.value,clientOptions:e.clientOptions,config:e.config,document:e.document,rootIndex:f.value,store:e.store},null,8,["entries","activeCollection","activeServer","clientOptions","config","document","rootIndex","store"])])):Vl("",!0)}}),xPe={class:"narrow-references-container"},kPe=Li({__name:"Content",props:{document:{},config:{},store:{}},setup(e){const t=HOe(),r=hc((()=>{return!0===(e=t.value.hiddenClients)?[]:Kxe().clients().flatMap((t=>{const r=t.clients.flatMap((r=>{const n=`${t.key}/${r.client}`;if(Array.isArray(e)&&e.includes(r.client))return[];if("object"==typeof e&&null!==e){const n=e[t.key];if(!0===n)return[];if(Array.isArray(n)&&n.includes(r.client))return[]}return{id:n,lang:"curl"===r.client?"curl":t.key,title:`${Pn(t.title)} ${r.title}`,label:r.title,targetKey:t.key,targetTitle:t.title,clientKey:r.client}}));return 0===r.length?[]:{label:t.title,options:r}}));var e}));return(e,n)=>{var a,o,i,s,l;return Pl(),Rl(Sl,null,[Fl(Ao(CEe)),Ul("div",xPe,[fs(e.$slots,"start"),(null==(o=null==(a=e.document)?void 0:a.info)?void 0:o.title)||(null==(s=null==(i=e.document)?void 0:i.info)?void 0:s.description)?(Pl(),Nl(Ao(i_e),{key:0,document:e.document,store:e.store,clientOptions:r.value,config:Ao(t)},null,8,["document","store","clientOptions","config"])):fs(e.$slots,"empty-state",{key:1}),Fl(Ao(wPe),{document:e.document,config:Ao(t),clientOptions:r.value,store:e.store},null,8,["document","config","clientOptions","store"]),(null==(l=Ao(t))?void 0:l.hideModels)?Vl("",!0):(Pl(),Nl(Ao(TEe),{key:2,document:e.document,config:Ao(t)},null,8,["document","config"])),fs(e.$slots,"end")])],64)}}}),SPe={class:"start custom-scroll"},_Pe={class:"start-copy"},EPe={class:"start-cta"},TPe={class:"start-row"},APe={class:"start-section start-section-colors"},CPe=["onClick"],PPe=Aye(Li({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const r=t,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function a(){const e=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");r("updateContent",await e.text())}return(e,t)=>(Pl(),Rl("div",SPe,[Ul("div",_Pe,[t[3]||(t[3]=Hl('<div class="start-logo" data-v-0aca3a20><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0aca3a20></path></svg></div><h1 class="start-h1" data-v-0aca3a20>Swagger Editor</h1><p class="start-p" data-v-0aca3a20> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3)),Ul("div",EPe,[Fl(Ao(aF),{fullWidth:"",onClick:a},{default:ci((()=>t[1]||(t[1]=[ql(" Show Example ")]))),_:1,__:[1]}),Fl(Ao(aF),{fullWidth:"",variant:"outlined",onClick:t[0]||(t[0]=t=>e.$emit("loadSwaggerFile"))},{default:ci((()=>t[2]||(t[2]=[ql(" Upload File ")]))),_:1,__:[2]})])]),Ul("div",TPe,[t[5]||(t[5]=Hl('<div class="start-section start-section-integrations" data-v-0aca3a20><div class="start-h2" data-v-0aca3a20>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0aca3a20><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0aca3a20></path></svg><span data-v-0aca3a20>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0aca3a20><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g data-v-0aca3a20><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path></g></svg><span data-v-0aca3a20>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0aca3a20><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="currentColor" fill-rule="nonzero" data-v-0aca3a20><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0aca3a20></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0aca3a20></polygon></g></svg><span data-v-0aca3a20>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0aca3a20><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="none" fill-rule="evenodd" data-v-0aca3a20><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0aca3a20></circle><g stroke="currentColor" data-v-0aca3a20><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0aca3a20></ellipse></g></g></svg><span data-v-0aca3a20>React</span></a></div>',1)),Ul("div",APe,[t[4]||(t[4]=Ul("p",{class:"start-h2"},"THEMING",-1)),(Pl(),Rl(Sl,null,ps(n,(t=>Ul("div",{key:t,class:zn(["start-item",{"start-item-active":t===e.theme}]),onClick:r=>e.$emit("changeTheme",{id:t,label:Ao(dbe)[t]})},Gn(Ao(dbe)[t]),11,CPe))),64))])]),t[6]||(t[6]=Hl('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2))]))}}),[["__scopeId","data-v-0aca3a20"]]),$Pe={class:"references-mobile-header t-doc__header"},DPe={class:"references-mobile-breadcrumbs"},MPe={class:"references-mobile-header-actions"},RPe=Aye(Li({__name:"MobileHeader",props:{breadcrumb:{}},setup(e){const{isSidebarOpen:t}=Dke();return(e,r)=>(Pl(),Rl("div",$Pe,[Fl(Ao(e8),{icon:Ao(t)?"Close":"Menu",label:Ao(t)?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=e=>t.value=!Ao(t))},null,8,["icon","label"]),Ul("span",DPe,Gn(e.breadcrumb),1),Ul("div",MPe,[fs(e.$slots,"actions",{},void 0,!0)])]))}}),[["__scopeId","data-v-fa8b013a"]]);function NPe({originalDocument:e,dereferencedDocument:t,configuration:r}){const{originalDocument:n}=function({configuration:e}){const t=So("");return ul((()=>Co(e)),(async r=>{var n;if(!r)return;const a=await(async({url:e,content:t},r)=>{if(e&&!t)try{const t=await Pke(`fetch(${e})`,(async()=>await uL(e,r)));return console.info("size:",Math.round(t.length/1024),"kB"),t}catch(e){console.error("Failed to fetch OpenAPI document from URL:",e)}const n="function"==typeof t?t():t;return"string"==typeof n?n:"object"==typeof n?pL(n):void 0})(r,null==(n=Co(e))?void 0:n.proxyUrl);"string"==typeof a&&(t.value=a.trim())}),{immediate:!0,deep:!0}),{originalDocument:t}}({configuration:r}),a=hc((()=>Co(e||n))),o=So(""),i=hc((()=>Co(t||s))),s=So({openapi:"3.1.0",info:{title:"",version:""},paths:{}});ul((()=>Co(a)),(async e=>{if(!e)return;const r=_f(e);if(void 0===r)return void console.error("Failed to parse the OpenAPI document:",e);if(o.value="object"==typeof r&&(r.openapi||r.swagger)||"",t)return;const n=o.value.startsWith("3.1")?r:Pke("upgrade",(()=>{const{specification:e}=Bf(r);return e})),a=await Pke("dereference",(async()=>{const{schema:e,errors:t}=await $f(n);return(null==t?void 0:t.length)&&console.warn("Please open an issue on https://github.com/scalar/scalar\n","Scalar OpenAPI Parser Warning:\n",t),void 0===e&&console.error("Failed to dereference the OpenAPI document",t),e}));s.value=a}),{immediate:!0});const l=bbe({useLocalStorage:!1,...Co(r)??zt.parse({})}),c=Sye(l);return{originalDocument:a,originalOpenApiVersion:o,dereferencedDocument:i,workspaceStore:l,activeEntitiesStore:c}}function IPe(e){const t=[];return function e(r){r.forEach((r=>{!function(e,t){if("operation"in e){const r=function(e){var t,r;try{const n=null==(r=null==(t=null==e?void 0:e.requestBody)?void 0:t.content)?void 0:r["application/json"];if(!n)throw new Error("Body not found");return function(e){var t;const r=["Body"],n=null==(t=null==e?void 0:e.schema)?void 0:t.properties;return n&&Object.keys(n).forEach((t=>{if(!e.schema)return;r.push(function(e,t){var r;let n=e;return n+=(null==(r=t.required)?void 0:r.includes(e))?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}(t,e.schema));const a=n[t];"object"===a.type&&a.properties&&a.properties&&Object.keys(a.properties).forEach((e=>{var t,n;r.push(`${e} ${null==(n=null==(t=a.properties)?void 0:t[e])?void 0:n.type}`)}))})),r}(n)}catch(e){return!1}}(e.operation)||function(e){const t={path:[],query:[],header:[],cookie:[],body:[],formData:[]},r=e.parameters??[];return r&&r.forEach((e=>{(e=>"object"==typeof e&&null!==e&&!("$ref"in e&&"string"==typeof e.$ref))(e)&&("object"==typeof e&&null!==e&&"$ref"in e||("path"===e.in?t.path.push(e):"query"===e.in?t.query.push(e):"header"===e.in?t.header.push(e):"cookie"===e.in?t.cookie.push(e):"body"===e.in?t.body.push(e):"formData"===e.in&&t.formData.push(e)))})),t}(e.operation),n="boolean"!=typeof r?r:null;t.push({type:"operation",title:e.title,href:`#${e.id}`,id:e.operation.operationId,description:e.operation.description||"",method:e.method,path:e.path,body:n||"",entry:e})}else if("webhook"in e)t.push({type:"webhook",title:e.title,href:`#${e.id}`,description:"Webhook",method:e.method,body:e.webhook.description||"",entry:e});else if("schema"in e){const r="description"in e.schema&&"string"==typeof e.schema.description?e.schema.description:"";t.push({type:"model",title:e.title,href:`#${e.id}`,description:"Model",body:r,entry:e})}else"tag"in e?t.push({title:e.title,href:`#${e.id}`,description:e.tag.description||"",type:"tag",body:"",entry:e}):"isGroup"in e?t.push({title:e.title,href:`#${e.id}`,description:"Tag Group",type:"tag",body:"",entry:e}):"isWebhooks"in e?t.push({type:"heading",title:"Webhooks",href:`#${e.id}`,description:"Heading",body:"",entry:e}):"Models"!==e.title?e.title&&t.push({type:"heading",title:e.title??"",description:"Description",href:`#${e.id}`,body:"",entry:e}):t.push({type:"heading",title:"Models",href:`#${e.id}`,description:"Heading",body:"",entry:e})}(r,t),"children"in r&&r.children&&e(r.children)}))}(e),t}const LPe={class:"sr-only"},jPe={class:"inline-flex items-center gap-1"},BPe={class:"sr-only"},UPe=Aye(Li({__name:"SearchModal",props:{modalState:{},hideModels:{type:Boolean}},setup(e){const t=e,r=gX(),n=`${r}-search-result`,a=`${r}-search-instructions`,o=e=>`${r}${e}`,{items:i}=Dke(),{resetSearch:s,selectedIndex:l,selectedSearchResult:c,searchResultsWithPlaceholderResults:u,query:d}=function(e){const t=new ufe([],{keys:[{name:"title",weight:.7},{name:"description",weight:.3},{name:"body",weight:.2},{name:"id",weight:.6},{name:"path",weight:.5},{name:"tag",weight:.4},{name:"method",weight:.3}],threshold:.3,distance:100,includeScore:!0,includeMatches:!0,minMatchCharLength:2,ignoreLocation:!0,useExtendedSearch:!0,findAllMatches:!0}),r=So();ul(e,(()=>{const{entries:r}=Co(e),n=IPe(r);t.setCollection(n)}),{immediate:!0});const n=So("");function a(){n.value="",r.value=void 0,o.value=[]}ul(n,(e=>{e.length?i():a()}));const o=So([]),i=()=>{r.value=0,o.value=t.search(n.value,{limit:25})},s=hc((()=>0!==n.value.length?o.value:t._docs.slice(0,25).map(((e,t)=>({item:e,refIndex:t}))))),l=hc((()=>"number"==typeof r.value?s.value[r.value]:void 0));return{resetSearch:a,selectedIndex:r,selectedSearchResult:l,searchResultsWithPlaceholderResults:s,query:n}}(i),p={heading:Kz,model:FF,operation:Hz,tag:jz,webhook:Hz},h={heading:"Heading",operation:"Operation",tag:"Tag",model:"Model",webhook:"Webhook"},f=So(null);ul((()=>t.modalState.open),(e=>{e&&s()}));const{setCollapsedSidebarItem:m}=Dke(),g=/#(tag\/[^/]*)/;function v(e){let r="models";const n=e.item.href.match(g);(null==n?void 0:n.length)&&n.length>1&&(r=n[1]),m(r,!0);const a=e.item.href.replace("#","");if(document.getElementById(a))Cke(a),t.modalState.hide();else{const e=LOe.on((r=>{r.loaded===a&&(Cke(a),e(),t.modalState.hide())}))}}ul(l,(e=>{var t;if("number"!=typeof e)return;const r=u.value[e],n=o(null==r?void 0:r.item.href);null==(t=document.getElementById(n))||t.scrollIntoView({behavior:"smooth",block:"nearest"})}));const b=e=>{const t="up"===e?-1:1,r=u.value.length;if("number"==typeof l.value){const e=(l.value+t+r)%r;l.value=e}else l.value=-1===t?r-1:0};function y(e){const t=new URL(window.location.href);return t.hash=e,t.toString()}function O(){if(!_L(l.value))return;const e=u.value;0!==e.length&&v(e[l.value])}return(e,t)=>(Pl(),Nl(Ao(Y8),{"aria-label":"Reference Search",state:e.modalState,variant:"search"},{default:ci((()=>[Ul("div",{ref_key:"searchModalRef",ref:f,class:"ref-search-container",role:"search"},[Fl(Ao(p8),{modelValue:Ao(d),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(d)?d.value=e:null),"aria-activedescendant":Ao(c)?o(Ao(c).item.href):void 0,"aria-autocomplete":"list","aria-controls":n,"aria-describedby":a,role:"combobox",onBlur:t[1]||(t[1]=e=>l.value=void 0),onKeydown:[t[2]||(t[2]=Eu(Su((e=>b("down")),["stop","prevent"]),["down"])),Eu(Su(O,["stop","prevent"]),["enter"]),t[3]||(t[3]=Eu(Su((e=>b("up")),["stop","prevent"]),["up"]))]},null,8,["modelValue","aria-activedescendant","onKeydown"])],512),Fl(Ao(h8),{id:n,"aria-label":"Reference Search Results",class:"ref-search-results custom-scroll",noResults:!Ao(u).length},{query:ci((()=>[ql(Gn(Ao(d)),1)])),default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Ao(u),((e,r)=>(Pl(),Nl(Ao(w8),{id:o(e.item.href),key:e.refIndex,href:y(e.item.href),icon:p[e.item.type],selected:Ao(l)===r,onClick:t=>v(e),onFocus:e=>l.value=r},hs({default:ci((()=>[Ul("span",{class:zn({deprecated:"operation"in e.item.entry&&Ao(wL)(e.item.entry.operation)})},[Ul("span",LPe,[ql(Gn(h[e.item.type])+": ",1),"operation"in e.item.entry&&Ao(wL)(e.item.entry.operation)?(Pl(),Rl(Sl,{key:0},[ql(" (Deprecated) ")],64)):Vl("",!0)]),ql(" "+Gn(e.item.title)+" ",1),t[4]||(t[4]=Ul("span",{class:"sr-only"},",",-1))],2)])),_:2},["webhook"!==e.item.type&&(e.item.method||e.item.path)&&e.item.path!==e.item.title?{name:"description",fn:ci((()=>[Ul("span",jPe,["operation"===e.item.type?(Pl(),Rl(Sl,{key:0},[Fl(Nke,{"aria-hidden":"true",method:e.item.method??"get"},null,8,["method"]),Ul("span",BPe," HTTP Method: "+Gn(e.item.method??"get"),1)],64)):Vl("",!0),t[5]||(t[5]=Ul("span",{class:"sr-only"},"Path: ",-1)),ql(" "+Gn(e.item.path),1)])])),key:"0"}:e.item.description?{name:"description",fn:ci((()=>[t[6]||(t[6]=Ul("span",{class:"sr-only"},"Description: ",-1)),ql(" "+Gn(e.item.description),1)])),key:"1"}:void 0]),1032,["id","href","icon","selected","onClick","onFocus"])))),128))])),_:1},8,["noResults"]),Ul("div",{id:a,class:"ref-search-meta"},t[7]||(t[7]=[Ul("span",{"aria-hidden":"true",class:"contents"},[Ul("span",null,"↑↓ Navigate"),Ul("span",null,"⏎ Select")],-1),Ul("span",{class:"sr-only"}," Press up arrow / down arrow to navigate, enter to select, type to filter results ",-1)]))])),_:1},8,["state"]))}}),[["__scopeId","data-v-d38e7ee7"]]),FPe=Li({__name:"SearchButton",props:{searchHotKey:{default:"k"},hideModels:{type:Boolean,default:!1}},setup(e){const t=So(),r=X8(),{client:n}=ePe(),a=t=>{var a;(ICe()?t.metaKey:t.ctrlKey)&&t.key===e.searchHotKey&&!(null==(a=n.value)?void 0:a.modalState.open)&&(t.preventDefault(),t.stopPropagation(),r.open?r.hide():r.show())};function o(){r.show()}return ul((()=>r.open),((e,r)=>{!e&&r&&Ko((()=>{var e;null==(e=t.value)||e.$el.focus()}))})),Yi((()=>window.addEventListener("keydown",a))),es((()=>window.removeEventListener("keydown",a))),(e,n)=>(Pl(),Rl(Sl,null,[Fl(Ao(C8),{ref_key:"button",ref:t,class:zn(["w-full",e.$attrs.class]),onClick:o},{shortcut:ci((()=>[Ao(ICe)()?(Pl(),Rl(Sl,{key:0},[n[0]||(n[0]=Ul("span",{class:"sr-only"},"Command",-1)),n[1]||(n[1]=Ul("span",{"aria-hidden":"true"},"⌘",-1))],64)):(Pl(),Rl(Sl,{key:1},[n[2]||(n[2]=Ul("span",{class:"sr-only"},"CTRL",-1)),n[3]||(n[3]=Ul("span",{"aria-hidden":"true"},"⌃",-1))],64)),ql(" "+Gn(e.searchHotKey),1)])),default:ci((()=>[n[4]||(n[4]=Ul("span",{class:"sr-only"},"Open Search",-1)),n[5]||(n[5]=Ul("span",{"aria-hidden":"true",class:"sidebar-search-placeholder"}," Search ",-1))])),_:1,__:[4,5]},8,["class"]),Fl(UPe,{modalState:Ao(r),hideModels:e.hideModels},null,8,["modalState","hideModels"])],64))}}),QPe=["innerHTML"],zPe={class:"references-header"},qPe=["aria-label"],HPe={class:"references-navigation-list"},VPe={key:0},ZPe={key:1,class:"scalar-api-references-standalone-search"},WPe={key:1},XPe={class:"references-editor"},GPe={class:"references-editor-textarea"},YPe=["aria-label"],KPe={key:0,class:"w-64 *:!p-0 empty:hidden"},JPe={key:0,class:"references-footer"},e$e=Li({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},dereferencedDocument:{},originalDocument:{},isDark:{type:Boolean},rawSpec:{},store:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=hc((()=>zt.parse(e.configuration))),{initializeToasts:r,toast:n}=cH();r((e=>n(e)));const{originalDocument:a,originalOpenApiVersion:o,dereferencedDocument:i,workspaceStore:s,activeEntitiesStore:l}=NPe({configuration:t,dereferencedDocument:e.dereferencedDocument,originalDocument:e.originalDocument});js(PSe,o),js(ybe,s),js(_ye,l);const c=rj("(min-width: 1150px)"),u=So("100dvh"),d=So(null);!function(e,t,r={}){const{window:n=GL,...a}=r;let o;const i=tj((()=>n&&"ResizeObserver"in n)),s=()=>{o&&(o.disconnect(),o=void 0)},l=ul(hc((()=>{const t=BL(e);return Array.isArray(t)?t.map((e=>KL(e))):[KL(t)]})),(e=>{if(s(),i.value&&n){o=new ResizeObserver(t);for(const t of e)t&&o.observe(t,a)}}),{immediate:!0,flush:"post"});jL((()=>{s(),l()}))}(d,(e=>{u.value=e[0]?e[0].contentRect.height+"px":"100dvh"}));const p=hc(ube),h=KOe(t),{isSidebarOpen:f,setCollapsedSidebarItem:m,scrollToOperation:g,items:v}=Dke(i,{...h,config:t}),{getReferenceId:b,getPathRoutingId:y,getSectionId:O,getTagId:w,hash:x,isIntersectionEnabled:k,updateHash:S,replaceUrlState:_}=h;if(t.value.redirect&&"undefined"!=typeof window){const e=t.value.redirect((t.value.pathRouting?window.location.pathname:"")+window.location.hash);e&&history.replaceState({},"",e)}Gi((()=>{S(),t6()}));const E=async e=>{var t;k.value=!1,S(),e?g(e):null==(t=d.value)||t.scrollTo(0,0),await Tye(100),k.value=!0},T=So(0);Yi((()=>{var e,r,n;history.scrollRestoration="manual";const a=null==(r=null==(e=d.value)?void 0:e.parentElement)?void 0:r.getBoundingClientRect(),o=null==(n=d.value)?void 0:n.getBoundingClientRect();if(a&&o){const e=o.top-a.top;T.value=e<2?0:e}window.onhashchange=()=>{E(b())},window.onpopstate=()=>t.value.pathRouting&&E(y(window.location.pathname)),window.addEventListener("scroll",C,{passive:!0})}));const A=hc((()=>c.value||!t.value.isEditable)),C=WL((()=>{window.scrollY<50&&jOe.value&&_("")})),P=So(!1);ul(i,(e=>{var t;if(x.value){const e=O(x.value);e&&m(e,!0)}else{const r=null==(t=e.tags)?void 0:t[0];r&&m(w(r),!0)}P.value=!0}));const $=hc((()=>{var e;return{breadcrumb:(null==(e=v.value)?void 0:e.titles.get(x.value))??""}}));Yi((()=>TSe.on((({filename:t,format:r})=>{ASe(Co(a)||Co(e.rawSpec)||"",t,r)})))),ts((()=>{window.removeEventListener("scroll",C),TSe.reset()})),js(ij,(()=>ji())),js(nge,"modal"),js(qOe,t),js(XSe,WSe({plugins:t.value.plugins}));const D=hc((()=>`<style>\n ${((e,t)=>{var r;const{fonts:n=!0,layer:a="scalar-theme"}=t??{},o=[(null==(r=pbe[e||"default"])?void 0:r.theme)??cbe,n?'/* Inter (--scalar-font) */\n/* cyrillic-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-cyrillic-ext.woff2) format("woff2");\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-cyrillic.woff2) format("woff2");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-greek-ext.woff2) format("woff2");\n unicode-range: U+1F00-1FFF;\n}\n/* greek */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-greek.woff2) format("woff2");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-vietnamese.woff2) format("woff2");\n unicode-range:\n U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,\n U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,\n U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-latin-ext.woff2) format("woff2");\n unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,\n U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-latin.woff2) format("woff2");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* JetBrains Mono (--scalar-font-code) */\n/* cyrillic-ext */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-cyrillic-ext.woff2) format("woff2");\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-cyrillic.woff2) format("woff2");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-greek.woff2) format("woff2");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-vietnamese.woff2) format("woff2");\n unicode-range:\n U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,\n U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,\n U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-latin-ext.woff2) format("woff2");\n unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,\n U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-latin.woff2) format("woff2");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n':""].join("");return a?`@layer ${a} {\n${o}}`:o})(t.value.theme,{fonts:t.value.withDefaultFonts})}</style>`)),{mediaQueries:M}=Gbe();return ul(M.lg,((e,t)=>{t&&!e&&(f.value=!1)})),ul(x,((e,t)=>{e&&e!==t&&(f.value=!1)})),(e,r)=>{var n,a,o,s,l;return Pl(),Rl(Sl,null,[Ul("div",{innerHTML:D.value},null,8,QPe),Ul("div",{ref_key:"documentEl",ref:d,class:zn(["scalar-app scalar-api-reference references-layout",[{"scalar-api-references-standalone-mobile":t.value.showSidebar??!0,"scalar-scrollbars-obtrusive":p.value,"references-editable":t.value.isEditable,"references-sidebar":t.value.showSidebar,"references-sidebar-mobile-open":Ao(f),"references-classic":"classic"===t.value.layout},e.$attrs.class]]),style:jn({"--scalar-y-offset":`var(--scalar-custom-header-height, ${T.value}px)`})},[Ul("div",zPe,["modern"===t.value.layout&&(t.value.showSidebar??1)?(Pl(),Nl(RPe,{key:0,breadcrumb:$.value.breadcrumb},null,8,["breadcrumb"])):Vl("",!0),fs(e.$slots,"header",qn(Ql($.value)),void 0,!0)]),t.value.showSidebar?(Pl(),Rl("aside",{key:0,"aria-label":`Sidebar for ${null==(a=null==(n=Ao(i))?void 0:n.info)?void 0:a.title}`,class:"references-navigation t-doc__sidebar"},[Ul("div",HPe,[Fl(Ao(PX),null,{default:ci((()=>{var n,a;return[Fl(Ao(Wke),{title:(null==(a=null==(n=Ao(i))?void 0:n.info)?void 0:a.title)??"The OpenAPI Schema"},{"sidebar-start":ci((()=>{var r,n;return[e.$slots["document-selector"]?(Pl(),Rl("div",VPe,[fs(e.$slots,"document-selector",{},void 0,!0)])):Vl("",!0),t.value.hideSearch?Vl("",!0):(Pl(),Rl("div",ZPe,[Fl(Ao(FPe),{searchHotKey:null==(r=t.value)?void 0:r.searchHotKey,hideModels:null==(n=t.value)?void 0:n.hideModels},null,8,["searchHotKey","hideModels"])])),fs(e.$slots,"sidebar-start",qn(Ql($.value)),void 0,!0)]})),"sidebar-end":ci((()=>[fs(e.$slots,"sidebar-end",qn(Ql($.value)),(()=>[Fl(Ao(S8),{class:"darklight-reference"},{toggle:ci((()=>[t.value.hideDarkModeToggle?(Pl(),Rl("span",WPe)):(Pl(),Nl(Ao(yH),{key:0,modelValue:e.isDark,"onUpdate:modelValue":r[0]||(r[0]=t=>e.$emit("toggleDarkMode"))},null,8,["modelValue"]))])),default:ci((()=>[t.value.hideClientButton?Vl("",!0):(Pl(),Nl(Ao(o6),{key:0,buttonSource:"sidebar",integration:t.value._integration,isDevelopment:!1,url:t.value.url},null,8,["integration","url"]))])),_:1})]),!0)])),_:3},8,["title"])]})),_:3})])],8,qPe)):Vl("",!0),ui(Ul("div",XPe,[Ul("div",GPe,[fs(e.$slots,"editor",qn(Ql($.value)),void 0,!0)])],512),[[Fc,t.value.isEditable]]),A.value?(Pl(),Rl(Sl,{key:1},[Ul("main",{"aria-label":`Open API Documentation for ${null==(s=null==(o=Ao(i))?void 0:o.info)?void 0:s.title}`,class:"references-rendered"},[Fl(Ao(kPe),{document:Ao(i),config:t.value,store:e.store},hs({start:ci((()=>[fs(e.$slots,"content-start",qn(Ql($.value)),(()=>["classic"===t.value.layout?(Pl(),Nl(Dye,{key:0},{"dark-mode-toggle":ci((()=>[t.value.hideDarkModeToggle?Vl("",!0):(Pl(),Nl(Ao(vH),{key:0,class:"text-c-2 hover:text-c-1",mode:e.isDark?"dark":"light",style:{transform:"scale(1.4)"},variant:"icon",onClick:r[1]||(r[1]=t=>e.$emit("toggleDarkMode"))},null,8,["mode"]))])),default:ci((()=>{var r;return[e.$slots["document-selector"]?(Pl(),Rl("div",KPe,[fs(e.$slots,"document-selector",{},void 0,!0)])):Vl("",!0),t.value.hideSearch?Vl("",!0):(Pl(),Nl(Ao(FPe),{key:1,class:"t-doc__sidebar max-w-64",searchHotKey:t.value.searchHotKey,hideModels:null==(r=t.value)?void 0:r.hideModels},null,8,["searchHotKey","hideModels"]))]})),_:3})):Vl("",!0)]),!0)])),end:ci((()=>[fs(e.$slots,"content-end",qn(Ql($.value)),void 0,!0)])),_:2},[(null==(l=t.value)?void 0:l.isEditable)?{name:"empty-state",fn:ci((()=>{var n;return[Fl(PPe,{theme:(null==(n=t.value)?void 0:n.theme)||"default",onChangeTheme:r[2]||(r[2]=t=>e.$emit("changeTheme",t)),onLinkSwaggerFile:r[3]||(r[3]=t=>e.$emit("linkSwaggerFile")),onLoadSwaggerFile:r[4]||(r[4]=t=>e.$emit("loadSwaggerFile")),onUpdateContent:r[5]||(r[5]=t=>e.$emit("updateContent",t))},null,8,["theme"])]})),key:"0"}:void 0]),1032,["document","config","store"])],8,YPe),e.$slots.footer?(Pl(),Rl("div",JPe,[fs(e.$slots,"footer",qn(Ql($.value)),void 0,!0)])):Vl("",!0)],64)):Vl("",!0),Fl(Ao(tPe),{configuration:t.value,dereferencedDocument:Ao(i)},null,8,["configuration","dereferencedDocument"])],6),Fl(Ao(uH))],64)}}}),t$e=Aye(e$e,[["__scopeId","data-v-c369ccec"]]),r$e={key:0,class:"document-selector -mb-1 p-3 pb-0"},n$e={class:"group/dropdown-label hover:bg-b-2 text-c-2 flex h-8 w-full cursor-pointer items-center rounded border px-2 py-1.75",type:"button"},a$e={class:"text-c-1 overflow-hidden text-base text-ellipsis"},o$e=Li({__name:"DocumentSelector",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=hc((()=>{var t;return e.options&&(null==(t=e.options)?void 0:t.length)>1})),a=hc((()=>{var t;return(null==(t=e.options)?void 0:t.map(((e,t)=>({id:String(t),label:e.title||e.slug||`API #${t+1}`}))))||[]})),o=hc({get:()=>a.value.find((({id:t})=>t===String(e.modelValue))),set:e=>r("update:modelValue",Number(e.id))});return(e,t)=>n.value?(Pl(),Rl("div",r$e,[Fl(Ao(n8),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:a.value,resize:""},{default:ci((()=>{var e;return[Ul("button",n$e,[Fl(Ao(lQ),{class:"mr-1 size-4 text-current"}),Ul("span",a$e,Gn((null==(e=o.value)?void 0:e.label)||"Select API"),1)])]})),_:1},8,["modelValue","options"])])):Vl("",!0)}}),i$e=new KA,s$e=({configuration:e,initialIndex:t,isIntersectionEnabled:r,hash:n,hashPrefix:a})=>{const o=hc((()=>(e=>e?(Array.isArray(e)?e:[e]).flatMap((e=>{if(qt(e)){const{sources:t,...r}=e;return(null==t?void 0:t.map((e=>({...r,...e}))))??[]}return[e]})).map(((e,t)=>e&&((e,t=0)=>{const r={...e,...e.spec??{}};if((null==r?void 0:r.url)||(null==r?void 0:r.content))return i$e.reset(),r.title?{...r,slug:r.slug||i$e.slug(r.title),title:r.title}:r.slug?{...r,title:r.slug}:{...r,slug:`api-${t+1}`,title:`API #${t+1}`}})(e,t))).filter(_L):[])(e.value))),i=So((()=>{if("undefined"==typeof window)return"number"==typeof t?t:0;const e=new URL(window.location.href).searchParams.get("api");if(e){const t=o.value.findIndex((t=>t.slug===e));if(-1!==t)return t;const r=Number.parseInt(e,10);if(!isNaN(r)&&r>=0&&r<o.value.length)return r}const r=o.value.findIndex((e=>"default"in e&&!0===e.default));return-1!==r?r:"number"==typeof t?t:0})()),s=hc((()=>{var t,r;return e.value&&qt(e.value)?{...e.value,...null==(r=null==(t=e.value)?void 0:t.sources)?void 0:r[i.value],...o.value[i.value]}:{...[e.value].flat()[i.value]??{},...o.value[i.value]}}));return ul(i,(e=>{var t,i,l;if("undefined"==typeof window)return;if(1===o.value.length)return;const c=new URL(window.location.href),u=o.value[e];s.value.pathRouting&&(c.pathname=(null==(t=s.value.pathRouting)?void 0:t.basePath)??"");const d=(null==u?void 0:u.slug)??e.toString();c.searchParams.set("api",d),c.hash="",window.history.replaceState({},"",c.toString()),n.value="",a.value="",r.value=!1,"undefined"!=typeof window&&window.scrollTo({top:0,behavior:"instant"}),null==(l=(i=s.value).onDocumentSelect)||l.call(i)}),{flush:"sync"}),{selectedConfiguration:s,availableDocuments:o,selectedDocumentIndex:i,isIntersectionEnabled:r,hash:n,hashPrefix:a}},l$e=e=>{if(e)return"function"==typeof e?l$e(e()):"string"==typeof e?(e=>{if("string"!=typeof e)return e;const t=nL.parseSafe(e,null);if(t)return t;if(e.length>0&&["{","["].includes(e[0]??""))throw Error("Invalid JSON or YAML");return rL.parseSafe(e,(e=>{throw Error(e)}))})(e):e||void 0},c$e=Li({__name:"ApiReferenceWorkspace",props:{configuration:{},store:{}},setup(e){const t=e,{availableDocuments:r,selectedConfiguration:n,selectedDocumentIndex:a,isIntersectionEnabled:o,hash:i,hashPrefix:s}=s$e({configuration:Io(t,"configuration"),isIntersectionEnabled:So(!1),hash:So(""),hashPrefix:So("")}),l=(e,t)=>fetch(lL(n.value.proxyUrl,e.toString()),t);js(WOe,{isIntersectionEnabled:o,hash:i,hashPrefix:s});const c=Ui("root"),u=t.store;Gi((()=>{const e=GI().getItem(ZI);eke(e)&&!u.workspace["x-scalar-default-client"]&&u.update("x-scalar-default-client",e)}));const d=async e=>{var t;const r=l$e(e.content),a=(({name:e,url:t,document:r}={})=>{if(e)return e;if(t)return t;if(null==r?void 0:r.info){const e=r.info;if(e.title)return e.title}return"default"})({name:e.slug||e.title,url:e.url,document:r});if(!u.workspace.documents[a])return r?await u.addDocument({name:a,document:r}):e.url?await u.addDocument({name:e.slug??"default",url:tL(e.url,{basePath:null==(t=n.value.pathRouting)?void 0:t.basePath}),fetch:l}):void 0;if(r){o.value=!1;const e=wm(r);u.replaceDocument(a,e),u.update("x-scalar-active-document",a),setTimeout((()=>{o.value=!0}),300)}};ul((()=>n.value.url),(e=>e&&d(n.value)),{immediate:!0}),ul((()=>n.value.content),(e=>e&&d(n.value)),{immediate:!0,deep:!0}),rAe(c,"scalar-update-dark-mode",(e=>{u.update("x-scalar-dark-mode",e.detail.value)})),rAe(c,"scalar-update-active-document",(e=>{u.update("x-scalar-active-document",e.detail.value)})),rAe(c,"scalar-update-selected-client",(e=>{u.update("x-scalar-default-client",e.detail),GI().setItem(ZI,e.detail)})),ul((()=>n.value.defaultHttpClient),(e=>{if(e){const{targetKey:t,clientKey:r}=e,n=`${t}/${r}`;eke(n)&&u.update("x-scalar-default-client",n)}}),{immediate:!0});const{toggleColorMode:p,isDarkMode:h}=LL({initialColorMode:n.value.darkMode?"dark":void 0,overrideColorMode:n.value.forceDarkModeState});return ul((()=>n.value.darkMode),(e=>u.update("x-scalar-dark-mode",!!e))),ul((()=>h.value),(e=>u.update("x-scalar-dark-mode",e)),{immediate:!0}),ul((()=>a.value),(e=>{var t;return u.update("x-scalar-active-document",null==(t=r.value[e])?void 0:t.slug)}),{immediate:!0}),n.value.metaData&&function(e){const{title:t,titleTemplate:r,...n}=e;Bu({title:t,titleTemplate:r,_flatMeta:n},{transform(e){const t=pr({...e._flatMeta});return delete e._flatMeta,{...e,meta:t}}})}(n.value.metaData),function(e=null,t={}){const{baseUrl:r="",rel:n="icon",document:a=YL}=t,o=function(...e){if(1!==e.length)return Io(...e);const t=e[0];return"function"==typeof t?ho(Mo((()=>({get:t,set:zL})))):So(t)}(e);ul(o,((e,t)=>{"string"==typeof e&&e!==t&&(e=>{const t=null==a?void 0:a.head.querySelectorAll(`link[rel*="${n}"]`);if(t&&0!==t.length)null==t||t.forEach((t=>t.href=`${r}${e}`));else{const t=null==a?void 0:a.createElement("link");t&&(t.rel=n,t.href=`${r}${e}`,t.type=`image/${e.split(".").pop()}`,null==a||a.head.append(t))}})(e)}),{immediate:!0})}(hc((()=>n.value.favicon))),(e,t)=>{var o;return Pl(),Rl("div",{ref_key:"root",ref:c},[(null==(o=Ao(n))?void 0:o.customCss)?(Pl(),Nl(cs("style"),{key:0},{default:ci((()=>[ql(Gn(Ao(n).customCss),1)])),_:1})):Vl("",!0),Fl(t$e,{configuration:Ao(n),isDark:!!Ao(u).workspace["x-scalar-dark-mode"],store:Ao(u),onToggleDarkMode:t[1]||(t[1]=()=>Ao(p)()),onUpdateContent:t[2]||(t[2]=t=>e.$emit("updateContent",t))},{footer:ci((()=>[fs(e.$slots,"footer")])),"content-end":ci((()=>[fs(e.$slots,"footer")])),"document-selector":ci((()=>[Fl(Ao(o$e),{modelValue:Ao(a),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(a)?a.value=e:null),options:Ao(r)},null,8,["modelValue","options"])])),"sidebar-start":ci((()=>[fs(e.$slots,"sidebar-start")])),_:3},8,["configuration","isDark","store"])],512)}}}),u$e=Li({__name:"ApiReference",props:{configuration:{}},setup(e){const t=(e=>{const t={},r={},n={},a={},o=uo({...null==e?void 0:e.meta,documents:{},get activeDocument(){const e=o[gC]??Object.keys(o.documents)[0]??"";return o.documents[e]}});function i(){return o[gC]??Object.keys(o.documents)[0]??""}async function s(e){const{name:i,meta:s}=e,l=await async function(e){return"url"in e?qI({fetch:e.fetch}).exec(e.url):{ok:!0,data:e.document}}(e);return l.ok?Om(l.data)?void await async function(e){const{name:i,meta:s}=e,l=fR(kI,Bf(e.document).specification);t[i]=wm({...l,...s}),r[i]=wm({...l,...s}),n[i]=e.config??{},a[i]=e.overrides??{},void 0===l[dC]&&(l[dC]=uC(l,e.config??{}).entries),void 0===l[dC]&&await hm(e.document,{treeShake:!1,plugins:[qI()]}),o.documents[i]=FI(vm({...l,...s}),e.overrides)}({...e,document:l.data}):(console.error(`Failed to load document '${i}': response data is not a valid object`),void(o.documents[i]={...s,openapi:"3.1.0",info:{title:`Document '${i}' could not be loaded`,version:"unknown"}})):(console.error(`Failed to fetch document '${i}': request was not successful`),void(o.documents[i]={...s,openapi:"3.1.0",info:{title:`Document '${i}' could not be loaded`,version:"unknown"}}))}const l=new Set;return{get workspace(){return o},update(e,t){if("__proto__"===e||"constructor"===e||"prototype"===e)throw new Error("Invalid key: cannot modify prototype");Object.assign(o,{[e]:t})},updateDocument(e,t,r){const n=o.documents["active"===e?i():e];if(!n)throw"Please select a valid document";Object.assign(n,{[t]:r})},replaceDocument(e,t){const r=o.documents[e];if(!r)return console.error(`Document '${e}' does not exist in the workspace.`);const n=fR(kI,Bf(t).specification);Mm(r,n)},resolve:async e=>{const t=o.activeDocument,r=(n=t,e.reduce(((e,t)=>{if(null!=e)return e[t]}),n));var n;if(Om(r))return hm(r,{root:t,treeShake:!1,plugins:[qI()],urlMap:!1,hooks:{onResolveStart:e=>{e.$status="loading"},onResolveError:e=>{e.$status="error"}},visitedNodes:l});console.error(`Invalid path provided for resolution. Path: [${e.join(", ")}]. Found value of type: ${typeof r}. Expected an object.`)},addDocument:s,get config(){return Rm(Rm(HI,{}),n[i()]??{})},exportDocument:(e,t)=>{const n=r[e];if(n)return"json"===t?JSON.stringify(n):gf.stringify(n)},saveDocument:function(e){const t=r[e],n=o.documents[e];if(!n)return;const a=ym(n);return t&&a?Mm(t,a):void 0},revertDocumentChanges(e){const t=o.documents[e];if(!t)return;const n=r[e],a=ym(t);n&&a&&Mm(a,n)},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace:()=>JSON.stringify({documents:{...Object.fromEntries(Object.entries(o.documents).map((([e,t])=>[e,FI(ym(t),a[e])])))},meta:{},documentConfigs:n,originalDocuments:t,intermediateDocuments:r,overrides:a}),loadWorkspace(e){const i=fR(BI,JSON.parse(e));xm(o.documents,Object.fromEntries(Object.entries(i.documents).map((([e,t])=>[e,vm(t)])))),xm(t,i.originalDocuments),xm(r,i.intermediateDocuments),xm(n,i.documentConfigs),xm(a,i.overrides),xm(o,i.meta)},importWorkspaceFromSpecification:e=>{const{documents:t,overrides:r,info:n,workspace:a,...i}=e;return xm(o,i),Promise.all(Object.entries(t??{}).map((([e,t])=>s({url:t.$ref,name:e,overrides:null==r?void 0:r[e]}))))},rebaseDocument:(e,n,i)=>{const s=fR(kI,Bf(n).specification),l=t[e],c=r[e],u=o.documents[e]?ym(o.documents[e]):void 0;if(!l||!c||!u)return console.error("[ERROR]: Specified document is missing or internal corrupted workspace state");const d=km(l,s),p=km(l,c),h=$m(d,p);if(void 0===i)return h.conflicts;const f=h.diffs.concat(i),m=_m(wm(l),f);r[e]=m,t[e]=s;const g=km(c,m),v=km(c,u),b=$m(g,v),y=b.diffs.concat(b.conflicts.flatMap((e=>e[0]))),O=_m(wm(m),y);o.documents[e]=FI(vm({...O}),a[e])}}})();return"undefined"!=typeof window&&(window.dataDumpWorkspace=()=>t),(e,r)=>(Pl(),Nl(c$e,{store:Ao(t),configuration:e.configuration},null,8,["store","configuration"]))}}),d$e=e=>e.getElementById("api-reference"),p$e=(e,t)=>{const r="scalar-refs",n=uo({configuration:t??e??{}});let a=$u((()=>fc(u$e,n)));if(a.use(Iu()),a.config.idPrefix=r,t){const t="string"==typeof e?document.querySelector(e):e;t?a.mount(t):console.error("Could not find a mount point for API References:",e)}document.addEventListener("scalar:reload-references",(()=>{if(console.warn("scalar:reload-references event has been deprecated, please use the scalarInstance.app.mount method instead."),!n.configuration)return;const t="string"==typeof e?document.querySelector(e):e;t&&(t&&!document.body.contains(t)&&document.body.appendChild(t),a.unmount(),a=$u((()=>fc(u$e,n))),a.use(Iu()),a.config.idPrefix=r,a.mount(t))}),!1);const o=()=>{delete n.configuration,a.unmount()};return document.addEventListener("scalar:destroy-references",(()=>{console.warn("scalar:destroy-references event has been deprecated, please use scalarInstance.destroy instead."),o()}),!1),document.addEventListener("scalar:update-references-config",(e=>{console.warn("scalar:update-references-config event has been deprecated, please use scalarInstance.updateConfiguration instead."),"detail"in e&&Object.assign(n,e.detail)}),!1),{app:a,getConfiguration:()=>n.configuration??{},updateConfiguration:e=>{n.configuration=e},destroy:o}};console.info("@scalar/api-reference@1.34.1"),"object"==typeof window&&(window.Scalar={createApiReference:p$e}),function(e,t){var r,n;const a=e.querySelector("[data-spec]"),o=e.querySelector("[data-spec-url]");(null==t?void 0:t.darkMode)?null==(r=e.body)||r.classList.add("dark-mode"):null==(n=e.body)||n.classList.add("light-mode");const i=((e,t)=>{var r;let n=null;const a=d$e(e);return a?(n=e.createElement("div"),null==(r=null==a?void 0:a.parentNode)||r.insertBefore(n,a)):t&&(n=t),n})(e,a||o);i&&p$e(i,t)}(document,function(e){const t=e.querySelector("[data-spec]"),r=e.querySelector("[data-spec-url]"),n=e.querySelector("#api-reference[data-configuration]"),a=()=>{if(n){const e=n.getAttribute("data-configuration");if(e)return{_integration:"html",...JSON.parse(e.split(""").join('"'))}}return zt.parse({_integration:"html"})},o=()=>{var t,n,o;if(a().url)return a().url;if(null==(t=a().spec)?void 0:t.url)return null==(n=a().spec)?void 0:n.url;const i=d$e(e);if(i){const e=null==(o=i.getAttribute("data-url"))?void 0:o.trim();if(e)return e}if(r){console.warn('[@scalar/api-reference] The [data-spec-url] HTML API is deprecated. Use the new <script id="api-reference" data-url="/scalar.json" /> API instead.');const e=r.getAttribute("data-spec-url");if(e)return e}},i=()=>{var r,n;const a=d$e(e);if(a){const e=null==(r=a.innerHTML)?void 0:r.trim();if(e)return e}if(t){console.warn('[@scalar/api-reference] The [data-spec] HTML API is deprecated. Use the new <script id="api-reference" type="application/json">{"openapi":"3.1.0","info":{"title":"Example"},"paths":{}}<\/script> API instead.');const e=null==(n=t.getAttribute("data-spec"))?void 0:n.trim();if(e)return e}},s=()=>{const t=d$e(e);if(t){const e=t.getAttribute("data-proxy-url");if(e)return e.trim()}};if(r||t||d$e(e)){const e=i()?{content:i()}:{url:o()};return zt.parse({_integration:"html",proxyUrl:s(),...a(),...e})}return zt.parse({_integration:"html"})}(document));const h$e={parse(e){try{return{error:!1,data:JSON.parse(e)}}catch(e){return{error:!0,message:e.message?String(e.message):"Unknown Error"}}}},f$e=["aria-pressed"],m$e={class:"sr-only"},g$e={class:"size-4",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},v$e={"clip-path":"url(#mask)"},b$e=Li({__name:"SidebarToggle",setup(e){const{isSidebarOpen:t,toggleSidebarOpen:r}=Kbe();return(e,n)=>(Pl(),Rl("button",{"aria-pressed":Ao(t),class:"scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",type:"button",onClick:n[0]||(n[0]=(...e)=>Ao(r)&&Ao(r)(...e))},[Ul("span",m$e,Gn(Ao(t)?"Hide":"Show")+" sidebar",1),(Pl(),Rl("svg",g$e,[n[1]||(n[1]=Ul("defs",null,[Ul("clipPath",{id:"mask"},[Ul("path",{"clip-rule":"evenodd",d:"M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"})])],-1)),Ul("g",v$e,[Ul("path",{class:zn(["transition-transform duration-300",Ao(t)?"translate-x-0":"-translate-x-1/2"]),d:"M1 3.2h8v17.5H1z",fill:"currentColor"},null,2)]),n[2]||(n[2]=Ul("path",{d:"M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1))]))],8,f$e))}}),y$e=()=>{const{toast:e}=cH(),t=Eye(),r=Obe(),{activeCollection:n,activeWorkspace:a}=t,{collectionMutators:o}=r,i=t=>e(`[useOpenApiWatcher] Changes to the ${t} were not applied`,"error"),s=e=>{"info"===e.path[0]||"security"===e.path[0]?((e,{activeCollection:t},{collectionMutators:r})=>{if(!t.value)return!1;if("number"!=typeof e.path[e.path.length-1]||"CREATE"!==e.type&&"REMOVE"!==e.type){const n=JAe(tve,e);if(!n)return!1;r.edit(t.value.uid,n.path,n.value)}else{const n=JAe(tve,{...e,path:e.path});if(!n)return!1;const a=[...Pve(t.value,n.pathMinusOne)];"CREATE"===e.type?a.push(n.value):"REMOVE"===e.type&&a.pop(),r.edit(t.value.uid,n.pathMinusOne,a)}return!0})(e,t,r)||i("collection"):"components"===e.path[0]&&"securitySchemes"===e.path[1]?tCe(e,t,r)||i("securitySchemes"):"servers"===e.path[0]?((e,{activeCollection:t},{servers:r,serverMutators:n})=>{if(!t.value)return!1;const[,a,...o]=e.path;if(null!=o&&o.length){const i=t.value.servers[a];if(!i)return!1;const s=r[i],l=JAe(ive,{...e,path:o});if(!s||!l)return!1;const c="REMOVE"===e.type&&"variables"===o[o.length-1]?{}:l.value;n.edit(i,l.path,c)}else if("REMOVE"===e.type){if(!t.value.servers[a])return!1;n.delete(t.value.servers[a],t.value.uid)}else if("CREATE"===e.type){const r=hL(e.value,ive,!1);if(!r)return!1;n.add(r,t.value.uid)}return!0})(e,t,r)||i("servers"):"tags"===e.path[0]?((e,{activeCollection:t},{tags:r,tagMutators:n})=>{if(!t.value)return!1;const[,a,...o]=e.path;if(null!=o&&o.length){const i=t.value.tags[a];if(!i)return!1;const s=r[i],l=JAe(Kge,{...e,path:o});if(!s||!l)return!1;n.edit(i,l.path,l.value)}else if("REMOVE"===e.type){const e=t.value.tags[a];if(!e)return!1;const o=r[e];if(!o)return!1;n.delete(o,t.value.uid)}else if("CREATE"===e.type){const r=hL(e.value,Kge,!1);if(!r)return!1;n.add(r,t.value.uid)}return!0})(e,t,r)||i("tags"):"paths"===e.path[0]&&(((e,{activeCollection:t},r)=>{if(!t.value)return!1;const{requests:n,requestMutators:a}=r,[,o,i,...s]=e.path;if("path"===o&&"CHANGE"===e.type)t.value.requests.forEach((t=>{var r;(null==(r=n[t])?void 0:r.path)===e.oldValue&&a.edit(t,"path",e.value)}));else if("method"===i&&"CHANGE"===e.type)t.value.requests.forEach((t=>{var r,i;(null==(r=n[t])?void 0:r.method)===e.oldValue&&(null==(i=n[t])?void 0:i.path)===o&&a.edit(t,"method",e.value)}));else if("CHANGE"!==e.type&&"number"==typeof s.at(-1)){const s=YAe(t.value.requests,n,(e=>e.path===o&&e.method===i)),l=JAe(Ave,{...e,path:e.path.slice(3)});if(!s||!l)return!1;const c=[...Pve(s,l.pathMinusOne)];"CREATE"===e.type?c.push(l.value):"REMOVE"===e.type&&c.pop(),a.edit(s.uid,l.pathMinusOne,c),("parameters"===e.path[3]||"requestBody"===e.path[3])&&eCe(s.uid,r)}else if("CREATE"===e.type){const[r]=Object.entries(e.value??{}),[n,s]=r??[],l=i?e.value:s,c=i||n,u=ive.array().parse(l.servers??[]),{security:d,...p}=l,h={...p,method:rC(c)?c:"get",path:o,parameters:l.parameters??[],servers:u.map((e=>e.uid))};null!=d&&d.length&&(h.security=d.map((e=>{if(Object.keys(e).length){const[t]=Object.keys(e);return t?{[t]:e[t]}:e}return e})));const f=hL(h,Ave,!1);if(!f)return!1;a.add(f,t.value.uid)}else if("REMOVE"===e.type){const e=YAe(t.value.requests,n,(e=>e.path===o&&e.method===i));if(!e)return!1;a.delete(e,t.value.uid)}else if("CHANGE"===e.type){const l=YAe(t.value.requests,n,(e=>e.path===o&&e.method===i)),c=JAe(Ave,{...e,path:s});if(!l||!c)return!1;a.edit(l.uid,c.path,c.value),("parameters"===e.path[3]||"requestBody"===e.path[3])&&eCe(l.uid,r)}return!0})(e,t,r)||i("requests"))},{pause:l,resume:c}=function(e,t){const{start:r}=function(e,t,r={}){const{immediate:n=!0}=r,a=So(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function s(){a.value=!1,i()}function l(...r){i(),a.value=!0,o=setTimeout((()=>{a.value=!1,o=null,e(...r)}),BL(t))}return n&&(a.value=!0,UL&&l()),jL(s),{isPending:ho(a),start:l,stop:s}}(a,t,{immediate:!1}),n=So(!1);async function a(){n.value&&(await e(),r())}function o(){n.value=!1}return jL(o),{isActive:n,pause:o,resume:function(){n.value||(n.value=!0,a())}}}((async()=>{var t,r;const i=null==(t=n.value)?void 0:t.documentUrl;if(!i)return;const u=ibe[i];try{const e=await uL(i,null==(r=a.value)?void 0:r.proxyUrl,!1),t=SL(e);if(o.edit(n.value.uid,"watchModeStatus","WATCHING"),null!=u&&u.hash)if(u.hash&&u.hash!==t){const{schema:r}=await Kve(e),n=XAe(u.schema,r),a=GAe(n);try{a.forEach(s),ibe[i]={hash:t,schema:r}}catch(e){console.error("[useOpenApiWatcher] Error:",e)}}else console.log("[useOpenApiWatcher] No changes detected yet…");else{const{schema:r}=await Kve(e);r&&(ibe[i]={hash:t,schema:r})}}catch(t){console.error("[useOpenApiWatcher] Error:",t),console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"),l(),o.edit(n.value.uid,"watchModeStatus","ERROR"),e("[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds","error"),setTimeout((()=>{console.info("[useOpenApiWatcher] Resuming watcher"),c()}),6e4)}}),5e3);ul([()=>{var e;return null==(e=n.value)?void 0:e.documentUrl},()=>{var e;return null==(e=n.value)?void 0:e.watchMode}],(([e,t])=>{e&&t?(console.info(`[useOpenApiWatcher] Watching ${e} …`),c()):n.value&&(l(),o.edit(n.value.uid,"watchModeStatus","IDLE"))}),{immediate:!0})},O$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function w$e(e,t){return Pl(),Rl("svg",O$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m10.812 2.492-8.32 8.32a1.68 1.68 0 0 0 0 2.377l8.32 8.319a1.68 1.68 0 0 0 2.377 0l8.319-8.32a1.68 1.68 0 0 0 0-2.377l-8.32-8.319a1.68 1.68 0 0 0-2.377 0Z"},null,-1)]))}const x$e={render:w$e},k$e=Object.freeze(Object.defineProperty({__proto__:null,default:x$e,render:w$e},Symbol.toStringTag,{value:"Module"})),S$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _$e(e,t){return Pl(),Rl("svg",S$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.711 16.963V7.044a1.37 1.37 0 0 0-.759-1.229l-7.338-3.67a1.37 1.37 0 0 0-1.227 0l-7.34 3.662a1.37 1.37 0 0 0-.758 1.23v9.919a1.37 1.37 0 0 0 .759 1.229l7.34 3.67a1.38 1.38 0 0 0 1.229 0l7.34-3.663a1.37 1.37 0 0 0 .754-1.23Z"},null,-1)]))}const E$e={render:_$e},T$e=Object.freeze(Object.defineProperty({__proto__:null,default:E$e,render:_$e},Symbol.toStringTag,{value:"Module"})),A$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function C$e(e,t){return Pl(),Rl("svg",A$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const P$e={render:C$e},$$e=Object.freeze(Object.defineProperty({__proto__:null,default:P$e,render:C$e},Symbol.toStringTag,{value:"Module"})),D$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function M$e(e,t){return Pl(),Rl("svg",D$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"},null,-1)]))}const R$e={render:M$e},N$e=Object.freeze(Object.defineProperty({__proto__:null,default:R$e,render:M$e},Symbol.toStringTag,{value:"Module"})),I$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function L$e(e,t){return Pl(),Rl("svg",I$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.334 4.82v6.768a10.58 10.58 0 0 0 6.783 9.878l.926.356a2.67 2.67 0 0 0 1.914 0l.926-.356a10.58 10.58 0 0 0 6.783-9.878V4.821a1.32 1.32 0 0 0-.771-1.211A19.3 19.3 0 0 0 12 2a19.3 19.3 0 0 0-7.895 1.61 1.32 1.32 0 0 0-.771 1.21"},null,-1)]))}const j$e={render:L$e},B$e=Object.freeze(Object.defineProperty({__proto__:null,default:j$e,render:L$e},Symbol.toStringTag,{value:"Module"})),U$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function F$e(e,t){return Pl(),Rl("svg",U$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 20h18M5 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const Q$e={render:F$e},z$e=Object.freeze(Object.defineProperty({__proto__:null,default:Q$e,render:F$e},Symbol.toStringTag,{value:"Module"})),q$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function H$e(e,t){return Pl(),Rl("svg",q$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8m-5 4h5m6-7h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2"},null,-1)]))}const V$e={render:H$e},Z$e=Object.freeze(Object.defineProperty({__proto__:null,default:V$e,render:H$e},Symbol.toStringTag,{value:"Module"})),W$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function X$e(e,t){return Pl(),Rl("svg",W$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.522 14.167V6.64a2.13 2.13 0 0 0-2.13-2.13H5.608a2.13 2.13 0 0 0-2.13 2.13v7.526m17.044 0H3.478m17.044 0 1.364 4.778a1.066 1.066 0 0 1-.959 1.545H3.073a1.065 1.065 0 0 1-.959-1.545l1.364-4.778m6.855 3.333h3.334"},null,-1)]))}const G$e={render:X$e},Y$e=Object.freeze(Object.defineProperty({__proto__:null,default:G$e,render:X$e},Symbol.toStringTag,{value:"Module"})),K$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function J$e(e,t){return Pl(),Rl("svg",K$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.333 2h7.334s2.666 0 2.666 2.667v14.666s0 2.667-2.666 2.667H8.333s-2.666 0-2.666-2.667V4.667S5.667 2 8.333 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9.186 4.563h1.246s.889 0 .889.889V9.88s0 .889-.889.889H9.186s-.89 0-.89-.89V5.453s0-.89.89-.89"},null,-1)]))}const eDe={render:J$e},tDe=Object.freeze(Object.defineProperty({__proto__:null,default:eDe,render:J$e},Symbol.toStringTag,{value:"Module"})),rDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nDe(e,t){return Pl(),Rl("svg",rDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 2H8.333a2.667 2.667 0 0 0-2.666 2.667v14.666A2.667 2.667 0 0 0 8.333 22h7.334a2.667 2.667 0 0 0 2.666-2.667V4.667A2.667 2.667 0 0 0 15.667 2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const aDe={render:nDe},oDe=Object.freeze(Object.defineProperty({__proto__:null,default:aDe,render:nDe},Symbol.toStringTag,{value:"Module"})),iDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sDe(e,t){return Pl(),Rl("svg",iDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 2H8.333a2.667 2.667 0 0 0-2.666 2.667v14.666A2.667 2.667 0 0 0 8.333 22h7.334a2.667 2.667 0 0 0 2.666-2.667V4.667A2.667 2.667 0 0 0 15.667 2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m3 2a1 1 0 1 1 2 0 1 1 0 0 1-2 0M8 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const lDe={render:sDe},cDe=Object.freeze(Object.defineProperty({__proto__:null,default:lDe,render:sDe},Symbol.toStringTag,{value:"Module"})),uDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dDe(e,t){return Pl(),Rl("svg",uDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.198 2h9.603s1.74 0 1.74 1.74v16.52s0 1.74-1.74 1.74H7.198s-1.74 0-1.74-1.74V3.74S5.459 2 7.199 2Z"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14.684 4.935H9.315a.94.94 0 0 1-.932-.8L8.067 2h7.865l-.315 2.133a.94.94 0 0 1-.933.802"},null,-1)]))}const pDe={render:dDe},hDe=Object.freeze(Object.defineProperty({__proto__:null,default:pDe,render:dDe},Symbol.toStringTag,{value:"Module"})),fDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mDe(e,t){return Pl(),Rl("svg",fDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h6m1.034-7.319a.499.499 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"},null,-1)]))}const gDe={render:mDe},vDe=Object.freeze(Object.defineProperty({__proto__:null,default:gDe,render:mDe},Symbol.toStringTag,{value:"Module"})),bDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yDe(e,t){return Pl(),Rl("svg",bDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 22H8.333a2.667 2.667 0 0 1-2.666-2.667V4.667A2.667 2.667 0 0 1 8.333 2h7.334a2.667 2.667 0 0 1 2.666 2.667v14.666A2.667 2.667 0 0 1 15.667 22"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 19a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const ODe={render:yDe},wDe=Object.freeze(Object.defineProperty({__proto__:null,default:ODe,render:yDe},Symbol.toStringTag,{value:"Module"})),xDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kDe(e,t){return Pl(),Rl("svg",xDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10 7.5v2.813M14 7.5v2.813M14 7.5h2.5a1.125 1.125 0 0 1 1.125 1.125v5.062a1.125 1.125 0 0 1-1.125 1.125h-.543c-.373 0-.73.149-.994.412l-.864.864a1.4 1.4 0 0 1-.994.412h-2.21c-.373 0-.73-.148-.994-.412l-.864-.864a1.4 1.4 0 0 0-.994-.412H7.5a1.125 1.125 0 0 1-1.125-1.125V8.625A1.125 1.125 0 0 1 7.5 7.5zM4.2 3h15.6S21 3 21 4.2v15.6s0 1.2-1.2 1.2H4.2S3 21 3 19.8V4.2S3 3 4.2 3"},null,-1)]))}const SDe={render:kDe},_De=Object.freeze(Object.defineProperty({__proto__:null,default:SDe,render:kDe},Symbol.toStringTag,{value:"Module"})),EDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TDe(e,t){return Pl(),Rl("svg",EDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M22 12c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m10 10H2m10 10C6.477 22 2 17.523 2 12m10 10a14.5 14.5 0 0 1 0-20m0 20a14.5 14.5 0 0 0 0-20M2 12C2 6.477 6.477 2 12 2"},null,-1)]))}const ADe={render:TDe},CDe=Object.freeze(Object.defineProperty({__proto__:null,default:ADe,render:TDe},Symbol.toStringTag,{value:"Module"})),PDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function $De(e,t){return Pl(),Rl("svg",PDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 8.82a15 15 0 0 1 20 0M5 12.859a10 10 0 0 1 14 0m-10.5 3.57a5 5 0 0 1 7 0"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const DDe={render:$De},MDe=Object.freeze(Object.defineProperty({__proto__:null,default:DDe,render:$De},Symbol.toStringTag,{value:"Module"})),RDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NDe(e,t){return Pl(),Rl("svg",RDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14.7 10.2v3.6m2.556-6.147a3.6 3.6 0 0 0-5.094 0m7.632-2.547a7.2 7.2 0 0 0-10.179 0M4.8 13.8h14.4a1.8 1.8 0 0 1 1.8 1.8v3.6a1.8 1.8 0 0 1-1.8 1.8H4.8A1.8 1.8 0 0 1 3 19.2v-3.6a1.8 1.8 0 0 1 1.8-1.8"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6 17.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const IDe={render:NDe},LDe=Object.freeze(Object.defineProperty({__proto__:null,default:IDe,render:NDe},Symbol.toStringTag,{value:"Module"})),jDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BDe(e,t){return Pl(),Rl("svg",jDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.5 2h7m-5.3 1v6.774a1.8 1.8 0 0 1-.19.807l-4.562 9.114A.9.9 0 0 0 6.258 21h11.484a.9.9 0 0 0 .81-1.305l-4.562-9.114a1.8 1.8 0 0 1-.19-.807V3M7.5 15.6h9"},null,-1)]))}const UDe={render:BDe},FDe=Object.freeze(Object.defineProperty({__proto__:null,default:UDe,render:BDe},Symbol.toStringTag,{value:"Module"})),QDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zDe(e,t){return Pl(),Rl("svg",QDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.802 13.8a.899.899 0 0 1-.702-1.467l8.908-9.178a.45.45 0 0 1 .774.414l-1.728 5.417A.9.9 0 0 0 12.9 10.2h6.298a.899.899 0 0 1 .702 1.467l-8.908 9.178a.45.45 0 0 1-.774-.414l1.728-5.417A.9.9 0 0 0 11.1 13.8z"},null,-1)]))}const qDe={render:zDe},HDe=Object.freeze(Object.defineProperty({__proto__:null,default:qDe,render:zDe},Symbol.toStringTag,{value:"Module"})),VDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZDe(e,t){return Pl(),Rl("svg",VDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.286a2.5 2.5 0 1 1 2.5 2.5m-2.5-2.5a2.5 2.5 0 1 0-2.5 2.5m2.5-2.5v.833m2.5 1.667a2.5 2.5 0 1 1-2.5 2.5m2.5-2.5h-.833m-4.167 0a2.5 2.5 0 1 0 2.5 2.5m-2.5-2.5h.833M12 10.119c-.92 0-1.667.746-1.667 1.667M12 10.119c.92 0 1.667.746 1.667 1.667M12 14.286v-.834m0 .834V20.5m-1.667-8.714c0 .92.746 1.666 1.667 1.666m1.667-1.666c0 .92-.746 1.666-1.667 1.666M4.2 3h15.6S21 3 21 4.2v15.6s0 1.2-1.2 1.2H4.2S3 21 3 19.8V4.2S3 3 4.2 3"},null,-1)]))}const WDe={render:ZDe},XDe=Object.freeze(Object.defineProperty({__proto__:null,default:WDe,render:ZDe},Symbol.toStringTag,{value:"Module"})),GDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YDe(e,t){return Pl(),Rl("svg",GDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m10.812 2.492-8.32 8.32a1.68 1.68 0 0 0 0 2.377l8.32 8.319a1.68 1.68 0 0 0 2.377 0l8.319-8.32a1.68 1.68 0 0 0 0-2.377l-8.32-8.319a1.68 1.68 0 0 0-2.377 0ZM12 8v4"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const KDe={render:YDe},JDe=Object.freeze(Object.defineProperty({__proto__:null,default:KDe,render:YDe},Symbol.toStringTag,{value:"Module"})),eMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tMe(e,t){return Pl(),Rl("svg",eMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.57v4.296m7.926 7.516H4.074c-.798 0-1.318-.84-.96-1.554L11.04 3.976a1.074 1.074 0 0 1 1.92 0l7.927 15.852a1.074 1.074 0 0 1-.96 1.554Z"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 18a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const rMe={render:tMe},nMe=Object.freeze(Object.defineProperty({__proto__:null,default:rMe,render:tMe},Symbol.toStringTag,{value:"Module"})),aMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oMe(e,t){return Pl(),Rl("svg",aMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M12 17v-6 0a.5.5 0 0 0-.5-.5l-.5.001h-1M12 17h-2m2 0h2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.75 7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const iMe={render:oMe},sMe=Object.freeze(Object.defineProperty({__proto__:null,default:iMe,render:oMe},Symbol.toStringTag,{value:"Module"})),lMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cMe(e,t){return Pl(),Rl("svg",lMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.999 21.002H19M11.56 3.264a.5.5 0 0 1 .877 0l2.953 5.605a1 1 0 0 0 1.516.294L21.185 5.5a.5.5 0 0 1 .798.519l-2.835 10.248a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.018 6.019a.5.5 0 0 1 .798-.52l4.277 3.665a1 1 0 0 0 1.516-.294l2.953-5.606Z"},null,-1)]))}const uMe={render:cMe},dMe=Object.freeze(Object.defineProperty({__proto__:null,default:uMe,render:cMe},Symbol.toStringTag,{value:"Module"})),pMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hMe(e,t){return Pl(),Rl("svg",pMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.527 3.525a1.8 1.8 0 0 0-1.273-.527H5.798a1.8 1.8 0 0 0-1.8 1.8v6.456c0 .478.19.936.527 1.273l7.836 7.836a2.184 2.184 0 0 0 3.078 0l5.924-5.924a2.184 2.184 0 0 0 0-3.078z"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const fMe={render:hMe},mMe=Object.freeze(Object.defineProperty({__proto__:null,default:fMe,render:hMe},Symbol.toStringTag,{value:"Module"})),gMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vMe(e,t){return Pl(),Rl("svg",gMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"},null,-1)]))}const bMe={render:vMe},yMe=Object.freeze(Object.defineProperty({__proto__:null,default:bMe,render:vMe},Symbol.toStringTag,{value:"Module"})),OMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wMe(e,t){return Pl(),Rl("svg",OMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 14h1v4m4-16v4M3 10h18M8 2v4M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const xMe={render:wMe},kMe=Object.freeze(Object.defineProperty({__proto__:null,default:xMe,render:wMe},Symbol.toStringTag,{value:"Module"})),SMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Me(e,t){return Pl(),Rl("svg",SMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.333 5.01c1.39-.224 2.796-.34 4.205-.346.121 0 .238.044.329.125.085.084.133.2.133.32v14a.453.453 0 0 1-.444.444C14.186 19.66 12 21.997 12 21.997m0 0V7.091m0 14.906s-2.187-2.337-9.556-2.444A.453.453 0 0 1 2 19.109v-14c0-.12.048-.236.133-.32a.5.5 0 0 1 .33-.125C9.822 4.762 12 7.091 12 7.091m0 0a5.5 5.5 0 0 1 1.458-3.05 6.9 6.9 0 0 1 3.235-2.017.53.53 0 0 1 .436.053.41.41 0 0 1 .204.356V16.31a7.27 7.27 0 0 0-3.875 2.186A5.33 5.33 0 0 0 12 21.562"},null,-1)]))}const EMe={render:_Me},TMe=Object.freeze(Object.defineProperty({__proto__:null,default:EMe,render:_Me},Symbol.toStringTag,{value:"Module"})),AMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CMe(e,t){return Pl(),Rl("svg",AMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 3v8l3-3 3 3V3M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2"},null,-1)]))}const PMe={render:CMe},$Me=Object.freeze(Object.defineProperty({__proto__:null,default:PMe,render:CMe},Symbol.toStringTag,{value:"Module"})),DMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function MMe(e,t){return Pl(),Rl("svg",DMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 3v4a2 2 0 0 0 2 2h4m-5-6H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8z"},null,-1)]))}const RMe={render:MMe},NMe=Object.freeze(Object.defineProperty({__proto__:null,default:RMe,render:MMe},Symbol.toStringTag,{value:"Module"})),IMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LMe(e,t){return Pl(),Rl("svg",IMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13 6h6a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.93a2 2 0 0 1 1.67.9l.81 1.2a2 2 0 0 0 1.69.9"},null,-1)]))}const jMe={render:LMe},BMe=Object.freeze(Object.defineProperty({__proto__:null,default:jMe,render:LMe},Symbol.toStringTag,{value:"Module"})),UMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FMe(e,t){return Pl(),Rl("svg",UMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m1-2h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1"},null,-1)]))}const QMe={render:FMe},zMe=Object.freeze(Object.defineProperty({__proto__:null,default:QMe,render:FMe},Symbol.toStringTag,{value:"Module"})),qMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HMe(e,t){return Pl(),Rl("svg",qMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m20.72 11.12-8.51 8.51a5.559 5.559 0 1 1-7.86-7.861l7.935-7.936a3.71 3.71 0 0 1 5.25 5.241L9.581 17.01a1.853 1.853 0 1 1-2.62-2.62l7.861-7.853"},null,-1)]))}const VMe={render:HMe},ZMe=Object.freeze(Object.defineProperty({__proto__:null,default:VMe,render:HMe},Symbol.toStringTag,{value:"Module"})),WMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XMe(e,t){return Pl(),Rl("svg",WMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10.2 16.8a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0m0 0V5.7a2.1 2.1 0 0 0-4.125-.56L3.13 15.844m10.67.956a3.6 3.6 0 1 0 7.2 0 3.6 3.6 0 0 0-7.2 0m0 0V5.7a2.1 2.1 0 0 1 4.125-.56l2.945 10.7M10.2 9.6h3.6V12h-3.6z"},null,-1)]))}const GMe={render:XMe},YMe=Object.freeze(Object.defineProperty({__proto__:null,default:GMe,render:XMe},Symbol.toStringTag,{value:"Module"})),KMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JMe(e,t){return Pl(),Rl("svg",KMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 6V4m2 2.983 1.414-1.415M18 9h2m-3 2 1.2 1.2M4 20 15 9m-1.8-1.8L12 6"},null,-1)]))}const eRe={render:JMe},tRe=Object.freeze(Object.defineProperty({__proto__:null,default:eRe,render:JMe},Symbol.toStringTag,{value:"Module"})),rRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nRe(e,t){return Pl(),Rl("svg",rRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.8 15.6v-1.8A1.8 1.8 0 0 0 12 12H4.8A1.8 1.8 0 0 1 3 10.2V7.5a1.8 1.8 0 0 1 1.8-1.8h1.8M19.2 3H8.4a1.8 1.8 0 0 0-1.8 1.8v1.8a1.8 1.8 0 0 0 1.8 1.8h10.8A1.8 1.8 0 0 0 21 6.6V4.8A1.8 1.8 0 0 0 19.2 3m-4.5 12.6h-1.8a.9.9 0 0 0-.9.9v3.6a.9.9 0 0 0 .9.9h1.8a.9.9 0 0 0 .9-.9v-3.6a.9.9 0 0 0-.9-.9"},null,-1)]))}const aRe={render:nRe},oRe=Object.freeze(Object.defineProperty({__proto__:null,default:aRe,render:nRe},Symbol.toStringTag,{value:"Module"})),iRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sRe(e,t){return Pl(),Rl("svg",iRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16.494 3.913a2.56 2.56 0 0 1 1.855-.905 2.58 2.58 0 0 1 1.923.749 2.54 2.54 0 0 1 .741 1.915 2.53 2.53 0 0 1-.924 1.835l-12.13 12.13-4.943 1.348 1.348-4.942z"},null,-1)]))}const lRe={render:sRe},cRe=Object.freeze(Object.defineProperty({__proto__:null,default:lRe,render:sRe},Symbol.toStringTag,{value:"Module"})),uRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dRe(e,t){return Pl(),Rl("svg",uRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526M18 8A6 6 0 1 1 6 8a6 6 0 0 1 12 0"},null,-1)]))}const pRe={render:dRe},hRe=Object.freeze(Object.defineProperty({__proto__:null,default:pRe,render:dRe},Symbol.toStringTag,{value:"Module"})),fRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mRe(e,t){return Pl(),Rl("svg",fRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.8 14.7s.9-.9 3.6-.9 4.5 1.8 7.2 1.8 3.6-.9 3.6-.9V3.9s-.9.9-3.6.9S11.1 3 8.4 3s-3.6.9-3.6.9zm0 0V21"},null,-1)]))}const gRe={render:mRe},vRe=Object.freeze(Object.defineProperty({__proto__:null,default:gRe,render:mRe},Symbol.toStringTag,{value:"Module"})),bRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yRe(e,t){return Pl(),Rl("svg",bRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z"},null,-1)]))}const ORe={render:yRe},wRe=Object.freeze(Object.defineProperty({__proto__:null,default:ORe,render:yRe},Symbol.toStringTag,{value:"Module"})),xRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kRe(e,t){return Pl(),Rl("svg",xRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"},null,-1)]))}const SRe={render:kRe},_Re=Object.freeze(Object.defineProperty({__proto__:null,default:SRe,render:kRe},Symbol.toStringTag,{value:"Module"})),ERe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TRe(e,t){return Pl(),Rl("svg",ERe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 3v4M2 5h4m14 12v2m-1-1h2m-6.937-2.5a2 2 0 0 1 1.437-1.437l6.135-1.582a.5.5 0 0 0 0-.962L15.5 9.936A2 2 0 0 1 14.063 8.5l-1.582-6.135a.5.5 0 0 0-.963 0L9.937 8.5A2 2 0 0 1 8.5 9.937l-6.135 1.581a.5.5 0 0 0 0 .964L8.5 14.063A2 2 0 0 1 9.937 15.5l1.582 6.135a.5.5 0 0 0 .963 0z"},null,-1)]))}const ARe={render:TRe},CRe=Object.freeze(Object.defineProperty({__proto__:null,default:ARe,render:TRe},Symbol.toStringTag,{value:"Module"})),PRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function $Re(e,t){return Pl(),Rl("svg",PRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7 11v4a2 2 0 0 0 2 2h4"},null,-1),Ul("circle",{cx:"7",cy:"7",r:"3.25",stroke:"currentColor"},null,-1),Ul("circle",{cx:"17",cy:"17",r:"3.25",stroke:"currentColor"},null,-1)]))}const DRe={render:$Re},MRe=Object.freeze(Object.defineProperty({__proto__:null,default:DRe,render:$Re},Symbol.toStringTag,{value:"Module"})),RRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NRe(e,t){return Pl(),Rl("svg",RRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 21v-6a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v6M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},null,-1)]))}const IRe={render:NRe},LRe=Object.freeze(Object.defineProperty({__proto__:null,default:IRe,render:NRe},Symbol.toStringTag,{value:"Module"})),jRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BRe(e,t){return Pl(),Rl("svg",jRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.414 17.657 12 19.07A5 5 0 0 1 4.929 12l1.414-1.414m4.243-4.243L12 4.93A5 5 0 0 1 19.071 12l-1.414 1.414m-8.485 1.414 5.656-5.656"},null,-1)]))}const URe={render:BRe},FRe=Object.freeze(Object.defineProperty({__proto__:null,default:URe,render:BRe},Symbol.toStringTag,{value:"Module"})),QRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zRe(e,t){return Pl(),Rl("svg",QRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0"},null,-1)]))}const qRe={render:zRe},HRe=Object.freeze(Object.defineProperty({__proto__:null,default:qRe,render:zRe},Symbol.toStringTag,{value:"Module"})),VRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZRe(e,t){return Pl(),Rl("svg",VRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const WRe={render:ZRe},XRe=Object.freeze(Object.defineProperty({__proto__:null,default:WRe,render:ZRe},Symbol.toStringTag,{value:"Module"})),GRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YRe(e,t){return Pl(),Rl("svg",GRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const KRe={render:YRe},JRe=Object.freeze(Object.defineProperty({__proto__:null,default:KRe,render:YRe},Symbol.toStringTag,{value:"Module"})),eNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tNe(e,t){return Pl(),Rl("svg",eNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11m3.9-9.4L19 4m-3.5 3.5 3 3M22 7l-3-3"},null,-1)]))}const rNe={render:tNe},nNe=Object.freeze(Object.defineProperty({__proto__:null,default:rNe,render:tNe},Symbol.toStringTag,{value:"Module"})),aNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oNe(e,t){return Pl(),Rl("svg",aNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16m10 2-4.35-4.35"},null,-1)]))}const iNe={render:oNe},sNe=Object.freeze(Object.defineProperty({__proto__:null,default:iNe,render:oNe},Symbol.toStringTag,{value:"Module"})),lNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cNe(e,t){return Pl(),Rl("svg",lNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 11.78v.44a2 2 0 0 0 2 2h.18a2 2 0 0 1 1.73 1l.25.43a2 2 0 0 1 0 2l-.08.15a2 2 0 0 0 .73 2.73l.38.22a2 2 0 0 0 2.73-.73l.1-.15a2 2 0 0 1 1.72-1h.51a2 2 0 0 1 1.74 1l.09.15a2 2 0 0 0 2.73.73l.38-.22a2 2 0 0 0 .73-2.73l-.08-.15a2 2 0 0 1 0-2l.25-.43a2 2 0 0 1 1.73-1H20a2 2 0 0 0 2-2v-.44a2 2 0 0 0-2-2h-.18a2 2 0 0 1-1.73-1l-.25-.43a2 2 0 0 1 0-2l.08-.15a2 2 0 0 0-.73-2.73l-.39-.22a2 2 0 0 0-2.73.73l-.08.15a2 2 0 0 1-1.74 1h-.5a2 2 0 0 1-1.74-1l-.09-.15a2 2 0 0 0-2.73-.73l-.38.22a2 2 0 0 0-.73 2.73l.08.15a2 2 0 0 1 0 2l-.25.43a2 2 0 0 1-1.73 1H4a2 2 0 0 0-2 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0"},null,-1)]))}const uNe={render:cNe},dNe=Object.freeze(Object.defineProperty({__proto__:null,default:uNe,render:cNe},Symbol.toStringTag,{value:"Module"})),pNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hNe(e,t){return Pl(),Rl("svg",pNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 9a5 5 0 0 1 0 6m3.364 3.364a9 9 0 0 0 0-12.728M11 4.702a.706.706 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"},null,-1)]))}const fNe={render:hNe},mNe=Object.freeze(Object.defineProperty({__proto__:null,default:fNe,render:hNe},Symbol.toStringTag,{value:"Module"})),gNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vNe(e,t){return Pl(),Rl("svg",gNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.566 18.582v2.778s3.367-.611 4.445-2.222c.58-.87.599-2.196.465-3.334m-10.698-3.01H3s.611-3.367 2.222-4.445c.87-.58 2.196-.6 3.334-.465m-.82 8.883-1.571-1.571-.625-.625a20.2 20.2 0 0 1 1.837-4.667 10.76 10.76 0 0 1 5.199-4.825c2.26-1.003 4.914-1.314 7.712-.903.486 3.46.349 9.4-5.665 12.92a20.6 20.6 0 0 1-4.73 1.828l-.586-.585zm0 0L6.165 18.34"},null,-1)]))}const bNe={render:vNe},yNe=Object.freeze(Object.defineProperty({__proto__:null,default:bNe,render:vNe},Symbol.toStringTag,{value:"Module"})),ONe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wNe(e,t){return Pl(),Rl("svg",ONe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m9 15 3-3m5 1a6 6 0 0 0-6-6m10 6A10 10 0 0 0 11 3m-7 7a7.31 7.31 0 0 0 10 10z"},null,-1)]))}const xNe={render:wNe},kNe=Object.freeze(Object.defineProperty({__proto__:null,default:xNe,render:wNe},Symbol.toStringTag,{value:"Module"})),SNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Ne(e,t){return Pl(),Rl("svg",SNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 3v4M2 5h4m14 12v2m-1-1h2m-10.582-5.578L5.368 13.5a.763.763 0 0 1-.906-.574l-.439-1.757a.875.875 0 0 1 .565-1.034l11.036-3.629m-2.35 5.307 3.541-.755m-1.546 8.317L12.73 14.3M7.225 9.268l.91 3.642m.596 6.465 2.537-5.075m4.397-7.233a1.635 1.635 0 0 1 1.19-1.982l.89-.222a.817.817 0 0 1 .99.594l1.239 4.953a.82.82 0 0 1-.594.99l-.891.223a1.634 1.634 0 0 1-1.982-1.189zm-2.03 5.77a1.635 1.635 0 1 1-3.27 0 1.635 1.635 0 0 1 3.27 0"},null,-1)]))}const ENe={render:_Ne},TNe=Object.freeze(Object.defineProperty({__proto__:null,default:ENe,render:_Ne},Symbol.toStringTag,{value:"Module"})),ANe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CNe(e,t){return Pl(),Rl("svg",ANe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m7.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M20 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0m12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0"},null,-1)]))}const PNe={render:CNe},$Ne=Object.freeze(Object.defineProperty({__proto__:null,default:PNe,render:CNe},Symbol.toStringTag,{value:"Module"})),DNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function MNe(e,t){return Pl(),Rl("svg",DNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 12h-1.488a1.2 1.2 0 0 0-1.158.876l-1.41 5.016a.15.15 0 0 1-.288 0L10.344 6.108a.15.15 0 0 0-.288 0l-1.41 5.016A1.2 1.2 0 0 1 7.494 12H6"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"},null,-1)]))}const RNe={render:MNe},NNe=Object.freeze(Object.defineProperty({__proto__:null,default:RNe,render:MNe},Symbol.toStringTag,{value:"Module"})),INe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LNe(e,t){return Pl(),Rl("svg",INe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6l4 2M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const jNe={render:LNe},BNe=Object.freeze(Object.defineProperty({__proto__:null,default:jNe,render:LNe},Symbol.toStringTag,{value:"Module"})),UNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FNe(e,t){return Pl(),Rl("svg",UNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.263 5.71v.181c0 .558-.222 1.094-.617 1.489l-3.157 3.158a2.105 2.105 0 0 1-2.978 0L7.353 7.38a2.1 2.1 0 0 1-.616-1.489v-.18m10.526 0V3.605A2.105 2.105 0 0 0 15.158 1.5H8.842a2.105 2.105 0 0 0-2.105 2.105v2.106m10.526 0H6.737m0 15.789h10.526m-10.526 0 3.948-3.158a2.105 2.105 0 0 1 2.63 0l3.948 3.158m-10.526 0v-4.391c0-.559.222-1.094.616-1.489l3.158-3.158a2.105 2.105 0 0 1 2.978 0l3.157 3.158c.395.395.617.93.617 1.489V21.5"},null,-1)]))}const QNe={render:FNe},zNe=Object.freeze(Object.defineProperty({__proto__:null,default:QNe,render:FNe},Symbol.toStringTag,{value:"Module"})),qNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HNe(e,t){return Pl(),Rl("svg",qNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m20 0v-2a4 4 0 0 0-3-3.87m-3-12a4 4 0 0 1 0 7.75M13 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"},null,-1)]))}const VNe={render:HNe},ZNe=Object.freeze(Object.defineProperty({__proto__:null,default:VNe,render:HNe},Symbol.toStringTag,{value:"Module"})),WNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XNe(e,t){return Pl(),Rl("svg",WNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2a7.071 7.071 0 1 0 10 10M12 2a10 10 0 0 0-7.071 17.071M12 2a10 10 0 0 0-7.071 17.071M22 12a10 10 0 0 1-17.071 7.071M22 12a10 10 0 0 1-17.071 7.071"},null,-1)]))}const GNe={render:XNe},YNe=Object.freeze(Object.defineProperty({__proto__:null,default:GNe,render:XNe},Symbol.toStringTag,{value:"Module"})),KNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JNe(e,t){return Pl(),Rl("svg",KNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},null,-1)]))}const eIe={render:JNe},tIe=Object.freeze(Object.defineProperty({__proto__:null,default:eIe,render:JNe},Symbol.toStringTag,{value:"Module"})),rIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nIe(e,t){return Pl(),Rl("svg",rIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.023 12.976a1.8 1.8 0 0 0-.603-.397L3.284 9.718a.45.45 0 0 1 .021-.843l17.098-5.85a.446.446 0 0 1 .572.572l-5.85 17.098a.45.45 0 0 1-.843.021l-2.861-7.138a1.8 1.8 0 0 0-.398-.601Zm0 0 9.845-9.843"},null,-1)]))}const aIe={render:nIe},oIe=Object.freeze(Object.defineProperty({__proto__:null,default:aIe,render:nIe},Symbol.toStringTag,{value:"Module"})),iIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sIe(e,t){return Pl(),Rl("svg",iIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7m2-3h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const lIe={render:sIe},cIe=Object.freeze(Object.defineProperty({__proto__:null,default:lIe,render:sIe},Symbol.toStringTag,{value:"Module"})),uIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dIe(e,t){return Pl(),Rl("svg",uIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h5M9 8h5m-9 9V5a2 2 0 0 1 2-2h13m0 0a2 2 0 0 0-2 2v14a2 2 0 0 1-2 2m4-18a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1h-3m-2 13H4a2 2 0 0 1-2-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1a2 2 0 0 0 2 2"},null,-1)]))}const pIe={render:dIe},hIe=Object.freeze(Object.defineProperty({__proto__:null,default:pIe,render:dIe},Symbol.toStringTag,{value:"Module"})),fIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mIe(e,t){return Pl(),Rl("svg",fIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2v20m5-17H9.5a3.5 3.5 0 1 0 0 7h5a3.5 3.5 0 1 1 0 7H6"},null,-1)]))}const gIe={render:mIe},vIe=Object.freeze(Object.defineProperty({__proto__:null,default:gIe,render:mIe},Symbol.toStringTag,{value:"Module"})),bIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yIe(e,t){return Pl(),Rl("svg",bIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m22 7-8.5 8.5-5-5L2 17M22 7h-6m6 0v6"},null,-1)]))}const OIe={render:yIe},wIe=Object.freeze(Object.defineProperty({__proto__:null,default:OIe,render:yIe},Symbol.toStringTag,{value:"Module"})),xIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kIe(e,t){return Pl(),Rl("svg",xIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 17v-7m4 7v-4m4 4V8M5 21h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const SIe={render:kIe},_Ie=Object.freeze(Object.defineProperty({__proto__:null,default:SIe,render:kIe},Symbol.toStringTag,{value:"Module"})),EIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TIe(e,t){return Pl(),Rl("svg",EIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.011 20.99c1.124-.887 2.04-1.775 3.506-1.977 1.268 0 2.49.481 3.416 1.348a3.595 3.595 0 0 0 5.561-2.115 3.146 3.146 0 0 0 3.317-4.599 3.148 3.148 0 0 0 1.234-5.241 3.145 3.145 0 1 0-4.45-4.45 3.147 3.147 0 0 0-5.24 1.234 3.146 3.146 0 0 0-4.6 3.317 3.596 3.596 0 0 0-2.11 5.533c.714 1.035 1.532 2.197 1.344 3.444-.247 1.477-1.066 2.366-1.978 3.506m0 0L16.494 7.507"},null,-1)]))}const AIe={render:TIe},CIe=Object.freeze(Object.defineProperty({__proto__:null,default:AIe,render:TIe},Symbol.toStringTag,{value:"Module"})),PIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function $Ie(e,t){return Pl(),Rl("svg",PIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21.038 16.44v2.71a1.81 1.81 0 0 1-1.97 1.807 17.9 17.9 0 0 1-7.794-2.773 17.6 17.6 0 0 1-5.42-5.42 17.9 17.9 0 0 1-2.773-7.83 1.806 1.806 0 0 1 1.798-1.97h2.71a1.806 1.806 0 0 1 1.806 1.554 11.6 11.6 0 0 0 .632 2.538 1.8 1.8 0 0 1-.406 1.906l-1.147 1.147a14.45 14.45 0 0 0 5.42 5.42l1.146-1.148a1.81 1.81 0 0 1 1.906-.406c.82.305 1.671.518 2.538.632a1.807 1.807 0 0 1 1.554 1.833"},null,-1)]))}const DIe={render:$Ie},MIe=Object.freeze(Object.defineProperty({__proto__:null,default:DIe,render:$Ie},Symbol.toStringTag,{value:"Module"})),RIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NIe(e,t){return Pl(),Rl("svg",RIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m8.21 2.5 1.782 1.781m4.016 0L15.79 2.5M9.158 7.36v-.947a2.845 2.845 0 1 1 5.684 0v.947M12 19.553c-3.126 0-5.684-2.558-5.684-5.685v-2.842a3.79 3.79 0 0 1 3.79-3.79h3.789a3.79 3.79 0 0 1 3.79 3.79v2.842c0 3.127-2.559 5.685-5.685 5.685m0 0v-8.527M6.818 9.132c-1.829-.19-3.344-1.8-3.344-3.79m2.842 7.58h-3.79m.948 7.578c0-1.99 1.61-3.695 3.6-3.79M20.498 5.342c0 1.99-1.516 3.6-3.316 3.79m4.292 3.79h-3.79m-.758 3.788c1.99.095 3.6 1.8 3.6 3.79"},null,-1)]))}const IIe={render:NIe},LIe=Object.freeze(Object.defineProperty({__proto__:null,default:IIe,render:NIe},Symbol.toStringTag,{value:"Module"})),jIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BIe(e,t){return Pl(),Rl("svg",jIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.662 18.661a4.33 4.33 0 1 0-2.455-7.891 6.662 6.662 0 1 0-6.537 7.89h8.993Z"},null,-1)]))}const UIe={render:BIe},FIe=Object.freeze(Object.defineProperty({__proto__:null,default:UIe,render:BIe},Symbol.toStringTag,{value:"Module"})),QIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zIe(e,t){return Pl(),Rl("svg",QIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2m16 0H4m16 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2"},null,-1),Ul("path",{fill:"currentColor",d:"M18 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M6 8h4m-4 8h4"},null,-1)]))}const qIe={render:zIe},HIe=Object.freeze(Object.defineProperty({__proto__:null,default:qIe,render:zIe},Symbol.toStringTag,{value:"Module"})),VIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZIe(e,t){return Pl(),Rl("svg",VIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 6.601c0 .955.948 1.87 2.636 2.546S9.613 10.2 12 10.2s4.676-.38 6.364-1.054C20.052 8.47 21 7.556 21 6.6m-18 0c0-.955.948-1.87 2.636-2.546C7.324 3.38 9.613 3.001 12 3.001s4.676.38 6.364 1.054C20.052 4.731 21 5.646 21 6.601m-18 0v5.4m18-5.4v5.4M3 12c0 1.987 4.03 3.6 9 3.6s9-1.612 9-3.6M3 12v5.4c0 1.987 4.03 3.6 9 3.6s9-1.613 9-3.6V12"},null,-1)]))}const WIe={render:ZIe},XIe=Object.freeze(Object.defineProperty({__proto__:null,default:WIe,render:ZIe},Symbol.toStringTag,{value:"Module"})),GIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YIe(e,t){return Pl(),Rl("svg",GIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 3H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m11 0h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m0 11h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1M9 14H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1"},null,-1)]))}const KIe={render:YIe},JIe=Object.freeze(Object.defineProperty({__proto__:null,default:KIe,render:YIe},Symbol.toStringTag,{value:"Module"})),eLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tLe(e,t){return Pl(),Rl("svg",eLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 14h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1M9 14H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1m5-11H9a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1"},null,-1)]))}const rLe={render:tLe},nLe=Object.freeze(Object.defineProperty({__proto__:null,default:rLe,render:tLe},Symbol.toStringTag,{value:"Module"})),aLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oLe(e,t){return Pl(),Rl("svg",aLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m3.3 7 8.7 5m0 0 8.7-5M12 12v10m9-14a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},null,-1)]))}const iLe={render:oLe},sLe=Object.freeze(Object.defineProperty({__proto__:null,default:iLe,render:oLe},Symbol.toStringTag,{value:"Module"})),lLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cLe(e,t){return Pl(),Rl("svg",lLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14 2.5-2.5L7 9m5 7.5h5M5 4h14c1.105 0 2 .796 2 1.778v12.444c0 .982-.895 1.778-2 1.778H5c-1.105 0-2-.796-2-1.778V5.778C3 4.796 3.895 4 5 4"},null,-1)]))}const uLe={render:cLe},dLe=Object.freeze(Object.defineProperty({__proto__:null,default:uLe,render:cLe},Symbol.toStringTag,{value:"Module"})),pLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hLe(e,t){return Pl(),Rl("svg",pLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.347",d:"M2.02 3.015h1.796l2.39 11.156a1.8 1.8 0 0 0 1.796 1.42h8.784a1.796 1.796 0 0 0 1.752-1.411l1.482-6.674H4.777"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0m9 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const fLe={render:hLe},mLe=Object.freeze(Object.defineProperty({__proto__:null,default:fLe,render:hLe},Symbol.toStringTag,{value:"Module"})),gLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vLe(e,t){return Pl(),Rl("svg",gLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v13m0-13c-.362-1.49-.985-2.765-1.787-3.657C9.41 3.451 8.465 2.983 7.5 3a2.5 2.5 0 1 0 0 5M12 8c.362-1.49.985-2.765 1.787-3.657.803-.892 1.748-1.36 2.713-1.343a2.5 2.5 0 0 1 0 5m2.5 4v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M4 8h16a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1"},null,-1)]))}const bLe={render:vLe},yLe=Object.freeze(Object.defineProperty({__proto__:null,default:bLe,render:vLe},Symbol.toStringTag,{value:"Module"})),OLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wLe(e,t){return Pl(),Rl("svg",OLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 9h18M3 9v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9M3 9l2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9m-9-6v6"},null,-1)]))}const xLe={render:wLe},kLe=Object.freeze(Object.defineProperty({__proto__:null,default:xLe,render:wLe},Symbol.toStringTag,{value:"Module"})),SLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Le(e,t){return Pl(),Rl("svg",SLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.929 19.071a10 10 0 0 0 14.142 0m0-14.142a10 10 0 0 0-14.142 0M4 15.5v-7l2.8 7v-7m5.6 7H11a1.4 1.4 0 0 1-1.4-1.4V9.9A1.4 1.4 0 0 1 11 8.5h1.4m-2.8 4.2h2.8m2.8-4.2v1.883a8.4 8.4 0 0 0 .601 3.119L16.6 15.5l1.4-4.9 1.4 4.9.8-1.998a8.4 8.4 0 0 0 .6-3.12V8.5"},null,-1)]))}const ELe={render:_Le},TLe=Object.freeze(Object.defineProperty({__proto__:null,default:ELe,render:_Le},Symbol.toStringTag,{value:"Module"})),ALe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CLe(e,t){return Pl(),Rl("svg",ALe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20.5 8 14h1.08a1.48 1.48 0 0 0 1.18-.58 1.44 1.44 0 0 0 .27-1.28l-.75-3A1.49 1.49 0 0 0 8.33 8H3m16-3h-3.753a1.49 1.49 0 0 0-1.45 1.14l-.75 3a1.44 1.44 0 0 0 .28 1.28 1.48 1.48 0 0 0 1.18.58h1.58l.78 4.75a1.5 1.5 0 0 0 1.46 1.25h2M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const PLe={render:CLe},$Le=Object.freeze(Object.defineProperty({__proto__:null,default:PLe,render:CLe},Symbol.toStringTag,{value:"Module"})),DLe=function(e){const t=Object.entries(e).map((([e,t])=>{const r=e.replace("./icons/","").replace(".svg","");return{icon:{src:r,title:r.replaceAll("-"," "),tags:[]},rawData:t}})),r=t.map((e=>e.icon)),n=Object.fromEntries(t.map((e=>[e.icon.src,e.rawData])));return{iconDefinitionList:r,iconDataMap:n}}(Object.assign({"./icons/basic-shape-diamond.svg":k$e,"./icons/basic-shape-hexagon.svg":T$e,"./icons/basic-shape-primary-circle-ellipse-round.svg":$$e,"./icons/basic-shape-primary-square-rectangle.svg":N$e,"./icons/basic-shape-shield.svg":B$e,"./icons/computer-device-desktop-monitor.svg":z$e,"./icons/computer-device-desktop.svg":Z$e,"./icons/computer-device-laptop.svg":Y$e,"./icons/computer-device-mobile-phone-android-samsung-back.svg":tDe,"./icons/computer-device-mobile-phone-android-samsung.svg":oDe,"./icons/computer-device-mobile-phone-iphone-x-back.svg":cDe,"./icons/computer-device-mobile-phone-iphone-x.svg":hDe,"./icons/computer-device-mobile-tablet-touch.svg":vDe,"./icons/computer-device-mobile-tablet.svg":wDe,"./icons/computer-device-network-ethernet-cat6.svg":_De,"./icons/computer-device-network-lan-www.svg":CDe,"./icons/computer-device-network-wifi-connection.svg":MDe,"./icons/computer-device-network-wifi-router.svg":LDe,"./icons/ecology-science-erlenmeyer-flask.svg":FDe,"./icons/image-flash-lightning.svg":HDe,"./icons/image-picture-flower.svg":XDe,"./icons/interface-alert-exclamation-diamond.svg":JDe,"./icons/interface-alert-exclamation-triangle-warning.svg":nMe,"./icons/interface-alert-information-circle.svg":sMe,"./icons/interface-award-crown.svg":dMe,"./icons/interface-bookmark-tag.svg":mMe,"./icons/interface-bookmark.svg":yMe,"./icons/interface-calendar-date-one.svg":kMe,"./icons/interface-content-book-open-pages.svg":TMe,"./icons/interface-content-book-page.svg":$Me,"./icons/interface-content-file.svg":NMe,"./icons/interface-content-folder.svg":BMe,"./icons/interface-copy-clipboard.svg":zMe,"./icons/interface-edit-attachment.svg":ZMe,"./icons/interface-edit-binocular.svg":YMe,"./icons/interface-edit-magic-wand.svg":tRe,"./icons/interface-edit-tool-paint-roller.svg":oRe,"./icons/interface-edit-tool-pencil.svg":cRe,"./icons/interface-favorite-award.svg":hRe,"./icons/interface-favorite-flag.svg":vRe,"./icons/interface-favorite-heart.svg":wRe,"./icons/interface-favorite-star.svg":_Re,"./icons/interface-favorite-stars-sparkles.svg":CRe,"./icons/interface-hierarchy-flowchart.svg":MRe,"./icons/interface-home-house.svg":LRe,"./icons/interface-hyperlink.svg":FRe,"./icons/interface-lighting-brightness.svg":HRe,"./icons/interface-lock-closed.svg":XRe,"./icons/interface-lock-open-unlock.svg":JRe,"./icons/interface-login-key.svg":nNe,"./icons/interface-search.svg":sNe,"./icons/interface-setting-cog.svg":dNe,"./icons/interface-share-megaphone-bullhorn.svg":mNe,"./icons/interface-share-rocket.svg":yNe,"./icons/interface-share-satellite.svg":kNe,"./icons/interface-share-space-ship.svg":TNe,"./icons/interface-share.svg":$Ne,"./icons/interface-signal-square.svg":NNe,"./icons/interface-time-clock-circle.svg":BNe,"./icons/interface-time-hour-glass.svg":zNe,"./icons/interface-users-multiple.svg":ZNe,"./icons/interface-weather-moon.svg":YNe,"./icons/mail-chat-bubble-square.svg":tIe,"./icons/mail-send-email-paper-airplane.svg":oIe,"./icons/mail-send-envelope.svg":cIe,"./icons/money-cashier-receipt.svg":hIe,"./icons/money-currency-dollar-pay.svg":vIe,"./icons/money-graph-arrow-increase.svg":wIe,"./icons/money-graph-bar-chart-increase.svg":_Ie,"./icons/nature-ecology-leaf.svg":CIe,"./icons/phone-telephone.svg":MIe,"./icons/programming-bug.svg":LIe,"./icons/programming-cloud.svg":FIe,"./icons/programming-computer-database-server.svg":HIe,"./icons/programming-computer-database.svg":XIe,"./icons/programming-module-four-layout.svg":JIe,"./icons/programming-module-three.svg":nLe,"./icons/programming-module.svg":sLe,"./icons/programming-script-code.svg":dLe,"./icons/shopping-cart.svg":mLe,"./icons/shopping-gift-present.svg":yLe,"./icons/shopping-shipping-box-parcel-package.svg":kLe,"./icons/tag-new-circle.svg":TLe,"./icons/travel-map-earth-globe.svg":$Le})),MLe=DLe.iconDefinitionList,RLe=DLe.iconDataMap,NLe=Li({__name:"LibraryIcon",props:{src:{}},setup(e){const t=e,r=hc((()=>(e=>RLe[e])(t.src)));return(e,t)=>r.value?(Pl(),Nl(cs(r.value),{key:0})):Vl("",!0)}}),ILe={class:"m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"},LLe={class:"flex h-4 w-4 items-center justify-center"},jLe=Li({__name:"EnvironmentSelector",setup(e){const{activeCollection:t,activeWorkspace:r,activeEnvironment:n}=Eye(),{collectionMutators:a}=Obe(),{layout:o}=age(),i=Lme(),s=e=>{t.value&&r.value&&(a.edit(t.value.uid,"x-scalar-active-environment",e),r.value.activeEnvironmentId=e)},l=()=>{var e;return i.push({name:"environment.default",params:{[wye.Workspace]:null==(e=r.value)?void 0:e.uid}})},c=hc((()=>{const{value:e}=n,{value:r}=t;return(null==e?void 0:e.name)||(null==r?void 0:r["x-scalar-active-environment"])||"No Environment"})),u=hc((()=>{const{value:e}=t,r=null==e?void 0:e["x-scalar-environments"];return r?Object.entries(r).map((([e,t])=>({...t,uid:e,name:e}))):[]}));ul(u,((e,t)=>{e.length>t.length&&(()=>{const e=u.value;if(e.length>0){const t=e[e.length-1];null!=t&&t.uid&&s(t.uid)}})()}));const d=e=>{const n=e["x-scalar-active-environment"];n&&t.value&&r.value?(t.value["x-scalar-active-environment"]=n,r.value.activeEnvironmentId=n):r.value&&(r.value.activeEnvironmentId="")};return ul(t,(e=>e&&d(e))),Yi((()=>{t.value&&d(t.value)})),(e,r)=>(Pl(),Nl(Ao(TX),{teleport:""},{items:ci((()=>[(Pl(!0),Rl(Sl,null,ps(u.value,(e=>(Pl(),Nl(Ao(Z8),{key:e.uid,class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:Su((t=>s(e.uid)),["stop"])},{default:ci((()=>{var r;return[Fl(Ao(TH),{selected:(null==(r=Ao(t))?void 0:r["x-scalar-active-environment"])===e.uid},null,8,["selected"]),ql(" "+Gn(e.name),1)]})),_:2},1032,["onClick"])))),128)),Fl(Ao(Z8),{class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:r[0]||(r[0]=Su((e=>s("")),["stop"]))},{default:ci((()=>{var e,a,o;return[Fl(Ao(TH),{selected:""===(null==(e=Ao(n))?void 0:e.uid)&&""===(null==(a=Ao(t))?void 0:a["x-scalar-active-environment"])||"No Environment"===(null==(o=Ao(n))?void 0:o.name)},null,8,["selected"]),r[1]||(r[1]=ql(" No Environment "))]})),_:1,__:[1]}),Fl(Ao(c8)),"modal"!==Ao(o)?(Pl(),Nl(Ao(Z8),{key:0,class:"flex items-center gap-1.5",onClick:l},{default:ci((()=>[Ul("div",LLe,[Fl(Ao(U5),{icon:"Brackets",size:"sm"})]),r[2]||(r[2]=Ul("span",{class:"leading-none"},"Manage Environments",-1))])),_:1,__:[2]})):Vl("",!0)])),default:ci((()=>[Fl(Ao(aF),{class:"text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("h2",ILe,Gn(c.value),1)])),_:1})])),_:1}))}}),BLe=Li({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(e){const t=e,r=hc((()=>t.art.split("\n"))),n=(e,t)=>{var n,a,o,i;return{animationDuration:100*e+"ms, 500ms",animationTimingFunction:`steps(${e}), step-end`,animationDelay:100*t+"ms, 0ms",animationIterationCount:"1, "+100*(((null==(n=r.value)?void 0:n.length)??0)+((null==(i=null==(o=r.value)?void 0:o[(null==(a=r.value)?void 0:a.length)-1])?void 0:i.length)??0)+5)/500}};return(e,t)=>(Pl(),Rl("div",{"aria-hidden":"true",class:zn(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":e.animate}]),role:"presentation",inert:""},[(Pl(!0),Rl(Sl,null,ps(r.value,((e,t)=>(Pl(),Rl("span",{key:t,class:"inline-block",style:jn({width:`calc(${e.length+1}ch)`})},[Ul("span",{class:"inline-block whitespace-pre overflow-hidden",style:jn(n(e.length,t))},Gn(e),5)],4)))),128))],2))}}),ULe=a6(BLe,[["__scopeId","data-v-69ebd973"]]);const FLe={"aria-hidden":"true"},QLe={class:"sr-only"},zLe=Li({__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const t={"⌘":"Command","^":"Control","⌥":"Option","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},r={Meta:ICe()?"⌘":"^",default:ICe()?"⌘":"^",Shift:"⇧",Alt:"⌥",Control:"^"},{cx:n}=WU(),a=hc((()=>`${e.modifier.map((e=>r[e])).join("+")} ${e.hotkey}`)),o=hc((()=>`${e.modifier.map((e=>"Meta"===e?ICe()?"Command":"Control":e)).join("+")} ${t[e.hotkey]??e.hotkey}`));return(e,t)=>(Pl(),Rl("div",qn(Ql(Ao(n)("border-(--scalar-background-3) inline-block overflow-hidden rounded border text-xxs rounded-b px-1 font-medium uppercase"))),[Ul("span",FLe,Gn(a.value),1),Ul("span",QLe,Gn(o.value),1)],16))}}),qLe=Li({__name:"SidebarButton",props:{click:{type:Function},hotkey:{}},setup(e){const t=e,{layout:r}=age(),n=()=>{t.click()};return(e,t)=>(Pl(),Nl(Ao(aF),{class:"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",icon:"Plus",variant:"outlined",onClick:n},{default:ci((()=>[fs(e.$slots,"title"),e.hotkey&&"desktop"===Ao(r)?(Pl(),Nl(zLe,{key:0,class:"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:block",hotkey:e.hotkey},null,8,["hotkey"])):Vl("",!0)])),_:3}))}}),HLe={class:"flex justify-between gap-10"},VLe=Li({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=t;return(e,t)=>(Pl(),Rl("form",{class:"flex flex-col gap-4 text-base",onSubmit:t[1]||(t[1]=Su((e=>r("submit")),["prevent"]))},[fs(e.$slots,"default",{},void 0,!0),Ul("div",HLe,[Fl(Ao(aF),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>r("cancel"))},{default:ci((()=>t[2]||(t[2]=[ql(" Cancel ")]))),_:1,__:[2]}),Fl(Ao(aF),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",type:"submit",variant:e.danger?"danger":"solid"},{default:ci((()=>[ql(Gn(e.label??"Save"),1)])),_:1},8,["variant"])])],32))}}),ZLe=a6(VLe,[["__scopeId","data-v-a93bfefe"]]),WLe={key:0,class:"text-c-2 text-sm leading-normal text-pretty"},XLe=Li({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(e,{emit:t}){const r=e,n=t,a=hc((()=>r.variableName.length>18?r.variableName.slice(0,18)+"…":r.variableName));return(e,t)=>(Pl(),Nl(ZLe,{danger:"",label:`Delete ${a.value}`,onCancel:t[0]||(t[0]=e=>n("close")),onSubmit:t[1]||(t[1]=e=>n("delete"))},{default:ci((()=>[e.warningMessage?(Pl(),Rl("p",WLe,Gn(e.warningMessage),1)):Vl("",!0)])),_:1},8,["label"]))}}),GLe={class:"flex text-sm"},YLe={class:"bg-b-1 custom-scroll grid w-dvw max-w-[420px] auto-rows-[32px] grid-cols-[repeat(auto-fill,minmax(32px,1fr))] content-between justify-between rounded border p-1"},KLe=Li({__name:"IconSelector",props:{modelValue:{},placement:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a=hc({get:()=>r.modelValue,set:e=>n("update:modelValue",e)});return(e,t)=>(Pl(),Nl(Ao(u8),{class:"bg-b-2 rounded",focus:"",placement:e.placement??"bottom"},{popover:ci((({close:r})=>[Fl(Ao(CB),{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:"flex flex-col"},{default:ci((()=>[Ul("div",GLe,[Fl(Ao(MB),{class:"text-c-2 px-1 py-1"},{default:ci((()=>[fs(e.$slots,"title",{},(()=>[t[1]||(t[1]=ql("Select an icon"))]))])),_:3})]),Ul("ul",YLe,[(Pl(!0),Rl(Sl,null,ps(Ao(MLe),(e=>(Pl(),Nl(Ao(DB),{key:e.src,as:"li",class:"text-c-3 hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2 flex cursor-pointer items-center justify-center rounded p-2",value:e.src,onClick:r},{default:ci((()=>[Fl(Ao(MB),{class:"sr-only"},{default:ci((()=>[ql(Gn(e.src.replaceAll("-"," "))+" Icon ",1)])),_:2},1024),Fl(Ao(NLe),{class:"stroke-[1.5]",src:e.src},null,8,["src"])])),_:2},1032,["value","onClick"])))),128))])])),_:2},1032,["modelValue"])])),default:ci((()=>[fs(e.$slots,"default")])),_:3},8,["placement"]))}}),JLe={class:"grid grid-cols-[auto_1fr] gap-2"},eje={class:"flex aspect-square"},tje=Li({__name:"EditSidebarListCollection",props:{name:{},icon:{}},emits:["close","edit"],setup(e,{emit:t}){const r=e,n=t,a=So(r.name),o=So(r.icon);return(e,t)=>(Pl(),Nl(ZLe,{onCancel:t[2]||(t[2]=e=>n("close")),onSubmit:t[3]||(t[3]=e=>n("edit",a.value,o.value))},{default:ci((()=>[Ul("div",JLe,[Ul("div",eje,[Fl(KLe,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),placement:"bottom-start"},{default:ci((()=>[Fl(Ao(aF),{class:"aspect-square h-auto px-0",variant:"outlined"},{default:ci((()=>[Fl(Ao(NLe),{class:"text-c-2 size-4",src:o.value},null,8,["src"])])),_:1})])),_:1},8,["modelValue"])]),Fl(Ao(U8),{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),autofocus:"",class:"flex-1"},null,8,["modelValue"])])])),_:1}))}}),rje=Li({__name:"EditSidebarListElement",props:{name:{}},emits:["close","edit"],setup(e,{emit:t}){const r=t,n=So(e.name);return(e,t)=>(Pl(),Nl(ZLe,{onCancel:t[1]||(t[1]=e=>r("close")),onSubmit:t[2]||(t[2]=e=>r("edit",n.value))},{default:ci((()=>[Fl(Ao(U8),{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),autofocus:""},null,8,["modelValue"])])),_:1}))}}),nje=Li({__name:"RequestSidebarItemMenu",props:{menuItem:{}},emits:["closeMenu","toggleWatchMode","clearDrafts"],setup(e,{emit:t}){const r=e,n=t,{replace:a}=Lme(),{activeRouterParams:o,activeWorkspaceCollections:i,activeWorkspaceRequests:s}=Eye(),{events:l,requestMutators:c}=Obe(),u=X8(),d=X8(),p=X8(),h=()=>{var e;return l.commandPalette.emit({commandName:"Add Example",metaData:{itemUid:null==(e=r.menuItem.item)?void 0:e.entity.uid}})},f=(e,t)=>{var n;null==(n=r.menuItem.item)||n.edit(e,t),u.hide()},m=()=>{var e,t,n;if(null==(e=r.menuItem.item)||e.delete(),!s.value.length){const{request:e}=lbe(),t=i.value.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)}));t&&(c.add(e,t.uid),a({name:"request",params:{[wye.Request]:e.uid}}))}if(o.value[wye.Request]===(null==(t=r.menuItem.item)?void 0:t.entity.uid)&&a({name:"request",params:{[wye.Request]:"default"}}),o.value[wye.Examples]===(null==(n=r.menuItem.item)?void 0:n.entity.uid)&&a({name:"request",params:{[wye.Request]:"default"}}),i.value[0]){const e=i.value[0].requests[0];a({name:"request",params:{[wye.Request]:e}})}d.hide()},g=So(null);ul([()=>r.menuItem.open,g],(async([e])=>{var t,r;e&&null!=(r=null==(t=g.value)?void 0:t.$parent)&&r.$el&&g.value.$parent.$el.focus()}));const v=()=>r.menuItem.open&&n("closeMenu");Yi((()=>window.addEventListener("click",v))),es((()=>window.removeEventListener("click",v)));const b=()=>{n("toggleWatchMode",r.menuItem.item)},y=()=>{n("clearDrafts"),p.hide()},O=hc((()=>{var e;return"Drafts"===(null==(e=r.menuItem.item)?void 0:e.title)}));return(e,t)=>{var r,n;return Pl(),Rl(Sl,null,[e.menuItem.targetRef&&e.menuItem.open?(Pl(),Nl(Ao(yX),{key:0,placement:"right-start",target:e.menuItem.targetRef,teleport:""},{floating:ci((()=>[Fl(Ao(EX),{onKeydown:t[3]||(t[3]=Eu((t=>e.$emit("closeMenu")),["escape"]))},{default:ci((()=>{var r,n;return["request"===(null==(r=e.menuItem.item)?void 0:r.entity.type)?(Pl(),Nl(Ao(s8),{key:0,class:"flex gap-2",onClick:h},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Example",size:"md",thickness:"1.5"}),t[8]||(t[8]=Ul("span",null,"Add Example",-1))])),_:1,__:[8]})):Vl("",!0),O.value?Vl("",!0):(Pl(),Nl(Ao(s8),{key:1,ref_key:"menuRef",ref:g,class:"flex gap-2",onClick:t[0]||(t[0]=e=>Ao(u).show())},{default:ci((()=>{var t;return[Fl(Ao(U5),{class:"inline-flex",icon:"Edit",size:"md",thickness:"1.5"}),Ul("span",null,["collection"===(null==(t=e.menuItem.item)?void 0:t.entity.type)?(Pl(),Rl(Sl,{key:0},[ql(" Edit ")],64)):(Pl(),Rl(Sl,{key:1},[ql(" Rename ")],64))])]})),_:1},512)),null!=(n=e.menuItem.item)&&n.documentUrl?(Pl(),Nl(Ao(s8),{key:2,ref_key:"menuRef",ref:g,class:"flex gap-2",onClick:b},{default:ci((()=>{var t,r;return[Fl(Ao(U5),{class:"inline-flex",icon:null!=(t=e.menuItem.item)&&t.watchMode?"Unwatch":"Watch",size:"md",thickness:"1.5"},null,8,["icon"]),Ul("span",null,Gn(null!=(r=e.menuItem.item)&&r.watchMode?"Disable Watch Mode":"Enable Watch Mode"),1)]})),_:1},512)):Vl("",!0),O.value?Vl("",!0):(Pl(),Nl(Ao(s8),{key:3,class:"flex gap-2",onClick:t[1]||(t[1]=e=>Ao(d).show())},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),t[9]||(t[9]=Ul("span",null,"Delete",-1))])),_:1,__:[9]})),O.value?(Pl(),Nl(Ao(s8),{key:4,class:"flex gap-2",onClick:t[2]||(t[2]=e=>Ao(p).show())},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),t[10]||(t[10]=Ul("span",null,"Clear Drafts",-1))])),_:1,__:[10]})):Vl("",!0)]})),_:1})])),_:1},8,["target"])):Vl("",!0),Fl(Ao(Y8),{size:"xxs",state:Ao(d),title:`Delete ${null==(r=e.menuItem.item)?void 0:r.resourceTitle}`},{default:ci((()=>{var r,n;return[Fl(XLe,{variableName:(null==(r=e.menuItem.item)?void 0:r.title)??"",warningMessage:null==(n=e.menuItem.item)?void 0:n.warning,onClose:t[4]||(t[4]=e=>Ao(d).hide()),onDelete:m},null,8,["variableName","warningMessage"])]})),_:1},8,["state","title"]),Fl(Ao(Y8),{size:"xxs",state:Ao(u),title:`Edit ${null==(n=e.menuItem.item)?void 0:n.resourceTitle}`},{default:ci((()=>{var r,n,a,o;return["Collection"===(null==(r=e.menuItem.item)?void 0:r.resourceTitle)?(Pl(),Nl(tje,{key:0,icon:(null==(n=e.menuItem.item)?void 0:n.icon)||"interface-content-folder",name:null==(a=e.menuItem.item)?void 0:a.title,onClose:t[5]||(t[5]=e=>Ao(u).hide()),onEdit:f},null,8,["icon","name"])):(Pl(),Nl(rje,{key:1,name:(null==(o=e.menuItem.item)?void 0:o.title)??"",onClose:t[6]||(t[6]=e=>Ao(u).hide()),onEdit:f},null,8,["name"]))]})),_:1},8,["state","title"]),Fl(Ao(Y8),{size:"xxs",state:Ao(p),title:"Clear Drafts"},{default:ci((()=>[Fl(XLe,{variableName:"All Drafts",warningMessage:"This action will clear all drafts. This cannot be undone.",onClose:t[7]||(t[7]=e=>Ao(p).hide()),onDelete:y})])),_:1},8,["state"])],64)}}}),aje=a6(nje,[["__scopeId","data-v-709241c2"]]),oje=So(null),ije=So(null),sje=["draggable"],lje=Li({__name:"Draggable",props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}},emits:["onDragEnd","onDragStart"],setup(e,{expose:t,emit:r}){const n=r,a=hc((()=>e.parentIds.at(-1)??null)),o=t=>{!t.dataTransfer||!(t.target instanceof HTMLElement)||!e.isDraggable||(t.target.classList.add("dragging"),t.dataTransfer.dropEffect="move",t.dataTransfer.effectAllowed="move",oje.value={id:e.id,parentId:a.value},n("onDragStart",{id:e.id,parentId:a.value}))},i=(e=>{let t=!1;return(...r)=>{t||(e(...r),t=!0,setTimeout((()=>t=!1),25))}})((t=>{var r,n;if(!oje.value||oje.value.id===e.id||e.parentIds.includes((null==(r=oje.value)?void 0:r.id)??""))return;const o=null==(n=ije.value)?void 0:n.offset,i=t.target.offsetHeight,s=e.floor*i,l=e.ceiling*i;let c=3;t.offsetY<=0&&o&&3!==o?c=o:t.offsetY<=s?c=0:t.offsetY>=l?c=1:t.offsetY>s&&t.offsetY<l&&(c=2),(t=>"function"==typeof e.isDroppable?e.isDroppable(oje.value,{id:e.id,parentId:a.value,offset:t}):e.isDroppable)(c)&&(ije.value={id:e.id,parentId:a.value,offset:c})})),s=["above","below","asChild"],l=hc((()=>{var t;let r="sidebar-indent-nested";return e.id===(null==(t=ije.value)?void 0:t.id)&&(r+=` dragover-${s[ije.value.offset]}`),r})),c=()=>{if(!ije.value||!oje.value)return;const e={...oje.value},t={...ije.value};oje.value=null,ije.value=null,document.querySelectorAll("div.dragging").forEach((e=>e.classList.remove("dragging"))),e.id!==t.id&&n("onDragEnd",e,t)};return t({draggingItem:oje,hoveredItem:ije}),(e,t)=>(Pl(),Rl("div",{class:zn(l.value),draggable:e.isDraggable,onDragend:c,onDragover:t[0]||(t[0]=Su(((...e)=>Ao(i)&&Ao(i)(...e)),["prevent","stop"])),onDragstart:Su(o,["stop"])},[fs(e.$slots,"default",{},void 0,!0)],42,sje))}}),cje=((e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r})(lje,[["__scopeId","data-v-a89d6a6e"]]),uje={class:"line-clamp-1 w-full pl-2 break-all"},dje={class:"flex flex-row items-center gap-1"},pje={class:"relative"},hje={class:"flex items-start"},fje={class:"flex flex-1 flex-row justify-between font-medium"},mje={class:"line-clamp-1 w-full text-left break-all"},gje={class:"relative flex h-fit justify-end"},vje={class:"flex items-center justify-center",type:"button"},bje=["aria-expanded"],yje={class:"flex h-5 max-w-[14px] items-center justify-center"},Oje={class:"flex flex-1 flex-row justify-between"},wje={class:"line-clamp-1 w-full text-left font-medium break-all"},xje={class:"relative flex h-fit justify-end"},kje={class:"flex items-center justify-center",type:"button"},Sje={key:3},_je="hover:bg-sidebar-b-active indent-padding-left",Eje=Li({__name:"RequestSidebarItem",props:{isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},parentUids:{},uid:{},menuItem:{}},emits:["onDragEnd","newTab","openMenu"],setup(e,{emit:t}){qc((e=>({eae2c57a:x.value,"7c91ad9b":k.value})));const r=t,{activeCollection:n,activeRequest:a,activeRouterParams:o,activeWorkspace:i}=Eye(),{collections:s,tags:l,requests:c,requestExamples:u,collectionMutators:d,tagMutators:p,requestMutators:h,requestExampleMutators:f,events:m}=Obe(),g=Lme(),{collapsedSidebarFolders:v,toggleSidebarFolder:b}=Kbe(),{layout:y}=age(),O=hc((()=>{var t,r,n,a,o,m;const g=s[e.uid],v=l[e.uid],b=c[e.uid],y=u[e.uid];return g?{title:(null==(t=g.info)?void 0:t.title)||"Untitled Collection",entity:g,resourceTitle:"Collection",children:g.children,icon:g["x-scalar-icon"],documentUrl:g.documentUrl,watchMode:g.watchMode,to:g.uid&&"Drafts"!==(null==(r=null==g?void 0:g.info)?void 0:r.title)?{name:"collection",params:{[wye.Workspace]:null==(n=i.value)?void 0:n.uid,[wye.Collection]:g.uid}}:void 0,warning:"This cannot be undone. You're about to delete the collection and all folders and requests inside it.",edit:(e,t)=>{d.edit(g.uid,"info.title",e),t&&d.edit(g.uid,"x-scalar-icon",t)},delete:()=>{i.value&&d.delete(g,i.value)}}:v?{title:v.name,entity:v,resourceTitle:"Tag",children:v.children,warning:"This cannot be undone. You're about to delete the tag and all requests inside it",edit:e=>p.edit(v.uid,"name",e),delete:()=>e.parentUids[0]&&p.delete(v,e.parentUids[0])}:b?{title:b.summary??b.path,to:{name:"request",params:{workspace:null==(a=i.value)?void 0:a.uid,request:b.uid}},method:b.method,entity:b,resourceTitle:"Request",warning:"This cannot be undone. You're about to delete the request.",children:b.examples.slice(1),edit:e=>h.edit(b.uid,"summary",e),delete:()=>e.parentUids[0]&&h.delete(b,e.parentUids[0])}:null!=y&&y.requestUid?{title:y.name,to:{name:"request.examples",params:{workspace:null==(o=i.value)?void 0:o.uid,request:y.requestUid,examples:y.uid}},method:null==(m=c[y.requestUid])?void 0:m.method,entity:y,resourceTitle:"Example",warning:"This cannot be undone. You're about to delete the example from the request.",children:[],edit:e=>f.edit(y.uid,"name",e),delete:()=>f.delete(y)}:{title:"Unknown",entity:{uid:"",type:"unknown"},resourceTitle:"Unknown",children:[],edit:()=>null,delete:()=>null}})),w=hc((()=>"collection"===O.value.entity.type&&"Drafts"===O.value.title)),x=hc((()=>e.parentUids.length?"modal"===y?12*(e.parentUids.length-1)+"px":12*e.parentUids.length+"px":"12px")),k=hc((()=>e.parentUids.length?"modal"===y?12*(e.parentUids.length-1)+"px":12*e.parentUids.length+"px":"0px")),S=hc((()=>{var t;return v[e.uid]||(null==(t=a.value)?void 0:t.uid)===e.uid&&O.value.entity.examples.length>1})),_=hc((()=>{var t;return"string"==typeof g.currentRoute.value.name&&g.currentRoute.value.name.startsWith("request")&&"default"===o.value[wye.Request]&&(null==(t=a.value)?void 0:t.uid)===e.uid})),E=So(null),T=hc((()=>{let e=.5,t=.5;if(!E.value)return{ceiling:e,floor:t};const{draggingItem:r}=E.value;return s[null==r?void 0:r.id]||"collection"!==O.value.entity.type?"tag"===O.value.entity.type&&(e=.8,t=.2):(e=1,t=0),{ceiling:e,floor:t}})),A=(e,t)=>!("modal"===y||u[t.id]||s[e.id]);function C(t){var r,n,a;const o=e.parentUids[0]?(null==(r=s[e.parentUids[0]])?void 0:r.uid)||"":t,c=e.parentUids[0]&&null!=(n=l[t])&&n.name?{tags:[l[t].name]}:{},u=h.add(c,o);u&&(g.push({name:"request",params:{workspace:null==(a=i.value)?void 0:a.uid,request:u.uid}}),m.hotKeys.emit({focusAddressBar:new KeyboardEvent("keydown",{key:"l"})}))}const P=hc((()=>{const{uid:e,watchModeStatus:t}=n.value||{};return e!==O.value.entity.uid?"text-c-3":"WATCHING"===t?"text-c-1":"ERROR"===t?"text-red":"text-c-3"})),$=hc((()=>"Drafts"===O.value.title&&"modal"!==y&&O.value.children.length>0)),D=hc((()=>{const t=c[e.uid];if(t)return!fL(t);const r=l[e.uid];return!r||!fL(r)}));return(e,t)=>{const n=ss("RequestSidebarItem",!0);return D.value?(Pl(),Rl("li",{key:0,class:zn(["relative flex flex-row",["modal"===Ao(y)&&e.parentUids.length>1||"modal"!==Ao(y)&&e.parentUids.length?"before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":""]])},[Fl(Ao(cje),{id:O.value.entity.uid,ref_key:"draggableRef",ref:E,ceiling:T.value.ceiling,class:"gap-1/2 flex flex-1 flex-col text-base",floor:T.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,parentIds:e.parentUids,onOnDragEnd:t[12]||(t[12]=(...t)=>e.$emit("onDragEnd",...t))},{default:ci((()=>{var a;return["request"!==O.value.entity.type&&"requestExample"!==O.value.entity.type||!O.value.to?("modal"!==Ao(y)||e.parentUids.length)&&"collection"===O.value.entity.type&&O.value.to?(Pl(),Nl(Ao($me),{key:1,"aria-expanded":!!Ao(v)[O.value.entity.uid],class:zn(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10",[_je,{"bg-sidebar-b-active text-sidebar-c-active transition-none":"string"==typeof Ao(g).currentRoute.value.name&&Ao(g).currentRoute.value.name.startsWith("collection")&&Ao(g).currentRoute.value.params[Ao(wye).Collection]===O.value.entity.uid,"text-c-2":"Untitled Collection"===O.value.title}]]),to:O.value.to},{default:ci((()=>{var r;return[Ul("span",{class:"flex h-5 max-w-[14px] cursor-pointer items-center justify-center",onClick:t[2]||(t[2]=Su((e=>Ao(b)(O.value.entity.uid)),["stop","prevent"]))},[fs(e.$slots,"leftIcon",{},(()=>[Fl(Ao(E8),{class:"text-c-3 shrink-0",open:!!Ao(v)[O.value.entity.uid]},null,8,["open"])]),!0),t[15]||(t[15]=ql(" "))]),Ul("div",fje,[Ul("span",mje,Gn(O.value.title),1),Ul("div",gje,[Ul("div",{class:zn(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:e.menuItem.open,hidden:!e.menuItem.open||(null==(r=e.menuItem.item)?void 0:r.entity.uid)!==O.value.entity.uid}])},["modal"!==Ao(y)&&!w.value||w.value&&$.value?(Pl(),Nl(Ao(aF),{key:0,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[3]||(t[3]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"md"})])),_:1})):Vl("",!0),"modal"!==Ao(y)?(Pl(),Nl(Ao(aF),{key:1,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[4]||(t[4]=Su((e=>C(O.value.entity.uid)),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"md",thickness:"2"})])),_:1})):Vl("",!0)],2),O.value.watchMode?(Pl(),Nl(Ao(q8),{key:0,placement:"right",offset:12,content:`Watching: ${O.value.documentUrl}`},{default:ci((()=>[Ul("button",vje,[Fl(Ao(U5),{class:zn(["ml-0.5 text-sm",P.value]),icon:"Watch",size:"md",thickness:"2"},null,8,["class"])])])),_:1},8,["content"])):Vl("",!0),t[16]||(t[16]=Ul("span",null," ",-1))])])]})),_:3},8,["aria-expanded","class","to"])):"modal"!==Ao(y)||e.parentUids.length?(Pl(),Rl("button",{key:2,"aria-expanded":!!Ao(v)[O.value.entity.uid],class:zn(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10",[_je]]),type:"button",onClick:t[7]||(t[7]=e=>Ao(b)(O.value.entity.uid))},[Ul("span",yje,[fs(e.$slots,"leftIcon",{},(()=>[Fl(Ao(E8),{class:"text-c-3 hover:text-c-1 shrink-0",open:!!Ao(v)[O.value.entity.uid]},null,8,["open"])]),!0),t[17]||(t[17]=ql(" "))]),Ul("div",Oje,[Ul("span",wje,Gn(O.value.title),1),Ul("div",xje,[Ul("div",{class:zn(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:e.menuItem.open,hidden:!e.menuItem.open||(null==(a=e.menuItem.item)?void 0:a.entity.uid)!==O.value.entity.uid}])},["modal"!==Ao(y)&&!w.value||w.value&&$.value?(Pl(),Nl(Ao(aF),{key:0,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[5]||(t[5]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"md"})])),_:1})):Vl("",!0),"modal"!==Ao(y)?(Pl(),Nl(Ao(aF),{key:1,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[6]||(t[6]=Su((e=>C(O.value.entity.uid)),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"md",thickness:"2"})])),_:1})):Vl("",!0)],2),O.value.watchMode?(Pl(),Nl(Ao(q8),{key:0,content:"Watching: {{ item.documentUrl }}",placement:"right",offset:12},{default:ci((()=>[Ul("button",kje,[Fl(Ao(U5),{class:zn(["ml-0.5 text-sm",P.value]),icon:"Watch",size:"md",thickness:"2"},null,8,["class"])])])),_:1})):Vl("",!0),t[18]||(t[18]=Ul("span",null," ",-1))])])],10,bje)):Vl("",!0):(Pl(),Nl(Ao($me),{key:0,class:"group no-underline",to:O.value.to,onClick:t[1]||(t[1]=Su((e=>((e,t)=>{e&&(UCe(["default"]).some((t=>e[t]))?r("newTab",t.title||"",t.entity.uid):t.to&&g.push(t.to),Ko((()=>m.focusAddressBar.emit())))})(e,O.value)),["prevent"]))},{default:ci((({isExactActive:r})=>{var n,a;return[Ul("div",{class:zn(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2",[_je,r||_.value?"bg-sidebar-b-active text-sidebar-c-active font-medium transition-none":"text-sidebar-c-2"]])},[Ul("span",uje,Gn(O.value.title||"Untitled"),1),Ul("div",dje,[Ul("div",pje,["modal"!==Ao(y)?(Pl(),Nl(Ao(aF),{key:0,class:zn(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:(null==(a=null==(n=e.menuItem)?void 0:n.item)?void 0:a.entity.uid)===O.value.entity.uid&&e.menuItem.open}]),size:"sm",type:"button",variant:"ghost",onClick:t[0]||(t[0]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget,open:!e.menuItem.open})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"md"})])),_:1},8,["class"])):Vl("",!0)]),Ul("span",hje,[t[13]||(t[13]=ql(" ")),t[14]||(t[14]=Ul("span",{class:"sr-only"},"HTTP Method:",-1)),O.value.method?(Pl(),Nl(Ao(mge),{key:0,class:"font-bold",method:O.value.method},null,8,["method"])):Vl("",!0)])])],2)]})),_:1},8,["to"])),S.value?(Pl(),Rl("ul",Sje,[(Pl(!0),Rl(Sl,null,ps(O.value.children,(r=>(Pl(),Nl(n,{key:r,isDraggable:!Ao(u)[r],isDroppable:A,menuItem:e.menuItem,parentUids:[...e.parentUids,e.uid],uid:r,onNewTab:t[8]||(t[8]=(t,r)=>e.$emit("newTab",t,r)),onOnDragEnd:t[9]||(t[9]=(...t)=>e.$emit("onDragEnd",...t)),onOpenMenu:t[10]||(t[10]=t=>e.$emit("openMenu",t))},null,8,["isDraggable","menuItem","parentUids","uid"])))),128)),0===O.value.children.length?(Pl(),Nl(Ao(aF),{key:0,class:zn(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs",e.parentUids.length?"pl-9":""]),variant:"ghost",onClick:t[11]||(t[11]=e=>C(O.value.entity.uid))},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"sm"}),t[19]||(t[19]=Ul("span",null,"Add Request",-1))])),_:1,__:[19]},8,["class"])):Vl("",!0)])):Vl("",!0)]})),_:3},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])],2)):Vl("",!0)}}}),Tje=a6(Eje,[["__scopeId","data-v-4dedda07"]]),Aje={class:"flex w-[inherit] items-center text-base"},Cje={class:"m-0 flex items-center gap-1.5 font-bold"},Pje={class:"line-clamp-1 text-left"},$je={class:"overflow-hidden text-ellipsis"},Dje={class:"flex h-4 w-4 items-center justify-center"},Mje=Li({__name:"WorkspaceDropdown",setup(e){const{activeWorkspace:t}=Eye(),{workspaces:r,workspaceMutators:n,events:a}=Obe(),{push:o}=Lme(),i=hc((()=>1===Object.keys(r).length)),s=()=>a.commandPalette.emit({commandName:"Create Workspace"}),l=So(""),c=So(""),u=X8(),d=X8(),p=e=>{const t=r[e];t&&(l.value=t.name,c.value=e,u.show())},h=e=>{e.trim()&&(n.edit(c.value,"name",e.trim()),u.hide())},f=e=>{const t=r[e];t&&(l.value=t.name,c.value=e,d.show())},m=async()=>{var e;if(!i.value){const a=(null==(e=t.value)?void 0:e.uid)===c.value,i={...r};if(delete i[c.value],n.delete(c.value),a){const e=Object.keys(i)[0];await o({name:"workspace",params:{workspace:e}})}}d.hide()};return(e,n)=>(Pl(),Rl("div",null,[Ul("div",Aje,[Fl(Ao(TX),null,{items:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Ao(r),((e,r)=>(Pl(),Nl(Ao(Z8),{key:r,class:"group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:Su((r=>(e=>{var r;e!==(null==(r=t.value)?void 0:r.uid)&&o({name:"workspace",params:{workspace:e}})})(e.uid)),["stop"])},{default:ci((()=>{var a;return[Fl(Ao(TH),{selected:(null==(a=Ao(t))?void 0:a.uid)===r},null,8,["selected"]),Ul("span",$je,Gn(e.name),1),Fl(Ao(TX),{placement:"right-start",teleport:""},{items:ci((()=>[Fl(Ao(Z8),{class:"flex gap-2",onMousedown:t=>p(e.uid),onTouchend:Su((t=>p(e.uid)),["prevent"])},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Edit",size:"md",thickness:"1.5"}),n[2]||(n[2]=Ul("span",null,"Rename",-1))])),_:2,__:[2]},1032,["onMousedown","onTouchend"]),i.value?Vl("",!0):(Pl(),Nl(Ao(Z8),{key:0,class:"flex gap-2",onMousedown:Su((t=>f(e.uid)),["prevent"]),onTouchend:Su((t=>f(e.uid)),["prevent"])},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),n[3]||(n[3]=Ul("span",null,"Delete",-1))])),_:2,__:[3]},1032,["onMousedown","onTouchend"]))])),default:ci((()=>[Fl(Ao(aF),{class:"hover:bg-b-3 -mr-1 ml-auto aspect-square h-fit px-0.5 py-0 group-hover/item:flex",size:"sm",type:"button",variant:"ghost"},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"sm"})])),_:1})])),_:2},1024)]})),_:2},1032,["onClick"])))),128)),Fl(Ao(c8)),Fl(Ao(Z8),{class:"flex items-center gap-1.5",onClick:s},{default:ci((()=>[Ul("div",Dje,[Fl(Ao(U5),{icon:"Add",size:"sm"})]),n[4]||(n[4]=Ul("span",null,"Create Workspace",-1))])),_:1,__:[4]})])),default:ci((()=>[Fl(Ao(aF),{class:"text-c-1 hover:bg-b-2 line-clamp-1 h-full w-fit justify-start px-1.5 py-1.5 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("div",Cje,[Ul("h2",Pje,Gn(null==(e=Ao(t))?void 0:e.name),1)])]})),_:1})])),_:1})]),Fl(Ao(Y8),{size:"xxs",state:Ao(d),title:"Delete workspace"},{default:ci((()=>[Fl(XLe,{variableName:l.value,warningMessage:"This cannot be undone. You're about to delete the workspace and everything inside it.",onClose:n[0]||(n[0]=e=>Ao(d).hide()),onDelete:m},null,8,["variableName"])])),_:1},8,["state"]),Fl(Ao(Y8),{size:"xxs",state:Ao(u),title:"Rename Workspace"},{default:ci((()=>[Fl(rje,{name:l.value,onClose:n[1]||(n[1]=e=>Ao(u).hide()),onEdit:h},null,8,["name"])])),_:1},8,["state"])]))}}),Rje={class:"bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3"},Nje={key:1,class:"text-c-3"},Ije=["aria-pressed"],Lje={class:"sr-only"},jje={key:0,class:"search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",role:"search"},Bje={key:1,class:"contents"},Uje={key:0,class:"empty-sidebar-item-content px-2.5 py-2.5"},Fje={class:"rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]"},Qje=Li({__name:"RequestSidebar",emits:["newTab","clearDrafts"],setup(e,{emit:t}){const r=t,{collapsedSidebarFolders:n,isSidebarOpen:a,setCollapsedSidebarFolder:o,toggleSidebarOpen:i}=Kbe(),{layout:s}=age(),l=Obe(),{activeCollection:c,activeWorkspaceCollections:u,activeRequest:d,activeWorkspaceRequests:p,activeWorkspace:h}=Eye(),{findRequestParents:f,events:m,requestMutators:g,requests:v}=l,{handleDragEnd:b,isDroppable:y}=function(e,{collections:t,collectionMutators:r,tags:n,tagMutators:a,workspaceMutators:o}){const{layout:i}=age(),s=(e,t)=>{"collection"===e.type?r.edit(e.uid,"children",t):"tag"===e.type&&a.edit(e.uid,"children",t)};return{handleDragEnd:(i,l)=>{var c,u,d,p;if(!i||!l)return;const{id:h,parentId:f}=i,{id:m,parentId:g,offset:v}=l;if(f?t[f]?r.edit(f,"children",t[f].children.filter((e=>e!==h))):n[f]&&a.edit(f,"children",n[f].children.filter((e=>e!==h))):o.edit(null==(c=e.value)?void 0:c.uid,"collections",(null==(u=e.value)?void 0:u.collections.filter((e=>e!==h)))??[]),2===v){const e=t[m]||n[m];e&&s(e,[...e.children??[],h])}else if(g){const e=t[g]||n[g];if(!e)return;const r=[...e.children??[]],a=r.findIndex((e=>m===e))??0;r.splice(a+v,0,h),s(e,r)}else{const t=[...(null==(d=e.value)?void 0:d.collections)??[]],r=t.findIndex((e=>m===e))??0;t.splice(r+v,0,h),o.edit(null==(p=e.value)?void 0:p.uid,"collections",t)}},isDroppable:(e,r)=>{var n,a;return!("modal"===i||!t[e.id]&&2!==r.offset||t[e.id]&&"Drafts"===(null==(a=null==(n=t[r.id])?void 0:n.info)?void 0:a.title))}}}(h,l),{replace:O}=Lme(),w=()=>{m.commandPalette.emit({commandName:"Import from OpenAPI/Swagger/Postman/cURL"})},x=ji(),{toast:k}=cH(),S=uo({open:!1}),_=So(!1);ul(d,(e=>{e&&f(e).forEach((e=>o(e,!0)))}),{immediate:!0});const{searchText:E,searchResultsWithPlaceholderResults:T,selectedSearchResult:A,onSearchResultClick:C,fuseSearch:P,searchInputRef:$,searchResultRefs:D,navigateSearchResults:M,selectSearchResult:R}=function(){const e=Lme(),{activeWorkspace:t,activeWorkspaceRequests:r,activeWorkspaceCollections:n}=Eye(),{requests:a,tags:o}=Obe(),i=So([]),s=So([]),l=So(0),c=So(""),u=So(null),d=So([]),p=new ufe(i.value,{keys:["title","description","body"]}),h=r=>{i.value=r.filter((e=>!fL(e))).filter((e=>{var t;const r=null==(t=n.value)?void 0:t.find((t=>t.requests.includes(e.uid)));return!(null!=r&&r.tags.map((e=>o[e])).filter(_L).filter((t=>{var r;return null==(r=e.tags)?void 0:r.includes(t.name)})).filter((e=>fL(e))).length)})).map((r=>{var n,a;return{id:r.uid,title:r.summary??r.method,description:r.description??"",httpVerb:r.method,path:r.path,link:null==(a=null==e?void 0:e.resolve({name:"request",params:{[wye.Request]:r.uid,[wye.Workspace]:null==(n=t.value)?void 0:n.uid}}))?void 0:a.href}})),p.setCollection(i.value)},f=()=>{l.value=0,s.value=p.search(c.value)};ul(c,(e=>{e.length?f():s.value=[]}));const m=hc((()=>r.value.map((e=>a[e])).filter(_L)));ul(r,(()=>{h(m.value)}),{immediate:!0});const g=t=>{e.push(t.item.id),c.value="",l.value=0,s.value=[],u.value instanceof HTMLInputElement&&u.value.blur()},v=hc((()=>0===c.value.length?i.value.map((e=>({item:e}))):s.value));return{searchText:c,searchResultsWithPlaceholderResults:v,selectedSearchResult:l,onSearchResultClick:g,fuseSearch:f,searchInputRef:u,searchResultRefs:d,navigateSearchResults:e=>{const t="up"===e?-1:1,r=v.value.length;l.value=(l.value+t+r)%r,Ko((()=>{const e=d.value[l.value];e instanceof HTMLElement&&e.scrollIntoView({behavior:"smooth",block:"center"})}))},selectSearchResult:()=>{if(l.value>=0){const e=v.value[l.value];e&&g(e)}},populateFuseDataArray:h}}(),N=So(),I=e=>{var t;e&&(e.toggleSidebar&&i(),e.focusRequestSearch&&(null==(t=$.value)||t.focus()))};Yi((()=>m.hotKeys.on(I))),es((()=>{m.hotKeys.off(I)}));const L=e=>{if(null!=e&&e.documentUrl){e.watchMode=!e.watchMode;const t=u.value.find((t=>t.uid===e.entity.uid));t&&(t.watchMode=e.watchMode)}};ul((()=>u.value.map((e=>e.watchMode))),((e,t)=>{e.forEach(((e,r)=>{var n,a,o;if("modal"!==s&&e!==t[r]&&"Drafts"!==(null==(a=null==(n=u.value[r])?void 0:n.info)?void 0:a.title)&&u.value[r]){const t=u.value[r];if(!t)return;const n=`${null==(o=t.info)?void 0:o.title}: Watch Mode ${e?"enabled":"disabled"}`;k(n,"info")}}))}));const j=hc((()=>{var e;const t=T.value;if(!t.length)return"No results found";const r=null==(e=t[A.value])?void 0:e.item;if(!r)return"No result selected";const n=E.value.length?`${t.length} result${1===t.length?"":"s"} found, `:"",a=`, HTTP Method ${r.httpVerb}, Path ${r.path}`;return`${n}Selected: ${r.title} ${a}`})),B=()=>{const e=u.value.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)}));if(e&&e.requests.forEach((t=>{v[t]&&g.delete(v[t],e.uid)})),p.value.length){const e=u.value[0],t=null==e?void 0:e.requests[0];t&&O({name:"request",params:{[wye.Request]:t}})}else{const{request:t}=lbe();e&&(g.add(t,e.uid),O({name:"request",params:{[wye.Request]:t.uid}}))}};ul(_,(e=>{e||(E.value="")}));const U=hc((()=>((e,t,r)=>{var n;const a=e.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)})),o=1===t.length;if(!t[0])return!1;const i=null==a?void 0:a.requests.includes(t[0]);if(!i)return!1;const s="My First Request"!==(null==(n=r[(null==a?void 0:a.requests[0])??""])?void 0:n.summary);return o&&i&&!s})(u.value,p.value,v))),F=hc((()=>"modal"===s&&c.value?[c.value]:u.value));function Q(e){!E.value&&e.relatedTarget!==N.value&&(_.value=!1)}return(e,t)=>(Pl(),Rl(Sl,null,[ui(Fl(Ao(nye),{class:zn([Ao(a)?"sidebar-active-width":""])},hs({content:ci((()=>[Ul("div",Rje,[Ul("div",{class:zn(["size-8",{"xl:hidden":"modal"!==Ao(s)}])},null,2),"modal"!==Ao(s)?(Pl(),Nl(Ao(Mje),{key:0})):Vl("",!0),"modal"!==Ao(s)?(Pl(),Rl("span",Nje," / ")):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(jLe,{key:2})):Vl("",!0),Ul("button",{ref_key:"searchToggleRef",ref:N,"aria-pressed":_.value,class:"ml-auto",type:"button",onClick:t[0]||(t[0]=e=>_.value=!_.value)},[Ul("span",Lje,Gn(_.value?"Hide":"Show")+" search ",1),Fl(Ao(U5),{class:"text-c-3 hover:bg-b-2 max-h-8 max-w-8 rounded-lg p-1.75 text-sm",icon:"Search"})],8,Ije)]),_.value?(Pl(),Rl("div",jje,[Fl(Ao($8),{ref_key:"searchInputRef",ref:$,modelValue:Ao(E),"onUpdate:modelValue":t[1]||(t[1]=e=>ko(E)?E.value=e:null),autofocus:"","aria-controls":Ao(x),label:j.value,onInput:Ao(P),onKeydown:[t[2]||(t[2]=Eu(Su((e=>Ao(M)("down")),["stop"]),["down"])),t[3]||(t[3]=Eu(Su((e=>Ao(R)()),["stop"]),["enter"])),t[4]||(t[4]=Eu(Su((e=>Ao(M)("up")),["stop"]),["up"]))],onBlur:Q},null,8,["modelValue","aria-controls","label","onInput"])])):Vl("",!0),Ul("div",{class:zn(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pt-0 pb-3",[{"pb-14":"modal"!==Ao(s)},{"h-[calc(100%-273.5px)]":U.value}]]),onDragenter:t[7]||(t[7]=Su((()=>{}),["prevent"])),onDragover:t[8]||(t[8]=Su((()=>{}),["prevent"]))},[Ao(E)?(Pl(),Nl(Ao(h8),{key:0,id:Ao(x),"aria-label":"Search Results",class:"gap-px",noResults:!Ao(T).length},{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Ao(T),((e,r)=>(Pl(),Nl(Ao(w8),{id:`#search-input-${e.item.id}`,key:e.refIndex,ref_for:!0,ref:e=>Ao(D)[r]=e,selected:Ao(A)===r,class:"px-2",href:e.item.link,onClick:Su((t=>Ao(C)(e)),["prevent"]),onFocus:e=>A.value=r},{addon:ci((()=>[t[10]||(t[10]=Ul("span",{class:"sr-only"},"HTTP Method:",-1)),Fl(mge,{class:"font-bold",method:e.item.httpVerb??"get"},null,8,["method"])])),default:ci((()=>[ql(Gn(e.item.title)+" ",1)])),_:2},1032,["id","selected","href","onClick","onFocus"])))),128))])),_:1},8,["id","noResults"])):(Pl(),Rl("nav",Bje,[(Pl(!0),Rl(Sl,null,ps(F.value,(e=>{var a;return Pl(),Nl(Tje,{key:e.uid,isDraggable:"modal"!==Ao(s)&&"Drafts"!==(null==(a=e.info)?void 0:a.title),isDroppable:Ao(y),menuItem:S,parentUids:[],uid:e.uid,onNewTab:t[5]||(t[5]=(e,t)=>r("newTab",{name:e,uid:t})),onOnDragEnd:Ao(b),onOpenMenu:t[6]||(t[6]=e=>Object.assign(S,e))},{leftIcon:ci((()=>{var t;return["Drafts"===(null==(t=e.info)?void 0:t.title)?(Pl(),Nl(Ao(U5),{key:0,class:"text-sidebar-c-2 group-hover:hidden",icon:"Scribble",thickness:"2.25"})):(Pl(),Nl(Ao(NLe),{key:1,class:"text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",src:e["x-scalar-icon"]||"interface-content-folder"},null,8,["src"])),Ul("div",{class:zn({"rotate-90":Ao(n)[e.uid]})},[Fl(Ao(U5),{class:"text-c-3 hover:text-c-1 hidden text-sm group-hover:block",icon:"ChevronRight",size:"md"})],2)]})),_:2},1032,["isDraggable","isDroppable","menuItem","uid","onOnDragEnd"])})),128))]))],34)])),button:ci((()=>[Ul("div",{class:zn({"empty-sidebar-item":U.value})},[U.value?(Pl(),Rl("div",Uje,[Ul("div",Fje,[Fl(ULe,{art:Ao(' ,\\\n \\\\\\,_\n \\` ,\\\n __,.-" =__)\n ." )\n,_/ , \\/\\_\n\\_| )_-\\ \\_-`\n `-----` `--`'),class:"rabbitsit font-bold"},null,8,["art"]),Fl(ULe,{art:Ao(' __\n // \\,_\n \\` ,\\\n __,.-" =__)\n ." )\n,_/ , \\/\\ \n\\_| // / / /\n / / '),class:"rabbitjump absolute top-0 left-0 font-bold"},null,8,["art"])]),t[11]||(t[11]=Ul("div",{class:"mt-2 mb-2 text-center text-sm text-balance"},[Ul("b",{class:"font-medium"},"Let's Get Started"),Ul("p",{class:"mt-2"}," Create request, folder, collection or import from OpenAPI/Postman ")],-1))])):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(Ao(aF),{key:1,class:zn(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0",{"flex opacity-100":U.value}]),onClick:w},{default:ci((()=>t[12]||(t[12]=[ql(" Import Collection ")]))),_:1,__:[12]},8,["class"])):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(qLe,{key:2,click:Ao(m).commandPalette.emit,hotkey:"K"},{title:ci((()=>t[13]||(t[13]=[ql(" Add Item ")]))),_:1},8,["click"])):Vl("",!0)],2)])),_:2},["modal"!==Ao(s)?{name:"header",fn:ci((()=>[])),key:"0"}:void 0]),1032,["class"]),[[Fc,Ao(a)]]),"modal"!==Ao(s)&&S?(Pl(),Nl(aje,{key:0,menuItem:S,onClearDrafts:B,onCloseMenu:t[9]||(t[9]=e=>S.open=!1),onToggleWatchMode:L},null,8,["menuItem"])):Vl("",!0)],64))}}),zje=a6(Qje,[["__scopeId","data-v-bca9c474"]]),qje={"application/epub+zip":{extension:".epub"},"application/gzip":{extension:".gz"},"application/java-archive":{extension:".jar"},"application/javascript":{extension:".js",raw:!0},"application/json":{extension:".json",raw:!0,language:"json"},"application/ld+json":{extension:".jsonld",raw:!0,language:"json"},"application/problem+json":{extension:".json",raw:!0,language:"json"},"application/vnd.api+json":{extension:".json",raw:!0,language:"json"},"application/dns-json":{extension:".json",raw:!0,language:"json"},"application/msword":{extension:".doc"},"application/octet-stream":{extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},"application/vnd.amazon.ebook":{extension:".azw"},"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},"application/vnd.oasis.opendocument.presentation":{extension:".odp"},"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},"application/vnd.oasis.opendocument.text":{extension:".odt"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extension:".pptx"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extension:".xlsx"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extension:".docx"},"application/vnd.rar":{extension:".rar"},"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{extension:".7z"},"application/x-abiword":{extension:".abw"},"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},"application/x-tar":{extension:".tar"},"application/xhtml+xml":{extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/plain":{extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"},"video/x-msvideo":{extension:".avi"}};function Hje(e){return qje[e]||(e.endsWith("+json")?{extension:".json",raw:!0,language:"json"}:void 0)}Object.entries(qje).filter((([,e])=>null==e?void 0:e.raw)).map((([e])=>e));const Vje=()=>typeof window<"u"&&"electron"in window,Zje=({environment:e,example:t,globalCookies:r,proxyUrl:n,request:a,securitySchemes:o,selectedSecuritySchemeUids:i=[],server:s,status:l,pluginManager:c})=>{try{const u=e??{},d=new AbortController,p=t.parameters.path.reduce(((e,t)=>(t.enabled&&(e[t.key]=yye(t.value,u)),e)),{}),h=yye((null==s?void 0:s.url)??"",u),f=yye(yye(a.path,u),p);let m=h||f;if(!m)throw"The address bar input seems to be empty. Try adding a URL.";Object.entries((null==s?void 0:s.variables)??{}).forEach((([e,t])=>{m=yye(m,{[e]:p[e]||t.default})}));const g=function(e,t,r){const n=new URLSearchParams,a=((null==r?void 0:r.parameters)??[]).reduce(((e,t)=>("query"===t.in&&(e[t.name]=t),e)),{});return e.parameters.query.forEach((e=>{if(!e.enabled)return;const r=a[e.key];switch(e.type){case"array":{const a=yye(e.value??"",t).split(/,\ ?/);if(!1===(null==r?void 0:r.explode)){const t=a.join(",");n.append(e.key,t)}else a.forEach((t=>{n.append(e.key,t.trim())}));break}default:{const r=yye(e.value??"",t);n.append(e.key,r.trim());break}}})),n}(t,u,a),v=function(e,t){const r={};return e.parameters.headers.forEach((e=>{const n=e.key.trim().toLowerCase();e.enabled&&("content-type"!==n||"multipart/form-data"!==e.value)&&(r[n]=yye(e.value,t))})),r}(t,u),{body:b}=function(e,t,r){var n,a,o;if(!CL(e))return{body:void 0,contentType:void 0};if("formData"===t.body.activeBody&&t.body.formData){const e="form-data"===t.body.formData.encoding?"multipart/form-data":"application/x-www-form-urlencoded",n="form-data"===t.body.formData.encoding?new FormData:new URLSearchParams;return t.body.formData.value.forEach((e=>{!e.enabled||!e.key||(e.file&&n instanceof FormData?n.append(e.key,e.file,e.file.name):void 0!==e.value&&n.append(e.key,yye(e.value,r)))})),{body:n,contentType:e}}return"raw"===t.body.activeBody?{body:yye((null==(n=t.body.raw)?void 0:n.value)??"",r),contentType:null==(a=t.body.raw)?void 0:a.encoding}:"binary"===t.body.activeBody?{body:t.body.binary,contentType:null==(o=t.body.binary)?void 0:o.type}:{body:void 0,contentType:void 0}}(a.method,t,u),{cookieParams:y}=function({example:e,env:t,globalCookies:r,serverUrl:n,proxyUrl:a}){const o=[],i=(e=>{const t=new URL(e.startsWith("http")?e:`http://${e}`).hostname;return t.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)||t.match(/^[a-fA-F0-9:]+$/)||t.startsWith(".")?t:`.${t}`})(cL(a,n)?a:n??"http://localhost");return r.forEach((e=>{const{name:t,value:r,domain:a,...i}=e;!YEe(n,a)||!t||o.push(GEe.parse({name:t,value:r,domain:a,path:i.path}))})),e.parameters.cookies.forEach((e=>{!e.enabled||!e.key||o.push(GEe.parse({name:e.key,value:yye(e.value,t),domain:i,path:"/"}))})),{cookieParams:o}}({example:t,env:u,globalCookies:r,serverUrl:m,proxyUrl:n}),O=i.flat().map((e=>o[e])).filter(_L),w=TTe(O,u),x={...Object.entries(w.headers).reduce(((e,[t,r])=>(e[t.toLowerCase()]=r,e)),{}),...v},k=[...y,...w.cookies],S=new URLSearchParams([...g,...w.urlParams]);Vje()&&x["user-agent"]&&(x["X-Scalar-User-Agent"]=x["user-agent"]),m=eL(m,f,S);const _=yye(((e,t)=>{const r=e.map((e=>`${e.name}=${e.value}`)).join("; ");return t?`${t}; ${r}`.trim():r.trim()})(k,x.Cookie),u);_&&(Vje()||cL(n,m)?(console.warn("We're using a `X-Scalar-Cookie` custom header to the request. The proxy will forward this as a `Cookie` header. We do this to avoid the browser omitting the `Cookie` header for cross-origin requests for security reasons."),x["X-Scalar-Cookie"]=_):(console.warn("We're trying to add a Cookie header, but browsers often omit them for cross-origin requests for various security reasons. If it's not working, that's probably why. Here are the requirements for it to work:\n\n - The browser URL must be on the same domain as the server URL.\n - The connection must be made over HTTPS.\n "),x.Cookie=_));const E=lL(n,m),T=new Request(E,{method:a.method.toUpperCase(),body:b??null,headers:x});return[null,{request:T,sendRequest:async()=>{var e,r,o;null==l||l.emit("start"),c&&c.executeHook("onBeforeRequest",{request:T});const i=Date.now();try{const s=await fetch(T,{signal:d.signal}),u=null==(e=s.headers.get("content-type"))?void 0:e.startsWith("text/event-stream");null==l||l.emit("stop");const p=Date.now()-i,h=s.clone(),g=((e,t=!1)=>{var r,n;const a=Object.fromEntries(e);t&&["Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers"].map((e=>e.toLowerCase())).forEach((e=>delete a[e]));const o=Object.keys(a).find((e=>"x-scalar-modified-headers"===e.toLowerCase())),i=o?(null==(n=null==(r=a[o])?void 0:r.toString().split(", "))?void 0:n.map((e=>e.toLowerCase())))??[]:[];return Object.keys(a).forEach((e=>{i.includes(e.toLowerCase())&&delete a[e]})),o&&delete a[o],Object.keys(a).forEach((e=>{const t=/^x-scalar-original-/i;if(t.test(e)){const r=e.replace(t,"");a[e]&&(a[r]=a[e],delete a[e])}})),Object.keys(a).forEach((e=>{const t=(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.toLowerCase().slice(1))).join("-"))(e);e!==t&&a[e]&&(a[t]=a[e],delete a[e])})),Object.fromEntries(Object.entries(a).sort((([e],[t])=>e.localeCompare(t))))})(s.headers,cL(n,m)),v=s.headers.get("content-type")??"text/plain;charset=UTF-8",b=await h.arrayBuffer(),y=function(e,t){const r=new gye(t);return function(e){var t;return!(null==(t=Hje(e))||!t.raw)}(r.essence)?new TextDecoder(r.parameters.get("charset")).decode(e):new Blob([e],{type:r.essence})}(b,v),O=s.clone(),w=O.statusText||(null==(r=DL[O.status])?void 0:r.name)||"",x=[204,205,304].includes(O.status),k=new Response(x?null:O.body,{status:O.status,statusText:w,headers:O.headers});c&&c.executeHook("onResponseReceived",{response:k,operation:a});const S="getSetCookie"in k.headers&&"function"==typeof k.headers.getSetCookie?k.headers.getSetCookie():[];return u&&s.body?[null,{timestamp:Date.now(),request:t,response:{...k,headers:g,cookieHeaderKeys:S,reader:null==(o=s.body)?void 0:o.getReader(),duration:p,method:a.method,path:f}}]:[null,{timestamp:Date.now(),request:t,response:{...s,headers:g,cookieHeaderKeys:S,data:y,size:b.byteLength,duration:Date.now()-i,method:a.method,status:s.status,path:f}}]}catch(e){return null==l||l.emit("abort"),[abe(e,"An error occurred while making the request"),null]}},controller:d}]}catch(e){return console.error(e),null==l||l.emit("abort"),[abe(e),null]}},Wje={class:"flex h-full"},Xje={class:"flex h-full flex-1 flex-col"},Gje=Li({__name:"RequestRoot",emits:["newTab"],setup(e){const t=Obe(),{toast:r}=cH(),{layout:n}=age(),a=Bs(VCe,So(Bt.parse({}))),{isSidebarOpen:o}=Kbe(),{activeCollection:i,activeExample:s,activeEnvironment:l,activeRequest:c,activeWorkspace:u,activeServer:d}=Eye(),{cookies:p,requestHistory:h,showSidebar:f,securitySchemes:m,events:g}=t,v=BTe(),b=So(),y=So(),O=So(new Set),w=So(null),x=hc((()=>{var e,t,r;return(null!=(e=i.value)&&e.useCollectionSecurity?null==(t=i.value)?void 0:t.selectedSecuritySchemeUids:null==(r=c.value)?void 0:r.selectedSecuritySchemeUids)??[]})),k=async()=>{var e,t,n,o,f,b;if(!c.value||!s.value||!i.value)return;O.value=(e=>{const t=new Set;return e&&["path","query","headers","cookies"].some((r=>{var n,a;return null==(a=null==(n=e.parameters)?void 0:n[r])?void 0:a.some((e=>{e.required&&""===e.value&&t.add(e.key)}))})),t})(s.value);const k="object"==typeof l.value?l.value.value:"{}",S=h$e.parse(k);S.error&&console.error("INVALID ENVIRONMENT!");const E=S.error||"object"!=typeof S.data?{}:S.data??{},T=(null==(e=u.value)?void 0:e.cookies.map((e=>p[e])).filter(_L))??[],A="Drafts"===(null==(n=null==(t=i.value)?void 0:t.info)?void 0:n.title)?void 0:d.value,[C,P]=Zje({request:c.value,example:s.value,selectedSecuritySchemeUids:x.value,proxyUrl:(null==(o=u.value)?void 0:o.proxyUrl)??"",environment:E,globalCookies:T,status:g.requestStatus,securitySchemes:m,server:A,pluginManager:v});if(null==(b=null==(f=a.value)?void 0:f.onRequestSent)||b.call(f,c.value.path??""),C)return void r(C.message,"error");y.value=P.controller;const[$,D]=await P.sendRequest();w.value=D,$?r($.message,"error"):h.push(_(D))},S=async()=>{var e;return null==(e=y.value)?void 0:e.abort("The request has been cancelled")};Yi((()=>{g.executeRequest.on(k),g.cancelRequest.on(S)})),y$e(),es((()=>g.executeRequest.off(k))),ul((()=>{var e;return null==(e=s.value)?void 0:e.parameters}),(()=>{O.value.clear()}),{deep:!0});const _=e=>{var t;try{return structuredClone(e)}catch{const r={...e};return null!=(t=e.response)&&t.data&&(e.response.data instanceof Blob||e.response.data instanceof ArrayBuffer?r.response.data=e.response.data:r.response.data=JSON.parse(JSON.stringify(e.response.data))),r}};return(e,t)=>(Pl(),Rl("div",{ref_key:"element",ref:b,class:zn(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0",{"!mr-0 !mb-0 !border-0":"modal"===Ao(n)}])},[Ao(f)?(Pl(),Nl(b$e,{key:0,modelValue:Ao(o),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(o)?o.value=e:null),class:zn(["absolute top-2 left-3 z-50",[{hidden:Ao(o)},{"xl:!flex":!Ao(o)},{"!flex":"modal"===Ao(n)}]])},null,8,["modelValue","class"])):Vl("",!0),Ul("div",Wje,[Ao(f)?(Pl(),Nl(zje,{key:0,onNewTab:t[1]||(t[1]=t=>e.$emit("newTab",t))})):Vl("",!0),Ul("div",Xje,[Fl(Ao(Nme),{invalidParams:O.value,selectedSecuritySchemeUids:x.value,requestResult:w.value},null,8,["invalidParams","selectedSecuritySchemeUids","requestResult"])])])],2))}}),Yje=a6(Gje,[["__scopeId","data-v-8a88f90a"]]),Kje=Object.freeze(Object.defineProperty({__proto__:null,default:Yje},Symbol.toStringTag,{value:"Module"})),Jje=" .:=+++++=================-\n .--#* :.\n .-:-** -.\n .:-::-+* =:\n .:-:::-=# ::\n .-:::----** ..\n .-:::::---=# ..\n :-::::::----** ..\n.:-::::::::----*= ..\n.-::::::::------+- ..\n..::::::::-------= ..\n .:::::----------++ ..\n .:::----------+**+*++*+*++*+++*++++++++++:.\n ------------+*+=-=======================.\n .----------+*+=========================:.\n :--------+*+=-========================.\n .=------+*+=-========================:.\n .=----+*+=-------=================+-.\n .----+*+=----------================.\n .:=-+*+=----------=-==============-\n .-+*+=----------------===========.\n .-+=------------------====-====:.",eBe={class:"flex-center flex w-full scale-75"},tBe={class:"relative"},rBe={class:"relative -ml-12"},nBe=Li({__name:"EmptyState",setup:e=>(e,t)=>(Pl(),Rl("div",eBe,[Ul("div",tBe,[Fl(zLe,{class:"keycap-hotkey right-14 border-transparent text-xl",hotkey:""}),Fl(ULe,{art:Ao(Jje),class:"text-c-3 !leading-[6px]"},null,8,["art"])]),Ul("div",rBe,[t[0]||(t[0]=Ul("div",{class:"keycap-hotkey right-16 text-xl"},"K",-1)),Fl(ULe,{art:Ao(Jje),class:"keycap-n !leading-[6px]"},null,8,["art"])])]))}),aBe=a6(nBe,[["__scopeId","data-v-6e1f579f"]]),oBe=Li({__name:"ViewLayout",setup(e){const{cx:t}=WU();return(e,r)=>(Pl(),Rl("div",qn(Ql(Ao(t)("flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"))),[fs(e.$slots,"default")],16))}}),iBe={class:"custom-scroll flex flex-col pr-0 *:border-t *:first:border-t-0 xl:flex-row *:xl:border-t-0 *:xl:border-l *:first:xl:border-l-0"},sBe=a6({},[["render",function(e,t){return Pl(),Rl("div",iBe,[fs(e.$slots,"default")])}]]);var lBe,cBe,uBe,dBe,pBe,hBe={};var fBe=(pBe||(pBe=1,hBe.quote=(cBe||(cBe=1,lBe=function(e){return e.map((function(e){return e&&"object"==typeof e?e.op.replace(/(.)/g,"\\$1"):/["\s]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['\\])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")})).join(" ")}),lBe),hBe.parse=function(){if(dBe)return uBe;dBe=1;for(var e="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",t=new RegExp("^"+e+"$"),r="|&;()<> \\t",n=/^#$/,a="",o=0;o<4;o++)a+=(4294967296*Math.random()).toString(16);var i=new RegExp("^"+a);function s(o,i,s){s||(s={});var l=s.escape||"\\",c=new RegExp(["("+e+")","((\\"+l+"['\""+r+"]|[^\\s'\""+r+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),u=function(e,t){for(var r,n=t.lastIndex,a=[];r=t.exec(e);)a.push(r),t.lastIndex===r.index&&(t.lastIndex+=1);return t.lastIndex=n,a}(o,c);if(0===u.length)return[];i||(i={});var d=!1;return u.map((function(e){var r=e[0];if(r&&!d){if(t.test(r))return{op:r};var s,c=!1,u=!1,p="",h=!1;for(s=0;s<r.length;s++){var f=r.charAt(s);if(h=h||!c&&("*"===f||"?"===f),u)p+=f,u=!1;else if(c)f===c?c=!1:"'"==c?p+=f:f===l?(s+=1,p+='"'===(f=r.charAt(s))||f===l||"$"===f?f:l+f):p+="$"===f?g():f;else if('"'===f||"'"===f)c=f;else{if(t.test(f))return{op:r};if(n.test(f)){d=!0;var m={comment:o.slice(e.index+s+1)};return p.length?[p,m]:[m]}f===l?u=!0:p+="$"===f?g():f}}return h?{op:"glob",pattern:p}:p}function g(){var e,t;s+=1;var n=r.charAt(s);if("{"===n){if(s+=1,"}"===r.charAt(s))throw new Error("Bad substitution: "+r.slice(s-2,s+1));if((e=r.indexOf("}",s))<0)throw new Error("Bad substitution: "+r.slice(s));t=r.slice(s,e),s=e}else if(/[*@#?$!_-]/.test(n))t=n,s+=1;else{var o=r.slice(s);(e=o.match(/[^\w\d_]/))?(t=o.slice(0,e.index),s+=e.index-1):(t=o,s=r.length)}return function(e,t,r){var n="function"==typeof e?e(r):e[r];return void 0===n&&""!=r?n="":void 0===n&&(n="$"),"object"==typeof n?""+a+JSON.stringify(n)+a:""+n}(i,0,t)}})).reduce((function(e,t){return void 0===t?e:e.concat(t)}),[])}return uBe=function(e,t,r){var n=s(e,t,r);return"function"!=typeof t?n:n.reduce((function(e,t){if("object"==typeof t)return e.concat(t);var r=t.split(RegExp("("+a+".*?"+a+")","g"));return 1===r.length?e.concat(r[0]):e.concat(r.filter(Boolean).map((function(e){return i.test(e)?JSON.parse(e.split(a)[1]):e})))}),[])},uBe}()),hBe);function mBe(e,t){t.method=e.next().value.toLowerCase()}function gBe(e,t){const r=new URL(e.next().value.replace(/['"]/g,""));t.servers=[r.origin],t.path="/"!==r.pathname?r.pathname:"",t.url=t.servers[0]+t.path;const n=yBe(r.search);t.queryParameters=t.queryParameters?[...t.queryParameters,...n]:n}function vBe(e,t){const r=e.next().value.split(/:(.*)/);t.headers=t.headers||{},void 0!==r[1]?t.headers[r[0].trim()]=r[1].trim():t.headers[r[0].trim()]=""}function bBe(e,t){const r=e.next().value.replace(/['"]/g,"").split("=");t.pathVariables=t.pathVariables||{},void 0!==r[1]?t.pathVariables[r[0].trim()]=r[1].trim():t.pathVariables[r[0].trim()]=""}function yBe(e){const t=[];return new URL(e,"http://example.com").searchParams.forEach(((e,r)=>{t.push({key:r,value:e})})),t}function OBe(e,t){const r=e.replace(/['"]/g,"").split(/:(.+)/);t.headers=t.headers||{},r[0]&&(void 0!==r[1]?t.headers[r[0].trim()]=r[1].trim():t.headers[r[0].trim()]="")}function wBe(e,t){const r=e.next().value;try{const e=btoa(r);t.headers=t.headers||{},t.headers.Authorization=`Basic ${e}`}catch(e){console.warn("Could not base64 encode these HTTP basic auth credentials:",r,e)}}function xBe(e,t){const r=e.next().value;t.headers=t.headers||{},t.headers.Cookie?t.headers.Cookie+=`; ${r}`:t.headers.Cookie=r.replace(/;$/,"")}function kBe(e,t,r){const n=e.next().value;if("string"==typeof n&&(n.startsWith("@")?t.body="":t.body=n,!t.url||r.includes("-G"))){const e=yBe(`?${t.body}`);t.queryParameters=t.queryParameters?[...t.queryParameters,...e]:e}}function SBe(e){const t=function(e){const t=fBe.parse(e).map((e=>"object"==typeof e&&"op"in e&&"glob"===e.op?e.pattern.trim():"string"==typeof e?e.trim():e)).filter((e=>""!==e)),r={url:""},n=t[Symbol.iterator]();let a=n.next().value;for(;a;)"-X"===a||"--request"===a?mBe(n,r):"--url"===a?gBe(n,r):"-H"===a||"--header"===a?vBe(n,r):"--data"===a||"-d"===a||"--data-raw"===a||"--data-urlencode"===a||"--data-binary"===a||"--data-ascii"===a?kBe(n,r,e):"string"!=typeof a||r.url||!a.startsWith("http")&&!a.startsWith("www.")?"-P"===a?bBe(n,r):"string"==typeof a&&a.toLowerCase().includes("content-type")?OBe(a,r):"-u"===a||"--user"===a?wBe(n,r):("-b"===a||"--cookie"===a)&&xBe(n,r):gBe([a][Symbol.iterator](),r),a=n.next().value;return r}(e),{method:r="get",url:n,body:a="",headers:o={},servers:i,queryParameters:s=[]}=t,l=new URL(n).pathname,c=null!=a&&a.includes("=")&&!a.startsWith("{")?"application/x-www-form-urlencoded":o["Content-Type"]||"",u=a?function(e){try{return JSON.parse(e)}catch{const t={};return e.split("&").forEach((e=>{const[r,n]=e.split("=");r&&n&&(t[decodeURIComponent(r)]=decodeURIComponent(n))})),t}}(a):{},d=[...Array.isArray(s)?s.map((({key:e,value:t})=>({name:e,in:"query",schema:{type:typeof t,examples:[t]}}))):[],...Object.entries(o||{}).map((([e,t])=>({name:e,in:"header",schema:{type:typeof t},example:t})))];return{method:r,url:n,path:l,headers:o,servers:i??[],...Object.keys(u).length>0&&{requestBody:{content:{[c]:{schema:{type:"object",properties:Object.fromEntries(Object.entries(u).map((([e,t])=>[e,{type:typeof t}])))},example:u}}}},parameters:d}}const _Be={class:"lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1"},EBe={class:"mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1"},TBe={class:"mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5"},ABe=Li({__name:"RequestSubpageHeader",props:{collection:{},operation:{},server:{},environment:{},envVariables:{},workspace:{}},emits:["hideModal","importCurl"],setup(e){const{hideClientButton:t,showSidebar:r,integration:n}=Obe(),{isSidebarOpen:a}=Kbe(),{layout:o}=age(),{currentRoute:i}=Lme();return(e,s)=>(Pl(),Rl("div",_Be,[Ul("div",EBe,[Ao(r)?(Pl(),Rl("div",{key:0,class:zn(["size-8",{hidden:"modal"===Ao(o)&&!Ao(a)}])},null,2)):Vl("",!0)]),Fl(Wbe,{collection:e.collection,envVariables:e.envVariables,environment:e.environment,operation:e.operation,server:e.server,workspace:e.workspace,onImportCurl:s[0]||(s[0]=t=>e.$emit("importCurl",t))},null,8,["collection","envVariables","environment","operation","server","workspace"]),Ul("div",TBe,["modal"===Ao(o)&&e.collection.documentUrl&&!Ao(t)?(Pl(),Nl(Ao(o6),{key:0,buttonSource:"modal",class:"!w-fit lg:-mr-1",integration:Ao(n)??e.collection.integration??null,source:"gitbook"===Ao(i).query.source?"gitbook":"api-reference",url:e.collection.documentUrl},null,8,["integration","source","url"])):Vl("",!0),"modal"===Ao(o)?(Pl(),Rl("button",{key:1,class:"app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",type:"button",onClick:s[1]||(s[1]=t=>e.$emit("hideModal"))},[Fl(Ao(U5),{icon:"Close",size:"lg",thickness:"2"}),s[3]||(s[3]=Ul("span",{class:"sr-only"},"Close Client",-1))])):Vl("",!0),"modal"===Ao(o)?(Pl(),Rl("button",{key:2,class:"text-c-1 hover:bg-b-2 active:text-c-1 gitbook-show -mr-1.5 rounded p-2",type:"button",onClick:s[2]||(s[2]=t=>e.$emit("hideModal"))},[Fl(Ao(U5),{icon:"Close",size:"md",thickness:"1.75"}),s[4]||(s[4]=Ul("span",{class:"sr-only"},"Close Client",-1))])):Vl("",!0)])]))}}),CBe=a6(ABe,[["__scopeId","data-v-c8df97c6"]]),PBe={class:"flex-1 px-2 py-1.5 whitespace-nowrap"},$Be=Li({__name:"DataTableText",props:{text:{}},setup:e=>(e,t)=>(Pl(),Nl(Lye,{class:"relative flex"},{default:ci((()=>[Ul("span",PBe,[fs(e.$slots,"default",{},(()=>[ql(Gn(e.text),1)]))])])),_:3}))}),DBe=["href"],MBe=Li({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Pl(),Rl("a",{class:"decoration-c-3 cursor-help underline underline-offset-2",href:e.href,rel:"noopener noreferrer",target:"_blank"},[fs(e.$slots,"default")],8,DBe))}),RBe=[{name:"Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},{name:"Accept-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH"},{name:"Accept-CH-Lifetime",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},{name:"Accept-Charset",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset"},{name:"Accept-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding"},{name:"Accept-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},{name:"Accept-Patch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch"},{name:"Accept-Post",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Post"},{name:"Accept-Ranges",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"},{name:"Access-Control-Allow-Credentials",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},{name:"Access-Control-Allow-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},{name:"Access-Control-Allow-Methods",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},{name:"Access-Control-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},{name:"Access-Control-Expose-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},{name:"Access-Control-Max-Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},{name:"Access-Control-Request-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},{name:"Access-Control-Request-Method",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"},{name:"Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},{name:"Allow",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},{name:"Alt-Svc",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},{name:"Alt-Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},{name:"Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},{name:"Cache-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},{name:"Clear-Site-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},{name:"Connection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},{name:"Content-Disposition",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},{name:"Content-DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR"},{name:"Content-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},{name:"Content-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},{name:"Content-Length",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},{name:"Content-Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},{name:"Content-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},{name:"Content-Security-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},{name:"Content-Security-Policy-Report-Only",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only"},{name:"Content-Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},{name:"Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie"},{name:"Critical-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH"},{name:"Cross-Origin-Embedder-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},{name:"Cross-Origin-Opener-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},{name:"Cross-Origin-Resource-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},{name:"Date",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},{name:"Device-Memory",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory"},{name:"Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Digest"},{name:"DNT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT"},{name:"Downlink",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink"},{name:"DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},{name:"Early-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},{name:"ECT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT"},{name:"ETag",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},{name:"Expect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},{name:"Expect-CT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},{name:"Expires",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},{name:"Forwarded",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},{name:"From",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},{name:"Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},{name:"If-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},{name:"If-Modified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},{name:"If-None-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},{name:"If-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},{name:"If-Unmodified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},{name:"Keep-Alive",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},{name:"Large-Allocation",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},{name:"Last-Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},{name:"Link",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link"},{name:"Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},{name:"Max-Forwards",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards"},{name:"NEL",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},{name:"Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},{name:"Permissions-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},{name:"Pragma",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma"},{name:"Proxy-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},{name:"Proxy-Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},{name:"Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},{name:"Referer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},{name:"Referrer-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},{name:"Retry-After",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},{name:"RTT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT"},{name:"Save-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},{name:"Sec-CH-Prefers-Reduced-Motion",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},{name:"Sec-CH-Prefers-Reduced-Transparency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Transparency"},{name:"Sec-CH-UA",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},{name:"Sec-CH-UA-Arch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},{name:"Sec-CH-UA-Bitness",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},{name:"Sec-CH-UA-Full-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},{name:"Sec-CH-UA-Full-Version-List",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},{name:"Sec-CH-UA-Mobile",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},{name:"Sec-CH-UA-Model",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},{name:"Sec-CH-UA-Platform",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},{name:"Sec-CH-UA-Platform-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},{name:"Sec-Fetch-Dest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest"},{name:"Sec-Fetch-Mode",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode"},{name:"Sec-Fetch-Site",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site"},{name:"Sec-Fetch-User",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User"},{name:"Sec-GPC",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-GPC"},{name:"Sec-Purpose",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose"},{name:"Sec-WebSocket-Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept"},{name:"Server",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},{name:"Server-Timing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},{name:"Service-Worker-Navigation-Preload",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload"},{name:"Set-Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},{name:"SourceMap",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap"},{name:"Strict-Transport-Security",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},{name:"TE",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},{name:"Timing-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin"},{name:"Tk",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Tk"},{name:"Trailer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},{name:"Transfer-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},{name:"Upgrade",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade"},{name:"Upgrade-Insecure-Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},{name:"User-Agent",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"},{name:"Vary",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},{name:"Via",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},{name:"Viewport-Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},{name:"Want-Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Want-Digest"},{name:"Warning",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},{name:"Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},{name:"WWW-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},{name:"X-Content-Type-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},{name:"X-DNS-Prefetch-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-For",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Proto",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Frame-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},{name:"X-XSS-Protection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},{name:"Cf-Cache-Status",url:"https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#cloudflare-cache-responses"},{name:"Cf-Ray",url:"https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-ray"},{name:"Report-To",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to"},{name:"X-Cloud-Trace-Context",url:"https://cloud.google.com/trace/docs/trace-context#legacy-http-header"},{name:"Speculation-Rules",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Speculation-Rules"}],NBe={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},IBe={key:1,class:"text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"},LBe=Li({__name:"RequestHeaders",props:{headers:{}},setup(e){const t=e=>RBe.find((t=>t.name.toLowerCase()===e.toLowerCase()));return(e,r)=>(Pl(),Nl(AOe,{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:ci((()=>r[0]||(r[0]=[ql("Request Headers")]))),default:ci((()=>[e.headers.length?(Pl(),Rl("div",NBe,[Fl(mOe,{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:ci((()=>[Fl(Bye,{class:"sr-only !block"},{default:ci((()=>[Fl(Ao(KEe),null,{default:ci((()=>r[1]||(r[1]=[ql("Header Key")]))),_:1,__:[1]}),Fl(Ao(KEe),null,{default:ci((()=>r[2]||(r[2]=[ql("Header Value")]))),_:1,__:[2]})])),_:1}),(Pl(!0),Rl(Sl,null,ps(e.headers,(e=>(Pl(),Nl(Bye,{key:e.name,class:"group/row text-c-1"},{default:ci((()=>[Fl($Be,{class:"bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0"},{default:ci((()=>{var r;return["string"==typeof(null==(r=t(e.name))?void 0:r.url)?(Pl(),Nl(MBe,{key:0,class:"decoration-c-3",href:t(e.name).url},{default:ci((()=>[ql(Gn(e.name),1)])),_:2},1032,["href"])):(Pl(),Rl(Sl,{key:1},[ql(Gn(e.name),1)],64))]})),_:2},1024),Fl($Be,{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})])):(Pl(),Rl("div",IBe," No Headers "))])),_:1},8,["itemCount"]))}}),jBe=["download","href"],BBe=Li({__name:"ResponseBodyDownload",props:{href:{},type:{},filename:{}},setup(e){const t=e,r=hc((()=>{var e;const r=(null==(e=Hje(t.type??""))?void 0:e.extension)??".unknown";return t.filename?t.filename:`response${r}`}));return(e,t)=>(Pl(),Rl("a",{class:"text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",download:`${r.value}`,href:e.href,onClick:t[0]||(t[0]=Su((()=>{}),["stop"]))},[Fl(Ao(U5),{icon:"Download",size:"xs"}),t[1]||(t[1]=Ul("span",null,[Ul("span",null,"Download"),Ul("span",{class:"sr-only"},"Response Body")],-1))],8,jBe))}}),UBe={class:"flex justify-center px-2 py-3"},FBe={class:"text-c-3 p-2 text-sm"},QBe=a6({},[["render",function(e,t){return Pl(),Rl("div",UBe,[Ul("div",FBe,[fs(e.$slots,"default")])])}]]),zBe=["src"],qBe=["src","type"],HBe=["src","type"],VBe=["data","type"],ZBe=Li({__name:"ResponseBodyPreview",props:{src:{},type:{},mode:{},alpha:{type:Boolean,default:!1}},setup(e){const t=So(!1);return ul((()=>e.src),(()=>t.value=!1)),(e,r)=>!t.value&&e.src?(Pl(),Rl("div",{key:0,class:zn(["flex justify-center overflow-auto rounded-b",{"bg-preview p-2":e.alpha}])},["image"===e.mode?(Pl(),Rl("img",{key:0,class:zn(["h-full max-w-full",{rounded:e.alpha}]),src:e.src,onError:r[0]||(r[0]=e=>t.value=!0)},null,42,zBe)):"video"===e.mode?(Pl(),Rl("video",{key:1,autoplay:"",controls:"",width:"100%",onError:r[1]||(r[1]=e=>t.value=!0)},[Ul("source",{src:e.src,type:e.type},null,8,qBe)],32)):"audio"===e.mode?(Pl(),Rl("audio",{key:2,class:"my-12",controls:"",onError:r[2]||(r[2]=e=>t.value=!0)},[Ul("source",{src:e.src,type:e.type},null,8,HBe)],32)):(Pl(),Rl("object",{key:3,class:"aspect-[4/3] w-full",data:e.src,type:e.type,onError:r[3]||(r[3]=e=>t.value=!0)},null,40,VBe))],2)):(Pl(),Nl(QBe,{key:1},{default:ci((()=>r[4]||(r[4]=[ql("Preview unavailable")]))),_:1,__:[4]}))}}),WBe=a6(ZBe,[["__scopeId","data-v-0956ad2d"]]),XBe={class:"body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline"},GBe={key:0,class:"scalar-code-copy"},YBe={class:"body-raw-scroller relative overflow-auto overscroll-contain",tabindex:"0"},KBe=Li({__name:"ResponseBodyRaw",props:{content:{},language:{}},setup(e){const t=e,r=So(null),{copyToClipboard:n}=dH(),{codeMirror:a}=xhe({codeMirrorRef:r,readOnly:!0,lineNumbers:!0,content:Io((()=>pL(t.content))),language:Io((()=>t.language)),forceFoldGutter:!0}),o=()=>{var e;return(null==(e=a.value)?void 0:e.state.doc.toString())||""};return(e,t)=>(Pl(),Rl("div",XBe,[o()?(Pl(),Rl("div",GBe,[Ul("button",{class:"copy-button",type:"button",onClick:t[0]||(t[0]=e=>Ao(n)(o()))},[t[1]||(t[1]=Ul("span",{class:"sr-only"},"Copy content",-1)),Fl(Ao(U5),{icon:"Clipboard",size:"md"})])])):Vl("",!0),Ul("div",YBe,[Ul("div",{ref_key:"codeMirrorRef",ref:r},null,512)])]))}}),JBe=a6(KBe,[["__scopeId","data-v-27e5c2e0"]]),eUe={class:"text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5"},tUe=Li({__name:"ResponseBodyToggle",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup:e=>(e,t)=>(Pl(),Rl("div",eUe,[Ul("button",{class:zn(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":e.modelValue}]),type:"button",onClick:t[0]||(t[0]=Su((t=>e.$emit("update:modelValue",!0)),["stop"]))}," Preview ",2),Ul("button",{class:zn(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":!e.modelValue}]),type:"button",onClick:t[1]||(t[1]=Su((t=>e.$emit("update:modelValue",!1)),["stop"]))}," Raw ",2)]))}),rUe={key:0,class:"bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"},nUe={class:"box-content flex min-h-8 items-center justify-between border-y px-3"},aUe={class:"text-xxs font-code leading-3"},oUe=Li({__name:"ResponseBody",props:{title:{},layout:{},data:{},headers:{}},setup(e){const t=e,r=So(!0),n=hc((()=>{var e;return!(null==(e=c.value)||!e.raw||!c.value.preview)})),a=hc((()=>r.value||!n.value)),o=hc((()=>!r.value||!n.value)),{mimeType:i,attachmentFilename:s,dataUrl:l}=vye({data:Io(t,"data"),headers:Io(t,"headers")}),c=hc((()=>Hje(i.value.essence)));return(e,t)=>(Pl(),Nl(AOe,{class:"max-h-content overflow-y-hidden",layout:e.layout},hs({title:ci((()=>[ql(Gn(e.title),1)])),default:ci((()=>{var s,u,d,p;return[e.data?(Pl(),Rl("div",rUe,[Ul("div",nUe,[Ul("span",aUe,Gn(Ao(i).essence),1),n.value?(Pl(),Nl(tUe,{key:0,modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},null,8,["modelValue"])):Vl("",!0)]),null!=(s=c.value)&&s.raw&&o.value?(Pl(),Nl(JBe,{key:Ao(l),content:e.data,language:c.value.language},null,8,["content","language"])):Vl("",!0),null!=(u=c.value)&&u.preview&&a.value?(Pl(),Nl(WBe,{key:Ao(l),alpha:c.value.alpha,mode:c.value.preview,src:Ao(l),type:Ao(i).essence},null,8,["alpha","mode","src","type"])):Vl("",!0),null!=(d=c.value)&&d.raw||null!=(p=c.value)&&p.preview?Vl("",!0):(Pl(),Nl(QBe,{key:2},{default:ci((()=>t[1]||(t[1]=[ql(" Binary file ")]))),_:1,__:[1]}))])):Vl("",!0)]})),_:2},[e.data&&Ao(l)?{name:"actions",fn:ci((()=>[Fl(BBe,{filename:Ao(s),href:Ao(l),type:Ao(i).essence},null,8,["filename","href","type"])])),key:"0"}:void 0]),1032,["layout"]))}}),iUe=a6(oUe,[["__scopeId","data-v-17966bf4"]]),sUe={class:"flex w-full items-center justify-between"},lUe={key:0,class:"mr-2 flex items-center gap-2"},cUe={key:0,class:"text-red bg-b-danger sticky top-0 border-b p-2"},uUe={key:1,class:"p-2"},dUe=Li({__name:"ResponseBodyStreaming",props:{reader:{}},setup(e){const t=KU(),r=So(""),n=So(null),a=new TextDecoder,o=So(null),i=()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight)};return ul(r,(()=>{Ko(i)})),Yi((()=>{t.startLoading(),async function(){try{for(;t.isLoading;){const{done:n,value:o}=await e.reader.read();if(n){t.stopLoading();break}o&&(r.value+=a.decode(o,{stream:!0}))}}catch(e){console.error("Error reading stream:",e),t.stopLoading(),n.value=e}finally{r.value+=a.decode()}}(),n.value=null})),es((()=>{e.reader.cancel(),t.stopLoading()})),(e,a)=>(Pl(),Nl(AOe,{class:"max-h-content overflow-y-hidden"},{title:ci((()=>[Ul("div",sUe,[a[1]||(a[1]=Ul("div",null,"Body",-1)),Ao(t).isLoading?(Pl(),Rl("div",lUe,[Fl(Ao(tF),{loadingState:Ao(t),size:"xs"},null,8,["loadingState"]),a[0]||(a[0]=Ul("span",{class:"text-c-2"}," Listening… ",-1))])):Vl("",!0)])])),default:ci((()=>[Ul("div",{ref_key:"contentContainer",ref:o,class:"text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"},[n.value?(Pl(),Rl("div",cUe,Gn(n.value.message),1)):Vl("",!0),r.value?(Pl(),Rl("div",uUe,Gn(r.value),1)):Vl("",!0)],512)])),_:1}))}}),pUe=Li({__name:"ResponseBodyVirtual",props:{content:{},data:{},headers:{}},setup(e){const t=e,r=hc((()=>oL(t.content))),{mimeType:n,attachmentFilename:a,dataUrl:o}=vye({data:Io(t,"data"),headers:Io(t,"headers")});return(e,t)=>(Pl(),Nl(AOe,{class:"!max-h-100% response-body-virtual overflow-x-auto"},hs({title:ci((()=>[t[0]||(t[0]=ql("Body"))])),default:ci((()=>[t[1]||(t[1]=Ul("div",{class:"font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5"}," This response body is massive! Syntax highlighting won't work here. ",-1)),Fl(Ao(H8),{containerClass:"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",contentClass:"language-plaintext whitespace-pre font-code text-base",lineHeight:20,text:r.value},null,8,["text"])])),_:2},[Ao(o)?{name:"actions",fn:ci((()=>[Fl(BBe,{filename:Ao(a),href:Ao(o),type:Ao(n).essence},null,8,["filename","href","type"])])),key:"0"}:void 0]),1024))}}),hUe={key:1,class:"text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"},fUe=Li({__name:"ResponseCookies",props:{cookies:{}},setup:e=>(e,t)=>(Pl(),Nl(AOe,{defaultOpen:!1},{title:ci((()=>t[0]||(t[0]=[ql("Cookies")]))),default:ci((()=>[(Pl(),Rl(Sl,{key:0},[e.cookies.length?(Pl(),Nl(mOe,{key:0,class:"flex-1",columns:["",""]},{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(e.cookies,(e=>(Pl(),Nl(Bye,{key:e.name},{default:ci((()=>[Fl($Be,{text:e.name},null,8,["text"]),Fl($Be,{text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})):(Pl(),Rl("div",hUe," No cookies "))],64))])),_:1}))}),mUe={class:"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize"},gUe={key:0,class:"scalar-version-number"},vUe={class:"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm"},bUe=Li({__name:"ResponseEmpty",props:{collection:{},operation:{},workspace:{},numWorkspaceRequests:{}},setup(e){const{events:t,requestMutators:r}=Obe(),n=jme(),a=Lme(),{layout:o}=age(),i=()=>{var n;const o=null!=(n=e.operation.tags)&&n.length?{tags:e.operation.tags[0]?[e.operation.tags[0]]:[]}:{},i=r.add(o,e.collection.uid);i&&(a.push({name:"request",params:{workspace:e.workspace.uid,request:i.uid}}),Ko((()=>{t.hotKeys.emit({focusAddressBar:new KeyboardEvent("keydown",{key:"l"})})})))},s=e=>{null!=e&&e.createNew&&"request"===n.name&&i()};return Yi((()=>t.hotKeys.on(s))),es((()=>t.hotKeys.off(s))),(e,r)=>(Pl(),Rl("div",mUe,[Ul("div",{class:zn(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{"hidden opacity-0":e.numWorkspaceRequests<=1&&"modal"!==Ao(o)}])},["modal"!==Ao(o)?(Pl(),Rl("div",gUe,[ql(" Scalar App V"+Gn(Ao("2.5.22"))+" Beta ",1),r[3]||(r[3]=Ul("div",{class:"mt-2"},[Ul("a",{href:"https://github.com/scalar/scalar/issues/2669",target:"_blank"}," Roadmap ")],-1))])):Vl("",!0),r[4]||(r[4]=Ul("a",{class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",target:"_blank"}," Powered By Scalar.com ",-1)),Fl(ULe,{art:Ao(" .,,uod8B8bou,,.\n ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n |||| '\"\"^^!!||||||||||TFPRBBBVT!:...!\n |||| '\"\"^^!!|||||?!:.......!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n ||||, ||||.........`\n |||||!!-._ ||||.......;.\n ':!|||||||||!!-._ ||||.....bBBBBWdou,.\n bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n '\"^!|Tf9988888888888888888888888888888888!::..`\n '\"^!|Tf998888888888888888888888889!! '`\n '\"^!|Tf9988888888888888888!!` iBBbo.\n '\"^!|Tf998888888889!` WBBBBbo.\n '\"^!|Tf9989!` YBBBP^'\n '\"^!` `\n"),class:"text-c-3"},null,8,["art"])],2),"modal"!==Ao(o)?(Pl(),Rl("div",{key:0,class:zn(["hidden h-[calc(100%_-_50px)] items-center justify-center pb-5",{"!flex opacity-100":1==e.numWorkspaceRequests}])},[Fl(aBe)],2)):Vl("",!0),Ul("div",vUe,["modal"!==Ao(o)?(Pl(),Rl("button",{key:0,class:"flex items-center gap-1.5",type:"button",onClick:r[0]||(r[0]=e=>Ao(t).commandPalette.emit())},[r[5]||(r[5]=ql(" Get Started ")),Fl(zLe,{hotkey:"k"})])):Vl("",!0),"desktop"===Ao(o)?(Pl(),Rl("button",{key:1,class:"flex items-center gap-1.5",type:"button",onClick:r[1]||(r[1]=e=>i())},[r[6]||(r[6]=ql(" New Request ")),Fl(zLe,{hotkey:"N"})])):Vl("",!0),Ul("button",{class:"flex items-center gap-1.5",type:"button",onClick:r[2]||(r[2]=e=>Ao(t).executeRequest.emit())},[r[7]||(r[7]=ql(" Send Request ")),Fl(zLe,{hotkey:"↵"})])])]))}}),yUe=a6(bUe,[["__scopeId","data-v-bb2369d4"]]),OUe={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},wUe={key:1,class:"text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"},xUe=Li({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>RBe.find((t=>t.name.toLowerCase()===e.toLowerCase()));return(e,r)=>(Pl(),Nl(AOe,{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:ci((()=>r[0]||(r[0]=[ql("Response Headers")]))),default:ci((()=>[e.headers.length?(Pl(),Rl("div",OUe,[Fl(mOe,{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:ci((()=>[Fl(Bye,{class:"sr-only !block"},{default:ci((()=>[Fl(Ao(KEe),null,{default:ci((()=>r[1]||(r[1]=[ql("Header Key")]))),_:1,__:[1]}),Fl(Ao(KEe),null,{default:ci((()=>r[2]||(r[2]=[ql("Header Value")]))),_:1,__:[2]})])),_:1}),(Pl(!0),Rl(Sl,null,ps(e.headers,(e=>(Pl(),Nl(Bye,{key:e.name,class:"group/row text-c-1"},{default:ci((()=>[Fl($Be,{class:"bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0"},{default:ci((()=>{var r;return["string"==typeof(null==(r=t(e.name))?void 0:r.url)?(Pl(),Nl(MBe,{key:0,class:"decoration-c-3",href:t(e.name).url},{default:ci((()=>[ql(Gn(e.name),1)])),_:2},1032,["href"])):(Pl(),Rl(Sl,{key:1},[ql(Gn(e.name),1)],64))]})),_:2},1024),Fl($Be,{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})])):(Pl(),Rl("div",wUe," No Headers "))])),_:1},8,["itemCount"]))}}),kUe={key:0,class:"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"},SUe=Li({__name:"ResponseLoadingOverlay",setup(e){const{events:t}=Obe(),r=KU(),n=So();return t.requestStatus.on((e=>{"start"===e?n.value=setTimeout((()=>r.startLoading()),1e3):(clearTimeout(n.value),n.value=void 0,r.stopLoading())})),(e,n)=>(Pl(),Nl(Tc,null,{default:ci((()=>[Ao(r).isLoading?(Pl(),Rl("div",kUe,[Fl(Ao(tF),{class:"text-c-3",loadingState:Ao(r),size:"3xl"},null,8,["loadingState"]),Fl(Ao(aF),{variant:"ghost",onClick:n[0]||(n[0]=e=>Ao(t).cancelRequest.emit())},{default:ci((()=>n[1]||(n[1]=[ql(" Cancel ")]))),_:1,__:[1]})])):Vl("",!0)])),_:1}))}}),_Ue=a6(SUe,[["__scopeId","data-v-62b8db3f"]]);function EUe(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const r=[],n=(e,n,a,o)=>{if(!(0!==r.length&&t.colonNotation||0!==e||t.colonNotation&&"m"===a))return;let i,s;if(o=(o||e||"0").toString(),t.colonNotation){i=r.length>0?":":"",s="";const e=o.includes(".")?o.split(".")[0].length:o.length,t=r.length>0?2:1;o="0".repeat(Math.max(0,t-e))+o}else i="",s=t.verbose?" "+(l=n,1===e?l:`${l}s`):a;var l;r.push(i+o+s)},a=function(e){if("number"!=typeof e)throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}(e);if(n(Math.trunc(a.days/365),"year","y"),n(a.days%365,"day","d"),n(a.hours,"hour","h"),n(a.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(n(a.seconds,"second","s"),t.formatSubMilliseconds)n(a.milliseconds,"millisecond","ms"),n(a.microseconds,"microsecond","µs"),n(a.nanoseconds,"nanosecond","ns");else{const e=a.milliseconds+a.microseconds/1e3+a.nanoseconds/1e6,r="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,o=e>=1?Math.round(e):Math.ceil(e),i=r?e.toFixed(r):o;n(Number.parseFloat(i),"millisecond","ms",i)}else{const r=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})(e/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),a=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,"");n(Number.parseFloat(a),"second","s",a)}if(0===r.length)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if("number"==typeof t.unitCount){const e=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(e)}return t.colonNotation?r.join(""):r.join(" ")}const TUe={class:"text-c-1 flex gap-1.5"},AUe={key:0},CUe={key:0},PUe={key:1},$Ue=Li({__name:"ResponseMetaInformation",props:{response:{}},setup(e){const t=e,{events:r}=Obe(),n=So(),a=So(0);r.requestStatus.on((e=>{"start"===e?n.value=setInterval((()=>a.value+=1e3),1e3):(clearInterval(n.value),n.value=void 0,a.value=0)}));const o=e=>{var t,r;const n=Number.parseInt((null==(t=e.headers)?void 0:t["Content-Length"])||(null==(r=e.headers)?void 0:r["content-length"])||"0",10);return n?function(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?RX:MX:t.binary?DX:$X,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const a=e<0,o=a?"-":t.signed?"+":"";let i;if(a&&(e=-e),void 0!==t.minimumFractionDigits&&(i={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1)return o+NX(e,t.locale,i)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,i||(e=e.toPrecision(3)),o+NX(Number(e),t.locale,i)+n+r[s]}(n):void 0},i=hc((()=>{const e=t.response.status;if(e)return DL[e]??void 0}));return(e,t)=>(Pl(),Rl("div",TUe,[n.value&&a.value?(Pl(),Rl("span",AUe,Gn(Ao(EUe)(a.value)),1)):(Pl(),Rl(Sl,{key:1},[Ul("span",null,[t[0]||(t[0]=Ul("span",{class:"sr-only"},"Response Information, Duration:",-1)),ql(" "+Gn(Ao(EUe)(e.response.duration)),1)]),o(e.response)?(Pl(),Rl("span",CUe,[t[1]||(t[1]=Ul("span",{class:"sr-only"},", Size:",-1)),ql(" "+Gn(o(e.response)),1)])):Vl("",!0),i.value?(Pl(),Rl(Sl,{key:1},[t[2]||(t[2]=Ul("span",{class:"sr-only"},", Status:",-1)),i.value.url?(Pl(),Nl(MBe,{key:0,class:"flex items-center gap-1.5",href:i.value.url},{default:ci((()=>[ql(Gn(e.response.status)+" "+Gn(i.value.name)+" ",1),Ul("span",{class:"block h-1.5 w-1.5 rounded-full",style:jn({backgroundColor:i.value.color})},null,4)])),_:1},8,["href"])):(Pl(),Rl("span",PUe,[ql(Gn(e.response.status)+" "+Gn(i.value.name)+" ",1),Ul("span",{class:"block h-1.5 w-1.5 rounded-full",style:jn({backgroundColor:i.value.color})},null,4)]))],64)):Vl("",!0)],64))]))}}),DUe={class:"flex h-8 flex-1 items-center"},MUe=["id","role"],RUe=2e5,NUe=Li({__name:"ResponseSection",props:{collection:{},operation:{},workspace:{},numWorkspaceRequests:{},response:{},requestResult:{}},setup(e){const t=BTe().getViewComponents("response.section"),r=hc((()=>{var t;const r=null==(t=e.response)?void 0:t.headers;return r?Object.keys(r).map((e=>({name:e,value:r[e]??"",required:!1}))):[]})),n=hc((()=>{var t;return(null==(t=e.response)?void 0:t.cookieHeaderKeys.flatMap((t=>{var r,n;const a=null==(n=null==(r=e.response)?void 0:r.headers)?void 0:n[t];return a?{name:t,value:a,required:!1}:[]})))??[]})),a=["Cookies","Headers","Body"],o=So("All"),i=hc((()=>["All",...a])),s=hc((()=>Object.fromEntries(i.value.map((e=>[e,ji()]))))),l=hc((()=>{var t,r;if(!e.response||!("size"in e.response))return!1;const n=(null==(t=e.response.headers)?void 0:t["content-type"])||(null==(r=e.response.headers)?void 0:r["Content-Type"]);return!(!n||(e.response.size??0)<=RUe||n.includes("text/html"))&&["text/","application/json","application/ld+json","application/problem+json","application/vnd.api+json","application/xml","application/atom+xml","application/rss+xml","application/problem+xml","application/javascript","application/ecmascript","application/x-yaml","application/yaml","application/x-httpd-php","application/x-sh","application/x-perl","application/x-python","application/x-ruby","application/x-java-source","application/x-www-form-urlencoded"].some((e=>n.includes(e)))&&(e.response.size??0)>RUe})),c=hc((()=>{var t;return(null==(t=e.requestResult)?void 0:t.request.parameters.headers.filter((e=>e.enabled)).map((e=>({name:e.key,value:e.value,required:!0}))))??[]}));return(e,a)=>(Pl(),Nl(XEe,{"aria-label":"Response"},{title:ci((()=>[Ul("div",DUe,[Ul("div",{"aria-live":"polite",class:zn(["flex items-center",{"animate-response-heading":e.response}])},[a[1]||(a[1]=Ul("span",{class:"response-heading pointer-events-none absolute"}," Response ",-1)),e.response?(Pl(),Nl($Ue,{key:0,class:"animate-response-children",response:e.response},null,8,["response"])):Vl("",!0)],2),Fl(ZEe,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=e=>o.value=e),filterIds:s.value,filters:i.value},null,8,["modelValue","filterIds","filters"])])])),default:ci((()=>{var a,i,u;return[Ul("div",{id:s.value.All,class:zn(["custom-scroll response-section-content relative grid h-full justify-stretch",{"content-start":e.response}]),role:"All"===o.value&&e.response?"tabpanel":"none"},[e.response?(Pl(),Rl(Sl,{key:1},["All"===o.value||"Cookies"===o.value?(Pl(),Nl(fUe,{key:0,class:"response-section-content-cookies",id:s.value.Cookies,cookies:n.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","cookies","role"])):Vl("",!0),"All"===o.value||"Headers"===o.value?(Pl(),Nl(LBe,{key:1,class:"response-section-content-headers",id:s.value.Headers,headers:c.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","headers","role"])):Vl("",!0),"All"===o.value||"Headers"===o.value?(Pl(),Nl(xUe,{key:2,class:"response-section-content-headers",id:s.value.Headers,headers:r.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","headers","role"])):Vl("",!0),(Pl(!0),Rl(Sl,null,ps(Ao(t),(e=>(Pl(),Nl(Ao(PX),{key:e.component},{default:ci((()=>[ui((Pl(),Nl(cs(e.component),Gl({ref_for:!0},e.props??{}),null,16)),[[Fc,"All"===o.value||o.value===e.title]])])),_:2},1024)))),128)),"All"===o.value||"Body"===o.value?(Pl(),Rl(Sl,{key:3},["reader"in e.response?(Pl(),Nl(dUe,{key:0,class:"response-section-content-body",id:s.value.Body,reader:e.response.reader},null,8,["id","reader"])):l.value&&"string"==typeof(null==(a=e.response)?void 0:a.data)?(Pl(),Nl(pUe,{key:1,id:s.value.Body,content:e.response.data,data:null==(i=e.response)?void 0:i.data,headers:r.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","content","data","headers","role"])):(Pl(),Nl(iUe,{key:2,class:"response-section-content-body",id:s.value.Body,layout:"client",active:!0,data:null==(u=e.response)?void 0:u.data,headers:r.value,role:"All"===o.value?"none":"tabpanel",title:"Body"},null,8,["id","data","headers","role"]))],64)):Vl("",!0)],64)):(Pl(),Nl(yUe,{key:0,collection:e.collection,operation:e.operation,workspace:e.workspace,numWorkspaceRequests:e.numWorkspaceRequests},null,8,["collection","operation","workspace","numWorkspaceRequests"])),Fl(_Ue)],10,MUe)]})),_:1}))}}),IUe=a6(NUe,[["__scopeId","data-v-7138ed84"]]),LUe={class:"flex h-full"},jUe={key:0,class:"flex h-full flex-1 flex-col"},BUe=Li({__name:"Request",props:{invalidParams:{},selectedSecuritySchemeUids:{},requestResult:{}},emits:["newTab"],setup(e){const{events:t}=Obe(),{isSidebarOpen:r}=Kbe(),n=Obe(),{layout:a}=age(),{activeCollection:o,activeExample:i,activeRequest:s,activeWorkspace:l,activeServer:c,activeEnvVariables:u,activeEnvironment:d,activeWorkspaceRequests:p}=Eye(),{modalState:h,requestHistory:f}=n,m=hc((()=>[...f].reverse().find((e=>{var t;return e.request.uid===(null==(t=i.value)?void 0:t.uid)}))));function g(e){var r;t.commandPalette.emit({commandName:"Import from cURL",metaData:{parsedCurl:SBe(e),collectionUid:null==(r=o.value)?void 0:r.uid}})}return(e,t)=>Ao(o)&&Ao(l)?(Pl(),Rl("div",{key:0,class:zn(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0",{"!mr-0 !mb-0 !border-0":"modal"===Ao(a)}])},[Ul("div",LUe,[Ao(s)?(Pl(),Rl("div",jUe,[Fl(CBe,{modelValue:Ao(r),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(r)?r.value=e:null),collection:Ao(o),envVariables:Ao(u),environment:Ao(d),operation:Ao(s),server:Ao(c),workspace:Ao(l),onHideModal:t[1]||(t[1]=()=>Ao(h).hide()),onImportCurl:g},null,8,["modelValue","collection","envVariables","environment","operation","server","workspace"]),Fl(oBe,null,{default:ci((()=>[Ao(i)?(Pl(),Nl(sBe,{key:0,class:zn(["flex-1",[Ao(r)?"sidebar-active-hide-layout":""]])},{default:ci((()=>{var t;return[Fl(VTe,{collection:Ao(o),envVariables:Ao(u),environment:Ao(d),example:Ao(i),invalidParams:e.invalidParams,operation:Ao(s),selectedSecuritySchemeUids:e.selectedSecuritySchemeUids,server:Ao(c),workspace:Ao(l)},null,8,["collection","envVariables","environment","example","invalidParams","operation","selectedSecuritySchemeUids","server","workspace"]),Fl(IUe,{collection:Ao(o),operation:Ao(s),workspace:Ao(l),requestResult:e.requestResult,numWorkspaceRequests:Ao(p).length,response:null==(t=m.value)?void 0:t.response},null,8,["collection","operation","workspace","requestResult","numWorkspaceRequests","response"])]})),_:1},8,["class"])):Vl("",!0)])),_:1})])):(Pl(),Nl(aBe,{key:1}))])],2)):(Pl(),Nl(aBe,{key:1}))}}),UUe=a6(BUe,[["__scopeId","data-v-0100effe"]]),FUe=Object.freeze(Object.defineProperty({__proto__:null,default:UUe},Symbol.toStringTag,{value:"Module"})),QUe=["for"],zUe=["id","placeholder","value"],qUe=Li({__name:"LabelInput",props:{inputId:{},placeholder:{},value:{},layout:{}},emits:["updateValue"],setup(e,{emit:t}){const r=t,{cx:n}=WU(),a=e=>{const t=e.target;r("updateValue",t.value)};return(e,t)=>(Pl(),Rl("div",qn(Ql(Ao(n)("flex-1 flex gap-1 items-center pointer-events-none group"))),["modal"!==e.layout?(Pl(),Rl(Sl,{key:0},[Ul("label",Gl(Ao(n)("absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"),{for:e.inputId}),null,16,QUe),Ul("input",Gl(Ao(n)("flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"),{id:e.inputId,placeholder:e.placeholder,value:e.value,onInput:a}),null,16,zUe)],64)):(Pl(),Rl("span",qn(Gl({key:1},Ao(n)("flex items-center text-c-1 h-8"))),Gn(e.value),17))],16))}}),HUe=a6(qUe,[["__scopeId","data-v-fced736a"]]),VUe=["aria-label"],ZUe={class:"group relative ml-1.25"},WUe=Li({__name:"CollectionInfoForm",setup(e){const{activeCollection:t}=Eye(),{collectionMutators:r}=Obe(),n=hc((()=>{var e;return(null==(e=null==t?void 0:t.value)?void 0:e["x-scalar-icon"])||"interface-content-folder"})),a=e=>{t.value&&r.edit(t.value.uid,"info.title",e)},o=hc((()=>{var e,r,n,a,o,i,s;return{icon:null==(e=null==t?void 0:t.value)?void 0:e["x-scalar-icon"],title:null==(n=null==(r=null==t?void 0:t.value)?void 0:r.info)?void 0:n.title,description:null==(o=null==(a=null==t?void 0:t.value)?void 0:a.info)?void 0:o.description,version:null==(s=null==(i=null==t?void 0:t.value)?void 0:i.info)?void 0:s.version}}));return(e,i)=>(Pl(),Rl("div",{"aria-label":`Collection: ${o.value.title}`,class:"mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"},[Fl(KLe,{modelValue:n.value,placement:"bottom-start","onUpdate:modelValue":i[0]||(i[0]=e=>(e=>{var n,a;null!=(n=null==t?void 0:t.value)&&n.uid&&r.edit(null==(a=null==t?void 0:t.value)?void 0:a.uid,"x-scalar-icon",e)})(e))},{default:ci((()=>[Fl(Ao(aF),{class:"hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",variant:"ghost"},{default:ci((()=>[Fl(Ao(NLe),{class:"text-c-2 size-5",src:n.value,"stroke-width":"2"},null,8,["src"])])),_:1})])),_:1},8,["modelValue"]),Ul("div",ZUe,[Fl(HUe,{class:"text-xl font-bold",inputId:"collectionName",placeholder:"Untitled Collection",value:o.value.title,onUpdateValue:a},null,8,["value"])])],8,VUe))}}),XUe=a6(WUe,[["__scopeId","data-v-68d5218e"]]),GUe={class:"bg-b-1 sticky -top-[104px] z-10 mx-auto w-full"},YUe={key:0,class:"flex max-w-40 items-center"},KUe={class:"text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block"},JUe=Li({__name:"CollectionNavigation",props:{isSticky:{type:Boolean}},setup(e){const{currentRoute:t}=Lme(),{activeCollection:r}=Eye(),n=hc((()=>{var e,t,n,a;return[{displayName:"Overview",to:{name:"collection.overview",params:{[wye.Collection]:null==(e=r.value)?void 0:e.uid}}},{displayName:"Servers",to:{name:"collection.servers",params:{[wye.Collection]:null==(t=r.value)?void 0:t.uid}}},{displayName:"Authentication",to:{name:"collection.authentication",params:{[wye.Collection]:null==(n=r.value)?void 0:n.uid}}},{displayName:"Environment",to:{name:"collection.environment",params:{[wye.Collection]:null==(a=r.value)?void 0:a.uid}}},{displayName:"Settings",to:{name:"collection.settings"}}]}));return(e,a)=>{var o,i,s;return Pl(),Rl("div",GUe,[Fl(XUe),Ul("div",{class:zn(["items-center text-sm font-medium",e.isSticky?"h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4":"flex md:mx-auto md:max-w-[720px]"])},[e.isSticky?(Pl(),Rl("div",YUe,[Fl(Ao(NLe),{class:"text-c-2 hidden size-3.5 md:block",src:(null==(o=Ao(r))?void 0:o["x-scalar-icon"])||"interface-content-folder","stroke-width":"2"},null,8,["src"]),Ul("span",KUe,Gn(null==(s=null==(i=Ao(r))?void 0:i.info)?void 0:s.title),1)])):Vl("",!0),Ul("div",{class:zn(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0",!e.isSticky&&"border-b"])},[(Pl(!0),Rl(Sl,null,ps(n.value,(({to:e,displayName:r},n)=>(Pl(),Nl(Ao($me),{key:n,class:"-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",to:e},{default:ci((()=>{var n;return[Ul("span",{class:zn(["flex-center h-full w-full border-b","string"==typeof e.name&&"string"==typeof Ao(t).name&&null!=(n=Ao(t).name)&&n.startsWith(e.name)?"text-c-1 border-c-1":"text-c-2 hover:text-c-1 border-transparent"])},Gn(r),3)]})),_:2},1032,["to"])))),128))],2)],2)])}}}),eFe={class:"w-full md:mx-auto md:max-w-[720px]"},tFe=Li({__name:"Collection",setup(e){const{activeCollection:t}=Eye(),r=Lme(),n=So(null),{y:a}=function(e,t={}){const{throttle:r=0,idle:n=200,onStop:a=zL,onScroll:o=zL,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:c=GL,onError:u=e=>{console.error(e)}}=t,d=So(0),p=So(0),h=hc({get:()=>d.value,set(e){m(e,void 0)}}),f=hc({get:()=>p.value,set(e){m(void 0,e)}});function m(t,r){var n,a,o,i;if(!c)return;const s=BL(e);if(!s)return;null==(o=s instanceof Document?c.document.body:s)||o.scrollTo({top:null!=(n=BL(r))?n:f.value,left:null!=(a=BL(t))?a:h.value,behavior:BL(l)});const u=(null==(i=null==s?void 0:s.document)?void 0:i.documentElement)||(null==s?void 0:s.documentElement)||s;null!=h&&(d.value=u.scrollLeft),null!=f&&(p.value=u.scrollTop)}const g=So(!1),v=uo({left:!0,right:!1,top:!0,bottom:!1}),b=uo({left:!1,right:!1,top:!1,bottom:!1}),y=e=>{g.value&&(g.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,a(e))},O=WL(y,r+n),w=e=>{var t;if(!c)return;const r=(null==(t=null==e?void 0:e.document)?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||KL(e),{display:n,flexDirection:a}=getComputedStyle(r),o=r.scrollLeft;b.left=o<d.value,b.right=o>d.value;const s=Math.abs(o)<=(i.left||0),l=Math.abs(o)+r.clientWidth>=r.scrollWidth-(i.right||0)-1;"flex"===n&&"row-reverse"===a?(v.left=l,v.right=s):(v.left=s,v.right=l),d.value=o;let u=r.scrollTop;e!==c.document||u||(u=c.document.body.scrollTop),b.top=u<p.value,b.bottom=u>p.value;const h=Math.abs(u)<=(i.top||0),f=Math.abs(u)+r.clientHeight>=r.scrollHeight-(i.bottom||0)-1;"flex"===n&&"column-reverse"===a?(v.top=f,v.bottom=h):(v.top=h,v.bottom=f),p.value=u},x=e=>{var t;if(!c)return;const r=null!=(t=e.target.documentElement)?t:e.target;w(r),g.value=!0,O(e),o(e)};return JL(e,"scroll",r?function(e,t=200,r=!1,n=!0,a=!1){return HL(function(...e){let t,r,n,a,o,i,s=0,l=!0,c=zL;ko(e[0])||"object"!=typeof e[0]?[n,a=!0,o=!0,i=!1]=e:({delay:n,trailing:a=!0,leading:o=!0,rejectOnCancel:i=!1}=e[0]);const u=()=>{t&&(clearTimeout(t),t=void 0,c(),c=zL)};return e=>{const d=BL(n),p=Date.now()-s,h=()=>r=e();return u(),d<=0?(s=Date.now(),h()):(p>d&&(o||!l)?(s=Date.now(),h()):a&&(r=new Promise(((e,r)=>{c=i?r:e,t=setTimeout((()=>{s=Date.now(),l=!0,e(h()),u()}),Math.max(0,d-p))}))),o||t||(t=setTimeout((()=>l=!0),d)),l=!1,r)}}(t,r,n,a),e)}(x,r,!0,!1):x,s),function(e,t=!0,r){tc()?Yi(e,r):t?e():Ko(e)}((()=>{try{const t=BL(e);if(!t)return;w(t)}catch(e){u(e)}})),JL(e,"scrollend",y,s),{x:h,y:f,isScrolling:g,arrivedState:v,directions:b,measure(){const t=BL(e);c&&t&&w(t)}}}(n),o=hc((()=>a.value>104));return ul(t,(e=>{var t;if("Drafts"===(null==(t=null==e?void 0:e.info)?void 0:t.title)){const t=e.requests[0];r.push({name:"request",params:{[wye.Request]:t}})}}),{immediate:!0}),(e,t)=>(Pl(),Nl(oBe,{ref_key:"el",ref:n,class:"h-fit overflow-auto pb-6 xl:overflow-auto"},{default:ci((()=>[Fl(XEe,{class:"xl:h-fit"},{default:ci((()=>[Fl(JUe,{isSticky:o.value},null,8,["isSticky"]),Ul("div",eFe,[Fl(Ao(Nme))])])),_:1})])),_:1},512))}}),rFe=Object.freeze(Object.defineProperty({__proto__:null,default:tFe},Symbol.toStringTag,{value:"Module"})),nFe={class:"flex h-full w-full flex-col gap-2 pt-8"},aFe={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},oFe={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},iFe={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},sFe={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},lFe=Li({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=So("preview"),a=So(null);ul(n,(e=>{"edit"===e&&Ko((()=>{var e;null==(e=a.value)||e.focus()}))}));const o=()=>{requestAnimationFrame((()=>{n.value="preview"}))};return(e,t)=>(Pl(),Rl("div",nFe,[Ul("div",aFe,[t[5]||(t[5]=Ul("h3",{class:"font-bold"},"Description",-1)),"preview"===n.value?(Pl(),Nl(Ao(aF),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>n.value="edit")},{default:ci((()=>[Fl(Ao(U5),{icon:"Pencil",size:"sm",thickness:"1.5"}),t[4]||(t[4]=Ul("span",null,"Edit",-1))])),_:1,__:[4]})):Vl("",!0)]),Ul("div",oFe,[Ul("div",iFe,["preview"===n.value?(Pl(),Rl(Sl,{key:0},[e.modelValue&&e.modelValue.trim().length?(Pl(),Rl(Sl,{key:0},[e.modelValue?(Pl(),Nl(Ao(o8),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:e.modelValue,withImages:"",onDblclick:t[1]||(t[1]=e=>n.value="edit")},null,8,["value"])):Vl("",!0),t[6]||(t[6]=Ul("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(Pl(),Rl("div",sFe,[Fl(Ao(aF),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:t[2]||(t[2]=e=>n.value="edit")},{default:ci((()=>[Fl(Ao(U5),{icon:"Pencil",size:"sm",thickness:"1.5"}),t[7]||(t[7]=Ul("span",null,"Write a description",-1))])),_:1,__:[7]})]))],64)):Vl("",!0),"edit"===n.value?(Pl(),Nl(hge,{key:1,ref_key:"codeInputRef",ref:a,class:"h-full flex-1 border px-0.5 py-0",envVariables:e.envVariables,environment:e.environment,modelValue:e.modelValue,workspace:e.workspace,onBlur:o,"onUpdate:modelValue":t[3]||(t[3]=e=>r("update:modelValue",e))},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)])])]))}}),cFe=a6(lFe,[["__scopeId","data-v-5997a667"]]),uFe=Li({__name:"CollectionOverview",setup(e){const{activeCollection:t,activeEnvironment:r,activeEnvVariables:n,activeWorkspace:a}=Eye(),{collectionMutators:o}=Obe(),i=e=>{t.value&&o.edit(t.value.uid,"info.description",e)};return(e,o)=>(Pl(),Nl(XEe,null,{default:ci((()=>{var e,o;return[Ao(r)&&Ao(a)?(Pl(),Nl(cFe,{key:0,envVariables:Ao(n),environment:Ao(r),modelValue:(null==(o=null==(e=Ao(t))?void 0:e.info)?void 0:o.description)??"",workspace:Ao(a),"onUpdate:modelValue":i},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)]})),_:1}))}}),dFe=Object.freeze(Object.defineProperty({__proto__:null,default:uFe},Symbol.toStringTag,{value:"Module"})),pFe={key:0},hFe={class:"flex flex-1 flex-col gap-1.5"},fFe=["for"],mFe={class:"centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5"},gFe=Li({__name:"Form",props:{title:{},options:{},data:{},onUpdate:{type:Function}},setup(e){const{activeEnvVariables:t,activeEnvironment:r,activeWorkspace:n}=Eye(),a=ji();return(e,o)=>(Pl(),Nl(XEe,{class:"last:rounded-b-lg"},hs({default:ci((()=>[Ul("div",hFe,[Object.keys(e.data).length>0&&Ao(n)?(Pl(),Nl(mOe,{key:0,columns:[""],class:"rounded-b-lg"},{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(e.options,((o,i)=>(Pl(),Nl(Bye,{key:i,class:zn({"border-t":0===i})},{default:ci((()=>[Fl(eOe,{class:"pr-9",lineWrapping:"",id:Ao(a),envVariables:Ao(t),environment:Ao(r),modelValue:e.data[o.key]??"",placeholder:o.placeholder,workspace:Ao(n),"onUpdate:modelValue":t=>e.onUpdate(o.key,t)},hs({default:ci((()=>[Ul("label",{for:Ao(a)},Gn(o.label),9,fFe)])),_:2},["description"===o.key?{name:"icon",fn:ci((()=>[Ul("div",mFe,[Fl(Ao(U5),{icon:"Markdown",size:"lg"})])])),key:"0"}:void 0]),1032,["id","envVariables","environment","modelValue","placeholder","workspace","onUpdate:modelValue"])])),_:2},1032,["class"])))),128))])),_:1})):Vl("",!0)])])),_:2},[e.title||e.$slots.title?{name:"title",fn:ci((()=>[e.title?(Pl(),Rl("span",pFe,Gn(e.title),1)):fs(e.$slots,"title",{key:1})])),key:"0"}:void 0]),1024))}}),vFe=Li({__name:"CollectionServerForm",props:{collectionId:{default:""},serverUid:{default:""}},setup(e){const t=e,{activeWorkspaceCollections:r}=Eye(),{servers:n,serverMutators:a}=Obe(),o=[{label:"URL",key:"url",placeholder:"https://void.scalar.com",type:"text"},{label:"Description",key:"description",placeholder:"Production",type:"text"}],i=hc((()=>{const e=r.value.find((e=>e.uid===t.collectionId));return n[e&&"string"==typeof t.serverUid&&"default"===t.serverUid?e.servers[0]??"":(null==e?void 0:e.servers.find((e=>e===t.serverUid)))??""]})),s=hc((()=>{var e,t;return null!=(e=i.value)&&e.url?(null==(t=i.value.url.match(YI.PATH))?void 0:t.map((e=>e.slice(1,-1))))??[]:[]}));ul(s,(e=>{if(!i.value)return;const t=i.value.variables?{...i.value.variables}:{};Object.keys(t).forEach((r=>{e.includes(r)||delete t[r]})),e.forEach((e=>{t[e]||(t[e]={default:""})})),a.edit(i.value.uid,"variables",t)}),{immediate:!0});const l=(e,t)=>{!r.value||!i.value||a.edit(i.value.uid,e,t)},c=(e,t)=>{if(!i.value)return;const r=i.value.variables||{};r[e]={...r[e],default:t},a.edit(i.value.uid,"variables",r)};return(e,t)=>{var r;return Pl(),Rl("div",{class:zn(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm",(null==(r=i.value)?void 0:r.variables)&&"bg-b-1"])},[i.value?(Pl(),Rl(Sl,{key:0},[Fl(gFe,{data:i.value,onUpdate:l,options:o},null,8,["data"]),i.value.variables?(Pl(),Nl(Cbe,{key:0,variables:i.value.variables,"onUpdate:variable":c},null,8,["variables"])):Vl("",!0)],64)):Vl("",!0)],2)}}}),bFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},yFe={class:"flex flex-col gap-4"},OFe={class:"rounded-lg border"},wFe={class:"bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm"},xFe={key:1,class:"self-center"},kFe={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},SFe=Li({__name:"CollectionServers",setup(e){const{activeCollection:t}=Eye(),{servers:r,events:n,serverMutators:a}=Obe(),o=X8(),i=So(null),s=hc((()=>{var e;return r&&null!=(e=t.value)&&e.servers?Object.values(r).filter((e=>{var r;return null==(r=t.value)?void 0:r.servers.includes(e.uid)})):[]})),l=()=>n.commandPalette.emit({commandName:"Add Server"}),c=()=>{var e;null==(e=t.value)||!e.uid||!i.value||(a.delete(i.value,t.value.uid),o.hide())};return(e,n)=>{var a;return Pl(),Rl("div",bFe,[Ul("div",yFe,[n[2]||(n[2]=Hl('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>',1)),(Pl(!0),Rl(Sl,null,ps(s.value,((e,r)=>(Pl(),Rl("div",{key:e.uid},[Ul("div",OFe,[Ul("div",wFe,[e.description?(Pl(),Nl(Ao(o8),{key:0,value:e.description,class:"self-center"},null,8,["value"])):(Pl(),Rl("span",xFe,"Server "+Gn(r+1),1)),Fl(Ao(aF),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:t=>(e=>{i.value=e,o.show()})(e.uid)},{default:ci((()=>[Fl(Ao(oq),{class:"size-3.5"})])),_:2},1032,["onClick"])]),Ao(t)?(Pl(),Nl(vFe,{key:0,collectionId:Ao(t).uid,serverUid:e.uid},null,8,["collectionId","serverUid"])):Vl("",!0)])])))),128)),Ul("div",kFe,[Fl(Ao(aF),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:l},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),n[1]||(n[1]=Ul("span",null,"Add Server",-1))])),_:1,__:[1]})])]),Fl(Ao(Y8),{size:"xxs",state:Ao(o),title:`Delete ${i.value?null==(a=Ao(r)[i.value])?void 0:a.url:"Server"}`},{default:ci((()=>[Fl(XLe,{variableName:"Server",warningMessage:"Are you sure you want to delete this server? This action cannot be undone.",onClose:n[0]||(n[0]=e=>Ao(o).hide()),onDelete:c})])),_:1},8,["state","title"])])}}}),_Fe=Object.freeze(Object.defineProperty({__proto__:null,default:SFe},Symbol.toStringTag,{value:"Module"})),EFe=["onClick"],TFe=["placeholder"],AFe=Li({__name:"EnvironmentColors",props:{activeColor:{},selector:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,a=So(""),o=So(null),i=So(!1),s=So(!1),l=[{color:"#FFFFFF"},{color:"#EF0006"},{color:"#EDBE20"},{color:"#069061"},{color:"#FB892C"},{color:"#0082D0"},{color:"#5203D1"},{color:"#FFC0CB"}],c=hc((()=>r.activeColor&&!l.some((e=>e.color===r.activeColor))||a.value?`background-color: ${r.activeColor||a.value};`:"background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));")),u=()=>{i.value=!i.value,r.selector&&(s.value=!1),Ko((()=>{o.value&&o.value.focus()}))};ul(a,(e=>{e&&!e.startsWith("#")&&(a.value=`#${e}`),i.value=!0}));const d=()=>{r.selector&&(s.value=!s.value)},p=e=>{n("select",e),r.selector&&(s.value=!1)};return(e,t)=>(Pl(),Rl("div",null,[i.value?Vl("",!0):(Pl(),Rl(Sl,{key:0},[r.selector&&!s.value?(Pl(),Rl("div",{key:0,class:zn(["flex cursor-pointer items-center justify-center rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn({backgroundColor:e.activeColor}),onClick:d},[e.activeColor?(Pl(),Nl(Ao(U5),{key:0,class:zn(["text-c-btn",r.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"])):Vl("",!0)],6)):Vl("",!0),s.value||!r.selector?(Pl(),Rl("div",{key:1,class:zn(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1",r.selector?"h-4":"min-h-10 min-w-[296px]"])},[(Pl(),Rl(Sl,null,ps(l,(t=>Ul("div",{key:t.color,class:zn(["flex cursor-pointer items-center justify-center rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn({backgroundColor:t.color}),onClick:e=>p(t.color)},[e.activeColor!==t.color||a.value?Vl("",!0):(Pl(),Nl(Ao(U5),{key:0,class:zn(["text-c-btn",r.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"]))],14,EFe))),64)),t[2]||(t[2]=Ul("hr",{class:"border-ghost h-5 w-0.5 border-l"},null,-1)),Ul("label",{class:zn(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn(c.value),onClick:u},[i.value||e.activeColor!==a.value&&(!e.activeColor||l.some((t=>t.color===e.activeColor)))?Vl("",!0):(Pl(),Nl(Ao(U5),{key:0,class:"text-c-btn",icon:"Checkmark",size:"xs"}))],6)],2)):Vl("",!0)],64)),i.value?(Pl(),Rl("div",{key:1,class:zn(["color-selector flex flex-1 items-center gap-2 rounded",r.selector?"h-4":"min-h-10"])},[Ul("span",{class:zn(["absolute rounded-full border border-dashed",r.selector?"h-4 w-4":"h-5 w-5"])},null,2),Ul("span",{class:zn(["z-[1] rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn(c.value)},null,6),ui(Ul("input",{ref_key:"customColorInputRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:"w-full flex-1 border-transparent text-sm outline-none",placeholder:e.activeColor||"#000000",type:"text",onInput:t[1]||(t[1]=e=>p(a.value))},null,40,TFe),[[pu,a.value]]),Ul("button",{class:"text-c-3 hover:bg-b-2 rounded-lg p-1.5",type:"button",onClick:u},[Fl(Ao(U5),{icon:"Checkmark",size:"xs"})])],2)):Vl("",!0)]))}}),CFe={class:"flex flex-col gap-4"},PFe=Li({__name:"EnvironmentColorModal",props:{state:{},selectedColor:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,a=So(""),o=e=>{a.value=e},i=()=>{n("submit",a.value),a.value=""};return(e,t)=>(Pl(),Nl(Ao(Y8),{size:"xxs",state:e.state,title:"Edit Environment Color"},{default:ci((()=>[Ul("div",CFe,[Fl(AFe,{activeColor:a.value||r.selectedColor,class:"w-full p-1",onSelect:o},null,8,["activeColor"]),Fl(ZLe,{onCancel:t[0]||(t[0]=e=>n("cancel")),onSubmit:i})])])),_:1},8,["state"]))}}),$Fe={class:"flex gap-2"},DFe={class:"flex max-h-8 flex-1"},MFe=Li({__name:"CommandActionForm",props:{loading:{},disabled:{type:Boolean,default:!1}},emits:["submit","cancel","back"],setup(e){const{cx:t}=WU();return(e,r)=>(Pl(),Rl("form",{class:"flex w-full flex-col gap-3",onKeydown:r[0]||(r[0]=Eu(Su((()=>{}),["stop"]),["enter"])),onSubmit:r[1]||(r[1]=Su((t=>e.$emit("submit")),["prevent","stop"]))},[Ul("div",qn(Ql(Ao(t)("relative flex min-h-20 flex-col rounded"))),[fs(e.$slots,"default")],16),Ul("div",$Fe,[Ul("div",DFe,[fs(e.$slots,"options")]),Fl(Ao(aF),{class:"max-h-8 p-0 px-3 text-xs",disabled:e.disabled,loading:e.loading,type:"submit"},{default:ci((()=>[fs(e.$slots,"submit",{},(()=>[r[2]||(r[2]=ql("Continue"))]))])),_:3},8,["disabled","loading"])])],32))}}),RFe=["placeholder"],NFe=Li({inheritAttrs:!1,__name:"CommandActionInput",props:{modelValue:{},placeholder:{},autofocus:{type:Boolean}},emits:["update:modelValue","onDelete"],setup(e,{emit:t}){const r=e,n=t,a=So(null);Yi((()=>Ko((()=>{var e;r.autofocus||null==(e=a.value)||e.focus()}))));const o=hc({get:()=>r.modelValue??"",set:e=>n("update:modelValue",e)});return(e,t)=>ui((Pl(),Rl("textarea",Gl({id:"command-action-input",ref_key:"input",ref:a,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"min-h-8 w-full flex-1 resize-none border border-transparent py-1.5 pl-8.5 text-sm outline-none focus:border-b-1",placeholder:r.placeholder??"",wrap:"hard"},e.$attrs,{onKeydown:[t[1]||(t[1]=Eu((e=>function(e){""===o.value&&(e.preventDefault(),e.stopPropagation(),n("onDelete",e))}(e)),["delete"])),t[2]||(t[2]=Eu((e=>function(e){var t;if(e.shiftKey||!e.target)return;e.preventDefault();const r=e.target,n=new Event("submit",{cancelable:!0});null==(t=r.form)||t.dispatchEvent(n)}(e)),["enter"]))]}),null,16,RFe)),[[pu,o.value]])}}),IFe={class:"flex items-start gap-2"},LFe=Li({__name:"EnvironmentModal",props:{state:{},activeWorkspaceCollections:{},collectionId:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,{events:a}=Obe(),o=So(""),i=So("#FFFFFF"),s=hc((()=>[...r.activeWorkspaceCollections.filter((e=>{var t;return"Drafts"!==(null==(t=e.info)?void 0:t.title)})).map((e=>{var t;return{id:e.uid,label:(null==(t=e.info)?void 0:t.title)??"Untitled Collection"}}))])),l=So(s.value.find((e=>e.id===r.collectionId))),{toast:c}=cH(),u=e=>{i.value=e};ul((()=>r.state.open),(e=>{e&&(o.value="",i.value="#FFFFFF",r.collectionId?l.value=s.value.find((e=>e.id===r.collectionId)):l.value=void 0)}));const d=()=>{var e,t,r,a;o.value.trim()?null!=(e=l.value)&&e.id?n("submit",{name:o.value,color:i.value,type:"global"===(null==(t=l.value)?void 0:t.id)?"global":"collection",collectionId:"global"!==(null==(r=l.value)?void 0:r.id)?null==(a=l.value)?void 0:a.id:void 0}):c("Please select a collection before adding an environment.","error"):c("Please enter a name before adding an environment.","error")},p=()=>{r.state.hide(),a.commandPalette.emit({commandName:"Create Collection"})};return(e,t)=>(Pl(),Nl(Ao(Y8),{bodyClass:"border-t-0 rounded-t-lg",size:"xs",state:e.state},{default:ci((()=>[Fl(MFe,{disabled:!l.value||!o.value.trim(),onCancel:t[2]||(t[2]=e=>n("cancel")),onSubmit:d},{options:ci((()=>[Fl(Ao(n8),{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value=e),options:s.value,placeholder:"Select Type"},{default:ci((()=>[s.value.length>0?(Pl(),Nl(Ao(aF),{key:0,class:"hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",variant:"outlined"},{default:ci((()=>[Ul("span",{class:zn(l.value?"text-c-1":"text-c-3")},Gn(l.value?l.value.label:"Select Collection"),3),Fl(Ao(U5),{class:"text-c-3",icon:"ChevronDown",size:"xs"})])),_:1})):(Pl(),Nl(Ao(aF),{key:1,class:"hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",variant:"outlined",onClick:p},{default:ci((()=>t[3]||(t[3]=[Ul("span",{class:"text-c-1"},"Create Collection",-1)]))),_:1,__:[3]}))])),_:1},8,["modelValue","options"])])),submit:ci((()=>t[4]||(t[4]=[ql(" Add Environment ")]))),default:ci((()=>[Ul("div",IFe,[Fl(AFe,{activeColor:i.value,class:"peer",selector:"",onSelect:u},null,8,["activeColor"]),Fl(NFe,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",placeholder:"Environment name"},null,8,["modelValue"])])])),_:1},8,["disabled"])])),_:1},8,["state"]))}}),jFe=Li({__name:"EnvironmentForm",props:{collection:{},environment:{},workspace:{},envVariables:{}},setup(e){const{collectionMutators:t}=Obe(),r=So([]),n=So(new Set),a=So(new Map),o=So(!1),i=hc((()=>{var t;if(null==(t=e.environment)||!t.value)return[{key:"",value:""}];try{const t=JSON.parse(e.environment.value),r=Object.entries(t).map((([e,t])=>({key:e,value:String(t)})));return 0===r.length?[{key:"",value:""}]:r}catch{return[{key:"",value:""}]}})),s=hc((()=>{const e=r.value[r.value.length-1];return e?e.key||e.value?[...r.value,{key:"",value:""}]:r.value:[{key:"",value:""}]})),l=hc((()=>{const e=new Map;return r.value.forEach(((t,r)=>{if(t.key){const n=e.get(t.key)||[];n.push(r),e.set(t.key,n)}})),a.value.forEach(((t,r)=>{if(t){const n=e.get(t)||[];n.push(r),e.set(t,n)}})),Array.from(e.values()).filter((e=>e.length>1)).flat()}));ul(i,(e=>{r.value=[...e],n.value=new Set(e.map((e=>e.key)).filter(Boolean))}),{immediate:!0});const c=async(i,s,l)=>{var c;if(!o.value){if("key"===s){a.value.set(i,l);const e=new Set(n.value),t=r.value[i];if(t&&e.delete(t.key),e.has(l))return}o.value=!0;try{const o=[...r.value],d=o[i];if(!d)return;o[i]={key:"key"===s?l:d.key,value:"value"===s?l:d.value},!o[i].key&&!o[i].value&&i!==o.length-1&&o.splice(i,1);const p=o.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(c=e.collection["x-scalar-environments"])?void 0:c[e.environment.name],variables:p}};await t.edit(e.collection.uid,"x-scalar-environments",r)}if(i===r.value.length-1){const e=o[o.length-1];e&&(e.key||e.value)&&await u()}await Ko(),r.value=o,"key"===s&&(n.value=new Set(o.map((e=>e.key)).filter(Boolean)),a.value.delete(i))}finally{o.value=!1}}},u=async()=>{var n;if(!o.value){o.value=!0;try{const a=[...r.value,{key:"",value:""}],o=a.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(n=e.collection["x-scalar-environments"])?void 0:n[e.environment.name],variables:o}};await t.edit(e.collection.uid,"x-scalar-environments",r)}await Ko(),r.value=a}finally{o.value=!1}}},d=async()=>{if(0===r.value.length)await u();else if(r.value.length>=1){const e=r.value[r.value.length-1];e&&(e.key||e.value)&&await u()}};return Yi((()=>{d()})),ul((()=>r.value),(()=>{d()})),(n,a)=>(Pl(),Nl(mOe,{class:"group/table flex-1",columns:["",""]},{default:ci((()=>[Fl(Bye,{class:"sr-only !block"},{default:ci((()=>[Fl(KEe,null,{default:ci((()=>a[0]||(a[0]=[ql("Key")]))),_:1,__:[0]}),Fl(KEe,null,{default:ci((()=>a[1]||(a[1]=[ql("Value")]))),_:1,__:[1]})])),_:1}),(Pl(!0),Rl(Sl,null,ps(s.value,((a,i)=>(Pl(),Nl(Bye,{key:i,class:zn({error:l.value.includes(i)})},{default:ci((()=>[Fl(Lye,null,{default:ci((()=>[Fl(hge,{disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:n.environment,envVariables:n.envVariables,modelValue:a.key,placeholder:"Key",workspace:n.workspace,"onUpdate:modelValue":e=>c(i,"key",e)},hs({_:2},[l.value.includes(i)?{name:"icon",fn:ci((()=>[Fl(Ao(pq),{class:"text-red mr-0.75 size-3.5 brightness-[.9]"})])),key:"0"}:void 0]),1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])])),_:2},1024),Fl(Lye,null,{default:ci((()=>[Fl(hge,{class:"pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:n.environment,envVariables:n.envVariables,modelValue:a.value,placeholder:"Value",workspace:n.workspace,"onUpdate:modelValue":e=>c(i,"value",e)},{icon:ci((()=>[a.key||a.value?(Pl(),Nl(Ao(aF),{key:0,class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",size:"sm",variant:"ghost",onClick:Su((n=>(async n=>{var a;if(!o.value){o.value=!0;try{const o=[...r.value];o.splice(n,1);const i=o.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(a=e.collection["x-scalar-environments"])?void 0:a[e.environment.name],variables:i}};await t.edit(e.collection.uid,"x-scalar-environments",r)}await Ko(),r.value=o}finally{o.value=!1}}})(i)),["stop"])},{default:ci((()=>[Fl(Ao(oq),{class:"size-3.5"})])),_:2},1032,["onClick"])):Vl("",!0)])),_:2},1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])])),_:2},1024)])),_:2},1032,["class"])))),128))])),_:1}))}}),BFe=a6(jFe,[["__scopeId","data-v-2debec7e"]]),UFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},FFe={class:"flex flex-col gap-4"},QFe={class:"rounded-lg border"},zFe={class:"bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm"},qFe={class:"flex items-center"},HFe=["onClick"],VFe={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},ZFe=Li({__name:"CollectionEnvironment",setup(e){const{activeCollection:t,activeWorkspace:r,activeEnvVariables:n}=Eye(),{collectionMutators:a}=Obe(),o=X8(),i=X8(),s=X8(),l=X8(),c=So(""),u=So(null),d=So(void 0),p=hc((()=>{var e;return null!=(e=t.value)&&e["x-scalar-environments"]?Object.entries(t.value["x-scalar-environments"]).map((([e,t])=>({uid:e,name:e,value:JSON.stringify(t.variables||{}),color:t.color||"#FFFFFF"}))):[]})),h=()=>{var e;null==(e=t.value)||!e.uid||!u.value||(a.removeEnvironment(u.value,t.value.uid),i.hide())},f=e=>{var r;null!=(r=t.value)&&r.uid&&(a.addEnvironment(e.name,{variables:{},color:e.color},t.value.uid),s.hide())},m=e=>{var r,n,i;if(null==(r=t.value)||!r.uid||!u.value)return;const s={...t.value["x-scalar-environments"],[u.value]:{variables:(null==(i=null==(n=t.value["x-scalar-environments"])?void 0:n[u.value])?void 0:i.variables)||{},color:e}};a.edit(t.value.uid,"x-scalar-environments",s),o.hide()},g=()=>{u.value=null,d.value=void 0,l.hide()},v=e=>{var r;if(null==(r=t.value)||!r.uid||!u.value)return;const n={...t.value["x-scalar-environments"]};if(!n[u.value])return;const o={},i=Object.entries(n),s=i.findIndex((([e])=>e===u.value));i.forEach((([t,r],n)=>{n===s?o[e]=r:o[t]=r})),a.edit(t.value.uid,"x-scalar-environments",o),u.value=null,d.value=void 0,l.hide()},b=(e,r)=>{var n;if(null==(n=t.value)||!n.uid)return;const o={...t.value["x-scalar-environments"]},i={},s=Object.entries(o),l=s.findIndex((([t])=>t===e.id)),c=s.findIndex((([e])=>e===r.id));if(-1===l||-1===c)return;const u=s[l];u&&(s.splice(l,1),s.splice(c,0,u),s.forEach((([e,t])=>{i[e]=t})),a.edit(t.value.uid,"x-scalar-environments",i))};return(e,a)=>(Pl(),Nl(XEe,null,{default:ci((()=>{var e;return[Ul("div",UFe,[Ul("div",FFe,[a[5]||(a[5]=Ul("div",{class:"flex items-start justify-between gap-2"},[Ul("div",{class:"flex flex-col gap-2"},[Ul("div",{class:"flex h-8 items-center"},[Ul("h3",{class:"font-bold"},"Environment Variables")]),Ul("p",{class:"text-sm"},[ql(" Set environment variables at your collection level. Use "),Ul("code",{class:"font-code text-c-2"},"{{ variable }}"),ql(" to add / search among the selected environment's variables in your request inputs. ")])])],-1)),(Pl(!0),Rl(Sl,null,ps(p.value,(e=>(Pl(),Nl(Ao(cje),{key:e.name,id:e.name,isDraggable:!0,isDroppable:!0,parentIds:[],onOnDragEnd:b},{default:ci((()=>[Ul("div",QFe,[Ul("div",zFe,[Ul("div",qFe,[Fl(Ao(aF),{class:"hover:bg-b-3 flex h-6 w-6 p-1",onClick:t=>(e=>{u.value=e.name,c.value=e.color||"#FFFFFF",o.show()})(e),variant:"ghost"},{default:ci((()=>[Ul("span",{style:jn({backgroundColor:e.color||"#FFFFFF"}),class:"h-2.5 w-2.5 rounded-full"},null,4)])),_:2},1032,["onClick"]),Ul("button",{class:"hover:bg-b-3 rounded px-1 py-0.5 text-sm",onClick:t=>(e=>{u.value=e,d.value=e,l.show()})(e.name)},Gn(e.name),9,HFe)]),Fl(Ao(aF),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:t=>(e=>{u.value=e,i.show()})(e.name)},{default:ci((()=>[Fl(Ao(oq),{class:"size-3.5"})])),_:2},1032,["onClick"])]),Ao(t)&&Ao(r)?(Pl(),Nl(BFe,{key:0,collection:Ao(t),environment:e,envVariables:Ao(n),workspace:Ao(r)},null,8,["collection","environment","envVariables","workspace"])):Vl("",!0)])])),_:2},1032,["id"])))),128)),Ul("div",VFe,[Fl(Ao(aF),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:a[0]||(a[0]=e=>Ao(s).show())},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),a[4]||(a[4]=Ul("span",null,"Add Environment",-1))])),_:1,__:[4]})])]),Fl(Ao(Y8),{size:"xxs",state:Ao(i),title:`Delete ${u.value||"Environment"}`},{default:ci((()=>[Fl(XLe,{variableName:"Environment",warningMessage:"Are you sure you want to delete this environment? This action cannot be undone.",onClose:a[1]||(a[1]=e=>Ao(i).hide()),onDelete:h})])),_:1},8,["state","title"]),Fl(LFe,{activeWorkspaceCollections:Ao(t)?[Ao(t)]:[],collectionId:null==(e=Ao(t))?void 0:e.uid,state:Ao(s),onCancel:a[2]||(a[2]=e=>Ao(s).hide()),onSubmit:f},null,8,["activeWorkspaceCollections","collectionId","state"]),Fl(PFe,{selectedColor:c.value,state:Ao(o),onCancel:a[3]||(a[3]=e=>Ao(o).hide()),onSubmit:m},null,8,["selectedColor","state"]),Fl(Ao(Y8),{size:"xxs",state:Ao(l),title:`Edit ${u.value}`},{default:ci((()=>[Fl(rje,{name:d.value??"",onClose:g,onEdit:v},null,8,["name"])])),_:1},8,["state","title"])])]})),_:1}))}}),WFe=Object.freeze(Object.defineProperty({__proto__:null,default:ZFe},Symbol.toStringTag,{value:"Module"})),XFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},GFe={class:"flex flex-col gap-4"},YFe={class:"flex flex-col gap-2"},KFe={class:"flex h-8 items-center justify-between"},JFe=Li({__name:"CollectionAuthentication",setup(e){const{activeCollection:t,activeEnvVariables:r,activeEnvironment:n,activeServer:a,activeWorkspace:o}=Eye(),{collectionMutators:i}=Obe(),s=()=>{var e;null!=(e=t.value)&&e.uid&&i.edit(t.value.uid,"useCollectionSecurity",!t.value.useCollectionSecurity)};return(e,i)=>{var l,c,u;return Pl(),Rl("div",XFe,[Ul("div",GFe,[Ul("div",YFe,[Ul("div",KFe,[i[0]||(i[0]=Ul("h3",{class:"font-bold"},"Authentication",-1)),Fl(Ao(z8),{class:"w-4",modelValue:(null==(l=Ao(t))?void 0:l.useCollectionSecurity)??!1,"onUpdate:modelValue":s},null,8,["modelValue"])]),i[1]||(i[1]=Ul("p",{class:"pr-6 text-sm"}," Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ",-1))]),Ao(t)&&Ao(o)?(Pl(),Nl(Ao(IOe),{key:0,class:zn(["scalar-collection-auth",!(null!=(c=Ao(t))&&c.useCollectionSecurity)&&"pointer-events-none opacity-50 mix-blend-luminosity"]),collection:Ao(t),envVariables:Ao(r),environment:Ao(n),layout:"client",selectedSecuritySchemeUids:(null==(u=Ao(t))?void 0:u.selectedSecuritySchemeUids)??[],server:Ao(a),title:"Authentication",workspace:Ao(o)},null,8,["class","collection","envVariables","environment","selectedSecuritySchemeUids","server","workspace"])):Vl("",!0)])])}}}),eQe=a6(JFe,[["__scopeId","data-v-cc87292e"]]),tQe=Object.freeze(Object.defineProperty({__proto__:null,default:eQe},Symbol.toStringTag,{value:"Module"})),rQe=Li({__name:"CollectionCookies",setup:e=>(e,t)=>(Pl(),Nl(XEe,null,{title:ci((()=>t[0]||(t[0]=[ql("Cookies")]))),_:1}))}),nQe=Object.freeze(Object.defineProperty({__proto__:null,default:rQe},Symbol.toStringTag,{value:"Module"})),aQe=Li({__name:"CollectionScripts",setup:e=>(e,t)=>(Pl(),Nl(XEe,null,{title:ci((()=>t[0]||(t[0]=[ql("Scripts")]))),_:1}))}),oQe=Object.freeze(Object.defineProperty({__proto__:null,default:aQe},Symbol.toStringTag,{value:"Module"})),iQe=Li({__name:"CollectionSync",setup:e=>(e,t)=>(Pl(),Nl(XEe,null,{title:ci((()=>t[0]||(t[0]=[ql("Sync")]))),_:1}))}),sQe=Object.freeze(Object.defineProperty({__proto__:null,default:iQe},Symbol.toStringTag,{value:"Module"})),lQe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},cQe={class:"flex flex-col gap-2"},uQe={class:"bg-b-2 rounded-lg border text-sm"},dQe={class:"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3"},pQe={class:"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap"},hQe={class:"flex items-center"},fQe=["href"],mQe={class:"flex flex-col gap-4"},gQe={class:"flex items-center justify-between rounded-lg border p-3 text-sm"},vQe=Li({__name:"CollectionSettings",setup(e){const{activeCollection:t,activeWorkspace:r,activeWorkspaceCollections:n}=Eye(),{collectionMutators:a}=Obe(),{replace:o}=Lme(),i=X8();function s(){var e,r;t.value&&null!=(e=t.value)&&e.documentUrl&&a.edit(t.value.uid,"watchMode",!(null!=(r=t.value)&&r.watchMode))}function l(){if(!t.value||!r.value)return;a.delete(t.value,r.value);const e=n.value[0];e&&o({name:"collection",params:{[wye.Workspace]:r.value.uid,[wye.Collection]:e.uid}}),i.hide()}return(e,r)=>{var n,a,o,c,u;return Pl(),Rl(Sl,null,[Ul("div",lQe,[Ul("div",cQe,[r[5]||(r[5]=Ul("div",{class:"flex h-8 items-center"},[Ul("h3",{class:"font-bold"},"Features")],-1)),Ul("div",uQe,[Ul("div",dQe,[r[2]||(r[2]=Ul("div",null,[Ul("h4",null,"Watch Mode"),Ul("p",{class:"text-c-2 mt-1"}," When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")],-1)),Fl(Ao(z8),{class:"w-4",disabled:!(null!=(n=Ao(t))&&n.documentUrl),modelValue:(null==(a=Ao(t))?void 0:a.watchMode)??!1,"onUpdate:modelValue":s},null,8,["disabled","modelValue"])]),Ul("div",pQe,[Ul("div",hQe,[null!=(o=Ao(t))&&o.documentUrl?(Pl(),Rl(Sl,{key:0},[r[3]||(r[3]=Ul("span",{class:"bg-b-2 sticky left-0 pr-2 pl-3"},"Source",-1)),Ul("a",{class:"text-c-2 group rounded pr-3 no-underline hover:underline",href:Ao(t).documentUrl,target:"_blank"},[ql(Gn(Ao(t).documentUrl)+" ",1),Fl(Ao(U5),{class:"ml-1 hidden w-2.5 group-hover:inline",icon:"ExternalLink"})],8,fQe)],64)):(Pl(),Rl(Sl,{key:1},[Fl(Ao(U5),{class:"text-c-2 mr-2 ml-3 w-4",icon:"NotAllowed",size:"sm"}),r[4]||(r[4]=Ul("span",{class:"text-c-2 pr-3"}," No URL configured. Try importing an OpenAPI document from an URL. ",-1))],64))])])])]),Ul("div",mQe,[r[8]||(r[8]=Ul("h3",{class:"font-bold"},"Danger Zone",-1)),Ul("div",gQe,[r[7]||(r[7]=Ul("div",null,[Ul("h4",null,"Delete Collection"),Ul("p",{class:"text-c-2 mt-1"}," Be careful, my friend. Once deleted, there is no way to recover the collection. ")],-1)),Fl(Ao(aF),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",variant:"danger",onClick:r[0]||(r[0]=e=>Ao(i).show())},{default:ci((()=>r[6]||(r[6]=[ql(" Delete Collection ")]))),_:1,__:[6]})])])]),Fl(Ao(Y8),{size:"xxs",state:Ao(i),title:`Delete ${null==(u=null==(c=Ao(t))?void 0:c.info)?void 0:u.title}`},{default:ci((()=>{var e,n;return[Fl(XLe,{variableName:(null==(n=null==(e=Ao(t))?void 0:e.info)?void 0:n.title)??"",warningMessage:"This action cannot be undone.",onClose:r[1]||(r[1]=e=>Ao(i).hide()),onDelete:l},null,8,["variableName"])]})),_:1},8,["state","title"])],64)}}}),bQe=a6(vQe,[["__scopeId","data-v-5170f3be"]]),yQe=Object.freeze(Object.defineProperty({__proto__:null,default:bQe},Symbol.toStringTag,{value:"Module"})),OQe={class:"gap-1/2 flex flex-col px-3 pb-[75px]"},wQe=a6({},[["render",function(e,t){return Pl(),Rl("ul",OQe,[fs(e.$slots,"default")])}]]),xQe={class:"absolute right-1 flex opacity-0 group-hover:opacity-100"},kQe=Li({__name:"SidebarListElementActions",props:{variable:{},warningMessage:{},isCopyable:{type:Boolean},isDeletable:{type:Boolean},isRenameable:{type:Boolean}},emits:["delete","rename"],setup(e,{emit:t}){const r=t,n=So({action:"None",name:""}),a=X8(),{copyToClipboard:o}=dH();function i(){a.hide(),n.value={action:"None",name:""}}return(t,s)=>(Pl(),Rl(Sl,null,[Ul("div",xQe,[t.isCopyable?(Pl(),Rl("button",{key:0,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:s[0]||(s[0]=e=>Ao(o)(t.variable.name))},[Fl(Ao(U5),{class:"h-3 w-3",icon:"Clipboard"})])):Vl("",!0),t.isRenameable?(Pl(),Rl("button",{key:1,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:s[1]||(s[1]=e=>r("rename",t.variable.uid))},[Fl(Ao(U5),{class:"h-3 w-3",icon:"Edit"})])):Vl("",!0),!t.variable.isDefault&&t.isDeletable?(Pl(),Rl("button",{key:2,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",onClick:s[2]||(s[2]=Su((t=>(n.value={action:"Delete",name:e.variable.name},void a.show())),["prevent"]))},[Fl(Ao(U5),{class:"h-3.5 w-3.5",icon:"Close"})])):Vl("",!0)]),Fl(Ao(Y8),{size:"sm",state:Ao(a),title:`${n.value.action} ${n.value.name}`},{default:ci((()=>["Delete"===n.value.action?(Pl(),Nl(XLe,{key:0,variableName:n.value.name,warningMessage:t.warningMessage,onClose:i,onDelete:s[3]||(s[3]=e=>function(e){r("delete",e),i()}(t.variable.uid))},null,8,["variableName","warningMessage"])):Vl("",!0)])),_:1},8,["state","title"])],64))}}),SQe={class:"empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5"},_Qe=Li({__name:"SidebarListElement",props:{variable:{},warningMessage:{},to:{},isDeletable:{type:Boolean},isCopyable:{type:Boolean},isRenameable:{type:Boolean},isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},collectionId:{}},emits:["delete","colorModal","rename","onDragEnd"],setup(e,{emit:t}){const r=t,n=Lme(),a=e=>{r("delete",e)},o=e=>{r("rename",e)},i=So(null),s=hc((()=>({ceiling:.5,floor:.5})));return(t,l)=>{const c=ss("router-link");return Pl(),Rl("li",null,[Fl(Ao(cje),{id:t.variable.uid,ref_key:"draggableRef",ref:i,ceiling:s.value.ceiling,floor:s.value.floor,isDraggable:t.isDraggable,isDroppable:t.isDroppable,parentIds:t.collectionId?[t.collectionId]:[],onOnDragEnd:l[2]||(l[2]=(...e)=>t.$emit("onDragEnd",...e))},{default:ci((()=>[Fl(c,{class:zn(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline",[t.variable.color?"pl-5":"pl-1.5"]]),exactActiveClass:"bg-b-2 !text-c-1",role:"button",to:t.to,onClick:l[1]||(l[1]=Su((t=>(t=>{t.metaKey?window.open(n.resolve(e.to).href,"_blank"):n.push(e.to)})(t)),["prevent"]))},{default:ci((()=>[t.variable.color?(Pl(),Rl("button",{key:0,class:"hover:bg-b-3 rounded p-1.5",type:"button",onClick:l[0]||(l[0]=e=>(e=>{r("colorModal",e)})(t.variable.uid))},[Ul("div",{class:"h-2.5 w-2.5 rounded-xl",style:jn({backgroundColor:t.variable.color})},null,4)])):Vl("",!0),t.variable.icon?(Pl(),Nl(Ao(U5),{key:1,class:"text-sidebar-c-2 size-3.5 stroke-[2.25]",icon:t.variable.icon},null,8,["icon"])):Vl("",!0),Ul("span",SQe,Gn(t.variable.name),1),Fl(kQe,{isCopyable:!!t.isCopyable,isDeletable:!!t.isDeletable,isRenameable:!!t.isRenameable,variable:{...t.variable,isDefault:t.variable.isDefault??!1},warningMessage:t.warningMessage,onDelete:a,onRename:o},null,8,["isCopyable","isDeletable","isRenameable","variable","warningMessage"])])),_:1},8,["class","to"])])),_:1},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])])}}}),EQe=a6(_Qe,[["__scopeId","data-v-0b6c70e4"]]),TQe={class:"flex-1"},AQe=["onClick"],CQe={class:"flex h-5 max-w-[14px] items-center justify-center"},PQe=(Li({__name:"Environment",setup(e){const t=Lme(),r=jme(),{activeWorkspace:n,activeEnvironment:a,activeWorkspaceCollections:o,activeEnvVariables:i}=Eye(),{events:s,workspaceMutators:l,collectionMutators:c}=Obe(),{collapsedSidebarFolders:u,toggleSidebarFolder:d}=Kbe(),p=X8(),h=X8(),f=X8(),m=So(null),g=So("default"),v=So(""),b=So(void 0),y=So(void 0),O=So(void 0),{toast:w}=cH();function x(e,t,r){var n;e&&(t.uid===r?w(`Environment name already used in ${null==(n=t.info)?void 0:n.title}`,"error"):w("Environment name already used in another collection","error"))}const k=hc((()=>o.value.filter((e=>{var t;return"Drafts"!==(null==(t=e.info)?void 0:t.title)}))));function S(e){k.value.some((t=>{const r=Object.keys(t["x-scalar-environments"]||{}).includes(e.name);return x(r,t,e.collectionId),r}))||(e.collectionId&&(c.addEnvironment(e.name,{variables:{},color:e.color},e.collectionId),u[e.collectionId]||d(e.collectionId),t.push({name:"environment.collection",params:{[wye.Collection]:e.collectionId,[wye.Environment]:e.name}})),h.hide())}function _(e){var t,r;if(!a)return;const i=(e=>JSON.parse(e))(e);if("default"===g.value)l.edit(null==(t=n.value)?void 0:t.uid,"environments",i);else{const e=o.value.find((e=>{var t;return null==(t=e["x-scalar-environments"])?void 0:t[g.value??""]}));if(null!=(r=null==e?void 0:e["x-scalar-environments"])&&r[g.value??""]){const t=e["x-scalar-environments"][g.value??""];t&&(t.variables=i,c.edit(e.uid,"x-scalar-environments",e["x-scalar-environments"]))}}}const E=e=>{b.value=e,h.show()},T=e=>{const t=m.value;"string"==typeof t&&(o.value.some((e=>{var r;return null==(r=e["x-scalar-environments"])?void 0:r[t]}))&&o.value.forEach((r=>{var n;null!=(n=r["x-scalar-environments"])&&n[t]&&(r["x-scalar-environments"][t].color=e,c.edit(r.uid,"x-scalar-environments",r["x-scalar-environments"]))})),p.hide())},A=()=>{var e,t,r,a;return"default"===g.value?JSON.stringify(null==(e=n.value)?void 0:e.environments,null,2):JSON.stringify(null==(a=null==(r=null==(t=o.value.find((e=>{var t;return null==(t=e["x-scalar-environments"])?void 0:t[g.value??""]})))?void 0:t["x-scalar-environments"])?void 0:r[g.value??""])?void 0:a.variables,null,2)},C=e=>u[e],P=e=>{null!=e&&e.createNew&&"environment"===r.name&&E()};function $(){y.value=void 0,b.value=void 0,O.value=void 0,f.hide()}function D(e){k.value.some((t=>{const r=Object.keys(t["x-scalar-environments"]||{}).includes(e);return x(r,t,b.value),r}))||(e&&"default"!==y.value&&o.value.forEach((t=>{var r;if(null!=(r=t["x-scalar-environments"])&&r[y.value??""]){const r=t["x-scalar-environments"],n={};Object.keys(r).forEach((t=>{const a=r[t];a&&(t===y.value?n[e]=a:n[t]=a)})),t["x-scalar-environments"]=n,c.edit(t.uid,"x-scalar-environments",t["x-scalar-environments"])}})),e&&g.value===y.value&&(g.value=e),y.value=void 0,b.value=void 0,O.value=void 0,f.hide())}ul((()=>[r.params[wye.Collection],r.params[wye.Environment]]),(([e,t])=>{g.value=e?t:"default"})),Yi((()=>{g.value=r.params[wye.Environment]||"default",s.hotKeys.on(P);const e=r.params[wye.Collection];e&&!u[e]&&d(e)})),es((()=>s.hotKeys.off(P)));const{handleDragEnd:M,isDroppable:R}=function(e,t){return{handleDragEnd:(r,n)=>{if(!r||!n)return;const{id:a,parentId:o}=r,{id:i,parentId:s,offset:l}=n;if(o!==s)return;const c=e.value.find((e=>e.uid===o));if(!c||!c["x-scalar-environments"])return;const u=c["x-scalar-environments"],d=Object.keys(u),p=d.findIndex((e=>e===a));d.splice(p,1);const h=d.findIndex((e=>e===i))+(1===l?1:0);d.splice(h,0,a);const f=d.reduce(((e,t)=>{const r=u[t];return r&&(e[t]=r),e}),{});c["x-scalar-environments"]=f,t.edit(c.uid,"x-scalar-environments",c["x-scalar-environments"])},isDroppable:(e,t)=>e.parentId===t.parentId}}(o,c);return ul((()=>r.query.openEnvironmentModal),(e=>{"true"===e&&E()}),{immediate:!0}),(e,r)=>(Pl(),Nl(oBe,null,{default:ci((()=>[Fl(nye,{title:"Collections"},{content:ci((()=>[Ul("div",TQe,[Fl(wQe,null,{default:ci((()=>[(Pl(),Nl(EQe,{key:"default",class:"text-xs",isCopyable:!1,to:{name:"environment",params:{[Ao(wye).Environment]:"default"}},type:"environment",variable:{name:"Global Environment",uid:"default",icon:"Globe",isDefault:!0}},null,8,["to"])),(Pl(!0),Rl(Sl,null,ps(k.value,(e=>{var a;return Pl(),Rl("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[Ul("button",{class:"hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",type:"button",onClick:t=>Ao(d)(e.uid)},[Ul("span",CQe,[Fl(Ao(NLe),{class:"text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",src:e["x-scalar-icon"]||"interface-content-folder"},null,8,["src"]),Ul("div",{class:zn({"rotate-90":Ao(u)[e.uid]})},[Fl(Ao(U5),{class:"text-c-3 hover:text-c-1 hidden text-sm group-hover:block",icon:"ChevronRight",size:"md"})],2)]),ql(" "+Gn((null==(a=e.info)?void 0:a.title)??""),1)],8,AQe),ui(Ul("div",{class:zn({"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":Object.keys(e["x-scalar-environments"]||{}).length>0})},[(Pl(!0),Rl(Sl,null,ps(e["x-scalar-environments"],((r,a)=>(Pl(),Nl(EQe,{key:a,class:"text-xs",collectionId:e.uid,isCopyable:!1,isDeletable:!0,isRenameable:!0,isDraggable:!0,isDroppable:Ao(R),to:{name:"environment.collection",params:{[Ao(wye).Collection]:e.uid,[Ao(wye).Environment]:a}},type:"environment",variable:{name:a,uid:a,color:r.color??"#FFFFFF",isDefault:!1},warningMessage:"Are you sure you want to delete this environment?",onClick:Su((r=>((e,r,a)=>{var o,i;const s=a?{name:"environment.collection",params:{[wye.Workspace]:null==(o=n.value)?void 0:o.uid,[wye.Collection]:a,[wye.Environment]:r}}:{name:"environment.default",params:{[wye.Workspace]:null==(i=n.value)?void 0:i.uid,[wye.Environment]:r}};e.metaKey?window.open(t.resolve(s).href,"_blank"):t.push(s)})(r,a,e.uid)),["prevent"]),onColorModal:e=>(e=>{var t,r,n;m.value=e,v.value=(null==(n=null==(r=null==(t=o.value.find((t=>{var r;return null==(r=t["x-scalar-environments"])?void 0:r[e]})))?void 0:t["x-scalar-environments"])?void 0:r[e])?void 0:n.color)??"",p.show()})(a),onDelete:e=>function(e){var r;k.value.forEach((t=>{c.removeEnvironment(e,t.uid)}));const a=k.value.flatMap((e=>Object.keys(e["x-scalar-environments"]||{})));if(a.length>0){const e=a[a.length-1];if(!e)return;const r=o.value.find((t=>Object.keys(t["x-scalar-environments"]||{}).includes(e)));g.value=e,t.push({name:"environment.collection",params:{[wye.Collection]:null==r?void 0:r.uid,[wye.Environment]:e}}),r&&!u[r.uid]&&d(r.uid)}else g.value="default",t.push({name:"environment.default",params:{[wye.Workspace]:null==(r=n.value)?void 0:r.uid}})}(a),onRename:t=>((e,t)=>{y.value=e,b.value=t,O.value=e,f.show()})(a,e.uid),onOnDragEnd:Ao(M)},null,8,["collectionId","isDroppable","to","variable","onClick","onColorModal","onDelete","onRename","onOnDragEnd"])))),128)),0===Object.keys(e["x-scalar-environments"]||{}).length?(Pl(),Nl(Ao(aF),{key:0,class:"text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",variant:"ghost",onClick:t=>E(e.uid)},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"sm"}),r[2]||(r[2]=Ul("span",null,"Add Environment",-1))])),_:2,__:[2]},1032,["onClick"])):Vl("",!0)],2),[[Fc,C(e.uid)]])])})),128))])),_:1})])])),button:ci((()=>[Fl(qLe,{click:E,hotkey:"N"},{title:ci((()=>r[3]||(r[3]=[ql(" Add Environment ")]))),_:1})])),_:1}),Fl(sBe,{class:"flex-1"},{default:ci((()=>[Fl(XEe,null,hs({default:ci((()=>[g.value&&Ao(n)?(Pl(),Nl(hge,{key:0,class:"py-2 pr-2 pl-px md:px-4",envVariables:Ao(i),environment:Ao(a),isCopyable:"",language:"json",lineNumbers:"",lint:"",modelValue:A(),workspace:Ao(n),"onUpdate:modelValue":_},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)])),_:2},[g.value?{name:"title",fn:ci((()=>[Ul("span",null,Gn("default"===g.value?"Global Environment":g.value),1)])),key:"0"}:void 0]),1024)])),_:1}),Fl(PFe,{selectedColor:v.value,state:Ao(p),onCancel:r[0]||(r[0]=e=>Ao(p).hide()),onSubmit:T},null,8,["selectedColor","state"]),Fl(LFe,{activeWorkspaceCollections:k.value,collectionId:b.value,state:Ao(h),onCancel:r[1]||(r[1]=e=>Ao(h).hide()),onSubmit:S},null,8,["activeWorkspaceCollections","collectionId","state"]),Fl(Ao(Y8),{size:"xxs",state:Ao(f),title:`Edit ${y.value}`},{default:ci((()=>[Fl(rje,{name:O.value??"",onClose:$,onEdit:D},null,8,["name"])])),_:1},8,["state","title"])])),_:1}))}}),Symbol.toStringTag,Li({__name:"CookieForm",setup(e){const{activeCookieId:t}=Eye(),{cookies:r,cookieMutators:n}=Obe(),a=[{label:"Name",key:"name",placeholder:"session_id"},{label:"Value",key:"value",placeholder:"my-cookie-session-id"},{label:"Domain",key:"domain",placeholder:"example.com"}],o=hc((()=>r[t.value]||GEe.parse({name:"",value:"",domain:"",path:""}))),i=(e,r)=>{n.edit(t.value,e,r)};return(e,t)=>(Pl(),Nl(gFe,{data:o.value,onUpdate:i,options:a},null,8,["data"]))}})),$Qe={class:"flex h-8 items-start gap-2 text-sm"},DQe={class:"flex h-8 items-start gap-2 text-sm"},MQe={class:"flex h-8 items-start gap-2 text-sm"},RQe=Li({__name:"CookieModal",props:{state:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,a=So({name:"",value:"",domain:""}),{toast:o}=cH(),i=()=>{a.value.name&&a.value.value?(n("submit",a.value),r.state.hide()):o("Please fill in all fields before adding a cookie.","error")};return ul((()=>r.state.open),(e=>{e&&(a.value={name:"",value:"",domain:""})})),(e,t)=>(Pl(),Nl(Ao(Y8),{size:"xs",state:e.state,title:"Add Cookie"},{default:ci((()=>[Fl(MFe,{disabled:!a.value.name||!a.value.value,onCancel:t[3]||(t[3]=e=>n("cancel")),onSubmit:i},{submit:ci((()=>t[7]||(t[7]=[ql("Add Cookie")]))),default:ci((()=>[Ul("div",$Qe,[t[4]||(t[4]=ql(" Name: ")),Fl(NFe,{modelValue:a.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value.name=e),autofocus:"",class:"!p-0",placeholder:"session_id"},null,8,["modelValue"])]),Ul("div",DQe,[t[5]||(t[5]=ql(" Value: ")),Fl(NFe,{modelValue:a.value.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value.value=e),autofocus:"",class:"!p-0",placeholder:"my-cookie-session-id"},null,8,["modelValue"])]),Ul("div",MQe,[t[6]||(t[6]=ql(" Domain: ")),Fl(NFe,{modelValue:a.value.domain,"onUpdate:modelValue":t[2]||(t[2]=e=>a.value.domain=e),autofocus:"",class:"!p-0",placeholder:"example.com"},null,8,["modelValue"])])])),_:1},8,["disabled"])])),_:1},8,["state"]))}}),NQe=a6(RQe,[["__scopeId","data-v-694018d6"]]),IQe={class:"flex-1"},LQe={class:"relative mb-[.5px] last:mb-0"},jQe=(Li({__name:"Cookies",setup(e){const{cookies:t,cookieMutators:r,events:n,workspaceMutators:a}=Obe(),{activeWorkspace:o,activeCookieId:i}=Eye(),s=Lme(),l=jme(),c=X8(),u=e=>{var t,n;const i=GEe.parse({name:e.name,value:e.value,domain:e.domain,path:"/"});r.add(i),a.edit(null==(t=o.value)?void 0:t.uid,"cookies",[...(null==(n=o.value)?void 0:n.cookies)??[],i.uid]),s.push({name:"cookies",params:{cookies:i.uid}})},d=()=>{c.show()},p=e=>{null!=e&&e.createNew&&"cookies"===l.name&&d()};Yi((()=>n.hotKeys.on(p))),es((()=>n.hotKeys.off(p)));const h=hc((()=>t[i.value])),f=hc((()=>Object.keys(t).length>0&&h.value));return ul((()=>l.query.openCookieModal),(e=>{"true"===e&&d()}),{immediate:!0}),(e,n)=>(Pl(),Nl(oBe,null,{default:ci((()=>[Fl(Ao(nye),{title:"Cookies"},{content:ci((()=>[Ul("div",IQe,[Fl(wQe,null,{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Object.values(Ao(t)),(e=>(Pl(),Rl("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[Ul("div",LQe,[(Pl(),Nl(EQe,{key:e.uid,class:"text-xs",isDeletable:"",to:{name:"cookies",params:{[Ao(wye).Cookies]:e.uid}},type:"cookies",variable:{name:e.name,uid:e.uid},warningMessage:"Are you sure you want to delete this cookie?",onClick:Su((t=>((e,t)=>{var r;const n={name:"cookies",params:{workspace:(null==(r=o.value)?void 0:r.uid)??"default",cookies:t}};if(e.metaKey){const e=s.resolve(n).href;window.open(e,"_blank")}else s.push(n)})(t,e.uid)),["prevent"]),onDelete:n=>(e=>{var n,i;r.delete(e),a.edit(null==(n=o.value)?void 0:n.uid,"cookies",[...((null==(i=o.value)?void 0:i.cookies)??[]).filter((t=>t!==e))]);const l=Object.values(t).filter((t=>t.uid!==e));if(l.length>0){const e=l[l.length-1];e&&s.push(e.uid)}else s.push({name:"cookies",params:{[wye.Cookies]:"default"}})})(e.uid)},null,8,["to","variable","onClick","onDelete"]))])])))),128))])),_:1})])])),button:ci((()=>[Fl(qLe,{click:d,hotkey:"N"},{title:ci((()=>n[1]||(n[1]=[ql(" Add Cookie ")]))),_:1})])),_:1}),Fl(sBe,{class:"flex-1"},{default:ci((()=>[f.value?(Pl(),Nl(XEe,{key:0,class:"*:border-b-0"},{title:ci((()=>n[2]||(n[2]=[ql("Edit Cookie")]))),default:ci((()=>[Fl(PQe)])),_:1})):(Pl(),Nl(aBe,{key:1}))])),_:1}),Fl(NQe,{state:Ao(c),onCancel:n[0]||(n[0]=e=>Ao(c).hide()),onSubmit:u},null,8,["state"])])),_:1}))}}),Symbol.toStringTag,Li({__name:"IntegrationLogo",props:{integration:{}},setup(e){const t=e,r=["adonisjs","dotnet","elysiajs","express","fastapi","fastify","go","hono","laravel","litestar","nestjs","nextjs","nitro","nuxt","platformatic","react","rust","svelte"],n=hc((()=>{var e;const n="Openapi",a=null==(e=t.integration)?void 0:e.toLocaleLowerCase();if(!a)return n;const o=a.charAt(0).toUpperCase()+a.slice(1);return r.includes(a)?o:n}));return(e,t)=>(Pl(),Nl(Ao(U5),{class:"h-full w-full rounded-lg",logo:n.value},null,8,["logo"]))}})),BQe={class:"flex flex-col gap-2"},UQe=Li({__name:"SettingsAppearance",setup(e){const{colorMode:t,setColorMode:r}=LL(),n=VU({base:"w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",variants:{active:{true:"bg-primary text-c-1 hover:bg-inherit",false:"bg-b-1 hover:bg-b-2"}}});return(e,a)=>(Pl(),Rl("div",BQe,[Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(n)({active:"system"===Ao(t)}))),onClick:a[0]||(a[0]=e=>Ao(r)("system"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"system"===Ao(t)}])},["system"===Ao(t)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[3]||(a[3]=ql(" System Preference (default) "))])),_:1,__:[3]},8,["class"]),Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(n)({active:"light"===Ao(t)}))),onClick:a[1]||(a[1]=e=>Ao(r)("light"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"light"===Ao(t)}])},["light"===Ao(t)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[4]||(a[4]=ql(" Light Mode Always "))])),_:1,__:[4]},8,["class"]),Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(n)({active:"dark"===Ao(t)}))),onClick:a[2]||(a[2]=e=>Ao(r)("dark"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"dark"===Ao(t)}])},["dark"===Ao(t)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[5]||(a[5]=ql(" Dark Mode Always "))])),_:1,__:[5]},8,["class"])]))}}),FQe={class:"flex flex-col gap-2"},QQe={key:0,class:"font-bold"},zQe={key:1,class:"text-c-2 mb-4 leading-[21px]"},qQe=Li({__name:"SettingsSection",setup:e=>(e,t)=>(Pl(),Rl("div",FQe,[e.$slots.title?(Pl(),Rl("h3",QQe,[fs(e.$slots,"title")])):Vl("",!0),e.$slots.description?(Pl(),Rl("p",zQe,[fs(e.$slots,"description")])):Vl("",!0),fs(e.$slots,"default")]))}),HQe={class:"bg-b-1 h-full w-full overflow-auto"},VQe={class:"mr-auto ml-auto w-full max-w-[720px] px-5 py-5"},ZQe={class:"flex flex-col gap-8"},WQe={class:"flex flex-col gap-2"},XQe={class:"flex flex-col gap-2"},GQe={class:"grid grid-cols-2 gap-2"},YQe={class:"flex items-center gap-2"},KQe={class:"flex items-center gap-1"},JQe={class:"grid grid-cols-2 gap-2"},eze={class:"flex items-center gap-2"},tze={class:"flex items-center gap-1"},rze={class:"size-7 rounded-xl"},nze="https://proxy.scalar.com",aze=Li({__name:"SettingsGeneral",setup(e){const{activeWorkspace:t}=Eye(),{proxyUrl:r,workspaceMutators:n}=Obe(),a=["default","alternate","purple","solarized","saturn","kepler"],o=["elysiajs","fastify"],i=e=>({default:{light:"#fff",dark:"#0f0f0f",accent:"#0099ff"},alternate:{light:"#f9f9f9",dark:"#131313",accent:"#e7e7e7"},moon:{light:"#ccc9b3",dark:"#313332",accent:"#645b0f"},purple:{light:"#f5f6f8",dark:"#22252b",accent:"#5469d4"},solarized:{light:"#fdf6e3",dark:"#00212b",accent:"#007acc"},bluePlanet:{light:"#f0f2f5",dark:"#000e23",accent:"#e0e2e6"},saturn:{light:"#e4e4df",dark:"#2c2c30",accent:"#1763a6"},kepler:{light:"#f6f6f6",dark:"#0d0f1e",accent:"#7070ff"},mars:{light:"#f2efe8",dark:"#321116",accent:"#c75549"},deepSpace:{light:"#f4f4f5",dark:"#09090b",accent:"#8ab4f8"},laserwave:{light:"#f4f2f7",dark:"#27212e",accent:"#ed78c2"},none:{light:"#ffffff",dark:"#000000",accent:"#3b82f6"}}[e]||{light:"#ffffff",dark:"#000000",accent:"#3b82f6"}),s=e=>{var r;return n.edit(null==(r=t.value)?void 0:r.uid,"themeId",e)},l=VU({base:"w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",variants:{active:{true:"bg-primary text-c-1 hover:bg-inherit",false:"bg-b-1 hover:bg-b-2"}}}),c=e=>{var r;return n.edit(null==(r=t.value)?void 0:r.uid,"proxyUrl",e)};return(e,n)=>(Pl(),Rl("div",HQe,[Ul("div",VQe,[Ul("div",ZQe,[n[13]||(n[13]=Ul("div",null,[Ul("h2",{class:"mt-10 text-xl font-bold"},"Settings")],-1)),Fl(qQe,null,{title:ci((()=>n[3]||(n[3]=[ql(" CORS Proxy ")]))),description:ci((()=>n[4]||(n[4]=[ql(" Browsers block cross-origin requests for security. We provide a public proxy to "),Ul("a",{class:"hover:text-c-1 underline-offset-2",href:"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",target:"_blank"}," bypass CORS issues ",-1),ql(" . Check the "),Ul("a",{class:"hover:text-c-1 underline-offset-2",href:"https://github.com/scalar/scalar/tree/main/examples/proxy-server",target:"_blank"}," source code on GitHub ",-1),ql(" . ")]))),default:ci((()=>{var e,a,o;return[Ul("div",WQe,[Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(l)({active:(null==(e=Ao(t))?void 0:e.proxyUrl)===nze}))),onClick:n[0]||(n[0]=e=>c(nze))},{default:ci((()=>{var e,r;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(e=Ao(t))?void 0:e.proxyUrl)===nze}])},[(null==(r=Ao(t))?void 0:r.proxyUrl)===nze?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),n[5]||(n[5]=ql(" Use proxy.scalar.com (default) "))]})),_:1,__:[5]},8,["class"]),Ao(r)&&Ao(r)!==nze?(Pl(),Nl(Ao(aF),{key:0,class:zn(Ao(ZU)(Ao(l)({active:(null==(a=Ao(t))?void 0:a.proxyUrl)===Ao(r)}))),onClick:n[1]||(n[1]=e=>c(Ao(r)))},{default:ci((()=>{var e,n;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(e=Ao(t))?void 0:e.proxyUrl)===Ao(r)}])},[(null==(n=Ao(t))?void 0:n.proxyUrl)===Ao(r)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" Use custom proxy ("+Gn(Ao(r))+") ",1)]})),_:1},8,["class"])):Vl("",!0),Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(l)({active:!(null!=(o=Ao(t))&&o.proxyUrl)}))),onClick:n[2]||(n[2]=e=>c(void 0))},{default:ci((()=>{var e,r;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",!(null!=(e=Ao(t))&&e.proxyUrl)&&"bg-c-accent text-b-1 border-transparent"])},[null!=(r=Ao(t))&&r.proxyUrl?Vl("",!0):(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"}))],2),n[6]||(n[6]=ql(" Skip the proxy "))]})),_:1,__:[6]},8,["class"])])]})),_:1}),Fl(qQe,null,{title:ci((()=>n[7]||(n[7]=[ql(" Themes ")]))),description:ci((()=>n[8]||(n[8]=[ql(" We've got a whole rainbow of themes for you to play with: ")]))),default:ci((()=>[Ul("div",XQe,[Ul("div",GQe,[(Pl(),Rl(Sl,null,ps(a,(e=>{var r;return Fl(Ao(aF),{key:e,class:zn(Ao(ZU)(Ao(l)({active:(null==(r=Ao(t))?void 0:r.themeId)===e}))),onClick:t=>s(e)},{default:ci((()=>{var r,n;return[Ul("div",YQe,[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(r=Ao(t))?void 0:r.themeId)===e}])},[(null==(n=Ao(t))?void 0:n.themeId)===e?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" "+Gn(Ao(dbe)[e]),1)]),Ul("div",KQe,[Ul("span",{class:"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).light})},null,4),Ul("span",{class:"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).dark})},null,4),Ul("span",{class:"border-c-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).accent})},null,4)])]})),_:2},1032,["class","onClick"])})),64))])])])),_:1}),Fl(qQe,null,{title:ci((()=>n[9]||(n[9]=[ql(" Framework Themes ")]))),description:ci((()=>n[10]||(n[10]=[ql(" Are you a real fan? Show your support by using your favorite framework's theme! ")]))),default:ci((()=>[Ul("div",JQe,[(Pl(),Rl(Sl,null,ps(o,(e=>{var r;return Fl(Ao(aF),{key:e,class:zn(Ao(ZU)(Ao(l)({active:(null==(r=Ao(t))?void 0:r.themeId)===e}))),onClick:t=>s(e)},{default:ci((()=>{var r,n;return[Ul("div",eze,[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(r=Ao(t))?void 0:r.themeId)===e}])},[(null==(n=Ao(t))?void 0:n.themeId)===e?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" "+Gn(Ao(dbe)[e]),1)]),Ul("div",tze,[Ul("div",rze,[Fl(jQe,{integration:e},null,8,["integration"])])])]})),_:2},1032,["class","onClick"])})),64))])])),_:1}),Fl(qQe,null,{title:ci((()=>n[11]||(n[11]=[ql(" Appearance ")]))),description:ci((()=>n[12]||(n[12]=[ql(" Choose between light, dark, or system-based appearance for your workspace. ")]))),default:ci((()=>[Fl(UQe)])),_:1})])])]))}});Li({__name:"Settings",setup(e){const t={general:{component:aze,title:"general"}},r=So("general");return(e,n)=>(Pl(),Nl(oBe,null,{default:ci((()=>[Fl(sBe,{class:"flex-1"},{default:ci((()=>[t[r.value]?(Pl(),Nl(cs(t[r.value].component),{key:0})):Vl("",!0)])),_:1})])),_:1}))}});Symbol.toStringTag}));
|
|
44
|
-
//# sourceMappingURL=/sm/
|
|
43
|
+
*/function SCe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _Ce(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ECe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TCe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ECe(Object(r),!0).forEach((function(t){_Ce(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ECe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var ACe=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},CCe=function(e){return ACe(e)&&!e.shiftKey},PCe=function(e){return ACe(e)&&e.shiftKey},$Ce=function(e){return setTimeout(e,0)},DCe=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,r):e},MCe=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},RCe=[],NCe=function(e,t){var r,n=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||RCe,o=TCe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:CCe,isKeyBackward:PCe},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,r){return e&&void 0!==e[t]?e[t]:o[r||t]},l=function(e,t){var r="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return i.containerGroups.findIndex((function(t){var n=t.container,a=t.tabbableNodes;return n.contains(e)||(null==r?void 0:r.includes(n))||a.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.hasFallback,a=void 0!==r&&r,i=t.params,s=void 0===i?[]:i,l=o[e];if("function"==typeof l&&(l=l.apply(void 0,function(e){return function(e){if(Array.isArray(e))return SCe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return SCe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?SCe(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=n.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!a)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},u=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!kCe(e,o.tabbableOptions))if(l(n.activeElement)>=0)e=n.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(i.containerGroups=i.containers.map((function(e){var t=function(e,t){var r;return r=(t=t||{}).getShadowRoot?dCe([e],t.includeContainer,{filter:bCe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yCe}):uCe(e,t.includeContainer,bCe.bind(null,t)),OCe(r)}(e,o.tabbableOptions),r=function(e,t){return(t=t||{}).getShadowRoot?dCe([e],t.includeContainer,{filter:vCe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):uCe(e,t.includeContainer,vCe.bind(null,t))}(e,o.tabbableOptions),n=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,i=r.find((function(e){return wCe(e)})),s=r.slice().reverse().find((function(e){return wCe(e)})),l=!!t.find((function(e){return hCe(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNode:a,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?n?r.slice(r.indexOf(e)+1).find((function(e){return wCe(e)})):r.slice(0,r.indexOf(e)).reverse().find((function(e){return wCe(e)})):t[a+(n?1:-1)]}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find((function(e){return e.posTabIndexesFound}))&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?p(t.shadowRoot):t},h=function(e){!1!==e&&e!==p(document)&&(e&&e.focus?(e.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):h(u()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},m=function(e){var t=e.target,r=e.event,n=e.isBackward,a=void 0!==n&&n;t=t||MCe(r),d();var s=null;if(i.tabbableGroups.length>0){var u=l(t,r),p=u>=0?i.containerGroups[u]:void 0;if(u<0)s=a?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(a){var h=i.tabbableGroups.findIndex((function(e){var r=e.firstTabbableNode;return t===r}));if(h<0&&(p.container===t||kCe(t,o.tabbableOptions)&&!wCe(t,o.tabbableOptions)&&!p.nextTabbableNode(t,!1))&&(h=u),h>=0){var f=0===h?i.tabbableGroups.length-1:h-1,m=i.tabbableGroups[f];s=hCe(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else ACe(r)||(s=p.nextTabbableNode(t,!1))}else{var g=i.tabbableGroups.findIndex((function(e){var r=e.lastTabbableNode;return t===r}));if(g<0&&(p.container===t||kCe(t,o.tabbableOptions)&&!wCe(t,o.tabbableOptions)&&!p.nextTabbableNode(t))&&(g=u),g>=0){var v=g===i.tabbableGroups.length-1?0:g+1,b=i.tabbableGroups[v];s=hCe(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else ACe(r)||(s=p.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},g=function(e){var t=MCe(e);l(t,e)>=0||(DCe(o.clickOutsideDeactivates,e)?r.deactivate({returnFocus:o.returnFocusOnDeactivate}):DCe(o.allowOutsideClick,e)||e.preventDefault())},v=function(e){var t=MCe(e),r=l(t,e)>=0;if(r||t instanceof Document)r&&(i.mostRecentlyFocusedNode=t);else{var n;e.stopImmediatePropagation();var a=!0;if(i.mostRecentlyFocusedNode)if(hCe(i.mostRecentlyFocusedNode)>0){var s=l(i.mostRecentlyFocusedNode),c=i.containerGroups[s].tabbableNodes;if(c.length>0){var d=c.findIndex((function(e){return e===i.mostRecentlyFocusedNode}));d>=0&&(o.isKeyForward(i.recentNavEvent)?d+1<c.length&&(n=c[d+1],a=!1):d-1>=0&&(n=c[d-1],a=!1))}}else i.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return hCe(e)>0}))}))||(a=!1);else a=!1;a&&(n=m({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),h(n||i.mostRecentlyFocusedNode||u())}i.recentNavEvent=void 0},b=function(e){(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i.recentNavEvent=e;var r=m({event:e,isBackward:t});r&&(ACe(e)&&e.preventDefault(),h(r))}(e,o.isKeyBackward(e))},y=function(e){(function(e){return"Escape"===(null==e?void 0:e.key)||"Esc"===(null==e?void 0:e.key)||27===(null==e?void 0:e.keyCode)})(e)&&!1!==DCe(o.escapeDeactivates,e)&&(e.preventDefault(),r.deactivate())},O=function(e){var t=MCe(e);l(t,e)>=0||DCe(o.clickOutsideDeactivates,e)||DCe(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(i.active)return function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)}(a,r),i.delayInitialFocusTimer=o.delayInitialFocus?$Ce((function(){h(u())})):h(u()),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",g,{capture:!0,passive:!1}),n.addEventListener("touchstart",g,{capture:!0,passive:!1}),n.addEventListener("click",O,{capture:!0,passive:!1}),n.addEventListener("keydown",b,{capture:!0,passive:!1}),n.addEventListener("keydown",y),r},x=function(){if(i.active)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",O,!0),n.removeEventListener("keydown",b,!0),n.removeEventListener("keydown",y),r},k="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===i.mostRecentlyFocusedNode}))}))&&h(u())})):void 0,S=function(){k&&(k.disconnect(),i.active&&!i.paused&&i.containers.map((function(e){k.observe(e,{subtree:!0,childList:!0})})))};return(r={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=s(e,"onActivate"),r=s(e,"onPostActivate"),a=s(e,"checkCanFocusTrap");a||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=n.activeElement,null==t||t();var o=function(){a&&d(),w(),S(),null==r||r()};return a?(a(i.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!i.active)return this;var t=TCe({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,x(),i.active=!1,i.paused=!1,S(),function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}(a,r);var n=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null==n||n();var d=function(){$Ce((function(){u&&h(f(i.nodeFocusedBeforeActivation)),null==l||l()}))};return u&&c?(c(f(i.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){if(i.paused||!i.active)return this;var t=s(e,"onPause"),r=s(e,"onPostPause");return i.paused=!0,null==t||t(),x(),S(),null==r||r(),this},unpause:function(e){if(!i.paused||!i.active)return this;var t=s(e,"onUnpause"),r=s(e,"onPostUnpause");return i.paused=!1,null==t||t(),d(),w(),S(),null==r||r(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?n.querySelector(e):e})),i.active&&d(),S(),this}}).updateContainerElements(e),r};const ICe=()=>{var e;return"undefined"!=typeof navigator&&((null==(e=navigator.userAgentData)?void 0:e.platform)?navigator.userAgentData.platform.toLowerCase().includes("mac"):/Mac/.test(navigator.userAgent))},LCe=["Escape","ArrowDown","ArrowUp","Enter","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12"],jCe={Escape:{event:"closeModal"},Enter:{event:"executeRequest",modifiers:["default"]},b:{event:"toggleSidebar",modifiers:["default"]},k:{event:"openCommandPalette",modifiers:["default"]},l:{event:"focusAddressBar",modifiers:["default"]}},BCe={Alt:"altKey",Control:"ctrlKey",Shift:"shiftKey",Meta:"metaKey"},UCe=e=>e.map((e=>"default"===e?ICe()?"metaKey":"ctrlKey":BCe[e])),FCe={class:"scalar scalar-app"},QCe={class:"scalar-container"},zCe=["id"],qCe=Li({__name:"ApiClientModal",setup(e){const{activeWorkspace:t}=Eye(),{modalState:r,events:n}=Obe(),a=So(null),o=ji(),{activate:i,deactivate:s}=function(e,t={}){let r;const{immediate:n,...a}=t,o=So(!1),i=So(!1),s=e=>r&&r.activate(e),l=e=>r&&r.deactivate(e);return ul(hc((()=>{const t=BL(e);return(Array.isArray(t)?t:[t]).map((e=>{const t=BL(e);return"string"==typeof t?t:KL(t)})).filter(FL)})),(e=>{e.length&&(r=NCe(e,{...a,onActivate(){o.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){o.value=!1,t.onDeactivate&&t.onDeactivate()}}),n&&s())}),{flush:"post"}),jL((()=>l())),{hasFocus:o,isPaused:i,activate:s,deactivate:l,pause:()=>{r&&(r.pause(),i.value=!0)},unpause:()=>{r&&(r.unpause(),i.value=!1)}}}(a,{allowOutsideClick:!0,fallbackFocus:`#${o}`}),l=e=>{var r;return((e,t,{hotKeys:r=jCe,modifiers:n=["default"]}={})=>{const a=" "===e.key?"Space":e.key,o=r[a];o&&("Escape"===a?t.emit({[o.event]:e}):UCe(o.modifiers||n).every((t=>!0===e[t]))?t.emit({[o.event]:e}):!(e=>{if(!(e.target instanceof HTMLElement))return!1;const t=e.target;return"INPUT"===t.tagName?!LCe.includes(e.key):!("TEXTAREA"!==t.tagName&&!t.getAttribute("contenteditable")&&"true"!==t.contentEditable)})(e)&&void 0===o.modifiers&&t.emit({[o.event]:e}))})(e,n.hotKeys,null==(r=t.value)?void 0:r.hotKeyConfig)};ul((()=>r.open),(e=>{e?(window.addEventListener("keydown",l),document.documentElement.style.overflow="hidden",i({checkCanFocusTrap:()=>Ko()})):(window.removeEventListener("keydown",l),document.documentElement.style.removeProperty("overflow"),s())})),Gi((()=>t6()));const c=e=>(null==e?void 0:e.closeModal)&&r.open&&r.hide();return Yi((()=>n.hotKeys.on(c))),es((()=>{document.documentElement.style.removeProperty("overflow"),n.hotKeys.off(c)})),(e,t)=>ui((Pl(),Rl("div",FCe,[Ul("div",QCe,[Ul("div",{id:Ao(o),ref_key:"client",ref:a,"aria-label":"API Client","aria-modal":"true",class:"scalar-app-layout scalar-client",role:"dialog",tabindex:"-1"},[Fl(Ao(M8),null,{default:ci((()=>[Fl(Ao(Nme),{key:"$route.fullPath"})])),_:1})],8,zCe),Ul("div",{class:"scalar-app-exit",onClick:t[0]||(t[0]=e=>Ao(r).hide())})])],512)),[[Fc,Ao(r).open]])}}),HCe=a6(qCe,[["__scopeId","data-v-45e9730e"]]),VCe=Symbol(),ZCe="2.5.0",WCe="scalar_api_client_data_version",XCe=e=>{const t=localStorage.getItem(e)||"[{}]";return"["===t[0]?Vve(t):JSON.parse(t)},GCe=(e,t)=>{const r=e=>{const[t=0,r=0,n=0]=e.split(".").map((e=>Number.parseInt(e,10)));return{major:t,minor:r,patch:n}},{major:n,minor:a,patch:o}=r(e),{major:i,minor:s,patch:l}=r(t);return n<i||!(n>i)&&(a<s||!(a>s)&&o<l)},YCe=(e,t,r)=>e.forEach((e=>{const n=hL(e,t,!1);n&&r(n)})),KCe=({el:e,appComponent:t,configuration:r={},isReadOnly:n=!1,store:a,persistData:o=!0,mountOnInitialize:i=!0,layout:s="desktop",router:l})=>{const c=So(Bt.parse(r)),u=a||bbe({proxyUrl:c.value.proxyUrl,theme:c.value.theme,showSidebar:c.value.showSidebar??!0,hideClientButton:c.value.hideClientButton??!1,_integration:c.value._integration,useLocalStorage:o}),d=Sye({...u,router:l}),p=(({layout:e})=>({collapsedSidebarFolders:uo({}),isSidebarOpen:So("modal"!==e)}))({layout:s}),h=LTe({plugins:c.value.plugins??[]}),f=()=>{try{return typeof window<"u"&&void 0!==window.localStorage}catch{return!1}};if(f()&&localStorage.getItem(VI)&&!n)try{const e={};let t=0,r=0,n="";for(n in localStorage)Object.prototype.hasOwnProperty.call(localStorage,n)&&(r=2*(localStorage[n].length+n.length),t+=r,e[n]=(r/1024).toFixed(2)+" KB");e.Total=(t/1024).toFixed(2)+" KB",console.table(e),(e=>{const{collectionMutators:t,cookieMutators:r,environmentMutators:n,tagMutators:a,requestExampleMutators:o,requestMutators:i,serverMutators:s,securitySchemeMutators:l,workspaceMutators:c}=e;try{const{collections:e,cookies:u,environments:d,requestExamples:p,requests:h,servers:f,securitySchemes:m,tags:g,workspaces:v}=(()=>{const e=(()=>{const e=localStorage.getItem("collection"),t=localStorage.getItem(WCe);if(t)return t;if(!(null==e?void 0:e.length)||"{"===(null==e?void 0:e[0]))return"0.0.0";try{const[t]=Object.values(Vve(e)??{});return"collection"===(null==t?void 0:t.type)?"2.1.0":"0.0.0"}catch(e){return console.error(e),"0.0.0"}})();console.info("Data version: "+e);let t={collections:XCe("collection"),cookies:XCe("cookie"),environments:XCe("environment"),requestExamples:XCe("requestExample"),requests:XCe("request"),securitySchemes:XCe("securityScheme"),servers:XCe("server"),tags:XCe("tag"),workspaces:XCe("workspace")};return GCe(e,"2.1.0")&&(t=(e=>{console.info("Performing data migration v-0.0.0 to v-2.1.0");const t={...e,folders:XCe("folder")},r=e=>e.reduce(((e,n)=>{var a;const o=t.requests[n];if(o)e.requestUids.add(n),null==(a=o.securitySchemeUids)||a.forEach((t=>e.authUids.add(t)));else if(t.folders[n]){const{requestUids:a,tagUids:o,authUids:i}=r(t.folders[n].childUids??[]);e.tagUids.add(n),a.forEach((t=>e.requestUids.add(t))),o.forEach((t=>e.tagUids.add(t))),i.forEach((t=>e.authUids.add(t)))}return e}),{requestUids:new Set,tagUids:new Set,authUids:new Set}),n={},a=Object.values(t.collections??{}).reduce(((e,a)=>{var o,i,s,l,c,u,d;const{requestUids:p,tagUids:h,authUids:f}=r(a.childUids??[]),m=[...new Set([...f,...Object.values(a.securitySchemeDict??{})])];p.forEach((e=>n[e]=m));const g=m.reduce(((e,r)=>{const n=t.securitySchemes[r];return(null==n?void 0:n.uid)&&e&&(e[r]=(e=>"apiKey"===e.type?{type:"apiKey",name:e.name,value:e.value??""}:"http"===e.type?{type:"http",username:e.value??"",password:e.secondValue??"",token:e.value??""}:"oauth2"===e.type&&"implicit"===e.flow.type?{type:"oauth-implicit",token:e.flow.token??""}:"oauth2"===e.type&&"password"===e.flow.type?{type:"oauth-password",token:e.flow.token??"",username:e.flow.value??"",password:e.flow.secondValue??"",clientSecret:e.flow.clientSecret??""}:"oauth2"===e.type&&"clientCredentials"===e.flow.type?{type:"oauth-clientCredentials",token:e.flow.token??"",clientSecret:e.flow.clientSecret??""}:"oauth2"===e.type&&"authorizationCode"===e.flow.type?{type:"oauth-authorizationCode",token:e.flow.token??"",clientSecret:e.flow.clientSecret??""}:{type:"apiKey",name:"",value:""})(n)),e}),{});return e[a.uid]={type:"collection",openapi:(null==(o=a.spec)?void 0:o.openapi)||"3.1.0",info:(null==(i=a.spec)?void 0:i.info)||{title:"OpenAPI Spec",version:"0.0.1"},security:(null==(s=a.spec)?void 0:s.security)||[],externalDocs:null==(l=a.spec)?void 0:l.externalDocs,uid:a.uid,securitySchemes:m,selectedSecuritySchemeUids:[],selectedServerUid:a.selectedServerUid||(null==(u=null==(c=a.spec)?void 0:c.serverUids)?void 0:u[0])||"",servers:(null==(d=a.spec)?void 0:d.serverUids)||[],requests:[...p],tags:[...h],auth:g,children:a.childUids||[],"x-scalar-icon":"interface-content-folder",watchMode:!1,watchModeStatus:"IDLE"},e}),{}),o=t.cookies??{},i=Object.values(t.environments??{}).reduce(((e,t)=>(e[t.uid]={...t,value:t.raw??""},e)),{}),s=Object.values(t.requests??{}).reduce(((e,t)=>{var r,a,o,i,s;const l=[...Object.values((null==(r=t.parameters)?void 0:r.path)??{}),...Object.values((null==(a=t.parameters)?void 0:a.query)??{}),...Object.values((null==(o=t.parameters)?void 0:o.headers)??{}),...Object.values((null==(i=t.parameters)?void 0:i.cookies)??{})].filter((e=>e)),c=(t.selectedSecuritySchemeUids||[]).filter((e=>{var r;return null==(r=n[t.uid])?void 0:r.includes(e)}));return e[t.uid]={...t,parameters:l,type:"request",method:(null==(s=t.method)?void 0:s.toLowerCase())??"get",examples:t.childUids||[],selectedSecuritySchemeUids:c,selectedServerUid:"",servers:[]},e}),{}),l=Object.values(t.requestExamples??{}).reduce(((e,t)=>(e[t.uid]={...t,type:"requestExample"},e)),{}),c=e=>{const t={refreshUrl:e.refreshUrl||"",selectedScopes:e.selectedScopes||[],scopes:e.scopes||{}};return"implicit"===e.type?{...e,...t,type:"implicit","x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||""}:"password"===e.type||"clientCredentials"===e.type?{...e,...t,tokenUrl:e.tokenUrl||""}:{...e,...t,"x-usePkce":"no","x-scalar-redirect-uri":("redirectUri"in e?e.redirectUri:"")||"",authorizationUrl:e.authorizationUrl||"",tokenUrl:e.tokenUrl||""}},u=e=>{switch(null==e?void 0:e.type){case"apiKey":return`${TL(e.in)}`;case"http":return`${TL(e.scheme)} Authentication`;case"oauth2":return((e="")=>e.replace(/([A-Z]{2,})/g," $1").replace(/([A-Z])(?=[a-z])/g," $1").replace(/^./,(e=>e.toUpperCase())).trim())(e.flow.type);case"openIdConnect":return"Open ID Connect";default:return"None"}},d=Object.values(t.securitySchemes??{}).reduce(((e,t)=>(e[t.uid]="oauth2"===t.type?{...t,nameKey:u(t),"x-scalar-client-id":t.clientId||"",flow:c(t.flow)}:{...t,nameKey:u(t)},e)),{}),p=Object.values(t.servers??{}).reduce(((e,t)=>(e[t.uid]={...t,variables:t.variables??{}},e)),{});return{collections:a,cookies:o,environments:i,requestExamples:l,requests:s,securitySchemes:d,servers:p,tags:Object.values(t.folders??{}).reduce(((e,t)=>(e[t.uid]={type:"tag",uid:t.uid,name:t.name||"unknownTag",description:t.description,children:t.childUids||[],"x-scalar-children":[]},e)),{}),workspaces:Object.values(t.workspaces??{}).reduce(((e,t)=>(e[t.uid]={...t,description:t.description??"Basic Scalar Workspace",cookies:t.cookieUids||[],collections:t.collectionUids||[],environments:t.environmentUids||[]},e)),{})}})(t)),GCe(e,"2.2.0")&&(t=(e=>{console.info("Performing data migration v-2.1.0 to v-2.2.0");const t=Object.values(e.securitySchemes).reduce(((t,r)=>{var n;const a=Object.values(e.collections).find((e=>e.securitySchemes.includes(r.uid))),o=null==(n=null==a?void 0:a.auth)?void 0:n[r.uid];if(!o)return t;const i=((e,t)=>{if("apiKey"===e.type&&"apiKey"===t.type)return{...e,value:t.value};if("http"===e.type&&"http"===t.type)return{...e,username:t.username,password:t.password,token:t.token};if("oauth2"===e.type){const{flow:r,...n}=e;if("implicit"===r.type&&"oauth-implicit"===t.type)return{...n,flows:{implicit:{...r,scopes:r.scopes,token:t.token,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("password"===r.type&&"oauth-password"===t.type)return{...n,flows:{password:{...r,username:t.username,password:t.password,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("clientCredentials"===r.type&&"oauth-clientCredentials"===t.type)return{...n,flows:{clientCredentials:{...r,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}};if("authorizationCode"===r.type&&"oauth-authorizationCode"===t.type)return{...n,flows:{authorizationCode:{...r,token:t.token,clientSecret:t.clientSecret,scopes:r.scopes,"x-scalar-client-id":n["x-scalar-client-id"]}}}}return null})(r,o);return i&&(t[r.uid]=i),t}),{}),r=e.servers;return{...e,securitySchemes:t,servers:r}})(t)),GCe(e,"2.3.0")&&(t=(e=>{console.info("Performing data migration v-2.2.0 to v-2.3.0");const t=e.environments,r=Object.values(e.workspaces).reduce(((e,r)=>{const n={};return Object.entries(t).forEach((([e,t])=>{const r="string"==typeof t.value?JSON.parse(t.value):t.value;"default"===e&&Object.assign(n,r)})),e[r.uid]={...r,environments:n},e}),{}),n=Object.values(e.collections).reduce(((e,t)=>(e[t.uid]={...t,"x-scalar-environments":t["x-scalar-environments"]||{}},e)),{});return Object.values(r).forEach((e=>{Object.entries(t).forEach((([t,r])=>{if("default"!==t){const a="string"==typeof r.value?JSON.parse(r.value):r.value,o=r.name;Object.values(n).forEach((r=>{r["x-scalar-environments"]=r["x-scalar-environments"]||{},r["x-scalar-environments"][o]={variables:a},e.activeEnvironmentId===t&&(r["x-scalar-active-environment"]=o??"")}))}}))})),{...e,collections:n,workspaces:r}})(t)),GCe(e,"2.4.0")&&(t=(e=>{console.info("Performing data migration v-2.3.0 to v-2.4.0");const t=Object.values(e.collections).reduce(((t,r)=>{var n;return"Drafts"===(null==(n=r.info)?void 0:n.title)&&(r.servers=[],Object.values(e.requests).forEach((t=>{if(t.selectedServerUid&&r.requests.includes(t.uid)){const r=e.servers[t.selectedServerUid];r&&(t.path=`${r.url}${t.path}`),t.selectedServerUid=""}}))),t[r.uid]=r,t}),{});return{...e,collections:t}})(t)),GCe(e,"2.5.0")&&(t=(e=>{console.info("Performing data migration v-2.4.0 to v-2.5.0");const t=Object.entries(e.cookies||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),r=Object.entries(e.collections||{}).reduce(((e,[t,r])=>(e[t]={...r,info:r.info??{title:"API",version:"1.0"},uid:r.uid,selectedSecuritySchemeUids:r.selectedSecuritySchemeUids,servers:r.servers.map((e=>e)),tags:r.tags.map((e=>e)),requests:r.requests.map((e=>e)),children:r.children.map((e=>e)),selectedServerUid:r.selectedServerUid,useCollectionSecurity:!1},e)),{}),n=Object.entries(e.environments||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),a=Object.entries(e.requests||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,servers:r.servers,selectedServerUid:r.selectedServerUid,examples:r.examples,selectedSecuritySchemeUids:r.selectedSecuritySchemeUids},e)),{}),o=Object.entries(e.requestExamples||{}).reduce(((e,[t,r])=>{const n=r.parameters.headers;return n.some((e=>"accept"===e.key.toLowerCase()))||n.unshift({key:"Accept",value:"*/*",enabled:!0}),e[t]={...r,uid:r.uid,requestUid:r.requestUid,parameters:{...r.parameters,headers:n}},e}),{}),i=Object.entries(e.securitySchemes||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid},e)),{}),s=Object.entries(e.servers||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,variables:Object.entries(r.variables||{}).reduce(((e,[t,r])=>{var n;return e[t]={default:r.default??"",description:r.description??"",...(null==(n=r.enum)?void 0:n.length)&&{enum:r.enum}},e}),{})},e)),{}),l=Object.entries(e.tags||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,children:r.children},e)),{}),c=Object.entries(e.workspaces||{}).reduce(((e,[t,r])=>(e[t]={...r,uid:r.uid,collections:r.collections.map((e=>e)),cookies:r.cookies.map((e=>e)),selectedHttpClient:{targetKey:"shell",clientKey:"curl"}},e)),{});return{...e,collections:r,cookies:t,environments:n,requests:a,requestExamples:o,securitySchemes:i,servers:s,tags:l,workspaces:c}})(t)),t={collections:Object.values(t.collections),cookies:Object.values(t.cookies),environments:Object.values(t.environments),requestExamples:Object.values(t.requestExamples),requests:Object.values(t.requests),securitySchemes:Object.values(t.securitySchemes),servers:Object.values(t.servers),tags:Object.values(t.tags),workspaces:Object.values(t.workspaces)},t})();YCe(e,tve,t.rawAdd),YCe(u,GEe,r.add),YCe(d,Gve,n.add),YCe(p,Ove,o.rawAdd),YCe(h,Ave,i.rawAdd),YCe(f,ive,s.rawAdd),YCe(m,Hge,l.rawAdd),YCe(g,Kge,a.rawAdd),YCe(v,vbe,c.rawAdd),localStorage.setItem(WCe,ZCe)}catch(e){console.error(e)}})(u)}catch(e){console.warn("Failed to load from localStorage:",e)}else if(n||c.value.url||c.value.content){const e=vbe.parse({uid:"default",name:"Workspace",proxyUrl:c.value.proxyUrl});u.workspaceMutators.rawAdd(e)}else if(u.workspaceMutators.add({uid:"default",name:"Workspace",proxyUrl:c.value.proxyUrl}),f())try{localStorage.setItem(WCe,ZCe)}catch(e){console.warn("Failed to set localStorage version:",e)}const m=$u(t);m.use(l),m.provide(ybe,u),m.provide(nge,s),m.provide(_ye,d),m.provide(Ybe,p),m.provide(VCe,c),m.provide(jTe,h),m.config.idPrefix="scalar-client";const{collectionMutators:g,importSpecFile:v,importSpecFromUrl:b,modalState:y,requests:O,securitySchemes:w,securitySchemeMutators:x,servers:k,workspaceMutators:S,requestExampleMutators:_}=u,{activeCollection:E,activeWorkspace:T}=d,A=(t=e)=>{t?m.mount(t):console.error("[@scalar/api-client-modal] Could not create the API client.","Invalid HTML element provided.","Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")};i&&A();const C=e=>{const t=((e,t)=>{const{requestUid:r,method:n,path:a}=t??{};if(r)return r;if(!a||!n)return Object.keys(e)[0];const o=Object.values(e),i=o.find((e=>e.path.toLowerCase()===a.toLowerCase()&&e.method.toLowerCase()===n.toLowerCase()));if(i)return i.uid;const{request:s}=((e,t,r)=>{let n=[];return{request:r.find((r=>{if(r.method.toLowerCase()!==t.toLowerCase())return!1;if(r.path===e)return!0;const a=(e=>{const t="^"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/\\\{([^}]+)\\\}/g,"([^/]+)")+"$";return new RegExp(t)})(r.path),o=e.match(a);return!!o&&(n=o.slice(1).flatMap(((e,t)=>{var n;const a=null==(n=r.path.split("{")[t+1])?void 0:n.split("}")[0];return a?[{key:a,value:e}]:[]})),!0)})),pathParams:n}})(a,n,o);return(null==s?void 0:s.uid)||Object.keys(e)[0]})(O,e);t?l.push({name:"request",query:null!=e&&e._source?{source:e._source}:{},params:{workspace:"default",request:t}}):console.warn("[@scalar/api-client] Could not find request for path and method",e)},P=()=>{var e;u.collectionMutators.reset(),u.requestMutators.reset(),u.requestExampleMutators.reset(),u.securitySchemeMutators.reset(),u.serverMutators.reset(),u.tagMutators.reset(),S.edit(null==(e=T.value)?void 0:e.uid,"collections",[])};return{app:m,resetStore:P,updateConfig:async e=>{var t,r;const a=Bt.parse(e);if(a.url||a.content||a.servers||a.authentication||a.slug||a.title||a.baseServerURL||a.proxyUrl||a.showSidebar){P();const e={...a,useCollectionSecurity:n};c.value=e,a.url?await b(a.url,(null==(t=T.value)?void 0:t.uid)??"default",e):a.content?await v(a.content,(null==(r=T.value)?void 0:r.uid)??"default",e):console.error("[@scalar/api-client-modal] Could not create the API client.",'Please provide an OpenAPI document: { url: "…" }',"Read more: https://github.com/scalar/scalar/tree/main/packages/api-client")}},updateServer:e=>{var t;const r=Object.values(k).find((t=>t.url===e));r&&E.value&&g.edit(null==(t=E.value)?void 0:t.uid,"selectedServerUid",r.uid)},onUpdateServer:e=>{ul((()=>{var e;return null==(e=E.value)?void 0:e.selectedServerUid}),(t=>{const r=Object.values(k).find((e=>e.uid===t));null!=r&&r.url&&e(r.url)}))},updateAuth:({nameKey:e,propertyKey:t,value:r})=>{const n=Object.values(w).find((t=>t.nameKey===e));n&&x.edit(n.uid,t,r)},route:C,open:e=>{const{method:t,path:r,requestUid:n}=e??{};(t&&r||n)&&C(e),y.open=!0},mount:A,modalState:y,store:u,updateExample:(e,t)=>{var r,n,a,o,i;if(!e||!t)return;const s=Object.values(O).find((({operationId:e,path:r})=>e===t||r===t));if(!s)return;const l=Object.keys((null==(r=s.requestBody)?void 0:r.content)||{})[0]||"",c=null==(i=null==(o=null==(a=null==(n=s.requestBody)?void 0:n.content)?void 0:a[l])?void 0:o.examples)?void 0:i[e];c&&_.edit(s.examples[0],"body.raw.value",pL(c.value))}}},JCe=So(null),ePe=()=>({client:JCe,init:async e=>{const t=await(async({el:e=null,configuration:t={},mountOnInitialize:r=!0,store:n})=>{const a={...t},o=KCe({el:e,appComponent:HCe,configuration:a,persistData:!1,isReadOnly:!0,store:n,mountOnInitialize:r,router:Ime({history:Gfe(),routes:kye}),layout:"modal"}),{importSpecFile:i,importSpecFromUrl:s}=o.store;return n||(t.url?await s(t.url,"default",{proxyUrl:t.proxyUrl,useCollectionSecurity:!0,...t}):t.content&&await i(t.content,"default",{useCollectionSecurity:!0,...t})),o})(e);return JCe.value=t,t}}),tPe=Li({__name:"ApiClientModal",props:{configuration:{},dereferencedDocument:{}},setup(e){const t=So(null),{client:r,init:n}=ePe(),{selectedExampleKey:a,operationId:o}={selectedExampleKey:rCe,operationId:nCe},i=Eye(),s=Obe(),{isIntersectionEnabled:l}=KOe(),c=()=>({name:"on-before-request",hooks:{onBeforeRequest:e.configuration.onBeforeRequest}});return Yi((()=>{t.value&&n({el:t.value,configuration:{...e.configuration,plugins:e.configuration.onBeforeRequest?[c]:[]},store:s})})),XL((()=>e.dereferencedDocument),((t,n)=>{var a,o;if(!t)return;const l=XAe(t,n||{});(null==l?void 0:l.length)&&(i.activeCollection.value&&(null==(a=r.value)||a.resetStore()),s.importSpecFile(void 0,"default",{dereferencedDocument:t,shouldLoad:!1,documentUrl:null==(o=e.configuration)?void 0:o.url,useCollectionSecurity:!0,...e.configuration}))})),XL((()=>e.configuration),((t,r)=>{if(!r||!i.activeCollection.value)return;const n=i.activeCollection.value,a=XAe(r,t),o=a.some((e=>"url"===e.path[0]||"content"===e.path[0]||"url"===e.path[1]||"content"===e.path[1]));if(o);else if(a.forEach((e=>{"authentication"===e.path[0]&&tCe(e,i,s)})),t.servers||r.servers){n.servers.forEach((e=>{s.serverMutators.delete(e,n.uid)}));const r=rbe(t.servers??e.dereferencedDocument.servers,{baseServerURL:t.baseServerURL});r.forEach((e=>{s.serverMutators.add(e,n.uid)})),r.length&&s.collectionMutators.edit(n.uid,"selectedServerUid",r[r.length-1].uid)}l.value=!1,setTimeout((()=>{l.value=!0}),1e3)}),{deep:!0,debounce:300}),ul(a,(e=>{r.value&&e&&o.value&&r.value.updateExample(e,o.value)})),es((()=>{var e;return null==(e=r.value)?void 0:e.app.unmount()})),(e,r)=>(Pl(),Rl("div",{ref_key:"el",ref:t},null,512))}}),rPe=["method"],nPe=Aye(Li({__name:"TestRequestButton",props:{method:{},path:{}},setup(e){const{client:t}=ePe(),r=HOe(),n=hc((()=>!0!==r.value.hideTestRequestButton)),a=()=>{var r;null==(r=t.value)||r.open({method:e.method,path:e.path})};return(e,t)=>n.value?(Pl(),Rl("button",{key:0,class:"show-api-client-button",method:e.method,type:"button",onClick:Su(a,["stop"])},[Fl(Ao(vz),{class:"size-3",weight:"fill"}),t[0]||(t[0]=Ul("span",null,"Test Request",-1)),Fl(vSe,null,{default:ci((()=>[ql("("+Gn(e.method)+" "+Gn(e.path)+")",1)])),_:1})],8,rPe)):(Pl(),Rl(Sl,{key:1},[ql(" ")],64))}}),[["__scopeId","data-v-976c9c1f"]]),aPe={class:"operation-title"},oPe={class:"operation-details"},iPe={class:"endpoint-label"},sPe={class:"endpoint-label-path"},lPe={class:"endpoint-label-name"},cPe={class:"endpoint-content"},uPe={class:"operation-details-card"},dPe={class:"operation-details-card-item"},pPe={class:"operation-details-card-item"},hPe={key:0,class:"operation-details-card-item"},fPe=Aye(Li({__name:"ClassicLayout",props:{id:{},path:{},clientOptions:{},method:{},operation:{},oldOperation:{},parameters:{},isWebhook:{type:Boolean},server:{},securitySchemes:{},schemas:{},store:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=hc((()=>e.operation.summary||e.path||"")),{copyToClipboard:n}=dH(),a=HOe(),o=t,i=e=>{o("update:modelValue",e)};return(e,t)=>(Pl(),Nl(Ao(eSe),{id:e.id,class:"reference-endpoint",transparent:""},hs({title:ci((()=>[Ul("div",aPe,[Ul("div",oPe,[Fl(Ao(Rke),{class:"endpoint-type",method:e.method,short:""},null,8,["method"]),Fl(Ao(OSe),{id:e.id,class:"endpoint-anchor"},{default:ci((()=>[Ul("h3",iPe,[Ul("div",sPe,[Fl(GTe,{deprecated:Ao(wL)(e.operation),path:e.path},null,8,["deprecated","path"])]),Ul("div",lPe,Gn(r.value),1),Ao(xL)(e.operation)?(Pl(),Nl(Ao(bke),{key:0,class:zn(Ao(kL)(e.operation))},{default:ci((()=>[ql(Gn(Ao(xL)(e.operation)),1)])),_:1},8,["class"])):Vl("",!0),e.isWebhook?(Pl(),Nl(Ao(bke),{key:1,class:"font-code text-green flex w-fit items-center justify-center gap-1"},{default:ci((()=>[Fl(Ao(yq),{weight:"bold"}),t[1]||(t[1]=ql("Webhook "))])),_:1,__:[1]})):Vl("",!0)])])),_:1},8,["id"])])])])),actions:ci((({active:r})=>{var o;return[r&&!e.isWebhook?(Pl(),Nl(Ao(nPe),{key:0,method:e.method,path:e.path},null,8,["method","path"])):(null==(o=Ao(a))?void 0:o.hideTestRequestButton)?Vl("",!0):(Pl(),Nl(Ao(vz),{key:1,class:"endpoint-try-hint size-4.5"})),Fl(Ao(e8),{class:"endpoint-copy p-0.5",icon:Ao(xQ),label:"Copy endpoint URL",size:"xs",variant:"ghost",onClick:t[0]||(t[0]=Su((t=>Ao(n)(e.path)),["stop"]))},null,8,["icon"])]})),default:ci((()=>{var t;return[Ul("div",cPe,[Ul("div",uPe,[Ul("div",dPe,[Fl(jAe,{requestBody:e.oldOperation.requestBody,parameters:e.parameters,schemas:e.schemas,"onUpdate:modelValue":i},null,8,["requestBody","parameters","schemas"])]),Ul("div",pPe,[Fl(BAe,{collapsableItems:!1,responses:e.oldOperation.responses,schemas:e.schemas},null,8,["responses","schemas"])]),(null==(t=e.operation)?void 0:t.callbacks)?(Pl(),Rl("div",hPe,[Fl(ZAe,{method:e.method,path:e.path,callbacks:e.operation.callbacks,schemas:e.schemas},null,8,["method","path","callbacks","schemas"])])):Vl("",!0)]),Fl(Ao(bAe),{class:"operation-example-card",responses:e.operation.responses},null,8,["responses"]),Ul("div",null,[e.operation.externalDocs?(Pl(),Nl(Ao(yke),{key:0},{default:ci((()=>[Fl(Ao(NSe),{value:e.operation.externalDocs},null,8,["value"])])),_:1})):Vl("",!0),Fl(Ao(PX),null,{default:ci((()=>[Fl(Ao(uAe),{class:"operation-example-card",method:e.method,selectedServer:e.server,clientOptions:e.clientOptions,selectedClient:e.store.workspace["x-scalar-default-client"],securitySchemes:e.securitySchemes,path:e.path,fallback:"",operation:e.operation,"onUpdate:modelValue":i},null,8,["method","selectedServer","clientOptions","selectedClient","securitySchemes","path","operation"])])),_:1})])])]})),_:2},[e.operation.description?{name:"description",fn:ci((()=>[Fl(Ao(o8),{value:e.operation.description,withImages:"",withAnchors:"",transformType:"heading",anchorPrefix:e.id},null,8,["value","anchorPrefix"])])),key:"0"}:void 0]),1032,["id"]))}}),[["__scopeId","data-v-d52c6d10"]]),mPe={class:"operation-details"},gPe={class:"examples"},vPe=Aye(Li({__name:"ModernLayout",props:{id:{},path:{},clientOptions:{},method:{},operation:{},oldOperation:{},parameters:{},isWebhook:{type:Boolean},securitySchemes:{},server:{},schemas:{},store:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=hc((()=>e.operation.summary||e.path||"")),n=t,a=ji(),o=HOe(),i=e=>{n("update:modelValue",e)};return(e,t)=>(Pl(),Nl(Ao(Xke),{id:e.id,"aria-labelledby":Ao(a),label:r.value,tabindex:"-1"},{default:ci((()=>[Fl(Ao(pSe),{loading:Ao(o).isLoading},{default:ci((()=>[Ao(xL)(e.operation)?(Pl(),Nl(Ao(bke),{key:0,class:zn(["capitalize",Ao(kL)(e.operation)])},{default:ci((()=>[ql(Gn(Ao(xL)(e.operation)),1)])),_:1},8,["class"])):Vl("",!0),e.isWebhook?(Pl(),Nl(Ao(bke),{key:1,class:"font-code text-green flex w-fit items-center justify-center gap-1"},{default:ci((()=>[Fl(Ao(yq),{weight:"bold"}),t[0]||(t[0]=ql("Webhook "))])),_:1,__:[0]})):Vl("",!0),Ul("div",{class:zn(Ao(wL)(e.operation)?"deprecated":"")},[Fl(Ao(fSe),null,{default:ci((()=>[Fl(Ao(OSe),{id:e.id},{default:ci((()=>[Fl(Ao(mSe),{id:Ao(a),level:3},{default:ci((()=>[ql(Gn(r.value),1)])),_:1},8,["id"])])),_:1},8,["id"])])),_:1})],2),Fl(Ao(aSe),null,{default:ci((()=>[Fl(Ao(rSe),null,{default:ci((()=>[Ul("div",mPe,[Fl(Ao(o8),{value:e.operation.description,withImages:"",withAnchors:"",transformType:"heading",anchorPrefix:e.id},null,8,["value","anchorPrefix"]),Fl(jAe,{breadcrumb:[e.id],parameters:e.parameters,requestBody:e.oldOperation.requestBody,schemas:e.schemas,"onUpdate:modelValue":i},null,8,["breadcrumb","parameters","requestBody","schemas"]),Fl(BAe,{breadcrumb:[e.id],responses:e.oldOperation.responses,schemas:e.schemas},null,8,["breadcrumb","responses","schemas"]),Fl(Ao(PX),null,{default:ci((()=>[e.operation.callbacks?(Pl(),Nl(ZAe,{key:0,class:"mt-6",path:e.path,callbacks:e.operation.callbacks,method:e.method,schemas:e.schemas},null,8,["path","callbacks","method","schemas"])):Vl("",!0)])),_:1})])])),_:1}),Fl(Ao(rSe),null,{default:ci((()=>[Ul("div",gPe,[e.operation.externalDocs?(Pl(),Nl(Ao(yke),{key:0},{default:ci((()=>[Fl(Ao(NSe),{value:e.operation.externalDocs},null,8,["value"])])),_:1})):Vl("",!0),Fl(Ao(PX),null,{default:ci((()=>[Fl(Ao(uAe),{method:e.method,selectedServer:e.server,clientOptions:e.clientOptions,securitySchemes:e.securitySchemes,selectedClient:e.store.workspace["x-scalar-default-client"],path:e.path,fallback:"",operation:e.operation,"onUpdate:modelValue":i},hs({header:ci((()=>{var t;return[Fl(GTe,{class:"font-code text-c-2 [&_em]:text-c-1 [&_em]:not-italic",deprecated:null==(t=e.operation)?void 0:t.deprecated,path:e.path},null,8,["deprecated","path"])]})),_:2},[e.isWebhook?void 0:{name:"footer",fn:ci((()=>[Fl(Ao(nPe),{method:e.method,path:e.path},null,8,["method","path"])])),key:"0"}]),1032,["method","selectedServer","clientOptions","securitySchemes","selectedClient","path","operation"])])),_:1}),Fl(Ao(PX),null,{default:ci((()=>[Fl(Ao(bAe),{responses:e.operation.responses,style:{"margin-top":"12px"}},null,8,["responses"])])),_:1})])])),_:1})])),_:1})])),_:1},8,["loading"])])),_:1},8,["id","aria-labelledby","label"]))}}),[["__scopeId","data-v-8ffb0fcc"]]),bPe=Li({__name:"Operation",props:{path:{},method:{},clientOptions:{},isWebhook:{type:Boolean},layout:{default:"modern"},id:{},server:{},store:{},collection:{},document:{}},setup(e){var t,r;const n=hc((()=>{var t,r;const n=e.isWebhook?"webhooks":"paths";return null==(r=null==(t=e.store.workspace.activeDocument)?void 0:t[n])?void 0:r[e.path]})),a=hc((()=>{var t;const r=null==(t=n.value)?void 0:t[e.method];return nC(r)?null:r})),o=hc((()=>{var t,r,n,a,o,i;return e.isWebhook?null==(n=null==(r=null==(t=e.document)?void 0:t.webhooks)?void 0:r[e.path])?void 0:n[e.method]:null==(i=null==(o=null==(a=e.document)?void 0:a.paths)?void 0:o[e.path])?void 0:i[e.method]})),{handleDiscriminatorChange:i}=function(e,t){var r,n,a;const o=null==(a=null==(n=null==(r=null==e?void 0:e.requestBody)?void 0:r.content)?void 0:n["application/json"])?void 0:a.schema,i=hc((()=>{return!(!(e=o)||!(e.discriminator||"array"===e.type&&e.items&&"object"==typeof e.items&&"discriminator"in e.items));var e})),s=i.value?function({schema:e,schemas:t,onSchemaChange:r}){const n=hc((()=>function(e){if(e)return"array"===e.type&&e.items&&"object"==typeof e.items&&!("$ref"in e.items)?e.items:e}(e))),a=hc((()=>function(e){var t;if(null==(t=null==e?void 0:e.discriminator)?void 0:t.mapping)return e.discriminator.mapping}(n.value))),o=hc((()=>a.value&&Object.keys(a.value)[0]||"")),i=So(o.value);ul(o,(e=>{e&&!i.value&&(i.value=e)}),{immediate:!0});const s=hc((()=>function(e){var t;return null==(t=null==e?void 0:e.discriminator)?void 0:t.propertyName}(n.value))),l=hc((()=>function(e){return void 0!==(null==e?void 0:e.discriminator)}(n.value))),c=hc((()=>{if(!n.value||!t||!i.value)return e;const a=function(e,t,r){var n;if(!(null==(n=e.discriminator)?void 0:n.mapping)||!t)return;const a=e.discriminator.mapping[t];if(!a)return;const o=a.split("/").pop();if(!o||!r[o])return;const i=r[o];if(i.allOf){const t={type:i.type||"object",properties:{},required:[],...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}},n={},a=new Set;e.required&&e.required.forEach((e=>a.add(e)));for(const e of i.allOf)if("$ref"in e){const t=e.$ref.split("/").pop();if(t&&r[t]){const e=r[t];e.properties&&Object.assign(n,e.properties),e.required&&e.required.forEach((e=>a.add(e)))}}else"properties"in e&&(Object.assign(n,e.properties),"required"in e&&Array.isArray(e.required)&&e.required.forEach((e=>a.add(e))));return t.properties=n,t.required=Array.from(a),t}return{type:i.type||e.type,properties:{...e.properties||{},...i.properties||{}},required:[...e.required||[],...i.required||[]],discriminator:e.discriminator,...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}}}(n.value,i.value,t);if(!a)return e;const o="array"===(null==e?void 0:e.type)?{type:"array",items:a,...e.title?{title:e.title}:{},...e.name?{name:e.name}:{}}:a;return null==r||r(o),o}));return{selectedType:i,discriminatorMapping:a,defaultType:o,discriminatorPropertyName:s,hasDiscriminator:l,mergedSchema:c,generateExampleValue:(e=!1)=>{if(!c.value)return e?[]:{};const t={},r="array"===c.value.type?c.value.items:c.value;"properties"in r&&r.properties&&Object.entries(r.properties).forEach((([e,r])=>{const n=r;null!==n&&(t[e]=(e=>{if("default"in e)return e.default;if("example"in e)return e.example;switch(e.type){case"string":return"";case"integer":case"number":return e.nullable?null:0;case"boolean":return!1;case"array":return[];case"object":return{};default:return null}})(n))})),s.value&&i.value&&(t[s.value]=i.value);const n=e?[t]:t;return JSON.parse(JSON.stringify(n))}}}({schema:o,schemas:t,onSchemaChange:t=>{var r,n;(null==(n=null==(r=null==e?void 0:e.requestBody)?void 0:r.content)?void 0:n["application/json"])&&(e.requestBody.content["application/json"].schema=t)}}):{selectedType:So(""),discriminatorMapping:hc((()=>({}))),discriminatorPropertyName:hc((()=>"")),hasDiscriminator:hc((()=>!1)),mergedSchema:hc((()=>o)),generateExampleValue:()=>({})},{selectedType:l,discriminatorMapping:c,discriminatorPropertyName:u,hasDiscriminator:d,mergedSchema:p,generateExampleValue:h}=s;if(i.value){const e=hc((()=>({selectedType:l.value||void 0,discriminatorMapping:c.value||{},discriminatorPropertyName:u.value||"",hasDiscriminator:d.value,mergedSchema:p.value})));js(s_e,e),js(l_e,{generateExampleValue:h})}else js(s_e,hc((()=>null))),js(l_e,{generateExampleValue:()=>({})});return{hasSchemaDiscriminator:i,handleDiscriminatorChange:e=>{i.value&&(l.value=e)}}}(o.value,null==(r=null==(t=e.document)?void 0:t.components)?void 0:r.schemas),{securitySchemes:s}=Obe(),l=hc((()=>{var t,r;return((e,t=[],r={})=>{const n=new Set((null==e?void 0:e.map((e=>Object.keys(e).sort().join(","))))??[]);return t.reduce(((e,t)=>{const a=Array.isArray(t)?t:[t],o=a.map((e=>{var t;return null==(t=r[e])?void 0:t.nameKey})).sort().join(",");return n.has(o)&&e.push(...a.map((e=>r[e])).filter(_L)),e}),[])})((null==(t=a.value)?void 0:t.security)||(null==(r=e.document)?void 0:r.security),e.collection.selectedSecuritySchemeUids,s).map(ZTe)})),c=hc((()=>{var e,t;return[...(null==(e=n.value)?void 0:e.parameters)??[],...(null==(t=a.value)?void 0:t.parameters)??[]].filter(aC)}));return(e,t)=>{var r,n,s,u;return a.value&&o.value?(Pl(),Rl(Sl,{key:0},["classic"===e.layout?(Pl(),Nl(fPe,{key:0,id:e.id,isWebhook:e.isWebhook,method:e.method,operation:a.value,oldOperation:o.value,clientOptions:e.clientOptions,securitySchemes:l.value,parameters:c.value,store:e.store,path:e.path,schemas:null==(n=null==(r=e.document)?void 0:r.components)?void 0:n.schemas,server:e.server,"onUpdate:modelValue":Ao(i)},null,8,["id","isWebhook","method","operation","oldOperation","clientOptions","securitySchemes","parameters","store","path","schemas","server","onUpdate:modelValue"])):(Pl(),Nl(vPe,{key:1,id:e.id,isWebhook:e.isWebhook,method:e.method,clientOptions:e.clientOptions,oldOperation:o.value,securitySchemes:l.value,parameters:c.value,path:e.path,store:e.store,operation:a.value,schemas:null==(u=null==(s=e.document)?void 0:s.components)?void 0:u.schemas,server:e.server,"onUpdate:modelValue":Ao(i)},null,8,["id","isWebhook","method","clientOptions","oldOperation","securitySchemes","parameters","path","store","operation","schemas","server","onUpdate:modelValue"]))],64)):Vl("",!0)}}}),yPe=Li({__name:"TraversedEntry",props:{level:{default:0},rootIndex:{},entries:{},document:{},config:{},clientOptions:{},activeCollection:{},activeServer:{},store:{}},setup(e,{expose:t}){const r=e=>"isGroup"in e&&e.isGroup,n=e=>"tag"in e&&!r(e),a=e=>"operation"in e,o=e=>"webhook"in e,i=e=>"isWebhooks"in e&&Boolean(e.isWebhooks),s=hc((()=>0===e.level)),{hash:l}=KOe(),c=hc((()=>s.value?e.rootIndex:DEe(l.value,e.entries))),u=(e,t)=>r(e)?null:t<c.value?"prev":t>c.value+2?"after":null;return t({currentIndex:c}),(e,t)=>{const l=ss("TraversedEntry",!0);return Pl(!0),Rl(Sl,null,ps(e.entries,((t,c)=>(Pl(),Nl(Ao(BOe),{key:t.id,id:t.id,prev:"prev"===u(t,c),isLazy:Boolean(u(t,c))},{default:ci((()=>[a(t)||o(t)?(Pl(),Nl(Ao(iSe),{key:0,omit:!s.value},{default:ci((()=>[Fl(Ao(bPe),{path:o(t)?t.name:t.path,method:t.method,id:t.id,document:e.document,collection:e.activeCollection,clientOptions:e.clientOptions,layout:e.config.layout,store:e.store,server:e.activeServer,isWebhook:o(t)},null,8,["path","method","id","document","collection","clientOptions","layout","store","server","isWebhook"])])),_:2},1032,["omit"])):i(t)||n(t)?(Pl(),Nl(Ao(UEe),{key:1,tag:t,layout:e.config.layout,moreThanOneTag:e.entries.filter(n).length>1},{default:ci((()=>{var r;return["children"in t&&(null==(r=t.children)?void 0:r.length)?(Pl(),Nl(l,{key:0,level:e.level+1,entries:t.children,activeCollection:e.activeCollection,activeServer:e.activeServer,clientOptions:e.clientOptions,rootIndex:e.rootIndex,config:e.config,document:e.document,store:e.store},null,8,["level","entries","activeCollection","activeServer","clientOptions","rootIndex","config","document","store"])):Vl("",!0)]})),_:2},1032,["tag","layout","moreThanOneTag"])):r(t)?(Pl(),Nl(l,{key:2,level:e.level+1,rootIndex:e.rootIndex,entries:t.children||[],activeCollection:e.activeCollection,activeServer:e.activeServer,clientOptions:e.clientOptions,config:e.config,document:e.document,store:e.store},null,8,["level","rootIndex","entries","activeCollection","activeServer","clientOptions","config","document","store"])):Vl("",!0)])),_:2},1032,["id","prev","isLazy"])))),128)}}}),OPe={key:0},wPe=Li({__name:"TraversedEntryContainer",props:{document:{},config:{},clientOptions:{},store:{}},emits:["allEntriesLoaded"],setup(e,{emit:t}){const r=t,{collections:n,servers:a}=Obe(),{activeCollection:o}=Eye(),i=hc((()=>{var t;if(null==(t=e.config)?void 0:t.slug){const t=n[ebe(e.config.slug)];if(t)return t}return o.value})),s=hc((()=>{if(i.value){if(i.value.selectedServerUid){const e=a[i.value.selectedServerUid];if(e)return e}return a[i.value.servers[0]]}})),{items:l}=Dke(),{hash:c,isIntersectionEnabled:u}=KOe(),d=(e=>{if(!e)return()=>null;let t=null,r=document.getElementById(e);const n=new MutationObserver((()=>{r||(r=document.getElementById(e)),r&&(null!==t&&cancelAnimationFrame(t),t=requestAnimationFrame((()=>{null==r||r.scrollIntoView(),t=null})))}));return n.observe(document.body,{childList:!0,subtree:!0}),()=>{null!==t&&cancelAnimationFrame(t),n.disconnect()}})(c.value),p=()=>{null==d||d(),jOe.value=!0,u.value=!0},h=So(new Set),f=hc((()=>DEe(c.value,l.value.entries)));return LOe.on((({loading:e,loaded:t,save:n})=>{jOe.value||(e&&n&&h.value.add(e),t&&n&&h.value.delete(t),0===h.value.size&&(r("allEntriesLoaded",!0),setTimeout((()=>p()),300)))})),setTimeout((()=>p()),5e3),(e,t)=>Ao(l).entries.length&&i.value?(Pl(),Rl("div",OPe,[Fl(yPe,{entries:Ao(l).entries,activeCollection:i.value,activeServer:s.value,clientOptions:e.clientOptions,config:e.config,document:e.document,rootIndex:f.value,store:e.store},null,8,["entries","activeCollection","activeServer","clientOptions","config","document","rootIndex","store"])])):Vl("",!0)}}),xPe={class:"narrow-references-container"},kPe=Li({__name:"Content",props:{document:{},config:{},store:{}},setup(e){const t=HOe(),r=hc((()=>{return!0===(e=t.value.hiddenClients)?[]:Kxe().clients().flatMap((t=>{const r=t.clients.flatMap((r=>{const n=`${t.key}/${r.client}`;if(Array.isArray(e)&&e.includes(r.client))return[];if("object"==typeof e&&null!==e){const n=e[t.key];if(!0===n)return[];if(Array.isArray(n)&&n.includes(r.client))return[]}return{id:n,lang:"curl"===r.client?"curl":t.key,title:`${Pn(t.title)} ${r.title}`,label:r.title,targetKey:t.key,targetTitle:t.title,clientKey:r.client}}));return 0===r.length?[]:{label:t.title,options:r}}));var e}));return(e,n)=>{var a,o,i,s,l;return Pl(),Rl(Sl,null,[Fl(Ao(CEe)),Ul("div",xPe,[fs(e.$slots,"start"),(null==(o=null==(a=e.document)?void 0:a.info)?void 0:o.title)||(null==(s=null==(i=e.document)?void 0:i.info)?void 0:s.description)?(Pl(),Nl(Ao(i_e),{key:0,document:e.document,store:e.store,clientOptions:r.value,config:Ao(t)},null,8,["document","store","clientOptions","config"])):fs(e.$slots,"empty-state",{key:1}),Fl(Ao(wPe),{document:e.document,config:Ao(t),clientOptions:r.value,store:e.store},null,8,["document","config","clientOptions","store"]),(null==(l=Ao(t))?void 0:l.hideModels)?Vl("",!0):(Pl(),Nl(Ao(TEe),{key:2,document:e.document,config:Ao(t)},null,8,["document","config"])),fs(e.$slots,"end")])],64)}}}),SPe={class:"start custom-scroll"},_Pe={class:"start-copy"},EPe={class:"start-cta"},TPe={class:"start-row"},APe={class:"start-section start-section-colors"},CPe=["onClick"],PPe=Aye(Li({__name:"GettingStarted",props:{theme:{}},emits:["changeTheme","loadSwaggerFile","linkSwaggerFile","updateContent"],setup(e,{emit:t}){const r=t,n=["default","alternate","moon","purple","solarized","bluePlanet","saturn","kepler","mars","deepSpace"];async function a(){const e=await fetch("https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml");r("updateContent",await e.text())}return(e,t)=>(Pl(),Rl("div",SPe,[Ul("div",_Pe,[t[3]||(t[3]=Hl('<div class="start-logo" data-v-0aca3a20><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0aca3a20></path></svg></div><h1 class="start-h1" data-v-0aca3a20>Swagger Editor</h1><p class="start-p" data-v-0aca3a20> Welcome to the Scalar API References + Swagger Editor, a Free & Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>',3)),Ul("div",EPe,[Fl(Ao(aF),{fullWidth:"",onClick:a},{default:ci((()=>t[1]||(t[1]=[ql(" Show Example ")]))),_:1,__:[1]}),Fl(Ao(aF),{fullWidth:"",variant:"outlined",onClick:t[0]||(t[0]=t=>e.$emit("loadSwaggerFile"))},{default:ci((()=>t[2]||(t[2]=[ql(" Upload File ")]))),_:1,__:[2]})])]),Ul("div",TPe,[t[5]||(t[5]=Hl('<div class="start-section start-section-integrations" data-v-0aca3a20><div class="start-h2" data-v-0aca3a20>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0aca3a20><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0aca3a20></path></svg><span data-v-0aca3a20>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0aca3a20><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g data-v-0aca3a20><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0aca3a20></path></g></svg><span data-v-0aca3a20>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0aca3a20><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="currentColor" fill-rule="nonzero" data-v-0aca3a20><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0aca3a20></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0aca3a20></polygon></g></svg><span data-v-0aca3a20>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0aca3a20><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0aca3a20><g fill="none" fill-rule="evenodd" data-v-0aca3a20><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0aca3a20></circle><g stroke="currentColor" data-v-0aca3a20><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0aca3a20></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0aca3a20></ellipse></g></g></svg><span data-v-0aca3a20>React</span></a></div>',1)),Ul("div",APe,[t[4]||(t[4]=Ul("p",{class:"start-h2"},"THEMING",-1)),(Pl(),Rl(Sl,null,ps(n,(t=>Ul("div",{key:t,class:zn(["start-item",{"start-item-active":t===e.theme}]),onClick:r=>e.$emit("changeTheme",{id:t,label:Ao(dbe)[t]})},Gn(Ao(dbe)[t]),11,CPe))),64))])]),t[6]||(t[6]=Hl('<p class="start-h1" data-v-0aca3a20>Features</p><ul class="start-ul" data-v-0aca3a20><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Customize</p> Bring your typography & color palettes, or use our themes! </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Testing</p> A deeply integrated Rest API Client (Also Free & Open-Source) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>OpenAPI & Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0aca3a20><p class="start-h3" data-v-0aca3a20>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>',2))]))}}),[["__scopeId","data-v-0aca3a20"]]),$Pe={class:"references-mobile-header t-doc__header"},DPe={class:"references-mobile-breadcrumbs"},MPe={class:"references-mobile-header-actions"},RPe=Aye(Li({__name:"MobileHeader",props:{breadcrumb:{}},setup(e){const{isSidebarOpen:t}=Dke();return(e,r)=>(Pl(),Rl("div",$Pe,[Fl(Ao(e8),{icon:Ao(t)?"Close":"Menu",label:Ao(t)?"Close Menu":"Open Menu",size:"md",onClick:r[0]||(r[0]=e=>t.value=!Ao(t))},null,8,["icon","label"]),Ul("span",DPe,Gn(e.breadcrumb),1),Ul("div",MPe,[fs(e.$slots,"actions",{},void 0,!0)])]))}}),[["__scopeId","data-v-fa8b013a"]]);function NPe({originalDocument:e,dereferencedDocument:t,configuration:r}){const{originalDocument:n}=function({configuration:e}){const t=So("");return ul((()=>Co(e)),(async r=>{var n;if(!r)return;const a=await(async({url:e,content:t},r)=>{if(e&&!t)try{const t=await Pke(`fetch(${e})`,(async()=>await uL(e,r)));return console.info("size:",Math.round(t.length/1024),"kB"),t}catch(e){console.error("Failed to fetch OpenAPI document from URL:",e)}const n="function"==typeof t?t():t;return"string"==typeof n?n:"object"==typeof n?pL(n):void 0})(r,null==(n=Co(e))?void 0:n.proxyUrl);"string"==typeof a&&(t.value=a.trim())}),{immediate:!0,deep:!0}),{originalDocument:t}}({configuration:r}),a=hc((()=>Co(e||n))),o=So(""),i=hc((()=>Co(t||s))),s=So({openapi:"3.1.0",info:{title:"",version:""},paths:{}});ul((()=>Co(a)),(async e=>{if(!e)return;const r=_f(e);if(void 0===r)return void console.error("Failed to parse the OpenAPI document:",e);if(o.value="object"==typeof r&&(r.openapi||r.swagger)||"",t)return;const n=o.value.startsWith("3.1")?r:Pke("upgrade",(()=>{const{specification:e}=Bf(r);return e})),a=await Pke("dereference",(async()=>{const{schema:e,errors:t}=await $f(n);return(null==t?void 0:t.length)&&console.warn("Please open an issue on https://github.com/scalar/scalar\n","Scalar OpenAPI Parser Warning:\n",t),void 0===e&&console.error("Failed to dereference the OpenAPI document",t),e}));s.value=a}),{immediate:!0});const l=bbe({useLocalStorage:!1,...Co(r)??zt.parse({})}),c=Sye(l);return{originalDocument:a,originalOpenApiVersion:o,dereferencedDocument:i,workspaceStore:l,activeEntitiesStore:c}}function IPe(e){const t=[];return function e(r){r.forEach((r=>{!function(e,t){if("operation"in e){const r=function(e){var t,r;try{const n=null==(r=null==(t=null==e?void 0:e.requestBody)?void 0:t.content)?void 0:r["application/json"];if(!n)throw new Error("Body not found");return function(e){var t;const r=["Body"],n=null==(t=null==e?void 0:e.schema)?void 0:t.properties;return n&&Object.keys(n).forEach((t=>{if(!e.schema)return;r.push(function(e,t){var r;let n=e;return n+=(null==(r=t.required)?void 0:r.includes(e))?" REQUIRED ":" optional ",t.properties[e]&&(n+=t.properties[e].type,t.properties[e].description&&(n+=" "+t.properties[e].description)),n}(t,e.schema));const a=n[t];"object"===a.type&&a.properties&&a.properties&&Object.keys(a.properties).forEach((e=>{var t,n;r.push(`${e} ${null==(n=null==(t=a.properties)?void 0:t[e])?void 0:n.type}`)}))})),r}(n)}catch(e){return!1}}(e.operation)||function(e){const t={path:[],query:[],header:[],cookie:[],body:[],formData:[]},r=e.parameters??[];return r&&r.forEach((e=>{(e=>"object"==typeof e&&null!==e&&!("$ref"in e&&"string"==typeof e.$ref))(e)&&("object"==typeof e&&null!==e&&"$ref"in e||("path"===e.in?t.path.push(e):"query"===e.in?t.query.push(e):"header"===e.in?t.header.push(e):"cookie"===e.in?t.cookie.push(e):"body"===e.in?t.body.push(e):"formData"===e.in&&t.formData.push(e)))})),t}(e.operation),n="boolean"!=typeof r?r:null;t.push({type:"operation",title:e.title,href:`#${e.id}`,id:e.operation.operationId,description:e.operation.description||"",method:e.method,path:e.path,body:n||"",entry:e})}else if("webhook"in e)t.push({type:"webhook",title:e.title,href:`#${e.id}`,description:"Webhook",method:e.method,body:e.webhook.description||"",entry:e});else if("schema"in e){const r="description"in e.schema&&"string"==typeof e.schema.description?e.schema.description:"";t.push({type:"model",title:e.title,href:`#${e.id}`,description:"Model",body:r,entry:e})}else"tag"in e?t.push({title:e.title,href:`#${e.id}`,description:e.tag.description||"",type:"tag",body:"",entry:e}):"isGroup"in e?t.push({title:e.title,href:`#${e.id}`,description:"Tag Group",type:"tag",body:"",entry:e}):"isWebhooks"in e?t.push({type:"heading",title:"Webhooks",href:`#${e.id}`,description:"Heading",body:"",entry:e}):"Models"!==e.title?e.title&&t.push({type:"heading",title:e.title??"",description:"Description",href:`#${e.id}`,body:"",entry:e}):t.push({type:"heading",title:"Models",href:`#${e.id}`,description:"Heading",body:"",entry:e})}(r,t),"children"in r&&r.children&&e(r.children)}))}(e),t}const LPe={class:"sr-only"},jPe={class:"inline-flex items-center gap-1"},BPe={class:"sr-only"},UPe=Aye(Li({__name:"SearchModal",props:{modalState:{},hideModels:{type:Boolean}},setup(e){const t=e,r=gX(),n=`${r}-search-result`,a=`${r}-search-instructions`,o=e=>`${r}${e}`,{items:i}=Dke(),{resetSearch:s,selectedIndex:l,selectedSearchResult:c,searchResultsWithPlaceholderResults:u,query:d}=function(e){const t=new ufe([],{keys:[{name:"title",weight:.7},{name:"description",weight:.3},{name:"body",weight:.2},{name:"id",weight:.6},{name:"path",weight:.5},{name:"tag",weight:.4},{name:"method",weight:.3}],threshold:.3,distance:100,includeScore:!0,includeMatches:!0,minMatchCharLength:2,ignoreLocation:!0,useExtendedSearch:!0,findAllMatches:!0}),r=So();ul(e,(()=>{const{entries:r}=Co(e),n=IPe(r);t.setCollection(n)}),{immediate:!0});const n=So("");function a(){n.value="",r.value=void 0,o.value=[]}ul(n,(e=>{e.length?i():a()}));const o=So([]),i=()=>{r.value=0,o.value=t.search(n.value,{limit:25})},s=hc((()=>0!==n.value.length?o.value:t._docs.slice(0,25).map(((e,t)=>({item:e,refIndex:t}))))),l=hc((()=>"number"==typeof r.value?s.value[r.value]:void 0));return{resetSearch:a,selectedIndex:r,selectedSearchResult:l,searchResultsWithPlaceholderResults:s,query:n}}(i),p={heading:Kz,model:FF,operation:Hz,tag:jz,webhook:Hz},h={heading:"Heading",operation:"Operation",tag:"Tag",model:"Model",webhook:"Webhook"},f=So(null);ul((()=>t.modalState.open),(e=>{e&&s()}));const{setCollapsedSidebarItem:m}=Dke(),g=/#(tag\/[^/]*)/;function v(e){let r="models";const n=e.item.href.match(g);(null==n?void 0:n.length)&&n.length>1&&(r=n[1]),m(r,!0);const a=e.item.href.replace("#","");if(document.getElementById(a))Cke(a),t.modalState.hide();else{const e=LOe.on((r=>{r.loaded===a&&(Cke(a),e(),t.modalState.hide())}))}}ul(l,(e=>{var t;if("number"!=typeof e)return;const r=u.value[e],n=o(null==r?void 0:r.item.href);null==(t=document.getElementById(n))||t.scrollIntoView({behavior:"smooth",block:"nearest"})}));const b=e=>{const t="up"===e?-1:1,r=u.value.length;if("number"==typeof l.value){const e=(l.value+t+r)%r;l.value=e}else l.value=-1===t?r-1:0};function y(e){const t=new URL(window.location.href);return t.hash=e,t.toString()}function O(){if(!_L(l.value))return;const e=u.value;0!==e.length&&v(e[l.value])}return(e,t)=>(Pl(),Nl(Ao(Y8),{"aria-label":"Reference Search",state:e.modalState,variant:"search"},{default:ci((()=>[Ul("div",{ref_key:"searchModalRef",ref:f,class:"ref-search-container",role:"search"},[Fl(Ao(p8),{modelValue:Ao(d),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(d)?d.value=e:null),"aria-activedescendant":Ao(c)?o(Ao(c).item.href):void 0,"aria-autocomplete":"list","aria-controls":n,"aria-describedby":a,role:"combobox",onBlur:t[1]||(t[1]=e=>l.value=void 0),onKeydown:[t[2]||(t[2]=Eu(Su((e=>b("down")),["stop","prevent"]),["down"])),Eu(Su(O,["stop","prevent"]),["enter"]),t[3]||(t[3]=Eu(Su((e=>b("up")),["stop","prevent"]),["up"]))]},null,8,["modelValue","aria-activedescendant","onKeydown"])],512),Fl(Ao(h8),{id:n,"aria-label":"Reference Search Results",class:"ref-search-results custom-scroll",noResults:!Ao(u).length},{query:ci((()=>[ql(Gn(Ao(d)),1)])),default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Ao(u),((e,r)=>(Pl(),Nl(Ao(w8),{id:o(e.item.href),key:e.refIndex,href:y(e.item.href),icon:p[e.item.type],selected:Ao(l)===r,onClick:t=>v(e),onFocus:e=>l.value=r},hs({default:ci((()=>[Ul("span",{class:zn({deprecated:"operation"in e.item.entry&&Ao(wL)(e.item.entry.operation)})},[Ul("span",LPe,[ql(Gn(h[e.item.type])+": ",1),"operation"in e.item.entry&&Ao(wL)(e.item.entry.operation)?(Pl(),Rl(Sl,{key:0},[ql(" (Deprecated) ")],64)):Vl("",!0)]),ql(" "+Gn(e.item.title)+" ",1),t[4]||(t[4]=Ul("span",{class:"sr-only"},",",-1))],2)])),_:2},["webhook"!==e.item.type&&(e.item.method||e.item.path)&&e.item.path!==e.item.title?{name:"description",fn:ci((()=>[Ul("span",jPe,["operation"===e.item.type?(Pl(),Rl(Sl,{key:0},[Fl(Nke,{"aria-hidden":"true",method:e.item.method??"get"},null,8,["method"]),Ul("span",BPe," HTTP Method: "+Gn(e.item.method??"get"),1)],64)):Vl("",!0),t[5]||(t[5]=Ul("span",{class:"sr-only"},"Path: ",-1)),ql(" "+Gn(e.item.path),1)])])),key:"0"}:e.item.description?{name:"description",fn:ci((()=>[t[6]||(t[6]=Ul("span",{class:"sr-only"},"Description: ",-1)),ql(" "+Gn(e.item.description),1)])),key:"1"}:void 0]),1032,["id","href","icon","selected","onClick","onFocus"])))),128))])),_:1},8,["noResults"]),Ul("div",{id:a,class:"ref-search-meta"},t[7]||(t[7]=[Ul("span",{"aria-hidden":"true",class:"contents"},[Ul("span",null,"↑↓ Navigate"),Ul("span",null,"⏎ Select")],-1),Ul("span",{class:"sr-only"}," Press up arrow / down arrow to navigate, enter to select, type to filter results ",-1)]))])),_:1},8,["state"]))}}),[["__scopeId","data-v-d38e7ee7"]]),FPe=Li({__name:"SearchButton",props:{searchHotKey:{default:"k"},hideModels:{type:Boolean,default:!1}},setup(e){const t=So(),r=X8(),{client:n}=ePe(),a=t=>{var a;(ICe()?t.metaKey:t.ctrlKey)&&t.key===e.searchHotKey&&!(null==(a=n.value)?void 0:a.modalState.open)&&(t.preventDefault(),t.stopPropagation(),r.open?r.hide():r.show())};function o(){r.show()}return ul((()=>r.open),((e,r)=>{!e&&r&&Ko((()=>{var e;null==(e=t.value)||e.$el.focus()}))})),Yi((()=>window.addEventListener("keydown",a))),es((()=>window.removeEventListener("keydown",a))),(e,n)=>(Pl(),Rl(Sl,null,[Fl(Ao(C8),{ref_key:"button",ref:t,class:zn(["w-full",e.$attrs.class]),onClick:o},{shortcut:ci((()=>[Ao(ICe)()?(Pl(),Rl(Sl,{key:0},[n[0]||(n[0]=Ul("span",{class:"sr-only"},"Command",-1)),n[1]||(n[1]=Ul("span",{"aria-hidden":"true"},"⌘",-1))],64)):(Pl(),Rl(Sl,{key:1},[n[2]||(n[2]=Ul("span",{class:"sr-only"},"CTRL",-1)),n[3]||(n[3]=Ul("span",{"aria-hidden":"true"},"⌃",-1))],64)),ql(" "+Gn(e.searchHotKey),1)])),default:ci((()=>[n[4]||(n[4]=Ul("span",{class:"sr-only"},"Open Search",-1)),n[5]||(n[5]=Ul("span",{"aria-hidden":"true",class:"sidebar-search-placeholder"}," Search ",-1))])),_:1,__:[4,5]},8,["class"]),Fl(UPe,{modalState:Ao(r),hideModels:e.hideModels},null,8,["modalState","hideModels"])],64))}}),QPe=["innerHTML"],zPe={class:"references-header"},qPe=["aria-label"],HPe={class:"references-navigation-list"},VPe={key:0},ZPe={key:1,class:"scalar-api-references-standalone-search"},WPe={key:1},XPe={class:"references-editor"},GPe={class:"references-editor-textarea"},YPe=["aria-label"],KPe={key:0,class:"w-64 *:!p-0 empty:hidden"},JPe={key:0,class:"references-footer"},e$e=Li({inheritAttrs:!1,__name:"ApiReferenceLayout",props:{configuration:{},dereferencedDocument:{},originalDocument:{},isDark:{type:Boolean},rawSpec:{},store:{}},emits:["changeTheme","updateContent","loadSwaggerFile","linkSwaggerFile","toggleDarkMode"],setup(e){const t=hc((()=>zt.parse(e.configuration))),{initializeToasts:r,toast:n}=cH();r((e=>n(e)));const{originalDocument:a,originalOpenApiVersion:o,dereferencedDocument:i,workspaceStore:s,activeEntitiesStore:l}=NPe({configuration:t,dereferencedDocument:e.dereferencedDocument,originalDocument:e.originalDocument});js(PSe,o),js(ybe,s),js(_ye,l);const c=rj("(min-width: 1150px)"),u=So("100dvh"),d=So(null);!function(e,t,r={}){const{window:n=GL,...a}=r;let o;const i=tj((()=>n&&"ResizeObserver"in n)),s=()=>{o&&(o.disconnect(),o=void 0)},l=ul(hc((()=>{const t=BL(e);return Array.isArray(t)?t.map((e=>KL(e))):[KL(t)]})),(e=>{if(s(),i.value&&n){o=new ResizeObserver(t);for(const t of e)t&&o.observe(t,a)}}),{immediate:!0,flush:"post"});jL((()=>{s(),l()}))}(d,(e=>{u.value=e[0]?e[0].contentRect.height+"px":"100dvh"}));const p=hc(ube),h=KOe(t),{isSidebarOpen:f,setCollapsedSidebarItem:m,scrollToOperation:g,items:v}=Dke(i,{...h,config:t}),{getReferenceId:b,getPathRoutingId:y,getSectionId:O,getTagId:w,hash:x,isIntersectionEnabled:k,updateHash:S,replaceUrlState:_}=h;if(t.value.redirect&&"undefined"!=typeof window){const e=t.value.redirect((t.value.pathRouting?window.location.pathname:"")+window.location.hash);e&&history.replaceState({},"",e)}Gi((()=>{S(),t6()}));const E=async e=>{var t;k.value=!1,S(),e?g(e):null==(t=d.value)||t.scrollTo(0,0),await Tye(100),k.value=!0},T=So(0);Yi((()=>{var e,r,n;history.scrollRestoration="manual";const a=null==(r=null==(e=d.value)?void 0:e.parentElement)?void 0:r.getBoundingClientRect(),o=null==(n=d.value)?void 0:n.getBoundingClientRect();if(a&&o){const e=o.top-a.top;T.value=e<2?0:e}window.onhashchange=()=>{E(b())},window.onpopstate=()=>t.value.pathRouting&&E(y(window.location.pathname)),window.addEventListener("scroll",C,{passive:!0})}));const A=hc((()=>c.value||!t.value.isEditable)),C=WL((()=>{window.scrollY<50&&jOe.value&&_("")})),P=So(!1);ul(i,(e=>{var t;if(x.value){const e=O(x.value);e&&m(e,!0)}else{const r=null==(t=e.tags)?void 0:t[0];r&&m(w(r),!0)}P.value=!0}));const $=hc((()=>{var e;return{breadcrumb:(null==(e=v.value)?void 0:e.titles.get(x.value))??""}}));Yi((()=>TSe.on((({filename:t,format:r})=>{ASe(Co(a)||Co(e.rawSpec)||"",t,r)})))),ts((()=>{window.removeEventListener("scroll",C),TSe.reset()})),js(ij,(()=>ji())),js(nge,"modal"),js(qOe,t),js(XSe,WSe({plugins:t.value.plugins}));const D=hc((()=>`<style>\n ${((e,t)=>{var r;const{fonts:n=!0,layer:a="scalar-theme"}=t??{},o=[(null==(r=pbe[e||"default"])?void 0:r.theme)??cbe,n?'/* Inter (--scalar-font) */\n/* cyrillic-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-cyrillic-ext.woff2) format("woff2");\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-cyrillic.woff2) format("woff2");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-greek-ext.woff2) format("woff2");\n unicode-range: U+1F00-1FFF;\n}\n/* greek */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-greek.woff2) format("woff2");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-vietnamese.woff2) format("woff2");\n unicode-range:\n U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,\n U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,\n U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-latin-ext.woff2) format("woff2");\n unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,\n U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "Inter";\n font-style: normal;\n font-weight: 100 900;\n font-display: swap;\n src: url(https://fonts.scalar.com/inter-latin.woff2) format("woff2");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* JetBrains Mono (--scalar-font-code) */\n/* cyrillic-ext */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-cyrillic-ext.woff2) format("woff2");\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-cyrillic.woff2) format("woff2");\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-greek.woff2) format("woff2");\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-vietnamese.woff2) format("woff2");\n unicode-range:\n U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169,\n U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323,\n U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-latin-ext.woff2) format("woff2");\n unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,\n U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: "JetBrains Mono";\n font-style: normal;\n font-weight: 400;\n src: url(https://fonts.scalar.com/mono-latin.woff2) format("woff2");\n unicode-range:\n U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,\n U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,\n U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n':""].join("");return a?`@layer ${a} {\n${o}}`:o})(t.value.theme,{fonts:t.value.withDefaultFonts})}</style>`)),{mediaQueries:M}=Gbe();return ul(M.lg,((e,t)=>{t&&!e&&(f.value=!1)})),ul(x,((e,t)=>{e&&e!==t&&(f.value=!1)})),(e,r)=>{var n,a,o,s,l;return Pl(),Rl(Sl,null,[Ul("div",{innerHTML:D.value},null,8,QPe),Ul("div",{ref_key:"documentEl",ref:d,class:zn(["scalar-app scalar-api-reference references-layout",[{"scalar-api-references-standalone-mobile":t.value.showSidebar??!0,"scalar-scrollbars-obtrusive":p.value,"references-editable":t.value.isEditable,"references-sidebar":t.value.showSidebar,"references-sidebar-mobile-open":Ao(f),"references-classic":"classic"===t.value.layout},e.$attrs.class]]),style:jn({"--scalar-y-offset":`var(--scalar-custom-header-height, ${T.value}px)`})},[Ul("div",zPe,["modern"===t.value.layout&&(t.value.showSidebar??1)?(Pl(),Nl(RPe,{key:0,breadcrumb:$.value.breadcrumb},null,8,["breadcrumb"])):Vl("",!0),fs(e.$slots,"header",qn(Ql($.value)),void 0,!0)]),t.value.showSidebar?(Pl(),Rl("aside",{key:0,"aria-label":`Sidebar for ${null==(a=null==(n=Ao(i))?void 0:n.info)?void 0:a.title}`,class:"references-navigation t-doc__sidebar"},[Ul("div",HPe,[Fl(Ao(PX),null,{default:ci((()=>{var n,a;return[Fl(Ao(Wke),{title:(null==(a=null==(n=Ao(i))?void 0:n.info)?void 0:a.title)??"The OpenAPI Schema"},{"sidebar-start":ci((()=>{var r,n;return[e.$slots["document-selector"]?(Pl(),Rl("div",VPe,[fs(e.$slots,"document-selector",{},void 0,!0)])):Vl("",!0),t.value.hideSearch?Vl("",!0):(Pl(),Rl("div",ZPe,[Fl(Ao(FPe),{searchHotKey:null==(r=t.value)?void 0:r.searchHotKey,hideModels:null==(n=t.value)?void 0:n.hideModels},null,8,["searchHotKey","hideModels"])])),fs(e.$slots,"sidebar-start",qn(Ql($.value)),void 0,!0)]})),"sidebar-end":ci((()=>[fs(e.$slots,"sidebar-end",qn(Ql($.value)),(()=>[Fl(Ao(S8),{class:"darklight-reference"},{toggle:ci((()=>[t.value.hideDarkModeToggle?(Pl(),Rl("span",WPe)):(Pl(),Nl(Ao(yH),{key:0,modelValue:e.isDark,"onUpdate:modelValue":r[0]||(r[0]=t=>e.$emit("toggleDarkMode"))},null,8,["modelValue"]))])),default:ci((()=>[t.value.hideClientButton?Vl("",!0):(Pl(),Nl(Ao(o6),{key:0,buttonSource:"sidebar",integration:t.value._integration,isDevelopment:!1,url:t.value.url},null,8,["integration","url"]))])),_:1})]),!0)])),_:3},8,["title"])]})),_:3})])],8,qPe)):Vl("",!0),ui(Ul("div",XPe,[Ul("div",GPe,[fs(e.$slots,"editor",qn(Ql($.value)),void 0,!0)])],512),[[Fc,t.value.isEditable]]),A.value?(Pl(),Rl(Sl,{key:1},[Ul("main",{"aria-label":`Open API Documentation for ${null==(s=null==(o=Ao(i))?void 0:o.info)?void 0:s.title}`,class:"references-rendered"},[Fl(Ao(kPe),{document:Ao(i),config:t.value,store:e.store},hs({start:ci((()=>[fs(e.$slots,"content-start",qn(Ql($.value)),(()=>["classic"===t.value.layout?(Pl(),Nl(Dye,{key:0},{"dark-mode-toggle":ci((()=>[t.value.hideDarkModeToggle?Vl("",!0):(Pl(),Nl(Ao(vH),{key:0,class:"text-c-2 hover:text-c-1",mode:e.isDark?"dark":"light",style:{transform:"scale(1.4)"},variant:"icon",onClick:r[1]||(r[1]=t=>e.$emit("toggleDarkMode"))},null,8,["mode"]))])),default:ci((()=>{var r;return[e.$slots["document-selector"]?(Pl(),Rl("div",KPe,[fs(e.$slots,"document-selector",{},void 0,!0)])):Vl("",!0),t.value.hideSearch?Vl("",!0):(Pl(),Nl(Ao(FPe),{key:1,class:"t-doc__sidebar max-w-64",searchHotKey:t.value.searchHotKey,hideModels:null==(r=t.value)?void 0:r.hideModels},null,8,["searchHotKey","hideModels"]))]})),_:3})):Vl("",!0)]),!0)])),end:ci((()=>[fs(e.$slots,"content-end",qn(Ql($.value)),void 0,!0)])),_:2},[(null==(l=t.value)?void 0:l.isEditable)?{name:"empty-state",fn:ci((()=>{var n;return[Fl(PPe,{theme:(null==(n=t.value)?void 0:n.theme)||"default",onChangeTheme:r[2]||(r[2]=t=>e.$emit("changeTheme",t)),onLinkSwaggerFile:r[3]||(r[3]=t=>e.$emit("linkSwaggerFile")),onLoadSwaggerFile:r[4]||(r[4]=t=>e.$emit("loadSwaggerFile")),onUpdateContent:r[5]||(r[5]=t=>e.$emit("updateContent",t))},null,8,["theme"])]})),key:"0"}:void 0]),1032,["document","config","store"])],8,YPe),e.$slots.footer?(Pl(),Rl("div",JPe,[fs(e.$slots,"footer",qn(Ql($.value)),void 0,!0)])):Vl("",!0)],64)):Vl("",!0),Fl(Ao(tPe),{configuration:t.value,dereferencedDocument:Ao(i)},null,8,["configuration","dereferencedDocument"])],6),Fl(Ao(uH))],64)}}}),t$e=Aye(e$e,[["__scopeId","data-v-c369ccec"]]),r$e={key:0,class:"document-selector -mb-1 p-3 pb-0"},n$e={class:"group/dropdown-label hover:bg-b-2 text-c-2 flex h-8 w-full cursor-pointer items-center rounded border px-2 py-1.75",type:"button"},a$e={class:"text-c-1 overflow-hidden text-base text-ellipsis"},o$e=Li({__name:"DocumentSelector",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=hc((()=>{var t;return e.options&&(null==(t=e.options)?void 0:t.length)>1})),a=hc((()=>{var t;return(null==(t=e.options)?void 0:t.map(((e,t)=>({id:String(t),label:e.title||e.slug||`API #${t+1}`}))))||[]})),o=hc({get:()=>a.value.find((({id:t})=>t===String(e.modelValue))),set:e=>r("update:modelValue",Number(e.id))});return(e,t)=>n.value?(Pl(),Rl("div",r$e,[Fl(Ao(n8),{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),options:a.value,resize:""},{default:ci((()=>{var e;return[Ul("button",n$e,[Fl(Ao(lQ),{class:"mr-1 size-4 text-current"}),Ul("span",a$e,Gn((null==(e=o.value)?void 0:e.label)||"Select API"),1)])]})),_:1},8,["modelValue","options"])])):Vl("",!0)}}),i$e=new KA,s$e=({configuration:e,initialIndex:t,isIntersectionEnabled:r,hash:n,hashPrefix:a})=>{const o=hc((()=>(e=>e?(Array.isArray(e)?e:[e]).flatMap((e=>{if(qt(e)){const{sources:t,...r}=e;return(null==t?void 0:t.map((e=>({...r,...e}))))??[]}return[e]})).map(((e,t)=>e&&((e,t=0)=>{const r={...e,...e.spec??{}};if((null==r?void 0:r.url)||(null==r?void 0:r.content))return i$e.reset(),r.title?{...r,slug:r.slug||i$e.slug(r.title),title:r.title}:r.slug?{...r,title:r.slug}:{...r,slug:`api-${t+1}`,title:`API #${t+1}`}})(e,t))).filter(_L):[])(e.value))),i=So((()=>{if("undefined"==typeof window)return"number"==typeof t?t:0;const e=new URL(window.location.href).searchParams.get("api");if(e){const t=o.value.findIndex((t=>t.slug===e));if(-1!==t)return t;const r=Number.parseInt(e,10);if(!isNaN(r)&&r>=0&&r<o.value.length)return r}const r=o.value.findIndex((e=>"default"in e&&!0===e.default));return-1!==r?r:"number"==typeof t?t:0})()),s=hc((()=>{var t,r;return e.value&&qt(e.value)?{...e.value,...null==(r=null==(t=e.value)?void 0:t.sources)?void 0:r[i.value],...o.value[i.value]}:{...[e.value].flat()[i.value]??{},...o.value[i.value]}}));return ul(i,(e=>{var t,i,l;if("undefined"==typeof window)return;if(1===o.value.length)return;const c=new URL(window.location.href),u=o.value[e];s.value.pathRouting&&(c.pathname=(null==(t=s.value.pathRouting)?void 0:t.basePath)??"");const d=(null==u?void 0:u.slug)??e.toString();c.searchParams.set("api",d),c.hash="",window.history.replaceState({},"",c.toString()),n.value="",a.value="",r.value=!1,"undefined"!=typeof window&&window.scrollTo({top:0,behavior:"instant"}),null==(l=(i=s.value).onDocumentSelect)||l.call(i)}),{flush:"sync"}),{selectedConfiguration:s,availableDocuments:o,selectedDocumentIndex:i,isIntersectionEnabled:r,hash:n,hashPrefix:a}},l$e=e=>{if(e)return"function"==typeof e?l$e(e()):"string"==typeof e?(e=>{if("string"!=typeof e)return e;const t=nL.parseSafe(e,null);if(t)return t;if(e.length>0&&["{","["].includes(e[0]??""))throw Error("Invalid JSON or YAML");return rL.parseSafe(e,(e=>{throw Error(e)}))})(e):e||void 0},c$e=Li({__name:"ApiReferenceWorkspace",props:{configuration:{},store:{}},setup(e){const t=e,{availableDocuments:r,selectedConfiguration:n,selectedDocumentIndex:a,isIntersectionEnabled:o,hash:i,hashPrefix:s}=s$e({configuration:Io(t,"configuration"),isIntersectionEnabled:So(!1),hash:So(""),hashPrefix:So("")}),l=(e,t)=>fetch(lL(n.value.proxyUrl,e.toString()),t);js(WOe,{isIntersectionEnabled:o,hash:i,hashPrefix:s});const c=Ui("root"),u=t.store;Gi((()=>{const e=GI().getItem(ZI);eke(e)&&!u.workspace["x-scalar-default-client"]&&u.update("x-scalar-default-client",e)}));const d=async e=>{var t;const r=l$e(e.content),a=(({name:e,url:t,document:r}={})=>{if(e)return e;if(t)return t;if(null==r?void 0:r.info){const e=r.info;if(e.title)return e.title}return"default"})({name:e.slug||e.title,url:e.url,document:r});if(!u.workspace.documents[a])return r?await u.addDocument({name:a,document:r}):e.url?await u.addDocument({name:e.slug??"default",url:tL(e.url,{basePath:null==(t=n.value.pathRouting)?void 0:t.basePath}),fetch:l}):void 0;if(r){o.value=!1;const e=wm(r);u.replaceDocument(a,e),u.update("x-scalar-active-document",a),setTimeout((()=>{o.value=!0}),300)}};ul((()=>n.value.url),(e=>e&&d(n.value)),{immediate:!0}),ul((()=>n.value.content),(e=>e&&d(n.value)),{immediate:!0,deep:!0}),rAe(c,"scalar-update-dark-mode",(e=>{u.update("x-scalar-dark-mode",e.detail.value)})),rAe(c,"scalar-update-active-document",(e=>{u.update("x-scalar-active-document",e.detail.value)})),rAe(c,"scalar-update-selected-client",(e=>{u.update("x-scalar-default-client",e.detail),GI().setItem(ZI,e.detail)})),ul((()=>n.value.defaultHttpClient),(e=>{if(e){const{targetKey:t,clientKey:r}=e,n=`${t}/${r}`;eke(n)&&u.update("x-scalar-default-client",n)}}),{immediate:!0});const{toggleColorMode:p,isDarkMode:h}=LL({initialColorMode:n.value.darkMode?"dark":void 0,overrideColorMode:n.value.forceDarkModeState});return ul((()=>n.value.darkMode),(e=>u.update("x-scalar-dark-mode",!!e))),ul((()=>h.value),(e=>u.update("x-scalar-dark-mode",e)),{immediate:!0}),ul((()=>a.value),(e=>{var t;return u.update("x-scalar-active-document",null==(t=r.value[e])?void 0:t.slug)}),{immediate:!0}),n.value.metaData&&function(e){const{title:t,titleTemplate:r,...n}=e;Bu({title:t,titleTemplate:r,_flatMeta:n},{transform(e){const t=pr({...e._flatMeta});return delete e._flatMeta,{...e,meta:t}}})}(n.value.metaData),function(e=null,t={}){const{baseUrl:r="",rel:n="icon",document:a=YL}=t,o=function(...e){if(1!==e.length)return Io(...e);const t=e[0];return"function"==typeof t?ho(Mo((()=>({get:t,set:zL})))):So(t)}(e);ul(o,((e,t)=>{"string"==typeof e&&e!==t&&(e=>{const t=null==a?void 0:a.head.querySelectorAll(`link[rel*="${n}"]`);if(t&&0!==t.length)null==t||t.forEach((t=>t.href=`${r}${e}`));else{const t=null==a?void 0:a.createElement("link");t&&(t.rel=n,t.href=`${r}${e}`,t.type=`image/${e.split(".").pop()}`,null==a||a.head.append(t))}})(e)}),{immediate:!0})}(hc((()=>n.value.favicon))),(e,t)=>{var o;return Pl(),Rl("div",{ref_key:"root",ref:c},[(null==(o=Ao(n))?void 0:o.customCss)?(Pl(),Nl(cs("style"),{key:0},{default:ci((()=>[ql(Gn(Ao(n).customCss),1)])),_:1})):Vl("",!0),Fl(t$e,{configuration:Ao(n),isDark:!!Ao(u).workspace["x-scalar-dark-mode"],store:Ao(u),onToggleDarkMode:t[1]||(t[1]=()=>Ao(p)()),onUpdateContent:t[2]||(t[2]=t=>e.$emit("updateContent",t))},{footer:ci((()=>[fs(e.$slots,"footer")])),"content-end":ci((()=>[fs(e.$slots,"footer")])),"document-selector":ci((()=>[Fl(Ao(o$e),{modelValue:Ao(a),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(a)?a.value=e:null),options:Ao(r)},null,8,["modelValue","options"])])),"sidebar-start":ci((()=>[fs(e.$slots,"sidebar-start")])),_:3},8,["configuration","isDark","store"])],512)}}}),u$e=Li({__name:"ApiReference",props:{configuration:{}},setup(e){const t=(e=>{const t={},r={},n={},a={},o=uo({...null==e?void 0:e.meta,documents:{},get activeDocument(){const e=o[gC]??Object.keys(o.documents)[0]??"";return o.documents[e]}});function i(){return o[gC]??Object.keys(o.documents)[0]??""}async function s(e){const{name:i,meta:s}=e,l=await async function(e){return"url"in e?qI({fetch:e.fetch}).exec(e.url):{ok:!0,data:e.document}}(e);return l.ok?Om(l.data)?void await async function(e){const{name:i,meta:s}=e,l=fR(kI,Bf(e.document).specification);t[i]=wm({...l,...s}),r[i]=wm({...l,...s}),n[i]=e.config??{},a[i]=e.overrides??{},void 0===l[dC]&&(l[dC]=uC(l,e.config??{}).entries),void 0===l[dC]&&await hm(e.document,{treeShake:!1,plugins:[qI()]}),o.documents[i]=FI(vm({...l,...s}),e.overrides)}({...e,document:l.data}):(console.error(`Failed to load document '${i}': response data is not a valid object`),void(o.documents[i]={...s,openapi:"3.1.0",info:{title:`Document '${i}' could not be loaded`,version:"unknown"}})):(console.error(`Failed to fetch document '${i}': request was not successful`),void(o.documents[i]={...s,openapi:"3.1.0",info:{title:`Document '${i}' could not be loaded`,version:"unknown"}}))}const l=new Set;return{get workspace(){return o},update(e,t){if("__proto__"===e||"constructor"===e||"prototype"===e)throw new Error("Invalid key: cannot modify prototype");Object.assign(o,{[e]:t})},updateDocument(e,t,r){const n=o.documents["active"===e?i():e];if(!n)throw"Please select a valid document";Object.assign(n,{[t]:r})},replaceDocument(e,t){const r=o.documents[e];if(!r)return console.error(`Document '${e}' does not exist in the workspace.`);const n=fR(kI,Bf(t).specification);Mm(r,n)},resolve:async e=>{const t=o.activeDocument,r=(n=t,e.reduce(((e,t)=>{if(null!=e)return e[t]}),n));var n;if(Om(r))return hm(r,{root:t,treeShake:!1,plugins:[qI()],urlMap:!1,hooks:{onResolveStart:e=>{e.$status="loading"},onResolveError:e=>{e.$status="error"}},visitedNodes:l});console.error(`Invalid path provided for resolution. Path: [${e.join(", ")}]. Found value of type: ${typeof r}. Expected an object.`)},addDocument:s,get config(){return Rm(Rm(HI,{}),n[i()]??{})},exportDocument:(e,t)=>{const n=r[e];if(n)return"json"===t?JSON.stringify(n):gf.stringify(n)},saveDocument:function(e){const t=r[e],n=o.documents[e];if(!n)return;const a=ym(n);return t&&a?Mm(t,a):void 0},revertDocumentChanges(e){const t=o.documents[e];if(!t)return;const n=r[e],a=ym(t);n&&a&&Mm(a,n)},commitDocument(e){console.warn(`Commit operation for document '${e}' is not implemented yet.`)},exportWorkspace:()=>JSON.stringify({documents:{...Object.fromEntries(Object.entries(o.documents).map((([e,t])=>[e,FI(ym(t),a[e])])))},meta:{},documentConfigs:n,originalDocuments:t,intermediateDocuments:r,overrides:a}),loadWorkspace(e){const i=fR(BI,JSON.parse(e));xm(o.documents,Object.fromEntries(Object.entries(i.documents).map((([e,t])=>[e,vm(t)])))),xm(t,i.originalDocuments),xm(r,i.intermediateDocuments),xm(n,i.documentConfigs),xm(a,i.overrides),xm(o,i.meta)},importWorkspaceFromSpecification:e=>{const{documents:t,overrides:r,info:n,workspace:a,...i}=e;return xm(o,i),Promise.all(Object.entries(t??{}).map((([e,t])=>s({url:t.$ref,name:e,overrides:null==r?void 0:r[e]}))))},rebaseDocument:(e,n,i)=>{const s=fR(kI,Bf(n).specification),l=t[e],c=r[e],u=o.documents[e]?ym(o.documents[e]):void 0;if(!l||!c||!u)return console.error("[ERROR]: Specified document is missing or internal corrupted workspace state");const d=km(l,s),p=km(l,c),h=$m(d,p);if(void 0===i)return h.conflicts;const f=h.diffs.concat(i),m=_m(wm(l),f);r[e]=m,t[e]=s;const g=km(c,m),v=km(c,u),b=$m(g,v),y=b.diffs.concat(b.conflicts.flatMap((e=>e[0]))),O=_m(wm(m),y);o.documents[e]=FI(vm({...O}),a[e])}}})();return"undefined"!=typeof window&&(window.dataDumpWorkspace=()=>t),(e,r)=>(Pl(),Nl(c$e,{store:Ao(t),configuration:e.configuration},null,8,["store","configuration"]))}}),d$e=e=>e.getElementById("api-reference"),p$e=(e,t)=>{const r="scalar-refs",n=uo({configuration:t??e??{}});let a=$u((()=>fc(u$e,n)));if(a.use(Iu()),a.config.idPrefix=r,t){const t="string"==typeof e?document.querySelector(e):e;t?a.mount(t):console.error("Could not find a mount point for API References:",e)}document.addEventListener("scalar:reload-references",(()=>{if(console.warn("scalar:reload-references event has been deprecated, please use the scalarInstance.app.mount method instead."),!n.configuration)return;const t="string"==typeof e?document.querySelector(e):e;t&&(t&&!document.body.contains(t)&&document.body.appendChild(t),a.unmount(),a=$u((()=>fc(u$e,n))),a.use(Iu()),a.config.idPrefix=r,a.mount(t))}),!1);const o=()=>{delete n.configuration,a.unmount()};return document.addEventListener("scalar:destroy-references",(()=>{console.warn("scalar:destroy-references event has been deprecated, please use scalarInstance.destroy instead."),o()}),!1),document.addEventListener("scalar:update-references-config",(e=>{console.warn("scalar:update-references-config event has been deprecated, please use scalarInstance.updateConfiguration instead."),"detail"in e&&Object.assign(n,e.detail)}),!1),{app:a,getConfiguration:()=>n.configuration??{},updateConfiguration:e=>{n.configuration=e},destroy:o}};console.info("@scalar/api-reference@1.34.2"),"object"==typeof window&&(window.Scalar={createApiReference:p$e}),function(e,t){var r,n;const a=e.querySelector("[data-spec]"),o=e.querySelector("[data-spec-url]");(null==t?void 0:t.darkMode)?null==(r=e.body)||r.classList.add("dark-mode"):null==(n=e.body)||n.classList.add("light-mode");const i=((e,t)=>{var r;let n=null;const a=d$e(e);return a?(n=e.createElement("div"),null==(r=null==a?void 0:a.parentNode)||r.insertBefore(n,a)):t&&(n=t),n})(e,a||o);i&&p$e(i,t)}(document,function(e){const t=e.querySelector("[data-spec]"),r=e.querySelector("[data-spec-url]"),n=e.querySelector("#api-reference[data-configuration]"),a=()=>{if(n){const e=n.getAttribute("data-configuration");if(e)return{_integration:"html",...JSON.parse(e.split(""").join('"'))}}return zt.parse({_integration:"html"})},o=()=>{var t,n,o;if(a().url)return a().url;if(null==(t=a().spec)?void 0:t.url)return null==(n=a().spec)?void 0:n.url;const i=d$e(e);if(i){const e=null==(o=i.getAttribute("data-url"))?void 0:o.trim();if(e)return e}if(r){console.warn('[@scalar/api-reference] The [data-spec-url] HTML API is deprecated. Use the new <script id="api-reference" data-url="/scalar.json" /> API instead.');const e=r.getAttribute("data-spec-url");if(e)return e}},i=()=>{var r,n;const a=d$e(e);if(a){const e=null==(r=a.innerHTML)?void 0:r.trim();if(e)return e}if(t){console.warn('[@scalar/api-reference] The [data-spec] HTML API is deprecated. Use the new <script id="api-reference" type="application/json">{"openapi":"3.1.0","info":{"title":"Example"},"paths":{}}<\/script> API instead.');const e=null==(n=t.getAttribute("data-spec"))?void 0:n.trim();if(e)return e}},s=()=>{const t=d$e(e);if(t){const e=t.getAttribute("data-proxy-url");if(e)return e.trim()}};if(r||t||d$e(e)){const e=i()?{content:i()}:{url:o()};return zt.parse({_integration:"html",proxyUrl:s(),...a(),...e})}return zt.parse({_integration:"html"})}(document));const h$e={parse(e){try{return{error:!1,data:JSON.parse(e)}}catch(e){return{error:!0,message:e.message?String(e.message):"Unknown Error"}}}},f$e=["aria-pressed"],m$e={class:"sr-only"},g$e={class:"size-4",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},v$e={"clip-path":"url(#mask)"},b$e=Li({__name:"SidebarToggle",setup(e){const{isSidebarOpen:t,toggleSidebarOpen:r}=Kbe();return(e,n)=>(Pl(),Rl("button",{"aria-pressed":Ao(t),class:"scalar-sidebar-toggle text-c-3 hover:bg-b-2 active:text-c-1 rounded-lg p-2",type:"button",onClick:n[0]||(n[0]=(...e)=>Ao(r)&&Ao(r)(...e))},[Ul("span",m$e,Gn(Ao(t)?"Hide":"Show")+" sidebar",1),(Pl(),Rl("svg",g$e,[n[1]||(n[1]=Ul("defs",null,[Ul("clipPath",{id:"mask"},[Ul("path",{"clip-rule":"evenodd",d:"M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"})])],-1)),Ul("g",v$e,[Ul("path",{class:zn(["transition-transform duration-300",Ao(t)?"translate-x-0":"-translate-x-1/2"]),d:"M1 3.2h8v17.5H1z",fill:"currentColor"},null,2)]),n[2]||(n[2]=Ul("path",{d:"M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},null,-1))]))],8,f$e))}}),y$e=()=>{const{toast:e}=cH(),t=Eye(),r=Obe(),{activeCollection:n,activeWorkspace:a}=t,{collectionMutators:o}=r,i=t=>e(`[useOpenApiWatcher] Changes to the ${t} were not applied`,"error"),s=e=>{"info"===e.path[0]||"security"===e.path[0]?((e,{activeCollection:t},{collectionMutators:r})=>{if(!t.value)return!1;if("number"!=typeof e.path[e.path.length-1]||"CREATE"!==e.type&&"REMOVE"!==e.type){const n=JAe(tve,e);if(!n)return!1;r.edit(t.value.uid,n.path,n.value)}else{const n=JAe(tve,{...e,path:e.path});if(!n)return!1;const a=[...Pve(t.value,n.pathMinusOne)];"CREATE"===e.type?a.push(n.value):"REMOVE"===e.type&&a.pop(),r.edit(t.value.uid,n.pathMinusOne,a)}return!0})(e,t,r)||i("collection"):"components"===e.path[0]&&"securitySchemes"===e.path[1]?tCe(e,t,r)||i("securitySchemes"):"servers"===e.path[0]?((e,{activeCollection:t},{servers:r,serverMutators:n})=>{if(!t.value)return!1;const[,a,...o]=e.path;if(null!=o&&o.length){const i=t.value.servers[a];if(!i)return!1;const s=r[i],l=JAe(ive,{...e,path:o});if(!s||!l)return!1;const c="REMOVE"===e.type&&"variables"===o[o.length-1]?{}:l.value;n.edit(i,l.path,c)}else if("REMOVE"===e.type){if(!t.value.servers[a])return!1;n.delete(t.value.servers[a],t.value.uid)}else if("CREATE"===e.type){const r=hL(e.value,ive,!1);if(!r)return!1;n.add(r,t.value.uid)}return!0})(e,t,r)||i("servers"):"tags"===e.path[0]?((e,{activeCollection:t},{tags:r,tagMutators:n})=>{if(!t.value)return!1;const[,a,...o]=e.path;if(null!=o&&o.length){const i=t.value.tags[a];if(!i)return!1;const s=r[i],l=JAe(Kge,{...e,path:o});if(!s||!l)return!1;n.edit(i,l.path,l.value)}else if("REMOVE"===e.type){const e=t.value.tags[a];if(!e)return!1;const o=r[e];if(!o)return!1;n.delete(o,t.value.uid)}else if("CREATE"===e.type){const r=hL(e.value,Kge,!1);if(!r)return!1;n.add(r,t.value.uid)}return!0})(e,t,r)||i("tags"):"paths"===e.path[0]&&(((e,{activeCollection:t},r)=>{if(!t.value)return!1;const{requests:n,requestMutators:a}=r,[,o,i,...s]=e.path;if("path"===o&&"CHANGE"===e.type)t.value.requests.forEach((t=>{var r;(null==(r=n[t])?void 0:r.path)===e.oldValue&&a.edit(t,"path",e.value)}));else if("method"===i&&"CHANGE"===e.type)t.value.requests.forEach((t=>{var r,i;(null==(r=n[t])?void 0:r.method)===e.oldValue&&(null==(i=n[t])?void 0:i.path)===o&&a.edit(t,"method",e.value)}));else if("CHANGE"!==e.type&&"number"==typeof s.at(-1)){const s=YAe(t.value.requests,n,(e=>e.path===o&&e.method===i)),l=JAe(Ave,{...e,path:e.path.slice(3)});if(!s||!l)return!1;const c=[...Pve(s,l.pathMinusOne)];"CREATE"===e.type?c.push(l.value):"REMOVE"===e.type&&c.pop(),a.edit(s.uid,l.pathMinusOne,c),("parameters"===e.path[3]||"requestBody"===e.path[3])&&eCe(s.uid,r)}else if("CREATE"===e.type){const[r]=Object.entries(e.value??{}),[n,s]=r??[],l=i?e.value:s,c=i||n,u=ive.array().parse(l.servers??[]),{security:d,...p}=l,h={...p,method:rC(c)?c:"get",path:o,parameters:l.parameters??[],servers:u.map((e=>e.uid))};null!=d&&d.length&&(h.security=d.map((e=>{if(Object.keys(e).length){const[t]=Object.keys(e);return t?{[t]:e[t]}:e}return e})));const f=hL(h,Ave,!1);if(!f)return!1;a.add(f,t.value.uid)}else if("REMOVE"===e.type){const e=YAe(t.value.requests,n,(e=>e.path===o&&e.method===i));if(!e)return!1;a.delete(e,t.value.uid)}else if("CHANGE"===e.type){const l=YAe(t.value.requests,n,(e=>e.path===o&&e.method===i)),c=JAe(Ave,{...e,path:s});if(!l||!c)return!1;a.edit(l.uid,c.path,c.value),("parameters"===e.path[3]||"requestBody"===e.path[3])&&eCe(l.uid,r)}return!0})(e,t,r)||i("requests"))},{pause:l,resume:c}=function(e,t){const{start:r}=function(e,t,r={}){const{immediate:n=!0}=r,a=So(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function s(){a.value=!1,i()}function l(...r){i(),a.value=!0,o=setTimeout((()=>{a.value=!1,o=null,e(...r)}),BL(t))}return n&&(a.value=!0,UL&&l()),jL(s),{isPending:ho(a),start:l,stop:s}}(a,t,{immediate:!1}),n=So(!1);async function a(){n.value&&(await e(),r())}function o(){n.value=!1}return jL(o),{isActive:n,pause:o,resume:function(){n.value||(n.value=!0,a())}}}((async()=>{var t,r;const i=null==(t=n.value)?void 0:t.documentUrl;if(!i)return;const u=ibe[i];try{const e=await uL(i,null==(r=a.value)?void 0:r.proxyUrl,!1),t=SL(e);if(o.edit(n.value.uid,"watchModeStatus","WATCHING"),null!=u&&u.hash)if(u.hash&&u.hash!==t){const{schema:r}=await Kve(e),n=XAe(u.schema,r),a=GAe(n);try{a.forEach(s),ibe[i]={hash:t,schema:r}}catch(e){console.error("[useOpenApiWatcher] Error:",e)}}else console.log("[useOpenApiWatcher] No changes detected yet…");else{const{schema:r}=await Kve(e);r&&(ibe[i]={hash:t,schema:r})}}catch(t){console.error("[useOpenApiWatcher] Error:",t),console.info("[useOpenApiWatcher] Pausing watcher for 60 seconds"),l(),o.edit(n.value.uid,"watchModeStatus","ERROR"),e("[useOpenApiWatcher] Unable to fetch the spec file, paused the watcher for 60 seconds","error"),setTimeout((()=>{console.info("[useOpenApiWatcher] Resuming watcher"),c()}),6e4)}}),5e3);ul([()=>{var e;return null==(e=n.value)?void 0:e.documentUrl},()=>{var e;return null==(e=n.value)?void 0:e.watchMode}],(([e,t])=>{e&&t?(console.info(`[useOpenApiWatcher] Watching ${e} …`),c()):n.value&&(l(),o.edit(n.value.uid,"watchModeStatus","IDLE"))}),{immediate:!0})},O$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function w$e(e,t){return Pl(),Rl("svg",O$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m10.812 2.492-8.32 8.32a1.68 1.68 0 0 0 0 2.377l8.32 8.319a1.68 1.68 0 0 0 2.377 0l8.319-8.32a1.68 1.68 0 0 0 0-2.377l-8.32-8.319a1.68 1.68 0 0 0-2.377 0Z"},null,-1)]))}const x$e={render:w$e},k$e=Object.freeze(Object.defineProperty({__proto__:null,default:x$e,render:w$e},Symbol.toStringTag,{value:"Module"})),S$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _$e(e,t){return Pl(),Rl("svg",S$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.711 16.963V7.044a1.37 1.37 0 0 0-.759-1.229l-7.338-3.67a1.37 1.37 0 0 0-1.227 0l-7.34 3.662a1.37 1.37 0 0 0-.758 1.23v9.919a1.37 1.37 0 0 0 .759 1.229l7.34 3.67a1.38 1.38 0 0 0 1.229 0l7.34-3.663a1.37 1.37 0 0 0 .754-1.23Z"},null,-1)]))}const E$e={render:_$e},T$e=Object.freeze(Object.defineProperty({__proto__:null,default:E$e,render:_$e},Symbol.toStringTag,{value:"Module"})),A$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function C$e(e,t){return Pl(),Rl("svg",A$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const P$e={render:C$e},$$e=Object.freeze(Object.defineProperty({__proto__:null,default:P$e,render:C$e},Symbol.toStringTag,{value:"Module"})),D$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function M$e(e,t){return Pl(),Rl("svg",D$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"},null,-1)]))}const R$e={render:M$e},N$e=Object.freeze(Object.defineProperty({__proto__:null,default:R$e,render:M$e},Symbol.toStringTag,{value:"Module"})),I$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function L$e(e,t){return Pl(),Rl("svg",I$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.334 4.82v6.768a10.58 10.58 0 0 0 6.783 9.878l.926.356a2.67 2.67 0 0 0 1.914 0l.926-.356a10.58 10.58 0 0 0 6.783-9.878V4.821a1.32 1.32 0 0 0-.771-1.211A19.3 19.3 0 0 0 12 2a19.3 19.3 0 0 0-7.895 1.61 1.32 1.32 0 0 0-.771 1.21"},null,-1)]))}const j$e={render:L$e},B$e=Object.freeze(Object.defineProperty({__proto__:null,default:j$e,render:L$e},Symbol.toStringTag,{value:"Module"})),U$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function F$e(e,t){return Pl(),Rl("svg",U$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 20h18M5 4h14a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const Q$e={render:F$e},z$e=Object.freeze(Object.defineProperty({__proto__:null,default:Q$e,render:F$e},Symbol.toStringTag,{value:"Module"})),q$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function H$e(e,t){return Pl(),Rl("svg",q$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8m-5 4h5m6-7h2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2"},null,-1)]))}const V$e={render:H$e},Z$e=Object.freeze(Object.defineProperty({__proto__:null,default:V$e,render:H$e},Symbol.toStringTag,{value:"Module"})),W$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function X$e(e,t){return Pl(),Rl("svg",W$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20.522 14.167V6.64a2.13 2.13 0 0 0-2.13-2.13H5.608a2.13 2.13 0 0 0-2.13 2.13v7.526m17.044 0H3.478m17.044 0 1.364 4.778a1.066 1.066 0 0 1-.959 1.545H3.073a1.065 1.065 0 0 1-.959-1.545l1.364-4.778m6.855 3.333h3.334"},null,-1)]))}const G$e={render:X$e},Y$e=Object.freeze(Object.defineProperty({__proto__:null,default:G$e,render:X$e},Symbol.toStringTag,{value:"Module"})),K$e={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function J$e(e,t){return Pl(),Rl("svg",K$e,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.333 2h7.334s2.666 0 2.666 2.667v14.666s0 2.667-2.666 2.667H8.333s-2.666 0-2.666-2.667V4.667S5.667 2 8.333 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9.186 4.563h1.246s.889 0 .889.889V9.88s0 .889-.889.889H9.186s-.89 0-.89-.89V5.453s0-.89.89-.89"},null,-1)]))}const eDe={render:J$e},tDe=Object.freeze(Object.defineProperty({__proto__:null,default:eDe,render:J$e},Symbol.toStringTag,{value:"Module"})),rDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nDe(e,t){return Pl(),Rl("svg",rDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 2H8.333a2.667 2.667 0 0 0-2.666 2.667v14.666A2.667 2.667 0 0 0 8.333 22h7.334a2.667 2.667 0 0 0 2.666-2.667V4.667A2.667 2.667 0 0 0 15.667 2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const aDe={render:nDe},oDe=Object.freeze(Object.defineProperty({__proto__:null,default:aDe,render:nDe},Symbol.toStringTag,{value:"Module"})),iDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sDe(e,t){return Pl(),Rl("svg",iDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 2H8.333a2.667 2.667 0 0 0-2.666 2.667v14.666A2.667 2.667 0 0 0 8.333 22h7.334a2.667 2.667 0 0 0 2.666-2.667V4.667A2.667 2.667 0 0 0 15.667 2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m3 2a1 1 0 1 1 2 0 1 1 0 0 1-2 0M8 9a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const lDe={render:sDe},cDe=Object.freeze(Object.defineProperty({__proto__:null,default:lDe,render:sDe},Symbol.toStringTag,{value:"Module"})),uDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dDe(e,t){return Pl(),Rl("svg",uDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.198 2h9.603s1.74 0 1.74 1.74v16.52s0 1.74-1.74 1.74H7.198s-1.74 0-1.74-1.74V3.74S5.459 2 7.199 2Z"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14.684 4.935H9.315a.94.94 0 0 1-.932-.8L8.067 2h7.865l-.315 2.133a.94.94 0 0 1-.933.802"},null,-1)]))}const pDe={render:dDe},hDe=Object.freeze(Object.defineProperty({__proto__:null,default:pDe,render:dDe},Symbol.toStringTag,{value:"Module"})),fDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mDe(e,t){return Pl(),Rl("svg",fDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 11V7a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h6m1.034-7.319a.499.499 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z"},null,-1)]))}const gDe={render:mDe},vDe=Object.freeze(Object.defineProperty({__proto__:null,default:gDe,render:mDe},Symbol.toStringTag,{value:"Module"})),bDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yDe(e,t){return Pl(),Rl("svg",bDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15.667 22H8.333a2.667 2.667 0 0 1-2.666-2.667V4.667A2.667 2.667 0 0 1 8.333 2h7.334a2.667 2.667 0 0 1 2.666 2.667v14.666A2.667 2.667 0 0 1 15.667 22"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 19a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const ODe={render:yDe},wDe=Object.freeze(Object.defineProperty({__proto__:null,default:ODe,render:yDe},Symbol.toStringTag,{value:"Module"})),xDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kDe(e,t){return Pl(),Rl("svg",xDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10 7.5v2.813M14 7.5v2.813M14 7.5h2.5a1.125 1.125 0 0 1 1.125 1.125v5.062a1.125 1.125 0 0 1-1.125 1.125h-.543c-.373 0-.73.149-.994.412l-.864.864a1.4 1.4 0 0 1-.994.412h-2.21c-.373 0-.73-.148-.994-.412l-.864-.864a1.4 1.4 0 0 0-.994-.412H7.5a1.125 1.125 0 0 1-1.125-1.125V8.625A1.125 1.125 0 0 1 7.5 7.5zM4.2 3h15.6S21 3 21 4.2v15.6s0 1.2-1.2 1.2H4.2S3 21 3 19.8V4.2S3 3 4.2 3"},null,-1)]))}const SDe={render:kDe},_De=Object.freeze(Object.defineProperty({__proto__:null,default:SDe,render:kDe},Symbol.toStringTag,{value:"Module"})),EDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TDe(e,t){return Pl(),Rl("svg",EDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M22 12c0 5.523-4.477 10-10 10m10-10c0-5.523-4.477-10-10-10m10 10H2m10 10C6.477 22 2 17.523 2 12m10 10a14.5 14.5 0 0 1 0-20m0 20a14.5 14.5 0 0 0 0-20M2 12C2 6.477 6.477 2 12 2"},null,-1)]))}const ADe={render:TDe},CDe=Object.freeze(Object.defineProperty({__proto__:null,default:ADe,render:TDe},Symbol.toStringTag,{value:"Module"})),PDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function $De(e,t){return Pl(),Rl("svg",PDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 8.82a15 15 0 0 1 20 0M5 12.859a10 10 0 0 1 14 0m-10.5 3.57a5 5 0 0 1 7 0"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const DDe={render:$De},MDe=Object.freeze(Object.defineProperty({__proto__:null,default:DDe,render:$De},Symbol.toStringTag,{value:"Module"})),RDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NDe(e,t){return Pl(),Rl("svg",RDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M14.7 10.2v3.6m2.556-6.147a3.6 3.6 0 0 0-5.094 0m7.632-2.547a7.2 7.2 0 0 0-10.179 0M4.8 13.8h14.4a1.8 1.8 0 0 1 1.8 1.8v3.6a1.8 1.8 0 0 1-1.8 1.8H4.8A1.8 1.8 0 0 1 3 19.2v-3.6a1.8 1.8 0 0 1 1.8-1.8"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M6 17.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m4 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const IDe={render:NDe},LDe=Object.freeze(Object.defineProperty({__proto__:null,default:IDe,render:NDe},Symbol.toStringTag,{value:"Module"})),jDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BDe(e,t){return Pl(),Rl("svg",jDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8.5 2h7m-5.3 1v6.774a1.8 1.8 0 0 1-.19.807l-4.562 9.114A.9.9 0 0 0 6.258 21h11.484a.9.9 0 0 0 .81-1.305l-4.562-9.114a1.8 1.8 0 0 1-.19-.807V3M7.5 15.6h9"},null,-1)]))}const UDe={render:BDe},FDe=Object.freeze(Object.defineProperty({__proto__:null,default:UDe,render:BDe},Symbol.toStringTag,{value:"Module"})),QDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zDe(e,t){return Pl(),Rl("svg",QDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.802 13.8a.899.899 0 0 1-.702-1.467l8.908-9.178a.45.45 0 0 1 .774.414l-1.728 5.417A.9.9 0 0 0 12.9 10.2h6.298a.899.899 0 0 1 .702 1.467l-8.908 9.178a.45.45 0 0 1-.774-.414l1.728-5.417A.9.9 0 0 0 11.1 13.8z"},null,-1)]))}const qDe={render:zDe},HDe=Object.freeze(Object.defineProperty({__proto__:null,default:qDe,render:zDe},Symbol.toStringTag,{value:"Module"})),VDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZDe(e,t){return Pl(),Rl("svg",VDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.286a2.5 2.5 0 1 1 2.5 2.5m-2.5-2.5a2.5 2.5 0 1 0-2.5 2.5m2.5-2.5v.833m2.5 1.667a2.5 2.5 0 1 1-2.5 2.5m2.5-2.5h-.833m-4.167 0a2.5 2.5 0 1 0 2.5 2.5m-2.5-2.5h.833M12 10.119c-.92 0-1.667.746-1.667 1.667M12 10.119c.92 0 1.667.746 1.667 1.667M12 14.286v-.834m0 .834V20.5m-1.667-8.714c0 .92.746 1.666 1.667 1.666m1.667-1.666c0 .92-.746 1.666-1.667 1.666M4.2 3h15.6S21 3 21 4.2v15.6s0 1.2-1.2 1.2H4.2S3 21 3 19.8V4.2S3 3 4.2 3"},null,-1)]))}const WDe={render:ZDe},XDe=Object.freeze(Object.defineProperty({__proto__:null,default:WDe,render:ZDe},Symbol.toStringTag,{value:"Module"})),GDe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YDe(e,t){return Pl(),Rl("svg",GDe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m10.812 2.492-8.32 8.32a1.68 1.68 0 0 0 0 2.377l8.32 8.319a1.68 1.68 0 0 0 2.377 0l8.319-8.32a1.68 1.68 0 0 0 0-2.377l-8.32-8.319a1.68 1.68 0 0 0-2.377 0ZM12 8v4"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const KDe={render:YDe},JDe=Object.freeze(Object.defineProperty({__proto__:null,default:KDe,render:YDe},Symbol.toStringTag,{value:"Module"})),eMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tMe(e,t){return Pl(),Rl("svg",eMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.57v4.296m7.926 7.516H4.074c-.798 0-1.318-.84-.96-1.554L11.04 3.976a1.074 1.074 0 0 1 1.92 0l7.927 15.852a1.074 1.074 0 0 1-.96 1.554Z"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 18a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const rMe={render:tMe},nMe=Object.freeze(Object.defineProperty({__proto__:null,default:rMe,render:tMe},Symbol.toStringTag,{value:"Module"})),aMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oMe(e,t){return Pl(),Rl("svg",aMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",d:"M12 17v-6 0a.5.5 0 0 0-.5-.5l-.5.001h-1M12 17h-2m2 0h2"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M10.75 7.5a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const iMe={render:oMe},sMe=Object.freeze(Object.defineProperty({__proto__:null,default:iMe,render:oMe},Symbol.toStringTag,{value:"Module"})),lMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cMe(e,t){return Pl(),Rl("svg",lMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.999 21.002H19M11.56 3.264a.5.5 0 0 1 .877 0l2.953 5.605a1 1 0 0 0 1.516.294L21.185 5.5a.5.5 0 0 1 .798.519l-2.835 10.248a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.018 6.019a.5.5 0 0 1 .798-.52l4.277 3.665a1 1 0 0 0 1.516-.294l2.953-5.606Z"},null,-1)]))}const uMe={render:cMe},dMe=Object.freeze(Object.defineProperty({__proto__:null,default:uMe,render:cMe},Symbol.toStringTag,{value:"Module"})),pMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hMe(e,t){return Pl(),Rl("svg",pMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.527 3.525a1.8 1.8 0 0 0-1.273-.527H5.798a1.8 1.8 0 0 0-1.8 1.8v6.456c0 .478.19.936.527 1.273l7.836 7.836a2.184 2.184 0 0 0 3.078 0l5.924-5.924a2.184 2.184 0 0 0 0-3.078z"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8 8a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const fMe={render:hMe},mMe=Object.freeze(Object.defineProperty({__proto__:null,default:fMe,render:hMe},Symbol.toStringTag,{value:"Module"})),gMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vMe(e,t){return Pl(),Rl("svg",gMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"},null,-1)]))}const bMe={render:vMe},yMe=Object.freeze(Object.defineProperty({__proto__:null,default:bMe,render:vMe},Symbol.toStringTag,{value:"Module"})),OMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wMe(e,t){return Pl(),Rl("svg",OMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 14h1v4m4-16v4M3 10h18M8 2v4M5 4h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const xMe={render:wMe},kMe=Object.freeze(Object.defineProperty({__proto__:null,default:xMe,render:wMe},Symbol.toStringTag,{value:"Module"})),SMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Me(e,t){return Pl(),Rl("svg",SMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.333 5.01c1.39-.224 2.796-.34 4.205-.346.121 0 .238.044.329.125.085.084.133.2.133.32v14a.453.453 0 0 1-.444.444C14.186 19.66 12 21.997 12 21.997m0 0V7.091m0 14.906s-2.187-2.337-9.556-2.444A.453.453 0 0 1 2 19.109v-14c0-.12.048-.236.133-.32a.5.5 0 0 1 .33-.125C9.822 4.762 12 7.091 12 7.091m0 0a5.5 5.5 0 0 1 1.458-3.05 6.9 6.9 0 0 1 3.235-2.017.53.53 0 0 1 .436.053.41.41 0 0 1 .204.356V16.31a7.27 7.27 0 0 0-3.875 2.186A5.33 5.33 0 0 0 12 21.562"},null,-1)]))}const EMe={render:_Me},TMe=Object.freeze(Object.defineProperty({__proto__:null,default:EMe,render:_Me},Symbol.toStringTag,{value:"Module"})),AMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CMe(e,t){return Pl(),Rl("svg",AMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 3v8l3-3 3 3V3M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2"},null,-1)]))}const PMe={render:CMe},$Me=Object.freeze(Object.defineProperty({__proto__:null,default:PMe,render:CMe},Symbol.toStringTag,{value:"Module"})),DMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function MMe(e,t){return Pl(),Rl("svg",DMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 3v4a2 2 0 0 0 2 2h4m-5-6H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8z"},null,-1)]))}const RMe={render:MMe},NMe=Object.freeze(Object.defineProperty({__proto__:null,default:RMe,render:MMe},Symbol.toStringTag,{value:"Module"})),IMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LMe(e,t){return Pl(),Rl("svg",IMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13 6h6a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.93a2 2 0 0 1 1.67.9l.81 1.2a2 2 0 0 0 1.69.9"},null,-1)]))}const jMe={render:LMe},BMe=Object.freeze(Object.defineProperty({__proto__:null,default:jMe,render:LMe},Symbol.toStringTag,{value:"Module"})),UMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FMe(e,t){return Pl(),Rl("svg",UMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2m1-2h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1"},null,-1)]))}const QMe={render:FMe},zMe=Object.freeze(Object.defineProperty({__proto__:null,default:QMe,render:FMe},Symbol.toStringTag,{value:"Module"})),qMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HMe(e,t){return Pl(),Rl("svg",qMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m20.72 11.12-8.51 8.51a5.559 5.559 0 1 1-7.86-7.861l7.935-7.936a3.71 3.71 0 0 1 5.25 5.241L9.581 17.01a1.853 1.853 0 1 1-2.62-2.62l7.861-7.853"},null,-1)]))}const VMe={render:HMe},ZMe=Object.freeze(Object.defineProperty({__proto__:null,default:VMe,render:HMe},Symbol.toStringTag,{value:"Module"})),WMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XMe(e,t){return Pl(),Rl("svg",WMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M10.2 16.8a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0m0 0V5.7a2.1 2.1 0 0 0-4.125-.56L3.13 15.844m10.67.956a3.6 3.6 0 1 0 7.2 0 3.6 3.6 0 0 0-7.2 0m0 0V5.7a2.1 2.1 0 0 1 4.125-.56l2.945 10.7M10.2 9.6h3.6V12h-3.6z"},null,-1)]))}const GMe={render:XMe},YMe=Object.freeze(Object.defineProperty({__proto__:null,default:GMe,render:XMe},Symbol.toStringTag,{value:"Module"})),KMe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JMe(e,t){return Pl(),Rl("svg",KMe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 6V4m2 2.983 1.414-1.415M18 9h2m-3 2 1.2 1.2M4 20 15 9m-1.8-1.8L12 6"},null,-1)]))}const eRe={render:JMe},tRe=Object.freeze(Object.defineProperty({__proto__:null,default:eRe,render:JMe},Symbol.toStringTag,{value:"Module"})),rRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nRe(e,t){return Pl(),Rl("svg",rRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.8 15.6v-1.8A1.8 1.8 0 0 0 12 12H4.8A1.8 1.8 0 0 1 3 10.2V7.5a1.8 1.8 0 0 1 1.8-1.8h1.8M19.2 3H8.4a1.8 1.8 0 0 0-1.8 1.8v1.8a1.8 1.8 0 0 0 1.8 1.8h10.8A1.8 1.8 0 0 0 21 6.6V4.8A1.8 1.8 0 0 0 19.2 3m-4.5 12.6h-1.8a.9.9 0 0 0-.9.9v3.6a.9.9 0 0 0 .9.9h1.8a.9.9 0 0 0 .9-.9v-3.6a.9.9 0 0 0-.9-.9"},null,-1)]))}const aRe={render:nRe},oRe=Object.freeze(Object.defineProperty({__proto__:null,default:aRe,render:nRe},Symbol.toStringTag,{value:"Module"})),iRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sRe(e,t){return Pl(),Rl("svg",iRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16.494 3.913a2.56 2.56 0 0 1 1.855-.905 2.58 2.58 0 0 1 1.923.749 2.54 2.54 0 0 1 .741 1.915 2.53 2.53 0 0 1-.924 1.835l-12.13 12.13-4.943 1.348 1.348-4.942z"},null,-1)]))}const lRe={render:sRe},cRe=Object.freeze(Object.defineProperty({__proto__:null,default:lRe,render:sRe},Symbol.toStringTag,{value:"Module"})),uRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dRe(e,t){return Pl(),Rl("svg",uRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526M18 8A6 6 0 1 1 6 8a6 6 0 0 1 12 0"},null,-1)]))}const pRe={render:dRe},hRe=Object.freeze(Object.defineProperty({__proto__:null,default:pRe,render:dRe},Symbol.toStringTag,{value:"Module"})),fRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mRe(e,t){return Pl(),Rl("svg",fRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.8 14.7s.9-.9 3.6-.9 4.5 1.8 7.2 1.8 3.6-.9 3.6-.9V3.9s-.9.9-3.6.9S11.1 3 8.4 3s-3.6.9-3.6.9zm0 0V21"},null,-1)]))}const gRe={render:mRe},vRe=Object.freeze(Object.defineProperty({__proto__:null,default:gRe,render:mRe},Symbol.toStringTag,{value:"Module"})),bRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yRe(e,t){return Pl(),Rl("svg",bRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7z"},null,-1)]))}const ORe={render:yRe},wRe=Object.freeze(Object.defineProperty({__proto__:null,default:ORe,render:yRe},Symbol.toStringTag,{value:"Module"})),xRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kRe(e,t){return Pl(),Rl("svg",xRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"},null,-1)]))}const SRe={render:kRe},_Re=Object.freeze(Object.defineProperty({__proto__:null,default:SRe,render:kRe},Symbol.toStringTag,{value:"Module"})),ERe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TRe(e,t){return Pl(),Rl("svg",ERe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 3v4M2 5h4m14 12v2m-1-1h2m-6.937-2.5a2 2 0 0 1 1.437-1.437l6.135-1.582a.5.5 0 0 0 0-.962L15.5 9.936A2 2 0 0 1 14.063 8.5l-1.582-6.135a.5.5 0 0 0-.963 0L9.937 8.5A2 2 0 0 1 8.5 9.937l-6.135 1.581a.5.5 0 0 0 0 .964L8.5 14.063A2 2 0 0 1 9.937 15.5l1.582 6.135a.5.5 0 0 0 .963 0z"},null,-1)]))}const ARe={render:TRe},CRe=Object.freeze(Object.defineProperty({__proto__:null,default:ARe,render:TRe},Symbol.toStringTag,{value:"Module"})),PRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function $Re(e,t){return Pl(),Rl("svg",PRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7 11v4a2 2 0 0 0 2 2h4"},null,-1),Ul("circle",{cx:"7",cy:"7",r:"3.25",stroke:"currentColor"},null,-1),Ul("circle",{cx:"17",cy:"17",r:"3.25",stroke:"currentColor"},null,-1)]))}const DRe={render:$Re},MRe=Object.freeze(Object.defineProperty({__proto__:null,default:DRe,render:$Re},Symbol.toStringTag,{value:"Module"})),RRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NRe(e,t){return Pl(),Rl("svg",RRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 21v-6a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v6M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},null,-1)]))}const IRe={render:NRe},LRe=Object.freeze(Object.defineProperty({__proto__:null,default:IRe,render:NRe},Symbol.toStringTag,{value:"Module"})),jRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BRe(e,t){return Pl(),Rl("svg",jRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M13.414 17.657 12 19.07A5 5 0 0 1 4.929 12l1.414-1.414m4.243-4.243L12 4.93A5 5 0 0 1 19.071 12l-1.414 1.414m-8.485 1.414 5.656-5.656"},null,-1)]))}const URe={render:BRe},FRe=Object.freeze(Object.defineProperty({__proto__:null,default:URe,render:BRe},Symbol.toStringTag,{value:"Module"})),QRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zRe(e,t){return Pl(),Rl("svg",QRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0"},null,-1)]))}const qRe={render:zRe},HRe=Object.freeze(Object.defineProperty({__proto__:null,default:qRe,render:zRe},Symbol.toStringTag,{value:"Module"})),VRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZRe(e,t){return Pl(),Rl("svg",VRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const WRe={render:ZRe},XRe=Object.freeze(Object.defineProperty({__proto__:null,default:WRe,render:ZRe},Symbol.toStringTag,{value:"Module"})),GRe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YRe(e,t){return Pl(),Rl("svg",GRe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M5.778 10h12.444c.982 0 1.778.895 1.778 2v8c0 1.105-.796 2-1.778 2H5.778C4.796 22 4 21.105 4 20v-8c0-1.105.796-2 1.778-2M7 10V7a5 5 0 1 1 10 0v3"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11 16a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const KRe={render:YRe},JRe=Object.freeze(Object.defineProperty({__proto__:null,default:KRe,render:YRe},Symbol.toStringTag,{value:"Module"})),eNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tNe(e,t){return Pl(),Rl("svg",eNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 21a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11m3.9-9.4L19 4m-3.5 3.5 3 3M22 7l-3-3"},null,-1)]))}const rNe={render:tNe},nNe=Object.freeze(Object.defineProperty({__proto__:null,default:rNe,render:tNe},Symbol.toStringTag,{value:"Module"})),aNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oNe(e,t){return Pl(),Rl("svg",aNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16m10 2-4.35-4.35"},null,-1)]))}const iNe={render:oNe},sNe=Object.freeze(Object.defineProperty({__proto__:null,default:iNe,render:oNe},Symbol.toStringTag,{value:"Module"})),lNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cNe(e,t){return Pl(),Rl("svg",lNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M2 11.78v.44a2 2 0 0 0 2 2h.18a2 2 0 0 1 1.73 1l.25.43a2 2 0 0 1 0 2l-.08.15a2 2 0 0 0 .73 2.73l.38.22a2 2 0 0 0 2.73-.73l.1-.15a2 2 0 0 1 1.72-1h.51a2 2 0 0 1 1.74 1l.09.15a2 2 0 0 0 2.73.73l.38-.22a2 2 0 0 0 .73-2.73l-.08-.15a2 2 0 0 1 0-2l.25-.43a2 2 0 0 1 1.73-1H20a2 2 0 0 0 2-2v-.44a2 2 0 0 0-2-2h-.18a2 2 0 0 1-1.73-1l-.25-.43a2 2 0 0 1 0-2l.08-.15a2 2 0 0 0-.73-2.73l-.39-.22a2 2 0 0 0-2.73.73l-.08.15a2 2 0 0 1-1.74 1h-.5a2 2 0 0 1-1.74-1l-.09-.15a2 2 0 0 0-2.73-.73l-.38.22a2 2 0 0 0-.73 2.73l.08.15a2 2 0 0 1 0 2l-.25.43a2 2 0 0 1-1.73 1H4a2 2 0 0 0-2 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0"},null,-1)]))}const uNe={render:cNe},dNe=Object.freeze(Object.defineProperty({__proto__:null,default:uNe,render:cNe},Symbol.toStringTag,{value:"Module"})),pNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hNe(e,t){return Pl(),Rl("svg",pNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 9a5 5 0 0 1 0 6m3.364 3.364a9 9 0 0 0 0-12.728M11 4.702a.706.706 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"},null,-1)]))}const fNe={render:hNe},mNe=Object.freeze(Object.defineProperty({__proto__:null,default:fNe,render:hNe},Symbol.toStringTag,{value:"Module"})),gNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vNe(e,t){return Pl(),Rl("svg",gNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.566 18.582v2.778s3.367-.611 4.445-2.222c.58-.87.599-2.196.465-3.334m-10.698-3.01H3s.611-3.367 2.222-4.445c.87-.58 2.196-.6 3.334-.465m-.82 8.883-1.571-1.571-.625-.625a20.2 20.2 0 0 1 1.837-4.667 10.76 10.76 0 0 1 5.199-4.825c2.26-1.003 4.914-1.314 7.712-.903.486 3.46.349 9.4-5.665 12.92a20.6 20.6 0 0 1-4.73 1.828l-.586-.585zm0 0L6.165 18.34"},null,-1)]))}const bNe={render:vNe},yNe=Object.freeze(Object.defineProperty({__proto__:null,default:bNe,render:vNe},Symbol.toStringTag,{value:"Module"})),ONe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wNe(e,t){return Pl(),Rl("svg",ONe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m9 15 3-3m5 1a6 6 0 0 0-6-6m10 6A10 10 0 0 0 11 3m-7 7a7.31 7.31 0 0 0 10 10z"},null,-1)]))}const xNe={render:wNe},kNe=Object.freeze(Object.defineProperty({__proto__:null,default:xNe,render:wNe},Symbol.toStringTag,{value:"Module"})),SNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Ne(e,t){return Pl(),Rl("svg",SNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4 3v4M2 5h4m14 12v2m-1-1h2m-10.582-5.578L5.368 13.5a.763.763 0 0 1-.906-.574l-.439-1.757a.875.875 0 0 1 .565-1.034l11.036-3.629m-2.35 5.307 3.541-.755m-1.546 8.317L12.73 14.3M7.225 9.268l.91 3.642m.596 6.465 2.537-5.075m4.397-7.233a1.635 1.635 0 0 1 1.19-1.982l.89-.222a.817.817 0 0 1 .99.594l1.239 4.953a.82.82 0 0 1-.594.99l-.891.223a1.634 1.634 0 0 1-1.982-1.189zm-2.03 5.77a1.635 1.635 0 1 1-3.27 0 1.635 1.635 0 0 1 3.27 0"},null,-1)]))}const ENe={render:_Ne},TNe=Object.freeze(Object.defineProperty({__proto__:null,default:ENe,render:_Ne},Symbol.toStringTag,{value:"Module"})),ANe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CNe(e,t){return Pl(),Rl("svg",ANe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m7.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M20 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0m12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0"},null,-1)]))}const PNe={render:CNe},$Ne=Object.freeze(Object.defineProperty({__proto__:null,default:PNe,render:CNe},Symbol.toStringTag,{value:"Module"})),DNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function MNe(e,t){return Pl(),Rl("svg",DNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M18 12h-1.488a1.2 1.2 0 0 0-1.158.876l-1.41 5.016a.15.15 0 0 1-.288 0L10.344 6.108a.15.15 0 0 0-.288 0l-1.41 5.016A1.2 1.2 0 0 1 7.494 12H6"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2"},null,-1)]))}const RNe={render:MNe},NNe=Object.freeze(Object.defineProperty({__proto__:null,default:RNe,render:MNe},Symbol.toStringTag,{value:"Module"})),INe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function LNe(e,t){return Pl(),Rl("svg",INe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6l4 2M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const jNe={render:LNe},BNe=Object.freeze(Object.defineProperty({__proto__:null,default:jNe,render:LNe},Symbol.toStringTag,{value:"Module"})),UNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function FNe(e,t){return Pl(),Rl("svg",UNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.263 5.71v.181c0 .558-.222 1.094-.617 1.489l-3.157 3.158a2.105 2.105 0 0 1-2.978 0L7.353 7.38a2.1 2.1 0 0 1-.616-1.489v-.18m10.526 0V3.605A2.105 2.105 0 0 0 15.158 1.5H8.842a2.105 2.105 0 0 0-2.105 2.105v2.106m10.526 0H6.737m0 15.789h10.526m-10.526 0 3.948-3.158a2.105 2.105 0 0 1 2.63 0l3.948 3.158m-10.526 0v-4.391c0-.559.222-1.094.616-1.489l3.158-3.158a2.105 2.105 0 0 1 2.978 0l3.157 3.158c.395.395.617.93.617 1.489V21.5"},null,-1)]))}const QNe={render:FNe},zNe=Object.freeze(Object.defineProperty({__proto__:null,default:QNe,render:FNe},Symbol.toStringTag,{value:"Module"})),qNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function HNe(e,t){return Pl(),Rl("svg",qNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2m20 0v-2a4 4 0 0 0-3-3.87m-3-12a4 4 0 0 1 0 7.75M13 7a4 4 0 1 1-8 0 4 4 0 0 1 8 0"},null,-1)]))}const VNe={render:HNe},ZNe=Object.freeze(Object.defineProperty({__proto__:null,default:VNe,render:HNe},Symbol.toStringTag,{value:"Module"})),WNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function XNe(e,t){return Pl(),Rl("svg",WNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2a7.071 7.071 0 1 0 10 10M12 2a10 10 0 0 0-7.071 17.071M12 2a10 10 0 0 0-7.071 17.071M22 12a10 10 0 0 1-17.071 7.071M22 12a10 10 0 0 1-17.071 7.071"},null,-1)]))}const GNe={render:XNe},YNe=Object.freeze(Object.defineProperty({__proto__:null,default:GNe,render:XNe},Symbol.toStringTag,{value:"Module"})),KNe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function JNe(e,t){return Pl(),Rl("svg",KNe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},null,-1)]))}const eIe={render:JNe},tIe=Object.freeze(Object.defineProperty({__proto__:null,default:eIe,render:JNe},Symbol.toStringTag,{value:"Module"})),rIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function nIe(e,t){return Pl(),Rl("svg",rIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.023 12.976a1.8 1.8 0 0 0-.603-.397L3.284 9.718a.45.45 0 0 1 .021-.843l17.098-5.85a.446.446 0 0 1 .572.572l-5.85 17.098a.45.45 0 0 1-.843.021l-2.861-7.138a1.8 1.8 0 0 0-.398-.601Zm0 0 9.845-9.843"},null,-1)]))}const aIe={render:nIe},oIe=Object.freeze(Object.defineProperty({__proto__:null,default:aIe,render:nIe},Symbol.toStringTag,{value:"Module"})),iIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function sIe(e,t){return Pl(),Rl("svg",iIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7m2-3h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2"},null,-1)]))}const lIe={render:sIe},cIe=Object.freeze(Object.defineProperty({__proto__:null,default:lIe,render:sIe},Symbol.toStringTag,{value:"Module"})),uIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function dIe(e,t){return Pl(),Rl("svg",uIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h5M9 8h5m-9 9V5a2 2 0 0 1 2-2h13m0 0a2 2 0 0 0-2 2v14a2 2 0 0 1-2 2m4-18a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1h-3m-2 13H4a2 2 0 0 1-2-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1a2 2 0 0 0 2 2"},null,-1)]))}const pIe={render:dIe},hIe=Object.freeze(Object.defineProperty({__proto__:null,default:pIe,render:dIe},Symbol.toStringTag,{value:"Module"})),fIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function mIe(e,t){return Pl(),Rl("svg",fIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 2v20m5-17H9.5a3.5 3.5 0 1 0 0 7h5a3.5 3.5 0 1 1 0 7H6"},null,-1)]))}const gIe={render:mIe},vIe=Object.freeze(Object.defineProperty({__proto__:null,default:gIe,render:mIe},Symbol.toStringTag,{value:"Module"})),bIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function yIe(e,t){return Pl(),Rl("svg",bIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m22 7-8.5 8.5-5-5L2 17M22 7h-6m6 0v6"},null,-1)]))}const OIe={render:yIe},wIe=Object.freeze(Object.defineProperty({__proto__:null,default:OIe,render:yIe},Symbol.toStringTag,{value:"Module"})),xIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function kIe(e,t){return Pl(),Rl("svg",xIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M8 17v-7m4 7v-4m4 4V8M5 21h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2"},null,-1)]))}const SIe={render:kIe},_Ie=Object.freeze(Object.defineProperty({__proto__:null,default:SIe,render:kIe},Symbol.toStringTag,{value:"Module"})),EIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function TIe(e,t){return Pl(),Rl("svg",EIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3.011 20.99c1.124-.887 2.04-1.775 3.506-1.977 1.268 0 2.49.481 3.416 1.348a3.595 3.595 0 0 0 5.561-2.115 3.146 3.146 0 0 0 3.317-4.599 3.148 3.148 0 0 0 1.234-5.241 3.145 3.145 0 1 0-4.45-4.45 3.147 3.147 0 0 0-5.24 1.234 3.146 3.146 0 0 0-4.6 3.317 3.596 3.596 0 0 0-2.11 5.533c.714 1.035 1.532 2.197 1.344 3.444-.247 1.477-1.066 2.366-1.978 3.506m0 0L16.494 7.507"},null,-1)]))}const AIe={render:TIe},CIe=Object.freeze(Object.defineProperty({__proto__:null,default:AIe,render:TIe},Symbol.toStringTag,{value:"Module"})),PIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function $Ie(e,t){return Pl(),Rl("svg",PIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M21.038 16.44v2.71a1.81 1.81 0 0 1-1.97 1.807 17.9 17.9 0 0 1-7.794-2.773 17.6 17.6 0 0 1-5.42-5.42 17.9 17.9 0 0 1-2.773-7.83 1.806 1.806 0 0 1 1.798-1.97h2.71a1.806 1.806 0 0 1 1.806 1.554 11.6 11.6 0 0 0 .632 2.538 1.8 1.8 0 0 1-.406 1.906l-1.147 1.147a14.45 14.45 0 0 0 5.42 5.42l1.146-1.148a1.81 1.81 0 0 1 1.906-.406c.82.305 1.671.518 2.538.632a1.807 1.807 0 0 1 1.554 1.833"},null,-1)]))}const DIe={render:$Ie},MIe=Object.freeze(Object.defineProperty({__proto__:null,default:DIe,render:$Ie},Symbol.toStringTag,{value:"Module"})),RIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function NIe(e,t){return Pl(),Rl("svg",RIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m8.21 2.5 1.782 1.781m4.016 0L15.79 2.5M9.158 7.36v-.947a2.845 2.845 0 1 1 5.684 0v.947M12 19.553c-3.126 0-5.684-2.558-5.684-5.685v-2.842a3.79 3.79 0 0 1 3.79-3.79h3.789a3.79 3.79 0 0 1 3.79 3.79v2.842c0 3.127-2.559 5.685-5.685 5.685m0 0v-8.527M6.818 9.132c-1.829-.19-3.344-1.8-3.344-3.79m2.842 7.58h-3.79m.948 7.578c0-1.99 1.61-3.695 3.6-3.79M20.498 5.342c0 1.99-1.516 3.6-3.316 3.79m4.292 3.79h-3.79m-.758 3.788c1.99.095 3.6 1.8 3.6 3.79"},null,-1)]))}const IIe={render:NIe},LIe=Object.freeze(Object.defineProperty({__proto__:null,default:IIe,render:NIe},Symbol.toStringTag,{value:"Module"})),jIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function BIe(e,t){return Pl(),Rl("svg",jIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M17.662 18.661a4.33 4.33 0 1 0-2.455-7.891 6.662 6.662 0 1 0-6.537 7.89h8.993Z"},null,-1)]))}const UIe={render:BIe},FIe=Object.freeze(Object.defineProperty({__proto__:null,default:UIe,render:BIe},Symbol.toStringTag,{value:"Module"})),QIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function zIe(e,t){return Pl(),Rl("svg",QIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2m16 0H4m16 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2"},null,-1),Ul("path",{fill:"currentColor",d:"M18 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2"},null,-1),Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M6 8h4m-4 8h4"},null,-1)]))}const qIe={render:zIe},HIe=Object.freeze(Object.defineProperty({__proto__:null,default:qIe,render:zIe},Symbol.toStringTag,{value:"Module"})),VIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function ZIe(e,t){return Pl(),Rl("svg",VIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 6.601c0 .955.948 1.87 2.636 2.546S9.613 10.2 12 10.2s4.676-.38 6.364-1.054C20.052 8.47 21 7.556 21 6.6m-18 0c0-.955.948-1.87 2.636-2.546C7.324 3.38 9.613 3.001 12 3.001s4.676.38 6.364 1.054C20.052 4.731 21 5.646 21 6.601m-18 0v5.4m18-5.4v5.4M3 12c0 1.987 4.03 3.6 9 3.6s9-1.612 9-3.6M3 12v5.4c0 1.987 4.03 3.6 9 3.6s9-1.613 9-3.6V12"},null,-1)]))}const WIe={render:ZIe},XIe=Object.freeze(Object.defineProperty({__proto__:null,default:WIe,render:ZIe},Symbol.toStringTag,{value:"Module"})),GIe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function YIe(e,t){return Pl(),Rl("svg",GIe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M9 3H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m11 0h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1m0 11h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1M9 14H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1"},null,-1)]))}const KIe={render:YIe},JIe=Object.freeze(Object.defineProperty({__proto__:null,default:KIe,render:YIe},Symbol.toStringTag,{value:"Module"})),eLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function tLe(e,t){return Pl(),Rl("svg",eLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M20 14h-5a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1M9 14H4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1m5-11H9a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1"},null,-1)]))}const rLe={render:tLe},nLe=Object.freeze(Object.defineProperty({__proto__:null,default:rLe,render:tLe},Symbol.toStringTag,{value:"Module"})),aLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function oLe(e,t){return Pl(),Rl("svg",aLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m3.3 7 8.7 5m0 0 8.7-5M12 12v10m9-14a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"},null,-1)]))}const iLe={render:oLe},sLe=Object.freeze(Object.defineProperty({__proto__:null,default:iLe,render:oLe},Symbol.toStringTag,{value:"Module"})),lLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function cLe(e,t){return Pl(),Rl("svg",lLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"m7 14 2.5-2.5L7 9m5 7.5h5M5 4h14c1.105 0 2 .796 2 1.778v12.444c0 .982-.895 1.778-2 1.778H5c-1.105 0-2-.796-2-1.778V5.778C3 4.796 3.895 4 5 4"},null,-1)]))}const uLe={render:cLe},dLe=Object.freeze(Object.defineProperty({__proto__:null,default:uLe,render:cLe},Symbol.toStringTag,{value:"Module"})),pLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function hLe(e,t){return Pl(),Rl("svg",pLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.347",d:"M2.02 3.015h1.796l2.39 11.156a1.8 1.8 0 0 0 1.796 1.42h8.784a1.796 1.796 0 0 0 1.752-1.411l1.482-6.674H4.777"},null,-1),Ul("path",{fill:"currentColor","fill-rule":"evenodd",d:"M7 20a1 1 0 1 1 2 0 1 1 0 0 1-2 0m9 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0","clip-rule":"evenodd"},null,-1)]))}const fLe={render:hLe},mLe=Object.freeze(Object.defineProperty({__proto__:null,default:fLe,render:hLe},Symbol.toStringTag,{value:"Module"})),gLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function vLe(e,t){return Pl(),Rl("svg",gLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12 8v13m0-13c-.362-1.49-.985-2.765-1.787-3.657C9.41 3.451 8.465 2.983 7.5 3a2.5 2.5 0 1 0 0 5M12 8c.362-1.49.985-2.765 1.787-3.657.803-.892 1.748-1.36 2.713-1.343a2.5 2.5 0 0 1 0 5m2.5 4v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M4 8h16a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1"},null,-1)]))}const bLe={render:vLe},yLe=Object.freeze(Object.defineProperty({__proto__:null,default:bLe,render:vLe},Symbol.toStringTag,{value:"Module"})),OLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function wLe(e,t){return Pl(),Rl("svg",OLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M3 9h18M3 9v10a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V9M3 9l2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9m-9-6v6"},null,-1)]))}const xLe={render:wLe},kLe=Object.freeze(Object.defineProperty({__proto__:null,default:xLe,render:wLe},Symbol.toStringTag,{value:"Module"})),SLe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function _Le(e,t){return Pl(),Rl("svg",SLe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M4.929 19.071a10 10 0 0 0 14.142 0m0-14.142a10 10 0 0 0-14.142 0M4 15.5v-7l2.8 7v-7m5.6 7H11a1.4 1.4 0 0 1-1.4-1.4V9.9A1.4 1.4 0 0 1 11 8.5h1.4m-2.8 4.2h2.8m2.8-4.2v1.883a8.4 8.4 0 0 0 .601 3.119L16.6 15.5l1.4-4.9 1.4 4.9.8-1.998a8.4 8.4 0 0 0 .6-3.12V8.5"},null,-1)]))}const ELe={render:_Le},TLe=Object.freeze(Object.defineProperty({__proto__:null,default:ELe,render:_Le},Symbol.toStringTag,{value:"Module"})),ALe={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"};function CLe(e,t){return Pl(),Rl("svg",ALe,t[0]||(t[0]=[Ul("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M7 20.5 8 14h1.08a1.48 1.48 0 0 0 1.18-.58 1.44 1.44 0 0 0 .27-1.28l-.75-3A1.49 1.49 0 0 0 8.33 8H3m16-3h-3.753a1.49 1.49 0 0 0-1.45 1.14l-.75 3a1.44 1.44 0 0 0 .28 1.28 1.48 1.48 0 0 0 1.18.58h1.58l.78 4.75a1.5 1.5 0 0 0 1.46 1.25h2M2 12a10 10 0 1 0 20 0 10 10 0 0 0-20 0"},null,-1)]))}const PLe={render:CLe},$Le=Object.freeze(Object.defineProperty({__proto__:null,default:PLe,render:CLe},Symbol.toStringTag,{value:"Module"})),DLe=function(e){const t=Object.entries(e).map((([e,t])=>{const r=e.replace("./icons/","").replace(".svg","");return{icon:{src:r,title:r.replaceAll("-"," "),tags:[]},rawData:t}})),r=t.map((e=>e.icon)),n=Object.fromEntries(t.map((e=>[e.icon.src,e.rawData])));return{iconDefinitionList:r,iconDataMap:n}}(Object.assign({"./icons/basic-shape-diamond.svg":k$e,"./icons/basic-shape-hexagon.svg":T$e,"./icons/basic-shape-primary-circle-ellipse-round.svg":$$e,"./icons/basic-shape-primary-square-rectangle.svg":N$e,"./icons/basic-shape-shield.svg":B$e,"./icons/computer-device-desktop-monitor.svg":z$e,"./icons/computer-device-desktop.svg":Z$e,"./icons/computer-device-laptop.svg":Y$e,"./icons/computer-device-mobile-phone-android-samsung-back.svg":tDe,"./icons/computer-device-mobile-phone-android-samsung.svg":oDe,"./icons/computer-device-mobile-phone-iphone-x-back.svg":cDe,"./icons/computer-device-mobile-phone-iphone-x.svg":hDe,"./icons/computer-device-mobile-tablet-touch.svg":vDe,"./icons/computer-device-mobile-tablet.svg":wDe,"./icons/computer-device-network-ethernet-cat6.svg":_De,"./icons/computer-device-network-lan-www.svg":CDe,"./icons/computer-device-network-wifi-connection.svg":MDe,"./icons/computer-device-network-wifi-router.svg":LDe,"./icons/ecology-science-erlenmeyer-flask.svg":FDe,"./icons/image-flash-lightning.svg":HDe,"./icons/image-picture-flower.svg":XDe,"./icons/interface-alert-exclamation-diamond.svg":JDe,"./icons/interface-alert-exclamation-triangle-warning.svg":nMe,"./icons/interface-alert-information-circle.svg":sMe,"./icons/interface-award-crown.svg":dMe,"./icons/interface-bookmark-tag.svg":mMe,"./icons/interface-bookmark.svg":yMe,"./icons/interface-calendar-date-one.svg":kMe,"./icons/interface-content-book-open-pages.svg":TMe,"./icons/interface-content-book-page.svg":$Me,"./icons/interface-content-file.svg":NMe,"./icons/interface-content-folder.svg":BMe,"./icons/interface-copy-clipboard.svg":zMe,"./icons/interface-edit-attachment.svg":ZMe,"./icons/interface-edit-binocular.svg":YMe,"./icons/interface-edit-magic-wand.svg":tRe,"./icons/interface-edit-tool-paint-roller.svg":oRe,"./icons/interface-edit-tool-pencil.svg":cRe,"./icons/interface-favorite-award.svg":hRe,"./icons/interface-favorite-flag.svg":vRe,"./icons/interface-favorite-heart.svg":wRe,"./icons/interface-favorite-star.svg":_Re,"./icons/interface-favorite-stars-sparkles.svg":CRe,"./icons/interface-hierarchy-flowchart.svg":MRe,"./icons/interface-home-house.svg":LRe,"./icons/interface-hyperlink.svg":FRe,"./icons/interface-lighting-brightness.svg":HRe,"./icons/interface-lock-closed.svg":XRe,"./icons/interface-lock-open-unlock.svg":JRe,"./icons/interface-login-key.svg":nNe,"./icons/interface-search.svg":sNe,"./icons/interface-setting-cog.svg":dNe,"./icons/interface-share-megaphone-bullhorn.svg":mNe,"./icons/interface-share-rocket.svg":yNe,"./icons/interface-share-satellite.svg":kNe,"./icons/interface-share-space-ship.svg":TNe,"./icons/interface-share.svg":$Ne,"./icons/interface-signal-square.svg":NNe,"./icons/interface-time-clock-circle.svg":BNe,"./icons/interface-time-hour-glass.svg":zNe,"./icons/interface-users-multiple.svg":ZNe,"./icons/interface-weather-moon.svg":YNe,"./icons/mail-chat-bubble-square.svg":tIe,"./icons/mail-send-email-paper-airplane.svg":oIe,"./icons/mail-send-envelope.svg":cIe,"./icons/money-cashier-receipt.svg":hIe,"./icons/money-currency-dollar-pay.svg":vIe,"./icons/money-graph-arrow-increase.svg":wIe,"./icons/money-graph-bar-chart-increase.svg":_Ie,"./icons/nature-ecology-leaf.svg":CIe,"./icons/phone-telephone.svg":MIe,"./icons/programming-bug.svg":LIe,"./icons/programming-cloud.svg":FIe,"./icons/programming-computer-database-server.svg":HIe,"./icons/programming-computer-database.svg":XIe,"./icons/programming-module-four-layout.svg":JIe,"./icons/programming-module-three.svg":nLe,"./icons/programming-module.svg":sLe,"./icons/programming-script-code.svg":dLe,"./icons/shopping-cart.svg":mLe,"./icons/shopping-gift-present.svg":yLe,"./icons/shopping-shipping-box-parcel-package.svg":kLe,"./icons/tag-new-circle.svg":TLe,"./icons/travel-map-earth-globe.svg":$Le})),MLe=DLe.iconDefinitionList,RLe=DLe.iconDataMap,NLe=Li({__name:"LibraryIcon",props:{src:{}},setup(e){const t=e,r=hc((()=>(e=>RLe[e])(t.src)));return(e,t)=>r.value?(Pl(),Nl(cs(r.value),{key:0})):Vl("",!0)}}),ILe={class:"m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"},LLe={class:"flex h-4 w-4 items-center justify-center"},jLe=Li({__name:"EnvironmentSelector",setup(e){const{activeCollection:t,activeWorkspace:r,activeEnvironment:n}=Eye(),{collectionMutators:a}=Obe(),{layout:o}=age(),i=Lme(),s=e=>{t.value&&r.value&&(a.edit(t.value.uid,"x-scalar-active-environment",e),r.value.activeEnvironmentId=e)},l=()=>{var e;return i.push({name:"environment.default",params:{[wye.Workspace]:null==(e=r.value)?void 0:e.uid}})},c=hc((()=>{const{value:e}=n,{value:r}=t;return(null==e?void 0:e.name)||(null==r?void 0:r["x-scalar-active-environment"])||"No Environment"})),u=hc((()=>{const{value:e}=t,r=null==e?void 0:e["x-scalar-environments"];return r?Object.entries(r).map((([e,t])=>({...t,uid:e,name:e}))):[]}));ul(u,((e,t)=>{e.length>t.length&&(()=>{const e=u.value;if(e.length>0){const t=e[e.length-1];null!=t&&t.uid&&s(t.uid)}})()}));const d=e=>{const n=e["x-scalar-active-environment"];n&&t.value&&r.value?(t.value["x-scalar-active-environment"]=n,r.value.activeEnvironmentId=n):r.value&&(r.value.activeEnvironmentId="")};return ul(t,(e=>e&&d(e))),Yi((()=>{t.value&&d(t.value)})),(e,r)=>(Pl(),Nl(Ao(TX),{teleport:""},{items:ci((()=>[(Pl(!0),Rl(Sl,null,ps(u.value,(e=>(Pl(),Nl(Ao(Z8),{key:e.uid,class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:Su((t=>s(e.uid)),["stop"])},{default:ci((()=>{var r;return[Fl(Ao(TH),{selected:(null==(r=Ao(t))?void 0:r["x-scalar-active-environment"])===e.uid},null,8,["selected"]),ql(" "+Gn(e.name),1)]})),_:2},1032,["onClick"])))),128)),Fl(Ao(Z8),{class:"group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:r[0]||(r[0]=Su((e=>s("")),["stop"]))},{default:ci((()=>{var e,a,o;return[Fl(Ao(TH),{selected:""===(null==(e=Ao(n))?void 0:e.uid)&&""===(null==(a=Ao(t))?void 0:a["x-scalar-active-environment"])||"No Environment"===(null==(o=Ao(n))?void 0:o.name)},null,8,["selected"]),r[1]||(r[1]=ql(" No Environment "))]})),_:1,__:[1]}),Fl(Ao(c8)),"modal"!==Ao(o)?(Pl(),Nl(Ao(Z8),{key:0,class:"flex items-center gap-1.5",onClick:l},{default:ci((()=>[Ul("div",LLe,[Fl(Ao(U5),{icon:"Brackets",size:"sm"})]),r[2]||(r[2]=Ul("span",{class:"leading-none"},"Manage Environments",-1))])),_:1,__:[2]})):Vl("",!0)])),default:ci((()=>[Fl(Ao(aF),{class:"text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>[Ul("h2",ILe,Gn(c.value),1)])),_:1})])),_:1}))}}),BLe=Li({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(e){const t=e,r=hc((()=>t.art.split("\n"))),n=(e,t)=>{var n,a,o,i;return{animationDuration:100*e+"ms, 500ms",animationTimingFunction:`steps(${e}), step-end`,animationDelay:100*t+"ms, 0ms",animationIterationCount:"1, "+100*(((null==(n=r.value)?void 0:n.length)??0)+((null==(i=null==(o=r.value)?void 0:o[(null==(a=r.value)?void 0:a.length)-1])?void 0:i.length)??0)+5)/500}};return(e,t)=>(Pl(),Rl("div",{"aria-hidden":"true",class:zn(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":e.animate}]),role:"presentation",inert:""},[(Pl(!0),Rl(Sl,null,ps(r.value,((e,t)=>(Pl(),Rl("span",{key:t,class:"inline-block",style:jn({width:`calc(${e.length+1}ch)`})},[Ul("span",{class:"inline-block whitespace-pre overflow-hidden",style:jn(n(e.length,t))},Gn(e),5)],4)))),128))],2))}}),ULe=a6(BLe,[["__scopeId","data-v-69ebd973"]]);const FLe={"aria-hidden":"true"},QLe={class:"sr-only"},zLe=Li({__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const t={"⌘":"Command","^":"Control","⌥":"Option","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},r={Meta:ICe()?"⌘":"^",default:ICe()?"⌘":"^",Shift:"⇧",Alt:"⌥",Control:"^"},{cx:n}=WU(),a=hc((()=>`${e.modifier.map((e=>r[e])).join("+")} ${e.hotkey}`)),o=hc((()=>`${e.modifier.map((e=>"Meta"===e?ICe()?"Command":"Control":e)).join("+")} ${t[e.hotkey]??e.hotkey}`));return(e,t)=>(Pl(),Rl("div",qn(Ql(Ao(n)("border-(--scalar-background-3) inline-block overflow-hidden rounded border text-xxs rounded-b px-1 font-medium uppercase"))),[Ul("span",FLe,Gn(a.value),1),Ul("span",QLe,Gn(o.value),1)],16))}}),qLe=Li({__name:"SidebarButton",props:{click:{type:Function},hotkey:{}},setup(e){const t=e,{layout:r}=age(),n=()=>{t.click()};return(e,t)=>(Pl(),Nl(Ao(aF),{class:"bg-b-1 text-c-1 hover:bg-b-2 group relative h-auto w-auto border px-2 py-1 md:w-full md:p-1.5",icon:"Plus",variant:"outlined",onClick:n},{default:ci((()=>[fs(e.$slots,"title"),e.hotkey&&"desktop"===Ao(r)?(Pl(),Nl(zLe,{key:0,class:"text-c-2 add-item-hotkey absolute right-2 hidden group-hover:opacity-80 md:block",hotkey:e.hotkey},null,8,["hotkey"])):Vl("",!0)])),_:3}))}}),HLe={class:"flex justify-between gap-10"},VLe=Li({__name:"SidebarListElementForm",props:{danger:{type:Boolean},label:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=t;return(e,t)=>(Pl(),Rl("form",{class:"flex flex-col gap-4 text-base",onSubmit:t[1]||(t[1]=Su((e=>r("submit")),["prevent"]))},[fs(e.$slots,"default",{},void 0,!0),Ul("div",HLe,[Fl(Ao(aF),{class:"flex h-8 cursor-pointer items-center gap-1.5 px-2.5 shadow-none focus:outline-none",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>r("cancel"))},{default:ci((()=>t[2]||(t[2]=[ql(" Cancel ")]))),_:1,__:[2]}),Fl(Ao(aF),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",type:"submit",variant:e.danger?"danger":"solid"},{default:ci((()=>[ql(Gn(e.label??"Save"),1)])),_:1},8,["variant"])])],32))}}),ZLe=a6(VLe,[["__scopeId","data-v-a93bfefe"]]),WLe={key:0,class:"text-c-2 text-sm leading-normal text-pretty"},XLe=Li({__name:"DeleteSidebarListElement",props:{variableName:{},warningMessage:{}},emits:["close","delete"],setup(e,{emit:t}){const r=e,n=t,a=hc((()=>r.variableName.length>18?r.variableName.slice(0,18)+"…":r.variableName));return(e,t)=>(Pl(),Nl(ZLe,{danger:"",label:`Delete ${a.value}`,onCancel:t[0]||(t[0]=e=>n("close")),onSubmit:t[1]||(t[1]=e=>n("delete"))},{default:ci((()=>[e.warningMessage?(Pl(),Rl("p",WLe,Gn(e.warningMessage),1)):Vl("",!0)])),_:1},8,["label"]))}}),GLe={class:"flex text-sm"},YLe={class:"bg-b-1 custom-scroll grid w-dvw max-w-[420px] auto-rows-[32px] grid-cols-[repeat(auto-fill,minmax(32px,1fr))] content-between justify-between rounded border p-1"},KLe=Li({__name:"IconSelector",props:{modelValue:{},placement:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=e,n=t,a=hc({get:()=>r.modelValue,set:e=>n("update:modelValue",e)});return(e,t)=>(Pl(),Nl(Ao(u8),{class:"bg-b-2 rounded",focus:"",placement:e.placement??"bottom"},{popover:ci((({close:r})=>[Fl(Ao(CB),{modelValue:a.value,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:"flex flex-col"},{default:ci((()=>[Ul("div",GLe,[Fl(Ao(MB),{class:"text-c-2 px-1 py-1"},{default:ci((()=>[fs(e.$slots,"title",{},(()=>[t[1]||(t[1]=ql("Select an icon"))]))])),_:3})]),Ul("ul",YLe,[(Pl(!0),Rl(Sl,null,ps(Ao(MLe),(e=>(Pl(),Nl(Ao(DB),{key:e.src,as:"li",class:"text-c-3 hover:text-c-2 hover:bg-b-2 ui-checked:bg-b-3 ui-active:bg-b-2 flex cursor-pointer items-center justify-center rounded p-2",value:e.src,onClick:r},{default:ci((()=>[Fl(Ao(MB),{class:"sr-only"},{default:ci((()=>[ql(Gn(e.src.replaceAll("-"," "))+" Icon ",1)])),_:2},1024),Fl(Ao(NLe),{class:"stroke-[1.5]",src:e.src},null,8,["src"])])),_:2},1032,["value","onClick"])))),128))])])),_:2},1032,["modelValue"])])),default:ci((()=>[fs(e.$slots,"default")])),_:3},8,["placement"]))}}),JLe={class:"grid grid-cols-[auto_1fr] gap-2"},eje={class:"flex aspect-square"},tje=Li({__name:"EditSidebarListCollection",props:{name:{},icon:{}},emits:["close","edit"],setup(e,{emit:t}){const r=e,n=t,a=So(r.name),o=So(r.icon);return(e,t)=>(Pl(),Nl(ZLe,{onCancel:t[2]||(t[2]=e=>n("close")),onSubmit:t[3]||(t[3]=e=>n("edit",a.value,o.value))},{default:ci((()=>[Ul("div",JLe,[Ul("div",eje,[Fl(KLe,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),placement:"bottom-start"},{default:ci((()=>[Fl(Ao(aF),{class:"aspect-square h-auto px-0",variant:"outlined"},{default:ci((()=>[Fl(Ao(NLe),{class:"text-c-2 size-4",src:o.value},null,8,["src"])])),_:1})])),_:1},8,["modelValue"])]),Fl(Ao(U8),{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value=e),autofocus:"",class:"flex-1"},null,8,["modelValue"])])])),_:1}))}}),rje=Li({__name:"EditSidebarListElement",props:{name:{}},emits:["close","edit"],setup(e,{emit:t}){const r=t,n=So(e.name);return(e,t)=>(Pl(),Nl(ZLe,{onCancel:t[1]||(t[1]=e=>r("close")),onSubmit:t[2]||(t[2]=e=>r("edit",n.value))},{default:ci((()=>[Fl(Ao(U8),{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=e=>n.value=e),autofocus:""},null,8,["modelValue"])])),_:1}))}}),nje=Li({__name:"RequestSidebarItemMenu",props:{menuItem:{}},emits:["closeMenu","toggleWatchMode","clearDrafts"],setup(e,{emit:t}){const r=e,n=t,{replace:a}=Lme(),{activeRouterParams:o,activeWorkspaceCollections:i,activeWorkspaceRequests:s}=Eye(),{events:l,requestMutators:c}=Obe(),u=X8(),d=X8(),p=X8(),h=()=>{var e;return l.commandPalette.emit({commandName:"Add Example",metaData:{itemUid:null==(e=r.menuItem.item)?void 0:e.entity.uid}})},f=(e,t)=>{var n;null==(n=r.menuItem.item)||n.edit(e,t),u.hide()},m=()=>{var e,t,n;if(null==(e=r.menuItem.item)||e.delete(),!s.value.length){const{request:e}=lbe(),t=i.value.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)}));t&&(c.add(e,t.uid),a({name:"request",params:{[wye.Request]:e.uid}}))}if(o.value[wye.Request]===(null==(t=r.menuItem.item)?void 0:t.entity.uid)&&a({name:"request",params:{[wye.Request]:"default"}}),o.value[wye.Examples]===(null==(n=r.menuItem.item)?void 0:n.entity.uid)&&a({name:"request",params:{[wye.Request]:"default"}}),i.value[0]){const e=i.value[0].requests[0];a({name:"request",params:{[wye.Request]:e}})}d.hide()},g=So(null);ul([()=>r.menuItem.open,g],(async([e])=>{var t,r;e&&null!=(r=null==(t=g.value)?void 0:t.$parent)&&r.$el&&g.value.$parent.$el.focus()}));const v=()=>r.menuItem.open&&n("closeMenu");Yi((()=>window.addEventListener("click",v))),es((()=>window.removeEventListener("click",v)));const b=()=>{n("toggleWatchMode",r.menuItem.item)},y=()=>{n("clearDrafts"),p.hide()},O=hc((()=>{var e;return"Drafts"===(null==(e=r.menuItem.item)?void 0:e.title)}));return(e,t)=>{var r,n;return Pl(),Rl(Sl,null,[e.menuItem.targetRef&&e.menuItem.open?(Pl(),Nl(Ao(yX),{key:0,placement:"right-start",target:e.menuItem.targetRef,teleport:""},{floating:ci((()=>[Fl(Ao(EX),{onKeydown:t[3]||(t[3]=Eu((t=>e.$emit("closeMenu")),["escape"]))},{default:ci((()=>{var r,n;return["request"===(null==(r=e.menuItem.item)?void 0:r.entity.type)?(Pl(),Nl(Ao(s8),{key:0,class:"flex gap-2",onClick:h},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Example",size:"md",thickness:"1.5"}),t[8]||(t[8]=Ul("span",null,"Add Example",-1))])),_:1,__:[8]})):Vl("",!0),O.value?Vl("",!0):(Pl(),Nl(Ao(s8),{key:1,ref_key:"menuRef",ref:g,class:"flex gap-2",onClick:t[0]||(t[0]=e=>Ao(u).show())},{default:ci((()=>{var t;return[Fl(Ao(U5),{class:"inline-flex",icon:"Edit",size:"md",thickness:"1.5"}),Ul("span",null,["collection"===(null==(t=e.menuItem.item)?void 0:t.entity.type)?(Pl(),Rl(Sl,{key:0},[ql(" Edit ")],64)):(Pl(),Rl(Sl,{key:1},[ql(" Rename ")],64))])]})),_:1},512)),null!=(n=e.menuItem.item)&&n.documentUrl?(Pl(),Nl(Ao(s8),{key:2,ref_key:"menuRef",ref:g,class:"flex gap-2",onClick:b},{default:ci((()=>{var t,r;return[Fl(Ao(U5),{class:"inline-flex",icon:null!=(t=e.menuItem.item)&&t.watchMode?"Unwatch":"Watch",size:"md",thickness:"1.5"},null,8,["icon"]),Ul("span",null,Gn(null!=(r=e.menuItem.item)&&r.watchMode?"Disable Watch Mode":"Enable Watch Mode"),1)]})),_:1},512)):Vl("",!0),O.value?Vl("",!0):(Pl(),Nl(Ao(s8),{key:3,class:"flex gap-2",onClick:t[1]||(t[1]=e=>Ao(d).show())},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),t[9]||(t[9]=Ul("span",null,"Delete",-1))])),_:1,__:[9]})),O.value?(Pl(),Nl(Ao(s8),{key:4,class:"flex gap-2",onClick:t[2]||(t[2]=e=>Ao(p).show())},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),t[10]||(t[10]=Ul("span",null,"Clear Drafts",-1))])),_:1,__:[10]})):Vl("",!0)]})),_:1})])),_:1},8,["target"])):Vl("",!0),Fl(Ao(Y8),{size:"xxs",state:Ao(d),title:`Delete ${null==(r=e.menuItem.item)?void 0:r.resourceTitle}`},{default:ci((()=>{var r,n;return[Fl(XLe,{variableName:(null==(r=e.menuItem.item)?void 0:r.title)??"",warningMessage:null==(n=e.menuItem.item)?void 0:n.warning,onClose:t[4]||(t[4]=e=>Ao(d).hide()),onDelete:m},null,8,["variableName","warningMessage"])]})),_:1},8,["state","title"]),Fl(Ao(Y8),{size:"xxs",state:Ao(u),title:`Edit ${null==(n=e.menuItem.item)?void 0:n.resourceTitle}`},{default:ci((()=>{var r,n,a,o;return["Collection"===(null==(r=e.menuItem.item)?void 0:r.resourceTitle)?(Pl(),Nl(tje,{key:0,icon:(null==(n=e.menuItem.item)?void 0:n.icon)||"interface-content-folder",name:null==(a=e.menuItem.item)?void 0:a.title,onClose:t[5]||(t[5]=e=>Ao(u).hide()),onEdit:f},null,8,["icon","name"])):(Pl(),Nl(rje,{key:1,name:(null==(o=e.menuItem.item)?void 0:o.title)??"",onClose:t[6]||(t[6]=e=>Ao(u).hide()),onEdit:f},null,8,["name"]))]})),_:1},8,["state","title"]),Fl(Ao(Y8),{size:"xxs",state:Ao(p),title:"Clear Drafts"},{default:ci((()=>[Fl(XLe,{variableName:"All Drafts",warningMessage:"This action will clear all drafts. This cannot be undone.",onClose:t[7]||(t[7]=e=>Ao(p).hide()),onDelete:y})])),_:1},8,["state"])],64)}}}),aje=a6(nje,[["__scopeId","data-v-709241c2"]]),oje=So(null),ije=So(null),sje=["draggable"],lje=Li({__name:"Draggable",props:{ceiling:{default:.8},floor:{default:.2},isDraggable:{type:Boolean,default:!0},isDroppable:{type:[Boolean,Function],default:!0},parentIds:{},id:{}},emits:["onDragEnd","onDragStart"],setup(e,{expose:t,emit:r}){const n=r,a=hc((()=>e.parentIds.at(-1)??null)),o=t=>{!t.dataTransfer||!(t.target instanceof HTMLElement)||!e.isDraggable||(t.target.classList.add("dragging"),t.dataTransfer.dropEffect="move",t.dataTransfer.effectAllowed="move",oje.value={id:e.id,parentId:a.value},n("onDragStart",{id:e.id,parentId:a.value}))},i=(e=>{let t=!1;return(...r)=>{t||(e(...r),t=!0,setTimeout((()=>t=!1),25))}})((t=>{var r,n;if(!oje.value||oje.value.id===e.id||e.parentIds.includes((null==(r=oje.value)?void 0:r.id)??""))return;const o=null==(n=ije.value)?void 0:n.offset,i=t.target.offsetHeight,s=e.floor*i,l=e.ceiling*i;let c=3;t.offsetY<=0&&o&&3!==o?c=o:t.offsetY<=s?c=0:t.offsetY>=l?c=1:t.offsetY>s&&t.offsetY<l&&(c=2),(t=>"function"==typeof e.isDroppable?e.isDroppable(oje.value,{id:e.id,parentId:a.value,offset:t}):e.isDroppable)(c)&&(ije.value={id:e.id,parentId:a.value,offset:c})})),s=["above","below","asChild"],l=hc((()=>{var t;let r="sidebar-indent-nested";return e.id===(null==(t=ije.value)?void 0:t.id)&&(r+=` dragover-${s[ije.value.offset]}`),r})),c=()=>{if(!ije.value||!oje.value)return;const e={...oje.value},t={...ije.value};oje.value=null,ije.value=null,document.querySelectorAll("div.dragging").forEach((e=>e.classList.remove("dragging"))),e.id!==t.id&&n("onDragEnd",e,t)};return t({draggingItem:oje,hoveredItem:ije}),(e,t)=>(Pl(),Rl("div",{class:zn(l.value),draggable:e.isDraggable,onDragend:c,onDragover:t[0]||(t[0]=Su(((...e)=>Ao(i)&&Ao(i)(...e)),["prevent","stop"])),onDragstart:Su(o,["stop"])},[fs(e.$slots,"default",{},void 0,!0)],42,sje))}}),cje=((e,t)=>{const r=e.__vccOpts||e;for(const[e,n]of t)r[e]=n;return r})(lje,[["__scopeId","data-v-a89d6a6e"]]),uje={class:"line-clamp-1 w-full pl-2 break-all"},dje={class:"flex flex-row items-center gap-1"},pje={class:"relative"},hje={class:"flex items-start"},fje={class:"flex flex-1 flex-row justify-between font-medium"},mje={class:"line-clamp-1 w-full text-left break-all"},gje={class:"relative flex h-fit justify-end"},vje={class:"flex items-center justify-center",type:"button"},bje=["aria-expanded"],yje={class:"flex h-5 max-w-[14px] items-center justify-center"},Oje={class:"flex flex-1 flex-row justify-between"},wje={class:"line-clamp-1 w-full text-left font-medium break-all"},xje={class:"relative flex h-fit justify-end"},kje={class:"flex items-center justify-center",type:"button"},Sje={key:3},_je="hover:bg-sidebar-b-active indent-padding-left",Eje=Li({__name:"RequestSidebarItem",props:{isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},parentUids:{},uid:{},menuItem:{}},emits:["onDragEnd","newTab","openMenu"],setup(e,{emit:t}){qc((e=>({eae2c57a:x.value,"7c91ad9b":k.value})));const r=t,{activeCollection:n,activeRequest:a,activeRouterParams:o,activeWorkspace:i}=Eye(),{collections:s,tags:l,requests:c,requestExamples:u,collectionMutators:d,tagMutators:p,requestMutators:h,requestExampleMutators:f,events:m}=Obe(),g=Lme(),{collapsedSidebarFolders:v,toggleSidebarFolder:b}=Kbe(),{layout:y}=age(),O=hc((()=>{var t,r,n,a,o,m;const g=s[e.uid],v=l[e.uid],b=c[e.uid],y=u[e.uid];return g?{title:(null==(t=g.info)?void 0:t.title)||"Untitled Collection",entity:g,resourceTitle:"Collection",children:g.children,icon:g["x-scalar-icon"],documentUrl:g.documentUrl,watchMode:g.watchMode,to:g.uid&&"Drafts"!==(null==(r=null==g?void 0:g.info)?void 0:r.title)?{name:"collection",params:{[wye.Workspace]:null==(n=i.value)?void 0:n.uid,[wye.Collection]:g.uid}}:void 0,warning:"This cannot be undone. You're about to delete the collection and all folders and requests inside it.",edit:(e,t)=>{d.edit(g.uid,"info.title",e),t&&d.edit(g.uid,"x-scalar-icon",t)},delete:()=>{i.value&&d.delete(g,i.value)}}:v?{title:v.name,entity:v,resourceTitle:"Tag",children:v.children,warning:"This cannot be undone. You're about to delete the tag and all requests inside it",edit:e=>p.edit(v.uid,"name",e),delete:()=>e.parentUids[0]&&p.delete(v,e.parentUids[0])}:b?{title:b.summary??b.path,to:{name:"request",params:{workspace:null==(a=i.value)?void 0:a.uid,request:b.uid}},method:b.method,entity:b,resourceTitle:"Request",warning:"This cannot be undone. You're about to delete the request.",children:b.examples.slice(1),edit:e=>h.edit(b.uid,"summary",e),delete:()=>e.parentUids[0]&&h.delete(b,e.parentUids[0])}:null!=y&&y.requestUid?{title:y.name,to:{name:"request.examples",params:{workspace:null==(o=i.value)?void 0:o.uid,request:y.requestUid,examples:y.uid}},method:null==(m=c[y.requestUid])?void 0:m.method,entity:y,resourceTitle:"Example",warning:"This cannot be undone. You're about to delete the example from the request.",children:[],edit:e=>f.edit(y.uid,"name",e),delete:()=>f.delete(y)}:{title:"Unknown",entity:{uid:"",type:"unknown"},resourceTitle:"Unknown",children:[],edit:()=>null,delete:()=>null}})),w=hc((()=>"collection"===O.value.entity.type&&"Drafts"===O.value.title)),x=hc((()=>e.parentUids.length?"modal"===y?12*(e.parentUids.length-1)+"px":12*e.parentUids.length+"px":"12px")),k=hc((()=>e.parentUids.length?"modal"===y?12*(e.parentUids.length-1)+"px":12*e.parentUids.length+"px":"0px")),S=hc((()=>{var t;return v[e.uid]||(null==(t=a.value)?void 0:t.uid)===e.uid&&O.value.entity.examples.length>1})),_=hc((()=>{var t;return"string"==typeof g.currentRoute.value.name&&g.currentRoute.value.name.startsWith("request")&&"default"===o.value[wye.Request]&&(null==(t=a.value)?void 0:t.uid)===e.uid})),E=So(null),T=hc((()=>{let e=.5,t=.5;if(!E.value)return{ceiling:e,floor:t};const{draggingItem:r}=E.value;return s[null==r?void 0:r.id]||"collection"!==O.value.entity.type?"tag"===O.value.entity.type&&(e=.8,t=.2):(e=1,t=0),{ceiling:e,floor:t}})),A=(e,t)=>!("modal"===y||u[t.id]||s[e.id]);function C(t){var r,n,a;const o=e.parentUids[0]?(null==(r=s[e.parentUids[0]])?void 0:r.uid)||"":t,c=e.parentUids[0]&&null!=(n=l[t])&&n.name?{tags:[l[t].name]}:{},u=h.add(c,o);u&&(g.push({name:"request",params:{workspace:null==(a=i.value)?void 0:a.uid,request:u.uid}}),m.hotKeys.emit({focusAddressBar:new KeyboardEvent("keydown",{key:"l"})}))}const P=hc((()=>{const{uid:e,watchModeStatus:t}=n.value||{};return e!==O.value.entity.uid?"text-c-3":"WATCHING"===t?"text-c-1":"ERROR"===t?"text-red":"text-c-3"})),$=hc((()=>"Drafts"===O.value.title&&"modal"!==y&&O.value.children.length>0)),D=hc((()=>{const t=c[e.uid];if(t)return!fL(t);const r=l[e.uid];return!r||!fL(r)}));return(e,t)=>{const n=ss("RequestSidebarItem",!0);return D.value?(Pl(),Rl("li",{key:0,class:zn(["relative flex flex-row",["modal"===Ao(y)&&e.parentUids.length>1||"modal"!==Ao(y)&&e.parentUids.length?"before:bg-border indent-border-line-offset mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-[calc(.75rem_+_.5px)] before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":""]])},[Fl(Ao(cje),{id:O.value.entity.uid,ref_key:"draggableRef",ref:E,ceiling:T.value.ceiling,class:"gap-1/2 flex flex-1 flex-col text-base",floor:T.value.floor,isDraggable:e.isDraggable,isDroppable:e.isDroppable,parentIds:e.parentUids,onOnDragEnd:t[12]||(t[12]=(...t)=>e.$emit("onDragEnd",...t))},{default:ci((()=>{var a;return["request"!==O.value.entity.type&&"requestExample"!==O.value.entity.type||!O.value.to?("modal"!==Ao(y)||e.parentUids.length)&&"collection"===O.value.entity.type&&O.value.to?(Pl(),Nl(Ao($me),{key:1,"aria-expanded":!!Ao(v)[O.value.entity.uid],class:zn(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 no-underline focus-visible:z-10",[_je,{"bg-sidebar-b-active text-sidebar-c-active transition-none":"string"==typeof Ao(g).currentRoute.value.name&&Ao(g).currentRoute.value.name.startsWith("collection")&&Ao(g).currentRoute.value.params[Ao(wye).Collection]===O.value.entity.uid,"text-c-2":"Untitled Collection"===O.value.title}]]),to:O.value.to},{default:ci((()=>{var r;return[Ul("span",{class:"flex h-5 max-w-[14px] cursor-pointer items-center justify-center",onClick:t[2]||(t[2]=Su((e=>Ao(b)(O.value.entity.uid)),["stop","prevent"]))},[fs(e.$slots,"leftIcon",{},(()=>[Fl(Ao(E8),{class:"text-c-3 shrink-0",open:!!Ao(v)[O.value.entity.uid]},null,8,["open"])]),!0),t[15]||(t[15]=ql(" "))]),Ul("div",fje,[Ul("span",mje,Gn(O.value.title),1),Ul("div",gje,[Ul("div",{class:zn(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:e.menuItem.open,hidden:!e.menuItem.open||(null==(r=e.menuItem.item)?void 0:r.entity.uid)!==O.value.entity.uid}])},["modal"!==Ao(y)&&!w.value||w.value&&$.value?(Pl(),Nl(Ao(aF),{key:0,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[3]||(t[3]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"md"})])),_:1})):Vl("",!0),"modal"!==Ao(y)?(Pl(),Nl(Ao(aF),{key:1,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[4]||(t[4]=Su((e=>C(O.value.entity.uid)),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"md",thickness:"2"})])),_:1})):Vl("",!0)],2),O.value.watchMode?(Pl(),Nl(Ao(q8),{key:0,placement:"right",offset:12,content:`Watching: ${O.value.documentUrl}`},{default:ci((()=>[Ul("button",vje,[Fl(Ao(U5),{class:zn(["ml-0.5 text-sm",P.value]),icon:"Watch",size:"md",thickness:"2"},null,8,["class"])])])),_:1},8,["content"])):Vl("",!0),t[16]||(t[16]=Ul("span",null," ",-1))])])]})),_:3},8,["aria-expanded","class","to"])):"modal"!==Ao(y)||e.parentUids.length?(Pl(),Rl("button",{key:2,"aria-expanded":!!Ao(v)[O.value.entity.uid],class:zn(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10",[_je]]),type:"button",onClick:t[7]||(t[7]=e=>Ao(b)(O.value.entity.uid))},[Ul("span",yje,[fs(e.$slots,"leftIcon",{},(()=>[Fl(Ao(E8),{class:"text-c-3 hover:text-c-1 shrink-0",open:!!Ao(v)[O.value.entity.uid]},null,8,["open"])]),!0),t[17]||(t[17]=ql(" "))]),Ul("div",Oje,[Ul("span",wje,Gn(O.value.title),1),Ul("div",xje,[Ul("div",{class:zn(["items-center gap-px opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:e.menuItem.open,hidden:!e.menuItem.open||(null==(a=e.menuItem.item)?void 0:a.entity.uid)!==O.value.entity.uid}])},["modal"!==Ao(y)&&!w.value||w.value&&$.value?(Pl(),Nl(Ao(aF),{key:0,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[5]||(t[5]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget.parentNode,open:!0})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"md"})])),_:1})):Vl("",!0),"modal"!==Ao(y)?(Pl(),Nl(Ao(aF),{key:1,class:"hover:bg-b-3 hover:text-c-1 aspect-square h-fit px-0.5 py-0 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",size:"sm",variant:"ghost",onClick:t[6]||(t[6]=Su((e=>C(O.value.entity.uid)),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"md",thickness:"2"})])),_:1})):Vl("",!0)],2),O.value.watchMode?(Pl(),Nl(Ao(q8),{key:0,content:"Watching: {{ item.documentUrl }}",placement:"right",offset:12},{default:ci((()=>[Ul("button",kje,[Fl(Ao(U5),{class:zn(["ml-0.5 text-sm",P.value]),icon:"Watch",size:"md",thickness:"2"},null,8,["class"])])])),_:1})):Vl("",!0),t[18]||(t[18]=Ul("span",null," ",-1))])])],10,bje)):Vl("",!0):(Pl(),Nl(Ao($me),{key:0,class:"group no-underline",to:O.value.to,onClick:t[1]||(t[1]=Su((e=>((e,t)=>{e&&(UCe(["default"]).some((t=>e[t]))?r("newTab",t.title||"",t.entity.uid):t.to&&g.push(t.to),Ko((()=>m.focusAddressBar.emit())))})(e,O.value)),["prevent"]))},{default:ci((({isExactActive:r})=>{var n,a;return[Ul("div",{class:zn(["relative flex min-h-8 w-full cursor-pointer flex-row items-start justify-between gap-0.5 rounded py-1.5 pr-2",[_je,r||_.value?"bg-sidebar-b-active text-sidebar-c-active font-medium transition-none":"text-sidebar-c-2"]])},[Ul("span",uje,Gn(O.value.title||"Untitled"),1),Ul("div",dje,[Ul("div",pje,["modal"!==Ao(y)?(Pl(),Nl(Ao(aF),{key:0,class:zn(["hover:bg-b-3 hidden aspect-square h-fit px-0.5 py-0 opacity-0 group-hover:flex group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100",{flex:(null==(a=null==(n=e.menuItem)?void 0:n.item)?void 0:a.entity.uid)===O.value.entity.uid&&e.menuItem.open}]),size:"sm",type:"button",variant:"ghost",onClick:t[0]||(t[0]=Su((t=>e.$emit("openMenu",{item:O.value,parentUids:e.parentUids,targetRef:t.currentTarget,open:!e.menuItem.open})),["stop","prevent"]))},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"md"})])),_:1},8,["class"])):Vl("",!0)]),Ul("span",hje,[t[13]||(t[13]=ql(" ")),t[14]||(t[14]=Ul("span",{class:"sr-only"},"HTTP Method:",-1)),O.value.method?(Pl(),Nl(Ao(mge),{key:0,class:"font-bold",method:O.value.method},null,8,["method"])):Vl("",!0)])])],2)]})),_:1},8,["to"])),S.value?(Pl(),Rl("ul",Sje,[(Pl(!0),Rl(Sl,null,ps(O.value.children,(r=>(Pl(),Nl(n,{key:r,isDraggable:!Ao(u)[r],isDroppable:A,menuItem:e.menuItem,parentUids:[...e.parentUids,e.uid],uid:r,onNewTab:t[8]||(t[8]=(t,r)=>e.$emit("newTab",t,r)),onOnDragEnd:t[9]||(t[9]=(...t)=>e.$emit("onDragEnd",...t)),onOpenMenu:t[10]||(t[10]=t=>e.$emit("openMenu",t))},null,8,["isDraggable","menuItem","parentUids","uid"])))),128)),0===O.value.children.length?(Pl(),Nl(Ao(aF),{key:0,class:zn(["text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 text-xs",e.parentUids.length?"pl-9":""]),variant:"ghost",onClick:t[11]||(t[11]=e=>C(O.value.entity.uid))},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"sm"}),t[19]||(t[19]=Ul("span",null,"Add Request",-1))])),_:1,__:[19]},8,["class"])):Vl("",!0)])):Vl("",!0)]})),_:3},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])],2)):Vl("",!0)}}}),Tje=a6(Eje,[["__scopeId","data-v-4dedda07"]]),Aje={class:"flex w-[inherit] items-center text-base"},Cje={class:"m-0 flex items-center gap-1.5 font-bold"},Pje={class:"line-clamp-1 text-left"},$je={class:"overflow-hidden text-ellipsis"},Dje={class:"flex h-4 w-4 items-center justify-center"},Mje=Li({__name:"WorkspaceDropdown",setup(e){const{activeWorkspace:t}=Eye(),{workspaces:r,workspaceMutators:n,events:a}=Obe(),{push:o}=Lme(),i=hc((()=>1===Object.keys(r).length)),s=()=>a.commandPalette.emit({commandName:"Create Workspace"}),l=So(""),c=So(""),u=X8(),d=X8(),p=e=>{const t=r[e];t&&(l.value=t.name,c.value=e,u.show())},h=e=>{e.trim()&&(n.edit(c.value,"name",e.trim()),u.hide())},f=e=>{const t=r[e];t&&(l.value=t.name,c.value=e,d.show())},m=async()=>{var e;if(!i.value){const a=(null==(e=t.value)?void 0:e.uid)===c.value,i={...r};if(delete i[c.value],n.delete(c.value),a){const e=Object.keys(i)[0];await o({name:"workspace",params:{workspace:e}})}}d.hide()};return(e,n)=>(Pl(),Rl("div",null,[Ul("div",Aje,[Fl(Ao(TX),null,{items:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Ao(r),((e,r)=>(Pl(),Nl(Ao(Z8),{key:r,class:"group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:Su((r=>(e=>{var r;e!==(null==(r=t.value)?void 0:r.uid)&&o({name:"workspace",params:{workspace:e}})})(e.uid)),["stop"])},{default:ci((()=>{var a;return[Fl(Ao(TH),{selected:(null==(a=Ao(t))?void 0:a.uid)===r},null,8,["selected"]),Ul("span",$je,Gn(e.name),1),Fl(Ao(TX),{placement:"right-start",teleport:""},{items:ci((()=>[Fl(Ao(Z8),{class:"flex gap-2",onMousedown:t=>p(e.uid),onTouchend:Su((t=>p(e.uid)),["prevent"])},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Edit",size:"md",thickness:"1.5"}),n[2]||(n[2]=Ul("span",null,"Rename",-1))])),_:2,__:[2]},1032,["onMousedown","onTouchend"]),i.value?Vl("",!0):(Pl(),Nl(Ao(Z8),{key:0,class:"flex gap-2",onMousedown:Su((t=>f(e.uid)),["prevent"]),onTouchend:Su((t=>f(e.uid)),["prevent"])},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Delete",size:"md",thickness:"1.5"}),n[3]||(n[3]=Ul("span",null,"Delete",-1))])),_:2,__:[3]},1032,["onMousedown","onTouchend"]))])),default:ci((()=>[Fl(Ao(aF),{class:"hover:bg-b-3 -mr-1 ml-auto aspect-square h-fit px-0.5 py-0 group-hover/item:flex",size:"sm",type:"button",variant:"ghost"},{default:ci((()=>[Fl(Ao(U5),{icon:"Ellipses",size:"sm"})])),_:1})])),_:2},1024)]})),_:2},1032,["onClick"])))),128)),Fl(Ao(c8)),Fl(Ao(Z8),{class:"flex items-center gap-1.5",onClick:s},{default:ci((()=>[Ul("div",Dje,[Fl(Ao(U5),{icon:"Add",size:"sm"})]),n[4]||(n[4]=Ul("span",null,"Create Workspace",-1))])),_:1,__:[4]})])),default:ci((()=>[Fl(Ao(aF),{class:"text-c-1 hover:bg-b-2 line-clamp-1 h-full w-fit justify-start px-1.5 py-1.5 font-normal",fullWidth:"",variant:"ghost"},{default:ci((()=>{var e;return[Ul("div",Cje,[Ul("h2",Pje,Gn(null==(e=Ao(t))?void 0:e.name),1)])]})),_:1})])),_:1})]),Fl(Ao(Y8),{size:"xxs",state:Ao(d),title:"Delete workspace"},{default:ci((()=>[Fl(XLe,{variableName:l.value,warningMessage:"This cannot be undone. You're about to delete the workspace and everything inside it.",onClose:n[0]||(n[0]=e=>Ao(d).hide()),onDelete:m},null,8,["variableName"])])),_:1},8,["state"]),Fl(Ao(Y8),{size:"xxs",state:Ao(u),title:"Rename Workspace"},{default:ci((()=>[Fl(rje,{name:l.value,onClose:n[1]||(n[1]=e=>Ao(u).hide()),onEdit:h},null,8,["name"])])),_:1},8,["state"])]))}}),Rje={class:"bg-b-1 sticky top-0 z-20 flex h-12 items-center px-3"},Nje={key:1,class:"text-c-3"},Ije=["aria-pressed"],Lje={class:"sr-only"},jje={key:0,class:"search-button-fade sticky top-12 z-10 px-3 py-2.5 pt-0 focus-within:z-20",role:"search"},Bje={key:1,class:"contents"},Uje={key:0,class:"empty-sidebar-item-content px-2.5 py-2.5"},Fje={class:"rabbit-ascii relative m-auto mt-2 h-[68px] w-[60px]"},Qje=Li({__name:"RequestSidebar",emits:["newTab","clearDrafts"],setup(e,{emit:t}){const r=t,{collapsedSidebarFolders:n,isSidebarOpen:a,setCollapsedSidebarFolder:o,toggleSidebarOpen:i}=Kbe(),{layout:s}=age(),l=Obe(),{activeCollection:c,activeWorkspaceCollections:u,activeRequest:d,activeWorkspaceRequests:p,activeWorkspace:h}=Eye(),{findRequestParents:f,events:m,requestMutators:g,requests:v}=l,{handleDragEnd:b,isDroppable:y}=function(e,{collections:t,collectionMutators:r,tags:n,tagMutators:a,workspaceMutators:o}){const{layout:i}=age(),s=(e,t)=>{"collection"===e.type?r.edit(e.uid,"children",t):"tag"===e.type&&a.edit(e.uid,"children",t)};return{handleDragEnd:(i,l)=>{var c,u,d,p;if(!i||!l)return;const{id:h,parentId:f}=i,{id:m,parentId:g,offset:v}=l;if(f?t[f]?r.edit(f,"children",t[f].children.filter((e=>e!==h))):n[f]&&a.edit(f,"children",n[f].children.filter((e=>e!==h))):o.edit(null==(c=e.value)?void 0:c.uid,"collections",(null==(u=e.value)?void 0:u.collections.filter((e=>e!==h)))??[]),2===v){const e=t[m]||n[m];e&&s(e,[...e.children??[],h])}else if(g){const e=t[g]||n[g];if(!e)return;const r=[...e.children??[]],a=r.findIndex((e=>m===e))??0;r.splice(a+v,0,h),s(e,r)}else{const t=[...(null==(d=e.value)?void 0:d.collections)??[]],r=t.findIndex((e=>m===e))??0;t.splice(r+v,0,h),o.edit(null==(p=e.value)?void 0:p.uid,"collections",t)}},isDroppable:(e,r)=>{var n,a;return!("modal"===i||!t[e.id]&&2!==r.offset||t[e.id]&&"Drafts"===(null==(a=null==(n=t[r.id])?void 0:n.info)?void 0:a.title))}}}(h,l),{replace:O}=Lme(),w=()=>{m.commandPalette.emit({commandName:"Import from OpenAPI/Swagger/Postman/cURL"})},x=ji(),{toast:k}=cH(),S=uo({open:!1}),_=So(!1);ul(d,(e=>{e&&f(e).forEach((e=>o(e,!0)))}),{immediate:!0});const{searchText:E,searchResultsWithPlaceholderResults:T,selectedSearchResult:A,onSearchResultClick:C,fuseSearch:P,searchInputRef:$,searchResultRefs:D,navigateSearchResults:M,selectSearchResult:R}=function(){const e=Lme(),{activeWorkspace:t,activeWorkspaceRequests:r,activeWorkspaceCollections:n}=Eye(),{requests:a,tags:o}=Obe(),i=So([]),s=So([]),l=So(0),c=So(""),u=So(null),d=So([]),p=new ufe(i.value,{keys:["title","description","body"]}),h=r=>{i.value=r.filter((e=>!fL(e))).filter((e=>{var t;const r=null==(t=n.value)?void 0:t.find((t=>t.requests.includes(e.uid)));return!(null!=r&&r.tags.map((e=>o[e])).filter(_L).filter((t=>{var r;return null==(r=e.tags)?void 0:r.includes(t.name)})).filter((e=>fL(e))).length)})).map((r=>{var n,a;return{id:r.uid,title:r.summary??r.method,description:r.description??"",httpVerb:r.method,path:r.path,link:null==(a=null==e?void 0:e.resolve({name:"request",params:{[wye.Request]:r.uid,[wye.Workspace]:null==(n=t.value)?void 0:n.uid}}))?void 0:a.href}})),p.setCollection(i.value)},f=()=>{l.value=0,s.value=p.search(c.value)};ul(c,(e=>{e.length?f():s.value=[]}));const m=hc((()=>r.value.map((e=>a[e])).filter(_L)));ul(r,(()=>{h(m.value)}),{immediate:!0});const g=t=>{e.push(t.item.id),c.value="",l.value=0,s.value=[],u.value instanceof HTMLInputElement&&u.value.blur()},v=hc((()=>0===c.value.length?i.value.map((e=>({item:e}))):s.value));return{searchText:c,searchResultsWithPlaceholderResults:v,selectedSearchResult:l,onSearchResultClick:g,fuseSearch:f,searchInputRef:u,searchResultRefs:d,navigateSearchResults:e=>{const t="up"===e?-1:1,r=v.value.length;l.value=(l.value+t+r)%r,Ko((()=>{const e=d.value[l.value];e instanceof HTMLElement&&e.scrollIntoView({behavior:"smooth",block:"center"})}))},selectSearchResult:()=>{if(l.value>=0){const e=v.value[l.value];e&&g(e)}},populateFuseDataArray:h}}(),N=So(),I=e=>{var t;e&&(e.toggleSidebar&&i(),e.focusRequestSearch&&(null==(t=$.value)||t.focus()))};Yi((()=>m.hotKeys.on(I))),es((()=>{m.hotKeys.off(I)}));const L=e=>{if(null!=e&&e.documentUrl){e.watchMode=!e.watchMode;const t=u.value.find((t=>t.uid===e.entity.uid));t&&(t.watchMode=e.watchMode)}};ul((()=>u.value.map((e=>e.watchMode))),((e,t)=>{e.forEach(((e,r)=>{var n,a,o;if("modal"!==s&&e!==t[r]&&"Drafts"!==(null==(a=null==(n=u.value[r])?void 0:n.info)?void 0:a.title)&&u.value[r]){const t=u.value[r];if(!t)return;const n=`${null==(o=t.info)?void 0:o.title}: Watch Mode ${e?"enabled":"disabled"}`;k(n,"info")}}))}));const j=hc((()=>{var e;const t=T.value;if(!t.length)return"No results found";const r=null==(e=t[A.value])?void 0:e.item;if(!r)return"No result selected";const n=E.value.length?`${t.length} result${1===t.length?"":"s"} found, `:"",a=`, HTTP Method ${r.httpVerb}, Path ${r.path}`;return`${n}Selected: ${r.title} ${a}`})),B=()=>{const e=u.value.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)}));if(e&&e.requests.forEach((t=>{v[t]&&g.delete(v[t],e.uid)})),p.value.length){const e=u.value[0],t=null==e?void 0:e.requests[0];t&&O({name:"request",params:{[wye.Request]:t}})}else{const{request:t}=lbe();e&&(g.add(t,e.uid),O({name:"request",params:{[wye.Request]:t.uid}}))}};ul(_,(e=>{e||(E.value="")}));const U=hc((()=>((e,t,r)=>{var n;const a=e.find((e=>{var t;return"Drafts"===(null==(t=e.info)?void 0:t.title)})),o=1===t.length;if(!t[0])return!1;const i=null==a?void 0:a.requests.includes(t[0]);if(!i)return!1;const s="My First Request"!==(null==(n=r[(null==a?void 0:a.requests[0])??""])?void 0:n.summary);return o&&i&&!s})(u.value,p.value,v))),F=hc((()=>"modal"===s&&c.value?[c.value]:u.value));function Q(e){!E.value&&e.relatedTarget!==N.value&&(_.value=!1)}return(e,t)=>(Pl(),Rl(Sl,null,[ui(Fl(Ao(nye),{class:zn([Ao(a)?"sidebar-active-width":""])},hs({content:ci((()=>[Ul("div",Rje,[Ul("div",{class:zn(["size-8",{"xl:hidden":"modal"!==Ao(s)}])},null,2),"modal"!==Ao(s)?(Pl(),Nl(Ao(Mje),{key:0})):Vl("",!0),"modal"!==Ao(s)?(Pl(),Rl("span",Nje," / ")):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(jLe,{key:2})):Vl("",!0),Ul("button",{ref_key:"searchToggleRef",ref:N,"aria-pressed":_.value,class:"ml-auto",type:"button",onClick:t[0]||(t[0]=e=>_.value=!_.value)},[Ul("span",Lje,Gn(_.value?"Hide":"Show")+" search ",1),Fl(Ao(U5),{class:"text-c-3 hover:bg-b-2 max-h-8 max-w-8 rounded-lg p-1.75 text-sm",icon:"Search"})],8,Ije)]),_.value?(Pl(),Rl("div",jje,[Fl(Ao($8),{ref_key:"searchInputRef",ref:$,modelValue:Ao(E),"onUpdate:modelValue":t[1]||(t[1]=e=>ko(E)?E.value=e:null),autofocus:"","aria-controls":Ao(x),label:j.value,onInput:Ao(P),onKeydown:[t[2]||(t[2]=Eu(Su((e=>Ao(M)("down")),["stop"]),["down"])),t[3]||(t[3]=Eu(Su((e=>Ao(R)()),["stop"]),["enter"])),t[4]||(t[4]=Eu(Su((e=>Ao(M)("up")),["stop"]),["up"]))],onBlur:Q},null,8,["modelValue","aria-controls","label","onInput"])])):Vl("",!0),Ul("div",{class:zn(["gap-1/2 flex flex-1 flex-col overflow-visible overflow-y-auto px-3 pt-0 pb-3",[{"pb-14":"modal"!==Ao(s)},{"h-[calc(100%-273.5px)]":U.value}]]),onDragenter:t[7]||(t[7]=Su((()=>{}),["prevent"])),onDragover:t[8]||(t[8]=Su((()=>{}),["prevent"]))},[Ao(E)?(Pl(),Nl(Ao(h8),{key:0,id:Ao(x),"aria-label":"Search Results",class:"gap-px",noResults:!Ao(T).length},{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Ao(T),((e,r)=>(Pl(),Nl(Ao(w8),{id:`#search-input-${e.item.id}`,key:e.refIndex,ref_for:!0,ref:e=>Ao(D)[r]=e,selected:Ao(A)===r,class:"px-2",href:e.item.link,onClick:Su((t=>Ao(C)(e)),["prevent"]),onFocus:e=>A.value=r},{addon:ci((()=>[t[10]||(t[10]=Ul("span",{class:"sr-only"},"HTTP Method:",-1)),Fl(mge,{class:"font-bold",method:e.item.httpVerb??"get"},null,8,["method"])])),default:ci((()=>[ql(Gn(e.item.title)+" ",1)])),_:2},1032,["id","selected","href","onClick","onFocus"])))),128))])),_:1},8,["id","noResults"])):(Pl(),Rl("nav",Bje,[(Pl(!0),Rl(Sl,null,ps(F.value,(e=>{var a;return Pl(),Nl(Tje,{key:e.uid,isDraggable:"modal"!==Ao(s)&&"Drafts"!==(null==(a=e.info)?void 0:a.title),isDroppable:Ao(y),menuItem:S,parentUids:[],uid:e.uid,onNewTab:t[5]||(t[5]=(e,t)=>r("newTab",{name:e,uid:t})),onOnDragEnd:Ao(b),onOpenMenu:t[6]||(t[6]=e=>Object.assign(S,e))},{leftIcon:ci((()=>{var t;return["Drafts"===(null==(t=e.info)?void 0:t.title)?(Pl(),Nl(Ao(U5),{key:0,class:"text-sidebar-c-2 group-hover:hidden",icon:"Scribble",thickness:"2.25"})):(Pl(),Nl(Ao(NLe),{key:1,class:"text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",src:e["x-scalar-icon"]||"interface-content-folder"},null,8,["src"])),Ul("div",{class:zn({"rotate-90":Ao(n)[e.uid]})},[Fl(Ao(U5),{class:"text-c-3 hover:text-c-1 hidden text-sm group-hover:block",icon:"ChevronRight",size:"md"})],2)]})),_:2},1032,["isDraggable","isDroppable","menuItem","uid","onOnDragEnd"])})),128))]))],34)])),button:ci((()=>[Ul("div",{class:zn({"empty-sidebar-item":U.value})},[U.value?(Pl(),Rl("div",Uje,[Ul("div",Fje,[Fl(ULe,{art:Ao(' ,\\\n \\\\\\,_\n \\` ,\\\n __,.-" =__)\n ." )\n,_/ , \\/\\_\n\\_| )_-\\ \\_-`\n `-----` `--`'),class:"rabbitsit font-bold"},null,8,["art"]),Fl(ULe,{art:Ao(' __\n // \\,_\n \\` ,\\\n __,.-" =__)\n ." )\n,_/ , \\/\\ \n\\_| // / / /\n / / '),class:"rabbitjump absolute top-0 left-0 font-bold"},null,8,["art"])]),t[11]||(t[11]=Ul("div",{class:"mt-2 mb-2 text-center text-sm text-balance"},[Ul("b",{class:"font-medium"},"Let's Get Started"),Ul("p",{class:"mt-2"}," Create request, folder, collection or import from OpenAPI/Postman ")],-1))])):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(Ao(aF),{key:1,class:zn(["mb-1.5 hidden h-fit w-full p-1.5 opacity-0",{"flex opacity-100":U.value}]),onClick:w},{default:ci((()=>t[12]||(t[12]=[ql(" Import Collection ")]))),_:1,__:[12]},8,["class"])):Vl("",!0),"modal"!==Ao(s)?(Pl(),Nl(qLe,{key:2,click:Ao(m).commandPalette.emit,hotkey:"K"},{title:ci((()=>t[13]||(t[13]=[ql(" Add Item ")]))),_:1},8,["click"])):Vl("",!0)],2)])),_:2},["modal"!==Ao(s)?{name:"header",fn:ci((()=>[])),key:"0"}:void 0]),1032,["class"]),[[Fc,Ao(a)]]),"modal"!==Ao(s)&&S?(Pl(),Nl(aje,{key:0,menuItem:S,onClearDrafts:B,onCloseMenu:t[9]||(t[9]=e=>S.open=!1),onToggleWatchMode:L},null,8,["menuItem"])):Vl("",!0)],64))}}),zje=a6(Qje,[["__scopeId","data-v-bca9c474"]]),qje={"application/epub+zip":{extension:".epub"},"application/gzip":{extension:".gz"},"application/java-archive":{extension:".jar"},"application/javascript":{extension:".js",raw:!0},"application/json":{extension:".json",raw:!0,language:"json"},"application/ld+json":{extension:".jsonld",raw:!0,language:"json"},"application/problem+json":{extension:".json",raw:!0,language:"json"},"application/vnd.api+json":{extension:".json",raw:!0,language:"json"},"application/dns-json":{extension:".json",raw:!0,language:"json"},"application/msword":{extension:".doc"},"application/octet-stream":{extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},"application/vnd.amazon.ebook":{extension:".azw"},"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},"application/vnd.oasis.opendocument.presentation":{extension:".odp"},"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},"application/vnd.oasis.opendocument.text":{extension:".odt"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extension:".pptx"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extension:".xlsx"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extension:".docx"},"application/vnd.rar":{extension:".rar"},"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{extension:".7z"},"application/x-abiword":{extension:".abw"},"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},"application/x-tar":{extension:".tar"},"application/xhtml+xml":{extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/plain":{extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"},"video/x-msvideo":{extension:".avi"}};function Hje(e){return qje[e]||(e.endsWith("+json")?{extension:".json",raw:!0,language:"json"}:void 0)}Object.entries(qje).filter((([,e])=>null==e?void 0:e.raw)).map((([e])=>e));const Vje=()=>typeof window<"u"&&"electron"in window,Zje=({environment:e,example:t,globalCookies:r,proxyUrl:n,request:a,securitySchemes:o,selectedSecuritySchemeUids:i=[],server:s,status:l,pluginManager:c})=>{try{const u=e??{},d=new AbortController,p=t.parameters.path.reduce(((e,t)=>(t.enabled&&(e[t.key]=yye(t.value,u)),e)),{}),h=yye((null==s?void 0:s.url)??"",u),f=yye(yye(a.path,u),p);let m=h||f;if(!m)throw"The address bar input seems to be empty. Try adding a URL.";Object.entries((null==s?void 0:s.variables)??{}).forEach((([e,t])=>{m=yye(m,{[e]:p[e]||t.default})}));const g=function(e,t,r){const n=new URLSearchParams,a=((null==r?void 0:r.parameters)??[]).reduce(((e,t)=>("query"===t.in&&(e[t.name]=t),e)),{});return e.parameters.query.forEach((e=>{if(!e.enabled)return;const r=a[e.key];switch(e.type){case"array":{const a=yye(e.value??"",t).split(/,\ ?/);if(!1===(null==r?void 0:r.explode)){const t=a.join(",");n.append(e.key,t)}else a.forEach((t=>{n.append(e.key,t.trim())}));break}default:{const r=yye(e.value??"",t);n.append(e.key,r.trim());break}}})),n}(t,u,a),v=function(e,t){const r={};return e.parameters.headers.forEach((e=>{const n=e.key.trim().toLowerCase();e.enabled&&("content-type"!==n||"multipart/form-data"!==e.value)&&(r[n]=yye(e.value,t))})),r}(t,u),{body:b}=function(e,t,r){var n,a,o;if(!CL(e))return{body:void 0,contentType:void 0};if("formData"===t.body.activeBody&&t.body.formData){const e="form-data"===t.body.formData.encoding?"multipart/form-data":"application/x-www-form-urlencoded",n="form-data"===t.body.formData.encoding?new FormData:new URLSearchParams;return t.body.formData.value.forEach((e=>{!e.enabled||!e.key||(e.file&&n instanceof FormData?n.append(e.key,e.file,e.file.name):void 0!==e.value&&n.append(e.key,yye(e.value,r)))})),{body:n,contentType:e}}return"raw"===t.body.activeBody?{body:yye((null==(n=t.body.raw)?void 0:n.value)??"",r),contentType:null==(a=t.body.raw)?void 0:a.encoding}:"binary"===t.body.activeBody?{body:t.body.binary,contentType:null==(o=t.body.binary)?void 0:o.type}:{body:void 0,contentType:void 0}}(a.method,t,u),{cookieParams:y}=function({example:e,env:t,globalCookies:r,serverUrl:n,proxyUrl:a}){const o=[],i=(e=>{const t=new URL(e.startsWith("http")?e:`http://${e}`).hostname;return t.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)||t.match(/^[a-fA-F0-9:]+$/)||t.startsWith(".")?t:`.${t}`})(cL(a,n)?a:n??"http://localhost");return r.forEach((e=>{const{name:t,value:r,domain:a,...i}=e;!YEe(n,a)||!t||o.push(GEe.parse({name:t,value:r,domain:a,path:i.path}))})),e.parameters.cookies.forEach((e=>{!e.enabled||!e.key||o.push(GEe.parse({name:e.key,value:yye(e.value,t),domain:i,path:"/"}))})),{cookieParams:o}}({example:t,env:u,globalCookies:r,serverUrl:m,proxyUrl:n}),O=i.flat().map((e=>o[e])).filter(_L),w=TTe(O,u),x={...Object.entries(w.headers).reduce(((e,[t,r])=>(e[t.toLowerCase()]=r,e)),{}),...v},k=[...y,...w.cookies],S=new URLSearchParams([...g,...w.urlParams]);Vje()&&x["user-agent"]&&(x["X-Scalar-User-Agent"]=x["user-agent"]),m=eL(m,f,S);const _=yye(((e,t)=>{const r=e.map((e=>`${e.name}=${e.value}`)).join("; ");return t?`${t}; ${r}`.trim():r.trim()})(k,x.Cookie),u);_&&(Vje()||cL(n,m)?(console.warn("We're using a `X-Scalar-Cookie` custom header to the request. The proxy will forward this as a `Cookie` header. We do this to avoid the browser omitting the `Cookie` header for cross-origin requests for security reasons."),x["X-Scalar-Cookie"]=_):(console.warn("We're trying to add a Cookie header, but browsers often omit them for cross-origin requests for various security reasons. If it's not working, that's probably why. Here are the requirements for it to work:\n\n - The browser URL must be on the same domain as the server URL.\n - The connection must be made over HTTPS.\n "),x.Cookie=_));const E=lL(n,m),T=new Request(E,{method:a.method.toUpperCase(),body:b??null,headers:x});return[null,{request:T,sendRequest:async()=>{var e,r,o;null==l||l.emit("start"),c&&c.executeHook("onBeforeRequest",{request:T});const i=Date.now();try{const s=await fetch(T,{signal:d.signal}),u=null==(e=s.headers.get("content-type"))?void 0:e.startsWith("text/event-stream");null==l||l.emit("stop");const p=Date.now()-i,h=s.clone(),g=((e,t=!1)=>{var r,n;const a=Object.fromEntries(e);t&&["Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers"].map((e=>e.toLowerCase())).forEach((e=>delete a[e]));const o=Object.keys(a).find((e=>"x-scalar-modified-headers"===e.toLowerCase())),i=o?(null==(n=null==(r=a[o])?void 0:r.toString().split(", "))?void 0:n.map((e=>e.toLowerCase())))??[]:[];return Object.keys(a).forEach((e=>{i.includes(e.toLowerCase())&&delete a[e]})),o&&delete a[o],Object.keys(a).forEach((e=>{const t=/^x-scalar-original-/i;if(t.test(e)){const r=e.replace(t,"");a[e]&&(a[r]=a[e],delete a[e])}})),Object.keys(a).forEach((e=>{const t=(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.toLowerCase().slice(1))).join("-"))(e);e!==t&&a[e]&&(a[t]=a[e],delete a[e])})),Object.fromEntries(Object.entries(a).sort((([e],[t])=>e.localeCompare(t))))})(s.headers,cL(n,m)),v=s.headers.get("content-type")??"text/plain;charset=UTF-8",b=await h.arrayBuffer(),y=function(e,t){const r=new gye(t);return function(e){var t;return!(null==(t=Hje(e))||!t.raw)}(r.essence)?new TextDecoder(r.parameters.get("charset")).decode(e):new Blob([e],{type:r.essence})}(b,v),O=s.clone(),w=O.statusText||(null==(r=DL[O.status])?void 0:r.name)||"",x=[204,205,304].includes(O.status),k=new Response(x?null:O.body,{status:O.status,statusText:w,headers:O.headers});c&&c.executeHook("onResponseReceived",{response:k,operation:a});const S="getSetCookie"in k.headers&&"function"==typeof k.headers.getSetCookie?k.headers.getSetCookie():[];return u&&s.body?[null,{timestamp:Date.now(),request:t,response:{...k,headers:g,cookieHeaderKeys:S,reader:null==(o=s.body)?void 0:o.getReader(),duration:p,method:a.method,path:f}}]:[null,{timestamp:Date.now(),request:t,response:{...s,headers:g,cookieHeaderKeys:S,data:y,size:b.byteLength,duration:Date.now()-i,method:a.method,status:s.status,path:f}}]}catch(e){return null==l||l.emit("abort"),[abe(e,"An error occurred while making the request"),null]}},controller:d}]}catch(e){return console.error(e),null==l||l.emit("abort"),[abe(e),null]}},Wje={class:"flex h-full"},Xje={class:"flex h-full flex-1 flex-col"},Gje=Li({__name:"RequestRoot",emits:["newTab"],setup(e){const t=Obe(),{toast:r}=cH(),{layout:n}=age(),a=Bs(VCe,So(Bt.parse({}))),{isSidebarOpen:o}=Kbe(),{activeCollection:i,activeExample:s,activeEnvironment:l,activeRequest:c,activeWorkspace:u,activeServer:d}=Eye(),{cookies:p,requestHistory:h,showSidebar:f,securitySchemes:m,events:g}=t,v=BTe(),b=So(),y=So(),O=So(new Set),w=So(null),x=hc((()=>{var e,t,r;return(null!=(e=i.value)&&e.useCollectionSecurity?null==(t=i.value)?void 0:t.selectedSecuritySchemeUids:null==(r=c.value)?void 0:r.selectedSecuritySchemeUids)??[]})),k=async()=>{var e,t,n,o,f,b;if(!c.value||!s.value||!i.value)return;O.value=(e=>{const t=new Set;return e&&["path","query","headers","cookies"].some((r=>{var n,a;return null==(a=null==(n=e.parameters)?void 0:n[r])?void 0:a.some((e=>{e.required&&""===e.value&&t.add(e.key)}))})),t})(s.value);const k="object"==typeof l.value?l.value.value:"{}",S=h$e.parse(k);S.error&&console.error("INVALID ENVIRONMENT!");const E=S.error||"object"!=typeof S.data?{}:S.data??{},T=(null==(e=u.value)?void 0:e.cookies.map((e=>p[e])).filter(_L))??[],A="Drafts"===(null==(n=null==(t=i.value)?void 0:t.info)?void 0:n.title)?void 0:d.value,[C,P]=Zje({request:c.value,example:s.value,selectedSecuritySchemeUids:x.value,proxyUrl:(null==(o=u.value)?void 0:o.proxyUrl)??"",environment:E,globalCookies:T,status:g.requestStatus,securitySchemes:m,server:A,pluginManager:v});if(null==(b=null==(f=a.value)?void 0:f.onRequestSent)||b.call(f,c.value.path??""),C)return void r(C.message,"error");y.value=P.controller;const[$,D]=await P.sendRequest();w.value=D,$?r($.message,"error"):h.push(_(D))},S=async()=>{var e;return null==(e=y.value)?void 0:e.abort("The request has been cancelled")};Yi((()=>{g.executeRequest.on(k),g.cancelRequest.on(S)})),y$e(),es((()=>g.executeRequest.off(k))),ul((()=>{var e;return null==(e=s.value)?void 0:e.parameters}),(()=>{O.value.clear()}),{deep:!0});const _=e=>{var t;try{return structuredClone(e)}catch{const r={...e};return null!=(t=e.response)&&t.data&&(e.response.data instanceof Blob||e.response.data instanceof ArrayBuffer?r.response.data=e.response.data:r.response.data=JSON.parse(JSON.stringify(e.response.data))),r}};return(e,t)=>(Pl(),Rl("div",{ref_key:"element",ref:b,class:zn(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0",{"!mr-0 !mb-0 !border-0":"modal"===Ao(n)}])},[Ao(f)?(Pl(),Nl(b$e,{key:0,modelValue:Ao(o),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(o)?o.value=e:null),class:zn(["absolute top-2 left-3 z-50",[{hidden:Ao(o)},{"xl:!flex":!Ao(o)},{"!flex":"modal"===Ao(n)}]])},null,8,["modelValue","class"])):Vl("",!0),Ul("div",Wje,[Ao(f)?(Pl(),Nl(zje,{key:0,onNewTab:t[1]||(t[1]=t=>e.$emit("newTab",t))})):Vl("",!0),Ul("div",Xje,[Fl(Ao(Nme),{invalidParams:O.value,selectedSecuritySchemeUids:x.value,requestResult:w.value},null,8,["invalidParams","selectedSecuritySchemeUids","requestResult"])])])],2))}}),Yje=a6(Gje,[["__scopeId","data-v-8a88f90a"]]),Kje=Object.freeze(Object.defineProperty({__proto__:null,default:Yje},Symbol.toStringTag,{value:"Module"})),Jje=" .:=+++++=================-\n .--#* :.\n .-:-** -.\n .:-::-+* =:\n .:-:::-=# ::\n .-:::----** ..\n .-:::::---=# ..\n :-::::::----** ..\n.:-::::::::----*= ..\n.-::::::::------+- ..\n..::::::::-------= ..\n .:::::----------++ ..\n .:::----------+**+*++*+*++*+++*++++++++++:.\n ------------+*+=-=======================.\n .----------+*+=========================:.\n :--------+*+=-========================.\n .=------+*+=-========================:.\n .=----+*+=-------=================+-.\n .----+*+=----------================.\n .:=-+*+=----------=-==============-\n .-+*+=----------------===========.\n .-+=------------------====-====:.",eBe={class:"flex-center flex w-full scale-75"},tBe={class:"relative"},rBe={class:"relative -ml-12"},nBe=Li({__name:"EmptyState",setup:e=>(e,t)=>(Pl(),Rl("div",eBe,[Ul("div",tBe,[Fl(zLe,{class:"keycap-hotkey right-14 border-transparent text-xl",hotkey:""}),Fl(ULe,{art:Ao(Jje),class:"text-c-3 !leading-[6px]"},null,8,["art"])]),Ul("div",rBe,[t[0]||(t[0]=Ul("div",{class:"keycap-hotkey right-16 text-xl"},"K",-1)),Fl(ULe,{art:Ao(Jje),class:"keycap-n !leading-[6px]"},null,8,["art"])])]))}),aBe=a6(nBe,[["__scopeId","data-v-6e1f579f"]]),oBe=Li({__name:"ViewLayout",setup(e){const{cx:t}=WU();return(e,r)=>(Pl(),Rl("div",qn(Ql(Ao(t)("flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-3"))),[fs(e.$slots,"default")],16))}}),iBe={class:"custom-scroll flex flex-col pr-0 *:border-t *:first:border-t-0 xl:flex-row *:xl:border-t-0 *:xl:border-l *:first:xl:border-l-0"},sBe=a6({},[["render",function(e,t){return Pl(),Rl("div",iBe,[fs(e.$slots,"default")])}]]);var lBe,cBe,uBe,dBe,pBe,hBe={};var fBe=(pBe||(pBe=1,hBe.quote=(cBe||(cBe=1,lBe=function(e){return e.map((function(e){return e&&"object"==typeof e?e.op.replace(/(.)/g,"\\$1"):/["\s]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['\\])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")})).join(" ")}),lBe),hBe.parse=function(){if(dBe)return uBe;dBe=1;for(var e="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",t=new RegExp("^"+e+"$"),r="|&;()<> \\t",n=/^#$/,a="",o=0;o<4;o++)a+=(4294967296*Math.random()).toString(16);var i=new RegExp("^"+a);function s(o,i,s){s||(s={});var l=s.escape||"\\",c=new RegExp(["("+e+")","((\\"+l+"['\""+r+"]|[^\\s'\""+r+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),u=function(e,t){for(var r,n=t.lastIndex,a=[];r=t.exec(e);)a.push(r),t.lastIndex===r.index&&(t.lastIndex+=1);return t.lastIndex=n,a}(o,c);if(0===u.length)return[];i||(i={});var d=!1;return u.map((function(e){var r=e[0];if(r&&!d){if(t.test(r))return{op:r};var s,c=!1,u=!1,p="",h=!1;for(s=0;s<r.length;s++){var f=r.charAt(s);if(h=h||!c&&("*"===f||"?"===f),u)p+=f,u=!1;else if(c)f===c?c=!1:"'"==c?p+=f:f===l?(s+=1,p+='"'===(f=r.charAt(s))||f===l||"$"===f?f:l+f):p+="$"===f?g():f;else if('"'===f||"'"===f)c=f;else{if(t.test(f))return{op:r};if(n.test(f)){d=!0;var m={comment:o.slice(e.index+s+1)};return p.length?[p,m]:[m]}f===l?u=!0:p+="$"===f?g():f}}return h?{op:"glob",pattern:p}:p}function g(){var e,t;s+=1;var n=r.charAt(s);if("{"===n){if(s+=1,"}"===r.charAt(s))throw new Error("Bad substitution: "+r.slice(s-2,s+1));if((e=r.indexOf("}",s))<0)throw new Error("Bad substitution: "+r.slice(s));t=r.slice(s,e),s=e}else if(/[*@#?$!_-]/.test(n))t=n,s+=1;else{var o=r.slice(s);(e=o.match(/[^\w\d_]/))?(t=o.slice(0,e.index),s+=e.index-1):(t=o,s=r.length)}return function(e,t,r){var n="function"==typeof e?e(r):e[r];return void 0===n&&""!=r?n="":void 0===n&&(n="$"),"object"==typeof n?""+a+JSON.stringify(n)+a:""+n}(i,0,t)}})).reduce((function(e,t){return void 0===t?e:e.concat(t)}),[])}return uBe=function(e,t,r){var n=s(e,t,r);return"function"!=typeof t?n:n.reduce((function(e,t){if("object"==typeof t)return e.concat(t);var r=t.split(RegExp("("+a+".*?"+a+")","g"));return 1===r.length?e.concat(r[0]):e.concat(r.filter(Boolean).map((function(e){return i.test(e)?JSON.parse(e.split(a)[1]):e})))}),[])},uBe}()),hBe);function mBe(e,t){t.method=e.next().value.toLowerCase()}function gBe(e,t){const r=new URL(e.next().value.replace(/['"]/g,""));t.servers=[r.origin],t.path="/"!==r.pathname?r.pathname:"",t.url=t.servers[0]+t.path;const n=yBe(r.search);t.queryParameters=t.queryParameters?[...t.queryParameters,...n]:n}function vBe(e,t){const r=e.next().value.split(/:(.*)/);t.headers=t.headers||{},void 0!==r[1]?t.headers[r[0].trim()]=r[1].trim():t.headers[r[0].trim()]=""}function bBe(e,t){const r=e.next().value.replace(/['"]/g,"").split("=");t.pathVariables=t.pathVariables||{},void 0!==r[1]?t.pathVariables[r[0].trim()]=r[1].trim():t.pathVariables[r[0].trim()]=""}function yBe(e){const t=[];return new URL(e,"http://example.com").searchParams.forEach(((e,r)=>{t.push({key:r,value:e})})),t}function OBe(e,t){const r=e.replace(/['"]/g,"").split(/:(.+)/);t.headers=t.headers||{},r[0]&&(void 0!==r[1]?t.headers[r[0].trim()]=r[1].trim():t.headers[r[0].trim()]="")}function wBe(e,t){const r=e.next().value;try{const e=btoa(r);t.headers=t.headers||{},t.headers.Authorization=`Basic ${e}`}catch(e){console.warn("Could not base64 encode these HTTP basic auth credentials:",r,e)}}function xBe(e,t){const r=e.next().value;t.headers=t.headers||{},t.headers.Cookie?t.headers.Cookie+=`; ${r}`:t.headers.Cookie=r.replace(/;$/,"")}function kBe(e,t,r){const n=e.next().value;if("string"==typeof n&&(n.startsWith("@")?t.body="":t.body=n,!t.url||r.includes("-G"))){const e=yBe(`?${t.body}`);t.queryParameters=t.queryParameters?[...t.queryParameters,...e]:e}}function SBe(e){const t=function(e){const t=fBe.parse(e).map((e=>"object"==typeof e&&"op"in e&&"glob"===e.op?e.pattern.trim():"string"==typeof e?e.trim():e)).filter((e=>""!==e)),r={url:""},n=t[Symbol.iterator]();let a=n.next().value;for(;a;)"-X"===a||"--request"===a?mBe(n,r):"--url"===a?gBe(n,r):"-H"===a||"--header"===a?vBe(n,r):"--data"===a||"-d"===a||"--data-raw"===a||"--data-urlencode"===a||"--data-binary"===a||"--data-ascii"===a?kBe(n,r,e):"string"!=typeof a||r.url||!a.startsWith("http")&&!a.startsWith("www.")?"-P"===a?bBe(n,r):"string"==typeof a&&a.toLowerCase().includes("content-type")?OBe(a,r):"-u"===a||"--user"===a?wBe(n,r):("-b"===a||"--cookie"===a)&&xBe(n,r):gBe([a][Symbol.iterator](),r),a=n.next().value;return r}(e),{method:r="get",url:n,body:a="",headers:o={},servers:i,queryParameters:s=[]}=t,l=new URL(n).pathname,c=null!=a&&a.includes("=")&&!a.startsWith("{")?"application/x-www-form-urlencoded":o["Content-Type"]||"",u=a?function(e){try{return JSON.parse(e)}catch{const t={};return e.split("&").forEach((e=>{const[r,n]=e.split("=");r&&n&&(t[decodeURIComponent(r)]=decodeURIComponent(n))})),t}}(a):{},d=[...Array.isArray(s)?s.map((({key:e,value:t})=>({name:e,in:"query",schema:{type:typeof t,examples:[t]}}))):[],...Object.entries(o||{}).map((([e,t])=>({name:e,in:"header",schema:{type:typeof t},example:t})))];return{method:r,url:n,path:l,headers:o,servers:i??[],...Object.keys(u).length>0&&{requestBody:{content:{[c]:{schema:{type:"object",properties:Object.fromEntries(Object.entries(u).map((([e,t])=>[e,{type:typeof t}])))},example:u}}}},parameters:d}}const _Be={class:"lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1"},EBe={class:"mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1"},TBe={class:"mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5"},ABe=Li({__name:"RequestSubpageHeader",props:{collection:{},operation:{},server:{},environment:{},envVariables:{},workspace:{}},emits:["hideModal","importCurl"],setup(e){const{hideClientButton:t,showSidebar:r,integration:n}=Obe(),{isSidebarOpen:a}=Kbe(),{layout:o}=age(),{currentRoute:i}=Lme();return(e,s)=>(Pl(),Rl("div",_Be,[Ul("div",EBe,[Ao(r)?(Pl(),Rl("div",{key:0,class:zn(["size-8",{hidden:"modal"===Ao(o)&&!Ao(a)}])},null,2)):Vl("",!0)]),Fl(Wbe,{collection:e.collection,envVariables:e.envVariables,environment:e.environment,operation:e.operation,server:e.server,workspace:e.workspace,onImportCurl:s[0]||(s[0]=t=>e.$emit("importCurl",t))},null,8,["collection","envVariables","environment","operation","server","workspace"]),Ul("div",TBe,["modal"===Ao(o)&&e.collection.documentUrl&&!Ao(t)?(Pl(),Nl(Ao(o6),{key:0,buttonSource:"modal",class:"!w-fit lg:-mr-1",integration:Ao(n)??e.collection.integration??null,source:"gitbook"===Ao(i).query.source?"gitbook":"api-reference",url:e.collection.documentUrl},null,8,["integration","source","url"])):Vl("",!0),"modal"===Ao(o)?(Pl(),Rl("button",{key:1,class:"app-exit-button gitbook-hidden zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",type:"button",onClick:s[1]||(s[1]=t=>e.$emit("hideModal"))},[Fl(Ao(U5),{icon:"Close",size:"lg",thickness:"2"}),s[3]||(s[3]=Ul("span",{class:"sr-only"},"Close Client",-1))])):Vl("",!0),"modal"===Ao(o)?(Pl(),Rl("button",{key:2,class:"text-c-1 hover:bg-b-2 active:text-c-1 gitbook-show -mr-1.5 rounded p-2",type:"button",onClick:s[2]||(s[2]=t=>e.$emit("hideModal"))},[Fl(Ao(U5),{icon:"Close",size:"md",thickness:"1.75"}),s[4]||(s[4]=Ul("span",{class:"sr-only"},"Close Client",-1))])):Vl("",!0)])]))}}),CBe=a6(ABe,[["__scopeId","data-v-c8df97c6"]]),PBe={class:"flex-1 px-2 py-1.5 whitespace-nowrap"},$Be=Li({__name:"DataTableText",props:{text:{}},setup:e=>(e,t)=>(Pl(),Nl(Lye,{class:"relative flex"},{default:ci((()=>[Ul("span",PBe,[fs(e.$slots,"default",{},(()=>[ql(Gn(e.text),1)]))])])),_:3}))}),DBe=["href"],MBe=Li({__name:"HelpfulLink",props:{href:{}},setup:e=>(e,t)=>(Pl(),Rl("a",{class:"decoration-c-3 cursor-help underline underline-offset-2",href:e.href,rel:"noopener noreferrer",target:"_blank"},[fs(e.$slots,"default")],8,DBe))}),RBe=[{name:"Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},{name:"Accept-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH"},{name:"Accept-CH-Lifetime",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},{name:"Accept-Charset",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset"},{name:"Accept-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding"},{name:"Accept-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},{name:"Accept-Patch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch"},{name:"Accept-Post",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Post"},{name:"Accept-Ranges",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"},{name:"Access-Control-Allow-Credentials",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},{name:"Access-Control-Allow-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},{name:"Access-Control-Allow-Methods",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},{name:"Access-Control-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},{name:"Access-Control-Expose-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},{name:"Access-Control-Max-Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},{name:"Access-Control-Request-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},{name:"Access-Control-Request-Method",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"},{name:"Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},{name:"Allow",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},{name:"Alt-Svc",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},{name:"Alt-Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},{name:"Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},{name:"Cache-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},{name:"Clear-Site-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},{name:"Connection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},{name:"Content-Disposition",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},{name:"Content-DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR"},{name:"Content-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},{name:"Content-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},{name:"Content-Length",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},{name:"Content-Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},{name:"Content-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},{name:"Content-Security-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},{name:"Content-Security-Policy-Report-Only",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only"},{name:"Content-Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},{name:"Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie"},{name:"Critical-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH"},{name:"Cross-Origin-Embedder-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},{name:"Cross-Origin-Opener-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},{name:"Cross-Origin-Resource-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},{name:"Date",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},{name:"Device-Memory",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory"},{name:"Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Digest"},{name:"DNT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT"},{name:"Downlink",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink"},{name:"DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},{name:"Early-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},{name:"ECT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT"},{name:"ETag",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},{name:"Expect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},{name:"Expect-CT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},{name:"Expires",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},{name:"Forwarded",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},{name:"From",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},{name:"Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},{name:"If-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},{name:"If-Modified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},{name:"If-None-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},{name:"If-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},{name:"If-Unmodified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},{name:"Keep-Alive",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},{name:"Large-Allocation",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},{name:"Last-Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},{name:"Link",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link"},{name:"Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},{name:"Max-Forwards",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards"},{name:"NEL",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},{name:"Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},{name:"Permissions-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},{name:"Pragma",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma"},{name:"Proxy-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},{name:"Proxy-Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},{name:"Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},{name:"Referer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},{name:"Referrer-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},{name:"Retry-After",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},{name:"RTT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT"},{name:"Save-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},{name:"Sec-CH-Prefers-Reduced-Motion",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},{name:"Sec-CH-Prefers-Reduced-Transparency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Transparency"},{name:"Sec-CH-UA",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},{name:"Sec-CH-UA-Arch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},{name:"Sec-CH-UA-Bitness",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},{name:"Sec-CH-UA-Full-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},{name:"Sec-CH-UA-Full-Version-List",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},{name:"Sec-CH-UA-Mobile",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},{name:"Sec-CH-UA-Model",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},{name:"Sec-CH-UA-Platform",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},{name:"Sec-CH-UA-Platform-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},{name:"Sec-Fetch-Dest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest"},{name:"Sec-Fetch-Mode",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode"},{name:"Sec-Fetch-Site",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site"},{name:"Sec-Fetch-User",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User"},{name:"Sec-GPC",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-GPC"},{name:"Sec-Purpose",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose"},{name:"Sec-WebSocket-Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept"},{name:"Server",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},{name:"Server-Timing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},{name:"Service-Worker-Navigation-Preload",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload"},{name:"Set-Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},{name:"SourceMap",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap"},{name:"Strict-Transport-Security",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},{name:"TE",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},{name:"Timing-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin"},{name:"Tk",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Tk"},{name:"Trailer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},{name:"Transfer-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},{name:"Upgrade",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade"},{name:"Upgrade-Insecure-Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},{name:"User-Agent",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"},{name:"Vary",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},{name:"Via",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},{name:"Viewport-Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},{name:"Want-Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Want-Digest"},{name:"Warning",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},{name:"Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},{name:"WWW-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},{name:"X-Content-Type-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},{name:"X-DNS-Prefetch-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-For",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Forwarded-Proto",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},{name:"Non-standard",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Non-standard"},{name:"X-Frame-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},{name:"X-XSS-Protection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},{name:"Cf-Cache-Status",url:"https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#cloudflare-cache-responses"},{name:"Cf-Ray",url:"https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-ray"},{name:"Report-To",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to"},{name:"X-Cloud-Trace-Context",url:"https://cloud.google.com/trace/docs/trace-context#legacy-http-header"},{name:"Speculation-Rules",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Speculation-Rules"}],NBe={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},IBe={key:1,class:"text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"},LBe=Li({__name:"RequestHeaders",props:{headers:{}},setup(e){const t=e=>RBe.find((t=>t.name.toLowerCase()===e.toLowerCase()));return(e,r)=>(Pl(),Nl(AOe,{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:ci((()=>r[0]||(r[0]=[ql("Request Headers")]))),default:ci((()=>[e.headers.length?(Pl(),Rl("div",NBe,[Fl(mOe,{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:ci((()=>[Fl(Bye,{class:"sr-only !block"},{default:ci((()=>[Fl(Ao(KEe),null,{default:ci((()=>r[1]||(r[1]=[ql("Header Key")]))),_:1,__:[1]}),Fl(Ao(KEe),null,{default:ci((()=>r[2]||(r[2]=[ql("Header Value")]))),_:1,__:[2]})])),_:1}),(Pl(!0),Rl(Sl,null,ps(e.headers,(e=>(Pl(),Nl(Bye,{key:e.name,class:"group/row text-c-1"},{default:ci((()=>[Fl($Be,{class:"bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0"},{default:ci((()=>{var r;return["string"==typeof(null==(r=t(e.name))?void 0:r.url)?(Pl(),Nl(MBe,{key:0,class:"decoration-c-3",href:t(e.name).url},{default:ci((()=>[ql(Gn(e.name),1)])),_:2},1032,["href"])):(Pl(),Rl(Sl,{key:1},[ql(Gn(e.name),1)],64))]})),_:2},1024),Fl($Be,{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})])):(Pl(),Rl("div",IBe," No Headers "))])),_:1},8,["itemCount"]))}}),jBe=["download","href"],BBe=Li({__name:"ResponseBodyDownload",props:{href:{},type:{},filename:{}},setup(e){const t=e,r=hc((()=>{var e;const r=(null==(e=Hje(t.type??""))?void 0:e.extension)??".unknown";return t.filename?t.filename:`response${r}`}));return(e,t)=>(Pl(),Rl("a",{class:"text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",download:`${r.value}`,href:e.href,onClick:t[0]||(t[0]=Su((()=>{}),["stop"]))},[Fl(Ao(U5),{icon:"Download",size:"xs"}),t[1]||(t[1]=Ul("span",null,[Ul("span",null,"Download"),Ul("span",{class:"sr-only"},"Response Body")],-1))],8,jBe))}}),UBe={class:"flex justify-center px-2 py-3"},FBe={class:"text-c-3 p-2 text-sm"},QBe=a6({},[["render",function(e,t){return Pl(),Rl("div",UBe,[Ul("div",FBe,[fs(e.$slots,"default")])])}]]),zBe=["src"],qBe=["src","type"],HBe=["src","type"],VBe=["data","type"],ZBe=Li({__name:"ResponseBodyPreview",props:{src:{},type:{},mode:{},alpha:{type:Boolean,default:!1}},setup(e){const t=So(!1);return ul((()=>e.src),(()=>t.value=!1)),(e,r)=>!t.value&&e.src?(Pl(),Rl("div",{key:0,class:zn(["flex justify-center overflow-auto rounded-b",{"bg-preview p-2":e.alpha}])},["image"===e.mode?(Pl(),Rl("img",{key:0,class:zn(["h-full max-w-full",{rounded:e.alpha}]),src:e.src,onError:r[0]||(r[0]=e=>t.value=!0)},null,42,zBe)):"video"===e.mode?(Pl(),Rl("video",{key:1,autoplay:"",controls:"",width:"100%",onError:r[1]||(r[1]=e=>t.value=!0)},[Ul("source",{src:e.src,type:e.type},null,8,qBe)],32)):"audio"===e.mode?(Pl(),Rl("audio",{key:2,class:"my-12",controls:"",onError:r[2]||(r[2]=e=>t.value=!0)},[Ul("source",{src:e.src,type:e.type},null,8,HBe)],32)):(Pl(),Rl("object",{key:3,class:"aspect-[4/3] w-full",data:e.src,type:e.type,onError:r[3]||(r[3]=e=>t.value=!0)},null,40,VBe))],2)):(Pl(),Nl(QBe,{key:1},{default:ci((()=>r[4]||(r[4]=[ql("Preview unavailable")]))),_:1,__:[4]}))}}),WBe=a6(ZBe,[["__scopeId","data-v-0956ad2d"]]),XBe={class:"body-raw grid min-h-0 overflow-hidden p-px outline-none has-[:focus-visible]:outline"},GBe={key:0,class:"scalar-code-copy"},YBe={class:"body-raw-scroller relative overflow-auto overscroll-contain",tabindex:"0"},KBe=Li({__name:"ResponseBodyRaw",props:{content:{},language:{}},setup(e){const t=e,r=So(null),{copyToClipboard:n}=dH(),{codeMirror:a}=xhe({codeMirrorRef:r,readOnly:!0,lineNumbers:!0,content:Io((()=>pL(t.content))),language:Io((()=>t.language)),forceFoldGutter:!0}),o=()=>{var e;return(null==(e=a.value)?void 0:e.state.doc.toString())||""};return(e,t)=>(Pl(),Rl("div",XBe,[o()?(Pl(),Rl("div",GBe,[Ul("button",{class:"copy-button",type:"button",onClick:t[0]||(t[0]=e=>Ao(n)(o()))},[t[1]||(t[1]=Ul("span",{class:"sr-only"},"Copy content",-1)),Fl(Ao(U5),{icon:"Clipboard",size:"md"})])])):Vl("",!0),Ul("div",YBe,[Ul("div",{ref_key:"codeMirrorRef",ref:r},null,512)])]))}}),JBe=a6(KBe,[["__scopeId","data-v-27e5c2e0"]]),eUe={class:"text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5"},tUe=Li({__name:"ResponseBodyToggle",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup:e=>(e,t)=>(Pl(),Rl("div",eUe,[Ul("button",{class:zn(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":e.modelValue}]),type:"button",onClick:t[0]||(t[0]=Su((t=>e.$emit("update:modelValue",!0)),["stop"]))}," Preview ",2),Ul("button",{class:zn(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":!e.modelValue}]),type:"button",onClick:t[1]||(t[1]=Su((t=>e.$emit("update:modelValue",!1)),["stop"]))}," Raw ",2)]))}),rUe={key:0,class:"bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"},nUe={class:"box-content flex min-h-8 items-center justify-between border-y px-3"},aUe={class:"text-xxs font-code leading-3"},oUe=Li({__name:"ResponseBody",props:{title:{},layout:{},data:{},headers:{}},setup(e){const t=e,r=So(!0),n=hc((()=>{var e;return!(null==(e=c.value)||!e.raw||!c.value.preview)})),a=hc((()=>r.value||!n.value)),o=hc((()=>!r.value||!n.value)),{mimeType:i,attachmentFilename:s,dataUrl:l}=vye({data:Io(t,"data"),headers:Io(t,"headers")}),c=hc((()=>Hje(i.value.essence)));return(e,t)=>(Pl(),Nl(AOe,{class:"max-h-content overflow-y-hidden",layout:e.layout},hs({title:ci((()=>[ql(Gn(e.title),1)])),default:ci((()=>{var s,u,d,p;return[e.data?(Pl(),Rl("div",rUe,[Ul("div",nUe,[Ul("span",aUe,Gn(Ao(i).essence),1),n.value?(Pl(),Nl(tUe,{key:0,modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=e=>r.value=e)},null,8,["modelValue"])):Vl("",!0)]),null!=(s=c.value)&&s.raw&&o.value?(Pl(),Nl(JBe,{key:Ao(l),content:e.data,language:c.value.language},null,8,["content","language"])):Vl("",!0),null!=(u=c.value)&&u.preview&&a.value?(Pl(),Nl(WBe,{key:Ao(l),alpha:c.value.alpha,mode:c.value.preview,src:Ao(l),type:Ao(i).essence},null,8,["alpha","mode","src","type"])):Vl("",!0),null!=(d=c.value)&&d.raw||null!=(p=c.value)&&p.preview?Vl("",!0):(Pl(),Nl(QBe,{key:2},{default:ci((()=>t[1]||(t[1]=[ql(" Binary file ")]))),_:1,__:[1]}))])):Vl("",!0)]})),_:2},[e.data&&Ao(l)?{name:"actions",fn:ci((()=>[Fl(BBe,{filename:Ao(s),href:Ao(l),type:Ao(i).essence},null,8,["filename","href","type"])])),key:"0"}:void 0]),1032,["layout"]))}}),iUe=a6(oUe,[["__scopeId","data-v-17966bf4"]]),sUe={class:"flex w-full items-center justify-between"},lUe={key:0,class:"mr-2 flex items-center gap-2"},cUe={key:0,class:"text-red bg-b-danger sticky top-0 border-b p-2"},uUe={key:1,class:"p-2"},dUe=Li({__name:"ResponseBodyStreaming",props:{reader:{}},setup(e){const t=KU(),r=So(""),n=So(null),a=new TextDecoder,o=So(null),i=()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight)};return ul(r,(()=>{Ko(i)})),Yi((()=>{t.startLoading(),async function(){try{for(;t.isLoading;){const{done:n,value:o}=await e.reader.read();if(n){t.stopLoading();break}o&&(r.value+=a.decode(o,{stream:!0}))}}catch(e){console.error("Error reading stream:",e),t.stopLoading(),n.value=e}finally{r.value+=a.decode()}}(),n.value=null})),es((()=>{e.reader.cancel(),t.stopLoading()})),(e,a)=>(Pl(),Nl(AOe,{class:"max-h-content overflow-y-hidden"},{title:ci((()=>[Ul("div",sUe,[a[1]||(a[1]=Ul("div",null,"Body",-1)),Ao(t).isLoading?(Pl(),Rl("div",lUe,[Fl(Ao(tF),{loadingState:Ao(t),size:"xs"},null,8,["loadingState"]),a[0]||(a[0]=Ul("span",{class:"text-c-2"}," Listening… ",-1))])):Vl("",!0)])])),default:ci((()=>[Ul("div",{ref_key:"contentContainer",ref:o,class:"text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"},[n.value?(Pl(),Rl("div",cUe,Gn(n.value.message),1)):Vl("",!0),r.value?(Pl(),Rl("div",uUe,Gn(r.value),1)):Vl("",!0)],512)])),_:1}))}}),pUe=Li({__name:"ResponseBodyVirtual",props:{content:{},data:{},headers:{}},setup(e){const t=e,r=hc((()=>oL(t.content))),{mimeType:n,attachmentFilename:a,dataUrl:o}=vye({data:Io(t,"data"),headers:Io(t,"headers")});return(e,t)=>(Pl(),Nl(AOe,{class:"!max-h-100% response-body-virtual overflow-x-auto"},hs({title:ci((()=>[t[0]||(t[0]=ql("Body"))])),default:ci((()=>[t[1]||(t[1]=Ul("div",{class:"font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5"}," This response body is massive! Syntax highlighting won't work here. ",-1)),Fl(Ao(H8),{containerClass:"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",contentClass:"language-plaintext whitespace-pre font-code text-base",lineHeight:20,text:r.value},null,8,["text"])])),_:2},[Ao(o)?{name:"actions",fn:ci((()=>[Fl(BBe,{filename:Ao(a),href:Ao(o),type:Ao(n).essence},null,8,["filename","href","type"])])),key:"0"}:void 0]),1024))}}),hUe={key:1,class:"text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"},fUe=Li({__name:"ResponseCookies",props:{cookies:{}},setup:e=>(e,t)=>(Pl(),Nl(AOe,{defaultOpen:!1},{title:ci((()=>t[0]||(t[0]=[ql("Cookies")]))),default:ci((()=>[(Pl(),Rl(Sl,{key:0},[e.cookies.length?(Pl(),Nl(mOe,{key:0,class:"flex-1",columns:["",""]},{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(e.cookies,(e=>(Pl(),Nl(Bye,{key:e.name},{default:ci((()=>[Fl($Be,{text:e.name},null,8,["text"]),Fl($Be,{text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})):(Pl(),Rl("div",hUe," No cookies "))],64))])),_:1}))}),mUe={class:"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize"},gUe={key:0,class:"scalar-version-number"},vUe={class:"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm"},bUe=Li({__name:"ResponseEmpty",props:{collection:{},operation:{},workspace:{},numWorkspaceRequests:{}},setup(e){const{events:t,requestMutators:r}=Obe(),n=jme(),a=Lme(),{layout:o}=age(),i=()=>{var n;const o=null!=(n=e.operation.tags)&&n.length?{tags:e.operation.tags[0]?[e.operation.tags[0]]:[]}:{},i=r.add(o,e.collection.uid);i&&(a.push({name:"request",params:{workspace:e.workspace.uid,request:i.uid}}),Ko((()=>{t.hotKeys.emit({focusAddressBar:new KeyboardEvent("keydown",{key:"l"})})})))},s=e=>{null!=e&&e.createNew&&"request"===n.name&&i()};return Yi((()=>t.hotKeys.on(s))),es((()=>t.hotKeys.off(s))),(e,r)=>(Pl(),Rl("div",mUe,[Ul("div",{class:zn(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{"hidden opacity-0":e.numWorkspaceRequests<=1&&"modal"!==Ao(o)}])},["modal"!==Ao(o)?(Pl(),Rl("div",gUe,[ql(" Scalar App V"+Gn(Ao("2.5.22"))+" Beta ",1),r[3]||(r[3]=Ul("div",{class:"mt-2"},[Ul("a",{href:"https://github.com/scalar/scalar/issues/2669",target:"_blank"}," Roadmap ")],-1))])):Vl("",!0),r[4]||(r[4]=Ul("a",{class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",target:"_blank"}," Powered By Scalar.com ",-1)),Fl(ULe,{art:Ao(" .,,uod8B8bou,,.\n ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n |||| '\"\"^^!!||||||||||TFPRBBBVT!:...!\n |||| '\"\"^^!!|||||?!:.......!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n ||||, ||||.........`\n |||||!!-._ ||||.......;.\n ':!|||||||||!!-._ ||||.....bBBBBWdou,.\n bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n '\"^!|Tf9988888888888888888888888888888888!::..`\n '\"^!|Tf998888888888888888888888889!! '`\n '\"^!|Tf9988888888888888888!!` iBBbo.\n '\"^!|Tf998888888889!` WBBBBbo.\n '\"^!|Tf9989!` YBBBP^'\n '\"^!` `\n"),class:"text-c-3"},null,8,["art"])],2),"modal"!==Ao(o)?(Pl(),Rl("div",{key:0,class:zn(["hidden h-[calc(100%_-_50px)] items-center justify-center pb-5",{"!flex opacity-100":1==e.numWorkspaceRequests}])},[Fl(aBe)],2)):Vl("",!0),Ul("div",vUe,["modal"!==Ao(o)?(Pl(),Rl("button",{key:0,class:"flex items-center gap-1.5",type:"button",onClick:r[0]||(r[0]=e=>Ao(t).commandPalette.emit())},[r[5]||(r[5]=ql(" Get Started ")),Fl(zLe,{hotkey:"k"})])):Vl("",!0),"desktop"===Ao(o)?(Pl(),Rl("button",{key:1,class:"flex items-center gap-1.5",type:"button",onClick:r[1]||(r[1]=e=>i())},[r[6]||(r[6]=ql(" New Request ")),Fl(zLe,{hotkey:"N"})])):Vl("",!0),Ul("button",{class:"flex items-center gap-1.5",type:"button",onClick:r[2]||(r[2]=e=>Ao(t).executeRequest.emit())},[r[7]||(r[7]=ql(" Send Request ")),Fl(zLe,{hotkey:"↵"})])])]))}}),yUe=a6(bUe,[["__scopeId","data-v-bb2369d4"]]),OUe={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},wUe={key:1,class:"text-c-3 bg-b-1 flex min-h-12 items-center justify-center rounded border px-4 text-base"},xUe=Li({__name:"ResponseHeaders",props:{headers:{}},setup(e){const t=e=>RBe.find((t=>t.name.toLowerCase()===e.toLowerCase()));return(e,r)=>(Pl(),Nl(AOe,{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:ci((()=>r[0]||(r[0]=[ql("Response Headers")]))),default:ci((()=>[e.headers.length?(Pl(),Rl("div",OUe,[Fl(mOe,{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:ci((()=>[Fl(Bye,{class:"sr-only !block"},{default:ci((()=>[Fl(Ao(KEe),null,{default:ci((()=>r[1]||(r[1]=[ql("Header Key")]))),_:1,__:[1]}),Fl(Ao(KEe),null,{default:ci((()=>r[2]||(r[2]=[ql("Header Value")]))),_:1,__:[2]})])),_:1}),(Pl(!0),Rl(Sl,null,ps(e.headers,(e=>(Pl(),Nl(Bye,{key:e.name,class:"group/row text-c-1"},{default:ci((()=>[Fl($Be,{class:"bg-b-1 sticky left-0 z-1 max-w-48 group-first/row:border-t-0"},{default:ci((()=>{var r;return["string"==typeof(null==(r=t(e.name))?void 0:r.url)?(Pl(),Nl(MBe,{key:0,class:"decoration-c-3",href:t(e.name).url},{default:ci((()=>[ql(Gn(e.name),1)])),_:2},1032,["href"])):(Pl(),Rl(Sl,{key:1},[ql(Gn(e.name),1)],64))]})),_:2},1024),Fl($Be,{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])])),_:2},1024)))),128))])),_:1})])):(Pl(),Rl("div",wUe," No Headers "))])),_:1},8,["itemCount"]))}}),kUe={key:0,class:"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"},SUe=Li({__name:"ResponseLoadingOverlay",setup(e){const{events:t}=Obe(),r=KU(),n=So();return t.requestStatus.on((e=>{"start"===e?n.value=setTimeout((()=>r.startLoading()),1e3):(clearTimeout(n.value),n.value=void 0,r.stopLoading())})),(e,n)=>(Pl(),Nl(Tc,null,{default:ci((()=>[Ao(r).isLoading?(Pl(),Rl("div",kUe,[Fl(Ao(tF),{class:"text-c-3",loadingState:Ao(r),size:"3xl"},null,8,["loadingState"]),Fl(Ao(aF),{variant:"ghost",onClick:n[0]||(n[0]=e=>Ao(t).cancelRequest.emit())},{default:ci((()=>n[1]||(n[1]=[ql(" Cancel ")]))),_:1,__:[1]})])):Vl("",!0)])),_:1}))}}),_Ue=a6(SUe,[["__scopeId","data-v-62b8db3f"]]);function EUe(e,t={}){if(!Number.isFinite(e))throw new TypeError("Expected a finite number");t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);const r=[],n=(e,n,a,o)=>{if(!(0!==r.length&&t.colonNotation||0!==e||t.colonNotation&&"m"===a))return;let i,s;if(o=(o||e||"0").toString(),t.colonNotation){i=r.length>0?":":"",s="";const e=o.includes(".")?o.split(".")[0].length:o.length,t=r.length>0?2:1;o="0".repeat(Math.max(0,t-e))+o}else i="",s=t.verbose?" "+(l=n,1===e?l:`${l}s`):a;var l;r.push(i+o+s)},a=function(e){if("number"!=typeof e)throw new TypeError("Expected a number");const t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(1e3*e)%1e3,nanoseconds:t(1e6*e)%1e3}}(e);if(n(Math.trunc(a.days/365),"year","y"),n(a.days%365,"day","d"),n(a.hours,"hour","h"),n(a.minutes,"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(n(a.seconds,"second","s"),t.formatSubMilliseconds)n(a.milliseconds,"millisecond","ms"),n(a.microseconds,"microsecond","µs"),n(a.nanoseconds,"nanosecond","ns");else{const e=a.milliseconds+a.microseconds/1e3+a.nanoseconds/1e6,r="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,o=e>=1?Math.round(e):Math.ceil(e),i=r?e.toFixed(r):o;n(Number.parseFloat(i),"millisecond","ms",i)}else{const r=((e,t)=>{const r=Math.floor(e*10**t+1e-7);return(Math.round(r)/10**t).toFixed(t)})(e/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),a=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,"");n(Number.parseFloat(a),"second","s",a)}if(0===r.length)return"0"+(t.verbose?" milliseconds":"ms");if(t.compact)return r[0];if("number"==typeof t.unitCount){const e=t.colonNotation?"":" ";return r.slice(0,Math.max(t.unitCount,1)).join(e)}return t.colonNotation?r.join(""):r.join(" ")}const TUe={class:"text-c-1 flex gap-1.5"},AUe={key:0},CUe={key:0},PUe={key:1},$Ue=Li({__name:"ResponseMetaInformation",props:{response:{}},setup(e){const t=e,{events:r}=Obe(),n=So(),a=So(0);r.requestStatus.on((e=>{"start"===e?n.value=setInterval((()=>a.value+=1e3),1e3):(clearInterval(n.value),n.value=void 0,a.value=0)}));const o=e=>{var t,r;const n=Number.parseInt((null==(t=e.headers)?void 0:t["Content-Length"])||(null==(r=e.headers)?void 0:r["content-length"])||"0",10);return n?function(e,t){if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const r=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?RX:MX:t.binary?DX:$X,n=t.space?" ":"";if(t.signed&&0===e)return` 0${n}${r[0]}`;const a=e<0,o=a?"-":t.signed?"+":"";let i;if(a&&(e=-e),void 0!==t.minimumFractionDigits&&(i={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(i={maximumFractionDigits:t.maximumFractionDigits,...i}),e<1)return o+NX(e,t.locale,i)+n+r[0];const s=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),r.length-1);return e/=(t.binary?1024:1e3)**s,i||(e=e.toPrecision(3)),o+NX(Number(e),t.locale,i)+n+r[s]}(n):void 0},i=hc((()=>{const e=t.response.status;if(e)return DL[e]??void 0}));return(e,t)=>(Pl(),Rl("div",TUe,[n.value&&a.value?(Pl(),Rl("span",AUe,Gn(Ao(EUe)(a.value)),1)):(Pl(),Rl(Sl,{key:1},[Ul("span",null,[t[0]||(t[0]=Ul("span",{class:"sr-only"},"Response Information, Duration:",-1)),ql(" "+Gn(Ao(EUe)(e.response.duration)),1)]),o(e.response)?(Pl(),Rl("span",CUe,[t[1]||(t[1]=Ul("span",{class:"sr-only"},", Size:",-1)),ql(" "+Gn(o(e.response)),1)])):Vl("",!0),i.value?(Pl(),Rl(Sl,{key:1},[t[2]||(t[2]=Ul("span",{class:"sr-only"},", Status:",-1)),i.value.url?(Pl(),Nl(MBe,{key:0,class:"flex items-center gap-1.5",href:i.value.url},{default:ci((()=>[ql(Gn(e.response.status)+" "+Gn(i.value.name)+" ",1),Ul("span",{class:"block h-1.5 w-1.5 rounded-full",style:jn({backgroundColor:i.value.color})},null,4)])),_:1},8,["href"])):(Pl(),Rl("span",PUe,[ql(Gn(e.response.status)+" "+Gn(i.value.name)+" ",1),Ul("span",{class:"block h-1.5 w-1.5 rounded-full",style:jn({backgroundColor:i.value.color})},null,4)]))],64)):Vl("",!0)],64))]))}}),DUe={class:"flex h-8 flex-1 items-center"},MUe=["id","role"],RUe=2e5,NUe=Li({__name:"ResponseSection",props:{collection:{},operation:{},workspace:{},numWorkspaceRequests:{},response:{},requestResult:{}},setup(e){const t=BTe().getViewComponents("response.section"),r=hc((()=>{var t;const r=null==(t=e.response)?void 0:t.headers;return r?Object.keys(r).map((e=>({name:e,value:r[e]??"",required:!1}))):[]})),n=hc((()=>{var t;return(null==(t=e.response)?void 0:t.cookieHeaderKeys.flatMap((t=>{var r,n;const a=null==(n=null==(r=e.response)?void 0:r.headers)?void 0:n[t];return a?{name:t,value:a,required:!1}:[]})))??[]})),a=["Cookies","Headers","Body"],o=So("All"),i=hc((()=>["All",...a])),s=hc((()=>Object.fromEntries(i.value.map((e=>[e,ji()]))))),l=hc((()=>{var t,r;if(!e.response||!("size"in e.response))return!1;const n=(null==(t=e.response.headers)?void 0:t["content-type"])||(null==(r=e.response.headers)?void 0:r["Content-Type"]);return!(!n||(e.response.size??0)<=RUe||n.includes("text/html"))&&["text/","application/json","application/ld+json","application/problem+json","application/vnd.api+json","application/xml","application/atom+xml","application/rss+xml","application/problem+xml","application/javascript","application/ecmascript","application/x-yaml","application/yaml","application/x-httpd-php","application/x-sh","application/x-perl","application/x-python","application/x-ruby","application/x-java-source","application/x-www-form-urlencoded"].some((e=>n.includes(e)))&&(e.response.size??0)>RUe})),c=hc((()=>{var t;return(null==(t=e.requestResult)?void 0:t.request.parameters.headers.filter((e=>e.enabled)).map((e=>({name:e.key,value:e.value,required:!0}))))??[]}));return(e,a)=>(Pl(),Nl(XEe,{"aria-label":"Response"},{title:ci((()=>[Ul("div",DUe,[Ul("div",{"aria-live":"polite",class:zn(["flex items-center",{"animate-response-heading":e.response}])},[a[1]||(a[1]=Ul("span",{class:"response-heading pointer-events-none absolute"}," Response ",-1)),e.response?(Pl(),Nl($Ue,{key:0,class:"animate-response-children",response:e.response},null,8,["response"])):Vl("",!0)],2),Fl(ZEe,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=e=>o.value=e),filterIds:s.value,filters:i.value},null,8,["modelValue","filterIds","filters"])])])),default:ci((()=>{var a,i,u;return[Ul("div",{id:s.value.All,class:zn(["custom-scroll response-section-content relative grid h-full justify-stretch",{"content-start":e.response}]),role:"All"===o.value&&e.response?"tabpanel":"none"},[e.response?(Pl(),Rl(Sl,{key:1},["All"===o.value||"Cookies"===o.value?(Pl(),Nl(fUe,{key:0,class:"response-section-content-cookies",id:s.value.Cookies,cookies:n.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","cookies","role"])):Vl("",!0),"All"===o.value||"Headers"===o.value?(Pl(),Nl(LBe,{key:1,class:"response-section-content-headers",id:s.value.Headers,headers:c.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","headers","role"])):Vl("",!0),"All"===o.value||"Headers"===o.value?(Pl(),Nl(xUe,{key:2,class:"response-section-content-headers",id:s.value.Headers,headers:r.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","headers","role"])):Vl("",!0),(Pl(!0),Rl(Sl,null,ps(Ao(t),(e=>(Pl(),Nl(Ao(PX),{key:e.component},{default:ci((()=>[ui((Pl(),Nl(cs(e.component),Gl({ref_for:!0},e.props??{}),null,16)),[[Fc,"All"===o.value||o.value===e.title]])])),_:2},1024)))),128)),"All"===o.value||"Body"===o.value?(Pl(),Rl(Sl,{key:3},["reader"in e.response?(Pl(),Nl(dUe,{key:0,class:"response-section-content-body",id:s.value.Body,reader:e.response.reader},null,8,["id","reader"])):l.value&&"string"==typeof(null==(a=e.response)?void 0:a.data)?(Pl(),Nl(pUe,{key:1,id:s.value.Body,content:e.response.data,data:null==(i=e.response)?void 0:i.data,headers:r.value,role:"All"===o.value?"none":"tabpanel"},null,8,["id","content","data","headers","role"])):(Pl(),Nl(iUe,{key:2,class:"response-section-content-body",id:s.value.Body,layout:"client",active:!0,data:null==(u=e.response)?void 0:u.data,headers:r.value,role:"All"===o.value?"none":"tabpanel",title:"Body"},null,8,["id","data","headers","role"]))],64)):Vl("",!0)],64)):(Pl(),Nl(yUe,{key:0,collection:e.collection,operation:e.operation,workspace:e.workspace,numWorkspaceRequests:e.numWorkspaceRequests},null,8,["collection","operation","workspace","numWorkspaceRequests"])),Fl(_Ue)],10,MUe)]})),_:1}))}}),IUe=a6(NUe,[["__scopeId","data-v-7138ed84"]]),LUe={class:"flex h-full"},jUe={key:0,class:"flex h-full flex-1 flex-col"},BUe=Li({__name:"Request",props:{invalidParams:{},selectedSecuritySchemeUids:{},requestResult:{}},emits:["newTab"],setup(e){const{events:t}=Obe(),{isSidebarOpen:r}=Kbe(),n=Obe(),{layout:a}=age(),{activeCollection:o,activeExample:i,activeRequest:s,activeWorkspace:l,activeServer:c,activeEnvVariables:u,activeEnvironment:d,activeWorkspaceRequests:p}=Eye(),{modalState:h,requestHistory:f}=n,m=hc((()=>[...f].reverse().find((e=>{var t;return e.request.uid===(null==(t=i.value)?void 0:t.uid)}))));function g(e){var r;t.commandPalette.emit({commandName:"Import from cURL",metaData:{parsedCurl:SBe(e),collectionUid:null==(r=o.value)?void 0:r.uid}})}return(e,t)=>Ao(o)&&Ao(l)?(Pl(),Rl("div",{key:0,class:zn(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0",{"!mr-0 !mb-0 !border-0":"modal"===Ao(a)}])},[Ul("div",LUe,[Ao(s)?(Pl(),Rl("div",jUe,[Fl(CBe,{modelValue:Ao(r),"onUpdate:modelValue":t[0]||(t[0]=e=>ko(r)?r.value=e:null),collection:Ao(o),envVariables:Ao(u),environment:Ao(d),operation:Ao(s),server:Ao(c),workspace:Ao(l),onHideModal:t[1]||(t[1]=()=>Ao(h).hide()),onImportCurl:g},null,8,["modelValue","collection","envVariables","environment","operation","server","workspace"]),Fl(oBe,null,{default:ci((()=>[Ao(i)?(Pl(),Nl(sBe,{key:0,class:zn(["flex-1",[Ao(r)?"sidebar-active-hide-layout":""]])},{default:ci((()=>{var t;return[Fl(VTe,{collection:Ao(o),envVariables:Ao(u),environment:Ao(d),example:Ao(i),invalidParams:e.invalidParams,operation:Ao(s),selectedSecuritySchemeUids:e.selectedSecuritySchemeUids,server:Ao(c),workspace:Ao(l)},null,8,["collection","envVariables","environment","example","invalidParams","operation","selectedSecuritySchemeUids","server","workspace"]),Fl(IUe,{collection:Ao(o),operation:Ao(s),workspace:Ao(l),requestResult:e.requestResult,numWorkspaceRequests:Ao(p).length,response:null==(t=m.value)?void 0:t.response},null,8,["collection","operation","workspace","requestResult","numWorkspaceRequests","response"])]})),_:1},8,["class"])):Vl("",!0)])),_:1})])):(Pl(),Nl(aBe,{key:1}))])],2)):(Pl(),Nl(aBe,{key:1}))}}),UUe=a6(BUe,[["__scopeId","data-v-0100effe"]]),FUe=Object.freeze(Object.defineProperty({__proto__:null,default:UUe},Symbol.toStringTag,{value:"Module"})),QUe=["for"],zUe=["id","placeholder","value"],qUe=Li({__name:"LabelInput",props:{inputId:{},placeholder:{},value:{},layout:{}},emits:["updateValue"],setup(e,{emit:t}){const r=t,{cx:n}=WU(),a=e=>{const t=e.target;r("updateValue",t.value)};return(e,t)=>(Pl(),Rl("div",qn(Ql(Ao(n)("flex-1 flex gap-1 items-center pointer-events-none group"))),["modal"!==e.layout?(Pl(),Rl(Sl,{key:0},[Ul("label",Gl(Ao(n)("absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text"),{for:e.inputId}),null,16,QUe),Ul("input",Gl(Ao(n)("flex-1 text-c-1 rounded pointer-events-auto relative w-full pl-1.25 -ml-0.5 md:-ml-1.25 h-8 group-hover-input has-[:focus-visible]:outline z-10"),{id:e.inputId,placeholder:e.placeholder,value:e.value,onInput:a}),null,16,zUe)],64)):(Pl(),Rl("span",qn(Gl({key:1},Ao(n)("flex items-center text-c-1 h-8"))),Gn(e.value),17))],16))}}),HUe=a6(qUe,[["__scopeId","data-v-fced736a"]]),VUe=["aria-label"],ZUe={class:"group relative ml-1.25"},WUe=Li({__name:"CollectionInfoForm",setup(e){const{activeCollection:t}=Eye(),{collectionMutators:r}=Obe(),n=hc((()=>{var e;return(null==(e=null==t?void 0:t.value)?void 0:e["x-scalar-icon"])||"interface-content-folder"})),a=e=>{t.value&&r.edit(t.value.uid,"info.title",e)},o=hc((()=>{var e,r,n,a,o,i,s;return{icon:null==(e=null==t?void 0:t.value)?void 0:e["x-scalar-icon"],title:null==(n=null==(r=null==t?void 0:t.value)?void 0:r.info)?void 0:n.title,description:null==(o=null==(a=null==t?void 0:t.value)?void 0:a.info)?void 0:o.description,version:null==(s=null==(i=null==t?void 0:t.value)?void 0:i.info)?void 0:s.version}}));return(e,i)=>(Pl(),Rl("div",{"aria-label":`Collection: ${o.value.title}`,class:"mx-auto flex h-fit w-full flex-col gap-2 pt-6 pb-3 md:mx-auto md:max-w-[720px]"},[Fl(KLe,{modelValue:n.value,placement:"bottom-start","onUpdate:modelValue":i[0]||(i[0]=e=>(e=>{var n,a;null!=(n=null==t?void 0:t.value)&&n.uid&&r.edit(null==(a=null==t?void 0:t.value)?void 0:a.uid,"x-scalar-icon",e)})(e))},{default:ci((()=>[Fl(Ao(aF),{class:"hover:bg-b-2 aspect-square h-7 w-7 cursor-pointer rounded border border-transparent p-0 hover:border-inherit",variant:"ghost"},{default:ci((()=>[Fl(Ao(NLe),{class:"text-c-2 size-5",src:n.value,"stroke-width":"2"},null,8,["src"])])),_:1})])),_:1},8,["modelValue"]),Ul("div",ZUe,[Fl(HUe,{class:"text-xl font-bold",inputId:"collectionName",placeholder:"Untitled Collection",value:o.value.title,onUpdateValue:a},null,8,["value"])])],8,VUe))}}),XUe=a6(WUe,[["__scopeId","data-v-68d5218e"]]),GUe={class:"bg-b-1 sticky -top-[104px] z-10 mx-auto w-full"},YUe={key:0,class:"flex max-w-40 items-center"},KUe={class:"text-c-1 mr-[6.25px] hidden overflow-hidden px-2 font-medium text-ellipsis whitespace-nowrap md:block"},JUe=Li({__name:"CollectionNavigation",props:{isSticky:{type:Boolean}},setup(e){const{currentRoute:t}=Lme(),{activeCollection:r}=Eye(),n=hc((()=>{var e,t,n,a;return[{displayName:"Overview",to:{name:"collection.overview",params:{[wye.Collection]:null==(e=r.value)?void 0:e.uid}}},{displayName:"Servers",to:{name:"collection.servers",params:{[wye.Collection]:null==(t=r.value)?void 0:t.uid}}},{displayName:"Authentication",to:{name:"collection.authentication",params:{[wye.Collection]:null==(n=r.value)?void 0:n.uid}}},{displayName:"Environment",to:{name:"collection.environment",params:{[wye.Collection]:null==(a=r.value)?void 0:a.uid}}},{displayName:"Settings",to:{name:"collection.settings"}}]}));return(e,a)=>{var o,i,s;return Pl(),Rl("div",GUe,[Fl(XUe),Ul("div",{class:zn(["items-center text-sm font-medium",e.isSticky?"h-fit border-b md:grid md:grid-cols-[1fr_720px_1fr] md:px-4":"flex md:mx-auto md:max-w-[720px]"])},[e.isSticky?(Pl(),Rl("div",YUe,[Fl(Ao(NLe),{class:"text-c-2 hidden size-3.5 md:block",src:(null==(o=Ao(r))?void 0:o["x-scalar-icon"])||"interface-content-folder","stroke-width":"2"},null,8,["src"]),Ul("span",KUe,Gn(null==(s=null==(i=Ao(r))?void 0:i.info)?void 0:s.title),1)])):Vl("",!0),Ul("div",{class:zn(["flex w-full max-w-[720px] gap-2 pl-1.5 md:ml-1.5 md:pl-0",!e.isSticky&&"border-b"])},[(Pl(!0),Rl(Sl,null,ps(n.value,(({to:e,displayName:r},n)=>(Pl(),Nl(Ao($me),{key:n,class:"-ml-2 flex h-10 cursor-pointer items-center px-2 text-center text-sm font-medium whitespace-nowrap no-underline -outline-offset-1 has-[:focus-visible]:outline",to:e},{default:ci((()=>{var n;return[Ul("span",{class:zn(["flex-center h-full w-full border-b","string"==typeof e.name&&"string"==typeof Ao(t).name&&null!=(n=Ao(t).name)&&n.startsWith(e.name)?"text-c-1 border-c-1":"text-c-2 hover:text-c-1 border-transparent"])},Gn(r),3)]})),_:2},1032,["to"])))),128))],2)],2)])}}}),eFe={class:"w-full md:mx-auto md:max-w-[720px]"},tFe=Li({__name:"Collection",setup(e){const{activeCollection:t}=Eye(),r=Lme(),n=So(null),{y:a}=function(e,t={}){const{throttle:r=0,idle:n=200,onStop:a=zL,onScroll:o=zL,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:c=GL,onError:u=e=>{console.error(e)}}=t,d=So(0),p=So(0),h=hc({get:()=>d.value,set(e){m(e,void 0)}}),f=hc({get:()=>p.value,set(e){m(void 0,e)}});function m(t,r){var n,a,o,i;if(!c)return;const s=BL(e);if(!s)return;null==(o=s instanceof Document?c.document.body:s)||o.scrollTo({top:null!=(n=BL(r))?n:f.value,left:null!=(a=BL(t))?a:h.value,behavior:BL(l)});const u=(null==(i=null==s?void 0:s.document)?void 0:i.documentElement)||(null==s?void 0:s.documentElement)||s;null!=h&&(d.value=u.scrollLeft),null!=f&&(p.value=u.scrollTop)}const g=So(!1),v=uo({left:!0,right:!1,top:!0,bottom:!1}),b=uo({left:!1,right:!1,top:!1,bottom:!1}),y=e=>{g.value&&(g.value=!1,b.left=!1,b.right=!1,b.top=!1,b.bottom=!1,a(e))},O=WL(y,r+n),w=e=>{var t;if(!c)return;const r=(null==(t=null==e?void 0:e.document)?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||KL(e),{display:n,flexDirection:a}=getComputedStyle(r),o=r.scrollLeft;b.left=o<d.value,b.right=o>d.value;const s=Math.abs(o)<=(i.left||0),l=Math.abs(o)+r.clientWidth>=r.scrollWidth-(i.right||0)-1;"flex"===n&&"row-reverse"===a?(v.left=l,v.right=s):(v.left=s,v.right=l),d.value=o;let u=r.scrollTop;e!==c.document||u||(u=c.document.body.scrollTop),b.top=u<p.value,b.bottom=u>p.value;const h=Math.abs(u)<=(i.top||0),f=Math.abs(u)+r.clientHeight>=r.scrollHeight-(i.bottom||0)-1;"flex"===n&&"column-reverse"===a?(v.top=f,v.bottom=h):(v.top=h,v.bottom=f),p.value=u},x=e=>{var t;if(!c)return;const r=null!=(t=e.target.documentElement)?t:e.target;w(r),g.value=!0,O(e),o(e)};return JL(e,"scroll",r?function(e,t=200,r=!1,n=!0,a=!1){return HL(function(...e){let t,r,n,a,o,i,s=0,l=!0,c=zL;ko(e[0])||"object"!=typeof e[0]?[n,a=!0,o=!0,i=!1]=e:({delay:n,trailing:a=!0,leading:o=!0,rejectOnCancel:i=!1}=e[0]);const u=()=>{t&&(clearTimeout(t),t=void 0,c(),c=zL)};return e=>{const d=BL(n),p=Date.now()-s,h=()=>r=e();return u(),d<=0?(s=Date.now(),h()):(p>d&&(o||!l)?(s=Date.now(),h()):a&&(r=new Promise(((e,r)=>{c=i?r:e,t=setTimeout((()=>{s=Date.now(),l=!0,e(h()),u()}),Math.max(0,d-p))}))),o||t||(t=setTimeout((()=>l=!0),d)),l=!1,r)}}(t,r,n,a),e)}(x,r,!0,!1):x,s),function(e,t=!0,r){tc()?Yi(e,r):t?e():Ko(e)}((()=>{try{const t=BL(e);if(!t)return;w(t)}catch(e){u(e)}})),JL(e,"scrollend",y,s),{x:h,y:f,isScrolling:g,arrivedState:v,directions:b,measure(){const t=BL(e);c&&t&&w(t)}}}(n),o=hc((()=>a.value>104));return ul(t,(e=>{var t;if("Drafts"===(null==(t=null==e?void 0:e.info)?void 0:t.title)){const t=e.requests[0];r.push({name:"request",params:{[wye.Request]:t}})}}),{immediate:!0}),(e,t)=>(Pl(),Nl(oBe,{ref_key:"el",ref:n,class:"h-fit overflow-auto pb-6 xl:overflow-auto"},{default:ci((()=>[Fl(XEe,{class:"xl:h-fit"},{default:ci((()=>[Fl(JUe,{isSticky:o.value},null,8,["isSticky"]),Ul("div",eFe,[Fl(Ao(Nme))])])),_:1})])),_:1},512))}}),rFe=Object.freeze(Object.defineProperty({__proto__:null,default:tFe},Symbol.toStringTag,{value:"Module"})),nFe={class:"flex h-full w-full flex-col gap-2 pt-8"},aFe={class:"flex min-h-8 items-center justify-between gap-2 pl-1.5"},oFe={class:"has-[:focus-visible]:bg-b-1 group relative z-1 flex flex-col rounded-lg"},iFe={class:"flex h-full min-h-[calc(1rem*4)] flex-col"},sFe={key:1,class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},lFe=Li({__name:"MarkdownInput",props:{modelValue:{},environment:{},envVariables:{},workspace:{}},emits:["update:modelValue"],setup(e,{emit:t}){const r=t,n=So("preview"),a=So(null);ul(n,(e=>{"edit"===e&&Ko((()=>{var e;null==(e=a.value)||e.focus()}))}));const o=()=>{requestAnimationFrame((()=>{n.value="preview"}))};return(e,t)=>(Pl(),Rl("div",nFe,[Ul("div",aFe,[t[5]||(t[5]=Ul("h3",{class:"font-bold"},"Description",-1)),"preview"===n.value?(Pl(),Nl(Ao(aF),{key:0,class:"text-c-2 hover:text-c-1 flex items-center gap-2",size:"sm",type:"button",variant:"outlined",onClick:t[0]||(t[0]=e=>n.value="edit")},{default:ci((()=>[Fl(Ao(U5),{icon:"Pencil",size:"sm",thickness:"1.5"}),t[4]||(t[4]=Ul("span",null,"Edit",-1))])),_:1,__:[4]})):Vl("",!0)]),Ul("div",oFe,[Ul("div",iFe,["preview"===n.value?(Pl(),Rl(Sl,{key:0},[e.modelValue&&e.modelValue.trim().length?(Pl(),Rl(Sl,{key:0},[e.modelValue?(Pl(),Nl(Ao(o8),{key:0,class:"h-full flex-1 rounded border border-transparent p-1.5 hover:border-(--scalar-background-3)",value:e.modelValue,withImages:"",onDblclick:t[1]||(t[1]=e=>n.value="edit")},null,8,["value"])):Vl("",!0),t[6]||(t[6]=Ul("div",{class:"brightness-lifted bg-b-1 absolute inset-0 -z-1 hidden rounded group-hover:block group-has-[:focus-visible]:hidden"},null,-1))],64)):(Pl(),Rl("div",sFe,[Fl(Ao(aF),{class:"hover:bg-b-2 hover:text-c-1 text-c-2 flex items-center gap-2",size:"sm",variant:"ghost",onClick:t[2]||(t[2]=e=>n.value="edit")},{default:ci((()=>[Fl(Ao(U5),{icon:"Pencil",size:"sm",thickness:"1.5"}),t[7]||(t[7]=Ul("span",null,"Write a description",-1))])),_:1,__:[7]})]))],64)):Vl("",!0),"edit"===n.value?(Pl(),Nl(hge,{key:1,ref_key:"codeInputRef",ref:a,class:"h-full flex-1 border px-0.5 py-0",envVariables:e.envVariables,environment:e.environment,modelValue:e.modelValue,workspace:e.workspace,onBlur:o,"onUpdate:modelValue":t[3]||(t[3]=e=>r("update:modelValue",e))},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)])])]))}}),cFe=a6(lFe,[["__scopeId","data-v-5997a667"]]),uFe=Li({__name:"CollectionOverview",setup(e){const{activeCollection:t,activeEnvironment:r,activeEnvVariables:n,activeWorkspace:a}=Eye(),{collectionMutators:o}=Obe(),i=e=>{t.value&&o.edit(t.value.uid,"info.description",e)};return(e,o)=>(Pl(),Nl(XEe,null,{default:ci((()=>{var e,o;return[Ao(r)&&Ao(a)?(Pl(),Nl(cFe,{key:0,envVariables:Ao(n),environment:Ao(r),modelValue:(null==(o=null==(e=Ao(t))?void 0:e.info)?void 0:o.description)??"",workspace:Ao(a),"onUpdate:modelValue":i},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)]})),_:1}))}}),dFe=Object.freeze(Object.defineProperty({__proto__:null,default:uFe},Symbol.toStringTag,{value:"Module"})),pFe={key:0},hFe={class:"flex flex-1 flex-col gap-1.5"},fFe=["for"],mFe={class:"centered-y bg-b-2 flex-center absolute right-1 z-1 rounded px-1 py-0.5"},gFe=Li({__name:"Form",props:{title:{},options:{},data:{},onUpdate:{type:Function}},setup(e){const{activeEnvVariables:t,activeEnvironment:r,activeWorkspace:n}=Eye(),a=ji();return(e,o)=>(Pl(),Nl(XEe,{class:"last:rounded-b-lg"},hs({default:ci((()=>[Ul("div",hFe,[Object.keys(e.data).length>0&&Ao(n)?(Pl(),Nl(mOe,{key:0,columns:[""],class:"rounded-b-lg"},{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(e.options,((o,i)=>(Pl(),Nl(Bye,{key:i,class:zn({"border-t":0===i})},{default:ci((()=>[Fl(eOe,{class:"pr-9",lineWrapping:"",id:Ao(a),envVariables:Ao(t),environment:Ao(r),modelValue:e.data[o.key]??"",placeholder:o.placeholder,workspace:Ao(n),"onUpdate:modelValue":t=>e.onUpdate(o.key,t)},hs({default:ci((()=>[Ul("label",{for:Ao(a)},Gn(o.label),9,fFe)])),_:2},["description"===o.key?{name:"icon",fn:ci((()=>[Ul("div",mFe,[Fl(Ao(U5),{icon:"Markdown",size:"lg"})])])),key:"0"}:void 0]),1032,["id","envVariables","environment","modelValue","placeholder","workspace","onUpdate:modelValue"])])),_:2},1032,["class"])))),128))])),_:1})):Vl("",!0)])])),_:2},[e.title||e.$slots.title?{name:"title",fn:ci((()=>[e.title?(Pl(),Rl("span",pFe,Gn(e.title),1)):fs(e.$slots,"title",{key:1})])),key:"0"}:void 0]),1024))}}),vFe=Li({__name:"CollectionServerForm",props:{collectionId:{default:""},serverUid:{default:""}},setup(e){const t=e,{activeWorkspaceCollections:r}=Eye(),{servers:n,serverMutators:a}=Obe(),o=[{label:"URL",key:"url",placeholder:"https://void.scalar.com",type:"text"},{label:"Description",key:"description",placeholder:"Production",type:"text"}],i=hc((()=>{const e=r.value.find((e=>e.uid===t.collectionId));return n[e&&"string"==typeof t.serverUid&&"default"===t.serverUid?e.servers[0]??"":(null==e?void 0:e.servers.find((e=>e===t.serverUid)))??""]})),s=hc((()=>{var e,t;return null!=(e=i.value)&&e.url?(null==(t=i.value.url.match(YI.PATH))?void 0:t.map((e=>e.slice(1,-1))))??[]:[]}));ul(s,(e=>{if(!i.value)return;const t=i.value.variables?{...i.value.variables}:{};Object.keys(t).forEach((r=>{e.includes(r)||delete t[r]})),e.forEach((e=>{t[e]||(t[e]={default:""})})),a.edit(i.value.uid,"variables",t)}),{immediate:!0});const l=(e,t)=>{!r.value||!i.value||a.edit(i.value.uid,e,t)},c=(e,t)=>{if(!i.value)return;const r=i.value.variables||{};r[e]={...r[e],default:t},a.edit(i.value.uid,"variables",r)};return(e,t)=>{var r;return Pl(),Rl("div",{class:zn(["divide-0.5 flex w-full flex-col divide-y rounded-b-lg text-sm",(null==(r=i.value)?void 0:r.variables)&&"bg-b-1"])},[i.value?(Pl(),Rl(Sl,{key:0},[Fl(gFe,{data:i.value,onUpdate:l,options:o},null,8,["data"]),i.value.variables?(Pl(),Nl(Cbe,{key:0,variables:i.value.variables,"onUpdate:variable":c},null,8,["variables"])):Vl("",!0)],64)):Vl("",!0)],2)}}}),bFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},yFe={class:"flex flex-col gap-4"},OFe={class:"rounded-lg border"},wFe={class:"bg-b-2 flex items-start justify-between rounded-t-lg py-1 pr-1 pl-3 text-sm"},xFe={key:1,class:"self-center"},kFe={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},SFe=Li({__name:"CollectionServers",setup(e){const{activeCollection:t}=Eye(),{servers:r,events:n,serverMutators:a}=Obe(),o=X8(),i=So(null),s=hc((()=>{var e;return r&&null!=(e=t.value)&&e.servers?Object.values(r).filter((e=>{var r;return null==(r=t.value)?void 0:r.servers.includes(e.uid)})):[]})),l=()=>n.commandPalette.emit({commandName:"Add Server"}),c=()=>{var e;null==(e=t.value)||!e.uid||!i.value||(a.delete(i.value,t.value.uid),o.hide())};return(e,n)=>{var a;return Pl(),Rl("div",bFe,[Ul("div",yFe,[n[2]||(n[2]=Hl('<div class="flex items-start justify-between gap-2"><div class="flex flex-col gap-2"><div class="flex h-8 items-center"><h3 class="font-bold">Servers</h3></div><p class="text-sm"> Add different base URLs for your API. You can use <code class="font-code text-c-2">{variables}</code> for dynamic parts. </p></div></div>',1)),(Pl(!0),Rl(Sl,null,ps(s.value,((e,r)=>(Pl(),Rl("div",{key:e.uid},[Ul("div",OFe,[Ul("div",wFe,[e.description?(Pl(),Nl(Ao(o8),{key:0,value:e.description,class:"self-center"},null,8,["value"])):(Pl(),Rl("span",xFe,"Server "+Gn(r+1),1)),Fl(Ao(aF),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:t=>(e=>{i.value=e,o.show()})(e.uid)},{default:ci((()=>[Fl(Ao(oq),{class:"size-3.5"})])),_:2},1032,["onClick"])]),Ao(t)?(Pl(),Nl(vFe,{key:0,collectionId:Ao(t).uid,serverUid:e.uid},null,8,["collectionId","serverUid"])):Vl("",!0)])])))),128)),Ul("div",kFe,[Fl(Ao(aF),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:l},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),n[1]||(n[1]=Ul("span",null,"Add Server",-1))])),_:1,__:[1]})])]),Fl(Ao(Y8),{size:"xxs",state:Ao(o),title:`Delete ${i.value?null==(a=Ao(r)[i.value])?void 0:a.url:"Server"}`},{default:ci((()=>[Fl(XLe,{variableName:"Server",warningMessage:"Are you sure you want to delete this server? This action cannot be undone.",onClose:n[0]||(n[0]=e=>Ao(o).hide()),onDelete:c})])),_:1},8,["state","title"])])}}}),_Fe=Object.freeze(Object.defineProperty({__proto__:null,default:SFe},Symbol.toStringTag,{value:"Module"})),EFe=["onClick"],TFe=["placeholder"],AFe=Li({__name:"EnvironmentColors",props:{activeColor:{},selector:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const r=e,n=t,a=So(""),o=So(null),i=So(!1),s=So(!1),l=[{color:"#FFFFFF"},{color:"#EF0006"},{color:"#EDBE20"},{color:"#069061"},{color:"#FB892C"},{color:"#0082D0"},{color:"#5203D1"},{color:"#FFC0CB"}],c=hc((()=>r.activeColor&&!l.some((e=>e.color===r.activeColor))||a.value?`background-color: ${r.activeColor||a.value};`:"background: linear-gradient(to right, rgb(235, 87, 87), rgb(242, 201, 76), rgb(76, 183, 130), rgb(78, 167, 252), rgb(250, 96, 122));")),u=()=>{i.value=!i.value,r.selector&&(s.value=!1),Ko((()=>{o.value&&o.value.focus()}))};ul(a,(e=>{e&&!e.startsWith("#")&&(a.value=`#${e}`),i.value=!0}));const d=()=>{r.selector&&(s.value=!s.value)},p=e=>{n("select",e),r.selector&&(s.value=!1)};return(e,t)=>(Pl(),Rl("div",null,[i.value?Vl("",!0):(Pl(),Rl(Sl,{key:0},[r.selector&&!s.value?(Pl(),Rl("div",{key:0,class:zn(["flex cursor-pointer items-center justify-center rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn({backgroundColor:e.activeColor}),onClick:d},[e.activeColor?(Pl(),Nl(Ao(U5),{key:0,class:zn(["text-c-btn",r.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"])):Vl("",!0)],6)):Vl("",!0),s.value||!r.selector?(Pl(),Rl("div",{key:1,class:zn(["color-selector flex flex-row items-center justify-between gap-1.5 space-x-1",r.selector?"h-4":"min-h-10 min-w-[296px]"])},[(Pl(),Rl(Sl,null,ps(l,(t=>Ul("div",{key:t.color,class:zn(["flex cursor-pointer items-center justify-center rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn({backgroundColor:t.color}),onClick:e=>p(t.color)},[e.activeColor!==t.color||a.value?Vl("",!0):(Pl(),Nl(Ao(U5),{key:0,class:zn(["text-c-btn",r.selector&&"p-0.5"]),icon:"Checkmark",size:"xs"},null,8,["class"]))],14,EFe))),64)),t[2]||(t[2]=Ul("hr",{class:"border-ghost h-5 w-0.5 border-l"},null,-1)),Ul("label",{class:zn(["z-10 flex cursor-pointer flex-row items-center justify-center gap-2 rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn(c.value),onClick:u},[i.value||e.activeColor!==a.value&&(!e.activeColor||l.some((t=>t.color===e.activeColor)))?Vl("",!0):(Pl(),Nl(Ao(U5),{key:0,class:"text-c-btn",icon:"Checkmark",size:"xs"}))],6)],2)):Vl("",!0)],64)),i.value?(Pl(),Rl("div",{key:1,class:zn(["color-selector flex flex-1 items-center gap-2 rounded",r.selector?"h-4":"min-h-10"])},[Ul("span",{class:zn(["absolute rounded-full border border-dashed",r.selector?"h-4 w-4":"h-5 w-5"])},null,2),Ul("span",{class:zn(["z-[1] rounded-full",r.selector?"h-4 w-4":"h-5 w-5"]),style:jn(c.value)},null,6),ui(Ul("input",{ref_key:"customColorInputRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value=e),class:"w-full flex-1 border-transparent text-sm outline-none",placeholder:e.activeColor||"#000000",type:"text",onInput:t[1]||(t[1]=e=>p(a.value))},null,40,TFe),[[pu,a.value]]),Ul("button",{class:"text-c-3 hover:bg-b-2 rounded-lg p-1.5",type:"button",onClick:u},[Fl(Ao(U5),{icon:"Checkmark",size:"xs"})])],2)):Vl("",!0)]))}}),CFe={class:"flex flex-col gap-4"},PFe=Li({__name:"EnvironmentColorModal",props:{state:{},selectedColor:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,a=So(""),o=e=>{a.value=e},i=()=>{n("submit",a.value),a.value=""};return(e,t)=>(Pl(),Nl(Ao(Y8),{size:"xxs",state:e.state,title:"Edit Environment Color"},{default:ci((()=>[Ul("div",CFe,[Fl(AFe,{activeColor:a.value||r.selectedColor,class:"w-full p-1",onSelect:o},null,8,["activeColor"]),Fl(ZLe,{onCancel:t[0]||(t[0]=e=>n("cancel")),onSubmit:i})])])),_:1},8,["state"]))}}),$Fe={class:"flex gap-2"},DFe={class:"flex max-h-8 flex-1"},MFe=Li({__name:"CommandActionForm",props:{loading:{},disabled:{type:Boolean,default:!1}},emits:["submit","cancel","back"],setup(e){const{cx:t}=WU();return(e,r)=>(Pl(),Rl("form",{class:"flex w-full flex-col gap-3",onKeydown:r[0]||(r[0]=Eu(Su((()=>{}),["stop"]),["enter"])),onSubmit:r[1]||(r[1]=Su((t=>e.$emit("submit")),["prevent","stop"]))},[Ul("div",qn(Ql(Ao(t)("relative flex min-h-20 flex-col rounded"))),[fs(e.$slots,"default")],16),Ul("div",$Fe,[Ul("div",DFe,[fs(e.$slots,"options")]),Fl(Ao(aF),{class:"max-h-8 p-0 px-3 text-xs",disabled:e.disabled,loading:e.loading,type:"submit"},{default:ci((()=>[fs(e.$slots,"submit",{},(()=>[r[2]||(r[2]=ql("Continue"))]))])),_:3},8,["disabled","loading"])])],32))}}),RFe=["placeholder"],NFe=Li({inheritAttrs:!1,__name:"CommandActionInput",props:{modelValue:{},placeholder:{},autofocus:{type:Boolean}},emits:["update:modelValue","onDelete"],setup(e,{emit:t}){const r=e,n=t,a=So(null);Yi((()=>Ko((()=>{var e;r.autofocus||null==(e=a.value)||e.focus()}))));const o=hc({get:()=>r.modelValue??"",set:e=>n("update:modelValue",e)});return(e,t)=>ui((Pl(),Rl("textarea",Gl({id:"command-action-input",ref_key:"input",ref:a,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"min-h-8 w-full flex-1 resize-none border border-transparent py-1.5 pl-8.5 text-sm outline-none focus:border-b-1",placeholder:r.placeholder??"",wrap:"hard"},e.$attrs,{onKeydown:[t[1]||(t[1]=Eu((e=>function(e){""===o.value&&(e.preventDefault(),e.stopPropagation(),n("onDelete",e))}(e)),["delete"])),t[2]||(t[2]=Eu((e=>function(e){var t;if(e.shiftKey||!e.target)return;e.preventDefault();const r=e.target,n=new Event("submit",{cancelable:!0});null==(t=r.form)||t.dispatchEvent(n)}(e)),["enter"]))]}),null,16,RFe)),[[pu,o.value]])}}),IFe={class:"flex items-start gap-2"},LFe=Li({__name:"EnvironmentModal",props:{state:{},activeWorkspaceCollections:{},collectionId:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,{events:a}=Obe(),o=So(""),i=So("#FFFFFF"),s=hc((()=>[...r.activeWorkspaceCollections.filter((e=>{var t;return"Drafts"!==(null==(t=e.info)?void 0:t.title)})).map((e=>{var t;return{id:e.uid,label:(null==(t=e.info)?void 0:t.title)??"Untitled Collection"}}))])),l=So(s.value.find((e=>e.id===r.collectionId))),{toast:c}=cH(),u=e=>{i.value=e};ul((()=>r.state.open),(e=>{e&&(o.value="",i.value="#FFFFFF",r.collectionId?l.value=s.value.find((e=>e.id===r.collectionId)):l.value=void 0)}));const d=()=>{var e,t,r,a;o.value.trim()?null!=(e=l.value)&&e.id?n("submit",{name:o.value,color:i.value,type:"global"===(null==(t=l.value)?void 0:t.id)?"global":"collection",collectionId:"global"!==(null==(r=l.value)?void 0:r.id)?null==(a=l.value)?void 0:a.id:void 0}):c("Please select a collection before adding an environment.","error"):c("Please enter a name before adding an environment.","error")},p=()=>{r.state.hide(),a.commandPalette.emit({commandName:"Create Collection"})};return(e,t)=>(Pl(),Nl(Ao(Y8),{bodyClass:"border-t-0 rounded-t-lg",size:"xs",state:e.state},{default:ci((()=>[Fl(MFe,{disabled:!l.value||!o.value.trim(),onCancel:t[2]||(t[2]=e=>n("cancel")),onSubmit:d},{options:ci((()=>[Fl(Ao(n8),{modelValue:l.value,"onUpdate:modelValue":t[1]||(t[1]=e=>l.value=e),options:s.value,placeholder:"Select Type"},{default:ci((()=>[s.value.length>0?(Pl(),Nl(Ao(aF),{key:0,class:"hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",variant:"outlined"},{default:ci((()=>[Ul("span",{class:zn(l.value?"text-c-1":"text-c-3")},Gn(l.value?l.value.label:"Select Collection"),3),Fl(Ao(U5),{class:"text-c-3",icon:"ChevronDown",size:"xs"})])),_:1})):(Pl(),Nl(Ao(aF),{key:1,class:"hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",variant:"outlined",onClick:p},{default:ci((()=>t[3]||(t[3]=[Ul("span",{class:"text-c-1"},"Create Collection",-1)]))),_:1,__:[3]}))])),_:1},8,["modelValue","options"])])),submit:ci((()=>t[4]||(t[4]=[ql(" Add Environment ")]))),default:ci((()=>[Ul("div",IFe,[Fl(AFe,{activeColor:i.value,class:"peer",selector:"",onSelect:u},null,8,["activeColor"]),Fl(NFe,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),class:"-mt-[.5px] !p-0 peer-has-[.color-selector]:hidden",placeholder:"Environment name"},null,8,["modelValue"])])])),_:1},8,["disabled"])])),_:1},8,["state"]))}}),jFe=Li({__name:"EnvironmentForm",props:{collection:{},environment:{},workspace:{},envVariables:{}},setup(e){const{collectionMutators:t}=Obe(),r=So([]),n=So(new Set),a=So(new Map),o=So(!1),i=hc((()=>{var t;if(null==(t=e.environment)||!t.value)return[{key:"",value:""}];try{const t=JSON.parse(e.environment.value),r=Object.entries(t).map((([e,t])=>({key:e,value:String(t)})));return 0===r.length?[{key:"",value:""}]:r}catch{return[{key:"",value:""}]}})),s=hc((()=>{const e=r.value[r.value.length-1];return e?e.key||e.value?[...r.value,{key:"",value:""}]:r.value:[{key:"",value:""}]})),l=hc((()=>{const e=new Map;return r.value.forEach(((t,r)=>{if(t.key){const n=e.get(t.key)||[];n.push(r),e.set(t.key,n)}})),a.value.forEach(((t,r)=>{if(t){const n=e.get(t)||[];n.push(r),e.set(t,n)}})),Array.from(e.values()).filter((e=>e.length>1)).flat()}));ul(i,(e=>{r.value=[...e],n.value=new Set(e.map((e=>e.key)).filter(Boolean))}),{immediate:!0});const c=async(i,s,l)=>{var c;if(!o.value){if("key"===s){a.value.set(i,l);const e=new Set(n.value),t=r.value[i];if(t&&e.delete(t.key),e.has(l))return}o.value=!0;try{const o=[...r.value],d=o[i];if(!d)return;o[i]={key:"key"===s?l:d.key,value:"value"===s?l:d.value},!o[i].key&&!o[i].value&&i!==o.length-1&&o.splice(i,1);const p=o.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(c=e.collection["x-scalar-environments"])?void 0:c[e.environment.name],variables:p}};await t.edit(e.collection.uid,"x-scalar-environments",r)}if(i===r.value.length-1){const e=o[o.length-1];e&&(e.key||e.value)&&await u()}await Ko(),r.value=o,"key"===s&&(n.value=new Set(o.map((e=>e.key)).filter(Boolean)),a.value.delete(i))}finally{o.value=!1}}},u=async()=>{var n;if(!o.value){o.value=!0;try{const a=[...r.value,{key:"",value:""}],o=a.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(n=e.collection["x-scalar-environments"])?void 0:n[e.environment.name],variables:o}};await t.edit(e.collection.uid,"x-scalar-environments",r)}await Ko(),r.value=a}finally{o.value=!1}}},d=async()=>{if(0===r.value.length)await u();else if(r.value.length>=1){const e=r.value[r.value.length-1];e&&(e.key||e.value)&&await u()}};return Yi((()=>{d()})),ul((()=>r.value),(()=>{d()})),(n,a)=>(Pl(),Nl(mOe,{class:"group/table flex-1",columns:["",""]},{default:ci((()=>[Fl(Bye,{class:"sr-only !block"},{default:ci((()=>[Fl(KEe,null,{default:ci((()=>a[0]||(a[0]=[ql("Key")]))),_:1,__:[0]}),Fl(KEe,null,{default:ci((()=>a[1]||(a[1]=[ql("Value")]))),_:1,__:[1]})])),_:1}),(Pl(!0),Rl(Sl,null,ps(s.value,((a,i)=>(Pl(),Nl(Bye,{key:i,class:zn({error:l.value.includes(i)})},{default:ci((()=>[Fl(Lye,null,{default:ci((()=>[Fl(hge,{disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:n.environment,envVariables:n.envVariables,modelValue:a.key,placeholder:"Key",workspace:n.workspace,"onUpdate:modelValue":e=>c(i,"key",e)},hs({_:2},[l.value.includes(i)?{name:"icon",fn:ci((()=>[Fl(Ao(pq),{class:"text-red mr-0.75 size-3.5 brightness-[.9]"})])),key:"0"}:void 0]),1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])])),_:2},1024),Fl(Lye,null,{default:ci((()=>[Fl(hge,{class:"pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",disableCloseBrackets:"",disableEnter:"",disableTabIndent:"",lineWrapping:"",environment:n.environment,envVariables:n.envVariables,modelValue:a.value,placeholder:"Value",workspace:n.workspace,"onUpdate:modelValue":e=>c(i,"value",e)},{icon:ci((()=>[a.key||a.value?(Pl(),Nl(Ao(aF),{key:0,class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",size:"sm",variant:"ghost",onClick:Su((n=>(async n=>{var a;if(!o.value){o.value=!0;try{const o=[...r.value];o.splice(n,1);const i=o.reduce(((e,{key:t,value:r})=>((t||r)&&(e[t]=r),e)),{});if(e.collection){const r={...e.collection["x-scalar-environments"],[e.environment.name]:{...null==(a=e.collection["x-scalar-environments"])?void 0:a[e.environment.name],variables:i}};await t.edit(e.collection.uid,"x-scalar-environments",r)}await Ko(),r.value=o}finally{o.value=!1}}})(i)),["stop"])},{default:ci((()=>[Fl(Ao(oq),{class:"size-3.5"})])),_:2},1032,["onClick"])):Vl("",!0)])),_:2},1032,["environment","envVariables","modelValue","workspace","onUpdate:modelValue"])])),_:2},1024)])),_:2},1032,["class"])))),128))])),_:1}))}}),BFe=a6(jFe,[["__scopeId","data-v-2debec7e"]]),UFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},FFe={class:"flex flex-col gap-4"},QFe={class:"rounded-lg border"},zFe={class:"bg-b-2 flex cursor-grab items-center justify-between rounded-t-lg px-1 py-1 text-sm"},qFe={class:"flex items-center"},HFe=["onClick"],VFe={class:"text-c-3 flex h-full items-center justify-center rounded-lg border p-4"},ZFe=Li({__name:"CollectionEnvironment",setup(e){const{activeCollection:t,activeWorkspace:r,activeEnvVariables:n}=Eye(),{collectionMutators:a}=Obe(),o=X8(),i=X8(),s=X8(),l=X8(),c=So(""),u=So(null),d=So(void 0),p=hc((()=>{var e;return null!=(e=t.value)&&e["x-scalar-environments"]?Object.entries(t.value["x-scalar-environments"]).map((([e,t])=>({uid:e,name:e,value:JSON.stringify(t.variables||{}),color:t.color||"#FFFFFF"}))):[]})),h=()=>{var e;null==(e=t.value)||!e.uid||!u.value||(a.removeEnvironment(u.value,t.value.uid),i.hide())},f=e=>{var r;null!=(r=t.value)&&r.uid&&(a.addEnvironment(e.name,{variables:{},color:e.color},t.value.uid),s.hide())},m=e=>{var r,n,i;if(null==(r=t.value)||!r.uid||!u.value)return;const s={...t.value["x-scalar-environments"],[u.value]:{variables:(null==(i=null==(n=t.value["x-scalar-environments"])?void 0:n[u.value])?void 0:i.variables)||{},color:e}};a.edit(t.value.uid,"x-scalar-environments",s),o.hide()},g=()=>{u.value=null,d.value=void 0,l.hide()},v=e=>{var r;if(null==(r=t.value)||!r.uid||!u.value)return;const n={...t.value["x-scalar-environments"]};if(!n[u.value])return;const o={},i=Object.entries(n),s=i.findIndex((([e])=>e===u.value));i.forEach((([t,r],n)=>{n===s?o[e]=r:o[t]=r})),a.edit(t.value.uid,"x-scalar-environments",o),u.value=null,d.value=void 0,l.hide()},b=(e,r)=>{var n;if(null==(n=t.value)||!n.uid)return;const o={...t.value["x-scalar-environments"]},i={},s=Object.entries(o),l=s.findIndex((([t])=>t===e.id)),c=s.findIndex((([e])=>e===r.id));if(-1===l||-1===c)return;const u=s[l];u&&(s.splice(l,1),s.splice(c,0,u),s.forEach((([e,t])=>{i[e]=t})),a.edit(t.value.uid,"x-scalar-environments",i))};return(e,a)=>(Pl(),Nl(XEe,null,{default:ci((()=>{var e;return[Ul("div",UFe,[Ul("div",FFe,[a[5]||(a[5]=Ul("div",{class:"flex items-start justify-between gap-2"},[Ul("div",{class:"flex flex-col gap-2"},[Ul("div",{class:"flex h-8 items-center"},[Ul("h3",{class:"font-bold"},"Environment Variables")]),Ul("p",{class:"text-sm"},[ql(" Set environment variables at your collection level. Use "),Ul("code",{class:"font-code text-c-2"},"{{ variable }}"),ql(" to add / search among the selected environment's variables in your request inputs. ")])])],-1)),(Pl(!0),Rl(Sl,null,ps(p.value,(e=>(Pl(),Nl(Ao(cje),{key:e.name,id:e.name,isDraggable:!0,isDroppable:!0,parentIds:[],onOnDragEnd:b},{default:ci((()=>[Ul("div",QFe,[Ul("div",zFe,[Ul("div",qFe,[Fl(Ao(aF),{class:"hover:bg-b-3 flex h-6 w-6 p-1",onClick:t=>(e=>{u.value=e.name,c.value=e.color||"#FFFFFF",o.show()})(e),variant:"ghost"},{default:ci((()=>[Ul("span",{style:jn({backgroundColor:e.color||"#FFFFFF"}),class:"h-2.5 w-2.5 rounded-full"},null,4)])),_:2},1032,["onClick"]),Ul("button",{class:"hover:bg-b-3 rounded px-1 py-0.5 text-sm",onClick:t=>(e=>{u.value=e,d.value=e,l.show()})(e.name)},Gn(e.name),9,HFe)]),Fl(Ao(aF),{class:"hover:bg-b-3 hover:text-c-1 h-fit p-1.25",variant:"ghost",onClick:t=>(e=>{u.value=e,i.show()})(e.name)},{default:ci((()=>[Fl(Ao(oq),{class:"size-3.5"})])),_:2},1032,["onClick"])]),Ao(t)&&Ao(r)?(Pl(),Nl(BFe,{key:0,collection:Ao(t),environment:e,envVariables:Ao(n),workspace:Ao(r)},null,8,["collection","environment","envVariables","workspace"])):Vl("",!0)])])),_:2},1032,["id"])))),128)),Ul("div",VFe,[Fl(Ao(aF),{class:"hover:bg-b-2 hover:text-c-1 flex items-center gap-2",size:"sm",variant:"ghost",onClick:a[0]||(a[0]=e=>Ao(s).show())},{default:ci((()=>[Fl(Ao(U5),{class:"inline-flex",icon:"Add",size:"sm",thickness:"1.5"}),a[4]||(a[4]=Ul("span",null,"Add Environment",-1))])),_:1,__:[4]})])]),Fl(Ao(Y8),{size:"xxs",state:Ao(i),title:`Delete ${u.value||"Environment"}`},{default:ci((()=>[Fl(XLe,{variableName:"Environment",warningMessage:"Are you sure you want to delete this environment? This action cannot be undone.",onClose:a[1]||(a[1]=e=>Ao(i).hide()),onDelete:h})])),_:1},8,["state","title"]),Fl(LFe,{activeWorkspaceCollections:Ao(t)?[Ao(t)]:[],collectionId:null==(e=Ao(t))?void 0:e.uid,state:Ao(s),onCancel:a[2]||(a[2]=e=>Ao(s).hide()),onSubmit:f},null,8,["activeWorkspaceCollections","collectionId","state"]),Fl(PFe,{selectedColor:c.value,state:Ao(o),onCancel:a[3]||(a[3]=e=>Ao(o).hide()),onSubmit:m},null,8,["selectedColor","state"]),Fl(Ao(Y8),{size:"xxs",state:Ao(l),title:`Edit ${u.value}`},{default:ci((()=>[Fl(rje,{name:d.value??"",onClose:g,onEdit:v},null,8,["name"])])),_:1},8,["state","title"])])]})),_:1}))}}),WFe=Object.freeze(Object.defineProperty({__proto__:null,default:ZFe},Symbol.toStringTag,{value:"Module"})),XFe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},GFe={class:"flex flex-col gap-4"},YFe={class:"flex flex-col gap-2"},KFe={class:"flex h-8 items-center justify-between"},JFe=Li({__name:"CollectionAuthentication",setup(e){const{activeCollection:t,activeEnvVariables:r,activeEnvironment:n,activeServer:a,activeWorkspace:o}=Eye(),{collectionMutators:i}=Obe(),s=()=>{var e;null!=(e=t.value)&&e.uid&&i.edit(t.value.uid,"useCollectionSecurity",!t.value.useCollectionSecurity)};return(e,i)=>{var l,c,u;return Pl(),Rl("div",XFe,[Ul("div",GFe,[Ul("div",YFe,[Ul("div",KFe,[i[0]||(i[0]=Ul("h3",{class:"font-bold"},"Authentication",-1)),Fl(Ao(z8),{class:"w-4",modelValue:(null==(l=Ao(t))?void 0:l.useCollectionSecurity)??!1,"onUpdate:modelValue":s},null,8,["modelValue"])]),i[1]||(i[1]=Ul("p",{class:"pr-6 text-sm"}," Added authentication will apply to all requests under this collection. You can override this by specifying another one in the request. ",-1))]),Ao(t)&&Ao(o)?(Pl(),Nl(Ao(IOe),{key:0,class:zn(["scalar-collection-auth",!(null!=(c=Ao(t))&&c.useCollectionSecurity)&&"pointer-events-none opacity-50 mix-blend-luminosity"]),collection:Ao(t),envVariables:Ao(r),environment:Ao(n),layout:"client",selectedSecuritySchemeUids:(null==(u=Ao(t))?void 0:u.selectedSecuritySchemeUids)??[],server:Ao(a),title:"Authentication",workspace:Ao(o)},null,8,["class","collection","envVariables","environment","selectedSecuritySchemeUids","server","workspace"])):Vl("",!0)])])}}}),eQe=a6(JFe,[["__scopeId","data-v-cc87292e"]]),tQe=Object.freeze(Object.defineProperty({__proto__:null,default:eQe},Symbol.toStringTag,{value:"Module"})),rQe=Li({__name:"CollectionCookies",setup:e=>(e,t)=>(Pl(),Nl(XEe,null,{title:ci((()=>t[0]||(t[0]=[ql("Cookies")]))),_:1}))}),nQe=Object.freeze(Object.defineProperty({__proto__:null,default:rQe},Symbol.toStringTag,{value:"Module"})),aQe=Li({__name:"CollectionScripts",setup:e=>(e,t)=>(Pl(),Nl(XEe,null,{title:ci((()=>t[0]||(t[0]=[ql("Scripts")]))),_:1}))}),oQe=Object.freeze(Object.defineProperty({__proto__:null,default:aQe},Symbol.toStringTag,{value:"Module"})),iQe=Li({__name:"CollectionSync",setup:e=>(e,t)=>(Pl(),Nl(XEe,null,{title:ci((()=>t[0]||(t[0]=[ql("Sync")]))),_:1}))}),sQe=Object.freeze(Object.defineProperty({__proto__:null,default:iQe},Symbol.toStringTag,{value:"Module"})),lQe={class:"flex h-full w-full flex-col gap-12 px-1.5 pt-8"},cQe={class:"flex flex-col gap-2"},uQe={class:"bg-b-2 rounded-lg border text-sm"},dQe={class:"bg-b-1 flex items-center justify-between gap-4 rounded-t-lg p-3"},pQe={class:"text-c-1 flex items-center overflow-x-auto border-t py-1.5 whitespace-nowrap"},hQe={class:"flex items-center"},fQe=["href"],mQe={class:"flex flex-col gap-4"},gQe={class:"flex items-center justify-between rounded-lg border p-3 text-sm"},vQe=Li({__name:"CollectionSettings",setup(e){const{activeCollection:t,activeWorkspace:r,activeWorkspaceCollections:n}=Eye(),{collectionMutators:a}=Obe(),{replace:o}=Lme(),i=X8();function s(){var e,r;t.value&&null!=(e=t.value)&&e.documentUrl&&a.edit(t.value.uid,"watchMode",!(null!=(r=t.value)&&r.watchMode))}function l(){if(!t.value||!r.value)return;a.delete(t.value,r.value);const e=n.value[0];e&&o({name:"collection",params:{[wye.Workspace]:r.value.uid,[wye.Collection]:e.uid}}),i.hide()}return(e,r)=>{var n,a,o,c,u;return Pl(),Rl(Sl,null,[Ul("div",lQe,[Ul("div",cQe,[r[5]||(r[5]=Ul("div",{class:"flex h-8 items-center"},[Ul("h3",{class:"font-bold"},"Features")],-1)),Ul("div",uQe,[Ul("div",dQe,[r[2]||(r[2]=Ul("div",null,[Ul("h4",null,"Watch Mode"),Ul("p",{class:"text-c-2 mt-1"}," When enabled, the OpenAPI document will be polled for changes. The collection will be updated automatically. ")],-1)),Fl(Ao(z8),{class:"w-4",disabled:!(null!=(n=Ao(t))&&n.documentUrl),modelValue:(null==(a=Ao(t))?void 0:a.watchMode)??!1,"onUpdate:modelValue":s},null,8,["disabled","modelValue"])]),Ul("div",pQe,[Ul("div",hQe,[null!=(o=Ao(t))&&o.documentUrl?(Pl(),Rl(Sl,{key:0},[r[3]||(r[3]=Ul("span",{class:"bg-b-2 sticky left-0 pr-2 pl-3"},"Source",-1)),Ul("a",{class:"text-c-2 group rounded pr-3 no-underline hover:underline",href:Ao(t).documentUrl,target:"_blank"},[ql(Gn(Ao(t).documentUrl)+" ",1),Fl(Ao(U5),{class:"ml-1 hidden w-2.5 group-hover:inline",icon:"ExternalLink"})],8,fQe)],64)):(Pl(),Rl(Sl,{key:1},[Fl(Ao(U5),{class:"text-c-2 mr-2 ml-3 w-4",icon:"NotAllowed",size:"sm"}),r[4]||(r[4]=Ul("span",{class:"text-c-2 pr-3"}," No URL configured. Try importing an OpenAPI document from an URL. ",-1))],64))])])])]),Ul("div",mQe,[r[8]||(r[8]=Ul("h3",{class:"font-bold"},"Danger Zone",-1)),Ul("div",gQe,[r[7]||(r[7]=Ul("div",null,[Ul("h4",null,"Delete Collection"),Ul("p",{class:"text-c-2 mt-1"}," Be careful, my friend. Once deleted, there is no way to recover the collection. ")],-1)),Fl(Ao(aF),{class:"custom-scroll h-8 gap-1.5 px-2.5 font-medium whitespace-nowrap shadow-none focus:outline-none",variant:"danger",onClick:r[0]||(r[0]=e=>Ao(i).show())},{default:ci((()=>r[6]||(r[6]=[ql(" Delete Collection ")]))),_:1,__:[6]})])])]),Fl(Ao(Y8),{size:"xxs",state:Ao(i),title:`Delete ${null==(u=null==(c=Ao(t))?void 0:c.info)?void 0:u.title}`},{default:ci((()=>{var e,n;return[Fl(XLe,{variableName:(null==(n=null==(e=Ao(t))?void 0:e.info)?void 0:n.title)??"",warningMessage:"This action cannot be undone.",onClose:r[1]||(r[1]=e=>Ao(i).hide()),onDelete:l},null,8,["variableName"])]})),_:1},8,["state","title"])],64)}}}),bQe=a6(vQe,[["__scopeId","data-v-5170f3be"]]),yQe=Object.freeze(Object.defineProperty({__proto__:null,default:bQe},Symbol.toStringTag,{value:"Module"})),OQe={class:"gap-1/2 flex flex-col px-3 pb-[75px]"},wQe=a6({},[["render",function(e,t){return Pl(),Rl("ul",OQe,[fs(e.$slots,"default")])}]]),xQe={class:"absolute right-1 flex opacity-0 group-hover:opacity-100"},kQe=Li({__name:"SidebarListElementActions",props:{variable:{},warningMessage:{},isCopyable:{type:Boolean},isDeletable:{type:Boolean},isRenameable:{type:Boolean}},emits:["delete","rename"],setup(e,{emit:t}){const r=t,n=So({action:"None",name:""}),a=X8(),{copyToClipboard:o}=dH();function i(){a.hide(),n.value={action:"None",name:""}}return(t,s)=>(Pl(),Rl(Sl,null,[Ul("div",xQe,[t.isCopyable?(Pl(),Rl("button",{key:0,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:s[0]||(s[0]=e=>Ao(o)(t.variable.name))},[Fl(Ao(U5),{class:"h-3 w-3",icon:"Clipboard"})])):Vl("",!0),t.isRenameable?(Pl(),Rl("button",{key:1,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",type:"button",onClick:s[1]||(s[1]=e=>r("rename",t.variable.uid))},[Fl(Ao(U5),{class:"h-3 w-3",icon:"Edit"})])):Vl("",!0),!t.variable.isDefault&&t.isDeletable?(Pl(),Rl("button",{key:2,class:"text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",type:"button",onClick:s[2]||(s[2]=Su((t=>(n.value={action:"Delete",name:e.variable.name},void a.show())),["prevent"]))},[Fl(Ao(U5),{class:"h-3.5 w-3.5",icon:"Close"})])):Vl("",!0)]),Fl(Ao(Y8),{size:"sm",state:Ao(a),title:`${n.value.action} ${n.value.name}`},{default:ci((()=>["Delete"===n.value.action?(Pl(),Nl(XLe,{key:0,variableName:n.value.name,warningMessage:t.warningMessage,onClose:i,onDelete:s[3]||(s[3]=e=>function(e){r("delete",e),i()}(t.variable.uid))},null,8,["variableName","warningMessage"])):Vl("",!0)])),_:1},8,["state","title"])],64))}}),SQe={class:"empty-variable-name line-clamp-1 text-sm break-all group-hover:pr-5"},_Qe=Li({__name:"SidebarListElement",props:{variable:{},warningMessage:{},to:{},isDeletable:{type:Boolean},isCopyable:{type:Boolean},isRenameable:{type:Boolean},isDraggable:{type:Boolean,default:!1},isDroppable:{type:[Boolean,Function],default:!1},collectionId:{}},emits:["delete","colorModal","rename","onDragEnd"],setup(e,{emit:t}){const r=t,n=Lme(),a=e=>{r("delete",e)},o=e=>{r("rename",e)},i=So(null),s=hc((()=>({ceiling:.5,floor:.5})));return(t,l)=>{const c=ss("router-link");return Pl(),Rl("li",null,[Fl(Ao(cje),{id:t.variable.uid,ref_key:"draggableRef",ref:i,ceiling:s.value.ceiling,floor:s.value.floor,isDraggable:t.isDraggable,isDroppable:t.isDroppable,parentIds:t.collectionId?[t.collectionId]:[],onOnDragEnd:l[2]||(l[2]=(...e)=>t.$emit("onDragEnd",...e))},{default:ci((()=>[Fl(c,{class:zn(["text-c-2 hover:bg-b-2 group relative flex h-8 items-center gap-1.5 rounded py-1 pr-1.5 font-medium no-underline",[t.variable.color?"pl-5":"pl-1.5"]]),exactActiveClass:"bg-b-2 !text-c-1",role:"button",to:t.to,onClick:l[1]||(l[1]=Su((t=>(t=>{t.metaKey?window.open(n.resolve(e.to).href,"_blank"):n.push(e.to)})(t)),["prevent"]))},{default:ci((()=>[t.variable.color?(Pl(),Rl("button",{key:0,class:"hover:bg-b-3 rounded p-1.5",type:"button",onClick:l[0]||(l[0]=e=>(e=>{r("colorModal",e)})(t.variable.uid))},[Ul("div",{class:"h-2.5 w-2.5 rounded-xl",style:jn({backgroundColor:t.variable.color})},null,4)])):Vl("",!0),t.variable.icon?(Pl(),Nl(Ao(U5),{key:1,class:"text-sidebar-c-2 size-3.5 stroke-[2.25]",icon:t.variable.icon},null,8,["icon"])):Vl("",!0),Ul("span",SQe,Gn(t.variable.name),1),Fl(kQe,{isCopyable:!!t.isCopyable,isDeletable:!!t.isDeletable,isRenameable:!!t.isRenameable,variable:{...t.variable,isDefault:t.variable.isDefault??!1},warningMessage:t.warningMessage,onDelete:a,onRename:o},null,8,["isCopyable","isDeletable","isRenameable","variable","warningMessage"])])),_:1},8,["class","to"])])),_:1},8,["id","ceiling","floor","isDraggable","isDroppable","parentIds"])])}}}),EQe=a6(_Qe,[["__scopeId","data-v-0b6c70e4"]]),TQe={class:"flex-1"},AQe=["onClick"],CQe={class:"flex h-5 max-w-[14px] items-center justify-center"},PQe=(Li({__name:"Environment",setup(e){const t=Lme(),r=jme(),{activeWorkspace:n,activeEnvironment:a,activeWorkspaceCollections:o,activeEnvVariables:i}=Eye(),{events:s,workspaceMutators:l,collectionMutators:c}=Obe(),{collapsedSidebarFolders:u,toggleSidebarFolder:d}=Kbe(),p=X8(),h=X8(),f=X8(),m=So(null),g=So("default"),v=So(""),b=So(void 0),y=So(void 0),O=So(void 0),{toast:w}=cH();function x(e,t,r){var n;e&&(t.uid===r?w(`Environment name already used in ${null==(n=t.info)?void 0:n.title}`,"error"):w("Environment name already used in another collection","error"))}const k=hc((()=>o.value.filter((e=>{var t;return"Drafts"!==(null==(t=e.info)?void 0:t.title)}))));function S(e){k.value.some((t=>{const r=Object.keys(t["x-scalar-environments"]||{}).includes(e.name);return x(r,t,e.collectionId),r}))||(e.collectionId&&(c.addEnvironment(e.name,{variables:{},color:e.color},e.collectionId),u[e.collectionId]||d(e.collectionId),t.push({name:"environment.collection",params:{[wye.Collection]:e.collectionId,[wye.Environment]:e.name}})),h.hide())}function _(e){var t,r;if(!a)return;const i=(e=>JSON.parse(e))(e);if("default"===g.value)l.edit(null==(t=n.value)?void 0:t.uid,"environments",i);else{const e=o.value.find((e=>{var t;return null==(t=e["x-scalar-environments"])?void 0:t[g.value??""]}));if(null!=(r=null==e?void 0:e["x-scalar-environments"])&&r[g.value??""]){const t=e["x-scalar-environments"][g.value??""];t&&(t.variables=i,c.edit(e.uid,"x-scalar-environments",e["x-scalar-environments"]))}}}const E=e=>{b.value=e,h.show()},T=e=>{const t=m.value;"string"==typeof t&&(o.value.some((e=>{var r;return null==(r=e["x-scalar-environments"])?void 0:r[t]}))&&o.value.forEach((r=>{var n;null!=(n=r["x-scalar-environments"])&&n[t]&&(r["x-scalar-environments"][t].color=e,c.edit(r.uid,"x-scalar-environments",r["x-scalar-environments"]))})),p.hide())},A=()=>{var e,t,r,a;return"default"===g.value?JSON.stringify(null==(e=n.value)?void 0:e.environments,null,2):JSON.stringify(null==(a=null==(r=null==(t=o.value.find((e=>{var t;return null==(t=e["x-scalar-environments"])?void 0:t[g.value??""]})))?void 0:t["x-scalar-environments"])?void 0:r[g.value??""])?void 0:a.variables,null,2)},C=e=>u[e],P=e=>{null!=e&&e.createNew&&"environment"===r.name&&E()};function $(){y.value=void 0,b.value=void 0,O.value=void 0,f.hide()}function D(e){k.value.some((t=>{const r=Object.keys(t["x-scalar-environments"]||{}).includes(e);return x(r,t,b.value),r}))||(e&&"default"!==y.value&&o.value.forEach((t=>{var r;if(null!=(r=t["x-scalar-environments"])&&r[y.value??""]){const r=t["x-scalar-environments"],n={};Object.keys(r).forEach((t=>{const a=r[t];a&&(t===y.value?n[e]=a:n[t]=a)})),t["x-scalar-environments"]=n,c.edit(t.uid,"x-scalar-environments",t["x-scalar-environments"])}})),e&&g.value===y.value&&(g.value=e),y.value=void 0,b.value=void 0,O.value=void 0,f.hide())}ul((()=>[r.params[wye.Collection],r.params[wye.Environment]]),(([e,t])=>{g.value=e?t:"default"})),Yi((()=>{g.value=r.params[wye.Environment]||"default",s.hotKeys.on(P);const e=r.params[wye.Collection];e&&!u[e]&&d(e)})),es((()=>s.hotKeys.off(P)));const{handleDragEnd:M,isDroppable:R}=function(e,t){return{handleDragEnd:(r,n)=>{if(!r||!n)return;const{id:a,parentId:o}=r,{id:i,parentId:s,offset:l}=n;if(o!==s)return;const c=e.value.find((e=>e.uid===o));if(!c||!c["x-scalar-environments"])return;const u=c["x-scalar-environments"],d=Object.keys(u),p=d.findIndex((e=>e===a));d.splice(p,1);const h=d.findIndex((e=>e===i))+(1===l?1:0);d.splice(h,0,a);const f=d.reduce(((e,t)=>{const r=u[t];return r&&(e[t]=r),e}),{});c["x-scalar-environments"]=f,t.edit(c.uid,"x-scalar-environments",c["x-scalar-environments"])},isDroppable:(e,t)=>e.parentId===t.parentId}}(o,c);return ul((()=>r.query.openEnvironmentModal),(e=>{"true"===e&&E()}),{immediate:!0}),(e,r)=>(Pl(),Nl(oBe,null,{default:ci((()=>[Fl(nye,{title:"Collections"},{content:ci((()=>[Ul("div",TQe,[Fl(wQe,null,{default:ci((()=>[(Pl(),Nl(EQe,{key:"default",class:"text-xs",isCopyable:!1,to:{name:"environment",params:{[Ao(wye).Environment]:"default"}},type:"environment",variable:{name:"Global Environment",uid:"default",icon:"Globe",isDefault:!0}},null,8,["to"])),(Pl(!0),Rl(Sl,null,ps(k.value,(e=>{var a;return Pl(),Rl("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[Ul("button",{class:"hover:bg-b-2 group flex w-full items-center gap-1.5 rounded p-1.5 text-left text-sm font-medium break-words",type:"button",onClick:t=>Ao(d)(e.uid)},[Ul("span",CQe,[Fl(Ao(NLe),{class:"text-sidebar-c-2 size-3.5 min-w-3.5 stroke-2 group-hover:hidden",src:e["x-scalar-icon"]||"interface-content-folder"},null,8,["src"]),Ul("div",{class:zn({"rotate-90":Ao(u)[e.uid]})},[Fl(Ao(U5),{class:"text-c-3 hover:text-c-1 hidden text-sm group-hover:block",icon:"ChevronRight",size:"md"})],2)]),ql(" "+Gn((null==(a=e.info)?void 0:a.title)??""),1)],8,AQe),ui(Ul("div",{class:zn({"before:bg-border relative mb-[.5px] before:pointer-events-none before:absolute before:top-0 before:left-3 before:z-1 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full":Object.keys(e["x-scalar-environments"]||{}).length>0})},[(Pl(!0),Rl(Sl,null,ps(e["x-scalar-environments"],((r,a)=>(Pl(),Nl(EQe,{key:a,class:"text-xs",collectionId:e.uid,isCopyable:!1,isDeletable:!0,isRenameable:!0,isDraggable:!0,isDroppable:Ao(R),to:{name:"environment.collection",params:{[Ao(wye).Collection]:e.uid,[Ao(wye).Environment]:a}},type:"environment",variable:{name:a,uid:a,color:r.color??"#FFFFFF",isDefault:!1},warningMessage:"Are you sure you want to delete this environment?",onClick:Su((r=>((e,r,a)=>{var o,i;const s=a?{name:"environment.collection",params:{[wye.Workspace]:null==(o=n.value)?void 0:o.uid,[wye.Collection]:a,[wye.Environment]:r}}:{name:"environment.default",params:{[wye.Workspace]:null==(i=n.value)?void 0:i.uid,[wye.Environment]:r}};e.metaKey?window.open(t.resolve(s).href,"_blank"):t.push(s)})(r,a,e.uid)),["prevent"]),onColorModal:e=>(e=>{var t,r,n;m.value=e,v.value=(null==(n=null==(r=null==(t=o.value.find((t=>{var r;return null==(r=t["x-scalar-environments"])?void 0:r[e]})))?void 0:t["x-scalar-environments"])?void 0:r[e])?void 0:n.color)??"",p.show()})(a),onDelete:e=>function(e){var r;k.value.forEach((t=>{c.removeEnvironment(e,t.uid)}));const a=k.value.flatMap((e=>Object.keys(e["x-scalar-environments"]||{})));if(a.length>0){const e=a[a.length-1];if(!e)return;const r=o.value.find((t=>Object.keys(t["x-scalar-environments"]||{}).includes(e)));g.value=e,t.push({name:"environment.collection",params:{[wye.Collection]:null==r?void 0:r.uid,[wye.Environment]:e}}),r&&!u[r.uid]&&d(r.uid)}else g.value="default",t.push({name:"environment.default",params:{[wye.Workspace]:null==(r=n.value)?void 0:r.uid}})}(a),onRename:t=>((e,t)=>{y.value=e,b.value=t,O.value=e,f.show()})(a,e.uid),onOnDragEnd:Ao(M)},null,8,["collectionId","isDroppable","to","variable","onClick","onColorModal","onDelete","onRename","onOnDragEnd"])))),128)),0===Object.keys(e["x-scalar-environments"]||{}).length?(Pl(),Nl(Ao(aF),{key:0,class:"text-c-1 hover:bg-b-2 flex h-8 w-full justify-start gap-1.5 py-0 pl-6 text-xs",variant:"ghost",onClick:t=>E(e.uid)},{default:ci((()=>[Fl(Ao(U5),{icon:"Add",size:"sm"}),r[2]||(r[2]=Ul("span",null,"Add Environment",-1))])),_:2,__:[2]},1032,["onClick"])):Vl("",!0)],2),[[Fc,C(e.uid)]])])})),128))])),_:1})])])),button:ci((()=>[Fl(qLe,{click:E,hotkey:"N"},{title:ci((()=>r[3]||(r[3]=[ql(" Add Environment ")]))),_:1})])),_:1}),Fl(sBe,{class:"flex-1"},{default:ci((()=>[Fl(XEe,null,hs({default:ci((()=>[g.value&&Ao(n)?(Pl(),Nl(hge,{key:0,class:"py-2 pr-2 pl-px md:px-4",envVariables:Ao(i),environment:Ao(a),isCopyable:"",language:"json",lineNumbers:"",lint:"",modelValue:A(),workspace:Ao(n),"onUpdate:modelValue":_},null,8,["envVariables","environment","modelValue","workspace"])):Vl("",!0)])),_:2},[g.value?{name:"title",fn:ci((()=>[Ul("span",null,Gn("default"===g.value?"Global Environment":g.value),1)])),key:"0"}:void 0]),1024)])),_:1}),Fl(PFe,{selectedColor:v.value,state:Ao(p),onCancel:r[0]||(r[0]=e=>Ao(p).hide()),onSubmit:T},null,8,["selectedColor","state"]),Fl(LFe,{activeWorkspaceCollections:k.value,collectionId:b.value,state:Ao(h),onCancel:r[1]||(r[1]=e=>Ao(h).hide()),onSubmit:S},null,8,["activeWorkspaceCollections","collectionId","state"]),Fl(Ao(Y8),{size:"xxs",state:Ao(f),title:`Edit ${y.value}`},{default:ci((()=>[Fl(rje,{name:O.value??"",onClose:$,onEdit:D},null,8,["name"])])),_:1},8,["state","title"])])),_:1}))}}),Symbol.toStringTag,Li({__name:"CookieForm",setup(e){const{activeCookieId:t}=Eye(),{cookies:r,cookieMutators:n}=Obe(),a=[{label:"Name",key:"name",placeholder:"session_id"},{label:"Value",key:"value",placeholder:"my-cookie-session-id"},{label:"Domain",key:"domain",placeholder:"example.com"}],o=hc((()=>r[t.value]||GEe.parse({name:"",value:"",domain:"",path:""}))),i=(e,r)=>{n.edit(t.value,e,r)};return(e,t)=>(Pl(),Nl(gFe,{data:o.value,onUpdate:i,options:a},null,8,["data"]))}})),$Qe={class:"flex h-8 items-start gap-2 text-sm"},DQe={class:"flex h-8 items-start gap-2 text-sm"},MQe={class:"flex h-8 items-start gap-2 text-sm"},RQe=Li({__name:"CookieModal",props:{state:{}},emits:["cancel","submit"],setup(e,{emit:t}){const r=e,n=t,a=So({name:"",value:"",domain:""}),{toast:o}=cH(),i=()=>{a.value.name&&a.value.value?(n("submit",a.value),r.state.hide()):o("Please fill in all fields before adding a cookie.","error")};return ul((()=>r.state.open),(e=>{e&&(a.value={name:"",value:"",domain:""})})),(e,t)=>(Pl(),Nl(Ao(Y8),{size:"xs",state:e.state,title:"Add Cookie"},{default:ci((()=>[Fl(MFe,{disabled:!a.value.name||!a.value.value,onCancel:t[3]||(t[3]=e=>n("cancel")),onSubmit:i},{submit:ci((()=>t[7]||(t[7]=[ql("Add Cookie")]))),default:ci((()=>[Ul("div",$Qe,[t[4]||(t[4]=ql(" Name: ")),Fl(NFe,{modelValue:a.value.name,"onUpdate:modelValue":t[0]||(t[0]=e=>a.value.name=e),autofocus:"",class:"!p-0",placeholder:"session_id"},null,8,["modelValue"])]),Ul("div",DQe,[t[5]||(t[5]=ql(" Value: ")),Fl(NFe,{modelValue:a.value.value,"onUpdate:modelValue":t[1]||(t[1]=e=>a.value.value=e),autofocus:"",class:"!p-0",placeholder:"my-cookie-session-id"},null,8,["modelValue"])]),Ul("div",MQe,[t[6]||(t[6]=ql(" Domain: ")),Fl(NFe,{modelValue:a.value.domain,"onUpdate:modelValue":t[2]||(t[2]=e=>a.value.domain=e),autofocus:"",class:"!p-0",placeholder:"example.com"},null,8,["modelValue"])])])),_:1},8,["disabled"])])),_:1},8,["state"]))}}),NQe=a6(RQe,[["__scopeId","data-v-694018d6"]]),IQe={class:"flex-1"},LQe={class:"relative mb-[.5px] last:mb-0"},jQe=(Li({__name:"Cookies",setup(e){const{cookies:t,cookieMutators:r,events:n,workspaceMutators:a}=Obe(),{activeWorkspace:o,activeCookieId:i}=Eye(),s=Lme(),l=jme(),c=X8(),u=e=>{var t,n;const i=GEe.parse({name:e.name,value:e.value,domain:e.domain,path:"/"});r.add(i),a.edit(null==(t=o.value)?void 0:t.uid,"cookies",[...(null==(n=o.value)?void 0:n.cookies)??[],i.uid]),s.push({name:"cookies",params:{cookies:i.uid}})},d=()=>{c.show()},p=e=>{null!=e&&e.createNew&&"cookies"===l.name&&d()};Yi((()=>n.hotKeys.on(p))),es((()=>n.hotKeys.off(p)));const h=hc((()=>t[i.value])),f=hc((()=>Object.keys(t).length>0&&h.value));return ul((()=>l.query.openCookieModal),(e=>{"true"===e&&d()}),{immediate:!0}),(e,n)=>(Pl(),Nl(oBe,null,{default:ci((()=>[Fl(Ao(nye),{title:"Cookies"},{content:ci((()=>[Ul("div",IQe,[Fl(wQe,null,{default:ci((()=>[(Pl(!0),Rl(Sl,null,ps(Object.values(Ao(t)),(e=>(Pl(),Rl("li",{key:e.uid,class:"gap-1/2 flex flex-col"},[Ul("div",LQe,[(Pl(),Nl(EQe,{key:e.uid,class:"text-xs",isDeletable:"",to:{name:"cookies",params:{[Ao(wye).Cookies]:e.uid}},type:"cookies",variable:{name:e.name,uid:e.uid},warningMessage:"Are you sure you want to delete this cookie?",onClick:Su((t=>((e,t)=>{var r;const n={name:"cookies",params:{workspace:(null==(r=o.value)?void 0:r.uid)??"default",cookies:t}};if(e.metaKey){const e=s.resolve(n).href;window.open(e,"_blank")}else s.push(n)})(t,e.uid)),["prevent"]),onDelete:n=>(e=>{var n,i;r.delete(e),a.edit(null==(n=o.value)?void 0:n.uid,"cookies",[...((null==(i=o.value)?void 0:i.cookies)??[]).filter((t=>t!==e))]);const l=Object.values(t).filter((t=>t.uid!==e));if(l.length>0){const e=l[l.length-1];e&&s.push(e.uid)}else s.push({name:"cookies",params:{[wye.Cookies]:"default"}})})(e.uid)},null,8,["to","variable","onClick","onDelete"]))])])))),128))])),_:1})])])),button:ci((()=>[Fl(qLe,{click:d,hotkey:"N"},{title:ci((()=>n[1]||(n[1]=[ql(" Add Cookie ")]))),_:1})])),_:1}),Fl(sBe,{class:"flex-1"},{default:ci((()=>[f.value?(Pl(),Nl(XEe,{key:0,class:"*:border-b-0"},{title:ci((()=>n[2]||(n[2]=[ql("Edit Cookie")]))),default:ci((()=>[Fl(PQe)])),_:1})):(Pl(),Nl(aBe,{key:1}))])),_:1}),Fl(NQe,{state:Ao(c),onCancel:n[0]||(n[0]=e=>Ao(c).hide()),onSubmit:u},null,8,["state"])])),_:1}))}}),Symbol.toStringTag,Li({__name:"IntegrationLogo",props:{integration:{}},setup(e){const t=e,r=["adonisjs","dotnet","elysiajs","express","fastapi","fastify","go","hono","laravel","litestar","nestjs","nextjs","nitro","nuxt","platformatic","react","rust","svelte"],n=hc((()=>{var e;const n="Openapi",a=null==(e=t.integration)?void 0:e.toLocaleLowerCase();if(!a)return n;const o=a.charAt(0).toUpperCase()+a.slice(1);return r.includes(a)?o:n}));return(e,t)=>(Pl(),Nl(Ao(U5),{class:"h-full w-full rounded-lg",logo:n.value},null,8,["logo"]))}})),BQe={class:"flex flex-col gap-2"},UQe=Li({__name:"SettingsAppearance",setup(e){const{colorMode:t,setColorMode:r}=LL(),n=VU({base:"w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",variants:{active:{true:"bg-primary text-c-1 hover:bg-inherit",false:"bg-b-1 hover:bg-b-2"}}});return(e,a)=>(Pl(),Rl("div",BQe,[Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(n)({active:"system"===Ao(t)}))),onClick:a[0]||(a[0]=e=>Ao(r)("system"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"system"===Ao(t)}])},["system"===Ao(t)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[3]||(a[3]=ql(" System Preference (default) "))])),_:1,__:[3]},8,["class"]),Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(n)({active:"light"===Ao(t)}))),onClick:a[1]||(a[1]=e=>Ao(r)("light"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"light"===Ao(t)}])},["light"===Ao(t)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[4]||(a[4]=ql(" Light Mode Always "))])),_:1,__:[4]},8,["class"]),Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(n)({active:"dark"===Ao(t)}))),onClick:a[2]||(a[2]=e=>Ao(r)("dark"))},{default:ci((()=>[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":"dark"===Ao(t)}])},["dark"===Ao(t)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),a[5]||(a[5]=ql(" Dark Mode Always "))])),_:1,__:[5]},8,["class"])]))}}),FQe={class:"flex flex-col gap-2"},QQe={key:0,class:"font-bold"},zQe={key:1,class:"text-c-2 mb-4 leading-[21px]"},qQe=Li({__name:"SettingsSection",setup:e=>(e,t)=>(Pl(),Rl("div",FQe,[e.$slots.title?(Pl(),Rl("h3",QQe,[fs(e.$slots,"title")])):Vl("",!0),e.$slots.description?(Pl(),Rl("p",zQe,[fs(e.$slots,"description")])):Vl("",!0),fs(e.$slots,"default")]))}),HQe={class:"bg-b-1 h-full w-full overflow-auto"},VQe={class:"mr-auto ml-auto w-full max-w-[720px] px-5 py-5"},ZQe={class:"flex flex-col gap-8"},WQe={class:"flex flex-col gap-2"},XQe={class:"flex flex-col gap-2"},GQe={class:"grid grid-cols-2 gap-2"},YQe={class:"flex items-center gap-2"},KQe={class:"flex items-center gap-1"},JQe={class:"grid grid-cols-2 gap-2"},eze={class:"flex items-center gap-2"},tze={class:"flex items-center gap-1"},rze={class:"size-7 rounded-xl"},nze="https://proxy.scalar.com",aze=Li({__name:"SettingsGeneral",setup(e){const{activeWorkspace:t}=Eye(),{proxyUrl:r,workspaceMutators:n}=Obe(),a=["default","alternate","purple","solarized","saturn","kepler"],o=["elysiajs","fastify"],i=e=>({default:{light:"#fff",dark:"#0f0f0f",accent:"#0099ff"},alternate:{light:"#f9f9f9",dark:"#131313",accent:"#e7e7e7"},moon:{light:"#ccc9b3",dark:"#313332",accent:"#645b0f"},purple:{light:"#f5f6f8",dark:"#22252b",accent:"#5469d4"},solarized:{light:"#fdf6e3",dark:"#00212b",accent:"#007acc"},bluePlanet:{light:"#f0f2f5",dark:"#000e23",accent:"#e0e2e6"},saturn:{light:"#e4e4df",dark:"#2c2c30",accent:"#1763a6"},kepler:{light:"#f6f6f6",dark:"#0d0f1e",accent:"#7070ff"},mars:{light:"#f2efe8",dark:"#321116",accent:"#c75549"},deepSpace:{light:"#f4f4f5",dark:"#09090b",accent:"#8ab4f8"},laserwave:{light:"#f4f2f7",dark:"#27212e",accent:"#ed78c2"},none:{light:"#ffffff",dark:"#000000",accent:"#3b82f6"}}[e]||{light:"#ffffff",dark:"#000000",accent:"#3b82f6"}),s=e=>{var r;return n.edit(null==(r=t.value)?void 0:r.uid,"themeId",e)},l=VU({base:"w-full shadow-none text-c-1 justify-start pl-2 gap-2 border",variants:{active:{true:"bg-primary text-c-1 hover:bg-inherit",false:"bg-b-1 hover:bg-b-2"}}}),c=e=>{var r;return n.edit(null==(r=t.value)?void 0:r.uid,"proxyUrl",e)};return(e,n)=>(Pl(),Rl("div",HQe,[Ul("div",VQe,[Ul("div",ZQe,[n[13]||(n[13]=Ul("div",null,[Ul("h2",{class:"mt-10 text-xl font-bold"},"Settings")],-1)),Fl(qQe,null,{title:ci((()=>n[3]||(n[3]=[ql(" CORS Proxy ")]))),description:ci((()=>n[4]||(n[4]=[ql(" Browsers block cross-origin requests for security. We provide a public proxy to "),Ul("a",{class:"hover:text-c-1 underline-offset-2",href:"https://en.wikipedia.org/wiki/Cross-origin_resource_sharing",target:"_blank"}," bypass CORS issues ",-1),ql(" . Check the "),Ul("a",{class:"hover:text-c-1 underline-offset-2",href:"https://github.com/scalar/scalar/tree/main/examples/proxy-server",target:"_blank"}," source code on GitHub ",-1),ql(" . ")]))),default:ci((()=>{var e,a,o;return[Ul("div",WQe,[Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(l)({active:(null==(e=Ao(t))?void 0:e.proxyUrl)===nze}))),onClick:n[0]||(n[0]=e=>c(nze))},{default:ci((()=>{var e,r;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(e=Ao(t))?void 0:e.proxyUrl)===nze}])},[(null==(r=Ao(t))?void 0:r.proxyUrl)===nze?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),n[5]||(n[5]=ql(" Use proxy.scalar.com (default) "))]})),_:1,__:[5]},8,["class"]),Ao(r)&&Ao(r)!==nze?(Pl(),Nl(Ao(aF),{key:0,class:zn(Ao(ZU)(Ao(l)({active:(null==(a=Ao(t))?void 0:a.proxyUrl)===Ao(r)}))),onClick:n[1]||(n[1]=e=>c(Ao(r)))},{default:ci((()=>{var e,n;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(e=Ao(t))?void 0:e.proxyUrl)===Ao(r)}])},[(null==(n=Ao(t))?void 0:n.proxyUrl)===Ao(r)?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" Use custom proxy ("+Gn(Ao(r))+") ",1)]})),_:1},8,["class"])):Vl("",!0),Fl(Ao(aF),{class:zn(Ao(ZU)(Ao(l)({active:!(null!=(o=Ao(t))&&o.proxyUrl)}))),onClick:n[2]||(n[2]=e=>c(void 0))},{default:ci((()=>{var e,r;return[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",!(null!=(e=Ao(t))&&e.proxyUrl)&&"bg-c-accent text-b-1 border-transparent"])},[null!=(r=Ao(t))&&r.proxyUrl?Vl("",!0):(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"}))],2),n[6]||(n[6]=ql(" Skip the proxy "))]})),_:1,__:[6]},8,["class"])])]})),_:1}),Fl(qQe,null,{title:ci((()=>n[7]||(n[7]=[ql(" Themes ")]))),description:ci((()=>n[8]||(n[8]=[ql(" We've got a whole rainbow of themes for you to play with: ")]))),default:ci((()=>[Ul("div",XQe,[Ul("div",GQe,[(Pl(),Rl(Sl,null,ps(a,(e=>{var r;return Fl(Ao(aF),{key:e,class:zn(Ao(ZU)(Ao(l)({active:(null==(r=Ao(t))?void 0:r.themeId)===e}))),onClick:t=>s(e)},{default:ci((()=>{var r,n;return[Ul("div",YQe,[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(r=Ao(t))?void 0:r.themeId)===e}])},[(null==(n=Ao(t))?void 0:n.themeId)===e?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" "+Gn(Ao(dbe)[e]),1)]),Ul("div",KQe,[Ul("span",{class:"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).light})},null,4),Ul("span",{class:"border-c-3 -mr-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).dark})},null,4),Ul("span",{class:"border-c-3 inline-block h-5 w-5 rounded-full",style:jn({backgroundColor:i(e).accent})},null,4)])]})),_:2},1032,["class","onClick"])})),64))])])])),_:1}),Fl(qQe,null,{title:ci((()=>n[9]||(n[9]=[ql(" Framework Themes ")]))),description:ci((()=>n[10]||(n[10]=[ql(" Are you a real fan? Show your support by using your favorite framework's theme! ")]))),default:ci((()=>[Ul("div",JQe,[(Pl(),Rl(Sl,null,ps(o,(e=>{var r;return Fl(Ao(aF),{key:e,class:zn(Ao(ZU)(Ao(l)({active:(null==(r=Ao(t))?void 0:r.themeId)===e}))),onClick:t=>s(e)},{default:ci((()=>{var r,n;return[Ul("div",eze,[Ul("div",{class:zn(["flex h-5 w-5 items-center justify-center rounded-full border-[1.5px] p-1",{"bg-c-accent text-b-1 border-transparent":(null==(r=Ao(t))?void 0:r.themeId)===e}])},[(null==(n=Ao(t))?void 0:n.themeId)===e?(Pl(),Nl(Ao(U5),{key:0,icon:"Checkmark",size:"xs",thickness:"3.5"})):Vl("",!0)],2),ql(" "+Gn(Ao(dbe)[e]),1)]),Ul("div",tze,[Ul("div",rze,[Fl(jQe,{integration:e},null,8,["integration"])])])]})),_:2},1032,["class","onClick"])})),64))])])),_:1}),Fl(qQe,null,{title:ci((()=>n[11]||(n[11]=[ql(" Appearance ")]))),description:ci((()=>n[12]||(n[12]=[ql(" Choose between light, dark, or system-based appearance for your workspace. ")]))),default:ci((()=>[Fl(UQe)])),_:1})])])]))}});Li({__name:"Settings",setup(e){const t={general:{component:aze,title:"general"}},r=So("general");return(e,n)=>(Pl(),Nl(oBe,null,{default:ci((()=>[Fl(sBe,{class:"flex-1"},{default:ci((()=>[t[r.value]?(Pl(),Nl(cs(t[r.value].component),{key:0})):Vl("",!0)])),_:1})])),_:1}))}});Symbol.toStringTag}));
|
|
44
|
+
//# sourceMappingURL=/sm/12d43c6f322395cba1be661d35e5c583dfe2b77f868026c65a5f92fe1bfc6abd.map
|