2021-07-01 12:47:52 +03:00
/*! For license information please see redoc-demo.bundle.js.LICENSE.txt */
2024-10-16 13:50:13 +03:00
( ( ) => { var e = { 3675 : function ( e , t , n ) { "use strict" ; var r = this && this . _ _awaiter || function ( e , t , n , r ) { return new ( n || ( n = Promise ) ) ( ( function ( i , o ) { function a ( e ) { try { l ( r . next ( e ) ) } catch ( e ) { o ( e ) } } function s ( e ) { try { l ( r . throw ( e ) ) } catch ( e ) { o ( e ) } } function l ( e ) { var t ; e . done ? i ( e . value ) : ( t = e . value , t instanceof n ? t : new n ( ( function ( e ) { e ( t ) } ) ) ) . then ( a , s ) } l ( ( r = r . apply ( e , t || [ ] ) ) . next ( ) ) } ) ) } ; Object . defineProperty ( t , "__esModule" , { value : ! 0 } ) , t . mapTypeToComponent = t . bundleDocument = t . bundleFromString = t . bundle = t . OasVersion = void 0 ; const i = n ( 2307 ) , o = n ( 4182 ) , a = n ( 8065 ) , s = n ( 5220 ) , l = n ( 9443 ) , c = n ( 1510 ) , u = n ( 7468 ) , p = n ( 5030 ) , d = n ( 348 ) , f = n ( 771 ) , h = n ( 1094 ) , m = n ( 4508 ) , g = n ( 6350 ) ; var y ; function b ( e ) { return r ( this , void 0 , void 0 , ( function * ( ) { const { document : t , config : n , customTypes : r , externalRefResolver : i , dereference : u = ! 1 , skipRedoclyRegistryRefs : d = ! 1 , removeUnusedComponents : f = ! 1 , keepUrlRefs : h = ! 1 } = e , y = ( 0 , c . detectSpec ) ( t . parsed ) , b = ( 0 , c . getMajorSpecVersion ) ( y ) , v = n . getRulesForOasVersion ( b ) , w = ( 0 , s . normalizeTypes ) ( n . extendTypes ( null != r ? r : ( 0 , c . getTypes ) ( y ) , y ) , n ) , k = ( 0 , p . initRules ) ( v , n , "preprocessors" , y ) , S = ( 0 , p . initRules ) ( v , n , "decorators" , y ) , O = { problems : [ ] , oasVersion : y , refTypes : new Map , visitorsData : { } } ; f && S . push ( { severity : "error" , ruleId : "remove-unused-components" , visitor : b === c . SpecMajorVersion . OAS2 ? ( 0 , m . RemoveUnusedComponents ) ( { } ) : ( 0 , g . RemoveUnusedComponents ) ( { } ) } ) ; let E = yield ( 0 , o . resolveDocument ) ( { rootDocument : t , rootType : w . Root , externalRefResolver : i } ) ; k . length > 0 && ( ( 0 , l . walkDocument ) ( { document : t , rootType : w . Root , normalizedVisitors : ( 0 , a . normalizeVisitors ) ( k , w ) , resolvedRefMap : E , ctx : O } ) , E = yield ( 0 , o . resolveDocument ) ( { rootDocument : t , rootType : w . Root , externalRefResolver : i } ) ) ; const _ = ( 0 , a . normalizeVisitors ) ( [ { severity : "error" , ruleId : "bundler" , visitor : x ( b , u , d , t , E , h ) } , ... S ] , w ) ; return ( 0 , l . walkDocument ) ( { document : t , rootType : w . Root , normalizedVisitors : _ , resolvedRefMap : E , ctx : O } ) , { bundle : t , problems : O . problems . map ( ( e => n . addProblemToIgnore ( e ) ) ) , fileDependencies : i . getFiles ( ) , rootType : w . Root , refTypes : O . refTypes , visitorsData : O . visitorsData } } ) ) } function v ( e , t ) { switch ( t ) { case c . SpecMajorVersion . OAS3 : switch ( e ) { case "Schema" : return "schemas" ; case "Parameter" : return "parameters" ; case "Response" : return "responses" ; case "Example" : return "examples" ; case "RequestBody" : return "requestBodies" ; case "Header" : return "headers" ; case "SecuritySchema" : return "securitySchemes" ; case "Link" : return "links" ; case "Callback" : return "callbacks" ; default : return null } case c . SpecMajorVersion . OAS2 : switch ( e ) { case "Schema" : return "definitions" ; case "Parameter" : return "parameters" ; case "Response" : return "responses" ; default : return null } case c . SpecMajorVersion . Async2 : switch ( e ) { case "Schema" : return "schemas" ; case "Parameter" : return "parameters" ; default : return null } } } function x ( e , t , n , r , a , s ) { let l , p ; const m = { ref : { leave ( i , l , c ) { if ( ! c . location || void 0 === c . node ) return void ( 0 , d . reportUnresolvedRef ) ( c , l . report , l . location ) ; if ( c . location . source === r . source && c . location . source === l . location . source && "scalar" !== l . type . name && ! t ) return ; if ( n && ( 0 , h . isRedoclyRegistryURL ) ( i . $ref ) ) return ; if ( s && ( 0 , u . isAbsoluteUrl ) ( i . $ref ) ) return ; const p = v ( l . type . name , e ) ; p ? t ? ( y ( p , c , l ) , g ( i , c , l ) ) : ( i . $ref = y ( p , c , l ) , function ( e , t , n ) { const i = ( 0 , o . makeRefId ) ( n . location . source . absoluteRef , e . $ref ) ; a . set ( i , { document : r , isRemote : ! 1 , node : t . node , nodePointer : e . $ref , resolved : ! 0 } ) } ( i , c , l ) ) : g ( i , c , l ) } } , Root : { enter ( t , n ) { p = n . location , e === c . SpecMajorVersion . OAS3 ? l = t . components = t . components || { } : e === c . SpecMajorVersion . OAS2 && ( l = t ) } } } ; function g ( e , t , n ) { if ( ( 0 , f . isPlainObject ) ( t . node ) ) { delete e . $ref ; const n = Object . assign ( { } , t . node , e ) ; Object . assign ( e , n ) } else n . parent [ n . key ] = t . node } function y ( t , n , r ) { l [ t ] = l [ t ] || { } ; const i = function ( e , t , n ) { const [ r , i ] = [ e . location . source . absoluteRef , e . location . pointer ] , o = l [ t ] ; let a = "" ; const s = i . slice ( 2 ) . split ( "/" ) . filter ( f . isTruthy ) ; for ( ; s . length > 0 ; ) if ( a = s . pop ( ) + ( a ? ` - ${ a } ` : "" ) , ! o || ! o [ a ] || b ( o [ a ] , e , n ) ) return a ; if ( a = ( 0 , u . refBaseName ) ( r ) + ( a ? ` _ ${ a } ` : "" ) , ! o [ a ] || b ( o [ a ] , e , n ) ) return a ; const c = a ; let p = 2 ; for ( ; o [ a ] && ! b ( o [ a ] , e , n ) ; ) a = ` ${ c } - ${ p } ` , p ++ ; return o [ a ] || n . report ( { message : ` Two schemas are referenced with the same name but different content. Renamed ${ c } to ${ a } . ` , location : n . location , forceSeverity : "warn" } ) , a } ( n , t , r ) ; retur
2023-08-17 17:09:11 +03:00
@ media $ { t ? "print, " : "" } screen and ( max - width : $ { t => t . theme . breakpoints [ e ] } ) $ { n || "" } {
$ { mn ( ... r ) } ;
2022-02-04 13:00:46 +03:00
}
2023-08-17 17:09:11 +03:00
` ,xn=hn;function wn(e){return t=>{if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}const kn=xn.div `
2022-02-04 13:00:46 +03:00
padding : 20 px ;
color : red ;
2024-10-16 13:50:13 +03:00
` ;class Sn extends r.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?r.createElement(kn,null,r.createElement("h1",null,"Something went wrong..."),r.createElement("small",null," ",this.state.error.message," "),r.createElement("p",null,r.createElement("details",null,r.createElement("summary",null,"Stack trace"),r.createElement("pre",null,this.state.error.stack))),r.createElement("small",null," ReDoc Version: ","2.2.0")," ",r.createElement("br",null),r.createElement("small",null," Commit: ","1593d019")):r.createElement(r.Fragment,null,r.Children.only(this.props.children))}}const On=yn `
2022-02-04 13:00:46 +03:00
0 % {
transform : rotate ( 0 deg ) ; }
100 % {
transform : rotate ( 360 deg ) ;
}
2023-08-17 17:09:11 +03:00
` ,En=xn((e=>r.createElement("svg",{className:e.className,version:"1.1",width:"512",height:"512",viewBox:"0 0 512 512"},r.createElement("path",{d:"M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z"}),r.createElement("path",{d:"M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z"}),r.createElement("path",{d:"M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z"}),r.createElement("path",{d:"M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z"}),r.createElement("path",{d:"M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z"}),r.createElement("path",{d:"M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-27.863v0c7.68-7.7 20.163-7.7 27.842 0l68.291 68.322z"}),r.createElement("path",{d:"M165.694 318.464c7.69-7.7 20.153-7.7 27.853 0v0c7.68 7.659 7.69 20.163 0 27.863l-68.342 68.322c-7.67 7.659-20.142 7.659-27.822-0.062v0c-7.68-7.68-7.68-20.122 0-27.801l68.311-68.322z"}),r.createElement("path",{d:"M386.775 97.362c7.7-7.68 20.142-7.68 27.822 0v0c7.7 7.68 7.7 20.183 0.021 27.863l-68.322 68.311c-7.68 7.68-20.163 7.68-27.843-0.020v0c-7.68-7.68-7.68-20.162 0-27.822l68.322-68.332z"})))) `
2024-04-26 11:27:14 +03:00
animation : 2 s $ { On } linear infinite ;
2022-02-04 13:00:46 +03:00
width : 50 px ;
height : 50 px ;
content : '' ;
display : inline - block ;
margin - left : - 25 px ;
path {
fill : $ { e => e . color } ;
}
2023-08-17 17:09:11 +03:00
` ,_n=xn.div `
2022-02-04 13:00:46 +03:00
font - family : helvetica , sans ;
width : 100 % ;
text - align : center ;
font - size : 25 px ;
margin : 30 px 0 20 px 0 ;
color : $ { e => e . color } ;
2024-10-16 13:50:13 +03:00
` ;class An extends r.PureComponent{render(){return r.createElement("div",{style:{textAlign:"center"}},r.createElement(_n,{color:this.props.color},"Loading ..."),r.createElement(En,{color:this.props.color}))}}var jn=n(5697);const Cn=r.createContext(new fn({})),Pn=Cn.Provider,Tn=Cn.Consumer;function In(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Rn={};function Nn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:Rn}var $ n=Object.assign,Ln=Object.getOwnPropertyDescriptor,Dn=Object.defineProperty,Mn=Object.prototype,Fn=[];Object.freeze(Fn);var zn={};Object.freeze(zn);var Un="undefined"!=typeof Proxy,Bn=Object.toString();function qn(){Un||In("Proxy not available")}function Wn(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Vn=function(){};function Hn(e){return"function"==typeof e}function Yn(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function Gn(e){return null!==e&&"object"==typeof e}function Qn(e){if(!Gn(e))return!1;var t=Object.getPrototypeOf(e);if(null==t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n.toString()===Bn}function Xn(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function Kn(e,t,n){Dn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Zn(e,t,n){Dn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Jn(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Gn(e)&&!0===e[n]}}function er(e){return e instanceof Map}function tr(e){return e instanceof Set}var nr=void 0!==Object.getOwnPropertySymbols,rr="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:nr?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function ir(e){return null===e?null:"object"==typeof e?""+e:e}function or(e,t){return Mn.hasOwnProperty.call(e,t)}var ar=Object.getOwnPropertyDescriptors||function(e){var t={};return rr(e).forEach((function(n){t[n]=Ln(e,n)})),t};function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mr(r.key),r)}}function lr(e,t,n){return t&&sr(e.prototype,t),n&&sr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}function ur(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pr(e,t)}function pr(e,t){return pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pr(e,t)}function dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array $ /.test(n)?fr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance. \n In order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}func
2022-02-04 13:00:46 +03:00
width : calc ( 100 % - $ { e => e . theme . rightPanel . width } ) ;
padding : 0 $ { e => e . theme . spacing . sectionHorizontal } px ;
2024-04-26 11:27:14 +03:00
$ { ( { $compact : e , theme : t } ) => vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
width : 100 % ;
padding : $ { ` ${ e ? 0 : t . spacing . sectionVertical } px ${ t . spacing . sectionHorizontal } px ` } ;
` };
2024-04-26 11:27:14 +03:00
` ,wp=xn.div.attrs((e=>({[fp]:e.id}))) `
2022-02-04 13:00:46 +03:00
padding : $ { e => e . theme . spacing . sectionVertical } px 0 ;
& : last - child {
min - height : calc ( 100 vh + 1 px ) ;
}
& > & : last - child {
min - height : initial ;
}
2024-04-26 11:27:14 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
padding : 0 ;
` }
2023-09-11 13:53:15 +03:00
$ { ( { $underlined : e } ) => e ? "\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n " : "" }
2024-04-26 11:27:14 +03:00
` ,kp=xn.div `
2022-02-04 13:00:46 +03:00
width : $ { e => e . theme . rightPanel . width } ;
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
background - color : $ { e => e . theme . rightPanel . backgroundColor } ;
padding : 0 $ { e => e . theme . spacing . sectionHorizontal } px ;
2024-04-26 11:27:14 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
width : 100 % ;
padding : $ { e => ` ${ e . theme . spacing . sectionVertical } px ${ e . theme . spacing . sectionHorizontal } px ` } ;
` };
2024-04-26 11:27:14 +03:00
` ,Sp=xn(kp) `
2022-02-04 13:00:46 +03:00
background - color : $ { e => e . theme . rightPanel . backgroundColor } ;
2024-04-26 11:27:14 +03:00
` ,Op=xn.div `
2022-02-04 13:00:46 +03:00
display : flex ;
width : 100 % ;
padding : 0 ;
2024-04-26 11:27:14 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
flex - direction : column ;
` };
2024-04-26 11:27:14 +03:00
` ,Ep={1:"1.85714em",2:"1.57143em",3:"1.27em"},_p=e=>mn `
2022-02-04 13:00:46 +03:00
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - weight : $ { ( { theme : e } ) => e . typography . headings . fontWeight } ;
2024-04-26 11:27:14 +03:00
font - size : $ { Ep [ e ] } ;
2022-02-04 13:00:46 +03:00
line - height : $ { ( { theme : e } ) => e . typography . headings . lineHeight } ;
2024-04-26 11:27:14 +03:00
` ,Ap=xn.h1 `
$ { _p ( 1 ) } ;
2022-04-28 16:24:41 +03:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
2022-02-04 13:00:46 +03:00
2023-08-17 17:09:11 +03:00
$ { wn ( "H1" ) } ;
2024-04-26 11:27:14 +03:00
` ,jp=xn.h2 `
$ { _p ( 2 ) } ;
2022-04-28 16:24:41 +03:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
margin : 0 0 20 px ;
2022-02-04 13:00:46 +03:00
2023-08-17 17:09:11 +03:00
$ { wn ( "H2" ) } ;
2024-04-26 11:27:14 +03:00
` ,Cp=xn.h2 `
$ { _p ( 3 ) } ;
2022-04-28 16:24:41 +03:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
2022-02-04 13:00:46 +03:00
2023-08-17 17:09:11 +03:00
$ { wn ( "H3" ) } ;
2024-04-26 11:27:14 +03:00
` ,Pp=xn.h3 `
2022-02-04 13:00:46 +03:00
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
2023-08-17 17:09:11 +03:00
$ { wn ( "RightPanelHeader" ) } ;
2024-04-26 11:27:14 +03:00
` ,Tp=xn.h5 `
2022-02-04 13:00:46 +03:00
border - bottom : 1 px solid rgba ( 38 , 50 , 56 , 0.3 ) ;
margin : 1 em 0 1 em 0 ;
color : rgba ( 38 , 50 , 56 , 0.5 ) ;
font - weight : normal ;
text - transform : uppercase ;
font - size : 0.929 em ;
line - height : 20 px ;
2023-08-17 17:09:11 +03:00
$ { wn ( "UnderlinedHeader" ) } ;
2024-06-10 16:40:27 +03:00
` ,Ip=(0,r.createContext)(void 0),{Provider:Rp,Consumer:Np}=Ip;function $ p(e){const{spec:t,specUrl:i,options:o,onLoaded:a,children:s}=e,[l,c]=r.useState(null),[u,p]=r.useState(null);if(u)throw u;r.useEffect((()=>{!function(){return e=this,null,r=function*(){if(t||i){c(null);try{const e=yield function(e){return Na(this,null,(function*(){const t=new Ia.Config({}),r={config:t,base:Lt?window.location.href:process.cwd()};Lt&&(t.resolve.http.customFetch=n.g.fetch),"object"==typeof e&&null!==e?r.doc={source:{absoluteRef:""},parsed:e}:r.ref=e;const{bundle:{parsed:i}}=yield(0,Ta.bundle)(r);return void 0!==i.swagger?(o=i,console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0"),new Promise(((e,t)=>(0,Ra.convertObj)(o,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},((n,r)=>{if(n)return t(n);e(r&&r.openapi)}))))):i;var o}))}(t||i);c(e)}catch(e){throw a&&a(e),p(e),e}}},new Promise(((t,n)=>{var i=e=>{try{a(r.next(e))}catch(e){n(e)}},o=e=>{try{a(r.throw(e))}catch(e){n(e)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,o);a((r=r.apply(e,null)).next())}));var e,r}()}),[t,i]);const d=r.useMemo((()=>{if(!l)return null;try{return new Qg(l,i,o)}catch(e){throw a&&a(e),e}}),[l,i,o]);return r.useEffect((()=>{d&&a&&a()}),[d,a]),s({loading:!d,store:d})}const Lp=e=>mn `
2022-02-04 13:00:46 +03:00
$ { e } {
cursor : pointer ;
margin - left : - 20 px ;
padding : 0 ;
line - height : 1 ;
width : 20 px ;
display : inline - block ;
outline : 0 ;
}
$ { e } : before {
content : '' ;
width : 15 px ;
height : 15 px ;
background - size : contain ;
background - image : url ( 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==' ) ;
opacity : 0.5 ;
visibility : hidden ;
display : inline - block ;
vertical - align : middle ;
}
h1 : hover > $ { e } : : before , h2 : hover > $ { e } : : before , $ { e } : hover : : before {
visibility : visible ;
}
2024-10-16 13:50:13 +03:00
` ,Dp=xn((function(e){const t=r.useContext(Ip),n=r.useCallback((n=>{t&&function(e,t,n){t.defaultPrevented||0!==t.button||(e=>!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey))(t)||(t.preventDefault(),e.replace(encodeURI(n)))}(t.menu.history,n,e.to)}),[t,e.to]);return t?r.createElement("a",{className:e.className,href:t.menu.history.linkForId(e.to),onClick:n,"aria-label":e.to},e.children):null})) `
2024-04-26 11:27:14 +03:00
$ { Lp ( "&" ) } ;
2024-10-16 13:50:13 +03:00
` ;function Mp(e){return r.createElement(Dp,{to:e.to})}const Fp={left:"90deg",right:"-90deg",up:"-180deg",down:"0"},zp=xn((e=>r.createElement("svg",{className:e.className,style:e.style,version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0","aria-hidden":"true"},r.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "})))) `
2022-02-04 13:00:46 +03:00
height : $ { e => e . size || "18px" } ;
width : $ { e => e . size || "18px" } ;
2022-05-17 11:55:45 +03:00
min - width : $ { e => e . size || "18px" } ;
2022-02-04 13:00:46 +03:00
vertical - align : middle ;
float : $ { e => e . float || "" } ;
transition : transform 0.2 s ease - out ;
2024-04-26 11:27:14 +03:00
transform : rotateZ ( $ { e => Fp [ e . direction || "down" ] } ) ;
2022-02-04 13:00:46 +03:00
polygon {
fill : $ { ( { color : e , theme : t } ) => e && t . colors . responses [ e ] && t . colors . responses [ e ] . color || e } ;
}
2024-04-26 11:27:14 +03:00
` ,Up=xn.span `
2022-02-04 13:00:46 +03:00
display : inline - block ;
padding : 2 px 8 px ;
margin : 0 ;
2024-10-16 13:50:13 +03:00
background - color : $ { e => e . color || e . theme . colors [ e . type ] . main } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors [ e . type ] . contrastText } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
vertical - align : middle ;
line - height : 1.6 ;
border - radius : 4 px ;
font - weight : $ { ( { theme : e } ) => e . typography . fontWeightBold } ;
font - size : 12 px ;
+ span [ type ] {
margin - left : 4 px ;
}
2024-04-26 11:27:14 +03:00
` ,Bp=mn `
2022-02-04 13:00:46 +03:00
text - decoration : line - through ;
color : # 707070 ;
2024-04-26 11:27:14 +03:00
` ,qp=xn.caption `
2022-02-04 13:00:46 +03:00
text - align : right ;
font - size : 0.9 em ;
font - weight : normal ;
color : $ { e => e . theme . colors . text . secondary } ;
2024-04-26 11:27:14 +03:00
` ,Wp=xn.td `
2022-02-04 13:00:46 +03:00
border - left : 1 px solid $ { e => e . theme . schema . linesColor } ;
box - sizing : border - box ;
position : relative ;
padding : 10 px 10 px 10 px 0 ;
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
display : block ;
overflow : hidden ;
` }
tr : first - of - type > & ,
tr . last > & {
border - left - width : 0 ;
background - position : top left ;
background - repeat : no - repeat ;
background - size : 1 px 100 % ;
}
tr : first - of - type > & {
background - image : linear - gradient (
to bottom ,
transparent 0 % ,
transparent 22 px ,
$ { e => e . theme . schema . linesColor } 22 px ,
$ { e => e . theme . schema . linesColor } 100 %
) ;
}
tr . last > & {
background - image : linear - gradient (
to bottom ,
$ { e => e . theme . schema . linesColor } 0 % ,
$ { e => e . theme . schema . linesColor } 22 px ,
transparent 22 px ,
transparent 100 %
) ;
}
tr . last + tr > & {
border - left - color : transparent ;
}
tr . last : first - child > & {
background : none ;
border - left - color : transparent ;
}
2024-04-26 11:27:14 +03:00
` ,Vp=xn(Wp) `
2022-02-04 13:00:46 +03:00
padding : 0 ;
2024-04-26 11:27:14 +03:00
` ,Hp=xn(Wp) `
2022-02-04 13:00:46 +03:00
vertical - align : top ;
line - height : 20 px ;
white - space : nowrap ;
font - size : 13 px ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& . deprecated {
2024-04-26 11:27:14 +03:00
$ { Bp } ;
2022-02-04 13:00:46 +03:00
}
2023-08-17 17:09:11 +03:00
$ { ( { kind : e } ) => "patternProperties" === e && mn `
2022-05-17 11:55:45 +03:00
> span . property - name {
display : inline - table ;
white - space : break - spaces ;
margin - right : 20 px ;
2022-02-04 13:00:46 +03:00
2022-05-17 11:55:45 +03:00
: : before ,
: : after {
content : '/' ;
filter : opacity ( 0.2 ) ;
}
}
` }
$ { ( { kind : e = "" } ) => [ "field" , "additionalProperties" , "patternProperties" ] . includes ( e ) ? "" : "font-style: italic" } ;
2023-08-17 17:09:11 +03:00
$ { wn ( "PropertyNameCell" ) } ;
2024-04-26 11:27:14 +03:00
` ,Yp=xn.td `
2022-02-04 13:00:46 +03:00
border - bottom : 1 px solid # 9 fb4be ;
padding : 10 px 0 ;
width : $ { e => e . theme . schema . defaultDetailsWidth } ;
box - sizing : border - box ;
tr . expanded & {
border - bottom : none ;
}
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
padding : 0 20 px ;
border - bottom : none ;
border - left : 1 px solid $ { e => e . theme . schema . linesColor } ;
tr . last > & {
border - left : none ;
}
` }
2023-08-17 17:09:11 +03:00
$ { wn ( "PropertyDetailsCell" ) } ;
2024-04-26 11:27:14 +03:00
` ,Gp=xn.span `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . linesColor } ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
margin - right : 10 px ;
& : : before {
content : '' ;
display : inline - block ;
vertical - align : middle ;
width : 10 px ;
height : 1 px ;
background : $ { e => e . theme . schema . linesColor } ;
}
& : : after {
content : '' ;
display : inline - block ;
vertical - align : middle ;
width : 1 px ;
background : $ { e => e . theme . schema . linesColor } ;
height : 7 px ;
}
2024-04-26 11:27:14 +03:00
` ,Qp=xn.div `
2022-02-04 13:00:46 +03:00
padding : $ { ( { theme : e } ) => e . schema . nestingSpacing } ;
2024-04-26 11:27:14 +03:00
` ,Xp=xn.table `
2022-02-04 13:00:46 +03:00
border - collapse : separate ;
border - radius : 3 px ;
font - size : $ { e => e . theme . typography . fontSize } ;
border - spacing : 0 ;
width : 100 % ;
> tr {
vertical - align : middle ;
}
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
display : block ;
> tr , > tbody > tr {
display : block ;
}
` }
2024-04-26 11:27:14 +03:00
$ { vn ( "small" , ! 1 , " and (-ms-high-contrast:none)" ) `
2022-02-04 13:00:46 +03:00
td {
float : left ;
width : 100 % ;
}
` }
&
2024-04-26 11:27:14 +03:00
$ { Qp } ,
2022-02-04 13:00:46 +03:00
&
2024-04-26 11:27:14 +03:00
$ { Qp }
$ { Qp }
$ { Qp } ,
2022-02-04 13:00:46 +03:00
&
2024-04-26 11:27:14 +03:00
$ { Qp }
$ { Qp }
$ { Qp }
$ { Qp }
$ { Qp } {
2022-02-04 13:00:46 +03:00
margin : $ { ( { theme : e } ) => e . schema . nestingSpacing } ;
margin - right : 0 ;
background : $ { ( { theme : e } ) => e . schema . nestedBackground } ;
}
&
2024-04-26 11:27:14 +03:00
$ { Qp }
$ { Qp } ,
2022-02-04 13:00:46 +03:00
&
2024-04-26 11:27:14 +03:00
$ { Qp }
$ { Qp }
$ { Qp }
$ { Qp } ,
2022-02-04 13:00:46 +03:00
&
2024-04-26 11:27:14 +03:00
$ { Qp }
$ { Qp }
$ { Qp }
$ { Qp }
$ { Qp }
$ { Qp } {
2022-02-04 13:00:46 +03:00
background : # ffffff ;
}
2024-04-26 11:27:14 +03:00
` ,Kp=xn.div `
2022-02-04 13:00:46 +03:00
margin : 0 0 3 px 0 ;
display : inline - block ;
2024-04-26 11:27:14 +03:00
` ,Zp=xn.span `
2022-02-04 13:00:46 +03:00
font - size : 0.9 em ;
margin - right : 10 px ;
color : $ { e => e . theme . colors . primary . main } ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
}
2024-04-26 11:27:14 +03:00
` ,Jp=xn.button `
2022-02-04 13:00:46 +03:00
display : inline - block ;
margin - right : 10 px ;
margin - bottom : 5 px ;
font - size : 0.8 em ;
cursor : pointer ;
border : 1 px solid $ { e => e . theme . colors . primary . main } ;
padding : 2 px 10 px ;
line - height : 1.5 em ;
outline : none ;
& : focus {
box - shadow : 0 0 0 1 px $ { e => e . theme . colors . primary . main } ;
}
2024-04-26 11:27:14 +03:00
$ { ( { $deprecated : e } ) => e && Bp || "" } ;
2022-04-28 16:24:41 +03:00
2024-04-26 11:27:14 +03:00
$ { e => e . $active ? ` \n color: white; \n background-color: ${ e . theme . colors . primary . main } ; \n &:focus { \n box-shadow: none; \n background-color: ${ St ( . 15 , e . theme . colors . primary . main ) } ; \n } \n ` : ` \n color: ${ e . theme . colors . primary . main } ; \n background-color: white; \n ` }
` ,ed=xn.div `
2022-02-04 13:00:46 +03:00
font - size : 0.9 em ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& : : after {
content : ' [' ;
}
2024-04-26 11:27:14 +03:00
` ,td=xn.div `
2022-02-04 13:00:46 +03:00
font - size : 0.9 em ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& : : after {
content : ']' ;
}
2024-06-10 16:40:27 +03:00
` ;function nd(e){return t=>!!t.type&&t.type.tabsRole===e}const rd=nd("Tab"),id=nd("TabList"),od=nd("TabPanel");function ad(e,t){return r.Children.map(e,(e=>null===e?null:function(e){return rd(e)||id(e)||od(e)}(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,r.cloneElement)(e,{...e.props,children:ad(e.props.children,t)}):e))}function sd(e,t){return r.Children.forEach(e,(e=>{null!==e&&(rd(e)||od(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(id(e)&&t(e),sd(e.props.children,t)))}))}function ld(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ld(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const cd=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ld(e))&&(r&&(r+=" "),r+=t);return r};function ud(e){let t=0;return sd(e,(e=>{rd(e)&&t++})),t}function pd(e){return e&&"getAttribute"in e}function dd(e){return pd(e)&&e.getAttribute("data-rttab")}function fd(e){return pd(e)&&"true"===e.getAttribute("aria-disabled")}let hd;const md={className:"react-tabs",focus:!1},gd=e=>{let t=(0,r.useRef)([]),n=(0,r.useRef)([]);const i=(0,r.useRef)();function o(t,n){if(t<0||t>=l())return;const{onSelect:r,selectedIndex:i}=e;r(t,i,n)}function a(e){const t=l();for(let n=e+1;n<t;n++)if(!fd(c(n)))return n;for(let t=0;t<e;t++)if(!fd(c(t)))return t;return e}function s(e){let t=e;for(;t--;)if(!fd(c(t)))return t;for(t=l();t-- >e;)if(!fd(c(t)))return t;return e}function l(){const{children:t}=e;return ud(t)}function c(e){return t.current[ ` tabs - $ { e } ` ]}function u(e){let t=e.target;do{if(p(t)){if(fd(t))return;return void o([].slice.call(t.parentNode.children).filter(dd).indexOf(t),e)}}while(null!=(t=t.parentNode))}function p(e){if(!dd(e))return!1;let t=e.parentElement;do{if(t===i.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}const{children:d,className:f,disabledTabClassName:h,domRef:m,focus:g,forceRenderTabPanel:y,onSelect:b,selectedIndex:v,selectedTabClassName:x,selectedTabPanelClassName:w,environment:k,disableUpDownKeys:S,disableLeftRightKeys:O,...E}={...md,...e};return r.createElement("div",Object.assign({},E,{className:cd(f),onClick:u,onKeyDown:function(t){const{direction:n,disableUpDownKeys:r,disableLeftRightKeys:i}=e;if(p(t.target)){let{selectedIndex:p}=e,d=!1,f=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(d=!0,f=!1,u(t)),(i||37!==t.keyCode&&"ArrowLeft"!==t.code)&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?(i||39!==t.keyCode&&"ArrowRight"!==t.code)&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(p=function(){let e=l();for(;e--;)if(!fd(c(e)))return e;return null}(),d=!0,f=!0):36!==t.keyCode&&"Home"!==t.code||(p=function(){const e=l();for(let t=0;t<e;t++)if(!fd(c(t)))return t;return null}(),d=!0,f=!0):(p="rtl"===n?s(p):a(p),d=!0,f=!0):(p="rtl"===n?a(p):s(p),d=!0,f=!0),d&&t.preventDefault(),f&&o(p,t)}},ref:e=>{i.current=e,m&&m(e)},"data-rttabs":!0}),function(){let i=0;const{children:o,disabledTabClassName:a,focus:s,forceRenderTabPanel:u,selectedIndex:p,selectedTabClassName:d,selectedTabPanelClassName:f,environment:h}=e;n.current=n.current||[];let m=n.current.length-l();const g=(0,r.useId)();for(;m++<0;)n.current.push( ` $ { g } $ { n . current . length } ` );return ad(o,(e=>{let o=e;if(id(e)){let i=0,l=!1;null==hd&&function(e){const t=e||("undefined"!=typeof window?window:void 0);try{hd=!(void 0===t||!t.document||!t.document.activeElement)}catch(e){hd=!1}}(h);const u=h||("undefined"!=typeof window?window:void 0);hd&&u&&(l=r.Children.toArray(e.props.children).filter(rd).some(((e,t)=>u.document.activeElement===c(t)))),o=(0,r.cloneElement)(e,{children:ad(e.props.children,(e=>{const o= ` tabs - $ { i } ` ,c=p===i,u={tabRef:e=>{t.current[o]=e},id:n.current[i],selected:c,focus:c&&(s||l)};return d&&(u.selectedClassName=d),a&&(u.disabledClassName=a),i++,(0,r.cloneElement)(e,u)}))})}else if(od(e)){const t={id:n.current[i],selected:p===i};u&&(t.forceRender=u),f&&(t.selectedClassName=f),i+
2022-02-04 13:00:46 +03:00
> ul {
list - style : none ;
padding : 0 ;
margin : 0 ;
margin : 0 - 5 px ;
> li {
padding : 5 px 10 px ;
display : inline - block ;
background - color : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
border - bottom : 1 px solid rgba ( 0 , 0 , 0 , 0.5 ) ;
cursor : pointer ;
text - align : center ;
outline : none ;
2024-04-26 11:27:14 +03:00
color : $ { ( { theme : e } ) => St ( e . colors . tonalOffset , e . rightPanel . textColor ) } ;
2022-02-04 13:00:46 +03:00
margin : 0
$ { ( { theme : e } ) => ` ${ e . spacing . unit } px ${ e . spacing . unit } px ${ e . spacing . unit } px ` } ;
2024-04-26 11:27:14 +03:00
border : 1 px solid $ { ( { theme : e } ) => St ( . 05 , e . codeBlock . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
border - radius : 5 px ;
min - width : 60 px ;
font - size : 0.9 em ;
font - weight : bold ;
& . react - tabs _ _tab -- selected {
color : $ { e => e . theme . colors . text . primary } ;
background : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
& : focus {
outline : auto ;
}
}
& : only - child {
flex : none ;
min - width : 100 px ;
}
& . tab - success {
color : $ { e => e . theme . colors . responses . success . tabTextColor } ;
}
& . tab - redirect {
color : $ { e => e . theme . colors . responses . redirect . tabTextColor } ;
}
& . tab - info {
color : $ { e => e . theme . colors . responses . info . tabTextColor } ;
}
& . tab - error {
color : $ { e => e . theme . colors . responses . error . tabTextColor } ;
}
}
}
> . react - tabs _ _tab - panel {
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
& > div ,
& > pre {
padding : $ { e => 4 * e . theme . spacing . unit } px ;
margin : 0 ;
}
& > div > pre {
padding : 0 ;
}
}
2024-06-10 16:40:27 +03:00
` ,Rd=(xn(Id) `
2022-02-04 13:00:46 +03:00
> ul {
display : block ;
> li {
padding : 2 px 5 px ;
min - width : auto ;
margin : 0 15 px 0 0 ;
font - size : 13 px ;
font - weight : normal ;
border - bottom : 1 px dashed ;
2024-04-26 11:27:14 +03:00
color : $ { ( { theme : e } ) => St ( e . colors . tonalOffset , e . rightPanel . textColor ) } ;
2022-02-04 13:00:46 +03:00
border - radius : 0 ;
background : none ;
& : last - child {
margin - right : 0 ;
}
& . react - tabs _ _tab -- selected {
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
background : none ;
}
}
}
> . react - tabs _ _tab - panel {
& > div ,
& > pre {
padding : $ { e => 2 * e . theme . spacing . unit } px 0 ;
}
}
2023-08-17 17:09:11 +03:00
` ,xn.div `
2022-02-04 13:00:46 +03:00
/ * *
* Based on prism - dark . css
* /
code [ class *= 'language-' ] ,
pre [ class *= 'language-' ] {
/ * c o l o r : w h i t e ;
background : none ; * /
text - shadow : 0 - 0.1 em 0.2 em black ;
text - align : left ;
white - space : pre ;
word - spacing : normal ;
word - break : normal ;
word - wrap : normal ;
line - height : 1.5 ;
- moz - tab - size : 4 ;
- o - tab - size : 4 ;
tab - size : 4 ;
- webkit - hyphens : none ;
- moz - hyphens : none ;
- ms - hyphens : none ;
hyphens : none ;
}
@ media print {
code [ class *= 'language-' ] ,
pre [ class *= 'language-' ] {
text - shadow : none ;
}
}
/* Code blocks */
pre [ class *= 'language-' ] {
padding : 1 em ;
margin : 0.5 em 0 ;
overflow : auto ;
}
. token . comment ,
. token . prolog ,
. token . doctype ,
. token . cdata {
color : hsl ( 30 , 20 % , 50 % ) ;
}
. token . punctuation {
opacity : 0.7 ;
}
. namespace {
opacity : 0.7 ;
}
. token . property ,
. token . tag ,
. token . number ,
. token . constant ,
. token . symbol {
color : # 4 a8bb3 ;
}
. token . boolean {
color : # e64441 ;
}
. token . selector ,
. token . attr - name ,
. token . string ,
. token . char ,
. token . builtin ,
. token . inserted {
color : # a0fbaa ;
& + a ,
& + a : visited {
color : # 4 ed2ba ;
text - decoration : underline ;
}
}
. token . property . string {
color : white ;
}
. token . operator ,
. token . entity ,
. token . url ,
. token . variable {
color : hsl ( 40 , 90 % , 60 % ) ;
}
. token . atrule ,
. token . attr - value ,
. token . keyword {
color : hsl ( 350 , 40 % , 70 % ) ;
}
. token . regex ,
. token . important {
color : # e90 ;
}
. token . important ,
. token . bold {
font - weight : bold ;
}
. token . italic {
font - style : italic ;
}
. token . entity {
cursor : help ;
}
. token . deleted {
color : red ;
}
2023-08-17 17:09:11 +03:00
$ { wn ( "Prism" ) } ;
2024-06-10 16:40:27 +03:00
` ),Nd=xn.div `
2022-02-04 13:00:46 +03:00
opacity : 0.7 ;
transition : opacity 0.3 s ease ;
text - align : right ;
& : focus - within {
opacity : 1 ;
}
> button {
background - color : transparent ;
border : 0 ;
color : inherit ;
padding : 2 px 10 px ;
font - family : $ { ( { theme : e } ) => e . typography . fontFamily } ;
font - size : $ { ( { theme : e } ) => e . typography . fontSize } ;
line - height : $ { ( { theme : e } ) => e . typography . lineHeight } ;
cursor : pointer ;
outline : 0 ;
: hover ,
: focus {
background : rgba ( 255 , 255 , 255 , 0.1 ) ;
}
}
2024-06-10 16:40:27 +03:00
` , $ d=xn.div `
& : hover $ { Nd } {
2022-02-04 13:00:46 +03:00
opacity : 1 ;
}
2024-06-10 16:40:27 +03:00
` ,Ld=xn(Rd).attrs({as:"pre"}) `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
overflow - x : auto ;
margin : 0 ;
white - space : $ { ( { theme : e } ) => e . typography . code . wrap ? "pre-wrap" : "pre" } ;
2024-10-16 13:50:13 +03:00
` ;function Dd(e){return getComputedStyle(e)}function Md(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function Fd(e){var t=document.createElement("div");return t.className=e,t}var zd="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Ud(e,t){if(!zd)throw new Error("No element matching method supported");return zd.call(e,t)}function Bd(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function qd(e,t){return Array.prototype.filter.call(e.children,(function(e){return Ud(e,t)}))}var Wd={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},Vd={x:null,y:null};function Hd(e,t){var n=e.element.classList,r=Wd.state.scrolling(t);n.contains(r)?clearTimeout(Vd[t]):n.add(r)}function Yd(e,t){Vd[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(Wd.state.scrolling(t))}),e.settings.scrollingThreshold)}var Gd=function(e){this.element=e,this.handlers={}},Qd={isEmpty:{configurable:!0}};Gd.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},Gd.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(r){return!(!t||r===t)||(n.element.removeEventListener(e,r,!1),!1)}))},Gd.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},Qd.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(Gd.prototype,Qd);var Xd=function(){this.eventElements=[]};function Kd(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function Zd(e,t,n,r,i){var o;if(void 0===r&&(r=!0),void 0===i&&(i=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,r,i){var o=n[0],a=n[1],s=n[2],l=n[3],c=n[4],u=n[5];void 0===r&&(r=!0),void 0===i&&(i=!1);var p=e.element;e.reach[l]=null,p[s]<1&&(e.reach[l]="start"),p[s]>e[o]-e[a]-1&&(e.reach[l]="end"),t&&(p.dispatchEvent(Kd("ps-scroll-"+l)),t<0?p.dispatchEvent(Kd("ps-scroll-"+c)):t>0&&p.dispatchEvent(Kd("ps-scroll-"+u)),r&&function(e,t){Hd(e,t),Yd(e,t)}(e,l)),e.reach[l]&&(t||i)&&p.dispatchEvent(Kd("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,r,i)}function Jd(e){return parseInt(e,10)||0}Xd.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new Gd(e),this.eventElements.push(t)),t},Xd.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Xd.prototype.unbind=function(e,t,n){var r=this.eventElement(e);r.unbind(t,n),r.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(r),1)},Xd.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},Xd.prototype.once=function(e,t,n){var r=this.eventElement(e),i=function(e){r.unbind(t,i),n(e)};r.bind(t,i)};var ef={isWebKit:"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style,supportsTouch:"undefined"!=typeof window&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:"undefined"!=typeof navigator&&navigator.msMaxTouchPoints,isChrome:"undefined"!=typeof navigator&&/Chrome/i.test(navigator&&navigator.userAgent)};function tf(e){var t=e.element,n=Math.floor(t.scrollTop),r=t.getBoundingClientRect();e.containerWidth=Math.round(r.width),e.containerHeight=Math.round(r.height),e.contentW
2022-05-10 19:14:02 +03:00
position : relative ;
2024-06-10 16:40:27 +03:00
` ;class yf extends r.Component{constructor(){super(...arguments),this.handleRef=e=>{this._container=e}}componentDidMount(){const e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new ff(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)}componentDidUpdate(){this.inst.update()}componentWillUnmount(){this.inst.destroy()}render(){const{children:e,className:t,updateFn:n}=this.props;return n&&n(this.componentDidUpdate.bind(this)),r.createElement(r.Fragment,null,hf&&r.createElement(mf,null),r.createElement(gf,{className: ` scrollbar - container $ { t } ` ,ref:this.handleRef},e))}}function bf(e){return r.createElement(Cn.Consumer,null,(t=>t.nativeScrollbars?r.createElement("div",{style:{overflow:"auto",overscrollBehavior:"contain",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):r.createElement(yf,((e,t)=>{for(var n in t||(t={}))uf.call(t,n)&&df(e,n,t[n]);if(cf)for(var n of cf(t))pf.call(t,n)&&df(e,n,t[n]);return e})({},e),e.children)))}const vf=xn((({className:e,style:t})=>r.createElement("svg",{className:e,style:t,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("polyline",{points:"6 9 12 15 18 9"})))) `
2022-05-10 19:14:02 +03:00
position : absolute ;
pointer - events : none ;
z - index : 1 ;
top : 50 % ;
- webkit - transform : translateY ( - 50 % ) ;
- ms - transform : translateY ( - 50 % ) ;
transform : translateY ( - 50 % ) ;
right : 8 px ;
margin : auto ;
text - align : center ;
polyline {
color : $ { e => "dark" === e . variant && "white" } ;
}
2024-06-10 16:40:27 +03:00
` ,xf=r.memo((e=>{const{options:t,onChange:n,placeholder:i,value:o="",variant:a,className:s}=e;return r.createElement("div",{className:s},r.createElement(vf,{variant:a}),r.createElement("select",{onChange:e=>{const{selectedIndex:r}=e.target;n(t[i?r-1:r])},value:o,className:"dropdown-select"},i&&r.createElement("option",{disabled:!0,hidden:!0,value:i},i),t.map((({idx:e,value:t,title:n},i)=>r.createElement("option",{key:e||t+i,value:t},n||t)))),r.createElement("label",null,o))})),wf=ze(xf) `
2022-05-10 19:14:02 +03:00
label {
box - sizing : border - box ;
min - width : 100 px ;
outline : none ;
display : inline - block ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
vertical - align : bottom ;
width : $ { ( { fullWidth : e } ) => e ? "100%" : "auto" } ;
text - transform : none ;
padding : 0 22 px 0 4 px ;
font - size : 0.929 em ;
line - height : 1.5 em ;
font - family : inherit ;
text - overflow : ellipsis ;
overflow : hidden ;
white - space : nowrap ;
}
. dropdown - select {
position : absolute ;
top : 0 ;
left : 0 ;
width : 100 % ;
height : 100 % ;
opacity : 0 ;
border : none ;
appearance : none ;
cursor : pointer ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
line - height : inherit ;
font - family : inherit ;
}
box - sizing : border - box ;
min - width : 100 px ;
outline : none ;
display : inline - block ;
border - radius : 2 px ;
border : 1 px solid rgba ( 38 , 50 , 56 , 0.5 ) ;
vertical - align : bottom ;
padding : 2 px 0 px 2 px 6 px ;
2022-02-04 13:00:46 +03:00
position : relative ;
2022-05-10 19:14:02 +03:00
width : auto ;
background : white ;
color : # 263238 ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
font - size : 0.929 em ;
line - height : 1.5 em ;
cursor : pointer ;
transition : border 0.25 s ease , color 0.25 s ease , box - shadow 0.25 s ease ;
& : hover ,
& : focus - within {
border : 1 px solid $ { e => e . theme . colors . primary . main } ;
color : $ { e => e . theme . colors . primary . main } ;
box - shadow : 0 px 0 px 0 px 1 px $ { e => e . theme . colors . primary . main } ;
}
2024-06-10 16:40:27 +03:00
` ,kf=ze(wf) `
2022-05-10 19:14:02 +03:00
margin - left : 10 px ;
text - transform : none ;
font - size : 0.969 em ;
font - size : 1 em ;
border : none ;
padding : 0 1.2 em 0 0 ;
background : transparent ;
& : hover ,
& : focus - within {
border : none ;
box - shadow : none ;
label {
color : $ { e => e . theme . colors . primary . main } ;
text - shadow : 0 px 0 px 0 px $ { e => e . theme . colors . primary . main } ;
}
}
2024-06-10 16:40:27 +03:00
` ,Sf=ze.span `
2022-05-10 19:14:02 +03:00
margin - left : 10 px ;
text - transform : none ;
font - size : 0.929 em ;
color : black ;
2024-06-10 16:40:27 +03:00
` ;var Of=Object.defineProperty,Ef=Object.getOwnPropertySymbols,_f=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable,jf=(e,t,n)=>t in e?Of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cf=(e,t)=>{for(var n in t||(t={}))_f.call(t,n)&&jf(e,n,t[n]);if(Ef)for(var n of Ef(t))Af.call(t,n)&&jf(e,n,t[n]);return e};function Pf(e){const{Label:t=Sf,Dropdown:n=kf}=e;return 1===e.options.length?r.createElement(t,null,e.options[0].value):r.createElement(n,Cf({},e))}var Tf=n(7856);const If=mn `
2022-02-04 13:00:46 +03:00
a {
2022-05-17 11:55:45 +03:00
text - decoration : $ { e => e . theme . typography . links . textDecoration } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . typography . links . color } ;
& : visited {
color : $ { e => e . theme . typography . links . visited } ;
}
& : hover {
color : $ { e => e . theme . typography . links . hover } ;
2022-05-17 11:55:45 +03:00
text - decoration : $ { e => e . theme . typography . links . hoverTextDecoration } ;
2022-02-04 13:00:46 +03:00
}
}
2024-06-10 16:40:27 +03:00
` ,Rf=xn(Rd) `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . fontFamily } ;
font - weight : $ { e => e . theme . typography . fontWeightRegular } ;
line - height : $ { e => e . theme . typography . lineHeight } ;
p {
& : last - child {
margin - bottom : 0 ;
}
}
2023-09-11 13:53:15 +03:00
$ { ( { $compact : e } ) => e && "\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n " }
2022-02-04 13:00:46 +03:00
2023-09-11 13:53:15 +03:00
$ { ( { $inline : e } ) => e && " p {\n display: inline-block;\n }" }
2022-02-04 13:00:46 +03:00
h1 {
2024-04-26 11:27:14 +03:00
$ { _p ( 1 ) } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . primary . main } ;
margin - top : 0 ;
}
h2 {
2024-04-26 11:27:14 +03:00
$ { _p ( 2 ) } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . text . primary } ;
}
code {
color : $ { ( { theme : e } ) => e . typography . code . color } ;
background - color : $ { ( { theme : e } ) => e . typography . code . backgroundColor } ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
border - radius : 2 px ;
border : 1 px solid rgba ( 38 , 50 , 56 , 0.1 ) ;
padding : 0 $ { ( { theme : e } ) => e . spacing . unit } px ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
font - weight : $ { ( { theme : e } ) => e . typography . code . fontWeight } ;
word - break : break - word ;
}
pre {
font - family : $ { e => e . theme . typography . code . fontFamily } ;
white - space : $ { ( { theme : e } ) => e . typography . code . wrap ? "pre-wrap" : "pre" } ;
background - color : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
color : white ;
padding : $ { e => 4 * e . theme . spacing . unit } px ;
overflow - x : auto ;
line - height : normal ;
2023-09-11 13:53:15 +03:00
border - radius : 0 ;
2022-02-04 13:00:46 +03:00
border : 1 px solid rgba ( 38 , 50 , 56 , 0.1 ) ;
code {
background - color : transparent ;
color : white ;
padding : 0 ;
& : before ,
& : after {
content : none ;
}
}
}
blockquote {
margin : 0 ;
margin - bottom : 1 em ;
padding : 0 15 px ;
color : # 777 ;
border - left : 4 px solid # ddd ;
}
img {
max - width : 100 % ;
box - sizing : content - box ;
}
ul ,
ol {
padding - left : 2 em ;
margin : 0 ;
margin - bottom : 1 em ;
ul ,
ol {
margin - bottom : 0 ;
margin - top : 0 ;
}
}
table {
display : block ;
width : 100 % ;
overflow : auto ;
word - break : normal ;
word - break : keep - all ;
border - collapse : collapse ;
border - spacing : 0 ;
margin - top : 1.5 em ;
margin - bottom : 1.5 em ;
}
table tr {
background - color : # fff ;
border - top : 1 px solid # ccc ;
& : nth - child ( 2 n ) {
background - color : $ { ( { theme : e } ) => e . schema . nestedBackground } ;
}
}
table th ,
table td {
padding : 6 px 13 px ;
border : 1 px solid # ddd ;
}
table th {
text - align : left ;
font - weight : bold ;
}
2024-04-26 11:27:14 +03:00
$ { Lp ( ".share-link" ) } ;
2022-02-04 13:00:46 +03:00
2024-06-10 16:40:27 +03:00
$ { If }
2022-02-04 13:00:46 +03:00
2023-08-17 17:09:11 +03:00
$ { wn ( "Markdown" ) } ;
2024-10-16 13:50:13 +03:00
` ;var Nf=Object.defineProperty, $ f=Object.defineProperties,Lf=Object.getOwnPropertyDescriptors,Df=Object.getOwnPropertySymbols,Mf=Object.prototype.hasOwnProperty,Ff=Object.prototype.propertyIsEnumerable,zf=(e,t,n)=>t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uf=(e,t)=>{for(var n in t||(t={}))Mf.call(t,n)&&zf(e,n,t[n]);if(Df)for(var n of Df(t))Ff.call(t,n)&&zf(e,n,t[n]);return e};const Bf=ze((e=>r.createElement(Rf,Uf({},e)))) `
2023-08-17 17:09:11 +03:00
display : inline ;
2024-10-16 13:50:13 +03:00
` ;function qf(e){var t=e,{inline:n,compact:i}=t,o=((e,t)=>{var n={};for(var r in e)Mf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Df)for(var r of Df(e))t.indexOf(r)<0&&Ff.call(e,r)&&(n[r]=e[r]);return n})(t,["inline","compact"]);const a=n?Bf:Rf;return r.createElement(Tn,null,(e=>{return r.createElement(a,((e,t)=> $ f(e,Lf(t)))(Uf({className:"redoc-markdown "+(o.className||""),dangerouslySetInnerHTML:{__html:(t=e.untrustedSpec,s=o.html,t?Tf.sanitize(s):s)},"data-role":o["data-role"]},o),{ $ inline:n, $ compact:i}));var t,s}))}class Wf extends r.Component{render(){const{source:e,inline:t,compact:n,className:i,"data-role":o}=this.props,a=new Dl;return r.createElement(qf,{html:a.renderMd(e),inline:t,compact:n,className:i,"data-role":o})}}const Vf=xn.div `
2022-02-04 13:00:46 +03:00
position : relative ;
2024-06-10 16:40:27 +03:00
` ,Hf=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
min - width : 80 px ;
max - width : 500 px ;
background : # fff ;
bottom : 100 % ;
left : 50 % ;
margin - bottom : 10 px ;
transform : translateX ( - 50 % ) ;
border - radius : 4 px ;
padding : 0.3 em 0.6 em ;
text - align : center ;
box - shadow : 0 px 0 px 5 px 0 px rgba ( 204 , 204 , 204 , 1 ) ;
2024-06-10 16:40:27 +03:00
` ,Yf=xn.div `
2022-02-04 13:00:46 +03:00
background : # fff ;
color : # 000 ;
display : inline ;
font - size : 0.85 em ;
white - space : nowrap ;
2024-06-10 16:40:27 +03:00
` ,Gf=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
width : 0 ;
height : 0 ;
bottom : - 5 px ;
left : 50 % ;
margin - left : - 5 px ;
border - left : solid transparent 5 px ;
border - right : solid transparent 5 px ;
border - top : solid # fff 5 px ;
2024-06-10 16:40:27 +03:00
` ,Qf=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
width : 100 % ;
height : 20 px ;
bottom : - 20 px ;
2024-06-10 16:40:27 +03:00
` ;class Xf extends r.Component{render(){const{open:e,title:t,children:n}=this.props;return r.createElement(Vf,null,n,e&&r.createElement(Hf,null,r.createElement(Yf,null,t),r.createElement(Gf,null),r.createElement(Qf,null)))}}const Kf="undefined"!=typeof document&&document.queryCommandSupported&&document.queryCommandSupported("copy");class Zf{static isSupported(){return Kf}static selectElement(e){let t,n;document.body.createTextRange?(t=document.body.createTextRange(),t.moveToElementText(e),t.select()):document.createRange&&window.getSelection&&(n=window.getSelection(),t=document.createRange(),t.selectNodeContents(e),n.removeAllRanges(),n.addRange(t))}static deselect(){if(document.selection)document.selection.empty();else if(window.getSelection){const e=window.getSelection();e&&e.removeAllRanges()}}static copySelected(){let e;try{e=document.execCommand("copy")}catch(t){e=!1}return e}static copyElement(e){Zf.selectElement(e);const t=Zf.copySelected();return t&&Zf.deselect(),t}static copyCustom(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.width="2em",t.style.height="2em",t.style.padding="0",t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=e,document.body.appendChild(t),t.select();const n=Zf.copySelected();return document.body.removeChild(t),n}}const Jf=e=>{const[t,n]=r.useState(!1),i=()=>{const t="string"==typeof e.data?e.data:JSON.stringify(e.data,null,2);Zf.copyCustom(t),o()},o=()=>{n(!0),setTimeout((()=>{n(!1)}),1500)};return e.children({renderCopyButton:()=>r.createElement("button",{onClick:i},r.createElement(Xf,{title:Zf.isSupported()?"Copied":"Not supported in your browser",open:t},"Copy"))})};let eh=1;function th(e,t){eh=1;let n="";return n+='<div class="redoc-json">',n+="<code>",n+=ah(e,t),n+="</code>",n+="</div>",n}function nh(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""}function rh(e){return JSON.stringify(e).slice(1,-1)}function ih(e,t){return'<span class="'+t+'">'+nh(e)+"</span>"}function oh(e){return'<span class="token punctuation">'+e+"</span>"}function ah(e,t){const n=typeof e;let r="";return null==e?r+=ih("null","token keyword"):e&&e.constructor===Array?(eh++,r+=function(e,t){const n=eh>t?"collapsed":"";let r= ` < button class = "collapser" aria - label = "${eh>t+1?" expand ":" collapse "}" > < / b u t t o n > $ { o h ( " [ " ) } < s p a n c l a s s = " e l l i p s i s " > < / s p a n > < u l c l a s s = " a r r a y c o l l a p s i b l e " > ` , i = ! 1 ; c o n s t o = e . l e n g t h ; f o r ( l e t a = 0 ; a < o ; a + + ) i = ! 0 , r + = ' < l i > < d i v c l a s s = " h o v e r a b l e ' + n + ' " > ' , r + = a h ( e [ a ] , t ) , a < o - 1 & & ( r + = " , " ) , r + = " < / d i v > < / l i > " ; r e t u r n r + = ` < / u l > $ { o h ( " ] " ) } ` , i | | ( r = o h ( " [ ] " ) ) , r } ( e , t ) , e h - - ) : e & & e . c o n s t r u c t o r = = = D a t e ? r + = i h ( ' " ' + e . t o I S O S t r i n g ( ) + ' " ' , " t o k e n s t r i n g " ) : " o b j e c t " = = = n ? ( e h + + , r + = f u n c t i o n ( e , t ) { c o n s t n = e h > t ? " c o l l a p s e d " : " " , r = O b j e c t . k e y s ( e ) , i = r . l e n g t h ; l e t o = ` < b u t t o n c l a s s = " c o l l a p s e r " a r i a - l a b e l = " $ { e h > t + 1 ? " e x p a n d " : " c o l l a p s e " } " > < / b u t t o n > $ { o h ( " { " ) } < s p a n c l a s s = " e l l i p s i s " > < / s p a n > < u l c l a s s = " o b j c o l l a p s i b l e " > ` , a = ! 1 ; f o r ( l e t s = 0 ; s < i ; s + + ) { c o n s t l = r [ s ] ; a = ! 0 , o + = ' < l i > < d i v c l a s s = " h o v e r a b l e ' + n + ' " > ' , o + = ' < s p a n c l a s s = " p r o p e r t y t o k e n s t r i n g " > " ' + n h ( l ) + ' " < / s p a n > : ' , o + = a h ( e [ l ] , t ) , s < i - 1 & & ( o + = o h ( " , " ) ) , o + = " < / d i v > < / l i > " } r e t u r n o + = ` < / u l > $ { o h ( " } " ) } ` , a | | ( o = o h ( " { } " ) ) , o } ( e , t ) , e h - - ) : " n u m b e r " = = = n ? r + = i h ( e , " t o k e n n u m b e r " ) : " s t r i n g " = = = n ? / ^ ( h t t p | h t t p s ) : \ / \ / [ ^ \ s ] + $ / . t e s t ( e ) ? r + = i h ( ' " ' , " t o k e n s t r i n g " ) + ' < a h r e f = " ' + e n c o d e U R I ( e ) + ' " > ' + n h ( r h ( e ) ) + " < / a > " + i h ( ' " ' , " t o k e n s t r i n g " ) : r + = i h ( ' " ' + r h ( e ) + ' " ' , " t o k e n s t r i n g " ) : " b o o l e a n " = = = n & & ( r + = i h ( e , " t o k e n b o o l e a n " ) ) , r } c o n s t s h = m n `
2022-02-04 13:00:46 +03:00
. redoc - json code > . collapser {
display : none ;
pointer - events : none ;
}
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
white - space : $ { ( { theme : e } ) => e . typography . code . wrap ? "pre-wrap" : "pre" } ;
contain : content ;
overflow - x : auto ;
. callback - function {
color : gray ;
}
. collapser : after {
content : '-' ;
cursor : pointer ;
}
. collapsed > . collapser : after {
content : '+' ;
cursor : pointer ;
}
. ellipsis : after {
content : ' … ' ;
}
. collapsible {
margin - left : 2 em ;
}
. hoverable {
padding - top : 1 px ;
padding - bottom : 1 px ;
padding - left : 2 px ;
padding - right : 2 px ;
border - radius : 2 px ;
}
. hovered {
background - color : rgba ( 235 , 238 , 249 , 1 ) ;
}
. collapser {
background - color : transparent ;
border : 0 ;
color : # fff ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : $ { e => e . theme . typography . code . fontSize } ;
padding - right : 6 px ;
padding - left : 6 px ;
padding - top : 0 ;
padding - bottom : 0 ;
display : flex ;
align - items : center ;
justify - content : center ;
width : 15 px ;
height : 15 px ;
position : absolute ;
top : 4 px ;
left : - 1.5 em ;
cursor : default ;
user - select : none ;
- webkit - user - select : none ;
padding : 2 px ;
& : focus {
outline - color : # fff ;
outline - style : dotted ;
outline - width : 1 px ;
}
}
ul {
list - style - type : none ;
padding : 0 px ;
margin : 0 px 0 px 0 px 26 px ;
}
li {
position : relative ;
display : block ;
}
. hoverable {
display : inline - block ;
}
. selected {
outline - style : solid ;
outline - width : 1 px ;
outline - style : dotted ;
}
. collapsed > . collapsible {
display : none ;
}
. ellipsis {
display : none ;
}
. collapsed > . ellipsis {
display : inherit ;
}
2024-06-10 16:40:27 +03:00
` ,lh=xn.div `
& : hover > $ { Nd } {
2022-02-04 13:00:46 +03:00
opacity : 1 ;
}
2024-06-10 16:40:27 +03:00
` ,ch=xn((e=>{const[t,n]=r.useState(),i=({renderCopyButton:t})=>{const i=e.data&&Object.values(e.data).some((e=>"object"==typeof e&&null!==e));return r.createElement(lh,null,r.createElement(Nd,null,t(),i&&r.createElement(r.Fragment,null,r.createElement("button",{onClick:o}," Expand all "),r.createElement("button",{onClick:a}," Collapse all "))),r.createElement(Cn.Consumer,null,(t=>r.createElement(Rd,{className:e.className,ref:e=>n(e),dangerouslySetInnerHTML:{__html:th(e.data,t.jsonSampleExpandLevel)}}))))},o=()=>{const e=null==t?void 0:t.getElementsByClassName("collapsible");for(const t of Array.prototype.slice.call(e)){const e=t.parentNode;e.classList.remove("collapsed"),e.querySelector(".collapser").setAttribute("aria-label","collapse")}},a=()=>{const e=null==t?void 0:t.getElementsByClassName("collapsible"),n=Array.prototype.slice.call(e,1);for(const e of n){const t=e.parentNode;t.classList.add("collapsed"),t.querySelector(".collapser").setAttribute("aria-label","expand")}},s=e=>{let t;"collapser"===e.className&&(t=e.parentElement.getElementsByClassName("collapsible")[0],t.parentElement.classList.contains("collapsed")?(t.parentElement.classList.remove("collapsed"),e.setAttribute("aria-label","collapse")):(t.parentElement.classList.add("collapsed"),e.setAttribute("aria-label","expand")))},l=r.useCallback((e=>{s(e.target)}),[]),c=r.useCallback((e=>{"Enter"===e.key&&s(e.target)}),[]);return r.useEffect((()=>(null==t||t.addEventListener("click",l),null==t||t.addEventListener("focus",c),()=>{null==t||t.removeEventListener("click",l),null==t||t.removeEventListener("focus",c)})),[l,c,t]),r.createElement(Jf,{data:e.data},i)})) `
$ { sh } ;
` ,uh=e=>{const{source:t,lang:n}=e;return r.createElement(Ld,{dangerouslySetInnerHTML:{__html:Ss(t,n)}})},ph=e=>{const{source:t,lang:n}=e;return r.createElement(Jf,{data:t},(({renderCopyButton:e})=>r.createElement( $ d,null,r.createElement(Nd,null,e()),r.createElement(uh,{lang:n,source:t}))))};function dh({value:e,mimeType:t}){return is(t)?r.createElement(ch,{data:e}):("object"==typeof e&&(e=JSON.stringify(e,null,2)),r.createElement(ph,{lang:(n=t,-1!==n.search(/xml/i)?"xml":-1!==n.search(/csv/i)?"csv":-1!==n.search(/plain/i)?"tex":"clike"),source:e}));var n}var fh=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}));function hh({example:e,mimeType:t}){return void 0===e.value&&e.externalValueUrl?r.createElement(mh,{example:e,mimeType:t}):r.createElement(dh,{value:e.value,mimeType:t})}function mh({example:e,mimeType:t}){const n=function(e,t){const[,n]=(0,r.useState)(!0),i=(0,r.useRef)(void 0),o=(0,r.useRef)(void 0);return o.current!==e&&(i.current=void 0),o.current=e,(0,r.useEffect)((()=>{(()=>{fh(this,null,(function*(){n(!0);try{i.current=yield e.getExternalValue(t)}catch(e){i.current=e}n(!1)}))})()}),[e,t]),i.current}(e,t);return void 0===n?r.createElement("span",null,"Loading..."):n instanceof Error?r.createElement(Ld,null,"Error loading external example: ",r.createElement("br",null),r.createElement("a",{className:"token string",href:e.externalValueUrl,target:"_blank",rel:"noopener noreferrer"},e.externalValueUrl)):r.createElement(dh,{value:n,mimeType:t})}const gh=xn.div `
2022-02-04 13:00:46 +03:00
padding : 0.9 em ;
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => Rt ( . 6 , e . rightPanel . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
margin : 0 0 10 px 0 ;
display : block ;
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - size : 0.929 em ;
line - height : 1.5 em ;
2024-06-10 16:40:27 +03:00
` ,yh=xn.span `
2022-02-04 13:00:46 +03:00
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - size : 12 px ;
position : absolute ;
z - index : 1 ;
top : - 11 px ;
left : 12 px ;
font - weight : $ { ( { theme : e } ) => e . typography . fontWeightBold } ;
2023-08-17 17:09:11 +03:00
color : $ { ( { theme : e } ) => Rt ( . 3 , e . rightPanel . textColor ) } ;
2024-06-10 16:40:27 +03:00
` ,bh=xn.div `
2022-02-04 13:00:46 +03:00
position : relative ;
2024-06-10 16:40:27 +03:00
` ,vh=xn(wf) `
2022-05-10 19:14:02 +03:00
label {
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
text - overflow : ellipsis ;
white - space : nowrap ;
overflow : hidden ;
2022-02-04 13:00:46 +03:00
font - size : 1 em ;
2022-05-10 19:14:02 +03:00
text - transform : none ;
border : none ;
}
margin : 0 0 10 px 0 ;
display : block ;
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => Rt ( . 6 , e . rightPanel . backgroundColor ) } ;
2022-05-10 19:14:02 +03:00
border : none ;
padding : 0.9 em 1.6 em 0.9 em 0.9 em ;
box - shadow : none ;
& : hover ,
& : focus - within {
2022-02-04 13:00:46 +03:00
border : none ;
box - shadow : none ;
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => Rt ( . 3 , e . rightPanel . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
}
2024-06-10 16:40:27 +03:00
` ,xh=xn.div `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : 12 px ;
color : # ee807f ;
2024-06-10 16:40:27 +03:00
` ;class wh extends r.Component{constructor(){super(...arguments),this.state={activeIdx:0},this.switchMedia=({idx:e})=>{void 0!==e&&this.setState({activeIdx:e})}}render(){const{activeIdx:e}=this.state,t=this.props.mediaType.examples||{},n=this.props.mediaType.name,i=r.createElement(xh,null,"No sample"),o=Object.keys(t);if(0===o.length)return i;if(o.length>1){const i=o.map(((e,n)=>({value:t[e].summary||e,idx:n}))),a=t[o[e]],s=a.description;return r.createElement(kh,null,r.createElement(bh,null,r.createElement(yh,null,"Example"),this.props.renderDropdown({value:i[e].value,options:i,onChange:this.switchMedia,ariaLabel:"Example"})),r.createElement("div",null,s&&r.createElement(Wf,{source:s}),r.createElement(hh,{example:a,mimeType:n})))}{const e=t[o[0]];return r.createElement(kh,null,e.description&&r.createElement(Wf,{source:e.description}),r.createElement(hh,{example:e,mimeType:n}))}}}const kh=xn.div `
2022-02-04 13:00:46 +03:00
margin - top : 15 px ;
2024-10-16 13:50:13 +03:00
` ;if(!r.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!To)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var Sh=n(3935);function Oh(e){e()}function Eh(e){return fo(wa(e,t));var t}var _h=!1;function Ah(){return _h}var jh,Ch,Ph=function(){function e(e){var t=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(e){void 0===e&&(e=1e4),clearTimeout(t.sweepTimeout),t.sweepTimeout=void 0;var n=Date.now();t.registrations.forEach((function(r,i){n-r.registeredAt>=e&&(t.finalize(r.value),t.registrations.delete(i))})),t.registrations.size>0&&t.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){t.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.registrations.set(n,{value:t,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.registrations.delete(e)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){void 0===this.sweepTimeout&&(this.sweepTimeout=setTimeout(this.sweep,1e4))}}),e}(),Th=new("undefined"!=typeof FinalizationRegistry?FinalizationRegistry:Ph)((function(e){var t;null===(t=e.reaction)||void 0===t||t.dispose(),e.reaction=null})),Ih=n(1688);function Rh(e){e.reaction=new qi("observer".concat(e.name),(function(){var t;e.stateVersion=Symbol(),null===(t=e.onStoreChange)||void 0===t||t.call(e)}))}var Nh="function"==typeof Symbol&&Symbol.for, $ h=null!==(Ch=null===(jh=Object.getOwnPropertyDescriptor((function(){}),"name"))||void 0===jh?void 0:jh.configurable)&&void 0!==Ch&&Ch,Lh=Nh?Symbol.for("react.forward_ref"):"function"==typeof r.forwardRef&&(0,r.forwardRef)((function(e){return null})). $ $ typeof,Dh=Nh?Symbol.for("react.memo"):"function"==typeof r.memo&&(0,r.memo)((function(e){return null})). $ $ typeof;function Mh(e,t){var n;if(Dh&&e. $ $ typeof===Dh)throw new Error("[mobx-react-lite] You are trying to use ` observer ` on a function component wrapped in either another ` observer ` or ` React . memo ` . The observer already applies 'React.memo' for you.");if(Ah())return e;var i=null!==(n=null==t?void 0:t.forwardRef)&&void 0!==n&&n,o=e,a=e.displayName||e.name;if(Lh&&e. $ $ typeof===Lh&&(i=!0,"function"!=typeof(o=e.render)))throw new Error("[mobx-react-lite] ` render ` property of ForwardRef was not a function");var s,l,c=function(e,t){return function(e,t){if(void 0===t&&(t="observed"),Ah())return e();var n=r.useRef(null);if(!n.current){var i={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(e){return Th.unregister(i),i.onStoreChange=e,i.reaction||(Rh(i),i.stateVersion=Symbol()),function(){var e;i.onStoreChange=null,null===(e=i.reaction)||void 0===e||e.dispose(),i.reaction=null}},getSnapshot:function(){return i.stateVersion}};n.current=i}var o,a,s=n.current;if(s.reaction||(Rh(s),Th.register(n,s,s)),r.useDebugValue(s.reaction,Eh),(0,Ih.useSyncExternalStore)(s.subscribe,s.getSnapshot,s.getSnapshot),s.reaction.track((function(){try{o=e()}catch(e){a=e}})),a)throw a;return o}((function(){return o(e,t)}),a)};return c.displayName=e.displayName, $ h&&Object.defineProperty(c,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(c.contextTypes=e.contextTypes),i&&(c=(0,r.forwardRef)(c)),c=(0,r.memo)(c),s=e,l=c,Object.keys(s).forEach((function(e){Fh[e]||Object.defineProperty(l,e,Object.getOwnPropertyDescriptor(s,e))})),c}var Fh={ $ $ typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function zh(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}!function(e){e||(e=Oh),po({reactionScheduler:e})}
2024-04-26 11:27:14 +03:00
& . deprecated {
span . property - name {
$ { Bp }
}
}
2022-02-04 13:00:46 +03:00
button {
background - color : transparent ;
border : 0 ;
outline : 0 ;
font - size : 13 px ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
cursor : pointer ;
padding : 0 ;
color : $ { e => e . theme . colors . text . primary } ;
& : focus {
font - weight : $ { ( { theme : e } ) => e . typography . fontWeightBold } ;
}
2023-08-17 17:09:11 +03:00
$ { ( { kind : e } ) => "patternProperties" === e && mn `
2022-05-17 11:55:45 +03:00
display : inline - flex ;
margin - right : 20 px ;
> span . property - name {
white - space : break - spaces ;
text - align : left ;
: : before ,
: : after {
content : '/' ;
filter : opacity ( 0.2 ) ;
}
}
> svg {
align - self : center ;
}
` }
2022-02-04 13:00:46 +03:00
}
2024-04-26 11:27:14 +03:00
$ { zp } {
2022-02-04 13:00:46 +03:00
height : $ { ( { theme : e } ) => e . schema . arrow . size } ;
width : $ { ( { theme : e } ) => e . schema . arrow . size } ;
polygon {
fill : $ { ( { theme : e } ) => e . schema . arrow . color } ;
}
}
2024-06-10 16:40:27 +03:00
` ,tm=xn.span `
2022-02-04 13:00:46 +03:00
vertical - align : middle ;
font - size : $ { ( { theme : e } ) => e . typography . code . fontSize } ;
line - height : 20 px ;
2024-06-10 16:40:27 +03:00
` ,nm=xn(tm) `
2023-08-17 17:09:11 +03:00
color : $ { e => Rt ( . 1 , e . theme . schema . typeNameColor ) } ;
2024-06-10 16:40:27 +03:00
` ,rm=xn(tm) `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . typeNameColor } ;
2024-06-10 16:40:27 +03:00
` ,im=xn(tm) `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . typeTitleColor } ;
word - break : break - word ;
2024-06-10 16:40:27 +03:00
` ,om=rm,am=xn(tm).attrs({as:"div"}) `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . schema . requireLabelColor } ;
font - size : $ { e => e . theme . schema . labelsTextSize } ;
font - weight : normal ;
margin - left : 20 px ;
line - height : 1 ;
2024-06-10 16:40:27 +03:00
` ,sm=xn(am) `
2022-05-17 11:55:45 +03:00
color : $ { e => e . theme . colors . primary . light } ;
2024-06-10 16:40:27 +03:00
` ,lm=xn(tm) `
2022-02-04 13:00:46 +03:00
color : $ { ( { theme : e } ) => e . colors . warning . main } ;
font - size : 13 px ;
2024-06-10 16:40:27 +03:00
` ,cm=xn(tm) `
2022-02-04 13:00:46 +03:00
color : # 0e7 c86 ;
& : : before ,
& : : after {
font - weight : bold ;
}
2024-06-10 16:40:27 +03:00
` ,um=xn(tm) `
2022-02-04 13:00:46 +03:00
border - radius : 2 px ;
2022-05-10 19:14:02 +03:00
word - break : break - word ;
2023-08-17 17:09:11 +03:00
$ { ( { theme : e } ) => ` \n background-color: ${ Rt ( . 95 , e . colors . text . primary ) } ; \n color: ${ Rt ( . 1 , e . colors . text . primary ) } ; \n \n padding: 0 ${ e . spacing . unit } px; \n border: 1px solid ${ Rt ( . 9 , e . colors . text . primary ) } ; \n font-family: ${ e . typography . code . fontFamily } ; \n } ` } ;
2022-02-04 13:00:46 +03:00
& + & {
margin - left : 0 ;
}
2023-08-17 17:09:11 +03:00
$ { wn ( "ExampleValue" ) } ;
2024-06-10 16:40:27 +03:00
` ,pm=xn(um) ` ` ,dm=xn(tm) `
2022-02-04 13:00:46 +03:00
border - radius : 2 px ;
2023-08-17 17:09:11 +03:00
$ { ( { theme : e } ) => ` \n background-color: ${ Rt ( . 95 , e . colors . primary . light ) } ; \n color: ${ Rt ( . 1 , e . colors . primary . main ) } ; \n \n margin: 0 ${ e . spacing . unit } px; \n padding: 0 ${ e . spacing . unit } px; \n border: 1px solid ${ Rt ( . 9 , e . colors . primary . main ) } ; \n } ` } ;
2022-02-04 13:00:46 +03:00
& + & {
margin - left : 0 ;
}
2023-08-17 17:09:11 +03:00
$ { wn ( "ConstraintItem" ) } ;
2024-06-10 16:40:27 +03:00
` ,fm=xn.button `
2022-02-04 13:00:46 +03:00
background - color : transparent ;
border : 0 ;
color : $ { ( { theme : e } ) => e . colors . text . secondary } ;
margin - left : $ { ( { theme : e } ) => e . spacing . unit } px ;
border - radius : 2 px ;
cursor : pointer ;
outline - color : $ { ( { theme : e } ) => e . colors . text . secondary } ;
font - size : 12 px ;
2024-06-10 16:40:27 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;const hm=xn.div `
$ { If } ;
2023-09-11 13:53:15 +03:00
$ { ( { $compact : e } ) => e ? "" : "margin: 1em 0" }
2024-06-10 16:40:27 +03:00
` ;let mm=class extends r.Component{render(){const{externalDocs:e}=this.props;return e&&e.url?r.createElement(hm,{ $ compact:this.props.compact},r.createElement("a",{href:e.url},e.description||e.url)):null}};mm=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],mm);class gm extends r.PureComponent{constructor(){super(...arguments),this.state={collapsed:!0}}toggle(){this.setState({collapsed:!this.state.collapsed})}render(){const{values:e,isArrayType:t}=this.props,{collapsed:n}=this.state,{enumSkipQuotes:i,maxDisplayedEnumValues:o}=this.context;if(!e.length)return null;const a=this.state.collapsed&&o?e.slice(0,o):e,s=!!o&&e.length>o,l=o?n? ` … $ { e . length - o } more ` :"Hide":"";return r.createElement("div",null,r.createElement(tm,null,t?en("enumArray"):""," ",1===e.length?en("enumSingleValue"):en("enum"),":")," ",a.map(((e,t)=>{const n=i?String(e):JSON.stringify(e);return r.createElement(r.Fragment,{key:t},r.createElement(um,null,n)," ")})),s?r.createElement(ym,{onClick:()=>{this.toggle()}},l):null)}}gm.contextType=Cn;const ym=xn.span `
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . primary . main } ;
vertical - align : middle ;
font - size : 13 px ;
line - height : 20 px ;
padding : 0 5 px ;
cursor : pointer ;
2024-06-10 16:40:27 +03:00
` ,bm=xn(Rf) `
2022-02-04 13:00:46 +03:00
margin : 2 px 0 ;
2024-06-10 16:40:27 +03:00
` ;class vm extends r.PureComponent{render(){const e=this.props.extensions;return r.createElement(Cn.Consumer,null,(t=>r.createElement(r.Fragment,null,t.showExtensions&&Object.keys(e).map((t=>r.createElement(bm,{key:t},r.createElement(tm,null," ",t.substring(2),": ")," ",r.createElement(pm,null,"string"==typeof e[t]?e[t]:JSON.stringify(e[t]))))))))}}function xm({field:e}){return e.examples?r.createElement(r.Fragment,null,r.createElement(tm,null," ",en("examples"),": "),Kt(e.examples)?e.examples.map(((t,n)=>{const i=cs(e,t),o=e.in?String(i):JSON.stringify(i);return r.createElement(r.Fragment,{key:n},r.createElement(um,null,o)," ")})):r.createElement(wm,null,Object.values(e.examples).map(((t,n)=>r.createElement("li",{key:n+t.value},r.createElement(um,null,cs(e,t.value))," -"," ",t.summary||t.description))))):null}const wm=xn.ul `
2022-02-04 13:00:46 +03:00
margin - top : 1 em ;
2022-05-10 19:14:02 +03:00
list - style - position : outside ;
2024-06-10 16:40:27 +03:00
` ;class km extends r.PureComponent{render(){return 0===this.props.constraints.length?null:r.createElement("span",null," ",this.props.constraints.map((e=>r.createElement(dm,{key:e}," ",e," "))))}}const Sm=r.memo((function({value:e,label:t,raw:n}){if(void 0===e)return null;const i=n?String(e):JSON.stringify(e);return r.createElement("div",null,r.createElement(tm,null," ",t," ")," ",r.createElement(um,null,i))})),Om=45;function Em(e){const t=e.schema.pattern,{hideSchemaPattern:n}=r.useContext(Cn),[i,o]=r.useState(!1),a=r.useCallback((()=>o(!i)),[i]);return!t||n?null:r.createElement(r.Fragment,null,r.createElement(cm,null,i||t.length<Om?t: ` $ { t . substr ( 0 , Om ) } ... ` ),t.length>Om&&r.createElement(fm,{onClick:a},i?"Hide pattern":"Show pattern"))}function _m({schema:e}){var t;const{hideSchemaPattern:n}=r.useContext(Cn);return e&&((null==e?void 0:e.pattern)&&!n||e.items||e.displayFormat||(null==(t=e.constraints)?void 0:t.length))?"string"===e.type&&e.pattern?r.createElement(Am,null,"[",r.createElement(Em,{schema:e}),"]"):r.createElement(Am,null,"[ items",e.displayFormat&&r.createElement(om,null," <",e.displayFormat," >"),r.createElement(km,{constraints:e.constraints}),r.createElement(Em,{schema:e}),e.items&&r.createElement(_m,{schema:e.items})," ]"):null}const Am=xn(nm) `
2022-02-04 13:00:46 +03:00
margin : 0 5 px ;
vertical - align : text - top ;
2024-10-16 13:50:13 +03:00
` ;var jm=Object.defineProperty,Cm=Object.getOwnPropertySymbols,Pm=Object.prototype.hasOwnProperty,Tm=Object.prototype.propertyIsEnumerable,Im=(e,t,n)=>t in e?jm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rm=(e,t)=>{for(var n in t||(t={}))Pm.call(t,n)&&Im(e,n,t[n]);if(Cm)for(var n of Cm(t))Tm.call(t,n)&&Im(e,n,t[n]);return e};const Nm=Jh((e=>{const{enumSkipQuotes:t,hideSchemaTitles:n}=r.useContext(Cn),{showExamples:i,field:o,renderDiscriminatorSwitch:a}=e,{schema:s,description:l,deprecated:c,extensions:u,in:p,const:d}=o,f="array"===s.type,h=t||"header"===p,m=r.useMemo((()=>!i||void 0===o.example&&void 0===o.examples?null:void 0!==o.examples?r.createElement(xm,{field:o}):r.createElement(Sm,{label:en("example")+":",value:cs(o,o.example),raw:Boolean(o.in)})),[o,i]),g=Ht(s.default)&&o.in?cs(o,s.default).replace( ` $ { o . name } = ` ,""):s.default;return r.createElement("div",null,r.createElement("div",null,r.createElement(nm,null,s.typePrefix),r.createElement(rm,null,s.displayType),s.displayFormat&&r.createElement(om,null," ","<",s.displayFormat,">"," "),s.contentEncoding&&r.createElement(om,null," ","<",s.contentEncoding,">"," "),s.contentMediaType&&r.createElement(om,null," ","<",s.contentMediaType,">"," "),s.title&&!n&&r.createElement(im,null," (",s.title,") "),r.createElement(km,{constraints:s.constraints}),r.createElement(Em,{schema:s}),s.isCircular&&r.createElement(lm,null," ",en("recursive")," "),f&&s.items&&r.createElement(_m,{schema:s.items})),c&&r.createElement("div",null,r.createElement(Up,{type:"warning"}," ",en("deprecated")," ")),r.createElement(Sm,{raw:h,label:en("default")+":",value:g}),!a&&r.createElement(gm,{isArrayType:f,values:s.enum})," ",m,r.createElement(vm,{extensions:Rm(Rm({},u),s.extensions)}),r.createElement("div",null,r.createElement(Wf,{compact:!0,source:l})),s.externalDocs&&r.createElement(mm,{externalDocs:s.externalDocs,compact:!0}),a&&a(e)||null,d&&r.createElement(Sm,{label:en("const")+":",value:d})||null)})), $ m=r.memo(Nm);var Lm=Object.defineProperty,Dm=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),Mm=Object.prototype.hasOwnProperty,Fm=Object.prototype.propertyIsEnumerable,zm=(e,t,n)=>t in e?Lm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Um=class extends r.Component{constructor(){super(...arguments),this.toggle=()=>{void 0===this.props.field.expanded&&this.props.expandByDefault?this.props.field.collapse():this.props.field.toggle()},this.handleKeyPress=e=>{"Enter"===e.key&&(e.preventDefault(),this.toggle())}}render(){const{className:e="",field:t,isLast:n,expandByDefault:i}=this.props,{name:o,deprecated:a,required:s,kind:l}=t,c=!t.schema.isPrimitive&&!t.schema.isCircular,u=void 0===t.expanded?i:t.expanded,p=r.createElement(r.Fragment,null,"additionalProperties"===l&&r.createElement(sm,null,"additional property"),"patternProperties"===l&&r.createElement(sm,null,"pattern property"),s&&r.createElement(am,null,"required")),d=c?r.createElement(em,{className:a?"deprecated":"",kind:l,title:o},r.createElement(Gp,null),r.createElement("button",{onClick:this.toggle,onKeyPress:this.handleKeyPress,"aria-label": ` expand $ { o } ` },r.createElement("span",{className:"property-name"},o),r.createElement(zp,{direction:u?"down":"right"})),p):r.createElement(Hp,{className:a?"deprecated":void 0,kind:l,title:o},r.createElement(Gp,null),r.createElement("span",{className:"property-name"},o),p);return r.createElement(r.Fragment,null,r.createElement("tr",{className:n?"last "+e:e},d,r.createElement(Yp,null,r.createElement( $ m,((e,t)=>{for(var n in t||(t={}))Mm.call(t,n)&&zm(e,n,t[n]);if(Dm)for(var n of Dm(t))Fm.call(t,n)&&zm(e,n,t[n]);return e})({},this.props)))),u&&c&&r.createElement("tr",{key:t.name+"inner"},r.createElement(Vp,{colSpan:2},r.createElement(Qp,null,r.createElement(kg,{schema:t.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle,level:this.props.level})))))}};Um=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Um);Object.defineProperty,Object.getOwnPropertyDescr
2022-02-04 13:00:46 +03:00
padding - left : $ { ( { theme : e } ) => 2 * e . spacing . unit } px ;
2024-06-10 16:40:27 +03:00
` ;class eg extends r.PureComponent{render(){const e=this.props.schema,t=e.items,n=void 0===e.minItems&&void 0===e.maxItems?"": ` ( $ { hs ( e ) } ) ` ;return e.fields?r.createElement(qm,Zm(Km({},this.props),{level:this.props.level})):!e.displayType||t||n.length?r.createElement("div",null,r.createElement(ed,null," Array ",n),r.createElement(Jm,null,r.createElement(kg,Zm(Km({},this.props),{schema:t}))),r.createElement(td,null)):r.createElement("div",null,r.createElement(rm,null,e.displayType))}}var tg=Object.defineProperty,ng=Object.defineProperties,rg=Object.getOwnPropertyDescriptor,ig=Object.getOwnPropertyDescriptors,og=Object.getOwnPropertySymbols,ag=Object.prototype.hasOwnProperty,sg=Object.prototype.propertyIsEnumerable,lg=(e,t,n)=>t in e?tg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cg=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?rg(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&tg(t,n,o),o};let ug=class extends r.Component{constructor(){super(...arguments),this.activateOneOf=()=>{this.props.schema.activateOneOf(this.props.idx)}}render(){const{idx:e,schema:t,subSchema:n}=this.props;return r.createElement(Jp,{ $ deprecated:n.deprecated, $ active:e===t.activeOneOf,onClick:this.activateOneOf},n.title||n.typePrefix+n.displayType)}};ug=cg([Jh],ug);let pg=class extends r.Component{render(){const{schema:{oneOf:e},schema:t}=this.props;if(void 0===e)return null;const n=e[t.activeOneOf];return r.createElement("div",null,r.createElement(Zp,null," ",t.oneOfType," "),r.createElement(Kp,null,e.map(((e,n)=>r.createElement(ug,{key:e.pointer,schema:t,subSchema:e,idx:n})))),r.createElement("div",null,e[t.activeOneOf].deprecated&&r.createElement(Up,{type:"warning"},"Deprecated")),r.createElement(km,{constraints:n.constraints}),r.createElement(kg,((e,t)=>ng(e,ig(t)))(((e,t)=>{for(var n in t||(t={}))ag.call(t,n)&&lg(e,n,t[n]);if(og)for(var n of og(t))sg.call(t,n)&&lg(e,n,t[n]);return e})({},this.props),{schema:n})))}};pg=cg([Jh],pg);const dg=Jh((({schema:e})=>r.createElement("div",null,r.createElement(rm,null,e.displayType),e.title&&r.createElement(im,null," ",e.title," "),r.createElement(lm,null," ",en("recursive")," "))));var fg=Object.defineProperty,hg=Object.defineProperties,mg=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),gg=Object.getOwnPropertySymbols,yg=Object.prototype.hasOwnProperty,bg=Object.prototype.propertyIsEnumerable,vg=(e,t,n)=>t in e?fg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xg=(e,t)=>{for(var n in t||(t={}))yg.call(t,n)&&vg(e,n,t[n]);if(gg)for(var n of gg(t))bg.call(t,n)&&vg(e,n,t[n]);return e},wg=(e,t)=>hg(e,mg(t));let kg=class extends r.Component{render(){var e;const t=this.props,{schema:n}=t,i=((e,t)=>{var n={};for(var r in e)yg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&gg)for(var r of gg(e))t.indexOf(r)<0&&bg.call(e,r)&&(n[r]=e[r]);return n})(t,["schema"]),o=(i.level||0)+1;if(!n)return r.createElement("em",null," Schema not provided ");const{type:a,oneOf:s,discriminatorProp:l,isCircular:c}=n;if(c)return r.createElement(dg,{schema:n});if(void 0!==l){if(!s||!s.length)return console.warn( ` Looks like you are using discriminator wrong : you don ' t have any definition inherited from the $ { n . title } ` ),null;const e=s[n.activeOneOf];return e.isCircular?r.createElement(dg,{schema:e}):r.createElement(qm,wg(xg({},i),{level:o,schema:e,discriminator:{fieldName:l,parentSchema:n}}))}if(void 0!==s)return r.createElement(pg,xg({schema:n},i));const u=Kt(a)?a:[a];if(u.includes("object")){if(null==(e=n.fields)?void 0:e.length)return r.createElement(qm,wg(xg({},this.props),{level:o}))}else if(u.includes("array"))return r.createElement(eg,wg(xg({},this.props),{level:o}));const p={schema:n,name:"",required:!1,description:n.description,externalDocs:n.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1};return r.createElement("div",null,r.createElement( $ m,{field:p}))}};kg=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],kg);var Sg=Object.defineProperty,Og=Object.defineProperties,Eg=Object.getOwnPropertyDescriptors,_g=Obje
2022-02-04 13:00:46 +03:00
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
& > div ,
& > pre {
padding : $ { e => 4 * e . theme . spacing . unit } px ;
margin : 0 ;
}
& > div > pre {
padding : 0 ;
}
2024-06-10 16:40:27 +03:00
` ,Ig=(ze.div `
2022-05-31 16:45:37 +03:00
background - color : # e4e7eb ;
2023-08-17 17:09:11 +03:00
` ,ze.ul `
2022-05-31 16:45:37 +03:00
display : inline ;
list - style : none ;
padding : 0 ;
li {
display : inherit ;
& : after {
content : ',' ;
}
& : last - child : after {
content : none ;
}
}
2023-08-17 17:09:11 +03:00
` ,ze.code `
2022-05-31 16:45:37 +03:00
font - size : $ { e => e . theme . typography . code . fontSize } ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
margin : 0 3 px ;
padding : 0.2 em ;
display : inline - block ;
line - height : 1 ;
& : after {
content : ',' ;
font - weight : normal ;
}
& : last - child : after {
content : none ;
}
2024-06-10 16:40:27 +03:00
` ),Rg=ze.span `
2022-05-31 16:45:37 +03:00
& : after {
content : ' and ' ;
font - weight : normal ;
}
& : last - child : after {
content : none ;
}
2024-06-10 16:40:27 +03:00
$ { If } ;
` ,Ng=ze.span `
2023-09-11 13:53:15 +03:00
$ { e => ! e . $expanded && "white-space: nowrap;" }
2022-05-31 16:45:37 +03:00
& : after {
content : ' or ' ;
2023-09-11 13:53:15 +03:00
$ { e => e . $expanded && "content: ' or \\a';" }
2022-05-31 16:45:37 +03:00
white - space : pre ;
}
& : last - child : after ,
& : only - child : after {
content : none ;
}
2024-06-10 16:40:27 +03:00
$ { If } ;
` , $ g=ze.div `
2022-05-31 16:45:37 +03:00
flex : 1 1 auto ;
cursor : pointer ;
2024-06-10 16:40:27 +03:00
` ,Lg=ze.div `
2022-05-31 16:45:37 +03:00
width : $ { e => e . theme . schema . defaultDetailsWidth } ;
text - overflow : ellipsis ;
border - radius : 4 px ;
overflow : hidden ;
2023-09-11 13:53:15 +03:00
$ { e => e . $expanded && ` background: ${ e . theme . colors . gray [ 100 ] } ; \n padding: 8px 9.6px; \n margin: 20px 0; \n width: 100%; \n ` } ;
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-05-31 16:45:37 +03:00
margin - top : 10 px ;
` }
2024-10-16 13:50:13 +03:00
` ,Dg=ze(Tp) `
2022-05-31 16:45:37 +03:00
display : inline - block ;
margin : 0 ;
2024-10-16 13:50:13 +03:00
` ,Mg=ze.div `
2022-05-31 16:45:37 +03:00
width : 100 % ;
display : flex ;
margin : 1 em 0 ;
2023-09-11 13:53:15 +03:00
flex - direction : $ { e => e . $expanded ? "column" : "row" } ;
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-05-31 16:45:37 +03:00
flex - direction : column ;
` }
2024-06-10 16:40:27 +03:00
` ,Fg=ze.div `
2022-05-31 16:45:37 +03:00
margin : 0.5 em 0 ;
2024-06-10 16:40:27 +03:00
` ,zg=ze.div `
2022-05-31 16:45:37 +03:00
border - bottom : 1 px solid $ { ( { theme : e } ) => e . colors . border . dark } ;
margin - bottom : 1.5 em ;
padding - bottom : 0.7 em ;
h5 {
line - height : 1 em ;
margin : 0 0 0.6 em ;
font - size : $ { ( { theme : e } ) => e . typography . fontSize } ;
}
. redoc - markdown p : first - child {
display : inline ;
}
2024-06-10 16:40:27 +03:00
` ;function Ug({children:e,height:t}){const n=r.createRef(),[i,o]=r.useState(!1),[a,s]=r.useState(!1);return r.useEffect((()=>{n.current&&n.current.clientHeight+20<n.current.scrollHeight&&s(!0)}),[n]),r.createElement(r.Fragment,null,r.createElement(Bg,{ref:n,className:i?"":"container",style:{height:i?"auto":t}},e),r.createElement(qg,{ $ dimmed:!i},a&&r.createElement(Wg,{onClick:()=>{o(!i)}},i?"See less":"See more")))}const Bg=ze.div `
2022-05-31 16:45:37 +03:00
overflow - y : hidden ;
2024-06-10 16:40:27 +03:00
` ,qg=ze.div `
2022-05-31 16:45:37 +03:00
text - align : center ;
line - height : 1.5 em ;
2023-09-11 13:53:15 +03:00
$ { ( { $dimmed : e } ) => e && "background-image: linear-gradient(to bottom, transparent,rgb(255 255 255));\n position: relative;\n top: -0.5em;\n padding-top: 0.5em;\n background-position-y: -1em;\n " }
2024-06-10 16:40:27 +03:00
` ,Wg=ze.a `
2022-05-31 16:45:37 +03:00
cursor : pointer ;
2024-10-16 13:50:13 +03:00
` ,Vg=r.memo((function(e){const{type:t,flow:n,RequiredScopes:i}=e,o=Object.keys((null==n?void 0:n.scopes)||{});return r.createElement(r.Fragment,null,r.createElement(Fg,null,r.createElement("b",null,"Flow type: "),r.createElement("code",null,t," ")),("implicit"===t||"authorizationCode"===t)&&r.createElement(Fg,null,r.createElement("strong",null," Authorization URL: "),r.createElement("code",null,r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n.authorizationUrl},n.authorizationUrl))),("password"===t||"clientCredentials"===t||"authorizationCode"===t)&&r.createElement(Fg,null,r.createElement("b",null," Token URL: "),r.createElement("code",null,n.tokenUrl)),n.refreshUrl&&r.createElement(Fg,null,r.createElement("strong",null," Refresh URL: "),r.createElement("code",null,n.refreshUrl)),!!o.length&&r.createElement(r.Fragment,null,i||null,r.createElement(Fg,null,r.createElement("b",null," Scopes: ")),r.createElement(Ug,{height:"4em"},r.createElement("ul",null,o.map((e=>r.createElement("li",{key:e},r.createElement("code",null,e)," -"," ",r.createElement(Wf,{className:"redoc-markdown",inline:!0,source:n.scopes[e]||""}))))))))}));function Hg(e){const{RequiredScopes:t,scheme:n}=e;return r.createElement(Rf,null,n.apiKey?r.createElement(r.Fragment,null,r.createElement(Fg,null,r.createElement("b",null,(i=n.apiKey.in||"").charAt(0).toUpperCase()+i.slice(1)," parameter name: "),r.createElement("code",null,n.apiKey.name)),t):n.http?r.createElement(r.Fragment,null,r.createElement(Fg,null,r.createElement("b",null,"HTTP Authorization Scheme: "),r.createElement("code",null,n.http.scheme)),r.createElement(Fg,null,"bearer"===n.http.scheme&&n.http.bearerFormat&&r.createElement(r.Fragment,null,r.createElement("b",null,"Bearer format: "),r.createElement("code",null,n.http.bearerFormat))),t):n.openId?r.createElement(r.Fragment,null,r.createElement(Fg,null,r.createElement("b",null,"Connect URL: "),r.createElement("code",null,r.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:n.openId.connectUrl},n.openId.connectUrl))),t):n.flows?Object.keys(n.flows).map((e=>r.createElement(Vg,{key:e,type:e,RequiredScopes:t,flow:n.flows[e]}))):null);var i}const Yg={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"OpenID Connect"};class Gg extends r.PureComponent{render(){return this.props.securitySchemes.schemes.map((e=>r.createElement(wp,{id:e.sectionId,key:e.id},r.createElement(Op,null,r.createElement(xp,null,r.createElement(jp,null,r.createElement(Mp,{to:e.sectionId}),e.displayName),r.createElement(Wf,{source:e.description||""}),r.createElement(zg,null,r.createElement(Fg,null,r.createElement("b",null,"Security Scheme Type: "),r.createElement("span",null,Yg[e.type]||e.type)),r.createElement(Hg,{scheme:e})))))))}}class Qg{constructor(e,t,n={},r=!0){var i,o,a,s;this.marker=new Bs,this.disposer=null,this.rawOptions=n,this.options=new fn(n,Xg),this.scroll=new bp(this.options),hp.updateOnHistory(zs.currentId,this.scroll),this.spec=new Qu(e,t,this.options),this.menu=new hp(this.spec,this.scroll,zs),this.options.disableSearch||(this.search=new vp,r&&this.search.indexItems(this.menu.items),this.disposer=(i=this.menu,o="activeItemIdx",Hn(a=e=>{this.updateMarkOnMenu(e.newValue)})?function(e,t,n,r){return ka(e,t).observe_(n,r)}(i,o,a,s):function(e,t,n){return ka(e).observe_(t,n)}(i,o,a)))}static fromJS(e){const t=new Qg(e.spec.data,e.spec.url,e.options,!1);return t.menu.activeItemIdx=e.menu.activeItemIdx||0,t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),t.options.disableSearch||t.search.load(e.searchIndex),t}onDidMount(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)}dispose(){this.scroll.dispose(),this.menu.dispose(),this.search&&this.search.dispose(),null!=this.disposer&&this.disposer()}toJS(){return e=this,t=null,n=function*(){return{menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec},searchIndex:this.search?yield this.search.toJS():void 0,options:this.rawOptions}},new Promise(((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>
2022-02-04 13:00:46 +03:00
margin - top : 0 ;
margin - bottom : 0.5 em ;
2023-08-17 17:09:11 +03:00
$ { wn ( "ApiHeader" ) } ;
2024-06-10 16:40:27 +03:00
` ,Zg=xn.a `
2022-02-04 13:00:46 +03:00
border : 1 px solid $ { e => e . theme . colors . primary . main } ;
color : $ { e => e . theme . colors . primary . main } ;
font - weight : normal ;
margin - left : 0.5 em ;
padding : 4 px 8 px 4 px ;
display : inline - block ;
text - decoration : none ;
cursor : pointer ;
2023-08-17 17:09:11 +03:00
$ { wn ( "DownloadButton" ) } ;
2024-06-10 16:40:27 +03:00
` ,Jg=xn.span `
2022-02-04 13:00:46 +03:00
& : : before {
content : '|' ;
display : inline - block ;
opacity : 0.5 ;
width : $ { 15 } px ;
text - align : center ;
}
& : last - child : : after {
display : none ;
}
2024-06-10 16:40:27 +03:00
` ,ey=xn.div `
2022-02-04 13:00:46 +03:00
overflow : hidden ;
2024-06-10 16:40:27 +03:00
` ,ty=xn.div `
2022-02-04 13:00:46 +03:00
display : flex ;
flex - wrap : wrap ;
// hide separator on new lines: idea from https://stackoverflow.com/a/31732902/1749888
margin - left : - $ { 15 } px ;
2024-06-10 16:40:27 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let ny=class extends r.Component{constructor(){super(...arguments),this.handleDownloadClick=e=>{e.target.href||(e.target.href=this.props.store.spec.info.downloadLink)}}render(){const{store:e}=this.props,{info:t,externalDocs:n}=e.spec,i=e.options.hideDownloadButton,o=t.downloadFileName,a=t.downloadLink,s=t.license&&r.createElement(Jg,null,"License:"," ",t.license.identifier?t.license.identifier:r.createElement("a",{href:t.license.url},t.license.name))||null,l=t.contact&&t.contact.url&&r.createElement(Jg,null,"URL: ",r.createElement("a",{href:t.contact.url},t.contact.url))||null,c=t.contact&&t.contact.email&&r.createElement(Jg,null,t.contact.name||"E-mail",":"," ",r.createElement("a",{href:"mailto:"+t.contact.email},t.contact.email))||null,u=t.termsOfService&&r.createElement(Jg,null,r.createElement("a",{href:t.termsOfService},"Terms of Service"))||null,p=t.version&&r.createElement("span",null,"(",t.version,")")||null;return r.createElement(wp,null,r.createElement(Op,null,r.createElement(xp,{className:"api-info"},r.createElement(Kg,null,t.title," ",p),!i&&r.createElement("p",null,en("downloadSpecification"),":",r.createElement(Zg,{download:o||!0,target:"_blank",href:a,onClick:this.handleDownloadClick},en("download"))),r.createElement(Rf,null,(t.license||t.contact||t.termsOfService)&&r.createElement(ey,null,r.createElement(ty,null,c," ",l," ",s," ",u))||null),r.createElement(Wf,{source:e.spec.info.summary,"data-role":"redoc-summary"}),r.createElement(Wf,{source:e.spec.info.description,"data-role":"redoc-description"}),n&&r.createElement(mm,{externalDocs:n}))))}};ny=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],ny);const ry=xn.img `
2022-02-04 13:00:46 +03:00
max - height : $ { e => e . theme . logo . maxHeight } ;
max - width : $ { e => e . theme . logo . maxWidth } ;
padding : $ { e => e . theme . logo . gutter } ;
width : 100 % ;
display : block ;
2024-06-10 16:40:27 +03:00
` ,iy=xn.div `
2022-02-04 13:00:46 +03:00
text - align : center ;
2024-06-10 16:40:27 +03:00
` ,oy=xn.a `
2022-02-04 13:00:46 +03:00
display : inline - block ;
2024-10-16 13:50:13 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let ay=class extends r.Component{render(){const{info:e}=this.props,t=e["x-logo"];if(!t||!t.url)return null;const n=t.href||e.contact&&e.contact.url,i=t.altText?t.altText:"logo",o=r.createElement(ry,{src:t.url,alt:i});return r.createElement(iy,{style:{backgroundColor:t.backgroundColor}},n?(a=n,e=>r.createElement(oy,{href:a},e))(o):o);var a}};ay=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],ay);var sy=Object.defineProperty,ly=Object.getOwnPropertySymbols,cy=Object.prototype.hasOwnProperty,uy=Object.prototype.propertyIsEnumerable,py=(e,t,n)=>t in e?sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dy=(e,t)=>{for(var n in t||(t={}))cy.call(t,n)&&py(e,n,t[n]);if(ly)for(var n of ly(t))uy.call(t,n)&&py(e,n,t[n]);return e};class fy extends r.Component{render(){return r.createElement(Tn,null,(e=>r.createElement(Np,null,(t=>this.renderWithOptionsAndStore(e,t)))))}renderWithOptionsAndStore(e,t){const{source:n,htmlWrap:i=(e=>e)}=this.props;if(!t)throw new Error("When using components in markdown, store prop must be provided");const o=new Dl(e,this.props.parentId).renderMdWithComponents(n);return o.length?o.map(((e,n)=>{if("string"==typeof e)return r.cloneElement(i(r.createElement(qf,{html:e,inline:!1,compact:!1})),{key:n});const o=e.component;return r.createElement(o,dy({key:n},dy(dy({},e.props),e.propsSelector(t))))})):null}}var hy=n(4184);const my=xn.span.attrs((e=>({className: ` operation - type $ { e . type } ` }))) `
2022-02-04 13:00:46 +03:00
width : 9 ex ;
display : inline - block ;
height : $ { e => e . theme . typography . code . fontSize } ;
line - height : $ { e => e . theme . typography . code . fontSize } ;
2024-10-16 13:50:13 +03:00
background - color : $ { e => e . color || "#333" } ;
2022-02-04 13:00:46 +03:00
border - radius : 3 px ;
background - repeat : no - repeat ;
background - position : 6 px 4 px ;
font - size : 7 px ;
font - family : Verdana , sans - serif ; // web-safe
color : white ;
text - transform : uppercase ;
text - align : center ;
font - weight : bold ;
vertical - align : middle ;
margin - right : 6 px ;
margin - top : 2 px ;
& . get {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . get } ;
2022-02-04 13:00:46 +03:00
}
& . post {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . post } ;
2022-02-04 13:00:46 +03:00
}
& . put {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . put } ;
2022-02-04 13:00:46 +03:00
}
& . options {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . options } ;
2022-02-04 13:00:46 +03:00
}
& . patch {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . patch } ;
2022-02-04 13:00:46 +03:00
}
& . delete {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . delete } ;
2022-02-04 13:00:46 +03:00
}
& . basic {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . basic } ;
2022-02-04 13:00:46 +03:00
}
& . link {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . link } ;
2022-02-04 13:00:46 +03:00
}
& . head {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . http . head } ;
2022-02-04 13:00:46 +03:00
}
& . hook {
2023-08-17 17:09:11 +03:00
background - color : $ { ( { theme : e } ) => e . colors . primary . main } ;
}
& . schema {
background - color : $ { ( { theme : e } ) => e . colors . http . basic } ;
2022-02-04 13:00:46 +03:00
}
2024-06-10 16:40:27 +03:00
` ;function gy(e,{theme:t},n){return e>1?t.sidebar.level1Items[n]:1===e?t.sidebar.groupItems[n]:""}const yy=xn.ul `
2022-02-04 13:00:46 +03:00
margin : 0 ;
padding : 0 ;
2022-08-18 18:23:24 +03:00
& : first - child {
padding - bottom : 32 px ;
}
2022-02-04 13:00:46 +03:00
& & {
font - size : 0.929 em ;
}
2023-09-11 13:53:15 +03:00
$ { e => e . $expanded ? "" : "display: none;" } ;
2024-06-10 16:40:27 +03:00
` ,by=xn.li `
2022-02-04 13:00:46 +03:00
list - style : none inside none ;
overflow : hidden ;
text - overflow : ellipsis ;
padding : 0 ;
$ { e => 0 === e . depth ? "margin-top: 15px" : "" } ;
2024-06-10 16:40:27 +03:00
` ,vy={0:mn `
2022-02-04 13:00:46 +03:00
opacity : 0.7 ;
text - transform : $ { ( { theme : e } ) => e . sidebar . groupItems . textTransform } ;
font - size : 0.8 em ;
padding - bottom : 0 ;
cursor : default ;
2023-08-17 17:09:11 +03:00
` ,1:mn `
2022-02-04 13:00:46 +03:00
font - size : 0.929 em ;
text - transform : $ { ( { theme : e } ) => e . sidebar . level1Items . textTransform } ;
2024-06-10 16:40:27 +03:00
` },xy=xn.label.attrs((e=>({className:hy("-depth"+e. $ depth,{active:e. $ active})}))) `
2022-02-04 13:00:46 +03:00
cursor : pointer ;
2024-06-10 16:40:27 +03:00
color : $ { e => e . $active ? gy ( e . $depth , e , "activeTextColor" ) : e . theme . sidebar . textColor } ;
2022-02-04 13:00:46 +03:00
margin : 0 ;
padding : 12.5 px $ { e => 4 * e . theme . spacing . unit } px ;
2023-09-11 13:53:15 +03:00
$ { ( { $depth : e , $type : t , theme : n } ) => "section" === t && e > 1 && "padding-left: " + 8 * n . spacing . unit + "px;" || "" }
2022-02-04 13:00:46 +03:00
display : flex ;
justify - content : space - between ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
2024-06-10 16:40:27 +03:00
$ { e => vy [ e . $depth ] } ;
background - color : $ { e => e . $active ? gy ( e . $depth , e , "activeBackgroundColor" ) : e . theme . sidebar . backgroundColor } ;
2022-02-04 13:00:46 +03:00
2024-04-26 11:27:14 +03:00
$ { e => e . $deprecated && Bp || "" } ;
2022-02-04 13:00:46 +03:00
& : hover {
2024-06-10 16:40:27 +03:00
color : $ { e => gy ( e . $depth , e , "activeTextColor" ) } ;
background - color : $ { e => gy ( e . $depth , e , "activeBackgroundColor" ) } ;
2022-02-04 13:00:46 +03:00
}
2024-04-26 11:27:14 +03:00
$ { zp } {
2022-02-04 13:00:46 +03:00
height : $ { ( { theme : e } ) => e . sidebar . arrow . size } ;
width : $ { ( { theme : e } ) => e . sidebar . arrow . size } ;
polygon {
fill : $ { ( { theme : e } ) => e . sidebar . arrow . color } ;
}
}
2024-06-10 16:40:27 +03:00
` ,wy=xn.span `
2022-02-04 13:00:46 +03:00
display : inline - block ;
vertical - align : middle ;
width : $ { e => e . width ? e . width : "auto" } ;
overflow : hidden ;
text - overflow : ellipsis ;
2024-06-10 16:40:27 +03:00
` ,ky=xn.div `
2023-08-17 17:09:11 +03:00
$ { ( { theme : e } ) => mn `
2022-08-18 18:23:24 +03:00
font - size : 0.8 em ;
margin - top : $ { 2 * e . spacing . unit } px ;
text - align : center ;
position : fixed ;
width : $ { e . sidebar . width } ;
bottom : 0 ;
background : $ { e . sidebar . backgroundColor } ;
a ,
a : visited ,
a : hover {
color : $ { e . sidebar . textColor } ! important ;
padding : $ { e . spacing . unit } px 0 ;
2024-04-26 11:27:14 +03:00
border - top : 1 px solid $ { St ( . 1 , e . sidebar . backgroundColor ) } ;
2022-08-18 18:23:24 +03:00
text - decoration : none ;
display : flex ;
align - items : center ;
justify - content : center ;
}
` };
2022-07-28 17:25:24 +03:00
img {
width : 15 px ;
margin - right : 5 px ;
}
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-07-28 17:25:24 +03:00
width : 100 % ;
` };
2024-06-10 16:40:27 +03:00
` ,Sy=xn.button `
2022-02-04 13:00:46 +03:00
border : 0 ;
width : 100 % ;
text - align : left ;
& > * {
vertical - align : middle ;
}
2024-04-26 11:27:14 +03:00
$ { zp } {
2022-02-04 13:00:46 +03:00
polygon {
2024-04-26 11:27:14 +03:00
fill : $ { ( { theme : e } ) => St ( e . colors . tonalOffset , e . colors . gray [ 100 ] ) } ;
2022-02-04 13:00:46 +03:00
}
}
2024-06-10 16:40:27 +03:00
` ,Oy=xn.span `
2023-09-11 13:53:15 +03:00
text - decoration : $ { e => e . $deprecated ? "line-through" : "none" } ;
2022-02-04 13:00:46 +03:00
margin - right : 8 px ;
2024-06-10 16:40:27 +03:00
` ,Ey=xn(my) `
2022-02-04 13:00:46 +03:00
margin : 0 5 px 0 0 ;
2024-06-10 16:40:27 +03:00
` ,_y=xn((e=>{const{name:t,opened:n,className:i,onClick:o,httpVerb:a,deprecated:s}=e;return r.createElement(Sy,{className:i,onClick:o||void 0},r.createElement(Ey,{type:a},vs(a)),r.createElement(zp,{size:"1.5em",direction:n?"down":"right",float:"left"}),r.createElement(Oy,{ $ deprecated:s},t),s?r.createElement(Up,{type:"warning"}," ",en("deprecated")," "):null)})) `
2022-02-04 13:00:46 +03:00
padding : 10 px ;
border - radius : 2 px ;
margin - bottom : 4 px ;
line - height : 1.5 em ;
background - color : $ { ( { theme : e } ) => e . colors . gray [ 100 ] } ;
cursor : pointer ;
2024-04-26 11:27:14 +03:00
outline - color : $ { ( { theme : e } ) => St ( e . colors . tonalOffset , e . colors . gray [ 100 ] ) } ;
2024-06-10 16:40:27 +03:00
` ,Ay=xn.div `
2022-02-04 13:00:46 +03:00
padding : 10 px 25 px ;
background - color : $ { ( { theme : e } ) => e . colors . gray [ 50 ] } ;
margin - bottom : 5 px ;
margin - top : 5 px ;
2024-06-10 16:40:27 +03:00
` ;class jy extends r.PureComponent{constructor(){super(...arguments),this.selectElement=()=>{Zf.selectElement(this.child)}}render(){const{children:e}=this.props;return r.createElement("div",{ref:e=>this.child=e,onClick:this.selectElement,onFocus:this.selectElement,tabIndex:0,role:"button"},e)}}const Cy=xn.div `
2022-02-04 13:00:46 +03:00
cursor : pointer ;
position : relative ;
margin - bottom : 5 px ;
2024-06-10 16:40:27 +03:00
` ,Py=xn.span `
2022-02-04 13:00:46 +03:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
margin - left : 10 px ;
flex : 1 ;
overflow - x : hidden ;
text - overflow : ellipsis ;
2024-06-10 16:40:27 +03:00
` ,Ty=xn.button `
2022-02-04 13:00:46 +03:00
outline : 0 ;
color : inherit ;
width : 100 % ;
text - align : left ;
cursor : pointer ;
2023-09-11 13:53:15 +03:00
padding : 10 px 30 px 10 px $ { e => e . $inverted ? "10px" : "20px" } ;
border - radius : $ { e => e . $inverted ? "0" : "4px 4px 0 0" } ;
background - color : $ { e => e . $inverted ? "transparent" : e . theme . codeBlock . backgroundColor } ;
2022-02-04 13:00:46 +03:00
display : flex ;
white - space : nowrap ;
align - items : center ;
2023-09-11 13:53:15 +03:00
border : $ { e => e . $inverted ? "0" : "1px solid transparent" } ;
border - bottom : $ { e => e . $inverted ? "1px solid #ccc" : "0" } ;
2022-02-04 13:00:46 +03:00
transition : border - color 0.25 s ease ;
2023-09-11 13:53:15 +03:00
$ { e => e . $expanded && ! e . $inverted && ` border-color: ${ e . theme . colors . border . dark } ; ` || "" }
2022-02-04 13:00:46 +03:00
2024-06-10 16:40:27 +03:00
. $ { Py } {
2023-09-11 13:53:15 +03:00
color : $ { e => e . $inverted ? e . theme . colors . text . primary : "#ffffff" } ;
2022-02-04 13:00:46 +03:00
}
& : focus {
box - shadow : inset 0 2 px 2 px rgba ( 0 , 0 , 0 , 0.45 ) , 0 2 px 0 rgba ( 128 , 128 , 128 , 0.25 ) ;
}
2024-06-10 16:40:27 +03:00
` ,Iy=xn.span.attrs((e=>({className: ` http - verb $ { e . type } ` }))) `
2023-09-11 13:53:15 +03:00
font - size : $ { e => e . $compact ? "0.8em" : "0.929em" } ;
line - height : $ { e => e . $compact ? "18px" : "20px" } ;
2022-02-04 13:00:46 +03:00
background - color : $ { e => e . theme . colors . http [ e . type ] || "#999999" } ;
color : # ffffff ;
2023-09-11 13:53:15 +03:00
padding : $ { e => e . $compact ? "2px 8px" : "3px 10px" } ;
2022-02-04 13:00:46 +03:00
text - transform : uppercase ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
margin : 0 ;
2024-06-10 16:40:27 +03:00
` ,Ry=xn.div `
2022-02-04 13:00:46 +03:00
position : absolute ;
width : 100 % ;
z - index : 100 ;
2022-06-02 16:43:31 +03:00
background : $ { e => e . theme . rightPanel . servers . overlay . backgroundColor } ;
color : $ { e => e . theme . rightPanel . servers . overlay . textColor } ;
2022-02-04 13:00:46 +03:00
box - sizing : border - box ;
2023-09-11 13:53:15 +03:00
box - shadow : 0 0 6 px rgba ( 0 , 0 , 0 , 0.33 ) ;
2022-02-04 13:00:46 +03:00
overflow : hidden ;
border - bottom - left - radius : 4 px ;
border - bottom - right - radius : 4 px ;
transition : all 0.25 s ease ;
visibility : hidden ;
2023-09-11 13:53:15 +03:00
$ { e => e . $expanded ? "visibility: visible;" : "transform: translateY(-50%) scaleY(0);" }
2024-06-10 16:40:27 +03:00
` ,Ny=xn.div `
2022-02-04 13:00:46 +03:00
padding : 10 px ;
2024-06-10 16:40:27 +03:00
` , $ y=xn.div `
2022-02-04 13:00:46 +03:00
padding : 5 px ;
border : 1 px solid # ccc ;
2022-06-02 16:43:31 +03:00
background : $ { e => e . theme . rightPanel . servers . url . backgroundColor } ;
2022-02-04 13:00:46 +03:00
word - break : break - all ;
color : $ { e => e . theme . colors . primary . main } ;
> span {
color : $ { e => e . theme . colors . text . primary } ;
}
2024-10-16 13:50:13 +03:00
` ;class Ly extends r.Component{constructor(e){super(e),this.toggle=()=>{this.setState({expanded:!this.state.expanded})},this.state={expanded:!1}}render(){const{operation:e,inverted:t,hideHostname:n}=this.props,{expanded:i}=this.state;return r.createElement(Cn.Consumer,null,(o=>r.createElement(Cy,null,r.createElement(Ty,{onClick:this.toggle, $ expanded:i, $ inverted:t},r.createElement(Iy,{type:e.httpVerb, $ compact:this.props.compact},e.httpVerb),r.createElement(Py,null,e.path),r.createElement(zp,{float:"right",color:t?"black":"white",size:"20px",direction:i?"up":"down",style:{marginRight:"-25px"}})),r.createElement(Ry,{ $ expanded:i,"aria-hidden":!i},e.servers.map((t=>{const i=o.expandDefaultServerVariables?function(e,t={}){return e.replace(/(?:{)([ \w -.]+)(?:})/g,((e,n)=>t[n]&&t[n].default||e))}(t.url,t.variables):t.url,a=function(e){try{return Qt(e).pathname}catch(t){return e}}(i);return r.createElement(Ny,{key:i},r.createElement(Wf,{source:t.description||"",compact:!0}),r.createElement(jy,null,r.createElement( $ y,null,r.createElement("span",null,n||o.hideHostname?"/"===a?"":a:i),e.path)))}))))))}}class Dy extends r.PureComponent{render(){const{place:e,parameters:t}=this.props;return t&&t.length?r.createElement("div",{key:e},r.createElement(Tp,null,e," Parameters"),r.createElement(Xp,null,r.createElement("tbody",null,Ut(t,((e,t)=>r.createElement(Um,{key:e.name,isLast:t,field:e,showExamples:!0})))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let My=class extends r.Component{constructor(){super(...arguments),this.switchMedia=({idx:e})=>{this.props.content&&void 0!==e&&this.props.content.activate(e)}}render(){const{content:e}=this.props;if(!e||!e.mediaTypes||!e.mediaTypes.length)return null;const t=e.activeMimeIdx,n=e.mediaTypes.map(((e,t)=>({value:e.name,idx:t}))),i=({children:e})=>this.props.withLabel?r.createElement(bh,null,r.createElement(yh,null,"Content type"),e):e;return r.createElement(r.Fragment,null,r.createElement(i,null,this.props.renderDropdown({value:n[t].value,options:n,onChange:this.switchMedia,ariaLabel:"Content type"})),this.props.children(e.active))}};My=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],My);var Fy=Object.defineProperty,zy=Object.getOwnPropertySymbols,Uy=Object.prototype.hasOwnProperty,By=Object.prototype.propertyIsEnumerable,qy=(e,t,n)=>t in e?Fy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wy=(e,t)=>{for(var n in t||(t={}))Uy.call(t,n)&&qy(e,n,t[n]);if(zy)for(var n of zy(t))By.call(t,n)&&qy(e,n,t[n]);return e},Vy=(e,t)=>{var n={};for(var r in e)Uy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&zy)for(var r of zy(e))t.indexOf(r)<0&&By.call(e,r)&&(n[r]=e[r]);return n};const Hy=["path","query","cookie","header"];class Yy extends r.PureComponent{orderParams(e){const t={};return e.forEach((e=>{var n,r,i;i=e,(n=t)[r=e.in]||(n[r]=[]),n[r].push(i)})),t}render(){const{body:e,parameters:t=[]}=this.props;if(void 0===e&&void 0===t)return null;const n=this.orderParams(t),i=t.length>0?Hy:[],o=e&&e.content,a=e&&e.description,s=e&&e.required;return r.createElement(r.Fragment,null,i.map((e=>r.createElement(Dy,{key:e,place:e,parameters:n[e]}))),o&&r.createElement(Qy,{content:o,description:a,bodyRequired:s}))}}function Gy(e){var t=e,{bodyRequired:n}=t,i=Vy(t,["bodyRequired"]);const o="boolean"==typeof n&&!!n,a="boolean"==typeof n&&!n;return r.createElement(Tp,{key:"header"},"Request Body schema: ",r.createElement(Pf,Wy({},i)),o&&r.createElement(Ky,null,"required"),a&&r.createElement(Zy,null,"optional"))}function Qy(e){const{content:t,description:n,bodyRequired:i}=e,{isRequestType:o}=t;return r.createElement(My,{content:t,renderDropdown:e=>r.createElement(Gy,Wy({bodyRequired:i},e))},(({schema:e})=>r.createElement(r.Fragment,null,void 0!==n&&r.createElement(Wf,{source:n}),"object"===(null==e?void 0:e.type)&&r.createElement(km,{constraints:(null==e?void 0:e.constraints)||[]}),r.createElement(kg,{skipReadOnly:o,skipWriteOnly:!o,key:"schema",schema:e}))))}const Xy=" \n text-transform: lowercase; \n margin-left: 0; \n line-height: 1.5em; \n ",K
2024-06-10 16:40:27 +03:00
$ { Xy }
` ,Zy=xn("div") `
$ { Xy }
2023-08-17 17:09:11 +03:00
color : $ { ( { theme : e } ) => e . colors . text . secondary } ;
font - size : $ { e => e . theme . schema . labelsTextSize } ;
2024-06-10 16:40:27 +03:00
` ,Jy=r.memo((function({title:e,type:t,empty:n,code:i,opened:o,className:a,onClick:s}){return r.createElement("button",{className:a,onClick:!n&&s||void 0,"aria-expanded":o,disabled:n},!n&&r.createElement(zp,{size:"1.5em",color:t,direction:o?"down":"right",float:"left"}),r.createElement(rb,null,i," "),r.createElement(Wf,{compact:!0,inline:!0,source:e}))})),eb=xn(Jy) `
2022-02-04 13:00:46 +03:00
display : block ;
border : 0 ;
width : 100 % ;
text - align : left ;
padding : 10 px ;
border - radius : 2 px ;
margin - bottom : 4 px ;
line - height : 1.5 em ;
cursor : pointer ;
color : $ { e => e . theme . colors . responses [ e . type ] . color } ;
background - color : $ { e => e . theme . colors . responses [ e . type ] . backgroundColor } ;
& : focus {
outline : auto $ { e => e . theme . colors . responses [ e . type ] . color } ;
}
$ { e => e . empty ? '\ncursor: default;\n&::before {\n content: "—";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n}\n&:focus {\n outline: 0;\n}\n' : "" } ;
2024-06-10 16:40:27 +03:00
` ,tb=xn.div `
2022-02-04 13:00:46 +03:00
padding : 10 px ;
2024-06-10 16:40:27 +03:00
` ,nb=xn(Tp).attrs({as:"caption"}) `
2022-02-04 13:00:46 +03:00
text - align : left ;
margin - top : 1 em ;
caption - side : top ;
2024-06-10 16:40:27 +03:00
` ,rb=xn.strong `
2022-02-04 13:00:46 +03:00
vertical - align : top ;
2024-10-16 13:50:13 +03:00
` ;class ib extends r.PureComponent{render(){const{headers:e}=this.props;return void 0===e||0===e.length?null:r.createElement(Xp,null,r.createElement(nb,null," Response Headers "),r.createElement("tbody",null,Ut(e,((e,t)=>r.createElement(Um,{isLast:t,key:e.name,field:e,showExamples:!0})))))}}var ob=Object.defineProperty,ab=Object.getOwnPropertySymbols,sb=Object.prototype.hasOwnProperty,lb=Object.prototype.propertyIsEnumerable,cb=(e,t,n)=>t in e?ob(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class ub extends r.PureComponent{constructor(){super(...arguments),this.renderDropdown=e=>r.createElement(Tp,{key:"header"},"Response Schema: ",r.createElement(Pf,((e,t)=>{for(var n in t||(t={}))sb.call(t,n)&&cb(e,n,t[n]);if(ab)for(var n of ab(t))lb.call(t,n)&&cb(e,n,t[n]);return e})({},e)))}render(){const{description:e,extensions:t,headers:n,content:i}=this.props.response;return r.createElement(r.Fragment,null,e&&r.createElement(Wf,{source:e}),r.createElement(vm,{extensions:t}),r.createElement(ib,{headers:n}),r.createElement(My,{content:i,renderDropdown:this.renderDropdown},(({schema:e})=>r.createElement(r.Fragment,null,"object"===(null==e?void 0:e.type)&&r.createElement(km,{constraints:(null==e?void 0:e.constraints)||[]}),r.createElement(kg,{skipWriteOnly:!0,key:"schema",schema:e})))))}}const pb=Jh((({response:e})=>{const{extensions:t,headers:n,type:i,summary:o,description:a,code:s,expanded:l,content:c}=e,u=r.useMemo((()=>void 0===c?[]:c.mediaTypes.filter((e=>void 0!==e.schema))),[c]),p=r.useMemo((()=>!(t&&0!==Object.keys(t).length||0!==n.length||0!==u.length||a)),[t,n,u,a]);return r.createElement("div",null,r.createElement(eb,{onClick:()=>e.toggle(),type:i,empty:p,title:o||"",code:s,opened:l}),l&&!p&&r.createElement(tb,null,r.createElement(ub,{response:e})))})),db=xn.h3 `
2022-02-04 13:00:46 +03:00
font - size : 1.3 em ;
padding : 0.2 em 0 ;
margin : 3 em 0 1.1 em ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
font - weight : normal ;
2024-10-16 13:50:13 +03:00
` ;class fb extends r.PureComponent{render(){const{responses:e,isCallback:t}=this.props;return e&&0!==e.length?r.createElement("div",null,r.createElement(db,null,en(t?"callbackResponses":"responses")),e.map((e=>r.createElement(pb,{key:e.code,response:e})))):null}}function hb(e){const{security:t,showSecuritySchemeType:n,expanded:i}=e,o=t.schemes.length>1;return 0===t.schemes.length?r.createElement(Ng,{ $ expanded:i},"None"):r.createElement(Ng,{ $ expanded:i},o&&"(",t.schemes.map((e=>r.createElement(Rg,{key:e.id},n&& ` $ { Yg [ e . type ] || e . type } : ` ,r.createElement("i",null,e.displayName),i&&e.scopes.length?[" (",e.scopes.map((e=>r.createElement(Ig,{key:e},e))),") "]:null))),o&&") ")}const mb=({scopes:e})=>e.length?r.createElement("div",null,r.createElement("b",null,"Required scopes: "),e.map(((e,t)=>r.createElement(r.Fragment,{key:t},r.createElement("code",null,e)," ")))):null;function gb(e){const t=(0,r.useContext)(Ip),n=null==t?void 0:t.options.showSecuritySchemeType,[i,o]=(0,r.useState)(!1),{securities:a}=e;if(!(null==a?void 0:a.length)||(null==t?void 0:t.options.hideSecuritySection))return null;const s=null==t?void 0:t.spec.securitySchemes.schemes.filter((({id:e})=>a.find((t=>t.schemes.find((t=>t.id===e))))));return r.createElement(r.Fragment,null,r.createElement(Mg,{ $ expanded:i},r.createElement( $ g,{onClick:()=>o(!i)},r.createElement(Dg,null,"Authorizations:"),r.createElement(zp,{size:"1.3em",direction:i?"down":"right"})),r.createElement(Lg,{ $ expanded:i},a.map(((e,t)=>r.createElement(hb,{key:t,expanded:i,showSecuritySchemeType:n,security:e}))))),i&&!!(null==s?void 0:s.length)&&s.map(((e,t)=>r.createElement(zg,{key:t},r.createElement("h5",null,r.createElement(yb,null)," ",Yg[e.type]||e.type,": ",e.id),r.createElement(Wf,{source:e.description||""}),r.createElement(Hg,{key:e.id,scheme:e,RequiredScopes:r.createElement(mb,{scopes:bb(e.id,a)})})))))}const yb=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"11",height:"11"},r.createElement("path",{fill:"currentColor",d:"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z"}));function bb(e,t){const n=[];let r=t.length;for(;r--;){const i=t[r];let o=i.schemes.length;for(;o--;){const t=i.schemes[o];t.id===e&&Array.isArray(t.scopes)&&n.push(...t.scopes)}}return Array.from(new Set(n))}Object.defineProperty,Object.getOwnPropertyDescriptor;let vb=class extends r.Component{render(){const{operation:e}=this.props,{description:t,externalDocs:n}=e,i=!(!t&&!n);return r.createElement(Ay,null,i&&r.createElement(xb,null,void 0!==t&&r.createElement(Wf,{source:t}),n&&r.createElement(mm,{externalDocs:n})),r.createElement(Ly,{operation:this.props.operation,inverted:!0,compact:!0}),r.createElement(vm,{extensions:e.extensions}),r.createElement(gb,{securities:e.security}),r.createElement(Yy,{parameters:e.parameters,body:e.requestBody}),r.createElement(fb,{responses:e.responses,isCallback:e.isCallback}))}};vb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],vb);const xb=xn.div `
2022-02-04 13:00:46 +03:00
margin - bottom : $ { ( { theme : e } ) => 3 * e . spacing . unit } px ;
2024-06-10 16:40:27 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let wb=class extends r.Component{constructor(){super(...arguments),this.toggle=()=>{this.props.callbackOperation.toggle()}}render(){const{name:e,expanded:t,httpVerb:n,deprecated:i}=this.props.callbackOperation;return r.createElement(r.Fragment,null,r.createElement(_y,{onClick:this.toggle,name:e,opened:t,httpVerb:n,deprecated:i}),t&&r.createElement(vb,{operation:this.props.callbackOperation}))}};wb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],wb);class kb extends r.PureComponent{render(){const{callbacks:e}=this.props;return e&&0!==e.length?r.createElement("div",null,r.createElement(Sb,null," Callbacks "),e.map((e=>e.operations.map(((t,n)=>r.createElement(wb,{key: ` $ { e . name } _$ { n } ` ,callbackOperation:t})))))):null}}const Sb=xn.h3 `
2022-02-04 13:00:46 +03:00
font - size : 1.3 em ;
padding : 0.2 em 0 ;
margin : 3 em 0 1.1 em ;
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
font - weight : normal ;
2024-10-16 13:50:13 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Ob=class extends r.Component{constructor(e){super(e),this.switchItem=({idx:e})=>{this.props.items&&void 0!==e&&this.setState({activeItemIdx:e})},this.state={activeItemIdx:0}}render(){const{items:e}=this.props;if(!e||!e.length)return null;const t=({children:e})=>this.props.label?r.createElement(bh,null,r.createElement(yh,null,this.props.label),e):e;return r.createElement(r.Fragment,null,r.createElement(t,null,this.props.renderDropdown({value:this.props.options[this.state.activeItemIdx].value,options:this.props.options,onChange:this.switchItem,ariaLabel:this.props.label||"Callback"})),this.props.children(e[this.state.activeItemIdx]))}};Ob=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Ob);var Eb=Object.defineProperty,_b=Object.defineProperties,Ab=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),jb=Object.getOwnPropertySymbols,Cb=Object.prototype.hasOwnProperty,Pb=Object.prototype.propertyIsEnumerable,Tb=(e,t,n)=>t in e?Eb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Ib=class extends r.Component{constructor(){super(...arguments),this.renderDropdown=e=>{return r.createElement(Pf,(t=((e,t)=>{for(var n in t||(t={}))Cb.call(t,n)&&Tb(e,n,t[n]);if(jb)for(var n of jb(t))Pb.call(t,n)&&Tb(e,n,t[n]);return e})({Label:gh,Dropdown:vh},e),_b(t,Ab({variant:"dark"}))));var t}}render(){const e=this.props.content;return void 0===e?null:r.createElement(My,{content:e,renderDropdown:this.renderDropdown,withLabel:!0},(e=>r.createElement(wh,{key:"samples",mediaType:e,renderDropdown:this.renderDropdown})))}};Ib=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Ib);class Rb extends r.Component{render(){const e=this.props.callback.codeSamples.find((e=>ju(e)));return e?r.createElement(Nb,null,r.createElement(Ib,{content:e.requestBodyContent})):null}}const Nb=xn.div `
2022-02-04 13:00:46 +03:00
margin - top : 15 px ;
2024-10-16 13:50:13 +03:00
` ;var $ b=Object.defineProperty,Lb=Object.defineProperties,Db=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Mb=Object.getOwnPropertySymbols,Fb=Object.prototype.hasOwnProperty,zb=Object.prototype.propertyIsEnumerable,Ub=(e,t,n)=>t in e? $ b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Bb=class extends r.Component{constructor(){super(...arguments),this.renderDropdown=e=>{return r.createElement(Pf,(t=((e,t)=>{for(var n in t||(t={}))Fb.call(t,n)&&Ub(e,n,t[n]);if(Mb)for(var n of Mb(t))zb.call(t,n)&&Ub(e,n,t[n]);return e})({Label:gh,Dropdown:vh},e),Lb(t,Db({variant:"dark"}))));var t}}render(){const{callbacks:e}=this.props;if(!e||0===e.length)return null;const t=e.map((e=>e.operations.map((e=>e)))).reduce(((e,t)=>e.concat(t)),[]);if(!t.some((e=>e.codeSamples.length>0)))return null;const n=t.map(((e,t)=>({value: ` $ { e . httpVerb . toUpperCase ( ) } : $ { e . name } ` ,idx:t})));return r.createElement("div",null,r.createElement(Pp,null," Callback payload samples "),r.createElement(qb,null,r.createElement(Ob,{items:t,renderDropdown:this.renderDropdown,label:"Callback",options:n},(e=>r.createElement(Rb,{key:"callbackPayloadSample",callback:e,renderDropdown:this.renderDropdown})))))}};Bb.contextType=Cn,Bb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Bb);const qb=xn.div `
2022-02-04 13:00:46 +03:00
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
padding : $ { e => 4 * e . theme . spacing . unit } px ;
2024-06-10 16:40:27 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Wb=class extends r.Component{render(){const{operation:e}=this.props,t=e.codeSamples,n=t.length>0,i=1===t.length&&this.context.hideSingleRequestSampleTab;return n&&r.createElement("div",null,r.createElement(Pp,null," ",en("requestSamples")," "),r.createElement(Id,{defaultIndex:0},r.createElement(Sd,{hidden:i},t.map((e=>r.createElement(Ad,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)))),t.map((e=>r.createElement(Td,{key:e.lang+"_"+(e.label||"")},ju(e)?r.createElement("div",null,r.createElement(Ib,{content:e.requestBodyContent})):r.createElement(ph,{lang:e.lang,source:e.source}))))))||null}};Wb.contextType=Cn,Wb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Wb);Object.defineProperty,Object.getOwnPropertyDescriptor;let Vb=class extends r.Component{render(){const{operation:e}=this.props,t=e.responses.filter((e=>e.content&&e.content.hasSample));return t.length>0&&r.createElement("div",null,r.createElement(Pp,null," ",en("responseSamples")," "),r.createElement(Id,{defaultIndex:0},r.createElement(Sd,null,t.map((e=>r.createElement(Ad,{className:"tab-"+e.type,key:e.code},e.code)))),t.map((e=>r.createElement(Td,{key:e.code},r.createElement("div",null,r.createElement(Ib,{content:e.content})))))))||null}};Vb=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Vb);var Hb=Object.defineProperty,Yb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptors,Qb=Object.getOwnPropertySymbols,Xb=Object.prototype.hasOwnProperty,Kb=Object.prototype.propertyIsEnumerable,Zb=(e,t,n)=>t in e?Hb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const Jb=xn.div `
2022-02-04 13:00:46 +03:00
margin - bottom : $ { ( { theme : e } ) => 6 * e . spacing . unit } px ;
2024-10-16 13:50:13 +03:00
` ,ev=Jh((({operation:e})=>{const{name:t,description:n,deprecated:i,externalDocs:o,isWebhook:a,httpVerb:s,badges:l}=e,c=!(!n&&!o),{showWebhookVerb:u}=r.useContext(Cn),p=l.filter((({position:e})=>"before"===e)),d=l.filter((({position:e})=>"after"===e));return r.createElement(Cn.Consumer,null,(l=>r.createElement(Op,((e,t)=>Yb(e,Gb(t)))(((e,t)=>{for(var n in t||(t={}))Xb.call(t,n)&&Zb(e,n,t[n]);if(Qb)for(var n of Qb(t))Kb.call(t,n)&&Zb(e,n,t[n]);return e})({},{[fp]:e.operationHash}),{id:e.operationHash}),r.createElement(xp,null,r.createElement(jp,null,r.createElement(Mp,{to:e.id}),p.map((({name:e,color:t})=>r.createElement(Up,{type:"primary",key:e,color:t},e))),t," ",i&&r.createElement(Up,{type:"warning"}," Deprecated "),a&&r.createElement(Up,{type:"primary"}," ","Webhook ",u&&s&&"| "+s.toUpperCase()),d.map((({name:e,color:t})=>r.createElement(Up,{type:"primary",key:e,color:t},e)))),l.pathInMiddlePanel&&!a&&r.createElement(Ly,{operation:e,inverted:!0}),c&&r.createElement(Jb,null,void 0!==n&&r.createElement(Wf,{source:n}),o&&r.createElement(mm,{externalDocs:o})),r.createElement(vm,{extensions:e.extensions}),r.createElement(gb,{securities:e.security}),r.createElement(Yy,{parameters:e.parameters,body:e.requestBody}),r.createElement(fb,{responses:e.responses}),r.createElement(kb,{callbacks:e.callbacks})),r.createElement(Sp,null,!l.pathInMiddlePanel&&!a&&r.createElement(Ly,{operation:e}),r.createElement(Wb,{operation:e}),r.createElement(Vb,{operation:e}),r.createElement(Bb,{callbacks:e.callbacks})))))}));var tv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,rv=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,ov=Object.prototype.propertyIsEnumerable,av=(e,t,n)=>t in e?tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sv=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?nv(t,n):t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=(r?i(t,n,o):i(o))||o);return r&&o&&tv(t,n,o),o};let lv=class extends r.Component{render(){const e=this.props.items;return 0===e.length?null:e.map((e=>r.createElement(cv,{key:e.id,item:e})))}};lv=sv([Jh],lv);let cv=class extends r.Component{render(){const e=this.props.item;let t;const{type:n}=e;switch(n){case"group":t=null;break;case"tag":case"section":default:t=r.createElement(pv,((e,t)=>{for(var n in t||(t={}))iv.call(t,n)&&av(e,n,t[n]);if(rv)for(var n of rv(t))ov.call(t,n)&&av(e,n,t[n]);return e})({},this.props));break;case"operation":t=r.createElement(dv,{item:e})}return r.createElement(r.Fragment,null,t&&r.createElement(wp,{id:e.id, $ underlined:"operation"===e.type},t),e.items&&r.createElement(lv,{items:e.items}))}};cv=sv([Jh],cv);const uv=e=>r.createElement(xp,{ $ compact:!0},e);let pv=class extends r.Component{render(){const{name:e,description:t,externalDocs:n,level:i}=this.props.item,o=2===i?Cp:jp;return r.createElement(r.Fragment,null,r.createElement(Op,null,r.createElement(xp,{ $ compact:!1},r.createElement(o,null,r.createElement(Mp,{to:this.props.item.id}),e))),r.createElement(fy,{parentId:this.props.item.id,source:t||"",htmlWrap:uv}),n&&r.createElement(Op,null,r.createElement(xp,null,r.createElement(mm,{externalDocs:n}))))}};pv=sv([Jh],pv);let dv=class extends r.Component{render(){return r.createElement(ev,{operation:this.props.item})}};dv=sv([Jh],dv);var fv=Object.defineProperty,hv=Object.defineProperties,mv=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),gv=Object.getOwnPropertySymbols,yv=Object.prototype.hasOwnProperty,bv=Object.prototype.propertyIsEnumerable,vv=(e,t,n)=>t in e?fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let xv=class extends r.Component{constructor(){super(...arguments),this.ref=r.createRef(),this.activate=e=>{this.props.onActivate(this.props.item),e.stopPropagation()}}componentDidMount(){this.scrollIntoViewIfActive()}componentDidUpdate(){this.scrollIntoViewIfActive()}scrollIntoViewIfActive(){this.props.item.active&&this.ref.current&&Mt(this.ref.current)}render(){const{item:e,withoutChildren:t}=this.props;return r.createElement(by,{tabIndex:0,onClick:this.activate,depth:e.depth,"data-item-id":e.id,role:"menuitem"},"operation"
2022-02-04 13:00:46 +03:00
user - select : none ;
width : 20 px ;
height : 20 px ;
align - self : center ;
display : flex ;
flex - direction : column ;
color : $ { e => e . theme . colors . primary . main } ;
2024-06-10 16:40:27 +03:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Rv;Lt&&(Rv=n(5114));const Nv=Rv&&Rv(), $ v=xn.div `
2022-02-04 13:00:46 +03:00
width : $ { e => e . theme . sidebar . width } ;
background - color : $ { e => e . theme . sidebar . backgroundColor } ;
overflow : hidden ;
display : flex ;
flex - direction : column ;
backface - visibility : hidden ;
/* contain: strict; TODO: breaks layout since Chrome 80*/
height : 100 vh ;
position : sticky ;
position : - webkit - sticky ;
top : 0 ;
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
position : fixed ;
z - index : 20 ;
width : 100 % ;
background : $ { ( { theme : e } ) => e . sidebar . backgroundColor } ;
2023-10-25 12:09:58 +03:00
display : $ { e => e . $open ? "flex" : "none" } ;
2022-02-04 13:00:46 +03:00
` };
@ media print {
display : none ;
}
2024-06-10 16:40:27 +03:00
` ,Lv=xn.div `
2022-02-04 13:00:46 +03:00
outline : none ;
user - select : none ;
2022-04-28 16:24:41 +03:00
background - color : $ { ( { theme : e } ) => e . fab . backgroundColor } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . colors . primary . main } ;
display : none ;
cursor : pointer ;
position : fixed ;
right : 20 px ;
z - index : 100 ;
border - radius : 50 % ;
box - shadow : 0 0 20 px rgba ( 0 , 0 , 0 , 0.3 ) ;
2024-04-26 11:27:14 +03:00
$ { vn ( "small" ) `
2022-02-04 13:00:46 +03:00
display : flex ;
` };
bottom : 44 px ;
width : 60 px ;
height : 60 px ;
padding : 0 20 px ;
2022-04-28 16:24:41 +03:00
svg {
color : $ { ( { theme : e } ) => e . fab . color } ;
}
2022-02-04 13:00:46 +03:00
@ media print {
display : none ;
}
2024-10-16 13:50:13 +03:00
` ;let Dv=class extends r.Component{constructor(){super(...arguments),this.state={offsetTop:"0px"},this.toggleNavMenu=()=>{this.props.menu.toggleSidebar()}}componentDidMount(){Nv&&Nv.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})}componentWillUnmount(){Nv&&Nv.remove(this.stickyElement)}getScrollYOffset(e){let t;return t=void 0!==this.props.scrollYOffset?fn.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset(),t+"px"}render(){const e=this.props.menu.sideBarOpened,t=this.state.offsetTop;return r.createElement(r.Fragment,null,r.createElement( $ v,{ $ open:e,className:this.props.className,style:{top:t,height: ` calc ( 100 vh - $ { t } ) ` },ref:e=>{this.stickyElement=e}},this.props.children),!this.context.hideFab&&r.createElement(Lv,{onClick:this.toggleNavMenu},r.createElement(Pv,{open:e})))}};Dv.contextType=Cn,Dv=((e,t,n,r)=>{for(var i,o=t,a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(o)||o);return o})([Jh],Dv);const Mv=xn.div `
2022-02-04 13:00:46 +03:00
$ { ( { theme : e } ) => ` \n font-family: ${ e . typography . fontFamily } ; \n font-size: ${ e . typography . fontSize } ; \n font-weight: ${ e . typography . fontWeightRegular } ; \n line-height: ${ e . typography . lineHeight } ; \n color: ${ e . colors . text . primary } ; \n display: flex; \n position: relative; \n text-align: left; \n \n -webkit-font-smoothing: ${ e . typography . smoothing } ; \n font-smoothing: ${ e . typography . smoothing } ; \n ${ e . typography . optimizeSpeed ? "text-rendering: optimizeSpeed !important" : "" } ; \n \n tap-highlight-color: rgba(0, 0, 0, 0); \n text-size-adjust: 100%; \n \n * { \n box-sizing: border-box; \n -webkit-tap-highlight-color: rgba(255, 255, 255, 0); \n } \n ` } ;
2024-06-10 16:40:27 +03:00
` ,Fv=xn.div `
2022-02-04 13:00:46 +03:00
z - index : 1 ;
position : relative ;
overflow : hidden ;
width : calc ( 100 % - $ { e => e . theme . sidebar . width } ) ;
2024-04-26 11:27:14 +03:00
$ { vn ( "small" , ! 0 ) `
2022-02-04 13:00:46 +03:00
width : 100 % ;
` };
contain : layout ;
2024-06-10 16:40:27 +03:00
` ,zv=xn.div `
2022-02-04 13:00:46 +03:00
background : $ { ( { theme : e } ) => e . rightPanel . backgroundColor } ;
position : absolute ;
top : 0 ;
bottom : 0 ;
right : 0 ;
width : $ { ( { theme : e } ) => { if ( e . rightPanel . width . endsWith ( "%" ) ) { const t = parseInt ( e . rightPanel . width , 10 ) ; return ` calc((100% - ${ e . sidebar . width } ) * ${ t / 100 } ) ` } return e . rightPanel . width } } ;
2024-04-26 11:27:14 +03:00
$ { vn ( "medium" , ! 0 ) `
2022-02-04 13:00:46 +03:00
display : none ;
` };
2024-06-10 16:40:27 +03:00
` ,Uv=xn.div `
2022-02-04 13:00:46 +03:00
padding : 5 px 0 ;
2024-06-10 16:40:27 +03:00
` ,Bv=xn.input.attrs((()=>({className:"search-input"}))) `
2022-02-04 13:00:46 +03:00
width : calc ( 100 % - $ { e => 8 * e . theme . spacing . unit } px ) ;
box - sizing : border - box ;
margin : 0 $ { e => 4 * e . theme . spacing . unit } px ;
padding : 5 px $ { e => 2 * e . theme . spacing . unit } px 5 px
$ { e => 4 * e . theme . spacing . unit } px ;
border : 0 ;
border - bottom : 1 px solid
2024-04-26 11:27:14 +03:00
$ { ( { theme : e } ) => ( _t ( e . sidebar . backgroundColor ) > . 5 ? St : jt ) ( . 1 , e . sidebar . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
font - family : $ { ( { theme : e } ) => e . typography . fontFamily } ;
font - weight : bold ;
font - size : 13 px ;
color : $ { e => e . theme . sidebar . textColor } ;
background - color : transparent ;
outline : none ;
2024-06-10 16:40:27 +03:00
` ,qv=xn((e=>r.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},r.createElement("path",{d:"M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z"})))).attrs({className:"search-icon"}) `
2022-02-04 13:00:46 +03:00
position : absolute ;
left : $ { e => 4 * e . theme . spacing . unit } px ;
height : 1.8 em ;
width : 0.9 em ;
path {
fill : $ { e => e . theme . sidebar . textColor } ;
}
2024-06-10 16:40:27 +03:00
` ,Wv=xn.div `
2022-02-04 13:00:46 +03:00
padding : $ { e => e . theme . spacing . unit } px 0 ;
2024-04-26 11:27:14 +03:00
background - color : $ { ( { theme : e } ) => St ( . 05 , e . sidebar . backgroundColor ) } } ;
2022-02-04 13:00:46 +03:00
color : $ { e => e . theme . sidebar . textColor } ;
min - height : 150 px ;
max - height : 250 px ;
2024-04-26 11:27:14 +03:00
border - top : $ { ( { theme : e } ) => St ( . 1 , e . sidebar . backgroundColor ) } } ;
border - bottom : $ { ( { theme : e } ) => St ( . 1 , e . sidebar . backgroundColor ) } } ;
2022-02-04 13:00:46 +03:00
margin - top : 10 px ;
line - height : 1.4 ;
font - size : 0.9 em ;
li {
background - color : inherit ;
}
2024-06-10 16:40:27 +03:00
$ { xy } {
2022-02-04 13:00:46 +03:00
padding - top : 6 px ;
padding - bottom : 6 px ;
& : hover ,
& . active {
2024-04-26 11:27:14 +03:00
background - color : $ { ( { theme : e } ) => St ( . 1 , e . sidebar . backgroundColor ) } ;
2022-02-04 13:00:46 +03:00
}
> svg {
display : none ;
}
}
2024-06-10 16:40:27 +03:00
` ,Vv=xn.i `
2022-02-04 13:00:46 +03:00
position : absolute ;
display : inline - block ;
width : $ { e => 2 * e . theme . spacing . unit } px ;
text - align : center ;
right : $ { e => 4 * e . theme . spacing . unit } px ;
line - height : 2 em ;
vertical - align : middle ;
margin - right : 2 px ;
cursor : pointer ;
font - style : normal ;
color : '#666' ;
2024-10-16 13:50:13 +03:00
` ;var Hv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor;class Gv extends r.PureComponent{constructor(e){super(e),this.activeItemRef=null,this.clear=()=>{this.setState({results:[],noResults:!1,term:"",activeItemIdx:-1}),this.props.marker.unmark()},this.handleKeyDown=e=>{if(27===e.keyCode&&this.clear(),40===e.keyCode&&(this.setState({activeItemIdx:Math.min(this.state.activeItemIdx+1,this.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(this.setState({activeItemIdx:Math.max(0,this.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){const e=this.state.results[this.state.activeItemIdx];if(e){const t=this.props.getItemById(e.meta);t&&this.props.onActivate(t)}}},this.search=e=>{const{minCharacterLengthToInitSearch:t}=this.context,n=e.target.value;n.length<t?this.clearResults(n):this.setState({term:n},(()=>this.searchCallback(this.state.term)))},this.state={results:[],noResults:!1,term:"",activeItemIdx:-1}}clearResults(e){this.setState({results:[],noResults:!1,term:e}),this.props.marker.unmark()}setResults(e,t){this.setState({results:e,noResults:0===e.length}),this.props.marker.mark(t)}searchCallback(e){this.props.search.search(e).then((t=>{this.setResults(t,e)}))}render(){const{activeItemIdx:e}=this.state,t=this.state.results.filter((e=>this.props.getItemById(e.meta))).map((e=>({item:this.props.getItemById(e.meta),score:e.score}))).sort(((e,t)=>t.score-e.score));return r.createElement(Uv,{role:"search"},this.state.term&&r.createElement(Vv,{onClick:this.clear},"× "),r.createElement(qv,null),r.createElement(Bv,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...","aria-label":"Search",type:"text",onChange:this.search}),t.length>0&&r.createElement(bf,{options:{wheelPropagation:!1}},r.createElement(Wv,{"data-role":"search:results"},t.map(((t,n)=>r.createElement(xv,{item:Object.create(t.item,{active:{value:n===e}}),onActivate:this.props.onActivate,withoutChildren:!0,key:t.item.id,"data-role":"search:result"}))))),this.state.term&&this.state.noResults?r.createElement(Wv,{"data-role":"search:results"},en("noResultsFound")):null)}}Gv.contextType=Cn,((e,t,n,r)=>{for(var i,o=Yv(t,n),a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,n,o)||o);o&&Hv(t,n,o)})([ $ a.bind,(0, $ a.debounce)(400)],Gv.prototype,"searchCallback");class Qv extends r.Component{componentDidMount(){this.props.store.onDidMount()}componentWillUnmount(){this.props.store.dispose()}render(){const{store:{spec:e,menu:t,options:n,search:i,marker:o}}=this.props,a=this.props.store;return r.createElement(bn,{theme:n.theme},r.createElement(Rp,{value:a},r.createElement(Pn,{value:n},r.createElement(Mv,{className:"redoc-wrap"},r.createElement(Dv,{menu:t,className:"menu-content"},r.createElement(ay,{info:e.info}),!n.disableSearch&&r.createElement(Gv,{search:i,marker:o,getItemById:t.getItemById,onActivate:t.activateAndScroll})||null,r.createElement(Cv,{menu:t})),r.createElement(Fv,{className:"api-content"},r.createElement(ny,{store:a}),r.createElement(lv,{items:t.items})),r.createElement(zv,null)))))}}Qv.propTypes={store:jn.instanceOf(Qg).isRequired};var Xv=Object.defineProperty,Kv=Object.getOwnPropertySymbols,Zv=Object.prototype.hasOwnProperty,Jv=Object.prototype.propertyIsEnumerable,ex=(e,t,n)=>t in e?Xv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tx=(e,t)=>{for(var n in t||(t={}))Zv.call(t,n)&&ex(e,n,t[n]);if(Kv)for(var n of Kv(t))Jv.call(t,n)&&ex(e,n,t[n]);return e};const nx=function(e){const{spec:t,specUrl:i,options:o={},onLoaded:a}=e,s=pn(o.hideLoading,!1),l=new fn(o);if(void 0!==l.nonce)try{n.nc=l.nonce}catch(e){}return r.createElement(Sn,null,r.createElement( $ p,{spec:t?tx({},t):void 0,specUrl:i,options:o,onLoaded:a},(({loading:e,store:t})=>e?s?null:r.createElement(An,{color:l.theme.colors.primary.main}):r.createElement(Qv,{store:t}))))},rx=xn.li `
2023-10-25 12:09:58 +03:00
$ { e => e . $active ? "background-color: #eee" : "" } ;
2022-02-04 13:00:46 +03:00
padding : 13 px 16 px ;
& : hover {
background - color : # eee ;
}
cursor : pointer ;
text - overflow : ellipsis ;
overflow : hidden ;
2024-06-10 16:40:27 +03:00
` ,ix=xn.ul `
2022-02-04 13:00:46 +03:00
box - shadow : 0 2 px 2 px 0 rgba ( 0 , 0 , 0 , 0.14 ) , 0 1 px 5 px 0 rgba ( 0 , 0 , 0 , 0.12 ) ,
0 3 px 1 px - 2 px rgba ( 0 , 0 , 0 , 0.2 ) ;
background : # fff ;
border - radius : 0 0 2 px 2 px ;
top : 100 % ;
left : 0 ;
right : 0 ;
z - index : 200 ;
overflow : hidden ;
position : absolute ;
list - style : none ;
margin : 4 px 0 0 0 ;
padding : 5 px 0 ;
2023-10-25 12:09:58 +03:00
font - family : Roboto , sans - serif ;
2022-02-04 13:00:46 +03:00
overflow : hidden ;
2024-06-10 16:40:27 +03:00
` ,ox=xn.div `
2022-02-04 13:00:46 +03:00
position : relative ;
width : 100 % ;
max - width : 500 px ;
display : flex ;
2024-06-10 16:40:27 +03:00
` ,ax=xn.input `
2022-02-04 13:00:46 +03:00
box - sizing : border - box ;
width : 100 % ;
padding : 0 10 px ;
color : # 555 ;
background - color : # fff ;
border : 1 px solid # ccc ;
font - size : 16 px ;
height : 28 px ;
box - sizing : border - box ;
vertical - align : middle ;
line - height : 1 ;
outline : none ;
box - shadow : inset 0 1 px 1 px rgba ( 0 , 0 , 0 , 0.075 ) ;
transition : border - color ease - in - out 0.15 s , box - shadow ease - in - out 0.15 s ;
& : focus {
border - color : # 66 afe9 ;
outline : 0 ;
box - shadow : inset 0 1 px 1 px rgba ( 0 , 0 , 0 , 0.075 ) , 0 0 8 px rgba ( 102 , 175 , 233 , 0.6 ) ;
}
2024-06-10 16:40:27 +03:00
` ,sx=xn.button `
2022-02-04 13:00:46 +03:00
background - color : # fff ;
color : # 333 ;
padding : 2 px 10 px ;
touch - action : manipulation ;
cursor : pointer ;
user - select : none ;
border : 1 px solid # ccc ;
border - left : 0 ;
font - size : 16 px ;
height : 28 px ;
box - sizing : border - box ;
vertical - align : middle ;
line - height : 1 ;
outline : none ;
width : 80 px ;
white - space : nowrap ;
@ media screen and ( max - width : 450 px ) {
display : none ;
}
2024-10-16 13:50:13 +03:00
` ;class lx extends r.Component{constructor(){super(...arguments),this.state={open:!1,value:this.props.value||"",activeItemIdx:-1},this.open=()=>{this.setState({open:!0})},this.close=()=>{this.setState({open:!1,activeItemIdx:-1})},this.handleChange=e=>{this.updateValue(e.currentTarget.value)},this.handleTryItClick=()=>{this.handleSelect(this.state.value)},this.handleKeyPress=e=>{if(13===e.keyCode)this.handleSelect(e.currentTarget.value);else if(40===e.keyCode){const t=Math.min(this.props.options.length-1,++this.state.activeItemIdx);this.setState({open:!0,activeItemIdx:t,value:this.props.options[t].value}),e.preventDefault()}else if(38===e.keyCode){const t=Math.max(0,--this.state.activeItemIdx);this.setState({activeItemIdx:t,value:this.props.options[t].value}),e.preventDefault()}else 27===e.keyCode&&this.close()},this.handleBlur=()=>{setTimeout((()=>this.close()),100)},this.handleItemClick=(e,t)=>{this.handleSelect(e),this.setState({activeItemIdx:t})},this.renderOption=(e,t)=>r.createElement(rx,{ $ active:t===this.state.activeItemIdx,key:e.value,onMouseDown:()=>{this.handleItemClick(e.value,t)}},r.createElement("small",null,r.createElement("strong",null,e.label)),r.createElement("br",null),e.value)}updateValue(e){this.setState({value:e,activeItemIdx:-1})}handleSelect(e){this.updateValue(e),this.props.onChange&&this.props.onChange(e),this.close()}render(){const{open:e,value:t}=this.state,{options:n,placeholder:i}=this.props;return r.createElement(ox,null,r.createElement(ax,{placeholder:i,onChange:this.handleChange,value:t,onFocus:this.open,onBlur:this.handleBlur,onKeyDown:this.handleKeyPress,"aria-label":"URL to an OpenAPI definition to try"}),r.createElement(sx,{onClick:this.handleTryItClick}," TRY IT "),e&&r.createElement(ix,null,n.map(this.renderOption)))}}function cx(e){return null==e}var ux={isNothing:cx,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:cx(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}};function px(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=" \n \n "+e.mark.snippet),r+" "+n):r}function dx(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=px(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}dx.prototype=Object.create(Error.prototype),dx.prototype.constructor=dx,dx.prototype.toString=function(e){return this.name+": "+px(this,e)};var fx=dx;function hx(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/ \t /g,"→")+a,pos:r-t+o.length}}function mx(e,t){return ux.repeat(" ",t-e.length)+e}var gx=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/ \r ? \n | \r | \0 /g,i=[0],o=[],a=-1;n=r.exec(e.buffer);)o.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,p=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=hx(e.buffer,i[a-s],o[a-s],e.position-(i[a]-i[a-s]),p),c=ux.repeat(" ",t.indent)+mx((e.line-s+1).toString(),u)+" | "+l.str+" \n "+c;for(l=hx(e.buffer,i[a],o[a],e.position,p),c+=ux.repeat(" ",t.indent)+mx((e.line+1).toString(),u)+" | "+l.str+" \n ",c+=ux.repeat("-",t.indent+u+3+l.pos)+"^ \n ",s=1;s<=t.linesAfter&&!(a+s>=o.length);s++)l=hx(e.buffer,i[a+s],o[a+s],e.position-(i[a]-i[a+s]),p),c+=ux.repeat(" ",t.indent)+mx((e.line+s+1).toString(),u)+" | "+l.str+" \n ";return c.replace(/ \n $ /,"")},yx=["kind","multi","resolve","c
2022-02-04 13:00:46 +03:00
background - color : # fff ;
color : # 333 ;
padding : 2 px 10 px ;
touch - action : manipulation ;
cursor : pointer ;
user - select : none ;
border : 1 px solid # ccc ;
font - size : 16 px ;
height : 28 px ;
box - sizing : border - box ;
vertical - align : middle ;
line - height : 1 ;
outline : none ;
white - space : nowrap ;
@ media ( max - width : 699 px ) {
display : none ;
}
2024-10-16 13:50:13 +03:00
` ,Mw=function(e){const t=(0,r.useRef)(null);return r.createElement("span",null,r.createElement(Dw,{onClick:()=>{t&&t.current&&t.current.click()}},"Upload a file"),r.createElement("input",{type:"file",style:{display:"none"},onChange:t=>{const n=t.target.files[0],r=new FileReader;r.onload=()=>{e.onUpload(Lw(r.result))},r.readAsText(n)},ref:t}))},Fw="museum.yaml",zw="openapi-3-1.yaml",Uw=[{value:Fw,label:"Museum API"},{value:zw,label:"Petstore OpenAPI 3.1"},{value:"https://api.apis.guru/v2/specs/instagram.com/1.0.0/swagger.yaml",label:"Instagram"},{value:"https://api.apis.guru/v2/specs/googleapis.com/calendar/v3/openapi.yaml",label:"Google Calendar"},{value:"https://api.apis.guru/v2/specs/slack.com/1.7.0/openapi.yaml",label:"Slack"},{value:"https://api.apis.guru/v2/specs/zoom.us/2.0.0/openapi.yaml",label:"Zoom.us"}];class Bw extends r.Component{constructor(e){super(e),this.handleUploadFile=e=>{this.setState({spec:e,specUrl:""})},this.handleChange=e=>{e===zw&&this.setState({cors:!1}),this.setState({specUrl:e}),window.history.pushState(void 0,"",Gw(location.search,"url",e))},this.toggleCors=e=>{const t=e.currentTarget.checked;this.setState({cors:t}),window.history.pushState(void 0,"",Gw(location.search,"nocors",t?void 0:""))};let t=window.location.search.match(/url=([^&]+)/),n=Fw;t&&t.length>1&&(n=decodeURIComponent(t[1])),t=window.location.search.match(/[?&]nocors(&|#| $ )/);let r=!0;t&&t.length>1&&(r=!1),this.state={spec:void 0,specUrl:n,dropdownOpen:!1,cors:r}}render(){const{specUrl:e,cors:t}=this.state;let n=e;return e!==Fw&&(n=t?"https://cors.redoc.ly/"+new URL(e,window.location.href).href:e),r.createElement(r.Fragment,null,r.createElement(Vw,null,r.createElement("a",{href:"."},r.createElement(Hw,{src:"https://github.com/Redocly/redoc/raw/main/docs/images/redoc.png",alt:"Redoc logo"})),r.createElement(qw,null,r.createElement(Mw,{onUpload:this.handleUploadFile}),r.createElement(lx,{placeholder:"URL to a spec to try",options:Uw,onChange:this.handleChange,value:e===Fw?"":e}),r.createElement(Ww,{title:"Use CORS proxy"},r.createElement("input",{id:"cors_checkbox",type:"checkbox",onChange:this.toggleCors,checked:t}),r.createElement("label",{htmlFor:"cors_checkbox"},"CORS"))),r.createElement("iframe",{src:"https://ghbtns.com/github-btn.html?user=Redocly&repo=redoc&type=star&count=true&size=large",frameBorder:"0",scrolling:"0",width:"160px",height:"30px"})),r.createElement(nx,{spec:this.state.spec,specUrl:n,options:{scrollYOffset:"nav",untrustedSpec:!0}}))}}const qw=ze.div `
2022-02-04 13:00:46 +03:00
display : flex ;
justify - content : center ;
flex : 1 ;
margin : 0 15 px ;
align - items : center ;
2024-06-10 16:40:27 +03:00
` ,Ww=ze.div `
2022-02-04 13:00:46 +03:00
margin - left : 10 px ;
white - space : nowrap ;
label {
font - size : 13 px ;
}
@ media screen and ( max - width : 550 px ) {
display : none ;
}
2024-06-10 16:40:27 +03:00
` ,Vw=ze.nav `
2022-02-04 13:00:46 +03:00
position : sticky ;
top : 0 ;
width : 100 % ;
height : 50 px ;
box - sizing : border - box ;
background : white ;
border - bottom : 1 px solid # cccccc ;
z - index : 10 ;
padding : 5 px ;
display : flex ;
align - items : center ;
font - family : Roboto , sans - serif ;
2024-06-10 16:40:27 +03:00
` ,Hw=ze.img `
2022-02-04 13:00:46 +03:00
height : 40 px ;
width : 124 px ;
display : inline - block ;
margin - right : 15 px ;
@ media screen and ( max - width : 950 px ) {
display : none ;
}
2024-06-10 16:40:27 +03:00
` ,Yw=document.getElementById("container");function Gw(e,t,n){const r=""===n?t:t+"="+n,i=new RegExp("([?|&])"+t+"=?.*?(&|#| $ )","i");if(e.match(i))return void 0!==n?e.replace(i," $ 1"+r+" $ 2"):e.replace(i,((e,t,n)=>(n.startsWith("&")&&(n=n.substring(1)),"&"===t?n:t+n)));{if(void 0===n)return e;let t="";-1!==e.indexOf("#")&&(t=e.replace(/.*#/,"#"),e=e.replace(/#.*/,""));const i=-1!==e.indexOf("?")?"&":"?";return e+i+r+t}}(0,i.s)(Yw).render(r.createElement(Bw,null))})()})();