!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("react"),require("prop-types"),require("immutable"),require("react-immutable-proptypes"),require("reselect"),require("classnames"),require("serialize-error"),require("url-parse"),require("deep-extend"),require("js-yaml"),require("react-collapse"),require("swagger-client"),require("base64-js"),require("commonmark"),require("css.escape"),require("dompurify"),require("ieee754"),require("isarray"),require("js-file-download"),require("memoizee"),require("react-debounce-input"),require("react-dom"),require("react-immutable-pure-component"),require("react-markdown"),require("react-redux"),require("react-split-pane"),require("redux"),require("redux-immutable"),require("regenerator-runtime"),require("remarkable"),require("xml"),require("xml-but-prettier"),require("yaml-js"),require("zenscroll")):"function"==typeof define&&define.amd?define(["react","prop-types","immutable","react-immutable-proptypes","reselect","classnames","serialize-error","url-parse","deep-extend","js-yaml","react-collapse","swagger-client","base64-js","commonmark","css.escape","dompurify","ieee754","isarray","js-file-download","memoizee","react-debounce-input","react-dom","react-immutable-pure-component","react-markdown","react-redux","react-split-pane","redux","redux-immutable","regenerator-runtime","remarkable","xml","xml-but-prettier","yaml-js","zenscroll"],factory):"object"==typeof exports?exports.SwaggerUICore=factory(require("react"),require("prop-types"),require("immutable"),require("react-immutable-proptypes"),require("reselect"),require("classnames"),require("serialize-error"),require("url-parse"),require("deep-extend"),require("js-yaml"),require("react-collapse"),require("swagger-client"),require("base64-js"),require("commonmark"),require("css.escape"),require("dompurify"),require("ieee754"),require("isarray"),require("js-file-download"),require("memoizee"),require("react-debounce-input"),require("react-dom"),require("react-immutable-pure-component"),require("react-markdown"),require("react-redux"),require("react-split-pane"),require("redux"),require("redux-immutable"),require("regenerator-runtime"),require("remarkable"),require("xml"),require("xml-but-prettier"),require("yaml-js"),require("zenscroll")):root.SwaggerUICore=factory(root.react,root["prop-types"],root.immutable,root["react-immutable-proptypes"],root.reselect,root.classnames,root["serialize-error"],root["url-parse"],root["deep-extend"],root["js-yaml"],root["react-collapse"],root["swagger-client"],root["base64-js"],root.commonmark,root["css.escape"],root.dompurify,root.ieee754,root.isarray,root["js-file-download"],root.memoizee,root["react-debounce-input"],root["react-dom"],root["react-immutable-pure-component"],root["react-markdown"],root["react-redux"],root["react-split-pane"],root.redux,root["redux-immutable"],root["regenerator-runtime"],root.remarkable,root.xml,root["xml-but-prettier"],root["yaml-js"],root.zenscroll)}(this,function(__WEBPACK_EXTERNAL_MODULE_0__,__WEBPACK_EXTERNAL_MODULE_1__,__WEBPACK_EXTERNAL_MODULE_7__,__WEBPACK_EXTERNAL_MODULE_9__,__WEBPACK_EXTERNAL_MODULE_36__,__WEBPACK_EXTERNAL_MODULE_93__,__WEBPACK_EXTERNAL_MODULE_145__,__WEBPACK_EXTERNAL_MODULE_146__,__WEBPACK_EXTERNAL_MODULE_281__,__WEBPACK_EXTERNAL_MODULE_282__,__WEBPACK_EXTERNAL_MODULE_283__,__WEBPACK_EXTERNAL_MODULE_284__,__WEBPACK_EXTERNAL_MODULE_601__,__WEBPACK_EXTERNAL_MODULE_602__,__WEBPACK_EXTERNAL_MODULE_603__,__WEBPACK_EXTERNAL_MODULE_604__,__WEBPACK_EXTERNAL_MODULE_605__,__WEBPACK_EXTERNAL_MODULE_606__,__WEBPACK_EXTERNAL_MODULE_607__,__WEBPACK_EXTERNAL_MODULE_608__,__WEBPACK_EXTERNAL_MODULE_609__,__WEBPACK_EXTERNAL_MODULE_610__,__WEBPACK_EXTERNAL_MODULE_611__,__WEBPACK_EXTERNAL_MODULE_612__,__WEBPACK_EXTERNAL_MODULE_613__,__WEBPACK_EXTERNAL_MODULE_614__,__WEBPACK_EXTERNAL_MODULE_615__,__WEBPACK_EXTERNAL_MODULE_616__,__WEBPACK_EXTERNAL_MODULE_617__,__WEBPACK_EXTERNAL_MODULE_618__,__WEBPACK_EXTERNAL_MODULE_619__,__WEBPACK_EXTERNAL_MODULE_620__,__WEBPACK_EXTERNAL_MODULE_621__,__WEBPACK_EXTERNAL_MODULE_622__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){return value},__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="/dist",__webpack_require__(__webpack_require__.s=623)}([function(module,exports){module.exports=require("react")},function(module,exports){module.exports=require("prop-types")},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.default=function(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var obj,_defineProperty=__webpack_require__(215),_defineProperty2=(obj=_defineProperty)&&obj.__esModule?obj:{default:obj};exports.default=function(){function defineProperties(target,props){for(var i=0;i5e3)return el.textContent;return function(el){for(var prev1,prev2,lastTokenType,multichar,node,text=el.textContent,pos=0,next1=text[0],chr=1,token=el.innerHTML="",tokenType=0;prev2=prev1,prev1=tokenType<7&&"\\"==prev1?1:chr;){if(chr=next1,next1=text[++pos],multichar=token.length>1,!chr||tokenType>8&&"\n"==chr||[/\S/.test(chr),1,1,!/[$\w]/.test(chr),("/"==prev1||"\n"==prev1)&&multichar,'"'==prev1&&multichar,"'"==prev1&&multichar,text[pos-4]+prev2+prev1=="--\x3e",prev2+prev1=="*/"][tokenType])for(token&&(el.appendChild(node=_document.createElement("span")).setAttribute("style",["color: #555; font-weight: bold;","","","color: #555;",""][tokenType?tokenType<3?2:tokenType>6?4:tokenType>3?3:+/^(a(bstract|lias|nd|rguments|rray|s(m|sert)?|uto)|b(ase|egin|ool(ean)?|reak|yte)|c(ase|atch|har|hecked|lass|lone|ompl|onst|ontinue)|de(bugger|cimal|clare|f(ault|er)?|init|l(egate|ete)?)|do|double|e(cho|ls?if|lse(if)?|nd|nsure|num|vent|x(cept|ec|p(licit|ort)|te(nds|nsion|rn)))|f(allthrough|alse|inal(ly)?|ixed|loat|or(each)?|riend|rom|unc(tion)?)|global|goto|guard|i(f|mp(lements|licit|ort)|n(it|clude(_once)?|line|out|stanceof|t(erface|ernal)?)?|s)|l(ambda|et|ock|ong)|m(icrolight|odule|utable)|NaN|n(amespace|ative|ext|ew|il|ot|ull)|o(bject|perator|r|ut|verride)|p(ackage|arams|rivate|rotected|rotocol|ublic)|r(aise|e(adonly|do|f|gister|peat|quire(_once)?|scue|strict|try|turn))|s(byte|ealed|elf|hort|igned|izeof|tatic|tring|truct|ubscript|uper|ynchronized|witch)|t(emplate|hen|his|hrows?|ransient|rue|ry|ype(alias|def|id|name|of))|u(n(checked|def(ined)?|ion|less|signed|til)|se|sing)|v(ar|irtual|oid|olatile)|w(char_t|hen|here|hile|ith)|xor|yield)$/.test(token):0]),node.appendChild(_document.createTextNode(token))),lastTokenType=tokenType&&tokenType<7?tokenType:lastTokenType,token="",tokenType=11;![1,/[\/{}[(\-+*=<>:;|\\.,?!&@~]/.test(chr),/[\])]/.test(chr),/[$\w]/.test(chr),"/"==chr&&lastTokenType<2&&"<"!=prev1,'"'==chr,"'"==chr,chr+next1+text[pos+1]+text[pos+2]=="\x3c!--",chr+next1=="/*",chr+next1=="//","#"==chr][--tokenType];);token+=chr}}(el)},exports.mapToList=function mapToList(map){var keyNames=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";var collectedKeys=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_immutable2.default.Map();if(!_immutable2.default.Map.isMap(map)||!map.size)return _immutable2.default.List();Array.isArray(keyNames)||(keyNames=[keyNames]);if(keyNames.length<1)return map.merge(collectedKeys);var list=_immutable2.default.List();var keyName=keyNames[0];var _iteratorNormalCompletion=!0;var _didIteratorError=!1;var _iteratorError=void 0;try{for(var _step,_iterator=(0,_getIterator3.default)(map.entries());!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var entry=_step.value,_entry=(0,_slicedToArray3.default)(entry,2),key=_entry[0],val=_entry[1],nextList=mapToList(val,keyNames.slice(1),collectedKeys.set(keyName,key));list=_immutable2.default.List.isList(nextList)?list.concat(nextList):list.push(nextList)}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{!_iteratorNormalCompletion&&_iterator.return&&_iterator.return()}finally{if(_didIteratorError)throw _iteratorError}}return list},exports.extractFileNameFromContentDispositionHeader=function(value){var responseFilename=/filename="([^;]*);?"/i.exec(value);null===responseFilename&&(responseFilename=/filename=([^;]*);?/i.exec(value));if(null!==responseFilename&&responseFilename.length>1)return responseFilename[1];return null},exports.pascalCase=pascalCase,exports.pascalCaseFilename=function(filename){return pascalCase(filename.replace(/\.[^./]*$/,""))},exports.sanitizeUrl=function(url){if("string"!=typeof url||""===url)return"";return(0,_sanitizeUrl.sanitizeUrl)(url)},exports.getAcceptControllingResponse=function(responses){if(!_immutable2.default.OrderedMap.isOrderedMap(responses))return null;if(!responses.size)return null;var suitable2xxResponse=responses.find(function(res,k){return k.startsWith("2")&&(0,_keys2.default)(res.get("content")||{}).length>0}),defaultResponse=responses.get("default")||_immutable2.default.OrderedMap(),suitableDefaultResponse=(defaultResponse.get("content")||_immutable2.default.OrderedMap()).keySeq().toJS().length?defaultResponse:null;return suitable2xxResponse||suitableDefaultResponse},exports.deeplyStripKey=function deeplyStripKey(input,keyToStrip){var predicate=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};if("object"!==(void 0===input?"undefined":(0,_typeof3.default)(input))||Array.isArray(input)||!keyToStrip)return input;var obj=(0,_assign2.default)({},input);(0,_keys2.default)(obj).forEach(function(k){k===keyToStrip&&predicate(obj[k],k)?delete obj[k]:obj[k]=deeplyStripKey(obj[k],keyToStrip,predicate)});return obj};var _immutable2=_interopRequireDefault(__webpack_require__(7)),_sanitizeUrl=__webpack_require__(288),_camelCase2=_interopRequireDefault(__webpack_require__(575)),_upperFirst2=_interopRequireDefault(__webpack_require__(278)),_memoize3=_interopRequireDefault(__webpack_require__(275)),_find2=_interopRequireDefault(__webpack_require__(270)),_some2=_interopRequireDefault(__webpack_require__(594)),_eq2=_interopRequireDefault(__webpack_require__(67)),_fn=__webpack_require__(99),_window2=_interopRequireDefault(__webpack_require__(23)),_css2=_interopRequireDefault(__webpack_require__(603));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var DEFAULT_RESPONSE_KEY="default",isImmutable=exports.isImmutable=function(maybe){return _immutable2.default.Iterable.isIterable(maybe)};function normalizeArray(arr){return Array.isArray(arr)?arr:[arr]}function isObject(obj){return!!obj&&"object"===(void 0===obj?"undefined":(0,_typeof3.default)(obj))}exports.memoize=_memoize3.default;function pascalCase(str){return(0,_upperFirst2.default)((0,_camelCase2.default)(str))}exports.propChecker=function(props,nextProps){var objectList=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],ignoreList=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return(0,_keys2.default)(props).length!==(0,_keys2.default)(nextProps).length||((0,_some2.default)(props,function(a,name){if(ignoreList.includes(name))return!1;var b=nextProps[name];return _immutable2.default.Iterable.isIterable(a)?!_immutable2.default.is(a,b):("object"!==(void 0===a?"undefined":(0,_typeof3.default)(a))||"object"!==(void 0===b?"undefined":(0,_typeof3.default)(b)))&&a!==b})||objectList.some(function(objectPropName){return!(0,_eq2.default)(props[objectPropName],nextProps[objectPropName])}))};var validateMaximum=exports.validateMaximum=function(val,max){if(val>max)return"Value must be less than Maximum"},validateMinimum=exports.validateMinimum=function(val,min){if(valmax)return"Value must be less than MaxLength"},validateMinLength=exports.validateMinLength=function(val,min){if(val.length2&&void 0!==arguments[2]&&arguments[2],errors=[],value=isXml&&"body"===param.get("in")?param.get("value_xml"):param.get("value"),required=param.get("required"),paramDetails=isOAS3?param.get("schema"):param;if(!paramDetails)return errors;var maximum=paramDetails.get("maximum"),minimum=paramDetails.get("minimum"),type=paramDetails.get("type"),format=paramDetails.get("format"),maxLength=paramDetails.get("maxLength"),minLength=paramDetails.get("minLength"),pattern=paramDetails.get("pattern");if(type&&(required||value)){var stringCheck="string"===type&&value,arrayCheck="array"===type&&Array.isArray(value)&&value.length,listCheck="array"===type&&_immutable2.default.List.isList(value)&&value.count(),fileCheck="file"===type&&value instanceof _window2.default.File,booleanCheck="boolean"===type&&(value||!1===value),numberCheck="number"===type&&(value||0===value),integerCheck="integer"===type&&(value||0===value),oas3ObjectCheck=!1;if(isOAS3&&"object"===type)if("object"===(void 0===value?"undefined":(0,_typeof3.default)(value)))oas3ObjectCheck=!0;else if("string"==typeof value)try{JSON.parse(value),oas3ObjectCheck=!0}catch(e){return errors.push("Parameter string value must be valid JSON"),errors}var passedAnyCheck=[stringCheck,arrayCheck,listCheck,fileCheck,booleanCheck,numberCheck,integerCheck,oas3ObjectCheck].some(function(v){return!!v});if(required&&!passedAnyCheck)return errors.push("Required field is not provided"),errors;if(pattern){var err=validatePattern(value,pattern);err&&errors.push(err)}if(maxLength||0===maxLength){var _err=validateMaxLength(value,maxLength);_err&&errors.push(_err)}if(minLength){var _err2=validateMinLength(value,minLength);_err2&&errors.push(_err2)}if(maximum||0===maximum){var _err3=validateMaximum(value,maximum);_err3&&errors.push(_err3)}if(minimum||0===minimum){var _err4=validateMinimum(value,minimum);_err4&&errors.push(_err4)}if("string"===type){var _err5=void 0;if(!(_err5="date-time"===format?validateDateTime(value):"uuid"===format?validateGuid(value):validateString(value)))return errors;errors.push(_err5)}else if("boolean"===type){var _err6=validateBoolean(value);if(!_err6)return errors;errors.push(_err6)}else if("number"===type){var _err7=validateNumber(value);if(!_err7)return errors;errors.push(_err7)}else if("integer"===type){var _err8=validateInteger(value);if(!_err8)return errors;errors.push(_err8)}else if("array"===type){var itemType;if(!listCheck||!value.count())return errors;itemType=paramDetails.getIn(["items","type"]),value.forEach(function(item,index){var err=void 0;"number"===itemType?err=validateNumber(item):"integer"===itemType?err=validateInteger(item):"string"===itemType&&(err=validateString(item)),err&&errors.push({index:index,error:err})})}else if("file"===type){var _err9=validateFile(value);if(!_err9)return errors;errors.push(_err9)}}return errors},exports.getSampleSchema=function(schema){var contentType=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",config=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(/xml/.test(contentType)){if(!schema.xml||!schema.xml.name){if(schema.xml=schema.xml||{},!schema.$$ref)return schema.type||schema.items||schema.properties||schema.additionalProperties?'\n\x3c!-- XML example cannot be generated --\x3e':null;var match=schema.$$ref.match(/\S*\/(\S+)$/);schema.xml.name=match[1]}return(0,_fn.memoizedCreateXMLExample)(schema,config)}return(0,_stringify2.default)((0,_fn.memoizedSampleFromSchema)(schema,config),null,2)},exports.parseSearch=function(){var map={},search=_window2.default.location.search;if(!search)return{};if(""!=search){var params=search.substr(1).split("&");for(var i in params)params.hasOwnProperty(i)&&(i=params[i].split("="),map[decodeURIComponent(i[0])]=i[1]&&decodeURIComponent(i[1])||"")}return map},exports.serializeSearch=function(searchMap){return(0,_keys2.default)(searchMap).map(function(k){return encodeURIComponent(k)+"="+encodeURIComponent(searchMap[k])}).join("&")},exports.btoa=function(str){return(str instanceof Buffer?str:new Buffer(str.toString(),"utf-8")).toString("base64")},exports.sorters={operationsSorter:{alpha:function(a,b){return a.get("path").localeCompare(b.get("path"))},method:function(a,b){return a.get("method").localeCompare(b.get("method"))}},tagsSorter:{alpha:function(a,b){return a.localeCompare(b)}}},exports.buildFormData=function(data){var formArr=[];for(var name in data){var val=data[name];void 0!==val&&""!==val&&formArr.push([name,"=",encodeURIComponent(val).replace(/%20/g,"+")].join(""))}return formArr.join("&")},exports.shallowEqualKeys=function(a,b,keys){return!!(0,_find2.default)(keys,function(key){return(0,_eq2.default)(a[key],b[key])})};var createDeepLinkPath=exports.createDeepLinkPath=function(str){return"string"==typeof str||str instanceof String?str.trim().replace(/\s/g,"_"):""};exports.escapeDeepLinkPath=function(str){return(0,_css2.default)(createDeepLinkPath(str))},exports.getExtensions=function(defObj){return defObj.filter(function(v,k){return/^x-/.test(k)})},exports.getCommonExtensions=function(defObj){return defObj.filter(function(v,k){return/^pattern|maxLength|minLength|maximum|minimum/.test(k)})}}).call(exports,__webpack_require__(406).Buffer)},function(module,exports){module.exports=require("react-immutable-proptypes")},function(module,exports){var core=module.exports={version:"2.5.1"};"number"==typeof __e&&(__e=core)},function(module,exports,__webpack_require__){var store=__webpack_require__(242)("wks"),uid=__webpack_require__(126),Symbol=__webpack_require__(20).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _isIterable3=_interopRequireDefault(__webpack_require__(350)),_getIterator3=_interopRequireDefault(__webpack_require__(71));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default=function(){return function(arr,i){if(Array.isArray(arr))return arr;if((0,_isIterable3.default)(Object(arr)))return function(arr,i){var _arr=[],_n=!0,_d=!1,_e=void 0;try{for(var _s,_i=(0,_getIterator3.default)(arr);!(_n=(_s=_i.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{!_n&&_i.return&&_i.return()}finally{if(_d)throw _e}}return _arr}(arr,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(module,exports,__webpack_require__){var store=__webpack_require__(111)("wks"),uid=__webpack_require__(76),Symbol=__webpack_require__(18).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(360),__esModule:!0}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var obj,_defineProperty=__webpack_require__(215),_defineProperty2=(obj=_defineProperty)&&obj.__esModule?obj:{default:obj};exports.default=function(obj,key,value){return key in obj?(0,_defineProperty2.default)(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var obj,_assign=__webpack_require__(15),_assign2=(obj=_assign)&&obj.__esModule?obj:{default:obj};exports.default=_assign2.default||function(target){for(var i=1;i"+S+""};module.exports=function(NAME,exec){var O={};O[NAME]=exec(createHTML),$export($export.P+$export.F*fails(function(){var test=""[NAME]('"');return test!==test.toLowerCase()||test.split('"').length>3}),"String",O)}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _extends3=_interopRequireDefault(__webpack_require__(17));exports.isOAS3=isOAS3,exports.isSwagger2=function(jsSpec){var swaggerVersion=jsSpec.get("swagger");if(!swaggerVersion)return!1;return swaggerVersion.startsWith("2.0")},exports.OAS3ComponentWrapFactory=function(Component){return function(Ori,system){return function(props){if(system&&system.specSelectors&&system.specSelectors.specJson){var spec=system.specSelectors.specJson();return isOAS3(spec)?_react2.default.createElement(Component,(0,_extends3.default)({},props,system,{Ori:Ori})):_react2.default.createElement(Ori,props)}return console.warn("OAS3 wrapper: couldn't get spec"),null}}};var _react2=_interopRequireDefault(__webpack_require__(0));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function isOAS3(jsSpec){var oasVersion=jsSpec.get("openapi");return!!oasVersion&&oasVersion.startsWith("3.0.")}},function(module,exports,__webpack_require__){"use strict";var obj,_getIterator2=__webpack_require__(71),_getIterator3=(obj=_getIterator2)&&obj.__esModule?obj:{default:obj};module.exports=function(){var win={location:{},history:{},open:function(){},close:function(){},File:function(){}};if("undefined"==typeof window)return win;try{win=window;var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _step,_iterator=(0,_getIterator3.default)(["File","Blob","FormData"]);!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var prop=_step.value;prop in window&&(win[prop]=window[prop])}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{!_iteratorNormalCompletion&&_iterator.return&&_iterator.return()}finally{if(_didIteratorError)throw _iteratorError}}}catch(e){console.error(e)}return win}()},function(module,exports,__webpack_require__){var global=__webpack_require__(18),core=__webpack_require__(10),ctx=__webpack_require__(44),hide=__webpack_require__(38),$export=function(type,name,source){var key,own,out,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports.prototype,target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{}).prototype;for(key in IS_GLOBAL&&(source=name),source)(own=!IS_FORCED&&target&&void 0!==target[key])&&key in exports||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeof target[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b)}return new C(a,b,c)}return C.apply(this,arguments)};return F.prototype=C.prototype,F}(out):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,IS_PROTO&&((exports.virtual||(exports.virtual={}))[key]=out,type&$export.R&&expProto&&!expProto[key]&&hide(expProto,key,out)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports,__webpack_require__){var freeGlobal=__webpack_require__(261),freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")();module.exports=root},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(359),__esModule:!0}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(39);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports){module.exports=function(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(364),__esModule:!0}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var _iterator2=_interopRequireDefault(__webpack_require__(354)),_symbol2=_interopRequireDefault(__webpack_require__(353)),_typeof="function"==typeof _symbol2.default&&"symbol"==typeof _iterator2.default?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof _symbol2.default&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?"symbol":typeof obj};function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.default="function"==typeof _symbol2.default&&"symbol"===_typeof(_iterator2.default)?function(obj){return void 0===obj?"undefined":_typeof(obj)}:function(obj){return obj&&"function"==typeof _symbol2.default&&obj.constructor===_symbol2.default&&obj!==_symbol2.default.prototype?"symbol":void 0===obj?"undefined":_typeof(obj)}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27),IE8_DOM_DEFINE=__webpack_require__(217),toPrimitive=__webpack_require__(114),dP=Object.defineProperty;exports.f=__webpack_require__(33)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports){module.exports=function(value){return null!=value&&"object"==typeof value}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(45)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){var core=module.exports={version:"2.5.7"};"number"==typeof __e&&(__e=core)},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports){module.exports=require("reselect")},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(31),createDesc=__webpack_require__(57);module.exports=__webpack_require__(33)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(48);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){var dP=__webpack_require__(82),createDesc=__webpack_require__(241);module.exports=__webpack_require__(61)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(50),getRawTag=__webpack_require__(528),objectToString=__webpack_require__(558),nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol?Symbol.toStringTag:void 0;module.exports=function(value){return null==value?void 0===value?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}},function(module,exports,__webpack_require__){var baseIsNative=__webpack_require__(490),getValue=__webpack_require__(529);module.exports=function(object,key){var value=getValue(object,key);return baseIsNative(value)?value:void 0}},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(72);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(218),defined=__webpack_require__(104);module.exports=function(it){return IObject(defined(it))}},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports,__webpack_require__){var global=__webpack_require__(20),hide=__webpack_require__(41),has=__webpack_require__(81),SRC=__webpack_require__(126)("src"),$toString=Function.toString,TPL=(""+$toString).split("toString");__webpack_require__(34).inspectSource=function(it){return $toString.call(it)},(module.exports=function(O,key,val,safe){var isFunction="function"==typeof val;isFunction&&(has(val,"name")||hide(val,"name",key)),O[key]!==val&&(isFunction&&(has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)))),O===global?O[key]=val:safe?O[key]?O[key]=val:hide(O,key,val):(delete O[key],hide(O,key,val)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[SRC]||$toString.call(this)})},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(25).Symbol;module.exports=Symbol},function(module,exports,__webpack_require__){var isSymbol=__webpack_require__(92),INFINITY=1/0;module.exports=function(value){if("string"==typeof value||isSymbol(value))return value;var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}},function(module,exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(249),baseKeys=__webpack_require__(493),isArrayLike=__webpack_require__(68);module.exports=function(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0,exports.default=function(obj,keys){var target={};for(var i in obj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);return target}},function(module,exports,__webpack_require__){"use strict";exports.__esModule=!0;var obj,_from=__webpack_require__(349),_from2=(obj=_from)&&obj.__esModule?obj:{default:obj};exports.default=function(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i=O.length?{value:void 0,done:!0}:(point=$at(O,index),this._i+=point.length,{value:point,done:!1})})},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(62)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(83),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports,__webpack_require__){var isArray=__webpack_require__(14),isKey=__webpack_require__(137),stringToPath=__webpack_require__(572),toString=__webpack_require__(69);module.exports=function(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}},function(module,exports,__webpack_require__){var assignValue=__webpack_require__(131),baseAssignValue=__webpack_require__(253);module.exports=function(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index0&&void 0!==arguments[0]?arguments[0]:{};return{type:CLEAR,payload:filter}},exports.clearBy=function(){var filter=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return{type:CLEAR_BY,payload:filter}};var obj,_serializeError=__webpack_require__(145),_serializeError2=(obj=_serializeError)&&obj.__esModule?obj:{default:obj};var NEW_THROWN_ERR=exports.NEW_THROWN_ERR="err_new_thrown_err",NEW_THROWN_ERR_BATCH=exports.NEW_THROWN_ERR_BATCH="err_new_thrown_err_batch",NEW_SPEC_ERR=exports.NEW_SPEC_ERR="err_new_spec_err",NEW_SPEC_ERR_BATCH=exports.NEW_SPEC_ERR_BATCH="err_new_spec_err_batch",NEW_AUTH_ERR=exports.NEW_AUTH_ERR="err_new_auth_err",CLEAR=exports.CLEAR="err_clear",CLEAR_BY=exports.CLEAR_BY="err_clear_by"},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(357),__esModule:!0}},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports){module.exports=!0},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){var def=__webpack_require__(31).f,has=__webpack_require__(37),TAG=__webpack_require__(13)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports,__webpack_require__){__webpack_require__(392);for(var global=__webpack_require__(18),hide=__webpack_require__(38),Iterators=__webpack_require__(46),TO_STRING_TAG=__webpack_require__(13)("toStringTag"),DOMIterables="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),i=0;i0?floor:ceil)(it)}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(415),defined=__webpack_require__(35);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var listCacheClear=__webpack_require__(544),listCacheDelete=__webpack_require__(545),listCacheGet=__webpack_require__(546),listCacheHas=__webpack_require__(547),listCacheSet=__webpack_require__(548);function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index-1&&value%1==0&&value1&&void 0!==arguments[1])||arguments[1];return thing=(0,_utils.normalizeArray)(thing),{type:SHOW,payload:{thing:thing,shown:shown}}},exports.changeMode=function(thing){var mode=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return thing=(0,_utils.normalizeArray)(thing),{type:UPDATE_MODE,payload:{thing:thing,mode:mode}}};var _utils=__webpack_require__(8),UPDATE_LAYOUT=exports.UPDATE_LAYOUT="layout_update_layout",UPDATE_FILTER=exports.UPDATE_FILTER="layout_update_filter",UPDATE_MODE=exports.UPDATE_MODE="layout_update_mode",SHOW=exports.SHOW="layout_show"},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setSelectedServer=function(selectedServerUrl,namespace){return{type:UPDATE_SELECTED_SERVER,payload:{selectedServerUrl:selectedServerUrl,namespace:namespace}}},exports.setRequestBodyValue=function(_ref){var value=_ref.value,pathMethod=_ref.pathMethod;return{type:UPDATE_REQUEST_BODY_VALUE,payload:{value:value,pathMethod:pathMethod}}},exports.setRequestContentType=function(_ref2){var value=_ref2.value,pathMethod=_ref2.pathMethod;return{type:UPDATE_REQUEST_CONTENT_TYPE,payload:{value:value,pathMethod:pathMethod}}},exports.setResponseContentType=function(_ref3){var value=_ref3.value,path=_ref3.path,method=_ref3.method;return{type:UPDATE_RESPONSE_CONTENT_TYPE,payload:{value:value,path:path,method:method}}},exports.setServerVariableValue=function(_ref4){var server=_ref4.server,namespace=_ref4.namespace,key=_ref4.key,val=_ref4.val;return{type:UPDATE_SERVER_VARIABLE_VALUE,payload:{server:server,namespace:namespace,key:key,val:val}}};var UPDATE_SELECTED_SERVER=exports.UPDATE_SELECTED_SERVER="oas3_set_servers",UPDATE_REQUEST_BODY_VALUE=exports.UPDATE_REQUEST_BODY_VALUE="oas3_set_request_body_value",UPDATE_REQUEST_CONTENT_TYPE=exports.UPDATE_REQUEST_CONTENT_TYPE="oas3_set_request_content_type",UPDATE_RESPONSE_CONTENT_TYPE=exports.UPDATE_RESPONSE_CONTENT_TYPE="oas3_set_response_content_type",UPDATE_SERVER_VARIABLE_VALUE=exports.UPDATE_SERVER_VARIABLE_VALUE="oas3_set_server_variable_value"},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.memoizedSampleFromSchema=exports.memoizedCreateXMLExample=exports.sampleXmlFromSchema=exports.inferSchema=exports.sampleFromSchema=void 0,exports.createXMLExample=createXMLExample;var _utils=__webpack_require__(8),_xml2=_interopRequireDefault(__webpack_require__(619)),_memoizee2=_interopRequireDefault(__webpack_require__(608));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var primitives={string:function(){return"string"},string_email:function(){return"user@example.com"},"string_date-time":function(){return(new Date).toISOString()},number:function(){return 0},number_float:function(){return 0},integer:function(){return 0},boolean:function(schema){return"boolean"!=typeof schema.default||schema.default}},primitive=function(schema){var _schema=schema=(0,_utils.objectify)(schema),type=_schema.type,format=_schema.format,fn=primitives[type+"_"+format]||primitives[type];return(0,_utils.isFunc)(fn)?fn(schema):"Unknown Type: "+schema.type},sampleFromSchema=exports.sampleFromSchema=function sampleFromSchema(schema){var config=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_objectify=(0,_utils.objectify)(schema),type=_objectify.type,example=_objectify.example,properties=_objectify.properties,additionalProperties=_objectify.additionalProperties,items=_objectify.items,includeReadOnly=config.includeReadOnly,includeWriteOnly=config.includeWriteOnly;if(void 0!==example)return(0,_utils.deeplyStripKey)(example,"$$ref",function(val){return"string"==typeof val&&val.indexOf("#")>-1});if(!type)if(properties)type="object";else{if(!items)return;type="array"}if("object"===type){var props=(0,_utils.objectify)(properties),obj={};for(var name in props)props[name].readOnly&&!includeReadOnly||props[name].writeOnly&&!includeWriteOnly||(obj[name]=sampleFromSchema(props[name],config));if(!0===additionalProperties)obj.additionalProp1={};else if(additionalProperties)for(var additionalProps=(0,_utils.objectify)(additionalProperties),additionalPropVal=sampleFromSchema(additionalProps,config),i=1;i<4;i++)obj["additionalProp"+i]=additionalPropVal;return obj}return"array"===type?Array.isArray(items.anyOf)?items.anyOf.map(function(i){return sampleFromSchema(i,config)}):Array.isArray(items.oneOf)?items.oneOf.map(function(i){return sampleFromSchema(i,config)}):[sampleFromSchema(items,config)]:schema.enum?schema.default?schema.default:(0,_utils.normalizeArray)(schema.enum)[0]:"file"!==type?primitive(schema):void 0},sampleXmlFromSchema=(exports.inferSchema=function(thing){return thing.schema&&(thing=thing.schema),thing.properties&&(thing.type="object"),thing},exports.sampleXmlFromSchema=function sampleXmlFromSchema(schema){var displayName,config=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},objectifySchema=(0,_utils.objectify)(schema),type=objectifySchema.type,properties=objectifySchema.properties,additionalProperties=objectifySchema.additionalProperties,items=objectifySchema.items,example=objectifySchema.example,includeReadOnly=config.includeReadOnly,includeWriteOnly=config.includeWriteOnly,defaultValue=objectifySchema.default,res={},_attr={},xml=schema.xml,name=xml.name,prefix=xml.prefix,namespace=xml.namespace,enumValue=objectifySchema.enum,value=void 0;if(!type)if(properties||additionalProperties)type="object";else{if(!items)return;type="array"}(name=name||"notagname",displayName=(prefix?prefix+":":"")+name,namespace)&&(_attr[prefix?"xmlns:"+prefix:"xmlns"]=namespace);if("array"===type&&items){if(items.xml=items.xml||xml||{},items.xml.name=items.xml.name||xml.name,xml.wrapped)return res[displayName]=[],Array.isArray(example)?example.forEach(function(v){items.example=v,res[displayName].push(sampleXmlFromSchema(items,config))}):Array.isArray(defaultValue)?defaultValue.forEach(function(v){items.default=v,res[displayName].push(sampleXmlFromSchema(items,config))}):res[displayName]=[sampleXmlFromSchema(items,config)],_attr&&res[displayName].push({_attr:_attr}),res;var _res=[];return Array.isArray(example)?(example.forEach(function(v){items.example=v,_res.push(sampleXmlFromSchema(items,config))}),_res):Array.isArray(defaultValue)?(defaultValue.forEach(function(v){items.default=v,_res.push(sampleXmlFromSchema(items,config))}),_res):sampleXmlFromSchema(items,config)}if("object"===type){var props=(0,_utils.objectify)(properties);for(var propName in res[displayName]=[],example=example||{},props)if(props.hasOwnProperty(propName)&&(!props[propName].readOnly||includeReadOnly)&&(!props[propName].writeOnly||includeWriteOnly))if(props[propName].xml=props[propName].xml||{},props[propName].xml.attribute){var enumAttrVal=Array.isArray(props[propName].enum)&&props[propName].enum[0],attrExample=props[propName].example,attrDefault=props[propName].default;_attr[props[propName].xml.name||propName]=void 0!==attrExample&&attrExample||void 0!==example[propName]&&example[propName]||void 0!==attrDefault&&attrDefault||enumAttrVal||primitive(props[propName])}else{props[propName].xml.name=props[propName].xml.name||propName,void 0===props[propName].example&&void 0!==example[propName]&&(props[propName].example=example[propName]);var t=sampleXmlFromSchema(props[propName]);Array.isArray(t)?res[displayName]=res[displayName].concat(t):res[displayName].push(t)}return!0===additionalProperties?res[displayName].push({additionalProp:"Anything can be here"}):additionalProperties&&res[displayName].push({additionalProp:primitive(additionalProperties)}),_attr&&res[displayName].push({_attr:_attr}),res}return value=void 0!==example?example:void 0!==defaultValue?defaultValue:Array.isArray(enumValue)?enumValue[0]:primitive(schema),res[displayName]=_attr?[{_attr:_attr},value]:value,res});function createXMLExample(schema,config){var json=sampleXmlFromSchema(schema,config);if(json)return(0,_xml2.default)(json,{declaration:!0,indent:"\t"})}exports.memoizedCreateXMLExample=(0,_memoizee2.default)(createXMLExample),exports.memoizedSampleFromSchema=(0,_memoizee2.default)(sampleFromSchema)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.execute=exports.executeRequest=exports.logRequest=exports.setMutatedRequest=exports.setRequest=exports.setResponse=exports.validateParams=exports.invalidateResolvedSubtreeCache=exports.updateResolvedSubtree=exports.requestResolvedSubtree=exports.resolveSpec=exports.parseToJson=exports.SET_SCHEME=exports.UPDATE_RESOLVED_SUBTREE=exports.UPDATE_RESOLVED=exports.UPDATE_OPERATION_META_VALUE=exports.CLEAR_VALIDATE_PARAMS=exports.CLEAR_REQUEST=exports.CLEAR_RESPONSE=exports.LOG_REQUEST=exports.SET_MUTATED_REQUEST=exports.SET_REQUEST=exports.SET_RESPONSE=exports.VALIDATE_PARAMS=exports.UPDATE_PARAM=exports.UPDATE_JSON=exports.UPDATE_URL=exports.UPDATE_SPEC=void 0;var _extends3=_interopRequireDefault(__webpack_require__(17)),_objectWithoutProperties3=_interopRequireDefault(__webpack_require__(53)),_assign2=_interopRequireDefault(__webpack_require__(15)),_keys2=_interopRequireDefault(__webpack_require__(29)),_promise2=_interopRequireDefault(__webpack_require__(102)),_regenerator2=_interopRequireDefault(__webpack_require__(405)),_asyncToGenerator3=_interopRequireDefault(__webpack_require__(355)),_typeof3=_interopRequireDefault(__webpack_require__(30));exports.updateSpec=function(spec){var cleanSpec=toStr(spec).replace(/\t/g," ");if("string"==typeof spec)return{type:UPDATE_SPEC,payload:cleanSpec}},exports.updateResolved=function(spec){return{type:UPDATE_RESOLVED,payload:spec}},exports.updateUrl=function(url){return{type:UPDATE_URL,payload:url}},exports.updateJsonSpec=function(json){return{type:UPDATE_JSON,payload:json}},exports.changeParam=function(path,paramName,paramIn,value,isXml){return{type:UPDATE_PARAM,payload:{path:path,value:value,paramName:paramName,paramIn:paramIn,isXml:isXml}}},exports.clearValidateParams=function(payload){return{type:CLEAR_VALIDATE_PARAMS,payload:{pathMethod:payload}}},exports.changeConsumesValue=function(path,value){return{type:UPDATE_OPERATION_META_VALUE,payload:{path:path,value:value,key:"consumes_value"}}},exports.changeProducesValue=function(path,value){return{type:UPDATE_OPERATION_META_VALUE,payload:{path:path,value:value,key:"produces_value"}}},exports.clearResponse=function(path,method){return{type:CLEAR_RESPONSE,payload:{path:path,method:method}}},exports.clearRequest=function(path,method){return{type:CLEAR_REQUEST,payload:{path:path,method:method}}},exports.setScheme=function(scheme,path,method){return{type:SET_SCHEME,payload:{scheme:scheme,path:path,method:method}}};var _jsYaml2=_interopRequireDefault(__webpack_require__(282)),_immutable=__webpack_require__(7),_urlParse2=_interopRequireDefault(__webpack_require__(146)),_serializeError2=_interopRequireDefault(__webpack_require__(145)),_isString2=_interopRequireDefault(__webpack_require__(586)),_debounce2=_interopRequireDefault(__webpack_require__(578)),_set2=_interopRequireDefault(__webpack_require__(593)),_utils=__webpack_require__(8);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var UPDATE_SPEC=exports.UPDATE_SPEC="spec_update_spec",UPDATE_URL=exports.UPDATE_URL="spec_update_url",UPDATE_JSON=exports.UPDATE_JSON="spec_update_json",UPDATE_PARAM=exports.UPDATE_PARAM="spec_update_param",VALIDATE_PARAMS=exports.VALIDATE_PARAMS="spec_validate_param",SET_RESPONSE=exports.SET_RESPONSE="spec_set_response",SET_REQUEST=exports.SET_REQUEST="spec_set_request",SET_MUTATED_REQUEST=exports.SET_MUTATED_REQUEST="spec_set_mutated_request",LOG_REQUEST=exports.LOG_REQUEST="spec_log_request",CLEAR_RESPONSE=exports.CLEAR_RESPONSE="spec_clear_response",CLEAR_REQUEST=exports.CLEAR_REQUEST="spec_clear_request",CLEAR_VALIDATE_PARAMS=exports.CLEAR_VALIDATE_PARAMS="spec_clear_validate_param",UPDATE_OPERATION_META_VALUE=exports.UPDATE_OPERATION_META_VALUE="spec_update_operation_meta_value",UPDATE_RESOLVED=exports.UPDATE_RESOLVED="spec_update_resolved",UPDATE_RESOLVED_SUBTREE=exports.UPDATE_RESOLVED_SUBTREE="spec_update_resolved_subtree",SET_SCHEME=exports.SET_SCHEME="set_scheme",toStr=function(str){return(0,_isString2.default)(str)?str:""};exports.parseToJson=function(str){return function(_ref){var specActions=_ref.specActions,specSelectors=_ref.specSelectors,errActions=_ref.errActions,specStr=specSelectors.specStr,json=null;try{str=str||specStr(),errActions.clear({source:"parser"}),json=_jsYaml2.default.safeLoad(str)}catch(e){return console.error(e),errActions.newSpecErr({source:"parser",level:"error",message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return json&&"object"===(void 0===json?"undefined":(0,_typeof3.default)(json))?specActions.updateJsonSpec(json):{}}};var hasWarnedAboutResolveSpecDeprecation=!1,requestBatch=(exports.resolveSpec=function(json,url){return function(_ref2){var specActions=_ref2.specActions,specSelectors=_ref2.specSelectors,errActions=_ref2.errActions,_ref2$fn=_ref2.fn,fetch=_ref2$fn.fetch,resolve=_ref2$fn.resolve,AST=_ref2$fn.AST,getConfigs=_ref2.getConfigs;hasWarnedAboutResolveSpecDeprecation||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),hasWarnedAboutResolveSpecDeprecation=!0);var _getConfigs=getConfigs(),modelPropertyMacro=_getConfigs.modelPropertyMacro,parameterMacro=_getConfigs.parameterMacro,requestInterceptor=_getConfigs.requestInterceptor,responseInterceptor=_getConfigs.responseInterceptor;void 0===json&&(json=specSelectors.specJson()),void 0===url&&(url=specSelectors.url());var getLineNumberForPath=AST.getLineNumberForPath,specStr=specSelectors.specStr();return resolve({fetch:fetch,spec:json,baseDoc:url,modelPropertyMacro:modelPropertyMacro,parameterMacro:parameterMacro,requestInterceptor:requestInterceptor,responseInterceptor:responseInterceptor}).then(function(_ref3){var spec=_ref3.spec,errors=_ref3.errors;if(errActions.clear({type:"thrown"}),Array.isArray(errors)&&errors.length>0){var preparedErrors=errors.map(function(err){return console.error(err),err.line=err.fullPath?getLineNumberForPath(specStr,err.fullPath):null,err.path=err.fullPath?err.fullPath.join("."):null,err.level="error",err.type="thrown",err.source="resolver",Object.defineProperty(err,"message",{enumerable:!0,value:err.message}),err});errActions.newThrownErrBatch(preparedErrors)}return specActions.updateResolved(spec)})}},[]),debResolveSubtrees=(0,_debounce2.default)((0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(){var system,errActions,errSelectors,_system$fn,resolveSubtree,getLineNumberForPath,specSelectors,specActions,specStr,_system$getConfigs,modelPropertyMacro,parameterMacro,requestInterceptor,responseInterceptor,batchResult;return _regenerator2.default.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(system=requestBatch.system){_context2.next=4;break}return console.error("debResolveSubtrees: don't have a system to operate on, aborting."),_context2.abrupt("return");case 4:if(errActions=system.errActions,errSelectors=system.errSelectors,_system$fn=system.fn,resolveSubtree=_system$fn.resolveSubtree,getLineNumberForPath=_system$fn.AST.getLineNumberForPath,specSelectors=system.specSelectors,specActions=system.specActions,resolveSubtree){_context2.next=8;break}return console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing."),_context2.abrupt("return");case 8:return specStr=specSelectors.specStr(),_system$getConfigs=system.getConfigs(),modelPropertyMacro=_system$getConfigs.modelPropertyMacro,parameterMacro=_system$getConfigs.parameterMacro,requestInterceptor=_system$getConfigs.requestInterceptor,responseInterceptor=_system$getConfigs.responseInterceptor,_context2.prev=10,_context2.next=13,requestBatch.reduce(function(){var _ref5=(0,_asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(prev,path){var _ref6,resultMap,specWithCurrentSubtrees,_ref7,errors,spec,preparedErrors;return _regenerator2.default.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,prev;case 2:return _ref6=_context.sent,resultMap=_ref6.resultMap,specWithCurrentSubtrees=_ref6.specWithCurrentSubtrees,_context.next=7,resolveSubtree(specWithCurrentSubtrees,path,{baseDoc:specSelectors.url(),modelPropertyMacro:modelPropertyMacro,parameterMacro:parameterMacro,requestInterceptor:requestInterceptor,responseInterceptor:responseInterceptor});case 7:return _ref7=_context.sent,errors=_ref7.errors,spec=_ref7.spec,errSelectors.allErrors().size&&errActions.clear({type:"thrown"}),Array.isArray(errors)&&errors.length>0&&(preparedErrors=errors.map(function(err){return err.line=err.fullPath?getLineNumberForPath(specStr,err.fullPath):null,err.path=err.fullPath?err.fullPath.join("."):null,err.level="error",err.type="thrown",err.source="resolver",Object.defineProperty(err,"message",{enumerable:!0,value:err.message}),err}),errActions.newThrownErrBatch(preparedErrors)),(0,_set2.default)(resultMap,path,spec),(0,_set2.default)(specWithCurrentSubtrees,path,spec),_context.abrupt("return",{resultMap:resultMap,specWithCurrentSubtrees:specWithCurrentSubtrees});case 15:case"end":return _context.stop()}},_callee,void 0)}));return function(_x,_x2){return _ref5.apply(this,arguments)}}(),_promise2.default.resolve({resultMap:(specSelectors.specResolvedSubtree([])||(0,_immutable.Map)()).toJS(),specWithCurrentSubtrees:specSelectors.specJson().toJS()}));case 13:batchResult=_context2.sent,delete requestBatch.system,requestBatch=[],_context2.next=21;break;case 18:_context2.prev=18,_context2.t0=_context2.catch(10),console.error(_context2.t0);case 21:specActions.updateResolvedSubtree([],batchResult.resultMap);case 22:case"end":return _context2.stop()}},_callee2,void 0,[[10,18]])})),35);exports.requestResolvedSubtree=function(path){return function(system){requestBatch.push(path),requestBatch.system=system,debResolveSubtrees()}};exports.updateResolvedSubtree=function(path,value){return{type:UPDATE_RESOLVED_SUBTREE,payload:{path:path,value:value}}},exports.invalidateResolvedSubtreeCache=function(){return{type:UPDATE_RESOLVED_SUBTREE,payload:{path:[],value:(0,_immutable.Map)()}}},exports.validateParams=function(payload,isOAS3){return{type:VALIDATE_PARAMS,payload:{pathMethod:payload,isOAS3:isOAS3}}};exports.setResponse=function(path,method,res){return{payload:{path:path,method:method,res:res},type:SET_RESPONSE}},exports.setRequest=function(path,method,req){return{payload:{path:path,method:method,req:req},type:SET_REQUEST}},exports.setMutatedRequest=function(path,method,req){return{payload:{path:path,method:method,req:req},type:SET_MUTATED_REQUEST}},exports.logRequest=function(req){return{payload:req,type:LOG_REQUEST}},exports.executeRequest=function(req){return function(_ref8){var fn=_ref8.fn,specActions=_ref8.specActions,specSelectors=_ref8.specSelectors,getConfigs=_ref8.getConfigs,oas3Selectors=_ref8.oas3Selectors,pathName=req.pathName,method=req.method,operation=req.operation,_getConfigs2=getConfigs(),requestInterceptor=_getConfigs2.requestInterceptor,responseInterceptor=_getConfigs2.responseInterceptor,op=operation.toJS();if(req.contextUrl=(0,_urlParse2.default)(specSelectors.url()).toString(),op&&op.operationId?req.operationId=op.operationId:op&&pathName&&method&&(req.operationId=fn.opId(op,pathName,method)),specSelectors.isOAS3()){var namespace=pathName+":"+method;req.server=oas3Selectors.selectedServer(namespace)||oas3Selectors.selectedServer();var namespaceVariables=oas3Selectors.serverVariables({server:req.server,namespace:namespace}).toJS(),globalVariables=oas3Selectors.serverVariables({server:req.server}).toJS();req.serverVariables=(0,_keys2.default)(namespaceVariables).length?namespaceVariables:globalVariables,req.requestContentType=oas3Selectors.requestContentType(pathName,method),req.responseContentType=oas3Selectors.responseContentType(pathName,method)||"*/*";var requestBody=oas3Selectors.requestBodyValue(pathName,method);(0,_utils.isJSONObject)(requestBody)?req.requestBody=JSON.parse(requestBody):requestBody&&requestBody.toJS?req.requestBody=requestBody.toJS():req.requestBody=requestBody}var parsedRequest=(0,_assign2.default)({},req);parsedRequest=fn.buildRequest(parsedRequest),specActions.setRequest(req.pathName,req.method,parsedRequest);req.requestInterceptor=function(r){var mutatedRequest=requestInterceptor.apply(this,[r]),parsedMutatedRequest=(0,_assign2.default)({},mutatedRequest);return specActions.setMutatedRequest(req.pathName,req.method,parsedMutatedRequest),mutatedRequest},req.responseInterceptor=responseInterceptor;var startTime=Date.now();return fn.execute(req).then(function(res){res.duration=Date.now()-startTime,specActions.setResponse(req.pathName,req.method,res)}).catch(function(err){return specActions.setResponse(req.pathName,req.method,{error:!0,err:(0,_serializeError2.default)(err)})})}};exports.execute=function(){var _ref9=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},path=_ref9.path,method=_ref9.method,extras=(0,_objectWithoutProperties3.default)(_ref9,["path","method"]);return function(system){var fetch=system.fn.fetch,specSelectors=system.specSelectors,specActions=system.specActions,spec=specSelectors.specJsonWithResolvedSubtrees().toJS(),scheme=specSelectors.operationScheme(path,method),_specSelectors$conten=specSelectors.contentTypeValues([path,method]).toJS(),requestContentType=_specSelectors$conten.requestContentType,responseContentType=_specSelectors$conten.responseContentType,isXml=/xml/i.test(requestContentType),parameters=specSelectors.parameterValues([path,method],isXml).toJS();return specActions.executeRequest((0,_extends3.default)({},extras,{fetch:fetch,spec:spec,pathName:path,method:method,parameters:parameters,requestContentType:requestContentType,scheme:scheme,responseContentType:responseContentType}))}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.validateBeforeExecute=exports.canExecuteScheme=exports.operationScheme=exports.hasHost=exports.parameterWithMeta=exports.operationWithMeta=exports.allowTryItOutFor=exports.mutatedRequestFor=exports.requestFor=exports.responseFor=exports.mutatedRequests=exports.requests=exports.responses=exports.taggedOperations=exports.operationsWithTags=exports.tagDetails=exports.tags=exports.operationsWithRootInherited=exports.schemes=exports.host=exports.basePath=exports.definitions=exports.findDefinition=exports.securityDefinitions=exports.security=exports.produces=exports.consumes=exports.operations=exports.paths=exports.semver=exports.version=exports.externalDocs=exports.info=exports.isOAS3=exports.spec=exports.specJsonWithResolvedSubtrees=exports.specResolvedSubtree=exports.specResolved=exports.specJson=exports.specSource=exports.specStr=exports.url=exports.lastError=void 0;var obj,_toConsumableArray2=__webpack_require__(54),_toConsumableArray3=(obj=_toConsumableArray2)&&obj.__esModule?obj:{default:obj};exports.getParameter=function(state,pathMethod,name,inType){return pathMethod=pathMethod||[],state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.fromJS)([])).find(function(p){return _immutable.Map.isMap(p)&&p.get("name")===name&&p.get("in")===inType})||(0,_immutable.Map)()},exports.parameterValues=function(state,pathMethod,isXml){return pathMethod=pathMethod||[],operationWithMeta.apply(void 0,[state].concat((0,_toConsumableArray3.default)(pathMethod))).get("parameters",(0,_immutable.List)()).reduce(function(hash,p){var value=isXml&&"body"===p.get("in")?p.get("value_xml"):p.get("value");return hash.set(p.get("in")+"."+p.get("name"),value)},(0,_immutable.fromJS)({}))},exports.parametersIncludeIn=function(parameters){var inValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(_immutable.List.isList(parameters))return parameters.some(function(p){return _immutable.Map.isMap(p)&&p.get("in")===inValue})},exports.parametersIncludeType=parametersIncludeType,exports.contentTypeValues=function(state,pathMethod){pathMethod=pathMethod||[];var op=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)),(0,_immutable.fromJS)({})),meta=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod)),(0,_immutable.fromJS)({})),producesValue=currentProducesFor(state,pathMethod),parameters=op.get("parameters")||new _immutable.List,requestContentType=meta.get("consumes_value")?meta.get("consumes_value"):parametersIncludeType(parameters,"file")?"multipart/form-data":parametersIncludeType(parameters,"formData")?"application/x-www-form-urlencoded":void 0;return(0,_immutable.fromJS)({requestContentType:requestContentType,responseContentType:producesValue})},exports.operationConsumes=function(state,pathMethod){return pathMethod=pathMethod||[],specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod),["consumes"]),(0,_immutable.fromJS)({}))},exports.currentProducesFor=currentProducesFor;var _reselect=__webpack_require__(36),_utils=__webpack_require__(8),_immutable=__webpack_require__(7);var OPERATION_METHODS=["get","put","post","delete","options","head","patch","trace"],state=function(_state){return _state||(0,_immutable.Map)()},specJson=(exports.lastError=(0,_reselect.createSelector)(state,function(spec){return spec.get("lastError")}),exports.url=(0,_reselect.createSelector)(state,function(spec){return spec.get("url")}),exports.specStr=(0,_reselect.createSelector)(state,function(spec){return spec.get("spec")||""}),exports.specSource=(0,_reselect.createSelector)(state,function(spec){return spec.get("specSource")||"not-editor"}),exports.specJson=(0,_reselect.createSelector)(state,function(spec){return spec.get("json",(0,_immutable.Map)())})),mergerFn=(exports.specResolved=(0,_reselect.createSelector)(state,function(spec){return spec.get("resolved",(0,_immutable.Map)())}),exports.specResolvedSubtree=function(state,path){return state.getIn(["resolvedSubtrees"].concat((0,_toConsumableArray3.default)(path)),void 0)},function mergerFn(oldVal,newVal){return _immutable.Map.isMap(oldVal)&&_immutable.Map.isMap(newVal)?newVal.get("$$ref")?newVal:(0,_immutable.OrderedMap)().mergeWith(mergerFn,oldVal,newVal):newVal}),specJsonWithResolvedSubtrees=exports.specJsonWithResolvedSubtrees=(0,_reselect.createSelector)(state,function(spec){return(0,_immutable.OrderedMap)().mergeWith(mergerFn,spec.get("json"),spec.get("resolvedSubtrees"))}),spec=exports.spec=function(state){return specJson(state)},info=(exports.isOAS3=(0,_reselect.createSelector)(spec,function(){return!1}),exports.info=(0,_reselect.createSelector)(spec,function(spec){return returnSelfOrNewMap(spec&&spec.get("info"))})),version=(exports.externalDocs=(0,_reselect.createSelector)(spec,function(spec){return returnSelfOrNewMap(spec&&spec.get("externalDocs"))}),exports.version=(0,_reselect.createSelector)(info,function(info){return info&&info.get("version")})),paths=(exports.semver=(0,_reselect.createSelector)(version,function(version){return/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(version).slice(1)}),exports.paths=(0,_reselect.createSelector)(specJsonWithResolvedSubtrees,function(spec){return spec.get("paths")})),operations=exports.operations=(0,_reselect.createSelector)(paths,function(paths){if(!paths||paths.size<1)return(0,_immutable.List)();var list=(0,_immutable.List)();return paths&&paths.forEach?(paths.forEach(function(path,pathName){if(!path||!path.forEach)return{};path.forEach(function(operation,method){OPERATION_METHODS.indexOf(method)<0||(list=list.push((0,_immutable.fromJS)({path:pathName,method:method,operation:operation,id:method+"-"+pathName})))})}),list):(0,_immutable.List)()}),consumes=exports.consumes=(0,_reselect.createSelector)(spec,function(spec){return(0,_immutable.Set)(spec.get("consumes"))}),produces=exports.produces=(0,_reselect.createSelector)(spec,function(spec){return(0,_immutable.Set)(spec.get("produces"))}),operationsWithRootInherited=(exports.security=(0,_reselect.createSelector)(spec,function(spec){return spec.get("security",(0,_immutable.List)())}),exports.securityDefinitions=(0,_reselect.createSelector)(spec,function(spec){return spec.get("securityDefinitions")}),exports.findDefinition=function(state,name){var resolvedRes=state.getIn(["resolvedSubtrees","definitions",name],null),unresolvedRes=state.getIn(["json","definitions",name],null);return resolvedRes||unresolvedRes||null},exports.definitions=(0,_reselect.createSelector)(spec,function(spec){return spec.get("definitions")||(0,_immutable.Map)()}),exports.basePath=(0,_reselect.createSelector)(spec,function(spec){return spec.get("basePath")}),exports.host=(0,_reselect.createSelector)(spec,function(spec){return spec.get("host")}),exports.schemes=(0,_reselect.createSelector)(spec,function(spec){return spec.get("schemes",(0,_immutable.Map)())}),exports.operationsWithRootInherited=(0,_reselect.createSelector)(operations,consumes,produces,function(operations,consumes,produces){return operations.map(function(ops){return ops.update("operation",function(op){if(op){if(!_immutable.Map.isMap(op))return;return op.withMutations(function(op){return op.get("consumes")||op.update("consumes",function(a){return(0,_immutable.Set)(a).merge(consumes)}),op.get("produces")||op.update("produces",function(a){return(0,_immutable.Set)(a).merge(produces)}),op})}return(0,_immutable.Map)()})})})),tags=exports.tags=(0,_reselect.createSelector)(spec,function(json){return json.get("tags",(0,_immutable.List)())}),tagDetails=exports.tagDetails=function(state,tag){return(tags(state)||(0,_immutable.List)()).filter(_immutable.Map.isMap).find(function(t){return t.get("name")===tag},(0,_immutable.Map)())},operationsWithTags=exports.operationsWithTags=(0,_reselect.createSelector)(operationsWithRootInherited,tags,function(operations,tags){return operations.reduce(function(taggedMap,op){var tags=(0,_immutable.Set)(op.getIn(["operation","tags"]));return tags.count()<1?taggedMap.update("default",(0,_immutable.List)(),function(ar){return ar.push(op)}):tags.reduce(function(res,tag){return res.update(tag,(0,_immutable.List)(),function(ar){return ar.push(op)})},taggedMap)},tags.reduce(function(taggedMap,tag){return taggedMap.set(tag.get("name"),(0,_immutable.List)())},(0,_immutable.OrderedMap)()))}),responses=(exports.taggedOperations=function(state){return function(_ref){var _getConfigs=(0,_ref.getConfigs)(),tagsSorter=_getConfigs.tagsSorter,operationsSorter=_getConfigs.operationsSorter;return operationsWithTags(state).sortBy(function(val,key){return key},function(tagA,tagB){var sortFn="function"==typeof tagsSorter?tagsSorter:_utils.sorters.tagsSorter[tagsSorter];return sortFn?sortFn(tagA,tagB):null}).map(function(ops,tag){var sortFn="function"==typeof operationsSorter?operationsSorter:_utils.sorters.operationsSorter[operationsSorter],operations=sortFn?ops.sort(sortFn):ops;return(0,_immutable.Map)({tagDetails:tagDetails(state,tag),operations:operations})})}},exports.responses=(0,_reselect.createSelector)(state,function(state){return state.get("responses",(0,_immutable.Map)())})),requests=exports.requests=(0,_reselect.createSelector)(state,function(state){return state.get("requests",(0,_immutable.Map)())}),mutatedRequests=exports.mutatedRequests=(0,_reselect.createSelector)(state,function(state){return state.get("mutatedRequests",(0,_immutable.Map)())}),operationWithMeta=(exports.responseFor=function(state,path,method){return responses(state).getIn([path,method],null)},exports.requestFor=function(state,path,method){return requests(state).getIn([path,method],null)},exports.mutatedRequestFor=function(state,path,method){return mutatedRequests(state).getIn([path,method],null)},exports.allowTryItOutFor=function(){return!0},exports.operationWithMeta=function(state,path,method){var op=specJsonWithResolvedSubtrees(state).getIn(["paths",path,method],(0,_immutable.Map)()),meta=state.getIn(["meta","paths",path,method],(0,_immutable.Map)()),mergedParams=op.get("parameters",(0,_immutable.List)()).map(function(param){return(0,_immutable.Map)().merge(param,meta.getIn(["parameters",param.get("name")+"."+param.get("in")]))});return(0,_immutable.Map)().merge(op,meta).set("parameters",mergedParams)});exports.parameterWithMeta=function(state,pathMethod,paramName,paramIn){var opParams=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.Map)()),metaParams=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.Map)());return opParams.map(function(param){return(0,_immutable.Map)().merge(param,metaParams.get(param.get("name")+"."+param.get("in")))}).find(function(param){return param.get("in")===paramIn&¶m.get("name")===paramName},(0,_immutable.Map)())};exports.hasHost=(0,_reselect.createSelector)(spec,function(spec){var host=spec.get("host");return"string"==typeof host&&host.length>0&&"/"!==host[0]});function parametersIncludeType(parameters){var typeValue=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(_immutable.List.isList(parameters))return parameters.some(function(p){return _immutable.Map.isMap(p)&&p.get("type")===typeValue})}function currentProducesFor(state,pathMethod){pathMethod=pathMethod||[];var operation=specJsonWithResolvedSubtrees(state).getIn(["paths"].concat((0,_toConsumableArray3.default)(pathMethod)),null);if(null!==operation){var currentProducesValue=state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["produces_value"]),null),firstProducesArrayItem=operation.getIn(["produces",0],null);return currentProducesValue||firstProducesArrayItem||"application/json"}}var operationScheme=exports.operationScheme=function(state,path,method){var matchResult=state.get("url").match(/^([a-z][a-z0-9+\-.]*):/),urlScheme=Array.isArray(matchResult)?matchResult[1]:null;return state.getIn(["scheme",path,method])||state.getIn(["scheme","_defaultScheme"])||urlScheme||""};exports.canExecuteScheme=function(state,path,method){return["http","https"].indexOf(operationScheme(state,path,method))>-1},exports.validateBeforeExecute=function(state,pathMethod){pathMethod=pathMethod||[];var isValid=!0;return state.getIn(["meta","paths"].concat((0,_toConsumableArray3.default)(pathMethod),["parameters"]),(0,_immutable.fromJS)([])).forEach(function(p){var errors=p.get("errors");errors&&errors.count()&&(isValid=!1)}),isValid};function returnSelfOrNewMap(obj){return _immutable.Map.isMap(obj)?obj:new _immutable.Map}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(366),__esModule:!0}},function(module,exports,__webpack_require__){var cof=__webpack_require__(55),TAG=__webpack_require__(13)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}());module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=function(it,key){try{return it[key]}catch(e){}}(O=Object(it),TAG))?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(39),document=__webpack_require__(18).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){"use strict";var aFunction=__webpack_require__(72);module.exports.f=function(C){return new function(C){var resolve,reject;this.promise=new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve,reject=$$reject}),this.resolve=aFunction(resolve),this.reject=aFunction(reject)}(C)}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(27),dPs=__webpack_require__(382),enumBugKeys=__webpack_require__(106),IE_PROTO=__webpack_require__(110)("IE_PROTO"),Empty=function(){},createDict=function(){var iframeDocument,iframe=__webpack_require__(105)("iframe"),i=enumBugKeys.length;for(iframe.style.display="none",__webpack_require__(216).appendChild(iframe),iframe.src="javascript:",(iframeDocument=iframe.contentWindow.document).open(),iframeDocument.write("