@scalar/api-reference 1.65.0 → 1.65.1

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 (96) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/browser/chunks/{AgentScalarChatInterface-2lNB6wO-.js → AgentScalarChatInterface-B8091hGB.js} +2 -2
  3. package/dist/browser/chunks/{ScalarTextInput.vue-DVmXRWbS.js → ScalarTextInput.vue-Y69qfG1_.js} +2 -2
  4. package/dist/browser/chunks/basic-shape-diamond.svg-o5eiY2I7.js +1 -1
  5. package/dist/browser/chunks/basic-shape-hexagon.svg-CGuS7mbd.js +1 -1
  6. package/dist/browser/chunks/basic-shape-primary-circle-ellipse-round.svg-DDIpXiBm.js +1 -1
  7. package/dist/browser/chunks/basic-shape-primary-square-rectangle.svg-DzVEJHMB.js +1 -1
  8. package/dist/browser/chunks/basic-shape-shield.svg-BZzapRqv.js +1 -1
  9. package/dist/browser/chunks/browser-CTPPEMEL.js +1 -1
  10. package/dist/browser/chunks/computer-device-desktop-monitor.svg-OSM05r1I.js +1 -1
  11. package/dist/browser/chunks/computer-device-desktop.svg-BMFzGZ27.js +1 -1
  12. package/dist/browser/chunks/computer-device-laptop.svg-CMAjzuB-.js +1 -1
  13. package/dist/browser/chunks/computer-device-mobile-phone-android-samsung-back.svg-D4xBONmL.js +1 -1
  14. package/dist/browser/chunks/computer-device-mobile-phone-android-samsung.svg-gbMJLjJw.js +1 -1
  15. package/dist/browser/chunks/computer-device-mobile-phone-iphone-x-back.svg-Bl1rmdKA.js +1 -1
  16. package/dist/browser/chunks/computer-device-mobile-phone-iphone-x.svg-DVetP0aa.js +1 -1
  17. package/dist/browser/chunks/computer-device-mobile-tablet-touch.svg-Zi88BP4L.js +1 -1
  18. package/dist/browser/chunks/computer-device-mobile-tablet.svg-C1ggisWP.js +1 -1
  19. package/dist/browser/chunks/computer-device-network-ethernet-cat6.svg-BIUymdC1.js +1 -1
  20. package/dist/browser/chunks/computer-device-network-lan-www.svg-CoFUlIVO.js +1 -1
  21. package/dist/browser/chunks/computer-device-network-wifi-connection.svg-DeWsacxI.js +1 -1
  22. package/dist/browser/chunks/computer-device-network-wifi-router.svg-BjpZEot4.js +1 -1
  23. package/dist/browser/chunks/ecology-science-erlenmeyer-flask.svg-ftjGGirE.js +1 -1
  24. package/dist/browser/chunks/image-flash-lightning.svg-DYQ0W4Fi.js +1 -1
  25. package/dist/browser/chunks/image-picture-flower.svg-Bfe5SVDf.js +1 -1
  26. package/dist/browser/chunks/interface-alert-exclamation-diamond.svg-D1HePDNM.js +1 -1
  27. package/dist/browser/chunks/interface-alert-exclamation-triangle-warning.svg-CILUsxBC.js +1 -1
  28. package/dist/browser/chunks/interface-alert-information-circle.svg-9LrbJM5J.js +1 -1
  29. package/dist/browser/chunks/interface-award-crown.svg-DllWgiU1.js +1 -1
  30. package/dist/browser/chunks/interface-bookmark-tag.svg-Dc-JL-Kc.js +1 -1
  31. package/dist/browser/chunks/interface-bookmark.svg-Dc-JL-Kc.js +1 -1
  32. package/dist/browser/chunks/interface-calendar-date-one.svg-DO2jelhF.js +1 -1
  33. package/dist/browser/chunks/interface-content-book-open-pages.svg-BJjMjIgA.js +1 -1
  34. package/dist/browser/chunks/interface-content-book-page.svg-C6rKB2fs.js +1 -1
  35. package/dist/browser/chunks/interface-content-file.svg-CS0q2FKx.js +1 -1
  36. package/dist/browser/chunks/interface-content-folder.svg-CThTWsJX.js +1 -1
  37. package/dist/browser/chunks/interface-copy-clipboard.svg-DdN67cLv.js +1 -1
  38. package/dist/browser/chunks/interface-edit-attachment.svg-Ciizphuh.js +1 -1
  39. package/dist/browser/chunks/interface-edit-binocular.svg-Dw1nDqmL.js +1 -1
  40. package/dist/browser/chunks/interface-edit-magic-wand.svg-BYS0jm_E.js +1 -1
  41. package/dist/browser/chunks/interface-edit-tool-paint-roller.svg-NioSHZC2.js +1 -1
  42. package/dist/browser/chunks/interface-edit-tool-pencil.svg-P87QFlat.js +1 -1
  43. package/dist/browser/chunks/interface-favorite-award.svg-DBBAChSi.js +1 -1
  44. package/dist/browser/chunks/interface-favorite-flag.svg-HlhPomHY.js +1 -1
  45. package/dist/browser/chunks/interface-favorite-heart.svg-Cqu2GYDo.js +1 -1
  46. package/dist/browser/chunks/interface-favorite-star.svg-BD4JY_J2.js +1 -1
  47. package/dist/browser/chunks/interface-favorite-stars-sparkles.svg-BXi6aO8q.js +1 -1
  48. package/dist/browser/chunks/interface-hierarchy-flowchart.svg-CDEVSsD4.js +1 -1
  49. package/dist/browser/chunks/interface-home-house.svg-DJetUjwj.js +1 -1
  50. package/dist/browser/chunks/interface-hyperlink.svg-DJ1LREmz.js +1 -1
  51. package/dist/browser/chunks/interface-lighting-brightness.svg-TGKAaHYV.js +1 -1
  52. package/dist/browser/chunks/interface-lock-closed.svg-3hehWr3i.js +1 -1
  53. package/dist/browser/chunks/interface-lock-open-unlock.svg-CuXKcv1m.js +1 -1
  54. package/dist/browser/chunks/interface-login-key.svg-Chwvvywd.js +1 -1
  55. package/dist/browser/chunks/interface-search.svg-JDE3fk0u.js +1 -1
  56. package/dist/browser/chunks/interface-setting-cog.svg-BBCkeh4K.js +1 -1
  57. package/dist/browser/chunks/interface-share-megaphone-bullhorn.svg-CDdxF-4y.js +1 -1
  58. package/dist/browser/chunks/interface-share-rocket.svg-DSbdn_o7.js +1 -1
  59. package/dist/browser/chunks/interface-share-satellite.svg-CefBVZvY.js +1 -1
  60. package/dist/browser/chunks/interface-share-space-ship.svg-tFA2dsSU.js +1 -1
  61. package/dist/browser/chunks/interface-share.svg-BpOGopyv.js +1 -1
  62. package/dist/browser/chunks/interface-signal-square.svg-BcX_BoaC.js +1 -1
  63. package/dist/browser/chunks/interface-time-clock-circle.svg-C8B_L_RM.js +1 -1
  64. package/dist/browser/chunks/interface-time-hour-glass.svg-qw-oeoVn.js +1 -1
  65. package/dist/browser/chunks/interface-users-multiple.svg-Cs13Eewq.js +1 -1
  66. package/dist/browser/chunks/interface-weather-moon.svg-CV-oDTae.js +1 -1
  67. package/dist/browser/chunks/mail-chat-bubble-square.svg-dpauJhin.js +1 -1
  68. package/dist/browser/chunks/mail-send-email-paper-airplane.svg-BBofxojL.js +1 -1
  69. package/dist/browser/chunks/mail-send-envelope.svg-DyENgYOI.js +1 -1
  70. package/dist/browser/chunks/{modal-70ibkEHi.js → modal-C-pxwP3A.js} +3 -3
  71. package/dist/browser/chunks/money-cashier-receipt.svg-dNTr5aio.js +1 -1
  72. package/dist/browser/chunks/money-currency-dollar-pay.svg-1ZESPtFY.js +1 -1
  73. package/dist/browser/chunks/money-graph-arrow-increase.svg-kEZ2u2z2.js +1 -1
  74. package/dist/browser/chunks/money-graph-bar-chart-increase.svg-B-t2UWB3.js +1 -1
  75. package/dist/browser/chunks/nature-ecology-leaf.svg-DZ2GJV8m.js +1 -1
  76. package/dist/browser/chunks/phone-telephone.svg-C12QjpN7.js +1 -1
  77. package/dist/browser/chunks/programming-bug.svg-wLTsruN9.js +1 -1
  78. package/dist/browser/chunks/programming-cloud.svg-3XU6dNUg.js +1 -1
  79. package/dist/browser/chunks/programming-computer-database-server.svg-B1JrHSPd.js +1 -1
  80. package/dist/browser/chunks/programming-computer-database.svg-BxHSuFl7.js +1 -1
  81. package/dist/browser/chunks/programming-module-four-layout.svg-CeV35q45.js +1 -1
  82. package/dist/browser/chunks/programming-module-three.svg-YIBpLt45.js +1 -1
  83. package/dist/browser/chunks/programming-module.svg-CU_pEibI.js +1 -1
  84. package/dist/browser/chunks/programming-script-code.svg-CLzinmHT.js +1 -1
  85. package/dist/browser/chunks/runtime-core.esm-bundler-CqqEw5ds.js +1 -1
  86. package/dist/browser/chunks/shopping-cart.svg-Brzddu3K.js +1 -1
  87. package/dist/browser/chunks/shopping-gift-present.svg-l2K48g7L.js +1 -1
  88. package/dist/browser/chunks/shopping-shipping-box-parcel-package.svg-DesGopPo.js +1 -1
  89. package/dist/browser/chunks/tag-new-circle.svg-DE-VaLZU.js +1 -1
  90. package/dist/browser/chunks/travel-map-earth-globe.svg-DLaOMzx6.js +1 -1
  91. package/dist/browser/chunks/{vendor-BcTep96u.js → vendor-B93Hdr0r.js} +1 -1
  92. package/dist/browser/standalone.esm.js +4 -4
  93. package/dist/browser/standalone.js +5 -5
  94. package/dist/components/ApiReference.vue.script.js +1 -1
  95. package/dist/features/Operation/layouts/ModernLayout.vue.script.js.map +1 -1
  96. package/package.json +8 -8
@@ -5,14 +5,14 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
12
12
  * License: https://github.com/scalar/scalar/blob/main/LICENSE
13
13
  **/
14
14
 
15
- import{r as e,t}from"./browser-CTPPEMEL.js";import{$a as n,$i as r,$o as i,$r as a,Ai as o,Bi as s,Br as c,Ca as l,Ci as u,Da as d,Dn as f,Ea as p,Ei as m,Fi as h,Fn as g,Gi as _,Go as v,Gr as ee,Hi as y,Hr as te,Ii as b,Ir as ne,J as x,Ji as re,Jn as S,Jo as C,Jr as ie,K as ae,Ki as oe,Ko as w,Kr as se,Li as ce,Lo as le,Lr as ue,Mi as de,Mn as T,Ni as E,Pi as D,Pr as fe,Qi as pe,Qo as O,Qr as me,Ri as he,Rr as ge,Si as _e,Ti as ve,Ui as ye,Uo as k,Ur as be,V as xe,Vi as Se,Vr as Ce,W as we,Wi as Te,Wo as A,Wr as Ee,Xi as De,Xn as Oe,Xo as j,Xr as ke,Y as Ae,Yi as je,Yn as Me,Yo as M,Yr as Ne,Zi as Pe,Zo as Fe,Zr as Ie,_ as Le,_a as Re,_i as ze,aa as Be,ai as Ve,as as He,bi as Ue,ci as We,da as N,di as Ge,ea as Ke,ei as qe,es as P,fa as Je,fi as Ye,fr as Xe,g as Ze,ga as Qe,ha as $e,hi as et,ia as tt,ii as nt,is as rt,ji as it,jn as at,ki as ot,li as st,ma as ct,mi as lt,na as ut,ni as dt,ns as F,oi as ft,pa as pt,pi as mt,q as ht,qi as gt,qo as I,qr as _t,ra as vt,ri as yt,rs as L,si as bt,ta as xt,ti as St,ts as R,ui as Ct,va as wt,vi as Tt,wa as Et,wi as Dt,xa as z,xi as Ot,ya as kt,yi as At,zi as jt,zn as Mt,zr as Nt}from"./vendor-BcTep96u.js";import{A as Pt,B as Ft,D as It,Gt as Lt,H as B,J as Rt,K as zt,Q as Bt,R as Vt,S as Ht,Tt as V,U as Ut,Yt as Wt,at as Gt,b as Kt,d as qt,dt as Jt,f as Yt,gt as Xt,k as Zt,l as Qt,mt as $t,ot as en,p as H,tt as tn,u as U}from"./runtime-core.esm-bundler-CqqEw5ds.js";var W=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},nn=(e,t,n)=>{if(!e)return!1;let r=W(t)||Array.isArray(t);if(r&&n.get(t)?.has(e))return!0;if(r){let r=n.get(t)??new Set;r.add(e),n.set(t,r)}try{return e.type===`any`||e.type===`unknown`?!0:e.type===`function`?typeof t==`function`:e.type===`number`?typeof t==`number`&&!Number.isNaN(t)&&Number.isFinite(t):e.type===`string`?typeof t==`string`:e.type===`boolean`?typeof t==`boolean`:e.type===`nullable`?t===null:e.type===`notDefined`?t===void 0:e.type===`array`?Array.isArray(t)&&t.every(t=>nn(e.items,t,n)):e.type===`record`?W(t)?Object.keys(t).every(r=>nn(e.key,r,n)&&nn(e.value,t[r],n)):!1:e.type===`object`?W(t)?Object.keys(e.properties).every(r=>nn(e.properties[r],t[r],n)):!1:e.type===`optional`?t===void 0||nn(e.schema,t,n):e.type===`union`?e.schemas.some(e=>nn(e,t,n)):e.type===`intersection`?e.schemas.length===0?!0:W(t)?e.schemas.every(e=>nn(e,t,n)):!1:e.type===`literal`?t===e.value:e.type===`lazy`?nn(e.schema(),t,n):e.type===`evaluate`?nn(e.schema,e.expression(t),n):(console.warn(`Unknown schema type:`,e),!1)}finally{r&&n.get(t)?.delete(e)}},rn=(e,t,n=new WeakMap)=>nn(e,t,n),an=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},on=e=>e.type===`optional`?on(e.schema):e.type===`literal`||e.type===`union`&&e.schemas.length>0&&e.schemas.every(on),sn=(e,t,n,r=new WeakMap)=>{if(W(t)&&r.get(t)?.has(e))return 1;let i=W(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!W(t))return 0;let i=Object.keys(e.properties);return i.length===0?1:i.reduce((i,a)=>{if(!(a in t))return i;let o=e.properties[a],s=t[a],c=sn(o,s,n,r);return on(o)?i+(c>0?c*10:0):i+(c>0?c:1)},0)}return e.type===`array`?+!!Array.isArray(t):e.type===`record`?+!!W(t):e.type===`optional`?t===void 0?1:sn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>sn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+sn(i,t,n,r),0):e.type===`lazy`?sn(an(e,n),t,n,r):e.type===`evaluate`?sn(e.schema,e.expression(t),n,r):+!!rn(e,t)}finally{i&&r.get(t)?.delete(e)}},cn=(e,t,n,r)=>{if(W(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},ln=(e,t,n,r)=>{if((W(t)||Array.isArray(t))&&n.get(t)?.has(e))return n.get(t)?.get(e);if(!e||e.type===`any`||e.type===`unknown`)return t;if(e.type===`function`)return typeof t==`function`?t:()=>void 0;if(e.type===`number`)return rn(e,t)?t:e.default??0;if(e.type===`string`)return rn(e,t)?t:e.default??``;if(e.type===`boolean`)return rn(e,t)?t:e.default??!1;if(e.type===`nullable`)return null;if(e.type!==`notDefined`){if(e.type===`optional`)return t===void 0?void 0:ln(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);cn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=ln(e.items,t[a],n,r);return i}if(e.type===`record`){if(!W(t))return{};let i={};cn(t,e,i,n);for(let a of Object.keys(t))i[a]=ln(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=W(t)?t:null,o={};cn(t,e,o,n);for(let t of i){let i=e.properties[t],s=a?.[t];i.type===`optional`&&s===void 0||(o[t]=ln(i,s,n,r))}return o}return e.type===`union`?ln(e.schemas.reduce((e,n)=>{let i=sn(n,t,r);return i>e.score?{schema:n,score:i}:e},{schema:e.schemas[0],score:0}).schema,t,n,r):e.type===`intersection`?e.schemas.reduce((e,i)=>Object.assign(e,ln(i,t,n,r)),{}):e.type===`literal`?e.value:e.type===`lazy`?ln(an(e,r),t,n,r):e.type===`evaluate`?ln(e.schema,e.expression(t),n,r):(console.warn(`Unknown schema type:`,e),t)}},un=(e,t,n=new WeakMap,r=new WeakMap)=>ln(e,t,n,r);i({name:F({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:rt({typeComment:`Vue component to render the specification extension`}),renderer:P(rt({typeComment:`Custom renderer to render the specification extension`}))});var dn=i({component:rt({typeComment:`Vue component to render in the view`}),renderer:P(rt({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:P(R(F(),k()),{typeComment:`Additional props to pass to the component`}),sidebar:P(i({show:v(),label:F()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});i({"content.start":P(A(dn),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":P(A(dn),{typeComment:`Components to render at specific views in the API Reference`})}),i({onInit:P(I()),onConfigChange:P(I()),onDestroy:P(I())});var fn=I(),pn=i({dashboardUrl:F({default:`https://dashboard.scalar.com`}),registryUrl:F({default:`https://registry.scalar.com`}),proxyUrl:F({default:`https://proxy.scalar.com`}),apiBaseUrl:F({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),mn=i({title:P(F(),{typeComment:`The title of the OpenAPI document.`}),slug:P(F(),{typeComment:`The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. If no title is used, it will just use the index.`}),authentication:P(k(),{typeComment:`Prefill authentication`}),baseServerURL:P(F(),{typeComment:`Base URL for the API server`}),hideClientButton:v({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:P(F(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:P(F(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:P(L([j(`a`),j(`b`),j(`c`),j(`d`),j(`e`),j(`f`),j(`g`),j(`h`),j(`i`),j(`j`),j(`k`),j(`l`),j(`m`),j(`n`),j(`o`),j(`p`),j(`q`),j(`r`),j(`s`),j(`t`),j(`u`),j(`v`),j(`w`),j(`x`),j(`y`),j(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:P(A(k()),{typeComment:`List of OpenAPI server objects`}),showSidebar:v({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:L([j(`localhost`),j(`always`),j(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:L([j(`localhost`),j(`always`),j(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:L([j(`summary`),j(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:L([j(`default`),j(`alternate`),j(`moon`),j(`purple`),j(`solarized`),j(`bluePlanet`),j(`deepSpace`),j(`saturn`),j(`kepler`),j(`elysiajs`),j(`fastify`),j(`mars`),j(`laserwave`),j(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:P(L([j(`adonisjs`),j(`astro`),j(`docusaurus`),j(`dotnet`),j(`elysiajs`),j(`express`),j(`fastapi`),j(`fastify`),j(`go`),j(`hono`),j(`html`),j(`laravel`),j(`litestar`),j(`nestjs`),j(`nextjs`),j(`nitro`),j(`nuxt`),j(`platformatic`),j(`react`),j(`rust`),j(`svelte`),j(`vue`),Fe()]),{typeComment:`Integration type identifier`}),onRequestSent:P(I(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:v({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:v({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:pn}),hn=L([F(),Fe(),R(F(),k()),I()]),gn=C([mn,i({default:v({default:!1}),url:P(F(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:P(hn,{typeComment:`Directly embed the OpenAPI document. Can be a string, object, function returning an object, or null. It is recommended to pass a URL instead of content.`}),title:P(F(),{typeComment:"The title of the OpenAPI document. Used for the page title and the document name in the dropdown. With multiple `sources`, set this per source."}),slug:P(F(),{typeComment:"The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. With multiple `sources`, set this per source."}),spec:P(i({url:P(F()),content:P(hn)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:P(i({key:P(F()),disabled:P(v()),hideAddApi:P(v(),{typeComment:`When true, hide the control to add more APIs in the agent chat. Only preloaded/registry documents are shown; the public API list is not offered.`})}),{typeComment:`Agent Scalar configuration`})}),i({layout:L([j(`modern`),j(`classic`)],{typeComment:`The layout to use for the references`}),proxy:P(F(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:P(I(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:P(I(),{typeComment:"Custom fetch function used both when loading the OpenAPI document and when sending requests from the API client. Can be used to add custom headers, attach credentials (for example `credentials: 'include'`), handle auth, etc."}),plugins:P(A(fn),{typeComment:`Plugins for the API reference`}),pluginUrls:P(A(F()),{typeComment:"URLs of ESM modules that provide additional plugins for the API reference. Each module is loaded with a dynamic `import()` before the API reference mounts, and its default export is registered as a plugin. Unlike `plugins`, this option is JSON-serializable, so integrations that pass their configuration as JSON can load plugins without replacing the whole bundle. Only supported by the standalone browser build (`Scalar.createApiReference`)."}),isEditable:v({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:v({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:P(L([j(`Models`),j(`Schemas`),F()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:P(i({locale:P(F()),direction:P(L([j(`auto`),j(`ltr`),j(`rtl`)])),translations:P(R(F(),k()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:L([j(`both`),j(`yaml`),j(`json`),j(`direct`),j(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:P(v(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:v({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:v({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:v({default:!1,typeComment:`Whether to show the operationId`}),darkMode:P(v(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:P(L([j(`dark`),j(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:v({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:P(k(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:P(F(),{typeComment:`Path to a favicon image`}),hiddenClients:P(L([R(F(),L([v(),A(F())])),A(F()),j(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:P(i({targetKey:F(),clientKey:F()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:P(F(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:P(I(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:P(I(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:P(I(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:P(I(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:P(I(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:P(I(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:P(I(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:P(i({basePath:F()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:P(i({name:P(F(),{typeComment:`Display name for the MCP server`}),url:P(F(),{typeComment:`URL of the MCP server`}),disabled:P(v(),{typeComment:`When true, disables the MCP integration`})}),{typeComment:`MCP (Model Context Protocol) configuration. When provided, enables MCP integration with the given name and url.`}),generateHeadingSlug:P(I(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:P(I(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:P(I(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:P(I(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:P(I(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:P(I(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:P(I(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:v({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:v({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:v({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:v({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:v({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:v({default:!1,typeComment:`Whether to expand all nested schema properties by default. The Show/Hide Child Attributes toggle remains available so nested sections can still be collapsed manually. Warning: this can cause performance issues on big documents`}),tagsSorter:P(L([j(`alpha`),I()]),{typeComment:`Function to sort tags`}),operationsSorter:P(L([j(`alpha`),j(`method`),I()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:L([j(`alpha`),j(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:v({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),_n=`https://api.scalar.com/request-proxy`,vn=`https://proxy.scalar.com`,yn=e=>{let t=un(gn,e);return t.hideDownloadButton&&(console.warn(`[DEPRECATED] You're using the deprecated 'hideDownloadButton' attribute. Use 'documentDownloadType: 'none'' instead.`),t.documentDownloadType=`none`),t.spec?.url&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.url' attribute. Remove the spec prefix and move the 'url' attribute to the top level.`),t.url=t.spec.url,delete t.spec),t.spec?.content&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.content' attribute. Remove the spec prefix and move the 'content' attribute to the top level.`),t.content=t.spec.content,delete t.spec),t.proxy&&(console.warn(`[DEPRECATED] You're using the deprecated 'proxy' attribute. Use 'proxyUrl' instead.`),t.proxyUrl||=t.proxy,delete t.proxy),t.fetch&&(console.warn(`[DEPRECATED] You're using the deprecated 'fetch' attribute. Use 'customFetch' instead.`),t.customFetch||=t.fetch,delete t.fetch),t.proxyUrl===_n&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${_n}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${vn}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${vn}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=vn),t.showToolbar&&t.showToolbar!==`localhost`&&(console.warn(`[DEPRECATED] You're using the deprecated 'showToolbar' attribute. Use 'showDeveloperTools' instead.`),t.showDeveloperTools=t.showToolbar,delete t.showToolbar),t.modelsSectionLabel??=He,t},bn={key:0},xn={key:1},Sn={key:2},Cn={key:3},wn={key:4},Tn={key:5},En=Ht({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=n(e);return(e,n)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(r)===`bold`?(B(),H(`g`,bn,[...n[0]||=[U(`path`,{d:`M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z`},null,-1)]])):V(r)===`duotone`?(B(),H(`g`,xn,[...n[1]||=[U(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),U(`path`,{d:`M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z`},null,-1)]])):V(r)===`fill`?(B(),H(`g`,Sn,[...n[2]||=[U(`path`,{d:`M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z`},null,-1)]])):V(r)===`light`?(B(),H(`g`,Cn,[...n[3]||=[U(`path`,{d:`M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z`},null,-1)]])):V(r)===`regular`?(B(),H(`g`,wn,[...n[4]||=[U(`path`,{d:`M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z`},null,-1)]])):V(r)===`thin`?(B(),H(`g`,Tn,[...n[5]||=[U(`path`,{d:`M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z`},null,-1)]])):Yt(``,!0)],16))}}),Dn={key:0},On={key:1},kn={key:2},An={key:3},jn={key:4},Mn={key:5},Nn=Ht({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=n(e);return(e,n)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(r)===`bold`?(B(),H(`g`,Dn,[...n[0]||=[U(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z`},null,-1)]])):V(r)===`duotone`?(B(),H(`g`,On,[...n[1]||=[U(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`},null,-1),U(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):V(r)===`fill`?(B(),H(`g`,kn,[...n[2]||=[U(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z`},null,-1)]])):V(r)===`light`?(B(),H(`g`,An,[...n[3]||=[U(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`},null,-1)]])):V(r)===`regular`?(B(),H(`g`,jn,[...n[4]||=[U(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):V(r)===`thin`?(B(),H(`g`,Mn,[...n[5]||=[U(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`},null,-1)]])):Yt(``,!0)],16))}});function Pn(e){switch(e.errorType){case G.ArrayContains:return`Expected array to contain at least one matching value`;case G.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case G.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case G.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case G.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case G.ArrayUniqueItems:return`Expected array elements to be unique`;case G.Array:return`Expected array`;case G.AsyncIterator:return`Expected AsyncIterator`;case G.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case G.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case G.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case G.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case G.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case G.BigInt:return`Expected bigint`;case G.Boolean:return`Expected boolean`;case G.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case G.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case G.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case G.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case G.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case G.Date:return`Expected Date`;case G.Function:return`Expected function`;case G.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case G.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case G.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case G.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case G.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case G.Integer:return`Expected integer`;case G.IntersectUnevaluatedProperties:return`Unexpected property`;case G.Intersect:return`Expected all values to match`;case G.Iterator:return`Expected Iterator`;case G.Literal:return`Expected ${typeof e.schema.const==`string`?`'${e.schema.const}'`:e.schema.const}`;case G.Never:return`Never`;case G.Not:return`Value should not match`;case G.Null:return`Expected null`;case G.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case G.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case G.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case G.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case G.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case G.Number:return`Expected number`;case G.Object:return`Expected object`;case G.ObjectAdditionalProperties:return`Unexpected property`;case G.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case G.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case G.ObjectRequiredProperty:return`Expected required property`;case G.Promise:return`Expected Promise`;case G.RegExp:return`Expected string to match regular expression`;case G.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case G.StringFormat:return`Expected string to match '${e.schema.format}' format`;case G.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case G.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case G.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case G.String:return`Expected string`;case G.Symbol:return`Expected symbol`;case G.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case G.Tuple:return`Expected tuple`;case G.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case G.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case G.Uint8Array:return`Expected Uint8Array`;case G.Undefined:return`Expected undefined`;case G.Union:return`Expected union value`;case G.Void:return`Expected void`;case G.Kind:return`Expected kind '${e.schema[y]}'`;default:return`Unknown error type`}}var Fn=Pn;function In(){return Fn}var G;(function(e){e[e.ArrayContains=0]=`ArrayContains`,e[e.ArrayMaxContains=1]=`ArrayMaxContains`,e[e.ArrayMaxItems=2]=`ArrayMaxItems`,e[e.ArrayMinContains=3]=`ArrayMinContains`,e[e.ArrayMinItems=4]=`ArrayMinItems`,e[e.ArrayUniqueItems=5]=`ArrayUniqueItems`,e[e.Array=6]=`Array`,e[e.AsyncIterator=7]=`AsyncIterator`,e[e.BigIntExclusiveMaximum=8]=`BigIntExclusiveMaximum`,e[e.BigIntExclusiveMinimum=9]=`BigIntExclusiveMinimum`,e[e.BigIntMaximum=10]=`BigIntMaximum`,e[e.BigIntMinimum=11]=`BigIntMinimum`,e[e.BigIntMultipleOf=12]=`BigIntMultipleOf`,e[e.BigInt=13]=`BigInt`,e[e.Boolean=14]=`Boolean`,e[e.DateExclusiveMaximumTimestamp=15]=`DateExclusiveMaximumTimestamp`,e[e.DateExclusiveMinimumTimestamp=16]=`DateExclusiveMinimumTimestamp`,e[e.DateMaximumTimestamp=17]=`DateMaximumTimestamp`,e[e.DateMinimumTimestamp=18]=`DateMinimumTimestamp`,e[e.DateMultipleOfTimestamp=19]=`DateMultipleOfTimestamp`,e[e.Date=20]=`Date`,e[e.Function=21]=`Function`,e[e.IntegerExclusiveMaximum=22]=`IntegerExclusiveMaximum`,e[e.IntegerExclusiveMinimum=23]=`IntegerExclusiveMinimum`,e[e.IntegerMaximum=24]=`IntegerMaximum`,e[e.IntegerMinimum=25]=`IntegerMinimum`,e[e.IntegerMultipleOf=26]=`IntegerMultipleOf`,e[e.Integer=27]=`Integer`,e[e.IntersectUnevaluatedProperties=28]=`IntersectUnevaluatedProperties`,e[e.Intersect=29]=`Intersect`,e[e.Iterator=30]=`Iterator`,e[e.Kind=31]=`Kind`,e[e.Literal=32]=`Literal`,e[e.Never=33]=`Never`,e[e.Not=34]=`Not`,e[e.Null=35]=`Null`,e[e.NumberExclusiveMaximum=36]=`NumberExclusiveMaximum`,e[e.NumberExclusiveMinimum=37]=`NumberExclusiveMinimum`,e[e.NumberMaximum=38]=`NumberMaximum`,e[e.NumberMinimum=39]=`NumberMinimum`,e[e.NumberMultipleOf=40]=`NumberMultipleOf`,e[e.Number=41]=`Number`,e[e.ObjectAdditionalProperties=42]=`ObjectAdditionalProperties`,e[e.ObjectMaxProperties=43]=`ObjectMaxProperties`,e[e.ObjectMinProperties=44]=`ObjectMinProperties`,e[e.ObjectRequiredProperty=45]=`ObjectRequiredProperty`,e[e.Object=46]=`Object`,e[e.Promise=47]=`Promise`,e[e.RegExp=48]=`RegExp`,e[e.StringFormatUnknown=49]=`StringFormatUnknown`,e[e.StringFormat=50]=`StringFormat`,e[e.StringMaxLength=51]=`StringMaxLength`,e[e.StringMinLength=52]=`StringMinLength`,e[e.StringPattern=53]=`StringPattern`,e[e.String=54]=`String`,e[e.Symbol=55]=`Symbol`,e[e.TupleLength=56]=`TupleLength`,e[e.Tuple=57]=`Tuple`,e[e.Uint8ArrayMaxByteLength=58]=`Uint8ArrayMaxByteLength`,e[e.Uint8ArrayMinByteLength=59]=`Uint8ArrayMinByteLength`,e[e.Uint8Array=60]=`Uint8Array`,e[e.Undefined=61]=`Undefined`,e[e.Union=62]=`Union`,e[e.Void=63]=`Void`})(G||={});var Ln=class extends ye{constructor(e){super(`Unknown type`),this.schema=e}};function Rn(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var zn=class{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){let e=this.iterator.next();return e.done?void 0:e.value}};function q(e,t,n,r,i=[]){return{type:e,schema:t,path:n,value:r,message:In()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*Bn(e,t,n,r){}function*Vn(e,t,n,r){}function*Hn(e,t,n,r){if(!_(r))return yield q(G.Array,e,n,r);K(e.minItems)&&!(r.length>=e.minItems)&&(yield q(G.ArrayMinItems,e,n,r)),K(e.maxItems)&&!(r.length<=e.maxItems)&&(yield q(G.ArrayMaxItems,e,n,r));for(let i=0;i<r.length;i++)yield*J(e.items,t,`${n}/${i}`,r[i]);if(e.uniqueItems===!0&&!(function(){let e=new Set;for(let t of r){let n=de(t);if(e.has(n))return!1;e.add(n)}return!0})()&&(yield q(G.ArrayUniqueItems,e,n,r)),!(K(e.contains)||K(e.minContains)||K(e.maxContains)))return;let i=K(e.contains)?e.contains:ce(),a=r.reduce((e,r,a)=>J(i,t,`${n}${a}`,r).next().done===!0?e+1:e,0);a===0&&(yield q(G.ArrayContains,e,n,r)),Ke(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),Ke(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*Un(e,t,n,r){oe(r)||(yield q(G.AsyncIterator,e,n,r))}function*Wn(e,t,n,r){if(!gt(r))return yield q(G.BigInt,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.BigIntExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.BigIntExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.BigIntMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.BigIntMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==BigInt(0)&&(yield q(G.BigIntMultipleOf,e,n,r))}function*Gn(e,t,n,r){re(r)||(yield q(G.Boolean,e,n,r))}function*Kn(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*qn(e,t,n,r){if(!je(r))return yield q(G.Date,e,n,r);K(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)&&(yield q(G.DateExclusiveMaximumTimestamp,e,n,r)),K(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)&&(yield q(G.DateExclusiveMinimumTimestamp,e,n,r)),K(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)&&(yield q(G.DateMaximumTimestamp,e,n,r)),K(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)&&(yield q(G.DateMinimumTimestamp,e,n,r)),K(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0&&(yield q(G.DateMultipleOfTimestamp,e,n,r))}function*Jn(e,t,n,r){De(r)||(yield q(G.Function,e,n,r))}function*Yn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*Xn(e,t,n,r){if(!Pe(r))return yield q(G.Integer,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.IntegerExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.IntegerExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.IntegerMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.IntegerMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.IntegerMultipleOf,e,n,r))}function*Zn(e,t,n,r){let i=!1;for(let a of e.allOf)for(let e of J(a,t,n,r))i=!0,yield e;if(i)return yield q(G.Intersect,e,n,r);if(e.unevaluatedProperties===!1){let t=new RegExp(b(e));for(let i of Object.getOwnPropertyNames(r))t.test(i)||(yield q(G.IntersectUnevaluatedProperties,e,`${n}/${i}`,r))}if(typeof e.unevaluatedProperties==`object`){let i=new RegExp(b(e));for(let a of Object.getOwnPropertyNames(r))if(!i.test(a)){let i=J(e.unevaluatedProperties,t,`${n}/${a}`,r[a]).next();i.done||(yield i.value)}}}function*Qn(e,t,n,r){pe(r)||(yield q(G.Iterator,e,n,r))}function*$n(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*er(e,t,n,r){yield q(G.Never,e,n,r)}function*tr(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*nr(e,t,n,i){r(i)||(yield q(G.Null,e,n,i))}function*rr(e,t,n,r){if(!Te.IsNumberLike(r))return yield q(G.Number,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.NumberExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.NumberExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.NumberMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.NumberMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.NumberMultipleOf,e,n,r))}function*ir(e,t,n,r){if(!Te.IsObjectLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.ObjectMaxProperties,e,n,r));let i=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),o=Object.getOwnPropertyNames(r);for(let t of i)o.includes(t)||(yield q(G.ObjectRequiredProperty,e.properties[t],`${n}/${Rn(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${Rn(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${Rn(i)}`,r[i]),h(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${Rn(i)}`,void 0))):Te.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${Rn(i)}`,r[i]))}}function*ar(e,t,n,r){xt(r)||(yield q(G.Promise,e,n,r))}function*or(e,t,n,r){if(!Te.IsRecordLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.ObjectMaxProperties,e,n,r));let[i,a]=Object.entries(e.patternProperties)[0],o=new RegExp(i);for(let[e,i]of Object.entries(r))o.test(e)&&(yield*J(a,t,`${n}/${Rn(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(i)}`,a));if(e.additionalProperties===!1){for(let[t,i]of Object.entries(r))if(!o.test(t))return yield q(G.ObjectAdditionalProperties,e,`${n}/${Rn(t)}`,i)}}function*sr(e,t,n,r){yield*J(E(e,t),t,n,r)}function*cr(e,t,n,r){if(!ut(r))return yield q(G.String,e,n,r);if(K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),!new RegExp(e.source,e.flags).test(r))return yield q(G.RegExp,e,n,r)}function*lr(e,t,n,r){if(!ut(r))return yield q(G.String,e,n,r);K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),ut(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),ut(e.format)&&(Se(e.format)?s(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*ur(e,t,n,r){vt(r)||(yield q(G.Symbol,e,n,r))}function*dr(e,t,n,r){if(!ut(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*fr(e,t,n,r){yield*J(E(e,t),t,n,r)}function*pr(e,t,n,r){if(!_(r))return yield q(G.Tuple,e,n,r);if(e.items===void 0&&r.length!==0||r.length!==e.maxItems)return yield q(G.TupleLength,e,n,r);if(e.items)for(let i=0;i<e.items.length;i++)yield*J(e.items[i],t,`${n}/${i}`,r[i])}function*mr(e,t,n,r){Be(r)||(yield q(G.Undefined,e,n,r))}function*hr(e,t,n,r){if(it(e,t,r))return;let i=e.anyOf.map(e=>new zn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*gr(e,t,n,r){if(!tt(r))return yield q(G.Uint8Array,e,n,r);K(e.maxByteLength)&&!(r.length<=e.maxByteLength)&&(yield q(G.Uint8ArrayMaxByteLength,e,n,r)),K(e.minByteLength)&&!(r.length>=e.minByteLength)&&(yield q(G.Uint8ArrayMinByteLength,e,n,r))}function*_r(e,t,n,r){}function*vr(e,t,n,r){Te.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*yr(e,t,n,r){he(e[y])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[y]){case`Any`:return yield*Bn(a,i,n,r);case`Argument`:return yield*Vn(a,i,n,r);case`Array`:return yield*Hn(a,i,n,r);case`AsyncIterator`:return yield*Un(a,i,n,r);case`BigInt`:return yield*Wn(a,i,n,r);case`Boolean`:return yield*Gn(a,i,n,r);case`Constructor`:return yield*Kn(a,i,n,r);case`Date`:return yield*qn(a,i,n,r);case`Function`:return yield*Jn(a,i,n,r);case`Import`:return yield*Yn(a,i,n,r);case`Integer`:return yield*Xn(a,i,n,r);case`Intersect`:return yield*Zn(a,i,n,r);case`Iterator`:return yield*Qn(a,i,n,r);case`Literal`:return yield*$n(a,i,n,r);case`Never`:return yield*er(a,i,n,r);case`Not`:return yield*tr(a,i,n,r);case`Null`:return yield*nr(a,i,n,r);case`Number`:return yield*rr(a,i,n,r);case`Object`:return yield*ir(a,i,n,r);case`Promise`:return yield*ar(a,i,n,r);case`Record`:return yield*or(a,i,n,r);case`Ref`:return yield*sr(a,i,n,r);case`RegExp`:return yield*cr(a,i,n,r);case`String`:return yield*lr(a,i,n,r);case`Symbol`:return yield*ur(a,i,n,r);case`TemplateLiteral`:return yield*dr(a,i,n,r);case`This`:return yield*fr(a,i,n,r);case`Tuple`:return yield*pr(a,i,n,r);case`Undefined`:return yield*mr(a,i,n,r);case`Union`:return yield*hr(a,i,n,r);case`Uint8Array`:return yield*gr(a,i,n,r);case`Unknown`:return yield*_r(a,i,n,r);case`Void`:return yield*vr(a,i,n,r);default:if(!jt(a[y]))throw new Ln(e);return yield*yr(a,i,n,r)}}function br(...e){return new zn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var xr=Symbol(),Sr=()=>It(xr,!1),Cr=()=>{Ut(xr,!0)},wr=Ht({inheritAttrs:!1,__name:`ScalarFormInput`,props:{is:{default:`button`}},setup(e){let{cx:t}=p(),n=Sr(),r=d({base:[`bg-b-1.5 flex items-center text-c-2 gap-0.75 p-3 text-base`,`outline-offset-[-1px] has-[:focus-visible]:outline`],variants:{grouped:{true:`first:rounded-t-[inherit] last:rounded-b-[inherit]`,false:`rounded shadow-border`},button:{true:`cursor-pointer hover:bg-b-2`}}});return(i,a)=>(B(),qt(Rt(e.is),Pt({type:e.is===`button`?`button`:void 0},V(t)(V(r)({button:e.is===`button`,grouped:V(n)}))),{default:Gt(()=>[zt(i.$slots,`default`)]),_:3},16,[`type`]))}});function Tr(e,t,n){let r=new Map;t.forEach((e,t)=>r.set(e,t));let i=[],a=[];return e.forEach(e=>{let t=r.get(n(e));if(t===void 0){a.push(e);return}i[t]=e}),[...i.filter(e=>e!==void 0),...a]}var Y=({tagsMap:e,name:t,documentId:n,generateId:r})=>(e.get(t)||e.set(t,{id:r({type:`tag`,tag:{name:t},parentId:n}),parentId:n,entries:[],tag:{name:t}}),e.get(t));function Er(e){return e.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*{3}|_{3})(.+?)\1/g,`$2`).replace(/(\*{2}|_{2})(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/<[^>]+>/g,``).replace(/[<>]/g,``).trim()}function Dr(e){let t=e.split(/\r?\n/),n=[],r=!1,i=``,a=0;for(let e=0;e<t.length;e++){let o=t[e]??``,s=o.trimStart();if(r){let e=/^(`{3,}|~{3,})\s*$/.exec(s)?.[1];e&&e[0]===i&&e.length>=a&&(r=!1);continue}else{let e=/^(`{3,}|~{3,})/.exec(s)?.[1];if(e){r=!0,i=e.charAt(0),a=e.length;continue}}if(/^(?: {4}|\t)/.test(o))continue;let c=/^(#{1,6})\s+(.+?)(?:\s+#+\s*)?$/.exec(s),l=c?.[1],u=c?.[2];if(l&&u){let e=Er(u);e&&n.push({depth:l.length,value:e});continue}let d=t[e+1];if(!d||/^(?: {4}|\t)/.test(d))continue;let f=/^(=+|-+)\s*$/.exec(d.trim())?.[1];if(!f)continue;let p=Er(s);p&&(n.push({depth:f[0]===`=`?1:2,value:p}),e++)}return n}var Or=(e={})=>{let t=new Map;return{slug(n){let r=ht(n,e),i=t.get(r);if(i===void 0)return t.set(r,0),r;let a=i+1;return t.set(r,a),`${r}-${a}`},reset(){t.clear()}}},kr=(e,t)=>e.map(e=>({...e,slug:t(e.value)}));function Ar(e){let{slug:t}=Or();return kr(Dr(e),t)}var jr=e=>{let t=Math.min(...e.map(e=>e.depth));return t>=1&&t<=6?t:1},Mr={TITLE:`Introduction`,SLUG:`introduction`},Nr=(e,t,n)=>({id:e({type:`text`,depth:1,slug:Mr.SLUG,parentId:t,info:n,value:Mr.TITLE}),title:Mr.TITLE,type:`text`}),Pr=({generateId:e,parentId:t,info:n})=>{let r=n.description?.trim();if(!r)return[Nr(e,t,n)];let i=Ar(r),a=jr(i),o=[],s=null,c=null;if(!r.startsWith(`#`)){let r=Nr(e,t,n);o.push(r),s=r}for(let r of i){if(r.depth!==a&&r.depth!==a+1)continue;let i={id:e({type:`text`,depth:r.depth,slug:r.slug,parentId:t,info:n,value:r.value}),title:r.value,type:`text`};r.depth===a?(i.children=[],s?(s.children||=[],s.children.push(i)):o.push(i),c=i):c&&c.children?.push(i)}return o},Fr=({ref:e,name:t,generateId:n,parentTag:r,_schema:i,parentId:a})=>{let o=n({name:t,type:`model`,parentTag:r,parentId:a,schema:i}),s=l(i);return{id:o,title:s&&`title`in s&&s.title||t,name:t,ref:e,type:`model`}},Ir=({document:e,tagsMap:t,generateId:n,documentId:r})=>{let i=e.components?.schemas??{},a=[];for(let e in i){if(!Object.hasOwn(i,e))continue;let o=l(i[e],Et);if(x(o))continue;let s=`#/components/schemas/${e}`;o?.[`x-tags`]?o[`x-tags`].forEach(i=>{let{tag:a,id:o}=Y({tagsMap:t,name:i,documentId:r,generateId:n});t.get(i)?.entries.push(Fr({ref:s,name:e,generateId:n,parentTag:{tag:a,id:o},parentId:r}))}):a.push(Fr({ref:s,name:e,generateId:n,_schema:l(i[e]),parentId:r}))}return a},Lr=(...e)=>{for(let t of e){let e=t?.trim();if(e)return e}},Rr=(e,t)=>typeof t.address==`string`&&t.address.length>0?t.address:e,zr=(e,t)=>Lr(e.title,e.summary)??Rr(t,e),Br=(e,t)=>Lr(e.title,e.summary)??t,Vr=(e,t)=>Lr(e.title,e.summary,e.name)??t,Hr=e=>e.match(/^#\/channels\/([^/]+)$/)?.[1],Ur=(e,t)=>{let n=t.channel;if(!n||!(`$ref`in n))return;let r=Hr(n.$ref);if(!r)return;let i=e.channels?.[r];if(i)return{channelName:r,channel:l(i,Et)}},Wr=(e,t,n)=>{let r=t.messages??{};if(e.messages===void 0)return g(r);if(e.messages.length===0)return[];let i=`#/channels/${n}/messages/`,a=new Set;for(let t of e.messages)if(`$ref`in t){if(t.$ref.startsWith(i)){let e=t.$ref.slice(i.length);if(r[e]){a.add(e);continue}}for(let[e,n]of Object.entries(r))n&&`$ref`in n&&n.$ref===t.$ref&&a.add(e)}return[...a]},Gr=e=>{let t=l(e,Et);return{name:t.name,description:t.description}},Kr=(e,t)=>{if(t===`alpha`){e.sort((e,t)=>e.title.localeCompare(t.title));return}if(t===`method`){e.sort((e,t)=>e.action.localeCompare(t.action));return}typeof t==`function`&&e.sort((e,n)=>t({method:e.action,path:e.operationName,ref:e.operationName,httpVerb:e.action},{method:n.action,path:n.operationName,ref:n.operationName,httpVerb:n.action}))},qr=e=>{e.sort((e,t)=>e.title.localeCompare(t.title))},Jr=({channelName:e,channel:t,operationId:n,messageNames:r,generateId:i})=>{let a=r.flatMap(r=>{let a=t.messages?.[r];if(!a)return[];let o=l(a,Et);return x(o)?[]:[{type:`asyncapi-message`,id:i({type:`asyncapi-message`,messageName:r,channelName:e,parentId:n}),title:Vr(o,r),messageName:r,channelName:e}]});return qr(a),a},Yr=({operationName:e,operation:t,channel:n,channelName:r,channelAddress:i,generateId:a,parentId:o})=>{if(x(t))return;let s=a({type:`asyncapi-operation`,operationName:e,parentId:o}),c=Jr({channelName:r,channel:n,operationId:s,messageNames:Wr(t,n,r),generateId:a});return{type:`asyncapi-operation`,id:s,title:Br(t,e),operationName:e,action:t.action,channelName:r,channelAddress:i,children:c.length>0?c:void 0}},Xr=({bucket:e,operationEntries:t,generateId:n,parentId:r,parentTag:i,operationsSorter:a,document:o})=>{if(x(e.channel))return;let s=n({type:`asyncapi-channel`,channelName:e.channelName,parentId:r,parentTag:i}),c=t.flatMap(({operationName:t,operation:r})=>{let i=Yr({operationName:t,operation:r,channel:e.channel,channelName:e.channelName,channelAddress:e.channelAddress,generateId:n,parentId:s});return i?[i]:[]});if(Kr(c,a),c.length===0)return;let l=o.channels?.[e.channelName];return l&&!(`$ref`in l)&&(l[`x-scalar-order`]=c.map(e=>e.id)),{type:`asyncapi-channel`,id:s,title:zr(e.channel,e.channelName),channelName:e.channelName,channelAddress:e.channelAddress,children:c}},Zr=({tag:e,generateId:t,children:n,parentId:r})=>{let i=t({type:`tag`,tag:e,parentId:r,isGroup:!1}),a=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{type:`tag`,id:i,title:a,name:e.name||a,description:e.description,children:n,isGroup:!1,isWebhooks:!1}},Qr=({tagKeys:e,tagsMap:t,documentId:n,options:{tagsSorter:r,generateId:i},sortOrder:a})=>{let o=e.flatMap(e=>{let{tag:r,entries:a}=Y({tagsMap:t,name:e,documentId:n,generateId:i});if(x(r))return[];let o=r[`x-scalar-order`];return Zr({tag:r,generateId:i,children:o?Tr(a,o,e=>e.id):a,parentId:n})});return a?Tr(o,a,e=>e.id):(r===`alpha`?o.sort((e,t)=>e.title.localeCompare(t.title)):typeof r==`function`&&o.sort((e,a)=>r(Y({tagsMap:t,name:e.name,documentId:n,generateId:i}).tag,Y({tagsMap:t,name:a.name,documentId:n,generateId:i}).tag)),o)},$r=(e,t,n)=>{let r=e.get(t);if(r)return r;let i={channelName:t,channel:n,channelAddress:Rr(t,n),channelTags:n.tags?.map(Gr)??[],operations:[]};return e.set(t,i),i},ei=e=>{let t=new Map;for(let[n,r]of Object.entries(e.channels??{})){if(!r)continue;let e=l(r,Et);x(e)||$r(t,n,e)}for(let[n,r]of Object.entries(e.operations??{})){if(!r)continue;let i=l(r,Et);if(x(i))continue;let a=Ur(e,i);a&&$r(t,a.channelName,a.channel).operations.push({operationName:n,operation:i})}return t},ti=(e,t,n)=>{let{generateId:r,operationsSorter:i,tagsSorter:a,hideModels:o,modelsSectionLabel:s}=ae(e,n),c=r({type:`document`,info:t.info,name:e}),u=ei(t),d=new Map,f=[];for(let e of u.values()){if(e.channelTags.length===0){let n=Xr({bucket:e,operationEntries:e.operations,generateId:r,parentId:c,operationsSorter:i,document:t});n&&f.push(n)}for(let n of e.channelTags){let{id:a,entries:o}=Y({tagsMap:d,name:n.name??`Untitled Tag`,documentId:c,generateId:r});if(o.some(t=>t.type===`asyncapi-channel`&&t.channelName===e.channelName))continue;let s=Xr({bucket:e,operationEntries:e.operations,generateId:r,parentId:a,parentTag:{tag:n,id:a},operationsSorter:i,document:t});s&&o.push(s)}}let p=t.components?l(t.components,Et):void 0,m=!o&&p?.schemas?Ir({documentId:c,document:{components:p},generateId:r,tagsMap:d}):[],h=Pr({generateId:r,parentId:c,info:t.info});d.size>0&&h.push(...Qr({tagKeys:[...d.keys()],tagsMap:d,documentId:c,options:{tagsSorter:a,generateId:r},sortOrder:t[`x-scalar-order`]})),i===`alpha`&&f.sort((e,t)=>e.title.localeCompare(t.title)),h.push(...f),m.length&&h.push({type:`models`,id:r({type:`model`,parentId:c}),title:s,name:s,children:m});let g=t[`x-scalar-order`],_=g?Tr(h,g,e=>e.id):h;return t[`x-scalar-order`]=N(_.map(e=>e.id)),{id:c,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:_,icon:t[`x-scalar-icon`]}};function ni(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}var ri=e=>{let t=new Set(e[`x-draft-examples`]??[]);if(e.requestBody){let n=l(e.requestBody);Object.values(n.content??{}).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})})}return e.parameters&&e.parameters.forEach(e=>{let n=l(e)??{};`content`in n&&n.content&&Object.values(n.content).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})}),`examples`in n&&n.examples&&Object.keys(n.examples??{}).forEach(e=>{t.add(e)})}),Array.from(t)},ii=e=>e.deprecated||e[`x-scalar-stability`]===_t.Deprecated,ai=({ref:e,operation:t,method:n,path:r,generateId:i,parentId:a,parentTag:o,operationTitleSource:s})=>{let c=i({type:`operation`,operation:t,parentTag:o,method:n,path:r,parentId:a}),l=s===`path`?r:t.summary?.trim()?t.summary:r,u=ii(t),d=ri(t).map(e=>({type:`example`,id:i({type:`example`,parentId:c,name:e}),title:e,name:e}));return{id:c,title:l,path:r,method:n,ref:e,type:`operation`,isDeprecated:u,children:d.length?d:void 0}},oi=({document:e,tagsMap:t,generateId:n,documentId:r,operationTitleSource:i})=>{let a=[];return Object.entries(e.paths??{}).forEach(([e,o])=>{Mt(o,(o,s)=>{let c=l(s,Et);if(!c||x(c))return;let u=`#/paths/${ni(e)}/${o}`;c.tags?.length?c.tags.forEach(a=>{let{tag:s,id:l}=Y({tagsMap:t,name:a,documentId:r,generateId:n});t.get(a)?.entries.push(ai({ref:u,operation:c,method:o,path:e,parentTag:{tag:s,id:l},generateId:n,parentId:l,operationTitleSource:i}))}):a.push(ai({ref:u,operation:c,method:o,path:e,generateId:n,parentId:r,operationTitleSource:i}))})}),{untaggedOperations:a}},si=e=>e?Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(`x-`))):{},ci=({tag:e,generateId:t,children:n,isGroup:r=!1,parentId:i})=>{let a=t({type:`tag`,tag:e,parentId:i,isGroup:r}),o=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{id:a,title:o,name:e.name||o,description:e.description,children:n,isGroup:r,isWebhooks:!1,type:`tag`,xKeys:si(N(e))}},li=({_keys:e,tagsMap:t,options:{tagsSorter:n,operationsSorter:r,generateId:i},documentId:a,sortOrder:o})=>{let s=e.flatMap(e=>{let{tag:n,entries:o}=Y({tagsMap:t,name:e,documentId:a,generateId:i});if(x(n))return[];let s=n[`x-scalar-order`];return s===void 0&&(r===`alpha`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.title.localeCompare(t.title):0):r===`method`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.method.localeCompare(t.method):0):typeof r==`function`&&o.sort((e,t)=>{if(!(e.type===`operation`||e.type===`webhook`)||!(t.type===`operation`||t.type===`webhook`))return 0;let n=e.type===`operation`?e.path:e.name,i=t.type===`operation`?t.path:t.name;return r({method:e.method,path:n,ref:e.ref,httpVerb:e.method},{method:t.method,path:i,ref:t.ref,httpVerb:t.method})})),ci({tag:n,generateId:i,children:s?Tr(o,s,e=>e.id):o,parentId:a,isGroup:!1})});return o?Tr(s,o,e=>e.id):(n===`alpha`?s.sort((e,n)=>{let r=Y({tagsMap:t,name:e.title,documentId:a,generateId:i}).tag[`x-displayName`]||e.title||`Untitled Tag`,o=Y({tagsMap:t,name:n.title,documentId:a,generateId:i}).tag[`x-displayName`]||n.title||`Untitled Tag`;return r.localeCompare(o)}):typeof n==`function`&&s.sort((e,r)=>n(Y({tagsMap:t,name:e.name,documentId:a,generateId:i}).tag,Y({tagsMap:t,name:r.name,documentId:a,generateId:i}).tag)),s)},ui=({document:e,tagsMap:t,documentId:n,options:{generateId:r,tagsSorter:i,operationsSorter:a}})=>e[`x-tagGroups`]?e[`x-tagGroups`].flatMap(e=>{let o=li({_keys:e.tags,tagsMap:t,options:{tagsSorter:i,operationsSorter:a,generateId:r},documentId:n,sortOrder:e[`x-scalar-order`]});return e[`x-scalar-order`]=o.map(e=>e.id),o.length?ci({tag:e,generateId:r,children:o,parentId:n,isGroup:!0}):[]}):li({_keys:Array.from(t.keys()),tagsMap:t,options:{generateId:r,tagsSorter:i,operationsSorter:a},documentId:n,sortOrder:e[`x-scalar-order`]}),di=({ref:e,method:t,name:n,title:r,generateId:i,parentTag:a,webhook:o,isDeprecated:s,parentId:c})=>({id:i({type:`webhook`,name:n,method:t,webhook:o,parentTag:a,parentId:c}),title:r,name:n,ref:e,method:t,type:`webhook`,isDeprecated:s}),fi=({document:e,tagsMap:t,generateId:n,untaggedWebhooksParentId:r,documentId:i})=>{let a=[];return Object.entries(e.webhooks??{}).forEach(([e,o])=>{Mt(o,(o,s)=>{let c=l(s,Et);if(!c||x(c))return;let u=`#/webhooks/${e}/${o}`;c.tags?.length?c.tags.forEach(r=>{let{tag:a,id:s}=Y({tagsMap:t,name:r,documentId:i,generateId:n});t.get(r)?.entries.push(di({ref:u,method:o,name:e,title:c.summary??e,webhook:c,generateId:n,parentTag:{tag:a,id:s},parentId:s,isDeprecated:ii(c)}))}):a.push(di({ref:u,method:o,name:e,title:c.summary??e,generateId:n,isDeprecated:ii(c),webhook:c,parentId:r}))})}),a},pi=(e,t,n)=>{let{hideModels:r,modelsSectionLabel:i,tagsSorter:a,operationsSorter:o,generateId:s,operationTitleSource:c}=ae(e,n),l=s({type:`document`,info:t.info,name:e}),u=new Map(t.tags?.map(e=>[e.name??`Untitled Tag`,{id:s({type:`tag`,tag:e,parentId:l}),parentId:l,tag:e,entries:[]}])??[]),d=Pr({generateId:s,parentId:l,info:t.info}),{untaggedOperations:f}=oi({document:t,tagsMap:u,generateId:s,documentId:l,operationTitleSource:c}),p=s({type:`webhook`,name:``,parentId:l}),m=fi({document:t,generateId:s,tagsMap:u,untaggedWebhooksParentId:p,documentId:l}),h=ui({document:t,tagsMap:u,documentId:l,options:{tagsSorter:a,operationsSorter:o,generateId:s}});if(d.push(...h),d.push(...f),m.length&&d.push({type:`tag`,id:p,title:`Webhooks`,name:`Webhooks`,children:m,isGroup:!1,isWebhooks:!0}),!r&&t.components?.schemas){let e=Ir({documentId:l,document:t,generateId:s,tagsMap:u});e.length&&d.push({type:`models`,id:s({type:`model`,parentId:l}),title:i,name:i,children:e})}let g=t[`x-scalar-order`];return g&&d.sort((e,t)=>{let n=g.indexOf(e.id),r=g.indexOf(t.id);return(n===-1?1/0:n)-(r===-1?1/0:r)}),t[`x-scalar-order`]=N(d.map(e=>e.id)),{id:l,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:d,icon:t[`x-scalar-icon`]}};function mi(e){return e.startsWith(`#`)}var hi=(e,t)=>{Object.assign(e,t)},gi=({hooks:e}={})=>{let t=$t({});return{clearAuthSelectedSchemas:n=>{let r=t[n.documentName];if(!r)return;if(n.type===`document`){delete r.selected.document,e?.onAuthChange?.(n.documentName);return}Oe(n.method),Oe(n.path);let i=r.selected.path?.[n.path];i&&(delete i[n.method],e?.onAuthChange?.(n.documentName))},getAuthSecrets:(e,n)=>t[e]?.secrets?.[n],setAuthSecrets:(n,r,i)=>{t[n]||={secrets:{},selected:{document:void 0,path:void 0}},t[n].secrets[r]=o(Le,i),e?.onAuthChange?.(n)},clearAuthSecrets:(n,r)=>{delete t[n]?.secrets?.[r],e?.onAuthChange?.(n)},getAuthSelectedSchemas:e=>e.type===`document`?t[e.documentName]?.selected?.document:t[e.documentName]?.selected?.path?.[e.path]?.[e.method],setAuthSelectedSchemas:(n,r)=>{t[n.documentName]||={secrets:{},selected:{document:void 0,path:void 0}};let i=t[n.documentName];if(n.type===`document`)i.selected.document=r;else{Oe(n.path),Oe(n.method),i.selected.path||={},i.selected.path[n.path]||={};let e=i.selected.path[n.path];e[n.method]=r}e?.onAuthChange?.(n.documentName)},clearDocumentAuth:n=>{delete t[n],e?.onAuthChange?.(n)},load:n=>{hi(t,o(Ze,n)),Object.keys(n).forEach(t=>{e?.onAuthChange?.(t)})},export:()=>N(t)}},_i=f(Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleIcon`,props:{is:{default:`button`},mode:{default:`light`}},setup(e){let{cx:t}=p(),n=Qt(()=>e.mode===`dark`?`Set light mode`:`Set dark mode`);return(r,i)=>(B(),qt(Rt(e.is),Pt({"aria-label":n.value,class:`toggle-icon-${e.mode}`,type:e.is===`button`?`button`:void 0},V(t)(`size-3 flex items-center justify-center text-c-1`)),{default:Gt(()=>[...i[0]||=[U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-ellipse`},[U(`span`,{class:`toggle-icon-moon-mask`})],-1)]]),_:1},16,[`aria-label`,`class`,`type`]))}}),[[`__scopeId`,`data-v-60be8692`]]),vi=[`aria-pressed`],yi=Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleButton`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let{cx:t}=p(),n=Bt(e,`modelValue`);return(e,r)=>(B(),H(`button`,Pt({"aria-pressed":n.value,type:`button`},V(t)(`group/toggle flex h-6 w-[38px] brightness-lifted -mx-px items-center py-1.5 -my-1.5 relative outline-none`),{onClick:r[0]||=e=>n.value=!n.value}),[r[1]||=U(`div`,{class:`h-3 w-full bg-border mx-px rounded-xl group-focus-visible/toggle:outline -outline-offset-1`},null,-1),U(`div`,{class:Lt([`size-[23px] left-border absolute border rounded-full flex items-center justify-center bg-b-1 group-focus-visible/toggle:outline -outline-offset-1 transition-transform duration-300 ease-in-out`,{"translate-x-[14px]":n.value}])},[Kt(_i,{is:`div`,mode:n.value?`dark`:`light`},null,8,[`mode`])],2)],16,vi))}}),bi=Xt(`dark`),xi=Xt(`light`),Si=L([j(`system`),j(`dark`),j(`light`)]);function Ci(e={}){let{initialColorMode:t=`system`,overrideColorMode:n}=e;function r(){bi.value=o.value===`dark`?`light`:`dark`,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,bi.value)}function i(e){bi.value=e,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,bi.value)}function a(){return typeof window>`u`?`light`:typeof window?.matchMedia==`function`?window?.matchMedia(`(prefers-color-scheme: dark)`)?.matches?`dark`:`light`:`dark`}let o=Qt({get:()=>bi.value===`system`?xi.value:bi.value,set:i}),s=Qt({get:()=>o.value===`dark`,set:e=>i(e?`dark`:`light`)});function c(){typeof document>`u`||typeof window>`u`||((n??(bi.value===`system`?xi.value:bi.value))===`dark`?(document.body.classList.add(`dark-mode`),document.body.classList.remove(`light-mode`)):(document.body.classList.add(`light-mode`),document.body.classList.remove(`dark-mode`)))}let l=typeof window>`u`?`system`:window?.localStorage?.getItem(`colorMode`),u=rn(Si,l)?l:null;bi.value=n??u??t,tn([bi,xi],c,{immediate:!0});let d=()=>{xi.value=a()},f=Xt(null);return Vt(()=>{xi.value=a(),typeof window<`u`&&typeof window?.matchMedia==`function`&&(f.value=window.matchMedia(`(prefers-color-scheme: dark)`),f.value?.addEventListener(`change`,d))}),Ft(()=>{f.value?.removeEventListener(`change`,d)}),{colorMode:Qt({get:()=>bi.value,set:i}),darkLightMode:o,isDarkMode:s,toggleColorMode:r,setColorMode:i,getSystemModePreference:a}}var wi=Ht({__name:`ScalarColorModeToggle`,props:{variant:{default:`switch`}},setup(e){let{isDarkMode:t,toggleColorMode:n,darkLightMode:r}=Ci(),i=Qt(()=>t.value?`Set light mode`:`Set dark mode`);return(a,o)=>e.variant===`switch`?(B(),qt(yi,{key:0,modelValue:V(t),"onUpdate:modelValue":o[0]||=e=>Jt(t)?t.value=e:null,"aria-label":i.value},null,8,[`modelValue`,`aria-label`])):(B(),qt(_i,{key:1,"aria-label":i.value,mode:V(r),onClick:V(n)},null,8,[`aria-label`,`mode`,`onClick`]))}}),Ti=class{data;next;constructor(e){this.data=e,this.next=null}},Ei=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new Ti(e);this.isEmpty()||!this.rear?(this.front=t,this.rear=t):(this.rear.next=t,this.rear=t),this.size++}dequeue(){if(this.isEmpty()||!this.front)return null;let e=this.front;return this.front=this.front.next,this.front===null&&(this.rear=null),this.size--,e.data}peek(){return this.isEmpty()||!this.front?null:this.front.data}isEmpty(){return this.size===0}getSize(){return this.size}toString(){let e=this.front,t=[];for(;e;)t.push(e.data),e=e.next;return t.join(` -> `)}},Di=`2.6.0`,Oi=`/`;function ki(e){let t=e;return!z(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`1.`)?t:(t.asyncapi=Di,Ai(t),Mi(t),Pi(t),Fi(t),t)}function Ai(e){if(!Array.isArray(e.servers))return;let t={},n=new Set;for(let[r,i]of e.servers.entries()){if(!z(i))continue;let e={};for(let[t,n]of Object.entries(i))t===`scheme`?e.protocol=n:t===`schemeVersion`?e.protocolVersion=n:e[t]=n;let a=ji(typeof i.description==`string`?i.description:``,r,n);n.add(a),t[a]=e}e.servers=t}function ji(e,t,n){let r=ht(e)||`server-${t}`;if(!n.has(r))return r;let i=2;for(;n.has(`${r}-${i}`);)i+=1;return`${r}-${i}`}function Mi(e){if(!z(e.topics)){typeof e.baseTopic==`string`&&delete e.baseTopic;return}let t=typeof e.baseTopic==`string`?e.baseTopic:``,n={};for(let[r,i]of Object.entries(e.topics)){if(!z(i))continue;let e=t?`${t}.${r}`:r,a={};for(let[e,t]of Object.entries(i))if(e===`parameters`){let e=Ni(t);e&&(a.parameters=e)}else e===`publish`||e===`subscribe`?a[e]={message:t}:a[e]=t;n[e]=a}e.channels=n,delete e.topics,delete e.baseTopic}function Ni(e){if(!Array.isArray(e))return;let t={};for(let n of e){if(!z(n))continue;if(typeof n.$ref==`string`){let e=n.$ref.split(`/`).pop()??``;e&&(t[e]={$ref:n.$ref});continue}if(typeof n.name!=`string`)continue;let{name:e,...r}=n;t[e]=r}return t}function Pi(e){if(!z(e.stream))return;let t={};Array.isArray(e.stream.read)&&(t.subscribe={message:{oneOf:e.stream.read}}),Array.isArray(e.stream.write)&&(t.publish={message:{oneOf:e.stream.write}});let n=z(e.channels)?e.channels:{};n[Oi]=t,e.channels=n,delete e.stream}function Fi(e){if(!z(e.events))return;let t={};Array.isArray(e.events.receive)&&(t.subscribe={message:{oneOf:e.events.receive}}),Array.isArray(e.events.send)&&(t.publish={message:{oneOf:e.events.send}});let n=z(e.channels)?e.channels:{};n[Oi]=t,e.channels=n,delete e.events}var Ii=`3.0.0`;function Li(e){let t=e;return!z(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`2.`)?t:(t.asyncapi=Ii,Ui(t),Ri(t),Wi(t),t)}function Ri(e){if(!z(e.servers))return;let t=Hi(e);for(let n of Object.values(e.servers))if(z(n)){if(typeof n.url==`string`){let{host:e,pathname:t}=zi(n.url);n.host=e,t&&(n.pathname=t),delete n.url}Array.isArray(n.security)&&(n.security=Bi(n.security,t))}}function zi(e){let t=e.match(/^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\/(.*)$/),n=t?t[1]:e,r=n.indexOf(`/`);return r===-1?{host:n,pathname:``}:{host:n.slice(0,r),pathname:n.slice(r)}}function Bi(e,t){return e.map(e=>Vi(e,t)).filter(e=>e!==void 0)}function Vi(e,t){if(!z(e))return;let[n]=Object.entries(e);if(!n)return;let[r,i]=n,a=t[r];return z(a)&&a.type===`oauth2`&&Array.isArray(i)?{...a,scopes:i}:{$ref:`#/components/securitySchemes/${r}`}}function Hi(e){if(!z(e.components)||!z(e.components.securitySchemes))return{};let t={};for(let[n,r]of Object.entries(e.components.securitySchemes))z(r)&&(t[n]=r);return t}function Ui(e){if(!(!z(e.components)||!z(e.components.securitySchemes))){for(let t of Object.values(e.components.securitySchemes))if(!(!z(t)||t.type!==`oauth2`||!z(t.flows)))for(let e of Object.values(t.flows))z(e)&&`scopes`in e&&(e.availableScopes=e.scopes,delete e.scopes)}}function Wi(e){if(!z(e.channels))return;let t=Hi(e),n={},r={},i=new Set,a=new Set;for(let[o,s]of Object.entries(e.channels)){if(!z(s))continue;let e=Xi(Yi(o),i),c={address:o},l={};for(let[e,t]of Object.entries(s))if(!(e===`publish`||e===`subscribe`||e===`parameters`)){if(e===`servers`&&Array.isArray(t)){c.servers=t.map(e=>({$ref:`#/servers/${e}`}));continue}c[e]=t}z(s.parameters)&&(c.parameters=s.parameters);let u=Gi(s.publish,l),d=Gi(s.subscribe,l);if(c.messages=l,n[e]=c,z(s.publish)){let n=Xi(qi(s.publish,`receive`,e),a);r[n]=Ji(s.publish,`receive`,e,u,t)}if(z(s.subscribe)){let n=Xi(qi(s.subscribe,`send`,e),a);r[n]=Ji(s.subscribe,`send`,e,d,t)}}e.channels=n,e.operations=r}function Gi(e,t){if(!z(e)||!z(e.message))return[];let n=e.message,r=Array.isArray(n.oneOf)?n.oneOf:[n],i=[];for(let e of r){if(!z(e))continue;let n=Ki(e,t);t[n]=e,i.push(n)}return i}function Ki(e,t){if(typeof e.$ref==`string`){let t=e.$ref.split(`/`).pop();if(t)return t}if(typeof e.name==`string`&&e.name)return e.name;let n=0;for(;`message-${n}`in t;)n+=1;return`message-${n}`}function qi(e,t,n){return typeof e.operationId==`string`&&e.operationId?e.operationId:`${t}-${n}`}function Ji(e,t,n,r,i){let a={action:t,channel:{$ref:`#/channels/${n}`}};for(let[t,n]of Object.entries(e))if(!(t===`message`||t===`operationId`)){if(t===`security`&&Array.isArray(n)){a.security=Bi(n,i);continue}a[t]=n}return a.messages=r.map(e=>({$ref:`#/channels/${n}/messages/${e}`})),a}function Yi(e){return ht(e.replace(/[^a-zA-Z0-9]+/g,` `))}function Xi(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}-${n}`);)n+=1;let r=`${e}-${n}`;return t.add(r),r}var Zi=`3.1.0`,Qi=/^#\/components\/messages\/(.+)$/;function $i(e){let t=e;return!z(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`3.0`)?t:(t.asyncapi=Zi,ea(t),t)}function ea(e){if(!z(e.operations)||!z(e.channels))return;let t=e.channels;for(let n of Object.values(e.operations))z(n)&&(ta(n.messages,n.channel,t),z(n.reply)&&ta(n.reply.messages,n.reply.channel??n.channel,t))}function ta(e,t,n){if(!Array.isArray(e))return;let r=ra(t);if(!r)return;let i=n[r];if(z(i)){for(let t=0;t<e.length;t+=1){let n=e[t];if(!z(n)||typeof n.$ref!=`string`)continue;let[,a]=n.$ref.match(Qi)??[];a&&(ia(i,a,n.$ref),e[t]={$ref:`#/channels/${r}/messages/${a}`})}na(e)}}function na(e){let t=new Set,n=0;for(let r of e){if(z(r)&&typeof r.$ref==`string`){if(t.has(r.$ref))continue;t.add(r.$ref)}e[n]=r,n+=1}e.length=n}function ra(e){if(!z(e)||typeof e.$ref!=`string`)return;let t=e.$ref.match(/^#\/channels\/([^/]+)$/);return t?t[1]:void 0}function ia(e,t,n){z(e.messages)||(e.messages={});let r=e.messages;t in r||(r[t]={$ref:n})}function aa(e){return $i(Li(ki(e)))}var oa=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},sa=async(e,t)=>{let n=performance.now(),r=await t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r};function ca(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function la(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return z(JSON.parse(e))}catch{return!1}}function ua(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function da(e){return!ca(e)&&!ua(e)&&!la(e)}var fa=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!r.call(i,c)&&c!==o&&e(i,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return i},o=t=>a(e({},`__esModule`,{value:!0}),t),s={};i(s,{default:()=>Re});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(w(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?ee(e,t):m(e)?te(e,t):y(e,t),ee=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},y=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return ae(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}else return!1})},te=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}else return!1},b=(e,t,n,r)=>{let i=w(e);return ae(ie(C(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},ne=(e,t)=>b(e,0,1),x=(e,t)=>b(e,0,1/0),re=(e,t)=>{let n=e.map(w);return ae(ie(C(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},S=(e,t)=>{let n=e.map(w);return ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},C=(e,t=!1)=>{let n=w(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},ie=(e,t)=>w(e),ae=(()=>{let e=0;return t=>{let n=w(t),r=e+=1;return e=>{var t;if(e.options.memoization===!1)return n(e);let i=e.index,a=(t=e.cache)[r]||(t[r]=new Map),o=a.get(i);if(o===!1)return!1;if(d(o))return e.index=o,!0;if(o)return e.index=o.index,o.output?.length&&e.output.push(...o.output),!0;{let t=e.output.length;if(n(e)){let n=e.index,r=e.output.length;if(r>t){let o=e.output.slice(t,r);a.set(i,{index:n,output:o})}else a.set(i,n);return!0}else return a.set(i,!1),!1}}}})(),oe=e=>{let t;return n=>(t||=w(e()),t(n))},w=g(e=>{if(l(e))return u(e)?oe(e):e;if(m(e)||p(e))return v(e);if(c(e))return re(e);if(f(e))return S(Object.values(e));throw Error(`Invalid rule`)}),se=`abcdefghijklmnopqrstuvwxyz`,ce=e=>{let t=``;for(;e>0;)t=se[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},le=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+se.indexOf(e[n])+1;return t},ue=(e,t)=>{if(t<e)return ue(t,e);let n=[];for(;e<=t;)n.push(e++);return n},de=(e,t,n)=>ue(e,t).map(e=>String(e).padStart(n,`0`)),T=(e,t)=>ue(le(e),le(t)).map(ce),E=e=>e,D=e=>fe(t=>_(t,e,{memoization:!1}).join(``)),fe=e=>{let t={};return n=>t[n]??(t[n]=e(n))},pe=v(/^\*\*\/\*$/,`.*`),O=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),me=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),he=v(/\\./,E),ge=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),_e=v(/./,E),ve=S([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Ne(t)}$).*?`),v(/^(!!)+/,``)]),ye=S([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),k=S([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),be=v(`?`,`[^/]`),xe=v(`[`,E),Se=v(`]`,E),Ce=v(/[!^]/,`^/`),we=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,E),Te=S([he,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),we,v(/[^\]]/,E)]),A=re([xe,ne(Ce),x(Te),Se]),Ee=v(`{`,`(?:`),De=v(`}`,`)`),Oe=re([Ee,S([v(/(\d+)\.\.(\d+)/,(e,t,n)=>de(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>T(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>T(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),De]),j=v(`{`,`(?:`),ke=v(`}`,`)`),Ae=v(`,`,`|`),je=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),Me=v(/[^}]/,E),M=re([j,x(S([ye,k,be,A,Oe,oe(()=>M),he,je,Ae,Me])),ke]),Ne=D(x(S([pe,O,me,ve,ye,k,be,A,Oe,M,he,ge,_e]))),Pe=v(/\\./,E),Fe=v(/./,E),Ie=D(x(S([Pe,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Fe]))),Le=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Le.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Le.compile=e=>RegExp(`^${Ne(Ie(e))}$`,`s`);var Re=Le;return o(s)})();return e.default||e},pa,ma=(e,t)=>(pa||(pa=fa(),fa=null),pa(e,t)),ha=/^[A-Za-z]:\//;function ga(e=``){return e&&e.replace(/\\/g,`/`).replace(ha,e=>e.toUpperCase())}var _a=/^[/\\]{2}/,va=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ya=/^[A-Za-z]:$/,ba=/^\/([A-Za-z]:)?$/,xa=/.(\.[^./]+|\.)$/,Sa=/^[/\\]|^[a-zA-Z]:[/\\]/,Ca=function(e){if(e.length===0)return`.`;e=ga(e);let t=e.match(_a),n=Oa(e),r=e[e.length-1]===`/`;return e=Da(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ya.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!Oa(e)?`/${e}`:e)},wa=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return Ca(t)};function Ta(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Ea=function(...e){e=e.map(e=>ga(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ta();!i||i.length===0||(t=`${i}/${t}`,n=Oa(i))}return t=Da(t,!n),n&&!Oa(t)?`/${t}`:t.length>0?t:`.`};function Da(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var Oa=function(e){return va.test(e)},ka=function(e){return ga(e)},Aa=function(e){if(e===`..`)return``;let t=xa.exec(ga(e));return t&&t[1]||``},ja=function(e,t){let n=Ea(e).replace(ba,`$1`).split(`/`),r=Ea(t).replace(ba,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},Ma=function(e){let t=ga(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ya.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(Oa(e)?`/`:`.`)},Na=function(e){let t=e.ext?e.ext.startsWith(`.`)?e.ext:`.${e.ext}`:``,n=[e.root,e.dir,e.base??(e.name??``)+t].filter(Boolean);return ga(e.root?Ea(...n):n.join(`/`))},Pa=function(e,t){let n=ga(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},Fa={__proto__:null,basename:Pa,dirname:Ma,extname:Aa,format:Na,isAbsolute:Oa,join:wa,matchesGlob:(e,t)=>ma(t,Ca(e)),normalize:Ca,normalizeString:Da,parse:function(e){let t=Sa.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Pa(e),r=Aa(n);return{root:t,dir:Ma(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:ja,resolve:Ea,sep:`/`,toNamespacedPath:ka},Ia=globalThis.process?.platform===`win32`?`;`:`:`,La={posix:void 0,win32:void 0},Ra=(e=Ia)=>new Proxy(Fa,{get(t,n){return n===`delimiter`?e:n===`posix`?X:n===`win32`?za:La[n]||Fa[n]}}),X=Ra(`:`),za=Ra(`;`),Ba=(e,t)=>{if(ca(t))return t;if(ca(e)){let n=new URL(e);return n.pathname=X.posix.resolve(`/`,X.dirname(n.pathname),t),n.toString()}return X.resolve(X.dirname(e),t)};function Va(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function Ha(e){return e.split(`/`).slice(1).map(Va)}function Ua(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=Ha(t);r.forEach(e=>Oe(e));let i=e;for(let e=0;e<r.length;e++){let t=r[e],a=e===r.length-1,o=r[e+1],s=/^\d+$/.test(o??``);a?i[t]=n:((!(t in i)||typeof i[t]!=`object`)&&(i[t]=s?[]:{}),i=i[t])}}var Wa=(e,t)=>{if(ca(e)&&ca(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=X.dirname(X.posix.resolve(`/`,r.pathname)),a=X.posix.resolve(`/`,n.pathname);return X.posix.relative(i,a)}if(ca(t)){let n=new URL(t),r=X.dirname(X.posix.resolve(`/`,n.pathname));return n.pathname=X.posix.relative(r,X.posix.resolve(`/`,e)),n.toString()}if(ca(e))return e;let n=X.dirname(X.resolve(t)),r=X.resolve(e);return X.relative(n,r)};function Ga(e){let t=xe(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function Ka(e,t,n,r,i=0){if(i>=100)throw`Can not generate unique compressed values`;let a=await e(r??t);return n[a]!==void 0&&n[a]!==t?Ka(e,t,n,a,i+1):(n[a]=t,a)}var qa=(e,t)=>{let n=Object.fromEntries(Object.entries(t).map(([e,t])=>[t,e]));return{generate:async r=>{let i=n[r];if(i)return i;let a=await Ka(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},Ja=e=>z(e)&&`$ref`in e&&typeof e.$ref==`string`;function Ya(e){return e.startsWith(`#`)}function Xa(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function Za(e,t){if(!Ya(e))throw`Please provide an internal ref`;return`#/${t.map(ni).join(`/`)}${e.substring(1)}`}function Qa(e,t){if(Array.isArray(e)){e.forEach(e=>Qa(e,t));return}if(z(e)&&(Object.values(e).forEach(e=>Qa(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!Ya(n))return;e.$ref=Za(n,t)}}var $a=(e,t,n,r,i,a=!1,o=new Set)=>{let s=Qe(t,Ha(n)).value;if(o.has(s))return;o.add(s),Ua(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${ni(i)}`)||a)&&$a(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},eo={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function to(e,t){t.externalDocumentsKey=t.externalDocumentsKey??eo.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??eo.externalDocumentsMappings;let n=t.cache??new Map,r=t.plugins.filter(e=>e.type===`loader`),i=t.plugins.filter(e=>e.type===`lifecycle`),a=await(async()=>{if(typeof e!=`string`)return e;let t=await Xa(e,r);if(t.ok&&typeof t.data==`object`)return t.data;throw Error(`Failed to resolve input: Please provide a valid string value or pass a loader to process the input`)})(),o=t.root??a,s=wt(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=Re(o)||(t.origin?t.origin:typeof e==`string`&&(ca(e)||da(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=qa(t.compress??Ga,o[t.externalDocumentsMappingsKey]),f=async(e,...n)=>{let r=t.hooks?.[e];r&&await r(...n);for(let t of i){let r=t[e];r&&await r(...n)}},p=async(e,i=u,a=!1,m=0,h=[],g=null)=>{if(t.depth!==void 0&&m>t.depth||!z(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let _={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,_);let v=Re(e);if(Ja(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=kt(l,v??i,s);if(g!==void 0){if(c){let e=Ha(`/${g}`),t=e.length>0?Qe(o,e.slice(0,-1)).value:void 0,n=Qe(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[ee,y=``]=l.split(`#`,2),te=Ba(v??i,ee),b=Wa(te,u),ne=await d(b),x=n.has(b);x||n.set(b,Xa(te,r)),await f(`onResolveStart`,e);let re=await n.get(b);if(re.ok){x||(h||Qa(re.data,[eo.externalDocuments,ne]),await p(re.data,h?i:te,h,m+1,[t.externalDocumentsKey,ne,o[t.externalDocumentsMappingsKey]]),Ua(o,`/${t.externalDocumentsMappingsKey}/${ni(ne)}`,b)),t.treeShake===!0?$a(o,{[t.externalDocumentsKey]:{[ne]:re.data}},Za(`#${y}`,[t.externalDocumentsKey,ne]).substring(1),t.externalDocumentsKey,ne):x||Ua(o,`/${t.externalDocumentsKey}/${ne}`,re.data),e.$ref=Za(`#${y}`,[t.externalDocumentsKey,ne]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,_);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,_),console.warn(`Failed to resolve external reference "${te}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],v??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,_)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}function no(e){let t=0,n=new Ei,r=()=>{if(n.isEmpty()||t>=e)return;let r=n.dequeue();r&&r()};return async i=>{t>=e&&await new Promise(e=>n.enqueue(e)),t++;try{return await i()}finally{t--,r()}}}var ro=e=>e.startsWith(``)?e.slice(1):e;function io(t){if(t!==null){if(typeof t==`string`){let n=ro(t);if(n.trim()===``)return;try{return JSON.parse(n)}catch{let t=/^[^:]+:/.test(n),r=n.slice(0,50).trimStart(),i=r.startsWith(`{`)||r.startsWith(`[`);return!t||i?void 0:e(n,{maxAliasCount:1e4,merge:!0})}}return t}}var ao=e=>{try{return new URL(e).host}catch{return null}};async function oo(e,t,n){try{let r=ao(e),i=n?.headers?.find(e=>e.domains.find(e=>e===r)!==void 0)?.headers,a=n?.fetch??fetch,o=await t(()=>a(e,{headers:i}));if(o.ok){let e=await o.text();return{ok:!0,data:io(e),raw:e}}let s=o.headers.get(`Content-Type`)??``;return[`text/html`,`application/xml`].includes(s)&&console.warn(`[WARN] We only support JSON/YAML formats, received ${s}`),console.warn(`[WARN] Fetch failed with status ${o.status} ${o.statusText} for URL: ${e}`),{ok:!1}}catch{return console.warn(`[WARN] Failed to parse JSON/YAML from URL: ${e}`),{ok:!1}}}function so(e){let t=e?.limit?no(e.limit):e=>e();return{type:`loader`,validate:ca,exec:n=>oo(n,t,e)}}var co=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},lo=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new co(`Process aborted. Path ${t.join(`.`)} at depth ${i} is undefined, check diff object`);if(i>=t.length-1){r.type===`add`||r.type===`update`?e[t[i]]=r.changes:Array.isArray(e)?e.splice(Number.parseInt(t[i]),1):delete e[t[i]];return}if(e[t[i]]===void 0||typeof e[t[i]]!=`object`)throw new co(`Process aborted, check diff object`);n(e[t[i]],t,r,i+1)};for(let r of t)n(e,r.path,r);return e},uo=(e,t)=>{let n=[],r=(e,t,i=[])=>{if(typeof e!=typeof t){if(e===void 0){n.push({path:i,changes:t,type:`add`});return}if(t===void 0){n.push({path:i,changes:e,type:`delete`});return}n.push({path:i,changes:t,type:`update`});return}if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let a of n)r(e[a],t[a],[...i,a]);return}e!==t&&n.push({path:i,changes:t,type:`update`})};return r(e,t),n},fo=class{value;children;constructor(e,t){this.value=e,this.children=t}},po=class{root;constructor(){this.root=new fo(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new fo(null,{})),n=n.children[t];n.value=t}findMatch(e,t){let n=this.root;for(let r of e){n.value!==null&&t(n.value);let e=n.children[r];if(!e)return;n=e}let r=e=>{for(let t of Object.keys(e?.children??{}))e&&Object.hasOwn(e.children,t)&&r(e?.children[t]);e?.value&&t(e.value)};r(n)}},mo=(e,t)=>{if(typeof e!=typeof t)return!0;if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n)if(e[r]!==void 0&&t[r]!==void 0&&mo(e[r],t[r]))return!0;return!1}return e!==t},ho=(e,t)=>{for(let n in t)if(!(n in e))e[n]=t[n];else{let r=e[n],i=t[n];typeof r==`object`&&r&&typeof i==`object`&&i&&(e[n]=ho(r,i))}return e},go=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<=e.length;++n)if(e[n]!==t[n])return!1;return!0},_o=(e,t)=>{let n=new po;for(let[t,r]of e.entries())n.addPath(r.path,{index:t,changes:r});let r=new Set,i=new Set,a=new Map,o=new Map;for(let[e,s]of t.entries())n.findMatch(s.path,t=>{if(s.type===`delete`)if(t.changes.type===`delete`)t.changes.path.length>s.path.length?r.add(t.index):i.add(t.index);else{r.add(t.index),i.add(e);let n=o.get(e);n===void 0?o.set(e,[[t.changes],[s]]):n[0].push(t.changes)}if(s.type===`add`||s.type===`update`){if(go(s.path,t.changes.path)&&t.changes.type!==`delete`&&!mo(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&ho(s.changes,t.changes.changes);return}r.add(t.index),i.add(e);let n=a.get(t.index);n===void 0?a.set(t.index,[[t.changes],[s]]):n[1].push(s)}});let s=[...a.values(),...o.values()];return{diffs:[...e.filter((e,t)=>!r.has(t)),...t.filter((e,t)=>!i.has(t))],conflicts:s}};function vo(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)vo(t);return}if(e.xml&&typeof e.xml==`object`){if(e.xml.wrapped===!0&&e.xml.attribute===!0)throw Error(`Invalid XML configuration: wrapped and attribute cannot be true at the same time.`);e.xml.wrapped===!0&&(delete e.xml.wrapped,e.xml.nodeType=`element`),e.xml.attribute===!0&&(delete e.xml.attribute,e.xml.nodeType=`attribute`)}for(let t in e)Object.hasOwn(e,t)&&vo(e[t])}}function yo(e){if(e[`x-tagGroups`]&&Array.isArray(e[`x-tagGroups`])){let t=e[`x-tagGroups`];e.tags||=[];let n=new Map;for(let e of t)for(let t of e.tags)n.set(t,e.name);if(Array.isArray(e.tags)){for(let t of e.tags)if(typeof t==`object`&&t&&`name`in t){let e=n.get(t.name);e&&(e.toLowerCase().includes(`nav`)||e.toLowerCase().includes(`navigation`)?t.kind=`nav`:e.toLowerCase().includes(`audience`)?t.kind=`audience`:e.toLowerCase().includes(`badge`)?t.kind=`badge`:t.kind=`nav`)}}delete e[`x-tagGroups`]}}function bo(e){let t=e;if(typeof t==`object`&&t&&typeof t.openapi==`string`&&t.openapi?.startsWith(`3.1`))t.openapi=`3.2.0`;else return t;return yo(t),vo(t),t}function xo(e,t,n=[]){let r={};for(let[i,a]of Object.entries(e)){let e=[...n,i];if(Array.isArray(a)){r[i]=a.map((n,r)=>typeof n==`object`&&!Array.isArray(n)&&n!==null?xo(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=xo(a,t,e);continue}r[i]=a}return t(r,n)}var So=`application/json`;function Co(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function wo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function To(e){return wo(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function Eo(e){if(typeof e!=`object`||!e)return!0;let t=e;return!(t.allOf||t.oneOf||t.anyOf||t.items||t.$ref||`additionalProperties`in t||[`enum`,`const`,`not`,`format`,`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`].some(e=>e in t)||typeof t.properties==`object`&&t.properties!==null&&Object.keys(t.properties).length>0)}function Do(e){let t=Object.keys(e);if(t.some(t=>{let n=e[t];return n?.example!==void 0||n?.examples!==void 0}))for(let n of t){let t=e[n];if(!t)continue;let r=t.example!==void 0||t.examples!==void 0;t.schema!==void 0&&!r&&Object.keys(t).length===1&&Eo(t.schema)&&delete e[n]}}var Oo=new Set([`summary`,`description`,`value`,`externalValue`]);function ko(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>Oo.has(e));return n&&r}function Ao(e){return ko(e)?e:{value:e}}var jo=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Mo(e){return jo.test(e)}function No(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var Po=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function Fo(e){let t=e;if(typeof t==`object`&&t&&typeof t.swagger==`string`&&t.swagger?.startsWith(`2.0`))t.openapi=`3.0.4`,delete t.swagger;else return t;if(t.host){let e=Array.isArray(t.schemes)&&t.schemes?.length?t.schemes:[`http`];t.servers=e.map(e=>({url:`${e}://${t.host}${t.basePath??``}`})),delete t.basePath,delete t.schemes,delete t.host}else t.basePath&&(t.servers=[{url:t.basePath}],delete t.basePath);if(t.definitions&&(t.components=Object.assign({},t.components,{schemas:t.definitions}),delete t.definitions,t=xo(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=xo(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=xo(t,e=>{if(typeof e.$ref==`string`&&e.$ref.startsWith(`#/parameters/`)){let n=e.$ref.split(`/`)[2];if(!n)return e;let r=t.parameters&&typeof t.parameters==`object`&&n in t.parameters?t.parameters[n]:void 0;r&&typeof r==`object`&&`in`in r&&(r.in===`body`||r.in===`formData`)?e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/requestBodies/`):e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/parameters/`)}return e}),t.components??={};let e={},n={},r=t.parameters&&typeof t.parameters==`object`?t.parameters:{};for(let[i,a]of Object.entries(r))a&&typeof a==`object`&&(`$ref`in a?e[i]=Ro(a):`in`in a&&(a.in===`body`?n[i]=Wo(a,t.consumes??[So]):a.in===`formData`?n[i]=Go([a],t.consumes):e[i]=Ro(a)));Object.keys(e).length>0&&(t.components.parameters=e),Object.keys(n).length>0&&(t.components.requestBodies=n),delete t.parameters}if(Object.hasOwn(t,`responses`)&&typeof t.responses==`object`&&t.responses!==null){t=xo(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/responses/`)&&(e.$ref=e.$ref.replace(/^#\/responses\//,`#/components/responses/`)),e)),t.components??={};let e={},n=t.responses;for(let[r,i]of Object.entries(n))if(i&&typeof i==`object`)if(`$ref`in i)e[r]=i;else{let n=i,a=t.produces??[So];if(n.schema){typeof n.content!=`object`&&(n.content={});for(let e of a)n.content[e]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=a[0]??So;for(let[t,r]of Object.entries(n.examples))if(Mo(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=Ao(r)}delete n.examples}n.content&&typeof n.content==`object`&&Do(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:zo(n),...e}:e,{})),e[r]=n}Object.keys(e).length>0&&(t.components.responses=e),delete t.responses}if(typeof t.paths==`object`){for(let e in t.paths)if(Object.hasOwn(t.paths,e)){let n=t.paths&&typeof t.paths==`object`&&e in t.paths?t.paths[e]:void 0;if(!n||typeof n!=`object`)continue;let r;for(let e in n)if(e===`parameters`&&Object.hasOwn(n,e)){let e=Ko(n.parameters,t.consumes??[So]);n.parameters=e.parameters,r=e.requestBody}else if(Object.hasOwn(n,e)){let i=n[e];if(r&&(i.requestBody=r),i.parameters){let e=Ko(i.parameters,i.consumes??t.consumes??[So]);i.parameters=e.parameters,e.requestBody&&(i.requestBody=e.requestBody)}if(delete i.consumes,i.responses){for(let e in i.responses)if(Object.hasOwn(i.responses,e)){let n=i.responses[e];if(n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:zo(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[So];typeof n.content!=`object`&&(n.content={});for(let t of e)n.content[t]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=(t.produces??i.produces??[So])[0]??So;for(let[t,r]of Object.entries(n.examples))if(Mo(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=Ao(r)}delete n.examples}n.content&&typeof n.content==`object`&&Do(n.content)}}delete i.produces,i.parameters?.length===0&&delete i.parameters}}}if(t.securityDefinitions){(typeof t.components!=`object`||t.components===null)&&(t.components={}),t.components&&typeof t.components==`object`&&Object.assign(t.components,{securitySchemes:{}});for(let[e,n]of Object.entries(t.securityDefinitions))if(typeof n==`object`)if(`type`in n&&n.type===`oauth2`){let{flow:r,authorizationUrl:i,tokenUrl:a,scopes:o}=n;t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`oauth2`,flows:{[Po(r||`implicit`)]:Object.assign({},i&&{authorizationUrl:i},a&&{tokenUrl:a},o&&{scopes:o})}}})}else`type`in n&&n.type===`basic`?t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`http`,scheme:`basic`}}):t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:n});delete t.securityDefinitions}return delete t.consumes,delete t.produces,t}function Io(e){return[`type`,`format`,`default`,`items`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`enum`,`multipleOf`].reduce((t,n)=>(Object.hasOwn(e,n)&&(t[n]=e[n],delete e[n]),t),{})}function Lo(e){if(e===`formData`)throw Error(`Encountered a formData parameter which should have been filtered out by the caller`);if(e===`body`)throw Error(`Encountered a body parameter which should have been filtered out by the caller`);return e}function Ro(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Uo(e),n=Io(e),{xExample:r,xExamples:i}=Co(e);if(wo(r)?e.examples=No(r):wo(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Ao(n),e),{})),delete e.collectionFormat,delete e.default,!e.in)throw Error(`Parameter object must have an "in" property`);return{schema:n,...t,...e,in:Lo(e.in)}}function zo(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Io(e);return{...e,schema:t}}var Bo={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},Vo={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},Ho={header:Vo,query:Bo,path:Vo};function Uo(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in Ho&&t in Ho[e.in]?Ho[e.in][t]:{}}function Wo(e,t){let{xExample:n,xExamples:r}=Co(e);delete e.name,delete e.in;let{schema:i,...a}=e,o={content:{},...a};if(o.content)for(let e of t){if(o.content[e]={schema:i},wo(r)&&e in r){let t=r[e];wo(t)&&Object.values(t).every(e=>ko(e))?o.content[e].examples=t:To(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Ao(n),e),{}):o.content[e].examples={default:Ao(t)}}else wo(r)&&!Object.keys(r).some(Mo)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Ao(n),e),{}));!o.content[e].examples&&wo(n)&&e in n&&(o.content[e].example=n[e])}return o}function Go(e,t=[`multipart/form-data`]){let n={content:{}},r=t.filter(e=>e===`multipart/form-data`||e===`application/x-www-form-urlencoded`),i=r.length>0?r:[`multipart/form-data`];if(n.content)for(let t of i){n.content[t]={schema:{type:`object`,properties:{},required:[]}};let r=n.content?.[t];if(r?.schema&&typeof r.schema==`object`&&`properties`in r.schema)for(let t of e)t.name&&r.schema.properties&&(r.schema.properties[t.name]={type:t.type,description:t.description,...t.format?{format:t.format}:{}},t.required&&Array.isArray(r.schema.required)&&r.schema.required.push(t.name))}return n}function Ko(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>Ro(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=Wo(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=Go(i,t);typeof n.requestBody==`object`?n.requestBody={...n.requestBody,content:{...n.requestBody.content,...e.content}}:n.requestBody=e,typeof n.requestBody!=`object`&&(n.requestBody={content:{}})}return n}var qo=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function Jo(e){return e?!!(e.some(e=>qo.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}var Yo=new Set([`properties`,`patternProperties`,`$defs`,`definitions`]);function Xo(e){let t=e?.[e.length-1];return t===void 0?!1:t===`schemas`&&e?.[e.length-2]===`components`||Yo.has(t)}var Zo=new Set([`example`,`default`,`const`,`enum`]);function Qo(e){if(!e)return!1;for(let[t,n]of e.entries())if(Zo.has(n)&&!Xo(e.slice(0,t))||n===`value`&&e[t-2]===`examples`&&!Xo(e.slice(0,t-2)))return!0;return!1}function $o(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=xo(t,es),t)}var es=(e,t)=>{if(Qo(t))return e;if(e.type!==void 0&&e.nullable===!0)e.type=[e.type,`null`],delete e.nullable;else if(e.nullable===!0&&e.type===void 0){if(typeof e.$ref==`string`){let{nullable:t,$ref:n,...r}=e;return{...r,anyOf:[{$ref:n},{type:`null`}]}}if(Array.isArray(e.allOf)){let{nullable:t,allOf:n,...r}=e,i=n.length===1?n[0]:{allOf:n};return{...r,anyOf:[i,{type:`null`}]}}}e.exclusiveMinimum===!0?(e.exclusiveMinimum=e.minimum,delete e.minimum):e.exclusiveMinimum===!1&&delete e.exclusiveMinimum,e.exclusiveMaximum===!0?(e.exclusiveMaximum=e.maximum,delete e.maximum):e.exclusiveMaximum===!1&&delete e.exclusiveMaximum;let n=t?.some((e,n)=>e===`examples`&&n>0&&!Xo(t.slice(0,n)));if(e.example!==void 0&&!n&&!Xo(t)&&(Jo(t)?e.examples=[e.example]:e.examples={default:{value:e.example}},delete e.example),e.type===`object`&&e.properties!==void 0&&(t?.slice(0,-1))?.some((e,n)=>e===`content`&&t?.[n+1]===`multipart/form-data`)&&e.properties!==null)for(let t of Object.values(e.properties))typeof t==`object`&&t&&`type`in t&&`format`in t&&t.type===`string`&&t.format===`binary`&&(t.contentMediaType=`application/octet-stream`,delete t.format);if(t?.includes(`content`)&&t?.includes(`application/octet-stream`))return{};let{format:r,...i}=e;if(e.type===`string`){if(e.format===`binary`)return{...i,type:`string`,contentMediaType:`application/octet-stream`};if(e.format===`base64`)return{...i,type:`string`,contentEncoding:`base64`};if(e.format===`byte`){let e=(t?.slice(0,-1))?.find((e,n)=>t?.[n-1]===`content`);return{...i,type:`string`,contentEncoding:`base64`,contentMediaType:e}}}return e[`x-webhooks`]!==void 0&&(t===void 0||t.length===0)&&(e.webhooks=e[`x-webhooks`],delete e[`x-webhooks`]),e};function ts(e,t){let n=Fo(e);if(t===`3.0`)return n;let r=$o(n);return t===`3.1`?r:bo(r)}var ns="```",rs=(e,t)=>`${ns}${e}\n${t.trimEnd()}\n${ns}`,is=(e,t)=>`@example\n${rs(e,t)}`,as=e=>`\`${e}\``,os=(...e)=>e.join(`
15
+ import{r as e,t}from"./browser-CTPPEMEL.js";import{$a as n,$i as r,$o as i,$r as a,Ai as o,Bi as s,Br as c,Ca as l,Ci as u,Da as d,Dn as f,Ea as p,Ei as m,Fi as h,Fn as g,Gi as _,Go as v,Gr as ee,Hi as y,Hr as te,Ii as b,Ir as ne,J as x,Ji as re,Jn as S,Jo as C,Jr as ie,K as ae,Ki as oe,Ko as w,Kr as se,Li as ce,Lo as le,Lr as ue,Mi as de,Mn as T,Ni as E,Pi as D,Pr as fe,Qi as pe,Qo as O,Qr as me,Ri as he,Rr as ge,Si as _e,Ti as ve,Ui as ye,Uo as k,Ur as be,V as xe,Vi as Se,Vr as Ce,W as we,Wi as Te,Wo as A,Wr as Ee,Xi as De,Xn as Oe,Xo as j,Xr as ke,Y as Ae,Yi as je,Yn as Me,Yo as M,Yr as Ne,Zi as Pe,Zo as Fe,Zr as Ie,_ as Le,_a as Re,_i as ze,aa as Be,ai as Ve,as as He,bi as Ue,ci as We,da as N,di as Ge,ea as Ke,ei as qe,es as P,fa as Je,fi as Ye,fr as Xe,g as Ze,ga as Qe,ha as $e,hi as et,ia as tt,ii as nt,is as rt,ji as it,jn as at,ki as ot,li as st,ma as ct,mi as lt,na as ut,ni as dt,ns as F,oi as ft,pa as pt,pi as mt,q as ht,qi as gt,qo as I,qr as _t,ra as vt,ri as yt,rs as L,si as bt,ta as xt,ti as St,ts as R,ui as Ct,va as wt,vi as Tt,wa as Et,wi as Dt,xa as z,xi as Ot,ya as kt,yi as At,zi as jt,zn as Mt,zr as Nt}from"./vendor-B93Hdr0r.js";import{A as Pt,B as Ft,D as It,Gt as Lt,H as B,J as Rt,K as zt,Q as Bt,R as Vt,S as Ht,Tt as V,U as Ut,Yt as Wt,at as Gt,b as Kt,d as qt,dt as Jt,f as Yt,gt as Xt,k as Zt,l as Qt,mt as $t,ot as en,p as H,tt as tn,u as U}from"./runtime-core.esm-bundler-CqqEw5ds.js";var W=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},nn=(e,t,n)=>{if(!e)return!1;let r=W(t)||Array.isArray(t);if(r&&n.get(t)?.has(e))return!0;if(r){let r=n.get(t)??new Set;r.add(e),n.set(t,r)}try{return e.type===`any`||e.type===`unknown`?!0:e.type===`function`?typeof t==`function`:e.type===`number`?typeof t==`number`&&!Number.isNaN(t)&&Number.isFinite(t):e.type===`string`?typeof t==`string`:e.type===`boolean`?typeof t==`boolean`:e.type===`nullable`?t===null:e.type===`notDefined`?t===void 0:e.type===`array`?Array.isArray(t)&&t.every(t=>nn(e.items,t,n)):e.type===`record`?W(t)?Object.keys(t).every(r=>nn(e.key,r,n)&&nn(e.value,t[r],n)):!1:e.type===`object`?W(t)?Object.keys(e.properties).every(r=>nn(e.properties[r],t[r],n)):!1:e.type===`optional`?t===void 0||nn(e.schema,t,n):e.type===`union`?e.schemas.some(e=>nn(e,t,n)):e.type===`intersection`?e.schemas.length===0?!0:W(t)?e.schemas.every(e=>nn(e,t,n)):!1:e.type===`literal`?t===e.value:e.type===`lazy`?nn(e.schema(),t,n):e.type===`evaluate`?nn(e.schema,e.expression(t),n):(console.warn(`Unknown schema type:`,e),!1)}finally{r&&n.get(t)?.delete(e)}},rn=(e,t,n=new WeakMap)=>nn(e,t,n),an=(e,t)=>{let n=t.get(e);if(n)return n;let r=e.schema();return t.set(e,r),r},on=e=>e.type===`optional`?on(e.schema):e.type===`literal`||e.type===`union`&&e.schemas.length>0&&e.schemas.every(on),sn=(e,t,n,r=new WeakMap)=>{if(W(t)&&r.get(t)?.has(e))return 1;let i=W(t);if(i){let n=r.get(t)??new Set;n.add(e),r.set(t,n)}try{if(e.type===`object`){if(!W(t))return 0;let i=Object.keys(e.properties);return i.length===0?1:i.reduce((i,a)=>{if(!(a in t))return i;let o=e.properties[a],s=t[a],c=sn(o,s,n,r);return on(o)?i+(c>0?c*10:0):i+(c>0?c:1)},0)}return e.type===`array`?+!!Array.isArray(t):e.type===`record`?+!!W(t):e.type===`optional`?t===void 0?1:sn(e.schema,t,n,r):e.type===`union`?Math.max(...e.schemas.map(e=>sn(e,t,n,r))):e.type===`intersection`?e.schemas.length===0?1:e.schemas.reduce((e,i)=>e+sn(i,t,n,r),0):e.type===`lazy`?sn(an(e,n),t,n,r):e.type===`evaluate`?sn(e.schema,e.expression(t),n,r):+!!rn(e,t)}finally{i&&r.get(t)?.delete(e)}},cn=(e,t,n,r)=>{if(W(e)||Array.isArray(e)){let i=r.get(e)||new Map;i.set(t,n),r.set(e,i)}},ln=(e,t,n,r)=>{if((W(t)||Array.isArray(t))&&n.get(t)?.has(e))return n.get(t)?.get(e);if(!e||e.type===`any`||e.type===`unknown`)return t;if(e.type===`function`)return typeof t==`function`?t:()=>void 0;if(e.type===`number`)return rn(e,t)?t:e.default??0;if(e.type===`string`)return rn(e,t)?t:e.default??``;if(e.type===`boolean`)return rn(e,t)?t:e.default??!1;if(e.type===`nullable`)return null;if(e.type!==`notDefined`){if(e.type===`optional`)return t===void 0?void 0:ln(e.schema,t,n,r);if(e.type===`array`){if(!Array.isArray(t))return[];let i=Array(t.length);cn(t,e,i,n);for(let a=0;a<t.length;a++)i[a]=ln(e.items,t[a],n,r);return i}if(e.type===`record`){if(!W(t))return{};let i={};cn(t,e,i,n);for(let a of Object.keys(t))i[a]=ln(e.value,t[a],n,r);return i}if(e.type===`object`){let i=Object.keys(e.properties),a=W(t)?t:null,o={};cn(t,e,o,n);for(let t of i){let i=e.properties[t],s=a?.[t];i.type===`optional`&&s===void 0||(o[t]=ln(i,s,n,r))}return o}return e.type===`union`?ln(e.schemas.reduce((e,n)=>{let i=sn(n,t,r);return i>e.score?{schema:n,score:i}:e},{schema:e.schemas[0],score:0}).schema,t,n,r):e.type===`intersection`?e.schemas.reduce((e,i)=>Object.assign(e,ln(i,t,n,r)),{}):e.type===`literal`?e.value:e.type===`lazy`?ln(an(e,r),t,n,r):e.type===`evaluate`?ln(e.schema,e.expression(t),n,r):(console.warn(`Unknown schema type:`,e),t)}},un=(e,t,n=new WeakMap,r=new WeakMap)=>ln(e,t,n,r);i({name:F({typeComment:"Name of specification extension property. Has to start with `x-`."}),component:rt({typeComment:`Vue component to render the specification extension`}),renderer:P(rt({typeComment:`Custom renderer to render the specification extension`}))});var dn=i({component:rt({typeComment:`Vue component to render in the view`}),renderer:P(rt({typeComment:`Custom renderer to render the view component (e.g., ReactRenderer)`})),props:P(R(F(),k()),{typeComment:`Additional props to pass to the component`}),sidebar:P(i({show:v(),label:F()}),{typeComment:`Sidebar configuration. Set show: true to display in sidebar.`})});i({"content.start":P(A(dn),{typeComment:`Components to render before the Introduction/Info section`}),"content.end":P(A(dn),{typeComment:`Components to render at specific views in the API Reference`})}),i({onInit:P(I()),onConfigChange:P(I()),onDestroy:P(I())});var fn=I(),pn=i({dashboardUrl:F({default:`https://dashboard.scalar.com`}),registryUrl:F({default:`https://registry.scalar.com`}),proxyUrl:F({default:`https://proxy.scalar.com`}),apiBaseUrl:F({default:`https://api.scalar.com`})},{typeComment:`External service URLs used by Scalar packages`}),mn=i({title:P(F(),{typeComment:`The title of the OpenAPI document.`}),slug:P(F(),{typeComment:`The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. If no title is used, it will just use the index.`}),authentication:P(k(),{typeComment:`Prefill authentication`}),baseServerURL:P(F(),{typeComment:`Base URL for the API server`}),hideClientButton:v({default:!1,typeComment:`Whether to hide the client button`}),proxyUrl:P(F(),{typeComment:`URL to a request proxy for the API client`}),oauth2RedirectUri:P(F(),{typeComment:`Default OAuth 2.0 redirect URI used to prefill auth flows in the API client.`}),searchHotKey:P(L([j(`a`),j(`b`),j(`c`),j(`d`),j(`e`),j(`f`),j(`g`),j(`h`),j(`i`),j(`j`),j(`k`),j(`l`),j(`m`),j(`n`),j(`o`),j(`p`),j(`q`),j(`r`),j(`s`),j(`t`),j(`u`),j(`v`),j(`w`),j(`x`),j(`y`),j(`z`)]),{typeComment:`Key used with CTRL/CMD to open the search modal (defaults to 'k' e.g. CMD+k)`}),servers:P(A(k()),{typeComment:`List of OpenAPI server objects`}),showSidebar:v({default:!0,typeComment:`Whether to show the sidebar`}),showDeveloperTools:L([j(`localhost`),j(`always`),j(`never`)],{typeComment:`Whether and when to show the developer tools.`}),showToolbar:L([j(`localhost`),j(`always`),j(`never`)],{typeComment:`@deprecated Use showDeveloperTools instead`}),operationTitleSource:L([j(`summary`),j(`path`)],{typeComment:`Whether to use the operation summary or the operation path for the sidebar and search`}),theme:L([j(`default`),j(`alternate`),j(`moon`),j(`purple`),j(`solarized`),j(`bluePlanet`),j(`deepSpace`),j(`saturn`),j(`kepler`),j(`elysiajs`),j(`fastify`),j(`mars`),j(`laserwave`),j(`none`)],{typeComment:`A string to use one of the color presets`}),_integration:P(L([j(`adonisjs`),j(`astro`),j(`docusaurus`),j(`dotnet`),j(`elysiajs`),j(`express`),j(`fastapi`),j(`fastify`),j(`go`),j(`hono`),j(`html`),j(`laravel`),j(`litestar`),j(`nestjs`),j(`nextjs`),j(`nitro`),j(`nuxt`),j(`platformatic`),j(`react`),j(`rust`),j(`svelte`),j(`vue`),Fe()]),{typeComment:`Integration type identifier`}),onRequestSent:P(I(),{typeComment:`onRequestSent is fired when a request is sent`}),persistAuth:v({default:!1,typeComment:`Whether to persist auth to local storage`}),telemetry:v({default:!0,typeComment:`Enables / disables telemetry`}),externalUrls:pn}),hn=L([F(),Fe(),R(F(),k()),I()]),gn=C([mn,i({default:v({default:!1}),url:P(F(),{typeComment:`URL to an OpenAPI/Swagger document`}),content:P(hn,{typeComment:`Directly embed the OpenAPI document. Can be a string, object, function returning an object, or null. It is recommended to pass a URL instead of content.`}),title:P(F(),{typeComment:"The title of the OpenAPI document. Used for the page title and the document name in the dropdown. With multiple `sources`, set this per source."}),slug:P(F(),{typeComment:"The slug of the OpenAPI document used in the URL. If none is passed, the title will be used. With multiple `sources`, set this per source."}),spec:P(i({url:P(F()),content:P(hn)}),{typeComment:"@deprecated Use `url` and `content` on the top level instead."}),agent:P(i({key:P(F()),disabled:P(v()),hideAddApi:P(v(),{typeComment:`When true, hide the control to add more APIs in the agent chat. Only preloaded/registry documents are shown; the public API list is not offered.`})}),{typeComment:`Agent Scalar configuration`})}),i({layout:L([j(`modern`),j(`classic`)],{typeComment:`The layout to use for the references`}),proxy:P(F(),{typeComment:`@deprecated Use proxyUrl instead`}),fetch:P(I(),{typeComment:"@deprecated Use `customFetch` instead."}),customFetch:P(I(),{typeComment:"Custom fetch function used both when loading the OpenAPI document and when sending requests from the API client. Can be used to add custom headers, attach credentials (for example `credentials: 'include'`), handle auth, etc."}),plugins:P(A(fn),{typeComment:`Plugins for the API reference`}),pluginUrls:P(A(F()),{typeComment:"URLs of ESM modules that provide additional plugins for the API reference. Each module is loaded with a dynamic `import()` before the API reference mounts, and its default export is registered as a plugin. Unlike `plugins`, this option is JSON-serializable, so integrations that pass their configuration as JSON can load plugins without replacing the whole bundle. Only supported by the standalone browser build (`Scalar.createApiReference`)."}),isEditable:v({default:!1,typeComment:`Allows the user to inject an editor for the spec`}),hideModels:v({default:!1,typeComment:`Whether to show models in the sidebar, search, and content.`}),modelsSectionLabel:P(L([j(`Models`),j(`Schemas`),F()]),{typeComment:"Label for the components.schemas section in the sidebar, content, and search. Use `Schemas` for OpenAPI terminology."}),localization:P(i({locale:P(F()),direction:P(L([j(`auto`),j(`ltr`),j(`rtl`)])),translations:P(R(F(),k()))}),{typeComment:`API Reference UI localization. Select a built-in locale, override labels, and control LTR/RTL rendering.`}),documentDownloadType:L([j(`both`),j(`yaml`),j(`json`),j(`direct`),j(`none`)],{typeComment:"Sets the file type of the document to download, set to `none` to hide the download button"}),hideDownloadButton:P(v(),{typeComment:"@deprecated Use `documentDownloadType: 'none'` instead"}),hideTestRequestButton:v({default:!1,typeComment:`Whether to show the "Test Request" button`}),hideSearch:v({default:!1,typeComment:`Whether to show the sidebar search bar`}),showOperationId:v({default:!1,typeComment:`Whether to show the operationId`}),darkMode:P(v(),{typeComment:`Whether dark mode is on or off initially (light mode)`}),forceDarkModeState:P(L([j(`dark`),j(`light`)]),{typeComment:`forceDarkModeState makes it always this state no matter what`}),hideDarkModeToggle:v({default:!1,typeComment:`Whether to show the dark mode toggle`}),metaData:P(k(),{typeComment:`If used, passed data will be added to the HTML header. @see https://unhead.unjs.io/usage/composables/use-seo-meta`}),favicon:P(F(),{typeComment:`Path to a favicon image`}),hiddenClients:P(L([R(F(),L([v(),A(F())])),A(F()),j(!0)]),{typeComment:"List of httpsnippet clients to hide from the clients menu. By default hides Unirest, pass `[]` to show all clients"}),defaultHttpClient:P(i({targetKey:F(),clientKey:F()}),{typeComment:`Determine the HTTP client that is selected by default`}),customCss:P(F(),{typeComment:`Custom CSS to be added to the page`}),onServerChange:P(I(),{typeComment:`onServerChange is fired on selected server change`}),onDocumentSelect:P(I(),{typeComment:`onDocumentSelect is fired when the config is selected`}),onLoaded:P(I(),{typeComment:`Callback fired when the reference is fully loaded`}),onBeforeRequest:P(I(),{typeComment:`Fired before the outbound request is built; callback receives a mutable request builder. Experimental API.`}),onRequestBuilt:P(I(),{typeComment:`Fired right before the outbound request is sent; callback receives the exact fetch Request that goes over the wire. Experimental API.`}),onShowMore:P(I(),{typeComment:`onShowMore is fired when the user clicks the "Show more" button on the references`}),onSidebarClick:P(I(),{typeComment:`onSidebarClick is fired when the user clicks on a sidebar item`}),pathRouting:P(i({basePath:F()}),{typeComment:`Route using paths instead of hashes, your server MUST support this. @experimental`}),mcp:P(i({name:P(F(),{typeComment:`Display name for the MCP server`}),url:P(F(),{typeComment:`URL of the MCP server`}),disabled:P(v(),{typeComment:`When true, disables the MCP integration`})}),{typeComment:`MCP (Model Context Protocol) configuration. When provided, enables MCP integration with the given name and url.`}),generateHeadingSlug:P(I(),{typeComment:`Customize the heading portion of the hash`}),generateModelSlug:P(I(),{typeComment:`Customize the model portion of the hash`}),generateTagSlug:P(I(),{typeComment:`Customize the tag portion of the hash`}),generateOperationSlug:P(I(),{typeComment:`Customize the operation portion of the hash`}),generateWebhookSlug:P(I(),{typeComment:`Customize the webhook portion of the hash`}),setPageTitle:P(I(),{typeComment:`Customize the browser tab title for the section currently in view`}),redirect:P(I(),{typeComment:`To handle redirects, pass a function that receives the current path/hash and passes that to history.replaceState`}),withDefaultFonts:v({default:!0,typeComment:`Whether to include default fonts`}),defaultOpenFirstTag:v({default:!0,typeComment:`Whether to expand the first tag in the sidebar when no specific URL target is present`}),defaultOpenAllTags:v({default:!1,typeComment:`Whether to expand all tags by default. Warning: this can cause performance issues on big documents`}),expandAllModelSections:v({default:!1,typeComment:`Whether to expand all models by default. Warning: this can cause performance issues on big documents`}),expandAllResponses:v({default:!1,typeComment:`Whether to expand all responses by default. Warning: this can cause performance issues on big documents`}),expandAllSchemaProperties:v({default:!1,typeComment:`Whether to expand all nested schema properties by default. The Show/Hide Child Attributes toggle remains available so nested sections can still be collapsed manually. Warning: this can cause performance issues on big documents`}),tagsSorter:P(L([j(`alpha`),I()]),{typeComment:`Function to sort tags`}),operationsSorter:P(L([j(`alpha`),j(`method`),I()]),{typeComment:`Function to sort operations`}),orderSchemaPropertiesBy:L([j(`alpha`),j(`preserve`)],{typeComment:`Order the schema properties by`}),orderRequiredPropertiesFirst:v({default:!0,typeComment:`Sort the schema properties by required ones first`})})]),_n=`https://api.scalar.com/request-proxy`,vn=`https://proxy.scalar.com`,yn=e=>{let t=un(gn,e);return t.hideDownloadButton&&(console.warn(`[DEPRECATED] You're using the deprecated 'hideDownloadButton' attribute. Use 'documentDownloadType: 'none'' instead.`),t.documentDownloadType=`none`),t.spec?.url&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.url' attribute. Remove the spec prefix and move the 'url' attribute to the top level.`),t.url=t.spec.url,delete t.spec),t.spec?.content&&(console.warn(`[DEPRECATED] You're using the deprecated 'spec.content' attribute. Remove the spec prefix and move the 'content' attribute to the top level.`),t.content=t.spec.content,delete t.spec),t.proxy&&(console.warn(`[DEPRECATED] You're using the deprecated 'proxy' attribute. Use 'proxyUrl' instead.`),t.proxyUrl||=t.proxy,delete t.proxy),t.fetch&&(console.warn(`[DEPRECATED] You're using the deprecated 'fetch' attribute. Use 'customFetch' instead.`),t.customFetch||=t.fetch,delete t.fetch),t.proxyUrl===_n&&(console.warn(`[DEPRECATED] Warning: configuration.proxyUrl points to our old proxy (${_n}).`),console.warn(`[DEPRECATED] We are overwriting the value and use the new proxy URL (${vn}) instead.`),console.warn(`[DEPRECATED] Action Required: You should manually update your configuration to use the new URL (${vn}). Read more: https://github.com/scalar/scalar`),t.proxyUrl=vn),t.showToolbar&&t.showToolbar!==`localhost`&&(console.warn(`[DEPRECATED] You're using the deprecated 'showToolbar' attribute. Use 'showDeveloperTools' instead.`),t.showDeveloperTools=t.showToolbar,delete t.showToolbar),t.modelsSectionLabel??=He,t},bn={key:0},xn={key:1},Sn={key:2},Cn={key:3},wn={key:4},Tn={key:5},En=Ht({name:`ScalarIconArrowUp`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=n(e);return(e,n)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(r)===`bold`?(B(),H(`g`,bn,[...n[0]||=[U(`path`,{d:`M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z`},null,-1)]])):V(r)===`duotone`?(B(),H(`g`,xn,[...n[1]||=[U(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`},null,-1),U(`path`,{d:`M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z`},null,-1)]])):V(r)===`fill`?(B(),H(`g`,Sn,[...n[2]||=[U(`path`,{d:`M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z`},null,-1)]])):V(r)===`light`?(B(),H(`g`,Cn,[...n[3]||=[U(`path`,{d:`M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z`},null,-1)]])):V(r)===`regular`?(B(),H(`g`,wn,[...n[4]||=[U(`path`,{d:`M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z`},null,-1)]])):V(r)===`thin`?(B(),H(`g`,Tn,[...n[5]||=[U(`path`,{d:`M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z`},null,-1)]])):Yt(``,!0)],16))}}),Dn={key:0},On={key:1},kn={key:2},An={key:3},jn={key:4},Mn={key:5},Nn=Ht({name:`ScalarIconLockSimple`,props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=n(e);return(e,n)=>(B(),H(`svg`,Pt({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,fill:`currentColor`},V(t)),[zt(e.$slots,`default`),V(r)===`bold`?(B(),H(`g`,Dn,[...n[0]||=[U(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Z`},null,-1)]])):V(r)===`duotone`?(B(),H(`g`,On,[...n[1]||=[U(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`},null,-1),U(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):V(r)===`fill`?(B(),H(`g`,kn,[...n[2]||=[U(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96Z`},null,-1)]])):V(r)===`light`?(B(),H(`g`,An,[...n[3]||=[U(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Z`},null,-1)]])):V(r)===`regular`?(B(),H(`g`,jn,[...n[4]||=[U(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Z`},null,-1)]])):V(r)===`thin`?(B(),H(`g`,Mn,[...n[5]||=[U(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Z`},null,-1)]])):Yt(``,!0)],16))}});function Pn(e){switch(e.errorType){case G.ArrayContains:return`Expected array to contain at least one matching value`;case G.ArrayMaxContains:return`Expected array to contain no more than ${e.schema.maxContains} matching values`;case G.ArrayMinContains:return`Expected array to contain at least ${e.schema.minContains} matching values`;case G.ArrayMaxItems:return`Expected array length to be less or equal to ${e.schema.maxItems}`;case G.ArrayMinItems:return`Expected array length to be greater or equal to ${e.schema.minItems}`;case G.ArrayUniqueItems:return`Expected array elements to be unique`;case G.Array:return`Expected array`;case G.AsyncIterator:return`Expected AsyncIterator`;case G.BigIntExclusiveMaximum:return`Expected bigint to be less than ${e.schema.exclusiveMaximum}`;case G.BigIntExclusiveMinimum:return`Expected bigint to be greater than ${e.schema.exclusiveMinimum}`;case G.BigIntMaximum:return`Expected bigint to be less or equal to ${e.schema.maximum}`;case G.BigIntMinimum:return`Expected bigint to be greater or equal to ${e.schema.minimum}`;case G.BigIntMultipleOf:return`Expected bigint to be a multiple of ${e.schema.multipleOf}`;case G.BigInt:return`Expected bigint`;case G.Boolean:return`Expected boolean`;case G.DateExclusiveMinimumTimestamp:return`Expected Date timestamp to be greater than ${e.schema.exclusiveMinimumTimestamp}`;case G.DateExclusiveMaximumTimestamp:return`Expected Date timestamp to be less than ${e.schema.exclusiveMaximumTimestamp}`;case G.DateMinimumTimestamp:return`Expected Date timestamp to be greater or equal to ${e.schema.minimumTimestamp}`;case G.DateMaximumTimestamp:return`Expected Date timestamp to be less or equal to ${e.schema.maximumTimestamp}`;case G.DateMultipleOfTimestamp:return`Expected Date timestamp to be a multiple of ${e.schema.multipleOfTimestamp}`;case G.Date:return`Expected Date`;case G.Function:return`Expected function`;case G.IntegerExclusiveMaximum:return`Expected integer to be less than ${e.schema.exclusiveMaximum}`;case G.IntegerExclusiveMinimum:return`Expected integer to be greater than ${e.schema.exclusiveMinimum}`;case G.IntegerMaximum:return`Expected integer to be less or equal to ${e.schema.maximum}`;case G.IntegerMinimum:return`Expected integer to be greater or equal to ${e.schema.minimum}`;case G.IntegerMultipleOf:return`Expected integer to be a multiple of ${e.schema.multipleOf}`;case G.Integer:return`Expected integer`;case G.IntersectUnevaluatedProperties:return`Unexpected property`;case G.Intersect:return`Expected all values to match`;case G.Iterator:return`Expected Iterator`;case G.Literal:return`Expected ${typeof e.schema.const==`string`?`'${e.schema.const}'`:e.schema.const}`;case G.Never:return`Never`;case G.Not:return`Value should not match`;case G.Null:return`Expected null`;case G.NumberExclusiveMaximum:return`Expected number to be less than ${e.schema.exclusiveMaximum}`;case G.NumberExclusiveMinimum:return`Expected number to be greater than ${e.schema.exclusiveMinimum}`;case G.NumberMaximum:return`Expected number to be less or equal to ${e.schema.maximum}`;case G.NumberMinimum:return`Expected number to be greater or equal to ${e.schema.minimum}`;case G.NumberMultipleOf:return`Expected number to be a multiple of ${e.schema.multipleOf}`;case G.Number:return`Expected number`;case G.Object:return`Expected object`;case G.ObjectAdditionalProperties:return`Unexpected property`;case G.ObjectMaxProperties:return`Expected object to have no more than ${e.schema.maxProperties} properties`;case G.ObjectMinProperties:return`Expected object to have at least ${e.schema.minProperties} properties`;case G.ObjectRequiredProperty:return`Expected required property`;case G.Promise:return`Expected Promise`;case G.RegExp:return`Expected string to match regular expression`;case G.StringFormatUnknown:return`Unknown format '${e.schema.format}'`;case G.StringFormat:return`Expected string to match '${e.schema.format}' format`;case G.StringMaxLength:return`Expected string length less or equal to ${e.schema.maxLength}`;case G.StringMinLength:return`Expected string length greater or equal to ${e.schema.minLength}`;case G.StringPattern:return`Expected string to match '${e.schema.pattern}'`;case G.String:return`Expected string`;case G.Symbol:return`Expected symbol`;case G.TupleLength:return`Expected tuple to have ${e.schema.maxItems||0} elements`;case G.Tuple:return`Expected tuple`;case G.Uint8ArrayMaxByteLength:return`Expected byte length less or equal to ${e.schema.maxByteLength}`;case G.Uint8ArrayMinByteLength:return`Expected byte length greater or equal to ${e.schema.minByteLength}`;case G.Uint8Array:return`Expected Uint8Array`;case G.Undefined:return`Expected undefined`;case G.Union:return`Expected union value`;case G.Void:return`Expected void`;case G.Kind:return`Expected kind '${e.schema[y]}'`;default:return`Unknown error type`}}var Fn=Pn;function In(){return Fn}var G;(function(e){e[e.ArrayContains=0]=`ArrayContains`,e[e.ArrayMaxContains=1]=`ArrayMaxContains`,e[e.ArrayMaxItems=2]=`ArrayMaxItems`,e[e.ArrayMinContains=3]=`ArrayMinContains`,e[e.ArrayMinItems=4]=`ArrayMinItems`,e[e.ArrayUniqueItems=5]=`ArrayUniqueItems`,e[e.Array=6]=`Array`,e[e.AsyncIterator=7]=`AsyncIterator`,e[e.BigIntExclusiveMaximum=8]=`BigIntExclusiveMaximum`,e[e.BigIntExclusiveMinimum=9]=`BigIntExclusiveMinimum`,e[e.BigIntMaximum=10]=`BigIntMaximum`,e[e.BigIntMinimum=11]=`BigIntMinimum`,e[e.BigIntMultipleOf=12]=`BigIntMultipleOf`,e[e.BigInt=13]=`BigInt`,e[e.Boolean=14]=`Boolean`,e[e.DateExclusiveMaximumTimestamp=15]=`DateExclusiveMaximumTimestamp`,e[e.DateExclusiveMinimumTimestamp=16]=`DateExclusiveMinimumTimestamp`,e[e.DateMaximumTimestamp=17]=`DateMaximumTimestamp`,e[e.DateMinimumTimestamp=18]=`DateMinimumTimestamp`,e[e.DateMultipleOfTimestamp=19]=`DateMultipleOfTimestamp`,e[e.Date=20]=`Date`,e[e.Function=21]=`Function`,e[e.IntegerExclusiveMaximum=22]=`IntegerExclusiveMaximum`,e[e.IntegerExclusiveMinimum=23]=`IntegerExclusiveMinimum`,e[e.IntegerMaximum=24]=`IntegerMaximum`,e[e.IntegerMinimum=25]=`IntegerMinimum`,e[e.IntegerMultipleOf=26]=`IntegerMultipleOf`,e[e.Integer=27]=`Integer`,e[e.IntersectUnevaluatedProperties=28]=`IntersectUnevaluatedProperties`,e[e.Intersect=29]=`Intersect`,e[e.Iterator=30]=`Iterator`,e[e.Kind=31]=`Kind`,e[e.Literal=32]=`Literal`,e[e.Never=33]=`Never`,e[e.Not=34]=`Not`,e[e.Null=35]=`Null`,e[e.NumberExclusiveMaximum=36]=`NumberExclusiveMaximum`,e[e.NumberExclusiveMinimum=37]=`NumberExclusiveMinimum`,e[e.NumberMaximum=38]=`NumberMaximum`,e[e.NumberMinimum=39]=`NumberMinimum`,e[e.NumberMultipleOf=40]=`NumberMultipleOf`,e[e.Number=41]=`Number`,e[e.ObjectAdditionalProperties=42]=`ObjectAdditionalProperties`,e[e.ObjectMaxProperties=43]=`ObjectMaxProperties`,e[e.ObjectMinProperties=44]=`ObjectMinProperties`,e[e.ObjectRequiredProperty=45]=`ObjectRequiredProperty`,e[e.Object=46]=`Object`,e[e.Promise=47]=`Promise`,e[e.RegExp=48]=`RegExp`,e[e.StringFormatUnknown=49]=`StringFormatUnknown`,e[e.StringFormat=50]=`StringFormat`,e[e.StringMaxLength=51]=`StringMaxLength`,e[e.StringMinLength=52]=`StringMinLength`,e[e.StringPattern=53]=`StringPattern`,e[e.String=54]=`String`,e[e.Symbol=55]=`Symbol`,e[e.TupleLength=56]=`TupleLength`,e[e.Tuple=57]=`Tuple`,e[e.Uint8ArrayMaxByteLength=58]=`Uint8ArrayMaxByteLength`,e[e.Uint8ArrayMinByteLength=59]=`Uint8ArrayMinByteLength`,e[e.Uint8Array=60]=`Uint8Array`,e[e.Undefined=61]=`Undefined`,e[e.Union=62]=`Union`,e[e.Void=63]=`Void`})(G||={});var Ln=class extends ye{constructor(e){super(`Unknown type`),this.schema=e}};function Rn(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function K(e){return e!==void 0}var zn=class{constructor(e){this.iterator=e}[Symbol.iterator](){return this.iterator}First(){let e=this.iterator.next();return e.done?void 0:e.value}};function q(e,t,n,r,i=[]){return{type:e,schema:t,path:n,value:r,message:In()({errorType:e,path:n,schema:t,value:r,errors:i}),errors:i}}function*Bn(e,t,n,r){}function*Vn(e,t,n,r){}function*Hn(e,t,n,r){if(!_(r))return yield q(G.Array,e,n,r);K(e.minItems)&&!(r.length>=e.minItems)&&(yield q(G.ArrayMinItems,e,n,r)),K(e.maxItems)&&!(r.length<=e.maxItems)&&(yield q(G.ArrayMaxItems,e,n,r));for(let i=0;i<r.length;i++)yield*J(e.items,t,`${n}/${i}`,r[i]);if(e.uniqueItems===!0&&!(function(){let e=new Set;for(let t of r){let n=de(t);if(e.has(n))return!1;e.add(n)}return!0})()&&(yield q(G.ArrayUniqueItems,e,n,r)),!(K(e.contains)||K(e.minContains)||K(e.maxContains)))return;let i=K(e.contains)?e.contains:ce(),a=r.reduce((e,r,a)=>J(i,t,`${n}${a}`,r).next().done===!0?e+1:e,0);a===0&&(yield q(G.ArrayContains,e,n,r)),Ke(e.minContains)&&a<e.minContains&&(yield q(G.ArrayMinContains,e,n,r)),Ke(e.maxContains)&&a>e.maxContains&&(yield q(G.ArrayMaxContains,e,n,r))}function*Un(e,t,n,r){oe(r)||(yield q(G.AsyncIterator,e,n,r))}function*Wn(e,t,n,r){if(!gt(r))return yield q(G.BigInt,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.BigIntExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.BigIntExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.BigIntMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.BigIntMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==BigInt(0)&&(yield q(G.BigIntMultipleOf,e,n,r))}function*Gn(e,t,n,r){re(r)||(yield q(G.Boolean,e,n,r))}function*Kn(e,t,n,r){yield*J(e.returns,t,n,r.prototype)}function*qn(e,t,n,r){if(!je(r))return yield q(G.Date,e,n,r);K(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)&&(yield q(G.DateExclusiveMaximumTimestamp,e,n,r)),K(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)&&(yield q(G.DateExclusiveMinimumTimestamp,e,n,r)),K(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)&&(yield q(G.DateMaximumTimestamp,e,n,r)),K(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)&&(yield q(G.DateMinimumTimestamp,e,n,r)),K(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0&&(yield q(G.DateMultipleOfTimestamp,e,n,r))}function*Jn(e,t,n,r){De(r)||(yield q(G.Function,e,n,r))}function*Yn(e,t,n,r){let i=globalThis.Object.values(e.$defs),a=e.$defs[e.$ref];yield*J(a,[...t,...i],n,r)}function*Xn(e,t,n,r){if(!Pe(r))return yield q(G.Integer,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.IntegerExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.IntegerExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.IntegerMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.IntegerMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.IntegerMultipleOf,e,n,r))}function*Zn(e,t,n,r){let i=!1;for(let a of e.allOf)for(let e of J(a,t,n,r))i=!0,yield e;if(i)return yield q(G.Intersect,e,n,r);if(e.unevaluatedProperties===!1){let t=new RegExp(b(e));for(let i of Object.getOwnPropertyNames(r))t.test(i)||(yield q(G.IntersectUnevaluatedProperties,e,`${n}/${i}`,r))}if(typeof e.unevaluatedProperties==`object`){let i=new RegExp(b(e));for(let a of Object.getOwnPropertyNames(r))if(!i.test(a)){let i=J(e.unevaluatedProperties,t,`${n}/${a}`,r[a]).next();i.done||(yield i.value)}}}function*Qn(e,t,n,r){pe(r)||(yield q(G.Iterator,e,n,r))}function*$n(e,t,n,r){r!==e.const&&(yield q(G.Literal,e,n,r))}function*er(e,t,n,r){yield q(G.Never,e,n,r)}function*tr(e,t,n,r){J(e.not,t,n,r).next().done===!0&&(yield q(G.Not,e,n,r))}function*nr(e,t,n,i){r(i)||(yield q(G.Null,e,n,i))}function*rr(e,t,n,r){if(!Te.IsNumberLike(r))return yield q(G.Number,e,n,r);K(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)&&(yield q(G.NumberExclusiveMaximum,e,n,r)),K(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)&&(yield q(G.NumberExclusiveMinimum,e,n,r)),K(e.maximum)&&!(r<=e.maximum)&&(yield q(G.NumberMaximum,e,n,r)),K(e.minimum)&&!(r>=e.minimum)&&(yield q(G.NumberMinimum,e,n,r)),K(e.multipleOf)&&r%e.multipleOf!==0&&(yield q(G.NumberMultipleOf,e,n,r))}function*ir(e,t,n,r){if(!Te.IsObjectLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.ObjectMaxProperties,e,n,r));let i=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),o=Object.getOwnPropertyNames(r);for(let t of i)o.includes(t)||(yield q(G.ObjectRequiredProperty,e.properties[t],`${n}/${Rn(t)}`,void 0));if(e.additionalProperties===!1)for(let t of o)a.includes(t)||(yield q(G.ObjectAdditionalProperties,e,`${n}/${Rn(t)}`,r[t]));if(typeof e.additionalProperties==`object`)for(let i of o)a.includes(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(i)}`,r[i]));for(let i of a){let a=e.properties[i];e.required&&e.required.includes(i)?(yield*J(a,t,`${n}/${Rn(i)}`,r[i]),h(e)&&!(i in r)&&(yield q(G.ObjectRequiredProperty,a,`${n}/${Rn(i)}`,void 0))):Te.IsExactOptionalProperty(r,i)&&(yield*J(a,t,`${n}/${Rn(i)}`,r[i]))}}function*ar(e,t,n,r){xt(r)||(yield q(G.Promise,e,n,r))}function*or(e,t,n,r){if(!Te.IsRecordLike(r))return yield q(G.Object,e,n,r);K(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)&&(yield q(G.ObjectMinProperties,e,n,r)),K(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties)&&(yield q(G.ObjectMaxProperties,e,n,r));let[i,a]=Object.entries(e.patternProperties)[0],o=new RegExp(i);for(let[e,i]of Object.entries(r))o.test(e)&&(yield*J(a,t,`${n}/${Rn(e)}`,i));if(typeof e.additionalProperties==`object`)for(let[i,a]of Object.entries(r))o.test(i)||(yield*J(e.additionalProperties,t,`${n}/${Rn(i)}`,a));if(e.additionalProperties===!1){for(let[t,i]of Object.entries(r))if(!o.test(t))return yield q(G.ObjectAdditionalProperties,e,`${n}/${Rn(t)}`,i)}}function*sr(e,t,n,r){yield*J(E(e,t),t,n,r)}function*cr(e,t,n,r){if(!ut(r))return yield q(G.String,e,n,r);if(K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),!new RegExp(e.source,e.flags).test(r))return yield q(G.RegExp,e,n,r)}function*lr(e,t,n,r){if(!ut(r))return yield q(G.String,e,n,r);K(e.minLength)&&!(r.length>=e.minLength)&&(yield q(G.StringMinLength,e,n,r)),K(e.maxLength)&&!(r.length<=e.maxLength)&&(yield q(G.StringMaxLength,e,n,r)),ut(e.pattern)&&(new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))),ut(e.format)&&(Se(e.format)?s(e.format)(r)||(yield q(G.StringFormat,e,n,r)):yield q(G.StringFormatUnknown,e,n,r))}function*ur(e,t,n,r){vt(r)||(yield q(G.Symbol,e,n,r))}function*dr(e,t,n,r){if(!ut(r))return yield q(G.String,e,n,r);new RegExp(e.pattern).test(r)||(yield q(G.StringPattern,e,n,r))}function*fr(e,t,n,r){yield*J(E(e,t),t,n,r)}function*pr(e,t,n,r){if(!_(r))return yield q(G.Tuple,e,n,r);if(e.items===void 0&&r.length!==0||r.length!==e.maxItems)return yield q(G.TupleLength,e,n,r);if(e.items)for(let i=0;i<e.items.length;i++)yield*J(e.items[i],t,`${n}/${i}`,r[i])}function*mr(e,t,n,r){Be(r)||(yield q(G.Undefined,e,n,r))}function*hr(e,t,n,r){if(it(e,t,r))return;let i=e.anyOf.map(e=>new zn(J(e,t,n,r)));yield q(G.Union,e,n,r,i)}function*gr(e,t,n,r){if(!tt(r))return yield q(G.Uint8Array,e,n,r);K(e.maxByteLength)&&!(r.length<=e.maxByteLength)&&(yield q(G.Uint8ArrayMaxByteLength,e,n,r)),K(e.minByteLength)&&!(r.length>=e.minByteLength)&&(yield q(G.Uint8ArrayMinByteLength,e,n,r))}function*_r(e,t,n,r){}function*vr(e,t,n,r){Te.IsVoidLike(r)||(yield q(G.Void,e,n,r))}function*yr(e,t,n,r){he(e[y])(e,r)||(yield q(G.Kind,e,n,r))}function*J(e,t,n,r){let i=K(e.$id)?[...t,e]:t,a=e;switch(a[y]){case`Any`:return yield*Bn(a,i,n,r);case`Argument`:return yield*Vn(a,i,n,r);case`Array`:return yield*Hn(a,i,n,r);case`AsyncIterator`:return yield*Un(a,i,n,r);case`BigInt`:return yield*Wn(a,i,n,r);case`Boolean`:return yield*Gn(a,i,n,r);case`Constructor`:return yield*Kn(a,i,n,r);case`Date`:return yield*qn(a,i,n,r);case`Function`:return yield*Jn(a,i,n,r);case`Import`:return yield*Yn(a,i,n,r);case`Integer`:return yield*Xn(a,i,n,r);case`Intersect`:return yield*Zn(a,i,n,r);case`Iterator`:return yield*Qn(a,i,n,r);case`Literal`:return yield*$n(a,i,n,r);case`Never`:return yield*er(a,i,n,r);case`Not`:return yield*tr(a,i,n,r);case`Null`:return yield*nr(a,i,n,r);case`Number`:return yield*rr(a,i,n,r);case`Object`:return yield*ir(a,i,n,r);case`Promise`:return yield*ar(a,i,n,r);case`Record`:return yield*or(a,i,n,r);case`Ref`:return yield*sr(a,i,n,r);case`RegExp`:return yield*cr(a,i,n,r);case`String`:return yield*lr(a,i,n,r);case`Symbol`:return yield*ur(a,i,n,r);case`TemplateLiteral`:return yield*dr(a,i,n,r);case`This`:return yield*fr(a,i,n,r);case`Tuple`:return yield*pr(a,i,n,r);case`Undefined`:return yield*mr(a,i,n,r);case`Union`:return yield*hr(a,i,n,r);case`Uint8Array`:return yield*gr(a,i,n,r);case`Unknown`:return yield*_r(a,i,n,r);case`Void`:return yield*vr(a,i,n,r);default:if(!jt(a[y]))throw new Ln(e);return yield*yr(a,i,n,r)}}function br(...e){return new zn(e.length===3?J(e[0],e[1],``,e[2]):J(e[0],[],``,e[1]))}var xr=Symbol(),Sr=()=>It(xr,!1),Cr=()=>{Ut(xr,!0)},wr=Ht({inheritAttrs:!1,__name:`ScalarFormInput`,props:{is:{default:`button`}},setup(e){let{cx:t}=p(),n=Sr(),r=d({base:[`bg-b-1.5 flex items-center text-c-2 gap-0.75 p-3 text-base`,`outline-offset-[-1px] has-[:focus-visible]:outline`],variants:{grouped:{true:`first:rounded-t-[inherit] last:rounded-b-[inherit]`,false:`rounded shadow-border`},button:{true:`cursor-pointer hover:bg-b-2`}}});return(i,a)=>(B(),qt(Rt(e.is),Pt({type:e.is===`button`?`button`:void 0},V(t)(V(r)({button:e.is===`button`,grouped:V(n)}))),{default:Gt(()=>[zt(i.$slots,`default`)]),_:3},16,[`type`]))}});function Tr(e,t,n){let r=new Map;t.forEach((e,t)=>r.set(e,t));let i=[],a=[];return e.forEach(e=>{let t=r.get(n(e));if(t===void 0){a.push(e);return}i[t]=e}),[...i.filter(e=>e!==void 0),...a]}var Y=({tagsMap:e,name:t,documentId:n,generateId:r})=>(e.get(t)||e.set(t,{id:r({type:`tag`,tag:{name:t},parentId:n}),parentId:n,entries:[],tag:{name:t}}),e.get(t));function Er(e){return e.replace(/!\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/\[([^\]]*)\]\([^)]*\)/g,`$1`).replace(/(\*{3}|_{3})(.+?)\1/g,`$2`).replace(/(\*{2}|_{2})(.+?)\1/g,`$2`).replace(/(\*|_)(.+?)\1/g,`$2`).replace(/~~(.+?)~~/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/<[^>]+>/g,``).replace(/[<>]/g,``).trim()}function Dr(e){let t=e.split(/\r?\n/),n=[],r=!1,i=``,a=0;for(let e=0;e<t.length;e++){let o=t[e]??``,s=o.trimStart();if(r){let e=/^(`{3,}|~{3,})\s*$/.exec(s)?.[1];e&&e[0]===i&&e.length>=a&&(r=!1);continue}else{let e=/^(`{3,}|~{3,})/.exec(s)?.[1];if(e){r=!0,i=e.charAt(0),a=e.length;continue}}if(/^(?: {4}|\t)/.test(o))continue;let c=/^(#{1,6})\s+(.+?)(?:\s+#+\s*)?$/.exec(s),l=c?.[1],u=c?.[2];if(l&&u){let e=Er(u);e&&n.push({depth:l.length,value:e});continue}let d=t[e+1];if(!d||/^(?: {4}|\t)/.test(d))continue;let f=/^(=+|-+)\s*$/.exec(d.trim())?.[1];if(!f)continue;let p=Er(s);p&&(n.push({depth:f[0]===`=`?1:2,value:p}),e++)}return n}var Or=(e={})=>{let t=new Map;return{slug(n){let r=ht(n,e),i=t.get(r);if(i===void 0)return t.set(r,0),r;let a=i+1;return t.set(r,a),`${r}-${a}`},reset(){t.clear()}}},kr=(e,t)=>e.map(e=>({...e,slug:t(e.value)}));function Ar(e){let{slug:t}=Or();return kr(Dr(e),t)}var jr=e=>{let t=Math.min(...e.map(e=>e.depth));return t>=1&&t<=6?t:1},Mr={TITLE:`Introduction`,SLUG:`introduction`},Nr=(e,t,n)=>({id:e({type:`text`,depth:1,slug:Mr.SLUG,parentId:t,info:n,value:Mr.TITLE}),title:Mr.TITLE,type:`text`}),Pr=({generateId:e,parentId:t,info:n})=>{let r=n.description?.trim();if(!r)return[Nr(e,t,n)];let i=Ar(r),a=jr(i),o=[],s=null,c=null;if(!r.startsWith(`#`)){let r=Nr(e,t,n);o.push(r),s=r}for(let r of i){if(r.depth!==a&&r.depth!==a+1)continue;let i={id:e({type:`text`,depth:r.depth,slug:r.slug,parentId:t,info:n,value:r.value}),title:r.value,type:`text`};r.depth===a?(i.children=[],s?(s.children||=[],s.children.push(i)):o.push(i),c=i):c&&c.children?.push(i)}return o},Fr=({ref:e,name:t,generateId:n,parentTag:r,_schema:i,parentId:a})=>{let o=n({name:t,type:`model`,parentTag:r,parentId:a,schema:i}),s=l(i);return{id:o,title:s&&`title`in s&&s.title||t,name:t,ref:e,type:`model`}},Ir=({document:e,tagsMap:t,generateId:n,documentId:r})=>{let i=e.components?.schemas??{},a=[];for(let e in i){if(!Object.hasOwn(i,e))continue;let o=l(i[e],Et);if(x(o))continue;let s=`#/components/schemas/${e}`;o?.[`x-tags`]?o[`x-tags`].forEach(i=>{let{tag:a,id:o}=Y({tagsMap:t,name:i,documentId:r,generateId:n});t.get(i)?.entries.push(Fr({ref:s,name:e,generateId:n,parentTag:{tag:a,id:o},parentId:r}))}):a.push(Fr({ref:s,name:e,generateId:n,_schema:l(i[e]),parentId:r}))}return a},Lr=(...e)=>{for(let t of e){let e=t?.trim();if(e)return e}},Rr=(e,t)=>typeof t.address==`string`&&t.address.length>0?t.address:e,zr=(e,t)=>Lr(e.title,e.summary)??Rr(t,e),Br=(e,t)=>Lr(e.title,e.summary)??t,Vr=(e,t)=>Lr(e.title,e.summary,e.name)??t,Hr=e=>e.match(/^#\/channels\/([^/]+)$/)?.[1],Ur=(e,t)=>{let n=t.channel;if(!n||!(`$ref`in n))return;let r=Hr(n.$ref);if(!r)return;let i=e.channels?.[r];if(i)return{channelName:r,channel:l(i,Et)}},Wr=(e,t,n)=>{let r=t.messages??{};if(e.messages===void 0)return g(r);if(e.messages.length===0)return[];let i=`#/channels/${n}/messages/`,a=new Set;for(let t of e.messages)if(`$ref`in t){if(t.$ref.startsWith(i)){let e=t.$ref.slice(i.length);if(r[e]){a.add(e);continue}}for(let[e,n]of Object.entries(r))n&&`$ref`in n&&n.$ref===t.$ref&&a.add(e)}return[...a]},Gr=e=>{let t=l(e,Et);return{name:t.name,description:t.description}},Kr=(e,t)=>{if(t===`alpha`){e.sort((e,t)=>e.title.localeCompare(t.title));return}if(t===`method`){e.sort((e,t)=>e.action.localeCompare(t.action));return}typeof t==`function`&&e.sort((e,n)=>t({method:e.action,path:e.operationName,ref:e.operationName,httpVerb:e.action},{method:n.action,path:n.operationName,ref:n.operationName,httpVerb:n.action}))},qr=e=>{e.sort((e,t)=>e.title.localeCompare(t.title))},Jr=({channelName:e,channel:t,operationId:n,messageNames:r,generateId:i})=>{let a=r.flatMap(r=>{let a=t.messages?.[r];if(!a)return[];let o=l(a,Et);return x(o)?[]:[{type:`asyncapi-message`,id:i({type:`asyncapi-message`,messageName:r,channelName:e,parentId:n}),title:Vr(o,r),messageName:r,channelName:e}]});return qr(a),a},Yr=({operationName:e,operation:t,channel:n,channelName:r,channelAddress:i,generateId:a,parentId:o})=>{if(x(t))return;let s=a({type:`asyncapi-operation`,operationName:e,parentId:o}),c=Jr({channelName:r,channel:n,operationId:s,messageNames:Wr(t,n,r),generateId:a});return{type:`asyncapi-operation`,id:s,title:Br(t,e),operationName:e,action:t.action,channelName:r,channelAddress:i,children:c.length>0?c:void 0}},Xr=({bucket:e,operationEntries:t,generateId:n,parentId:r,parentTag:i,operationsSorter:a,document:o})=>{if(x(e.channel))return;let s=n({type:`asyncapi-channel`,channelName:e.channelName,parentId:r,parentTag:i}),c=t.flatMap(({operationName:t,operation:r})=>{let i=Yr({operationName:t,operation:r,channel:e.channel,channelName:e.channelName,channelAddress:e.channelAddress,generateId:n,parentId:s});return i?[i]:[]});if(Kr(c,a),c.length===0)return;let l=o.channels?.[e.channelName];return l&&!(`$ref`in l)&&(l[`x-scalar-order`]=c.map(e=>e.id)),{type:`asyncapi-channel`,id:s,title:zr(e.channel,e.channelName),channelName:e.channelName,channelAddress:e.channelAddress,children:c}},Zr=({tag:e,generateId:t,children:n,parentId:r})=>{let i=t({type:`tag`,tag:e,parentId:r,isGroup:!1}),a=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{type:`tag`,id:i,title:a,name:e.name||a,description:e.description,children:n,isGroup:!1,isWebhooks:!1}},Qr=({tagKeys:e,tagsMap:t,documentId:n,options:{tagsSorter:r,generateId:i},sortOrder:a})=>{let o=e.flatMap(e=>{let{tag:r,entries:a}=Y({tagsMap:t,name:e,documentId:n,generateId:i});if(x(r))return[];let o=r[`x-scalar-order`];return Zr({tag:r,generateId:i,children:o?Tr(a,o,e=>e.id):a,parentId:n})});return a?Tr(o,a,e=>e.id):(r===`alpha`?o.sort((e,t)=>e.title.localeCompare(t.title)):typeof r==`function`&&o.sort((e,a)=>r(Y({tagsMap:t,name:e.name,documentId:n,generateId:i}).tag,Y({tagsMap:t,name:a.name,documentId:n,generateId:i}).tag)),o)},$r=(e,t,n)=>{let r=e.get(t);if(r)return r;let i={channelName:t,channel:n,channelAddress:Rr(t,n),channelTags:n.tags?.map(Gr)??[],operations:[]};return e.set(t,i),i},ei=e=>{let t=new Map;for(let[n,r]of Object.entries(e.channels??{})){if(!r)continue;let e=l(r,Et);x(e)||$r(t,n,e)}for(let[n,r]of Object.entries(e.operations??{})){if(!r)continue;let i=l(r,Et);if(x(i))continue;let a=Ur(e,i);a&&$r(t,a.channelName,a.channel).operations.push({operationName:n,operation:i})}return t},ti=(e,t,n)=>{let{generateId:r,operationsSorter:i,tagsSorter:a,hideModels:o,modelsSectionLabel:s}=ae(e,n),c=r({type:`document`,info:t.info,name:e}),u=ei(t),d=new Map,f=[];for(let e of u.values()){if(e.channelTags.length===0){let n=Xr({bucket:e,operationEntries:e.operations,generateId:r,parentId:c,operationsSorter:i,document:t});n&&f.push(n)}for(let n of e.channelTags){let{id:a,entries:o}=Y({tagsMap:d,name:n.name??`Untitled Tag`,documentId:c,generateId:r});if(o.some(t=>t.type===`asyncapi-channel`&&t.channelName===e.channelName))continue;let s=Xr({bucket:e,operationEntries:e.operations,generateId:r,parentId:a,parentTag:{tag:n,id:a},operationsSorter:i,document:t});s&&o.push(s)}}let p=t.components?l(t.components,Et):void 0,m=!o&&p?.schemas?Ir({documentId:c,document:{components:p},generateId:r,tagsMap:d}):[],h=Pr({generateId:r,parentId:c,info:t.info});d.size>0&&h.push(...Qr({tagKeys:[...d.keys()],tagsMap:d,documentId:c,options:{tagsSorter:a,generateId:r},sortOrder:t[`x-scalar-order`]})),i===`alpha`&&f.sort((e,t)=>e.title.localeCompare(t.title)),h.push(...f),m.length&&h.push({type:`models`,id:r({type:`model`,parentId:c}),title:s,name:s,children:m});let g=t[`x-scalar-order`],_=g?Tr(h,g,e=>e.id):h;return t[`x-scalar-order`]=N(_.map(e=>e.id)),{id:c,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:_,icon:t[`x-scalar-icon`]}};function ni(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}var ri=e=>{let t=new Set(e[`x-draft-examples`]??[]);if(e.requestBody){let n=l(e.requestBody);Object.values(n.content??{}).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})})}return e.parameters&&e.parameters.forEach(e=>{let n=l(e)??{};`content`in n&&n.content&&Object.values(n.content).forEach(e=>{Object.keys(e.examples??{}).forEach(e=>{t.add(e)})}),`examples`in n&&n.examples&&Object.keys(n.examples??{}).forEach(e=>{t.add(e)})}),Array.from(t)},ii=e=>e.deprecated||e[`x-scalar-stability`]===_t.Deprecated,ai=({ref:e,operation:t,method:n,path:r,generateId:i,parentId:a,parentTag:o,operationTitleSource:s})=>{let c=i({type:`operation`,operation:t,parentTag:o,method:n,path:r,parentId:a}),l=s===`path`?r:t.summary?.trim()?t.summary:r,u=ii(t),d=ri(t).map(e=>({type:`example`,id:i({type:`example`,parentId:c,name:e}),title:e,name:e}));return{id:c,title:l,path:r,method:n,ref:e,type:`operation`,isDeprecated:u,children:d.length?d:void 0}},oi=({document:e,tagsMap:t,generateId:n,documentId:r,operationTitleSource:i})=>{let a=[];return Object.entries(e.paths??{}).forEach(([e,o])=>{Mt(o,(o,s)=>{let c=l(s,Et);if(!c||x(c))return;let u=`#/paths/${ni(e)}/${o}`;c.tags?.length?c.tags.forEach(a=>{let{tag:s,id:l}=Y({tagsMap:t,name:a,documentId:r,generateId:n});t.get(a)?.entries.push(ai({ref:u,operation:c,method:o,path:e,parentTag:{tag:s,id:l},generateId:n,parentId:l,operationTitleSource:i}))}):a.push(ai({ref:u,operation:c,method:o,path:e,generateId:n,parentId:r,operationTitleSource:i}))})}),{untaggedOperations:a}},si=e=>e?Object.fromEntries(Object.entries(e).filter(([e])=>e.startsWith(`x-`))):{},ci=({tag:e,generateId:t,children:n,isGroup:r=!1,parentId:i})=>{let a=t({type:`tag`,tag:e,parentId:i,isGroup:r}),o=e[`x-displayName`]??e.name??`Untitled Tag`;return e[`x-scalar-order`]=n.map(e=>e.id),{id:a,title:o,name:e.name||o,description:e.description,children:n,isGroup:r,isWebhooks:!1,type:`tag`,xKeys:si(N(e))}},li=({_keys:e,tagsMap:t,options:{tagsSorter:n,operationsSorter:r,generateId:i},documentId:a,sortOrder:o})=>{let s=e.flatMap(e=>{let{tag:n,entries:o}=Y({tagsMap:t,name:e,documentId:a,generateId:i});if(x(n))return[];let s=n[`x-scalar-order`];return s===void 0&&(r===`alpha`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.title.localeCompare(t.title):0):r===`method`?o.sort((e,t)=>e.type===`operation`&&t.type===`operation`?e.method.localeCompare(t.method):0):typeof r==`function`&&o.sort((e,t)=>{if(!(e.type===`operation`||e.type===`webhook`)||!(t.type===`operation`||t.type===`webhook`))return 0;let n=e.type===`operation`?e.path:e.name,i=t.type===`operation`?t.path:t.name;return r({method:e.method,path:n,ref:e.ref,httpVerb:e.method},{method:t.method,path:i,ref:t.ref,httpVerb:t.method})})),ci({tag:n,generateId:i,children:s?Tr(o,s,e=>e.id):o,parentId:a,isGroup:!1})});return o?Tr(s,o,e=>e.id):(n===`alpha`?s.sort((e,n)=>{let r=Y({tagsMap:t,name:e.title,documentId:a,generateId:i}).tag[`x-displayName`]||e.title||`Untitled Tag`,o=Y({tagsMap:t,name:n.title,documentId:a,generateId:i}).tag[`x-displayName`]||n.title||`Untitled Tag`;return r.localeCompare(o)}):typeof n==`function`&&s.sort((e,r)=>n(Y({tagsMap:t,name:e.name,documentId:a,generateId:i}).tag,Y({tagsMap:t,name:r.name,documentId:a,generateId:i}).tag)),s)},ui=({document:e,tagsMap:t,documentId:n,options:{generateId:r,tagsSorter:i,operationsSorter:a}})=>e[`x-tagGroups`]?e[`x-tagGroups`].flatMap(e=>{let o=li({_keys:e.tags,tagsMap:t,options:{tagsSorter:i,operationsSorter:a,generateId:r},documentId:n,sortOrder:e[`x-scalar-order`]});return e[`x-scalar-order`]=o.map(e=>e.id),o.length?ci({tag:e,generateId:r,children:o,parentId:n,isGroup:!0}):[]}):li({_keys:Array.from(t.keys()),tagsMap:t,options:{generateId:r,tagsSorter:i,operationsSorter:a},documentId:n,sortOrder:e[`x-scalar-order`]}),di=({ref:e,method:t,name:n,title:r,generateId:i,parentTag:a,webhook:o,isDeprecated:s,parentId:c})=>({id:i({type:`webhook`,name:n,method:t,webhook:o,parentTag:a,parentId:c}),title:r,name:n,ref:e,method:t,type:`webhook`,isDeprecated:s}),fi=({document:e,tagsMap:t,generateId:n,untaggedWebhooksParentId:r,documentId:i})=>{let a=[];return Object.entries(e.webhooks??{}).forEach(([e,o])=>{Mt(o,(o,s)=>{let c=l(s,Et);if(!c||x(c))return;let u=`#/webhooks/${e}/${o}`;c.tags?.length?c.tags.forEach(r=>{let{tag:a,id:s}=Y({tagsMap:t,name:r,documentId:i,generateId:n});t.get(r)?.entries.push(di({ref:u,method:o,name:e,title:c.summary??e,webhook:c,generateId:n,parentTag:{tag:a,id:s},parentId:s,isDeprecated:ii(c)}))}):a.push(di({ref:u,method:o,name:e,title:c.summary??e,generateId:n,isDeprecated:ii(c),webhook:c,parentId:r}))})}),a},pi=(e,t,n)=>{let{hideModels:r,modelsSectionLabel:i,tagsSorter:a,operationsSorter:o,generateId:s,operationTitleSource:c}=ae(e,n),l=s({type:`document`,info:t.info,name:e}),u=new Map(t.tags?.map(e=>[e.name??`Untitled Tag`,{id:s({type:`tag`,tag:e,parentId:l}),parentId:l,tag:e,entries:[]}])??[]),d=Pr({generateId:s,parentId:l,info:t.info}),{untaggedOperations:f}=oi({document:t,tagsMap:u,generateId:s,documentId:l,operationTitleSource:c}),p=s({type:`webhook`,name:``,parentId:l}),m=fi({document:t,generateId:s,tagsMap:u,untaggedWebhooksParentId:p,documentId:l}),h=ui({document:t,tagsMap:u,documentId:l,options:{tagsSorter:a,operationsSorter:o,generateId:s}});if(d.push(...h),d.push(...f),m.length&&d.push({type:`tag`,id:p,title:`Webhooks`,name:`Webhooks`,children:m,isGroup:!1,isWebhooks:!0}),!r&&t.components?.schemas){let e=Ir({documentId:l,document:t,generateId:s,tagsMap:u});e.length&&d.push({type:`models`,id:s({type:`model`,parentId:l}),title:i,name:i,children:e})}let g=t[`x-scalar-order`];return g&&d.sort((e,t)=>{let n=g.indexOf(e.id),r=g.indexOf(t.id);return(n===-1?1/0:n)-(r===-1?1/0:r)}),t[`x-scalar-order`]=N(d.map(e=>e.id)),{id:l,type:`document`,title:t.info?.title?.trim()||`Untitled Document`,name:e,children:d,icon:t[`x-scalar-icon`]}};function mi(e){return e.startsWith(`#`)}var hi=(e,t)=>{Object.assign(e,t)},gi=({hooks:e}={})=>{let t=$t({});return{clearAuthSelectedSchemas:n=>{let r=t[n.documentName];if(!r)return;if(n.type===`document`){delete r.selected.document,e?.onAuthChange?.(n.documentName);return}Oe(n.method),Oe(n.path);let i=r.selected.path?.[n.path];i&&(delete i[n.method],e?.onAuthChange?.(n.documentName))},getAuthSecrets:(e,n)=>t[e]?.secrets?.[n],setAuthSecrets:(n,r,i)=>{t[n]||={secrets:{},selected:{document:void 0,path:void 0}},t[n].secrets[r]=o(Le,i),e?.onAuthChange?.(n)},clearAuthSecrets:(n,r)=>{delete t[n]?.secrets?.[r],e?.onAuthChange?.(n)},getAuthSelectedSchemas:e=>e.type===`document`?t[e.documentName]?.selected?.document:t[e.documentName]?.selected?.path?.[e.path]?.[e.method],setAuthSelectedSchemas:(n,r)=>{t[n.documentName]||={secrets:{},selected:{document:void 0,path:void 0}};let i=t[n.documentName];if(n.type===`document`)i.selected.document=r;else{Oe(n.path),Oe(n.method),i.selected.path||={},i.selected.path[n.path]||={};let e=i.selected.path[n.path];e[n.method]=r}e?.onAuthChange?.(n.documentName)},clearDocumentAuth:n=>{delete t[n],e?.onAuthChange?.(n)},load:n=>{hi(t,o(Ze,n)),Object.keys(n).forEach(t=>{e?.onAuthChange?.(t)})},export:()=>N(t)}},_i=f(Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleIcon`,props:{is:{default:`button`},mode:{default:`light`}},setup(e){let{cx:t}=p(),n=Qt(()=>e.mode===`dark`?`Set light mode`:`Set dark mode`);return(r,i)=>(B(),qt(Rt(e.is),Pt({"aria-label":n.value,class:`toggle-icon-${e.mode}`,type:e.is===`button`?`button`:void 0},V(t)(`size-3 flex items-center justify-center text-c-1`)),{default:Gt(()=>[...i[0]||=[U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-sun-ray`},null,-1),U(`span`,{class:`toggle-icon-ellipse`},[U(`span`,{class:`toggle-icon-moon-mask`})],-1)]]),_:1},16,[`aria-label`,`class`,`type`]))}}),[[`__scopeId`,`data-v-60be8692`]]),vi=[`aria-pressed`],yi=Ht({inheritAttrs:!1,__name:`ScalarColorModeToggleButton`,props:{modelValue:{type:Boolean},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let{cx:t}=p(),n=Bt(e,`modelValue`);return(e,r)=>(B(),H(`button`,Pt({"aria-pressed":n.value,type:`button`},V(t)(`group/toggle flex h-6 w-[38px] brightness-lifted -mx-px items-center py-1.5 -my-1.5 relative outline-none`),{onClick:r[0]||=e=>n.value=!n.value}),[r[1]||=U(`div`,{class:`h-3 w-full bg-border mx-px rounded-xl group-focus-visible/toggle:outline -outline-offset-1`},null,-1),U(`div`,{class:Lt([`size-[23px] left-border absolute border rounded-full flex items-center justify-center bg-b-1 group-focus-visible/toggle:outline -outline-offset-1 transition-transform duration-300 ease-in-out`,{"translate-x-[14px]":n.value}])},[Kt(_i,{is:`div`,mode:n.value?`dark`:`light`},null,8,[`mode`])],2)],16,vi))}}),bi=Xt(`dark`),xi=Xt(`light`),Si=L([j(`system`),j(`dark`),j(`light`)]);function Ci(e={}){let{initialColorMode:t=`system`,overrideColorMode:n}=e;function r(){bi.value=o.value===`dark`?`light`:`dark`,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,bi.value)}function i(e){bi.value=e,!(typeof window>`u`)&&window?.localStorage?.setItem(`colorMode`,bi.value)}function a(){return typeof window>`u`?`light`:typeof window?.matchMedia==`function`?window?.matchMedia(`(prefers-color-scheme: dark)`)?.matches?`dark`:`light`:`dark`}let o=Qt({get:()=>bi.value===`system`?xi.value:bi.value,set:i}),s=Qt({get:()=>o.value===`dark`,set:e=>i(e?`dark`:`light`)});function c(){typeof document>`u`||typeof window>`u`||((n??(bi.value===`system`?xi.value:bi.value))===`dark`?(document.body.classList.add(`dark-mode`),document.body.classList.remove(`light-mode`)):(document.body.classList.add(`light-mode`),document.body.classList.remove(`dark-mode`)))}let l=typeof window>`u`?`system`:window?.localStorage?.getItem(`colorMode`),u=rn(Si,l)?l:null;bi.value=n??u??t,tn([bi,xi],c,{immediate:!0});let d=()=>{xi.value=a()},f=Xt(null);return Vt(()=>{xi.value=a(),typeof window<`u`&&typeof window?.matchMedia==`function`&&(f.value=window.matchMedia(`(prefers-color-scheme: dark)`),f.value?.addEventListener(`change`,d))}),Ft(()=>{f.value?.removeEventListener(`change`,d)}),{colorMode:Qt({get:()=>bi.value,set:i}),darkLightMode:o,isDarkMode:s,toggleColorMode:r,setColorMode:i,getSystemModePreference:a}}var wi=Ht({__name:`ScalarColorModeToggle`,props:{variant:{default:`switch`}},setup(e){let{isDarkMode:t,toggleColorMode:n,darkLightMode:r}=Ci(),i=Qt(()=>t.value?`Set light mode`:`Set dark mode`);return(a,o)=>e.variant===`switch`?(B(),qt(yi,{key:0,modelValue:V(t),"onUpdate:modelValue":o[0]||=e=>Jt(t)?t.value=e:null,"aria-label":i.value},null,8,[`modelValue`,`aria-label`])):(B(),qt(_i,{key:1,"aria-label":i.value,mode:V(r),onClick:V(n)},null,8,[`aria-label`,`mode`,`onClick`]))}}),Ti=class{data;next;constructor(e){this.data=e,this.next=null}},Ei=class{front;rear;size;constructor(){this.front=null,this.rear=null,this.size=0}enqueue(e){let t=new Ti(e);this.isEmpty()||!this.rear?(this.front=t,this.rear=t):(this.rear.next=t,this.rear=t),this.size++}dequeue(){if(this.isEmpty()||!this.front)return null;let e=this.front;return this.front=this.front.next,this.front===null&&(this.rear=null),this.size--,e.data}peek(){return this.isEmpty()||!this.front?null:this.front.data}isEmpty(){return this.size===0}getSize(){return this.size}toString(){let e=this.front,t=[];for(;e;)t.push(e.data),e=e.next;return t.join(` -> `)}},Di=`2.6.0`,Oi=`/`;function ki(e){let t=e;return!z(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`1.`)?t:(t.asyncapi=Di,Ai(t),Mi(t),Pi(t),Fi(t),t)}function Ai(e){if(!Array.isArray(e.servers))return;let t={},n=new Set;for(let[r,i]of e.servers.entries()){if(!z(i))continue;let e={};for(let[t,n]of Object.entries(i))t===`scheme`?e.protocol=n:t===`schemeVersion`?e.protocolVersion=n:e[t]=n;let a=ji(typeof i.description==`string`?i.description:``,r,n);n.add(a),t[a]=e}e.servers=t}function ji(e,t,n){let r=ht(e)||`server-${t}`;if(!n.has(r))return r;let i=2;for(;n.has(`${r}-${i}`);)i+=1;return`${r}-${i}`}function Mi(e){if(!z(e.topics)){typeof e.baseTopic==`string`&&delete e.baseTopic;return}let t=typeof e.baseTopic==`string`?e.baseTopic:``,n={};for(let[r,i]of Object.entries(e.topics)){if(!z(i))continue;let e=t?`${t}.${r}`:r,a={};for(let[e,t]of Object.entries(i))if(e===`parameters`){let e=Ni(t);e&&(a.parameters=e)}else e===`publish`||e===`subscribe`?a[e]={message:t}:a[e]=t;n[e]=a}e.channels=n,delete e.topics,delete e.baseTopic}function Ni(e){if(!Array.isArray(e))return;let t={};for(let n of e){if(!z(n))continue;if(typeof n.$ref==`string`){let e=n.$ref.split(`/`).pop()??``;e&&(t[e]={$ref:n.$ref});continue}if(typeof n.name!=`string`)continue;let{name:e,...r}=n;t[e]=r}return t}function Pi(e){if(!z(e.stream))return;let t={};Array.isArray(e.stream.read)&&(t.subscribe={message:{oneOf:e.stream.read}}),Array.isArray(e.stream.write)&&(t.publish={message:{oneOf:e.stream.write}});let n=z(e.channels)?e.channels:{};n[Oi]=t,e.channels=n,delete e.stream}function Fi(e){if(!z(e.events))return;let t={};Array.isArray(e.events.receive)&&(t.subscribe={message:{oneOf:e.events.receive}}),Array.isArray(e.events.send)&&(t.publish={message:{oneOf:e.events.send}});let n=z(e.channels)?e.channels:{};n[Oi]=t,e.channels=n,delete e.events}var Ii=`3.0.0`;function Li(e){let t=e;return!z(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`2.`)?t:(t.asyncapi=Ii,Ui(t),Ri(t),Wi(t),t)}function Ri(e){if(!z(e.servers))return;let t=Hi(e);for(let n of Object.values(e.servers))if(z(n)){if(typeof n.url==`string`){let{host:e,pathname:t}=zi(n.url);n.host=e,t&&(n.pathname=t),delete n.url}Array.isArray(n.security)&&(n.security=Bi(n.security,t))}}function zi(e){let t=e.match(/^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\/(.*)$/),n=t?t[1]:e,r=n.indexOf(`/`);return r===-1?{host:n,pathname:``}:{host:n.slice(0,r),pathname:n.slice(r)}}function Bi(e,t){return e.map(e=>Vi(e,t)).filter(e=>e!==void 0)}function Vi(e,t){if(!z(e))return;let[n]=Object.entries(e);if(!n)return;let[r,i]=n,a=t[r];return z(a)&&a.type===`oauth2`&&Array.isArray(i)?{...a,scopes:i}:{$ref:`#/components/securitySchemes/${r}`}}function Hi(e){if(!z(e.components)||!z(e.components.securitySchemes))return{};let t={};for(let[n,r]of Object.entries(e.components.securitySchemes))z(r)&&(t[n]=r);return t}function Ui(e){if(!(!z(e.components)||!z(e.components.securitySchemes))){for(let t of Object.values(e.components.securitySchemes))if(!(!z(t)||t.type!==`oauth2`||!z(t.flows)))for(let e of Object.values(t.flows))z(e)&&`scopes`in e&&(e.availableScopes=e.scopes,delete e.scopes)}}function Wi(e){if(!z(e.channels))return;let t=Hi(e),n={},r={},i=new Set,a=new Set;for(let[o,s]of Object.entries(e.channels)){if(!z(s))continue;let e=Xi(Yi(o),i),c={address:o},l={};for(let[e,t]of Object.entries(s))if(!(e===`publish`||e===`subscribe`||e===`parameters`)){if(e===`servers`&&Array.isArray(t)){c.servers=t.map(e=>({$ref:`#/servers/${e}`}));continue}c[e]=t}z(s.parameters)&&(c.parameters=s.parameters);let u=Gi(s.publish,l),d=Gi(s.subscribe,l);if(c.messages=l,n[e]=c,z(s.publish)){let n=Xi(qi(s.publish,`receive`,e),a);r[n]=Ji(s.publish,`receive`,e,u,t)}if(z(s.subscribe)){let n=Xi(qi(s.subscribe,`send`,e),a);r[n]=Ji(s.subscribe,`send`,e,d,t)}}e.channels=n,e.operations=r}function Gi(e,t){if(!z(e)||!z(e.message))return[];let n=e.message,r=Array.isArray(n.oneOf)?n.oneOf:[n],i=[];for(let e of r){if(!z(e))continue;let n=Ki(e,t);t[n]=e,i.push(n)}return i}function Ki(e,t){if(typeof e.$ref==`string`){let t=e.$ref.split(`/`).pop();if(t)return t}if(typeof e.name==`string`&&e.name)return e.name;let n=0;for(;`message-${n}`in t;)n+=1;return`message-${n}`}function qi(e,t,n){return typeof e.operationId==`string`&&e.operationId?e.operationId:`${t}-${n}`}function Ji(e,t,n,r,i){let a={action:t,channel:{$ref:`#/channels/${n}`}};for(let[t,n]of Object.entries(e))if(!(t===`message`||t===`operationId`)){if(t===`security`&&Array.isArray(n)){a.security=Bi(n,i);continue}a[t]=n}return a.messages=r.map(e=>({$ref:`#/channels/${n}/messages/${e}`})),a}function Yi(e){return ht(e.replace(/[^a-zA-Z0-9]+/g,` `))}function Xi(e,t){if(!t.has(e))return t.add(e),e;let n=2;for(;t.has(`${e}-${n}`);)n+=1;let r=`${e}-${n}`;return t.add(r),r}var Zi=`3.1.0`,Qi=/^#\/components\/messages\/(.+)$/;function $i(e){let t=e;return!z(t)||typeof t.asyncapi!=`string`||!t.asyncapi.startsWith(`3.0`)?t:(t.asyncapi=Zi,ea(t),t)}function ea(e){if(!z(e.operations)||!z(e.channels))return;let t=e.channels;for(let n of Object.values(e.operations))z(n)&&(ta(n.messages,n.channel,t),z(n.reply)&&ta(n.reply.messages,n.reply.channel??n.channel,t))}function ta(e,t,n){if(!Array.isArray(e))return;let r=ra(t);if(!r)return;let i=n[r];if(z(i)){for(let t=0;t<e.length;t+=1){let n=e[t];if(!z(n)||typeof n.$ref!=`string`)continue;let[,a]=n.$ref.match(Qi)??[];a&&(ia(i,a,n.$ref),e[t]={$ref:`#/channels/${r}/messages/${a}`})}na(e)}}function na(e){let t=new Set,n=0;for(let r of e){if(z(r)&&typeof r.$ref==`string`){if(t.has(r.$ref))continue;t.add(r.$ref)}e[n]=r,n+=1}e.length=n}function ra(e){if(!z(e)||typeof e.$ref!=`string`)return;let t=e.$ref.match(/^#\/channels\/([^/]+)$/);return t?t[1]:void 0}function ia(e,t,n){z(e.messages)||(e.messages={});let r=e.messages;t in r||(r[t]={$ref:n})}function aa(e){return $i(Li(ki(e)))}var oa=(e,t)=>{let n=performance.now(),r=t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r},sa=async(e,t)=>{let n=performance.now(),r=await t(),i=performance.now(),a=Math.round(i-n);return console.info(`${e}: ${a} ms`),r};function ca(e){try{let t=new URL(e);return t.protocol===`http:`||t.protocol===`https:`}catch{return!1}}function la(e){if(!/^\s*(\{)/.test(e.slice(0,500)))return!1;try{return z(JSON.parse(e))}catch{return!1}}function ua(e){return/^\s*(?:-\s*)?[\w\-]+\s*:\s*.+\n.*/.test(e)}function da(e){return!ca(e)&&!ua(e)&&!la(e)}var fa=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},a=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!r.call(i,c)&&c!==o&&e(i,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return i},o=t=>a(e({},`__esModule`,{value:!0}),t),s={};i(s,{default:()=>Re});var c=e=>Array.isArray(e),l=e=>typeof e==`function`,u=e=>e.length===0,d=e=>typeof e==`number`,f=e=>typeof e==`object`&&!!e,p=e=>e instanceof RegExp,m=e=>typeof e==`string`,h=e=>e===void 0,g=e=>{let t=new Map;return n=>{let r=t.get(n);if(r)return r;let i=e(n);return t.set(n,i),i}},_=(e,t,n={})=>{let r={cache:{},input:e,index:0,indexMax:0,options:n,output:[]};if(w(t)(r)&&r.index===e.length)return r.output;throw Error(`Failed to parse at index ${r.indexMax}`)},v=(e,t)=>c(e)?ee(e,t):m(e)?te(e,t):y(e,t),ee=(e,t)=>{let n={};for(let t of e){if(t.length!==1)throw Error(`Invalid character: "${t}"`);let e=t.charCodeAt(0);n[e]=!0}return e=>{let r=e.index,i=e.input;for(;e.index<i.length&&i.charCodeAt(e.index)in n;)e.index+=1;let a=e.index;if(a>r){if(!h(t)&&!e.options.silent){let n=e.input.slice(r,a),o=l(t)?t(n,i,String(r)):t;h(o)||e.output.push(o)}e.indexMax=Math.max(e.indexMax,e.index)}return!0}},y=(e,t)=>{let n=e.source,r=e.flags.replace(/y|$/,`y`),i=new RegExp(n,r);return ae(e=>{i.lastIndex=e.index;let n=i.exec(e.input);if(n){if(!h(t)&&!e.options.silent){let r=l(t)?t(...n,e.input,String(e.index)):t;h(r)||e.output.push(r)}return e.index+=n[0].length,e.indexMax=Math.max(e.indexMax,e.index),!0}else return!1})},te=(e,t)=>n=>{if(n.input.startsWith(e,n.index)){if(!h(t)&&!n.options.silent){let r=l(t)?t(e,n.input,String(n.index)):t;h(r)||n.output.push(r)}return n.index+=e.length,n.indexMax=Math.max(n.indexMax,n.index),!0}else return!1},b=(e,t,n,r)=>{let i=w(e);return ae(ie(C(e=>{let r=0;for(;r<n;){let t=e.index;if(!i(e)||(r+=1,e.index===t))break}return r>=t})))},ne=(e,t)=>b(e,0,1),x=(e,t)=>b(e,0,1/0),re=(e,t)=>{let n=e.map(w);return ae(ie(C(e=>{for(let t=0,r=n.length;t<r;t++)if(!n[t](e))return!1;return!0})))},S=(e,t)=>{let n=e.map(w);return ae(ie(e=>{for(let t=0,r=n.length;t<r;t++)if(n[t](e))return!0;return!1}))},C=(e,t=!1)=>{let n=w(e);return e=>{let r=e.index,i=e.output.length,a=n(e);return(!a||t)&&(e.index=r,e.output.length!==i&&(e.output.length=i)),a}},ie=(e,t)=>w(e),ae=(()=>{let e=0;return t=>{let n=w(t),r=e+=1;return e=>{var t;if(e.options.memoization===!1)return n(e);let i=e.index,a=(t=e.cache)[r]||(t[r]=new Map),o=a.get(i);if(o===!1)return!1;if(d(o))return e.index=o,!0;if(o)return e.index=o.index,o.output?.length&&e.output.push(...o.output),!0;{let t=e.output.length;if(n(e)){let n=e.index,r=e.output.length;if(r>t){let o=e.output.slice(t,r);a.set(i,{index:n,output:o})}else a.set(i,n);return!0}else return a.set(i,!1),!1}}}})(),oe=e=>{let t;return n=>(t||=w(e()),t(n))},w=g(e=>{if(l(e))return u(e)?oe(e):e;if(m(e)||p(e))return v(e);if(c(e))return re(e);if(f(e))return S(Object.values(e));throw Error(`Invalid rule`)}),se=`abcdefghijklmnopqrstuvwxyz`,ce=e=>{let t=``;for(;e>0;)t=se[(e-1)%26]+t,e=Math.floor((e-1)/26);return t},le=e=>{let t=0;for(let n=0,r=e.length;n<r;n++)t=t*26+se.indexOf(e[n])+1;return t},ue=(e,t)=>{if(t<e)return ue(t,e);let n=[];for(;e<=t;)n.push(e++);return n},de=(e,t,n)=>ue(e,t).map(e=>String(e).padStart(n,`0`)),T=(e,t)=>ue(le(e),le(t)).map(ce),E=e=>e,D=e=>fe(t=>_(t,e,{memoization:!1}).join(``)),fe=e=>{let t={};return n=>t[n]??(t[n]=e(n))},pe=v(/^\*\*\/\*$/,`.*`),O=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/,(e,t,n)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}`),me=v(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/,(e,t,n,r)=>`.*${t?``:`(?:^|/)`}${n.replaceAll(`.`,`\\.`)}(?:${r.replaceAll(`,`,`|`).replaceAll(`.`,`\\.`)})`),he=v(/\\./,E),ge=v(/[$.*+?^(){}[\]\|]/,e=>`\\${e}`),_e=v(/./,E),ve=S([v(/^(?:!!)*!(.*)$/,(e,t)=>`(?!^${Ne(t)}$).*?`),v(/^(!!)+/,``)]),ye=S([v(/\/(\*\*\/)+/,`(?:/.+/|/)`),v(/^(\*\*\/)+/,`(?:^|.*/)`),v(/\/(\*\*)$/,`(?:/.*|$)`),v(/\*\*/,`.*`)]),k=S([v(/\*\/(?!\*\*\/)/,`[^/]*/`),v(/\*/,`[^/]*`)]),be=v(`?`,`[^/]`),xe=v(`[`,E),Se=v(`]`,E),Ce=v(/[!^]/,`^/`),we=v(/[a-z]-[a-z]|[0-9]-[0-9]/i,E),Te=S([he,v(/[$.*+?^(){}[\|]/,e=>`\\${e}`),we,v(/[^\]]/,E)]),A=re([xe,ne(Ce),x(Te),Se]),Ee=v(`{`,`(?:`),De=v(`}`,`)`),Oe=re([Ee,S([v(/(\d+)\.\.(\d+)/,(e,t,n)=>de(+t,+n,Math.min(t.length,n.length)).join(`|`)),v(/([a-z]+)\.\.([a-z]+)/,(e,t,n)=>T(t,n).join(`|`)),v(/([A-Z]+)\.\.([A-Z]+)/,(e,t,n)=>T(t.toLowerCase(),n.toLowerCase()).join(`|`).toUpperCase())]),De]),j=v(`{`,`(?:`),ke=v(`}`,`)`),Ae=v(`,`,`|`),je=v(/[$.*+?^(){[\]\|]/,e=>`\\${e}`),Me=v(/[^}]/,E),M=re([j,x(S([ye,k,be,A,Oe,oe(()=>M),he,je,Ae,Me])),ke]),Ne=D(x(S([pe,O,me,ve,ye,k,be,A,Oe,M,he,ge,_e]))),Pe=v(/\\./,E),Fe=v(/./,E),Ie=D(x(S([Pe,v(/\*\*\*+/,`*`),v(/([^/{[(!])\*\*/,(e,t)=>`${t}*`),v(/(^|.)\*\*(?=[^*/)\]}])/,(e,t)=>`${t}*`),Fe]))),Le=(e,t)=>{let n=Array.isArray(e)?e:[e];if(!n.length)return!1;let r=n.map(Le.compile),i=n.every(e=>/(\/(?:\*\*)?|\[\/\])$/.test(e)),a=t.replace(/[\\\/]+/g,`/`).replace(/\/$/,i?`/`:``);return r.some(e=>e.test(a))};Le.compile=e=>RegExp(`^${Ne(Ie(e))}$`,`s`);var Re=Le;return o(s)})();return e.default||e},pa,ma=(e,t)=>(pa||(pa=fa(),fa=null),pa(e,t)),ha=/^[A-Za-z]:\//;function ga(e=``){return e&&e.replace(/\\/g,`/`).replace(ha,e=>e.toUpperCase())}var _a=/^[/\\]{2}/,va=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,ya=/^[A-Za-z]:$/,ba=/^\/([A-Za-z]:)?$/,xa=/.(\.[^./]+|\.)$/,Sa=/^[/\\]|^[a-zA-Z]:[/\\]/,Ca=function(e){if(e.length===0)return`.`;e=ga(e);let t=e.match(_a),n=Oa(e),r=e[e.length-1]===`/`;return e=Da(e,!n),e.length===0?n?`/`:r?`./`:`.`:(r&&(e+=`/`),ya.test(e)&&(e+=`/`),t?n?`//${e}`:`//./${e}`:n&&!Oa(e)?`/${e}`:e)},wa=function(...e){let t=``;for(let n of e)if(n)if(t.length>0){let e=t[t.length-1]===`/`,r=n[0]===`/`;e&&r?t+=n.slice(1):t+=e||r?n:`/${n}`}else t+=n;return Ca(t)};function Ta(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var Ea=function(...e){e=e.map(e=>ga(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:Ta();!i||i.length===0||(t=`${i}/${t}`,n=Oa(i))}return t=Da(t,!n),n&&!Oa(t)?`/${t}`:t.length>0?t:`.`};function Da(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var Oa=function(e){return va.test(e)},ka=function(e){return ga(e)},Aa=function(e){if(e===`..`)return``;let t=xa.exec(ga(e));return t&&t[1]||``},ja=function(e,t){let n=Ea(e).replace(ba,`$1`).split(`/`),r=Ea(t).replace(ba,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},Ma=function(e){let t=ga(e).replace(/\/$/,``).split(`/`).slice(0,-1);return t.length===1&&ya.test(t[0])&&(t[0]+=`/`),t.join(`/`)||(Oa(e)?`/`:`.`)},Na=function(e){let t=e.ext?e.ext.startsWith(`.`)?e.ext:`.${e.ext}`:``,n=[e.root,e.dir,e.base??(e.name??``)+t].filter(Boolean);return ga(e.root?Ea(...n):n.join(`/`))},Pa=function(e,t){let n=ga(e).split(`/`),r=``;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t){r=t;break}}return t&&r.endsWith(t)?r.slice(0,-t.length):r},Fa={__proto__:null,basename:Pa,dirname:Ma,extname:Aa,format:Na,isAbsolute:Oa,join:wa,matchesGlob:(e,t)=>ma(t,Ca(e)),normalize:Ca,normalizeString:Da,parse:function(e){let t=Sa.exec(e)?.[0]?.replace(/\\/g,`/`)||``,n=Pa(e),r=Aa(n);return{root:t,dir:Ma(e),base:n,ext:r,name:n.slice(0,n.length-r.length)}},relative:ja,resolve:Ea,sep:`/`,toNamespacedPath:ka},Ia=globalThis.process?.platform===`win32`?`;`:`:`,La={posix:void 0,win32:void 0},Ra=(e=Ia)=>new Proxy(Fa,{get(t,n){return n===`delimiter`?e:n===`posix`?X:n===`win32`?za:La[n]||Fa[n]}}),X=Ra(`:`),za=Ra(`;`),Ba=(e,t)=>{if(ca(t))return t;if(ca(e)){let n=new URL(e);return n.pathname=X.posix.resolve(`/`,X.dirname(n.pathname),t),n.toString()}return X.resolve(X.dirname(e),t)};function Va(e){return decodeURI(e.replace(/~1/g,`/`).replace(/~0/g,`~`))}function Ha(e){return e.split(`/`).slice(1).map(Va)}function Ua(e,t,n){if(t===``)throw Error(`Cannot set value at root ('') pointer`);let r=Ha(t);r.forEach(e=>Oe(e));let i=e;for(let e=0;e<r.length;e++){let t=r[e],a=e===r.length-1,o=r[e+1],s=/^\d+$/.test(o??``);a?i[t]=n:((!(t in i)||typeof i[t]!=`object`)&&(i[t]=s?[]:{}),i=i[t])}}var Wa=(e,t)=>{if(ca(e)&&ca(t)){let n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;let i=X.dirname(X.posix.resolve(`/`,r.pathname)),a=X.posix.resolve(`/`,n.pathname);return X.posix.relative(i,a)}if(ca(t)){let n=new URL(t),r=X.dirname(X.posix.resolve(`/`,n.pathname));return n.pathname=X.posix.relative(r,X.posix.resolve(`/`,e)),n.toString()}if(ca(e))return e;let n=X.dirname(X.resolve(t)),r=X.resolve(e);return X.relative(n,r)};function Ga(e){let t=xe(e).substring(0,7);return t.match(/^\d+$/)?`a`+t.substring(1):t}async function Ka(e,t,n,r,i=0){if(i>=100)throw`Can not generate unique compressed values`;let a=await e(r??t);return n[a]!==void 0&&n[a]!==t?Ka(e,t,n,a,i+1):(n[a]=t,a)}var qa=(e,t)=>{let n=Object.fromEntries(Object.entries(t).map(([e,t])=>[t,e]));return{generate:async r=>{let i=n[r];if(i)return i;let a=await Ka(e,r,t),o=a.match(/^\d+$/)?`a${a}`:a;return n[r]=o,o}}},Ja=e=>z(e)&&`$ref`in e&&typeof e.$ref==`string`;function Ya(e){return e.startsWith(`#`)}function Xa(e,t){let n=t.find(t=>t.validate(e));return n?n.exec(e):Promise.resolve({ok:!1})}function Za(e,t){if(!Ya(e))throw`Please provide an internal ref`;return`#/${t.map(ni).join(`/`)}${e.substring(1)}`}function Qa(e,t){if(Array.isArray(e)){e.forEach(e=>Qa(e,t));return}if(z(e)&&(Object.values(e).forEach(e=>Qa(e,t)),typeof e==`object`&&`$ref`in e&&typeof e.$ref==`string`)){let n=e.$ref;if(!Ya(n))return;e.$ref=Za(n,t)}}var $a=(e,t,n,r,i,a=!1,o=new Set)=>{let s=Qe(t,Ha(n)).value;if(o.has(s))return;o.add(s),Ua(e,n,s);let c=n=>{if(!(!n||typeof n!=`object`)){`$ref`in n&&typeof n.$ref==`string`&&(n.$ref.startsWith(`#/${r}/${ni(i)}`)||a)&&$a(e,t,n.$ref.substring(1),r,i,a,o);for(let e of Object.values(n))c(e)}};c(s)},eo={externalDocuments:`x-ext`,externalDocumentsMappings:`x-ext-urls`};async function to(e,t){t.externalDocumentsKey=t.externalDocumentsKey??eo.externalDocuments,t.externalDocumentsMappingsKey=t.externalDocumentsMappingsKey??eo.externalDocumentsMappings;let n=t.cache??new Map,r=t.plugins.filter(e=>e.type===`loader`),i=t.plugins.filter(e=>e.type===`lifecycle`),a=await(async()=>{if(typeof e!=`string`)return e;let t=await Xa(e,r);if(t.ok&&typeof t.data==`object`)return t.data;throw Error(`Failed to resolve input: Please provide a valid string value or pass a loader to process the input`)})(),o=t.root??a,s=wt(o),c=t.root!==void 0&&t.root!==a||t.depth!==void 0,l=t.visitedNodes??new Set,u=Re(o)||(t.origin?t.origin:typeof e==`string`&&(ca(e)||da(e))?e:`/`);o[t.externalDocumentsMappingsKey]===void 0&&(o[t.externalDocumentsMappingsKey]={});let{generate:d}=qa(t.compress??Ga,o[t.externalDocumentsMappingsKey]),f=async(e,...n)=>{let r=t.hooks?.[e];r&&await r(...n);for(let t of i){let r=t[e];r&&await r(...n)}},p=async(e,i=u,a=!1,m=0,h=[],g=null)=>{if(t.depth!==void 0&&m>t.depth||!z(e)&&!Array.isArray(e)||l.has(e))return;l.add(e);let _={path:h,resolutionCache:n,parentNode:g,rootNode:o,loaders:r};await f(`onBeforeNodeProcess`,e,_);let v=Re(e);if(Ja(e)){let l=e.$ref,h=`$global`in e&&typeof e.$global==`boolean`&&e.$global,g=kt(l,v??i,s);if(g!==void 0){if(c){let e=Ha(`/${g}`),t=e.length>0?Qe(o,e.slice(0,-1)).value:void 0,n=Qe(o,e);await p(n.value,n.context,a,m+1,e,t)}await f(`onAfterNodeProcess`,e,_);return}let[ee,y=``]=l.split(`#`,2),te=Ba(v??i,ee),b=Wa(te,u),ne=await d(b),x=n.has(b);x||n.set(b,Xa(te,r)),await f(`onResolveStart`,e);let re=await n.get(b);if(re.ok){x||(h||Qa(re.data,[eo.externalDocuments,ne]),await p(re.data,h?i:te,h,m+1,[t.externalDocumentsKey,ne,o[t.externalDocumentsMappingsKey]]),Ua(o,`/${t.externalDocumentsMappingsKey}/${ni(ne)}`,b)),t.treeShake===!0?$a(o,{[t.externalDocumentsKey]:{[ne]:re.data}},Za(`#${y}`,[t.externalDocumentsKey,ne]).substring(1),t.externalDocumentsKey,ne):x||Ua(o,`/${t.externalDocumentsKey}/${ne}`,re.data),e.$ref=Za(`#${y}`,[t.externalDocumentsKey,ne]),await f(`onResolveSuccess`,e),await f(`onAfterNodeProcess`,e,_);return}return await f(`onResolveError`,e),await f(`onAfterNodeProcess`,e,_),console.warn(`Failed to resolve external reference "${te}". The reference may be invalid, inaccessible, or missing a loader for this type of reference.`)}for(let n in e)n===t.externalDocumentsKey||n===t.externalDocumentsMappingsKey||await p(e[n],v??i,a,m+1,[...h,n],e);await f(`onAfterNodeProcess`,e,_)};return await p(a),!t.urlMap&&!c&&delete o[t.externalDocumentsMappingsKey],a}function no(e){let t=0,n=new Ei,r=()=>{if(n.isEmpty()||t>=e)return;let r=n.dequeue();r&&r()};return async i=>{t>=e&&await new Promise(e=>n.enqueue(e)),t++;try{return await i()}finally{t--,r()}}}var ro=e=>e.startsWith(``)?e.slice(1):e;function io(t){if(t!==null){if(typeof t==`string`){let n=ro(t);if(n.trim()===``)return;try{return JSON.parse(n)}catch{let t=/^[^:]+:/.test(n),r=n.slice(0,50).trimStart(),i=r.startsWith(`{`)||r.startsWith(`[`);return!t||i?void 0:e(n,{maxAliasCount:1e4,merge:!0})}}return t}}var ao=e=>{try{return new URL(e).host}catch{return null}};async function oo(e,t,n){try{let r=ao(e),i=n?.headers?.find(e=>e.domains.find(e=>e===r)!==void 0)?.headers,a=n?.fetch??fetch,o=await t(()=>a(e,{headers:i}));if(o.ok){let e=await o.text();return{ok:!0,data:io(e),raw:e}}let s=o.headers.get(`Content-Type`)??``;return[`text/html`,`application/xml`].includes(s)&&console.warn(`[WARN] We only support JSON/YAML formats, received ${s}`),console.warn(`[WARN] Fetch failed with status ${o.status} ${o.statusText} for URL: ${e}`),{ok:!1}}catch{return console.warn(`[WARN] Failed to parse JSON/YAML from URL: ${e}`),{ok:!1}}}function so(e){let t=e?.limit?no(e.limit):e=>e();return{type:`loader`,validate:ca,exec:n=>oo(n,t,e)}}var co=class extends Error{constructor(e){super(e),this.name=`InvalidChangesDetectedError`}},lo=(e,t)=>{let n=(e,t,r,i=0)=>{if(t[i]===void 0)throw new co(`Process aborted. Path ${t.join(`.`)} at depth ${i} is undefined, check diff object`);if(i>=t.length-1){r.type===`add`||r.type===`update`?e[t[i]]=r.changes:Array.isArray(e)?e.splice(Number.parseInt(t[i]),1):delete e[t[i]];return}if(e[t[i]]===void 0||typeof e[t[i]]!=`object`)throw new co(`Process aborted, check diff object`);n(e[t[i]],t,r,i+1)};for(let r of t)n(e,r.path,r);return e},uo=(e,t)=>{let n=[],r=(e,t,i=[])=>{if(typeof e!=typeof t){if(e===void 0){n.push({path:i,changes:t,type:`add`});return}if(t===void 0){n.push({path:i,changes:e,type:`delete`});return}n.push({path:i,changes:t,type:`update`});return}if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){if(Array.isArray(e)!==Array.isArray(t)){n.push({path:i,changes:t,type:`update`});return}let a=new Set([...Object.keys(e),...Object.keys(t)]);for(let n of a)r(e[n],t[n],[...i,n]);return}e!==t&&n.push({path:i,changes:t,type:`update`})};return r(e,t),n},fo=class{value;children;constructor(e,t){this.value=e,this.children=t}},po=class{root;constructor(){this.root=new fo(null,{})}addPath(e,t){let n=this.root;for(let t of e)n.children[t]||(n.children[t]=new fo(null,{})),n=n.children[t];n.value=t}findMatch(e,t){let n=this.root;for(let r of e){n.value!==null&&t(n.value);let e=n.children[r];if(!e)return;n=e}let r=e=>{for(let t of Object.keys(e?.children??{}))e&&Object.hasOwn(e.children,t)&&r(e?.children[t]);e?.value&&t(e.value)};r(n)}},mo=(e,t)=>{if(typeof e!=typeof t)return!0;if(typeof e==`object`&&typeof t==`object`&&e!==null&&t!==null){let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n)if(e[r]!==void 0&&t[r]!==void 0&&mo(e[r],t[r]))return!0;return!1}return e!==t},ho=(e,t)=>{for(let n in t)if(!(n in e))e[n]=t[n];else{let r=e[n],i=t[n];typeof r==`object`&&r&&typeof i==`object`&&i&&(e[n]=ho(r,i))}return e},go=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<=e.length;++n)if(e[n]!==t[n])return!1;return!0},_o=(e,t)=>{let n=new po;for(let[t,r]of e.entries())n.addPath(r.path,{index:t,changes:r});let r=new Set,i=new Set,a=new Map,o=new Map;for(let[e,s]of t.entries())n.findMatch(s.path,t=>{if(s.type===`delete`)if(t.changes.type===`delete`)t.changes.path.length>s.path.length?r.add(t.index):i.add(t.index);else{r.add(t.index),i.add(e);let n=o.get(e);n===void 0?o.set(e,[[t.changes],[s]]):n[0].push(t.changes)}if(s.type===`add`||s.type===`update`){if(go(s.path,t.changes.path)&&t.changes.type!==`delete`&&!mo(s.changes,t.changes.changes)){r.add(t.index),typeof s.changes==`object`&&ho(s.changes,t.changes.changes);return}r.add(t.index),i.add(e);let n=a.get(t.index);n===void 0?a.set(t.index,[[t.changes],[s]]):n[1].push(s)}});let s=[...a.values(),...o.values()];return{diffs:[...e.filter((e,t)=>!r.has(t)),...t.filter((e,t)=>!i.has(t))],conflicts:s}};function vo(e){if(!(typeof e!=`object`||!e)){if(Array.isArray(e)){for(let t of e)vo(t);return}if(e.xml&&typeof e.xml==`object`){if(e.xml.wrapped===!0&&e.xml.attribute===!0)throw Error(`Invalid XML configuration: wrapped and attribute cannot be true at the same time.`);e.xml.wrapped===!0&&(delete e.xml.wrapped,e.xml.nodeType=`element`),e.xml.attribute===!0&&(delete e.xml.attribute,e.xml.nodeType=`attribute`)}for(let t in e)Object.hasOwn(e,t)&&vo(e[t])}}function yo(e){if(e[`x-tagGroups`]&&Array.isArray(e[`x-tagGroups`])){let t=e[`x-tagGroups`];e.tags||=[];let n=new Map;for(let e of t)for(let t of e.tags)n.set(t,e.name);if(Array.isArray(e.tags)){for(let t of e.tags)if(typeof t==`object`&&t&&`name`in t){let e=n.get(t.name);e&&(e.toLowerCase().includes(`nav`)||e.toLowerCase().includes(`navigation`)?t.kind=`nav`:e.toLowerCase().includes(`audience`)?t.kind=`audience`:e.toLowerCase().includes(`badge`)?t.kind=`badge`:t.kind=`nav`)}}delete e[`x-tagGroups`]}}function bo(e){let t=e;if(typeof t==`object`&&t&&typeof t.openapi==`string`&&t.openapi?.startsWith(`3.1`))t.openapi=`3.2.0`;else return t;return yo(t),vo(t),t}function xo(e,t,n=[]){let r={};for(let[i,a]of Object.entries(e)){let e=[...n,i];if(Array.isArray(a)){r[i]=a.map((n,r)=>typeof n==`object`&&!Array.isArray(n)&&n!==null?xo(n,t,[...e,r.toString()]):n);continue}if(typeof a==`object`&&a){r[i]=xo(a,t,e);continue}r[i]=a}return t(r,n)}var So=`application/json`;function Co(e){let t=e[`x-example`],n=e[`x-examples`];return delete e[`x-example`],delete e[`x-examples`],{xExample:t,xExamples:n}}function wo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length>0}function To(e){return wo(e)&&Object.values(e).every(e=>typeof e==`object`&&!!e&&!Array.isArray(e))}function Eo(e){if(typeof e!=`object`||!e)return!0;let t=e;return!(t.allOf||t.oneOf||t.anyOf||t.items||t.$ref||`additionalProperties`in t||[`enum`,`const`,`not`,`format`,`multipleOf`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`maxProperties`,`minProperties`,`required`].some(e=>e in t)||typeof t.properties==`object`&&t.properties!==null&&Object.keys(t.properties).length>0)}function Do(e){let t=Object.keys(e);if(t.some(t=>{let n=e[t];return n?.example!==void 0||n?.examples!==void 0}))for(let n of t){let t=e[n];if(!t)continue;let r=t.example!==void 0||t.examples!==void 0;t.schema!==void 0&&!r&&Object.keys(t).length===1&&Eo(t.schema)&&delete e[n]}}var Oo=new Set([`summary`,`description`,`value`,`externalValue`]);function ko(e){if(typeof e!=`object`||!e)return!1;let t=e,n=`value`in t||`externalValue`in t,r=Object.keys(t).every(e=>Oo.has(e));return n&&r}function Ao(e){return ko(e)?e:{value:e}}var jo=/^[a-zA-Z0-9*+.-]+\/[a-zA-Z0-9*+.+-]+$/;function Mo(e){return jo.test(e)}function No(e){return Object.entries(e).reduce((e,[t,n])=>(e[t]={value:n},e),{})}var Po=e=>{switch(e){case`application`:return`clientCredentials`;case`accessCode`:return`authorizationCode`;case`implicit`:return`implicit`;case`password`:return`password`;default:return e}};function Fo(e){let t=e;if(typeof t==`object`&&t&&typeof t.swagger==`string`&&t.swagger?.startsWith(`2.0`))t.openapi=`3.0.4`,delete t.swagger;else return t;if(t.host){let e=Array.isArray(t.schemes)&&t.schemes?.length?t.schemes:[`http`];t.servers=e.map(e=>({url:`${e}://${t.host}${t.basePath??``}`})),delete t.basePath,delete t.schemes,delete t.host}else t.basePath&&(t.servers=[{url:t.basePath}],delete t.basePath);if(t.definitions&&(t.components=Object.assign({},t.components,{schemas:t.definitions}),delete t.definitions,t=xo(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/definitions/`)&&(e.$ref=e.$ref.replace(/^#\/definitions\//,`#/components/schemas/`)),e))),t=xo(t,e=>(e.type===`file`&&(e.type=`string`,e.format=`binary`),e)),Object.hasOwn(t,`parameters`)){t=xo(t,e=>{if(typeof e.$ref==`string`&&e.$ref.startsWith(`#/parameters/`)){let n=e.$ref.split(`/`)[2];if(!n)return e;let r=t.parameters&&typeof t.parameters==`object`&&n in t.parameters?t.parameters[n]:void 0;r&&typeof r==`object`&&`in`in r&&(r.in===`body`||r.in===`formData`)?e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/requestBodies/`):e.$ref=e.$ref.replace(/^#\/parameters\//,`#/components/parameters/`)}return e}),t.components??={};let e={},n={},r=t.parameters&&typeof t.parameters==`object`?t.parameters:{};for(let[i,a]of Object.entries(r))a&&typeof a==`object`&&(`$ref`in a?e[i]=Ro(a):`in`in a&&(a.in===`body`?n[i]=Wo(a,t.consumes??[So]):a.in===`formData`?n[i]=Go([a],t.consumes):e[i]=Ro(a)));Object.keys(e).length>0&&(t.components.parameters=e),Object.keys(n).length>0&&(t.components.requestBodies=n),delete t.parameters}if(Object.hasOwn(t,`responses`)&&typeof t.responses==`object`&&t.responses!==null){t=xo(t,e=>(typeof e.$ref==`string`&&e.$ref.startsWith(`#/responses/`)&&(e.$ref=e.$ref.replace(/^#\/responses\//,`#/components/responses/`)),e)),t.components??={};let e={},n=t.responses;for(let[r,i]of Object.entries(n))if(i&&typeof i==`object`)if(`$ref`in i)e[r]=i;else{let n=i,a=t.produces??[So];if(n.schema){typeof n.content!=`object`&&(n.content={});for(let e of a)n.content[e]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=a[0]??So;for(let[t,r]of Object.entries(n.examples))if(Mo(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=Ao(r)}delete n.examples}n.content&&typeof n.content==`object`&&Do(n.content),n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:zo(n),...e}:e,{})),e[r]=n}Object.keys(e).length>0&&(t.components.responses=e),delete t.responses}if(typeof t.paths==`object`){for(let e in t.paths)if(Object.hasOwn(t.paths,e)){let n=t.paths&&typeof t.paths==`object`&&e in t.paths?t.paths[e]:void 0;if(!n||typeof n!=`object`)continue;let r;for(let e in n)if(e===`parameters`&&Object.hasOwn(n,e)){let e=Ko(n.parameters,t.consumes??[So]);n.parameters=e.parameters,r=e.requestBody}else if(Object.hasOwn(n,e)){let i=n[e];if(r&&(i.requestBody=r),i.parameters){let e=Ko(i.parameters,i.consumes??t.consumes??[So]);i.parameters=e.parameters,e.requestBody&&(i.requestBody=e.requestBody)}if(delete i.consumes,i.responses){for(let e in i.responses)if(Object.hasOwn(i.responses,e)){let n=i.responses[e];if(n.headers&&typeof n.headers==`object`&&(n.headers=Object.entries(n.headers).reduce((e,[t,n])=>n&&typeof n==`object`?{[t]:zo(n),...e}:e,{})),n.schema){let e=t.produces??i.produces??[So];typeof n.content!=`object`&&(n.content={});for(let t of e)n.content[t]={schema:n.schema};delete n.schema}if(n.examples&&typeof n.examples==`object`){typeof n.content!=`object`&&(n.content={});let e=(t.produces??i.produces??[So])[0]??So;for(let[t,r]of Object.entries(n.examples))if(Mo(t))typeof n.content[t]!=`object`&&(n.content[t]={}),n.content[t].example=r;else{typeof n.content[e]!=`object`&&(n.content[e]={});let i=n.content[e];typeof i.examples!=`object`&&(i.examples={}),i.examples[t]=Ao(r)}delete n.examples}n.content&&typeof n.content==`object`&&Do(n.content)}}delete i.produces,i.parameters?.length===0&&delete i.parameters}}}if(t.securityDefinitions){(typeof t.components!=`object`||t.components===null)&&(t.components={}),t.components&&typeof t.components==`object`&&Object.assign(t.components,{securitySchemes:{}});for(let[e,n]of Object.entries(t.securityDefinitions))if(typeof n==`object`)if(`type`in n&&n.type===`oauth2`){let{flow:r,authorizationUrl:i,tokenUrl:a,scopes:o}=n;t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`oauth2`,flows:{[Po(r||`implicit`)]:Object.assign({},i&&{authorizationUrl:i},a&&{tokenUrl:a},o&&{scopes:o})}}})}else`type`in n&&n.type===`basic`?t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:{type:`http`,scheme:`basic`}}):t.components&&typeof t.components==`object`&&`securitySchemes`in t.components&&t.components.securitySchemes&&Object.assign(t.components.securitySchemes,{[e]:n});delete t.securityDefinitions}return delete t.consumes,delete t.produces,t}function Io(e){return[`type`,`format`,`default`,`items`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`enum`,`multipleOf`].reduce((t,n)=>(Object.hasOwn(e,n)&&(t[n]=e[n],delete e[n]),t),{})}function Lo(e){if(e===`formData`)throw Error(`Encountered a formData parameter which should have been filtered out by the caller`);if(e===`body`)throw Error(`Encountered a body parameter which should have been filtered out by the caller`);return e}function Ro(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Uo(e),n=Io(e),{xExample:r,xExamples:i}=Co(e);if(wo(r)?e.examples=No(r):wo(i)&&(e.examples=Object.entries(i).reduce((e,[t,n])=>(e[t]=Ao(n),e),{})),delete e.collectionFormat,delete e.default,!e.in)throw Error(`Parameter object must have an "in" property`);return{schema:n,...t,...e,in:Lo(e.in)}}function zo(e){if(Object.hasOwn(e,`$ref`)&&typeof e.$ref==`string`)return{$ref:e.$ref};let t=Io(e);return{...e,schema:t}}var Bo={ssv:{style:`spaceDelimited`,explode:!1},pipes:{style:`pipeDelimited`,explode:!1},multi:{style:`form`,explode:!0},csv:{style:`form`,explode:!1},tsv:{}},Vo={ssv:{},pipes:{},multi:{},csv:{style:`simple`,explode:!1},tsv:{}},Ho={header:Vo,query:Bo,path:Vo};function Uo(e){if(e.type!==`array`||!(e.in===`query`||e.in===`path`||e.in===`header`))return{};let t=e.collectionFormat??`csv`;return e.in in Ho&&t in Ho[e.in]?Ho[e.in][t]:{}}function Wo(e,t){let{xExample:n,xExamples:r}=Co(e);delete e.name,delete e.in;let{schema:i,...a}=e,o={content:{},...a};if(o.content)for(let e of t){if(o.content[e]={schema:i},wo(r)&&e in r){let t=r[e];wo(t)&&Object.values(t).every(e=>ko(e))?o.content[e].examples=t:To(t)?o.content[e].examples=Object.entries(t).reduce((e,[t,n])=>(e[t]=Ao(n),e),{}):o.content[e].examples={default:Ao(t)}}else wo(r)&&!Object.keys(r).some(Mo)&&(o.content[e].examples=Object.entries(r).reduce((e,[t,n])=>(e[t]=Ao(n),e),{}));!o.content[e].examples&&wo(n)&&e in n&&(o.content[e].example=n[e])}return o}function Go(e,t=[`multipart/form-data`]){let n={content:{}},r=t.filter(e=>e===`multipart/form-data`||e===`application/x-www-form-urlencoded`),i=r.length>0?r:[`multipart/form-data`];if(n.content)for(let t of i){n.content[t]={schema:{type:`object`,properties:{},required:[]}};let r=n.content?.[t];if(r?.schema&&typeof r.schema==`object`&&`properties`in r.schema)for(let t of e)t.name&&r.schema.properties&&(r.schema.properties[t.name]={type:t.type,description:t.description,...t.format?{format:t.format}:{}},t.required&&Array.isArray(r.schema.required)&&r.schema.required.push(t.name))}return n}function Ko(e,t){let n={parameters:e.filter(e=>!(e.in===`body`||e.in===`formData`)).map(e=>Ro(e))},r=structuredClone(e.find(e=>e.in===`body`)??{});r&&Object.keys(r).length&&(n.requestBody=Wo(r,t));let i=e.filter(e=>e.in===`formData`);if(i.length>0){let e=Go(i,t);typeof n.requestBody==`object`?n.requestBody={...n.requestBody,content:{...n.requestBody.content,...e.content}}:n.requestBody=e,typeof n.requestBody!=`object`&&(n.requestBody={content:{}})}return n}var qo=new Set([`properties`,`items`,`allOf`,`anyOf`,`oneOf`,`not`,`additionalProperties`,`schema`]);function Jo(e){return e?!!(e.some(e=>qo.has(e))||e.some(e=>e.endsWith(`Schema`))||e.length>=2&&e[0]===`components`&&e[1]===`schemas`):!1}var Yo=new Set([`properties`,`patternProperties`,`$defs`,`definitions`]);function Xo(e){let t=e?.[e.length-1];return t===void 0?!1:t===`schemas`&&e?.[e.length-2]===`components`||Yo.has(t)}var Zo=new Set([`example`,`default`,`const`,`enum`]);function Qo(e){if(!e)return!1;for(let[t,n]of e.entries())if(Zo.has(n)&&!Xo(e.slice(0,t))||n===`value`&&e[t-2]===`examples`&&!Xo(e.slice(0,t-2)))return!0;return!1}function $o(e){let t=e;return t===null||typeof t.openapi!=`string`||!t.openapi.startsWith(`3.0`)?t:(t.openapi=`3.1.1`,t=xo(t,es),t)}var es=(e,t)=>{if(Qo(t))return e;if(e.type!==void 0&&e.nullable===!0)e.type=[e.type,`null`],delete e.nullable;else if(e.nullable===!0&&e.type===void 0){if(typeof e.$ref==`string`){let{nullable:t,$ref:n,...r}=e;return{...r,anyOf:[{$ref:n},{type:`null`}]}}if(Array.isArray(e.allOf)){let{nullable:t,allOf:n,...r}=e,i=n.length===1?n[0]:{allOf:n};return{...r,anyOf:[i,{type:`null`}]}}}e.exclusiveMinimum===!0?(e.exclusiveMinimum=e.minimum,delete e.minimum):e.exclusiveMinimum===!1&&delete e.exclusiveMinimum,e.exclusiveMaximum===!0?(e.exclusiveMaximum=e.maximum,delete e.maximum):e.exclusiveMaximum===!1&&delete e.exclusiveMaximum;let n=t?.some((e,n)=>e===`examples`&&n>0&&!Xo(t.slice(0,n)));if(e.example!==void 0&&!n&&!Xo(t)&&(Jo(t)?e.examples=[e.example]:e.examples={default:{value:e.example}},delete e.example),e.type===`object`&&e.properties!==void 0&&(t?.slice(0,-1))?.some((e,n)=>e===`content`&&t?.[n+1]===`multipart/form-data`)&&e.properties!==null)for(let t of Object.values(e.properties))typeof t==`object`&&t&&`type`in t&&`format`in t&&t.type===`string`&&t.format===`binary`&&(t.contentMediaType=`application/octet-stream`,delete t.format);if(t?.includes(`content`)&&t?.includes(`application/octet-stream`))return{};let{format:r,...i}=e;if(e.type===`string`){if(e.format===`binary`)return{...i,type:`string`,contentMediaType:`application/octet-stream`};if(e.format===`base64`)return{...i,type:`string`,contentEncoding:`base64`};if(e.format===`byte`){let e=(t?.slice(0,-1))?.find((e,n)=>t?.[n-1]===`content`);return{...i,type:`string`,contentEncoding:`base64`,contentMediaType:e}}}return e[`x-webhooks`]!==void 0&&(t===void 0||t.length===0)&&(e.webhooks=e[`x-webhooks`],delete e[`x-webhooks`]),e};function ts(e,t){let n=Fo(e);if(t===`3.0`)return n;let r=$o(n);return t===`3.1`?r:bo(r)}var ns="```",rs=(e,t)=>`${ns}${e}\n${t.trimEnd()}\n${ns}`,is=(e,t)=>`@example\n${rs(e,t)}`,as=e=>`\`${e}\``,os=(...e)=>e.join(`
16
16
 
17
17
  `),Z=(e,t)=>os(e,is(t.language,t.body)),ss=i({"x-internal":P(v({typeComment:`When true, hides the entity from public documentation`}))},{typeName:`XInternal`,typeComment:Z(`Marks an entity as internal (hidden from external consumers).`,{language:`yaml`,body:`x-internal: true`})}),cs=i({"x-original-aas-version":P(F({typeComment:`Original AsyncAPI Specification version the document was loaded with.`}))},{typeName:`XOriginalAasVersion`,typeComment:Z(`Original AsyncAPI Specification version of the source document before ingestion.`,{language:`yaml`,body:`x-original-aas-version: "3.0.0"`})}),ls=i({"x-scalar-ignore":P(v({typeComment:`When true, the entity is hidden or ignored in the UI`}))},{typeName:`XScalarIgnore`,typeComment:Z(`Internal extension to mark an entity as ignored in the Scalar UI.`,{language:`yaml`,body:`x-scalar-ignore: true`})}),us=i({"x-scalar-is-dirty":P(v({typeComment:`When true, the document has unsaved changes`}))},{typeName:`XScalarIsDirty`,typeComment:Z(`Tracks whether the document has been modified since it was last saved.`,{language:`yaml`,body:`x-scalar-is-dirty: true`})}),ds=i({"x-scalar-navigation":P(k({typeComment:"Serialized client navigation tree (`TraversedDocument`) for this API description"}))},{typeName:`XScalarNavigation`,typeComment:"Client-side navigation tree persisted on the document. Matches `TraversedDocumentObjectRef` in strict OpenAPI schemas."}),fs=i({"x-scalar-original-document-hash":F({typeComment:`Hash of the document as originally loaded from an external source`})},{typeName:`XScalarOriginalDocumentHash`,typeComment:Z(`Tracks the original document hash when loading from an external source. Used to detect modifications since last save.`,{language:`yaml`,body:`x-scalar-original-document-hash: "abc123"`})}),ps=i({"x-scalar-original-source-url":P(F({typeComment:`Original document source URL when loaded from an external source`}))},{typeName:`XScalarOriginalSourceUrl`,typeComment:Z(`Original document source URL when the API description was loaded from an external source.`,{language:`yaml`,body:`x-scalar-original-source-url: https://example.com/openapi.yaml`})}),ms=i({"x-scalar-registry-meta":P(i({namespace:F({typeComment:`The namespace under which this registry meta is scoped.`}),slug:F({typeComment:`A unique slug identifier for this registry meta within the namespace.`}),version:F({typeComment:`The version of the registry meta.`}),commitHash:P(F({typeComment:`Last known commit hash of this document. Is going to be used to track if the document has been modified since it was last saved.`})),conflictCheckedAgainstHash:P(F({typeComment:"Registry commit hash that the cached `hasConflict` flag was computed against. When the registry advertises a different hash later, the cached result is stale and the conflict check must be re-run."})),hasConflict:P(v({typeComment:"Cached outcome of the last conflict check, valid only while `conflictCheckedAgainstHash` matches the registry current hash for this version."}))},{typeName:`XScalarRegistryMetaInner`,typeComment:`Registry meta namespace and slug`}))},{typeName:`XScalarRegistryMeta`,typeComment:Z(`Registry sync metadata for a document published to Scalar Registry.`,{language:`yaml`,body:`x-scalar-registry-meta:
18
18
  namespace: acme
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar
@@ -5,7 +5,7 @@
5
5
  * ___/ / /___/ ___ |/ /___/ ___ |/ _, _/
6
6
  * /____/\____/_/ |_/_____/_/ |_/_/ |_|
7
7
  *
8
- * @scalar/api-reference 1.65.0
8
+ * @scalar/api-reference 1.65.1
9
9
  *
10
10
  * Website: https://scalar.com
11
11
  * GitHub: https://github.com/scalar/scalar