2022-06-22 17:02:10 +02:00
/*! For license information please see redoc.standalone.js.LICENSE.txt */
2023-11-02 09:43:23 +01:00
! function ( e , t ) { "object" == typeof exports && "object" == typeof module ? module . exports = t ( require ( "null" ) ) : "function" == typeof define && define . amd ? define ( [ "null" ] , t ) : "object" == typeof exports ? exports . Redoc = t ( require ( "null" ) ) : e . Redoc = t ( e . null ) } ( this , ( function ( e ) { return function ( ) { var t = { 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 . bundle = t . OasVersion = void 0 ; const i = n ( 2307 ) , o = n ( 4182 ) , a = n ( 8065 ) , s = n ( 5241 ) , l = n ( 388 ) , c = n ( 2608 ) , u = n ( 5220 ) , p = n ( 9443 ) , d = n ( 1510 ) , f = n ( 7468 ) , h = n ( 5030 ) , m = n ( 348 ) , g = n ( 771 ) , y = n ( 1094 ) , v = n ( 4508 ) , b = n ( 6350 ) ; var x ; function w ( e ) { return r ( this , void 0 , void 0 , ( function * ( ) { const { document : t , config : n , customTypes : r , externalRefResolver : i , dereference : f = ! 1 , skipRedoclyRegistryRefs : m = ! 1 , removeUnusedComponents : g = ! 1 , keepUrlRefs : y = ! 1 } = e , w = d . detectOpenAPI ( t . parsed ) , k = d . openAPIMajor ( w ) , S = n . getRulesForOasVersion ( k ) , E = u . normalizeTypes ( n . extendTypes ( ( null != r ? r : k === d . OasMajorVersion . Version3 ) ? w === x . Version3 _1 ? c . Oas3 _1Types : s . Oas3Types : l . Oas2Types , w ) , n ) , _ = h . initRules ( S , n , "preprocessors" , w ) , A = h . initRules ( S , n , "decorators" , w ) , j = { problems : [ ] , oasVersion : w , refTypes : new Map , visitorsData : { } } ; g && A . push ( { severity : "error" , ruleId : "remove-unused-components" , visitor : k === d . OasMajorVersion . Version2 ? v . RemoveUnusedComponents ( { } ) : b . RemoveUnusedComponents ( { } ) } ) ; let C = yield o . resolveDocument ( { rootDocument : t , rootType : E . Root , externalRefResolver : i } ) ; _ . length > 0 && ( p . walkDocument ( { document : t , rootType : E . Root , normalizedVisitors : a . normalizeVisitors ( _ , E ) , resolvedRefMap : C , ctx : j } ) , C = yield o . resolveDocument ( { rootDocument : t , rootType : E . Root , externalRefResolver : i } ) ) ; const P = a . normalizeVisitors ( [ { severity : "error" , ruleId : "bundler" , visitor : O ( k , f , m , t , C , y ) } , ... A ] , E ) ; return p . walkDocument ( { document : t , rootType : E . Root , normalizedVisitors : P , resolvedRefMap : C , ctx : j } ) , { bundle : t , problems : j . problems . map ( ( e => n . addProblemToIgnore ( e ) ) ) , fileDependencies : i . getFiles ( ) , rootType : E . Root , refTypes : j . refTypes , visitorsData : j . visitorsData } } ) ) } function k ( e , t ) { switch ( t ) { case d . OasMajorVersion . Version3 : 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 d . OasMajorVersion . Version2 : switch ( e ) { case "Schema" : return "definitions" ; case "Parameter" : return "parameters" ; case "Response" : return "responses" ; default : return null } } } function O ( e , t , n , r , a , s ) { let l , c ; const u = { ref : { leave ( i , l , c ) { if ( ! c . location || void 0 === c . node ) return void m . 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 && y . isRedoclyRegistryURL ( i . $ref ) ) return ; if ( s && f . isAbsoluteUrl ( i . $ref ) ) return ; const u = k ( l . type . name , e ) ; u ? t ? ( h ( u , c , l ) , p ( i , c , l ) ) : ( i . $ref = h ( u , c , l ) , function ( e , t , n ) { const i = 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 ) ) : p ( i , c , l ) } } , Root : { enter ( t , n ) { c = n . location , e === d . OasMajorVersion . Version3 ? l = t . components = t . components || { } : e === d . OasMajorVersion . Version2 && ( l = t ) } } } ; function p ( e , t , n ) { if ( g . 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 h ( 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 ( g . isTruthy ) ; for ( ; s . length > 0 ; ) if ( a = s . pop ( ) + ( a ? ` - ${ a } ` : "" ) , ! o || ! o [ a ] || v ( o [ a ] , e , n ) ) return a ; if ( a = f . refBaseName ( r ) + ( a ? ` _ ${ a } ` : "" ) , ! o [ a ] || v ( o [ a ] , e , n ) ) return a ; const c = a ; let u = 2 ; for ( ; o [ a ] && ! v ( o [ a ] , e , n ) ; ) a = ` ${ c } - ${ u } ` , u ++ ; return o [ a ] || n . report ( { me
2023-01-05 10:44:38 +01:00
@ media $ { t ? "print, " : "" } screen and ( max - width : $ { t => t . theme . breakpoints [ e ] } ) $ { n || "" } {
2023-11-02 09:43:23 +01:00
$ { ca ( ... r ) } ;
2023-01-05 10:44:38 +01:00
}
2023-11-02 09:43:23 +01:00
` },greaterThan(e){return(...t)=>ca `
@ media ( min - width : $ { t => t . theme . breakpoints [ e ] } ) {
$ { ca ( ... t ) } ;
}
` },between(e,t){return(...n)=>ca `
@ media ( min - width : $ { t => t . theme . breakpoints [ e ] } ) and ( max - width : $ { e => e . theme . breakpoints [ t ] } ) {
$ { ca ( ... n ) } ;
}
` }};var ha=la;function ma(e){return t=>{if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}const ga=ha.div `
2023-01-05 10:44:38 +01:00
padding : 20 px ;
color : red ;
2023-11-02 09:43:23 +01:00
` ;class ya extends n.Component{constructor(e){super(e),this.state={error:void 0}}componentDidCatch(e){return this.setState({error:e}),!1}render(){return this.state.error?n.createElement(ga,null,n.createElement("h1",null,"Something went wrong..."),n.createElement("small",null," ",this.state.error.message," "),n.createElement("p",null,n.createElement("details",null,n.createElement("summary",null,"Stack trace"),n.createElement("pre",null,this.state.error.stack))),n.createElement("small",null," ReDoc Version: ","2.1.2")," ",n.createElement("br",null),n.createElement("small",null," Commit: ","0e38089")):n.createElement(n.Fragment,null,n.Children.only(this.props.children))}}const va=pa `
2023-01-05 10:44:38 +01:00
0 % {
transform : rotate ( 0 deg ) ; }
100 % {
transform : rotate ( 360 deg ) ;
}
2023-11-02 09:43:23 +01:00
` ,ba=ha((e=>n.createElement("svg",{className:e.className,version:"1.1",width:"512",height:"512",viewBox:"0 0 512 512"},n.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"}),n.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"}),n.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"}),n.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"}),n.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"}),n.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"}),n.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"}),n.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"})))) `
animation : 2 s $ { va } linear infinite ;
2023-01-05 10:44:38 +01:00
width : 50 px ;
height : 50 px ;
content : '' ;
display : inline - block ;
margin - left : - 25 px ;
path {
fill : $ { e => e . color } ;
}
2023-11-02 09:43:23 +01:00
` ,xa=ha.div `
2023-01-05 10:44:38 +01: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 } ;
2023-11-02 09:43:23 +01:00
` ;class wa extends n.PureComponent{render(){return n.createElement("div",{style:{textAlign:"center"}},n.createElement(xa,{color:this.props.color},"Loading ..."),n.createElement(ba,{color:this.props.color}))}}var ka=r(5697);const Oa=n.createContext(new Si({})),Sa=Oa.Provider,Ea=Oa.Consumer;var _a=r(3675),Aa=r(3777),ja=r(8925),Ca=(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())}));var Pa=r(1851),Ta=r(6729),Ra=r(3573),Ia=r.n(Ra);const $ a=Ra.parse;class Na{static baseName(e,t=1){const n=Na.parse(e);return n[n.length-t]}static dirName(e,t=1){const n=Na.parse(e);return Ra.compile(n.slice(0,n.length-t))}static relative(e,t){const n=Na.parse(e);return Na.parse(t).slice(n.length)}static parse(e){let t=e;return"#"===t.charAt(0)&&(t=t.substring(1)), $ a(t)}static join(e,t){const n=Na.parse(e).concat(t);return Ra.compile(n)}static get(e,t){return Ra.get(e,t)}static compile(e){return Ra.compile(e)}static escape(e){return Ra.escape(e)}}Ra.parse=Na.parse,Object.assign(Na,Ra);var La=r(6470),Da=r(3578),Ma=Object.defineProperty,Fa=Object.defineProperties,za=Object.getOwnPropertyDescriptors,Ua=Object.getOwnPropertySymbols,Ba=Object.prototype.hasOwnProperty,qa=Object.prototype.propertyIsEnumerable,Va=(e,t,n)=>t in e?Ma(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>{for(var n in t||(t={}))Ba.call(t,n)&&Va(e,n,t[n]);if(Ua)for(var n of Ua(t))qa.call(t,n)&&Va(e,n,t[n]);return e},Ha=(e,t)=>Fa(e,za(t));function Ya(e){return"string"==typeof e&&/ \d xx/i.test(e)}function Qa(e,t=!1){if("default"===e)return t?"error":"success";let n="string"==typeof e?parseInt(e,10):e;if(Ya(e)&&(n*=100),n<100||n>599)throw new Error("invalid HTTP code");let r="success";return n>=300&&n<400?r="redirect":n>=400?r="error":n<200&&(r="info"),r}const Ga={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0, $ ref:!0};function Xa(e){return e in Ga}const Ka={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",unevaluatedProperties:"object",properties:"object",patternProperties:"object"};function Za(e,t=e.type){if(e["x-circular-ref"])return!0;if(void 0!==e.oneOf||void 0!==e.anyOf)return!1;if(e.if&&e.then||e.if&&e.else)return!1;let n=!0;const r=ci(t);return("object"===t||r&&(null==t?void 0:t.includes("object")))&&(n=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties&&void 0===e.unevaluatedProperties&&void 0===e.patternProperties),!ci(e.items)&&!ci(e.prefixItems)&&(void 0!==e.items&&!ui(e.items)&&("array"===t||r&&(null==t?void 0:t.includes("array")))&&(n=Za(e.items,e.items.type)),n)}function Ja(e){return-1!==e.search(/json/i)}function es(e,t,n){return ci(e)?e.map((e=>e.toString())).join(n):"object"==typeof e?Object.keys(e).map((t=> ` $ { t } $ { n } $ { e [ t ] } ` )).join(n):t+"="+e.toString()}function ts(e,t){return ci(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((n=> ` $ { t } [ $ { n } ] = $ { e [ n ] } ` )).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function ns(e,t,n){const r="__redoc_param_name__",i=t?"*":"";return Da.parse( ` { ? $ { r } $ { i } } ` ).expand({[r]:n}).substring(1).replace(/__redoc_param_name__/g,e)}function rs(e,t){return Ja(t)?JSON.stringify(e):(console.warn( ` Parameter serialization as $ { t } is not supported ` ),"")}function is(e,t){return e.in?decodeURIComponent(function(e,t){const{name:n,style:r,explode:i=!1,serializationMime:o}=e;if(o)switch(e.in){case"path":case"header":return rs(t,o);case"cookie":case"query":return ` $ { n } = $ { rs ( t , o ) } ` ;default:return console.warn("Unexpected parameter location: "+e.in),""}if(!r)return console.warn( ` Missing style
2023-01-05 10:44:38 +01:00
width : calc ( 100 % - $ { e => e . theme . rightPanel . width } ) ;
padding : 0 $ { e => e . theme . spacing . sectionHorizontal } px ;
2023-11-02 09:43:23 +01:00
$ { ( { $compact : e , theme : t } ) => fa . lessThan ( "medium" , ! 0 ) `
2023-01-05 10:44:38 +01:00
width : 100 % ;
padding : $ { ` ${ e ? 0 : t . spacing . sectionVertical } px ${ t . spacing . sectionHorizontal } px ` } ;
` };
2023-11-02 09:43:23 +01:00
` ,Eu=ha.div.attrs((e=>({[vf]:e.id}))) `
2023-01-05 10:44:38 +01:00
padding : $ { e => e . theme . spacing . sectionVertical } px 0 ;
& : last - child {
min - height : calc ( 100 vh + 1 px ) ;
}
& > & : last - child {
min - height : initial ;
}
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "medium" , ! 0 ) `
2023-01-05 10:44:38 +01:00
padding : 0 ;
` }
2023-11-02 09:43:23 +01: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 " : "" }
` ,_u=ha.div `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "medium" , ! 0 ) `
2023-01-05 10:44:38 +01:00
width : 100 % ;
padding : $ { e => ` ${ e . theme . spacing . sectionVertical } px ${ e . theme . spacing . sectionHorizontal } px ` } ;
` };
2023-11-02 09:43:23 +01:00
` ,Au=ha(_u) `
2023-01-05 10:44:38 +01:00
background - color : $ { e => e . theme . rightPanel . backgroundColor } ;
2023-11-02 09:43:23 +01:00
` ,ju=ha.div `
2023-01-05 10:44:38 +01:00
display : flex ;
width : 100 % ;
padding : 0 ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "medium" , ! 0 ) `
2023-01-05 10:44:38 +01:00
flex - direction : column ;
` };
2023-11-02 09:43:23 +01:00
` ,Cu={1:"1.85714em",2:"1.57143em",3:"1.27em"},Pu=e=>ca `
2023-01-05 10:44:38 +01:00
font - family : $ { ( { theme : e } ) => e . typography . headings . fontFamily } ;
font - weight : $ { ( { theme : e } ) => e . typography . headings . fontWeight } ;
2023-11-02 09:43:23 +01:00
font - size : $ { Cu [ e ] } ;
2023-01-05 10:44:38 +01:00
line - height : $ { ( { theme : e } ) => e . typography . headings . lineHeight } ;
2023-11-02 09:43:23 +01:00
` ,Tu=ha.h1 `
$ { Pu ( 1 ) } ;
2023-01-05 10:44:38 +01:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
2023-11-02 09:43:23 +01:00
$ { ma ( "H1" ) } ;
` ,Ru=ha.h2 `
$ { Pu ( 2 ) } ;
2023-01-05 10:44:38 +01:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
margin : 0 0 20 px ;
2023-11-02 09:43:23 +01:00
$ { ma ( "H2" ) } ;
` ,Iu=(ha.h2 `
$ { Pu ( 3 ) } ;
2023-01-05 10:44:38 +01:00
color : $ { ( { theme : e } ) => e . colors . text . primary } ;
2023-11-02 09:43:23 +01:00
$ { ma ( "H3" ) } ;
` ,ha.h3 `
2023-01-05 10:44:38 +01:00
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
2023-11-02 09:43:23 +01:00
$ { ma ( "RightPanelHeader" ) } ;
` ), $ u=ha.h5 `
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
$ { ma ( "UnderlinedHeader" ) } ;
` ,Nu=(0,n.createContext)(void 0),{Provider:Lu,Consumer:Du}=Nu;function Mu(e){const{spec:t,specUrl:i,options:o,onLoaded:a,children:s}=e,[l,c]=n.useState(null),[u,p]=n.useState(null);if(u)throw u;n.useEffect((()=>{!function(){return e=this,null,n=function*(){if(t||i){c(null);try{const e=yield function(e){return Ca(this,null,(function*(){const t=new Aa.Config({}),n={config:t,base:Qr?window.location.href:process.cwd()};Qr&&(t.resolve.http.customFetch=r.g.fetch),"object"==typeof e&&null!==e?n.doc={source:{absoluteRef:""},parsed:e}:n.ref=e;const{bundle:{parsed:i}}=yield(0,_a.bundle)(n);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,ja.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,r)=>{var i=e=>{try{a(n.next(e))}catch(e){r(e)}},o=e=>{try{a(n.throw(e))}catch(e){r(e)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,o);a((n=n.apply(e,null)).next())}));var e,n}()}),[t,i]);const d=n.useMemo((()=>{if(!l)return null;try{return new uy(l,i,o)}catch(e){throw a&&a(e),e}}),[l,i,o]);return n.useEffect((()=>{d&&a&&a()}),[d,a]),s({loading:!d,store:d})}const Fu=e=>ca `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
` ,zu=ha((function(e){const t=n.useContext(Nu),r=n.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?n.createElement("a",{className:e.className,href:t.menu.history.linkForId(e.to),onClick:r,"aria-label":e.to},e.children):null})) `
2023-01-05 10:44:38 +01:00
$ { Fu ( "&" ) } ;
2023-11-02 09:43:23 +01:00
` ;function Uu(e){return n.createElement(zu,{to:e.to})}const Bu={left:"90deg",right:"-90deg",up:"-180deg",down:"0"},qu=ha((e=>n.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"},n.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 "})))) `
2023-01-05 10:44:38 +01:00
height : $ { e => e . size || "18px" } ;
width : $ { e => e . size || "18px" } ;
min - width : $ { e => e . size || "18px" } ;
vertical - align : middle ;
float : $ { e => e . float || "" } ;
transition : transform 0.2 s ease - out ;
2023-11-02 09:43:23 +01:00
transform : rotateZ ( $ { e => Bu [ e . direction || "down" ] } ) ;
2023-01-05 10:44:38 +01:00
polygon {
fill : $ { ( { color : e , theme : t } ) => e && t . colors . responses [ e ] && t . colors . responses [ e ] . color || e } ;
}
2023-11-02 09:43:23 +01:00
` ,Vu=ha.span `
2023-01-05 10:44:38 +01:00
display : inline - block ;
padding : 2 px 8 px ;
margin : 0 ;
background - color : $ { e => e . theme . colors [ e . type ] . main } ;
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 ;
}
2023-11-02 09:43:23 +01:00
` ,Wu=ca `
2023-01-05 10:44:38 +01:00
text - decoration : line - through ;
color : # 707070 ;
2023-11-02 09:43:23 +01:00
` ,Hu=ha.caption `
2023-01-05 10:44:38 +01:00
text - align : right ;
font - size : 0.9 em ;
font - weight : normal ;
color : $ { e => e . theme . colors . text . secondary } ;
2023-11-02 09:43:23 +01:00
` ,Yu=ha.td `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
` ,Qu=ha(Yu) `
2023-01-05 10:44:38 +01:00
padding : 0 ;
2023-11-02 09:43:23 +01:00
` ,Gu=ha(Yu) `
2023-01-05 10:44:38 +01:00
vertical - align : top ;
line - height : 20 px ;
white - space : nowrap ;
font - size : 13 px ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& . deprecated {
$ { Wu } ;
}
2023-11-02 09:43:23 +01:00
$ { ( { kind : e } ) => "patternProperties" === e && ca `
2023-01-05 10:44:38 +01:00
> span . property - name {
display : inline - table ;
white - space : break - spaces ;
margin - right : 20 px ;
: : before ,
: : after {
content : '/' ;
filter : opacity ( 0.2 ) ;
}
}
` }
$ { ( { kind : e = "" } ) => [ "field" , "additionalProperties" , "patternProperties" ] . includes ( e ) ? "" : "font-style: italic" } ;
2023-11-02 09:43:23 +01:00
$ { ma ( "PropertyNameCell" ) } ;
` ,Xu=ha.td `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
padding : 0 20 px ;
border - bottom : none ;
border - left : 1 px solid $ { e => e . theme . schema . linesColor } ;
tr . last > & {
border - left : none ;
}
` }
2023-11-02 09:43:23 +01:00
$ { ma ( "PropertyDetailsCell" ) } ;
` ,Ku=ha.span `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
` ,Zu=ha.div `
2023-01-05 10:44:38 +01:00
padding : $ { ( { theme : e } ) => e . schema . nestingSpacing } ;
2023-11-02 09:43:23 +01:00
` ,Ju=ha.table `
2023-01-05 10:44:38 +01:00
border - collapse : separate ;
border - radius : 3 px ;
font - size : $ { e => e . theme . typography . fontSize } ;
border - spacing : 0 ;
width : 100 % ;
> tr {
vertical - align : middle ;
}
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
display : block ;
> tr , > tbody > tr {
display : block ;
}
` }
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" , ! 1 , " and (-ms-high-contrast:none)" ) `
2023-01-05 10:44:38 +01:00
td {
float : left ;
width : 100 % ;
}
` }
&
2023-11-02 09:43:23 +01:00
$ { Zu } ,
2023-01-05 10:44:38 +01:00
&
2023-11-02 09:43:23 +01:00
$ { Zu }
$ { Zu }
$ { Zu } ,
2023-01-05 10:44:38 +01:00
&
2023-11-02 09:43:23 +01:00
$ { Zu }
$ { Zu }
$ { Zu }
$ { Zu }
$ { Zu } {
2023-01-05 10:44:38 +01:00
margin : $ { ( { theme : e } ) => e . schema . nestingSpacing } ;
margin - right : 0 ;
background : $ { ( { theme : e } ) => e . schema . nestedBackground } ;
}
&
2023-11-02 09:43:23 +01:00
$ { Zu }
$ { Zu } ,
2023-01-05 10:44:38 +01:00
&
2023-11-02 09:43:23 +01:00
$ { Zu }
$ { Zu }
$ { Zu }
$ { Zu } ,
2023-01-05 10:44:38 +01:00
&
2023-11-02 09:43:23 +01:00
$ { Zu }
$ { Zu }
$ { Zu }
$ { Zu }
$ { Zu }
$ { Zu } {
2023-01-05 10:44:38 +01:00
background : # ffffff ;
}
2023-11-02 09:43:23 +01:00
` ,ep=ha.div `
2023-01-05 10:44:38 +01:00
margin : 0 0 3 px 0 ;
display : inline - block ;
2023-11-02 09:43:23 +01:00
` ,tp=ha.span `
2023-01-05 10:44:38 +01: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 } ;
}
2023-11-02 09:43:23 +01:00
` ,np=ha.button `
2023-01-05 10:44:38 +01: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 } ;
}
$ { ( { deprecated : e } ) => e && Wu || "" } ;
2023-11-02 09:43:23 +01:00
$ { e => e . active ? ` \n color: white; \n background-color: ${ e . theme . colors . primary . main } ; \n &:focus { \n box-shadow: none; \n background-color: ${ Nr ( . 15 , e . theme . colors . primary . main ) } ; \n } \n ` : ` \n color: ${ e . theme . colors . primary . main } ; \n background-color: white; \n ` }
` ,rp=ha.div `
2023-01-05 10:44:38 +01:00
font - size : 0.9 em ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& : : after {
content : ' [' ;
}
2023-11-02 09:43:23 +01:00
` ,ip=ha.div `
2023-01-05 10:44:38 +01:00
font - size : 0.9 em ;
font - family : $ { e => e . theme . typography . code . fontFamily } ;
& : : after {
content : ']' ;
}
2023-11-02 09:43:23 +01:00
` ;function op(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var ap=op("Tab"),sp=op("TabList"),lp=op("TabPanel");function cp(){return cp=Object.assign||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},cp.apply(this,arguments)}function up(e,t){return n.Children.map(e,(function(e){return null===e?null:function(e){return ap(e)||sp(e)||lp(e)}(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children?(0,n.cloneElement)(e,cp({},e.props,{children:up(e.props.children,t)})):e}))}function pp(e,t){return n.Children.forEach(e,(function(e){null!==e&&(ap(e)||lp(e)?t(e):e.props&&e.props.children&&"object"==typeof e.props.children&&(sp(e)&&t(e),pp(e.props.children,t)))}))}function dp(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=dp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function fp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dp(e))&&(r&&(r+=" "),r+=t);return r}var hp=0;function mp(){return"react-tabs-"+hp++}function gp(e){var t=0;return pp(e,(function(e){ap(e)&&t++})),t}var yp,vp=["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName","environment","disableUpDownKeys"];function bp(){return bp=Object.assign||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},bp.apply(this,arguments)}function xp(e){return e&&"getAttribute"in e}function wp(e){return xp(e)&&e.getAttribute("data-rttab")}function kp(e){return xp(e)&&"true"===e.getAttribute("aria-disabled")}var Op=function(e){var t=(0,n.useRef)([]),r=(0,n.useRef)([]),i=(0,n.useRef)([]),o=(0,n.useRef)();function a(t,n){t<0||t>=c()||(0,e.onSelect)(t,e.selectedIndex,n)}function s(e){for(var t=c(),n=e+1;n<t;n++)if(!kp(u(n)))return n;for(var r=0;r<e;r++)if(!kp(u(r)))return r;return e}function l(e){for(var t=e;t--;)if(!kp(u(t)))return t;for(t=c();t-- >e;)if(!kp(u(t)))return t;return e}function c(){return gp(e.children)}function u(e){return t.current["tabs-"+e]}function p(e){var t=e.target;do{if(d(t)){if(kp(t))return;return void a([].slice.call(t.parentNode.children).filter(wp).indexOf(t),e)}}while(null!=(t=t.parentNode))}function d(e){if(!wp(e))return!1;var t=e.parentElement;do{if(t===o.current)return!0;if(t.getAttribute("data-rttabs"))break;t=t.parentElement}while(t);return!1}e.children;var f=e.className,h=(e.disabledTabClassName,e.domRef),m=(e.focus,e.forceRenderTabPanel,e.onSelect,e.selectedIndex,e.selectedTabClassName,e.selectedTabPanelClassName,e.environment,e.disableUpDownKeys,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,vp));return n.createElement("div",bp({},m,{className:fp(f),onClick:p,onKeyDown:function(t){var n=e.direction,r=e.disableUpDownKeys;if(d(t.target)){var i=e.selectedIndex,o=!1,f=!1;"Space"!==t.code&&32!==t.keyCode&&"Enter"!==t.code&&13!==t.keyCode||(o=!0,f=!1,p(t)),"ArrowLeft"!==t.code&&37!==t.keyCode&&(r||38!==t.keyCode&&"ArrowUp"!==t.code)?"ArrowRight"!==t.code&&39!==t.keyCode&&(r||40!==t.keyCode&&"ArrowDown"!==t.code)?35===t.keyCode||"End"===t.code?(i=function(){for(var e=c();e--;)if(!kp(u(e)))return e;return null}(),o=!0,f=!0):36!==t.keyCode&&"Home"!==t.code||(i=function(){for(var e=c(),t=0;t<e;t++)if(!kp(u(t)))return t;return null}(),o=!0,f=!0):(i="rtl"===n?l(i):s(i),o=!0,f=!0):(i="rtl"===n?s(i):l(i),o=!0,f=!0),o&&t.preventDefault(),f&&a(i,t)}},ref:function(e){o.current=e,h&&h(e)},"data-rttabs":!0}),function(){var o=0,a=e.children,s=e.disabledTabClassName,l=e.focus,p=e.forceRenderTabPanel,d=e.selectedIndex,f=e.selectedTabClassName,h=e.selectedTabPanelClassName,m=e.environment;r.current=r.current||[],i.current=i.current||[];for(var g=r.current.length-c();g++<0;)r.current.push(mp()),i.current.push(mp());return up(a
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
color : $ { ( { theme : e } ) => Nr ( e . colors . tonalOffset , e . rightPanel . textColor ) } ;
2023-01-05 10:44:38 +01:00
margin : 0
$ { ( { theme : e } ) => ` ${ e . spacing . unit } px ${ e . spacing . unit } px ${ e . spacing . unit } px ` } ;
2023-11-02 09:43:23 +01:00
border : 1 px solid $ { ( { theme : e } ) => Nr ( . 05 , e . codeBlock . backgroundColor ) } ;
2023-01-05 10:44:38 +01: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 ;
}
}
2023-11-02 09:43:23 +01:00
` ,Wp=(ha(Vp) `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
color : $ { ( { theme : e } ) => Nr ( e . colors . tonalOffset , e . rightPanel . textColor ) } ;
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
` ,ha.div `
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
$ { ma ( "Prism" ) } ;
` ),Hp=ha.div `
2023-01-05 10:44:38 +01: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 ) ;
}
}
2023-11-02 09:43:23 +01:00
` ,Yp=ha.div `
& : hover $ { Hp } {
2023-01-05 10:44:38 +01:00
opacity : 1 ;
}
2023-11-02 09:43:23 +01:00
` ,Qp=ha(Wp).attrs({as:"pre"}) `
2023-01-05 10:44:38 +01: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" } ;
2023-11-02 09:43:23 +01:00
` ;function Gp(e){return getComputedStyle(e)}function Xp(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r+="px"),e.style[n]=r}return e}function Kp(e){var t=document.createElement("div");return t.className=e,t}var Zp="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Jp(e,t){if(!Zp)throw new Error("No element matching method supported");return Zp.call(e,t)}function ed(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function td(e,t){return Array.prototype.filter.call(e.children,(function(e){return Jp(e,t)}))}var nd={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}}},rd={x:null,y:null};function id(e,t){var n=e.element.classList,r=nd.state.scrolling(t);n.contains(r)?clearTimeout(rd[t]):n.add(r)}function od(e,t){rd[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(nd.state.scrolling(t))}),e.settings.scrollingThreshold)}var ad=function(e){this.element=e,this.handlers={}},sd={isEmpty:{configurable:!0}};ad.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},ad.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)}))},ad.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},sd.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(ad.prototype,sd);var ld=function(){this.eventElements=[]};function cd(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 ud(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(cd("ps-scroll-"+l)),t<0?p.dispatchEvent(cd("ps-scroll-"+c)):t>0&&p.dispatchEvent(cd("ps-scroll-"+u)),r&&function(e,t){id(e,t),od(e,t)}(e,l)),e.reach[l]&&(t||i)&&p.dispatchEvent(cd("ps-"+l+"-reach-"+e.reach[l]))}(e,n,o,r,i)}function pd(e){return parseInt(e,10)||0}ld.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new ad(e),this.eventElements.push(t)),t},ld.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},ld.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)},ld.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},ld.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 dd={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 fd(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
2023-01-05 10:44:38 +01:00
position : relative ;
2023-11-02 09:43:23 +01:00
` ;class jd extends n.Component{constructor(){super(...arguments),this.handleRef=e=>{this._container=e}}componentDidMount(){const e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new Sd(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:r}=this.props;return r&&r(this.componentDidUpdate.bind(this)),n.createElement(n.Fragment,null,Ed&&n.createElement(_d,null),n.createElement(Ad,{className: ` scrollbar - container $ { t } ` ,ref:this.handleRef},e))}}function Cd(e){return n.createElement(Oa.Consumer,null,(t=>t.nativeScrollbars?n.createElement("div",{style:{overflow:"auto",overscrollBehavior:"contain",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):n.createElement(jd,((e,t)=>{for(var n in t||(t={}))wd.call(t,n)&&Od(e,n,t[n]);if(xd)for(var n of xd(t))kd.call(t,n)&&Od(e,n,t[n]);return e})({},e),e.children)))}const Pd=ha((({className:e,style:t})=>n.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"},n.createElement("polyline",{points:"6 9 12 15 18 9"})))) `
2023-01-05 10:44:38 +01: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" } ;
}
2023-11-02 09:43:23 +01:00
` ,Td=n.memo((e=>{const{options:t,onChange:r,placeholder:i,value:o="",variant:a,className:s}=e;return n.createElement("div",{className:s},n.createElement(Pd,{variant:a}),n.createElement("select",{onChange:e=>{const{selectedIndex:n}=e.target;r(t[i?n-1:n])},value:o,className:"dropdown-select"},i&&n.createElement("option",{disabled:!0,hidden:!0,value:i},i),t.map((({idx:e,value:t,title:r},i)=>n.createElement("option",{key:e||t+i,value:t},r||t)))),n.createElement("label",null,o))})),Rd=sa(Td) `
2023-01-05 10:44:38 +01: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 ;
position : relative ;
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 } ;
}
2023-11-02 09:43:23 +01:00
` ,Id=sa(Rd) `
2023-01-05 10:44:38 +01: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 } ;
}
}
2023-11-02 09:43:23 +01:00
` , $ d=sa.span `
2023-01-05 10:44:38 +01:00
margin - left : 10 px ;
text - transform : none ;
font - size : 0.929 em ;
color : black ;
2023-11-02 09:43:23 +01:00
` ;var Nd=Object.defineProperty,Ld=Object.defineProperties,Dd=Object.getOwnPropertyDescriptors,Md=Object.getOwnPropertySymbols,Fd=Object.prototype.hasOwnProperty,zd=Object.prototype.propertyIsEnumerable,Ud=(e,t,n)=>t in e?Nd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bd=(e,t)=>{for(var n in t||(t={}))Fd.call(t,n)&&Ud(e,n,t[n]);if(Md)for(var n of Md(t))zd.call(t,n)&&Ud(e,n,t[n]);return e},qd=(e,t)=>Ld(e,Dd(t));class Vd{constructor(e,t,n){this.operations=[];const{resolved:r}=e.deref(n||{});this.initWebhooks(e,r,t)}initWebhooks(e,t,n){for(const r of Object.keys(t)){const i=t[r],o=Object.keys(i).filter(Xa);for(const t of o){const r=i[t];if(i. $ ref){const r=e.deref(i||{});this.initWebhooks(e,{[t]:r},n)}if(!r)continue;const o=new Ou(e,qd(Bd({},r),{httpVerb:t}),void 0,n,!1);this.operations.push(o)}}}}class Wd{constructor(e,t,n){const{resolved:r}=e.deref(n);this.id=t,this.sectionId=fs+t,this.type=r.type,this.displayName=r["x-displayName"]||t,this.description=r.description||"","apiKey"===r.type&&(this.apiKey={name:r.name,in:r.in}),"http"===r.type&&(this.http={scheme:r.scheme,bearerFormat:r.bearerFormat}),"openIdConnect"===r.type&&(this.openId={connectUrl:r.openIdConnectUrl}),"oauth2"===r.type&&r.flows&&(this.flows=r.flows)}}class Hd{constructor(e){const t=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(t).map((n=>new Wd(e,n,t[n])))}}var Yd=Object.defineProperty,Qd=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,Xd=Object.prototype.propertyIsEnumerable,Kd=(e,t,n)=>t in e?Yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zd=(e,t)=>{for(var n in t||(t={}))Gd.call(t,n)&&Kd(e,n,t[n]);if(Qd)for(var n of Qd(t))Xd.call(t,n)&&Kd(e,n,t[n]);return e};class Jd{constructor(e,t,n){var r,i,o;this.options=n,this.parser=new fc(e,t,n),this.info=new $ l(this.parser,this.options),this.externalDocs=this.parser.spec.externalDocs,this.contentItems=hf.buildStructure(this.parser,this.options),this.securitySchemes=new Hd(this.parser);const a=Zd(Zd({},null==(i=null==(r=this.parser)?void 0:r.spec)?void 0:i["x-webhooks"]),null==(o=this.parser)?void 0:o.spec.webhooks);this.webhooks=new Vd(this.parser,n,a)}}var ef=Object.defineProperty,tf=Object.getOwnPropertyDescriptor,nf=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?tf(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&&ef(t,n,o),o};class rf{constructor(e,t,n){this.items=[],this.active=!1,this.expanded=!1,nn(this),this.id=t.id||e+"/"+ai(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.sidebarLabel=this.name,this.description=t.description||"";const r=t.items;r&&r.length&&(this.description=Rl.getTextBeforeHading(this.description,r[0].name)),this.parent=n,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}activate(){this.active=!0}expand(){this.parent&&this.parent.expand(),this.expanded=!0}collapse(){"group"!==this.type&&(this.expanded=!1)}deactivate(){this.active=!1}}nf([Ce],rf.prototype,"active",2),nf([Ce],rf.prototype,"expanded",2),nf([jt],rf.prototype,"activate",1),nf([jt],rf.prototype,"expand",1),nf([jt],rf.prototype,"collapse",1),nf([jt],rf.prototype,"deactivate",1);var of=Object.defineProperty,af=Object.defineProperties,sf=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,uf=Object.prototype.propertyIsEnumerable,pf=(e,t,n)=>t in e?of(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,df=(e,t)=>{for(var n in t||(t={}))cf.call(t,n)&&pf(e,n,t[n]);if(lf)for(var n of lf(t))uf.call(t,n)&&pf(e,n,t[n]);return e},ff=(e,t)=>af(e,sf(t));class hf{static buildStructure(e,t){const n=e.spec,r=[],i=hf.getTagsWithOperations(e,n);return r.push(...hf.addMarkdownItems(n.info.description||"",void 0,1,t)),n["x-tagGroups"]&&n["x-tagGroups"].length>0?r.push(...hf.getTagGroupsItems(e,void 0,n["x-tagGroups"],i,t)):r.push(...hf.getTagsItems(e,i,void 0,void 0,t)),r}static addMarkdownItems(e,t,n,r){const i=new Rl(r,null==t?void 0:t.id).extractHeadings(e||"");i.length&&t&&t.description&&(t.description=Rl.getTextBefo
2023-01-05 10:44:38 +01:00
a {
text - decoration : $ { e => e . theme . typography . links . textDecoration } ;
color : $ { e => e . theme . typography . links . color } ;
& : visited {
color : $ { e => e . theme . typography . links . visited } ;
}
& : hover {
color : $ { e => e . theme . typography . links . hover } ;
text - decoration : $ { e => e . theme . typography . links . hoverTextDecoration } ;
}
}
2023-11-02 09:43:23 +01:00
` , $ f=ha(Wp) `
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
$ { ( { $compact : e } ) => e && "\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n " }
2023-01-05 10:44:38 +01:00
2023-11-02 09:43:23 +01:00
$ { ( { $inline : e } ) => e && " p {\n display: inline-block;\n }" }
2023-01-05 10:44:38 +01:00
h1 {
2023-11-02 09:43:23 +01:00
$ { Pu ( 1 ) } ;
2023-01-05 10:44:38 +01:00
color : $ { e => e . theme . colors . primary . main } ;
margin - top : 0 ;
}
h2 {
2023-11-02 09:43:23 +01:00
$ { Pu ( 2 ) } ;
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
border - radius : 0 ;
2023-01-05 10:44:38 +01: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 ;
}
$ { Fu ( ".share-link" ) } ;
2023-11-02 09:43:23 +01:00
$ { If }
2023-01-05 10:44:38 +01:00
2023-11-02 09:43:23 +01:00
$ { ma ( "Markdown" ) } ;
` ;var Nf=Object.defineProperty,Lf=Object.defineProperties,Df=Object.getOwnPropertyDescriptors,Mf=Object.getOwnPropertySymbols,Ff=Object.prototype.hasOwnProperty,zf=Object.prototype.propertyIsEnumerable,Uf=(e,t,n)=>t in e?Nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bf=(e,t)=>{for(var n in t||(t={}))Ff.call(t,n)&&Uf(e,n,t[n]);if(Mf)for(var n of Mf(t))zf.call(t,n)&&Uf(e,n,t[n]);return e};const qf=sa((e=>n.createElement( $ f,Bf({},e)))) `
display : inline ;
` ;function Vf(e){var t=e,{inline:r,compact:i}=t,o=((e,t)=>{var n={};for(var r in e)Ff.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Mf)for(var r of Mf(e))t.indexOf(r)<0&&zf.call(e,r)&&(n[r]=e[r]);return n})(t,["inline","compact"]);const a=r?qf: $ f;return n.createElement(Ea,null,(e=>{return n.createElement(a,((e,t)=>Lf(e,Df(t)))(Bf({className:"redoc-markdown "+(o.className||""),dangerouslySetInnerHTML:{__html:(t=e.untrustedSpec,s=o.html,t?Rf.sanitize(s):s)},"data-role":o["data-role"]},o),{ $ inline:r, $ compact:i}));var t,s}))}class Wf extends n.Component{render(){const{source:e,inline:t,compact:r,className:i,"data-role":o}=this.props,a=new Rl;return n.createElement(Vf,{html:a.renderMd(e),inline:t,compact:r,className:i,"data-role":o})}}const Hf=ha.div `
2023-01-05 10:44:38 +01:00
position : relative ;
2023-11-02 09:43:23 +01:00
` ,Yf=ha.div `
2023-01-05 10:44:38 +01: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 ) ;
2023-11-02 09:43:23 +01:00
` ,Qf=ha.div `
2023-01-05 10:44:38 +01:00
background : # fff ;
color : # 000 ;
display : inline ;
font - size : 0.85 em ;
white - space : nowrap ;
2023-11-02 09:43:23 +01:00
` ,Gf=ha.div `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ,Xf=ha.div `
2023-01-05 10:44:38 +01:00
position : absolute ;
width : 100 % ;
height : 20 px ;
bottom : - 20 px ;
2023-11-02 09:43:23 +01:00
` ;class Kf extends n.Component{render(){const{open:e,title:t,children:r}=this.props;return n.createElement(Hf,null,r,e&&n.createElement(Yf,null,n.createElement(Qf,null,t),n.createElement(Gf,null),n.createElement(Xf,null)))}}const Zf="undefined"!=typeof document&&document.queryCommandSupported&&document.queryCommandSupported("copy");class Jf{static isSupported(){return Zf}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){Jf.selectElement(e);const t=Jf.copySelected();return t&&Jf.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=Jf.copySelected();return document.body.removeChild(t),n}}const eh=e=>{const[t,r]=n.useState(!1),i=()=>{const t="string"==typeof e.data?e.data:JSON.stringify(e.data,null,2);Jf.copyCustom(t),o()},o=()=>{r(!0),setTimeout((()=>{r(!1)}),1500)};return e.children({renderCopyButton:()=>n.createElement("button",{onClick:i},n.createElement(Kf,{title:Jf.isSupported()?"Copied":"Not supported in your browser",open:t},"Copy"))})};let th=1;function nh(e,t){th=1;let n="";return n+='<div class="redoc-json">',n+="<code>",n+=sh(e,t),n+="</code>",n+="</div>",n}function rh(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">"):""}function ih(e){return JSON.stringify(e).slice(1,-1)}function oh(e,t){return'<span class="'+t+'">'+rh(e)+"</span>"}function ah(e){return'<span class="token punctuation">'+e+"</span>"}function sh(e,t){const n=typeof e;let r="";return null==e?r+=oh("null","token keyword"):e&&e.constructor===Array?(th++,r+=function(e,t){const n=th>t?"collapsed":"";let r= ` < button class = "collapser" aria - label = "${th>t+1?" expand ":" collapse "}" > < / b u t t o n > $ { a 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 + = s h ( e [ a ] , t ) , a < o - 1 & & ( r + = " , " ) , r + = " < / d i v > < / l i > " ; r e t u r n r + = ` < / u l > $ { a h ( " ] " ) } ` , i | | ( r = a h ( " [ ] " ) ) , r } ( e , t ) , t h - - ) : e & & e . c o n s t r u c t o r = = = D a t e ? r + = o 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 ? ( t h + + , r + = f u n c t i o n ( e , t ) { c o n s t n = t 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 = " $ { t h > t + 1 ? " e x p a n d " : " c o l l a p s e " } " > < / b u t t o n > $ { a 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 " > " ' + r h ( l ) + ' " < / s p a n > : ' , o + = s h ( e [ l ] , t ) , s < i - 1 & & ( o + = a h ( " , " ) ) , o + = " < / d i v > < / l i > " } r e t u r n o + = ` < / u l > $ { a h ( " } " ) } ` , a | | ( o = a h ( " { } " ) ) , o } ( e , t ) , t h - - ) : " n u m b e r " = = = n ? r + = o 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 + = o 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 ) + ' " > ' + r h ( i h ( e ) ) + " < / a > " + o h ( ' " ' , " t o k e n s t r i n g " ) : r + = o h ( ' " ' + i h ( e ) + ' " ' , " t o k e n s t r i n g " ) : " b o o l e a n " = = = n & & ( r + = o h ( e , " t o k e n b o o l e a n " ) ) , r } c o n s t l h = c a `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
` ,ch=ha.div `
& : hover > $ { Hp } {
2023-01-05 10:44:38 +01:00
opacity : 1 ;
}
2023-11-02 09:43:23 +01:00
` ,uh=ha((e=>{const[t,r]=n.useState(),i=({renderCopyButton:t})=>{const i=e.data&&Object.values(e.data).some((e=>"object"==typeof e&&null!==e));return n.createElement(ch,null,n.createElement(Hp,null,t(),i&&n.createElement(n.Fragment,null,n.createElement("button",{onClick:o}," Expand all "),n.createElement("button",{onClick:a}," Collapse all "))),n.createElement(Oa.Consumer,null,(t=>n.createElement(Wp,{className:e.className,ref:e=>r(e),dangerouslySetInnerHTML:{__html:nh(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=n.useCallback((e=>{s(e.target)}),[]),c=n.useCallback((e=>{"Enter"===e.key&&s(e.target)}),[]);return n.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]),n.createElement(eh,{data:e.data},i)})) `
$ { lh } ;
` ,ph=e=>{const{source:t,lang:r}=e;return n.createElement(Qp,{dangerouslySetInnerHTML:{__html:vs(t,r)}})},dh=e=>{const{source:t,lang:r}=e;return n.createElement(eh,{data:t},(({renderCopyButton:e})=>n.createElement(Yp,null,n.createElement(Hp,null,e()),n.createElement(ph,{lang:r,source:t}))))};function fh({value:e,mimeType:t}){return Ja(t)?n.createElement(uh,{data:e}):("object"==typeof e&&(e=JSON.stringify(e,null,2)),n.createElement(dh,{lang:(r=t,-1!==r.search(/xml/i)?"xml":-1!==r.search(/csv/i)?"csv":-1!==r.search(/plain/i)?"tex":"clike"),source:e}));var r}var hh=(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 mh({example:e,mimeType:t}){return void 0===e.value&&e.externalValueUrl?n.createElement(gh,{example:e,mimeType:t}):n.createElement(fh,{value:e.value,mimeType:t})}function gh({example:e,mimeType:t}){const r=function(e,t){const[,r]=(0,n.useState)(!0),i=(0,n.useRef)(void 0),o=(0,n.useRef)(void 0);return o.current!==e&&(i.current=void 0),o.current=e,(0,n.useEffect)((()=>{(()=>{hh(this,null,(function*(){r(!0);try{i.current=yield e.getExternalValue(t)}catch(e){i.current=e}r(!1)}))})()}),[e,t]),i.current}(e,t);return void 0===r?n.createElement("span",null,"Loading..."):r instanceof Error?n.createElement(Qp,null,"Error loading external example: ",n.createElement("br",null),n.createElement("a",{className:"token string",href:e.externalValueUrl,target:"_blank",rel:"noopener noreferrer"},e.externalValueUrl)):n.createElement(fh,{value:r,mimeType:t})}const yh=ha.div `
2023-01-05 10:44:38 +01:00
padding : 0.9 em ;
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => Wr ( . 6 , e . rightPanel . backgroundColor ) } ;
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ,vh=ha.span `
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
color : $ { ( { theme : e } ) => Wr ( . 3 , e . rightPanel . textColor ) } ;
` ,bh=ha.div `
2023-01-05 10:44:38 +01:00
position : relative ;
2023-11-02 09:43:23 +01:00
` ,xh=ha(Rd) `
2023-01-05 10:44:38 +01:00
label {
color : $ { ( { theme : e } ) => e . rightPanel . textColor } ;
text - overflow : ellipsis ;
white - space : nowrap ;
overflow : hidden ;
font - size : 1 em ;
text - transform : none ;
border : none ;
}
margin : 0 0 10 px 0 ;
display : block ;
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => Wr ( . 6 , e . rightPanel . backgroundColor ) } ;
2023-01-05 10:44:38 +01:00
border : none ;
padding : 0.9 em 1.6 em 0.9 em 0.9 em ;
box - shadow : none ;
& : hover ,
& : focus - within {
border : none ;
box - shadow : none ;
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => Wr ( . 3 , e . rightPanel . backgroundColor ) } ;
2023-01-05 10:44:38 +01:00
}
2023-11-02 09:43:23 +01:00
` ,wh=ha.div `
2023-01-05 10:44:38 +01:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
font - size : 12 px ;
color : # ee807f ;
2023-11-02 09:43:23 +01:00
` ;class kh extends n.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||{},r=this.props.mediaType.name,i=n.createElement(wh,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 n.createElement(Oh,null,n.createElement(bh,null,n.createElement(vh,null,"Example"),this.props.renderDropdown({value:i[e].value,options:i,onChange:this.switchMedia,ariaLabel:"Example"})),n.createElement("div",null,s&&n.createElement(Wf,{source:s}),n.createElement(mh,{example:a,mimeType:r})))}{const e=t[o[0]];return n.createElement(Oh,null,e.description&&n.createElement(Wf,{source:e.description}),n.createElement(mh,{example:e,mimeType:r}))}}}const Oh=ha.div `
2023-01-05 10:44:38 +01:00
margin - top : 15 px ;
2023-11-02 09:43:23 +01:00
` ;if(!n.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!nn)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Sh(e){e()}var Eh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},_h=[];function Ah(e){return Mt(Vn(e,t));var t}var jh="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function Ch(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+Ph}}var Ph=1e4,Th=jh?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=Ch(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(jh):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=Ch(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),Rh=Th.addReactionToTrack,Ih=Th.recordReactionAsCommitted, $ h=(Th.resetCleanupScheduleForTests,Th.forceCleanupTimerToRunNowForTests,!1);function Nh(){return $ h}var Lh=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Dh(e){return"observer"+e}var Mh=function(){};function Fh(e,t){if(void 0===t&&(t="observed"),Nh())return e();var r,i=Lh(n.useState(new Mh),1)[0],o=(r=Eh((0,n.useState)(0),2)[1],(0,n.useCallback)((function(){r((function(e){return e+1}))}),_h)),a=n.useRef(null);if(!a.current)var s=new mt(Dh(t),(function(){l.mounted?o():l.changedBeforeMount=!0})),l=Rh(a,s,i);var c,u,p=a.current.reaction;if(n.useDebugValue(p,Ah),n.useEffect((function(){return Ih(a),a.current?(a.current.mounted=!0,a.current.changedBeforeMount&&(a.current.changedBeforeMount=!1,o())):(a.current={reaction:new mt(Dh(t),(function(){o()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},o()),function(){a.current.reaction.dispose(),a.current=null}}),[]),p.track((function(){try{c=e()}catch(e){u=e}})),u)throw u;return c}var zh=function(){return zh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zh.apply(this,arguments)};var Uh={ $ $ typeof:!0,render:!0,compare:!0,type:!0};function Bh(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:Fh(r)}Bh.displayName="Observer",function(e){e||(e=Sh),Dt({reactionScheduler:e})}(o.unstable_batchedUpdates);var qh=0,Vh={};function Wh(e){return Vh[e]||(Vh[e]=function(e){if("function"==typeof
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
$ { ( { kind : e } ) => "patternProperties" === e && ca `
2023-01-05 10:44:38 +01: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 ;
}
` }
}
2023-11-02 09:43:23 +01:00
$ { qu } {
2023-01-05 10:44:38 +01:00
height : $ { ( { theme : e } ) => e . schema . arrow . size } ;
width : $ { ( { theme : e } ) => e . schema . arrow . size } ;
polygon {
fill : $ { ( { theme : e } ) => e . schema . arrow . color } ;
}
}
2023-11-02 09:43:23 +01:00
` ,gm=ha.span `
2023-01-05 10:44:38 +01:00
vertical - align : middle ;
font - size : $ { ( { theme : e } ) => e . typography . code . fontSize } ;
line - height : 20 px ;
2023-11-02 09:43:23 +01:00
` ,ym=ha(gm) `
color : $ { e => Wr ( . 1 , e . theme . schema . typeNameColor ) } ;
` ,vm=ha(gm) `
2023-01-05 10:44:38 +01:00
color : $ { e => e . theme . schema . typeNameColor } ;
2023-11-02 09:43:23 +01:00
` ,bm=ha(gm) `
2023-01-05 10:44:38 +01:00
color : $ { e => e . theme . schema . typeTitleColor } ;
word - break : break - word ;
2023-11-02 09:43:23 +01:00
` ,xm=vm,wm=ha(gm).attrs({as:"div"}) `
2023-01-05 10:44:38 +01:00
color : $ { e => e . theme . schema . requireLabelColor } ;
font - size : $ { e => e . theme . schema . labelsTextSize } ;
font - weight : normal ;
margin - left : 20 px ;
line - height : 1 ;
2023-11-02 09:43:23 +01:00
` ,km=ha(wm) `
2023-01-05 10:44:38 +01:00
color : $ { e => e . theme . colors . primary . light } ;
2023-11-02 09:43:23 +01:00
` ,Om=ha(gm) `
2023-01-05 10:44:38 +01:00
color : $ { ( { theme : e } ) => e . colors . warning . main } ;
font - size : 13 px ;
2023-11-02 09:43:23 +01:00
` ,Sm=ha(gm) `
2023-01-05 10:44:38 +01:00
color : # 0e7 c86 ;
& : : before ,
& : : after {
font - weight : bold ;
}
2023-11-02 09:43:23 +01:00
` ,Em=ha(gm) `
2023-01-05 10:44:38 +01:00
border - radius : 2 px ;
word - break : break - word ;
2023-11-02 09:43:23 +01:00
$ { ( { theme : e } ) => ` \n background-color: ${ Wr ( . 95 , e . colors . text . primary ) } ; \n color: ${ Wr ( . 1 , e . colors . text . primary ) } ; \n \n padding: 0 ${ e . spacing . unit } px; \n border: 1px solid ${ Wr ( . 9 , e . colors . text . primary ) } ; \n font-family: ${ e . typography . code . fontFamily } ; \n } ` } ;
2023-01-05 10:44:38 +01:00
& + & {
margin - left : 0 ;
}
2023-11-02 09:43:23 +01:00
$ { ma ( "ExampleValue" ) } ;
` ,_m=ha(Em) ` ` ,Am=ha(gm) `
2023-01-05 10:44:38 +01:00
border - radius : 2 px ;
2023-11-02 09:43:23 +01:00
$ { ( { theme : e } ) => ` \n background-color: ${ Wr ( . 95 , e . colors . primary . light ) } ; \n color: ${ Wr ( . 1 , e . colors . primary . main ) } ; \n \n margin: 0 ${ e . spacing . unit } px; \n padding: 0 ${ e . spacing . unit } px; \n border: 1px solid ${ Wr ( . 9 , e . colors . primary . main ) } ; \n } ` } ;
2023-01-05 10:44:38 +01:00
& + & {
margin - left : 0 ;
}
2023-11-02 09:43:23 +01:00
$ { ma ( "ConstraintItem" ) } ;
` ,jm=ha.button `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;const Cm=ha.div `
$ { If } ;
$ { ( { $compact : e } ) => e ? "" : "margin: 1em 0" }
` ;let Pm=class extends n.Component{render(){const{externalDocs:e}=this.props;return e&&e.url?n.createElement(Cm,{ $ compact:this.props.compact},n.createElement("a",{href:e.url},e.description||e.url)):null}};Pm=((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})([hm],Pm);class Tm extends n.PureComponent{constructor(){super(...arguments),this.state={collapsed:!0}}toggle(){this.setState({collapsed:!this.state.collapsed})}render(){const{values:e,isArrayType:t}=this.props,{collapsed:r}=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?r? ` … $ { e . length - o } more ` :"Hide":"";return n.createElement("div",null,n.createElement(gm,null,t?di("enumArray"):""," ",1===e.length?di("enumSingleValue"):di("enum"),":")," ",a.map(((e,t)=>{const r=i?String(e):JSON.stringify(e);return n.createElement(n.Fragment,{key:t},n.createElement(Em,null,r)," ")})),s?n.createElement(Rm,{onClick:()=>{this.toggle()}},l):null)}}Tm.contextType=Oa;const Rm=ha.span `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ,Im=ha( $ f) `
2023-01-05 10:44:38 +01:00
margin : 2 px 0 ;
2023-11-02 09:43:23 +01:00
` ;class $ m extends n.PureComponent{render(){const e=this.props.extensions;return n.createElement(Oa.Consumer,null,(t=>n.createElement(n.Fragment,null,t.showExtensions&&Object.keys(e).map((t=>n.createElement(Im,{key:t},n.createElement(gm,null," ",t.substring(2),": ")," ",n.createElement(_m,null,"string"==typeof e[t]?e[t]:JSON.stringify(e[t]))))))))}}function Nm({field:e}){return e.examples?n.createElement(n.Fragment,null,n.createElement(gm,null," ",di("examples"),": "),ci(e.examples)?e.examples.map(((t,r)=>{const i=is(e,t),o=e.in?String(i):JSON.stringify(i);return n.createElement(n.Fragment,{key:r},n.createElement(Em,null,o)," ")})):n.createElement(Lm,null,Object.values(e.examples).map(((t,r)=>n.createElement("li",{key:r+t.value},n.createElement(Em,null,is(e,t.value))," -"," ",t.summary||t.description))))):null}const Lm=ha.ul `
2023-01-05 10:44:38 +01:00
margin - top : 1 em ;
list - style - position : outside ;
2023-11-02 09:43:23 +01:00
` ;class Dm extends n.PureComponent{render(){return 0===this.props.constraints.length?null:n.createElement("span",null," ",this.props.constraints.map((e=>n.createElement(Am,{key:e}," ",e," "))))}}const Mm=n.memo((function({value:e,label:t,raw:r}){if(void 0===e)return null;const i=r?String(e):JSON.stringify(e);return n.createElement("div",null,n.createElement(gm,null," ",t," ")," ",n.createElement(Em,null,i))})),Fm=45;function zm(e){const t=e.schema.pattern,{hideSchemaPattern:r}=n.useContext(Oa),[i,o]=n.useState(!1),a=n.useCallback((()=>o(!i)),[i]);return!t||r?null:n.createElement(n.Fragment,null,n.createElement(Sm,null,i||t.length<Fm?t: ` $ { t . substr ( 0 , Fm ) } ... ` ),t.length>Fm&&n.createElement(jm,{onClick:a},i?"Hide pattern":"Show pattern"))}function Um({schema:e}){const{hideSchemaPattern:t}=n.useContext(Oa);return e&&("string"!==e.type||e.constraints.length)&&((null==e?void 0:e.pattern)&&!t||e.items||e.displayFormat||e.constraints.length)?n.createElement(Bm,null,"[ items",e.displayFormat&&n.createElement(xm,null," <",e.displayFormat," >"),n.createElement(Dm,{constraints:e.constraints}),n.createElement(zm,{schema:e}),e.items&&n.createElement(Um,{schema:e.items})," ]"):null}const Bm=ha(ym) `
2023-01-05 10:44:38 +01:00
margin : 0 5 px ;
vertical - align : text - top ;
2023-11-02 09:43:23 +01:00
` ;var qm=Object.defineProperty,Vm=Object.getOwnPropertySymbols,Wm=Object.prototype.hasOwnProperty,Hm=Object.prototype.propertyIsEnumerable,Ym=(e,t,n)=>t in e?qm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qm=(e,t)=>{for(var n in t||(t={}))Wm.call(t,n)&&Ym(e,n,t[n]);if(Vm)for(var n of Vm(t))Hm.call(t,n)&&Ym(e,n,t[n]);return e};const Gm=hm((e=>{const{enumSkipQuotes:t,hideSchemaTitles:r}=n.useContext(Oa),{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=n.useMemo((()=>!i||void 0===o.example&&void 0===o.examples?null:void 0!==o.examples?n.createElement(Nm,{field:o}):n.createElement(Mm,{label:di("example")+":",value:is(o,o.example),raw:Boolean(o.in)})),[o,i]),g=ii(s.default)?is(o,s.default).replace( ` $ { o . name } = ` ,""):s.default;return n.createElement("div",null,n.createElement("div",null,n.createElement(ym,null,s.typePrefix),n.createElement(vm,null,s.displayType),s.displayFormat&&n.createElement(xm,null," ","<",s.displayFormat,">"," "),s.contentEncoding&&n.createElement(xm,null," ","<",s.contentEncoding,">"," "),s.contentMediaType&&n.createElement(xm,null," ","<",s.contentMediaType,">"," "),s.title&&!r&&n.createElement(bm,null," (",s.title,") "),n.createElement(Dm,{constraints:s.constraints}),n.createElement(zm,{schema:s}),s.isCircular&&n.createElement(Om,null," ",di("recursive")," "),f&&s.items&&n.createElement(Um,{schema:s.items})),c&&n.createElement("div",null,n.createElement(Vu,{type:"warning"}," ",di("deprecated")," ")),n.createElement(Mm,{raw:h,label:di("default")+":",value:g}),!a&&n.createElement(Tm,{isArrayType:f,values:s.enum})," ",m,n.createElement( $ m,{extensions:Qm(Qm({},u),s.extensions)}),n.createElement("div",null,n.createElement(Wf,{compact:!0,source:l})),s.externalDocs&&n.createElement(Pm,{externalDocs:s.externalDocs,compact:!0}),a&&a(e)||null,d&&n.createElement(Mm,{label:di("const")+":",value:d})||null)})),Xm=n.memo(Gm);var Km=Object.defineProperty,Zm=(Object.getOwnPropertyDescriptor,Object.getOwnPropertySymbols),Jm=Object.prototype.hasOwnProperty,eg=Object.prototype.propertyIsEnumerable,tg=(e,t,n)=>t in e?Km(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let ng=class extends n.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:r,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=n.createElement(n.Fragment,null,"additionalProperties"===l&&n.createElement(km,null,"additional property"),"patternProperties"===l&&n.createElement(km,null,"pattern property"),s&&n.createElement(wm,null,"required")),d=c?n.createElement(mm,{className:a?"deprecated":"",kind:l,title:o},n.createElement(Ku,null),n.createElement("button",{onClick:this.toggle,onKeyPress:this.handleKeyPress,"aria-label": ` expand $ { o } ` },n.createElement("span",{className:"property-name"},o),n.createElement(qu,{direction:u?"down":"right"})),p):n.createElement(Gu,{className:a?"deprecated":void 0,kind:l,title:o},n.createElement(Ku,null),n.createElement("span",{className:"property-name"},o),p);return n.createElement(n.Fragment,null,n.createElement("tr",{className:r?"last "+e:e},d,n.createElement(Xu,null,n.createElement(Xm,((e,t)=>{for(var n in t||(t={}))Jm.call(t,n)&&tg(e,n,t[n]);if(Zm)for(var n of Zm(t))eg.call(t,n)&&tg(e,n,t[n]);return e})({},this.props)))),u&&c&&n.createElement("tr",{key:t.name+"inner"},n.createElement(Qu,{colSpan:2},n.createElement(Zu,null,n.createElement(Dg,{schema:t.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle,level:this.props.level})))))}};ng=((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})([hm],ng);Object.defineProperty,Object.getOwnPropertyDescriptor;
2023-01-05 10:44:38 +01:00
padding - left : $ { ( { theme : e } ) => 2 * e . spacing . unit } px ;
2023-11-02 09:43:23 +01:00
` ;class mg extends n.PureComponent{render(){const e=this.props.schema,t=e.items,r=void 0===e.minItems&&void 0===e.maxItems?"": ` ( $ { cs ( e ) } ) ` ;return e.fields?n.createElement(ig,fg(dg({},this.props),{level:this.props.level})):!e.displayType||t||r.length?n.createElement("div",null,n.createElement(rp,null," Array ",r),n.createElement(hg,null,n.createElement(Dg,fg(dg({},this.props),{schema:t}))),n.createElement(ip,null)):n.createElement("div",null,n.createElement(vm,null,e.displayType))}}var gg=Object.defineProperty,yg=Object.defineProperties,vg=Object.getOwnPropertyDescriptor,bg=Object.getOwnPropertyDescriptors,xg=Object.getOwnPropertySymbols,wg=Object.prototype.hasOwnProperty,kg=Object.prototype.propertyIsEnumerable,Og=(e,t,n)=>t in e?gg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sg=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?vg(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&&gg(t,n,o),o};let Eg=class extends n.Component{constructor(){super(...arguments),this.activateOneOf=()=>{this.props.schema.activateOneOf(this.props.idx)}}render(){const{idx:e,schema:t,subSchema:r}=this.props;return n.createElement(np,{deprecated:r.deprecated,active:e===t.activeOneOf,onClick:this.activateOneOf},r.title||r.typePrefix+r.displayType)}};Eg=Sg([hm],Eg);let _g=class extends n.Component{render(){const{schema:{oneOf:e},schema:t}=this.props;if(void 0===e)return null;const r=e[t.activeOneOf];return n.createElement("div",null,n.createElement(tp,null," ",t.oneOfType," "),n.createElement(ep,null,e.map(((e,r)=>n.createElement(Eg,{key:e.pointer,schema:t,subSchema:e,idx:r})))),n.createElement("div",null,e[t.activeOneOf].deprecated&&n.createElement(Vu,{type:"warning"},"Deprecated")),n.createElement(Dm,{constraints:r.constraints}),n.createElement(Dg,((e,t)=>yg(e,bg(t)))(((e,t)=>{for(var n in t||(t={}))wg.call(t,n)&&Og(e,n,t[n]);if(xg)for(var n of xg(t))kg.call(t,n)&&Og(e,n,t[n]);return e})({},this.props),{schema:r})))}};_g=Sg([hm],_g);const Ag=hm((({schema:e})=>n.createElement("div",null,n.createElement(vm,null,e.displayType),e.title&&n.createElement(bm,null," ",e.title," "),n.createElement(Om,null," ",di("recursive")," "))));var jg=Object.defineProperty,Cg=Object.defineProperties,Pg=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Tg=Object.getOwnPropertySymbols,Rg=Object.prototype.hasOwnProperty,Ig=Object.prototype.propertyIsEnumerable, $ g=(e,t,n)=>t in e?jg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ng=(e,t)=>{for(var n in t||(t={}))Rg.call(t,n)&& $ g(e,n,t[n]);if(Tg)for(var n of Tg(t))Ig.call(t,n)&& $ g(e,n,t[n]);return e},Lg=(e,t)=>Cg(e,Pg(t));let Dg=class extends n.Component{render(){var e;const t=this.props,{schema:r}=t,i=((e,t)=>{var n={};for(var r in e)Rg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tg)for(var r of Tg(e))t.indexOf(r)<0&&Ig.call(e,r)&&(n[r]=e[r]);return n})(t,["schema"]),o=(i.level||0)+1;if(!r)return n.createElement("em",null," Schema not provided ");const{type:a,oneOf:s,discriminatorProp:l,isCircular:c}=r;if(c)return n.createElement(Ag,{schema:r});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 $ { r . title } ` ),null;const e=s[r.activeOneOf];return e.isCircular?n.createElement(Ag,{schema:e}):n.createElement(ig,Lg(Ng({},i),{level:o,schema:e,discriminator:{fieldName:l,parentSchema:r}}))}if(void 0!==s)return n.createElement(_g,Ng({schema:r},i));const u=ci(a)?a:[a];if(u.includes("object")){if(null==(e=r.fields)?void 0:e.length)return n.createElement(ig,Lg(Ng({},this.props),{level:o}))}else if(u.includes("array"))return n.createElement(mg,Lg(Ng({},this.props),{level:o}));const p={schema:r,name:"",required:!1,description:r.description,externalDocs:r.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1};return n.createElement("div",null,n.createElement(Xm,{field:p}))}};Dg=((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})([hm],Dg);var Mg=Object.defineProperty,Fg=Object.defineProperties,zg=Object.getOwnPropertyDescriptors,Ug=Object
2023-01-05 10:44:38 +01:00
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
& > div ,
& > pre {
padding : $ { e => 4 * e . theme . spacing . unit } px ;
margin : 0 ;
}
& > div > pre {
padding : 0 ;
}
2023-11-02 09:43:23 +01:00
` ,Yg=(sa.div `
2023-01-05 10:44:38 +01:00
background - color : # e4e7eb ;
2023-11-02 09:43:23 +01:00
` ,sa.ul `
2023-01-05 10:44:38 +01:00
display : inline ;
list - style : none ;
padding : 0 ;
li {
display : inherit ;
& : after {
content : ',' ;
}
& : last - child : after {
content : none ;
}
}
2023-11-02 09:43:23 +01:00
` ,sa.code `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
` ),Qg=sa.span `
2023-01-05 10:44:38 +01:00
& : after {
content : ' and ' ;
font - weight : normal ;
}
& : last - child : after {
content : none ;
}
2023-11-02 09:43:23 +01:00
$ { If } ;
` ,Gg=sa.span `
$ { e => ! e . $expanded && "white-space: nowrap;" }
2023-01-05 10:44:38 +01:00
& : after {
content : ' or ' ;
2023-11-02 09:43:23 +01:00
$ { e => e . $expanded && "content: ' or \\a';" }
2023-01-05 10:44:38 +01:00
white - space : pre ;
}
& : last - child : after ,
& : only - child : after {
content : none ;
}
2023-11-02 09:43:23 +01:00
$ { If } ;
` ,Xg=sa.div `
2023-01-05 10:44:38 +01:00
flex : 1 1 auto ;
cursor : pointer ;
2023-11-02 09:43:23 +01:00
` ,Kg=sa.div `
2023-01-05 10:44:38 +01:00
width : $ { e => e . theme . schema . defaultDetailsWidth } ;
text - overflow : ellipsis ;
border - radius : 4 px ;
overflow : hidden ;
2023-11-02 09:43:23 +01:00
$ { e => e . $expanded && ` background: ${ e . theme . colors . gray [ 100 ] } ; \n padding: 8px 9.6px; \n margin: 20px 0; \n width: 100%; \n ` } ;
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
margin - top : 10 px ;
` }
2023-11-02 09:43:23 +01:00
` ,Zg=sa( $ u) `
2023-01-05 10:44:38 +01:00
display : inline - block ;
margin : 0 ;
2023-11-02 09:43:23 +01:00
` ,Jg=sa.div `
2023-01-05 10:44:38 +01:00
width : 100 % ;
display : flex ;
margin : 1 em 0 ;
2023-11-02 09:43:23 +01:00
flex - direction : $ { e => e . $expanded ? "column" : "row" } ;
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
flex - direction : column ;
` }
2023-11-02 09:43:23 +01:00
` ,ey=sa.div `
2023-01-05 10:44:38 +01:00
margin : 0.5 em 0 ;
2023-11-02 09:43:23 +01:00
` ,ty=sa.div `
2023-01-05 10:44:38 +01: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 ;
}
2023-11-02 09:43:23 +01:00
` ;function ny({children:e,height:t}){const r=n.createRef(),[i,o]=n.useState(!1),[a,s]=n.useState(!1);return n.useEffect((()=>{r.current&&r.current.clientHeight+20<r.current.scrollHeight&&s(!0)}),[r]),n.createElement(n.Fragment,null,n.createElement(ry,{ref:r,className:i?"":"container",style:{height:i?"auto":t}},e),n.createElement(iy,{ $ dimmed:!i},a&&n.createElement(oy,{onClick:()=>{o(!i)}},i?"See less":"See more")))}const ry=sa.div `
2023-01-05 10:44:38 +01:00
overflow - y : hidden ;
2023-11-02 09:43:23 +01:00
` ,iy=sa.div `
2023-01-05 10:44:38 +01:00
text - align : center ;
line - height : 1.5 em ;
2023-11-02 09:43:23 +01: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 " }
` ,oy=sa.a `
2023-01-05 10:44:38 +01:00
cursor : pointer ;
2023-11-02 09:43:23 +01:00
` ,ay=n.memo((function(e){const{type:t,flow:r,RequiredScopes:i}=e,o=Object.keys((null==r?void 0:r.scopes)||{});return n.createElement(n.Fragment,null,n.createElement(ey,null,n.createElement("b",null,"Flow type: "),n.createElement("code",null,t," ")),("implicit"===t||"authorizationCode"===t)&&n.createElement(ey,null,n.createElement("strong",null," Authorization URL: "),n.createElement("code",null,n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:r.authorizationUrl},r.authorizationUrl))),("password"===t||"clientCredentials"===t||"authorizationCode"===t)&&n.createElement(ey,null,n.createElement("b",null," Token URL: "),n.createElement("code",null,r.tokenUrl)),r.refreshUrl&&n.createElement(ey,null,n.createElement("strong",null," Refresh URL: "),n.createElement("code",null,r.refreshUrl)),!!o.length&&n.createElement(n.Fragment,null,i||null,n.createElement(ey,null,n.createElement("b",null," Scopes: ")),n.createElement(ny,{height:"4em"},n.createElement("ul",null,o.map((e=>n.createElement("li",{key:e},n.createElement("code",null,e)," -"," ",n.createElement(Wf,{className:"redoc-markdown",inline:!0,source:r.scopes[e]||""}))))))))}));function sy(e){const{RequiredScopes:t,scheme:r}=e;return n.createElement( $ f,null,r.apiKey?n.createElement(n.Fragment,null,n.createElement(ey,null,n.createElement("b",null,(i=r.apiKey.in||"").charAt(0).toUpperCase()+i.slice(1)," parameter name: "),n.createElement("code",null,r.apiKey.name)),t):r.http?n.createElement(n.Fragment,null,n.createElement(ey,null,n.createElement("b",null,"HTTP Authorization Scheme: "),n.createElement("code",null,r.http.scheme)),n.createElement(ey,null,"bearer"===r.http.scheme&&r.http.bearerFormat&&n.createElement(n.Fragment,null,n.createElement("b",null,"Bearer format: "),n.createElement("code",null,r.http.bearerFormat))),t):r.openId?n.createElement(n.Fragment,null,n.createElement(ey,null,n.createElement("b",null,"Connect URL: "),n.createElement("code",null,n.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:r.openId.connectUrl},r.openId.connectUrl))),t):r.flows?Object.keys(r.flows).map((e=>n.createElement(ay,{key:e,type:e,RequiredScopes:t,flow:r.flows[e]}))):null);var i}const ly={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"OpenID Connect"};class cy extends n.PureComponent{render(){return this.props.securitySchemes.schemes.map((e=>n.createElement(Eu,{id:e.sectionId,key:e.id},n.createElement(ju,null,n.createElement(Su,null,n.createElement(Ru,null,n.createElement(Uu,{to:e.sectionId}),e.displayName),n.createElement(Wf,{source:e.description||""}),n.createElement(ty,null,n.createElement(ey,null,n.createElement("b",null,"Security Scheme Type: "),n.createElement("span",null,ly[e.type]||e.type)),n.createElement(sy,{scheme:e})))))))}}class uy{constructor(e,t,n={},r=!0){var i,o,a,s;this.marker=new Ds,this.disposer=null,this.rawOptions=n,this.options=new Si(n,py),this.scroll=new Of(this.options),bf.updateOnHistory(Ns.currentId,this.scroll),this.spec=new Jd(e,t,this.options),this.menu=new bf(this.spec,this.scroll,Ns),this.options.disableSearch||(this.search=new Sf,r&&this.search.indexItems(this.menu.items),this.disposer=(i=this.menu,o="activeItemIdx",x(a=e=>{this.updateMarkOnMenu(e.newValue)})?function(e,t,n,r){return Wn(e,t).observe_(n,r)}(i,o,a,s):function(e,t,n){return Wn(e).observe_(t,n)}(i,o,a)))}static fromJS(e){const t=new uy(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=>{
2023-01-05 10:44:38 +01:00
margin - top : 0 ;
margin - bottom : 0.5 em ;
2023-11-02 09:43:23 +01:00
$ { ma ( "ApiHeader" ) } ;
` ,fy=ha.a `
2023-01-05 10:44:38 +01: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-11-02 09:43:23 +01:00
$ { ma ( "DownloadButton" ) } ;
` ,hy=ha.span `
2023-01-05 10:44:38 +01:00
& : : before {
content : '|' ;
display : inline - block ;
opacity : 0.5 ;
width : $ { 15 } px ;
text - align : center ;
}
& : last - child : : after {
display : none ;
}
2023-11-02 09:43:23 +01:00
` ,my=ha.div `
2023-01-05 10:44:38 +01:00
overflow : hidden ;
2023-11-02 09:43:23 +01:00
` ,gy=ha.div `
2023-01-05 10:44:38 +01:00
display : flex ;
flex - wrap : wrap ;
// hide separator on new lines: idea from https://stackoverflow.com/a/31732902/1749888
margin - left : - $ { 15 } px ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let yy=class extends n.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:r}=e.spec,i=e.options.hideDownloadButton,o=t.downloadFileName,a=t.downloadLink,s=t.license&&n.createElement(hy,null,"License:"," ",t.license.identifier?t.license.identifier:n.createElement("a",{href:t.license.url},t.license.name))||null,l=t.contact&&t.contact.url&&n.createElement(hy,null,"URL: ",n.createElement("a",{href:t.contact.url},t.contact.url))||null,c=t.contact&&t.contact.email&&n.createElement(hy,null,t.contact.name||"E-mail",":"," ",n.createElement("a",{href:"mailto:"+t.contact.email},t.contact.email))||null,u=t.termsOfService&&n.createElement(hy,null,n.createElement("a",{href:t.termsOfService},"Terms of Service"))||null,p=t.version&&n.createElement("span",null,"(",t.version,")")||null;return n.createElement(Eu,null,n.createElement(ju,null,n.createElement(Su,{className:"api-info"},n.createElement(dy,null,t.title," ",p),!i&&n.createElement("p",null,di("downloadSpecification"),":",n.createElement(fy,{download:o||!0,target:"_blank",href:a,onClick:this.handleDownloadClick},di("download"))),n.createElement( $ f,null,(t.license||t.contact||t.termsOfService)&&n.createElement(my,null,n.createElement(gy,null,c," ",l," ",s," ",u))||null),n.createElement(Wf,{source:e.spec.info.summary,"data-role":"redoc-summary"}),n.createElement(Wf,{source:e.spec.info.description,"data-role":"redoc-description"}),r&&n.createElement(Pm,{externalDocs:r}))))}};yy=((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})([hm],yy);const vy=ha.img `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ,by=ha.div `
2023-01-05 10:44:38 +01:00
text - align : center ;
2023-11-02 09:43:23 +01:00
` ,xy=ha.a `
2023-01-05 10:44:38 +01:00
display : inline - block ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let wy=class extends n.Component{render(){const{info:e}=this.props,t=e["x-logo"];if(!t||!t.url)return null;const r=t.href||e.contact&&e.contact.url,i=t.altText?t.altText:"logo",o=n.createElement(vy,{src:t.url,alt:i});return n.createElement(by,{style:{backgroundColor:t.backgroundColor}},r?(a=r,e=>n.createElement(xy,{href:a},e))(o):o);var a}};wy=((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})([hm],wy);var ky=Object.defineProperty,Oy=Object.getOwnPropertySymbols,Sy=Object.prototype.hasOwnProperty,Ey=Object.prototype.propertyIsEnumerable,_y=(e,t,n)=>t in e?ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ay=(e,t)=>{for(var n in t||(t={}))Sy.call(t,n)&&_y(e,n,t[n]);if(Oy)for(var n of Oy(t))Ey.call(t,n)&&_y(e,n,t[n]);return e};class jy extends n.Component{render(){return n.createElement(Ea,null,(e=>n.createElement(Du,null,(t=>this.renderWithOptionsAndStore(e,t)))))}renderWithOptionsAndStore(e,t){const{source:r,htmlWrap:i=(e=>e)}=this.props;if(!t)throw new Error("When using components in markdown, store prop must be provided");const o=new Rl(e,this.props.parentId).renderMdWithComponents(r);return o.length?o.map(((e,r)=>{if("string"==typeof e)return n.cloneElement(i(n.createElement(Vf,{html:e,inline:!1,compact:!1})),{key:r});const o=e.component;return n.createElement(o,Ay({key:r},Ay(Ay({},e.props),e.propsSelector(t))))})):null}}var Cy=r(4184),Py=r.n(Cy);const Ty=ha.span.attrs((e=>({className: ` operation - type $ { e . type } ` }))) `
2023-01-05 10:44:38 +01:00
width : 9 ex ;
display : inline - block ;
height : $ { e => e . theme . typography . code . fontSize } ;
line - height : $ { e => e . theme . typography . code . fontSize } ;
background - color : # 333 ;
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-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . get } ;
2023-01-05 10:44:38 +01:00
}
& . post {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . post } ;
2023-01-05 10:44:38 +01:00
}
& . put {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . put } ;
2023-01-05 10:44:38 +01:00
}
& . options {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . options } ;
2023-01-05 10:44:38 +01:00
}
& . patch {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . patch } ;
2023-01-05 10:44:38 +01:00
}
& . delete {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . delete } ;
2023-01-05 10:44:38 +01:00
}
& . basic {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . basic } ;
2023-01-05 10:44:38 +01:00
}
& . link {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . link } ;
2023-01-05 10:44:38 +01:00
}
& . head {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . http . head } ;
2023-01-05 10:44:38 +01:00
}
& . hook {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => e . colors . primary . main } ;
2023-01-05 10:44:38 +01:00
}
2023-11-02 09:43:23 +01:00
& . schema {
background - color : $ { ( { theme : e } ) => e . colors . http . basic } ;
}
` ;function Ry(e,{theme:t},n){return e>1?t.sidebar.level1Items[n]:1===e?t.sidebar.groupItems[n]:""}const Iy=ha.ul `
2023-01-05 10:44:38 +01:00
margin : 0 ;
padding : 0 ;
& : first - child {
padding - bottom : 32 px ;
}
& & {
font - size : 0.929 em ;
}
2023-11-02 09:43:23 +01:00
$ { e => e . $expanded ? "" : "display: none;" } ;
` , $ y=ha.li `
2023-01-05 10:44:38 +01:00
list - style : none inside none ;
overflow : hidden ;
text - overflow : ellipsis ;
padding : 0 ;
$ { e => 0 === e . depth ? "margin-top: 15px" : "" } ;
2023-11-02 09:43:23 +01:00
` ,Ny={0:ca `
2023-01-05 10:44:38 +01:00
opacity : 0.7 ;
text - transform : $ { ( { theme : e } ) => e . sidebar . groupItems . textTransform } ;
font - size : 0.8 em ;
padding - bottom : 0 ;
cursor : default ;
2023-11-02 09:43:23 +01:00
` ,1:ca `
2023-01-05 10:44:38 +01:00
font - size : 0.929 em ;
text - transform : $ { ( { theme : e } ) => e . sidebar . level1Items . textTransform } ;
2023-11-02 09:43:23 +01:00
` },Ly=ha.label.attrs((e=>({className:Py()("-depth"+e. $ depth,{active:e. $ active})}))) `
2023-01-05 10:44:38 +01:00
cursor : pointer ;
2023-11-02 09:43:23 +01:00
color : $ { e => e . $active ? Ry ( e . $depth , e , "activeTextColor" ) : e . theme . sidebar . textColor } ;
2023-01-05 10:44:38 +01:00
margin : 0 ;
padding : 12.5 px $ { e => 4 * e . theme . spacing . unit } px ;
2023-11-02 09:43:23 +01:00
$ { ( { $depth : e , $type : t , theme : n } ) => "section" === t && e > 1 && "padding-left: " + 8 * n . spacing . unit + "px;" || "" }
2023-01-05 10:44:38 +01:00
display : flex ;
justify - content : space - between ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
2023-11-02 09:43:23 +01:00
$ { e => Ny [ e . $depth ] } ;
background - color : $ { e => e . $active ? Ry ( e . $depth , e , "activeBackgroundColor" ) : e . theme . sidebar . backgroundColor } ;
2023-01-05 10:44:38 +01:00
2023-11-02 09:43:23 +01:00
$ { e => e . $deprecated && Wu || "" } ;
2023-01-05 10:44:38 +01:00
& : hover {
2023-11-02 09:43:23 +01:00
color : $ { e => Ry ( e . $depth , e , "activeTextColor" ) } ;
background - color : $ { e => Ry ( e . $depth , e , "activeBackgroundColor" ) } ;
2023-01-05 10:44:38 +01:00
}
2023-11-02 09:43:23 +01:00
$ { qu } {
2023-01-05 10:44:38 +01:00
height : $ { ( { theme : e } ) => e . sidebar . arrow . size } ;
width : $ { ( { theme : e } ) => e . sidebar . arrow . size } ;
polygon {
fill : $ { ( { theme : e } ) => e . sidebar . arrow . color } ;
}
}
2023-11-02 09:43:23 +01:00
` ,Dy=ha.span `
2023-01-05 10:44:38 +01:00
display : inline - block ;
vertical - align : middle ;
width : $ { e => e . width ? e . width : "auto" } ;
overflow : hidden ;
text - overflow : ellipsis ;
2023-11-02 09:43:23 +01:00
` ,My=ha.div `
$ { ( { theme : e } ) => ca `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
border - top : 1 px solid $ { Nr ( . 1 , e . sidebar . backgroundColor ) } ;
2023-01-05 10:44:38 +01:00
text - decoration : none ;
display : flex ;
align - items : center ;
justify - content : center ;
}
` };
img {
width : 15 px ;
margin - right : 5 px ;
}
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
width : 100 % ;
` };
2023-11-02 09:43:23 +01:00
` ,Fy=ha.button `
2023-01-05 10:44:38 +01:00
border : 0 ;
width : 100 % ;
text - align : left ;
& > * {
vertical - align : middle ;
}
2023-11-02 09:43:23 +01:00
$ { qu } {
2023-01-05 10:44:38 +01:00
polygon {
2023-11-02 09:43:23 +01:00
fill : $ { ( { theme : e } ) => Nr ( e . colors . tonalOffset , e . colors . gray [ 100 ] ) } ;
2023-01-05 10:44:38 +01:00
}
}
2023-11-02 09:43:23 +01:00
` ,zy=ha.span `
text - decoration : $ { e => e . $deprecated ? "line-through" : "none" } ;
2023-01-05 10:44:38 +01:00
margin - right : 8 px ;
2023-11-02 09:43:23 +01:00
` ,Uy=ha(Ty) `
2023-01-05 10:44:38 +01:00
margin : 0 5 px 0 0 ;
2023-11-02 09:43:23 +01:00
` ,By=ha((e=>{const{name:t,opened:r,className:i,onClick:o,httpVerb:a,deprecated:s}=e;return n.createElement(Fy,{className:i,onClick:o||void 0},n.createElement(Uy,{type:a},hs(a)),n.createElement(qu,{size:"1.5em",direction:r?"down":"right",float:"left"}),n.createElement(zy,{ $ deprecated:s},t),s?n.createElement(Vu,{type:"warning"}," ",di("deprecated")," "):null)})) `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
outline - color : $ { ( { theme : e } ) => Nr ( e . colors . tonalOffset , e . colors . gray [ 100 ] ) } ;
` ,qy=ha.div `
2023-01-05 10:44:38 +01:00
padding : 10 px 25 px ;
background - color : $ { ( { theme : e } ) => e . colors . gray [ 50 ] } ;
margin - bottom : 5 px ;
margin - top : 5 px ;
2023-11-02 09:43:23 +01:00
` ;class Vy extends n.PureComponent{constructor(){super(...arguments),this.selectElement=()=>{Jf.selectElement(this.child)}}render(){const{children:e}=this.props;return n.createElement("div",{ref:e=>this.child=e,onClick:this.selectElement,onFocus:this.selectElement,tabIndex:0,role:"button"},e)}}const Wy=ha.div `
2023-01-05 10:44:38 +01:00
cursor : pointer ;
position : relative ;
margin - bottom : 5 px ;
2023-11-02 09:43:23 +01:00
` ,Hy=ha.span `
2023-01-05 10:44:38 +01:00
font - family : $ { e => e . theme . typography . code . fontFamily } ;
margin - left : 10 px ;
flex : 1 ;
overflow - x : hidden ;
text - overflow : ellipsis ;
2023-11-02 09:43:23 +01:00
` ,Yy=ha.button `
2023-01-05 10:44:38 +01:00
outline : 0 ;
color : inherit ;
width : 100 % ;
text - align : left ;
cursor : pointer ;
2023-11-02 09:43:23 +01: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 } ;
2023-01-05 10:44:38 +01:00
display : flex ;
white - space : nowrap ;
align - items : center ;
2023-11-02 09:43:23 +01:00
border : $ { e => e . $inverted ? "0" : "1px solid transparent" } ;
border - bottom : $ { e => e . $inverted ? "1px solid #ccc" : "0" } ;
2023-01-05 10:44:38 +01:00
transition : border - color 0.25 s ease ;
2023-11-02 09:43:23 +01:00
$ { e => e . $expanded && ! e . $inverted && ` border-color: ${ e . theme . colors . border . dark } ; ` || "" }
2023-01-05 10:44:38 +01:00
2023-11-02 09:43:23 +01:00
. $ { Hy } {
color : $ { e => e . $inverted ? e . theme . colors . text . primary : "#ffffff" } ;
2023-01-05 10:44:38 +01: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 ) ;
}
2023-11-02 09:43:23 +01:00
` ,Qy=ha.span.attrs((e=>({className: ` http - verb $ { e . type } ` }))) `
font - size : $ { e => e . $compact ? "0.8em" : "0.929em" } ;
line - height : $ { e => e . $compact ? "18px" : "20px" } ;
2023-01-05 10:44:38 +01:00
background - color : $ { e => e . theme . colors . http [ e . type ] || "#999999" } ;
color : # ffffff ;
2023-11-02 09:43:23 +01:00
padding : $ { e => e . $compact ? "2px 8px" : "3px 10px" } ;
2023-01-05 10:44:38 +01:00
text - transform : uppercase ;
font - family : $ { e => e . theme . typography . headings . fontFamily } ;
margin : 0 ;
2023-11-02 09:43:23 +01:00
` ,Gy=ha.div `
2023-01-05 10:44:38 +01:00
position : absolute ;
width : 100 % ;
z - index : 100 ;
background : $ { e => e . theme . rightPanel . servers . overlay . backgroundColor } ;
color : $ { e => e . theme . rightPanel . servers . overlay . textColor } ;
box - sizing : border - box ;
2023-11-02 09:43:23 +01:00
box - shadow : 0 0 6 px rgba ( 0 , 0 , 0 , 0.33 ) ;
2023-01-05 10:44:38 +01:00
overflow : hidden ;
border - bottom - left - radius : 4 px ;
border - bottom - right - radius : 4 px ;
transition : all 0.25 s ease ;
visibility : hidden ;
2023-11-02 09:43:23 +01:00
$ { e => e . $expanded ? "visibility: visible;" : "transform: translateY(-50%) scaleY(0);" }
` ,Xy=ha.div `
2023-01-05 10:44:38 +01:00
padding : 10 px ;
2023-11-02 09:43:23 +01:00
` ,Ky=ha.div `
2023-01-05 10:44:38 +01:00
padding : 5 px ;
border : 1 px solid # ccc ;
background : $ { e => e . theme . rightPanel . servers . url . backgroundColor } ;
word - break : break - all ;
color : $ { e => e . theme . colors . primary . main } ;
> span {
color : $ { e => e . theme . colors . text . primary } ;
}
2023-11-02 09:43:23 +01:00
` ;class Zy extends n.Component{constructor(e){super(e),this.toggle=()=>{this.setState({expanded:!this.state.expanded})},this.state={expanded:!1}}render(){const{operation:e,inverted:t,hideHostname:r}=this.props,{expanded:i}=this.state;return n.createElement(Oa.Consumer,null,(o=>n.createElement(Wy,null,n.createElement(Yy,{onClick:this.toggle, $ expanded:i, $ inverted:t},n.createElement(Qy,{type:e.httpVerb, $ compact:this.props.compact},e.httpVerb),n.createElement(Hy,null,e.path),n.createElement(qu,{float:"right",color:t?"black":"white",size:"20px",direction:i?"up":"down",style:{marginRight:"-25px"}})),n.createElement(Gy,{ $ 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 si(e).pathname}catch(t){return e}}(i);return n.createElement(Xy,{key:i},n.createElement(Wf,{source:t.description||"",compact:!0}),n.createElement(Vy,null,n.createElement(Ky,null,n.createElement("span",null,r||o.hideHostname?"/"===a?"":a:i),e.path)))}))))))}}class Jy extends n.PureComponent{render(){const{place:e,parameters:t}=this.props;return t&&t.length?n.createElement("div",{key:e},n.createElement( $ u,null,e," Parameters"),n.createElement(Ju,null,n.createElement("tbody",null,Jr(t,((e,t)=>n.createElement(ng,{key:e.name,isLast:t,field:e,showExamples:!0})))))):null}}Object.defineProperty,Object.getOwnPropertyDescriptor;let ev=class extends n.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,r=e.mediaTypes.map(((e,t)=>({value:e.name,idx:t}))),i=({children:e})=>this.props.withLabel?n.createElement(bh,null,n.createElement(vh,null,"Content type"),e):e;return n.createElement(n.Fragment,null,n.createElement(i,null,this.props.renderDropdown({value:r[t].value,options:r,onChange:this.switchMedia,ariaLabel:"Content type"})),this.props.children(e.active))}};ev=((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})([hm],ev);var tv=Object.defineProperty,nv=Object.getOwnPropertySymbols,rv=Object.prototype.hasOwnProperty,iv=Object.prototype.propertyIsEnumerable,ov=(e,t,n)=>t in e?tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,av=(e,t)=>{for(var n in t||(t={}))rv.call(t,n)&&ov(e,n,t[n]);if(nv)for(var n of nv(t))iv.call(t,n)&&ov(e,n,t[n]);return e},sv=(e,t)=>{var n={};for(var r in e)rv.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&nv)for(var r of nv(e))t.indexOf(r)<0&&iv.call(e,r)&&(n[r]=e[r]);return n};const lv=["path","query","cookie","header"];class cv extends n.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 r=this.orderParams(t),i=t.length>0?lv:[],o=e&&e.content,a=e&&e.description,s=e&&e.required;return n.createElement(n.Fragment,null,i.map((e=>n.createElement(Jy,{key:e,place:e,parameters:r[e]}))),o&&n.createElement(pv,{content:o,description:a,bodyRequired:s}))}}function uv(e){var t=e,{bodyRequired:r}=t,i=sv(t,["bodyRequired"]);const o="boolean"==typeof r&&!!r,a="boolean"==typeof r&&!r;return n.createElement( $ u,{key:"header"},"Request Body schema: ",n.createElement(Tf,av({},i)),o&&n.createElement(fv,null,"required"),a&&n.createElement(hv,null,"optional"))}function pv(e){const{content:t,description:r,bodyRequired:i}=e,{isRequestType:o}=t;return n.createElement(ev,{content:t,renderDropdown:e=>n.createElement(uv,av({bodyRequired:i},e))},(({schema:e})=>n.createElement(n.Fragment,null,void 0!==r&&n.createElement(Wf,{source:r}),"object"===(null==e?void 0:e.type)&&n.createElement(Dm,{constraints:(null==e?void 0:e.constraints)||[]}),n.createElement(Dg,{skipReadOnly:o,skipWriteOnly:!o,key:"schema",schema:e}))))}const dv=" \n text-transform: lowercase; \n margin-left: 0; \n line-height: 1.5em; \n ",f
$ { dv }
` ,hv=ha("div") `
$ { dv }
color : $ { ( { theme : e } ) => e . colors . text . secondary } ;
font - size : $ { e => e . theme . schema . labelsTextSize } ;
` ,mv=ha(n.memo((function({title:e,type:t,empty:r,code:i,opened:o,className:a,onClick:s}){return n.createElement("button",{className:a,onClick:!r&&s||void 0,"aria-expanded":o,disabled:r},!r&&n.createElement(qu,{size:"1.5em",color:t,direction:o?"down":"right",float:"left"}),n.createElement(vv,null,i," "),n.createElement(Wf,{compact:!0,inline:!0,source:e}))}))) `
2023-01-05 10:44:38 +01: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' : "" } ;
2023-11-02 09:43:23 +01:00
` ,gv=ha.div `
2023-01-05 10:44:38 +01:00
padding : 10 px ;
2023-11-02 09:43:23 +01:00
` ,yv=ha( $ u).attrs({as:"caption"}) `
2023-01-05 10:44:38 +01:00
text - align : left ;
margin - top : 1 em ;
caption - side : top ;
2023-11-02 09:43:23 +01:00
` ,vv=ha.strong `
2023-01-05 10:44:38 +01:00
vertical - align : top ;
2023-11-02 09:43:23 +01:00
` ;class bv extends n.PureComponent{render(){const{headers:e}=this.props;return void 0===e||0===e.length?null:n.createElement(Ju,null,n.createElement(yv,null," Response Headers "),n.createElement("tbody",null,Jr(e,((e,t)=>n.createElement(ng,{isLast:t,key:e.name,field:e,showExamples:!0})))))}}var xv=Object.defineProperty,wv=Object.getOwnPropertySymbols,kv=Object.prototype.hasOwnProperty,Ov=Object.prototype.propertyIsEnumerable,Sv=(e,t,n)=>t in e?xv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;class Ev extends n.PureComponent{constructor(){super(...arguments),this.renderDropdown=e=>n.createElement( $ u,{key:"header"},"Response Schema: ",n.createElement(Tf,((e,t)=>{for(var n in t||(t={}))kv.call(t,n)&&Sv(e,n,t[n]);if(wv)for(var n of wv(t))Ov.call(t,n)&&Sv(e,n,t[n]);return e})({},e)))}render(){const{description:e,extensions:t,headers:r,content:i}=this.props.response;return n.createElement(n.Fragment,null,e&&n.createElement(Wf,{source:e}),n.createElement( $ m,{extensions:t}),n.createElement(bv,{headers:r}),n.createElement(ev,{content:i,renderDropdown:this.renderDropdown},(({schema:e})=>n.createElement(n.Fragment,null,"object"===(null==e?void 0:e.type)&&n.createElement(Dm,{constraints:(null==e?void 0:e.constraints)||[]}),n.createElement(Dg,{skipWriteOnly:!0,key:"schema",schema:e})))))}}const _v=hm((({response:e})=>{const{extensions:t,headers:r,type:i,summary:o,description:a,code:s,expanded:l,content:c}=e,u=n.useMemo((()=>void 0===c?[]:c.mediaTypes.filter((e=>void 0!==e.schema))),[c]),p=n.useMemo((()=>!(t&&0!==Object.keys(t).length||0!==r.length||0!==u.length||a)),[t,r,u,a]);return n.createElement("div",null,n.createElement(mv,{onClick:()=>e.toggle(),type:i,empty:p,title:o||"",code:s,opened:l}),l&&!p&&n.createElement(gv,null,n.createElement(Ev,{response:e})))})),Av=ha.h3 `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ;class jv extends n.PureComponent{render(){const{responses:e,isCallback:t}=this.props;return e&&0!==e.length?n.createElement("div",null,n.createElement(Av,null,di(t?"callbackResponses":"responses")),e.map((e=>n.createElement(_v,{key:e.code,response:e})))):null}}function Cv(e){const{security:t,showSecuritySchemeType:r,expanded:i}=e,o=t.schemes.length>1;return 0===t.schemes.length?n.createElement(Gg,{ $ expanded:i},"None"):n.createElement(Gg,{ $ expanded:i},o&&"(",t.schemes.map((e=>n.createElement(Qg,{key:e.id},r&& ` $ { ly [ e . type ] || e . type } : ` ,n.createElement("i",null,e.displayName),i&&e.scopes.length?[" (",e.scopes.map((e=>n.createElement(Yg,{key:e},e))),") "]:null))),o&&") ")}const Pv=({scopes:e})=>e.length?n.createElement("div",null,n.createElement("b",null,"Required scopes: "),e.map(((e,t)=>n.createElement(n.Fragment,{key:t},n.createElement("code",null,e)," ")))):null;function Tv(e){const t=(0,n.useContext)(Nu),r=null==t?void 0:t.options.showSecuritySchemeType,[i,o]=(0,n.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 n.createElement(n.Fragment,null,n.createElement(Jg,{ $ expanded:i},n.createElement(Xg,{onClick:()=>o(!i)},n.createElement(Zg,null,"Authorizations:"),n.createElement(qu,{size:"1.3em",direction:i?"down":"right"})),n.createElement(Kg,{ $ expanded:i},a.map(((e,t)=>n.createElement(Cv,{key:t,expanded:i,showSecuritySchemeType:r,security:e}))))),i&&(null==s?void 0:s.length)&&s.map(((e,t)=>n.createElement(ty,{key:t},n.createElement("h5",null,n.createElement(Rv,null)," ",ly[e.type]||e.type,": ",e.id),n.createElement(Wf,{source:e.description||""}),n.createElement(sy,{key:e.id,scheme:e,RequiredScopes:n.createElement(Pv,{scopes:Iv(e.id,a)})})))))}const Rv=()=>n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"11",height:"11"},n.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 Iv(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 $ v=class extends n.Component{render(){const{operation:e}=this.props,{description:t,externalDocs:r}=e,i=!(!t&&!r);return n.createElement(qy,null,i&&n.createElement(Nv,null,void 0!==t&&n.createElement(Wf,{source:t}),r&&n.createElement(Pm,{externalDocs:r})),n.createElement(Zy,{operation:this.props.operation,inverted:!0,compact:!0}),n.createElement( $ m,{extensions:e.extensions}),n.createElement(Tv,{securities:e.security}),n.createElement(cv,{parameters:e.parameters,body:e.requestBody}),n.createElement(jv,{responses:e.responses,isCallback:e.isCallback}))}}; $ v=((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})([hm], $ v);const Nv=ha.div `
2023-01-05 10:44:38 +01:00
margin - bottom : $ { ( { theme : e } ) => 3 * e . spacing . unit } px ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Lv=class extends n.Component{constructor(){super(...arguments),this.toggle=()=>{this.props.callbackOperation.toggle()}}render(){const{name:e,expanded:t,httpVerb:r,deprecated:i}=this.props.callbackOperation;return n.createElement(n.Fragment,null,n.createElement(By,{onClick:this.toggle,name:e,opened:t,httpVerb:r,deprecated:i}),t&&n.createElement( $ v,{operation:this.props.callbackOperation}))}};Lv=((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})([hm],Lv);class Dv extends n.PureComponent{render(){const{callbacks:e}=this.props;return e&&0!==e.length?n.createElement("div",null,n.createElement(Mv,null," Callbacks "),e.map((e=>e.operations.map(((t,r)=>n.createElement(Lv,{key: ` $ { e . name } _$ { r } ` ,callbackOperation:t})))))):null}}const Mv=ha.h3 `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Fv=class extends n.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?n.createElement(bh,null,n.createElement(vh,null,this.props.label),e):e;return n.createElement(n.Fragment,null,n.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]))}};Fv=((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})([hm],Fv);var zv=Object.defineProperty,Uv=Object.defineProperties,Bv=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),qv=Object.getOwnPropertySymbols,Vv=Object.prototype.hasOwnProperty,Wv=Object.prototype.propertyIsEnumerable,Hv=(e,t,n)=>t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Yv=class extends n.Component{constructor(){super(...arguments),this.renderDropdown=e=>{return n.createElement(Tf,(t=((e,t)=>{for(var n in t||(t={}))Vv.call(t,n)&&Hv(e,n,t[n]);if(qv)for(var n of qv(t))Wv.call(t,n)&&Hv(e,n,t[n]);return e})({Label:yh,Dropdown:xh},e),Uv(t,Bv({variant:"dark"}))));var t}}render(){const e=this.props.content;return void 0===e?null:n.createElement(ev,{content:e,renderDropdown:this.renderDropdown,withLabel:!0},(e=>n.createElement(kh,{key:"samples",mediaType:e,renderDropdown:this.renderDropdown})))}};Yv=((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})([hm],Yv);class Qv extends n.Component{render(){const e=this.props.callback.codeSamples.find((e=>wu(e)));return e?n.createElement(Gv,null,n.createElement(Yv,{content:e.requestBodyContent})):null}}const Gv=ha.div `
2023-01-05 10:44:38 +01:00
margin - top : 15 px ;
2023-11-02 09:43:23 +01:00
` ;var Xv=Object.defineProperty,Kv=Object.defineProperties,Zv=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Jv=Object.getOwnPropertySymbols,eb=Object.prototype.hasOwnProperty,tb=Object.prototype.propertyIsEnumerable,nb=(e,t,n)=>t in e?Xv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let rb=class extends n.Component{constructor(){super(...arguments),this.renderDropdown=e=>{return n.createElement(Tf,(t=((e,t)=>{for(var n in t||(t={}))eb.call(t,n)&&nb(e,n,t[n]);if(Jv)for(var n of Jv(t))tb.call(t,n)&&nb(e,n,t[n]);return e})({Label:yh,Dropdown:xh},e),Kv(t,Zv({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 r=t.map(((e,t)=>({value: ` $ { e . httpVerb . toUpperCase ( ) } : $ { e . name } ` ,idx:t})));return n.createElement("div",null,n.createElement(Iu,null," Callback payload samples "),n.createElement(ib,null,n.createElement(Fv,{items:t,renderDropdown:this.renderDropdown,label:"Callback",options:r},(e=>n.createElement(Qv,{key:"callbackPayloadSample",callback:e,renderDropdown:this.renderDropdown})))))}};rb.contextType=Oa,rb=((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})([hm],rb);const ib=ha.div `
2023-01-05 10:44:38 +01:00
background : $ { ( { theme : e } ) => e . codeBlock . backgroundColor } ;
padding : $ { e => 4 * e . theme . spacing . unit } px ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let ob=class extends n.Component{render(){const{operation:e}=this.props,t=e.codeSamples,r=t.length>0,i=1===t.length&&this.context.hideSingleRequestSampleTab;return r&&n.createElement("div",null,n.createElement(Iu,null," ",di("requestSamples")," "),n.createElement(Vp,{defaultIndex:0},n.createElement(Tp,{hidden:i},t.map((e=>n.createElement(Dp,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)))),t.map((e=>n.createElement(qp,{key:e.lang+"_"+(e.label||"")},wu(e)?n.createElement("div",null,n.createElement(Yv,{content:e.requestBodyContent})):n.createElement(dh,{lang:e.lang,source:e.source}))))))||null}};ob.contextType=Oa,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})([hm],ob);Object.defineProperty,Object.getOwnPropertyDescriptor;let ab=class extends n.Component{render(){const{operation:e}=this.props,t=e.responses.filter((e=>e.content&&e.content.hasSample));return t.length>0&&n.createElement("div",null,n.createElement(Iu,null," ",di("responseSamples")," "),n.createElement(Vp,{defaultIndex:0},n.createElement(Tp,null,t.map((e=>n.createElement(Dp,{className:"tab-"+e.type,key:e.code},e.code)))),t.map((e=>n.createElement(qp,{key:e.code},n.createElement("div",null,n.createElement(Yv,{content:e.content})))))))||null}};ab=((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})([hm],ab);var sb=Object.defineProperty,lb=Object.defineProperties,cb=Object.getOwnPropertyDescriptors,ub=Object.getOwnPropertySymbols,pb=Object.prototype.hasOwnProperty,db=Object.prototype.propertyIsEnumerable,fb=(e,t,n)=>t in e?sb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;const hb=ha.div `
2023-01-05 10:44:38 +01:00
margin - bottom : $ { ( { theme : e } ) => 6 * e . spacing . unit } px ;
2023-11-02 09:43:23 +01:00
` ,mb=hm((({operation:e})=>{const{name:t,description:r,deprecated:i,externalDocs:o,isWebhook:a,httpVerb:s}=e,l=!(!r&&!o),{showWebhookVerb:c}=n.useContext(Oa);return n.createElement(Oa.Consumer,null,(u=>n.createElement(ju,((e,t)=>lb(e,cb(t)))(((e,t)=>{for(var n in t||(t={}))pb.call(t,n)&&fb(e,n,t[n]);if(ub)for(var n of ub(t))db.call(t,n)&&fb(e,n,t[n]);return e})({},{[vf]:e.operationHash}),{id:e.operationHash}),n.createElement(Su,null,n.createElement(Ru,null,n.createElement(Uu,{to:e.id}),t," ",i&&n.createElement(Vu,{type:"warning"}," Deprecated "),a&&n.createElement(Vu,{type:"primary"}," ","Webhook ",c&&s&&"| "+s.toUpperCase())),u.pathInMiddlePanel&&!a&&n.createElement(Zy,{operation:e,inverted:!0}),l&&n.createElement(hb,null,void 0!==r&&n.createElement(Wf,{source:r}),o&&n.createElement(Pm,{externalDocs:o})),n.createElement( $ m,{extensions:e.extensions}),n.createElement(Tv,{securities:e.security}),n.createElement(cv,{parameters:e.parameters,body:e.requestBody}),n.createElement(jv,{responses:e.responses}),n.createElement(Dv,{callbacks:e.callbacks})),n.createElement(Au,null,!u.pathInMiddlePanel&&!a&&n.createElement(Zy,{operation:e}),n.createElement(ob,{operation:e}),n.createElement(ab,{operation:e}),n.createElement(rb,{callbacks:e.callbacks})))))}));var gb=Object.defineProperty,yb=Object.getOwnPropertyDescriptor,vb=Object.getOwnPropertySymbols,bb=Object.prototype.hasOwnProperty,xb=Object.prototype.propertyIsEnumerable,wb=(e,t,n)=>t in e?gb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kb=(e,t,n,r)=>{for(var i,o=r>1?void 0:r?yb(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&&gb(t,n,o),o};let Ob=class extends n.Component{render(){const e=this.props.items;return 0===e.length?null:e.map((e=>n.createElement(Sb,{key:e.id,item:e})))}};Ob=kb([hm],Ob);let Sb=class extends n.Component{render(){const e=this.props.item;let t;const{type:r}=e;switch(r){case"group":t=null;break;case"tag":case"section":default:t=n.createElement(_b,((e,t)=>{for(var n in t||(t={}))bb.call(t,n)&&wb(e,n,t[n]);if(vb)for(var n of vb(t))xb.call(t,n)&&wb(e,n,t[n]);return e})({},this.props));break;case"operation":t=n.createElement(Ab,{item:e})}return n.createElement(n.Fragment,null,t&&n.createElement(Eu,{id:e.id, $ underlined:"operation"===e.type},t),e.items&&n.createElement(Ob,{items:e.items}))}};Sb=kb([hm],Sb);const Eb=e=>n.createElement(Su,{ $ compact:!0},e);let _b=class extends n.Component{render(){const{name:e,description:t,externalDocs:r,level:i}=this.props.item,o=2===i?Ru:Tu;return n.createElement(n.Fragment,null,n.createElement(ju,null,n.createElement(Su,{ $ compact:!1},n.createElement(o,null,n.createElement(Uu,{to:this.props.item.id}),e))),n.createElement(jy,{parentId:this.props.item.id,source:t||"",htmlWrap:Eb}),r&&n.createElement(ju,null,n.createElement(Su,null,n.createElement(Pm,{externalDocs:r}))))}};_b=kb([hm],_b);let Ab=class extends n.Component{render(){return n.createElement(mb,{operation:this.props.item})}};Ab=kb([hm],Ab);var jb=Object.defineProperty,Cb=Object.defineProperties,Pb=(Object.getOwnPropertyDescriptor,Object.getOwnPropertyDescriptors),Tb=Object.getOwnPropertySymbols,Rb=Object.prototype.hasOwnProperty,Ib=Object.prototype.propertyIsEnumerable, $ b=(e,t,n)=>t in e?jb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let Nb=class extends n.Component{constructor(){super(...arguments),this.ref=n.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&&Xr(this.ref.current)}render(){const{item:e,withoutChildren:t}=this.props;return n.createElement( $ y,{tabIndex:0,onClick:this.activate,depth:e.depth,"data-item-id":e.id,role:"menuitem"},"operation"===e.type?n.createElement(Lb,((e,t)=>Cb(e,Pb(t)))(((e,t)=>{for(var n in t||(t={}))Rb.call(t,n)&& $ b(e,n,t[n]);if(Tb)for(var n of Tb(t))Ib.call(t,n)&& $ b(e,n,t[n]);return e})({},this.props),{item:e})):n.createElement(Ly,{ $ depth:e.depth, $ active:e.active, $ type:e.
2023-01-05 10:44:38 +01: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 } ;
2023-11-02 09:43:23 +01:00
` ;Object.defineProperty,Object.getOwnPropertyDescriptor;let Qb;Qr&&(Qb=r(5114));const Gb=Qb&&Qb(),Xb=ha.div `
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
position : fixed ;
z - index : 20 ;
width : 100 % ;
background : $ { ( { theme : e } ) => e . sidebar . backgroundColor } ;
display : $ { e => e . open ? "flex" : "none" } ;
` };
@ media print {
display : none ;
}
2023-11-02 09:43:23 +01:00
` ,Kb=ha.div `
2023-01-05 10:44:38 +01:00
outline : none ;
user - select : none ;
background - color : $ { ( { theme : e } ) => e . fab . backgroundColor } ;
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 ) ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" ) `
2023-01-05 10:44:38 +01:00
display : flex ;
` };
bottom : 44 px ;
width : 60 px ;
height : 60 px ;
padding : 0 20 px ;
svg {
color : $ { ( { theme : e } ) => e . fab . color } ;
}
@ media print {
display : none ;
}
2023-11-02 09:43:23 +01:00
` ;let Zb=class extends n.Component{constructor(){super(...arguments),this.state={offsetTop:"0px"},this.toggleNavMenu=()=>{this.props.menu.toggleSidebar()}}componentDidMount(){Gb&&Gb.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})}componentWillUnmount(){Gb&&Gb.remove(this.stickyElement)}getScrollYOffset(e){let t;return t=void 0!==this.props.scrollYOffset?Si.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset(),t+"px"}render(){const e=this.props.menu.sideBarOpened,t=this.state.offsetTop;return n.createElement(n.Fragment,null,n.createElement(Xb,{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&&n.createElement(Kb,{onClick:this.toggleNavMenu},n.createElement(Wb,{open:e})))}};Zb.contextType=Oa,Zb=((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})([hm],Zb);const Jb=ha.div `
2023-01-05 10:44:38 +01: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 ` } ;
2023-11-02 09:43:23 +01:00
` ,ex=ha.div `
2023-01-05 10:44:38 +01:00
z - index : 1 ;
position : relative ;
overflow : hidden ;
width : calc ( 100 % - $ { e => e . theme . sidebar . width } ) ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "small" , ! 0 ) `
2023-01-05 10:44:38 +01:00
width : 100 % ;
` };
contain : layout ;
2023-11-02 09:43:23 +01:00
` ,tx=ha.div `
2023-01-05 10:44:38 +01: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 } } ;
2023-11-02 09:43:23 +01:00
$ { fa . lessThan ( "medium" , ! 0 ) `
2023-01-05 10:44:38 +01:00
display : none ;
` };
2023-11-02 09:43:23 +01:00
` ,nx=ha.div `
2023-01-05 10:44:38 +01:00
padding : 5 px 0 ;
2023-11-02 09:43:23 +01:00
` ,rx=ha.input.attrs((()=>({className:"search-input"}))) `
2023-01-05 10:44:38 +01: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
2023-11-02 09:43:23 +01:00
$ { ( { theme : e } ) => ( Mr ( e . sidebar . backgroundColor ) > . 5 ? Nr : zr ) ( . 1 , e . sidebar . backgroundColor ) } ;
2023-01-05 10:44:38 +01: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 ;
2023-11-02 09:43:23 +01:00
` ,ix=ha((e=>n.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},n.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"}) `
2023-01-05 10:44:38 +01: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 } ;
}
2023-11-02 09:43:23 +01:00
` ,ox=ha.div `
2023-01-05 10:44:38 +01:00
padding : $ { e => e . theme . spacing . unit } px 0 ;
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => Nr ( . 05 , e . sidebar . backgroundColor ) } } ;
2023-01-05 10:44:38 +01:00
color : $ { e => e . theme . sidebar . textColor } ;
min - height : 150 px ;
max - height : 250 px ;
2023-11-02 09:43:23 +01:00
border - top : $ { ( { theme : e } ) => Nr ( . 1 , e . sidebar . backgroundColor ) } } ;
border - bottom : $ { ( { theme : e } ) => Nr ( . 1 , e . sidebar . backgroundColor ) } } ;
2023-01-05 10:44:38 +01:00
margin - top : 10 px ;
line - height : 1.4 ;
font - size : 0.9 em ;
li {
background - color : inherit ;
}
2023-11-02 09:43:23 +01:00
$ { Ly } {
2023-01-05 10:44:38 +01:00
padding - top : 6 px ;
padding - bottom : 6 px ;
& : hover ,
& . active {
2023-11-02 09:43:23 +01:00
background - color : $ { ( { theme : e } ) => Nr ( . 1 , e . sidebar . backgroundColor ) } ;
2023-01-05 10:44:38 +01:00
}
> svg {
display : none ;
}
}
2023-11-02 09:43:23 +01:00
` ,ax=ha.i `
2023-01-05 10:44:38 +01: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' ;
2023-11-02 09:43:23 +01:00
` ;var sx=Object.defineProperty,lx=Object.getOwnPropertyDescriptor;class cx extends n.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 n.createElement(nx,{role:"search"},this.state.term&&n.createElement(ax,{onClick:this.clear},"× "),n.createElement(ix,null),n.createElement(rx,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...","aria-label":"Search",type:"text",onChange:this.search}),t.length>0&&n.createElement(Cd,{options:{wheelPropagation:!1}},n.createElement(ox,{"data-role":"search:results"},t.map(((t,r)=>n.createElement(Nb,{item:Object.create(t.item,{active:{value:r===e}}),onActivate:this.props.onActivate,withoutChildren:!0,key:t.item.id,"data-role":"search:result"}))))),this.state.term&&this.state.noResults?n.createElement(ox,{"data-role":"search:results"},di("noResultsFound")):null)}}cx.contextType=Oa,((e,t,n,r)=>{for(var i,o=lx(t,n),a=e.length-1;a>=0;a--)(i=e[a])&&(o=i(t,n,o)||o);o&&sx(t,n,o)})([Pa.bind,(0,Pa.debounce)(400)],cx.prototype,"searchCallback");class ux extends n.Component{componentDidMount(){this.props.store.onDidMount()}componentWillUnmount(){this.props.store.dispose()}render(){const{store:{spec:e,menu:t,options:r,search:i,marker:o}}=this.props,a=this.props.store;return n.createElement(da,{theme:r.theme},n.createElement(Lu,{value:a},n.createElement(Sa,{value:r},n.createElement(Jb,{className:"redoc-wrap"},n.createElement(Zb,{menu:t,className:"menu-content"},n.createElement(wy,{info:e.info}),!r.disableSearch&&n.createElement(cx,{search:i,marker:o,getItemById:t.getItemById,onActivate:t.activateAndScroll})||null,n.createElement(Vb,{menu:t})),n.createElement(ex,{className:"api-content"},n.createElement(yy,{store:a}),n.createElement(Ob,{items:t.items})),n.createElement(tx,null)))))}}ux.propTypes={store:ka.instanceOf(uy).isRequired};var px=Object.defineProperty,dx=Object.getOwnPropertySymbols,fx=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,mx=(e,t,n)=>t in e?px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gx=(e,t)=>{for(var n in t||(t={}))fx.call(t,n)&&mx(e,n,t[n]);if(dx)for(var n of dx(t))hx.call(t,n)&&mx(e,n,t[n]);return e};const yx=function(e){const{spec:t,specUrl:i,options:o={},onLoaded:a}=e,s=ki(o.hideLoading,!1),l=new Si(o);if(void 0!==l.nonce)try{r.nc=l.nonce}catch(e){}return n.createElement(ya,null,n.createElement(Mu,{spec:t?gx({},t):void 0,specUrl:i,options:o,onLoaded:a},(({loading:e,store:t})=>e?s?null:n.createElement(wa,{color:l.theme.colors.primary.main}):n.createElement(ux,{store:t}))))};var vx=Object.defineProperty,bx=Object.getOwnPropertySymbols,xx=Object.prototype.hasOwnProperty,wx=Object.prototype.propertyIsEnumerable,kx=(e,t,n)=>t in e?vx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ox=(e,t)=>{for(var n in t||(t={}))xx.call(t,n)&&kx(e,n,t[n]);i
2022-06-22 17:02:10 +02:00
//# sourceMappingURL=redoc.standalone.js.map