From 489e91bb11fe34f6fe1ef02a70a2af377ca5ea96 Mon Sep 17 00:00:00 2001 From: Laurent Calvet Date: Thu, 9 Jan 2020 09:22:50 +0100 Subject: [PATCH] fix(api): Update the POST proxy request by PUT (#8243) Change POST by PUT request Co-authored-by: Colin Gagnaire --- doc/API/centreon-api-v2.html | 44 +++++++++---------- doc/API/centreon-api-v2.yaml | 2 +- .../Configuration/ProxyController.php | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/doc/API/centreon-api-v2.html b/doc/API/centreon-api-v2.html index ab53114ff64..46ff7a9a58a 100644 --- a/doc/API/centreon-api-v2.html +++ b/doc/API/centreon-api-v2.html @@ -148,7 +148,7 @@ See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var Xi=function(){return(Xi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ji(e){return e.current?Object($e.h)(e.current):""}var Zi=[];function ea(){var e=Ki(Object(i.useState)(0),2)[1];return Object(i.useCallback)((function(){e((function(e){return e+1}))}),[])}var ta={};function na(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=ta),Gi())return e();var r=(n.useForceUpdate||ea)(),o=Object(i.useRef)(null);o.current||(o.current=new $e.b("observer("+t+")",(function(){r()})));var a,s,l=function(){o.current&&!o.current.isDisposed&&(o.current.dispose(),o.current=null)};if(Object(i.useDebugValue)(o,Ji),function(e){Object(i.useEffect)((function(){return e}),Zi)}((function(){l()})),o.current.track((function(){try{a=e()}catch(e){s=e}})),s)throw l(),s;return a}function ra(e,t){if(Gi())return e;var n,r,o,a=Xi({forwardRef:!1},t),s=e.displayName||e.name,l=function(t,n){return na((function(){return e(t,n)}),s)};return l.displayName=s,n=a.forwardRef?Object(i.memo)(Object(i.forwardRef)(l)):Object(i.memo)(l),r=e,o=n,Object.keys(r).forEach((function(e){r.hasOwnProperty(e)&&!oa[e]&&Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=s,n}var oa={$$typeof:!0,render:!0,compare:!0,type:!0};function ia(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:na(r)}function aa(e,t,n,r,o){var i="children"===t?"render":"children",a="function"==typeof e[t],s="function"==typeof e[i];return a&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):a||s?null:new Error("Invalid prop `"+o+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}ia.propTypes={children:aa,render:aa},ia.displayName="Observer";var sa=0,la={};function ca(e){return la[e]||(la[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+sa+")";return sa++,t}(e)),la[e]}function ua(e,t){if(fa(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o0;)r[o]=arguments[o+2];t.locks++;try{var i;return null!=e&&(i=e.apply(this,r)),i}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,r)}))}}function ga(e,t){return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];ma.call.apply(ma,[this,e,t].concat(n))}}function ya(e,t,n){var r=function(e,t){var n=e[da]=e[da]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var o=Object.getOwnPropertyDescriptor(e,t);if(!o||!o[ha]){var i=function e(t,n,r,o,i){var a,s=ga(i,o);return(a={})[ha]=!0,a.get=function(){return s},a.set=function(i){if(this===t)s=ga(i,o);else{var a=e(this,n,r,o,i);Object.defineProperty(this,n,a)}},a.configurable=!0,a.enumerable=r,a}(e,t,o?o.enumerable:void 0,r,e[t]);Object.defineProperty(e,t,i)}}var va=$e.a||"$mobx",ba=ca("isUnmounted"),wa=ca("skipRender"),xa=ca("isForcingUpdate");function ka(e,t){return Gi()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!ua(this.props,e)}function Ea(e,t){var n=ca("reactProp_"+t+"_valueHolder"),r=ca("reactProp_"+t+"_atomHolder");function o(){return this[r]||pa(this,r,Object($e.g)("reactive "+t)),this[r]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return o.call(this).reportObserved(),this[n]},set:function(e){this[xa]||ua(this[n],e)?pa(this,n,e):(pa(this,n,e),pa(this,wa,!0),o.call(this).reportChanged(),pa(this,wa,!1))}})}var Oa="function"==typeof Symbol&&Symbol.for,_a=Oa?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&Object(i.forwardRef)((function(){})).$$typeof,Sa=Oa?Symbol.for("react.memo"):"function"==typeof i.memo&&Object(i.memo)((function(){})).$$typeof;function Ta(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),Sa&&e.$$typeof===Sa)throw new Error("Mobx observer: You are trying to use 'observer' on function component wrapped to either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(_a&&e.$$typeof===_a){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return Object(i.forwardRef)((function(){var e=arguments;return a.a.createElement(ia,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,e)?function(e){var t=e.prototype;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==ka)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=ka;Ea(t,"props"),Ea(t,"state");var n=t.render;return t.render=function(){return function(e){var t=this;if(!0===Gi())return e.call(this);pa(this,wa,!1),pa(this,xa,!1);var n=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",r=e.bind(this),o=!1,a=new $e.b(n+".render()",(function(){if(!o&&(o=!0,!0!==t[ba])){var e=!0;try{pa(t,xa,!0),t[wa]||i.Component.prototype.forceUpdate.call(t),e=!1}finally{pa(t,xa,!1),e&&a.dispose()}}}));function s(){o=!1;var e=void 0,t=void 0;if(a.track((function(){try{t=Object($e.c)(!1,r)}catch(t){e=t}})),e)throw e;return t}return a.reactComponent=this,s[va]=a,this.render=s,s.call(this)}.call(this,n)},ya(t,"componentWillUnmount",(function(){!0!==Gi()&&(this.render[va]&&this.render[va].dispose(),this[ba]=!0)})),e}(e):ra(e)}a.a.createContext({});ca("disposeOnUnmountProto"),ca("disposeOnUnmountInst");function ja(e){function t(t,n,r,o,i,a){for(var s=[],l=arguments.length-6;l-- >0;)s[l]=arguments[l+6];return Object($e.q)((function(){return o=o||"<>",a=a||r,null==n[r]?t?new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+(null===n[r]?"null":"undefined")+"`."):null:e.apply(void 0,[n,r,o,i,a].concat(s))}))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function Ca(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function Ia(e,t){return ja((function(n,r,o,i,a){return Object($e.q)((function(){if(e&&Ca(n[r])===t.toLowerCase())return null;var i;switch(t){case"Array":i=$e.i;break;case"Object":i=$e.k;break;case"Map":i=$e.j;break;default:throw new Error("Unexpected mobxType: "+t)}var s=n[r];if(!i(s)){var l=function(e){var t=Ca(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}(s),c=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+c+".")}return null}))}))}function Aa(e,t){return ja((function(n,r,o,i,a){for(var s=[],l=arguments.length-5;l-- >0;)s[l]=arguments[l+5];return Object($e.q)((function(){if("function"!=typeof t)return new Error("Property `"+a+"` of component `"+o+"` has invalid PropType notation.");var l=Ia(e,"Array")(n,r,o);if(l instanceof Error)return l;for(var c=n[r],u=0;u"," "),c.title&&!l&&i.createElement(Za,null," (",c.title,") "),i.createElement(ds,{constraints:c.constraints}),c.nullable&&i.createElement(rs,null," ",ge("nullable")," "),c.pattern&&i.createElement(os,null," ",c.pattern," "),c.isCircular&&i.createElement(ns,null," ",ge("recursive")," ")),p&&i.createElement("div",null,i.createElement(pr,{type:"warning"}," ",ge("deprecated")," ")),i.createElement(hs,{raw:d,label:ge("default")+":",value:c.default}),!r&&i.createElement(us,{type:c.type,values:c.enum})," ",h,i.createElement(ps,{extensions:Object(o.__assign)(Object(o.__assign)({},n.extensions),c.extensions)}),i.createElement("div",null,i.createElement(si,{compact:!0,source:u})),c.externalDocs&&i.createElement(cs,{externalDocs:c.externalDocs,compact:!0}),r&&r(this.props)||null)},t.contextType=Ue,t}(i.PureComponent),gs=Te.div(Va||(Va=Object(o.__makeTemplateObject)(["\n padding-left: ","px;\n"],["\n padding-left: ","px;\n"])),(function(e){return 2*e.theme.spacing.unit})),ys=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.schema.items;return i.createElement("div",null,i.createElement(_r,null," Array "),i.createElement(gs,null,i.createElement(Es,Object(o.__assign)({},this.props,{schema:e}))),i.createElement(Sr,null))},t}(i.PureComponent),vs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toggle=function(){t.props.field.toggle()},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.field,r=e.isLast,a=n.name,s=n.expanded,l=n.deprecated,c=n.required,u=n.kind,f=!n.schema.isPrimitive&&!n.schema.isCircular,p=f?i.createElement(Ga,{onClick:this.toggle,className:l?"deprecated":"",kind:u,title:a},i.createElement(br,null),a,i.createElement(fr,{direction:s?"down":"right"}),c&&i.createElement(ts,null," required ")):i.createElement(yr,{className:l?"deprecated":void 0,kind:u,title:a},i.createElement(br,null),a,c&&i.createElement(ts,null," required "));return i.createElement(i.Fragment,null,i.createElement("tr",{className:r?"last "+t:t},p,i.createElement(vr,null,i.createElement(ms,Object(o.__assign)({},this.props)))),n.expanded&&f&&i.createElement("tr",{key:n.name+"inner"},i.createElement(gr,{colSpan:2},i.createElement(wr,null,i.createElement(Es,{schema:n.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle})))))},t=Object(o.__decorate)([Ta],t)}(i.Component),bs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.changeActiveChild=function(e){var n=e.value,r=parseInt(n,10);t.props.parent.activateOneOf(r)},t}return Object(o.__extends)(t,e),t.prototype.sortOptions=function(e,t){if(0!==t.length){var n={};t.forEach((function(e,t){n[e]=t})),e.sort((function(e,t){return n[e.label]>n[t.label]?1:-1}))}},t.prototype.render=function(){var e=this.props,t=e.parent,n=e.enumValues;if(void 0===t.oneOf)return null;var r=t.oneOf.map((function(e,t){return{value:t.toString(),label:e.title}})),o=r[t.activeOneOf];return this.sortOptions(r,n),i.createElement(jr,{value:o,options:r,onChange:this.changeActiveChild})},t=Object(o.__decorate)([Ta],t)}(i.Component),ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"parentSchema",{get:function(){return this.props.discriminator.parentSchema},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this,t=this.props,n=t.schema.fields,r=void 0===n?[]:n,o=t.showTitle,a=t.discriminator,s=this.props.skipReadOnly||this.props.skipWriteOnly?r.filter((function(t){return!(e.props.skipReadOnly&&t.schema.readOnly||e.props.skipWriteOnly&&t.schema.writeOnly)})):r;return i.createElement(xr,null,o&&i.createElement(hr,null,this.props.schema.title),i.createElement("tbody",null,le(s,(function(t,n){return i.createElement(vs,{key:t.name,isLast:n,field:t,renderDiscriminatorSwitch:a&&a.fieldName===t.name&&function(){return i.createElement(bs,{parent:e.parentSchema,enumValues:t.schema.enum})}||void 0,className:t.expanded?"expanded":void 0,showExamples:!1,skipReadOnly:e.props.skipReadOnly,skipWriteOnly:e.props.skipWriteOnly,showTitle:e.props.showTitle})}))))},t=Object(o.__decorate)([Ta],t)}(i.Component),xs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activateOneOf=function(){t.props.schema.activateOneOf(t.props.idx)},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.idx,n=e.schema,r=e.subSchema;return i.createElement(Or,{active:t===n.activeOneOf,onClick:this.activateOneOf},r.title||r.typePrefix+r.displayType)},t=Object(o.__decorate)([Ta],t)}(i.Component),ks=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.schema.oneOf,n=e.schema;return void 0===t?null:i.createElement("div",null,i.createElement(Er,null," ",n.oneOfType," "),i.createElement(kr,null,t.map((function(e,t){return i.createElement(xs,{key:e.pointer,schema:n,subSchema:e,idx:t})}))),i.createElement(Es,Object(o.__assign)({},this.props,{schema:t[n.activeOneOf]})))},t=Object(o.__decorate)([Ta],t)}(i.Component),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.schema;if(!e)return i.createElement("em",null," Schema not provided ");var t=e.type,n=e.oneOf,r=e.discriminatorProp;if(e.isCircular)return i.createElement("div",null,i.createElement(Ja,null,e.displayType),e.title&&i.createElement(Za,null," ",e.title," "),i.createElement(ns,null," ",ge("recursive")," "));if(void 0!==r){if(!n||!n.length)throw new Error("Looks like you are using discriminator wrong: you don't have any definition inherited from the "+e.title);return i.createElement(ws,Object(o.__assign)({},Object(o.__assign)(Object(o.__assign)({},this.props),{schema:n[e.activeOneOf]}),{discriminator:{fieldName:r,parentSchema:e}}))}if(void 0!==n)return i.createElement(ks,Object(o.__assign)({schema:e},this.props));switch(t){case"object":return i.createElement(ws,Object(o.__assign)({},this.props));case"array":return i.createElement(ys,Object(o.__assign)({},this.props))}var a={schema:e,name:"",required:!1,description:e.description,externalDocs:e.externalDocs,deprecated:!1,toggle:function(){return null},expanded:!1};return i.createElement("div",null,i.createElement(ms,{field:a}))},t=Object(o.__decorate)([Ta],t)}(i.Component),Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Yo,Object(o.__assign)({Label:Ir,Dropdown:Wi},e))},t}return Object(o.__extends)(t,e),t.getMediaType=function(e,t){if(!e)return{};var n={schema:{$ref:e}};return t&&(n.examples={example:{$ref:t}}),n},Object.defineProperty(t.prototype,"mediaModel",{get:function(){var e=this.props,n=e.parser,r=e.schemaRef,o=e.exampleRef,i=e.options;return this._mediaModel||(this._mediaModel=new Gt(n,"json",!1,t.getMediaType(r,o),i)),this._mediaModel},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.showReadOnly,n=void 0===t||t,r=e.showWriteOnly,o=void 0!==r&&r;return i.createElement(_n,null,i.createElement(jn,null,i.createElement(On,null,i.createElement(Es,{skipWriteOnly:!o,skipReadOnly:!n,schema:this.mediaModel.schema})),i.createElement(Tn,null,i.createElement(_s,null,i.createElement(Vi,{renderDropdown:this.renderDropdown,mediaType:this.mediaModel})))))},t}(i.PureComponent),_s=Te.div(Ya||(Ya=Object(o.__makeTemplateObject)(["\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n"],["\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n"])),(function(e){return e.theme.codeSample.backgroundColor}),(function(e){return 4*e.theme.spacing.unit})),Ss={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"Open ID Connect"},Ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.flow;return i.createElement("tr",null,i.createElement("th",null," ",t," OAuth Flow "),i.createElement("td",null,"implicit"===t||"authorizationCode"===t?i.createElement("div",null,i.createElement("strong",null," Authorization URL: "),n.authorizationUrl):null,"password"===t||"clientCredentials"===t||"authorizationCode"===t?i.createElement("div",null,i.createElement("strong",null," Token URL: "),n.tokenUrl):null,n.refreshUrl&&i.createElement("div",null,i.createElement("strong",null," Refresh URL: "),n.refreshUrl),i.createElement("div",null,i.createElement("strong",null," Scopes: ")),i.createElement("ul",null,Object.keys(n.scopes||{}).map((function(e){return i.createElement("li",{key:e},i.createElement("code",null,e)," - ",i.createElement(si,{inline:!0,source:n.scopes[e]||""}))})))))},t}(i.PureComponent),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){return this.props.securitySchemes.schemes.map((function(e){return i.createElement(_n,{id:e.sectionId,key:e.id},i.createElement(jn,null,i.createElement(On,null,i.createElement(Pn,null,i.createElement(Wn,{to:e.sectionId}),e.id),i.createElement(si,{source:e.description||""}),i.createElement(Jo,null,i.createElement("table",{className:"security-details"},i.createElement("tbody",null,i.createElement("tr",null,i.createElement("th",null," Security Scheme Type "),i.createElement("td",null," ",Ss[e.type]||e.type," ")),e.apiKey?i.createElement("tr",null,i.createElement("th",null," ",(t=e.apiKey.in||"").charAt(0).toUpperCase()+t.slice(1)," parameter name:"),i.createElement("td",null," ",e.apiKey.name," ")):e.http?[i.createElement("tr",{key:"scheme"},i.createElement("th",null," HTTP Authorization Scheme "),i.createElement("td",null," ",e.http.scheme," ")),"bearer"===e.http.scheme&&e.http.bearerFormat&&i.createElement("tr",{key:"bearer"},i.createElement("th",null," Bearer format "),i.createElement("td",null,' "',e.http.bearerFormat,'" '))]:e.openId?i.createElement("tr",null,i.createElement("th",null," Connect URL "),i.createElement("td",null,i.createElement("a",{target:"_blank",href:e.openId.connectUrl},e.openId.connectUrl))):e.flows?Object.keys(e.flows).map((function(t){return i.createElement(Ts,{key:t,type:t,flow:e.flows[t]})})):null))))));var t}))},t}(i.PureComponent);var Cs,Is,As,Ps,Rs,Ns,Ls,Ms,Ds,Fs,Us,zs,Bs,$s,qs,Ws,Hs,Vs,Ys,Qs,Gs,Xs,Ks=function(){function e(e,t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=!0),this.marker=new Ct,this.disposer=null,this.rawOptions=n,this.options=new be(n,Js),this.scroll=new on(this.options),rn.updateOnHistory(Tt.currentId,this.scroll),this.spec=new zt(e,t,this.options),this.menu=new rn(this.spec,this.scroll,Tt),this.options.disableSearch||(this.search=new En,r&&this.search.indexItems(this.menu.items),this.disposer=Object($e.m)(this.menu,"activeItemIdx",(function(e){o.updateMarkOnMenu(e.newValue)})))}return e.fromJS=function(t){var n=new e(t.spec.data,t.spec.url,t.options,!1);return n.menu.activeItemIdx=t.menu.activeItemIdx||0,n.menu.activate(n.menu.flatItems[n.menu.activeItemIdx]),n.options.disableSearch||n.search.load(t.searchIndex),n},e.prototype.onDidMount=function(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)},e.prototype.dispose=function(){this.scroll.dispose(),this.menu.dispose(),null!=this.disposer&&this.disposer()},e.prototype.toJS=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return e={menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec}},this.search?[4,this.search.toJS()]:[3,2];case 1:return t=n.sent(),[3,3];case 2:t=void 0,n.label=3;case 3:return[2,(e.searchIndex=t,e.options=this.rawOptions,e)]}}))}))},e.prototype.updateMarkOnMenu=function(e){for(var t=Math.max(0,e),n=Math.min(this.menu.flatItems.length,t+5),r=[],o=t;o0&&" (",e.scopes.map((function(e){return i.createElement(ul,{key:e},e)})),e.scopes.length>0&&") ")})))},t}(i.PureComponent),hl=Te.div(zs||(zs=Object(o.__makeTemplateObject)(["\n flex: 1;\n"],["\n flex: 1;\n"]))),ml=Te.div(Bs||(Bs=Object(o.__makeTemplateObject)(["\n width: ",";\n"],["\n width: ",";\n"])),(function(e){return e.theme.schema.defaultDetailsWidth})),gl=Te(Nn)($s||($s=Object(o.__makeTemplateObject)(["\n display: inline-block;\n margin: 0;\n"],["\n display: inline-block;\n margin: 0;\n"]))),yl=Te.div(qs||(qs=Object(o.__makeTemplateObject)(["\n width: 100%;\n display: flex;\n margin: 1em 0;\n"],["\n width: 100%;\n display: flex;\n margin: 1em 0;\n"]))),vl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.securities;return e.length?i.createElement(yl,null,i.createElement(hl,null,i.createElement(gl,null,"Authorizations: ")),i.createElement(ml,null,e.map((function(e,t){return i.createElement(dl,{key:t,security:e})})))):null},t}(i.PureComponent),bl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(){mi.selectElement(t.child)},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.children;return i.createElement("div",{ref:function(t){return e.child=t},onClick:this.handleClick},t)},t}(i.PureComponent),wl=Te.div(Ws||(Ws=Object(o.__makeTemplateObject)(["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"],["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"]))),xl=Te.span(Hs||(Hs=Object(o.__makeTemplateObject)(["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"],["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"])),(function(e){return e.theme.typography.code.fontFamily})),kl=Te.div(Vs||(Vs=Object(o.__makeTemplateObject)(["\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n"],["\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n"])),(function(e){return e.inverted?"10px":"20px"}),(function(e){return e.inverted?"0":"4px 4px 0 0"}),(function(e){return e.inverted?"transparent":e.theme.codeSample.backgroundColor}),(function(e){return e.inverted?"0":"1px solid transparent"}),(function(e){return e.inverted?"1px solid #ccc":"0"}),(function(e){return e.expanded&&!e.inverted&&"border-color: "+e.theme.colors.border.dark+";"||""}),xl,(function(e){return e.inverted?e.theme.colors.text.primary:"#ffffff"})),El=Te.span.attrs((function(e){return{className:"http-verb "+e.type}}))(Ys||(Ys=Object(o.__makeTemplateObject)(["\n font-size: 0.929em;\n line-height: 20px;\n background-color: ",";\n color: #ffffff;\n padding: 3px 10px;\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"],["\n font-size: 0.929em;\n line-height: 20px;\n background-color: ",";\n color: #ffffff;\n padding: 3px 10px;\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"])),(function(e){return e.theme.colors.http[e.type]||"#999999"}),(function(e){return e.theme.typography.headings.fontFamily})),Ol=Te.div(Qs||(Qs=Object(o.__makeTemplateObject)(["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n\n ","\n"],["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n\n ","\n"])),(function(e){return e.expanded?"":"transform: translateY(-50%) scaleY(0);"})),_l=Te.div(Gs||(Gs=Object(o.__makeTemplateObject)(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),Sl=Te.div(Xs||(Xs=Object(o.__makeTemplateObject)(["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"],["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"])),(function(e){return e.theme.colors.primary.main}),(function(e){return e.theme.colors.text.primary})),Tl=function(e){function t(t){var n=e.call(this,t)||this;return n.toggle=function(){n.setState({expanded:!n.state.expanded})},n.state={expanded:!1},n}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.operation,r=t.inverted,o=t.hideHostname,a=this.state.expanded;return i.createElement(Ue.Consumer,null,(function(t){return i.createElement(wl,null,i.createElement(kl,{onClick:e.toggle,expanded:a,inverted:r},i.createElement(El,{type:n.httpVerb}," ",n.httpVerb)," ",i.createElement(xl,null,n.path),i.createElement(fr,{float:"right",color:r?"black":"white",size:"20px",direction:a?"up":"down",style:{marginRight:"-25px"}})),i.createElement(Ol,{expanded:a},n.servers.map((function(e){var r,a,s=t.expandDefaultServerVariables?(r=e.url,void 0===(a=e.variables)&&(a={}),r.replace(/(?:{)(\w+)(?:})/g,(function(e,t){return a[t]&&a[t].default||e}))):e.url;return i.createElement(_l,{key:s},i.createElement(si,{source:e.description||"",compact:!0}),i.createElement(bl,null,i.createElement(Sl,null,i.createElement("span",null,o||t.hideHostname?function(e){try{return he(e).pathname}catch(t){return e}}(s):s),n.path)))}))))}))},t}(i.Component),jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.place,n=e.parameters;return n&&n.length?i.createElement("div",{key:t},i.createElement(Nn,null,t," Parameters"),i.createElement(xr,null,i.createElement("tbody",null,le(n,(function(e,t){return i.createElement(vs,{key:e.name,isLast:t,field:e,showExamples:!0})}))))):null},t}(i.PureComponent),Cl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.switchMedia=function(e){var n=e.value;t.props.content&&t.props.content.activate(parseInt(n,10))},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.content;if(!t||!t.mediaTypes||!t.mediaTypes.length)return null;var n=t.activeMimeIdx,r=t.mediaTypes.map((function(e,t){return{label:e.name,value:t.toString()}}));return i.createElement(i.Fragment,null,i.createElement((function(t){var n=t.children;return e.props.withLabel?i.createElement(qi,null,i.createElement($i,null,"Content type"),n):n}),null,this.props.renderDropdown({value:r[n],options:r,onChange:this.switchMedia})),this.props.children(t.active))},t=Object(o.__decorate)([Ta],t)}(i.Component);var Il=["path","query","cookie","header"],Al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.orderParams=function(e){var t={};return e.forEach((function(e){var n,r,o;n=t,r=e.in,o=e,n[r]||(n[r]=[]),n[r].push(o)})),t},t.prototype.render=function(){var e=this.props,t=e.body,n=e.parameters,r=void 0===n?[]:n;if(void 0===t&&void 0===r)return null;var o=this.orderParams(r),a=r.length>0?Il:[],s=t&&t.content,l=t&&t.description;return i.createElement(i.Fragment,null,a.map((function(e){return i.createElement(jl,{key:e,place:e,parameters:o[e]})})),s&&i.createElement(Rl,{content:s,description:l}))},t}(i.PureComponent);function Pl(e){return i.createElement(Nn,{key:"header"},"Request Body schema: ",i.createElement(Yo,Object(o.__assign)({},e)))}function Rl(e){var t=e.content,n=e.description;return i.createElement(Cl,{content:t,renderDropdown:Pl},(function(e){var t=e.schema;return i.createElement(i.Fragment,null,void 0!==n&&i.createElement(si,{source:n}),i.createElement(Es,{skipReadOnly:!0,key:"schema",schema:t}))}))}var Nl,Ll,Ml,Dl,Fl,Ul,zl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Yo,Object(o.__assign)({Label:Bi,Dropdown:Wi},e))},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props.content;return void 0===t?null:i.createElement(Cl,{content:t,renderDropdown:this.renderDropdown,withLabel:!0},(function(t){return i.createElement(Vi,{key:"samples",mediaType:t,renderDropdown:e.renderDropdown})}))},t=Object(o.__decorate)([Ta],t)}(i.Component),Bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation.codeSamples,t=e.length>0,n=1===e.length&&this.context.hideSingleRequestSampleTab;return t&&i.createElement("div",null,i.createElement(Rn,null," Request samples "),i.createElement(lo,{defaultIndex:0},i.createElement(Kr,{hidden:n},e.map((function(e){return i.createElement(Zr,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)}))),e.map((function(e){return i.createElement(to,{key:e.lang+"_"+(e.label||"")},function(e){return"payload"===e.lang&&e.requestBodyContent}(e)?i.createElement("div",null,i.createElement(zl,{content:e.requestBodyContent})):i.createElement(Ai,{lang:e.lang,source:e.source}))}))))||null},t.contextType=Ue,t=Object(o.__decorate)([Ta],t)}(i.Component),$l=Te(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.type,r=e.empty,o=e.code,a=e.opened,s=e.className,l=e.onClick;return i.createElement("div",{className:s,onClick:!r&&l||void 0},!r&&i.createElement(fr,{size:"1.5em",color:n,direction:a?"down":"right",float:"left"}),i.createElement("strong",null,o," "),i.createElement(si,{compact:!0,inline:!0,source:t}))},t}(i.PureComponent))(Nl||(Nl=Object(o.__makeTemplateObject)(["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n\n ",";\n"],["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n\n ",";\n"])),(function(e){return e.theme.colors.responses[e.type].color}),(function(e){return e.theme.colors.responses[e.type].backgroundColor}),(function(e){return 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}\n':""})),ql=Te.div(Ll||(Ll=Object(o.__makeTemplateObject)(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),Wl=Te(Nn.withComponent("caption"))(Ml||(Ml=Object(o.__makeTemplateObject)(["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"],["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"]))),Hl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.headers;return void 0===e||0===e.length?null:i.createElement(xr,null,i.createElement(Wl,null," Response Headers "),i.createElement("tbody",null,le(e,(function(e,t){return i.createElement(vs,{isLast:t,key:e.name,field:e,showExamples:!0})}))))},t}(i.PureComponent),Vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderDropdown=function(e){return i.createElement(Nn,{key:"header"},"Response Schema: ",i.createElement(Yo,Object(o.__assign)({},e)))},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.response,t=e.description,n=e.headers,r=e.content;return i.createElement(i.Fragment,null,t&&i.createElement(si,{source:t}),i.createElement(Hl,{headers:n}),i.createElement(Cl,{content:r,renderDropdown:this.renderDropdown},(function(e){var t=e.schema;return i.createElement(Es,{skipWriteOnly:!0,key:"schema",schema:t})})))},t}(i.PureComponent),Yl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.toggle=function(){t.props.response.toggle()},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.response,t=e.headers,n=e.type,r=e.summary,o=e.description,a=e.code,s=e.expanded,l=e.content,c=void 0===l?[]:l.mediaTypes.filter((function(e){return void 0!==e.schema})),u=0===t.length&&0===c.length&&!o;return i.createElement("div",null,i.createElement($l,{onClick:this.toggle,type:n,empty:u,title:r||"",code:a,opened:s}),s&&!u&&i.createElement(ql,null,i.createElement(Vl,{response:this.props.response})))},t=Object(o.__decorate)([Ta],t)}(i.Component),Ql=Te.h3(Dl||(Dl=Object(o.__makeTemplateObject)(["\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: #253137;\n font-weight: normal;\n"],["\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: #253137;\n font-weight: normal;\n"]))),Gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.responses;return e&&0!==e.length?i.createElement("div",null,i.createElement(Ql,null," Responses "),e.map((function(e){return i.createElement(Yl,{key:e.code,response:e})}))):null},t}(i.PureComponent),Xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation.responses.filter((function(e){return e.content&&e.content.hasSample}));return e.length>0&&i.createElement("div",null,i.createElement(Rn,null," Response samples "),i.createElement(lo,{defaultIndex:0},i.createElement(Kr,null,e.map((function(e){return i.createElement(Zr,{className:"tab-"+e.type,key:e.code},e.code)}))),e.map((function(e){return i.createElement(to,{key:e.code},i.createElement("div",null,i.createElement(zl,{content:e.content})))}))))||null},t=Object(o.__decorate)([Ta],t)}(i.Component),Kl=Te(jn)(Fl||(Fl=Object(o.__makeTemplateObject)(["\n backface-visibility: hidden;\n contain: content;\n\n overflow: hidden;\n"],["\n backface-visibility: hidden;\n contain: content;\n\n overflow: hidden;\n"]))),Jl=Te.div(Ul||(Ul=Object(o.__makeTemplateObject)(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),(function(e){return 6*e.theme.spacing.unit})),Zl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.operation,t=e.name,n=e.description,r=e.deprecated,o=e.externalDocs,a=!(!n&&!o);return i.createElement(Ue.Consumer,null,(function(s){return i.createElement(Kl,null,i.createElement(On,null,i.createElement(Pn,null,i.createElement(Wn,{to:e.id}),t," ",r&&i.createElement(pr,{type:"warning"}," Deprecated ")),s.pathInMiddlePanel&&i.createElement(Tl,{operation:e,inverted:!0}),a&&i.createElement(Jl,null,void 0!==n&&i.createElement(si,{source:n}),o&&i.createElement(cs,{externalDocs:o})),i.createElement(ps,{extensions:e.extensions}),i.createElement(vl,{securities:e.security}),i.createElement(Al,{parameters:e.parameters,body:e.requestBody}),i.createElement(Gl,{responses:e.responses})),i.createElement(Tn,null,!s.pathInMiddlePanel&&i.createElement(Tl,{operation:e}),i.createElement(Bl,{operation:e}),i.createElement(Xl,{operation:e})))}))},t=Object(o.__decorate)([Ta],t)}(i.Component),ec=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.items;return 0===e.length?null:e.map((function(e){return i.createElement(tc,{item:e,key:e.id})}))},t=Object(o.__decorate)([Ta],t)}(i.Component),tc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e,t=this.props.item;switch(t.type){case"group":e=null;break;case"tag":case"section":e=i.createElement(rc,Object(o.__assign)({},this.props));break;case"operation":e=i.createElement(oc,{item:t});break;default:e=i.createElement(rc,Object(o.__assign)({},this.props))}return i.createElement(i.Fragment,null,e&&i.createElement(_n,{id:t.id,underlined:"operation"===t.type},e),t.items&&i.createElement(ec,{items:t.items}))},t=Object(o.__decorate)([Ta],t)}(i.Component),nc=function(e){return i.createElement(On,{compact:!0},e)},rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.item,t=e.name,n=e.description,r=e.externalDocs,o=2===e.level?Pn:An;return i.createElement(i.Fragment,null,i.createElement(jn,null,i.createElement(On,{compact:!1},i.createElement(o,null,i.createElement(Wn,{to:this.props.item.id}),t))),i.createElement(cl,{source:n||"",htmlWrap:nc}),r&&i.createElement(jn,null,i.createElement(On,null,i.createElement(cs,{externalDocs:r}))))},t=Object(o.__decorate)([Ta],t)}(i.Component),oc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){return i.createElement(Zl,{operation:this.props.item})},t=Object(o.__decorate)([Ta],t)}(i.Component),ic=Te.span.attrs((function(e){return{className:"operation-type "+e.type}}))(sc||(sc=Object(o.__makeTemplateObject)(["\n width: 32px;\n display: inline-block;\n height: ",";\n line-height: ",";\n background-color: #333;\n border-radius: 3px;\n background-repeat: no-repeat;\n background-position: 6px 4px;\n font-size: 7px;\n font-family: Verdana; // web-safe\n color: white;\n text-transform: uppercase;\n text-align: center;\n font-weight: bold;\n vertical-align: middle;\n margin-right: 6px;\n margin-top: 2px;\n\n &.get {\n background-color: ",";\n }\n\n &.post {\n background-color: ",";\n }\n\n &.put {\n background-color: ",";\n }\n\n &.options {\n background-color: ",";\n }\n\n &.patch {\n background-color: ",";\n }\n\n &.delete {\n background-color: ",";\n }\n\n &.basic {\n background-color: ",";\n }\n\n &.link {\n background-color: ",";\n }\n\n &.head {\n background-color: ",";\n }\n"],["\n width: 32px;\n display: inline-block;\n height: ",";\n line-height: ",";\n background-color: #333;\n border-radius: 3px;\n background-repeat: no-repeat;\n background-position: 6px 4px;\n font-size: 7px;\n font-family: Verdana; // web-safe\n color: white;\n text-transform: uppercase;\n text-align: center;\n font-weight: bold;\n vertical-align: middle;\n margin-right: 6px;\n margin-top: 2px;\n\n &.get {\n background-color: ",";\n }\n\n &.post {\n background-color: ",";\n }\n\n &.put {\n background-color: ",";\n }\n\n &.options {\n background-color: ",";\n }\n\n &.patch {\n background-color: ",";\n }\n\n &.delete {\n background-color: ",";\n }\n\n &.basic {\n background-color: ",";\n }\n\n &.link {\n background-color: ",";\n }\n\n &.head {\n background-color: ",";\n }\n"])),(function(e){return e.theme.typography.code.fontSize}),(function(e){return e.theme.typography.code.fontSize}),(function(e){return e.theme.colors.http.get}),(function(e){return e.theme.colors.http.post}),(function(e){return e.theme.colors.http.put}),(function(e){return e.theme.colors.http.options}),(function(e){return e.theme.colors.http.patch}),(function(e){return e.theme.colors.http.delete}),(function(e){return e.theme.colors.http.basic}),(function(e){return e.theme.colors.http.link}),(function(e){return e.theme.colors.http.head}));function ac(e,t){var n=t.theme;return e>1?V(.1,n.menu.backgroundColor):1===e?V(.05,n.menu.backgroundColor):""}var sc,lc,cc,uc,fc,pc,dc,hc,mc,gc,yc,vc=Te.ul(lc||(lc=Object(o.__makeTemplateObject)(["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"],["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"])),(function(e){return e.expanded?"":"display: none;"})),bc=Te.li(cc||(cc=Object(o.__makeTemplateObject)(["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"],["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"])),(function(e){return 0===e.depth?"margin-top: 15px":""})),wc={0:ke(uc||(uc=Object(o.__makeTemplateObject)(["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "],["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "])),(function(e){return e.theme.menu.groupItems.textTransform}),(function(e){return e.theme.menu.textColor})),1:ke(fc||(fc=Object(o.__makeTemplateObject)(["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "],["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "])),(function(e){return e.theme.menu.level1Items.textTransform}),(function(e){return e.theme.menu.activeTextColor})),2:ke(pc||(pc=Object(o.__makeTemplateObject)(["\n color: ",";\n "],["\n color: ",";\n "])),(function(e){return e.theme.menu.textColor}))},xc=Te.label.attrs((function(e){return{role:"menuitem",className:Fr("-depth"+e.depth,{active:e.active})}}))(dc||(dc=Object(o.__makeTemplateObject)(["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),(function(e){return e.active?e.theme.menu.activeTextColor:e.theme.menu.textColor}),(function(e){return 4*e.theme.spacing.unit}),(function(e){var t=e.depth,n=e.type,r=e.theme;return"section"===n&&t>1&&"padding-left: "+8*r.spacing.unit+"px;"||""}),(function(e){return e.theme.typography.headings.fontFamily}),(function(e){return wc[e.depth]}),(function(e){return e.active?ac(e.depth,e):""}),(function(e){return e.deprecated&&dr||""}),(function(e){return ac(e.depth,e)}),fr,(function(e){return e.theme.menu.arrow.size}),(function(e){return e.theme.menu.arrow.size}),(function(e){return e.theme.menu.arrow.color})),kc=Te.span(hc||(hc=Object(o.__makeTemplateObject)(["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"])),(function(e){return e.width?e.width:"auto"})),Ec=Te.div(mc||(mc=Object(o.__makeTemplateObject)(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme;return"\n font-size: 0.8em;\n margin-top: "+2*t.spacing.unit+"px;\n padding: 0 "+4*t.spacing.unit+"px;\n text-align: left;\n\n opacity: 0.7;\n\n a,\n a:visited,\n a:hover {\n color: "+t.menu.textColor+" !important;\n border-top: 1px solid "+V(.1,t.menu.backgroundColor)+";\n padding: "+t.spacing.unit+"px 0;\n display: block;\n }\n"})),Oc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=i.createRef(),t.activate=function(e){t.props.onActivate(t.props.item),e.stopPropagation()},t}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){this.scrollIntoViewIfActive()},t.prototype.componentDidUpdate=function(){this.scrollIntoViewIfActive()},t.prototype.scrollIntoViewIfActive=function(){this.props.item.active&&this.ref.current&&this.ref.current.scrollIntoViewIfNeeded()},t.prototype.render=function(){var e=this.props,t=e.item,n=e.withoutChildren;return i.createElement(bc,{onClick:this.activate,depth:t.depth,"data-item-id":t.id},"operation"===t.type?i.createElement(_c,Object(o.__assign)({},this.props,{item:t})):i.createElement(xc,{depth:t.depth,active:t.active,type:t.type,ref:this.ref},i.createElement(kc,{title:t.name},t.name,this.props.children),t.depth>0&&t.items.length>0&&i.createElement(fr,{float:"right",direction:t.expanded?"down":"right"})||null),!n&&t.items&&t.items.length>0&&i.createElement(Sc,{expanded:t.expanded,items:t.items,onActivate:this.props.onActivate}))},t=Object(o.__decorate)([Ta],t)}(i.Component),_c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ref=i.createRef(),t}return Object(o.__extends)(t,e),t.prototype.componentDidUpdate=function(){this.props.item.active&&this.ref.current&&this.ref.current.scrollIntoViewIfNeeded()},t.prototype.render=function(){var e,t=this.props.item;return i.createElement(xc,{depth:t.depth,active:t.active,deprecated:t.deprecated,ref:this.ref},i.createElement(ic,{type:t.httpVerb},{delete:"del",options:"opts"}[e=t.httpVerb]||e),i.createElement(kc,{width:"calc(100% - 38px)"},t.name,this.props.children))},t=Object(o.__decorate)([Ta],t)}(i.Component),Sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.items,r=t.root,a=t.className,s=null==this.props.expanded||this.props.expanded;return i.createElement(vc,Object(o.__assign)({className:a,style:this.props.style,expanded:s},r?{role:"navigation"}:{}),n.map((function(t,n){return i.createElement(Oc,{key:n,item:t,onActivate:e.props.onActivate})})))},t=Object(o.__decorate)([Ta],t)}(i.Component),Tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activate=function(e){if(e&&e.active&&t.context.menuToggle)return e.expanded?e.collapse():e.expand();t.props.menu.activateAndScroll(e,!0),setTimeout((function(){t._updateScroll&&t._updateScroll()}))},t.saveScrollUpdate=function(e){t._updateScroll=e},t}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props.menu;return i.createElement(Vo,{updateFn:this.saveScrollUpdate,className:this.props.className,options:{wheelPropagation:!1}},i.createElement(Sc,{items:e.items,onActivate:this.activate,root:!0}),i.createElement(Ec,null,i.createElement("a",{target:"_blank",href:"https://github.com/Redocly/redoc"},"Documentation Powered by ReDoc")))},t.contextType=Ue,t=Object(o.__decorate)([Ta],t)}(i.Component),jc=function(e){var t=e.open?8:-4;return i.createElement(Ic,null,i.createElement(Cc,{size:15,style:{transform:"translate(2px, "+t+"px) rotate(180deg)",transition:"transform 0.2s ease"}}),i.createElement(Cc,{size:15,style:{transform:"translate(2px, "+(0-t)+"px)",transition:"transform 0.2s ease"}}))},Cc=function(e){var t=e.size,n=void 0===t?10:t,r=e.className,o=void 0===r?"":r,a=e.style;return i.createElement("svg",{className:o,style:a||{},viewBox:"0 0 926.23699 573.74994",version:"1.1",x:"0px",y:"0px",width:n,height:n},i.createElement("g",{transform:"translate(904.92214,-879.1482)"},i.createElement("path",{d:"\n m -673.67664,1221.6502 -231.2455,-231.24803 55.6165,\n -55.627 c 30.5891,-30.59485 56.1806,-55.627 56.8701,-55.627 0.6894,\n 0 79.8637,78.60862 175.9427,174.68583 l 174.6892,174.6858 174.6892,\n -174.6858 c 96.079,-96.07721 175.253196,-174.68583 175.942696,\n -174.68583 0.6895,0 26.281,25.03215 56.8701,\n 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864\n -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,\n -104.0616 -231.873,-231.248 z\n ",fill:"currentColor"})))},Ic=Te.div(gc||(gc=Object(o.__makeTemplateObject)(["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"],["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"])),(function(e){return e.theme.colors.primary.main}));re&&(yc=n(315));var Ac,Pc,Rc,Nc,Lc,Mc,Dc,Fc,Uc,zc,Bc,$c,qc,Wc,Hc=yc&&yc(),Vc=Te.div(Pc||(Pc=Object(o.__makeTemplateObject)(["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n contain: strict;\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"],["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n contain: strict;\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"])),(function(e){return e.theme.menu.width}),(function(e){return e.theme.menu.backgroundColor}),Se("small")(Ac||(Ac=Object(o.__makeTemplateObject)(["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: #ffffff;\n display: ",";\n "],["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: #ffffff;\n display: ",";\n "])),(function(e){return e.open?"flex":"none"}))),Yc=Te.div(Nc||(Nc=Object(o.__makeTemplateObject)(["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"],["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"])),(function(e){return e.theme.colors.primary.main}),Se("small")(Rc||(Rc=Object(o.__makeTemplateObject)(["\n display: flex;\n "],["\n display: flex;\n "])))),Qc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={offsetTop:"0px"},t.toggleNavMenu=function(){t.props.menu.toggleSidebar()},t}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){Hc&&Hc.add(this.stickyElement),this.setState({offsetTop:this.getScrollYOffset(this.context)})},t.prototype.componentWillUnmount=function(){Hc&&Hc.remove(this.stickyElement)},t.prototype.getScrollYOffset=function(e){return(void 0!==this.props.scrollYOffset?be.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset())+"px"},t.prototype.render=function(){var e=this,t=this.props.menu.sideBarOpened,n=this.state.offsetTop;return i.createElement(i.Fragment,null,i.createElement(Vc,{open:t,className:this.props.className,style:{top:n,height:"calc(100vh - "+n+")"},ref:function(t){e.stickyElement=t}},this.props.children),i.createElement(Yc,{onClick:this.toggleNavMenu},i.createElement(jc,{open:t})))},t.contextType=Ue,t=Object(o.__decorate)([Ta],t)}(i.Component),Gc=Te.div(Lc||(Lc=Object(o.__makeTemplateObject)(["\n ",";\n"],["\n ",";\n"])),(function(e){var t=e.theme;return"\n font-family: "+t.typography.fontFamily+";\n font-size: "+t.typography.fontSize+";\n font-weight: "+t.typography.fontWeightRegular+";\n line-height: "+t.typography.lineHeight+";\n color: "+t.colors.text.primary+";\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: "+t.typography.smoothing+";\n font-smoothing: "+t.typography.smoothing+";\n "+(t.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"})),Xc=Te.div(Dc||(Dc=Object(o.__makeTemplateObject)(["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"],["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"])),(function(e){return e.theme.menu.width}),Se("small",!0)(Mc||(Mc=Object(o.__makeTemplateObject)(["\n width: 100%;\n "],["\n width: 100%;\n "])))),Kc=Te.div(Uc||(Uc=Object(o.__makeTemplateObject)(["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"],["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"])),(function(e){return e.theme.rightPanel.backgroundColor}),(function(e){var t=e.theme;if(t.rightPanel.width.endsWith("%")){var n=parseInt(t.rightPanel.width,10);return"calc((100% - "+t.menu.width+") * "+n/100+")"}return t.rightPanel.width}),Se("medium",!0)(Fc||(Fc=Object(o.__makeTemplateObject)(["\n display: none;\n "],["\n display: none;\n "])))),Jc=Te.div(zc||(zc=Object(o.__makeTemplateObject)(["\n padding: 5px 0;\n"],["\n padding: 5px 0;\n"]))),Zc=Te.input.attrs((function(){return{className:"search-input"}}))(Bc||(Bc=Object(o.__makeTemplateObject)(["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid\n ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"],["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid\n ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"])),(function(e){return 8*e.theme.spacing.unit}),(function(e){return 4*e.theme.spacing.unit}),(function(e){return 2*e.theme.spacing.unit}),(function(e){return 4*e.theme.spacing.unit}),(function(e){var t=e.theme;return(G(t.menu.backgroundColor)>.5?V:K)(.1,t.menu.backgroundColor)}),(function(e){return e.theme.typography.fontFamily}),(function(e){return e.theme.menu.textColor})),eu=Te((function(e){return i.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},i.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"})($c||($c=Object(o.__makeTemplateObject)(["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"],["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"])),(function(e){return 4*e.theme.spacing.unit}),(function(e){return e.theme.menu.textColor})),tu=Te.div(qc||(qc=Object(o.__makeTemplateObject)(["\n padding: ","px 0;\n background-color: ","};\n color: ",";\n min-height: 150px;\n max-height: 250px;\n border-top: ","};\n border-bottom: ","};\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover,\n &.active {\n background-color: ",";\n }\n\n > svg {\n display: none;\n }\n }\n"],["\n padding: ","px 0;\n background-color: ","};\n color: ",";\n min-height: 150px;\n max-height: 250px;\n border-top: ","};\n border-bottom: ","};\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover,\n &.active {\n background-color: ",";\n }\n\n > svg {\n display: none;\n }\n }\n"])),(function(e){return e.theme.spacing.unit}),(function(e){var t=e.theme;return V(.05,t.menu.backgroundColor)}),(function(e){return e.theme.menu.textColor}),(function(e){var t=e.theme;return V(.1,t.menu.backgroundColor)}),(function(e){var t=e.theme;return V(.1,t.menu.backgroundColor)}),xc,(function(e){var t=e.theme;return V(.1,t.menu.backgroundColor)})),nu=Te.i(Wc||(Wc=Object(o.__makeTemplateObject)(["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"],["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"])),(function(e){return 2*e.theme.spacing.unit}),(function(e){return 4*e.theme.spacing.unit})),ru=function(e){function t(t){var n=e.call(this,t)||this;return n.activeItemRef=null,n.clear=function(){n.setState({results:[],term:"",activeItemIdx:-1}),n.props.marker.unmark()},n.handleKeyDown=function(e){if(27===e.keyCode&&n.clear(),40===e.keyCode&&(n.setState({activeItemIdx:Math.min(n.state.activeItemIdx+1,n.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(n.setState({activeItemIdx:Math.max(0,n.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){var t=n.state.results[n.state.activeItemIdx];if(t){var r=n.props.getItemById(t.meta);r&&n.props.onActivate(r)}}},n.search=function(e){var t=e.target.value;t.length<3?n.clearResults(t):(n.setState({term:t}),n.props.search.search(e.target.value).then((function(e){n.setResults(e,t)})))},n.state={results:[],term:"",activeItemIdx:-1},n}return Object(o.__extends)(t,e),t.prototype.clearResults=function(e){this.setState({results:[],term:e}),this.props.marker.unmark()},t.prototype.setResults=function(e,t){this.setState({results:e,term:t}),this.props.marker.mark(t)},t.prototype.render=function(){var e=this,t=this.state.activeItemIdx,n=this.state.results.map((function(t){return{item:e.props.getItemById(t.meta),score:t.score}}));return n.sort((function(e,t){return t.score-e.score})),i.createElement(Jc,{role:"search"},this.state.term&&i.createElement(nu,{onClick:this.clear},"×"),i.createElement(eu,null),i.createElement(Zc,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...",type:"text",onChange:this.search}),n.length>0&&i.createElement(Vo,{options:{wheelPropagation:!1}},i.createElement(tu,{"data-role":"search:results"},n.map((function(n,r){return i.createElement(Oc,{item:Object.create(n.item,{active:{value:r===t}}),onActivate:e.props.onActivate,withoutChildren:!0,key:n.item.id,"data-role":"search:result"})})))))},t}(i.PureComponent),ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){this.props.store.onDidMount()},t.prototype.componentWillUnmount=function(){this.props.store.dispose()},t.prototype.render=function(){var e=this.props.store,t=e.spec,n=e.menu,r=e.options,o=e.search,a=e.marker,s=this.props.store;return i.createElement(_e,{theme:r.theme},i.createElement(Dn,{value:this.props.store},i.createElement(ze,{value:r},i.createElement(Gc,{className:"redoc-wrap"},i.createElement(Qc,{menu:n,className:"menu-content"},i.createElement(ll,{info:t.info}),!r.disableSearch&&i.createElement(ru,{search:o,marker:a,getItemById:n.getItemById,onActivate:n.activateAndScroll})||null,i.createElement(Tc,{menu:n})),i.createElement(Xc,{className:"api-content"},i.createElement(ol,{store:s}),i.createElement(ec,{items:n.items})),i.createElement(Kc,null)))))},t.propTypes={store:l.instanceOf(Ks).isRequired},t}(i.Component),iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.spec,n=e.specUrl,r=e.options,o=void 0===r?{}:r,a=e.onLoaded,s=void 0!==o.hideLoading,l=new be(o);return i.createElement(Ne,null,i.createElement(Un,{spec:t,specUrl:n,options:o,onLoaded:a},(function(e){var t=e.loading,n=e.store;return t?s?null:i.createElement(Fe,{color:l.theme.colors.primary.main}):i.createElement(ou,{store:n})})))},t.propTypes={spec:function(e,t,n){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+n+"'.")},specUrl:function(e,t,n){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+n+"'.")},options:l.any,onLoaded:l.any},t}(i.PureComponent);n.d(t,"version",(function(){return au})),n.d(t,"revision",(function(){return su})),n.d(t,"init",(function(){return cu})),n.d(t,"hydrate",(function(){return uu})),n.d(t,"Redoc",(function(){return ou})),n.d(t,"AppStore",(function(){return Ks}));var au="2.0.0-rc.20",su="fd581261";function lu(e){var t=function(e){for(var t={},n=e.attributes,r=0;r tag is not found on the page');var a,l;"string"==typeof e?a=e:"object"==typeof e&&(l=e),Object(s.render)(i.createElement(iu,{spec:l,onLoaded:r,specUrl:a,options:Object(o.__assign)(Object(o.__assign)({},t),lu(n))},["Loading..."]),n)}function uu(e,t,n){void 0===t&&(t=oe("redoc")),kt();var r=Ks.fromJS(e);Et(),setTimeout((function(){kt(),Object(s.hydrate)(i.createElement(ou,{store:r}),t,n),Et()}),0)}!function(){var e=oe("redoc");if(e){var t=e.getAttribute("spec-url");t&&cu(t,{},e)}}()}])})); -//# sourceMappingURL=redoc.standalone.js.map