p;break;case"GTE":u=c>=p;break;case"LT":u=c=e&&(t=r<0?e-1:e),t}},N.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n,i,o,a;if(r[r.length-1].variadic){if(t.length=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o0){if(this._getTypeName(e[0][0])===a)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n0){if(this._getTypeName(e[0][0])===a)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;ns?1:as&&(s=r,t=i[c]);return t},_functionMinBy:function(e){for(var t,r,n=e[1],i=e[0],o=this.createKeyFunction(n,[a,u]),s=1/0,c=0;c=1&&t<=31||127==t||0==i&&t>=48&&t<=57||1==i&&t>=48&&t<=57&&45==a?"\\"+t.toString(16)+" ":(0!=i||1!=n||45!=t)&&(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?r.charAt(i):"\\"+r.charAt(i):o+="\ufffd";return o};return e.CSS||(e.CSS={}),e.CSS.escape=t,t},"object"==c(t)?e.exports=u(s):(o=[],i=u.bind(s,s),void 0===(a="function"===typeof i?i.apply(t,o):i)||(e.exports=a))}).call(this,r(36))},function(e,t,r){(function(t){var n=r(8),i=r(1004),o=r(1005).Stream,a=" ";function s(e,t,r){r=r||0;var o,a,u=(o=t,new Array(r||0).join(o||"")),c=e;if("object"===n(e)&&((c=e[a=Object.keys(e)[0]])&&c._elem))return c._elem.name=a,c._elem.icount=r,c._elem.indent=t,c._elem.indents=u,c._elem.interrupt=c,c._elem;var p,l=[],m=[];function d(e){Object.keys(e).forEach(function(t){l.push(function(e,t){return e+'="'+i(t)+'"'}(t,e[t]))})}switch(n(c)){case"object":if(null===c)break;c._attr&&d(c._attr),c._cdata&&m.push(("/g,"]]]]>")+"]]>"),c.forEach&&(p=!1,m.push(""),c.forEach(function(e){"object"==n(e)?"_attr"==Object.keys(e)[0]?d(e._attr):m.push(s(e,t,r+1)):(m.pop(),p=!0,m.push(i(e)))}),p||m.push(""));break;default:m.push(i(c))}return{name:a,interrupt:!1,attributes:l,content:m,icount:r,indents:u,indent:t}}function u(e,t,r){if("object"!=n(t))return e(!1,t);var i=t.interrupt?1:t.content.length;function o(){for(;t.content.length;){var n=t.content.shift();if(void 0!==n){if(a(n))return;u(e,n)}}e(!1,(i>1?t.indents:"")+(t.name?""+t.name+">":"")+(t.indent&&!r?"\n":"")),r&&r()}function a(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=o,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(i?t.name?">":"":t.name?"/>":"")+(t.indent&&i>1?"\n":"")),!i)return e(!1,t.indent?"\n":"");a(t)||o()}e.exports=function(e,r){"object"!==n(r)&&(r={indent:r});var i,c,p=r.stream?new o:null,l="",m=!1,d=r.indent?!0===r.indent?a:r.indent:"",f=!0;function y(e){f?t.nextTick(e):e()}function h(e,t){if(void 0!==t&&(l+=t),e&&!m&&(p=p||new o,m=!0),e&&m){var r=l;y(function(){p.emit("data",r)}),l=""}}function b(e,t){u(h,s(e,d,d?1:0),t)}function g(){if(p){var e=l;y(function(){p.emit("data",e),p.emit("end"),p.readable=!1,p.emit("close")})}}return y(function(){f=!1}),r.declaration&&(i=r.declaration,c={version:"1.0",encoding:i.encoding||"UTF-8"},i.standalone&&(c.standalone=i.standalone),b({"?xml":{_attr:c}}),l=l.replace("/>","?>")),e&&e.forEach?e.forEach(function(t,r){var n;r+1===e.length&&(n=g),b(t,n)}):b(e,g),p?(p.readable=!0,p):l},e.exports.element=e.exports.Element=function(){var e={_elem:s(Array.prototype.slice.call(arguments)),push:function(e){if(!this.append)throw new Error("not assigned to a parent!");var t=this,r=this._elem.indent;u(this.append,s(e,r,this._elem.icount+(r?1:0)),function(){t.append(!0)})},close:function(e){void 0!==e&&this.push(e),this.end&&this.end()}};return e}}).call(this,r(48))},function(e,t,r){(t=e.exports=r(404)).Stream=t,t.Readable=t,t.Writable=r(253),t.Duplex=r(92),t.Transform=r(408),t.PassThrough=r(1010)},function(e,t,r){"use strict";(function(t,n,i){var o=r(199);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;g.WritableState=b;var c=r(150);c.inherits=r(91);var p={deprecate:r(1009)},l=r(405),m=r(200).Buffer,d=i.Uint8Array||function(){};var f,y=r(406);function h(){}function b(e,t){s=s||r(92),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,p=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:p,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,i);else{var a=N(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||I(e,r),n?u(S,e,r,a,i):S(e,r,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(e){if(s=s||r(92),!f.call(g,this)&&!(this instanceof s))return new g(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),l.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function S(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function I(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,p=r.encoding,l=r.callback;if(v(e,t,!1,t.objectMode?1:c.length,c,p,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=N(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(g,l),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===g&&(e&&e._writableState instanceof b)}})):f=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,m.isBuffer(n)||n instanceof d);return s&&!m.isBuffer(e)&&(e=function(e){return m.from(e)}(e)),"function"===typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof r&&(r=h),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=m.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=y.destroy,g.prototype._undestroy=y.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(48),r(241).setImmediate,r(36))},function(e,t,r){"use strict";var n=r(409),i=r(411),o=r(1019);e.exports=function(e){var t,a=n(arguments[1]);return a.normalizer||0!==(t=a.length=i(a.length,e.length,a.async))&&(a.primitive?!1===t?a.normalizer=r(1046):t>1&&(a.normalizer=r(1047)(t)):a.normalizer=!1===t?r(1048)():1===t?r(1052)():r(1053)(t)),a.async&&r(1054),a.promise&&r(1055),a.dispose&&r(1061),a.maxAge&&r(1062),a.max&&r(1065),a.refCounter&&r(1067),o(e,a)}},function(e,t,r){"use strict";e.exports=function(e){return"function"===typeof e}},function(e,t,r){"use strict";e.exports=r(1035)()?Array.from:r(1036)},function(e,t,r){"use strict";var n=r(1049),i=r(94),o=r(102),a=Array.prototype.indexOf,s=Object.prototype.hasOwnProperty,u=Math.abs,c=Math.floor;e.exports=function(e){var t,r,p,l;if(!n(e))return a.apply(this,arguments);for(r=i(o(this).length),p=arguments[1],t=p=isNaN(p)?0:p>=0?c(p):i(this.length)-c(u(p));t-1||n("96",e),!c.plugins[r]){t.extractEvents||n("97",e),c.plugins[r]=t;var a=t.eventTypes;for(var u in a)s(a[u],t,u)||n("98",u,e)}}}function s(e,t,r){c.eventNameDispatchConfigs.hasOwnProperty(r)&&n("99",r),c.eventNameDispatchConfigs[r]=e;var i=e.phasedRegistrationNames;if(i){for(var o in i){if(i.hasOwnProperty(o))u(i[o],t,r)}return!0}return!!e.registrationName&&(u(e.registrationName,t,r),!0)}function u(e,t,r){c.registrationNameModules[e]&&n("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[r].dependencies}var c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){i&&n("101"),i=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t=!1;for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];o.hasOwnProperty(r)&&o[r]===i||(o[r]&&n("102",r),o[r]=i,t=!0)}t&&a()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var r=t.phasedRegistrationNames;for(var n in r)if(r.hasOwnProperty(n)){var i=c.registrationNameModules[r[n]];if(i)return i}}return null},_resetEventPlugins:function(){for(var e in i=null,o)o.hasOwnProperty(e)&&delete o[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var r in t)t.hasOwnProperty(r)&&delete t[r];var n=c.registrationNameModules;for(var a in n)n.hasOwnProperty(a)&&delete n[a]}};e.exports=c},function(e,t,r){"use strict";var n,i,o=r(22),a=r(263);r(20),r(23);function s(e,t,r,n){var i=e.type||"unknown-event";e.currentTarget=u.getNodeFromInstance(n),t?a.invokeGuardedCallbackWithCatch(i,r,e):a.invokeGuardedCallback(i,r,e),e.currentTarget=null}var u={isEndish:function(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e},isMoveish:function(e){return"topMouseMove"===e||"topTouchMove"===e},isStartish:function(e){return"topMouseDown"===e||"topTouchStart"===e},executeDirectDispatch:function(e){var t=e._dispatchListeners,r=e._dispatchInstances;Array.isArray(t)&&o("103"),e.currentTarget=t?u.getNodeFromInstance(r):null;var n=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n},executeDispatchesInOrder:function(e,t){var r=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(r))for(var i=0;i0&&i.length<20?r+" (keys: "+i.join(", ")+")":r}(e))}};e.exports=c},function(e,t,r){"use strict";r(26);var n=r(59),i=(r(23),n);e.exports=i},function(e,t,r){"use strict";e.exports=function(e){var t,r=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===r&&(t=13):t=r,t>=32||13===t?t:0}},function(e,t,r){"use strict";t.__esModule=!0,t.connect=t.Provider=void 0;var n=o(r(1158)),i=o(r(1159));function o(e){return e&&e.__esModule?e:{default:e}}t.Provider=n.default,t.connect=i.default},function(e,t,r){e.exports=function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=23)}([function(e,t){e.exports=r(1164)},function(e,t){e.exports=r(1170)},function(e,t){e.exports=r(455)},function(e,t){e.exports=r(1190)},function(e,t){e.exports=r(1191)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).v2OperationIdCompatibilityMode;return e&&"object"===(void 0===e?"undefined":(0,p.default)(e))?(e.operationId||"").replace(/\s/g,"").length?f(e.operationId):o(t,r,{v2OperationIdCompatibilityMode:n}):null}function o(e,t){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).v2OperationIdCompatibilityMode){var r=(t.toLowerCase()+"_"+e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|.\/?,\\'""-]/g,"_");return(r=r||e.substring(1)+"_"+t).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return""+d(t)+f(e)}function a(e,t){return d(t)+"-"+e}function s(e,t){return u(e,t,!0)||null}function u(e,t,r){if(!e||"object"!==(void 0===e?"undefined":(0,p.default)(e))||!e.paths||"object"!==(0,p.default)(e.paths))return null;var n=e.paths;for(var i in n)for(var o in n[i])if("PARAMETERS"!==o.toUpperCase()){var a=n[i][o];if(a&&"object"===(void 0===a?"undefined":(0,p.default)(a))){var s={spec:e,pathName:i,method:o.toUpperCase(),operation:a},u=t(s);if(r&&u)return s}}}Object.defineProperty(t,"__esModule",{value:!0});var c=n(r(18)),p=n(r(1));t.isOAS3=function(e){var t=e.openapi;return!!t&&(0,m.default)(t,"3")},t.isSwagger2=function(e){var t=e.swagger;return!!t&&(0,m.default)(t,"2")},t.opId=i,t.idFromPathMethod=o,t.legacyIdFromPathMethod=a,t.getOperationRaw=function(e,t){return e&&e.paths?s(e,function(e){var r=e.pathName,n=e.method,o=e.operation;if(!o||"object"!==(void 0===o?"undefined":(0,p.default)(o)))return!1;var s=o.operationId;return[i(o,r,n),a(r,n),s].some(function(e){return e&&e===t})}):null},t.findOperation=s,t.eachOperation=u,t.normalizeSwagger=function(e){var t=e.spec,r=t.paths,n={};if(!r||t.$$normalized)return e;for(var o in r){var a=r[o];if((0,l.default)(a)){var s=a.parameters;for(var u in a)!function(e){var r=a[e];if(!(0,l.default)(r))return"continue";var u=i(r,o,e);if(u){n[u]?n[u].push(r):n[u]=[r];var p=n[u];if(p.length>1)p.forEach(function(e,t){e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=""+u+(t+1)});else if(void 0!==r.operationId){var m=p[0];m.__originalOperationId=m.__originalOperationId||r.operationId,m.operationId=u}}if("parameters"!==e){var d=[],f={};for(var y in t)"produces"!==y&&"consumes"!==y&&"security"!==y||(f[y]=t[y],d.push(f));if(s&&(f.parameters=s,d.push(f)),d.length){var h=!0,b=!1,g=void 0;try{for(var v,S=(0,c.default)(d);!(h=(v=S.next()).done);h=!0){var I=v.value;for(var N in I)if(r[N]){if("parameters"===N){var C=!0,k=!1,T=void 0;try{for(var x,A=(0,c.default)(I[N]);!(C=(x=A.next()).done);C=!0)!function(){var e=x.value;r[N].some(function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e})||r[N].push(e)}()}catch(e){k=!0,T=e}finally{try{!C&&A.return&&A.return()}finally{if(k)throw T}}}}else r[N]=I[N]}}catch(e){b=!0,g=e}finally{try{!h&&S.return&&S.return()}finally{if(b)throw g}}}}}(u)}}return t.$$normalized=!0,e};var l=n(r(47)),m=n(r(14)),d=function(e){return String.prototype.toLowerCase.call(e)},f=function(e){return e.replace(/[^\w]/gi,"_")}},function(e,t){e.exports=r(328)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loadSpec,n=void 0!==r&&r,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:o(e.headers)},a=i.headers["content-type"],s=n||S(a);return(s?e.text:e.blob||e.buffer).call(e).then(function(e){if(i.text=e,i.data=e,s)try{var t=function(e,t){return"application/json"===t?JSON.parse(e):b.default.safeLoad(e)}(e,a);i.body=t,i.obj=t}catch(e){i.parseError=e}return i})}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return"function"==typeof e.forEach?(e.forEach(function(e,r){void 0!==t[r]?(t[r]=Array.isArray(t[r])?t[r]:[t[r]],t[r].push(e)):t[r]=e}),t):t}function a(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==(void 0===e?"undefined":(0,f.default)(e))||"string"!=typeof e.uri):"undefined"!=typeof File?e instanceof File:null!==e&&"object"===(void 0===e?"undefined":(0,f.default)(e))&&"function"==typeof e.pipe}function s(e,t){var r=e.collectionFormat,n=e.allowEmptyValue,i="object"===(void 0===e?"undefined":(0,f.default)(e))?e.value:e;if(void 0===i&&n)return"";if(a(i)||"boolean"==typeof i)return i;var o=encodeURIComponent;return t&&(o=(0,g.default)(i)?function(e){return e}:function(e){return(0,m.default)(e)}),"object"!==(void 0===i?"undefined":(0,f.default)(i))||Array.isArray(i)?Array.isArray(i)?Array.isArray(i)&&!r?i.map(o).join(","):"multi"===r?i.map(o):i.map(o).join({csv:",",ssv:"%20",tsv:"%09",pipes:"|"}[r]):o(i):""}function u(e){var t=(0,l.default)(e).reduce(function(t,r){var n=e[r],i=!!n.skipEncoding,o=i?r:encodeURIComponent(r),a=function(e){return e&&"object"===(void 0===e?"undefined":(0,f.default)(e))}(n)&&!Array.isArray(n);return t[o]=s(a?n:{value:n},i),t},{});return h.default.stringify(t,{encode:!1,indices:!1})||""}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,i=e.query,o=e.form;if(o){var c=(0,l.default)(o).some(function(e){return a(o[e].value)}),m=e.headers["content-type"]||e.headers["Content-Type"];if(c||/multipart\/form-data/i.test(m)){var d=r(30);e.body=new d,(0,l.default)(o).forEach(function(t){e.body.append(t,s(o[t],!0))})}else e.body=u(o);delete e.form}if(i){var f=n.split("?"),y=(0,p.default)(f,2),b=y[0],g=y[1],v="";if(g){var S=h.default.parse(g);(0,l.default)(i).forEach(function(e){return delete S[e]}),v=h.default.stringify(S,{encode:!0})}var I=function(){for(var e=arguments.length,t=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("object"===(void 0===t?"undefined":(0,f.default)(t))&&(t=(a=t).url),a.headers=a.headers||{},v.mergeInQueryOrForm(a),!a.requestInterceptor){e.next=10;break}return e.next=6,a.requestInterceptor(a);case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0=a;case 9:a=e.t0;case 10:return r=a.headers["content-type"]||a.headers["Content-Type"],/multipart\/form-data/i.test(r)&&(delete a.headers["content-type"],delete a.headers["Content-Type"]),n=void 0,e.prev=13,e.next=16,(a.userFetch||fetch)(a.url,a);case 16:return n=e.sent,e.next=19,v.serializeRes(n,t,a);case 19:if(n=e.sent,!a.responseInterceptor){e.next=27;break}return e.next=23,a.responseInterceptor(n);case 23:if(e.t1=e.sent,e.t1){e.next=26;break}e.t1=n;case 26:n=e.t1;case 27:e.next=37;break;case 29:if(e.prev=29,e.t2=e.catch(13),n){e.next=33;break}throw e.t2;case 33:throw(i=new Error(n.statusText)).statusCode=i.status=n.status,i.responseError=e.t2,i;case 37:if(n.ok){e.next=42;break}throw(o=new Error(n.statusText)).statusCode=o.status=n.status,o.response=n,o;case 42:return e.abrupt("return",n);case 43:case"end":return e.stop()}},e,this,[[13,29]])}));return function(t){return e.apply(this,arguments)}}();var S=t.shouldDownloadAsText=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},function(e,t){e.exports=r(1194)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){return Array.isArray(e)?e.length<1?"":"/"+e.map(function(e){return(e+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/"):e}function o(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function a(e,t,r){return l(p(e.filter(h).map(function(e){return t(e.value,r,e.path)})||[]))}function s(e,t,r){return r=r||[],Array.isArray(e)?e.map(function(e,n){return s(e,t,r.concat(n))}):m(e)?(0,I.default)(e).map(function(n){return s(e[n],t,r.concat(n))}):t(e,r[r.length-1],r)}function u(e,t,r){var n=[];if((r=r||[]).length>0){var i=t(e,r[r.length-1],r);i&&(n=n.concat(i))}if(Array.isArray(e)){var o=e.map(function(e,n){return u(e,t,r.concat(n))});o&&(n=n.concat(o))}else if(m(e)){var a=(0,I.default)(e).map(function(n){return u(e[n],t,r.concat(n))});a&&(n=n.concat(a))}return p(n)}function c(e){return Array.isArray(e)?e:[e]}function p(e){var t;return(t=[]).concat.apply(t,(0,S.default)(e.map(function(e){return Array.isArray(e)?p(e):e})))}function l(e){return e.filter(function(e){return void 0!==e})}function m(e){return e&&"object"===(void 0===e?"undefined":(0,v.default)(e))}function d(e){return e&&"function"==typeof e}function f(e){if(b(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function y(e){return f(e)||b(e)&&"mutation"===e.type}function h(e){return y(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function b(e){return e&&"object"===(void 0===e?"undefined":(0,v.default)(e))}function g(e,t){try{return k.default.getValueByPointer(e,t)}catch(e){return console.error(e),{}}}Object.defineProperty(t,"__esModule",{value:!0});var v=n(r(1)),S=n(r(34)),I=n(r(0)),N=n(r(35)),C=n(r(2)),k=n(r(36)),T=n(r(4)),x=n(r(37)),A=n(r(38));t.default={add:function(e,t){return{op:"add",path:e,value:t}},replace:o,remove:function(e,t){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(function(e,t){return void 0!==t&&e?e[t]:e},e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t=(0,C.default)({},t,{path:t.path&&i(t.path)})).op){var n=g(e,t.path);(0,C.default)(n,t.value),k.default.applyPatch(e,[o(t.path,n)])}else if("mergeDeep"===t.op){var a=g(e,t.path);for(var s in t.value){var u=t.value[s],c=Array.isArray(u);if(c){var p=a[s]||[];a[s]=p.concat(u)}else if(m(u)&&!c){var l=(0,C.default)({},a[s]);for(var d in u){if(Object.prototype.hasOwnProperty.call(l,d)){l=(0,x.default)((0,A.default)({},l),u);break}(0,C.default)(l,(0,N.default)({},d,u[d]))}a[s]=l}else a[s]=u}}else if("add"===t.op&&""===t.path&&m(t.value)){var f=(0,I.default)(t.value).reduce(function(e,r){return e.push({op:"add",path:"/"+i(r),value:t.value[r]}),e},[]);k.default.applyPatch(e,f)}else if("replace"===t.op&&""===t.path){var y=t.value;r.allowMetaPatches&&t.meta&&h(t)&&(Array.isArray(t.value)||m(t.value))&&(y=(0,C.default)({},y,t.meta)),e=y}else if(k.default.applyPatch(e,[t]),r.allowMetaPatches&&t.meta&&h(t)&&(Array.isArray(t.value)||m(t.value))){var b=g(e,t.path),v=(0,C.default)({},b,t.meta);k.default.applyPatch(e,[o(t.path,v)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(var r=0,n=t.length;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.requestInterceptor,n=t.responseInterceptor,i=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:"application/json"},credentials:i}).then(function(e){return e.body})}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(4)),a=n(r(11));t.makeFetchJSON=i,t.clearCache=function(){u.plugins.refs.clearCache()},t.default=function(e){function t(e){var t=this;N&&(u.plugins.refs.docCache[N]=e),u.plugins.refs.fetchJSON=i(I,{requestInterceptor:g,responseInterceptor:v});var r=[u.plugins.refs];return"function"==typeof b&&r.push(u.plugins.parameters),"function"==typeof h&&r.push(u.plugins.properties),"strict"!==m&&r.push(u.plugins.allOf),(0,c.default)({spec:e,context:{baseDoc:N},plugins:r,allowMetaPatches:f,pathDiscriminator:y,parameterMacro:b,modelPropertyMacro:h}).then(S?function(){var e=(0,a.default)(o.default.mark(function e(r){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}},e,t)}));return function(t){return e.apply(this,arguments)}}():p.normalizeSwagger)}var r=e.fetch,n=e.spec,l=e.url,m=e.mode,d=e.allowMetaPatches,f=void 0===d||d,y=e.pathDiscriminator,h=e.modelPropertyMacro,b=e.parameterMacro,g=e.requestInterceptor,v=e.responseInterceptor,S=e.skipNormalization,I=e.http,N=e.baseDoc;return N=N||l,I=r||I||s.default,n?t(n):i(I,{requestInterceptor:g,responseInterceptor:v})(N).then(t)};var s=n(r(7)),u=r(31),c=n(u),p=r(5)},function(e,t){e.exports=r(457)},function(e,t){e.exports=r(467)},function(e,t){e.exports=r(1229)},function(e,t){e.exports=r(1230)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=Array(e),n=0;n-1&&-1===i.indexOf(r)||o.indexOf(s)>-1||a.some(function(e){return s.indexOf(e)>-1})};var n=["properties"],i=["properties"],o=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],a=["schema/example"]},function(e,t,r){e.exports=r(24)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?r.url=e:r=e,!(this instanceof i))return new i(r);(0,s.default)(this,r);var n=this.resolve().then(function(){return t.disableInterfaces||(0,s.default)(t,i.makeApisTagOperation(t)),t});return n.client=this,n}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(3)),a=(n(r(25)),r(6)),s=n(a),u=n(r(14)),c=n(r(10)),p=r(7),l=n(p),m=r(16),d=n(m),f=n(r(48)),y=r(49),h=r(51),b=r(5);i.http=l.default,i.makeHttp=p.makeHttp.bind(null,i.http),i.resolve=d.default,i.resolveSubtree=f.default,i.execute=h.execute,i.serializeRes=p.serializeRes,i.serializeHeaders=p.serializeHeaders,i.clearCache=m.clearCache,i.parameterBuilders=h.PARAMETER_BUILDERS,i.makeApisTagOperation=y.makeApisTagOperation,i.buildRequest=h.buildRequest,i.helpers={opId:b.opId},i.prototype={http:l.default,execute:function(e){return this.applyDefaults(),i.execute((0,o.default)({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0},e))},resolve:function(){var e=this;return i.resolve({spec:this.spec,url:this.url,allowMetaPatches:this.allowMetaPatches,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null}).then(function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e})}},i.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&(0,u.default)(t,"http")){var r=c.default.parse(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}},t.default=i,e.exports=t.default},function(e,t){e.exports=r(1233)},function(e,t){e.exports=r(1252)},function(e,t){e.exports=r(1256)},function(e,t){e.exports=r(1257)},function(e,t){e.exports=r(126)},function(e,t){e.exports=r(1260)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.plugins=t.SpecMap=void 0;var i=n(r(8)),o=n(r(1)),a=n(r(17)),s=n(r(4)),u=n(r(0)),c=n(r(18)),p=n(r(32)),l=n(r(2)),m=n(r(19)),d=n(r(20));t.default=function(e){return new I(e).dispatch()};var f=n(r(33)),y=n(r(9)),h=n(r(39)),b=n(r(43)),g=n(r(44)),v=n(r(45)),S=n(r(46)),I=function(){function e(t){(0,m.default)(this,e),(0,l.default)(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new S.default,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:(0,l.default)((0,p.default)(this),y.default),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(y.default.isFunction),this.patches.push(y.default.add([],this.spec)),this.patches.push(y.default.context([],this.context)),this.updatePatches(this.patches)}return(0,d.default)(e,[{key:"debug",value:function(e){if(this.debugLevel===e){for(var t,r=arguments.length,n=Array(r>1?r-1:0),i=1;i1?r-1:0),i=1;i0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0)return a.default.race(this.promisedPatches.map(function(e){return e.value}))}},{key:"getPluginHistory",value:function(e){var t=this.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"getPluginName",value:function(e){return e.pluginName}},{key:"updatePluginHistory",value:function(e,t){var r=this.getPluginName(e);(this.pluginHistory[r]=this.pluginHistory[r]||[]).push(t)}},{key:"updatePatches",value:function(e,t){var r=this;y.default.normalizeArray(e).forEach(function(e){if(e instanceof Error)r.errors.push(e);else try{if(!y.default.isObject(e))return void r.debug("updatePatches","Got a non-object patch",e);if(r.showDebug&&r.allPatches.push(e),y.default.isPromise(e.value))return r.promisedPatches.push(e),void r.promisedPatchThen(e);if(y.default.isContextPatch(e))return void r.setContext(e.path,e.value);if(y.default.isMutation(e))return void r.updateMutations(e)}catch(e){console.error(e),r.errors.push(e)}})}},{key:"updateMutations",value:function(e){"object"===(0,o.default)(e.value)&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value=(0,l.default)({},e.value));var t=y.default.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then(function(r){var n=(0,l.default)({},e,{value:r});t.removePromisedPatch(e),t.updatePatches(n)}).catch(function(r){t.removePromisedPatch(e),t.updatePatches(r)})}},{key:"getMutations",value:function(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getPatchesOfType",value:function(e,t){return e.filter(t)}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return y.default.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"_clone",value:function(e){return JSON.parse((0,i.default)(e))}},{key:"dispatch",value:function(){function e(e){e&&(e=y.default.fullyNormalizeArray(e),r.updatePatches(e,n))}var t=this,r=this,n=this.nextPlugin();if(!n){var i=this.nextPromisedPatch();if(i)return i.then(function(){return t.dispatch()}).catch(function(){return t.dispatch()});var o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),a.default.resolve(o)}if(r.pluginCount=r.pluginCount||{},r.pluginCount[n]=(r.pluginCount[n]||0)+1,r.pluginCount[n]>100)return a.default.resolve({spec:r.state,errors:r.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(n!==this.currentPlugin&&this.promisedPatches.length){var s=this.promisedPatches.map(function(e){return e.value});return a.default.all(s.map(function(e){return e.then(Function,Function)})).then(function(){return t.dispatch()})}return function(){r.currentPlugin=n;var t=r.getCurrentMutations(),i=r.mutations.length-1;try{if(n.isGenerator){var o=!0,a=!1,s=void 0;try{for(var u,m=(0,c.default)(n(t,r.getLib()));!(o=(u=m.next()).done);o=!0)e(u.value)}catch(e){a=!0,s=e}finally{try{!o&&m.return&&m.return()}finally{if(a)throw s}}}else e(n(t,r.getLib()))}catch(t){console.error(t),e([(0,l.default)((0,p.default)(t),{plugin:n})])}finally{r.updatePluginHistory(n,{mutationIndex:i})}return r.dispatch()}()}}]),e}(),N={refs:h.default,allOf:b.default,parameters:g.default,properties:v.default};t.SpecMap=I,t.plugins=N},function(e,t){e.exports=r(1261)},function(e,t){e.exports=r(168)},function(e,t){e.exports=r(1264)},function(e,t){e.exports=r(1269)},function(e,t){e.exports=r(1270)},function(e,t){e.exports=r(198)},function(e,t){e.exports=r(1273)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!A.test(e)){if(!t)throw new D("Tried to resolve a relative URL, without having a basePath. path: '"+e+"' basePath: '"+t+"'");return C.default.resolve(t,e)}return e}function o(e,t){return new D("Could not resolve reference because of: "+e.message,t,e)}function a(e){return(e+"").split("#")}function s(e,t){var r=R[e];if(r&&!k.default.isPromise(r))try{var n=c(t,r);return(0,v.default)(b.default.resolve(n),{__value:n})}catch(e){return b.default.reject(e)}return u(e).then(function(e){return c(t,e)})}function u(e){var t=R[e];return t?k.default.isPromise(t)?t:b.default.resolve(t):(R[e]=E.fetchJSON(e).then(function(t){return R[e]=t,t}),R[e])}function c(e,t){var r=p(e);if(r.length<1)return t;var n=k.default.getIn(t,r);if(void 0===n)throw new D("Could not resolve pointer: "+e+" does not exist in document",{pointer:e});return n}function p(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+(void 0===e?"undefined":(0,y.default)(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(l)}function l(e){return"string"!=typeof e?e:N.default.unescape(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function m(e){return N.default.escape(e.replace(/~/g,"~0").replace(/\//g,"~1"))}function d(e,t){if(w(t))return!0;var r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}function f(e,t,r,n){var i=_.get(n);i||(i={},_.set(n,i));var o=function(e){return 0===e.length?"":"/"+e.map(m).join("/")}(r),a=(t||"")+"#"+e;if(t==n.contextTree.get([]).baseDoc&&d(o,e))return!0;var s="";if(r.some(function(e){return s=s+"/"+m(e),i[s]&&i[s].some(function(e){return d(e,a)||d(a,e)})}))return!0;i[o]=(i[o]||[]).concat(a)}Object.defineProperty(t,"__esModule",{value:!0});var y=n(r(1)),h=n(r(0)),b=n(r(17)),g=n(r(40)),v=n(r(2)),S=r(41),I=n(r(15)),N=n(r(42)),C=n(r(10)),k=n(r(9)),T=n(r(21)),x=r(22),A=new RegExp("^([a-z]+://|//)","i"),D=(0,T.default)("JSONRefError",function(e,t,r){this.originalError=r,(0,v.default)(this,t||{})}),R={},_=new g.default,P={key:"$ref",plugin:function(e,t,r,n){var u=r.slice(0,-1);if(!(0,x.isFreelyNamed)(u)){var c=n.getContext(r).baseDoc;if("string"!=typeof e)return new D("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:c,fullPath:r});var l=a(e),m=l[0],d=l[1]||"",y=void 0;try{y=c||m?i(m,c):null}catch(t){return o(t,{pointer:d,$ref:e,basePath:y,fullPath:r})}var b=void 0,g=void 0;if(!f(d,y,u,n)){if(null==y?(g=p(d),void 0===(b=n.get(g))&&(b=new D("Could not resolve reference: "+e,{pointer:d,$ref:e,baseDoc:c,fullPath:r}))):b=null!=(b=s(y,d)).__value?b.__value:b.catch(function(t){throw o(t,{pointer:d,$ref:e,baseDoc:c,fullPath:r})}),b instanceof Error)return[k.default.remove(r),b];var v=k.default.replace(u,b,{$$ref:e});if(y&&y!==c)return[v,k.default.context(u,{baseDoc:y})];try{if(!function(e,t){var r=[e];return t.path.reduce(function(e,t){return r.push(e[t]),e[t]},e),function e(t){return k.default.isObject(t)&&(r.indexOf(t)>=0||(0,h.default)(t).some(function(r){return e(t[r])}))}(t.value)}(n.state,v))return v}catch(e){return null}}}}},E=(0,v.default)(P,{docCache:R,absoluteify:i,clearCache:function(e){void 0!==e?delete R[e]:(0,h.default)(R).forEach(function(e){delete R[e]})},JSONRefError:D,wrapError:o,getDoc:u,split:a,extractFromDoc:s,fetchJSON:function(e){return(0,S.fetch)(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then(function(e){return e.text()}).then(function(e){return I.default.safeLoad(e)})},extract:c,jsonPointerToArray:p,unescapeJsonPointerToken:l});t.default=E;var w=function(e){return!e||"/"===e||"#"===e};e.exports=t.default},function(e,t){e.exports=r(1274)},function(e,t){e.exports=r(1285)},function(e,t){e.exports=r(1286)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(2)),i=r(22);t.default={key:"allOf",plugin:function(e,t,r,o,a){if(!a.meta||!a.meta.$$ref){var s=r.slice(0,-1);if(!(0,i.isFreelyNamed)(s)){if(!Array.isArray(e)){var u=new TypeError("allOf must be an array");return u.fullPath=r,u}var c=!1,p=a.value;s.forEach(function(e){p&&(p=p[e])}),delete(p=(0,n.default)({},p)).allOf;var l=[o.replace(s,{})].concat(e.map(function(e,t){if(!o.isObject(e)){if(c)return null;c=!0;var n=new TypeError("Elements in allOf must be objects");return n.fullPath=r,n}return o.mergeDeep(s,e)}));return l.push(o.mergeDeep(s,p)),p.$$ref||l.push(o.remove([].concat(s,"$$ref"))),l}}}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(2)),o=n(r(9));t.default={key:"parameters",plugin:function(e,t,r,n,a){if(Array.isArray(e)&&e.length){var s=(0,i.default)([],e),u=r.slice(0,-1),c=(0,i.default)({},o.default.getIn(n.spec,u));return e.forEach(function(e,t){try{s[t].default=n.parameterMacro(c,e)}catch(e){var i=new Error(e);return i.fullPath=r,i}}),o.default.replace(r,s)}return o.default.replace(r,e)}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(2)),o=n(r(9));t.default={key:"properties",plugin:function(e,t,r,n){var a=(0,i.default)({},e);for(var s in e)try{a[s].default=n.modelPropertyMacro(a[s])}catch(e){var u=new Error(e);return u.fullPath=r,u}return o.default.replace(r,a)}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){return o({children:{}},e,t)}function o(e,t,r){return e.value=t||{},e.protoValue=r?(0,s.default)({},r.protoValue,e.value):e.value,(0,a.default)(e.children).forEach(function(t){var r=e.children[t];e.children[t]=o(r,r.value,e)}),e}Object.defineProperty(t,"__esModule",{value:!0});var a=n(r(0)),s=n(r(3)),u=n(r(19)),c=n(r(20)),p=function(){function e(t){(0,u.default)(this,e),this.root=i(t||{})}return(0,c.default)(e,[{key:"set",value:function(e,t){var r=this.getParent(e,!0);if(r){var n=e[e.length-1],a=r.children;a[n]?o(a[n],t,r):a[n]=i(t,r)}else o(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t=this.root,r=void 0,n=void 0,i=0;i2&&void 0!==arguments[2]?arguments[2]:{};return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=g.returnEntireTree,a=g.baseDoc,p=g.requestInterceptor,l=g.responseInterceptor,m=g.parameterMacro,d=g.modelPropertyMacro,f={pathDiscriminator:r,baseDoc:a,requestInterceptor:p,responseInterceptor:l,parameterMacro:m,modelPropertyMacro:d},y=(0,c.normalizeSwagger)({spec:t}),h=y.spec,e.next=5,(0,u.default)((0,o.default)({},f,{spec:h,allowMetaPatches:!0,skipNormalization:!0}));case 5:return b=e.sent,!n&&Array.isArray(r)&&r.length&&(b.spec=(0,s.default)(b.spec,r)||null),e.abrupt("return",b);case 8:case"end":return e.stop()}},e,this)}));return function(t,r){return e.apply(this,arguments)}}(),e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r=t.pathName,n=t.method,i=t.operationId;return function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.execute((0,a.default)({spec:e.spec},(0,s.default)(e,"requestInterceptor","responseInterceptor","userFetch"),{pathName:r,method:n,parameters:t,operationId:i},o))}}}function o(e){var t=e.spec,r=e.cb,n=void 0===r?c:r,i=e.defaultTag,o=void 0===i?"default":i,a=e.v2OperationIdCompatibilityMode,s={},l={};return(0,u.eachOperation)(t,function(e){var r=e.pathName,i=e.method,c=e.operation;(c.tags?p(c.tags):[o]).forEach(function(e){if("string"==typeof e){var o=l[e]=l[e]||{},p=(0,u.opId)(c,r,i,{v2OperationIdCompatibilityMode:a}),m=n({spec:t,pathName:r,method:i,operation:c,operationId:p});if(s[p])s[p]++,o[""+p+s[p]]=m;else if(void 0!==o[p]){var d=s[p]||1;s[p]=d+1,o[""+p+s[p]]=m;var f=o[p];delete o[p],o[""+p+d]=f}else o[p]=m}})}),l}Object.defineProperty(t,"__esModule",{value:!0}),t.self=void 0;var a=n(r(3));t.makeExecute=i,t.makeApisTagOperationsOperationExecute=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l.makeExecute(e),r=l.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t}),n={};for(var i in r)for(var o in n[i]={operations:{}},r[i])n[i].operations[o]={execute:r[i][o]};return{apis:n}},t.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l.makeExecute(e);return{apis:l.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},t.mapTagOperations=o;var s=n(r(50)),u=r(5),c=function(){return null},p=function(e){return Array.isArray(e)?e:[e]},l=t.self={mapTagOperations:o,makeExecute:i}},function(e,t){e.exports=r(123)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.spec,r=e.operationId,n=(e.securities,e.requestContentType,e.responseContentType),i=e.scheme,a=e.requestInterceptor,u=e.responseInterceptor,p=e.contextUrl,l=e.userFetch,m=(e.requestBody,e.server),d=e.serverVariables,f=e.http,y=e.parameters,h=e.parameterBuilders,v=(0,T.isOAS3)(t);h||(h=v?N.default:I.default);var S={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};a&&(S.requestInterceptor=a),u&&(S.responseInterceptor=u),l&&(S.userFetch=l);var _=(0,T.getOperationRaw)(t,r);if(!_)throw new A("Operation "+r+" not found");var P=_.operation,E=void 0===P?{}:P,w=_.method,M=_.pathName;if(S.url+=o({spec:t,scheme:i,contextUrl:p,server:m,serverVariables:d,pathName:M,method:w}),!r)return delete S.cookies,S;S.url+=M,S.method=(""+w).toUpperCase(),y=y||{};var q=t.paths[M]||{};n&&(S.headers.accept=n);var O=R([].concat(x(E.parameters)).concat(x(q.parameters)));O.forEach(function(e){var r=h[e.in],n=void 0;if("body"===e.in&&e.schema&&e.schema.properties&&(n=y),void 0===(n=e&&e.name&&y[e.name])?n=e&&e.name&&y[e.in+"."+e.name]:D(e.name,O).length>1&&console.warn("Parameter '"+e.name+"' is ambiguous because the defined spec has more than one parameter with the name: '"+e.name+"' and the passed-in parameter values did not define an 'in' value."),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter "+e.name+" is not provided");if(v&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:S,parameter:e,value:n,operation:E,spec:t})}});var L=(0,s.default)({},e,{operation:E});if((S=v?(0,C.default)(L,S):(0,k.default)(L,S)).cookies&&(0,c.default)(S.cookies).length){var B=(0,c.default)(S.cookies).reduce(function(e,t){var r=S.cookies[t];return e+(e?"&":"")+b.default.serialize(t,r)},"");S.headers.Cookie=B}return S.cookies&&delete S.cookies,(0,g.mergeInQueryOrForm)(S),S}function o(e){return(0,T.isOAS3)(e.spec)?function(e){var t=e.spec,r=e.pathName,n=e.method,i=e.server,o=e.contextUrl,a=e.serverVariables,s=void 0===a?{}:a,u=(0,m.default)(t,["paths",r,(n||"").toLowerCase(),"servers"])||(0,m.default)(t,["paths",r,"servers"])||(0,m.default)(t,["servers"]),c="",p=null;if(i&&u&&u.length){var l=u.map(function(e){return e.url});l.indexOf(i)>-1&&(c=i,p=u[l.indexOf(i)])}!c&&u&&u.length&&(c=u[0].url,p=u[0]),c.indexOf("{")>-1&&function(e){for(var t=[],r=/{([^}]+)}/g,n=void 0;n=r.exec(e);)t.push(n[1]);return t}(c).forEach(function(e){if(p.variables&&p.variables[e]){var t=p.variables[e],r=s[e]||t.default,n=new RegExp("{"+e+"}","g");c=c.replace(n,r)}});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=h.default.parse(e),n=h.default.parse(t),i=P(r.protocol)||P(n.protocol)||"",o=r.host||n.host,a=r.pathname||"",s=void 0;return"/"===(s=i&&o?i+"://"+(o+a):a)[s.length-1]?s.slice(0,-1):s}(c,o)}(e):function(e){var t=e.spec,r=e.scheme,n=e.contextUrl,i=void 0===n?"":n,o=h.default.parse(i),a=Array.isArray(t.schemes)?t.schemes[0]:null,s=r||a||P(o.protocol)||"http",u=t.host||o.host||"",c=t.basePath||"",p=void 0;return"/"===(p=s&&u?s+"://"+(u+c):c)[p.length-1]?p.slice(0,-1):p}(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.self=void 0;var a=n(r(8)),s=n(r(3)),u=n(r(52)),c=n(r(0)),p=n(r(2));t.execute=function(e){var t=e.http,r=e.fetch,n=e.spec,i=e.operationId,o=e.pathName,c=e.method,p=e.parameters,l=e.securities,m=(0,u.default)(e,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),y=t||r||v.default;o&&c&&!i&&(i=(0,T.legacyIdFromPathMethod)(o,c));var h=_.buildRequest((0,s.default)({spec:n,operationId:i,parameters:p,securities:l,http:y},m));return h.body&&((0,d.default)(h.body)||(0,f.default)(h.body))&&(h.body=(0,a.default)(h.body)),y(h)},t.buildRequest=i,t.baseUrl=o;var l=(n(r(6)),r(12)),m=n(l),d=n(r(53)),f=n(r(54)),y=(n(r(13)),r(10)),h=n(y),b=n(r(55)),g=r(7),v=n(g),S=n(r(21)),I=n(r(56)),N=n(r(57)),C=n(r(62)),k=n(r(64)),T=r(5),x=function(e){return Array.isArray(e)?e:[]},A=(0,S.default)("OperationNotFoundError",function(e,t,r){this.originalError=r,(0,p.default)(this,t||{})}),D=function(e,t){return t.filter(function(t){return t.name===e})},R=function(e){var t={};e.forEach(function(e){t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});var r=[];return(0,c.default)(t).forEach(function(e){(0,c.default)(t[e]).forEach(function(n){r.push(t[e][n])})}),r},_=t.self={buildRequest:i},P=function(e){return e?e.replace(/\W/g,""):null}},function(e,t){e.exports=r(1287)},function(e,t){e.exports=r(122)},function(e,t){e.exports=r(24)},function(e,t){e.exports=r(1288)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={body:function(e){var t=e.req,r=e.value;t.body=r},header:function(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){var t=e.req,r=e.value,n=e.parameter;if(t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false"),0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0"),r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){var i=n.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}},path:function(e){var t=e.req,r=e.value,n=e.parameter;t.url=t.url.replace("{"+n.name+"}",encodeURIComponent(r))},formData:function(e){var t=e.req,r=e.value,n=e.parameter;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}},e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(0)),o=n(r(1)),a=n(r(58));t.default={path:function(e){var t=e.req,r=e.value,n=e.parameter,i=n.name,o=n.style,s=n.explode,u=(0,a.default)({key:n.name,value:r,style:o||"simple",explode:s||!1,escape:!0});t.url=t.url.replace("{"+i+"}",u)},query:function(e){var t=e.req,r=e.value,n=e.parameter;if(t.query=t.query||{},!1===r&&(r="false"),0===r&&(r="0"),r){var s=void 0===r?"undefined":(0,o.default)(r);"deepObject"===n.style?(0,i.default)(r).forEach(function(e){var i=r[e];t.query[n.name+"["+e+"]"]={value:(0,a.default)({key:e,value:i,style:"deepObject",escape:n.allowReserved?"unsafe":"reserved"}),skipEncoding:!0}}):"object"!==s||Array.isArray(r)||"form"!==n.style&&n.style||!n.explode&&void 0!==n.explode?t.query[n.name]={value:(0,a.default)({key:n.name,value:r,style:n.style||"form",explode:void 0===n.explode||n.explode,escape:n.allowReserved?"unsafe":"reserved"}),skipEncoding:!0}:(0,i.default)(r).forEach(function(e){var i=r[e];t.query[e]={value:(0,a.default)({key:e,value:i,style:n.style||"form",escape:n.allowReserved?"unsafe":"reserved"}),skipEncoding:!0}})}else if(n.allowEmptyValue&&void 0!==r){var u=n.name;t.query[u]=t.query[u]||{},t.query[u].allowEmptyValue=!0}},header:function(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{},s.indexOf(r.name.toLowerCase())>-1||void 0!==n&&(t.headers[r.name]=(0,a.default)({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))},cookie:function(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{};var i=void 0===n?"undefined":(0,o.default)(n);if("undefined"!==i){var s="object"===i&&!Array.isArray(n)&&r.explode?"":r.name+"=";t.headers.Cookie=s+(0,a.default)({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}};var s=["accept","authorization","content-type"];e.exports=t.default},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).escape,r=arguments[2];return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):(0,c.stringToCharArray)(e).map(function(e){return l(e)?e:p(e)&&"unsafe"===t?e:((0,u.default)(e)||[]).map(function(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}).map(function(e){return"%"+e}).join("")}).join(""):e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(0)),a=n(r(1));t.encodeDisallowedCharacters=i,t.default=function(e){var t=e.value;return Array.isArray(t)?function(e){var t=e.key,r=e.value,n=e.style,o=e.explode,a=e.escape,s=function(e){return i(e,{escape:a})};if("simple"===n)return r.map(function(e){return s(e)}).join(",");if("label"===n)return"."+r.map(function(e){return s(e)}).join(".");if("matrix"===n)return r.map(function(e){return s(e)}).reduce(function(e,r){return!e||o?(e||"")+";"+t+"="+r:e+","+r},"");if("form"===n){var u=o?"&"+t+"=":",";return r.map(function(e){return s(e)}).join(u)}if("spaceDelimited"===n){var c=o?t+"=":"";return r.map(function(e){return s(e)}).join(" "+c)}if("pipeDelimited"===n){var p=o?t+"=":"";return r.map(function(e){return s(e)}).join("|"+p)}}(e):"object"===(void 0===t?"undefined":(0,a.default)(t))?function(e){var t=e.key,r=e.value,n=e.style,a=e.explode,s=e.escape,u=function(e){return i(e,{escape:s})},c=(0,o.default)(r);return"simple"===n?c.reduce(function(e,t){var n=u(r[t]);return(e?e+",":"")+t+(a?"=":",")+n},""):"label"===n?c.reduce(function(e,t){var n=u(r[t]);return(e?e+".":".")+t+(a?"=":".")+n},""):"matrix"===n&&a?c.reduce(function(e,t){return(e?e+";":";")+t+"="+u(r[t])},""):"matrix"===n?c.reduce(function(e,n){var i=u(r[n]);return(e?e+",":";"+t+"=")+n+","+i},""):"form"===n?c.reduce(function(e,t){var n=u(r[t]);return(e?e+(a?"&":","):"")+t+(a?"=":",")+n},""):void 0}(e):function(e){var t=e.key,r=e.value,n=e.style,o=e.escape,a=function(e){return i(e,{escape:o})};return"simple"===n?a(r):"label"===n?"."+a(r):"matrix"===n?";"+t+"="+a(r):"form"===n?a(r):"deepObject"===n?a(r):void 0}(e)};var s=(n(r(59)),r(60)),u=n(s),c=r(61),p=function(e){return":/?#[]@!$&'()*+,;=".indexOf(e)>-1},l=function(e){return/^[a-z0-9\-._~]+$/i.test(e)}},function(e,t){e.exports=r(1289)},function(e,t){e.exports=r(1290)},function(e,t){e.exports=r(1291)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.request,r=e.securities,n=void 0===r?{}:r,i=e.operation,o=void 0===i?{}:i,a=e.spec,l=(0,u.default)({},t),m=n.authorized,d=void 0===m?{}:m,f=o.security||a.security||[],y=d&&!!(0,s.default)(d).length,h=(0,c.default)(a,["components","securitySchemes"])||{};return l.headers=l.headers||{},l.query=l.query||{},(0,s.default)(n).length&&y&&f&&(!Array.isArray(o.security)||o.security.length)?(f.forEach(function(e,t){for(var r in e){var n=d[r],i=h[r];if(n){var o=n.value||n,a=i.type;if(n)if("apiKey"===a)"query"===i.in&&(l.query[i.name]=o),"header"===i.in&&(l.headers[i.name]=o),"cookie"===i.in&&(l.cookies[i.name]=o);else if("http"===a){if("basic"===i.scheme){var s=o.username,u=o.password,c=(0,p.default)(s+":"+u);l.headers.Authorization="Basic "+c}"bearer"===i.scheme&&(l.headers.Authorization="Bearer "+o)}else if("oauth2"===a){var m=n.token||{},f=m.access_token,y=m.token_type;y&&"bearer"!==y.toLowerCase()||(y="Bearer"),l.headers.Authorization=y+" "+f}}}}),l):t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(8)),a=n(r(1)),s=n(r(0));t.default=function(e,t){var r=e.operation,n=e.requestBody,u=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,m=e.requestContentType;t=i({request:t,securities:u,operation:r,spec:c});var d=r.requestBody||{},f=(0,s.default)(d.content||{}),y=m&&f.indexOf(m)>-1;if(n||p){if(m&&y)t.headers["Content-Type"]=m;else if(!m){var h=f[0];h&&(t.headers["Content-Type"]=h,m=h)}}else m&&y&&(t.headers["Content-Type"]=m);return n&&(m?f.indexOf(m)>-1&&("application/x-www-form-urlencoded"===m||0===m.indexOf("multipart/")?"object"===(void 0===n?"undefined":(0,a.default)(n))?(t.form={},(0,s.default)(n).forEach(function(e){var r,i=n[e],s=void 0;"undefined"!=typeof File&&(s=i instanceof File),"undefined"!=typeof Blob&&(s=s||i instanceof Blob),void 0!==l.Buffer&&(s=s||l.Buffer.isBuffer(i)),r="object"!==(void 0===i?"undefined":(0,a.default)(i))||s?i:Array.isArray(i)?i.toString():(0,o.default)(i),t.form[e]={value:r}})):t.form=n:t.body=n):t.body=n),t},t.applySecurities=i;var u=n(r(6)),c=n(r(12)),p=n(r(13)),l=r(63)},function(e,t){e.exports=r(19)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.request,r=e.securities,n=void 0===r?{}:r,i=e.operation,u=void 0===i?{}:i,c=e.spec,p=(0,s.default)({},t),l=n.authorized,m=void 0===l?{}:l,d=n.specSecurity,f=void 0===d?[]:d,y=u.security||f,h=m&&!!(0,o.default)(m).length,b=c.securityDefinitions;return p.headers=p.headers||{},p.query=p.query||{},(0,o.default)(n).length&&h&&y&&(!Array.isArray(u.security)||u.security.length)?(y.forEach(function(e,t){for(var r in e){var n=m[r];if(n){var i=n.token,o=n.value||n,s=b[r],u=s.type,c=s["x-tokenName"]||"access_token",l=i&&i[c],d=i&&i.token_type;if(n)if("apiKey"===u){var f="query"===s.in?"query":"headers";p[f]=p[f]||{},p[f][s.name]=o}else"basic"===u?o.header?p.headers.authorization=o.header:(o.base64=(0,a.default)(o.username+":"+o.password),p.headers.authorization="Basic "+o.base64):"oauth2"===u&&l&&(d=d&&"bearer"!==d.toLowerCase()?d:"Bearer",p.headers.authorization=d+" "+l)}}}),p):t}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(0));t.default=function(e,t){var r=e.spec,n=e.operation,o=e.securities,a=e.requestContentType,s=e.attachContentTypeForEmptyPayload;if((t=i({request:t,securities:o,operation:n,spec:r})).body||t.form||s)a?t.headers["Content-Type"]=a:Array.isArray(n.consumes)?t.headers["Content-Type"]=n.consumes[0]:Array.isArray(r.consumes)?t.headers["Content-Type"]=r.consumes[0]:n.parameters&&n.parameters.filter(function(e){return"file"===e.type}).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(function(e){return"formData"===e.in}).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(a){var u=n.parameters&&n.parameters.filter(function(e){return"body"===e.in}).length>0,c=n.parameters&&n.parameters.filter(function(e){return"formData"===e.in}).length>0;(u||c)&&(t.headers["Content-Type"]=a)}return t},t.applySecurities=i;var a=n(r(13)),s=n(r(6));n(r(7))}])},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(158);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(284)("keys"),i=r(210);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(31),i=r(45),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(159)?"pure":"global",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(53),i=r(45).document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,r){var n=r(53);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){e.exports=r(80)},function(e,t,r){var n=r(62),i=r(1175),o=r(285),a=r(283)("IE_PROTO"),s=function(){},u=function(){var e,t=r(286)("iframe"),n=o.length;for(t.style.display="none",r(452).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("