vitepress-openapi 0.0.3-alpha.74 → 0.0.3-alpha.76

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.
Files changed (91) hide show
  1. package/dist/OpenApi-CDzPw3Gb.js +5669 -0
  2. package/dist/OpenApi-JZDy_oqC.cjs +111 -0
  3. package/dist/types/src/components/Context/OAContextAsync.vue.d.ts +4 -4
  4. package/dist/types/src/components/Context/OAContextProvider.vue.d.ts +2 -2
  5. package/dist/types/src/components/Feature/OAInfo.vue.d.ts +2 -2
  6. package/dist/types/src/components/Feature/OAIntroduction.vue.d.ts +2 -2
  7. package/dist/types/src/components/Feature/OAOperation.vue.d.ts +19 -4
  8. package/dist/types/src/components/Feature/OAOperationContent.vue.d.ts +0 -8
  9. package/dist/types/src/components/Feature/OAServers.vue.d.ts +2 -2
  10. package/dist/types/src/components/Feature/OASpec.vue.d.ts +20 -5
  11. package/dist/types/src/components/Feature/OASpecContent.vue.d.ts +0 -11
  12. package/dist/types/src/components/index.d.ts +1 -3
  13. package/dist/types/src/components/ui/button/Button.vue.d.ts +4 -4
  14. package/dist/types/src/components/ui/button/index.d.ts +1 -1
  15. package/dist/types/src/components/ui/checkbox/Checkbox.vue.d.ts +12 -12
  16. package/dist/types/src/components/ui/collapsible/Collapsible.vue.d.ts +2 -2
  17. package/dist/types/src/components/ui/collapsible/CollapsibleContent.vue.d.ts +2 -2
  18. package/dist/types/src/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +2 -2
  19. package/dist/types/src/components/ui/label/Label.vue.d.ts +3 -3
  20. package/dist/types/src/components/ui/select/Select.vue.d.ts +11 -10
  21. package/dist/types/src/components/ui/select/SelectContent.vue.d.ts +21 -10
  22. package/dist/types/src/components/ui/select/SelectGroup.vue.d.ts +3 -3
  23. package/dist/types/src/components/ui/select/SelectItem.vue.d.ts +4 -4
  24. package/dist/types/src/components/ui/select/SelectItemText.vue.d.ts +2 -2
  25. package/dist/types/src/components/ui/select/SelectLabel.vue.d.ts +2 -2
  26. package/dist/types/src/components/ui/select/SelectScrollDownButton.vue.d.ts +3 -3
  27. package/dist/types/src/components/ui/select/SelectScrollUpButton.vue.d.ts +3 -3
  28. package/dist/types/src/components/ui/select/SelectSeparator.vue.d.ts +1 -1
  29. package/dist/types/src/components/ui/select/SelectTrigger.vue.d.ts +4 -3
  30. package/dist/types/src/components/ui/select/SelectValue.vue.d.ts +2 -2
  31. package/dist/types/src/components/ui/tabs/Tabs.vue.d.ts +6 -6
  32. package/dist/types/src/components/ui/tabs/TabsContent.vue.d.ts +4 -4
  33. package/dist/types/src/components/ui/tabs/TabsList.vue.d.ts +3 -3
  34. package/dist/types/src/components/ui/tabs/TabsTrigger.vue.d.ts +4 -4
  35. package/dist/types/src/composables/useOpenapi.d.ts +2 -2
  36. package/dist/types/src/composables/useShiki.d.ts +1 -0
  37. package/dist/types/src/composables/useTheme.d.ts +2 -0
  38. package/dist/types/src/lib/parser/parseOpenapi.d.ts +4 -4
  39. package/dist/vitepress-openapi.client.cjs.js +135 -151
  40. package/dist/vitepress-openapi.client.es.js +17591 -18299
  41. package/dist/vitepress-openapi.css +1 -1
  42. package/dist/vitepress-openapi.node.cjs.js +1 -1
  43. package/dist/vitepress-openapi.node.es.js +1 -1
  44. package/package.json +7 -5
  45. package/src/components/Common/Highlight/OAShiki.vue +1 -1
  46. package/src/components/Context/OAContextAsync.vue +2 -3
  47. package/src/components/Context/OAContextProvider.vue +1 -1
  48. package/src/components/Feature/OAInfo.vue +1 -1
  49. package/src/components/Feature/OAIntroduction.vue +1 -1
  50. package/src/components/Feature/OAOperation.vue +13 -3
  51. package/src/components/Feature/OAOperationContent.vue +0 -4
  52. package/src/components/Feature/OAServers.vue +1 -1
  53. package/src/components/Feature/OASpec.vue +12 -3
  54. package/src/components/Feature/OASpecContent.vue +0 -5
  55. package/src/components/Playground/OAPlaygroundParameterInput.vue +2 -2
  56. package/src/components/Playground/OAPlaygroundParameters.vue +4 -4
  57. package/src/components/Response/OAResponses.vue +2 -2
  58. package/src/components/Sample/OACodeSamples.vue +4 -1
  59. package/src/components/index.ts +0 -4
  60. package/src/components/ui/button/Button.vue +2 -2
  61. package/src/components/ui/checkbox/Checkbox.vue +2 -2
  62. package/src/components/ui/collapsible/Collapsible.vue +2 -2
  63. package/src/components/ui/collapsible/CollapsibleContent.vue +2 -2
  64. package/src/components/ui/collapsible/CollapsibleTrigger.vue +2 -2
  65. package/src/components/ui/label/Label.vue +2 -2
  66. package/src/components/ui/select/Select.vue +2 -2
  67. package/src/components/ui/select/SelectContent.vue +3 -3
  68. package/src/components/ui/select/SelectGroup.vue +2 -2
  69. package/src/components/ui/select/SelectItem.vue +2 -2
  70. package/src/components/ui/select/SelectItemText.vue +2 -2
  71. package/src/components/ui/select/SelectLabel.vue +2 -2
  72. package/src/components/ui/select/SelectScrollDownButton.vue +2 -2
  73. package/src/components/ui/select/SelectScrollUpButton.vue +2 -2
  74. package/src/components/ui/select/SelectSeparator.vue +2 -2
  75. package/src/components/ui/select/SelectTrigger.vue +2 -2
  76. package/src/components/ui/select/SelectValue.vue +2 -2
  77. package/src/components/ui/select-with-custom-option/SelectWithCustomOption.vue +1 -1
  78. package/src/components/ui/tabs/Tabs.vue +2 -2
  79. package/src/components/ui/tabs/TabsContent.vue +2 -2
  80. package/src/components/ui/tabs/TabsList.vue +2 -2
  81. package/src/components/ui/tabs/TabsTrigger.vue +2 -2
  82. package/src/composables/useOpenapi.ts +3 -3
  83. package/src/composables/useShiki.ts +6 -2
  84. package/src/composables/useTheme.ts +9 -1
  85. package/src/lib/parser/parseOpenapi.ts +43 -19
  86. package/dist/OpenApi-B8nR467A.cjs +0 -95
  87. package/dist/OpenApi-snG2qo-c.js +0 -4847
  88. package/dist/types/src/components/Feature/OARemoteOperation.vue.d.ts +0 -32
  89. package/dist/types/src/components/Feature/OARemoteSpec.vue.d.ts +0 -24
  90. package/src/components/Feature/OARemoteOperation.vue +0 -41
  91. package/src/components/Feature/OARemoteSpec.vue +0 -36
@@ -0,0 +1,111 @@
1
+ "use strict";var Eo=Object.defineProperty;var Co=(e,t,n)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>Co(e,typeof t!="symbol"?t+"":t,n);const k=require("vue");function De(e){let t,n,r;if(Array.isArray(e)){for(n=Array(t=e.length);t--;)n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}if(Object.prototype.toString.call(e)==="[object Object]"){n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:De(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=(r=e[t])&&typeof r=="object"?De(r):r;return n}return e}const nt=new Map,xo=(e,t)=>{nt.has(e)||nt.set(e,new Map);const n=nt.get(e);if(n.has(t))return n.get(t);const r=t.split("/").slice(1);let o=e;for(const s of r)(!o||typeof o!="object")&&(o=null),o=o[s]??null;return n.set(t,o),o},rt=new Map,Ao=e=>{if(rt.has(e))return rt.get(e);const t=new Set,n=De(e),r=(s,a)=>{if(typeof s=="object"&&s!==null){if(t.has(s))return s;if(t.add(s),Array.isArray(s))for(let i=0;i<s.length;i++)s[i]=r(s[i]);else{if("$ref"in s&&typeof s.$ref=="string"){let i=s;do i=xo(n,i.$ref);while(i!=null&&i.$ref);return i}for(const i in s)s[i]=r(s[i])}}return s},o=r(n);return rt.set(e,o),o};function he(e){if(e instanceof Promise)return e.then(ot).catch(it);try{const t=e();return t instanceof Promise?t.then(ot).catch(it):ot(t)}catch(t){return it(t)}}const ot=e=>[e,null],it=e=>[null,new Et(e)];class Et extends Error{constructor(t){super("thrown error",{cause:t}),this.cause=t,Error.captureStackTrace&&Error.captureStackTrace(this,Et)}}/*!
2
+ * allof-merge v0.6.6
3
+ * Copyright (C) 2012-2024 Damir Yusipov
4
+ * Date: Sat, 17 Feb 2024 19:27:36 GMT
5
+ */function Ce(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Po(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}const Ro=(e={},t,n,r)=>{const o=`/${t}`,s=typeof e["/**"]=="function"?e["/**"]({key:t,path:n,value:r}):e["/**"],a=typeof e["/*"]=="function"?e["/*"]({key:t,path:n,value:r}):e["/*"];let i={};if(o in e)i=e[o];else if(!s&&!a)return;return i=typeof i=="function"?i({key:t,path:n,value:r}):i,a&&(i=Object.assign(Object.assign({},a),i)),s?Object.assign(Object.assign({"/**":e["/**"]},s),i):i},Qn=e=>{const t={},n=e.reduce((r,o)=>(Object.keys(o).forEach(s=>r.add(s)),r),new Set);for(const r of n.keys()){const o=e.filter(s=>r in s);if(o.length!==1){if(r.charAt(0)!=="/")throw new Error(`Cannot merge rules. Duplicate key: ${r}. Rules should not have same Rule key`);t[r]=(s,a)=>{const i=o.map(u=>typeof u[r]=="function"?u[r](s,a):u[r]);return Qn(i)}}else t[r]=o[0][r]}return t},ee=e=>typeof e=="object"&&e!==null,at=e=>Array.isArray(e),Lo=(e,t,n={})=>{var r,o;t=at(t)?t:[t];const s=at(n.rules)?Qn(n.rules):n.rules,a=[{data:e,state:n.state,path:[],keys:[],keyIndex:-1,rules:s}];for(;a.length>0;){const i=a[a.length-1];if(i.keyIndex>=i.keys.length){for(;!((r=i.hooks)===null||r===void 0)&&r.length;)i.hooks.pop()();a.pop();continue}const u=i.keys[i.keyIndex++],[c,d,f]=a.length>1?[i.data[u],[...i.path,u],Ro(i.rules,u,[...i.path,u],i.data[u])]:[i.data,i.path,s];let h={value:c,path:d,key:u,state:i.state,rules:f};const p=[];for(const g of t){if(!g||typeof g!="function")continue;const y=(o=g(h))!==null&&o!==void 0?o:{},{terminate:m,done:S,exitHook:$}=y,O=Po(y,["terminate","done","exitHook"]);if(m)return;if($&&p.push($),h=Object.assign(Object.assign({},h),O),S){h=null;break}}if(h&&ee(h.value)){const g=at(h.value)?[...h.value.keys()]:Object.keys(h.value);a.push({hooks:p,state:h.state,data:h.value,path:d,keys:g,keyIndex:0,rules:h.rules})}else for(;p.length;)p.pop()()}},Io=()=>{const e=new WeakMap;let t;return[({value:n})=>{t=n},({value:n,path:r,key:o,state:s})=>{if(o=r.length?o:"#",ee(t)&&ee(n)){if(e.has(t))return s.node[o]=e.get(t),{done:!0};const a=Array.isArray(n)?[]:{};s.node[o]=a,e.set(t,a)}else s.node[o]=n;return{value:n,state:Object.assign(Object.assign({},s),{node:s.node[o]})}}]};class Xn extends Map{add(t,n){const r=this.get(t);return r?r.push(n):this.set(t,[n]),this}}const Bo=(e,t)=>{const n={};for(const r of t)r in e&&(n[r]=e[r],delete e[r]);return n},Zn=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return[...e,...t];if(ee(e)&&ee(t)){const n=Object.assign({},e);for(const r of Object.keys(t))n[r]=Zn(n[r],t[r]);return n}return t},yt=e=>e&&e.$ref&&typeof e.$ref=="string",kn=e=>e&&e.anyOf&&Array.isArray(e.anyOf),vn=e=>e&&e.oneOf&&Array.isArray(e.oneOf),er=(e,t="")=>{const[n=t,r]=e.split("#"),o=r&&r!=="/"?r:"";return{filePath:n,pointer:o,normalized:No(n,o),jsonPath:nr(o)}},No=(e,t)=>e?`${e}${t?"#"+t:""}`:t?`#${t}`:"#",tr=(e,t,n=[t])=>{if(!ee(e))return;let r=e;const o=nr(t);for(const s of o)if(Array.isArray(r)&&r.length>+s)r=r[+s];else if(ee(r)&&s in r)r=r[s];else{if(!yt(r))return;{const a=er(r.$ref);r=a.filePath||n.includes(a.pointer)?void 0:tr(e,a.pointer,[...n,a.pointer])}}return r},Me={slash:/\//g,tilde:/~/g,escapedSlash:/~1/g,escapedTilde:/~0/g},nr=e=>e.split("/").map(t=>decodeURIComponent(t.replace(Me.escapedSlash,"/").replace(Me.escapedTilde,"~"))).slice(1),Ct=e=>e.length?"/"+e.map(t=>encodeURIComponent(String(t).replace(Me.tilde,"~0").replace(Me.slash,"~1"))).join("/"):"",Uo=(e,t)=>JSON.stringify(e)==JSON.stringify(t),_o=e=>{let t=1;for(;e*t%1!=0;)t*=10;return t};function Ho(e){const t=e.reduce((n,r)=>Math.max(n,_o(r)),0);return e.reduce((n,r)=>Math.round(n*t*r*t/rr(n*t,r*t))/t)}function rr(e,t){return t===0?e:rr(t,e%t)}const or=e=>{if(e.length===0)return[[]];const t=e[0],n=e.slice(1),r=or(n),o=[];for(const s of t)for(const a of r)o.push([s,...a]);return o},Do=e=>{const t=[];for(const n of e){if(!("properties"in n))continue;const r=new Set(Object.keys(n.properties)),o=new Xn;for(const a of r.values())for(const i of e)if(!(i==n||i.properties&&a in i.properties))if("patternProperties"in i&&i.patternProperties)for(const u of Object.keys(i.patternProperties))new RegExp(u).test(a)||r.delete(a);else"additionalProperties"in i&&(i.additionalProperties===!1?r.delete(a):typeof i.additionalProperties=="object"&&o.add(a,i.additionalProperties));if(!r.size)continue;const s={};for(const a of r.values())o.has(a)?s[a]={allOf:[n.properties[a],...o.get(a)]}:s[a]=n.properties[a];t.push(s)}return t},Fo=e=>{const t=[];for(const n of e){if(!("patternProperties"in n))continue;const r=new Set(Object.keys(n.patternProperties));for(const s of e)if(s!=n&&"additionalProperties"in s&&!s.additionalProperties)for(const a of r.values())s.patternProperties&&a in s.patternProperties||r.delete(a);if(!r.size)continue;const o={};for(const s of r.values())o[s]=n.patternProperties[s];t.push(o)}return t},Tn=e=>{const t={},n=xt(e);for(const[r,o]of Object.entries(n))o.includes(!1)?t[r]=!1:t[r]=o.length>1?{allOf:o}:o[0];return t},qo=(e,t)=>!!e.reduce((n,r)=>n&&r===!0,!0)||Re(e,t),Mo=()=>"Could not merge values, they are probably incompatible",Vo=e=>`Merge rule not found for key: ${e}`,xt=e=>{const t={};for(const n of e)for(const r of Object.keys(n))Array.isArray(t[r])?t[r].push(n[r]):t[r]=[n[r]];return t},Re=(e,t)=>{if(e.includes(!1))return!1;const n={},r=xt(e);"properties"in r&&(r.properties=Do(e)),"patternProperties"in r&&(r.patternProperties=Fo(e));for(let[o,s]of Object.entries(r)){if(!s.length)continue;const a=t.mergeRules;let i=`/${o}`in a?a[`/${o}`]:a["/?"];i=i&&!("$"in i)&&"/"in i?i["/"]:i,i=typeof i=="function"?i():i;const u=i&&"$"in i?i.$:void 0;if(!u)throw new Error(Vo(o));const c=s.length>1?u(s,Object.assign(Object.assign({},t),{allOfItems:e})):s[0];c===void 0?t.mergeError(s):n[o]=c}return Object.keys(n).length?n:void 0},z=e=>e[e.length-1],le=e=>e.reduce((t,n)=>t||n,!1),ve=e=>Math.min(...e),Te=e=>Math.max(...e),Jo=e=>e.length>1?e.reduce((t,n)=>`${t}(?=${n})`,""):e[0],ir=([e,...t])=>t.reduce((n,r)=>n.filter(o=>r.includes(o)),e),Go=([e,...t])=>t.find(n=>!Uo(n,e))?void 0:e,J=([e,...t])=>t.reduce((n,r)=>Zn(n,r),e),je=e=>or(e).map(t=>({allOf:t})),zo=e=>({anyOf:e}),Wo=e=>Ho(e),Yo=(e,t)=>{const n=e.map(o=>o.map(s=>JSON.stringify(s))),r=ir(n).map(o=>JSON.parse(o)).sort();return r.length||t.mergeError(e),r},Ko=(e,t)=>{const n=e.map(o=>Array.isArray(o)?o:[o]),r=ir(n);return r.length===1?r[0]:r.length?r:void 0},ar=e=>{const t=new Set;for(const n of e)for(const r of n)t.add(r);return Array.from(t).sort()},Qo=(e,t)=>{const n={},r=xt(e);for(const[o,s]of Object.entries(r))if(s.reduce((a,i)=>a&&Array.isArray(i),!0))n[o]=ar(s);else{const a=s.map(i=>Array.isArray(i)?{required:i}:i);n[o]=a.length>1?{allOf:a}:a[0]}return n},sr=(e,t)=>{if(!e.reduce((u,c)=>Array.isArray(c)||u,!1))return Re(e,t);const n=[];let r=1/0,o=0;const s=new Xn;for(const u of t.allOfItems)"additionalItems"in u&&u.additionalItems&&"items"in u&&Array.isArray(u.items)&&s.add(u.items.length,u.additionalItems),"items"in u&&(n.push(u.items),Array.isArray(u.items)&&(o=Math.max(o,u.items.length),"additionalItems"in u&&u.additionalItems===!1&&(r=Math.min(r,u.items.length))));const a=Math.min(o,r),i=[...Array(a)].map(()=>({allOf:[]}));for(const u of n)if(Array.isArray(u))for(let c=0;c<a;c++){const d=[];for(let f=0;f<=c;f++)s.has(f)&&d.push(...s.get(f));c<u.length?i[c].allOf.push(d.length?Object.assign(Object.assign({},u[c]),{allOf:d}):u[c]):i[c].allOf.push(!d.length||{allOf:d})}else i.forEach(({allOf:c})=>c.push(u));return i},Xo=(e,t)=>{const n=[],r=[];for(const o of t.allOfItems)"items"in o&&!Array.isArray(o.items)&&r.push(o.items),"additionalItems"in o&&"items"in o&&Array.isArray(o.items)&&n.push(o.additionalItems);return r.length&&n.forEach(o=>o.allOf=r),Re(n,t)},H=(e="draft-06",t={})=>Object.assign(Object.assign(Object.assign(Object.assign({"/maximum":{$:ve},"/exclusiveMaximum":{$:le},"/minimum":{$:Te},"/exclusiveMinimum":{$:le},"/maxLength":{$:ve},"/minLength":{$:Te},"/maxItems":{$:ve},"/minItems":{$:Te},"/uniqueItems":{$:le},"/maxProperties":{$:ve},"/minProperties":{$:Te},"/required":{$:ar},"/multipleOf":{$:Wo},"/enum":{$:Yo},"/type":{$:Ko},"/allOf":{"/*":()=>H(e,t),$:je},"/not":{$:zo},"/oneOf":{"/*":()=>H(e,t),$:je,sibling:["definitions","$defs","$id","$schema"]},"/anyOf":{"/*":()=>H(e,t),$:je,sibling:["definitions","$defs","$id","$schema"]},"/properties":{"/*":()=>H(e,t),$:Tn},"/items":()=>Object.assign(Object.assign({},H(e,t)),{$:sr,"/*":({key:n})=>typeof n=="number"?H(e,t):{}}),"/additionalProperties":()=>Object.assign(Object.assign({},H(e,t)),{$:qo}),"/additionalItems":()=>Object.assign(Object.assign({},H(e,t)),{$:Xo}),"/patternProperties":{"/*":()=>H(e,t),$:Tn},"/pattern":{$:Jo},"/readOnly":{$:le},"/writeOnly":{$:le},"/example":{$:J},"/examples":{$:J},"/deprecated":{$:le}},e!=="draft-04"?{"/propertyNames":()=>H(e,t),"/contains":()=>H(e,t),"/dependencies":{"/*":()=>H(e,t),$:Qo},"/const":{$:Go},"/exclusiveMaximum":{$:ve},"/exclusiveMinimum":{$:Te},"/$defs":{"/*":()=>H(e,t),$:J}}:{}),{"/definitions":{"/*":()=>H(e,t),$:J},"/xml":{$:J},"/externalDocs":{$:z},"/description":{$:z},"/title":{$:z},"/format":{$:z},"/default":{$:z},"/?":{$:z}}),t),{$:Re}),Ee=e=>H(e,{"/discriminator":{$:J},"/oneOf":{"/*":()=>Ee(e),$:je,sibling:["discriminator"]},"/anyOf":{"/*":()=>Ee(e),$:je,sibling:["discriminator"]}}),Ke=e=>e==="3.0.x"?Object.assign(Object.assign({},Ee("draft-04")),{"/items":({key:t})=>Object.assign(Object.assign({},Ee("draft-04")),{$:sr})}):Ee("draft-06"),fe=e=>({"/*":{"/schema":Ke(e)}}),On=e=>({"/content":{"/*":{"/schema":Ke(e),"/encoding":{"/headers":fe(e)}}}}),wn=e=>({"/*":{"/headers":fe(e),"/content":{"/*":{"/schema":Ke(e),"/encoding":{"/headers":fe(e)}}}}}),Zo=(e="3.0.x")=>({"/paths":{"/*":{"/*":{"/parameters":fe(e),"/requestBody":On(e),"/responses":wn(e)},"/parameters":fe(e)}},"/components":{"/schemas":{"/*":Ke(e)},"/responses":wn(e),"/parameters":fe(e),"/requestBodies":{"/*":On(e)},"/headers":fe(e)}}),de=H("draft-06",{"/args":()=>de,"/nullable":{$:le},"/specifiedByURL":{$:z},"/values":{$:J,"/*":{$:J,"/description":{$:z},"/deprecated":{$:z,"/reason":{$:z}}}},"/interfaces":{$:J,"/*":{$:J}},"/directives":{$:J,"/*":()=>Object.assign(Object.assign({},de),{"/meta":{$:J}})}}),ei={"/queries":{"/*":()=>de},"/mutations":{"/*":()=>de},"/subscriptions":{"/*":()=>de},"/components":{"/*":{"/*":de},"/directives":{"/*":{"/args":()=>de}}}},Ne=(e,t,n)=>{const r=n.sibling||[],o=e,s=t,a=o[s],i=Ce(o,[typeof s=="symbol"?s:s+""]),u=Bo(i,r);return Object.keys(i).length?Object.assign({[t]:a.map(c=>({allOf:[i,c]}))},u):e},ur=(e,t,n,r)=>{const o=[],s=Ct(t),a=[],i={pointer:s,data:"",refs:[]};for(const c of e)if(yt(c)&&!a.includes(c.$ref)){i.data===""&&(i.data=JSON.stringify(e));const{$ref:d}=c,f=Ce(c,["$ref"]),{filePath:h,normalized:p,pointer:g}=er(d),y=r.find(S=>S.refs.includes(c.$ref)&&S.data===i.data&&g!==S.pointer);if(y)return{allOfItems:[{$ref:"#"+y.pointer}],brokenRefs:a};i.refs.push(p);const m=h?void 0:tr(n,g);m===void 0?(a.push(p),o.push(c)):o.push(m),Object.keys(f).length&&o.push(f)}else o.push(c);i.refs.length&&r.push(i);const u=cr(o);return u.find(c=>yt(c)&&!a.includes(c.$ref))?ur(u,t,n,r):{allOfItems:u,brokenRefs:a}},cr=e=>{const t=[];for(const n of e)if(ee(n))if(n.allOf&&Array.isArray(n.allOf)){const{allOf:r}=n,o=Ce(n,["allOf"]),s=Object.keys(o).length?[...r,o]:r;t.push(...cr(s))}else t.push(n);return t},ti=e=>{if(typeof e!="object"||!e)return H();if("openapi"in e&&typeof e.openapi=="string"&&/3.+/.test(e.openapi)){const t=e.openapi.startsWith("3.1")?"3.1.x":"3.0.x";return Zo(t)}return"graphapi"in e&&typeof e.graphapi=="string"?ei:H()},ni=(e,t)=>{var n;const r=(n=void 0)!==null&&n!==void 0?n:ti(e);return((o,s=[],a={})=>{var i;s=Array.isArray(s)?s:[s];const u={"#":void 0},c=Object.assign({state:Object.assign(Object.assign({},(i=a.state)!==null&&i!==void 0?i:{}),{root:u,node:u})},a.rules?{rules:a.rules}:{}),[d,f]=Io();return Lo(o,[d,...s,f],c),u["#"]})(e,ri(t),{rules:r})},ri=e=>{const t=new Map;let n=e==null?void 0:e.source;const r=[];return({value:o,key:s,path:a,rules:i,state:u})=>{a.length||e!=null&&e.source||(n=o);const c=S=>{var $;const O=oi(a);O?t.set(...O):($=e==null?void 0:e.onMergeError)===null||$===void 0||$.call(e,Mo(),a,S)},d=()=>{const{node:S}=u,$=Ct(a);if(t.has($)){const O=t.get($),P=S[s];Array.isArray(P)&&(P.length<2&&c((o==null?void 0:o.allOf)||[]),P.splice(O,1))}};if(!ee(o)||Array.isArray(o))return{exitHook:d};if(!(S=>!!S&&S["/allOf"]&&"$"in S["/allOf"])(i))return{exitHook:d};const{allOf:f}=o,h=Ce(o,["allOf"]),p=[];if(Array.isArray(f)&&p.push(...f),p.length)Object.keys(h).length&&p.push(h);else{const{$ref:S}=h,$=Ce(h,["$ref"]);if(e!=null&&e.mergeRefSibling&&S&&Object.keys($).length>0)p.push({$ref:S},$);else if(e!=null&&e.mergeCombinarySibling){if(kn(h)&&i["/anyOf"])return{value:Ne(h,"anyOf",i["/anyOf"]),exitHook:d};if(vn(h)&&i["/oneOf"])return{value:Ne(h,"oneOf",i["/oneOf"]),exitHook:d}}}if(!p.length)return{value:h,exitHook:d};const{allOfItems:g,brokenRefs:y}=ur(p,a,n,r);if(y.length)return y.forEach(S=>{var $;return($=e==null?void 0:e.onRefResolveError)===null||$===void 0?void 0:$.call(e,"Cannot resolve $ref",a,S)}),{value:{allOf:g},exitHook:d};if(g.length<2)return{value:g.length?g[0]:{},exitHook:d};const m=Re(g,{allOfItems:g,mergeRules:i,mergeError:c});return e!=null&&e.mergeCombinarySibling&&kn(m)?{value:Ne(m,"anyOf",i["/anyOf"]),exitHook:d}:e!=null&&e.mergeCombinarySibling&&vn(m)?{value:Ne(m,"oneOf",i["/oneOf"]),exitHook:d}:{value:m,exitHook:d}}},oi=e=>{for(let t=e.length-2;t>=0;t--)if(e[t]==="anyOf"||e[t]==="oneOf"){const n=e.slice(0,t+1);return[Ct(n),e[t+1]]}},ii=Symbol.for("__confbox_fmt__"),ai=/^(\s+)/,si=/(\s+)$/;function ui(e,t={}){var o,s;const n=t.indent===void 0&&t.preserveIndentation!==!1&&e.slice(0,(t==null?void 0:t.sampleSize)||1024),r=t.preserveWhitespace===!1?void 0:{start:((o=ai.exec(e))==null?void 0:o[0])||"",end:((s=si.exec(e))==null?void 0:s[0])||""};return{sample:n,whiteSpace:r}}function ci(e,t,n){!t||typeof t!="object"||Object.defineProperty(t,ii,{enumerable:!1,configurable:!0,writable:!0,value:ui(e,n)})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function lr(e){return typeof e>"u"||e===null}function li(e){return typeof e=="object"&&e!==null}function di(e){return Array.isArray(e)?e:lr(e)?[]:[e]}function fi(e,t){var n,r,o,s;if(t)for(s=Object.keys(t),n=0,r=s.length;n<r;n+=1)o=s[n],e[o]=t[o];return e}function pi(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function hi(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var gi=lr,mi=li,bi=di,yi=pi,Si=hi,$i=fi,q={isNothing:gi,isObject:mi,toArray:bi,repeat:yi,isNegativeZero:Si,extend:$i};function dr(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
6
+
7
+ `+e.mark.snippet),r+" "+n):r}function we(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=dr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}we.prototype=Object.create(Error.prototype),we.prototype.constructor=we,we.prototype.toString=function(e){return this.name+": "+dr(this,e)};var X=we;function st(e,t,n,r,o){var s="",a="",i=Math.floor(o/2)-1;return r-t>i&&(s=" ... ",t=r-i+s.length),n-r>i&&(a=" ...",n=r+i-a.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+s.length}}function ut(e,t){return q.repeat(" ",t-e.length)+e}function ki(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],o=[],s,a=-1;s=n.exec(e.buffer);)o.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var i="",u,c,d=Math.min(e.line+t.linesAfter,o.length).toString().length,f=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=st(e.buffer,r[a-u],o[a-u],e.position-(r[a]-r[a-u]),f),i=q.repeat(" ",t.indent)+ut((e.line-u+1).toString(),d)+" | "+c.str+`
8
+ `+i;for(c=st(e.buffer,r[a],o[a],e.position,f),i+=q.repeat(" ",t.indent)+ut((e.line+1).toString(),d)+" | "+c.str+`
9
+ `,i+=q.repeat("-",t.indent+d+3+c.pos)+`^
10
+ `,u=1;u<=t.linesAfter&&!(a+u>=o.length);u++)c=st(e.buffer,r[a+u],o[a+u],e.position-(r[a]-r[a+u]),f),i+=q.repeat(" ",t.indent)+ut((e.line+u+1).toString(),d)+" | "+c.str+`
11
+ `;return i.replace(/\n$/,"")}var vi=ki,Ti=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Oi=["scalar","sequence","mapping"];function wi(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function ji(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Ti.indexOf(n)===-1)throw new X('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=wi(t.styleAliases||null),Oi.indexOf(this.kind)===-1)throw new X('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var D=ji;function jn(e,t){var n=[];return e[t].forEach(function(r){var o=n.length;n.forEach(function(s,a){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(o=a)}),n[o]=r}),n}function Ei(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function St(e){return this.extend(e)}St.prototype.extend=function(e){var t=[],n=[];if(e instanceof D)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new X("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(o){if(!(o instanceof D))throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new X("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new X("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof D))throw new X("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(St.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=jn(r,"implicit"),r.compiledExplicit=jn(r,"explicit"),r.compiledTypeMap=Ei(r.compiledImplicit,r.compiledExplicit),r};var Ci=St,xi=new D("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Ai=new D("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Pi=new D("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Ri=new Ci({explicit:[xi,Ai,Pi]});function Li(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Ii(){return null}function Bi(e){return e===null}var Ni=new D("tag:yaml.org,2002:null",{kind:"scalar",resolve:Li,construct:Ii,predicate:Bi,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ui(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function _i(e){return e==="true"||e==="True"||e==="TRUE"}function Hi(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Di=new D("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ui,construct:_i,predicate:Hi,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Fi(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function qi(e){return 48<=e&&e<=55}function Mi(e){return 48<=e&&e<=57}function Vi(e){if(e===null)return!1;var t=e.length,n=0,r=!1,o;if(!t)return!1;if(o=e[n],(o==="-"||o==="+")&&(o=e[++n]),o==="0"){if(n+1===t)return!0;if(o=e[++n],o==="b"){for(n++;n<t;n++)if(o=e[n],o!=="_"){if(o!=="0"&&o!=="1")return!1;r=!0}return r&&o!=="_"}if(o==="x"){for(n++;n<t;n++)if(o=e[n],o!=="_"){if(!Fi(e.charCodeAt(n)))return!1;r=!0}return r&&o!=="_"}if(o==="o"){for(n++;n<t;n++)if(o=e[n],o!=="_"){if(!qi(e.charCodeAt(n)))return!1;r=!0}return r&&o!=="_"}}if(o==="_")return!1;for(;n<t;n++)if(o=e[n],o!=="_"){if(!Mi(e.charCodeAt(n)))return!1;r=!0}return!(!r||o==="_")}function Ji(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Gi(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!q.isNegativeZero(e)}var zi=new D("tag:yaml.org,2002:int",{kind:"scalar",resolve:Vi,construct:Ji,predicate:Gi,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Wi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Yi(e){return!(e===null||!Wi.test(e)||e[e.length-1]==="_")}function Ki(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Qi=/^[-+]?[0-9]+e/;function Xi(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(q.isNegativeZero(e))return"-0.0";return n=e.toString(10),Qi.test(n)?n.replace("e",".e"):n}function Zi(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||q.isNegativeZero(e))}var ea=new D("tag:yaml.org,2002:float",{kind:"scalar",resolve:Yi,construct:Ki,predicate:Zi,represent:Xi,defaultStyle:"lowercase"}),ta=Ri.extend({implicit:[Ni,Di,zi,ea]}),na=ta,fr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),pr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ra(e){return e===null?!1:fr.exec(e)!==null||pr.exec(e)!==null}function oa(e){var t,n,r,o,s,a,i,u=0,c=null,d,f,h;if(t=fr.exec(e),t===null&&(t=pr.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(n,r,o));if(s=+t[4],a=+t[5],i=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],f=+(t[11]||0),c=(d*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(n,r,o,s,a,i,u)),c&&h.setTime(h.getTime()-c),h}function ia(e){return e.toISOString()}var aa=new D("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ra,construct:oa,instanceOf:Date,represent:ia});function sa(e){return e==="<<"||e===null}var ua=new D("tag:yaml.org,2002:merge",{kind:"scalar",resolve:sa}),At=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
12
+ \r`;function ca(e){if(e===null)return!1;var t,n,r=0,o=e.length,s=At;for(n=0;n<o;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function la(e){var t,n,r=e.replace(/[\r\n=]/g,""),o=r.length,s=At,a=0,i=[];for(t=0;t<o;t++)t%4===0&&t&&(i.push(a>>16&255),i.push(a>>8&255),i.push(a&255)),a=a<<6|s.indexOf(r.charAt(t));return n=o%4*6,n===0?(i.push(a>>16&255),i.push(a>>8&255),i.push(a&255)):n===18?(i.push(a>>10&255),i.push(a>>2&255)):n===12&&i.push(a>>4&255),new Uint8Array(i)}function da(e){var t="",n=0,r,o,s=e.length,a=At;for(r=0;r<s;r++)r%3===0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return o=s%3,o===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):o===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):o===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function fa(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var pa=new D("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ca,construct:la,predicate:fa,represent:da}),ha=Object.prototype.hasOwnProperty,ga=Object.prototype.toString;function ma(e){if(e===null)return!0;var t=[],n,r,o,s,a,i=e;for(n=0,r=i.length;n<r;n+=1){if(o=i[n],a=!1,ga.call(o)!=="[object Object]")return!1;for(s in o)if(ha.call(o,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function ba(e){return e!==null?e:[]}var ya=new D("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ma,construct:ba}),Sa=Object.prototype.toString;function $a(e){if(e===null)return!0;var t,n,r,o,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],Sa.call(r)!=="[object Object]"||(o=Object.keys(r),o.length!==1))return!1;s[t]=[o[0],r[o[0]]]}return!0}function ka(e){if(e===null)return[];var t,n,r,o,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],o=Object.keys(r),s[t]=[o[0],r[o[0]]];return s}var va=new D("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:$a,construct:ka}),Ta=Object.prototype.hasOwnProperty;function Oa(e){if(e===null)return!0;var t,n=e;for(t in n)if(Ta.call(n,t)&&n[t]!==null)return!1;return!0}function wa(e){return e!==null?e:{}}var ja=new D("tag:yaml.org,2002:set",{kind:"mapping",resolve:Oa,construct:wa}),Ea=na.extend({implicit:[aa,ua],explicit:[pa,ya,va,ja]}),oe=Object.prototype.hasOwnProperty,Ve=1,hr=2,gr=3,Je=4,ct=1,Ca=2,En=3,xa=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Aa=/[\x85\u2028\u2029]/,Pa=/[,\[\]\{\}]/,mr=/^(?:!|!!|![a-z\-]+!)$/i,br=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Cn(e){return Object.prototype.toString.call(e)}function Y(e){return e===10||e===13}function pe(e){return e===9||e===32}function M(e){return e===9||e===32||e===10||e===13}function ye(e){return e===44||e===91||e===93||e===123||e===125}function Ra(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function La(e){return e===120?2:e===117?4:e===85?8:0}function Ia(e){return 48<=e&&e<=57?e-48:-1}function xn(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
13
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function Ba(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var yr=new Array(256),Sr=new Array(256),ge=0;ge<256;ge++)yr[ge]=xn(ge)?1:0,Sr[ge]=xn(ge);function Na(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ea,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function $r(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=vi(n),new X(t,n)}function E(e,t){throw $r(e,t)}function Ge(e,t){e.onWarning&&e.onWarning.call(null,$r(e,t))}var An={YAML:function(e,t,n){var r,o,s;e.version!==null&&E(e,"duplication of %YAML directive"),n.length!==1&&E(e,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&E(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),s=parseInt(r[2],10),o!==1&&E(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Ge(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;n.length!==2&&E(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],mr.test(r)||E(e,"ill-formed tag handle (first argument) of the TAG directive"),oe.call(e.tagMap,r)&&E(e,'there is a previously declared suffix for "'+r+'" tag handle'),br.test(o)||E(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{E(e,"tag prefix is malformed: "+o)}e.tagMap[r]=o}};function re(e,t,n,r){var o,s,a,i;if(t<n){if(i=e.input.slice(t,n),r)for(o=0,s=i.length;o<s;o+=1)a=i.charCodeAt(o),a===9||32<=a&&a<=1114111||E(e,"expected valid JSON character");else xa.test(i)&&E(e,"the stream contains non-printable characters");e.result+=i}}function Pn(e,t,n,r){var o,s,a,i;for(q.isObject(n)||E(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),a=0,i=o.length;a<i;a+=1)s=o[a],oe.call(t,s)||(t[s]=n[s],r[s]=!0)}function Se(e,t,n,r,o,s,a,i,u){var c,d;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),c=0,d=o.length;c<d;c+=1)Array.isArray(o[c])&&E(e,"nested arrays are not supported inside keys"),typeof o=="object"&&Cn(o[c])==="[object Object]"&&(o[c]="[object Object]");if(typeof o=="object"&&Cn(o)==="[object Object]"&&(o="[object Object]"),o=String(o),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,d=s.length;c<d;c+=1)Pn(e,t,s[c],n);else Pn(e,t,s,n);else!e.json&&!oe.call(n,o)&&oe.call(t,o)&&(e.line=a||e.line,e.lineStart=i||e.lineStart,e.position=u||e.position,E(e,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(t,o,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[o]=s,delete n[o];return t}function Pt(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):E(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);o!==0;){for(;pe(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Y(o))for(Pt(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Ge(e,"deficient indentation"),r}function Qe(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||M(n)))}function Rt(e,t){t===1?e.result+=" ":t>1&&(e.result+=q.repeat(`
14
+ `,t-1))}function Ua(e,t,n){var r,o,s,a,i,u,c,d,f=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),M(p)||ye(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=e.input.charCodeAt(e.position+1),M(o)||n&&ye(o)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,i=!1;p!==0;){if(p===58){if(o=e.input.charCodeAt(e.position+1),M(o)||n&&ye(o))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),M(r))break}else{if(e.position===e.lineStart&&Qe(e)||n&&ye(p))break;if(Y(p))if(u=e.line,c=e.lineStart,d=e.lineIndent,_(e,!1,-1),e.lineIndent>=t){i=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=d;break}}i&&(re(e,s,a,!1),Rt(e,e.line-u),s=a=e.position,i=!1),pe(p)||(a=e.position+1),p=e.input.charCodeAt(++e.position)}return re(e,s,a,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function _a(e,t){var n,r,o;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(re(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,o=e.position;else return!0;else Y(n)?(re(e,r,o,!0),Rt(e,_(e,!1,t)),r=o=e.position):e.position===e.lineStart&&Qe(e)?E(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);E(e,"unexpected end of the stream within a single quoted scalar")}function Ha(e,t){var n,r,o,s,a,i;if(i=e.input.charCodeAt(e.position),i!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;){if(i===34)return re(e,n,e.position,!0),e.position++,!0;if(i===92){if(re(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),Y(i))_(e,!1,t);else if(i<256&&yr[i])e.result+=Sr[i],e.position++;else if((a=La(i))>0){for(o=a,s=0;o>0;o--)i=e.input.charCodeAt(++e.position),(a=Ra(i))>=0?s=(s<<4)+a:E(e,"expected hexadecimal character");e.result+=Ba(s),e.position++}else E(e,"unknown escape sequence");n=r=e.position}else Y(i)?(re(e,n,r,!0),Rt(e,_(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Qe(e)?E(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}E(e,"unexpected end of the stream within a double quoted scalar")}function Da(e,t){var n=!0,r,o,s,a=e.tag,i,u=e.anchor,c,d,f,h,p,g=Object.create(null),y,m,S,$;if($=e.input.charCodeAt(e.position),$===91)d=93,p=!1,i=[];else if($===123)d=125,p=!0,i={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),$=e.input.charCodeAt(++e.position);$!==0;){if(_(e,!0,t),$=e.input.charCodeAt(e.position),$===d)return e.position++,e.tag=a,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=i,!0;n?$===44&&E(e,"expected the node content, but found ','"):E(e,"missed comma between flow collection entries"),m=y=S=null,f=h=!1,$===63&&(c=e.input.charCodeAt(e.position+1),M(c)&&(f=h=!0,e.position++,_(e,!0,t))),r=e.line,o=e.lineStart,s=e.position,$e(e,t,Ve,!1,!0),m=e.tag,y=e.result,_(e,!0,t),$=e.input.charCodeAt(e.position),(h||e.line===r)&&$===58&&(f=!0,$=e.input.charCodeAt(++e.position),_(e,!0,t),$e(e,t,Ve,!1,!0),S=e.result),p?Se(e,i,g,m,y,S,r,o,s):f?i.push(Se(e,null,g,m,y,S,r,o,s)):i.push(y),_(e,!0,t),$=e.input.charCodeAt(e.position),$===44?(n=!0,$=e.input.charCodeAt(++e.position)):n=!1}E(e,"unexpected end of the stream within a flow collection")}function Fa(e,t){var n,r,o=ct,s=!1,a=!1,i=t,u=0,c=!1,d,f;if(f=e.input.charCodeAt(e.position),f===124)r=!1;else if(f===62)r=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)ct===o?o=f===43?En:Ca:E(e,"repeat of a chomping mode identifier");else if((d=Ia(f))>=0)d===0?E(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?E(e,"repeat of an indentation width identifier"):(i=t+d-1,a=!0);else break;if(pe(f)){do f=e.input.charCodeAt(++e.position);while(pe(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!Y(f)&&f!==0)}for(;f!==0;){for(Pt(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<i)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>i&&(i=e.lineIndent),Y(f)){u++;continue}if(e.lineIndent<i){o===En?e.result+=q.repeat(`
15
+ `,s?1+u:u):o===ct&&s&&(e.result+=`
16
+ `);break}for(r?pe(f)?(c=!0,e.result+=q.repeat(`
17
+ `,s?1+u:u)):c?(c=!1,e.result+=q.repeat(`
18
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=q.repeat(`
19
+ `,u):e.result+=q.repeat(`
20
+ `,s?1+u:u),s=!0,a=!0,u=0,n=e.position;!Y(f)&&f!==0;)f=e.input.charCodeAt(++e.position);re(e,n,e.position,!1)}return!0}function Rn(e,t){var n,r=e.tag,o=e.anchor,s=[],a,i=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!M(a))));){if(i=!0,e.position++,_(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,$e(e,t,gr,!1,!0),s.push(e.result),_(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)E(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i?(e.tag=r,e.anchor=o,e.kind="sequence",e.result=s,!0):!1}function qa(e,t,n){var r,o,s,a,i,u,c=e.tag,d=e.anchor,f={},h=Object.create(null),p=null,g=null,y=null,m=!1,S=!1,$;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),$=e.input.charCodeAt(e.position);$!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,E(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,($===63||$===58)&&M(r))$===63?(m&&(Se(e,f,h,p,g,null,a,i,u),p=g=y=null),S=!0,m=!0,o=!0):m?(m=!1,o=!0):E(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,$=r;else{if(a=e.line,i=e.lineStart,u=e.position,!$e(e,n,hr,!1,!0))break;if(e.line===s){for($=e.input.charCodeAt(e.position);pe($);)$=e.input.charCodeAt(++e.position);if($===58)$=e.input.charCodeAt(++e.position),M($)||E(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(Se(e,f,h,p,g,null,a,i,u),p=g=y=null),S=!0,m=!1,o=!1,p=e.tag,g=e.result;else if(S)E(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=d,!0}else if(S)E(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=d,!0}if((e.line===s||e.lineIndent>t)&&(m&&(a=e.line,i=e.lineStart,u=e.position),$e(e,t,Je,!0,o)&&(m?g=e.result:y=e.result),m||(Se(e,f,h,p,g,y,a,i,u),p=g=y=null),_(e,!0,-1),$=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&$!==0)E(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&Se(e,f,h,p,g,null,a,i,u),S&&(e.tag=c,e.anchor=d,e.kind="mapping",e.result=f),S}function Ma(e){var t,n=!1,r=!1,o,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&E(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,o="!!",a=e.input.charCodeAt(++e.position)):o="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):E(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!M(a);)a===33&&(r?E(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),mr.test(o)||E(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Pa.test(s)&&E(e,"tag suffix cannot contain flow indicator characters")}s&&!br.test(s)&&E(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{E(e,"tag name is malformed: "+s)}return n?e.tag=s:oe.call(e.tagMap,o)?e.tag=e.tagMap[o]+s:o==="!"?e.tag="!"+s:o==="!!"?e.tag="tag:yaml.org,2002:"+s:E(e,'undeclared tag handle "'+o+'"'),!0}function Va(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&E(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!M(n)&&!ye(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&E(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Ja(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!M(r)&&!ye(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&E(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),oe.call(e.anchorMap,n)||E(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],_(e,!0,-1),!0}function $e(e,t,n,r,o){var s,a,i,u=1,c=!1,d=!1,f,h,p,g,y,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=i=Je===n||gr===n,r&&_(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;Ma(e)||Va(e);)_(e,!0,-1)?(c=!0,i=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):i=!1;if(i&&(i=c||o),(u===1||Je===n)&&(Ve===n||hr===n?y=t:y=t+1,m=e.position-e.lineStart,u===1?i&&(Rn(e,m)||qa(e,m,y))||Da(e,y)?d=!0:(a&&Fa(e,y)||_a(e,y)||Ha(e,y)?d=!0:Ja(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&E(e,"alias node should not have any properties")):Ua(e,y,Ve===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=i&&Rn(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&E(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(oe.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,p=e.typeMap.multi[e.kind||"fallback"],f=0,h=p.length;f<h;f+=1)if(e.tag.slice(0,p[f].tag.length)===p[f].tag){g=p[f];break}g||E(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&E(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):E(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}function Ga(e){var t=e.position,n,r,o,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(_(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!M(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),o=[],r.length<1&&E(e,"directive name must not be less than one character in length");a!==0;){for(;pe(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Y(a));break}if(Y(a))break;for(n=e.position;a!==0&&!M(a);)a=e.input.charCodeAt(++e.position);o.push(e.input.slice(n,e.position))}a!==0&&Pt(e),oe.call(An,r)?An[r](e,r,o):Ge(e,'unknown document directive "'+r+'"')}if(_(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_(e,!0,-1)):s&&E(e,"directives end mark is expected"),$e(e,e.lineIndent-1,Je,!1,!0),_(e,!0,-1),e.checkLineBreaks&&Aa.test(e.input.slice(t,e.position))&&Ge(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Qe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_(e,!0,-1));return}if(e.position<e.length-1)E(e,"end of the stream or a document separator is expected");else return}function kr(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
21
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new Na(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,E(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Ga(n);return n.documents}function za(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var r=kr(e,n);if(typeof t!="function")return r;for(var o=0,s=r.length;o<s;o+=1)t(r[o])}function Wa(e,t){var n=kr(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new X("expected a single document in the stream, but found more")}}var Ya=za,Ka=Wa,Qa={loadAll:Ya,load:Ka},Xa=Qa.load;function Za(e,t){const n=Xa(e,t);return ci(e,n,t),n}const es=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#4d9375","activityBar.background":"#121212","activityBar.border":"#191919","activityBar.foreground":"#dbd7caee","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#121212","badge.background":"#dedcd590","badge.foreground":"#121212","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#181818","breadcrumb.focusForeground":"#dbd7caee","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#121212","button.background":"#4d9375","button.foreground":"#121212","button.hoverBackground":"#4d9375","checkbox.background":"#181818","checkbox.border":"#2f363d","debugToolBar.background":"#121212","descriptionForeground":"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#121212","dropdown.border":"#191919","dropdown.foreground":"#dbd7caee","dropdown.listBackground":"#181818","editor.background":"#121212","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7caee","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#181818","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#121212","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#181818","editorInlayHint.foreground":"#666666","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#181818","editorStickyScrollHover.background":"#181818","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#121212","errorForeground":"#cb7676","focusBorder":"#00000000","foreground":"#dbd7caee","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#181818","input.border":"#191919","input.foreground":"#dbd7caee","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#181818","list.activeSelectionForeground":"#dbd7caee","list.focusBackground":"#181818","list.highlightForeground":"#4d9375","list.hoverBackground":"#181818","list.hoverForeground":"#dbd7caee","list.inactiveFocusBackground":"#121212","list.inactiveSelectionBackground":"#181818","list.inactiveSelectionForeground":"#dbd7caee","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#121212","notificationCenterHeader.foreground":"#959da5","notifications.background":"#121212","notifications.border":"#191919","notifications.foreground":"#dbd7caee","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#121212","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7caee","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#121212","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#121212","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7caee","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#121212","quickInput.foreground":"#dbd7caee","quickInputList.focusBackground":"#181818","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7caee","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#121212","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#121212","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7caee","sideBarTitle.foreground":"#dbd7caee","statusBar.background":"#121212","statusBar.border":"#191919","statusBar.debuggingBackground":"#181818","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#121212","statusBarItem.prominentBackground":"#181818","tab.activeBackground":"#121212","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7caee","tab.border":"#191919","tab.hoverBackground":"#181818","tab.inactiveBackground":"#121212","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#121212","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7caee","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#121212","textBlockQuote.border":"#191919","textCodeBlock.background":"#121212","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#121212","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#181818","titleBar.inactiveBackground":"#121212","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"Vitesse Dark","name":"vitesse-dark","semanticHighlighting":true,"semanticTokenColors":{"class":"#6872ab","interface":"#5d99a9","namespace":"#db889a","property":"#b8a965","type":"#5d99a9"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#758575dd"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#666666"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#c99076"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#80a665"}},{"scope":"variable.parameter.function","settings":{"foreground":"#dbd7caee"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#4d9375"}},{"scope":"entity.name.function","settings":{"foreground":"#80a665"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#4d9375"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#cb7676"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#dbd7caee"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#c98a7d"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#c98a7d77"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#b8a96577"}},{"scope":"support","settings":{"foreground":"#b8a965"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#b8a965"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#bd976a"}},{"scope":["variable","identifier"],"settings":{"foreground":"#bd976a"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#5DA994"}},{"scope":"namespace","settings":{"foreground":"#db889a"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#cb7676"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#c98a7d"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#c4704f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#c98a7d"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#e6cc77"}},{"scope":["support.constant"],"settings":{"foreground":"#c99076"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#4C9A91"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#cb7676"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#4d9375"}},{"scope":"meta.module-reference","settings":{"foreground":"#4d9375"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#d4976c"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#4d9375"}},{"scope":"markup.quote","settings":{"foreground":"#5d99a9"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#dbd7caee"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#dbd7caee"}},{"scope":"markup.raw","settings":{"foreground":"#4d9375"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#c98a7d"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#dedcd590"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#6872ab"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#80a665"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"dark"}')),ts=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#1c6b48","activityBar.background":"#ffffff","activityBar.border":"#f0f0f0","activityBar.foreground":"#393a34","activityBar.inactiveForeground":"#393a3450","activityBarBadge.background":"#4e4f47","activityBarBadge.foreground":"#ffffff","badge.background":"#393a3490","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#22222218","breadcrumb.background":"#f7f7f7","breadcrumb.focusForeground":"#393a34","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#ffffff","button.background":"#1c6b48","button.foreground":"#ffffff","button.hoverBackground":"#1c6b48","checkbox.background":"#f7f7f7","checkbox.border":"#d1d5da","debugToolBar.background":"#ffffff","descriptionForeground":"#393a3490","diffEditor.insertedTextBackground":"#1c6b4830","diffEditor.removedTextBackground":"#ab595940","dropdown.background":"#ffffff","dropdown.border":"#f0f0f0","dropdown.foreground":"#393a34","dropdown.listBackground":"#f7f7f7","editor.background":"#ffffff","editor.findMatchBackground":"#e6cc7744","editor.findMatchHighlightBackground":"#e6cc7766","editor.focusedStackFrameHighlightBackground":"#fff5b1","editor.foldBackground":"#22222210","editor.foreground":"#393a34","editor.inactiveSelectionBackground":"#22222210","editor.lineHighlightBackground":"#f7f7f7","editor.selectionBackground":"#22222218","editor.selectionHighlightBackground":"#22222210","editor.stackFrameHighlightBackground":"#fffbdd","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#2993a3","editorBracketHighlight.foreground2":"#1e754f","editorBracketHighlight.foreground3":"#a65e2b","editorBracketHighlight.foreground4":"#a13865","editorBracketHighlight.foreground5":"#bda437","editorBracketHighlight.foreground6":"#296aa3","editorBracketMatch.background":"#1c6b4820","editorError.foreground":"#ab5959","editorGroup.border":"#f0f0f0","editorGroupHeader.tabsBackground":"#ffffff","editorGroupHeader.tabsBorder":"#f0f0f0","editorGutter.addedBackground":"#1e754f","editorGutter.commentRangeForeground":"#393a3450","editorGutter.deletedBackground":"#ab5959","editorGutter.foldingControlForeground":"#393a3490","editorGutter.modifiedBackground":"#296aa3","editorHint.foreground":"#1e754f","editorIndentGuide.activeBackground":"#00000030","editorIndentGuide.background":"#00000015","editorInfo.foreground":"#296aa3","editorInlayHint.background":"#f7f7f7","editorInlayHint.foreground":"#999999","editorLineNumber.activeForeground":"#4e4f47","editorLineNumber.foreground":"#393a3450","editorOverviewRuler.border":"#fff","editorStickyScroll.background":"#f7f7f7","editorStickyScrollHover.background":"#f7f7f7","editorWarning.foreground":"#a65e2b","editorWhitespace.foreground":"#00000015","editorWidget.background":"#ffffff","errorForeground":"#ab5959","focusBorder":"#00000000","foreground":"#393a34","gitDecoration.addedResourceForeground":"#1e754f","gitDecoration.conflictingResourceForeground":"#a65e2b","gitDecoration.deletedResourceForeground":"#ab5959","gitDecoration.ignoredResourceForeground":"#393a3450","gitDecoration.modifiedResourceForeground":"#296aa3","gitDecoration.submoduleResourceForeground":"#393a3490","gitDecoration.untrackedResourceForeground":"#2993a3","input.background":"#f7f7f7","input.border":"#f0f0f0","input.foreground":"#393a34","input.placeholderForeground":"#393a3490","inputOption.activeBackground":"#393a3450","list.activeSelectionBackground":"#f7f7f7","list.activeSelectionForeground":"#393a34","list.focusBackground":"#f7f7f7","list.highlightForeground":"#1c6b48","list.hoverBackground":"#f7f7f7","list.hoverForeground":"#393a34","list.inactiveFocusBackground":"#ffffff","list.inactiveSelectionBackground":"#f7f7f7","list.inactiveSelectionForeground":"#393a34","menu.separatorBackground":"#f0f0f0","notificationCenterHeader.background":"#ffffff","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#ffffff","notifications.border":"#f0f0f0","notifications.foreground":"#393a34","notificationsErrorIcon.foreground":"#ab5959","notificationsInfoIcon.foreground":"#296aa3","notificationsWarningIcon.foreground":"#a65e2b","panel.background":"#ffffff","panel.border":"#f0f0f0","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#1c6b48","panelTitle.activeForeground":"#393a34","panelTitle.inactiveForeground":"#6a737d","peekViewEditor.background":"#ffffff","peekViewResult.background":"#ffffff","pickerGroup.border":"#f0f0f0","pickerGroup.foreground":"#393a34","problemsErrorIcon.foreground":"#ab5959","problemsInfoIcon.foreground":"#296aa3","problemsWarningIcon.foreground":"#a65e2b","progressBar.background":"#1c6b48","quickInput.background":"#ffffff","quickInput.foreground":"#393a34","quickInputList.focusBackground":"#f7f7f7","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#393a3450","scrollbarSlider.background":"#393a3410","scrollbarSlider.hoverBackground":"#393a3450","settings.headerForeground":"#393a34","settings.modifiedItemIndicator":"#1c6b48","sideBar.background":"#ffffff","sideBar.border":"#f0f0f0","sideBar.foreground":"#4e4f47","sideBarSectionHeader.background":"#ffffff","sideBarSectionHeader.border":"#f0f0f0","sideBarSectionHeader.foreground":"#393a34","sideBarTitle.foreground":"#393a34","statusBar.background":"#ffffff","statusBar.border":"#f0f0f0","statusBar.debuggingBackground":"#f7f7f7","statusBar.debuggingForeground":"#4e4f47","statusBar.foreground":"#4e4f47","statusBar.noFolderBackground":"#ffffff","statusBarItem.prominentBackground":"#f7f7f7","tab.activeBackground":"#ffffff","tab.activeBorder":"#f0f0f0","tab.activeBorderTop":"#393a3490","tab.activeForeground":"#393a34","tab.border":"#f0f0f0","tab.hoverBackground":"#f7f7f7","tab.inactiveBackground":"#ffffff","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#f0f0f0","tab.unfocusedActiveBorderTop":"#f0f0f0","tab.unfocusedHoverBackground":"#ffffff","terminal.ansiBlack":"#121212","terminal.ansiBlue":"#296aa3","terminal.ansiBrightBlack":"#aaaaaa","terminal.ansiBrightBlue":"#296aa3","terminal.ansiBrightCyan":"#2993a3","terminal.ansiBrightGreen":"#1e754f","terminal.ansiBrightMagenta":"#a13865","terminal.ansiBrightRed":"#ab5959","terminal.ansiBrightWhite":"#dddddd","terminal.ansiBrightYellow":"#bda437","terminal.ansiCyan":"#2993a3","terminal.ansiGreen":"#1e754f","terminal.ansiMagenta":"#a13865","terminal.ansiRed":"#ab5959","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#bda437","terminal.foreground":"#393a34","terminal.selectionBackground":"#22222218","textBlockQuote.background":"#ffffff","textBlockQuote.border":"#f0f0f0","textCodeBlock.background":"#ffffff","textLink.activeForeground":"#1c6b48","textLink.foreground":"#1c6b48","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#4e4f47","titleBar.border":"#f7f7f7","titleBar.inactiveBackground":"#ffffff","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"Vitesse Light","name":"vitesse-light","semanticHighlighting":true,"semanticTokenColors":{"class":"#5a6aa6","interface":"#2e808f","namespace":"#b05a78","property":"#998418","type":"#2e808f"},"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#a0ada0"}},{"scope":["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],"settings":{"foreground":"#999999"}},{"scope":["constant","entity.name.constant","variable.language","meta.definition.variable"],"settings":{"foreground":"#a65e2b"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#59873a"}},{"scope":"variable.parameter.function","settings":{"foreground":"#393a34"}},{"scope":["entity.name.tag","tag.html"],"settings":{"foreground":"#1e754f"}},{"scope":"entity.name.function","settings":{"foreground":"#59873a"}},{"scope":["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],"settings":{"foreground":"#1e754f"}},{"scope":["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],"settings":{"foreground":"#ab5959"}},{"scope":["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#393a34"}},{"scope":["string","string punctuation.section.embedded source","attribute.value"],"settings":{"foreground":"#b56959"}},{"scope":["punctuation.definition.string"],"settings":{"foreground":"#b5695977"}},{"scope":["punctuation.support.type.property-name"],"settings":{"foreground":"#99841877"}},{"scope":"support","settings":{"foreground":"#998418"}},{"scope":["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],"settings":{"foreground":"#998418"}},{"scope":["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],"settings":{"foreground":"#b07d48"}},{"scope":["variable","identifier"],"settings":{"foreground":"#b07d48"}},{"scope":["support.type.primitive","entity.name.type"],"settings":{"foreground":"#2e8f82"}},{"scope":"namespace","settings":{"foreground":"#b05a78"}},{"scope":["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],"settings":{"foreground":"#ab5959"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#b56959"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#ab5e3f"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#b56959"}},{"scope":"string.regexp constant.character.escape","settings":{"foreground":"#bda437"}},{"scope":["support.constant"],"settings":{"foreground":"#a65e2b"}},{"scope":["keyword.operator.quantifier.regexp","constant.numeric","number"],"settings":{"foreground":"#2f798a"}},{"scope":["keyword.other.unit"],"settings":{"foreground":"#ab5959"}},{"scope":["constant.language.boolean","constant.language"],"settings":{"foreground":"#1e754f"}},{"scope":"meta.module-reference","settings":{"foreground":"#1c6b48"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#a65e2b"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#1c6b48"}},{"scope":"markup.quote","settings":{"foreground":"#2e808f"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#393a34"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#393a34"}},{"scope":"markup.raw","settings":{"foreground":"#1c6b48"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],"settings":{"foreground":"#b56959"}},{"scope":["markup.underline.link.markdown","markup.underline.link.image.markdown"],"settings":{"fontStyle":"underline","foreground":"#393a3490"}},{"scope":["type.identifier","constant.other.character-class.regexp"],"settings":{"foreground":"#5a6aa6"}},{"scope":["entity.other.attribute-name.html.vue"],"settings":{"foreground":"#59873a"}},{"scope":["invalid.illegal.unrecognized-tag.html"],"settings":{"fontStyle":"normal"}}],"type":"light"}'));function ns(e,t){var n;const r=k.shallowRef();return k.watchEffect(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),k.readonly(r)}function Xe(e){return k.getCurrentScope()?(k.onScopeDispose(e),!0):!1}function rs(e){let t=!1,n;const r=k.effectScope(!0);return(...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n)}const lt=new WeakMap,os=(...e)=>{var t;const n=e[0],r=(t=k.getCurrentInstance())==null?void 0:t.proxy;if(r==null&&!k.hasInjectionContext())throw new Error("injectLocal must be called in setup");return r&&lt.has(r)&&n in lt.get(r)?lt.get(r)[n]:k.inject(...e)};function is(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...s)=>(t+=1,r||(r=k.effectScope(!0),n=r.run(()=>e(...s))),Xe(o),n)}const Lt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const as=e=>typeof e<"u",ss=Object.prototype.toString,us=e=>ss.call(e)==="[object Object]",cs=()=>{},ls=ds();function ds(){var e,t;return Lt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function fs(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const vr=e=>e();function ps(e=vr,t={}){const{initialState:n="active"}=t,r=Or(n==="active");function o(){r.value=!1}function s(){r.value=!0}const a=(...i)=>{r.value&&e(...i)};return{isActive:k.readonly(r),pause:o,resume:s,eventFilter:a}}function Ln(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Tr(e){return k.getCurrentInstance()}function dt(e){return Array.isArray(e)?e:[e]}function Or(...e){if(e.length!==1)return k.toRef(...e);const t=e[0];return typeof t=="function"?k.readonly(k.customRef(()=>({get:t,set:cs}))):k.ref(t)}function hs(e,t=1e4){return k.customRef((n,r)=>{let o=k.toValue(e),s;const a=()=>setTimeout(()=>{o=k.toValue(e),r()},k.toValue(t));return Xe(()=>{clearTimeout(s)}),{get(){return n(),o},set(i){o=i,r(),clearTimeout(s),s=a()}}})}function gs(e,t,n={}){const{eventFilter:r=vr,...o}=n;return k.watch(e,fs(r,t),o)}function ms(e,t,n={}){const{eventFilter:r,initialState:o="active",...s}=n,{eventFilter:a,pause:i,resume:u,isActive:c}=ps(r,{initialState:o});return{stop:gs(e,t,{...s,eventFilter:a}),pause:i,resume:u,isActive:c}}const bs=k.toValue;function ys(e,t){Tr()&&k.onBeforeUnmount(e,t)}function wr(e,t=!0,n){Tr()?k.onMounted(e,n):t?e():k.nextTick(e)}function Ss(e,t,n){return k.watch(e,t,{...n,immediate:!0})}const ie=Lt?window:void 0;function xe(e){var t;const n=k.toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Ae(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},r=(i,u,c,d)=>(i.addEventListener(u,c,d),()=>i.removeEventListener(u,c,d)),o=k.computed(()=>{const i=dt(k.toValue(e[0])).filter(u=>u!=null);return i.every(u=>typeof u!="string")?i:void 0}),s=Ss(()=>{var i,u;return[(u=(i=o.value)==null?void 0:i.map(c=>xe(c)))!=null?u:[ie].filter(c=>c!=null),dt(k.toValue(o.value?e[1]:e[0])),dt(k.unref(o.value?e[2]:e[1])),k.toValue(o.value?e[3]:e[2])]},([i,u,c,d])=>{if(n(),!(i!=null&&i.length)||!(u!=null&&u.length)||!(c!=null&&c.length))return;const f=us(d)?{...d}:d;t.push(...i.flatMap(h=>u.flatMap(p=>c.map(g=>r(h,p,g,f)))))},{flush:"post"}),a=()=>{s(),n()};return Xe(n),a}function jr(){const e=k.shallowRef(!1),t=k.getCurrentInstance();return t&&k.onMounted(()=>{e.value=!0},t),e}function Er(e){const t=jr();return k.computed(()=>(t.value,!!e()))}function $s(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function ks(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=ie,eventName:s="keydown",passive:a=!1,dedupe:i=!1}=r,u=$s(t);return Ae(o,s,d=>{d.repeat&&k.toValue(i)||u(d)&&n(d)},a)}const vs=Symbol("vueuse-ssr-width");function Ts(){const e=k.hasInjectionContext()?os(vs,null):null;return typeof e=="number"?e:void 0}function Os(e,t={}){const{window:n=ie,ssrWidth:r=Ts()}=t,o=Er(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=k.shallowRef(typeof r=="number"),a=k.shallowRef(),i=k.shallowRef(!1),u=c=>{i.value=c.matches};return k.watchEffect(()=>{if(s.value){s.value=!o.value;const c=k.toValue(e).split(",");i.value=c.some(d=>{const f=d.includes("not all"),h=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let g=!!(h||p);return h&&g&&(g=r>=Ln(h[1])),p&&g&&(g=r<=Ln(p[1])),f?!g:g});return}o.value&&(a.value=n.matchMedia(k.toValue(e)),i.value=a.value.matches)}),Ae(a,"change",u,{passive:!0}),k.computed(()=>i.value)}function ws(e){return JSON.parse(JSON.stringify(e))}const Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_e="__vueuse_ssr_handlers__",js=Es();function Es(){return _e in Ue||(Ue[_e]=Ue[_e]||{}),Ue[_e]}function Cr(e,t){return js[e]||t}function Cs(e){return Os("(prefers-color-scheme: dark)",e)}function xs(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const As={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},In="vueuse-storage";function xr(e,t,n,r={}){var o;const{flush:s="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:d,window:f=ie,eventFilter:h,onError:p=A=>{console.error(A)},initOnMounted:g}=r,y=(d?k.shallowRef:k.ref)(typeof t=="function"?t():t),m=k.computed(()=>k.toValue(e));if(!n)try{n=Cr("getDefaultStorage",()=>{var A;return(A=ie)==null?void 0:A.localStorage})()}catch(A){p(A)}if(!n)return y;const S=k.toValue(t),$=xs(S),O=(o=r.serializer)!=null?o:As[$],{pause:P,resume:v}=ms(y,()=>j(y.value),{flush:s,deep:a,eventFilter:h});k.watch(m,()=>C(),{flush:s}),f&&i&&wr(()=>{n instanceof Storage?Ae(f,"storage",C,{passive:!0}):Ae(f,In,R),g&&C()}),g||C();function w(A,L){if(f){const I={key:m.value,oldValue:A,newValue:L,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",I):new CustomEvent(In,{detail:I}))}}function j(A){try{const L=n.getItem(m.value);if(A==null)w(L,null),n.removeItem(m.value);else{const I=O.write(A);L!==I&&(n.setItem(m.value,I),w(L,I))}}catch(L){p(L)}}function x(A){const L=A?A.newValue:n.getItem(m.value);if(L==null)return u&&S!=null&&n.setItem(m.value,O.write(S)),S;if(!A&&c){const I=O.read(L);return typeof c=="function"?c(I,S):$==="object"&&!Array.isArray(I)?{...S,...I}:I}else return typeof L!="string"?L:O.read(L)}function C(A){if(!(A&&A.storageArea!==n)){if(A&&A.key==null){y.value=S;return}if(!(A&&A.key!==m.value)){P();try{(A==null?void 0:A.newValue)!==O.write(y.value)&&(y.value=x(A))}catch(L){p(L)}finally{A?k.nextTick(v):v()}}}}function R(A){C(A.detail)}return y}const Ps="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Rs(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=ie,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:u,emitAuto:c,disableTransition:d=!0}=e,f={auto:"",light:"light",dark:"dark",...e.modes||{}},h=Cs({window:o}),p=k.computed(()=>h.value?"dark":"light"),g=u||(a==null?Or(r):xr(a,r,s,{window:o,listenToStorageChanges:i})),y=k.computed(()=>g.value==="auto"?p.value:g.value),m=Cr("updateHTMLAttrs",(P,v,w)=>{const j=typeof P=="string"?o==null?void 0:o.document.querySelector(P):xe(P);if(!j)return;const x=new Set,C=new Set;let R=null;if(v==="class"){const L=w.split(/\s/g);Object.values(f).flatMap(I=>(I||"").split(/\s/g)).filter(Boolean).forEach(I=>{L.includes(I)?x.add(I):C.add(I)})}else R={key:v,value:w};if(x.size===0&&C.size===0&&R===null)return;let A;d&&(A=o.document.createElement("style"),A.appendChild(document.createTextNode(Ps)),o.document.head.appendChild(A));for(const L of x)j.classList.add(L);for(const L of C)j.classList.remove(L);R&&j.setAttribute(R.key,R.value),d&&(o.getComputedStyle(A).opacity,document.head.removeChild(A))});function S(P){var v;m(t,n,(v=f[P])!=null?v:P)}function $(P){e.onChanged?e.onChanged(P,S):S(P)}k.watch(y,$,{flush:"post",immediate:!0}),wr(()=>$(y.value));const O=k.computed({get(){return c?g.value:y.value},set(P){g.value=P}});return Object.assign(O,{store:g,system:p,state:y})}function Ls(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Rs({...e,onChanged:(a,i)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,a==="dark",i,a):i(a)},modes:{dark:t,light:n}}),o=k.computed(()=>r.system.value);return k.computed({get(){return r.value==="dark"},set(a){const i=a?"dark":"light";o.value===i?r.value="auto":r.value=i}})}function Is(e,t,n={}){const{window:r=ie,...o}=n;let s;const a=Er(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},u=k.computed(()=>{const f=k.toValue(e);return Array.isArray(f)?f.map(h=>xe(h)):[xe(f)]}),c=k.watch(u,f=>{if(i(),a.value&&r){s=new ResizeObserver(t);for(const h of f)h&&s.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{i(),c()};return Xe(d),{isSupported:a,stop:d}}const Oe=new Map;function Bs(e){const t=k.getCurrentScope();function n(i){var u;const c=Oe.get(e)||new Set;c.add(i),Oe.set(e,c);const d=()=>o(i);return(u=t==null?void 0:t.cleanups)==null||u.push(d),d}function r(i){function u(...c){o(u),i(...c)}return n(u)}function o(i){const u=Oe.get(e);u&&(u.delete(i),u.size||s())}function s(){Oe.delete(e)}function a(i,u){var c;(c=Oe.get(e))==null||c.forEach(d=>d(i,u))}return{on:n,once:r,off:o,emit:a,reset:s}}function Ns(e,t,n,r={}){var o,s,a;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=r,p=k.getCurrentInstance(),g=n||(p==null?void 0:p.emit)||((o=p==null?void 0:p.$emit)==null?void 0:o.bind(p))||((a=(s=p==null?void 0:p.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(p==null?void 0:p.proxy));let y=c;t||(t="modelValue"),y=y||`update:${t.toString()}`;const m=O=>i?typeof i=="function"?i(O):ws(O):O,S=()=>as(e[t])?m(e[t]):f,$=O=>{h?h(O)&&g(y,O):g(y,O)};if(u){const O=S(),P=k.ref(O);let v=!1;return k.watch(()=>e[t],w=>{v||(v=!0,P.value=m(w),k.nextTick(()=>v=!1))}),k.watch(P,w=>{!v&&(w!==e[t]||d)&&$(w)},{deep:d}),P}else return k.computed({get(){return S()},set(O){$(O)}})}const Bn="",Nn=`
22
+ `;class U{constructor({indent:t,join:n}={}){this.postProcessors=[],this.code=[],this.indentationCharacter=Bn,this.lineJoin=Nn,this.indentLine=(r,o=0)=>`${this.indentationCharacter.repeat(o)}${r}`,this.unshift=(r,o)=>{const s=this.indentLine(r,o);this.code.unshift(s)},this.push=(r,o)=>{const s=this.indentLine(r,o);this.code.push(s)},this.blank=()=>{this.code.push("")},this.join=()=>{const r=this.code.join(this.lineJoin);return this.postProcessors.reduce((s,a)=>a(s),r)},this.addPostProcessor=r=>{this.postProcessors=[...this.postProcessors,r]},this.indentationCharacter=t||Bn,this.lineJoin=n??Nn}}function ze(e,t={}){const{delimiter:n='"',escapeChar:r="\\",escapeNewlines:o=!0}=t;return[...e.toString()].map(a=>a==="\b"?`${r}b`:a===" "?`${r}t`:a===`
23
+ `?o?`${r}n`:a:a==="\f"?`${r}f`:a==="\r"?o?`${r}r`:a:a===r?r+r:a===n?r+n:a<" "||a>"~"?JSON.stringify(a).slice(1,-1):a).join("")}const It=e=>ze(e,{delimiter:"'"}),F=e=>ze(e,{delimiter:'"'}),Us={info:{key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl",description:"Simple REST and HTTP API Client for C"},convert:({method:e,fullUrl:t,headersObj:n,allHeaders:r,postData:o})=>{const{push:s,blank:a,join:i}=new U;s("CURL *hnd = curl_easy_init();"),a(),s(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`),s(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);const u=Object.keys(n);return u.length&&(a(),s("struct curl_slist *headers = NULL;"),u.forEach(c=>{s(`headers = curl_slist_append(headers, "${c}: ${F(n[c])}");`)}),s("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),r.cookie&&(a(),s(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${r.cookie}");`)),o!=null&&o.text&&(a(),s(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(o.text)});`)),a(),s("CURLcode ret = curl_easy_perform(hnd);"),i()}};function N(e,t){var f,h,p,g;const n=new URL((t==null?void 0:t.url)??""),r=n.pathname==="/"?n.origin:n.toString(),o={method:(t==null?void 0:t.method)??"GET",url:r,httpVersion:"HTTP/1.1",cookies:[],headers:(t==null?void 0:t.headers)??[],headersSize:-1,bodySize:-1,queryString:Array.from(n.searchParams.entries()).map(([y,m])=>({name:y,value:m})),postData:t==null?void 0:t.postData},s=((o==null?void 0:o.headers)??[]).reduce((y,m)=>({...y,[m.name]:m.value}),{}),a=(o.queryString??[]).reduce((y,m)=>({...y,[m.name]:m.value}),{}),i=o.cookies.reduce((y,m)=>({...y,[m.name]:m.value}),{}),u=new URL(o.url),c={protocol:u.protocol,hostname:u.hostname,host:u.hostname,port:u.port,pathname:u.pathname.split("/").map(y=>encodeURIComponent(decodeURIComponent(y))).join("/")+u.search,path:u.pathname.split("/").map(y=>encodeURIComponent(decodeURIComponent(y))).join("/")+u.search,search:u.search,hash:u.hash,href:u.href,origin:u.origin,password:u.password,searchParams:u.searchParams,username:u.username,toString:u.toString,toJSON:()=>u.toJSON()},d={url:o.url,uriObj:c,method:((f=o.method)==null?void 0:f.toLocaleUpperCase())??"GET",httpVersion:o.httpVersion,cookies:o.cookies,headers:o.headers??[],headersSize:o.headersSize,headersObj:s??{},bodySize:o.bodySize,queryString:o.queryString??[],postData:o.postData?{mimeType:o.postData.mimeType??"application/json",text:o.postData.text??"",params:o.postData.params??[],paramsObj:((h=o.postData.params)==null?void 0:h.reduce((y,m)=>(m.name&&m.value!==void 0&&(y[m.name]=m.value),y),{}))??{}}:void 0,allHeaders:s??{},fullUrl:o.url,queryObj:a??{},cookiesObj:i??{}};if(((p=d.postData)==null?void 0:p.mimeType)==="application/json"&&((g=d.postData)!=null&&g.text))try{d.postData.jsonObj=JSON.parse(d.postData.text)}catch(y){console.error("Error parsing JSON:",y)}return typeof e.convert=="function"?e.convert(d):""}const _s={target:"c",client:"libcurl",title:"Libcurl",generate(e){return N(Us,e)}},Hs={info:{key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"},convert:({allHeaders:e,fullUrl:t,method:n,postData:r},o)=>{const s={indent:" ",...o},{push:a,join:i}=new U({indent:s.indent});return a("HttpRequest request = HttpRequest.newBuilder()"),a(`.uri(URI.create("${t}"))`,2),Object.keys(e).forEach(u=>{a(`.header("${u}", "${F(e[u])}")`,2)}),r!=null&&r.text?a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(r.text)}))`,2):a(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`,2),a(".build();",2),a("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),a("System.out.println(response.body());"),i()}},Ds={target:"java",client:"nethttp",title:"java.net.http",generate(e){return N(Hs,e)}},Fs={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,method:t,fullUrl:n,allHeaders:r},o)=>{const s={indent:" ",...o},{push:a,blank:i,join:u}=new U({indent:s.indent}),c=["GET","POST","PUT","DELETE","PATCH","HEAD"],d=["POST","PUT","DELETE","PATCH"];return a("OkHttpClient client = new OkHttpClient();"),i(),e!=null&&e.text&&(e.boundary?a(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`):a(`MediaType mediaType = MediaType.parse("${e.mimeType}");`),a(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)),a("Request request = new Request.Builder()"),a(`.url("${n}")`,1),c.includes(t.toUpperCase())?d.includes(t.toUpperCase())?e!=null&&e.text?a(`.${t.toLowerCase()}(body)`,1):a(`.${t.toLowerCase()}(null)`,1):a(`.${t.toLowerCase()}()`,1):e!=null&&e.text?a(`.method("${t.toUpperCase()}", body)`,1):a(`.method("${t.toUpperCase()}", null)`,1),Object.keys(r).forEach(f=>{a(`.addHeader("${f}", "${F(r[f])}")`,1)}),a(".build();",1),i(),a("Response response = client.newCall(request).execute();"),u()}},qs={target:"java",client:"okhttp",title:"OkHttp",generate(e){return N(Fs,e)}},Ms={info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"},convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const s={indent:" ",...o},{join:a,push:i}=new U({indent:s.indent});return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?i(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${r}")`):i(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${r}")`),Object.keys(t).forEach(c=>{i(`.header("${c}", "${F(t[c])}")`,1)}),n!=null&&n.text&&i(`.body(${JSON.stringify(n.text)})`,1),i(".asString();",1),a()}},Vs={target:"java",client:"unirest",title:"Unirest",generate(e){return N(Ms,e)}},Z=(e,t)=>Object.keys(e).find(n=>n.toLowerCase()===t.toLowerCase()),ae=(e,t)=>{const n=Z(e,t);if(n)return e[n]},Ar=(e,t)=>!!Z(e,t),Js=e=>{let t=ae(e,"accept-encoding");if(!t)return[];const n={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},r=[];return typeof t=="string"&&(t=[t]),t.forEach(o=>{o.split(",").forEach(s=>{const a=/\s*([^;\s]+)/.exec(s);if(a){const i=n[a[1]];i&&r.push(i)}})}),r},Gs={info:{key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},convert:({allHeaders:e,postData:t,method:n,fullUrl:r},o)=>{let s,a;const i={indent:" ",...o},{push:u,join:c}=new U({indent:i.indent});u("using System.Net.Http.Headers;");let d="";const f=!!e.cookie,h=Js(e);(f||h.length)&&(d="clientHandler",u("var clientHandler = new HttpClientHandler"),u("{"),f&&u("UseCookies = false,",1),h.length&&u(`AutomaticDecompression = ${h.join(" | ")},`,1),u("};")),u(`var client = new HttpClient(${d});`),u("var request = new HttpRequestMessage"),u("{");const p=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"];n=n.toUpperCase(),n&&p.includes(n)?n=`HttpMethod.${n[0]}${n.substring(1).toLowerCase()}`:n=`new HttpMethod("${n}")`,u(`Method = ${n},`,1),u(`RequestUri = new Uri("${r}"),`,1);const g=Object.keys(e).filter(y=>{switch(y.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(g.length&&(u("Headers =",1),u("{",1),g.forEach(y=>{u(`{ "${y}", "${F(e[y])}" },`,2)}),u("},",1)),t!=null&&t.text){const y=t.mimeType;switch(y){case"application/x-www-form-urlencoded":u("Content = new FormUrlEncodedContent(new Dictionary<string, string>",1),u("{",1),(s=t.params)===null||s===void 0||s.forEach(m=>{u(`{ "${m.name}", "${m.value}" },`,2)}),u("}),",1);break;case"multipart/form-data":u("Content = new MultipartFormDataContent",1),u("{",1),(a=t.params)===null||a===void 0||a.forEach(m=>{u(`new StringContent(${JSON.stringify(m.value||"")})`,2),u("{",2),u("Headers =",3),u("{",3),m.contentType&&u(`ContentType = new MediaTypeHeaderValue("${m.contentType}"),`,4),u('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4),u("{",4),u(`Name = "${m.name}",`,5),m.fileName&&u(`FileName = "${m.fileName}",`,5),u("}",4),u("}",3),u("},",2)}),u("},",1);break;default:u(`Content = new StringContent(${JSON.stringify((t==null?void 0:t.text)||"")})`,1),u("{",1),u("Headers =",2),u("{",2),u(`ContentType = new MediaTypeHeaderValue("${y}")`,3),u("}",2),u("}",1);break}}return u("};"),u("using (var response = await client.SendAsync(request))"),u("{"),u("response.EnsureSuccessStatusCode();",1),u("var body = await response.Content.ReadAsStringAsync();",1),u("Console.WriteLine(body);",1),u("}"),c()}},zs={target:"csharp",client:"httpclient",title:"HttpClient",generate(e){return N(Gs,e)}},Ws={info:{key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"},convert:({allHeaders:e,method:t,fullUrl:n,headersObj:r,cookies:o,postData:s})=>{const{push:a,join:i}=new U;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported";if(a(`var client = new RestClient("${n}");`),a(`var request = new RestRequest(Method.${t.toUpperCase()});`),Object.keys(r).forEach(c=>{a(`request.AddHeader("${c}", "${F(r[c])}");`)}),o==null||o.forEach(({name:c,value:d})=>{a(`request.AddCookie("${c}", "${d}");`)}),s!=null&&s.text){const c=ae(e,"content-type"),d=JSON.stringify(s.text);a(`request.AddParameter("${c}", ${d}, ParameterType.RequestBody);`)}return a("IRestResponse response = client.Execute(request);"),i()}},Ys={target:"csharp",client:"restsharp",title:"RestSharp",generate(e){return N(Ws,e)}};class Un{constructor(t){this.name="",this.toString=()=>`:${this.name}`,this.name=t}}let Ks=class{constructor(t){this.path="",this.toString=()=>`(clojure.java.io/file "${this.path}")`,this.path=t}};const Pr=e=>e===void 0?null:e===null?"null":e.constructor.name.toLowerCase(),Rr=e=>Pr(e)==="object"?Object.keys(e).length===0:!1,_n=e=>(Object.keys(e).filter(t=>Rr(e[t])).forEach(t=>{delete e[t]}),e),Fe=(e,t)=>{const n=" ".repeat(e);return t.replace(/\n/g,`
24
+ ${n}`)},$t=e=>{switch(Pr(e)){case"string":return`"${e.replace(/"/g,'\\"')}"`;case"file":return e.toString();case"keyword":return e.toString();case"null":return"nil";case"regexp":return`#"${e.source}"`;case"object":{const t=Object.keys(e).reduce((n,r)=>{const o=Fe(r.length+2,$t(e[r]));return`${n}:${r} ${o}
25
+ `},"").trim();return`{${Fe(1,t)}}`}case"array":{const t=e.reduce((n,r)=>`${n} ${$t(r)}`,"").trim();return`[${Fe(1,t)}]`}default:return e.toString()}},Qs={info:{key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."},convert:({queryObj:e,method:t,postData:n,url:r,allHeaders:o},s)=>{const{push:a,join:i}=new U({indent:s==null?void 0:s.indent}),u=["get","post","put","delete","patch","head","options"];if(t=t.toLowerCase(),!u.includes(t))return a("Method not supported"),i();const c={headers:o,"query-params":e};switch(e&&Object.keys(e).length>0&&(r=r.split("?")[0]),n==null?void 0:n.mimeType){case"application/json":{c["content-type"]=new Un("json"),c["form-params"]=n.jsonObj;const d=Z(c.headers,"content-type");d&&delete c.headers[d]}break;case"application/x-www-form-urlencoded":{c["form-params"]=n.paramsObj;const d=Z(c.headers,"content-type");d&&delete c.headers[d]}break;case"text/plain":{c.body=n.text;const d=Z(c.headers,"content-type");d&&delete c.headers[d]}break;case"multipart/form-data":{if(n.params){c.multipart=n.params.map(f=>f.fileName&&!f.value?{name:f.name,content:new Ks(f.fileName)}:{name:f.name,content:f.value});const d=Z(c.headers,"content-type");d&&delete c.headers[d]}break}}switch(ae(c.headers,"accept")){case"application/json":{c.accept=new Un("json");const d=Z(c.headers,"accept");d&&delete c.headers[d]}break}if(a(`(require '[clj-http.client :as client])
26
+ `),Rr(_n(c)))a(`(client/${t} "${r}")`);else{const d=11+t.length+r.length,f=Fe(d,$t(_n(c)));a(`(client/${t} "${r}" ${f})`)}return i()}},Xs={target:"clojure",client:"clj_http",title:"clj-http",generate(e){return N(Qs,e)}},Zs={target:"dart",client:"http",title:"Http",generate(e,t){var p,g,y;const n={method:"GET",...e};n.method=n.method.toUpperCase();let r=`import 'package:http/http.dart' as http;
27
+
28
+ void main() async {
29
+ `,o="",s="";n.cookies&&n.cookies.length>0&&(s=n.cookies.map(m=>`${encodeURIComponent(m.name)}=${encodeURIComponent(m.value)}`).join("; "),o=` "Cookie": "${s}",
30
+ `);const a=((p=n.headers)==null?void 0:p.reduce((m,S)=>(S.value&&!/[; ]/.test(S.name)&&(m[S.name]=S.value),m),{}))||{};if(t!=null&&t.auth){const{username:m,password:S}=t.auth;if(m&&S){const $=`${m}:${S}`;a.Authorization=`'Basic ' + base64Encode(utf8.encode('${$}'))`}}if(o&&(a.Cookie=s),Object.keys(a).length>0){r+=` final headers = <String,String>{
31
+ `;for(const[m,S]of Object.entries(a))S.includes("utf8.encode")?r+=` '${m}': ${S},
32
+ `:r+=` '${m}': '${S}',
33
+ `;r+=` };
34
+
35
+ `}const i=(g=n.queryString)!=null&&g.length?"?"+n.queryString.map(m=>`${encodeURIComponent(m.name)}=${encodeURIComponent(m.value)}`).join("&"):"",u=`${n.url}${i}`;let c="";if(n.postData)if(n.postData.mimeType==="application/json")c=` final body = r'${n.postData.text}';
36
+
37
+ `;else if(n.postData.mimeType==="application/x-www-form-urlencoded")c=` final body = '${((y=n.postData.params)==null?void 0:y.map(m=>`${encodeURIComponent(m.name)}=${encodeURIComponent(m.value??"")}`).join("&"))||""}';
38
+
39
+ `;else if(n.postData.mimeType==="multipart/form-data"){c=` final body = <String,String>{
40
+ `;for(const m of n.postData.params||[]){const S=m.value||"",$=m.fileName||"";c+=` '${m.name}': '${$||S}',
41
+ `}c+=` };
42
+
43
+ `}else n.postData.mimeType==="application/octet-stream"&&(c=` final body = '${n.postData.text}';
44
+
45
+ `);c&&(r+=c);const d=n.method.toLowerCase(),f=Object.keys(a).length>0?", headers: headers":"";return r+=` final response = await http.${d}(Uri.parse('${u}')${f}${c?", body: body":""});
46
+ `,r+=` print(response.body);
47
+ `,r+="}",r}},eu={info:{key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"},convert:({postData:e,method:t,allHeaders:n,fullUrl:r},o={})=>{const{blank:s,push:a,join:i}=new U({indent:" "}),{showBoilerplate:u=!0,checkErrors:c=!1,printBody:d=!0,timeout:f=-1,insecureSkipVerify:h=!1}=o,p=c?"err":"_",g=u?1:0,y=()=>{c&&(a("if err != nil {",g),a("panic(err)",g+1),a("}",g))};u&&(a("package main"),s(),a("import ("),a('"fmt"',g),f>0&&a('"time"',g),h&&a('"crypto/tls"',g),e!=null&&e.text&&a('"strings"',g),a('"net/http"',g),d&&a('"io"',g),a(")"),s(),a("func main() {"),s()),h&&(a("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",g),a("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",g));const m=f>0,S=m||h,$=S?"client":"http.DefaultClient";return S&&(a("client := http.Client{",g),m&&a(`Timeout: time.Duration(${f} * time.Second),`,g+1),h&&a("Transport: insecureTransport,",g+1),a("}",g),s()),a(`url := "${r}"`,g),s(),e!=null&&e.text?(a(`payload := strings.NewReader(${JSON.stringify(e.text)})`,g),s(),a(`req, ${p} := http.NewRequest("${t}", url, payload)`,g),s()):(a(`req, ${p} := http.NewRequest("${t}", url, nil)`,g),s()),y(),Object.keys(n).length&&(Object.keys(n).forEach(O=>{a(`req.Header.Add("${O}", "${F(n[O])}")`,g)}),s()),a(`res, ${p} := ${$}.Do(req)`,g),y(),d&&(s(),a("defer res.Body.Close()",g),a(`body, ${p} := io.ReadAll(res.Body)`,g),y()),s(),a("fmt.Println(res)",g),d&&a("fmt.Println(string(body))",g),u&&(s(),a("}")),i()}},tu={target:"go",client:"native",title:"NewRequest",generate(e){return N(eu,e)}},nu={target:"http",client:"http1.1",title:"HTTP/1.1",generate(e){const t={method:"GET",headers:[],queryString:[],...e};t.method=t.method.toUpperCase();let n,r;try{n=new URL(t.url||"http://"),r=n.pathname+(n.search||"")}catch{r=t.url||"/"}const o=(n==null?void 0:n.hostname)||"UNKNOWN_HOSTNAME";let s=`${t.method} ${r} HTTP/1.1\r
48
+ `;if(t.queryString.length){const u=t.queryString.map(c=>`${encodeURIComponent(c.name)}=${encodeURIComponent(c.value)}`).join("&");s=`${t.method} ${r}?${u} HTTP/1.1\r
49
+ `}const a=new Map;if(a.set("Host",o),t.headers.forEach(u=>{a.has(u.name)?a.set(u.name,`${a.get(u.name)}, ${u.value}`):a.set(u.name,u.value)}),t.queryString.length){const u=t.queryString.map(c=>`${encodeURIComponent(c.name)}=${encodeURIComponent(c.value)}`).join("&");s=`${t.method} ${r}?${u} HTTP/1.1\r
50
+ `}let i="";if(t.postData){if(t.postData.mimeType==="application/json"&&t.postData.text)a.set("Content-Type","application/json"),i=t.postData.text;else if(t.postData.mimeType==="application/octet-stream"&&t.postData.text)a.set("Content-Type","application/octet-stream"),i=t.postData.text;else if(t.postData.mimeType==="application/x-www-form-urlencoded"&&t.postData.params){const u=t.postData.params.map(c=>`${encodeURIComponent(c.name)}=${encodeURIComponent(c.value??"")}`).join("&");a.set("Content-Type","application/x-www-form-urlencoded"),i=u}else if(t.postData.mimeType==="multipart/form-data"&&t.postData.params){const u="----WebKitFormBoundary7MA4YWxkTrZu0gW";a.set("Content-Type",`multipart/form-data; boundary=${u}`),i=t.postData.params.map(c=>c.fileName?`--${u}\r
51
+ Content-Disposition: form-data; name="${c.name}"; filename="${c.fileName}"\r
52
+ \r
53
+ `:`--${u}\r
54
+ Content-Disposition: form-data; name="${c.name}"\r
55
+ \r
56
+ ${c.value}\r
57
+ `).join("")+`--${u}--\r
58
+ `}}return a.forEach((u,c)=>{s+=`${c}: ${u}\r
59
+ `}),s+=`\r
60
+ ${i}`,s}},ru={info:{key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"},convert:({method:e,allHeaders:t,postData:n,fullUrl:r},o)=>{const s={indent:" ",...o},{blank:a,push:i,join:u}=new U({indent:s.indent});return i("AsyncHttpClient client = new DefaultAsyncHttpClient();"),i(`client.prepare("${e.toUpperCase()}", "${r}")`),Object.keys(t).forEach(c=>{i(`.setHeader("${c}", "${F(t[c])}")`,1)}),n!=null&&n.text&&i(`.setBody(${JSON.stringify(n.text)})`,1),i(".execute()",1),i(".toCompletableFuture()",1),i(".thenAccept(System.out::println)",1),i(".join();",1),a(),i("client.close();"),u()}},ou={target:"java",client:"asynchttp",title:"AsyncHttp",generate(e){return N(ru,e)}};function Le(e){return e.reduce((t,n)=>(t[n.name]=n.value,t),{})}function iu(e){return/\s|-/.test(e)}function K(e,t=0){const n=[],r=" ".repeat(t),o=" ".repeat(t+2);for(const[s,a]of Object.entries(e)){const i=iu(s)?`'${s}'`:s;if(Array.isArray(a)){const u=a.map(c=>typeof c=="string"?`'${c}'`:c&&typeof c=="object"?K(c,t+2):c).join(`, ${o}`);n.push(`${o}${i}: [${u}]`)}else if(a&&typeof a=="object")n.push(`${o}${i}: ${K(a,t+2)}`);else if(typeof a=="string"){let u=`${a}`;if(a.startsWith("JSON.stringify")){const c=a.split(`
61
+ `);c.length>1&&(u=c.map((d,f)=>f===0?d:`${o}${d}`).join(`
62
+ `))}else u=`'${a}'`;n.push(`${o}${i}: ${u}`)}else n.push(`${o}${i}: ${a}`)}return`{
63
+ ${n.join(`,
64
+ `)}
65
+ ${r}}`}const au={target:"js",client:"fetch",title:"Fetch",generate(e){var a,i;const t={method:"GET",...e};t.method=t.method.toUpperCase();const n={method:t.method==="GET"?void 0:t.method},r=new URLSearchParams(t.queryString?Le(t.queryString):void 0),o=r.size?`?${r.toString()}`:"";(a=t.headers)!=null&&a.length&&(n.headers={},t.headers.forEach(u=>{n.headers[u.name]=u.value})),(i=t.cookies)!=null&&i.length&&(n.headers=n.headers||{},t.cookies.forEach(u=>{n.headers["Set-Cookie"]=n.headers["Set-Cookie"]?`${n.headers["Set-Cookie"]}; ${u.name}=${u.value}`:`${u.name}=${u.value}`})),Object.keys(n).forEach(u=>{n[u]===void 0&&delete n[u]}),t.postData&&(n.body=t.postData.text,t.postData.mimeType==="application/json"&&(n.body=`JSON.stringify(${K(JSON.parse(n.body))})`));const s=Object.keys(n).length?`, ${K(n)}`:"";return`fetch('${t.url}${o}'${s})`}},{toString:su}=Object.prototype;function uu(e){return su.call(e)==="[object RegExp]"}function cu(e){const t=typeof e;return e!==null&&(t==="object"||t==="function")}const{propertyIsEnumerable:lu}=Object.prototype;function du(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>lu.call(e,t))]}function Ze(e,t,n){const r=[];return function o(s,a={},i=""){const u=a.indent||" ";let c;a.inlineCharacterLimit===void 0?c={newline:`
66
+ `,newlineOrSpace:`
67
+ `,pad:i,indent:i+u}:c={newline:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newlineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const d=f=>{if(a.inlineCharacterLimit===void 0)return f;const h=f.replace(new RegExp(c.newline,"g"),"").replace(new RegExp(c.newlineOrSpace,"g")," ").replace(new RegExp(c.pad+"|"+c.indent,"g"),"");return h.length<=a.inlineCharacterLimit?h:f.replace(new RegExp(c.newline+"|"+c.newlineOrSpace,"g"),`
68
+ `).replace(new RegExp(c.pad,"g"),i).replace(new RegExp(c.indent,"g"),i+u)};if(r.includes(s))return'"[Circular]"';if(s==null||typeof s=="number"||typeof s=="boolean"||typeof s=="function"||typeof s=="symbol"||uu(s))return String(s);if(s instanceof Date)return`new Date('${s.toISOString()}')`;if(Array.isArray(s)){if(s.length===0)return"[]";r.push(s);const f="["+c.newline+s.map((h,p)=>{const g=s.length-1===p?c.newline:","+c.newlineOrSpace;let y=o(h,a,i+u);return a.transform&&(y=a.transform(s,p,y)),c.indent+y+g}).join("")+c.pad+"]";return r.pop(),d(f)}if(cu(s)){let f=du(s);if(a.filter&&(f=f.filter(p=>a.filter(s,p))),f.length===0)return"{}";r.push(s);const h="{"+c.newline+f.map((p,g)=>{const y=f.length-1===g?c.newline:","+c.newlineOrSpace,m=typeof p=="symbol",S=!m&&/^[a-z$_][$\w]*$/i.test(p),$=m||S?p:o(p,a);let O=o(s[p],a,i+u);return a.transform&&(O=a.transform(s,p,O)),c.indent+String($)+": "+O+y}).join("")+c.pad+"}";return r.pop(),d(h)}return s=s.replace(/\\/g,"\\\\"),s=String(s).replace(/[\r\n]/g,f=>f===`
69
+ `?"\\n":"\\r"),a.singleQuotes===!1?(s=s.replace(/"/g,'\\"'),`"${s}"`):(s=s.replace(/'/g,"\\'"),`'${s}'`)}(e,t,n)}const fu={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({allHeaders:e,method:t,url:n,queryObj:r,postData:o},s)=>{const a={indent:" ",...s},{blank:i,push:u,join:c,addPostProcessor:d}=new U({indent:a.indent});u("import axios from 'axios';"),i();const f={method:t,url:n};switch(Object.keys(r).length&&(f.params=r),Object.keys(e).length&&(f.headers=e),o==null?void 0:o.mimeType){case"application/x-www-form-urlencoded":o.params&&(u("const encodedParams = new URLSearchParams();"),o.params.forEach(p=>{u(`encodedParams.set('${p.name}', '${p.value}');`)}),i(),f.data="encodedParams,",d(p=>p.replace(/'encodedParams,'/,"encodedParams,")));break;case"application/json":o.jsonObj&&(f.data=o.jsonObj);break;case"multipart/form-data":if(!o.params)break;u("const form = new FormData();"),o.params.forEach(p=>{u(`form.append('${p.name}', '${p.value||p.fileName||""}');`)}),i(),f.data="[form]";break;default:o!=null&&o.text&&(f.data=o.text)}const h=Ze(f,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form");return u(`const options = ${h};`),i(),u("try {"),u("const { data } = await axios.request(options);",1),u("console.log(data);",1),u("} catch (error) {"),u("console.error(error);",1),u("}"),c()}},pu={target:"js",client:"axios",title:"Axios",generate(e){return N(fu,e)}},hu={target:"js",client:"ofetch",title:"ofetch",generate(e){var s,a;const t={method:"GET",...e};t.method=t.method.toUpperCase();const n={method:t.method==="GET"?void 0:t.method},r=new URLSearchParams(t.queryString?Le(t.queryString):void 0);r.size&&(n.query={},r.forEach((i,u)=>{n.query[u]=i})),(s=t.headers)!=null&&s.length&&(n.headers={},t.headers.forEach(i=>{n.headers[i.name]=i.value})),(a=t.cookies)!=null&&a.length&&(n.headers=n.headers||{},t.cookies.forEach(i=>{n.headers["Set-Cookie"]=n.headers["Set-Cookie"]?`${n.headers["Set-Cookie"]}; ${i.name}=${i.value}`:`${i.name}=${i.value}`})),Object.keys(n).forEach(i=>{n[i]===void 0&&delete n[i]}),t.postData&&(n.body=t.postData.text,t.postData.mimeType==="application/json"&&(n.body=JSON.parse(n.body)));const o=Object.keys(n).length?`, ${K(n)}`:"";return`import { ofetch } from 'ofetch'
70
+
71
+ ofetch('${t.url}'${o})`}},gu={info:{key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"},convert:({fullUrl:e,method:t,allHeaders:n,postData:r},o)=>{let s;const a={indent:" ",...o},{blank:i,push:u,join:c}=new U({indent:a.indent}),d={async:!0,crossDomain:!0,url:e,method:t,headers:n};switch(r==null?void 0:r.mimeType){case"application/x-www-form-urlencoded":d.data=r.paramsObj?r.paramsObj:r.text;break;case"application/json":d.processData=!1,d.data=r.text;break;case"multipart/form-data":if(!r.params)break;if(u("const form = new FormData();"),r.params.forEach(h=>{u(`form.append('${h.name}', '${h.value||h.fileName||""}');`)}),d.processData=!1,d.contentType=!1,d.mimeType="multipart/form-data",d.data="[form]",Ar(n,"content-type")&&!((s=ae(n,"content-type"))===null||s===void 0)&&s.includes("boundary")){const h=Z(n,"content-type");h&&delete d.headers[h]}i();break;default:r!=null&&r.text&&(d.data=r.text)}const f=Ze(d,{indent:a.indent}).replace("'[form]'","form");return u(`const settings = ${f};`),i(),u("$.ajax(settings).done(function (response) {"),u("console.log(response);",1),u("});"),c()}},mu={target:"js",client:"jquery",title:"jQuery",generate(e){return N(gu,e)}},bu={info:{key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"},convert:({postData:e,allHeaders:t,method:n,fullUrl:r},o)=>{let s;const a={indent:" ",cors:!0,...o},{blank:i,push:u,join:c}=new U({indent:a.indent});switch(e==null?void 0:e.mimeType){case"application/json":u(`const data = JSON.stringify(${Ze(e.jsonObj,{indent:a.indent})});`),i();break;case"multipart/form-data":if(!e.params)break;if(u("const data = new FormData();"),e.params.forEach(d=>{u(`data.append('${d.name}', '${d.value||d.fileName||""}');`)}),Ar(t,"content-type")&&!((s=ae(t,"content-type"))===null||s===void 0)&&s.includes("boundary")){const d=Z(t,"content-type");d&&delete t[d]}i();break;default:u(`const data = ${e!=null&&e.text?`'${e.text}'`:"null"};`),i()}return u("const xhr = new XMLHttpRequest();"),a.cors&&u("xhr.withCredentials = true;"),i(),u("xhr.addEventListener('readystatechange', function () {"),u("if (this.readyState === this.DONE) {",1),u("console.log(this.responseText);",2),u("}",1),u("});"),i(),u(`xhr.open('${n}', '${r}');`),Object.keys(t).forEach(d=>{u(`xhr.setRequestHeader('${d}', '${It(t[d])}');`)}),i(),u("xhr.send(data);"),c()}},yu={target:"js",client:"xhr",title:"XHR",generate(e){return N(bu,e)}},Su={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,fullUrl:t,method:n,allHeaders:r},o)=>{const s={indent:" ",...o},{blank:a,join:i,push:u}=new U({indent:s.indent}),c=["GET","POST","PUT","DELETE","PATCH","HEAD"],d=["POST","PUT","DELETE","PATCH"];return u("val client = OkHttpClient()"),a(),e!=null&&e.text&&(e.boundary?u(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`):u(`val mediaType = MediaType.parse("${e.mimeType}")`),u(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)),u("val request = Request.Builder()"),u(`.url("${t}")`,1),c.includes(n.toUpperCase())?d.includes(n.toUpperCase())?e!=null&&e.text?u(`.${n.toLowerCase()}(body)`,1):u(`.${n.toLowerCase()}(null)`,1):u(`.${n.toLowerCase()}()`,1):e!=null&&e.text?u(`.method("${n.toUpperCase()}", body)`,1):u(`.method("${n.toUpperCase()}", null)`,1),Object.keys(r).forEach(f=>{u(`.addHeader("${f}", "${F(r[f])}")`,1)}),u(".build()",1),a(),u("val response = client.newCall(request).execute()"),i()}},$u={target:"kotlin",client:"okhttp",title:"OkHttp",generate(e){return N(Su,e)}},ku={target:"node",client:"fetch",title:"Fetch",generate(e){var a,i;const t={method:"GET",...e};t.method=t.method.toUpperCase();const n={method:t.method==="GET"?void 0:t.method},r=new URLSearchParams(t.queryString?Le(t.queryString):void 0),o=r.size?`?${r.toString()}`:"";(a=t.headers)!=null&&a.length&&(n.headers={},t.headers.forEach(u=>{n.headers[u.name]=u.value})),(i=t.cookies)!=null&&i.length&&(n.headers=n.headers||{},t.cookies.forEach(u=>{n.headers["Set-Cookie"]=n.headers["Set-Cookie"]?`${n.headers["Set-Cookie"]}; ${u.name}=${u.value}`:`${u.name}=${u.value}`})),Object.keys(n).forEach(u=>{n[u]===void 0&&delete n[u]}),t.postData&&(n.body=t.postData.text,t.postData.mimeType==="application/json"&&(n.body=`JSON.stringify(${K(JSON.parse(n.body))})`));const s=Object.keys(n).length?`, ${K(n)}`:"";return`fetch('${t.url}${o}'${s})`}},vu={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({method:e,url:t,queryObj:n,allHeaders:r,postData:o},s)=>{const a={indent:" ",...s},{blank:i,join:u,push:c,addPostProcessor:d}=new U({indent:a.indent});c("const axios = require('axios').default;");const f={method:e,url:t};switch(Object.keys(n).length&&(f.params=n),Object.keys(r).length&&(f.headers=r),o==null?void 0:o.mimeType){case"application/x-www-form-urlencoded":o.params&&(c("const { URLSearchParams } = require('url');"),i(),c("const encodedParams = new URLSearchParams();"),o.params.forEach(p=>{c(`encodedParams.set('${p.name}', '${p.value}');`)}),i(),f.data="encodedParams,",d(p=>p.replace(/'encodedParams,'/,"encodedParams,")));break;case"application/json":i(),o.jsonObj&&(f.data=o.jsonObj);break;default:i(),o!=null&&o.text&&(f.data=o.text)}const h=Ze(f,{indent:" ",inlineCharacterLimit:80});return c(`const options = ${h};`),i(),c("try {"),c("const { data } = await axios.request(options);",1),c("console.log(data);",1),c("} catch (error) {"),c("console.error(error);",1),c("}"),u()}},Tu={target:"node",client:"axios",title:"Axios",generate(e){return N(vu,e)}},Ou={target:"node",client:"ofetch",title:"ofetch",generate(e){var s,a;const t={method:"GET",...e};t.method=t.method.toUpperCase();const n={method:t.method==="GET"?void 0:t.method},r=new URLSearchParams(t.queryString?Le(t.queryString):void 0);r.size&&(n.query={},r.forEach((i,u)=>{n.query[u]=i})),(s=t.headers)!=null&&s.length&&(n.headers={},t.headers.forEach(i=>{n.headers[i.name]=i.value})),(a=t.cookies)!=null&&a.length&&(n.headers=n.headers||{},t.cookies.forEach(i=>{n.headers["Set-Cookie"]=n.headers["Set-Cookie"]?`${n.headers["Set-Cookie"]}; ${i.name}=${i.value}`:`${i.name}=${i.value}`})),Object.keys(n).forEach(i=>{n[i]===void 0&&delete n[i]}),t.postData&&(n.body=t.postData.text,t.postData.mimeType==="application/json"&&(n.body=JSON.parse(n.body)));const o=Object.keys(n).length?`, ${K(n)}`:"";return`import { ofetch } from 'ofetch'
72
+
73
+ ofetch('${t.url}'${o})`}},wu={target:"node",client:"undici",title:"undici",generate(e){var a,i;const t={method:"GET",...e};t.method=t.method.toUpperCase();const n={method:t.method==="GET"?void 0:t.method},r=new URLSearchParams(t.queryString?Le(t.queryString):void 0),o=r.size?`?${r.toString()}`:"";(a=t.headers)!=null&&a.length&&(n.headers={},t.headers.forEach(u=>{n.headers[u.name]=u.value})),(i=t.cookies)!=null&&i.length&&(n.headers=n.headers||{},t.cookies.forEach(u=>{n.headers["Set-Cookie"]=n.headers["Set-Cookie"]?`${n.headers["Set-Cookie"]}; ${u.name}=${u.value}`:`${u.name}=${u.value}`})),Object.keys(n).forEach(u=>{n[u]===void 0&&delete n[u]}),t.postData&&(n.body=t.postData.text,t.postData.mimeType==="application/json"&&(n.body=`JSON.stringify(${K(JSON.parse(n.body))})`));const s=Object.keys(n).length?`, ${K(n)}`:"";return`import { request } from 'undici'
74
+
75
+ const { statusCode, body } = await request('${t.url}${o}'${s})`}},ft=(e,t,n,r)=>{const o=`${e} *${t} = `,s=kt(n,r?o.length:void 0);return`${o}${s};`},kt=(e,t)=>{const n=t===void 0?", ":`,
76
+ ${" ".repeat(t)}`;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}`;case"[object Array]":return`@[ ${e.map(o=>kt(o)).join(n)} ]`;case"[object Object]":{const r=[];for(const o in e)r.push(`@"${o}": ${kt(e[o])}`);return`@{ ${r.join(n)} }`}case"[object Boolean]":return e?"@YES":"@NO";default:return e==null?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},ju={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,method:n,fullUrl:r},o)=>{let s;const a={indent:" ",pretty:!0,timeout:10,...o},{push:i,join:u,blank:c}=new U({indent:a.indent}),d={hasHeaders:!1,hasBody:!1};if(i("#import <Foundation/Foundation.h>"),Object.keys(e).length&&(d.hasHeaders=!0,c(),i(ft("NSDictionary","headers",e,a.pretty))),t&&(t.text||t.jsonObj||t.params))switch(d.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(!((s=t.params)===null||s===void 0)&&s.length){c();const[f,...h]=t.params;i(`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${f.name}=${f.value}" dataUsingEncoding:NSUTF8StringEncoding]];`),h.forEach(({name:p,value:g})=>{i(`[postData appendData:[@"&${p}=${g}" dataUsingEncoding:NSUTF8StringEncoding]];`)})}else d.hasBody=!1;break;case"application/json":t.jsonObj&&(i(ft("NSDictionary","parameters",t.jsonObj,a.pretty)),c(),i("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));break;case"multipart/form-data":i(ft("NSArray","parameters",t.params||[],a.pretty)),i(`NSString *boundary = @"${t.boundary}";`),c(),i("NSError *error;"),i("NSMutableString *body = [NSMutableString string];"),i("for (NSDictionary *param in parameters) {"),i('[body appendFormat:@"--%@\\r\\n", boundary];',1),i('if (param[@"fileName"]) {',1),i('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2),i('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2),i('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2),i("if (error) {",2),i('NSLog(@"%@", error);',3),i("}",2),i("} else {",1),i('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2),i('[body appendFormat:@"%@", param[@"value"]];',2),i("}",1),i("}"),i('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'),i("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break;default:c(),i(`NSData *postData = [[NSData alloc] initWithData:[@"${t.text}" dataUsingEncoding:NSUTF8StringEncoding]];`)}return c(),i(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${r}"]`),i(" cachePolicy:NSURLRequestUseProtocolCachePolicy"),i(` timeoutInterval:${a.timeout.toFixed(1)}];`),i(`[request setHTTPMethod:@"${n}"];`),d.hasHeaders&&i("[request setAllHTTPHeaderFields:headers];"),d.hasBody&&i("[request setHTTPBody:postData];"),c(),i("NSURLSession *session = [NSURLSession sharedSession];"),i("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"),i(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"),i(" if (error) {",1),i(' NSLog(@"%@", error);',2),i(" } else {",1),i(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2),i(' NSLog(@"%@", httpResponse);',2),i(" }",1),i(" }];"),i("[dataTask resume];"),u()}},Eu={target:"objc",client:"nsurlsession",title:"NSURLSession",generate(e){return N(ju,e)}},Cu={info:{key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"},convert:({fullUrl:e,allHeaders:t,postData:n,method:r},o)=>{const s={indent:" ",...o},a=["get","post","head","delete","patch","put","options"],{push:i,blank:u,join:c}=new U({indent:s.indent});i("open Cohttp_lwt_unix"),i("open Cohttp"),i("open Lwt"),u(),i(`let uri = Uri.of_string "${e}" in`);const d=Object.keys(t);d.length===1?i(`let headers = Header.add (Header.init ()) "${d[0]}" "${F(t[d[0]])}" in`):d.length>1&&(i("let headers = Header.add_list (Header.init ()) ["),d.forEach(g=>{i(`("${g}", "${F(t[g])}");`,1)}),i("] in")),n!=null&&n.text&&i(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(n.text)} in`),u();const f=d.length?"~headers ":"",h=n!=null&&n.text?"~body ":"",p=a.includes(r.toLowerCase())?`\`${r.toUpperCase()}`:`(Code.method_of_string "${r}")`;return i(`Client.call ${f}${h}${p} uri`),i(">>= fun (res, body_stream) ->"),i("(* Do stuff with the result *)",1),c()}},xu={target:"ocaml",client:"cohttp",title:"Cohttp",generate(e){return N(Cu,e)}},Au={target:"php",client:"curl",title:"cURL",generate(e,t){var a,i,u,c,d;const n={method:"GET",...e};n.method=n.method.toUpperCase();const r=[],o=(a=n.queryString)!=null&&a.length?"?"+n.queryString.map(f=>{const h=encodeURIComponent(f.name),p=encodeURIComponent(f.value);return`${h}=${p}`}).join("&"):"",s=`${n.url}${o}`;if(r.push(`$ch = curl_init("${s}");`),r.push(""),n.method==="POST"&&r.push("curl_setopt($ch, CURLOPT_POST, true);"),(i=t==null?void 0:t.auth)!=null&&i.username&&((u=t==null?void 0:t.auth)!=null&&u.password)&&r.push(`curl_setopt($ch, CURLOPT_USERPWD, '${t.auth.username}:${t.auth.password}');`),(c=n.headers)!=null&&c.length){const f=n.headers.map(p=>`'${p.name}: ${p.value}'`);r.push(`curl_setopt($ch, CURLOPT_HTTPHEADER, [${f.join(", ")}]);`);const h=n.headers.find(p=>p.name.toLowerCase()==="accept-encoding");h&&/gzip|deflate/.test(h.value)&&r.push("curl_setopt($ch, CURLOPT_ENCODING, '');")}if((d=n.cookies)!=null&&d.length){const f=n.cookies.map(h=>{const p=encodeURIComponent(h.name),g=encodeURIComponent(h.value);return`${p}=${g}`}).join("; ");r.push(`curl_setopt($ch, CURLOPT_COOKIE, '${f}');`)}if(n.postData){if(n.postData.mimeType==="application/json"){if(n.postData.text)try{const f=JSON.parse(n.postData.text),h=We(f);r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(${h}));`)}catch{r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${n.postData.text}');`)}}else if(n.postData.mimeType==="multipart/form-data"&&n.postData.params){const f=n.postData.params.reduce((h,p)=>(p.fileName!==void 0?h.push(`'${p.name}' => '@${p.fileName}'`):p.value!==void 0&&h.push(`'${p.name}' => '${p.value}'`),h),[]);r.push("curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: multipart/form-data']);"),r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, [${f.join(", ")}]);`)}else if(n.postData.mimeType==="application/x-www-form-urlencoded"&&n.postData.params){const f=n.postData.params.map(h=>{const p=encodeURIComponent(h.name),g=h.value?encodeURIComponent(h.value):"";return`${p}=${g}`}).join("&");r.push("curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']);"),r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${f}');`)}else if(n.postData.mimeType==="application/octet-stream")r.push("curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/octet-stream']);"),r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${n.postData.text||""}');`);else if(n.postData.text)try{const f=JSON.parse(n.postData.text),h=We(f);r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(${h}));`)}catch{r.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${n.postData.text}');`)}}return r.push(""),r.push("curl_exec($ch);"),r.push(""),r.push("curl_close($ch);"),r.join(`
77
+ `).replace(/\n\n\n/g,`
78
+
79
+ `)}};function me(e){return" ".repeat(e*2)}function We(e,t=0){if(e==null)return"null";if(typeof e=="string")return`'${e.replace(/'/g,"\\'")}'`;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const n=e.map(r=>We(r,t+1)).join(`,
80
+ `+me(t+1));return`[
81
+ ${me(t+1)}${n}
82
+ ${me(t)}]`}if(typeof e=="object"){const n=Object.entries(e);if(n.length===0)return"[]";const r=n.map(([o,s])=>`'${o}' => ${We(s,t+1)}`).join(`,
83
+ `+me(t+1));return`[
84
+ ${me(t+1)}${r}
85
+ ${me(t)}]`}return"null"}const Pu={target:"php",client:"guzzle",title:"Guzzle",generate(e,t){var a;if(!e)return"";const n={},r=(e.method||"GET").toUpperCase(),o=e.url||"";if(e.headers&&Array.isArray(e.headers)&&e.headers.length>0){const i={};e.headers.forEach(u=>{i[u.name]===void 0?i[u.name]=u.value:Array.isArray(i[u.name])?i[u.name].push(u.value):i[u.name]=[i[u.name],u.value]}),n.headers=i}if(e.queryString&&e.queryString.length>0){const i={};e.queryString.forEach(u=>{i[u.name]=u.value}),n.query=i}if(e.cookies&&e.cookies.length>0){const i={};e.cookies.forEach(u=>{i[u.name]=u.value}),n.cookies=i}if((a=t==null?void 0:t.auth)!=null&&a.username&&t.auth.password&&(n.auth=[t.auth.username,t.auth.password]),e.postData)if(e.postData.mimeType==="application/json")try{n.json=JSON.parse(e.postData.text||"{}")}catch{n.body=e.postData.text}else if(e.postData.mimeType==="multipart/form-data"){if(e.postData.params)n.multipart=e.postData.params.map(i=>({name:i.name,contents:i.fileName?`fopen('${i.fileName}', 'r')`:i.value||""}));else if(e.postData.text)try{n.form_params=JSON.parse(e.postData.text)}catch{n.body=e.postData.text}}else if(e.postData.mimeType==="application/x-www-form-urlencoded"){if(e.postData.params){const i={};e.postData.params.forEach(u=>{i[u.name]=u.value||""}),n.form_params=i}}else n.body=e.postData.text;e.headers&&Array.isArray(e.headers)&&e.headers.some(i=>i.name==="Accept-Encoding"&&i.value.includes("gzip"))&&(n.decode_content=!0);let s=`$client = new GuzzleHttp\\Client();
86
+
87
+ `;if(Object.keys(n).length>0){const i=Lr(n);s+=`$response = $client->request('${r}', '${o}', ${i});`}else s+=`$response = $client->request('${r}', '${o}');`;return s}};function Lr(e,t=0){if(Object.keys(e).length===0)return"[]";const n=" ".repeat(4);let r=`[
88
+ `;for(const[o,s]of Object.entries(e)){const a=Ir(s,t+1);r+=`${n.repeat(t+1)}'${o}' => ${a},
89
+ `}return r+=`${n.repeat(t)}]`,r}function Ir(e,t){if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string"&&e.startsWith("fopen("))return e;if(typeof e=="string")return`'${e}'`;if(typeof e=="number")return e.toString();if(Array.isArray(e)){if(e.length===0)return"[]";const n=" ".repeat(4);let r=`[
90
+ `;return e.forEach(o=>{const s=Ir(o,t+1);r+=`${n.repeat(t+1)}${s},
91
+ `}),r+=`${n.repeat(t)}]`,r}return typeof e=="object"?Lr(e,t):`'${e}'`}const Br=e=>({method:n,headersObj:r,cookies:o,uriObj:s,fullUrl:a,postData:i,allHeaders:u})=>{const{push:c,join:d}=new U;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(n.toUpperCase()))return"Method not supported";const h=[],p=Object.keys(r);return p.length&&(c("$headers=@{}"),p.forEach(g=>{g!=="connection"&&c(`$headers.Add("${g}", "${ze(r[g],{escapeChar:"`"})}")`)}),h.push("-Headers $headers")),o.length&&(c("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),o.forEach(g=>{c("$cookie = New-Object System.Net.Cookie"),c(`$cookie.Name = '${g.name}'`),c(`$cookie.Value = '${g.value}'`),c(`$cookie.Domain = '${s.host}'`),c("$session.Cookies.Add($cookie)")}),h.push("-WebSession $session")),i!=null&&i.text&&(h.push(`-ContentType '${ze(ae(u,"content-type"),{delimiter:"'",escapeChar:"`"})}'`),h.push(`-Body '${i.text}'`)),c(`$response = ${e} -Uri '${a}' -Method ${n} ${h.join(" ")}`),d()},Ru={info:{key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"},convert:Br("Invoke-WebRequest")},Lu={target:"powershell",client:"webrequest",title:"Invoke-WebRequest",generate(e){return N(Ru,e)}},Iu={info:{key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"},convert:Br("Invoke-RestMethod")},Bu={target:"powershell",client:"restmethod",title:"Invoke-RestMethod",generate(e){return N(Iu,e)}},Nu={info:{key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"},convert:({uriObj:{path:e,protocol:t,host:n},postData:r,allHeaders:o,method:s},a={})=>{const{insecureSkipVerify:i=!1}=a,{push:u,blank:c,join:d}=new U;u("import http.client"),i&&u("import ssl"),c(),t==="https:"?(u(`conn = http.client.HTTPSConnection("${n}"${i?", context = ssl._create_unverified_context()":""})`),c()):(u(`conn = http.client.HTTPConnection("${n}")`),c());const f=JSON.stringify(r==null?void 0:r.text);f&&(u(`payload = ${f}`),c());const h=o,p=Object.keys(h).length;if(p===1)for(const g in h)u(`headers = { '${g}': "${F(h[g])}" }`),c();else if(p>1){let g=1;u("headers = {");for(const y in h)g++!==p?u(` '${y}': "${F(h[y])}",`):u(` '${y}': "${F(h[y])}"`);u("}"),c()}return u(f&&p?`conn.request("${s}", "${e}", payload, headers)`:f&&!p?`conn.request("${s}", "${e}", payload)`:!f&&p?`conn.request("${s}", "${e}", headers=headers)`:`conn.request("${s}", "${e}")`),c(),u("res = conn.getresponse()"),u("data = res.read()"),c(),u('print(data.decode("utf-8"))'),d()}},Uu={target:"python",client:"python3",title:"http.client",generate(e){return N(Nu,e)}},Hn=40,_u={target:"python",client:"requests",title:"Requests",generate(e,t){var i,u,c,d,f,h;const n={url:"https://example.com",method:"get",...e},r=n.method.toLowerCase(),o={};if((i=n.headers)!=null&&i.length&&(o.headers=n.headers.reduce((p,g)=>(g.name in p||(p[g.name]=g.value),p),{})),(u=n.queryString)!=null&&u.length&&(o.params=Object.fromEntries(n.queryString.map(p=>[p.name,p.value]))),(c=n.cookies)!=null&&c.length&&(o.cookies=Object.fromEntries(n.cookies.map(p=>[p.name,p.value]))),(d=t==null?void 0:t.auth)!=null&&d.username&&((f=t==null?void 0:t.auth)!=null&&f.password)&&(o.auth=[t.auth.username,t.auth.password]),n.postData){const{mimeType:p,text:g,params:y}=n.postData;if(p==="application/json"&&g)try{o.json=JSON.parse(g)}catch{o.data=g}else if(p==="application/octet-stream"&&g)o.data=g;else if(p==="multipart/form-data"&&y){const m={},S={};y.forEach($=>{$.fileName!==void 0?m[$.name]=`open("${$.fileName}", "rb")`:$.value!==void 0&&(S[$.name]=$.value)}),Object.keys(m).length&&(o.files=m),Object.keys(S).length&&(o.data=S)}else p==="application/x-www-form-urlencoded"&&y&&(o.data=Object.fromEntries(y.map(m=>[m.name,m.value])))}const s=[],a=`"${n.url}"`;n.url.length>Hn?s.push(a):s.push("");for(const[p,g]of Object.entries(o))if(p==="auth")s.push(`${p}=(${JSON.stringify(g[0])}, ${JSON.stringify(g[1])})`);else if(p==="files"){const y=JSON.stringify(g).replace(/"open\((.*?)\)"/g,"open($1)").replace(/":open/g,'": open').replace(/\\"/g,'"');s.push(`${p}=${y}`)}else if(p==="json"){const y=JSON.stringify(g,null,2).split(`
92
+ `).map((m,S)=>S===0?m:" "+m).join(`
93
+ `);s.push(`${p}=${y}`)}else if(p==="data"&&((h=n.postData)==null?void 0:h.mimeType)==="application/octet-stream")s.push(`${p}=b"${g}"`);else{const y=JSON.stringify(g,null,2).split(`
94
+ `).map((m,S)=>S===0?m:" "+m).join(`
95
+ `);s.push(`${p}=${y}`)}return n.url.length>Hn?`requests.${r}(
96
+ ${s.join(`,
97
+ `)}
98
+ )`:s.length<=1?`requests.${r}(${a})`:`requests.${r}(${a}${s.length>1?",":""}
99
+ ${s.slice(1).join(`,
100
+ `)}
101
+ )`}},Hu={info:{key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"},convert:({url:e,queryObj:t,queryString:n,postData:r,allHeaders:o,method:s},a={})=>{let i,u;const{push:c,blank:d,join:f}=new U({indent:(i=a.indent)!==null&&i!==void 0?i:" "});c("library(httr)"),d(),c(`url <- "${e}"`),d();const h=t;delete t.key;const p=Object.entries(h),g=p.length;if(g===1){const C=p[0];c(`queryString <- list(${C[0]} = "${C[1]}")`),d()}else g>1&&(c("queryString <- list("),p.forEach(([C,R],A)=>{const I=A!==g-1?",":"";c(`${C} = "${R}"${I}`,1)}),c(")"),d());const y=JSON.stringify(r==null?void 0:r.text);if(y&&(c(`payload <- ${y}`),d()),r&&(r.text||r.jsonObj||r.params))switch(r.mimeType){case"application/x-www-form-urlencoded":c('encode <- "form"'),d();break;case"application/json":c('encode <- "json"'),d();break;case"multipart/form-data":c('encode <- "multipart"'),d();break;default:c('encode <- "raw"'),d();break}const m=ae(o,"cookie"),S=ae(o,"accept"),$=m?`set_cookies(\`${String(m).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,O=S?`accept("${F(S)}")`:void 0,P=`content_type("${F((u=r==null?void 0:r.mimeType)!==null&&u!==void 0?u:"application/octet-stream")}")`,v=Object.entries(o).filter(([C])=>!["cookie","accept","content-type"].includes(C.toLowerCase())).map(([C,R])=>`'${C}' = '${It(R)}'`).join(", "),w=v?`add_headers(${v})`:void 0;let j=`response <- VERB("${s}", url`;y&&(j+=", body = payload"),n.length&&(j+=", query = queryString");const x=[w,P,O,$].filter(C=>!!C).join(", ");return x&&(j+=`, ${x}`),r&&(r.text||r.jsonObj||r.params)&&(j+=", encode = encode"),j+=")",c(j),d(),c('content(response, "text")'),f()}},Du={target:"r",client:"httr",title:"httr",generate(e){return N(Hu,e)}},Fu={info:{key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"},convert:({uriObj:e,method:t,fullUrl:n,postData:r,allHeaders:o},s={})=>{const{insecureSkipVerify:a=!1}=s,{push:i,blank:u,join:c}=new U;i("require 'uri'"),i("require 'net/http'"),u();const d=t.toUpperCase(),f=["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"],h=d.charAt(0)+d.substring(1).toLowerCase();f.includes(d)||(i(`class Net::HTTP::${h} < Net::HTTPRequest`),i(` METHOD = '${d.toUpperCase()}'`),i(` REQUEST_HAS_BODY = '${r!=null&&r.text?"true":"false"}'`),i(" RESPONSE_HAS_BODY = true"),i("end"),u()),i(`url = URI("${n}")`),u(),i("http = Net::HTTP.new(url.host, url.port)"),e.protocol==="https:"&&(i("http.use_ssl = true"),a&&i("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")),u(),i(`request = Net::HTTP::${h}.new(url)`);const p=Object.keys(o);return p.length&&p.forEach(g=>{i(`request["${g}"] = '${It(o[g])}'`)}),r!=null&&r.text&&i(`request.body = ${JSON.stringify(r.text)}`),u(),i("response = http.request(request)"),i("puts response.read_body"),c()}},qu={target:"ruby",client:"native",title:"net::http",generate(e){return N(Fu,e)}},Mu={target:"shell",client:"curl",title:"Curl",generate(e,t){var u,c,d,f,h;const n={method:"GET",...e};n.method=n.method.toUpperCase();const r=["curl"],o=(u=n.queryString)!=null&&u.length?"?"+n.queryString.map(p=>{const g=encodeURIComponent(p.name),y=encodeURIComponent(p.value);return`${g}=${y}`}).join("&"):"",s=`${n.url}${o}`,a=/[\s<>[\]{}|\\^%]/.test(s),i=o||a?`'${s}'`:s;if(r[0]=`curl ${i}`,n.method!=="GET"&&r.push(`--request ${n.method}`),(c=t==null?void 0:t.auth)!=null&&c.username&&((d=t==null?void 0:t.auth)!=null&&d.password)&&r.push(`--user '${t.auth.username}:${t.auth.password}'`),(f=n.headers)!=null&&f.length){n.headers.forEach(g=>{r.push(`--header '${g.name}: ${g.value}'`)});const p=n.headers.find(g=>g.name.toLowerCase()==="accept-encoding");p&&/gzip|deflate/.test(p.value)&&r.push("--compressed")}if((h=n.cookies)!=null&&h.length){const p=n.cookies.map(g=>{const y=encodeURIComponent(g.name),m=encodeURIComponent(g.value);return`${y}=${m}`}).join("; ");r.push(`--cookie '${p}'`)}if(n.postData)if(n.postData.mimeType==="application/json"){if(n.postData.text)try{const p=JSON.parse(n.postData.text),g=JSON.stringify(p,null,2);r.push(`--data '${g}'`)}catch{r.push(`--data '${n.postData.text}'`)}}else if(n.postData.mimeType==="application/octet-stream")r.push(`--data-binary '${n.postData.text}'`);else if(n.postData.mimeType==="application/x-www-form-urlencoded"&&n.postData.params)n.postData.params.forEach(p=>{r.push(`--data-urlencode '${encodeURIComponent(p.name)}=${p.value}'`)});else if(n.postData.mimeType==="multipart/form-data"&&n.postData.params)n.postData.params.forEach(p=>{p.fileName!==void 0?r.push(`--form '${p.name}=@${p.fileName}'`):r.push(`--form '${p.name}=${p.value}'`)});else try{const p=JSON.parse(n.postData.text??""),g=JSON.stringify(p,null,2);r.push(`--data '${g}'`)}catch{r.push(`--data '${n.postData.text}'`)}return r.join(` \\
102
+ `)}},W=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,Vu=e=>e.replace(/\r/g,"\\r").replace(/\n/g,"\\n"),Ju={info:{key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"},convert:({method:e,postData:t,allHeaders:n,fullUrl:r},o)=>{const s={indent:" ",short:!1,verbose:!1,...o},{push:a,join:i}=new U({indent:s.indent,join:s.indent!==!1?` \\
103
+ ${s.indent}`:" "});return s.verbose?a(`wget ${s.short?"-v":"--verbose"}`):a(`wget ${s.short?"-q":"--quiet"}`),a(`--method ${W(e)}`),Object.keys(n).forEach(u=>{const c=`${u}: ${n[u]}`;a(`--header ${W(c)}`)}),t!=null&&t.text&&a(`--body-data ${Vu(W(t.text))}`),a(s.short?"-O":"--output-document"),a(`- ${W(r)}`),i()}},Gu={target:"shell",client:"wget",title:"Wget",generate(e){return N(Ju,e)}},zu={info:{key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"},convert:({allHeaders:e,postData:t,queryObj:n,fullUrl:r,method:o,url:s},a)=>{var g;const i={body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1,...a},{push:u,join:c,unshift:d}=new U({indent:i.indent,join:i.indent!==!1?` \\
104
+ ${i.indent}`:" "});let f=!1;const h=[];i.headers&&h.push(i.short?"-h":"--headers"),i.body&&h.push(i.short?"-b":"--body"),i.verbose&&h.push(i.short?"-v":"--verbose"),i.print&&h.push(`${i.short?"-p":"--print"}=${i.print}`),i.verify&&h.push(`--verify=${i.verify}`),i.cert&&h.push(`--cert=${i.cert}`),i.pretty&&h.push(`--pretty=${i.pretty}`),i.style&&h.push(`--style=${i.style}`),i.timeout&&h.push(`--timeout=${i.timeout}`),i.queryParams&&Object.keys(n).forEach(y=>{const m=n[y];Array.isArray(m)?m.forEach(S=>{u(`${y}==${W(S)}`)}):u(`${y}==${W(m)}`)}),Object.keys(e).sort().forEach(y=>{u(`${y}:${W(e[y])}`)}),(t==null?void 0:t.mimeType)==="application/x-www-form-urlencoded"?(g=t.params)!=null&&g.length&&(h.push(i.short?"-f":"--form"),t.params.forEach(y=>{u(`${y.name}=${W(y.value)}`)})):f=!0;const p=h.length?`${h.join(" ")} `:"";if(s=W(i.queryParams?s:r),d(`http ${p}${o} ${s}`),f&&(t!=null&&t.text)){const y=W(t.text);d(`echo ${y} | `)}return c()}},Wu={target:"shell",client:"httpie",title:"HTTPie",generate(e){return N(zu,e)}},Dn=(e,t)=>t.repeat(e),Fn=(e,t,n,r)=>{const o=Dn(r,n),s=Dn(r-1,n),a=t?`,
105
+ ${o}`:", ";return t?`[
106
+ ${o}${e.join(a)}
107
+ ${s}]`:`[${e.join(a)}]`},pt=(e,t,n)=>`let ${e} = ${vt(t,n)}`,vt=(e,t,n)=>{switch(n=n===void 0?1:n+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let r=!1;const o=e.map(s=>(Object.prototype.toString.call(s)==="[object Object]"&&(r=Object.keys(s).length>1),vt(s,t,n)));return Fn(o,r,t.indent,n)}case"[object Object]":{const r=[];for(const o in e)r.push(`"${o}": ${vt(e[o],t,n)}`);return Fn(r,t.pretty&&r.length>1,t.indent,n)}case"[object Boolean]":return e.toString();default:return e==null?"":`"${e.toString().replace(/"/g,'\\"')}"`}},Yu={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,fullUrl:n,method:r},o)=>{let s;const a={indent:" ",pretty:!0,timeout:"10",...o},{push:i,blank:u,join:c}=new U({indent:a.indent}),d={hasHeaders:!1,hasBody:!1};if(i("import Foundation"),Object.keys(e).length&&(d.hasHeaders=!0,u(),i(pt("headers",e,a))),t&&(t.text||t.jsonObj||t.params))switch(d.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(u(),!((s=t.params)===null||s===void 0)&&s.length){const[f,...h]=t.params;i(`let postData = NSMutableData(data: "${f.name}=${f.value}".data(using: String.Encoding.utf8)!)`),h.forEach(({name:p,value:g})=>{i(`postData.append("&${p}=${g}".data(using: String.Encoding.utf8)!)`)})}else d.hasBody=!1;break;case"application/json":t.jsonObj&&(i(`${pt("parameters",t.jsonObj,a)} as [String : Any]`),u(),i("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"));break;case"multipart/form-data":i(pt("parameters",t.params,a)),u(),i(`let boundary = "${t.boundary}"`),u(),i('var body = ""'),i("var error: NSError? = nil"),i("for param in parameters {"),i('let paramName = param["name"]!',1),i('body += "--\\(boundary)\\r\\n"',1),i('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1),i('if let filename = param["fileName"] {',1),i('let contentType = param["content-type"]!',2),i("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2),i("if (error != nil) {",2),i("print(error as Any)",3),i("}",2),i('body += "; filename=\\"\\(filename)\\"\\r\\n"',2),i('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2),i("body += fileContent",2),i('} else if let paramValue = param["value"] {',1),i('body += "\\r\\n\\r\\n\\(paramValue)"',2),i("}",1),i("}");break;default:u(),i(`let postData = NSData(data: "${t.text}".data(using: String.Encoding.utf8)!)`)}return u(),i(`let request = NSMutableURLRequest(url: NSURL(string: "${n}")! as URL,`),i(" cachePolicy: .useProtocolCachePolicy,"),i(` timeoutInterval: ${Number.parseInt(a.timeout,10).toFixed(1)})`),i(`request.httpMethod = "${r}"`),d.hasHeaders&&i("request.allHTTPHeaderFields = headers"),d.hasBody&&i("request.httpBody = postData as Data"),u(),i("let session = URLSession.shared"),i("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"),i("if (error != nil) {",1),i("print(error as Any)",2),i("} else {",1),i("let httpResponse = response as? HTTPURLResponse",2),i("print(httpResponse)",2),i("}",1),i("})"),u(),i("dataTask.resume()"),c()}},Ku={target:"swift",client:"nsurlsession",title:"NSURLSession",generate(e){return N(Yu,e)}},ht=[{key:"c",title:"C",default:"libcurl",clients:[_s]},{key:"csharp",title:"C#",default:"restsharp",clients:[zs,Ys]},{key:"clojure",title:"Clojure",default:"clj_http",clients:[Xs]},{key:"dart",title:"Dart",default:"http",clients:[Zs]},{key:"go",title:"Go",default:"native",clients:[tu]},{key:"http",title:"HTTP",default:"http1.1",clients:[nu]},{key:"java",title:"Java",default:"unirest",clients:[ou,Ds,qs,Vs]},{key:"js",title:"JavaScript",default:"fetch",clients:[au,pu,hu,mu,yu]},{key:"kotlin",title:"Kotlin",default:"okhttp",clients:[$u]},{key:"node",title:"Node.js",default:"fetch",clients:[ku,Tu,Ou,wu]},{key:"objc",title:"Objective-C",default:"nsurlsession",clients:[Eu]},{key:"ocaml",title:"OCaml",default:"cohttp",clients:[xu]},{key:"php",title:"PHP",default:"curl",clients:[Au,Pu]},{key:"powershell",title:"Powershell",default:"webrequest",clients:[Lu,Bu]},{key:"python",title:"Python",default:"python3",clients:[Uu,_u]},{key:"r",title:"R",default:"httr",clients:[Du]},{key:"ruby",title:"Ruby",default:"native",clients:[qu]},{key:"shell",title:"Shell",default:"curl",clients:[Mu,Gu,Wu]},{key:"swift",title:"Swift",default:"nsurlsession",clients:[Ku]}];function Qu(){function e(t,n){var r;return(r=ht.find(({key:o})=>o===t))==null?void 0:r.clients.find(o=>o.client===n)}return{print(t,n,r){var o;return(o=e(t,n))==null?void 0:o.generate(r)},clients(){return ht},plugins(){return ht.flatMap(({key:t,clients:n})=>n.map(r=>({target:t,client:r.client})))},findPlugin:e,hasPlugin(t,n){return!!e(t,n)}}}function Xu(e){const t={method:e.method.toUpperCase(),url:e.url.toString(),httpVersion:"HTTP/1.1",headers:Object.entries(e.headers).map(([n,r])=>({name:n.replace(/\b\w/g,o=>o.toUpperCase()),value:r})),queryString:[...Object.entries(e.query).map(([n,r])=>({name:n,value:r}))],cookies:Object.entries(e.cookies).map(([n,r])=>({name:n,value:r})),headersSize:-1,bodySize:-1};if(e.body!==void 0)if(typeof e.body=="string")t.postData={mimeType:e.contentType||"application/json",text:e.body};else if(e.body instanceof FormData){const n={};e.body.forEach((r,o)=>{if(r instanceof File)n[o]={type:"file",text:"BINARY",name:r.name,size:r.size,mimeType:r.type||"application/octet-stream"};else{const s=e.body.getAll(o);s.length>1?n[o]=s:n[o]=s[0]}}),t.postData={mimeType:e.contentType||"multipart/form-data",text:JSON.stringify(n)}}else typeof e.body=="object"&&(t.postData={mimeType:e.contentType||"application/json",text:JSON.stringify(e.body)});return t}function ke(e){var t,n,r,o,s,a;if((e==null?void 0:e.example)!==void 0)return e.example;if(e!=null&&e.examples&&((t=e==null?void 0:e.examples)==null?void 0:t.length)>0)return e.examples[0];if(((n=e==null?void 0:e.schema)==null?void 0:n.example)!==void 0)return e.schema.example;if((r=e==null?void 0:e.schema)!=null&&r.examples&&((s=(o=e==null?void 0:e.schema)==null?void 0:o.examples)==null?void 0:s.length)>0){const i=e.schema.examples[0];if(i)return i}return(e==null?void 0:e.subexample)!==void 0?e.subexample:e!=null&&e.subexamples&&((a=e==null?void 0:e.subexamples)==null?void 0:a.length)>0?e.subexamples[0]:null}function Bt(e,t="http://localhost"){try{return new URL(e),e}catch(n){return console.error("Failed to resolve base URL:",n==null?void 0:n.message),t}}class Nr{constructor({baseUrl:t,path:n,url:r,method:o,parameters:s,authorizations:a,body:i,variables:u,headers:c,query:d,contentType:f,cookies:h}){V(this,"baseUrl");V(this,"path");V(this,"url");V(this,"method");V(this,"parameters");V(this,"authorizations");V(this,"body");V(this,"variables");V(this,"headers");V(this,"query");V(this,"contentType");V(this,"cookies");const p=r||(t&&n?new URL(`${t}${n}`):new URL(et));this.baseUrl=t,this.path=n,this.url=p,this.method=o,this.parameters=s,this.authorizations=a,this.body=i,this.variables=u||{},this.headers=c||{},this.query=d||{},this.contentType=f,this.cookies=h||{}}}function Nt(e,t,n){const r=new Set(t.map(o=>o.name));for(const[o,s]of Object.entries(e))r.has(o)&&(s===void 0||s===""||n(o,s))}function Zu(e,t,n=""){let r=n;return Nt(e,t,(o,s)=>{r=r.replace(`{${o}}`,s)}),r}function ec(e,t,n,r){const o=new Headers;if(e)if(e instanceof Headers)for(const[s,a]of e.entries())o.set(s.toLowerCase(),a);else for(const[s,a]of Object.entries(e))o.set(s.toLowerCase(),a);return Nt(t,n,(s,a)=>{o.set(s.toLowerCase(),a)}),tc(r).forEach((s,a)=>{o.set(a.toLowerCase(),s)}),Object.fromEntries(o)}function tc(e){const t=new Headers;return e&&!Array.isArray(e)&&(e=[e]),e!=null&&e.length&&Object.entries(e).forEach(([n,r])=>{if(!(r!=null&&r.type))return;const o=k.unref(r.value??r.name??"");r.type==="http"?t.set("Authorization",`${r.scheme==="basic"?"Basic":"Bearer"} ${o}`):r.type==="apiKey"?t.set(r.name??"",o):r.type==="openIdConnect"?t.set("Authorization",`Bearer ${o}`):r.type==="oauth2"?t.set("Authorization",`Bearer ${o}`):console.warn("Unknown auth scheme:",r)}),t}function nc(e,t){const n={};return Nt(e,t,(r,o)=>{n[r]=o}),n}function rc(e,t){return e.forEach(n=>{if(!n.name||t[n.name]!==void 0)return;const r=ke(n);r!=null&&(t[n.name]=r)}),t}function Ut({url:e=void 0,path:t,method:n="GET",baseUrl:r,parameters:o=[],authorizations:s=[],body:a=void 0,headers:i=void 0,variables:u={}}){const c=rc(o,u),d=o.filter($=>$.in==="path"),f=o.filter($=>$.in==="query"),h=o.filter($=>$.in==="header"),p=Zu(c,d,t),g=(n==null?void 0:n.toUpperCase())||"GET",y=nc(c,f),m=ec(i,c,h,s);r=r?Bt(r):et;const S=e?new URL(e):r?new URL(`${r}${p}`):new URL(p,"http://localhost");return a&&!m["content-type"]&&(m["content-type"]="application/json"),new Nr({path:p,url:S,method:g,parameters:o,authorizations:s,body:["POST","PUT","PATCH","DELETE","OPTIONS","TRACE"].includes(g)&&a?a:void 0,variables:c,headers:m,query:y})}const oc={curl:"shell",javascript:"js",php:"php",python:"python"},ic={curl:"curl",javascript:"fetch",php:"curl",python:"requests"};async function _t(e,t){const n=Xu(Ut(t));try{return Qu().print(oc[e],ic[e],n)??""}catch(r){return console.error(r,t),""}}const ac=e=>e!==null&&typeof e=="object",sc=Array.isArray;function Ht(e){const t=k.isRef(e)?k.unref(e):e;return ac(t)?sc(t)?uc(t):cc(t):t}function Ur(e){return e!==null&&!k.isRef(e)&&typeof e=="object"?Ht(e):k.unref(e)}function uc(e){return e.map(t=>Ur(t))}function cc(e){const t={};return Object.keys(e).forEach(n=>{t[n]=Ur(e[n])}),t}const lc="Response",dc="Responses",fc="Loading...",pc="Samples",hc="Parameters",gc="Required",mc="Key",bc="Value",yc="Variables",Sc="Type",$c="Headers",kc="Schema",vc="Authorizations",Tc="Authorization",Oc="Deprecated",wc="Body",jc="License",Ec="Contact",Cc="Servers",xc="Server",Ac="Select...",Pc="Operations",Rc="Default",Lc="Example",Ic="Examples",Bc="or",Nc="Enum",Uc="Playground",_c={Response:lc,Responses:dc,"Try it out":"Try it out",Loading:fc,Samples:pc,"Response time":"Response time",Parameters:hc,"Path Parameters":"Path Parameters","Query Parameters":"Query Parameters",Required:gc,Key:mc,Value:bc,Variables:yc,"Powered by":"Powered by",Type:Sc,"Header Parameters":"Header Parameters",Headers:$c,"Request Body":"Request Body",Schema:kc,JSON:"JSON",Authorizations:vc,Authorization:Tc,"Use example":"Use example",Deprecated:Oc,Body:wc,"Terms of Service":"Terms of Service",License:jc,Contact:Ec,"API Documentation":"API Documentation","External Documentation":"External Documentation",Servers:Cc,Server:xc,"Your browser does not support the audio element.":"Your browser does not support the audio element.","Unrecognized response type. Raw content:":"Unrecognized response type. Raw content:","Download file":"Download file",Select:Ac,"operation.badgePrefix.operationId":"ID: ","Content-Type":"Content-Type","Hide operations":"Hide operations","Show operations":"Show operations",Operations:Pc,Default:Rc,Example:Lc,Examples:Ic,"tags.goTo":"View {tag} operations",or:Bc,Enum:Nc,"Copy endpoint":"Copy endpoint","Custom Server":"Custom Server","Enter a custom server URL":"Enter a custom server URL","Select a server":"Select a server...",Playground:Uc},Hc="Respuesta",Dc="Respuestas",Fc="Cargando...",qc="Ejemplos",Mc="Parámetros",Vc="Requerido",Jc="Key",Gc="Value",zc="Variables",Wc="Tipo",Yc="Headers",Kc="Schema",Qc="Autorizaciones",Xc="Autorización",Zc="Obsoleto",el="Cuerpo",tl="Licencia",nl="Contacto",rl="Servidores",ol="Servidor",il="Seleccionar...",al="Operaciones",sl="Por defecto",ul="Ejemplo",cl="Ejemplos",ll="o",dl="Enum",fl="Playground",pl={Response:Hc,Responses:Dc,"Try it out":"Probar",Loading:Fc,Samples:qc,"Response time":"Tiempo de respuesta",Parameters:Mc,"Path Parameters":"Path Parameters","Query Parameters":"Query Parameters",Required:Vc,Key:Jc,Value:Gc,Variables:zc,"Powered by":"Powered by",Type:Wc,"Header Parameters":"Header Parameters",Headers:Yc,"Request Body":"Cuerpo de la petición",Schema:Kc,JSON:"JSON",Authorizations:Qc,Authorization:Xc,"Use example":"Usar ejemplo",Deprecated:Zc,Body:el,"Terms of Service":"Términos de servicio",License:tl,Contact:nl,"API Documentation":"Documentación de la API","External Documentation":"Documentación externa",Servers:rl,Server:ol,"Your browser does not support the audio element.":"Tu navegador no soporta el elemento de audio.","Unrecognized response type. Raw content:":"Tipo de respuesta no reconocido. Contenido en crudo:","Download file":"Descargar archivo",Select:il,"operation.badgePrefix.operationId":"ID: ","Content-Type":"Content-Type","Hide operations":"Ocultar operaciones","Show operations":"Mostrar operaciones",Operations:al,Default:sl,Example:ul,Examples:cl,"tags.goTo":"Ver operaciones de {tag}",or:ll,Enum:dl,"Copy endpoint":"Copiar endpoint","Custom Server":"Servidor personalizado","Enter a custom server URL":"Introduce una URL de servidor personalizada","Select a server":"Selecciona un servidor...",Playground:fl},hl="レスポンス",gl="レスポンス",ml="Loading...",bl="サンプル",yl="パラメータ",Sl="必須",$l="キー",kl="値",vl="変数",Tl="型",Ol="ヘッダー",wl="スキーマ",jl="認証",El="認証",Cl="非推奨",xl="ボディ",Al="ライセンス",Pl="連絡先",Rl="サーバー",Ll="サーバー",Il="選択...",Bl="オペレーション",Nl="デフォルト",Ul="例",_l="例",Hl="or",Dl="Enum",Fl="Playground",ql={Response:hl,Responses:gl,"Try it out":"実行",Loading:ml,Samples:bl,"Response time":"応答時間",Parameters:yl,"Path Parameters":"パスパラメータ","Query Parameters":"クエリパラメータ",Required:Sl,Key:$l,Value:kl,Variables:vl,"Powered by":"Powered by",Type:Tl,"Header Parameters":"ヘッダーパラメータ",Headers:Ol,"Request Body":"リクエストボディ",Schema:wl,JSON:"JSON",Authorizations:jl,Authorization:El,"Use example":"例を使用",Deprecated:Cl,Body:xl,"Terms of Service":"利用規約",License:Al,Contact:Pl,"API Documentation":"API ドキュメント","External Documentation":"外部ドキュメント",Servers:Rl,Server:Ll,"Your browser does not support the audio element.":"ブラウザがオーディオ要素をサポートしていません。","Unrecognized response type. Raw content:":"認識できないレスポンスタイプ。生のコンテンツ:","Download file":"ファイルをダウンロード",Select:Il,"operation.badgePrefix.operationId":"ID: ","Content-Type":"Content-Type","Hide operations":"オペレーションを隠す","Show operations":"オペレーションを表示",Operations:Bl,Default:Nl,Example:Ul,Examples:_l,"tags.goTo":"{tag}のオペレーションを表示",or:Hl,Enum:Dl,"Copy endpoint":"エンドポイントをコピー","Custom Server":"カスタムサーバー","Enter a custom server URL":"カスタムサーバーの URL を入力","Select a server":"サーバーを選択...",Playground:Fl},Ml="Resposta",Vl="Respostas",Jl="Carregando...",Gl="Exemplos",zl="Parâmetros",Wl="Obrigatório",Yl="Chave",Kl="Valor",Ql="Variáveis",Xl="Tipo",Zl="Cabeçalhos",ed="Esquema",td="Autorizações",nd="Autorização",rd="Obsoleto",od="Corpo",id="Licença",ad="Contato",sd="Servidores",ud="Servidor",cd="Selecionar...",ld="Operações",dd="Padrão",fd="Exemplo",pd="Exemplos",hd="ou",gd="Enum",md="Playground",bd={Response:Ml,Responses:Vl,"Try it out":"Testar",Loading:Jl,Samples:Gl,"Response time":"Tempo de resposta",Parameters:zl,"Path Parameters":"Parâmetros de Caminho","Query Parameters":"Parâmetros de Consulta",Required:Wl,Key:Yl,Value:Kl,Variables:Ql,"Powered by":"Desenvolvido por",Type:Xl,"Header Parameters":"Parâmetros de Cabeçalho",Headers:Zl,"Request Body":"Corpo da Requisição",Schema:ed,JSON:"JSON",Authorizations:td,Authorization:nd,"Use example":"Usar exemplo",Deprecated:rd,Body:od,"Terms of Service":"Termos de Serviço",License:id,Contact:ad,"API Documentation":"Documentação da API","External Documentation":"Documentação Externa",Servers:sd,Server:ud,"Your browser does not support the audio element.":"Seu navegador não suporta o elemento de áudio.","Unrecognized response type. Raw content:":"Tipo de resposta não reconhecido. Conteúdo bruto:","Download file":"Baixar arquivo",Select:cd,"operation.badgePrefix.operationId":"ID: ","Content-Type":"Content-Type","Hide operations":"Ocultar operações","Show operations":"Exibir operações",Operations:ld,Default:dd,Example:fd,Examples:pd,"tags.goTo":"Ver operações de {tag}",or:hd,Enum:gd,"Copy endpoint":"Copiar endpoint","Custom Server":"Servidor Personalizado","Enter a custom server URL":"Digite uma URL de servidor personalizada","Select a server":"Selecione um servidor...",Playground:md},_r={en:_c,es:pl,ja:ql,"pt-BR":bd},Hr=["header","path","description","security","parameters","request-body","responses","playground","code-samples","branding","footer"],et="http://localhost",Dt=[{lang:"curl",label:"cURL",highlighter:"bash",icon:"curl"},{lang:"javascript",label:"JavaScript",highlighter:"javascript",icon:".js"},{lang:"php",label:"PHP",highlighter:"php",icon:".php"},{lang:"python",label:"Python",highlighter:"python",icon:".py"}],b={theme:{highlighterTheme:{light:ts,dark:es}},path:{showBaseURL:k.ref(!1)},requestBody:{defaultView:k.ref("contentType")},jsonViewer:{deep:k.ref(Number.POSITIVE_INFINITY),renderer:k.ref("vue-json-pretty")},schemaViewer:{deep:k.ref(Number.POSITIVE_INFINITY)},headingLevels:{h1:1,h2:2,h3:3,h4:4,h5:5,h6:6},response:{responseCodeSelector:k.ref("tabs"),maxTabs:k.ref(5),body:{defaultView:k.ref("contentType")}},playground:{jsonEditor:{mode:k.ref("tree"),mainMenuBar:k.ref(!1),navigationBar:k.ref(!1)}},security:{defaultScheme:k.ref(null)},operation:{badges:k.ref(["deprecated"]),slots:k.ref(Hr),hiddenSlots:k.ref([]),cols:k.ref(2),defaultBaseUrl:et,getServers:null},i18n:{locale:k.ref("en"),fallbackLocale:k.ref("en"),messages:_r,availableLocales:[{code:"en",label:"English"},{code:"es",label:"Español"},{code:"ja",label:"Japanese"},{code:"pt-BR",label:"Português (Brasil)"}]},spec:{groupByTags:k.ref(!0),collapsePaths:k.ref(!1),showPathsSummary:k.ref(!0),avoidCirculars:k.ref(!1),lazyRendering:k.ref(!1),defaultTag:"Default",defaultTagDescription:"",wrapExamples:!0},codeSamples:{langs:["curl","javascript","php","python"],defaultLang:"curl",availableLanguages:Dt,generator:(e,t)=>_t(e,t),defaultHeaders:{}},linksPrefixes:{tags:"/tags/",operations:"/operations/"},server:{allowCustomServer:!1,getServers:null}},yd={...Ht(b)},Sd=Ls({storageKey:"vitepress-theme-appearance"});function Dr(e={}){t(e);function t(l){var T,B,ue,te,tn,nn,rn,on,an,sn,un,cn,ln,dn,fn,pn,hn,gn,mn,bn,yn,Sn,$n;!l||!Object.keys(l).length||((T=l==null?void 0:l.theme)!=null&&T.highlighterTheme&&i(l.theme.highlighterTheme),((B=l==null?void 0:l.requestBody)==null?void 0:B.defaultView)!==void 0&&c(l.requestBody.defaultView),((ue=l==null?void 0:l.path)==null?void 0:ue.showBaseURL)!==void 0&&f(l.path.showBaseURL),((te=l==null?void 0:l.jsonViewer)==null?void 0:te.deep)!==void 0&&p(l.jsonViewer.deep),((tn=l==null?void 0:l.jsonViewer)==null?void 0:tn.renderer)!==void 0&&y(l.jsonViewer.renderer),((nn=l==null?void 0:l.schemaViewer)==null?void 0:nn.deep)!==void 0&&S(l.schemaViewer.deep),(l==null?void 0:l.headingLevels)!==void 0&&P(l.headingLevels),((rn=l==null?void 0:l.response)==null?void 0:rn.responseCodeSelector)!==void 0&&w(l.response.responseCodeSelector),((on=l==null?void 0:l.response)==null?void 0:on.maxTabs)!==void 0&&x(l.response.maxTabs),((sn=(an=l==null?void 0:l.response)==null?void 0:an.body)==null?void 0:sn.defaultView)!==void 0&&R(l.response.body.defaultView),((cn=(un=l==null?void 0:l.playground)==null?void 0:un.jsonEditor)==null?void 0:cn.mode)!==void 0&&L(l.playground.jsonEditor.mode),((dn=(ln=l==null?void 0:l.playground)==null?void 0:ln.jsonEditor)==null?void 0:dn.mainMenuBar)!==void 0&&se(l.playground.jsonEditor.mainMenuBar),((pn=(fn=l==null?void 0:l.playground)==null?void 0:fn.jsonEditor)==null?void 0:pn.navigationBar)!==void 0&&Ie(l.playground.jsonEditor.navigationBar),((hn=l==null?void 0:l.security)==null?void 0:hn.defaultScheme)!==void 0&&Vt(l.security.defaultScheme),((gn=l==null?void 0:l.operation)==null?void 0:gn.badges)!==void 0&&Jt(l.operation.badges),((mn=l==null?void 0:l.operation)==null?void 0:mn.slots)!==void 0&&Gt(l.operation.slots),((bn=l==null?void 0:l.operation)==null?void 0:bn.hiddenSlots)!==void 0&&zt(l.operation.hiddenSlots),((yn=l==null?void 0:l.operation)==null?void 0:yn.cols)!==void 0&&Wt(l.operation.cols),((Sn=l==null?void 0:l.operation)==null?void 0:Sn.defaultBaseUrl)!==void 0&&lo(l.operation.defaultBaseUrl),(($n=l==null?void 0:l.operation)==null?void 0:$n.getServers)!==void 0&&po(l.operation.getServers),(l==null?void 0:l.i18n)!==void 0&&Yt(l.i18n),(l==null?void 0:l.spec)!==void 0&&Kt(l.spec),(l==null?void 0:l.codeSamples)!==void 0&&Xt(l.codeSamples),(l==null?void 0:l.linksPrefixes)!==void 0&&Zt(l.linksPrefixes),(l==null?void 0:l.server)!==void 0&&en(l.server))}function n(){t(yd)}function r(){return Ht(b)}function o(){var l,T;return((T=(l=b==null?void 0:b.i18n)==null?void 0:l.locale)==null?void 0:T.value)||"en"}function s(l){console.warn("`setLocale` is deprecated. Use `setI18nConfig({ locale: value })` instead."),b.i18n.locale.value=l}function a(){var l;return(l=b==null?void 0:b.theme)==null?void 0:l.highlighterTheme}function i(l){var T;b.theme.highlighterTheme={...(T=b==null?void 0:b.theme)==null?void 0:T.highlighterTheme,...l}}function u(){var l,T;return(T=(l=b==null?void 0:b.requestBody)==null?void 0:l.defaultView)==null?void 0:T.value}function c(l){b.requestBody.defaultView.value=l}function d(){var l,T;return(T=(l=b==null?void 0:b.path)==null?void 0:l.showBaseURL)==null?void 0:T.value}function f(l){b.path.showBaseURL.value=l}function h(){var l,T;return(T=(l=b==null?void 0:b.jsonViewer)==null?void 0:l.deep)==null?void 0:T.value}function p(l){b.jsonViewer.deep.value=l}function g(){var l,T;return((T=(l=b==null?void 0:b.jsonViewer)==null?void 0:l.renderer)==null?void 0:T.value)||"vue-json-pretty"}function y(l){b.jsonViewer.renderer.value=l}function m(){var l,T;return(T=(l=b==null?void 0:b.schemaViewer)==null?void 0:l.deep)==null?void 0:T.value}function S(l){b.schemaViewer.deep.value=l}function $(){return b.headingLevels}function O(l){if(!b.headingLevels)return`h${l}`;const T=b.headingLevels[l];if(T<1||T>6)throw new Error(`Heading level for ${l} must be between 1 and 6.`);return`h${T}`}function P(l){b.headingLevels||(b.headingLevels={});for(const T of Object.keys(l)){const B=l[T];if(B<1||B>6)throw new Error(`Heading level for ${T} must be between 1 and 6.`)}Object.assign(b.headingLevels,l)}function v(){var l,T;return(T=(l=b==null?void 0:b.response)==null?void 0:l.responseCodeSelector)==null?void 0:T.value}function w(l){b.response.responseCodeSelector.value=l}function j(){var l,T;return(T=(l=b==null?void 0:b.response)==null?void 0:l.maxTabs)==null?void 0:T.value}function x(l){b.response.maxTabs.value=l}function C(){var l,T,B;return(B=(T=(l=b==null?void 0:b.response)==null?void 0:l.body)==null?void 0:T.defaultView)==null?void 0:B.value}function R(l){b.response.body.defaultView.value=l}function A(){var l,T;return(T=(l=b==null?void 0:b.playground)==null?void 0:l.jsonEditor)==null?void 0:T.mode.value}function L(l){b.playground.jsonEditor.mode.value=l}function I(){var l,T,B;return(B=(T=(l=b==null?void 0:b.playground)==null?void 0:l.jsonEditor)==null?void 0:T.mainMenuBar)==null?void 0:B.value}function se(l){b.playground.jsonEditor.mainMenuBar.value=l}function Mt(){var l,T;return(T=(l=b==null?void 0:b.playground)==null?void 0:l.jsonEditor)==null?void 0:T.navigationBar.value}function Ie(l){b.playground.jsonEditor.navigationBar.value=l}function Be(){var l,T;return(T=(l=b==null?void 0:b.security)==null?void 0:l.defaultScheme)==null?void 0:T.value}function Vt(l){b.security.defaultScheme.value=l}function io(){var l,T;return[...((T=(l=b==null?void 0:b.operation)==null?void 0:l.badges)==null?void 0:T.value)||[]]}function Jt(l){b.operation.badges.value=l}function ao(){var l,T;return(T=(l=b==null?void 0:b.operation)==null?void 0:l.slots)==null?void 0:T.value}function Gt(l){b.operation.slots.value=l}function so(){var l,T;return(T=(l=b==null?void 0:b.operation)==null?void 0:l.hiddenSlots)==null?void 0:T.value}function zt(l){b.operation.hiddenSlots.value=l}function uo(){var l,T;return(T=(l=b==null?void 0:b.operation)==null?void 0:l.cols)==null?void 0:T.value}function Wt(l){b.operation.cols.value=l}function co(){var l;return((l=b==null?void 0:b.operation)==null?void 0:l.defaultBaseUrl)||et}function lo(l){b.operation.defaultBaseUrl=l}function fo(){var l,T;return(l=b==null?void 0:b.operation)!=null&&l.getServers?(console.warn("operation.getServers is deprecated. Use server.getServers instead."),b.operation.getServers):((T=b==null?void 0:b.server)==null?void 0:T.getServers)||null}function po(l){b.operation.getServers=l}function ho(){return b.i18n}function Yt(l){l.locale&&(b.i18n.locale.value=l.locale),l.fallbackLocale&&(b.i18n.fallbackLocale.value=l.fallbackLocale),l.messages&&(b.i18n.messages=l.messages),l.availableLocales&&(b.i18n.availableLocales=l.availableLocales)}function go(){return b.spec}function mo(){var l;return(l=b==null?void 0:b.spec)==null?void 0:l.wrapExamples}function Kt(l){b.spec||(b.spec={}),l.groupByTags!==void 0&&(b.spec.groupByTags.value=l.groupByTags),l.collapsePaths!==void 0&&(b.spec.collapsePaths.value=l.collapsePaths),l.showPathsSummary!==void 0&&(b.spec.showPathsSummary.value=l.showPathsSummary),l.avoidCirculars!==void 0&&(b.spec.avoidCirculars.value=l.avoidCirculars),l.lazyRendering!==void 0&&(b.spec.lazyRendering.value=l.lazyRendering),l.defaultTag!==void 0&&(b.spec.defaultTag=l.defaultTag),l.defaultTagDescription!==void 0&&(b.spec.defaultTagDescription=l.defaultTagDescription),l.wrapExamples!==void 0&&(b.spec.wrapExamples=l.wrapExamples)}function Qt(){var l,T;return(T=(l=b==null?void 0:b.codeSamples)==null?void 0:l.langs)==null?void 0:T.filter((B,ue,te)=>te.indexOf(B)===ue)}function bo(){var B;const l=Qt()||[],T=(B=b==null?void 0:b.codeSamples)==null?void 0:B.defaultLang;return T&&l.includes(T)?T:l[0]}function yo(){var l;return(l=b==null?void 0:b.codeSamples)==null?void 0:l.availableLanguages}function So(){var l;return(l=b==null?void 0:b.codeSamples)==null?void 0:l.generator}function $o(){var l;return(l=b==null?void 0:b.codeSamples)==null?void 0:l.defaultHeaders}function Xt(l){l.langs&&(b.codeSamples.langs=l.langs.filter((T,B,ue)=>ue.indexOf(T)===B)),l.defaultLang&&(b.codeSamples.defaultLang=l.defaultLang),l.availableLanguages&&ko(l.availableLanguages),l.generator&&(b.codeSamples.generator=l.generator),l.defaultHeaders&&(b.codeSamples.defaultHeaders=l.defaultHeaders)}function ko(l){if(!b.codeSamples)return;const T=[...new Set(l.map(({lang:B})=>B))];b.codeSamples.availableLanguages=T.map(B=>(l.find(te=>te.lang===B)??Dt.find(te=>te.lang===B))||{lang:B,label:B,highlighter:"plaintext"})}function vo(){return b.linksPrefixes}function Zt(l){l.tags&&(b.linksPrefixes.tags=l.tags),l.operations&&(b.linksPrefixes.operations=l.operations)}function To(){var l;return(l=b==null?void 0:b.linksPrefixes)==null?void 0:l.tags}function Oo(){var l;return(l=b==null?void 0:b.linksPrefixes)==null?void 0:l.operations}function wo(){return b.server}function en(l){l.allowCustomServer!==void 0&&(b.server.allowCustomServer=l.allowCustomServer),l.getServers!==void 0&&(b.server.getServers=l.getServers)}function jo(){var l;return((l=b.server)==null?void 0:l.allowCustomServer)||!1}return{isDark:Sd,schemaConfig:b.requestBody,reset:n,getState:r,getLocale:o,setLocale:s,getHighlighterTheme:a,getSchemaDefaultView:u,getRequestBodyDefaultView:u,setSchemaDefaultView:c,setRequestBodyDefaultView:c,getShowBaseURL:d,setShowBaseURL:f,getJsonViewerDeep:h,setJsonViewerDeep:p,getJsonViewerRenderer:g,setJsonViewerRenderer:y,getSchemaViewerDeep:m,setSchemaViewerDeep:S,getHeadingLevels:$,getHeadingLevel:O,setHeadingLevels:P,getResponseCodeSelector:v,setResponseCodeSelector:w,getResponseCodeMaxTabs:j,setResponseCodeMaxTabs:x,getResponseBodyDefaultView:C,setResponseBodyDefaultView:R,getPlaygroundJsonEditorMode:A,setPlaygroundJsonEditorMode:L,getPlaygroundJsonEditorMainMenuBar:I,setPlaygroundJsonEditorMainMenuBar:se,getPlaygroundJsonEditorNavigationBar:Mt,setPlaygroundJsonEditorNavigationBar:Ie,getSecurityDefaultScheme:Be,setSecurityDefaultScheme:Vt,getOperationBadges:io,setOperationBadges:Jt,getOperationSlots:ao,setOperationSlots:Gt,getOperationHiddenSlots:so,setOperationHiddenSlots:zt,getOperationCols:uo,setOperationCols:Wt,getOperationDefaultBaseUrl:co,getOperationServers:fo,getI18nConfig:ho,setI18nConfig:Yt,getSpecConfig:go,getWrapExamples:mo,setSpecConfig:Kt,getCodeSamplesLangs:Qt,getCodeSamplesDefaultLang:bo,getCodeSamplesAvailableLanguages:yo,getCodeSamplesGenerator:So,getCodeSamplesDefaultHeaders:$o,setCodeSamplesConfig:Xt,getLinksPrefixesConfig:vo,setLinksPrefixesConfig:Zt,getTagsLinkPrefix:To,getOperationsLinkPrefix:Oo,getServerConfig:wo,setServerConfig:en,getServerAllowCustomServer:jo}}async function $d(e){var n,r,o,s,a,i,u;if(!(e!=null&&e.paths))return e;const t=Bt(((r=(n=e.servers)==null?void 0:n[0])==null?void 0:r.url)||"");for(const[c,d]of Object.entries(e.paths))for(const f of Object.keys(d)){const h=d[f];if(!h)continue;const p=((s=(o=h.securityUi)==null?void 0:o[0])==null?void 0:s.schemes)||[],y=Object.values(((u=(i=(a=h.requestBody)==null?void 0:a.content)==null?void 0:i["application/json"])==null?void 0:u.examples)||{}).find(S=>S==null?void 0:S.isAutogenerated),m=Ut({path:c,method:f,baseUrl:t,parameters:h.parameters||[],authorizations:Object.entries(p).map(([S,$])=>({...$,name:String(S),label:String(S)})),body:(y==null?void 0:y.value)||void 0,headers:{...Dr().getCodeSamplesDefaultHeaders()||{}},variables:{}});h.codeSamples=await Promise.all(Dt.map(async S=>({...S,source:await _t(S.lang,m)})))}return e}function kd(e){e.paths=e.paths||{};for(const t of Object.keys(e.paths)){const n=e.paths[t];for(const r of Object.keys(n)){const o=n[r];o.operationId||(o.operationId=`${r}${t.replace(/\//g,"-")}`)}}return e}function vd(e){e.paths=e.paths||{};for(const t of Object.keys(e.paths)){const n=e.paths[t];for(const r of Object.keys(n)){const o=n[r];o.summary||(o.summary=`${r.toUpperCase()} ${t}`)}}return e}function Td({spec:e,defaultTag:t="Default",defaultTagDescription:n=""}){const r=new Set;e.paths=e.paths||{};for(const[o,s]of Object.entries(e.paths))for(const a of Object.keys(s)){if(!s||!s[a])continue;const i=s[a],u=i.tags||[t];i.tags=u,u.forEach(c=>r.add(c))}return e.tags=e.tags||[],r.has(t)&&!e.tags.find(o=>o.name===t)&&e.tags.push({name:t,description:n}),e}function Fr(e,t=!1){return Od(e,t)}function Od(e,t){return Array.isArray(e)?e.map(n=>Ye(n,t)):Ye(e,t)}function Ye(e,t){var n,r;return(n=e.meta)!=null&&n.isCircularReference?"[Circular Reference]":(r=e.meta)!=null&&r.isConstant?wd(e):Ot(e,"array")?qr(e,t):jd(e)?qn(e,t):Ed(e)?qn({...e,types:[e.types.find(o=>o!=="null")??"null"]},t):Ot(e,"object")?Mr(e)?Vr(e,t):Tt(e.properties||[],t):{}}function qr(e,t){return Mr(e)?[Vr(e,t)]:e.properties&&Array.isArray(e.properties)?[Tt(e.properties,t)]:e.subtype?e.subtype==="object"&&e.properties?[Tt(e.properties,t)]:t?[ke(e)??Pe(e.subtype,e.defaultValue)]:[Pe(e.subtype,e.defaultValue)]:[]}function Tt(e,t){return e.reduce((n,r)=>(Ot(r,"array")?n[r.name]=qr(r,t):n[r.name]=Ye(r,t),n),{})}function qn(e,t){if(t){const n=ke(e);if(n!=null)return n}return Pe(e.types[0]??"string",e.defaultValue)}function wd(e){const t=ke(e);return t??Pe(e.types[0]??"string",e.defaultValue)}function Pe(e,t){if(t!==void 0)return t;switch(e){case"string":return"string";case"number":case"integer":return 0;case"float":return 0;case"boolean":return!0;case"null":return null;case"array":return[];case"object":return{};default:return}}function Ot(e,t){var n;return((n=e.types)==null?void 0:n.length)===1&&e.types[0]===t}function jd(e){var t;return((t=e.types)==null?void 0:t.length)===1&&e.types[0]!=null&&tt.includes(e.types[0])}function Ed(e){var t;return(t=e.types)==null?void 0:t.every(n=>n&&tt.includes(n))}function Mr(e){var t;return!!((t=e.meta)!=null&&t.isOneOf)&&Array.isArray(e.properties)}function Vr(e,t){return e.properties&&e.properties.length>0?Ye(e.properties[0],t):t?ke(e):Pe(e.types[0]??"string",e.defaultValue)}var ne={},be={},He={},gt={},ce={},Mn;function Jr(){return Mn||(Mn=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.DEFAULTS=ce.TAGS=void 0,ce.TAGS={OPENING:"OPENING",CLOSING:"CLOSING",SELF_CLOSING:"SELF_CLOSING"},ce.DEFAULTS={SPACE:" ",NEW_LINE:`
108
+ `,ATTR_KEY:"@",CONTENT_KEY:"#",EMPTY_STR:"",DECLARATION:{version:"1.0"},ENTITY_MAP:{"<":"&lt;",">":"&gt;","&":"&amp;","'":"&apos;",'"':"&quot;"},TYPE_HANDLER:e=>[!0,e],LEVEL:{INIT:0,INCREMENT:1},DOUBLE_QUOTES:{ENABLE:!0,DIASBLE:!1},MAKE_TAG:!0,BEAUTIFY:{ENABLE:!0,DISABLE:!1},SELF_CLOSING:{ENABLE:!0,DISABLE:!1},get EMPTY_OBJ(){return new Object},get EMPTY_ARR(){return new Array}}),ce}var mt={},Vn;function Gr(){return Vn||(Vn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.objIsEmpty=e.keyExists=e.isUndef=e.isArr=e.isStr=e.isFunc=e.isObj=void 0;const t="{}",n="[]",r=d=>!!d&&typeof d=="object";e.isObj=r;const o=d=>typeof d=="function";e.isFunc=o;const s=d=>typeof d=="string";e.isStr=s;const a=d=>Array.isArray(d);e.isArr=a;const i=d=>typeof d>"u";e.isUndef=i;const u=(d,f)=>(0,e.isObj)(d)&&f in d;e.keyExists=u;const c=d=>(0,e.isObj)(d)&&[t,n].includes(JSON.stringify(d));e.objIsEmpty=c}(mt)),mt}var Jn;function Cd(){return Jn||(Jn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.setDeclaration=e.setAttributes=e.setStringVal=e.createTag=e.checkChildTags=e.createEntityHandler=e.beautify=void 0;const t=Jr(),n=Gr(),r=(c,d=t.DEFAULTS.LEVEL.INIT,f=t.DEFAULTS.BEAUTIFY.ENABLE)=>{let h=c;if(!f)return t.DEFAULTS.EMPTY_STR;if(c===t.DEFAULTS.SPACE){if(h=t.DEFAULTS.EMPTY_STR,d)for(let p=t.DEFAULTS.LEVEL.INIT;p<d;p+=t.DEFAULTS.LEVEL.INCREMENT)h+=c;return h}return h};e.beautify=r;const o=c=>{const d=c&&RegExp(Object.keys(c).join("|"),"gi");return f=>d?f.replace(d,h=>(c==null?void 0:c[h])||t.DEFAULTS.EMPTY_STR):f};e.createEntityHandler=o;const s=(c,d,f)=>{if((0,n.isObj)(c)&&!(0,n.isArr)(c)){const h=Object.keys(c);return!!(h.length&&(h.find(p=>p===f&&(0,n.isObj)(c[p]))||h.some(p=>![d,f].includes(p))))}else if((0,n.isArr)(c))return!!c.length;return!1};e.checkChildTags=s,e.createTag={[t.TAGS.OPENING]:c=>`${(0,e.beautify)(t.DEFAULTS.SPACE,c.level,c.beautify)}<${c.name}${(0,e.setAttributes)(c.attributes,c.setEntities)}${c.selfClosing?`/>${(0,e.beautify)(t.DEFAULTS.NEW_LINE,t.DEFAULTS.LEVEL.INIT,c.beautify)}`:">"}`,[t.TAGS.CLOSING]:c=>`${c.hasChidTags?(0,e.beautify)(t.DEFAULTS.SPACE,c.level,c.beautify):t.DEFAULTS.EMPTY_STR}</${c.name}>${(0,e.beautify)(t.DEFAULTS.NEW_LINE,t.DEFAULTS.LEVEL.INIT,c.beautify)}`};const a=(c,d,f)=>{let h=(0,n.isFunc)(c)?c():c;return(0,n.isStr)(h)&&(h=f&&f(h)),d?`"${h}"`:`${h}`};e.setStringVal=a;const i=(c,d)=>{let f=t.DEFAULTS.EMPTY_STR;return c&&Object.keys(c).forEach(h=>{f+=` ${h}=${(0,e.setStringVal)(c[h],t.DEFAULTS.DOUBLE_QUOTES.ENABLE,d)}`}),f};e.setAttributes=i;const u=(c,d,f=t.DEFAULTS.BEAUTIFY.ENABLE)=>{const h=Object.assign({},(0,n.isObj)(c)?c:t.DEFAULTS.DECLARATION);return`<?xml${(0,e.setAttributes)(h,d)}?>${(0,e.beautify)(t.DEFAULTS.NEW_LINE,t.DEFAULTS.LEVEL.INIT,f)}`};e.setDeclaration=u}(gt)),gt}var Gn;function xd(){if(Gn)return He;Gn=1,Object.defineProperty(He,"__esModule",{value:!0});const e=Cd(),t=Gr(),n=Jr();return He.default=(r=n.DEFAULTS.EMPTY_OBJ,o=n.DEFAULTS.EMPTY_OBJ)=>{const s=(o==null?void 0:o.attrKey)||n.DEFAULTS.ATTR_KEY,a=(o==null?void 0:o.contentKey)||n.DEFAULTS.CONTENT_KEY,i=(0,e.createEntityHandler)(Object.assign({},(0,t.isObj)(o==null?void 0:o.entityMap)?o==null?void 0:o.entityMap:n.DEFAULTS.ENTITY_MAP));let u=(0,e.setDeclaration)(o==null?void 0:o.declaration,i,o==null?void 0:o.beautify);const c=(f,h,p)=>{var g;const y=(h==null?void 0:h[s])||n.DEFAULTS.EMPTY_OBJ;let m=(0,t.keyExists)(h,a)?h[a]:h;m=(0,t.isFunc)(m)?m():m;let[S,$]=(0,t.isFunc)(o==null?void 0:o.typeHandler)?(g=o.typeHandler)===null||g===void 0?void 0:g.call(n.DEFAULTS.EMPTY_OBJ,m):[n.DEFAULTS.MAKE_TAG,m];$=(0,t.objIsEmpty)($)?n.DEFAULTS.EMPTY_STR:$;const O=(0,e.checkChildTags)($,s,a),P=((0,t.keyExists)(o,"selfClosing")?o.selfClosing:n.DEFAULTS.SELF_CLOSING.ENABLE)&&[void 0,null,""].includes($);!S||[s,a].includes(f)||!(0,t.isArr)($)&&(u+=f&&e.createTag[n.TAGS.OPENING]({attributes:y,level:p,name:f,setEntities:i,beautify:o==null?void 0:o.beautify,selfClosing:P})||n.DEFAULTS.EMPTY_STR,P)||(O?(0,t.isArr)($)?$.forEach(v=>{c(f,v,p)}):(u+=(0,e.beautify)(n.DEFAULTS.NEW_LINE,n.DEFAULTS.LEVEL.INIT,o==null?void 0:o.beautify),Object.keys($).forEach(v=>{c(v,$[v],p+n.DEFAULTS.LEVEL.INCREMENT)})):u+=(0,e.setStringVal)($,n.DEFAULTS.DOUBLE_QUOTES.DIASBLE,i),(0,t.isArr)($)||(u+=f&&e.createTag[n.TAGS.CLOSING]({level:p,hasChidTags:O,name:f,setEntities:i,beautify:o==null?void 0:o.beautify})||n.DEFAULTS.EMPTY_STR))};return(f=>((0,t.isObj)(f)&&Object.keys(f).forEach(h=>{c(h,f[h],n.DEFAULTS.LEVEL.INIT)}),u))(r)},He}var zn;function Ad(){if(zn)return be;zn=1;var e=be.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(be,"__esModule",{value:!0}),be.toXmlString=void 0;const t=e(xd());return be.toXmlString=t.default,be}var Wn;function Pd(){if(Wn)return ne;Wn=1;var e=ne.__createBinding||(Object.create?function(o,s,a,i){i===void 0&&(i=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(o,i,u)}:function(o,s,a,i){i===void 0&&(i=a),o[i]=s[a]}),t=ne.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),n=ne.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var a in o)a!=="default"&&Object.prototype.hasOwnProperty.call(o,a)&&e(s,o,a);return t(s,o),s};Object.defineProperty(ne,"__esModule",{value:!0}),ne.jsXml=void 0;const r=n(Ad());return ne.jsXml=r,ne}var Rd=Pd();function Ld(e,t=!1){const n=Fr(e,t);return Rd.jsXml.toXmlString(n)}function zr(e,t,n=!1){return Wr(e)?{XML:Yn(e,t,n)}:{JSON:Yn(e,t,n)}}function Yn(e,t,n=!1){return Wr(e)?{summary:"XML",description:"",value:Ld(t,n),isAutogenerated:!0}:{summary:"JSON",description:"",value:Fr(t,n),isAutogenerated:!0}}function Wr(e){return e.toLowerCase().match(/^(text|application)\/.*xml($|;|\\+)/)!==null}function qe(e){var t,n;return(e==null?void 0:e.examples)!==void 0?e.examples:((t=e==null?void 0:e.schema)==null?void 0:t.examples)!==void 0?e.schema.examples:(e==null?void 0:e.example)!==void 0?[e.example]:(e==null?void 0:e.subexamples)!==void 0?e.subexamples:((n=e==null?void 0:e.schema)==null?void 0:n.example)!==void 0?[e.schema.example]:(e==null?void 0:e.subexample)!==void 0?[e.subexample]:null}const Yr=["exclusiveMaximum","exclusiveMinimum","format","maximum","maxItems","maxLength","maxProperties","minimum","minItems","minLength","minProperties","multipleOf","pattern","uniqueItems","default"];function Id(e){return Object.keys(e).some(t=>Yr.includes(t))}function Kr(e){return Object.entries(e).filter(([t])=>Yr.includes(t)).reduce((t,[n,r])=>(t[n]=r,t),{})}function Bd(e){return Qr({key:"root",value:e,parent:null}),e}function Qr(e){const{value:t}=e;if(typeof t!="object"||t===null)return;const n=Nd(e.parent,t);if(n)e.parent.value[e.key]={type:"object",circularReference:n};else for(const[r,o]of Object.entries(t))Qr({key:r,value:o,parent:e})}function Nd(e,t){for(;e;){if(e.value===t)return Xr(e);e=e.parent}return null}function Xr(e){return e?`${Xr(e.parent)}/${e.key}`:""}class G{static createBaseProperty(t,n={},r=!1){const o=Array.isArray(n.type)?n.type:[n.type||"string"],s=qe(n),a={name:t,types:o,required:r,...n.title&&{title:n.title},...n.description&&{description:n.description},...n.default!==void 0&&{defaultValue:n.default},...n.externalDocs&&{docs:n.externalDocs},...s&&{examples:s},...n.nullable&&{nullable:n.nullable}};return n.const!==void 0&&(a.meta={...a.meta||{},isConstant:!0}),Id(n)&&(a.constraints=Kr(n)),Object.keys(n).forEach(i=>{i.startsWith("x-")&&(a.meta=a.meta||{},a.meta.extra=a.meta.extra||{},a.meta.extra[i]=n[i])}),a}static createCircularReferenceProperty(t,n){return{name:t,types:["object"],required:!1,description:`Circular reference to **${n}**`,meta:{isCircularReference:!0}}}static createOneOfProperty(t,n=""){return{name:n,types:["object"],required:!1,properties:t.map(r=>{const o=G.schemaToUiProperty("",r);return o.meta={...o.meta||{},isOneOfItem:!0},o}),meta:{isOneOf:!0}}}static schemaToUiProperty(t,n,r=!1){if(!n||Object.keys(n).length===0)return{name:t,types:[],required:r};if(n.circularReference)return G.createCircularReferenceProperty(t,n.circularReference);if(n.oneOf)return G.createOneOfProperty(n.oneOf,t);if(n.const!==void 0){const s=qe(n)||n.const;return{name:t,types:[n.type||"string"],required:!1,examples:[s],meta:{isConstant:!0}}}if(tt.includes(String(n.type))&&n.enum)return{name:t,types:[n.type],required:!1,enum:n.enum,description:n.description};const o=G.createBaseProperty(t,n,r);switch(n.type){case"array":if(n.items){const s=Ud(n.items);o.properties=s==="object"?G.extractProperties(n.items.properties,n.items.required||[],n.items.additionalProperties):void 0,s!==void 0&&(o.subtype=s);const a=qe(n.items);a&&(o.subexamples=a),n.items.const!==void 0&&(o.meta={...o.meta||{},isConstant:!0}),n.items.oneOf&&(o.meta={...o.meta||{},isOneOf:!0},o.properties=n.items.oneOf.map(i=>{const u={...i,type:n.items.type};return{...G.schemaToUiProperty("",u),meta:{...i.meta||{},isOneOfItem:!0}}}))}break;case"object":o.properties=G.extractProperties(n.properties,n.required||[],n.additionalProperties);break;case void 0:(n.properties||n.additionalProperties)&&(o.types=["object"],o.properties=G.extractProperties(n.properties,n.required||[],n.additionalProperties));break}return o}static extractProperties(t,n=[],r){const o=[];if(t&&Object.entries(t).forEach(([s,a])=>{const i=n.includes(s);o.push(G.schemaToUiProperty(s,a,i))}),r){const s=typeof r=="object"?r:{type:"string"};o.push({name:"additionalProperties",types:[s.type],required:!1,meta:{isAdditionalProperties:!0}})}return o}}function Zr(e){if(!e||Object.keys(e).length===0)return[];const t=Bd(e);return G.schemaToUiProperty("",t)}function Ud(e){return!e.type&&e.properties?"object":!e.type&&e.items?"array":!e.type&&e.const!==void 0?Array.isArray(e.const)?"array":typeof e.const=="object"&&e.const!==null?"object":typeof e.const=="string"?"string":typeof e.const=="number"?"number":typeof e.const=="boolean"?"boolean":"null":e.type}function _d(e){if(!e.paths)return e;for(const t of Object.values(e.paths))for(const n of Object.keys(t)){const r=t[n];if(r.requestBody)for(const[o,s]of Object.entries(r.requestBody.content||{})){const a=s;a.schema&&(a.ui=Zr(a.schema),a.examples={...a.examples||{},...zr(o,a.ui,!0)})}}return e}function Hd(e){if(!e.paths)return e;for(const t of Object.values(e.paths))for(const n of Object.keys(t)){const r=t[n];if(r.responses)for(const o of Object.values(r.responses))for(const[s,a]of Object.entries(o.content||{})){const i=a;i.schema&&(i.ui=Zr(i.schema),i.examples={...i.examples||{},...zr(s,i.ui,!0)})}}return e}const Kn="None";function Dd(e,t){const n=[];return e?(e.forEach(r=>{const o={id:Object.keys(r).length?Object.keys(r).join("|"):Kn,schemes:{}};Object.keys(r).forEach(s=>{t[s]&&(o.schemes[s]=t[s])}),n.push(o)}),n.length===1&&n[0].id===Kn&&Object.keys(n[0].schemes).length===0?[]:n):n}function Fd(e){var t;if(!(e!=null&&e.paths))return e;for(const n of Object.values(e.paths))for(const r of Object.keys(n)){const o=n[r];o&&(o.securityUi=Dd(o.security??e.security??[],((t=e.components)==null?void 0:t.securitySchemes)||{}))}return e}function Ft(){function e(s){if(typeof s=="string")try{return Za(s)}catch(a){console.error("Error parsing spec",a)}else{if(typeof s=="object")return s;console.error("Invalid spec format")}return{}}function t({spec:s,defaultTag:a=void 0,defaultTagDescription:i=void 0}){let u=e(s);return u?!u.openapi||!String(u.openapi).startsWith("3.")?(console.warn("Only OpenAPI 3.x is supported"),{}):(u!=null&&u.paths&&(u=kd(u),u=vd(u),u=Td({spec:u,defaultTag:a,defaultTagDescription:i})),u.externalDocs=u.externalDocs||{},u.info=u.info||{},u.servers=u.servers||[],u.tags=u.tags||[],Object.assign({},u)):{}}async function n({spec:s}){let a=e(s);const[i,u]=await he(()=>$d(a));return a=u?a:i,a}function r({spec:s,defaultTag:a=void 0,defaultTagDescription:i=void 0}){const u=e(s);let c=Object.assign({},u);const[d,f]=he(()=>ni(t({spec:s,defaultTag:a,defaultTagDescription:i})));c=f?c:d;const[h,p]=he(()=>Ao(c));c=p?c:h;const[g,y]=he(()=>Fd(c));c=y?c:g;const[m,S]=he(()=>_d(c));c=S?c:m;const[$,O]=he(()=>Hd(c));return c=O?c:$,c.externalDocs=c.externalDocs||c.externalDocs||{},c.info=c.info||c.info||{},c.servers=c.servers||c.servers||[],c.tags=c.tags||c.tags||[],Object.assign({},c)}async function o({spec:s,defaultTag:a=void 0,defaultTagDescription:i=void 0}){let u=r({spec:s,defaultTag:a,defaultTagDescription:i});return u=await n({spec:u}),u}return{transformSync:t,transformAsync:n,parseSync:r,parseAsync:o}}function qd({spec:e,defaultTag:t=void 0,defaultTagDescription:n=void 0}){const r=qt({spec:Ft().transformSync({spec:e,defaultTag:t,defaultTagDescription:n})});function o(){return r.getFilteredTags()}return{getPathsByVerbs:r.getPathsByVerbs,getTags:o}}function wt(e){return Array.isArray(e)?e.map(wt):typeof e=="object"?{text:e.text,...e.collapsed===void 0?{}:{collapsed:e.collapsed},...e.link?{link:e.link}:{},...e.items?{items:wt(e.items)}:{}}:e}function eo(e){return e.map(t=>{var n;return t.items?(t.items=eo(t.items),t.text=(n=t.text)!=null&&n.startsWith("/")?t.text:`/${t.text}`):t.text&&!t.isOperation&&!t.text.startsWith("/")&&!t.text.includes("<span")&&(t.text=`/${t.text}`),t})}function Md(e,t,n,r=1,o=""){return no(to(e,t,n,r,o))}function to(e,t,n,r,o=""){return e.map(s=>{if(s.items){const a=o+s.text;r+1>n?s.flattenedItems=Object.keys(t).filter(i=>i.startsWith(a)).map(i=>{var c;const u=t[i];return{...u,items:(c=u.items)==null?void 0:c.filter(d=>d.isOperation)}}):s.items=to(s.items,t,n,r+1,a)}return s})}function no(e,t=""){const n=[];return e.forEach(r=>{r.flattenedItems?n.push(...r.flattenedItems.map(o=>{var s;if(o.items&&r.text!==o.text){const a=t+r.text,i=(s=o.path)==null?void 0:s.replace(a,"");o.text=(r.text||"")+i}return o})):n.push(r),r.items&&(r.items=no(r.items,t+r.text))}),n}function jt(e){return Array.isArray(e)?e.reduce((t,n)=>{var o;if(!((o=n.items)!=null&&o.length))return t.push(n),t;if(n.items.length===1&&!n.items.some(s=>"link"in s)){const s=n.items[0],a=jt([s])[0];return a.text=Vd(n.text,a.text),a.path=a.path||n.path,t.push(a),t}return n.items=jt(n.items),t.push(n),t},[]):e}function Vd(e,t){const n=t.startsWith("/")?t:`/${t}`;return e+n}function ro(e){return e.map(t=>(t.items&&(t.collapsed=!t.items.length,t.items.some(n=>"items"in n)&&(t.items=ro(t.items))),t))}function Jd({paths:e,startsWith:t="",collapsible:n=!0,itemLinkPrefix:r="",depth:o=6,sidebarItemTemplate:s,sidebarGroupTemplate:a}={paths:{}}){let i=[];const u={};return Object.keys(e).filter(c=>c.startsWith(t)).forEach(c=>{const d=c.split("/").filter(Boolean);let f=i;d.forEach((h,p)=>{const g=p===d.length-1,y=`/${d.slice(0,p+1).join("/")}`,m=Gd(f,h,y);if(g){const S=Q.map($=>{const O=e[c]?e[c][$]:null;return O?{text:s?s($,y):`[${$.toUpperCase()}] ${O.summary}`,link:`${r}${O.operationId}`,method:$,path:y,isOperation:!0,operation:O}:null}).filter($=>$!==null);m.items=m.items||[],m.items.push(...S),u[y]=m}f=m.items})}),i=jt(i),i=eo(i),n&&(i=ro(i)),i=Md(i,u,o),a&&(i=oo(i,a)),i}function Gd(e,t,n){let r=e.find(o=>o.text===t&&o.path===n);return r||(r={text:t,path:n,items:[]},e.push(r)),r}function oo(e,t,n=1){return e.map(r=>(r.text&&r.path&&r.items&&r.items.length&&(r.text=t(r.path,n)),r.items&&(r.items=oo(r.items,t,n+1)),r))}const bt={linkPrefix:"/operations/",tagLinkPrefix:"/tags/",defaultTag:"Default"};function zd(e,t=1){return e}function Wd({spec:e,linkPrefix:t=bt.linkPrefix,tagLinkPrefix:n=bt.tagLinkPrefix,defaultTag:r=bt.defaultTag,methodAliases:o={},sidebarItemTemplate:s,sidebarGroupTemplate:a}={}){let i=null;function u(){if(!e)throw new Error("OpenAPI spec is not provided.");return i||(i=qt({spec:Ft().transformSync({spec:e,defaultTag:r})})),i}const c=s||((S,$)=>{const O=o[S]||S.toUpperCase();return`<span class="OASidebarItem group/oaSidebarItem">
109
+ <span class="OASidebarItem-badge OAMethodBadge--${S.toLowerCase()}">${O}</span>
110
+ <span class="OASidebarItem-text text">${$}</span>
111
+ </span>`}),d=a||zd;function f(S,$,O){var x,C;const P=(C=(x=u().getPaths())==null?void 0:x[$])==null?void 0:C[S];if(!P)return`[${S.toUpperCase()}] ${$}`;const{summary:v}=P,w=P["x-sidebar-title"]||v||`${S.toUpperCase()} ${$}`;return(O||c)(S,w)}function h(S,$,O=t,P){var j,x;const v=(x=(j=u().getPaths())==null?void 0:j[$])==null?void 0:x[S];if(!v)return null;const w=v.operationId;return{text:f(S,$,P),link:`${O}${w}`}}function p({tag:S,text:$="",linkPrefix:O=t,addedOperations:P=new Set,sidebarItemTemplate:v,sidebarGroupTemplate:w}){const j=u().getPaths();if(!j)return{text:"",items:[]};const x=Array.isArray(S)?S:[S],C=Object.entries(j).flatMap(([A,L])=>Q.map(I=>{const se=L==null?void 0:L[I];return!se||P.has(se.operationId)?null:x.length===0||x.every(Ie=>{var Be;return(Be=se.tags)==null?void 0:Be.includes(Ie)})?(P.add(se.operationId),h(I,A,O,v)):null}).filter(I=>I!==null));return{text:(w||d)($,0),items:C}}function g({tags:S=void 0,linkPrefix:$=t,sidebarItemTemplate:O,sidebarGroupTemplate:P}={}){var x;if(S===void 0&&(S=u().getOperationsTags()),!u().getPaths())return[];const v=new Set,w=(S??[]).map(C=>p({tag:C,text:C,linkPrefix:$||n,addedOperations:v,sidebarItemTemplate:O,sidebarGroupTemplate:P})),j=p({tag:[],text:"",linkPrefix:$||n,addedOperations:v,sidebarItemTemplate:O,sidebarGroupTemplate:P});return(x=j.items)!=null&&x.length?[...w,j]:w}function y({tags:S=void 0,linkPrefix:$=n}={}){return S===void 0&&(S=u().getFilteredTags().map(O=>O.name||"")),!u().getPaths()||!S?[]:S.map(O=>({text:O,link:`${$}${O}`}))}function m({startsWith:S="",collapsible:$=!0,depth:O=6,linkPrefix:P=t,sidebarItemTemplate:v,sidebarGroupTemplate:w}={}){const j=u().getPaths(),C=Jd({paths:j,startsWith:S,collapsible:$,depth:O,itemLinkPrefix:P,sidebarItemTemplate:(R,A)=>f(R,A,v),sidebarGroupTemplate:w});return wt(C)}return{sidebarItemTemplate:c,sidebarGroupTemplate:d,generateSidebarItem:h,generateSidebarGroup:p,generateSidebarGroups:g,itemsByTags:y,itemsByPaths:m}}const Q=["get","post","put","delete","patch","options","head"],tt=["string","number","integer","boolean","null"];function qt({spec:e}={spec:null}){let t=null;function n(v){t=v}function r(){if(t||n(e??{}),!t)throw new Error("OpenAPI spec is not defined");return t}function o(v,w){var j;for(const x of Object.values(v))for(const C of Q)if(x&&((j=x[C])==null?void 0:j.operationId)===w)return x[C];return null}function s(v){const w=r().paths;return w?o(w,v):null}function a(v){var j;const w=r().paths;if(!w)return null;for(const[x,C]of Object.entries(w))for(const R of Q)if(C&&((j=C[R])==null?void 0:j.operationId)===v)return x;return null}function i(v){var j;const w=r().paths;if(!w)return null;for(const x of Object.values(w))for(const C of Q)if(x&&((j=x[C])==null?void 0:j.operationId)===v)return C;return null}function u(v){const w=s(v);return w?w.parameters||[]:[]}function c(){return r().paths??{}}function d(){const v=c();return Object.keys(v).flatMap(w=>Q.filter(j=>v&&v[w]&&v[w][j]).map(j=>{if(!v||!v[w]||!v[w][j])return null;const{operationId:x,summary:C,tags:R}=v[w][j];return{path:w,verb:j,operationId:x,summary:C,tags:R??[]}}))}function f(){return r().info??{}}function h(){return r().externalDocs??{}}function p(){return r().servers??[]}function g(v){var R;const w=o(c(),v);if(!w)return[];const j=a(v),C=(R=r().paths[j??""])==null?void 0:R.servers;return[...(w==null?void 0:w.servers)??[],...C??[],...r().servers??[]]}function y(){if(!r().paths)return[];const v=r().paths;return Object.values(v).reduce((w,j)=>{var x;for(const C of Q)j&&((x=j[C])!=null&&x.tags)&&j[C].tags.forEach(R=>{w.includes(R)||w.push(R)});return w},[])}function m(v){const w=c()??{},j={};for(const[x,C]of Object.entries(w))if(C)for(const R of Q){const A=C[R];A&&v(A)&&(j[x]=j[x]||{},j[x][R]=A)}return j}function S(v){const w=typeof v=="string"?[v]:v;return m(j=>{var x;return(x=j==null?void 0:j.tags)==null?void 0:x.some(C=>w.includes(C))})}function $(){return m(v=>!(v!=null&&v.tags)||v.tags.length===0)}function O(){return(r().tags??[]).map(v=>({name:v.name??null,description:v.description??null}))}function P(){const v=y(),w=O().filter(j=>v.includes(j.name??""));return w.concat([...v.filter(j=>!w.map(x=>x.name).includes(j)).map(j=>({name:j,description:null}))])}return{spec:r(),setSpec:n,getSpec:r,getOperation:s,getOperationPath:a,getOperationMethod:i,getOperationParameters:u,getPaths:c,getPathsByVerbs:d,getInfo:f,getExternalDocs:h,getServers:p,getOperationServers:g,getOperationsTags:y,getPathsByTags:S,getPathsWithoutTags:$,getTags:O,getFilteredTags:P}}exports.DEFAULT_OPERATION_SLOTS=Hr;exports.OARequest=Nr;exports.OpenApi=qt;exports.buildRequest=Ut;exports.computedEager=ns;exports.createGlobalState=rs;exports.createSharedComposable=is;exports.defaultWindow=ie;exports.generateCodeSample=_t;exports.getConstraints=Kr;exports.getPropertyExample=ke;exports.getPropertyExamples=qe;exports.httpVerbs=Q;exports.isClient=Lt;exports.isIOS=ls;exports.literalTypes=tt;exports.locales=_r;exports.onKeyStroke=ks;exports.parseOpenapi=Ft;exports.refAutoReset=hs;exports.resolveBaseUrl=Bt;exports.toValue=bs;exports.tryOnBeforeUnmount=ys;exports.unrefElement=xe;exports.useEventBus=Bs;exports.useEventListener=Ae;exports.useMounted=jr;exports.usePaths=qd;exports.useResizeObserver=Is;exports.useSidebar=Wd;exports.useStorage=xr;exports.useTheme=Dr;exports.useVModel=Ns;