!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;((t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).SwaggerTools||(t.SwaggerTools={})).specs=e()}}(function(){return function e(t,i,r){function n(s,a){if(!i[s]){if(!t[s]){var p="function"==typeof require&&require;if(!a&&p)return p(s,!0);if(o)return o(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var f=i[s]={exports:{}};t[s][0].call(f.exports,function(e){var i=t[s][1][e];return n(i||e)},f,f.exports,e,t,i,r)}return i[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(e,t,i){(function(i){"use strict";var r="undefined"!=typeof window?window._:void 0!==i?i._:null,n="undefined"!=typeof window?window.JsonRefs:void 0!==i?i.JsonRefs:null,o="undefined"!=typeof window?window.traverse:void 0!==i?i.traverse:null,s="undefined"!=typeof window?window.ZSchema:void 0!==i?i.ZSchema:null,a=["byte","double","float","int32","int64","mime-type","uri-template"],p=e("../schemas/json-schema-draft-04.json"),d={};t.exports.registerCustomFormats=function(e){o(e).forEach(function(){var e=this.key,t=this.node;"format"===e&&-1===r.indexOf(s.getRegisteredFormats(),t)&&s.registerFormat(t,function(){return!0})})},t.exports.createJsonValidator=function(e){var t=new s({breakOnFirstError:!1,reportPathAsArray:!0});if(t.setRemoteReference("http://json-schema.org/draft-04/schema",p),r.each(a,function(e){s.registerFormat(e,function(){return!0})}),!r.isUndefined(e)&&!1===t.compileSchema(e))throw console.error("JSON Schema file"+(e.length>1?"s are":" is")+" invalid:"),r.each(t.getLastErrors(),function(e){console.error("  "+(r.isArray(e.path)?n.pathToPtr(e.path):e.path)+": "+e.message)}),new Error("Unable to create validator due to invalid JSON Schema");return t},t.exports.formatResults=function(e){return e&&(e=e.errors.length+e.warnings.length+r.reduce(e.apiDeclarations,function(e,t){return t&&(e+=t.errors.length+t.warnings.length),e},0)>0?e:void 0),e};var f=t.exports.getErrorCount=function(e){var t=0;return e&&(t=e.errors.length,r.each(e.apiDeclarations,function(e){e&&(t+=e.errors.length)})),t},c=function(e){return e&&!r.isString(e)&&-1===(e=e.toString()).indexOf(".")&&(e+=".0"),e};t.exports.getSpec=function(t,i){var n;if(t=c(t),n=d[t],r.isUndefined(n))switch(t){case"1.2":n=e("../lib/specs").v1_2;break;case"2.0":n=e("../lib/specs").v2_0;break;default:if(!0===i)throw new Error("Unsupported Swagger version: "+t)}return n},t.exports.getSwaggerVersion=function(e){return r.isPlainObject(e)?c(e.swaggerVersion||e.swagger):void 0},t.exports.printValidationResults=function(e,t,i,o,s){var a=f(o)>0?console.error:console.log,p=function(e,t){return 1===t?e:e+"s"},d=function(e,t,i){e&&(a(e+":"),a()),r.each(t,function(e){a(new Array(i+1).join(" ")+n.pathToPtr(e.path)+": "+e.message),e.inner&&d(void 0,e.inner,i+2)}),e&&a()},c=0,m=0;a(),o.errors.length>0&&(c+=o.errors.length,d("API Errors",o.errors,2)),o.warnings.length>0&&(m+=o.warnings.length,d("API Warnings",o.warnings,2)),o.apiDeclarations&&o.apiDeclarations.forEach(function(e,t){if(e){var r=i[t].resourcePath||t;e.errors.length>0&&(c+=e.errors.length,d("  API Declaration ("+r+") Errors",e.errors,4)),e.warnings.length>0&&(m+=e.warnings.length,d("  API Declaration ("+r+") Warnings",e.warnings,4))}}),s&&a(c>0?c+" "+p("error",c)+" and "+m+" "+p("warning",m):"Validation succeeded but with "+m+" "+p("warning",m)),a()},t.exports.swaggerOperationMethods=["DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../lib/specs":2,"../schemas/json-schema-draft-04.json":16}],2:[function(e,t,i){(function(i){"use strict";var r="undefined"!=typeof window?window._:void 0!==i?i._:null,n="undefined"!=typeof window?window.async:void 0!==i?i.async:null,o=e("./helpers"),s="undefined"!=typeof window?window.JsonRefs:void 0!==i?i.JsonRefs:null,a="undefined"!=typeof window?window.SparkMD5:void 0!==i?i.SparkMD5:null,p="undefined"!=typeof window?window.SwaggerConverter.convert:void 0!==i?i.SwaggerConverter.convert:null,d="undefined"!=typeof window?window.traverse:void 0!==i?i.traverse:null,f=e("./validators"),c="undefined"!=typeof window?window.jsyaml:void 0!==i?i.jsyaml:null;r.isPlainObject(p)&&(p=i.SwaggerConverter.convert);var m={},u=function(e,t){return"1.2"!==e?t:t.replace("#/models/","")},l=function(e){var t=r.cloneDeep(e);return t.$ref="#/models/"+e.$ref,t},h=r.map(o.swaggerOperationMethods,function(e){return e.toLowerCase()}),y=function(e){return["relative","remote"].indexOf(e.type)>-1},g=function(e,t,i,r){r.push({code:e,message:t,path:i})},v=function(e,t,i,n,a){var p,d,f,c,m,u,l=!0,h=o.getSwaggerVersion(e.resolved),y=r.isArray(t)?t:s.pathFromPtr(t),v=r.isArray(t)?s.pathToPtr(t):t,b=r.isArray(i)?i:s.pathFromPtr(i),$=r.isArray(i)?s.pathToPtr(i):i;if(d=e.definitions[v],p="securityDefinitions"===(u=y[0])?"SECURITY_DEFINITION":u.substring(0,u.length-1).toUpperCase(),f="1.2"===h?y[y.length-1]:v,m="securityDefinitions"===u?"Security definition":p.charAt(0)+p.substring(1).toLowerCase(),["authorizations","securityDefinitions"].indexOf(y[0])>-1&&"scopes"===y[2]&&(p+="_SCOPE",m+=" scope"),r.isUndefined(d)&&-1===["AUTHORIZATION_SCOPE","SECURITY_DEFINITION_SCOPE"].indexOf(p))for(c=1;c<y.length;c++){var w=y.slice(0,y.length-c),j=s.pathToPtr(w),x=e.definitions[j];if(!r.isUndefined(x)){d=x;break}}return r.isUndefined(d)?(a||("1.2"!==e.swaggerVersion&&-1===["SECURITY_DEFINITION","SECURITY_DEFINITION_SCOPE"].indexOf(p)&&b.push("$ref"),g("UNRESOLVABLE_"+p,m+" could not be resolved: "+f,b,n.errors)),l=!1):(r.isUndefined(d.references)&&(d.references=[]),d.references.push($)),l},b=function(e,t){var i,n,o="Composed "+("1.2"===e.swaggerVersion?s.pathFromPtr(t).pop():t),a=e.definitions[t],p=d(e.original),f=d(e.resolved);if(a)return n=r.cloneDeep(p.get(s.pathFromPtr(t))),i=r.cloneDeep(f.get(s.pathFromPtr(t))),"1.2"===e.swaggerVersion&&(a.lineage.length>0&&(i.allOf=[],r.each(a.lineage,function(t){i.allOf.push(b(e,t))})),delete i.subTypes,r.each(i.properties,function(t,i){var o=n.properties[i];r.each(["maximum","minimum"],function(e){r.isString(t[e])&&(t[e]=parseFloat(t[e]))}),r.each(s.findRefs(o,{includeInvalid:!0,refPreProcessor:l}),function(i,r){var n=e.definitions[i.uri],o=s.pathFromPtr(r);n.lineage.length>0?d(t).set(o,b(e,i.uri)):d(t).set(o.concat("title"),"Composed "+u(e.swaggerVersion,i.uri))})})),(i=d(i).map(function(e){"id"===this.key&&r.isString(e)&&this.remove()})).title=o,i},$=function(e,t,i,r,n){g("UNUSED_"+t,i+" is defined but is not used: "+e,r,n)},w=function(e){var t=a.hash(JSON.stringify(e)),i=m[t]||r.find(m,function(e){return e.resolvedId===t});return i||(i=m[t]={definitions:{},original:e,resolved:void 0,swaggerVersion:o.getSwaggerVersion(e)}),i},j=function(e,t){var i=new Error("The Swagger document(s) are invalid");i.errors=e.errors,i.failedValidation=!0,i.warnings=e.warnings,e.apiDeclarations&&(i.apiDeclarations=e.apiDeclarations),t(i)},x=function(e){var t=e.match(/\{(.*?)\}/g),i=[],n=e;return t&&r.each(t,function(e,t){n=n.replace(e,"{"+t+"}"),i.push(e.replace(/[{}]/g,""))}),{path:n,args:i}},P=function(e,t,i,n,o,s){!r.isUndefined(e)&&e.indexOf(t)>-1&&g("DUPLICATE_"+i,n+" already defined: "+t,o,s)},I=function(e,t,i,r,n){try{f.validateSchemaConstraints(e.swaggerVersion,t,i,void 0)}catch(e){n||g(e.code,e.message,e.path,r.errors)}},O=function(e,t){var i=e.swaggerVersion,n=function(t,i){var r=s.pathToPtr(t),n=e.definitions[r];return n||(n=e.definitions[r]={inline:i||!1,references:[]},["definitions","models"].indexOf(s.pathFromPtr(r)[0])>-1&&(n.cyclical=!1,n.lineage=void 0,n.parents=[])),n},o=function(e){return"1.2"===i?s.pathFromPtr(e).pop():e},a={filter:"local",includeInvalid:!0},p=function(t,i,n){var o=e.definitions[i||t];o&&r.each(o.parents,function(e){n.push(e),t!==e&&p(t,e,n)})},f="1.2"===i?"authorizations":"securityDefinitions",c="1.2"===i?"models":"definitions";switch(r.each(e.resolved[f],function(e,o){var s=[f,o];("1.2"!==i||e.type)&&(n(s),r.reduce(e.scopes,function(e,r,o){var a="1.2"===i?r.scope:o,p=s.concat(["scopes",o.toString()]);return n(s.concat(["scopes",a])).scopePath=p,P(e,a,"AUTHORIZATION_SCOPE_DEFINITION","Authorization scope definition","1.2"===i?p.concat("scope"):p,t.warnings),e.push(a),e},[]))}),r.each(e.resolved[c],function(o,a){var p=[c,a],f=n(p);if("1.2"===i&&a!==o.id&&g("MODEL_ID_MISMATCH","Model id does not match id in models object: "+o.id,p.concat("id"),t.errors),r.isUndefined(f.lineage))switch(i){case"1.2":r.each(o.subTypes,function(i,r){var o=["models",i],a=s.pathToPtr(o),d=e.definitions[a],f=p.concat(["subTypes",r.toString()]);!d&&e.resolved[c][i]&&(d=n(o)),v(e,o,f,t)&&d.parents.push(s.pathToPtr(p))});break;default:r.each(e.original[c][a].allOf,function(t,i){var o,a=!1;r.isUndefined(t.$ref)||y(s.getRefDetails(t))?(a=!0,o=p.concat(["allOf",i.toString()])):o=s.pathFromPtr(t.$ref),r.isUndefined(d(e.resolved).get(o))||(n(o,a),f.parents.push(s.pathToPtr(o)))})}}),i){case"2.0":r.each(e.resolved.parameters,function(i,r){var o=["parameters",r];n(o),I(e,i,o,t)}),r.each(e.resolved.responses,function(i,r){var o=["responses",r];n(o),I(e,i,o,t)})}r.each(e.definitions,function(n,a){var f,c,m,u=s.pathFromPtr(a),l=d(e.original).get(u),h=u[0],y=h.substring(0,h.length-1).toUpperCase(),v=y.charAt(0)+y.substring(1).toLowerCase();-1!==["definitions","models"].indexOf(h)&&(f=[],c=[],m=n.lineage,r.isUndefined(m)&&(p(a,void 0,m=[]),m.reverse(),n.lineage=r.cloneDeep(m),n.cyclical=m.length>1&&m[0]===a),n.parents.length>1&&"1.2"===i&&g("MULTIPLE_"+y+"_INHERITANCE","Child "+y.toLowerCase()+" is sub type of multiple models: "+r.map(n.parents,function(e){return o(e)}).join(" && "),u,t.errors),n.cyclical&&g("CYCLICAL_"+y+"_INHERITANCE",v+" has a circular inheritance: "+r.map(m,function(e){return o(e)}).join(" -> ")+" -> "+o(a),u.concat("1.2"===i?"subTypes":"allOf"),t.errors),r.each(m.slice(n.cyclical?1:0),function(t){var i=d(e.resolved).get(s.pathFromPtr(t));r.each(Object.keys(i.properties||{}),function(e){-1===c.indexOf(e)&&c.push(e)})}),I(e,l,u,t),r.each(l.properties,function(i,n){var o=u.concat(["properties",n]);r.isUndefined(i)||(I(e,i,o,t),c.indexOf(n)>-1?g("CHILD_"+y+"_REDECLARES_PROPERTY","Child "+y.toLowerCase()+" declares property already declared by ancestor: "+n,o,t.errors):f.push(n))}),r.each(l.required||[],function(e,r){var n="1.2"===i?"Model":"Definition";-1===c.indexOf(e)&&-1===f.indexOf(e)&&g("MISSING_REQUIRED_"+n.toUpperCase()+"_PROPERTY",n+" requires property but it is not defined: "+e,u.concat(["required",r.toString()]),t.errors)}))}),"1.2"===e.swaggerVersion&&(a.refPreProcessor=l),r.each(s.findRefs(e.original,a),function(i,r){v(e,i.uri,r,t)}),r.each(e.referencesMetadata,function(i,r){y(i)&&!0===i.missing&&t.errors.push({code:"UNRESOLVABLE_REFERENCE",message:"Reference could not be resolved: "+u(e.swaggerVersion,i.uri),path:s.pathFromPtr(r).concat("$ref")})})},E=function(e,t,i,n){var o="1.2"===e.swaggerVersion?"AUTHORIZATION":"SECURITY_DEFINITION",s="AUTHORIZATION"===o?"Authorization":"Security definition";"1.2"===e.swaggerVersion?r.reduce(t,function(t,a,p){var d=["authorizations",p],f=i.concat([p]);return v(e,d,f,n)&&r.reduce(a,function(t,i,r){var a=f.concat(r.toString(),"scope"),p=d.concat(["scopes",i.scope]);return P(t,i.scope,o+"_SCOPE_REFERENCE",s+" scope reference",a,n.warnings),v(e,p,a,n),t.concat(i.scope)},[]),t.concat(p)},[]):r.reduce(t,function(t,a,p){return r.each(a,function(a,d){var f=["securityDefinitions",d],c=i.concat(p.toString(),d);P(t,d,o+"_REFERENCE",s+" reference",c,n.warnings),t.push(d),v(e,f,c,n)&&r.each(a,function(t,i){var r=f.concat(["scopes",t]);v(e,r,c.concat(i.toString()),n)})}),t},[])},T=function(e,t){var i=w(e),n=o.getSwaggerVersion(e),p={includeInvalid:!0,loaderOptions:{processContent:function(e,t){t(void 0,c.safeLoad(e.text))}}};i.resolved?t():("1.2"===n&&(p.refPreProcessor=l),s.resolveRefs(e,p).then(function(e){!function(e){!function t(i,n,o){function s(e,r){o.push(r),t(i,e,o),o.pop()}-1===i.indexOf(n)?(i.push(n),r.isArray(n)?r.each(n,function(e,t){s(e,t.toString())}):r.isPlainObject(n)&&r.forOwn(n,function(e,t){s(e,t.toString())})):r.set(e,o,{}),i.pop()}([],e,[])}(e.resolved),r.each(e.refs,function(t,i){t.circular&&r.set(e.resolved,s.pathFromPtr(i),{})}),i.referencesMetadata=e.refs,i.resolved=e.resolved,i.resolvedId=a.hash(JSON.stringify(e.resolved)),t()}).catch(t))},S=function(e,t,i,n){var s=r.isString(t)?e.validators[t]:o.createJsonValidator();o.registerCustomFormats(i);try{f.validateAgainstSchema(t,i,s)}catch(e){return e.failedValidation?n(void 0,e.results):n(e)}T(i,function(e){return n(e)})},A=function(e,t){r.each(e.definitions,function(i,r){var n=s.pathFromPtr(r),o=n[0].substring(0,n[0].length-1),a="1.2"===e.swaggerVersion?n[n.length-1]:r,p="securityDefinition"===o?"SECURITY_DEFINITION":o.toUpperCase(),d="securityDefinition"===o?"Security definition":o.charAt(0).toUpperCase()+o.substring(1);0!==i.references.length||i.inline||(i.scopePath&&(p+="_SCOPE",d+=" scope",n=i.scopePath),$(a,p,d,n,t.warnings))})},q=function(e,t,i,n,o,s,a){var p=function(t){g("INVALID_PARAMETER_COMBINATION","API cannot have a a body parameter and a "+("1.2"===e.version?"form":"formData")+" parameter",t,s.errors)},d=[],f=!1,c=!1;r.reduce(n,function(n,a,m){var u=o.concat(["parameters",m.toString()]);if(!r.isUndefined(a))return P(n,a.name,"PARAMETER","Parameter",u.concat("name"),s.errors),"body"===a.paramType||"body"===a.in?(!0===f?g("DUPLICATE_API_BODY_PARAMETER","API has more than one body parameter",u,s.errors):!0===c&&p(u),f=!0):"form"===a.paramType||"formData"===a.in?(!0===f&&p(u),c=!0):"path"!==a.paramType&&"path"!==a.in||(-1===i.args.indexOf(a.name)&&g("UNRESOLVABLE_API_PATH_PARAMETER","API path parameter could not be resolved: "+a.name,u.concat("name"),s.errors),d.push(a.name)),-1===e.primitives.indexOf(a.type)&&"1.2"===e.version&&v(t,"#/models/"+a.type,u.concat("type"),s),I(t,a,u,s,a.skipErrors),n.concat(a.name)},[]),(r.isUndefined(a)||!1===a)&&r.each(r.difference(i.args,d),function(e){g("MISSING_API_PATH_PARAMETER","API requires path parameter but it is not defined: "+e,"1.2"===t.swaggerVersion?o.slice(0,2).concat("path"):o,s.errors)})},M=function(e,t,i,n){var o=[],s=w(t),a=[],p={errors:[],warnings:[],apiDeclarations:[]};a=r.reduce(t.apis,function(e,t,i){return P(e,t.path,"RESOURCE_PATH","Resource path",["apis",i.toString(),"path"],p.errors),e.push(t.path),e},[]),O(s,p),o=r.reduce(i,function(t,i,n){var d=p.apiDeclarations[n]={errors:[],warnings:[]},f=w(i);P(t,i.resourcePath,"RESOURCE_PATH","Resource path",["resourcePath"],d.errors),-1===o.indexOf(i.resourcePath)&&(c=a,m=i.resourcePath,u="RESOURCE_PATH",l="Resource path",h=["resourcePath"],y=d.errors,r.isUndefined(c)||-1!==c.indexOf(m)||g("UNRESOLVABLE_"+u,l+" could not be resolved: "+m,h,y),t.push(i.resourcePath));var c,m,u,l,h,y;return O(f,d),r.reduce(i.apis,function(t,i,n){var o=["apis",n.toString()],a=x(i.path);return t.indexOf(a.path)>-1?g("DUPLICATE_API_PATH","API path (or equivalent) already defined: "+i.path,o.concat("path"),d.errors):t.push(a.path),r.reduce(i.operations,function(t,i,n){var p=o.concat(["operations",n.toString()]);return P(t,i.method,"OPERATION_METHOD","Operation method",p.concat("method"),d.errors),t.push(i.method),-1===e.primitives.indexOf(i.type)&&"1.2"===e.version&&v(f,"#/models/"+i.type,p.concat("type"),d),E(s,i.authorizations,p.concat("authorizations"),d),I(f,i,p,d),q(e,f,a,i.parameters,p,d),r.reduce(i.responseMessages,function(e,t,i){var r=p.concat(["responseMessages",i.toString()]);return P(e,t.code,"RESPONSE_MESSAGE_CODE","Response message code",r.concat(["code"]),d.errors),t.responseModel&&v(f,"#/models/"+t.responseModel,r.concat("responseModel"),d),e.concat(t.code)},[]),t},[]),t},[]),A(f,d),t},[]),A(s,p),r.each(r.difference(a,o),function(e){var i=a.indexOf(e);$(t.apis[i].path,"RESOURCE_PATH","Resource path",["apis",i.toString(),"path"],p.errors)}),n(void 0,p)},U=function(e,t,i,n){var s=function(e,t){n(e,o.formatResults(t))};"1.2"===e.version?M(e,t,i,s):function(e,t,i){var n=w(t),o={errors:[],warnings:[]};O(n,o),E(n,t.security,["security"],o),r.reduce(n.resolved.paths,function(t,i,s){var a=["paths",s],p=x(s);return t.indexOf(p.path)>-1&&g("DUPLICATE_API_PATH","API path (or equivalent) already defined: "+s,a,o.errors),q(e,n,p,i.parameters,a,o,!0),r.each(i,function(t,s){var d=[],f=a.concat(s),c=[];-1!==h.indexOf(s)&&(E(n,t.security,f.concat("security"),o),r.each(t.parameters,function(e){r.isUndefined(e)||(d.push(e),c.push(e.name+":"+e.in))}),r.each(i.parameters,function(e){var t=r.cloneDeep(e);t.skipErrors=!0,-1===c.indexOf(e.name+":"+e.in)&&d.push(t)}),q(e,n,p,d,f,o),r.each(t.responses,function(e,t){r.isUndefined(e)||I(n,e,f.concat("responses",t),o)}))}),t.concat(p.path)},[]),A(n,o),i(void 0,o)}(e,t,s)},D=function(t){var i=this,n=function(e,t){return r.reduce(t,function(e,t,i){return e[i]=o.createJsonValidator(t),e},{})},s=function(e){var t=r.cloneDeep(i.schemas[e]);return t.id=e,t},a=["string","number","boolean","integer","array"];switch(t){case"1.2":this.docsUrl="https://github.com/swagger-api/swagger-spec/blob/master/versions/1.2.md",this.primitives=r.union(a,["void","File"]),this.schemasUrl="https://github.com/swagger-api/swagger-spec/tree/master/schemas/v1.2",this.schemas={"apiDeclaration.json":e("../schemas/1.2/apiDeclaration.json"),"authorizationObject.json":e("../schemas/1.2/authorizationObject.json"),"dataType.json":e("../schemas/1.2/dataType.json"),"dataTypeBase.json":e("../schemas/1.2/dataTypeBase.json"),"infoObject.json":e("../schemas/1.2/infoObject.json"),"modelsObject.json":e("../schemas/1.2/modelsObject.json"),"oauth2GrantType.json":e("../schemas/1.2/oauth2GrantType.json"),"operationObject.json":e("../schemas/1.2/operationObject.json"),"parameterObject.json":e("../schemas/1.2/parameterObject.json"),"resourceListing.json":e("../schemas/1.2/resourceListing.json"),"resourceObject.json":e("../schemas/1.2/resourceObject.json")},this.validators=n(0,{"apiDeclaration.json":r.map(["dataTypeBase.json","modelsObject.json","oauth2GrantType.json","authorizationObject.json","parameterObject.json","operationObject.json","apiDeclaration.json"],s),"resourceListing.json":r.map(["resourceObject.json","infoObject.json","oauth2GrantType.json","authorizationObject.json","resourceListing.json"],s)});break;case"2.0":this.docsUrl="https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md",this.primitives=r.union(a,["file"]),this.schemasUrl="https://github.com/swagger-api/swagger-spec/tree/master/schemas/v2.0",this.schemas={"schema.json":e("../schemas/2.0/schema.json")},this.validators=n(0,{"schema.json":[s("schema.json")]});break;default:throw new Error(t+" is an unsupported Swagger specification version")}this.version=t};D.prototype.validate=function(e,t,i){switch(this.version){case"1.2":if(r.isUndefined(e))throw new Error("resourceListing is required");if(!r.isPlainObject(e))throw new TypeError("resourceListing must be an object");if(r.isUndefined(t))throw new Error("apiDeclarations is required");if(!r.isArray(t))throw new TypeError("apiDeclarations must be an array");break;case"2.0":if(r.isUndefined(e))throw new Error("swaggerObject is required");if(!r.isPlainObject(e))throw new TypeError("swaggerObject must be an object")}if("2.0"===this.version&&(i=arguments[1]),r.isUndefined(i))throw new Error("callback is required");if(!r.isFunction(i))throw new TypeError("callback must be a function");"2.0"===this.version&&(t=[]);var s=this;p=e,d=t,f=function(r,n){r||o.formatResults(n)?i(r,n):U(s,e,t,i)},S(a=this,"1.2"===a.version?"resourceListing.json":"schema.json",p,function(e,t){if(e)return f(e);t||"1.2"!==a.version?f(void 0,t):(t={errors:[],warnings:[],apiDeclarations:[]},n.map(d,function(e,t){S(a,"apiDeclaration.json",e,t)},function(e,i){if(e)return f(e);r.each(i,function(e,i){t.apiDeclarations[i]=e}),f(void 0,t)}))});var a,p,d,f},D.prototype.composeModel=function(e,t,i){var n=o.getSwaggerVersion(e),s=function(r,n){var s;return r?i(r):o.getErrorCount(n)>0?j(n,i):(s=w(e),O(s,n={errors:[],warnings:[]}),s.definitions[t]?o.getErrorCount(n)>0?j(n,i):void i(void 0,b(s,t)):i())};switch(this.version){case"1.2":if(r.isUndefined(e))throw new Error("apiDeclaration is required");if(!r.isPlainObject(e))throw new TypeError("apiDeclaration must be an object");if(r.isUndefined(t))throw new Error("modelId is required");break;case"2.0":if(r.isUndefined(e))throw new Error("swaggerObject is required");if(!r.isPlainObject(e))throw new TypeError("swaggerObject must be an object");if(r.isUndefined(t))throw new Error("modelRef is required")}if(r.isUndefined(i))throw new Error("callback is required");if(!r.isFunction(i))throw new TypeError("callback must be a function");if("#"!==t.charAt(0)){if("1.2"!==this.version)throw new Error("modelRef must be a JSON Pointer");t="#/models/"+t}"1.2"===n?S(this,"apiDeclaration.json",e,s):this.validate(e,s)},D.prototype.validateModel=function(e,t,i,n){switch(this.version){case"1.2":if(r.isUndefined(e))throw new Error("apiDeclaration is required");if(!r.isPlainObject(e))throw new TypeError("apiDeclaration must be an object");if(r.isUndefined(t))throw new Error("modelId is required");break;case"2.0":if(r.isUndefined(e))throw new Error("swaggerObject is required");if(!r.isPlainObject(e))throw new TypeError("swaggerObject must be an object");if(r.isUndefined(t))throw new Error("modelRef is required")}if(r.isUndefined(i))throw new Error("data is required");if(r.isUndefined(n))throw new Error("callback is required");if(!r.isFunction(n))throw new TypeError("callback must be a function");var o=this;this.composeModel(e,t,function(e,t){if(e)return n(e);S(o,t,i,n)})},D.prototype.resolve=function(e,t,i){var n,a=function(e){return r.isString(t)?i(void 0,d(e).get(s.pathFromPtr(t))):i(void 0,e)};if(r.isUndefined(e))throw new Error("document is required");if(!r.isPlainObject(e))throw new TypeError("document must be an object");if(2===arguments.length&&(i=arguments[1],t=void 0),!r.isUndefined(t)&&!r.isString(t))throw new TypeError("ptr must be a JSON Pointer string");if(r.isUndefined(i))throw new Error("callback is required");if(!r.isFunction(i))throw new TypeError("callback must be a function");if("1.2"===(n=w(e)).swaggerVersion)throw new Error("Swagger 1.2 is not supported");if(n.resolved)return a(n.resolved);this.validate(e,function(e,t){return e?i(e):o.getErrorCount(t)>0?j(t,i):a(n.resolved)})},D.prototype.convert=function(e,t,i,n){var s=function(e,t){n(void 0,p(e,t))};if("1.2"!==this.version)throw new Error("Specification#convert only works for Swagger 1.2");if(r.isUndefined(e))throw new Error("resourceListing is required");if(!r.isPlainObject(e))throw new TypeError("resourceListing must be an object");if(r.isUndefined(t)&&(t=[]),!r.isArray(t))throw new TypeError("apiDeclarations must be an array");if(arguments.length<4&&(n=arguments[arguments.length-1]),r.isUndefined(n))throw new Error("callback is required");if(!r.isFunction(n))throw new TypeError("callback must be a function");!0===i?s(e,t):this.validate(e,t,function(i,r){return i?n(i):o.getErrorCount(r)>0?j(r,n):void s(e,t)})},t.exports.v1=t.exports.v1_2=new D("1.2"),t.exports.v2=t.exports.v2_0=new D("2.0")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../schemas/1.2/apiDeclaration.json":4,"../schemas/1.2/authorizationObject.json":5,"../schemas/1.2/dataType.json":6,"../schemas/1.2/dataTypeBase.json":7,"../schemas/1.2/infoObject.json":8,"../schemas/1.2/modelsObject.json":9,"../schemas/1.2/oauth2GrantType.json":10,"../schemas/1.2/operationObject.json":11,"../schemas/1.2/parameterObject.json":12,"../schemas/1.2/resourceListing.json":13,"../schemas/1.2/resourceObject.json":14,"../schemas/2.0/schema.json":15,"./helpers":1,"./validators":3}],3:[function(e,t,i){(function(i){"use strict";var r="undefined"!=typeof window?window._:void 0!==i?i._:null,n=e("./helpers"),o=/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/,s=/^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}):([0-9]{2}))$/,a=t.exports.isValidDate=function(e){var t,i,n;return!!r.isDate(e)||(r.isString(e)||(e=e.toString()),null!==(i=o.exec(e))&&(t=i[3],!((n=i[2])<"01"||n>"12"||t<"01"||t>"31")))},p=t.exports.isValidDateTime=function(e){var t,i,n,o,p,d,f,c,m;if(r.isDate(e))return!0;if(r.isString(e)||(e=e.toString()),i=(d=e.toLowerCase().split("t"))[0],n=d.length>1?d[1]:void 0,!a(i))return!1;if(null===(o=s.exec(n)))return!1;t=o[1],p=o[2],f=o[3],"z"===o[5]?(c=0,m=0):(c=Number(o[6]),m=Number(o[7]));return!(t>"23"||p>"59"||f>"59"||c>14||c<-12||0!==m&&15!==m&&30!==m&&45!==m)},d=function(e,t){var i=new Error(t);throw i.code=e,i.failedValidation=!0,i};t.exports.validateAgainstSchema=function(e,t,i){var o=function(e){var t=["additionalProperties","items"].indexOf(e.path[e.path.length-1])>-1?"schema":e.path[e.path.length-2];if(["ANY_OF_MISSING","ONE_OF_MISSING"].indexOf(e.code)>-1){switch(t){case"parameters":t="parameter";break;case"responses":t="response";break;case"schema":t+=" "+e.path[e.path.length-1]}e.message="Not a valid "+t+" definition"}delete e.params,delete e.schemaId,e.inner&&r.each(e.inner,function(e){o(e)})},s=r.isPlainObject(e)?r.cloneDeep(e):e;r.isUndefined(i)&&(i=n.createJsonValidator([s]));if(!i.validate(t,s))try{d("SCHEMA_VALIDATION_FAILED","Failed schema validation")}catch(e){throw e.results={errors:r.map(i.getLastErrors(),function(e){return o(e),e}),warnings:[]},e}};var f=t.exports.validateArrayType=function(e){"array"===e.type&&r.isUndefined(e.items)&&d("OBJECT_MISSING_REQUIRED_PROPERTY","Missing required property: items")};t.exports.validateContentType=function(e,t,i){var n="function"==typeof i.end,o=n?i.getHeader("content-type"):i.headers["content-type"],s=r.map(r.union(e,t),function(e){return e.split(";")[0]});if(o||(o=n?"text/plain":"application/octet-stream"),o=o.split(";")[0],s.length>0&&(n||-1!==["POST","PUT"].indexOf(i.method))&&-1===s.indexOf(o))throw new Error("Invalid content type ("+o+").  These are valid: "+s.join(", "))};var c=t.exports.validateEnum=function(e,t){r.isUndefined(t)||r.isUndefined(e)||-1!==t.indexOf(e)||d("ENUM_MISMATCH","Not an allowable value ("+t.join(", ")+"): "+e)},m=t.exports.validateMaximum=function(e,t,i,n){var o,s,a=!0===n?"MAXIMUM_EXCLUSIVE":"MAXIMUM";r.isUndefined(n)&&(n=!1),"integer"===i?s=parseInt(e,10):"number"===i&&(s=parseFloat(e)),r.isUndefined(t)||(o=parseFloat(t),n&&s>=o?d(a,"Greater than or equal to the configured maximum ("+t+"): "+e):s>o&&d(a,"Greater than the configured maximum ("+t+"): "+e))},u=t.exports.validateMaxItems=function(e,t){!r.isUndefined(t)&&e.length>t&&d("ARRAY_LENGTH_LONG","Array is too long ("+e.length+"), maximum "+t)},l=t.exports.validateMaxLength=function(e,t){!r.isUndefined(t)&&e.length>t&&d("MAX_LENGTH","String is too long ("+e.length+" chars), maximum "+t)},h=t.exports.validateMaxProperties=function(e,t){var i=r.isPlainObject(e)?Object.keys(e).length:0;!r.isUndefined(t)&&i>t&&d("MAX_PROPERTIES","Number of properties is too many ("+i+" properties), maximum "+t)},y=t.exports.validateMinimum=function(e,t,i,n){var o,s,a=!0===n?"MINIMUM_EXCLUSIVE":"MINIMUM";r.isUndefined(n)&&(n=!1),"integer"===i?s=parseInt(e,10):"number"===i&&(s=parseFloat(e)),r.isUndefined(t)||(o=parseFloat(t),n&&s<=o?d(a,"Less than or equal to the configured minimum ("+t+"): "+e):s<o&&d(a,"Less than the configured minimum ("+t+"): "+e))},g=t.exports.validateMinItems=function(e,t){!r.isUndefined(t)&&e.length<t&&d("ARRAY_LENGTH_SHORT","Array is too short ("+e.length+"), minimum "+t)},v=t.exports.validateMinLength=function(e,t){!r.isUndefined(t)&&e.length<t&&d("MIN_LENGTH","String is too short ("+e.length+" chars), minimum "+t)},b=t.exports.validateMinProperties=function(e,t){var i=r.isPlainObject(e)?Object.keys(e).length:0;!r.isUndefined(t)&&i<t&&d("MIN_PROPERTIES","Number of properties is too few ("+i+" properties), minimum "+t)},$=t.exports.validateMultipleOf=function(e,t){r.isUndefined(t)||e%t==0||d("MULTIPLE_OF","Not a multiple of "+t)},w=t.exports.validatePattern=function(e,t){!r.isUndefined(t)&&r.isNull(e.match(new RegExp(t)))&&d("PATTERN","Does not match required pattern: "+t)};t.exports.validateRequiredness=function(e,t){!r.isUndefined(t)&&!0===t&&r.isUndefined(e)&&d("REQUIRED","Is required")};var j=t.exports.validateTypeAndFormat=function e(t,i,n,o,s,f){var c=!0,m=i;if(!0!==s||""!==i){if(r.isArray(i))r.each(i,function(i,r){e(t,i,n,o,s,!0)||d("INVALID_TYPE","Value at index "+r+" is not a valid "+n+": "+i)});else switch(n){case"boolean":"1.2"===t&&r.isString(i)&&("false"===i?i=!1:"true"===i&&(i=!0)),c=r.isBoolean(i);break;case"integer":"1.2"===t&&r.isString(i)&&(i=Number(i)),c=r.isFinite(i)&&Math.round(i)===i;break;case"number":"1.2"===t&&r.isString(i)&&(i=Number(i)),c=r.isFinite(i);break;case"string":if(!r.isUndefined(o))switch(o){case"date":c=a(i);break;case"date-time":c=p(i)}break;case"void":c=r.isUndefined(i)}if(f)return c;c||d("INVALID_TYPE","void"!==n?"Not a valid "+(r.isUndefined(o)?"":o+" ")+n+": "+m:"Void does not allow a value")}},x=t.exports.validateUniqueItems=function(e,t){r.isUndefined(t)||r.uniq(e).length===e.length||d("ARRAY_UNIQUE","Does not allow duplicate values: "+e.join(", "))},P=t.exports.validateSchemaConstraints=function(e,t,i,n){var o,s=function(e){var t=e;return t.schema&&(i=i.concat(["schema"]),t=s(t.schema)),t},a=t.type;a||(a=t.schema?(t=s(t)).type||"object":"responses"===i[i.length-2]?"void":"object"),o=!!t&&!0===t.allowEmptyValue;try{if("array"===a&&f(t),r.isUndefined(n)&&(n="1.2"===e?t.defaultValue:t.default,i=i.concat(["1.2"===e?"defaultValue":"default"])),r.isUndefined(n))return;"array"===a?r.each(n,function(r,n){try{P(e,t.items||{},i.concat(n.toString()),r)}catch(e){throw e.message="Value at index "+n+" "+("INVALID_TYPE"===e.code?"is ":"")+e.message.charAt(0).toLowerCase()+e.message.substring(1),e}}):j(e,n,a,t.format,o),c(n,t.enum),m(n,t.maximum,a,t.exclusiveMaximum),u(n,t.maxItems),l(n,t.maxLength),h(n,t.maxProperties),y(n,t.minimum,a,t.exclusiveMinimum),g(n,t.minItems),v(n,t.minLength),b(n,t.minProperties),$(n,t.multipleOf),w(n,t.pattern),x(n,t.uniqueItems)}catch(e){throw e.path=i,e}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./helpers":1}],4:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/apiDeclaration.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","basePath","apis"],properties:{swaggerVersion:{enum:["1.2"]},apiVersion:{type:"string"},basePath:{type:"string",format:"uri",pattern:"^https?://"},resourcePath:{type:"string",format:"uri",pattern:"^/"},apis:{type:"array",items:{$ref:"#/definitions/apiObject"}},models:{type:"object",additionalProperties:{$ref:"modelsObject.json#"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},authorizations:{$ref:"authorizationObject.json#"}},additionalProperties:!1,definitions:{apiObject:{type:"object",required:["path","operations"],properties:{path:{type:"string",format:"uri-template",pattern:"^/"},description:{type:"string"},operations:{type:"array",items:{$ref:"operationObject.json#"}}},additionalProperties:!1},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}},{}],5:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/authorizationObject.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuth"},{$ref:"#/definitions/apiKey"},{$ref:"#/definitions/oauth2"}]},definitions:{basicAuth:{required:["type"],properties:{type:{enum:["basicAuth"]}},additionalProperties:!1},apiKey:{required:["type","passAs","keyname"],properties:{type:{enum:["apiKey"]},passAs:{enum:["header","query"]},keyname:{type:"string"}},additionalProperties:!1},oauth2:{type:"object",required:["type","grantTypes"],properties:{type:{enum:["oauth2"]},scopes:{type:"array",items:{$ref:"#/definitions/oauth2Scope"}},grantTypes:{$ref:"oauth2GrantType.json#"}},additionalProperties:!1},oauth2Scope:{type:"object",required:["scope"],properties:{scope:{type:"string"},description:{type:"string"}},additionalProperties:!1}}}},{}],6:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/dataType.json#",$schema:"http://json-schema.org/draft-04/schema#",description:"Data type as described by the specification (version 1.2)",type:"object",oneOf:[{$ref:"#/definitions/refType"},{$ref:"#/definitions/voidType"},{$ref:"#/definitions/primitiveType"},{$ref:"#/definitions/modelType"},{$ref:"#/definitions/arrayType"}],definitions:{refType:{required:["$ref"],properties:{$ref:{type:"string"}},additionalProperties:!1},voidType:{enum:[{type:"void"}]},modelType:{required:["type"],properties:{type:{type:"string",not:{enum:["boolean","integer","number","string","array"]}}},additionalProperties:!1},primitiveType:{required:["type"],properties:{type:{enum:["boolean","integer","number","string"]},format:{type:"string"},defaultValue:{not:{type:["array","object","null"]}},enum:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},minimum:{type:"string"},maximum:{type:"string"}},additionalProperties:!1,dependencies:{format:{oneOf:[{properties:{type:{enum:["integer"]},format:{enum:["int32","int64"]}}},{properties:{type:{enum:["number"]},format:{enum:["float","double"]}}},{properties:{type:{enum:["string"]},format:{enum:["byte","date","date-time"]}}}]},enum:{properties:{type:{enum:["string"]}}},minimum:{properties:{type:{enum:["integer","number"]}}},maximum:{properties:{type:{enum:["integer","number"]}}}}},arrayType:{required:["type","items"],properties:{type:{enum:["array"]},items:{type:"array",items:{$ref:"#/definitions/itemsObject"}},uniqueItems:{type:"boolean"}},additionalProperties:!1},itemsObject:{oneOf:[{$ref:"#/definitions/refType"},{allOf:[{$ref:"#/definitions/primitiveType"},{properties:{type:{},format:{}},additionalProperties:!1}]}]}}}},{}],7:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/dataTypeBase.json#",$schema:"http://json-schema.org/draft-04/schema#",description:"Data type fields (section 4.3.3)",type:"object",oneOf:[{required:["type"]},{required:["$ref"]}],properties:{type:{type:"string"},$ref:{type:"string"},format:{type:"string"},defaultValue:{not:{type:["array","object","null"]}},enum:{type:"array",items:{type:"string"},uniqueItems:!0,minItems:1},minimum:{type:"string"},maximum:{type:"string"},items:{$ref:"#/definitions/itemsObject"},uniqueItems:{type:"boolean"}},dependencies:{format:{oneOf:[{properties:{type:{enum:["integer"]},format:{enum:["int32","int64"]}}},{properties:{type:{enum:["number"]},format:{enum:["float","double"]}}},{properties:{type:{enum:["string"]},format:{enum:["byte","date","date-time"]}}}]}},definitions:{itemsObject:{oneOf:[{type:"object",required:["$ref"],properties:{$ref:{type:"string"}},additionalProperties:!1},{allOf:[{$ref:"#"},{required:["type"],properties:{type:{},format:{}},additionalProperties:!1}]}]}}}},{}],8:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/infoObject.json#",$schema:"http://json-schema.org/draft-04/schema#",description:"info object (section 5.1.3)",type:"object",required:["title","description"],properties:{title:{type:"string"},description:{type:"string"},termsOfServiceUrl:{type:"string",format:"uri"},contact:{type:"string",format:"email"},license:{type:"string"},licenseUrl:{type:"string",format:"uri"}},additionalProperties:!1}},{}],9:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/modelsObject.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["id","properties"],properties:{id:{type:"string"},description:{type:"string"},properties:{type:"object",additionalProperties:{$ref:"#/definitions/propertyObject"}},subTypes:{type:"array",items:{type:"string"},uniqueItems:!0},discriminator:{type:"string"}},dependencies:{subTypes:["discriminator"]},definitions:{propertyObject:{allOf:[{not:{$ref:"#"}},{$ref:"dataTypeBase.json#"}]}}}},{}],10:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/oauth2GrantType.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",minProperties:1,properties:{implicit:{$ref:"#/definitions/implicit"},authorization_code:{$ref:"#/definitions/authorizationCode"}},definitions:{implicit:{type:"object",required:["loginEndpoint"],properties:{loginEndpoint:{$ref:"#/definitions/loginEndpoint"},tokenName:{type:"string"}},additionalProperties:!1},authorizationCode:{type:"object",required:["tokenEndpoint","tokenRequestEndpoint"],properties:{tokenEndpoint:{$ref:"#/definitions/tokenEndpoint"},tokenRequestEndpoint:{$ref:"#/definitions/tokenRequestEndpoint"}},additionalProperties:!1},loginEndpoint:{type:"object",required:["url"],properties:{url:{type:"string",format:"uri"}},additionalProperties:!1},tokenEndpoint:{type:"object",required:["url"],properties:{url:{type:"string",format:"uri"},tokenName:{type:"string"}},additionalProperties:!1},tokenRequestEndpoint:{type:"object",required:["url"],properties:{url:{type:"string",format:"uri"},clientIdName:{type:"string"},clientSecretName:{type:"string"}},additionalProperties:!1}}}},{}],11:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/operationObject.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",allOf:[{$ref:"dataTypeBase.json#"},{required:["method","nickname","parameters"],properties:{method:{enum:["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"]},summary:{type:"string",maxLength:120},notes:{type:"string"},nickname:{type:"string",pattern:"^[a-zA-Z0-9_]+$"},authorizations:{type:"object",additionalProperties:{type:"array",items:{$ref:"authorizationObject.json#/definitions/oauth2Scope"}}},parameters:{type:"array",items:{$ref:"parameterObject.json#"}},responseMessages:{type:"array",items:{$ref:"#/definitions/responseMessageObject"}},produces:{$ref:"#/definitions/mimeTypeArray"},consumes:{$ref:"#/definitions/mimeTypeArray"},deprecated:{enum:["true","false"]}}}],definitions:{responseMessageObject:{type:"object",required:["code","message"],properties:{code:{$ref:"#/definitions/rfc2616section10"},message:{type:"string"},responseModel:{type:"string"}}},rfc2616section10:{type:"integer",minimum:100,maximum:600,exclusiveMaximum:!0},mimeTypeArray:{type:"array",items:{type:"string",format:"mime-type"},uniqueItems:!0}}}},{}],12:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/parameterObject.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",allOf:[{$ref:"dataTypeBase.json#"},{required:["paramType","name"],properties:{paramType:{enum:["path","query","body","header","form"]},name:{type:"string"},description:{type:"string"},required:{type:"boolean"},allowMultiple:{type:"boolean"}}},{description:"type File requires special paramType and consumes",oneOf:[{properties:{type:{not:{enum:["File"]}}}},{properties:{type:{enum:["File"]},paramType:{enum:["form"]},consumes:{enum:["multipart/form-data"]}}}]}]}},{}],13:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/resourceListing.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swaggerVersion","apis"],properties:{swaggerVersion:{enum:["1.2"]},apis:{type:"array",items:{$ref:"resourceObject.json#"}},apiVersion:{type:"string"},info:{$ref:"infoObject.json#"},authorizations:{$ref:"authorizationObject.json#"}}}},{}],14:[function(e,t,i){t.exports={id:"http://wordnik.github.io/schemas/v1.2/resourceObject.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["path"],properties:{path:{type:"string",format:"uri"},description:{type:"string"}},additionalProperties:!1}},{}],15:[function(e,t,i){t.exports={title:"A JSON Schema for Swagger 2.0 API.",id:"http://swagger.io/v2/schema.json#",$schema:"http://json-schema.org/draft-04/schema#",type:"object",required:["swagger","info","paths"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{swagger:{type:"string",enum:["2.0"],description:"The Swagger version of this document."},info:{$ref:"#/definitions/info"},host:{type:"string",pattern:"^[^{}/ :\\\\]+(?::\\d+)?$",description:"The host (name or ip) of the API. Example: 'swagger.io'"},basePath:{type:"string",pattern:"^/",description:"The base path to the API. Example: '/api'."},schemes:{$ref:"#/definitions/schemesList"},consumes:{description:"A list of MIME types accepted by the API.",$ref:"#/definitions/mediaTypeList"},produces:{description:"A list of MIME types the API can produce.",$ref:"#/definitions/mediaTypeList"},paths:{$ref:"#/definitions/paths"},definitions:{$ref:"#/definitions/definitions"},parameters:{$ref:"#/definitions/parameterDefinitions"},responses:{$ref:"#/definitions/responseDefinitions"},security:{$ref:"#/definitions/security"},securityDefinitions:{$ref:"#/definitions/securityDefinitions"},tags:{type:"array",items:{$ref:"#/definitions/tag"},uniqueItems:!0},externalDocs:{$ref:"#/definitions/externalDocs"}},definitions:{info:{type:"object",description:"General information about the API.",required:["version","title"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{title:{type:"string",description:"A unique and precise title of the API."},version:{type:"string",description:"A semantic version number of the API."},description:{type:"string",description:"A longer description of the API. Should be different from the title.  GitHub Flavored Markdown is allowed."},termsOfService:{type:"string",description:"The terms of service for the API."},contact:{$ref:"#/definitions/contact"},license:{$ref:"#/definitions/license"}}},contact:{type:"object",description:"Contact information for the owners of the API.",additionalProperties:!1,properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information.",format:"uri"},email:{type:"string",description:"The email address of the contact person/organization.",format:"email"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},license:{type:"object",required:["name"],additionalProperties:!1,properties:{name:{type:"string",description:"The name of the license type. It's encouraged to use an OSI compatible license."},url:{type:"string",description:"The URL pointing to the license.",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},paths:{type:"object",description:"Relative paths to the individual endpoints. They must be relative to the 'basePath'.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"},"^/":{$ref:"#/definitions/pathItem"}},additionalProperties:!1},definitions:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},description:"One or more JSON objects describing the schemas being consumed and produced by the API."},parameterDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/parameter"},description:"One or more JSON representations for parameters"},responseDefinitions:{type:"object",additionalProperties:{$ref:"#/definitions/response"},description:"One or more JSON representations for parameters"},externalDocs:{type:"object",additionalProperties:!1,description:"information about external documentation",required:["url"],properties:{description:{type:"string"},url:{type:"string",format:"uri"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},examples:{type:"object",additionalProperties:!0},mimeType:{type:"string",description:"The MIME type of the HTTP message."},operation:{type:"object",required:["responses"],additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{tags:{type:"array",items:{type:"string"},uniqueItems:!0},summary:{type:"string",description:"A brief summary of the operation."},description:{type:"string",description:"A longer description of the operation, GitHub Flavored Markdown is allowed."},externalDocs:{$ref:"#/definitions/externalDocs"},operationId:{type:"string",description:"A unique identifier of the operation."},produces:{description:"A list of MIME types the API can produce.",$ref:"#/definitions/mediaTypeList"},consumes:{description:"A list of MIME types the API can consume.",$ref:"#/definitions/mediaTypeList"},parameters:{$ref:"#/definitions/parametersList"},responses:{$ref:"#/definitions/responses"},schemes:{$ref:"#/definitions/schemesList"},deprecated:{type:"boolean",default:!1},security:{$ref:"#/definitions/security"}}},pathItem:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},get:{$ref:"#/definitions/operation"},put:{$ref:"#/definitions/operation"},post:{$ref:"#/definitions/operation"},delete:{$ref:"#/definitions/operation"},options:{$ref:"#/definitions/operation"},head:{$ref:"#/definitions/operation"},patch:{$ref:"#/definitions/operation"},parameters:{$ref:"#/definitions/parametersList"}}},responses:{type:"object",description:"Response objects names can either be any valid HTTP status code or 'default'.",minProperties:1,additionalProperties:!1,patternProperties:{"^([0-9]{3})$|^(default)$":{$ref:"#/definitions/responseValue"},"^x-":{$ref:"#/definitions/vendorExtension"}},not:{type:"object",additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}}},responseValue:{oneOf:[{$ref:"#/definitions/response"},{$ref:"#/definitions/jsonReference"}]},response:{type:"object",required:["description"],properties:{description:{type:"string"},schema:{oneOf:[{$ref:"#/definitions/schema"},{$ref:"#/definitions/fileSchema"}]},headers:{$ref:"#/definitions/headers"},examples:{$ref:"#/definitions/examples"}},additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},headers:{type:"object",additionalProperties:{$ref:"#/definitions/header"}},header:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},vendorExtension:{description:"Any property starting with x- is valid.",additionalProperties:!0,additionalItems:!0},bodyParameter:{type:"object",required:["name","in","schema"],patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},in:{type:"string",description:"Determines the location of the parameter.",enum:["body"]},required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},schema:{$ref:"#/definitions/schema"}},additionalProperties:!1},headerParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["header"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},queryParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["query"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},formDataParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{required:{type:"boolean",description:"Determines whether or not this parameter is required or optional.",default:!1},in:{type:"string",description:"Determines the location of the parameter.",enum:["formData"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},allowEmptyValue:{type:"boolean",default:!1,description:"allows sending a parameter by name only or with an empty value."},type:{type:"string",enum:["string","number","boolean","integer","array","file"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormatWithMulti"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},pathParameterSubSchema:{additionalProperties:!1,patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["required"],properties:{required:{type:"boolean",enum:[!0],description:"Determines whether or not this parameter is required or optional."},in:{type:"string",description:"Determines the location of the parameter.",enum:["path"]},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use.  GitHub Flavored Markdown is allowed."},name:{type:"string",description:"The name of the parameter."},type:{type:"string",enum:["string","number","boolean","integer","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}}},nonBodyParameter:{type:"object",required:["name","in","type"],oneOf:[{$ref:"#/definitions/headerParameterSubSchema"},{$ref:"#/definitions/formDataParameterSubSchema"},{$ref:"#/definitions/queryParameterSubSchema"},{$ref:"#/definitions/pathParameterSubSchema"}]},parameter:{oneOf:[{$ref:"#/definitions/bodyParameter"},{$ref:"#/definitions/nonBodyParameter"}]},schema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},properties:{$ref:{type:"string"},format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},maxProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minProperties:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},additionalProperties:{anyOf:[{$ref:"#/definitions/schema"},{type:"boolean"}],default:{}},type:{$ref:"http://json-schema.org/draft-04/schema#/properties/type"},items:{anyOf:[{$ref:"#/definitions/schema"},{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}}],default:{}},allOf:{type:"array",minItems:1,items:{$ref:"#/definitions/schema"}},properties:{type:"object",additionalProperties:{$ref:"#/definitions/schema"},default:{}},discriminator:{type:"string"},readOnly:{type:"boolean",default:!1},xml:{$ref:"#/definitions/xml"},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},fileSchema:{type:"object",description:"A deterministic version of a JSON Schema object.",patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}},required:["type"],properties:{format:{type:"string"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},required:{$ref:"http://json-schema.org/draft-04/schema#/definitions/stringArray"},type:{type:"string",enum:["file"]},readOnly:{type:"boolean",default:!1},externalDocs:{$ref:"#/definitions/externalDocs"},example:{}},additionalProperties:!1},primitivesItems:{type:"object",additionalProperties:!1,properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:{$ref:"#/definitions/primitivesItems"},collectionFormat:{$ref:"#/definitions/collectionFormat"},default:{$ref:"#/definitions/default"},maximum:{$ref:"#/definitions/maximum"},exclusiveMaximum:{$ref:"#/definitions/exclusiveMaximum"},minimum:{$ref:"#/definitions/minimum"},exclusiveMinimum:{$ref:"#/definitions/exclusiveMinimum"},maxLength:{$ref:"#/definitions/maxLength"},minLength:{$ref:"#/definitions/minLength"},pattern:{$ref:"#/definitions/pattern"},maxItems:{$ref:"#/definitions/maxItems"},minItems:{$ref:"#/definitions/minItems"},uniqueItems:{$ref:"#/definitions/uniqueItems"},enum:{$ref:"#/definitions/enum"},multipleOf:{$ref:"#/definitions/multipleOf"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},security:{type:"array",items:{$ref:"#/definitions/securityRequirement"},uniqueItems:!0},securityRequirement:{type:"object",additionalProperties:{type:"array",items:{type:"string"},uniqueItems:!0}},xml:{type:"object",additionalProperties:!1,properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean",default:!1},wrapped:{type:"boolean",default:!1}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},tag:{type:"object",additionalProperties:!1,required:["name"],properties:{name:{type:"string"},description:{type:"string"},externalDocs:{$ref:"#/definitions/externalDocs"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},securityDefinitions:{type:"object",additionalProperties:{oneOf:[{$ref:"#/definitions/basicAuthenticationSecurity"},{$ref:"#/definitions/apiKeySecurity"},{$ref:"#/definitions/oauth2ImplicitSecurity"},{$ref:"#/definitions/oauth2PasswordSecurity"},{$ref:"#/definitions/oauth2ApplicationSecurity"},{$ref:"#/definitions/oauth2AccessCodeSecurity"}]}},basicAuthenticationSecurity:{type:"object",additionalProperties:!1,required:["type"],properties:{type:{type:"string",enum:["basic"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},apiKeySecurity:{type:"object",additionalProperties:!1,required:["type","name","in"],properties:{type:{type:"string",enum:["apiKey"]},name:{type:"string"},in:{type:"string",enum:["header","query"]},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ImplicitSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["implicit"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2PasswordSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["password"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2ApplicationSecurity:{type:"object",additionalProperties:!1,required:["type","flow","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["application"]},scopes:{$ref:"#/definitions/oauth2Scopes"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2AccessCodeSecurity:{type:"object",additionalProperties:!1,required:["type","flow","authorizationUrl","tokenUrl"],properties:{type:{type:"string",enum:["oauth2"]},flow:{type:"string",enum:["accessCode"]},scopes:{$ref:"#/definitions/oauth2Scopes"},authorizationUrl:{type:"string",format:"uri"},tokenUrl:{type:"string",format:"uri"},description:{type:"string"}},patternProperties:{"^x-":{$ref:"#/definitions/vendorExtension"}}},oauth2Scopes:{type:"object",additionalProperties:{type:"string"}},mediaTypeList:{type:"array",items:{$ref:"#/definitions/mimeType"},uniqueItems:!0},parametersList:{type:"array",description:"The parameters needed to send a valid API call.",additionalItems:!1,items:{oneOf:[{$ref:"#/definitions/parameter"},{$ref:"#/definitions/jsonReference"}]},uniqueItems:!0},schemesList:{type:"array",description:"The transfer protocol of the API.",items:{type:"string",enum:["http","https","ws","wss"]},uniqueItems:!0},collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes"],default:"csv"},collectionFormatWithMulti:{type:"string",enum:["csv","ssv","tsv","pipes","multi"],default:"csv"},title:{$ref:"http://json-schema.org/draft-04/schema#/properties/title"},description:{$ref:"http://json-schema.org/draft-04/schema#/properties/description"},default:{$ref:"http://json-schema.org/draft-04/schema#/properties/default"},multipleOf:{$ref:"http://json-schema.org/draft-04/schema#/properties/multipleOf"},maximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/maximum"},exclusiveMaximum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"},minimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/minimum"},exclusiveMinimum:{$ref:"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"},maxLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minLength:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},pattern:{$ref:"http://json-schema.org/draft-04/schema#/properties/pattern"},maxItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveInteger"},minItems:{$ref:"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"},uniqueItems:{$ref:"http://json-schema.org/draft-04/schema#/properties/uniqueItems"},enum:{$ref:"http://json-schema.org/draft-04/schema#/properties/enum"},jsonReference:{type:"object",required:["$ref"],additionalProperties:!1,properties:{$ref:{type:"string"}}}}}},{}],16:[function(e,t,i){t.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}},{}]},{},[2])(2)});