purecloud-platform-client-v2 182.0.0 → 182.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/node/purecloud-platform-client-v2.js +74 -74
- package/dist/web-amd/purecloud-platform-client-v2.js +74 -74
- package/dist/web-cjs/bundle.js +149 -914
- package/dist/web-cjs/purecloud-platform-client-v2.js +4290 -20917
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/index.js +1 -1
package/dist/web-cjs/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _wrapAsyncGenerator(fn){return function(){return new _AsyncGenerator(fn.apply(this,arguments));};}function _AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof _OverloadYield;Promise.resolve(u?o.v:o).then(function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value;}settle(n.done?"return":"normal",t);},function(e){resume("throw",e);});}catch(e){settle("throw",e);}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1});}(r=r.next)?resume(r.key,r.arg):t=null;}this._invoke=function(e,n){return new Promise(function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n));});},"function"!=typeof e["return"]&&(this["return"]=void 0);}_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this;},_AsyncGenerator.prototype.next=function(e){return this._invoke("next",e);},_AsyncGenerator.prototype["throw"]=function(e){return this._invoke("throw",e);},_AsyncGenerator.prototype["return"]=function(e){return this._invoke("return",e);};function _awaitAsyncGenerator(e){return new _OverloadYield(e,0);}function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise(function(n){n(t[e](r));}),{done:!1,value:new _OverloadYield(r,1)};}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this;},e.next=function(t){return n?(n=!1,t):pump("next",t);},"function"==typeof t["throw"]&&(e["throw"]=function(t){if(n)throw n=!1,t;return pump("throw",t);}),"function"==typeof t["return"]&&(e["return"]=function(t){return n?(n=!1,t):pump("return",t);}),e;}function _OverloadYield(t,e){this.v=t,this.k=e;}function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator";}throw new TypeError("Object is not async iterable");}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(r){return{value:r,done:n};});}return AsyncFromSyncIterator=function AsyncFromSyncIterator(r){this.s=r,this.n=r.next;},AsyncFromSyncIterator.prototype={s:null,n:null,next:function next(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments));},"return":function _return(r){var n=this.s["return"];return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));},"throw":function _throw(r){var n=this.s["return"];return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments));}},new AsyncFromSyncIterator(r);}var require$$1=require('util');var stream=require('stream');var require$$1$1=require('path');var require$$3=require('http');var require$$4$1=require('https');var require$$0$1=require('url');var require$$6=require('fs');var buffer=require('buffer');var require$$0$3=require('tty');var require$$0$2=require('os');var zlib=require('zlib');var EventEmitter=require('events');var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var require$$1__default=/*#__PURE__*/_interopDefaultLegacy(require$$1);var stream__default=/*#__PURE__*/_interopDefaultLegacy(stream);var require$$1__default$1=/*#__PURE__*/_interopDefaultLegacy(require$$1$1);var require$$3__default=/*#__PURE__*/_interopDefaultLegacy(require$$3);var require$$4__default=/*#__PURE__*/_interopDefaultLegacy(require$$4$1);var require$$0__default=/*#__PURE__*/_interopDefaultLegacy(require$$0$1);var require$$6__default=/*#__PURE__*/_interopDefaultLegacy(require$$6);var require$$0__default$2=/*#__PURE__*/_interopDefaultLegacy(require$$0$3);var require$$0__default$1=/*#__PURE__*/_interopDefaultLegacy(require$$0$2);var zlib__default=/*#__PURE__*/_interopDefaultLegacy(zlib);var EventEmitter__default=/*#__PURE__*/_interopDefaultLegacy(EventEmitter);var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
1
|
+
'use strict';function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return _typeof(key)==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(_typeof(input)!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(_typeof(res)!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}var qs=require('qs');function _interopDefaultLegacy(e){return e&&_typeof(e)==='object'&&'default'in e?e:{'default':e};}var qs__default=/*#__PURE__*/_interopDefaultLegacy(qs);var PureCloudRegionHosts={us_east_1:'mypurecloud.com',eu_west_1:'mypurecloud.ie',ap_southeast_2:'mypurecloud.com.au',ap_northeast_1:'mypurecloud.jp',eu_central_1:'mypurecloud.de',us_west_2:'usw2.pure.cloud',ca_central_1:'cac1.pure.cloud',ap_northeast_2:'apne2.pure.cloud',eu_west_2:'euw2.pure.cloud',ap_south_1:'aps1.pure.cloud',us_east_2:'use2.us-gov-pure.cloud',sa_east_1:'sae1.pure.cloud'};var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var inited=false;function init(){inited=true;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;}function toByteArray(b64){if(!inited){init();}var i,j,l,tmp,placeHolders,arr;var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders)
|
|
2
2
|
// if there are two placeholders, than the two characters before it
|
|
3
3
|
// represent one byte
|
|
4
4
|
// if there is only one, then the three characters before it represent 2 bytes
|
|
@@ -72,7 +72,7 @@ if(byteOffset<0||array.byteLength<byteOffset){throw new RangeError('\'offset\' i
|
|
|
72
72
|
that=array;that.__proto__=Buffer.prototype;}else{// Fallback: Return an object instance of the Buffer class
|
|
73
73
|
that=fromArrayLike(that,array);}return that;}function fromObject(that,obj){if(internalIsBuffer(obj)){var len=checked(obj.length)|0;that=createBuffer(that,len);if(that.length===0){return that;}obj.copy(that,0,0,len);return that;}if(obj){if(typeof ArrayBuffer!=='undefined'&&obj.buffer instanceof ArrayBuffer||'length'in obj){if(typeof obj.length!=='number'||isnan(obj.length)){return createBuffer(that,0);}return fromArrayLike(that,obj);}if(obj.type==='Buffer'&&isArray$1(obj.data)){return fromArrayLike(that,obj.data);}}throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.');}function checked(length){// Note: cannot use `length < kMaxLength()` here because that fails when
|
|
74
74
|
// length is NaN (which is otherwise coerced to zero.)
|
|
75
|
-
if(length>=kMaxLength()){throw new RangeError('Attempt to allocate Buffer larger than maximum '+'size: 0x'+kMaxLength().toString(16)+' bytes');}return length|0;}Buffer.isBuffer=isBuffer$
|
|
75
|
+
if(length>=kMaxLength()){throw new RangeError('Attempt to allocate Buffer larger than maximum '+'size: 0x'+kMaxLength().toString(16)+' bytes');}return length|0;}Buffer.isBuffer=isBuffer$1;function internalIsBuffer(b){return!!(b!=null&&b._isBuffer);}Buffer.compare=function compare(a,b){if(!internalIsBuffer(a)||!internalIsBuffer(b)){throw new TypeError('Arguments must be Buffers');}if(a===b)return 0;var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len;++i){if(a[i]!==b[i]){x=a[i];y=b[i];break;}}if(x<y)return-1;if(y<x)return 1;return 0;};Buffer.isEncoding=function isEncoding(encoding){switch(String(encoding).toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'latin1':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return true;default:return false;}};Buffer.concat=function concat(list,length){if(!isArray$1(list)){throw new TypeError('"list" argument must be an Array of Buffers');}if(list.length===0){return Buffer.alloc(0);}var i;if(length===undefined){length=0;for(i=0;i<list.length;++i){length+=list[i].length;}}var buffer=Buffer.allocUnsafe(length);var pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(!internalIsBuffer(buf)){throw new TypeError('"list" argument must be an Array of Buffers');}buf.copy(buffer,pos);pos+=buf.length;}return buffer;};function byteLength(string,encoding){if(internalIsBuffer(string)){return string.length;}if(typeof ArrayBuffer!=='undefined'&&typeof ArrayBuffer.isView==='function'&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer)){return string.byteLength;}if(typeof string!=='string'){string=''+string;}var len=string.length;if(len===0)return 0;// Use a for loop to avoid recursion
|
|
76
76
|
var loweredCase=false;for(;;){switch(encoding){case'ascii':case'latin1':case'binary':return len;case'utf8':case'utf-8':case undefined:return utf8ToBytes(string).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return len*2;case'hex':return len>>>1;case'base64':return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;// assume utf8
|
|
77
77
|
encoding=(''+encoding).toLowerCase();loweredCase=true;}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;// No need to verify that "this.length <= MAX_UINT32" since it's a read-only
|
|
78
78
|
// property of a typed array.
|
|
@@ -151,7 +151,7 @@ byteArray.push(str.charCodeAt(i)&0xFF);}return byteArray;}function utf16leToByte
|
|
|
151
151
|
}// the following is from is-buffer, also by Feross Aboukhadijeh and with same lisence
|
|
152
152
|
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
|
153
153
|
// Object.prototype.constructor. Remove this eventually
|
|
154
|
-
function isBuffer$
|
|
154
|
+
function isBuffer$1(obj){return obj!=null&&(!!obj._isBuffer||isFastBuffer(obj)||isSlowBuffer(obj));}function isFastBuffer(obj){return!!obj.constructor&&typeof obj.constructor.isBuffer==='function'&&obj.constructor.isBuffer(obj);}// For Node v0.10 support. Remove this eventually.
|
|
155
155
|
function isSlowBuffer(obj){return typeof obj.readFloatLE==='function'&&typeof obj.slice==='function'&&isFastBuffer(obj.slice(0,0));}function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments);};}// utils is a library of generic helper functions non-specific to axios
|
|
156
156
|
var toString=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;var kindOf=function(cache){return function(thing){var str=toString.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase());};}(Object.create(null));var kindOfTest=function kindOfTest(type){type=type.toLowerCase();return function(thing){return kindOf(thing)===type;};};var typeOfTest=function typeOfTest(type){return function(thing){return _typeof(thing)===type;};};/**
|
|
157
157
|
* Determine if a value is an Array
|
|
@@ -171,7 +171,7 @@ var toString=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;
|
|
|
171
171
|
* @param {*} val The value to test
|
|
172
172
|
*
|
|
173
173
|
* @returns {boolean} True if value is a Buffer, otherwise false
|
|
174
|
-
*/function isBuffer
|
|
174
|
+
*/function isBuffer(val){return val!==null&&!isUndefined(val)&&val.constructor!==null&&!isUndefined(val.constructor)&&isFunction(val.constructor.isBuffer)&&val.constructor.isBuffer(val);}/**
|
|
175
175
|
* Determine if a value is an ArrayBuffer
|
|
176
176
|
*
|
|
177
177
|
* @param {*} val The value to test
|
|
@@ -189,12 +189,12 @@ var toString=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;
|
|
|
189
189
|
* @param {*} val The value to test
|
|
190
190
|
*
|
|
191
191
|
* @returns {boolean} True if value is a String, otherwise false
|
|
192
|
-
*/var isString
|
|
192
|
+
*/var isString=typeOfTest('string');/**
|
|
193
193
|
* Determine if a value is a Function
|
|
194
194
|
*
|
|
195
195
|
* @param {*} val The value to test
|
|
196
196
|
* @returns {boolean} True if value is a Function, otherwise false
|
|
197
|
-
*/var isFunction
|
|
197
|
+
*/var isFunction=typeOfTest('function');/**
|
|
198
198
|
* Determine if a value is a Number
|
|
199
199
|
*
|
|
200
200
|
* @param {*} val The value to test
|
|
@@ -247,14 +247,14 @@ var toString=Object.prototype.toString;var getPrototypeOf=Object.getPrototypeOf;
|
|
|
247
247
|
* @param {*} val The value to test
|
|
248
248
|
*
|
|
249
249
|
* @returns {boolean} True if value is a Stream, otherwise false
|
|
250
|
-
*/var isStream=function isStream(val){return isObject(val)&&isFunction
|
|
250
|
+
*/var isStream=function isStream(val){return isObject(val)&&isFunction(val.pipe);};/**
|
|
251
251
|
* Determine if a value is a FormData
|
|
252
252
|
*
|
|
253
253
|
* @param {*} thing The value to test
|
|
254
254
|
*
|
|
255
255
|
* @returns {boolean} True if value is an FormData, otherwise false
|
|
256
|
-
*/var isFormData=function isFormData(thing){var kind;return thing&&(typeof FormData==='function'&&thing instanceof FormData||isFunction
|
|
257
|
-
kind==='object'&&isFunction
|
|
256
|
+
*/var isFormData=function isFormData(thing){var kind;return thing&&(typeof FormData==='function'&&thing instanceof FormData||isFunction(thing.append)&&((kind=kindOf(thing))==='formdata'||// detect form-data instance
|
|
257
|
+
kind==='object'&&isFunction(thing.toString)&&thing.toString()==='[object FormData]'));};/**
|
|
258
258
|
* Determine if a value is a URLSearchParams object
|
|
259
259
|
*
|
|
260
260
|
* @param {*} val The value to test
|
|
@@ -280,7 +280,7 @@ kind==='object'&&isFunction$1(thing.toString)&&thing.toString()==='[object FormD
|
|
|
280
280
|
*
|
|
281
281
|
* @param {Boolean} [allOwnKeys = false]
|
|
282
282
|
* @returns {any}
|
|
283
|
-
*/function forEach(obj,fn){var
|
|
283
|
+
*/function forEach(obj,fn){var _ref=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},_ref$allOwnKeys=_ref.allOwnKeys,allOwnKeys=_ref$allOwnKeys===void 0?false:_ref$allOwnKeys;// Don't bother if no value provided
|
|
284
284
|
if(obj===null||typeof obj==='undefined'){return;}var i;var l;// Force an array if not already something iterable
|
|
285
285
|
if(_typeof(obj)!=='object'){/*eslint no-param-reassign:0*/obj=[obj];}if(isArray(obj)){// Iterate over array values
|
|
286
286
|
for(i=0,l=obj.length;i<l;i++){fn.call(null,obj[i],i,obj);}}else{// Iterate over object keys
|
|
@@ -301,7 +301,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
301
301
|
* @param {Object} obj1 Object to merge
|
|
302
302
|
*
|
|
303
303
|
* @returns {Object} Result of all merge properties
|
|
304
|
-
*/function merge(/* obj1, obj2, obj3, ... */){var
|
|
304
|
+
*/function merge(/* obj1, obj2, obj3, ... */){var _ref2=isContextDefined(this)&&this||{},caseless=_ref2.caseless;var result={};var assignValue=function assignValue(val,key){var targetKey=caseless&&findKey(result,key)||key;if(isPlainObject(result[targetKey])&&isPlainObject(val)){result[targetKey]=merge(result[targetKey],val);}else if(isPlainObject(val)){result[targetKey]=merge({},val);}else if(isArray(val)){result[targetKey]=val.slice();}else{result[targetKey]=val;}};for(var i=0,l=arguments.length;i<l;i++){arguments[i]&&forEach(arguments[i],assignValue);}return result;}/**
|
|
305
305
|
* Extends object a by mutably adding to it the properties of object b.
|
|
306
306
|
*
|
|
307
307
|
* @param {Object} a The object to be extended
|
|
@@ -310,7 +310,7 @@ var keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj);var len=key
|
|
|
310
310
|
*
|
|
311
311
|
* @param {Boolean} [allOwnKeys]
|
|
312
312
|
* @returns {Object} The resulting value of object a
|
|
313
|
-
*/var extend=function extend(a,b,thisArg){var
|
|
313
|
+
*/var extend=function extend(a,b,thisArg){var _ref3=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},allOwnKeys=_ref3.allOwnKeys;forEach(b,function(val,key){if(thisArg&&isFunction(val)){a[key]=bind(val,thisArg);}else{a[key]=val;}},{allOwnKeys:allOwnKeys});return a;};/**
|
|
314
314
|
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
315
315
|
*
|
|
316
316
|
* @param {string} content with BOM
|
|
@@ -370,7 +370,7 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
370
370
|
* @param {string} str - The string to search.
|
|
371
371
|
*
|
|
372
372
|
* @returns {Array<boolean>}
|
|
373
|
-
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(
|
|
373
|
+
*/var matchAll=function matchAll(regExp,str){var matches;var arr=[];while((matches=regExp.exec(str))!==null){arr.push(matches);}return arr;};/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */var isHTMLForm=kindOfTest('HTMLFormElement');var toCamelCase=function toCamelCase(str){return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function replacer(m,p1,p2){return p1.toUpperCase()+p2;});};/* Creating a function that will check if an object has a property. */var hasOwnProperty=function(_ref4){var hasOwnProperty=_ref4.hasOwnProperty;return function(obj,prop){return hasOwnProperty.call(obj,prop);};}(Object.prototype);/**
|
|
374
374
|
* Determine if a value is a RegExp object
|
|
375
375
|
*
|
|
376
376
|
* @param {*} val The value to test
|
|
@@ -380,14 +380,14 @@ return function(thing){return TypedArray&&thing instanceof TypedArray;};}(typeof
|
|
|
380
380
|
* Makes all methods read-only
|
|
381
381
|
* @param {Object} obj
|
|
382
382
|
*/var freezeMethods=function freezeMethods(obj){reduceDescriptors(obj,function(descriptor,name){// skip restricted props in strict mode
|
|
383
|
-
if(isFunction
|
|
383
|
+
if(isFunction(obj)&&['arguments','caller','callee'].indexOf(name)!==-1){return false;}var value=obj[name];if(!isFunction(value))return;descriptor.enumerable=false;if('writable'in descriptor){descriptor.writable=false;return;}if(!descriptor.set){descriptor.set=function(){throw Error('Can not rewrite read-only method \''+name+'\'');};}});};var toObjectSet=function toObjectSet(arrayOrString,delimiter){var obj={};var define=function define(arr){arr.forEach(function(value){obj[value]=true;});};isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter));return obj;};var noop=function noop(){};var toFiniteNumber=function toFiniteNumber(value,defaultValue){value=+value;return Number.isFinite(value)?value:defaultValue;};var ALPHA='abcdefghijklmnopqrstuvwxyz';var DIGIT='0123456789';var ALPHABET={DIGIT:DIGIT,ALPHA:ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT};var generateString=function generateString(){var size=arguments.length>0&&arguments[0]!==undefined?arguments[0]:16;var alphabet=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ALPHABET.ALPHA_DIGIT;var str='';var length=alphabet.length;while(size--){str+=alphabet[Math.random()*length|0];}return str;};/**
|
|
384
384
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
385
385
|
*
|
|
386
386
|
* @param {unknown} thing - The thing to check.
|
|
387
387
|
*
|
|
388
388
|
* @returns {boolean}
|
|
389
|
-
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction
|
|
390
|
-
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop
|
|
389
|
+
*/function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[Symbol.toStringTag]==='FormData'&&thing[Symbol.iterator]);}var toJSONObject=function toJSONObject(obj){var stack=new Array(10);var visit=function visit(source,i){if(isObject(source)){if(stack.indexOf(source)>=0){return;}if(!('toJSON'in source)){stack[i]=source;var target=isArray(source)?[]:{};forEach(source,function(value,key){var reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue);});stack[i]=undefined;return target;}}return source;};return visit(obj,0);};var isAsyncFn=kindOfTest('AsyncFunction');var isThenable=function isThenable(thing){return thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing["catch"]);};var utils$1={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isBoolean:isBoolean,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,// an alias to avoid ESLint no-prototype-builtins detection
|
|
390
|
+
reduceDescriptors:reduceDescriptors,freezeMethods:freezeMethods,toObjectSet:toObjectSet,toCamelCase:toCamelCase,noop:noop,toFiniteNumber:toFiniteNumber,findKey:findKey,global:_global,isContextDefined:isContextDefined,ALPHABET:ALPHABET,generateString:generateString,isSpecCompliantForm:isSpecCompliantForm,toJSONObject:toJSONObject,isAsyncFn:isAsyncFn,isThenable:isThenable};/**
|
|
391
391
|
* Create an Error with the specified message, config, error code, request and response.
|
|
392
392
|
*
|
|
393
393
|
* @param {string} message The error message.
|
|
@@ -403,281 +403,8 @@ description:this.description,number:this.number,// Mozilla
|
|
|
403
403
|
fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,// Axios
|
|
404
404
|
config:utils$1.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null};}});var prototype$1=AxiosError.prototype;var descriptors={};['ERR_BAD_OPTION_VALUE','ERR_BAD_OPTION','ECONNABORTED','ETIMEDOUT','ERR_NETWORK','ERR_FR_TOO_MANY_REDIRECTS','ERR_DEPRECATED','ERR_BAD_RESPONSE','ERR_BAD_REQUEST','ERR_CANCELED','ERR_NOT_SUPPORT','ERR_INVALID_URL'// eslint-disable-next-line func-names
|
|
405
405
|
].forEach(function(code){descriptors[code]={value:code};});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,'isAxiosError',{value:true});// eslint-disable-next-line func-names
|
|
406
|
-
AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype$1);utils$1.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;},function(prop){return prop!=='isAxiosError';});AxiosError.call(axiosError,error.message,code,config,request,response);axiosError.cause=error;axiosError.name=error.name;customProps&&Object.assign(axiosError,customProps);return axiosError;};//
|
|
407
|
-
|
|
408
|
-
function defaultSetTimout(){throw new Error('setTimeout has not been defined');}function defaultClearTimeout(){throw new Error('clearTimeout has not been defined');}var cachedSetTimeout=defaultSetTimout;var cachedClearTimeout=defaultClearTimeout;if(typeof global$1.setTimeout==='function'){cachedSetTimeout=setTimeout;}if(typeof global$1.clearTimeout==='function'){cachedClearTimeout=clearTimeout;}function runTimeout(fun){if(cachedSetTimeout===setTimeout){//normal enviroments in sane situations
|
|
409
|
-
return setTimeout(fun,0);}// if setTimeout wasn't available but was latter defined
|
|
410
|
-
if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0);}try{// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
411
|
-
return cachedSetTimeout(fun,0);}catch(e){try{// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
412
|
-
return cachedSetTimeout.call(null,fun,0);}catch(e){// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
413
|
-
return cachedSetTimeout.call(this,fun,0);}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){//normal enviroments in sane situations
|
|
414
|
-
return clearTimeout(marker);}// if clearTimeout wasn't available but was latter defined
|
|
415
|
-
if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker);}try{// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
416
|
-
return cachedClearTimeout(marker);}catch(e){try{// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
417
|
-
return cachedClearTimeout.call(null,marker);}catch(e){// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
418
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
419
|
-
return cachedClearTimeout.call(this,marker);}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;}if(queue.length){drainQueue();}}function drainQueue(){if(draining){return;}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run();}}queueIndex=-1;len=queue.length;}currentQueue=null;draining=false;runClearTimeout(timeout);}function nextTick(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i];}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue);}}// v8 likes predictible objects
|
|
420
|
-
function Item(fun,array){this.fun=fun;this.array=array;}Item.prototype.run=function(){this.fun.apply(null,this.array);};var title='browser';var platform$2='browser';var browser$2=true;var env={};var argv=[];var version='';// empty string to avoid regexp issues
|
|
421
|
-
var versions={};var release={};var config={};function noop$1(){}var on=noop$1;var addListener=noop$1;var once=noop$1;var off=noop$1;var removeListener=noop$1;var removeAllListeners=noop$1;var emit=noop$1;function binding(name){throw new Error('process.binding is not supported');}function cwd(){return'/';}function chdir(dir){throw new Error('process.chdir is not supported');}function umask(){return 0;}// from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
|
|
422
|
-
var performance=global$1.performance||{};var performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return new Date().getTime();};// generate timestamp or delta
|
|
423
|
-
// see http://nodejs.org/api/process.html#process_process_hrtime
|
|
424
|
-
function hrtime(previousTimestamp){var clocktime=performanceNow.call(performance)*1e-3;var seconds=Math.floor(clocktime);var nanoseconds=Math.floor(clocktime%1*1e9);if(previousTimestamp){seconds=seconds-previousTimestamp[0];nanoseconds=nanoseconds-previousTimestamp[1];if(nanoseconds<0){seconds--;nanoseconds+=1e9;}}return[seconds,nanoseconds];}var startTime=new Date();function uptime(){var currentTime=new Date();var dif=currentTime-startTime;return dif/1000;}var process={nextTick:nextTick,title:title,browser:browser$2,env:env,argv:argv,version:version,versions:versions,on:on,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform$2,release:release,config:config,uptime:uptime};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,'default')?x['default']:x;}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n["default"];if(typeof f=="function"){var a=function a(){if(this instanceof a){return Reflect.construct(f,arguments,this.constructor);}return f.apply(this,arguments);};a.prototype=f.prototype;}else a={};Object.defineProperty(a,'__esModule',{value:true});Object.keys(n).forEach(function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:true,get:function get(){return n[k];}});});return a;}var Stream$2=stream__default["default"].Stream;var util$2=require$$1__default["default"];var delayed_stream=DelayedStream$1;function DelayedStream$1(){this.source=null;this.dataSize=0;this.maxDataSize=1024*1024;this.pauseStream=true;this._maxDataSizeExceeded=false;this._released=false;this._bufferedEvents=[];}util$2.inherits(DelayedStream$1,Stream$2);DelayedStream$1.create=function(source,options){var delayedStream=new this();options=options||{};for(var option in options){delayedStream[option]=options[option];}delayedStream.source=source;var realEmit=source.emit;source.emit=function(){delayedStream._handleEmit(arguments);return realEmit.apply(source,arguments);};source.on('error',function(){});if(delayedStream.pauseStream){source.pause();}return delayedStream;};Object.defineProperty(DelayedStream$1.prototype,'readable',{configurable:true,enumerable:true,get:function get(){return this.source.readable;}});DelayedStream$1.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments);};DelayedStream$1.prototype.resume=function(){if(!this._released){this.release();}this.source.resume();};DelayedStream$1.prototype.pause=function(){this.source.pause();};DelayedStream$1.prototype.release=function(){this._released=true;this._bufferedEvents.forEach(function(args){this.emit.apply(this,args);}.bind(this));this._bufferedEvents=[];};DelayedStream$1.prototype.pipe=function(){var r=Stream$2.prototype.pipe.apply(this,arguments);this.resume();return r;};DelayedStream$1.prototype._handleEmit=function(args){if(this._released){this.emit.apply(this,args);return;}if(args[0]==='data'){this.dataSize+=args[1].length;this._checkIfMaxDataSizeExceeded();}this._bufferedEvents.push(args);};DelayedStream$1.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded){return;}if(this.dataSize<=this.maxDataSize){return;}this._maxDataSizeExceeded=true;var message='DelayedStream#maxDataSize of '+this.maxDataSize+' bytes exceeded.';this.emit('error',new Error(message));};var util$1=require$$1__default["default"];var Stream$1=stream__default["default"].Stream;var DelayedStream=delayed_stream;var combined_stream=CombinedStream$1;function CombinedStream$1(){this.writable=false;this.readable=true;this.dataSize=0;this.maxDataSize=2*1024*1024;this.pauseStreams=true;this._released=false;this._streams=[];this._currentStream=null;this._insideLoop=false;this._pendingNext=false;}util$1.inherits(CombinedStream$1,Stream$1);CombinedStream$1.create=function(options){var combinedStream=new this();options=options||{};for(var option in options){combinedStream[option]=options[option];}return combinedStream;};CombinedStream$1.isStreamLike=function(stream){return typeof stream!=='function'&&typeof stream!=='string'&&typeof stream!=='boolean'&&typeof stream!=='number'&&!isBuffer$2(stream);};CombinedStream$1.prototype.append=function(stream){var isStreamLike=CombinedStream$1.isStreamLike(stream);if(isStreamLike){if(!(stream instanceof DelayedStream)){var newStream=DelayedStream.create(stream,{maxDataSize:Infinity,pauseStream:this.pauseStreams});stream.on('data',this._checkDataSize.bind(this));stream=newStream;}this._handleErrors(stream);if(this.pauseStreams){stream.pause();}}this._streams.push(stream);return this;};CombinedStream$1.prototype.pipe=function(dest,options){Stream$1.prototype.pipe.call(this,dest,options);this.resume();return dest;};CombinedStream$1.prototype._getNext=function(){this._currentStream=null;if(this._insideLoop){this._pendingNext=true;return;// defer call
|
|
425
|
-
}this._insideLoop=true;try{do{this._pendingNext=false;this._realGetNext();}while(this._pendingNext);}finally{this._insideLoop=false;}};CombinedStream$1.prototype._realGetNext=function(){var stream=this._streams.shift();if(typeof stream=='undefined'){this.end();return;}if(typeof stream!=='function'){this._pipeNext(stream);return;}var getStream=stream;getStream(function(stream){var isStreamLike=CombinedStream$1.isStreamLike(stream);if(isStreamLike){stream.on('data',this._checkDataSize.bind(this));this._handleErrors(stream);}this._pipeNext(stream);}.bind(this));};CombinedStream$1.prototype._pipeNext=function(stream){this._currentStream=stream;var isStreamLike=CombinedStream$1.isStreamLike(stream);if(isStreamLike){stream.on('end',this._getNext.bind(this));stream.pipe(this,{end:false});return;}var value=stream;this.write(value);this._getNext();};CombinedStream$1.prototype._handleErrors=function(stream){var self=this;stream.on('error',function(err){self._emitError(err);});};CombinedStream$1.prototype.write=function(data){this.emit('data',data);};CombinedStream$1.prototype.pause=function(){if(!this.pauseStreams){return;}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=='function')this._currentStream.pause();this.emit('pause');};CombinedStream$1.prototype.resume=function(){if(!this._released){this._released=true;this.writable=true;this._getNext();}if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=='function')this._currentStream.resume();this.emit('resume');};CombinedStream$1.prototype.end=function(){this._reset();this.emit('end');};CombinedStream$1.prototype.destroy=function(){this._reset();this.emit('close');};CombinedStream$1.prototype._reset=function(){this.writable=false;this._streams=[];this._currentStream=null;};CombinedStream$1.prototype._checkDataSize=function(){this._updateDataSize();if(this.dataSize<=this.maxDataSize){return;}var message='DelayedStream#maxDataSize of '+this.maxDataSize+' bytes exceeded.';this._emitError(new Error(message));};CombinedStream$1.prototype._updateDataSize=function(){this.dataSize=0;var self=this;this._streams.forEach(function(stream){if(!stream.dataSize){return;}self.dataSize+=stream.dataSize;});if(this._currentStream&&this._currentStream.dataSize){this.dataSize+=this._currentStream.dataSize;}};CombinedStream$1.prototype._emitError=function(err){this._reset();this.emit('error',err);};var mimeTypes={};var require$$0={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/3gpp-ims+xml":{source:"iana",compressible:true},"application/3gpphal+json":{source:"iana",compressible:true},"application/3gpphalforms+json":{source:"iana",compressible:true},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:true},"application/alto-costmap+json":{source:"iana",compressible:true},"application/alto-costmapfilter+json":{source:"iana",compressible:true},"application/alto-directory+json":{source:"iana",compressible:true},"application/alto-endpointcost+json":{source:"iana",compressible:true},"application/alto-endpointcostparams+json":{source:"iana",compressible:true},"application/alto-endpointprop+json":{source:"iana",compressible:true},"application/alto-endpointpropparams+json":{source:"iana",compressible:true},"application/alto-error+json":{source:"iana",compressible:true},"application/alto-networkmap+json":{source:"iana",compressible:true},"application/alto-networkmapfilter+json":{source:"iana",compressible:true},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:true},"application/alto-updatestreamparams+json":{source:"iana",compressible:true},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:true,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:true,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:true,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:true,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:true,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:true,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:true},"application/atsc-rsat+xml":{source:"iana",compressible:true,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:true},"application/bacnet-xdd+zip":{source:"iana",compressible:false},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:false,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/calendar+json":{source:"iana",compressible:true},"application/calendar+xml":{source:"iana",compressible:true,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:true},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:true},"application/ccxml+xml":{source:"iana",compressible:true,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:true,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:true},"application/cellml+xml":{source:"iana",compressible:true},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:true},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:true},"application/clue_info+xml":{source:"iana",compressible:true},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:true},"application/coap-group+json":{source:"iana",compressible:true},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:true},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:true,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:true},"application/cstadata+xml":{source:"iana",compressible:true},"application/csvm+json":{source:"iana",compressible:true},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:true},"application/dash+xml":{source:"iana",compressible:true,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:true,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:true,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:true},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:true},"application/dicom+xml":{source:"iana",compressible:true},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:true},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:true,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:true},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:true,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:true,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:false},"application/edifact":{source:"iana",compressible:false},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:true},"application/elm+xml":{source:"iana",compressible:true},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/emergencycalldata.comment+xml":{source:"iana",compressible:true},"application/emergencycalldata.control+xml":{source:"iana",compressible:true},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:true},"application/emergencycalldata.veds+xml":{source:"iana",compressible:true},"application/emma+xml":{source:"iana",compressible:true,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:true,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:true},"application/epub+zip":{source:"iana",compressible:false,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:true},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:true,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:true},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/fido.trusted-apps+json":{compressible:true},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:false},"application/framework-attributes+xml":{source:"iana",compressible:true},"application/geo+json":{source:"iana",compressible:true,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:true},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:true,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:true,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:false,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:true},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:true},"application/ibe-pkg-reply+xml":{source:"iana",compressible:true},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:true,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:true,extensions:["its"]},"application/java-archive":{source:"apache",compressible:false,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:false,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:false,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:true,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:true},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:true},"application/jrd+json":{source:"iana",compressible:true},"application/jscalendar+json":{source:"iana",compressible:true},"application/json":{source:"iana",charset:"UTF-8",compressible:true,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:true},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:true,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:true},"application/jwk-set+json":{source:"iana",compressible:true},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:true},"application/kpml-response+xml":{source:"iana",compressible:true},"application/ld+json":{source:"iana",compressible:true,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:true,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:true},"application/lost+xml":{source:"iana",compressible:true,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:true},"application/lpf+zip":{source:"iana",compressible:false},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:true,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:true,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:true,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:true,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:true},"application/mathml-presentation+xml":{source:"iana",compressible:true},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:true},"application/mbms-deregister+xml":{source:"iana",compressible:true},"application/mbms-envelope+xml":{source:"iana",compressible:true},"application/mbms-msk+xml":{source:"iana",compressible:true},"application/mbms-msk-response+xml":{source:"iana",compressible:true},"application/mbms-protection-description+xml":{source:"iana",compressible:true},"application/mbms-reception-report+xml":{source:"iana",compressible:true},"application/mbms-register+xml":{source:"iana",compressible:true},"application/mbms-register-response+xml":{source:"iana",compressible:true},"application/mbms-schedule+xml":{source:"iana",compressible:true},"application/mbms-user-service-description+xml":{source:"iana",compressible:true},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:true,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:true},"application/mediaservercontrol+xml":{source:"iana",compressible:true,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:true},"application/metalink+xml":{source:"apache",compressible:true,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:true,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:true,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:true,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:true,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:true,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:true},"application/mrb-publish+xml":{source:"iana",compressible:true},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/msword":{source:"iana",compressible:false,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:true},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:true},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:false,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:true},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:true,extensions:["opf"]},"application/ogg":{source:"iana",compressible:false,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:true,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:true},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:false},"application/p2p-overlay+xml":{source:"iana",compressible:true,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:true,extensions:["xer"]},"application/pdf":{source:"iana",compressible:false,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:false,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:true,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/postscript":{source:"iana",compressible:true,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:true},"application/problem+json":{source:"iana",compressible:true},"application/problem+xml":{source:"iana",compressible:true},"application/provenance+xml":{source:"iana",compressible:true,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:false},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:true},"application/pskc+xml":{source:"iana",compressible:true,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:true},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:true,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:true},"application/rdf+xml":{source:"iana",compressible:true,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:true,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:true},"application/resource-lists+xml":{source:"iana",compressible:true,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:true,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:true},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:true},"application/rls-services+xml":{source:"iana",compressible:true,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:true,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:true,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:true,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:true,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:true,extensions:["rss"]},"application/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:true},"application/samlmetadata+xml":{source:"iana",compressible:true},"application/sarif+json":{source:"iana",compressible:true},"application/sarif-external-properties+json":{source:"iana",compressible:true},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:true,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:true},"application/scim+json":{source:"iana",compressible:true},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:true},"application/senml+xml":{source:"iana",compressible:true,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:true},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:true},"application/sensml+xml":{source:"iana",compressible:true,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:true},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:true,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:true},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:true,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:true},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:true,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:true},"application/spirits-event+xml":{source:"iana",compressible:true},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:true,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:true,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:true,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:true,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:true},"application/swid+xml":{source:"iana",compressible:true,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:true},"application/taxii+json":{source:"iana",compressible:true},"application/td+json":{source:"iana",compressible:true},"application/tei+xml":{source:"iana",compressible:true,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:true,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:true},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:true,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:true,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:false,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:true},"application/urc-ressheet+xml":{source:"iana",compressible:true,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:true,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:true},"application/vcard+json":{source:"iana",compressible:true},"application/vcard+xml":{source:"iana",compressible:true},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:true,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:true},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:true},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:true},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:true},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:true},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:true},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:true},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:true},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:true},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:true},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:false,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:true,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:true},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:true},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:false,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:true},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:true},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:true},"application/vnd.apple.installer+xml":{source:"iana",compressible:true,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:false,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:true},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:true},"application/vnd.avistar+xml":{source:"iana",compressible:true},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:true,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:true},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:true},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:true},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:true},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:true},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:true,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:true,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:true},"application/vnd.collection.doc+json":{source:"iana",compressible:true},"application/vnd.collection.next+json":{source:"iana",compressible:true},"application/vnd.comicbook+zip":{source:"iana",compressible:false},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:true},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:true,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:true},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:true},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:true},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:true},"application/vnd.cyclonedx+xml":{source:"iana",compressible:true},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:false},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:true,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:true},"application/vnd.dataresource+json":{source:"iana",compressible:true},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:true,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:true},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:true},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:true},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:true},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:true},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:true},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:true},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:true},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:true},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:false},"application/vnd.eszigno3+xml":{source:"iana",compressible:true,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:true},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:false},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:false},"application/vnd.etsi.cug+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:true},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:true},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:true},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:true},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:true},"application/vnd.etsi.sci+xml":{source:"iana",compressible:true},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:true},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:true},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:true},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:false},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:false},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:false},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:true},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:true},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:true},"application/vnd.geo+json":{source:"iana",compressible:true},"application/vnd.geocube+xml":{source:"iana",compressible:true},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:false,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:false,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:false,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:true,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:false,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:true},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:false},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:true},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:true},"application/vnd.hal+xml":{source:"iana",compressible:true,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:true,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:true},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:true},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:true},"application/vnd.hyper-item+json":{source:"iana",compressible:true},"application/vnd.hyperdrive+json":{source:"iana",compressible:true},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:false},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:false},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:true},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:true},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:true},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:true},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:true},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:true,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:false},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:true},"application/vnd.las.las+xml":{source:"iana",compressible:true,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:true},"application/vnd.liberty-request+xml":{source:"iana",compressible:true},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:true,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:false},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:true},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:true},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:false},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:true},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:true},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:true,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:false,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:true,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:true},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:true},"application/vnd.ms-outlook":{compressible:false,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:true},"application/vnd.ms-powerpoint":{source:"iana",compressible:false,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:true},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:true},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:true},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:false,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:true},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:true},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:true},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:true},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:true},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:true},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:true,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:true},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:false,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:false,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:false,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:false,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:true},"application/vnd.oftn.l10n+json":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:true},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:true},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:true},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:true},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:true},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:true},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:true},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:true},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:true},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:true},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:true},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:true},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:true,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:true},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:true},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:true},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:true},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:true},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:true},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:true,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:true,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:false,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:false,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:false,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:true},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:true},"application/vnd.oracle.resource+json":{source:"iana",compressible:true},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:true},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:true},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:true},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:true},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:true},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:true},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:true,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:true},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:true,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:true},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:true},"application/vnd.shopkick+json":{source:"iana",compressible:true},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:true},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:true,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:true,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:true,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:true},"application/vnd.syft+json":{source:"iana",compressible:true},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:true,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:true},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:true},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:true},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:true},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:true,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:true},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:true},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:true},"application/vnd.wv.ssp+xml":{source:"iana",compressible:true},"application/vnd.xacml+json":{source:"iana",compressible:true},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:true},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:true,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:true,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:true,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:true},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:true,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:true,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:true},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:true,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:true,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:false,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:false,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:false,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:false,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:false,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:false},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:true,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:true,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:true,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:false,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:true,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:false,extensions:["jnlp"]},"application/x-javascript":{compressible:true},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:false,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:false},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:true,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:false,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:false,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:true,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:false,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:false,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:true,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:true,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:true,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:true,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:true,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:false,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:true,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:true,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:true,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:true,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:true},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:true,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:false,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:true},"application/xaml+xml":{source:"apache",compressible:true,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:true,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:true,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:true,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:true,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:true},"application/xcap-ns+xml":{source:"iana",compressible:true,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:true},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:true},"application/xenc+xml":{source:"iana",compressible:true,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:true,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:true},"application/xliff+xml":{source:"iana",compressible:true,extensions:["xlf"]},"application/xml":{source:"iana",compressible:true,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:true,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:true},"application/xmpp+xml":{source:"iana",compressible:true},"application/xop+xml":{source:"iana",compressible:true,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:true,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:true,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:true,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:true,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:true},"application/yang-data+xml":{source:"iana",compressible:true},"application/yang-patch+json":{source:"iana",compressible:true},"application/yang-patch+xml":{source:"iana",compressible:true},"application/yin+xml":{source:"iana",compressible:true,extensions:["yin"]},"application/zip":{source:"iana",compressible:false,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:false,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:false,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:false},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:false,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:false,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:false,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:false,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:false},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:false},"audio/vorbis":{source:"iana",compressible:false},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:false,extensions:["wav"]},"audio/wave":{compressible:false,extensions:["wav"]},"audio/webm":{source:"apache",compressible:false,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:false,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:false,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:true,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:true,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:false,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:false,extensions:["avif"]},"image/bmp":{source:"iana",compressible:true,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:false,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:false,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:false,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:false,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:false,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:false},"image/png":{source:"iana",compressible:false,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:true,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:false,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:true,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:true,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:true,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:true,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:true,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:false},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:false},"message/imdn+xml":{source:"iana",compressible:true},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:false},"message/rfc822":{source:"iana",compressible:true,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:true,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:true,extensions:["glb"]},"model/iges":{source:"iana",compressible:false,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:false,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:true,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:false,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:false,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:true,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:true},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:false,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:false,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:false,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:false,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:true,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:false},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:false},"multipart/form-data":{source:"iana",compressible:false},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:false},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:false},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:true,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:true},"text/cmd":{compressible:true},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:true,extensions:["css"]},"text/csv":{source:"iana",compressible:true,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:true,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:true},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:true,extensions:["jsx"]},"text/less":{compressible:true,extensions:["less"]},"text/markdown":{source:"iana",compressible:true,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:true,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:true,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:true,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:true,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:true,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:true,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:true,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:true,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:true,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:true},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:true},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:true,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:true,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:true,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:true,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:true,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:true,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:false,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:false,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:false,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:false,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:false,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:false,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:false,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:false,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:true},"x-shader/x-vertex":{compressible:true}};/*!
|
|
426
|
-
* mime-db
|
|
427
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
428
|
-
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
429
|
-
* MIT Licensed
|
|
430
|
-
*/ /**
|
|
431
|
-
* Module exports.
|
|
432
|
-
*/var mimeDb=require$$0;/*!
|
|
433
|
-
* mime-types
|
|
434
|
-
* Copyright(c) 2014 Jonathan Ong
|
|
435
|
-
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
436
|
-
* MIT Licensed
|
|
437
|
-
*/(function(exports){/**
|
|
438
|
-
* Module dependencies.
|
|
439
|
-
* @private
|
|
440
|
-
*/var db=mimeDb;var extname=require$$1__default$1["default"].extname;/**
|
|
441
|
-
* Module variables.
|
|
442
|
-
* @private
|
|
443
|
-
*/var EXTRACT_TYPE_REGEXP=/^\s*([^;\s]*)(?:;|\s|$)/;var TEXT_TYPE_REGEXP=/^text\//i;/**
|
|
444
|
-
* Module exports.
|
|
445
|
-
* @public
|
|
446
|
-
*/exports.charset=charset;exports.charsets={lookup:charset};exports.contentType=contentType;exports.extension=extension;exports.extensions=Object.create(null);exports.lookup=lookup;exports.types=Object.create(null);// Populate the extensions/types maps
|
|
447
|
-
populateMaps(exports.extensions,exports.types);/**
|
|
448
|
-
* Get the default charset for a MIME type.
|
|
449
|
-
*
|
|
450
|
-
* @param {string} type
|
|
451
|
-
* @return {boolean|string}
|
|
452
|
-
*/function charset(type){if(!type||typeof type!=='string'){return false;}// TODO: use media-typer
|
|
453
|
-
var match=EXTRACT_TYPE_REGEXP.exec(type);var mime=match&&db[match[1].toLowerCase()];if(mime&&mime.charset){return mime.charset;}// default text/* to utf-8
|
|
454
|
-
if(match&&TEXT_TYPE_REGEXP.test(match[1])){return'UTF-8';}return false;}/**
|
|
455
|
-
* Create a full Content-Type header given a MIME type or extension.
|
|
456
|
-
*
|
|
457
|
-
* @param {string} str
|
|
458
|
-
* @return {boolean|string}
|
|
459
|
-
*/function contentType(str){// TODO: should this even be in this module?
|
|
460
|
-
if(!str||typeof str!=='string'){return false;}var mime=str.indexOf('/')===-1?exports.lookup(str):str;if(!mime){return false;}// TODO: use content-type or other module
|
|
461
|
-
if(mime.indexOf('charset')===-1){var charset=exports.charset(mime);if(charset)mime+='; charset='+charset.toLowerCase();}return mime;}/**
|
|
462
|
-
* Get the default extension for a MIME type.
|
|
463
|
-
*
|
|
464
|
-
* @param {string} type
|
|
465
|
-
* @return {boolean|string}
|
|
466
|
-
*/function extension(type){if(!type||typeof type!=='string'){return false;}// TODO: use media-typer
|
|
467
|
-
var match=EXTRACT_TYPE_REGEXP.exec(type);// get extensions
|
|
468
|
-
var exts=match&&exports.extensions[match[1].toLowerCase()];if(!exts||!exts.length){return false;}return exts[0];}/**
|
|
469
|
-
* Lookup the MIME type for a file path/extension.
|
|
470
|
-
*
|
|
471
|
-
* @param {string} path
|
|
472
|
-
* @return {boolean|string}
|
|
473
|
-
*/function lookup(path){if(!path||typeof path!=='string'){return false;}// get the extension ("ext" or ".ext" or full path)
|
|
474
|
-
var extension=extname('x.'+path).toLowerCase().substr(1);if(!extension){return false;}return exports.types[extension]||false;}/**
|
|
475
|
-
* Populate the extensions and types maps.
|
|
476
|
-
* @private
|
|
477
|
-
*/function populateMaps(extensions,types){// source preference (least -> most)
|
|
478
|
-
var preference=['nginx','apache',undefined,'iana'];Object.keys(db).forEach(function forEachMimeType(type){var mime=db[type];var exts=mime.extensions;if(!exts||!exts.length){return;}// mime -> extensions
|
|
479
|
-
extensions[type]=exts;// extension -> mime
|
|
480
|
-
for(var i=0;i<exts.length;i++){var extension=exts[i];if(types[extension]){var from=preference.indexOf(db[types[extension]].source);var to=preference.indexOf(mime.source);if(types[extension]!=='application/octet-stream'&&(from>to||from===to&&types[extension].substr(0,12)==='application/')){// skip the remapping
|
|
481
|
-
continue;}}// set the extension -> mime
|
|
482
|
-
types[extension]=type;}});}})(mimeTypes);var defer_1=defer$1;/**
|
|
483
|
-
* Runs provided function on next iteration of the event loop
|
|
484
|
-
*
|
|
485
|
-
* @param {function} fn - function to run
|
|
486
|
-
*/function defer$1(fn){var nextTick$1=typeof setImmediate=='function'?setImmediate:_typeof(process)=='object'&&typeof nextTick=='function'?nextTick:null;if(nextTick$1){nextTick$1(fn);}else{setTimeout(fn,0);}}var defer=defer_1;// API
|
|
487
|
-
var async_1=async$2;/**
|
|
488
|
-
* Runs provided callback asynchronously
|
|
489
|
-
* even if callback itself is not
|
|
490
|
-
*
|
|
491
|
-
* @param {function} callback - callback to invoke
|
|
492
|
-
* @returns {function} - augmented callback
|
|
493
|
-
*/function async$2(callback){var isAsync=false;// check if async happened
|
|
494
|
-
defer(function(){isAsync=true;});return function async_callback(err,result){if(isAsync){callback(err,result);}else{defer(function nextTick_callback(){callback(err,result);});}};}// API
|
|
495
|
-
var abort_1=abort$2;/**
|
|
496
|
-
* Aborts leftover active jobs
|
|
497
|
-
*
|
|
498
|
-
* @param {object} state - current state object
|
|
499
|
-
*/function abort$2(state){Object.keys(state.jobs).forEach(clean.bind(state));// reset leftover jobs
|
|
500
|
-
state.jobs={};}/**
|
|
501
|
-
* Cleans up leftover job by invoking abort function for the provided job id
|
|
502
|
-
*
|
|
503
|
-
* @this state
|
|
504
|
-
* @param {string|number} key - job id to abort
|
|
505
|
-
*/function clean(key){if(typeof this.jobs[key]=='function'){this.jobs[key]();}}var async$1=async_1,abort$1=abort_1;// API
|
|
506
|
-
var iterate_1=iterate$2;/**
|
|
507
|
-
* Iterates over each job object
|
|
508
|
-
*
|
|
509
|
-
* @param {array|object} list - array or object (named list) to iterate over
|
|
510
|
-
* @param {function} iterator - iterator to run
|
|
511
|
-
* @param {object} state - current job status
|
|
512
|
-
* @param {function} callback - invoked when all elements processed
|
|
513
|
-
*/function iterate$2(list,iterator,state,callback){// store current index
|
|
514
|
-
var key=state['keyedList']?state['keyedList'][state.index]:state.index;state.jobs[key]=runJob(iterator,key,list[key],function(error,output){// don't repeat yourself
|
|
515
|
-
// skip secondary callbacks
|
|
516
|
-
if(!(key in state.jobs)){return;}// clean up jobs
|
|
517
|
-
delete state.jobs[key];if(error){// don't process rest of the results
|
|
518
|
-
// stop still active jobs
|
|
519
|
-
// and reset the list
|
|
520
|
-
abort$1(state);}else{state.results[key]=output;}// return salvaged results
|
|
521
|
-
callback(error,state.results);});}/**
|
|
522
|
-
* Runs iterator over provided job element
|
|
523
|
-
*
|
|
524
|
-
* @param {function} iterator - iterator to invoke
|
|
525
|
-
* @param {string|number} key - key/index of the element in the list of jobs
|
|
526
|
-
* @param {mixed} item - job description
|
|
527
|
-
* @param {function} callback - invoked after iterator is done with the job
|
|
528
|
-
* @returns {function|mixed} - job abort function or something else
|
|
529
|
-
*/function runJob(iterator,key,item,callback){var aborter;// allow shortcut if iterator expects only two arguments
|
|
530
|
-
if(iterator.length==2){aborter=iterator(item,async$1(callback));}// otherwise go with full three arguments
|
|
531
|
-
else{aborter=iterator(item,key,async$1(callback));}return aborter;}// API
|
|
532
|
-
var state_1=state;/**
|
|
533
|
-
* Creates initial state object
|
|
534
|
-
* for iteration over list
|
|
535
|
-
*
|
|
536
|
-
* @param {array|object} list - list to iterate over
|
|
537
|
-
* @param {function|null} sortMethod - function to use for keys sort,
|
|
538
|
-
* or `null` to keep them as is
|
|
539
|
-
* @returns {object} - initial state object
|
|
540
|
-
*/function state(list,sortMethod){var isNamedList=!Array.isArray(list),initState={index:0,keyedList:isNamedList||sortMethod?Object.keys(list):null,jobs:{},results:isNamedList?{}:[],size:isNamedList?Object.keys(list).length:list.length};if(sortMethod){// sort array keys based on it's values
|
|
541
|
-
// sort object's keys just on own merit
|
|
542
|
-
initState.keyedList.sort(isNamedList?sortMethod:function(a,b){return sortMethod(list[a],list[b]);});}return initState;}var abort=abort_1,async=async_1;// API
|
|
543
|
-
var terminator_1=terminator$2;/**
|
|
544
|
-
* Terminates jobs in the attached state context
|
|
545
|
-
*
|
|
546
|
-
* @this AsyncKitState#
|
|
547
|
-
* @param {function} callback - final callback to invoke after termination
|
|
548
|
-
*/function terminator$2(callback){if(!Object.keys(this.jobs).length){return;}// fast forward iteration index
|
|
549
|
-
this.index=this.size;// abort jobs
|
|
550
|
-
abort(this);// send back results we have so far
|
|
551
|
-
async(callback)(null,this.results);}var iterate$1=iterate_1,initState$1=state_1,terminator$1=terminator_1;// Public API
|
|
552
|
-
var parallel_1=parallel;/**
|
|
553
|
-
* Runs iterator over provided array elements in parallel
|
|
554
|
-
*
|
|
555
|
-
* @param {array|object} list - array or object (named list) to iterate over
|
|
556
|
-
* @param {function} iterator - iterator to run
|
|
557
|
-
* @param {function} callback - invoked when all elements processed
|
|
558
|
-
* @returns {function} - jobs terminator
|
|
559
|
-
*/function parallel(list,iterator,callback){var state=initState$1(list);while(state.index<(state['keyedList']||list).length){iterate$1(list,iterator,state,function(error,result){if(error){callback(error,result);return;}// looks like it's the last one
|
|
560
|
-
if(Object.keys(state.jobs).length===0){callback(null,state.results);return;}});state.index++;}return terminator$1.bind(state,callback);}var serialOrdered$2={exports:{}};var iterate=iterate_1,initState=state_1,terminator=terminator_1;// Public API
|
|
561
|
-
serialOrdered$2.exports=serialOrdered$1;// sorting helpers
|
|
562
|
-
serialOrdered$2.exports.ascending=ascending;serialOrdered$2.exports.descending=descending;/**
|
|
563
|
-
* Runs iterator over provided sorted array elements in series
|
|
564
|
-
*
|
|
565
|
-
* @param {array|object} list - array or object (named list) to iterate over
|
|
566
|
-
* @param {function} iterator - iterator to run
|
|
567
|
-
* @param {function} sortMethod - custom sort function
|
|
568
|
-
* @param {function} callback - invoked when all elements processed
|
|
569
|
-
* @returns {function} - jobs terminator
|
|
570
|
-
*/function serialOrdered$1(list,iterator,sortMethod,callback){var state=initState(list,sortMethod);iterate(list,iterator,state,function iteratorHandler(error,result){if(error){callback(error,result);return;}state.index++;// are we there yet?
|
|
571
|
-
if(state.index<(state['keyedList']||list).length){iterate(list,iterator,state,iteratorHandler);return;}// done here
|
|
572
|
-
callback(null,state.results);});return terminator.bind(state,callback);}/*
|
|
573
|
-
* -- Sort methods
|
|
574
|
-
*/ /**
|
|
575
|
-
* sort helper to sort array elements in ascending order
|
|
576
|
-
*
|
|
577
|
-
* @param {mixed} a - an item to compare
|
|
578
|
-
* @param {mixed} b - an item to compare
|
|
579
|
-
* @returns {number} - comparison result
|
|
580
|
-
*/function ascending(a,b){return a<b?-1:a>b?1:0;}/**
|
|
581
|
-
* sort helper to sort array elements in descending order
|
|
582
|
-
*
|
|
583
|
-
* @param {mixed} a - an item to compare
|
|
584
|
-
* @param {mixed} b - an item to compare
|
|
585
|
-
* @returns {number} - comparison result
|
|
586
|
-
*/function descending(a,b){return-1*ascending(a,b);}var serialOrderedExports=serialOrdered$2.exports;var serialOrdered=serialOrderedExports;// Public API
|
|
587
|
-
var serial_1=serial;/**
|
|
588
|
-
* Runs iterator over provided array elements in series
|
|
589
|
-
*
|
|
590
|
-
* @param {array|object} list - array or object (named list) to iterate over
|
|
591
|
-
* @param {function} iterator - iterator to run
|
|
592
|
-
* @param {function} callback - invoked when all elements processed
|
|
593
|
-
* @returns {function} - jobs terminator
|
|
594
|
-
*/function serial(list,iterator,callback){return serialOrdered(list,iterator,null,callback);}var asynckit$1={parallel:parallel_1,serial:serial_1,serialOrdered:serialOrderedExports};// populates missing values
|
|
595
|
-
var populate$1=function populate$1(dst,src){Object.keys(src).forEach(function(prop){dst[prop]=dst[prop]||src[prop];});return dst;};var CombinedStream=combined_stream;var util=require$$1__default["default"];var path=require$$1__default$1["default"];var http$1=require$$3__default["default"];var https$1=require$$4__default["default"];var parseUrl$1=require$$0__default["default"].parse;var fs=require$$6__default["default"];var Stream=stream__default["default"].Stream;var mime=mimeTypes;var asynckit=asynckit$1;var populate=populate$1;// Public API
|
|
596
|
-
var form_data=FormData$1;// make it a Stream
|
|
597
|
-
util.inherits(FormData$1,CombinedStream);/**
|
|
598
|
-
* Create readable "multipart/form-data" streams.
|
|
599
|
-
* Can be used to submit forms
|
|
600
|
-
* and file uploads to other web applications.
|
|
601
|
-
*
|
|
602
|
-
* @constructor
|
|
603
|
-
* @param {Object} options - Properties to be added/overriden for FormData and CombinedStream
|
|
604
|
-
*/function FormData$1(options){if(!(this instanceof FormData$1)){return new FormData$1(options);}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];CombinedStream.call(this);options=options||{};for(var option in options){this[option]=options[option];}}FormData$1.LINE_BREAK='\r\n';FormData$1.DEFAULT_CONTENT_TYPE='application/octet-stream';FormData$1.prototype.append=function(field,value,options){options=options||{};// allow filename as single option
|
|
605
|
-
if(typeof options=='string'){options={filename:options};}var append=CombinedStream.prototype.append.bind(this);// all that streamy business can't handle numbers
|
|
606
|
-
if(typeof value=='number'){value=''+value;}// https://github.com/felixge/node-form-data/issues/38
|
|
607
|
-
if(util.isArray(value)){// Please convert your array into string
|
|
608
|
-
// the way web server expects it
|
|
609
|
-
this._error(new Error('Arrays are not supported.'));return;}var header=this._multiPartHeader(field,value,options);var footer=this._multiPartFooter();append(header);append(value);append(footer);// pass along options.knownLength
|
|
610
|
-
this._trackLength(header,value,options);};FormData$1.prototype._trackLength=function(header,value,options){var valueLength=0;// used w/ getLengthSync(), when length is known.
|
|
611
|
-
// e.g. for streaming directly from a remote server,
|
|
612
|
-
// w/ a known file a size, and not wanting to wait for
|
|
613
|
-
// incoming file to finish to get its size.
|
|
614
|
-
if(options.knownLength!=null){valueLength+=+options.knownLength;}else if(isBuffer$2(value)){valueLength=value.length;}else if(typeof value==='string'){valueLength=Buffer.byteLength(value);}this._valueLength+=valueLength;// @check why add CRLF? does this account for custom/multiple CRLFs?
|
|
615
|
-
this._overheadLength+=Buffer.byteLength(header)+FormData$1.LINE_BREAK.length;// empty or either doesn't have path or not an http response or not a stream
|
|
616
|
-
if(!value||!value.path&&!(value.readable&&value.hasOwnProperty('httpVersion'))&&!(value instanceof Stream)){return;}// no need to bother with the length
|
|
617
|
-
if(!options.knownLength){this._valuesToMeasure.push(value);}};FormData$1.prototype._lengthRetriever=function(value,callback){if(value.hasOwnProperty('fd')){// take read range into a account
|
|
618
|
-
// `end` = Infinity –> read file till the end
|
|
619
|
-
//
|
|
620
|
-
// TODO: Looks like there is bug in Node fs.createReadStream
|
|
621
|
-
// it doesn't respect `end` options without `start` options
|
|
622
|
-
// Fix it when node fixes it.
|
|
623
|
-
// https://github.com/joyent/node/issues/7819
|
|
624
|
-
if(value.end!=undefined&&value.end!=Infinity&&value.start!=undefined){// when end specified
|
|
625
|
-
// no need to calculate range
|
|
626
|
-
// inclusive, starts with 0
|
|
627
|
-
callback(null,value.end+1-(value.start?value.start:0));// not that fast snoopy
|
|
628
|
-
}else{// still need to fetch file size from fs
|
|
629
|
-
fs.stat(value.path,function(err,stat){var fileSize;if(err){callback(err);return;}// update final size based on the range options
|
|
630
|
-
fileSize=stat.size-(value.start?value.start:0);callback(null,fileSize);});}// or http response
|
|
631
|
-
}else if(value.hasOwnProperty('httpVersion')){callback(null,+value.headers['content-length']);// or request stream http://github.com/mikeal/request
|
|
632
|
-
}else if(value.hasOwnProperty('httpModule')){// wait till response come back
|
|
633
|
-
value.on('response',function(response){value.pause();callback(null,+response.headers['content-length']);});value.resume();// something else
|
|
634
|
-
}else{callback('Unknown stream');}};FormData$1.prototype._multiPartHeader=function(field,value,options){// custom header specified (as string)?
|
|
635
|
-
// it becomes responsible for boundary
|
|
636
|
-
// (e.g. to handle extra CRLFs on .NET servers)
|
|
637
|
-
if(typeof options.header=='string'){return options.header;}var contentDisposition=this._getContentDisposition(value,options);var contentType=this._getContentType(value,options);var contents='';var headers={// add custom disposition as third element or keep it two elements if not
|
|
638
|
-
'Content-Disposition':['form-data','name="'+field+'"'].concat(contentDisposition||[]),// if no content type. allow it to be empty array
|
|
639
|
-
'Content-Type':[].concat(contentType||[])};// allow custom headers.
|
|
640
|
-
if(_typeof(options.header)=='object'){populate(headers,options.header);}var header;for(var prop in headers){if(!headers.hasOwnProperty(prop))continue;header=headers[prop];// skip nullish headers.
|
|
641
|
-
if(header==null){continue;}// convert all headers to arrays.
|
|
642
|
-
if(!Array.isArray(header)){header=[header];}// add non-empty headers.
|
|
643
|
-
if(header.length){contents+=prop+': '+header.join('; ')+FormData$1.LINE_BREAK;}}return'--'+this.getBoundary()+FormData$1.LINE_BREAK+contents+FormData$1.LINE_BREAK;};FormData$1.prototype._getContentDisposition=function(value,options){var filename,contentDisposition;if(typeof options.filepath==='string'){// custom filepath for relative paths
|
|
644
|
-
filename=path.normalize(options.filepath).replace(/\\/g,'/');}else if(options.filename||value.name||value.path){// custom filename take precedence
|
|
645
|
-
// formidable and the browser add a name property
|
|
646
|
-
// fs- and request- streams have path property
|
|
647
|
-
filename=path.basename(options.filename||value.name||value.path);}else if(value.readable&&value.hasOwnProperty('httpVersion')){// or try http response
|
|
648
|
-
filename=path.basename(value.client._httpMessage.path||'');}if(filename){contentDisposition='filename="'+filename+'"';}return contentDisposition;};FormData$1.prototype._getContentType=function(value,options){// use custom content-type above all
|
|
649
|
-
var contentType=options.contentType;// or try `name` from formidable, browser
|
|
650
|
-
if(!contentType&&value.name){contentType=mime.lookup(value.name);}// or try `path` from fs-, request- streams
|
|
651
|
-
if(!contentType&&value.path){contentType=mime.lookup(value.path);}// or if it's http-reponse
|
|
652
|
-
if(!contentType&&value.readable&&value.hasOwnProperty('httpVersion')){contentType=value.headers['content-type'];}// or guess it from the filepath or filename
|
|
653
|
-
if(!contentType&&(options.filepath||options.filename)){contentType=mime.lookup(options.filepath||options.filename);}// fallback to the default content type if `value` is not simple value
|
|
654
|
-
if(!contentType&&_typeof(value)=='object'){contentType=FormData$1.DEFAULT_CONTENT_TYPE;}return contentType;};FormData$1.prototype._multiPartFooter=function(){return function(next){var footer=FormData$1.LINE_BREAK;var lastPart=this._streams.length===0;if(lastPart){footer+=this._lastBoundary();}next(footer);}.bind(this);};FormData$1.prototype._lastBoundary=function(){return'--'+this.getBoundary()+'--'+FormData$1.LINE_BREAK;};FormData$1.prototype.getHeaders=function(userHeaders){var header;var formHeaders={'content-type':'multipart/form-data; boundary='+this.getBoundary()};for(header in userHeaders){if(userHeaders.hasOwnProperty(header)){formHeaders[header.toLowerCase()]=userHeaders[header];}}return formHeaders;};FormData$1.prototype.setBoundary=function(boundary){this._boundary=boundary;};FormData$1.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary();}return this._boundary;};FormData$1.prototype.getBuffer=function(){var dataBuffer=new Buffer.alloc(0);var boundary=this.getBoundary();// Create the form content. Add Line breaks to the end of data.
|
|
655
|
-
for(var i=0,len=this._streams.length;i<len;i++){if(typeof this._streams[i]!=='function'){// Add content to the buffer.
|
|
656
|
-
if(isBuffer$2(this._streams[i])){dataBuffer=Buffer.concat([dataBuffer,this._streams[i]]);}else{dataBuffer=Buffer.concat([dataBuffer,Buffer.from(this._streams[i])]);}// Add break after content.
|
|
657
|
-
if(typeof this._streams[i]!=='string'||this._streams[i].substring(2,boundary.length+2)!==boundary){dataBuffer=Buffer.concat([dataBuffer,Buffer.from(FormData$1.LINE_BREAK)]);}}}// Add the footer and return the Buffer object.
|
|
658
|
-
return Buffer.concat([dataBuffer,Buffer.from(this._lastBoundary())]);};FormData$1.prototype._generateBoundary=function(){// This generates a 50 character boundary similar to those used by Firefox.
|
|
659
|
-
// They are optimized for boyer-moore parsing.
|
|
660
|
-
var boundary='--------------------------';for(var i=0;i<24;i++){boundary+=Math.floor(Math.random()*10).toString(16);}this._boundary=boundary;};// Note: getLengthSync DOESN'T calculate streams length
|
|
661
|
-
// As workaround one can calculate file size manually
|
|
662
|
-
// and add it as knownLength option
|
|
663
|
-
FormData$1.prototype.getLengthSync=function(){var knownLength=this._overheadLength+this._valueLength;// Don't get confused, there are 3 "internal" streams for each keyval pair
|
|
664
|
-
// so it basically checks if there is any value added to the form
|
|
665
|
-
if(this._streams.length){knownLength+=this._lastBoundary().length;}// https://github.com/form-data/form-data/issues/40
|
|
666
|
-
if(!this.hasKnownLength()){// Some async length retrievers are present
|
|
667
|
-
// therefore synchronous length calculation is false.
|
|
668
|
-
// Please use getLength(callback) to get proper length
|
|
669
|
-
this._error(new Error('Cannot calculate proper length in synchronous way.'));}return knownLength;};// Public API to check if length of added values is known
|
|
670
|
-
// https://github.com/form-data/form-data/issues/196
|
|
671
|
-
// https://github.com/form-data/form-data/issues/262
|
|
672
|
-
FormData$1.prototype.hasKnownLength=function(){var hasKnownLength=true;if(this._valuesToMeasure.length){hasKnownLength=false;}return hasKnownLength;};FormData$1.prototype.getLength=function(cb){var knownLength=this._overheadLength+this._valueLength;if(this._streams.length){knownLength+=this._lastBoundary().length;}if(!this._valuesToMeasure.length){nextTick(cb.bind(this,null,knownLength));return;}asynckit.parallel(this._valuesToMeasure,this._lengthRetriever,function(err,values){if(err){cb(err);return;}values.forEach(function(length){knownLength+=length;});cb(null,knownLength);});};FormData$1.prototype.submit=function(params,cb){var request,options,defaults={method:'post'};// parse provided url if it's string
|
|
673
|
-
// or treat it as options object
|
|
674
|
-
if(typeof params=='string'){params=parseUrl$1(params);options=populate({port:params.port,path:params.pathname,host:params.hostname,protocol:params.protocol},defaults);// use custom params
|
|
675
|
-
}else{options=populate(params,defaults);// if no port provided use default one
|
|
676
|
-
if(!options.port){options.port=options.protocol=='https:'?443:80;}}// put that good code in getHeaders to some use
|
|
677
|
-
options.headers=this.getHeaders(params.headers);// https if specified, fallback to http in any other case
|
|
678
|
-
if(options.protocol=='https:'){request=https$1.request(options);}else{request=http$1.request(options);}// get content length and fire away
|
|
679
|
-
this.getLength(function(err,length){if(err&&err!=='Unknown stream'){this._error(err);return;}// add content length
|
|
680
|
-
if(length){request.setHeader('Content-Length',length);}this.pipe(request);if(cb){var onResponse;var callback=function callback(error,responce){request.removeListener('error',callback);request.removeListener('response',onResponse);return cb.call(this,error,responce);};onResponse=callback.bind(this,null);request.on('error',callback);request.on('response',onResponse);}}.bind(this));return request;};FormData$1.prototype._error=function(err){if(!this.error){this.error=err;this.pause();this.emit('error',err);}};FormData$1.prototype.toString=function(){return'[object FormData]';};var FormData$2=/*@__PURE__*/getDefaultExportFromCjs(form_data);/**
|
|
406
|
+
AxiosError.from=function(error,code,config,request,response,customProps){var axiosError=Object.create(prototype$1);utils$1.toFlatObject(error,axiosError,function filter(obj){return obj!==Error.prototype;},function(prop){return prop!=='isAxiosError';});AxiosError.call(axiosError,error.message,code,config,request,response);axiosError.cause=error;axiosError.name=error.name;customProps&&Object.assign(axiosError,customProps);return axiosError;};// eslint-disable-next-line strict
|
|
407
|
+
var httpAdapter=null;/**
|
|
681
408
|
* Determines if the given thing is a array or js object.
|
|
682
409
|
*
|
|
683
410
|
* @param {string} thing - The object or array to be visited.
|
|
@@ -725,7 +452,7 @@ token=removeBrackets(token);return!dots&&i?'['+token+']':token;}).join(dots?'.':
|
|
|
725
452
|
*
|
|
726
453
|
* @returns
|
|
727
454
|
*/function toFormData(obj,formData,options){if(!utils$1.isObject(obj)){throw new TypeError('target must be an object');}// eslint-disable-next-line no-param-reassign
|
|
728
|
-
formData=formData||new
|
|
455
|
+
formData=formData||new FormData();// eslint-disable-next-line no-param-reassign
|
|
729
456
|
options=utils$1.toFlatObject(options,{metaTokens:true,dots:false,indexes:false},false,function defined(option,source){// eslint-disable-next-line no-eq-null,eqeqeq
|
|
730
457
|
return!utils$1.isUndefined(source[option]);});var metaTokens=options.metaTokens;// eslint-disable-next-line no-use-before-define
|
|
731
458
|
var visitor=options.visitor||defaultVisitor;var dots=options.dots;var indexes=options.indexes;var _Blob=options.Blob||typeof Blob!=='undefined'&&Blob;var useBlob=_Blob&&utils$1.isSpecCompliantForm(formData);if(!utils$1.isFunction(visitor)){throw new TypeError('visitor must be a function');}function convertValue(value){if(value===null)return'';if(utils$1.isDate(value)){return value.toISOString();}if(!useBlob&&utils$1.isBlob(value)){throw new AxiosError('Blob is not supported. Use a Buffer instead.');}if(utils$1.isArrayBuffer(value)||utils$1.isTypedArray(value)){return useBlob&&typeof Blob==='function'?new Blob([value]):Buffer.from(value);}return value;}/**
|
|
@@ -796,7 +523,7 @@ indexes===true?renderKey([key],index,dots):indexes===null?key:key+'[]',convertVa
|
|
|
796
523
|
* @param {Function} fn The function to call for each interceptor
|
|
797
524
|
*
|
|
798
525
|
* @returns {void}
|
|
799
|
-
*/},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);return InterceptorManager;}();var InterceptorManager$1=InterceptorManager;var transitionalDefaults={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var URLSearchParams=
|
|
526
|
+
*/},{key:"forEach",value:function forEach(fn){utils$1.forEach(this.handlers,function forEachHandler(h){if(h!==null){fn(h);}});}}]);return InterceptorManager;}();var InterceptorManager$1=InterceptorManager;var transitionalDefaults={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var URLSearchParams$1=typeof URLSearchParams!=='undefined'?URLSearchParams:AxiosURLSearchParams;var FormData$1=typeof FormData!=='undefined'?FormData:null;var Blob$1=typeof Blob!=='undefined'?Blob:null;var platform$1={isBrowser:true,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:['http','https','file','blob','url','data']};var hasBrowserEnv=typeof window!=='undefined'&&typeof document!=='undefined';/**
|
|
800
527
|
* Determine if we're running in a standard browser environment
|
|
801
528
|
*
|
|
802
529
|
* This allows axios to run in a web worker, and react-native.
|
|
@@ -870,8 +597,8 @@ var ignoreDuplicateOf=utils$1.toObjectSet(['age','authorization','content-length
|
|
|
870
597
|
* @param {String} rawHeaders Headers needing to be parsed
|
|
871
598
|
*
|
|
872
599
|
* @returns {Object} Headers parsed into an object
|
|
873
|
-
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(_Symbol$iterator,_Symbol$toStringTag){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}_createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:_Symbol$iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(
|
|
874
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(
|
|
600
|
+
*/var parseHeaders=function parseHeaders(rawHeaders){var parsed={};var key;var val;var i;rawHeaders&&rawHeaders.split('\n').forEach(function parser(line){i=line.indexOf(':');key=line.substring(0,i).trim().toLowerCase();val=line.substring(i+1).trim();if(!key||parsed[key]&&ignoreDuplicateOf[key]){return;}if(key==='set-cookie'){if(parsed[key]){parsed[key].push(val);}else{parsed[key]=[val];}}else{parsed[key]=parsed[key]?parsed[key]+', '+val:val;}});return parsed;};var $internals=Symbol('internals');function normalizeHeader(header){return header&&String(header).trim().toLowerCase();}function normalizeValue(value){if(value===false||value==null){return value;}return utils$1.isArray(value)?value.map(normalizeValue):String(value);}function parseTokens(str){var tokens=Object.create(null);var tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var match;while(match=tokensRE.exec(str)){tokens[match[1]]=match[2];}return tokens;}var isValidHeaderName=function isValidHeaderName(str){return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());};function matchHeaderValue(context,value,header,filter,isHeaderNameFilter){if(utils$1.isFunction(filter)){return filter.call(this,value,header);}if(isHeaderNameFilter){value=header;}if(!utils$1.isString(value))return;if(utils$1.isString(filter)){return value.indexOf(filter)!==-1;}if(utils$1.isRegExp(filter)){return filter.test(value);}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,_char,str){return _char.toUpperCase()+str;});}function buildAccessors(obj,header){var accessorName=utils$1.toCamelCase(' '+header);['get','set','has'].forEach(function(methodName){Object.defineProperty(obj,methodName+accessorName,{value:function value(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3);},configurable:true});});}var AxiosHeaders=/*#__PURE__*/function(_Symbol$iterator,_Symbol$toStringTag){function AxiosHeaders(headers){_classCallCheck(this,AxiosHeaders);headers&&this.set(headers);}_createClass(AxiosHeaders,[{key:"set",value:function set(header,valueOrRewrite,rewrite){var self=this;function setHeader(_value,_header,_rewrite){var lHeader=normalizeHeader(_header);if(!lHeader){throw new Error('header name must be a non-empty string');}var key=utils$1.findKey(self,lHeader);if(!key||self[key]===undefined||_rewrite===true||_rewrite===undefined&&self[key]!==false){self[key||_header]=normalizeValue(_value);}}var setHeaders=function setHeaders(headers,_rewrite){return utils$1.forEach(headers,function(_value,_header){return setHeader(_value,_header,_rewrite);});};if(utils$1.isPlainObject(header)||header instanceof this.constructor){setHeaders(header,valueOrRewrite);}else if(utils$1.isString(header)&&(header=header.trim())&&!isValidHeaderName(header)){setHeaders(parseHeaders(header),valueOrRewrite);}else{header!=null&&setHeader(valueOrRewrite,header,rewrite);}return this;}},{key:"get",value:function get(header,parser){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);if(key){var value=this[key];if(!parser){return value;}if(parser===true){return parseTokens(value);}if(utils$1.isFunction(parser)){return parser.call(this,value,key);}if(utils$1.isRegExp(parser)){return parser.exec(value);}throw new TypeError('parser must be boolean|regexp|function');}}}},{key:"has",value:function has(header,matcher){header=normalizeHeader(header);if(header){var key=utils$1.findKey(this,header);return!!(key&&this[key]!==undefined&&(!matcher||matchHeaderValue(this,this[key],key,matcher)));}return false;}},{key:"delete",value:function _delete(header,matcher){var self=this;var deleted=false;function deleteHeader(_header){_header=normalizeHeader(_header);if(_header){var key=utils$1.findKey(self,_header);if(key&&(!matcher||matchHeaderValue(self,self[key],key,matcher))){delete self[key];deleted=true;}}}if(utils$1.isArray(header)){header.forEach(deleteHeader);}else{deleteHeader(header);}return deleted;}},{key:"clear",value:function clear(matcher){var keys=Object.keys(this);var i=keys.length;var deleted=false;while(i--){var key=keys[i];if(!matcher||matchHeaderValue(this,this[key],key,matcher,true)){delete this[key];deleted=true;}}return deleted;}},{key:"normalize",value:function normalize(format){var self=this;var headers={};utils$1.forEach(this,function(value,header){var key=utils$1.findKey(headers,header);if(key){self[key]=normalizeValue(value);delete self[header];return;}var normalized=format?formatHeader(header):String(header).trim();if(normalized!==header){delete self[header];}self[normalized]=normalizeValue(value);headers[normalized]=true;});return this;}},{key:"concat",value:function concat(){var _this$constructor;for(var _len=arguments.length,targets=new Array(_len),_key2=0;_key2<_len;_key2++){targets[_key2]=arguments[_key2];}return(_this$constructor=this.constructor).concat.apply(_this$constructor,[this].concat(targets));}},{key:"toJSON",value:function toJSON(asStrings){var obj=Object.create(null);utils$1.forEach(this,function(value,header){value!=null&&value!==false&&(obj[header]=asStrings&&utils$1.isArray(value)?value.join(', '):value);});return obj;}},{key:_Symbol$iterator,value:function value(){return Object.entries(this.toJSON())[Symbol.iterator]();}},{key:"toString",value:function toString(){return Object.entries(this.toJSON()).map(function(_ref5){var _ref6=_slicedToArray(_ref5,2),header=_ref6[0],value=_ref6[1];return header+': '+value;}).join('\n');}},{key:_Symbol$toStringTag,get:function get(){return'AxiosHeaders';}}],[{key:"from",value:function from(thing){return thing instanceof this?thing:new this(thing);}},{key:"concat",value:function concat(first){var computed=new this(first);for(var _len2=arguments.length,targets=new Array(_len2>1?_len2-1:0),_key3=1;_key3<_len2;_key3++){targets[_key3-1]=arguments[_key3];}targets.forEach(function(target){return computed.set(target);});return computed;}},{key:"accessor",value:function accessor(header){var internals=this[$internals]=this[$internals]={accessors:{}};var accessors=internals.accessors;var prototype=this.prototype;function defineAccessor(_header){var lHeader=normalizeHeader(_header);if(!accessors[lHeader]){buildAccessors(prototype,_header);accessors[lHeader]=true;}}utils$1.isArray(header)?header.forEach(defineAccessor):defineAccessor(header);return this;}}]);return AxiosHeaders;}(Symbol.iterator,Symbol.toStringTag);AxiosHeaders.accessor(['Content-Type','Content-Length','Accept','Accept-Encoding','User-Agent','Authorization']);// reserved names hotfix
|
|
601
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype,function(_ref7,key){var value=_ref7.value;var mapped=key[0].toUpperCase()+key.slice(1);// map `set` => `Set`
|
|
875
602
|
return{get:function get(){return value;},set:function set(headerValue){this[mapped]=headerValue;}};});utils$1.freezeMethods(AxiosHeaders);var AxiosHeaders$1=AxiosHeaders;/**
|
|
876
603
|
* Transform the data for a request or a response
|
|
877
604
|
*
|
|
@@ -896,7 +623,9 @@ AxiosError.call(this,message==null?'canceled':message,AxiosError.ERR_CANCELED,co
|
|
|
896
623
|
* @param {object} response The response.
|
|
897
624
|
*
|
|
898
625
|
* @returns {object} The response.
|
|
899
|
-
*/function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else{reject(new AxiosError('Request failed with status code '+response.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}}
|
|
626
|
+
*/function settle(resolve,reject,response){var validateStatus=response.config.validateStatus;if(!response.status||!validateStatus||validateStatus(response.status)){resolve(response);}else{reject(new AxiosError('Request failed with status code '+response.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status/100)-4],response.config,response.request,response));}}var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
627
|
+
{write:function write(name,value,expires,path,domain,secure){var cookie=[name+'='+encodeURIComponent(value)];utils$1.isNumber(expires)&&cookie.push('expires='+new Date(expires).toGMTString());utils$1.isString(path)&&cookie.push('path='+path);utils$1.isString(domain)&&cookie.push('domain='+domain);secure===true&&cookie.push('secure');document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}}:// Non-standard browser env (web workers, react-native) lack needed support.
|
|
628
|
+
{write:function write(){},read:function read(){return null;},remove:function remove(){}};/**
|
|
900
629
|
* Determines whether the specified URL is absolute
|
|
901
630
|
*
|
|
902
631
|
* @param {string} url The URL to test
|
|
@@ -921,508 +650,10 @@ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);}/**
|
|
|
921
650
|
* @param {string} requestedURL Absolute or relative URL to combine
|
|
922
651
|
*
|
|
923
652
|
* @returns {string} The combined full path
|
|
924
|
-
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var
|
|
925
|
-
* @param {string|object} url - The URL, or the result from url.parse.
|
|
926
|
-
* @return {string} The URL of the proxy that should handle the request to the
|
|
927
|
-
* given URL. If no proxy is set, this will be an empty string.
|
|
928
|
-
*/function getProxyForUrl(url){var parsedUrl=typeof url==='string'?parseUrl(url):url||{};var proto=parsedUrl.protocol;var hostname=parsedUrl.host;var port=parsedUrl.port;if(typeof hostname!=='string'||!hostname||typeof proto!=='string'){return'';// Don't proxy URLs without a valid scheme or host.
|
|
929
|
-
}proto=proto.split(':',1)[0];// Stripping ports in this way instead of using parsedUrl.hostname to make
|
|
930
|
-
// sure that the brackets around IPv6 addresses are kept.
|
|
931
|
-
hostname=hostname.replace(/:\d*$/,'');port=parseInt(port)||DEFAULT_PORTS[proto]||0;if(!shouldProxy(hostname,port)){return'';// Don't proxy URLs that match NO_PROXY.
|
|
932
|
-
}var proxy=getEnv('npm_config_'+proto+'_proxy')||getEnv(proto+'_proxy')||getEnv('npm_config_proxy')||getEnv('all_proxy');if(proxy&&proxy.indexOf('://')===-1){// Missing scheme in proxy, default to the requested URL's scheme.
|
|
933
|
-
proxy=proto+'://'+proxy;}return proxy;}/**
|
|
934
|
-
* Determines whether a given URL should be proxied.
|
|
935
|
-
*
|
|
936
|
-
* @param {string} hostname - The host name of the URL.
|
|
937
|
-
* @param {number} port - The effective port of the URL.
|
|
938
|
-
* @returns {boolean} Whether the given URL should be proxied.
|
|
939
|
-
* @private
|
|
940
|
-
*/function shouldProxy(hostname,port){var NO_PROXY=(getEnv('npm_config_no_proxy')||getEnv('no_proxy')).toLowerCase();if(!NO_PROXY){return true;// Always proxy if NO_PROXY is not set.
|
|
941
|
-
}if(NO_PROXY==='*'){return false;// Never proxy if wildcard is set.
|
|
942
|
-
}return NO_PROXY.split(/[,\s]/).every(function(proxy){if(!proxy){return true;// Skip zero-length hosts.
|
|
943
|
-
}var parsedProxy=proxy.match(/^(.+):(\d+)$/);var parsedProxyHostname=parsedProxy?parsedProxy[1]:proxy;var parsedProxyPort=parsedProxy?parseInt(parsedProxy[2]):0;if(parsedProxyPort&&parsedProxyPort!==port){return true;// Skip if ports don't match.
|
|
944
|
-
}if(!/^[.*]/.test(parsedProxyHostname)){// No wildcards, so stop proxying if there is an exact match.
|
|
945
|
-
return hostname!==parsedProxyHostname;}if(parsedProxyHostname.charAt(0)==='*'){// Remove leading wildcard.
|
|
946
|
-
parsedProxyHostname=parsedProxyHostname.slice(1);}// Stop proxying if the hostname ends with the no_proxy host.
|
|
947
|
-
return!stringEndsWith.call(hostname,parsedProxyHostname);});}/**
|
|
948
|
-
* Get the value for an environment variable.
|
|
949
|
-
*
|
|
950
|
-
* @param {string} key - The name of the environment variable.
|
|
951
|
-
* @return {string} The value of the environment variable.
|
|
952
|
-
* @private
|
|
953
|
-
*/function getEnv(key){return process.env[key.toLowerCase()]||process.env[key.toUpperCase()]||'';}var getProxyForUrl_1=getProxyForUrl;var followRedirects$1={exports:{}};function compare(a,b){if(a===b){return 0;}var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i<len;++i){if(a[i]!==b[i]){x=a[i];y=b[i];break;}}if(x<y){return-1;}if(y<x){return 1;}return 0;}var hasOwn=Object.prototype.hasOwnProperty;var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){if(hasOwn.call(obj,key))keys.push(key);}return keys;};var pSlice=Array.prototype.slice;var _functionsHaveNames;function functionsHaveNames(){if(typeof _functionsHaveNames!=='undefined'){return _functionsHaveNames;}return _functionsHaveNames=function(){return function foo(){}.name==='foo';}();}function pToString(obj){return Object.prototype.toString.call(obj);}function isView(arrbuf){if(buffer.isBuffer(arrbuf)){return false;}if(typeof global$1.ArrayBuffer!=='function'){return false;}if(typeof ArrayBuffer.isView==='function'){return ArrayBuffer.isView(arrbuf);}if(!arrbuf){return false;}if(arrbuf instanceof DataView){return true;}if(arrbuf.buffer&&arrbuf.buffer instanceof ArrayBuffer){return true;}return false;}// 1. The assert module provides functions that throw
|
|
954
|
-
// AssertionError's when particular conditions are not met. The
|
|
955
|
-
// assert module must conform to the following interface.
|
|
956
|
-
function assert$1(value,message){if(!value)fail(value,true,message,'==',ok);}// 2. The AssertionError is defined in assert.
|
|
957
|
-
// new assert.AssertionError({ message: message,
|
|
958
|
-
// actual: actual,
|
|
959
|
-
// expected: expected })
|
|
960
|
-
var regex=/\s*function\s+([^\(\s]*)\s*/;// based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js
|
|
961
|
-
function getName(func){if(!require$$1.isFunction(func)){return;}if(functionsHaveNames()){return func.name;}var str=func.toString();var match=str.match(regex);return match&&match[1];}assert$1.AssertionError=AssertionError;function AssertionError(options){this.name='AssertionError';this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;if(options.message){this.message=options.message;this.generatedMessage=false;}else{this.message=getMessage(this);this.generatedMessage=true;}var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction);}else{// non v8 browsers so we can have a stacktrace
|
|
962
|
-
var err=new Error();if(err.stack){var out=err.stack;// try to strip useless frames
|
|
963
|
-
var fn_name=getName(stackStartFunction);var idx=out.indexOf('\n'+fn_name);if(idx>=0){// once we have located the function frame
|
|
964
|
-
// we need to strip out everything before it (and its line)
|
|
965
|
-
var next_line=out.indexOf('\n',idx+1);out=out.substring(next_line+1);}this.stack=out;}}}// assert.AssertionError instanceof Error
|
|
966
|
-
require$$1.inherits(AssertionError,Error);function truncate(s,n){if(typeof s==='string'){return s.length<n?s:s.slice(0,n);}else{return s;}}function inspect(something){if(functionsHaveNames()||!require$$1.isFunction(something)){return require$$1.inspect(something);}var rawname=getName(something);var name=rawname?': '+rawname:'';return'[Function'+name+']';}function getMessage(self){return truncate(inspect(self.actual),128)+' '+self.operator+' '+truncate(inspect(self.expected),128);}// At present only the three keys mentioned above are used and
|
|
967
|
-
// understood by the spec. Implementations or sub modules can pass
|
|
968
|
-
// other keys to the AssertionError's constructor - they will be
|
|
969
|
-
// ignored.
|
|
970
|
-
// 3. All of the following functions must throw an AssertionError
|
|
971
|
-
// when a corresponding condition is not met, with a message that
|
|
972
|
-
// may be undefined if not provided. All assertion methods provide
|
|
973
|
-
// both the actual and expected values to the assertion error for
|
|
974
|
-
// display purposes.
|
|
975
|
-
function fail(actual,expected,message,operator,stackStartFunction){throw new AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction});}// EXTENSION! allows for well behaved errors defined elsewhere.
|
|
976
|
-
assert$1.fail=fail;// 4. Pure assertion tests whether a value is truthy, as determined
|
|
977
|
-
// by !!guard.
|
|
978
|
-
// assert.ok(guard, message_opt);
|
|
979
|
-
// This statement is equivalent to assert.equal(true, !!guard,
|
|
980
|
-
// message_opt);. To test strictly for the value true, use
|
|
981
|
-
// assert.strictEqual(true, guard, message_opt);.
|
|
982
|
-
function ok(value,message){if(!value)fail(value,true,message,'==',ok);}assert$1.ok=ok;// 5. The equality assertion tests shallow, coercive equality with
|
|
983
|
-
// ==.
|
|
984
|
-
// assert.equal(actual, expected, message_opt);
|
|
985
|
-
assert$1.equal=equal;function equal(actual,expected,message){if(actual!=expected)fail(actual,expected,message,'==',equal);}// 6. The non-equality assertion tests for whether two objects are not equal
|
|
986
|
-
// with != assert.notEqual(actual, expected, message_opt);
|
|
987
|
-
assert$1.notEqual=notEqual;function notEqual(actual,expected,message){if(actual==expected){fail(actual,expected,message,'!=',notEqual);}}// 7. The equivalence assertion tests a deep equality relation.
|
|
988
|
-
// assert.deepEqual(actual, expected, message_opt);
|
|
989
|
-
assert$1.deepEqual=deepEqual;function deepEqual(actual,expected,message){if(!_deepEqual(actual,expected,false)){fail(actual,expected,message,'deepEqual',deepEqual);}}assert$1.deepStrictEqual=deepStrictEqual;function deepStrictEqual(actual,expected,message){if(!_deepEqual(actual,expected,true)){fail(actual,expected,message,'deepStrictEqual',deepStrictEqual);}}function _deepEqual(actual,expected,strict,memos){// 7.1. All identical values are equivalent, as determined by ===.
|
|
990
|
-
if(actual===expected){return true;}else if(buffer.isBuffer(actual)&&buffer.isBuffer(expected)){return compare(actual,expected)===0;// 7.2. If the expected value is a Date object, the actual value is
|
|
991
|
-
// equivalent if it is also a Date object that refers to the same time.
|
|
992
|
-
}else if(require$$1.isDate(actual)&&require$$1.isDate(expected)){return actual.getTime()===expected.getTime();// 7.3 If the expected value is a RegExp object, the actual value is
|
|
993
|
-
// equivalent if it is also a RegExp object with the same source and
|
|
994
|
-
// properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).
|
|
995
|
-
}else if(require$$1.isRegExp(actual)&&require$$1.isRegExp(expected)){return actual.source===expected.source&&actual.global===expected.global&&actual.multiline===expected.multiline&&actual.lastIndex===expected.lastIndex&&actual.ignoreCase===expected.ignoreCase;// 7.4. Other pairs that do not both pass typeof value == 'object',
|
|
996
|
-
// equivalence is determined by ==.
|
|
997
|
-
}else if((actual===null||_typeof(actual)!=='object')&&(expected===null||_typeof(expected)!=='object')){return strict?actual===expected:actual==expected;// If both values are instances of typed arrays, wrap their underlying
|
|
998
|
-
// ArrayBuffers in a Buffer each to increase performance
|
|
999
|
-
// This optimization requires the arrays to have the same type as checked by
|
|
1000
|
-
// Object.prototype.toString (aka pToString). Never perform binary
|
|
1001
|
-
// comparisons for Float*Arrays, though, since e.g. +0 === -0 but their
|
|
1002
|
-
// bit patterns are not identical.
|
|
1003
|
-
}else if(isView(actual)&&isView(expected)&&pToString(actual)===pToString(expected)&&!(actual instanceof Float32Array||actual instanceof Float64Array)){return compare(new Uint8Array(actual.buffer),new Uint8Array(expected.buffer))===0;// 7.5 For all other Object pairs, including Array objects, equivalence is
|
|
1004
|
-
// determined by having the same number of owned properties (as verified
|
|
1005
|
-
// with Object.prototype.hasOwnProperty.call), the same set of keys
|
|
1006
|
-
// (although not necessarily the same order), equivalent values for every
|
|
1007
|
-
// corresponding key, and an identical 'prototype' property. Note: this
|
|
1008
|
-
// accounts for both named and indexed properties on Arrays.
|
|
1009
|
-
}else if(buffer.isBuffer(actual)!==buffer.isBuffer(expected)){return false;}else{memos=memos||{actual:[],expected:[]};var actualIndex=memos.actual.indexOf(actual);if(actualIndex!==-1){if(actualIndex===memos.expected.indexOf(expected)){return true;}}memos.actual.push(actual);memos.expected.push(expected);return objEquiv(actual,expected,strict,memos);}}function isArguments(object){return Object.prototype.toString.call(object)=='[object Arguments]';}function objEquiv(a,b,strict,actualVisitedObjects){if(a===null||a===undefined||b===null||b===undefined)return false;// if one is a primitive, the other must be same
|
|
1010
|
-
if(require$$1.isPrimitive(a)||require$$1.isPrimitive(b))return a===b;if(strict&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(b))return false;var aIsArgs=isArguments(a);var bIsArgs=isArguments(b);if(aIsArgs&&!bIsArgs||!aIsArgs&&bIsArgs)return false;if(aIsArgs){a=pSlice.call(a);b=pSlice.call(b);return _deepEqual(a,b,strict);}var ka=objectKeys(a);var kb=objectKeys(b);var key,i;// having the same number of owned properties (keys incorporates
|
|
1011
|
-
// hasOwnProperty)
|
|
1012
|
-
if(ka.length!==kb.length)return false;//the same set of keys (although not necessarily the same order),
|
|
1013
|
-
ka.sort();kb.sort();//~~~cheap key test
|
|
1014
|
-
for(i=ka.length-1;i>=0;i--){if(ka[i]!==kb[i])return false;}//equivalent values for every corresponding key, and
|
|
1015
|
-
//~~~possibly expensive deep test
|
|
1016
|
-
for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key],strict,actualVisitedObjects))return false;}return true;}// 8. The non-equivalence assertion tests for any deep inequality.
|
|
1017
|
-
// assert.notDeepEqual(actual, expected, message_opt);
|
|
1018
|
-
assert$1.notDeepEqual=notDeepEqual;function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected,false)){fail(actual,expected,message,'notDeepEqual',notDeepEqual);}}assert$1.notDeepStrictEqual=notDeepStrictEqual;function notDeepStrictEqual(actual,expected,message){if(_deepEqual(actual,expected,true)){fail(actual,expected,message,'notDeepStrictEqual',notDeepStrictEqual);}}// 9. The strict equality assertion tests strict equality, as determined by ===.
|
|
1019
|
-
// assert.strictEqual(actual, expected, message_opt);
|
|
1020
|
-
assert$1.strictEqual=strictEqual;function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,'===',strictEqual);}}// 10. The strict non-equality assertion tests for strict inequality, as
|
|
1021
|
-
// determined by !==. assert.notStrictEqual(actual, expected, message_opt);
|
|
1022
|
-
assert$1.notStrictEqual=notStrictEqual;function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,'!==',notStrictEqual);}}function expectedException(actual,expected){if(!actual||!expected){return false;}if(Object.prototype.toString.call(expected)=='[object RegExp]'){return expected.test(actual);}try{if(actual instanceof expected){return true;}}catch(e){// Ignore. The instanceof check doesn't work for arrow functions.
|
|
1023
|
-
}if(Error.isPrototypeOf(expected)){return false;}return expected.call({},actual)===true;}function _tryBlock(block){var error;try{block();}catch(e){error=e;}return error;}function _throws(shouldThrow,block,expected,message){var actual;if(typeof block!=='function'){throw new TypeError('"block" argument must be a function');}if(typeof expected==='string'){message=expected;expected=null;}actual=_tryBlock(block);message=(expected&&expected.name?' ('+expected.name+').':'.')+(message?' '+message:'.');if(shouldThrow&&!actual){fail(actual,expected,'Missing expected exception'+message);}var userProvidedMessage=typeof message==='string';var isUnwantedException=!shouldThrow&&require$$1.isError(actual);var isUnexpectedException=!shouldThrow&&actual&&!expected;if(isUnwantedException&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException){fail(actual,expected,'Got unwanted exception'+message);}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual;}}// 11. Expected to throw an error:
|
|
1024
|
-
// assert.throws(block, Error_opt, message_opt);
|
|
1025
|
-
assert$1["throws"]=_throws2;function _throws2(block,/*optional*/error,/*optional*/message){_throws(true,block,error,message);}// EXTENSION! This is annoying to write outside this module.
|
|
1026
|
-
assert$1.doesNotThrow=doesNotThrow;function doesNotThrow(block,/*optional*/error,/*optional*/message){_throws(false,block,error,message);}assert$1.ifError=ifError;function ifError(err){if(err)throw err;}var assert$2=/*#__PURE__*/Object.freeze({__proto__:null,'default':assert$1,AssertionError:AssertionError,fail:fail,ok:ok,assert:ok,equal:equal,notEqual:notEqual,deepEqual:deepEqual,deepStrictEqual:deepStrictEqual,notDeepEqual:notDeepEqual,notDeepStrictEqual:notDeepStrictEqual,strictEqual:strictEqual,notStrictEqual:notStrictEqual,"throws":_throws2,doesNotThrow:doesNotThrow,ifError:ifError});var require$$4=/*@__PURE__*/getAugmentedNamespace(assert$2);var browser$1=true;var src={exports:{}};var browser={exports:{}};/**
|
|
1027
|
-
* Helpers.
|
|
1028
|
-
*/var ms;var hasRequiredMs;function requireMs(){if(hasRequiredMs)return ms;hasRequiredMs=1;var s=1000;var m=s*60;var h=m*60;var d=h*24;var w=d*7;var y=d*365.25;/**
|
|
1029
|
-
* Parse or format the given `val`.
|
|
1030
|
-
*
|
|
1031
|
-
* Options:
|
|
1032
|
-
*
|
|
1033
|
-
* - `long` verbose formatting [false]
|
|
1034
|
-
*
|
|
1035
|
-
* @param {String|Number} val
|
|
1036
|
-
* @param {Object} [options]
|
|
1037
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
|
1038
|
-
* @return {String|Number}
|
|
1039
|
-
* @api public
|
|
1040
|
-
*/ms=function ms(val,options){options=options||{};var type=_typeof(val);if(type==='string'&&val.length>0){return parse(val);}else if(type==='number'&&isFinite(val)){return options["long"]?fmtLong(val):fmtShort(val);}throw new Error('val is not a non-empty string or a valid number. val='+JSON.stringify(val));};/**
|
|
1041
|
-
* Parse the given `str` and return milliseconds.
|
|
1042
|
-
*
|
|
1043
|
-
* @param {String} str
|
|
1044
|
-
* @return {Number}
|
|
1045
|
-
* @api private
|
|
1046
|
-
*/function parse(str){str=String(str);if(str.length>100){return;}var match=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);if(!match){return;}var n=parseFloat(match[1]);var type=(match[2]||'ms').toLowerCase();switch(type){case'years':case'year':case'yrs':case'yr':case'y':return n*y;case'weeks':case'week':case'w':return n*w;case'days':case'day':case'd':return n*d;case'hours':case'hour':case'hrs':case'hr':case'h':return n*h;case'minutes':case'minute':case'mins':case'min':case'm':return n*m;case'seconds':case'second':case'secs':case'sec':case's':return n*s;case'milliseconds':case'millisecond':case'msecs':case'msec':case'ms':return n;default:return undefined;}}/**
|
|
1047
|
-
* Short format for `ms`.
|
|
1048
|
-
*
|
|
1049
|
-
* @param {Number} ms
|
|
1050
|
-
* @return {String}
|
|
1051
|
-
* @api private
|
|
1052
|
-
*/function fmtShort(ms){var msAbs=Math.abs(ms);if(msAbs>=d){return Math.round(ms/d)+'d';}if(msAbs>=h){return Math.round(ms/h)+'h';}if(msAbs>=m){return Math.round(ms/m)+'m';}if(msAbs>=s){return Math.round(ms/s)+'s';}return ms+'ms';}/**
|
|
1053
|
-
* Long format for `ms`.
|
|
1054
|
-
*
|
|
1055
|
-
* @param {Number} ms
|
|
1056
|
-
* @return {String}
|
|
1057
|
-
* @api private
|
|
1058
|
-
*/function fmtLong(ms){var msAbs=Math.abs(ms);if(msAbs>=d){return plural(ms,msAbs,d,'day');}if(msAbs>=h){return plural(ms,msAbs,h,'hour');}if(msAbs>=m){return plural(ms,msAbs,m,'minute');}if(msAbs>=s){return plural(ms,msAbs,s,'second');}return ms+' ms';}/**
|
|
1059
|
-
* Pluralization helper.
|
|
1060
|
-
*/function plural(ms,msAbs,n,name){var isPlural=msAbs>=n*1.5;return Math.round(ms/n)+' '+name+(isPlural?'s':'');}return ms;}var common;var hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;/**
|
|
1061
|
-
* This is the common logic for both the Node.js and web browser
|
|
1062
|
-
* implementations of `debug()`.
|
|
1063
|
-
*/function setup(env){createDebug.debug=createDebug;createDebug["default"]=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=requireMs();createDebug.destroy=destroy;Object.keys(env).forEach(function(key){createDebug[key]=env[key];});/**
|
|
1064
|
-
* The currently active debug mode names, and names to skip.
|
|
1065
|
-
*/createDebug.names=[];createDebug.skips=[];/**
|
|
1066
|
-
* Map of special "%n" handling functions, for the debug "format" argument.
|
|
1067
|
-
*
|
|
1068
|
-
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
|
1069
|
-
*/createDebug.formatters={};/**
|
|
1070
|
-
* Selects a color for a debug namespace
|
|
1071
|
-
* @param {String} namespace The namespace string for the debug instance to be colored
|
|
1072
|
-
* @return {Number|String} An ANSI color code for the given namespace
|
|
1073
|
-
* @api private
|
|
1074
|
-
*/function selectColor(namespace){var hash=0;for(var i=0;i<namespace.length;i++){hash=(hash<<5)-hash+namespace.charCodeAt(i);hash|=0;// Convert to 32bit integer
|
|
1075
|
-
}return createDebug.colors[Math.abs(hash)%createDebug.colors.length];}createDebug.selectColor=selectColor;/**
|
|
1076
|
-
* Create a debugger with the given `namespace`.
|
|
1077
|
-
*
|
|
1078
|
-
* @param {String} namespace
|
|
1079
|
-
* @return {Function}
|
|
1080
|
-
* @api public
|
|
1081
|
-
*/function createDebug(namespace){var prevTime;var enableOverride=null;var namespacesCache;var enabledCache;function debug(){for(var _len3=arguments.length,args=new Array(_len3),_key4=0;_key4<_len3;_key4++){args[_key4]=arguments[_key4];}// Disabled?
|
|
1082
|
-
if(!debug.enabled){return;}var self=debug;// Set `diff` timestamp
|
|
1083
|
-
var curr=Number(new Date());var ms=curr-(prevTime||curr);self.diff=ms;self.prev=prevTime;self.curr=curr;prevTime=curr;args[0]=createDebug.coerce(args[0]);if(typeof args[0]!=='string'){// Anything else let's inspect with %O
|
|
1084
|
-
args.unshift('%O');}// Apply any `formatters` transformations
|
|
1085
|
-
var index=0;args[0]=args[0].replace(/%([a-zA-Z%])/g,function(match,format){// If we encounter an escaped % then don't increase the array index
|
|
1086
|
-
if(match==='%%'){return'%';}index++;var formatter=createDebug.formatters[format];if(typeof formatter==='function'){var val=args[index];match=formatter.call(self,val);// Now we need to remove `args[index]` since it's inlined in the `format`
|
|
1087
|
-
args.splice(index,1);index--;}return match;});// Apply env-specific formatting (colors, etc.)
|
|
1088
|
-
createDebug.formatArgs.call(self,args);var logFn=self.log||createDebug.log;logFn.apply(self,args);}debug.namespace=namespace;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(namespace);debug.extend=extend;debug.destroy=createDebug.destroy;// XXX Temporary. Will be removed in the next major release.
|
|
1089
|
-
Object.defineProperty(debug,'enabled',{enumerable:true,configurable:false,get:function get(){if(enableOverride!==null){return enableOverride;}if(namespacesCache!==createDebug.namespaces){namespacesCache=createDebug.namespaces;enabledCache=createDebug.enabled(namespace);}return enabledCache;},set:function set(v){enableOverride=v;}});// Env-specific initialization logic for debug instances
|
|
1090
|
-
if(typeof createDebug.init==='function'){createDebug.init(debug);}return debug;}function extend(namespace,delimiter){var newDebug=createDebug(this.namespace+(typeof delimiter==='undefined'?':':delimiter)+namespace);newDebug.log=this.log;return newDebug;}/**
|
|
1091
|
-
* Enables a debug mode by namespaces. This can include modes
|
|
1092
|
-
* separated by a colon and wildcards.
|
|
1093
|
-
*
|
|
1094
|
-
* @param {String} namespaces
|
|
1095
|
-
* @api public
|
|
1096
|
-
*/function enable(namespaces){createDebug.save(namespaces);createDebug.namespaces=namespaces;createDebug.names=[];createDebug.skips=[];var i;var split=(typeof namespaces==='string'?namespaces:'').split(/[\s,]+/);var len=split.length;for(i=0;i<len;i++){if(!split[i]){// ignore empty strings
|
|
1097
|
-
continue;}namespaces=split[i].replace(/\*/g,'.*?');if(namespaces[0]==='-'){createDebug.skips.push(new RegExp('^'+namespaces.slice(1)+'$'));}else{createDebug.names.push(new RegExp('^'+namespaces+'$'));}}}/**
|
|
1098
|
-
* Disable debug output.
|
|
1099
|
-
*
|
|
1100
|
-
* @return {String} namespaces
|
|
1101
|
-
* @api public
|
|
1102
|
-
*/function disable(){var namespaces=[].concat(_toConsumableArray(createDebug.names.map(toNamespace)),_toConsumableArray(createDebug.skips.map(toNamespace).map(function(namespace){return'-'+namespace;}))).join(',');createDebug.enable('');return namespaces;}/**
|
|
1103
|
-
* Returns true if the given mode name is enabled, false otherwise.
|
|
1104
|
-
*
|
|
1105
|
-
* @param {String} name
|
|
1106
|
-
* @return {Boolean}
|
|
1107
|
-
* @api public
|
|
1108
|
-
*/function enabled(name){if(name[name.length-1]==='*'){return true;}var i;var len;for(i=0,len=createDebug.skips.length;i<len;i++){if(createDebug.skips[i].test(name)){return false;}}for(i=0,len=createDebug.names.length;i<len;i++){if(createDebug.names[i].test(name)){return true;}}return false;}/**
|
|
1109
|
-
* Convert regexp to namespace
|
|
1110
|
-
*
|
|
1111
|
-
* @param {RegExp} regxep
|
|
1112
|
-
* @return {String} namespace
|
|
1113
|
-
* @api private
|
|
1114
|
-
*/function toNamespace(regexp){return regexp.toString().substring(2,regexp.toString().length-2).replace(/\.\*\?$/,'*');}/**
|
|
1115
|
-
* Coerce `val`.
|
|
1116
|
-
*
|
|
1117
|
-
* @param {Mixed} val
|
|
1118
|
-
* @return {Mixed}
|
|
1119
|
-
* @api private
|
|
1120
|
-
*/function coerce(val){if(val instanceof Error){return val.stack||val.message;}return val;}/**
|
|
1121
|
-
* XXX DO NOT USE. This is a temporary stub function.
|
|
1122
|
-
* XXX It WILL be removed in the next major release.
|
|
1123
|
-
*/function destroy(){console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');}createDebug.enable(createDebug.load());return createDebug;}common=setup;return common;}browser.exports;var hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser.exports;hasRequiredBrowser=1;(function(module,exports){/**
|
|
1124
|
-
* This is the web browser implementation of `debug()`.
|
|
1125
|
-
*/exports.formatArgs=formatArgs;exports.save=save;exports.load=load;exports.useColors=useColors;exports.storage=localstorage();exports.destroy=function(){var warned=false;return function(){if(!warned){warned=true;console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');}};}();/**
|
|
1126
|
-
* Colors.
|
|
1127
|
-
*/exports.colors=['#0000CC','#0000FF','#0033CC','#0033FF','#0066CC','#0066FF','#0099CC','#0099FF','#00CC00','#00CC33','#00CC66','#00CC99','#00CCCC','#00CCFF','#3300CC','#3300FF','#3333CC','#3333FF','#3366CC','#3366FF','#3399CC','#3399FF','#33CC00','#33CC33','#33CC66','#33CC99','#33CCCC','#33CCFF','#6600CC','#6600FF','#6633CC','#6633FF','#66CC00','#66CC33','#9900CC','#9900FF','#9933CC','#9933FF','#99CC00','#99CC33','#CC0000','#CC0033','#CC0066','#CC0099','#CC00CC','#CC00FF','#CC3300','#CC3333','#CC3366','#CC3399','#CC33CC','#CC33FF','#CC6600','#CC6633','#CC9900','#CC9933','#CCCC00','#CCCC33','#FF0000','#FF0033','#FF0066','#FF0099','#FF00CC','#FF00FF','#FF3300','#FF3333','#FF3366','#FF3399','#FF33CC','#FF33FF','#FF6600','#FF6633','#FF9900','#FF9933','#FFCC00','#FFCC33'];/**
|
|
1128
|
-
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
|
1129
|
-
* and the Firebug extension (any Firefox version) are known
|
|
1130
|
-
* to support "%c" CSS customizations.
|
|
1131
|
-
*
|
|
1132
|
-
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
|
1133
|
-
*/ // eslint-disable-next-line complexity
|
|
1134
|
-
function useColors(){// NB: In an Electron preload script, document will be defined but not fully
|
|
1135
|
-
// initialized. Since we know we're in Chrome, we'll just detect this case
|
|
1136
|
-
// explicitly
|
|
1137
|
-
if(typeof window!=='undefined'&&window.process&&(window.process.type==='renderer'||window.process.__nwjs)){return true;}// Internet Explorer and Edge do not support colors.
|
|
1138
|
-
if(typeof navigator!=='undefined'&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false;}// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
1139
|
-
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
1140
|
-
return typeof document!=='undefined'&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
1141
|
-
typeof window!=='undefined'&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||// Is firefox >= v31?
|
|
1142
|
-
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
1143
|
-
typeof navigator!=='undefined'&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||// Double check webkit in userAgent just in case we are in a worker
|
|
1144
|
-
typeof navigator!=='undefined'&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);}/**
|
|
1145
|
-
* Colorize log arguments if enabled.
|
|
1146
|
-
*
|
|
1147
|
-
* @api public
|
|
1148
|
-
*/function formatArgs(args){args[0]=(this.useColors?'%c':'')+this.namespace+(this.useColors?' %c':' ')+args[0]+(this.useColors?'%c ':' ')+'+'+module.exports.humanize(this.diff);if(!this.useColors){return;}var c='color: '+this.color;args.splice(1,0,c,'color: inherit');// The final "%c" is somewhat tricky, because there could be other
|
|
1149
|
-
// arguments passed either before or after the %c, so we need to
|
|
1150
|
-
// figure out the correct index to insert the CSS into
|
|
1151
|
-
var index=0;var lastC=0;args[0].replace(/%[a-zA-Z%]/g,function(match){if(match==='%%'){return;}index++;if(match==='%c'){// We only are interested in the *last* %c
|
|
1152
|
-
// (the user may have provided their own)
|
|
1153
|
-
lastC=index;}});args.splice(lastC,0,c);}/**
|
|
1154
|
-
* Invokes `console.debug()` when available.
|
|
1155
|
-
* No-op when `console.debug` is not a "function".
|
|
1156
|
-
* If `console.debug` is not available, falls back
|
|
1157
|
-
* to `console.log`.
|
|
1158
|
-
*
|
|
1159
|
-
* @api public
|
|
1160
|
-
*/exports.log=console.debug||console.log||function(){};/**
|
|
1161
|
-
* Save `namespaces`.
|
|
1162
|
-
*
|
|
1163
|
-
* @param {String} namespaces
|
|
1164
|
-
* @api private
|
|
1165
|
-
*/function save(namespaces){try{if(namespaces){exports.storage.setItem('debug',namespaces);}else{exports.storage.removeItem('debug');}}catch(error){// Swallow
|
|
1166
|
-
// XXX (@Qix-) should we be logging these?
|
|
1167
|
-
}}/**
|
|
1168
|
-
* Load `namespaces`.
|
|
1169
|
-
*
|
|
1170
|
-
* @return {String} returns the previously persisted debug modes
|
|
1171
|
-
* @api private
|
|
1172
|
-
*/function load(){var r;try{r=exports.storage.getItem('debug');}catch(error){// Swallow
|
|
1173
|
-
// XXX (@Qix-) should we be logging these?
|
|
1174
|
-
}// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
|
1175
|
-
if(!r&&typeof process!=='undefined'&&'env'in process){r=process.env.DEBUG;}return r;}/**
|
|
1176
|
-
* Localstorage attempts to return the localstorage.
|
|
1177
|
-
*
|
|
1178
|
-
* This is necessary because safari throws
|
|
1179
|
-
* when a user disables cookies/localstorage
|
|
1180
|
-
* and you attempt to access it.
|
|
1181
|
-
*
|
|
1182
|
-
* @return {LocalStorage}
|
|
1183
|
-
* @api private
|
|
1184
|
-
*/function localstorage(){try{// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
|
1185
|
-
// The Browser also has localStorage in the global context.
|
|
1186
|
-
return localStorage;}catch(error){// Swallow
|
|
1187
|
-
// XXX (@Qix-) should we be logging these?
|
|
1188
|
-
}}module.exports=requireCommon()(exports);var formatters=module.exports.formatters;/**
|
|
1189
|
-
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
|
1190
|
-
*/formatters.j=function(v){try{return JSON.stringify(v);}catch(error){return'[UnexpectedJSONParseError]: '+error.message;}};})(browser,browser.exports);return browser.exports;}var node={exports:{}};var hasFlag;var hasRequiredHasFlag;function requireHasFlag(){if(hasRequiredHasFlag)return hasFlag;hasRequiredHasFlag=1;hasFlag=function hasFlag(flag,argv){argv=argv||process.argv;var prefix=flag.startsWith('-')?'':flag.length===1?'-':'--';var pos=argv.indexOf(prefix+flag);var terminatorPos=argv.indexOf('--');return pos!==-1&&(terminatorPos===-1?true:pos<terminatorPos);};return hasFlag;}var supportsColor_1;var hasRequiredSupportsColor;function requireSupportsColor(){if(hasRequiredSupportsColor)return supportsColor_1;hasRequiredSupportsColor=1;var os=require$$0__default$1["default"];var hasFlag=requireHasFlag();var env=process.env;var forceColor;if(hasFlag('no-color')||hasFlag('no-colors')||hasFlag('color=false')){forceColor=false;}else if(hasFlag('color')||hasFlag('colors')||hasFlag('color=true')||hasFlag('color=always')){forceColor=true;}if('FORCE_COLOR'in env){forceColor=env.FORCE_COLOR.length===0||parseInt(env.FORCE_COLOR,10)!==0;}function translateLevel(level){if(level===0){return false;}return{level:level,hasBasic:true,has256:level>=2,has16m:level>=3};}function supportsColor(stream){if(forceColor===false){return 0;}if(hasFlag('color=16m')||hasFlag('color=full')||hasFlag('color=truecolor')){return 3;}if(hasFlag('color=256')){return 2;}if(stream&&!stream.isTTY&&forceColor!==true){return 0;}var min=forceColor?1:0;if(process.platform==='win32'){// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
|
1191
|
-
// libuv that enables 256 color output on Windows. Anything earlier and it
|
|
1192
|
-
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
|
|
1193
|
-
// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
|
|
1194
|
-
// release that supports 256 colors. Windows 10 build 14931 is the first release
|
|
1195
|
-
// that supports 16m/TrueColor.
|
|
1196
|
-
var osRelease=os.release().split('.');if(Number(process.versions.node.split('.')[0])>=8&&Number(osRelease[0])>=10&&Number(osRelease[2])>=10586){return Number(osRelease[2])>=14931?3:2;}return 1;}if('CI'in env){if(['TRAVIS','CIRCLECI','APPVEYOR','GITLAB_CI'].some(function(sign){return sign in env;})||env.CI_NAME==='codeship'){return 1;}return min;}if('TEAMCITY_VERSION'in env){return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;}if(env.COLORTERM==='truecolor'){return 3;}if('TERM_PROGRAM'in env){var _version=parseInt((env.TERM_PROGRAM_VERSION||'').split('.')[0],10);switch(env.TERM_PROGRAM){case'iTerm.app':return _version>=3?3:2;case'Apple_Terminal':return 2;// No default
|
|
1197
|
-
}}if(/-256(color)?$/i.test(env.TERM)){return 2;}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)){return 1;}if('COLORTERM'in env){return 1;}if(env.TERM==='dumb'){return min;}return min;}function getSupportLevel(stream){var level=supportsColor(stream);return translateLevel(level);}supportsColor_1={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)};return supportsColor_1;}node.exports;var hasRequiredNode;function requireNode(){if(hasRequiredNode)return node.exports;hasRequiredNode=1;(function(module,exports){var tty=require$$0__default$2["default"];var util=require$$1__default["default"];/**
|
|
1198
|
-
* This is the Node.js implementation of `debug()`.
|
|
1199
|
-
*/exports.init=init;exports.log=log;exports.formatArgs=formatArgs;exports.save=save;exports.load=load;exports.useColors=useColors;exports.destroy=util.deprecate(function(){},'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');/**
|
|
1200
|
-
* Colors.
|
|
1201
|
-
*/exports.colors=[6,2,3,4,5,1];try{// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
|
1202
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
1203
|
-
var supportsColor=requireSupportsColor();if(supportsColor&&(supportsColor.stderr||supportsColor).level>=2){exports.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221];}}catch(error){// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
|
1204
|
-
}/**
|
|
1205
|
-
* Build up the default `inspectOpts` object from the environment variables.
|
|
1206
|
-
*
|
|
1207
|
-
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
|
1208
|
-
*/exports.inspectOpts=Object.keys(process.env).filter(function(key){return /^debug_/i.test(key);}).reduce(function(obj,key){// Camel-case
|
|
1209
|
-
var prop=key.substring(6).toLowerCase().replace(/_([a-z])/g,function(_,k){return k.toUpperCase();});// Coerce string value into JS value
|
|
1210
|
-
var val=process.env[key];if(/^(yes|on|true|enabled)$/i.test(val)){val=true;}else if(/^(no|off|false|disabled)$/i.test(val)){val=false;}else if(val==='null'){val=null;}else{val=Number(val);}obj[prop]=val;return obj;},{});/**
|
|
1211
|
-
* Is stdout a TTY? Colored output is enabled when `true`.
|
|
1212
|
-
*/function useColors(){return'colors'in exports.inspectOpts?Boolean(exports.inspectOpts.colors):tty.isatty(process.stderr.fd);}/**
|
|
1213
|
-
* Adds ANSI color escape codes if enabled.
|
|
1214
|
-
*
|
|
1215
|
-
* @api public
|
|
1216
|
-
*/function formatArgs(args){var name=this.namespace,useColors=this.useColors;if(useColors){var c=this.color;var colorCode="\x1B[3"+(c<8?c:'8;5;'+c);var prefix=" ".concat(colorCode,";1m").concat(name," \x1B[0m");args[0]=prefix+args[0].split('\n').join('\n'+prefix);args.push(colorCode+'m+'+module.exports.humanize(this.diff)+"\x1B[0m");}else{args[0]=getDate()+name+' '+args[0];}}function getDate(){if(exports.inspectOpts.hideDate){return'';}return new Date().toISOString()+' ';}/**
|
|
1217
|
-
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
|
1218
|
-
*/function log(){return process.stderr.write(util.format.apply(util,arguments)+'\n');}/**
|
|
1219
|
-
* Save `namespaces`.
|
|
1220
|
-
*
|
|
1221
|
-
* @param {String} namespaces
|
|
1222
|
-
* @api private
|
|
1223
|
-
*/function save(namespaces){if(namespaces){process.env.DEBUG=namespaces;}else{// If you set a process.env field to null or undefined, it gets cast to the
|
|
1224
|
-
// string 'null' or 'undefined'. Just delete instead.
|
|
1225
|
-
delete process.env.DEBUG;}}/**
|
|
1226
|
-
* Load `namespaces`.
|
|
1227
|
-
*
|
|
1228
|
-
* @return {String} returns the previously persisted debug modes
|
|
1229
|
-
* @api private
|
|
1230
|
-
*/function load(){return process.env.DEBUG;}/**
|
|
1231
|
-
* Init logic for `debug` instances.
|
|
1232
|
-
*
|
|
1233
|
-
* Create a new `inspectOpts` object in case `useColors` is set
|
|
1234
|
-
* differently for a particular `debug` instance.
|
|
1235
|
-
*/function init(debug){debug.inspectOpts={};var keys=Object.keys(exports.inspectOpts);for(var i=0;i<keys.length;i++){debug.inspectOpts[keys[i]]=exports.inspectOpts[keys[i]];}}module.exports=requireCommon()(exports);var formatters=module.exports.formatters;/**
|
|
1236
|
-
* Map %o to `util.inspect()`, all on a single line.
|
|
1237
|
-
*/formatters.o=function(v){this.inspectOpts.colors=this.useColors;return util.inspect(v,this.inspectOpts).split('\n').map(function(str){return str.trim();}).join(' ');};/**
|
|
1238
|
-
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
|
1239
|
-
*/formatters.O=function(v){this.inspectOpts.colors=this.useColors;return util.inspect(v,this.inspectOpts);};})(node,node.exports);return node.exports;}var hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src.exports;hasRequiredSrc=1;if(typeof process==='undefined'||process.type==='renderer'||browser$1===true||process.__nwjs){src.exports=requireBrowser();}else{src.exports=requireNode();}return src.exports;}var debug$1;var debug_1=function debug_1(){if(!debug$1){try{/* eslint global-require: off */debug$1=requireSrc()("follow-redirects");}catch(error){/* */}if(typeof debug$1!=="function"){debug$1=function debug$1(){/* */};}}debug$1.apply(null,arguments);};var url=require$$0__default["default"];var URL$1=url.URL;var http=require$$3__default["default"];var https=require$$4__default["default"];var Writable=stream__default["default"].Writable;var assert=require$$4;var debug=debug_1;// Create handlers that pass events from native requests
|
|
1240
|
-
var events=["abort","aborted","connect","error","socket","timeout"];var eventHandlers=Object.create(null);events.forEach(function(event){eventHandlers[event]=function(arg1,arg2,arg3){this._redirectable.emit(event,arg1,arg2,arg3);};});var InvalidUrlError=createErrorType("ERR_INVALID_URL","Invalid URL",TypeError);// Error types with codes
|
|
1241
|
-
var RedirectionError=createErrorType("ERR_FR_REDIRECTION_FAILURE","Redirected request failed");var TooManyRedirectsError=createErrorType("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded");var MaxBodyLengthExceededError=createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit");var WriteAfterEndError=createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");// istanbul ignore next
|
|
1242
|
-
var destroy=Writable.prototype.destroy||noop;// An HTTP(S) request that can be redirected
|
|
1243
|
-
function RedirectableRequest(options,responseCallback){// Initialize the request
|
|
1244
|
-
Writable.call(this);this._sanitizeOptions(options);this._options=options;this._ended=false;this._ending=false;this._redirectCount=0;this._redirects=[];this._requestBodyLength=0;this._requestBodyBuffers=[];// Attach a callback if passed
|
|
1245
|
-
if(responseCallback){this.on("response",responseCallback);}// React to responses of native requests
|
|
1246
|
-
var self=this;this._onNativeResponse=function(response){self._processResponse(response);};// Perform the first request
|
|
1247
|
-
this._performRequest();}RedirectableRequest.prototype=Object.create(Writable.prototype);RedirectableRequest.prototype.abort=function(){destroyRequest(this._currentRequest);this._currentRequest.abort();this.emit("abort");};RedirectableRequest.prototype.destroy=function(error){destroyRequest(this._currentRequest,error);destroy.call(this,error);return this;};// Writes buffered data to the current native request
|
|
1248
|
-
RedirectableRequest.prototype.write=function(data,encoding,callback){// Writing is not allowed if end has been called
|
|
1249
|
-
if(this._ending){throw new WriteAfterEndError();}// Validate input and shift parameters if necessary
|
|
1250
|
-
if(!isString(data)&&!isBuffer(data)){throw new TypeError("data should be a string, Buffer or Uint8Array");}if(isFunction(encoding)){callback=encoding;encoding=null;}// Ignore empty buffers, since writing them doesn't invoke the callback
|
|
1251
|
-
// https://github.com/nodejs/node/issues/22066
|
|
1252
|
-
if(data.length===0){if(callback){callback();}return;}// Only write when we don't exceed the maximum body length
|
|
1253
|
-
if(this._requestBodyLength+data.length<=this._options.maxBodyLength){this._requestBodyLength+=data.length;this._requestBodyBuffers.push({data:data,encoding:encoding});this._currentRequest.write(data,encoding,callback);}// Error when we exceed the maximum body length
|
|
1254
|
-
else{this.emit("error",new MaxBodyLengthExceededError());this.abort();}};// Ends the current native request
|
|
1255
|
-
RedirectableRequest.prototype.end=function(data,encoding,callback){// Shift parameters if necessary
|
|
1256
|
-
if(isFunction(data)){callback=data;data=encoding=null;}else if(isFunction(encoding)){callback=encoding;encoding=null;}// Write data if needed and end
|
|
1257
|
-
if(!data){this._ended=this._ending=true;this._currentRequest.end(null,null,callback);}else{var self=this;var currentRequest=this._currentRequest;this.write(data,encoding,function(){self._ended=true;currentRequest.end(null,null,callback);});this._ending=true;}};// Sets a header value on the current native request
|
|
1258
|
-
RedirectableRequest.prototype.setHeader=function(name,value){this._options.headers[name]=value;this._currentRequest.setHeader(name,value);};// Clears a header value on the current native request
|
|
1259
|
-
RedirectableRequest.prototype.removeHeader=function(name){delete this._options.headers[name];this._currentRequest.removeHeader(name);};// Global timeout for all underlying requests
|
|
1260
|
-
RedirectableRequest.prototype.setTimeout=function(msecs,callback){var self=this;// Destroys the socket on timeout
|
|
1261
|
-
function destroyOnTimeout(socket){socket.setTimeout(msecs);socket.removeListener("timeout",socket.destroy);socket.addListener("timeout",socket.destroy);}// Sets up a timer to trigger a timeout event
|
|
1262
|
-
function startTimer(socket){if(self._timeout){clearTimeout(self._timeout);}self._timeout=setTimeout(function(){self.emit("timeout");clearTimer();},msecs);destroyOnTimeout(socket);}// Stops a timeout from triggering
|
|
1263
|
-
function clearTimer(){// Clear the timeout
|
|
1264
|
-
if(self._timeout){clearTimeout(self._timeout);self._timeout=null;}// Clean up all attached listeners
|
|
1265
|
-
self.removeListener("abort",clearTimer);self.removeListener("error",clearTimer);self.removeListener("response",clearTimer);self.removeListener("close",clearTimer);if(callback){self.removeListener("timeout",callback);}if(!self.socket){self._currentRequest.removeListener("socket",startTimer);}}// Attach callback if passed
|
|
1266
|
-
if(callback){this.on("timeout",callback);}// Start the timer if or when the socket is opened
|
|
1267
|
-
if(this.socket){startTimer(this.socket);}else{this._currentRequest.once("socket",startTimer);}// Clean up on events
|
|
1268
|
-
this.on("socket",destroyOnTimeout);this.on("abort",clearTimer);this.on("error",clearTimer);this.on("response",clearTimer);this.on("close",clearTimer);return this;};// Proxy all other public ClientRequest methods
|
|
1269
|
-
["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(method){RedirectableRequest.prototype[method]=function(a,b){return this._currentRequest[method](a,b);};});// Proxy all public ClientRequest properties
|
|
1270
|
-
["aborted","connection","socket"].forEach(function(property){Object.defineProperty(RedirectableRequest.prototype,property,{get:function get(){return this._currentRequest[property];}});});RedirectableRequest.prototype._sanitizeOptions=function(options){// Ensure headers are always present
|
|
1271
|
-
if(!options.headers){options.headers={};}// Since http.request treats host as an alias of hostname,
|
|
1272
|
-
// but the url module interprets host as hostname plus port,
|
|
1273
|
-
// eliminate the host property to avoid confusion.
|
|
1274
|
-
if(options.host){// Use hostname if set, because it has precedence
|
|
1275
|
-
if(!options.hostname){options.hostname=options.host;}delete options.host;}// Complete the URL object when necessary
|
|
1276
|
-
if(!options.pathname&&options.path){var searchPos=options.path.indexOf("?");if(searchPos<0){options.pathname=options.path;}else{options.pathname=options.path.substring(0,searchPos);options.search=options.path.substring(searchPos);}}};// Executes the next native request (initial or redirect)
|
|
1277
|
-
RedirectableRequest.prototype._performRequest=function(){// Load the native protocol
|
|
1278
|
-
var protocol=this._options.protocol;var nativeProtocol=this._options.nativeProtocols[protocol];if(!nativeProtocol){this.emit("error",new TypeError("Unsupported protocol "+protocol));return;}// If specified, use the agent corresponding to the protocol
|
|
1279
|
-
// (HTTP and HTTPS use different types of agents)
|
|
1280
|
-
if(this._options.agents){var scheme=protocol.slice(0,-1);this._options.agent=this._options.agents[scheme];}// Create the native request and set up its event handlers
|
|
1281
|
-
var request=this._currentRequest=nativeProtocol.request(this._options,this._onNativeResponse);request._redirectable=this;for(var _i=0,_events=events;_i<_events.length;_i++){var event=_events[_i];request.on(event,eventHandlers[event]);}// RFC7230§5.3.1: When making a request directly to an origin server, […]
|
|
1282
|
-
// a client MUST send only the absolute path […] as the request-target.
|
|
1283
|
-
this._currentUrl=/^\//.test(this._options.path)?url.format(this._options):// When making a request to a proxy, […]
|
|
1284
|
-
// a client MUST send the target URI in absolute-form […].
|
|
1285
|
-
this._options.path;// End a redirected request
|
|
1286
|
-
// (The first request must be ended explicitly with RedirectableRequest#end)
|
|
1287
|
-
if(this._isRedirect){// Write the request entity and end
|
|
1288
|
-
var i=0;var self=this;var buffers=this._requestBodyBuffers;(function writeNext(error){// Only write if this request has not been redirected yet
|
|
1289
|
-
/* istanbul ignore else */if(request===self._currentRequest){// Report any write errors
|
|
1290
|
-
/* istanbul ignore if */if(error){self.emit("error",error);}// Write the next buffer if there are still left
|
|
1291
|
-
else if(i<buffers.length){var buffer=buffers[i++];/* istanbul ignore else */if(!request.finished){request.write(buffer.data,buffer.encoding,writeNext);}}// End the request if `end` has been called on us
|
|
1292
|
-
else if(self._ended){request.end();}}})();}};// Processes a response from the current native request
|
|
1293
|
-
RedirectableRequest.prototype._processResponse=function(response){// Store the redirected response
|
|
1294
|
-
var statusCode=response.statusCode;if(this._options.trackRedirects){this._redirects.push({url:this._currentUrl,headers:response.headers,statusCode:statusCode});}// RFC7231§6.4: The 3xx (Redirection) class of status code indicates
|
|
1295
|
-
// that further action needs to be taken by the user agent in order to
|
|
1296
|
-
// fulfill the request. If a Location header field is provided,
|
|
1297
|
-
// the user agent MAY automatically redirect its request to the URI
|
|
1298
|
-
// referenced by the Location field value,
|
|
1299
|
-
// even if the specific status code is not understood.
|
|
1300
|
-
// If the response is not a redirect; return it as-is
|
|
1301
|
-
var location=response.headers.location;if(!location||this._options.followRedirects===false||statusCode<300||statusCode>=400){response.responseUrl=this._currentUrl;response.redirects=this._redirects;this.emit("response",response);// Clean up
|
|
1302
|
-
this._requestBodyBuffers=[];return;}// The response is a redirect, so abort the current request
|
|
1303
|
-
destroyRequest(this._currentRequest);// Discard the remainder of the response to avoid waiting for data
|
|
1304
|
-
response.destroy();// RFC7231§6.4: A client SHOULD detect and intervene
|
|
1305
|
-
// in cyclical redirections (i.e., "infinite" redirection loops).
|
|
1306
|
-
if(++this._redirectCount>this._options.maxRedirects){this.emit("error",new TooManyRedirectsError());return;}// Store the request headers if applicable
|
|
1307
|
-
var requestHeaders;var beforeRedirect=this._options.beforeRedirect;if(beforeRedirect){requestHeaders=Object.assign({// The Host header was set by nativeProtocol.request
|
|
1308
|
-
Host:response.req.getHeader("host")},this._options.headers);}// RFC7231§6.4: Automatic redirection needs to done with
|
|
1309
|
-
// care for methods not known to be safe, […]
|
|
1310
|
-
// RFC7231§6.4.2–3: For historical reasons, a user agent MAY change
|
|
1311
|
-
// the request method from POST to GET for the subsequent request.
|
|
1312
|
-
var method=this._options.method;if((statusCode===301||statusCode===302)&&this._options.method==="POST"||// RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
|
1313
|
-
// the server is redirecting the user agent to a different resource […]
|
|
1314
|
-
// A user agent can perform a retrieval request targeting that URI
|
|
1315
|
-
// (a GET or HEAD request if using HTTP) […]
|
|
1316
|
-
statusCode===303&&!/^(?:GET|HEAD)$/.test(this._options.method)){this._options.method="GET";// Drop a possible entity and headers related to it
|
|
1317
|
-
this._requestBodyBuffers=[];removeMatchingHeaders(/^content-/i,this._options.headers);}// Drop the Host header, as the redirect might lead to a different host
|
|
1318
|
-
var currentHostHeader=removeMatchingHeaders(/^host$/i,this._options.headers);// If the redirect is relative, carry over the host of the last request
|
|
1319
|
-
var currentUrlParts=url.parse(this._currentUrl);var currentHost=currentHostHeader||currentUrlParts.host;var currentUrl=/^\w+:/.test(location)?this._currentUrl:url.format(Object.assign(currentUrlParts,{host:currentHost}));// Determine the URL of the redirection
|
|
1320
|
-
var redirectUrl;try{redirectUrl=url.resolve(currentUrl,location);}catch(cause){this.emit("error",new RedirectionError({cause:cause}));return;}// Create the redirected request
|
|
1321
|
-
debug("redirecting to",redirectUrl);this._isRedirect=true;var redirectUrlParts=url.parse(redirectUrl);Object.assign(this._options,redirectUrlParts);// Drop confidential headers when redirecting to a less secure protocol
|
|
1322
|
-
// or to a different domain that is not a superdomain
|
|
1323
|
-
if(redirectUrlParts.protocol!==currentUrlParts.protocol&&redirectUrlParts.protocol!=="https:"||redirectUrlParts.host!==currentHost&&!isSubdomain(redirectUrlParts.host,currentHost)){removeMatchingHeaders(/^(?:authorization|cookie)$/i,this._options.headers);}// Evaluate the beforeRedirect callback
|
|
1324
|
-
if(isFunction(beforeRedirect)){var responseDetails={headers:response.headers,statusCode:statusCode};var requestDetails={url:currentUrl,method:method,headers:requestHeaders};try{beforeRedirect(this._options,responseDetails,requestDetails);}catch(err){this.emit("error",err);return;}this._sanitizeOptions(this._options);}// Perform the redirected request
|
|
1325
|
-
try{this._performRequest();}catch(cause){this.emit("error",new RedirectionError({cause:cause}));}};// Wraps the key/value object of protocols with redirect functionality
|
|
1326
|
-
function wrap(protocols){// Default settings
|
|
1327
|
-
var exports={maxRedirects:21,maxBodyLength:10*1024*1024};// Wrap each protocol
|
|
1328
|
-
var nativeProtocols={};Object.keys(protocols).forEach(function(scheme){var protocol=scheme+":";var nativeProtocol=nativeProtocols[protocol]=protocols[scheme];var wrappedProtocol=exports[scheme]=Object.create(nativeProtocol);// Executes a request, following redirects
|
|
1329
|
-
function request(input,options,callback){// Parse parameters
|
|
1330
|
-
if(isString(input)){var parsed;try{parsed=urlToOptions(new URL$1(input));}catch(err){/* istanbul ignore next */parsed=url.parse(input);}if(!isString(parsed.protocol)){throw new InvalidUrlError({input:input});}input=parsed;}else if(URL$1&&input instanceof URL$1){input=urlToOptions(input);}else{callback=options;options=input;input={protocol:protocol};}if(isFunction(options)){callback=options;options=null;}// Set defaults
|
|
1331
|
-
options=Object.assign({maxRedirects:exports.maxRedirects,maxBodyLength:exports.maxBodyLength},input,options);options.nativeProtocols=nativeProtocols;if(!isString(options.host)&&!isString(options.hostname)){options.hostname="::1";}assert.equal(options.protocol,protocol,"protocol mismatch");debug("options",options);return new RedirectableRequest(options,callback);}// Executes a GET request, following redirects
|
|
1332
|
-
function get(input,options,callback){var wrappedRequest=wrappedProtocol.request(input,options,callback);wrappedRequest.end();return wrappedRequest;}// Expose the properties on the wrapped protocol
|
|
1333
|
-
Object.defineProperties(wrappedProtocol,{request:{value:request,configurable:true,enumerable:true,writable:true},get:{value:get,configurable:true,enumerable:true,writable:true}});});return exports;}/* istanbul ignore next */function noop(){/* empty */}// from https://github.com/nodejs/node/blob/master/lib/internal/url.js
|
|
1334
|
-
function urlToOptions(urlObject){var options={protocol:urlObject.protocol,hostname:urlObject.hostname.startsWith("[")?/* istanbul ignore next */urlObject.hostname.slice(1,-1):urlObject.hostname,hash:urlObject.hash,search:urlObject.search,pathname:urlObject.pathname,path:urlObject.pathname+urlObject.search,href:urlObject.href};if(urlObject.port!==""){options.port=Number(urlObject.port);}return options;}function removeMatchingHeaders(regex,headers){var lastValue;for(var header in headers){if(regex.test(header)){lastValue=headers[header];delete headers[header];}}return lastValue===null||typeof lastValue==="undefined"?undefined:String(lastValue).trim();}function createErrorType(code,message,baseClass){// Create constructor
|
|
1335
|
-
function CustomError(properties){Error.captureStackTrace(this,this.constructor);Object.assign(this,properties||{});this.code=code;this.message=this.cause?message+": "+this.cause.message:message;}// Attach constructor and set default properties
|
|
1336
|
-
CustomError.prototype=new(baseClass||Error)();CustomError.prototype.constructor=CustomError;CustomError.prototype.name="Error ["+code+"]";return CustomError;}function destroyRequest(request,error){for(var _i2=0,_events2=events;_i2<_events2.length;_i2++){var event=_events2[_i2];request.removeListener(event,eventHandlers[event]);}request.on("error",noop);request.destroy(error);}function isSubdomain(subdomain,domain){assert(isString(subdomain)&&isString(domain));var dot=subdomain.length-domain.length-1;return dot>0&&subdomain[dot]==="."&&subdomain.endsWith(domain);}function isString(value){return typeof value==="string"||value instanceof String;}function isFunction(value){return typeof value==="function";}function isBuffer(value){return _typeof(value)==="object"&&"length"in value;}// Exports
|
|
1337
|
-
followRedirects$1.exports=wrap({http:http,https:https});followRedirects$1.exports.wrap=wrap;var followRedirectsExports=followRedirects$1.exports;var followRedirects=/*@__PURE__*/getDefaultExportFromCjs(followRedirectsExports);var VERSION="1.6.1";function parseProtocol(url){var match=/^([-+\w]{1,25})(:?\/\/|:)/.exec(url);return match&&match[1]||'';}var DATA_URL_PATTERN=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;/**
|
|
1338
|
-
* Parse data uri to a Buffer or Blob
|
|
1339
|
-
*
|
|
1340
|
-
* @param {String} uri
|
|
1341
|
-
* @param {?Boolean} asBlob
|
|
1342
|
-
* @param {?Object} options
|
|
1343
|
-
* @param {?Function} options.Blob
|
|
1344
|
-
*
|
|
1345
|
-
* @returns {Buffer|Blob}
|
|
1346
|
-
*/function fromDataURI(uri,asBlob,options){var _Blob=options&&options.Blob||platform.classes.Blob;var protocol=parseProtocol(uri);if(asBlob===undefined&&_Blob){asBlob=true;}if(protocol==='data'){uri=protocol.length?uri.slice(protocol.length+1):uri;var match=DATA_URL_PATTERN.exec(uri);if(!match){throw new AxiosError('Invalid URL',AxiosError.ERR_INVALID_URL);}var _mime=match[1];var isBase64=match[2];var body=match[3];var _buffer=Buffer.from(decodeURIComponent(body),isBase64?'base64':'utf8');if(asBlob){if(!_Blob){throw new AxiosError('Blob is not supported',AxiosError.ERR_NOT_SUPPORT);}return new _Blob([_buffer],{type:_mime});}return _buffer;}throw new AxiosError('Unsupported protocol '+protocol,AxiosError.ERR_NOT_SUPPORT);}/**
|
|
1347
|
-
* Throttle decorator
|
|
1348
|
-
* @param {Function} fn
|
|
1349
|
-
* @param {Number} freq
|
|
1350
|
-
* @return {Function}
|
|
1351
|
-
*/function throttle(fn,freq){var timestamp=0;var threshold=1000/freq;var timer=null;return function throttled(force,args){var now=Date.now();if(force||now-timestamp>threshold){if(timer){clearTimeout(timer);timer=null;}timestamp=now;return fn.apply(null,args);}if(!timer){timer=setTimeout(function(){timer=null;timestamp=Date.now();return fn.apply(null,args);},threshold-(now-timestamp));}};}/**
|
|
1352
|
-
* Calculate data maxRate
|
|
1353
|
-
* @param {Number} [samplesCount= 10]
|
|
1354
|
-
* @param {Number} [min= 1000]
|
|
1355
|
-
* @returns {Function}
|
|
1356
|
-
*/function speedometer(samplesCount,min){samplesCount=samplesCount||10;var bytes=new Array(samplesCount);var timestamps=new Array(samplesCount);var head=0;var tail=0;var firstSampleTS;min=min!==undefined?min:1000;return function push(chunkLength){var now=Date.now();var startedAt=timestamps[tail];if(!firstSampleTS){firstSampleTS=now;}bytes[head]=chunkLength;timestamps[head]=now;var i=tail;var bytesCount=0;while(i!==head){bytesCount+=bytes[i++];i=i%samplesCount;}head=(head+1)%samplesCount;if(head===tail){tail=(tail+1)%samplesCount;}if(now-firstSampleTS<min){return;}var passed=startedAt&&now-startedAt;return passed?Math.round(bytesCount*1000/passed):undefined;};}var kInternals=Symbol('internals');var AxiosTransformStream=/*#__PURE__*/function(_stream__default$defa){_inherits(AxiosTransformStream,_stream__default$defa);var _super=_createSuper(AxiosTransformStream);function AxiosTransformStream(options){var _this2;_classCallCheck(this,AxiosTransformStream);options=utils$1.toFlatObject(options,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,function(prop,source){return!utils$1.isUndefined(source[prop]);});_this2=_super.call(this,{readableHighWaterMark:options.chunkSize});var self=_assertThisInitialized(_this2);var internals=_this2[kInternals]={length:options.length,timeWindow:options.timeWindow,ticksRate:options.ticksRate,chunkSize:options.chunkSize,maxRate:options.maxRate,minChunkSize:options.minChunkSize,bytesSeen:0,isCaptured:false,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};var _speedometer=speedometer(internals.ticksRate*options.samplesCount,internals.timeWindow);_this2.on('newListener',function(event){if(event==='progress'){if(!internals.isCaptured){internals.isCaptured=true;}}});var bytesNotified=0;internals.updateProgress=throttle(function throttledHandler(){var totalBytes=internals.length;var bytesTransferred=internals.bytesSeen;var progressBytes=bytesTransferred-bytesNotified;if(!progressBytes||self.destroyed)return;var rate=_speedometer(progressBytes);bytesNotified=bytesTransferred;nextTick(function(){self.emit('progress',{'loaded':bytesTransferred,'total':totalBytes,'progress':totalBytes?bytesTransferred/totalBytes:undefined,'bytes':progressBytes,'rate':rate?rate:undefined,'estimated':rate&&totalBytes&&bytesTransferred<=totalBytes?(totalBytes-bytesTransferred)/rate:undefined});});},internals.ticksRate);var onFinish=function onFinish(){internals.updateProgress(true);};_this2.once('end',onFinish);_this2.once('error',onFinish);return _this2;}_createClass(AxiosTransformStream,[{key:"_read",value:function _read(size){var internals=this[kInternals];if(internals.onReadCallback){internals.onReadCallback();}return _get(_getPrototypeOf(AxiosTransformStream.prototype),"_read",this).call(this,size);}},{key:"_transform",value:function _transform(chunk,encoding,callback){var self=this;var internals=this[kInternals];var maxRate=internals.maxRate;var readableHighWaterMark=this.readableHighWaterMark;var timeWindow=internals.timeWindow;var divider=1000/timeWindow;var bytesThreshold=maxRate/divider;var minChunkSize=internals.minChunkSize!==false?Math.max(internals.minChunkSize,bytesThreshold*0.01):0;function pushChunk(_chunk,_callback){var bytes=Buffer.byteLength(_chunk);internals.bytesSeen+=bytes;internals.bytes+=bytes;if(internals.isCaptured){internals.updateProgress();}if(self.push(_chunk)){nextTick(_callback);}else{internals.onReadCallback=function(){internals.onReadCallback=null;nextTick(_callback);};}}var transformChunk=function transformChunk(_chunk,_callback){var chunkSize=Buffer.byteLength(_chunk);var chunkRemainder=null;var maxChunkSize=readableHighWaterMark;var bytesLeft;var passed=0;if(maxRate){var now=Date.now();if(!internals.ts||(passed=now-internals.ts)>=timeWindow){internals.ts=now;bytesLeft=bytesThreshold-internals.bytes;internals.bytes=bytesLeft<0?-bytesLeft:0;passed=0;}bytesLeft=bytesThreshold-internals.bytes;}if(maxRate){if(bytesLeft<=0){// next time window
|
|
1357
|
-
return setTimeout(function(){_callback(null,_chunk);},timeWindow-passed);}if(bytesLeft<maxChunkSize){maxChunkSize=bytesLeft;}}if(maxChunkSize&&chunkSize>maxChunkSize&&chunkSize-maxChunkSize>minChunkSize){chunkRemainder=_chunk.subarray(maxChunkSize);_chunk=_chunk.subarray(0,maxChunkSize);}pushChunk(_chunk,chunkRemainder?function(){nextTick(_callback,null,chunkRemainder);}:_callback);};transformChunk(chunk,function transformNextChunk(err,_chunk){if(err){return callback(err);}if(_chunk){transformChunk(_chunk,transformNextChunk);}else{callback(null);}});}},{key:"setLength",value:function setLength(length){this[kInternals].length=+length;return this;}}]);return AxiosTransformStream;}(stream__default["default"].Transform);var AxiosTransformStream$1=AxiosTransformStream;var asyncIterator=Symbol.asyncIterator;var readBlob=/*#__PURE__*/function(){var _ref=_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(blob){return _regeneratorRuntime().wrap(function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(!blob.stream){_context.next=4;break;}return _context.delegateYield(_asyncGeneratorDelegate(_asyncIterator(blob.stream()),_awaitAsyncGenerator),"t0",2);case 2:_context.next=17;break;case 4:if(!blob.arrayBuffer){_context.next=11;break;}_context.next=7;return _awaitAsyncGenerator(blob.arrayBuffer());case 7:_context.next=9;return _context.sent;case 9:_context.next=17;break;case 11:if(!blob[asyncIterator]){_context.next=15;break;}return _context.delegateYield(_asyncGeneratorDelegate(_asyncIterator(blob[asyncIterator]()),_awaitAsyncGenerator),"t1",13);case 13:_context.next=17;break;case 15:_context.next=17;return blob;case 17:case"end":return _context.stop();}},_callee);}));return function readBlob(_x){return _ref.apply(this,arguments);};}();var readBlob$1=readBlob;var BOUNDARY_ALPHABET=utils$1.ALPHABET.ALPHA_DIGIT+'-_';var textEncoder=new require$$1.TextEncoder();var CRLF='\r\n';var CRLF_BYTES=textEncoder.encode(CRLF);var CRLF_BYTES_COUNT=2;var FormDataPart=/*#__PURE__*/function(){function FormDataPart(name,value){_classCallCheck(this,FormDataPart);var escapeName=this.constructor.escapeName;var isStringValue=utils$1.isString(value);var headers="Content-Disposition: form-data; name=\"".concat(escapeName(name),"\"").concat(!isStringValue&&value.name?"; filename=\"".concat(escapeName(value.name),"\""):'').concat(CRLF);if(isStringValue){value=textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g,CRLF));}else{headers+="Content-Type: ".concat(value.type||"application/octet-stream").concat(CRLF);}this.headers=textEncoder.encode(headers+CRLF);this.contentLength=isStringValue?value.byteLength:value.size;this.size=this.headers.byteLength+this.contentLength+CRLF_BYTES_COUNT;this.name=name;this.value=value;}_createClass(FormDataPart,[{key:"encode",value:function encode(){var _this=this;return _wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var value;return _regeneratorRuntime().wrap(function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return _this.headers;case 2:value=_this.value;if(!utils$1.isTypedArray(value)){_context2.next=8;break;}_context2.next=6;return value;case 6:_context2.next=9;break;case 8:return _context2.delegateYield(_asyncGeneratorDelegate(_asyncIterator(readBlob$1(value)),_awaitAsyncGenerator),"t0",9);case 9:_context2.next=11;return CRLF_BYTES;case 11:case"end":return _context2.stop();}},_callee2);}))();}}],[{key:"escapeName",value:function escapeName(name){return String(name).replace(/[\r\n"]/g,function(match){return{'\r':'%0D','\n':'%0A','"':'%22'}[match];});}}]);return FormDataPart;}();var formDataToStream=function formDataToStream(form,headersHandler,options){var _ref9=options||{},_ref9$tag=_ref9.tag,tag=_ref9$tag===void 0?'form-data-boundary':_ref9$tag,_ref9$size=_ref9.size,size=_ref9$size===void 0?25:_ref9$size,_ref9$boundary=_ref9.boundary,boundary=_ref9$boundary===void 0?tag+'-'+utils$1.generateString(size,BOUNDARY_ALPHABET):_ref9$boundary;if(!utils$1.isFormData(form)){throw TypeError('FormData instance required');}if(boundary.length<1||boundary.length>70){throw Error('boundary must be 10-70 characters long');}var boundaryBytes=textEncoder.encode('--'+boundary+CRLF);var footerBytes=textEncoder.encode('--'+boundary+'--'+CRLF+CRLF);var contentLength=footerBytes.byteLength;var parts=Array.from(form.entries()).map(function(_ref10){var _ref11=_slicedToArray(_ref10,2),name=_ref11[0],value=_ref11[1];var part=new FormDataPart(name,value);contentLength+=part.size;return part;});contentLength+=boundaryBytes.byteLength*parts.length;contentLength=utils$1.toFiniteNumber(contentLength);var computedHeaders={'Content-Type':"multipart/form-data; boundary=".concat(boundary)};if(Number.isFinite(contentLength)){computedHeaders['Content-Length']=contentLength;}headersHandler&&headersHandler(computedHeaders);return stream.Readable.from(_wrapAsyncGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _iterator,_step,part;return _regeneratorRuntime().wrap(function _callee3$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_iterator=_createForOfIteratorHelper(parts);_context3.prev=1;_iterator.s();case 3:if((_step=_iterator.n()).done){_context3.next=10;break;}part=_step.value;_context3.next=7;return boundaryBytes;case 7:return _context3.delegateYield(_asyncGeneratorDelegate(_asyncIterator(part.encode()),_awaitAsyncGenerator),"t0",8);case 8:_context3.next=3;break;case 10:_context3.next=15;break;case 12:_context3.prev=12;_context3.t1=_context3["catch"](1);_iterator.e(_context3.t1);case 15:_context3.prev=15;_iterator.f();return _context3.finish(15);case 18:_context3.next=20;return footerBytes;case 20:case"end":return _context3.stop();}},_callee3,null,[[1,12,15,18]]);}))());};var formDataToStream$1=formDataToStream;var ZlibHeaderTransformStream=/*#__PURE__*/function(_stream__default$defa2){_inherits(ZlibHeaderTransformStream,_stream__default$defa2);var _super2=_createSuper(ZlibHeaderTransformStream);function ZlibHeaderTransformStream(){_classCallCheck(this,ZlibHeaderTransformStream);return _super2.apply(this,arguments);}_createClass(ZlibHeaderTransformStream,[{key:"__transform",value:function __transform(chunk,encoding,callback){this.push(chunk);callback();}},{key:"_transform",value:function _transform(chunk,encoding,callback){if(chunk.length!==0){this._transform=this.__transform;// Add Default Compression headers if no zlib headers are present
|
|
1358
|
-
if(chunk[0]!==120){// Hex: 78
|
|
1359
|
-
var header=Buffer.alloc(2);header[0]=120;// Hex: 78
|
|
1360
|
-
header[1]=156;// Hex: 9C
|
|
1361
|
-
this.push(header,encoding);}}this.__transform(chunk,encoding,callback);}}]);return ZlibHeaderTransformStream;}(stream__default["default"].Transform);var ZlibHeaderTransformStream$1=ZlibHeaderTransformStream;var callbackify=function callbackify(fn,reducer){return utils$1.isAsyncFn(fn)?function(){for(var _len4=arguments.length,args=new Array(_len4),_key5=0;_key5<_len4;_key5++){args[_key5]=arguments[_key5];}var cb=args.pop();fn.apply(this,args).then(function(value){try{reducer?cb.apply(void 0,[null].concat(_toConsumableArray(reducer(value)))):cb(null,value);}catch(err){cb(err);}},cb);}:fn;};var callbackify$1=callbackify;var zlibOptions={flush:zlib__default["default"].constants.Z_SYNC_FLUSH,finishFlush:zlib__default["default"].constants.Z_SYNC_FLUSH};var brotliOptions={flush:zlib__default["default"].constants.BROTLI_OPERATION_FLUSH,finishFlush:zlib__default["default"].constants.BROTLI_OPERATION_FLUSH};var isBrotliSupported=utils$1.isFunction(zlib__default["default"].createBrotliDecompress);var httpFollow=followRedirects.http,httpsFollow=followRedirects.https;var isHttps=/https:?/;var supportedProtocols=platform.protocols.map(function(protocol){return protocol+':';});/**
|
|
1362
|
-
* If the proxy or config beforeRedirects functions are defined, call them with the options
|
|
1363
|
-
* object.
|
|
1364
|
-
*
|
|
1365
|
-
* @param {Object<string, any>} options - The options object that was passed to the request.
|
|
1366
|
-
*
|
|
1367
|
-
* @returns {Object<string, any>}
|
|
1368
|
-
*/function dispatchBeforeRedirect(options){if(options.beforeRedirects.proxy){options.beforeRedirects.proxy(options);}if(options.beforeRedirects.config){options.beforeRedirects.config(options);}}/**
|
|
1369
|
-
* If the proxy or config afterRedirects functions are defined, call them with the options
|
|
1370
|
-
*
|
|
1371
|
-
* @param {http.ClientRequestArgs} options
|
|
1372
|
-
* @param {AxiosProxyConfig} configProxy configuration from Axios options object
|
|
1373
|
-
* @param {string} location
|
|
1374
|
-
*
|
|
1375
|
-
* @returns {http.ClientRequestArgs}
|
|
1376
|
-
*/function setProxy(options,configProxy,location){var proxy=configProxy;if(!proxy&&proxy!==false){var proxyUrl=getProxyForUrl_1(location);if(proxyUrl){proxy=new URL(proxyUrl);}}if(proxy){// Basic proxy authorization
|
|
1377
|
-
if(proxy.username){proxy.auth=(proxy.username||'')+':'+(proxy.password||'');}if(proxy.auth){// Support proxy auth object form
|
|
1378
|
-
if(proxy.auth.username||proxy.auth.password){proxy.auth=(proxy.auth.username||'')+':'+(proxy.auth.password||'');}var base64=Buffer.from(proxy.auth,'utf8').toString('base64');options.headers['Proxy-Authorization']='Basic '+base64;}options.headers.host=options.hostname+(options.port?':'+options.port:'');var proxyHost=proxy.hostname||proxy.host;options.hostname=proxyHost;// Replace 'host' since options is not a URL object
|
|
1379
|
-
options.host=proxyHost;options.port=proxy.port;options.path=location;if(proxy.protocol){options.protocol=proxy.protocol.includes(':')?proxy.protocol:"".concat(proxy.protocol,":");}}options.beforeRedirects.proxy=function beforeRedirect(redirectOptions){// Configure proxy for redirected request, passing the original config proxy to apply
|
|
1380
|
-
// the exact same logic as if the redirected request was performed by axios directly.
|
|
1381
|
-
setProxy(redirectOptions,configProxy,redirectOptions.href);};}var isHttpAdapterSupported=typeof process!=='undefined'&&utils$1.kindOf(process)==='process';// temporary hotfix
|
|
1382
|
-
var wrapAsync=function wrapAsync(asyncExecutor){return new Promise(function(resolve,reject){var onDone;var isDone;var done=function done(value,isRejected){if(isDone)return;isDone=true;onDone&&onDone(value,isRejected);};var _resolve=function _resolve(value){done(value);resolve(value);};var _reject=function _reject(reason){done(reason,true);reject(reason);};asyncExecutor(_resolve,_reject,function(onDoneHandler){return onDone=onDoneHandler;})["catch"](_reject);});};var resolveFamily=function resolveFamily(_ref12){var address=_ref12.address,family=_ref12.family;if(!utils$1.isString(address)){throw TypeError('address must be a string');}return{address:address,family:family||(address.indexOf('.')<0?6:4)};};var buildAddressEntry=function buildAddressEntry(address,family){return resolveFamily(utils$1.isObject(address)?address:{address:address,family:family});};/*eslint consistent-return:0*/var httpAdapter=isHttpAdapterSupported&&function httpAdapter(config){return wrapAsync(/*#__PURE__*/function(){var _dispatchHttpRequest=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(resolve,reject,onDone){var data,lookup,family,responseType,responseEncoding,method,isDone,rejected,req,_lookup,emitter,onFinished,abort,fullPath,parsed,protocol,convertedData,headers,onDownloadProgress,onUploadProgress,maxRate,maxUploadRate,maxDownloadRate,userBoundary,knownLength,contentLength,auth,username,password,urlUsername,urlPassword,path,customErr,options,transport,isHttpsRequest,timeout,ended,errored;return _regeneratorRuntime().wrap(function _callee4$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:abort=function _abort(reason){emitter.emit('abort',!reason||reason.type?new CanceledError(null,config,req):reason);};data=config.data,lookup=config.lookup,family=config.family;responseType=config.responseType,responseEncoding=config.responseEncoding;method=config.method.toUpperCase();rejected=false;if(lookup){_lookup=callbackify$1(lookup,function(value){return utils$1.isArray(value)?value:[value];});// hotfix to support opt.all option which is required for node 20.x
|
|
1383
|
-
lookup=function lookup(hostname,opt,cb){_lookup(hostname,opt,function(err,arg0,arg1){var addresses=utils$1.isArray(arg0)?arg0.map(function(addr){return buildAddressEntry(addr);}):[buildAddressEntry(arg0,arg1)];opt.all?cb(err,addresses):cb(err,addresses[0].address,addresses[0].family);});};}// temporary internal emitter until the AxiosRequest class will be implemented
|
|
1384
|
-
emitter=new EventEmitter__default["default"]();onFinished=function onFinished(){if(config.cancelToken){config.cancelToken.unsubscribe(abort);}if(config.signal){config.signal.removeEventListener('abort',abort);}emitter.removeAllListeners();};onDone(function(value,isRejected){isDone=true;if(isRejected){rejected=true;onFinished();}});emitter.once('abort',reject);if(config.cancelToken||config.signal){config.cancelToken&&config.cancelToken.subscribe(abort);if(config.signal){config.signal.aborted?abort():config.signal.addEventListener('abort',abort);}}// Parse url
|
|
1385
|
-
fullPath=buildFullPath(config.baseURL,config.url);parsed=new URL(fullPath,'http://localhost');protocol=parsed.protocol||supportedProtocols[0];if(!(protocol==='data:')){_context4.next=26;break;}if(!(method!=='GET')){_context4.next=17;break;}return _context4.abrupt("return",settle(resolve,reject,{status:405,statusText:'method not allowed',headers:{},config:config}));case 17:_context4.prev=17;convertedData=fromDataURI(config.url,responseType==='blob',{Blob:config.env&&config.env.Blob});_context4.next=24;break;case 21:_context4.prev=21;_context4.t0=_context4["catch"](17);throw AxiosError.from(_context4.t0,AxiosError.ERR_BAD_REQUEST,config);case 24:if(responseType==='text'){convertedData=convertedData.toString(responseEncoding);if(!responseEncoding||responseEncoding==='utf8'){convertedData=utils$1.stripBOM(convertedData);}}else if(responseType==='stream'){convertedData=stream__default["default"].Readable.from(convertedData);}return _context4.abrupt("return",settle(resolve,reject,{data:convertedData,status:200,statusText:'OK',headers:new AxiosHeaders$1(),config:config}));case 26:if(!(supportedProtocols.indexOf(protocol)===-1)){_context4.next=28;break;}return _context4.abrupt("return",reject(new AxiosError('Unsupported protocol '+protocol,AxiosError.ERR_BAD_REQUEST,config)));case 28:headers=AxiosHeaders$1.from(config.headers).normalize();// Set User-Agent (required by some servers)
|
|
1386
|
-
// See https://github.com/axios/axios/issues/69
|
|
1387
|
-
// User-Agent is specified; handle case where no UA header is desired
|
|
1388
|
-
// Only set header if it hasn't been set in config
|
|
1389
|
-
headers.set('User-Agent','axios/'+VERSION,false);onDownloadProgress=config.onDownloadProgress;onUploadProgress=config.onUploadProgress;maxRate=config.maxRate;maxUploadRate=undefined;maxDownloadRate=undefined;// support for spec compliant FormData objects
|
|
1390
|
-
if(!utils$1.isSpecCompliantForm(data)){_context4.next=40;break;}userBoundary=headers.getContentType(/boundary=([-_\w\d]{10,70})/i);data=formDataToStream$1(data,function(formHeaders){headers.set(formHeaders);},{tag:"axios-".concat(VERSION,"-boundary"),boundary:userBoundary&&userBoundary[1]||undefined});// support for https://www.npmjs.com/package/form-data api
|
|
1391
|
-
_context4.next=77;break;case 40:if(!(utils$1.isFormData(data)&&utils$1.isFunction(data.getHeaders))){_context4.next=54;break;}headers.set(data.getHeaders());if(headers.hasContentLength()){_context4.next=52;break;}_context4.prev=43;_context4.next=46;return require$$1__default["default"].promisify(data.getLength).call(data);case 46:knownLength=_context4.sent;Number.isFinite(knownLength)&&knownLength>=0&&headers.setContentLength(knownLength);/*eslint no-empty:0*/_context4.next=52;break;case 50:_context4.prev=50;_context4.t1=_context4["catch"](43);case 52:_context4.next=77;break;case 54:if(!utils$1.isBlob(data)){_context4.next=60;break;}data.size&&headers.setContentType(data.type||'application/octet-stream');headers.setContentLength(data.size||0);data=stream__default["default"].Readable.from(readBlob$1(data));_context4.next=77;break;case 60:if(!(data&&!utils$1.isStream(data))){_context4.next=77;break;}if(!isBuffer$2(data)){_context4.next=65;break;};_context4.next=74;break;case 65:if(!utils$1.isArrayBuffer(data)){_context4.next=69;break;}data=Buffer.from(new Uint8Array(data));_context4.next=74;break;case 69:if(!utils$1.isString(data)){_context4.next=73;break;}data=Buffer.from(data,'utf-8');_context4.next=74;break;case 73:return _context4.abrupt("return",reject(new AxiosError('Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream',AxiosError.ERR_BAD_REQUEST,config)));case 74:// Add Content-Length header if data exists
|
|
1392
|
-
headers.setContentLength(data.length,false);if(!(config.maxBodyLength>-1&&data.length>config.maxBodyLength)){_context4.next=77;break;}return _context4.abrupt("return",reject(new AxiosError('Request body larger than maxBodyLength limit',AxiosError.ERR_BAD_REQUEST,config)));case 77:contentLength=utils$1.toFiniteNumber(headers.getContentLength());if(utils$1.isArray(maxRate)){maxUploadRate=maxRate[0];maxDownloadRate=maxRate[1];}else{maxUploadRate=maxDownloadRate=maxRate;}if(data&&(onUploadProgress||maxUploadRate)){if(!utils$1.isStream(data)){data=stream__default["default"].Readable.from(data,{objectMode:false});}data=stream__default["default"].pipeline([data,new AxiosTransformStream$1({length:contentLength,maxRate:utils$1.toFiniteNumber(maxUploadRate)})],utils$1.noop);onUploadProgress&&data.on('progress',function(progress){onUploadProgress(Object.assign(progress,{upload:true}));});}// HTTP basic authentication
|
|
1393
|
-
auth=undefined;if(config.auth){username=config.auth.username||'';password=config.auth.password||'';auth=username+':'+password;}if(!auth&&parsed.username){urlUsername=parsed.username;urlPassword=parsed.password;auth=urlUsername+':'+urlPassword;}auth&&headers["delete"]('authorization');_context4.prev=84;path=buildURL(parsed.pathname+parsed.search,config.params,config.paramsSerializer).replace(/^\?/,'');_context4.next=95;break;case 88:_context4.prev=88;_context4.t2=_context4["catch"](84);customErr=new Error(_context4.t2.message);customErr.config=config;customErr.url=config.url;customErr.exists=true;return _context4.abrupt("return",reject(customErr));case 95:headers.set('Accept-Encoding','gzip, compress, deflate'+(isBrotliSupported?', br':''),false);options={path:path,method:method,headers:headers.toJSON(),agents:{http:config.httpAgent,https:config.httpsAgent},auth:auth,protocol:protocol,family:family,beforeRedirect:dispatchBeforeRedirect,beforeRedirects:{}};// cacheable-lookup integration hotfix
|
|
1394
|
-
!utils$1.isUndefined(lookup)&&(options.lookup=lookup);if(config.socketPath){options.socketPath=config.socketPath;}else{options.hostname=parsed.hostname;options.port=parsed.port;setProxy(options,config.proxy,protocol+'//'+parsed.hostname+(parsed.port?':'+parsed.port:'')+options.path);}isHttpsRequest=isHttps.test(options.protocol);options.agent=isHttpsRequest?config.httpsAgent:config.httpAgent;if(config.transport){transport=config.transport;}else if(config.maxRedirects===0){transport=isHttpsRequest?require$$4__default["default"]:require$$3__default["default"];}else{if(config.maxRedirects){options.maxRedirects=config.maxRedirects;}if(config.beforeRedirect){options.beforeRedirects.config=config.beforeRedirect;}transport=isHttpsRequest?httpsFollow:httpFollow;}if(config.maxBodyLength>-1){options.maxBodyLength=config.maxBodyLength;}else{// follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
|
|
1395
|
-
options.maxBodyLength=Infinity;}if(config.insecureHTTPParser){options.insecureHTTPParser=config.insecureHTTPParser;}// Create the request
|
|
1396
|
-
req=transport.request(options,function handleResponse(res){if(req.destroyed)return;var streams=[res];var responseLength=+res.headers['content-length'];if(onDownloadProgress){var transformStream=new AxiosTransformStream$1({length:utils$1.toFiniteNumber(responseLength),maxRate:utils$1.toFiniteNumber(maxDownloadRate)});onDownloadProgress&&transformStream.on('progress',function(progress){onDownloadProgress(Object.assign(progress,{download:true}));});streams.push(transformStream);}// decompress the response body transparently if required
|
|
1397
|
-
var responseStream=res;// return the last request in case of redirects
|
|
1398
|
-
var lastRequest=res.req||req;// if decompress disabled we should not decompress
|
|
1399
|
-
if(config.decompress!==false&&res.headers['content-encoding']){// if no content, but headers still say that it is encoded,
|
|
1400
|
-
// remove the header not confuse downstream operations
|
|
1401
|
-
if(method==='HEAD'||res.statusCode===204){delete res.headers['content-encoding'];}switch((res.headers['content-encoding']||'').toLowerCase()){/*eslint default-case:0*/case'gzip':case'x-gzip':case'compress':case'x-compress':// add the unzipper to the body stream processing pipeline
|
|
1402
|
-
streams.push(zlib__default["default"].createUnzip(zlibOptions));// remove the content-encoding in order to not confuse downstream operations
|
|
1403
|
-
delete res.headers['content-encoding'];break;case'deflate':streams.push(new ZlibHeaderTransformStream$1());// add the unzipper to the body stream processing pipeline
|
|
1404
|
-
streams.push(zlib__default["default"].createUnzip(zlibOptions));// remove the content-encoding in order to not confuse downstream operations
|
|
1405
|
-
delete res.headers['content-encoding'];break;case'br':if(isBrotliSupported){streams.push(zlib__default["default"].createBrotliDecompress(brotliOptions));delete res.headers['content-encoding'];}}}responseStream=streams.length>1?stream__default["default"].pipeline(streams,utils$1.noop):streams[0];var offListeners=stream__default["default"].finished(responseStream,function(){offListeners();onFinished();});var response={status:res.statusCode,statusText:res.statusMessage,headers:new AxiosHeaders$1(res.headers),config:config,request:lastRequest};if(responseType==='stream'){response.data=responseStream;settle(resolve,reject,response);}else{var responseBuffer=[];var totalResponseBytes=0;responseStream.on('data',function handleStreamData(chunk){responseBuffer.push(chunk);totalResponseBytes+=chunk.length;// make sure the content length is not over the maxContentLength if specified
|
|
1406
|
-
if(config.maxContentLength>-1&&totalResponseBytes>config.maxContentLength){// stream.destroy() emit aborted event before calling reject() on Node.js v16
|
|
1407
|
-
rejected=true;responseStream.destroy();reject(new AxiosError('maxContentLength size of '+config.maxContentLength+' exceeded',AxiosError.ERR_BAD_RESPONSE,config,lastRequest));}});responseStream.on('aborted',function handlerStreamAborted(){if(rejected){return;}var err=new AxiosError('maxContentLength size of '+config.maxContentLength+' exceeded',AxiosError.ERR_BAD_RESPONSE,config,lastRequest);responseStream.destroy(err);reject(err);});responseStream.on('error',function handleStreamError(err){if(req.destroyed)return;reject(AxiosError.from(err,null,config,lastRequest));});responseStream.on('end',function handleStreamEnd(){try{var responseData=responseBuffer.length===1?responseBuffer[0]:Buffer.concat(responseBuffer);if(responseType!=='arraybuffer'){responseData=responseData.toString(responseEncoding);if(!responseEncoding||responseEncoding==='utf8'){responseData=utils$1.stripBOM(responseData);}}response.data=responseData;}catch(err){return reject(AxiosError.from(err,null,config,response.request,response));}settle(resolve,reject,response);});}emitter.once('abort',function(err){if(!responseStream.destroyed){responseStream.emit('error',err);responseStream.destroy();}});});emitter.once('abort',function(err){reject(err);req.destroy(err);});// Handle errors
|
|
1408
|
-
req.on('error',function handleRequestError(err){// @todo remove
|
|
1409
|
-
// if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
|
|
1410
|
-
reject(AxiosError.from(err,null,config,req));});// set tcp keep alive to prevent drop connection by peer
|
|
1411
|
-
req.on('socket',function handleRequestSocket(socket){// default interval of sending ack packet is 1 minute
|
|
1412
|
-
socket.setKeepAlive(true,1000*60);});// Handle request timeout
|
|
1413
|
-
if(!config.timeout){_context4.next=114;break;}// This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
|
|
1414
|
-
timeout=parseInt(config.timeout,10);if(!Number.isNaN(timeout)){_context4.next=113;break;}reject(new AxiosError('error trying to parse `config.timeout` to int',AxiosError.ERR_BAD_OPTION_VALUE,config,req));return _context4.abrupt("return");case 113:// Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
|
|
1415
|
-
// And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
|
|
1416
|
-
// At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
|
|
1417
|
-
// And then these socket which be hang up will devouring CPU little by little.
|
|
1418
|
-
// ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
|
|
1419
|
-
req.setTimeout(timeout,function handleRequestTimeout(){if(isDone)return;var timeoutErrorMessage=config.timeout?'timeout of '+config.timeout+'ms exceeded':'timeout exceeded';var transitional=config.transitional||transitionalDefaults;if(config.timeoutErrorMessage){timeoutErrorMessage=config.timeoutErrorMessage;}reject(new AxiosError(timeoutErrorMessage,transitional.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,config,req));abort();});case 114:// Send the request
|
|
1420
|
-
if(utils$1.isStream(data)){ended=false;errored=false;data.on('end',function(){ended=true;});data.once('error',function(err){errored=true;req.destroy(err);});data.on('close',function(){if(!ended&&!errored){abort(new CanceledError('Request stream has been aborted',config,req));}});data.pipe(req);}else{req.end(data);}case 115:case"end":return _context4.stop();}},_callee4,null,[[17,21],[43,50],[84,88]]);}));function dispatchHttpRequest(_x2,_x3,_x4){return _dispatchHttpRequest.apply(this,arguments);}return dispatchHttpRequest;}());};var cookies=platform.hasStandardBrowserEnv?// Standard browser envs support document.cookie
|
|
1421
|
-
function standardBrowserEnv(){return{write:function write(name,value,expires,path,domain,secure){var cookie=[];cookie.push(name+'='+encodeURIComponent(value));if(utils$1.isNumber(expires)){cookie.push('expires='+new Date(expires).toGMTString());}if(utils$1.isString(path)){cookie.push('path='+path);}if(utils$1.isString(domain)){cookie.push('domain='+domain);}if(secure===true){cookie.push('secure');}document.cookie=cookie.join('; ');},read:function read(name){var match=document.cookie.match(new RegExp('(^|;\\s*)('+name+')=([^;]*)'));return match?decodeURIComponent(match[3]):null;},remove:function remove(name){this.write(name,'',Date.now()-86400000);}};}():// Non standard browser env (web workers, react-native) lack needed support.
|
|
1422
|
-
function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null;},remove:function remove(){}};}();var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
|
|
653
|
+
*/function buildFullPath(baseURL,requestedURL){if(baseURL&&!isAbsoluteURL(requestedURL)){return combineURLs(baseURL,requestedURL);}return requestedURL;}var isURLSameOrigin=platform.hasStandardBrowserEnv?// Standard browser envs have full support of the APIs needed to test
|
|
1423
654
|
// whether the request URL is of the same origin as current location.
|
|
1424
655
|
function standardBrowserEnv(){var msie=/(msie|trident)/i.test(navigator.userAgent);var urlParsingNode=document.createElement('a');var originURL;/**
|
|
1425
|
-
* Parse a URL to discover
|
|
656
|
+
* Parse a URL to discover its components
|
|
1426
657
|
*
|
|
1427
658
|
* @param {String} url The URL to be parsed
|
|
1428
659
|
* @returns {Object}
|
|
@@ -1434,9 +665,14 @@ return{href:urlParsingNode.href,protocol:urlParsingNode.protocol?urlParsingNode.
|
|
|
1434
665
|
* @param {String} requestURL The URL to test
|
|
1435
666
|
* @returns {boolean} True if URL shares the same origin, otherwise false
|
|
1436
667
|
*/return function isURLSameOrigin(requestURL){var parsed=utils$1.isString(requestURL)?resolveURL(requestURL):requestURL;return parsed.protocol===originURL.protocol&&parsed.host===originURL.host;};}():// Non standard browser envs (web workers, react-native) lack needed support.
|
|
1437
|
-
function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();function
|
|
668
|
+
function nonStandardBrowserEnv(){return function isURLSameOrigin(){return true;};}();function parseProtocol(url){var match=/^([-+\w]{1,25})(:?\/\/|:)/.exec(url);return match&&match[1]||'';}/**
|
|
669
|
+
* Calculate data maxRate
|
|
670
|
+
* @param {Number} [samplesCount= 10]
|
|
671
|
+
* @param {Number} [min= 1000]
|
|
672
|
+
* @returns {Function}
|
|
673
|
+
*/function speedometer(samplesCount,min){samplesCount=samplesCount||10;var bytes=new Array(samplesCount);var timestamps=new Array(samplesCount);var head=0;var tail=0;var firstSampleTS;min=min!==undefined?min:1000;return function push(chunkLength){var now=Date.now();var startedAt=timestamps[tail];if(!firstSampleTS){firstSampleTS=now;}bytes[head]=chunkLength;timestamps[head]=now;var i=tail;var bytesCount=0;while(i!==head){bytesCount+=bytes[i++];i=i%samplesCount;}head=(head+1)%samplesCount;if(head===tail){tail=(tail+1)%samplesCount;}if(now-firstSampleTS<min){return;}var passed=startedAt&&now-startedAt;return passed?Math.round(bytesCount*1000/passed):undefined;};}function progressEventReducer(listener,isDownloadStream){var bytesNotified=0;var _speedometer=speedometer(50,250);return function(e){var loaded=e.loaded;var total=e.lengthComputable?e.total:undefined;var progressBytes=loaded-bytesNotified;var rate=_speedometer(progressBytes);var inRange=loaded<=total;bytesNotified=loaded;var data={loaded:loaded,total:total,progress:total?loaded/total:undefined,bytes:progressBytes,rate:rate?rate:undefined,estimated:rate&&total&&inRange?(total-loaded)/rate:undefined,event:e};data[isDownloadStream?'download':'upload']=true;listener(data);};}var isXHRAdapterSupported=typeof XMLHttpRequest!=='undefined';var xhrAdapter=isXHRAdapterSupported&&function(config){return new Promise(function dispatchXhrRequest(resolve,reject){var requestData=config.data;var requestHeaders=AxiosHeaders$1.from(config.headers).normalize();var responseType=config.responseType,withXSRFToken=config.withXSRFToken;var onCanceled;function done(){if(config.cancelToken){config.cancelToken.unsubscribe(onCanceled);}if(config.signal){config.signal.removeEventListener('abort',onCanceled);}}var contentType;if(utils$1.isFormData(requestData)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv){requestHeaders.setContentType(false);// Let the browser set it
|
|
1438
674
|
}else if((contentType=requestHeaders.getContentType())!==false){// fix semicolon duplication issue for ReactNative FormData implementation
|
|
1439
|
-
var
|
|
675
|
+
var _ref8=contentType?contentType.split(';').map(function(token){return token.trim();}).filter(Boolean):[],_ref9=_toArray(_ref8),type=_ref9[0],tokens=_ref9.slice(1);requestHeaders.setContentType([type||'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));}}var request=new XMLHttpRequest();// HTTP basic authentication
|
|
1440
676
|
if(config.auth){var username=config.auth.username||'';var password=config.auth.password?unescape(encodeURIComponent(config.auth.password)):'';requestHeaders.set('Authorization','Basic '+btoa(username+':'+password));}var fullPath=buildFullPath(config.baseURL,config.url);request.open(config.method.toUpperCase(),buildURL(fullPath,config.params,config.paramsSerializer),true);// Set the request timeout in MS
|
|
1441
677
|
request.timeout=config.timeout;function onloadend(){if(!request){return;}// Prepare the response
|
|
1442
678
|
var responseHeaders=AxiosHeaders$1.from('getAllResponseHeaders'in request&&request.getAllResponseHeaders());var responseData=!responseType||responseType==='text'||responseType==='json'?request.responseText:request.response;var response={data:responseData,status:request.status,statusText:request.statusText,headers:responseHeaders,config:config,request:request};settle(function _resolve(value){resolve(value);done();},function _reject(err){reject(err);done();},response);// Clean up request
|
|
@@ -1459,9 +695,8 @@ request.ontimeout=function handleTimeout(){var timeoutErrorMessage=config.timeou
|
|
|
1459
695
|
request=null;};// Add xsrf header
|
|
1460
696
|
// This is only done if running in a standard browser environment.
|
|
1461
697
|
// Specifically not if we're in a web worker, or react-native.
|
|
1462
|
-
if(platform.hasStandardBrowserEnv){// Add xsrf header
|
|
1463
|
-
//
|
|
1464
|
-
var xsrfValue=isURLSameOrigin(fullPath)&&config.xsrfCookieName&&cookies.read(config.xsrfCookieName);if(xsrfValue){requestHeaders.set(config.xsrfHeaderName,xsrfValue);}}// Remove Content-Type if data is undefined
|
|
698
|
+
if(platform.hasStandardBrowserEnv){withXSRFToken&&utils$1.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(config));if(withXSRFToken||withXSRFToken!==false&&isURLSameOrigin(fullPath)){// Add xsrf header
|
|
699
|
+
var xsrfValue=config.xsrfHeaderName&&config.xsrfCookieName&&cookies.read(config.xsrfCookieName);if(xsrfValue){requestHeaders.set(config.xsrfHeaderName,xsrfValue);}}}// Remove Content-Type if data is undefined
|
|
1465
700
|
requestData===undefined&&requestHeaders.setContentType(null);// Add headers to the request
|
|
1466
701
|
if('setRequestHeader'in request){utils$1.forEach(requestHeaders.toJSON(),function setRequestHeader(val,key){request.setRequestHeader(key,val);});}// Add withCredentials to request if needed
|
|
1467
702
|
if(!utils$1.isUndefined(config.withCredentials)){request.withCredentials=!!config.withCredentials;}// Add responseType to request if needed
|
|
@@ -1471,7 +706,7 @@ if(typeof config.onUploadProgress==='function'&&request.upload){request.upload.a
|
|
|
1471
706
|
// eslint-disable-next-line func-names
|
|
1472
707
|
onCanceled=function onCanceled(cancel){if(!request){return;}reject(!cancel||cancel.type?new CanceledError(null,config,request):cancel);request.abort();request=null;};config.cancelToken&&config.cancelToken.subscribe(onCanceled);if(config.signal){config.signal.aborted?onCanceled():config.signal.addEventListener('abort',onCanceled);}}var protocol=parseProtocol(fullPath);if(protocol&&platform.protocols.indexOf(protocol)===-1){reject(new AxiosError('Unsupported protocol '+protocol+':',AxiosError.ERR_BAD_REQUEST,config));return;}// Send the request
|
|
1473
708
|
request.send(requestData||null);});};var knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,function(fn,value){if(fn){try{Object.defineProperty(fn,'name',{value:value});}catch(e){// eslint-disable-next-line no-empty
|
|
1474
|
-
}Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(
|
|
709
|
+
}Object.defineProperty(fn,'adapterName',{value:value});}});var renderReason=function renderReason(reason){return"- ".concat(reason);};var isResolvedHandle=function isResolvedHandle(adapter){return utils$1.isFunction(adapter)||adapter===null||adapter===false;};var adapters={getAdapter:function getAdapter(adapters){adapters=utils$1.isArray(adapters)?adapters:[adapters];var _adapters=adapters,length=_adapters.length;var nameOrAdapter;var adapter;var rejectedReasons={};for(var i=0;i<length;i++){nameOrAdapter=adapters[i];var id=void 0;adapter=nameOrAdapter;if(!isResolvedHandle(nameOrAdapter)){adapter=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()];if(adapter===undefined){throw new AxiosError("Unknown adapter '".concat(id,"'"));}}if(adapter){break;}rejectedReasons[id||'#'+i]=adapter;}if(!adapter){var reasons=Object.entries(rejectedReasons).map(function(_ref10){var _ref11=_slicedToArray(_ref10,2),id=_ref11[0],state=_ref11[1];return"adapter ".concat(id," ")+(state===false?'is not supported by the environment':'is not available in the build');});var s=length?reasons.length>1?'since :\n'+reasons.map(renderReason).join('\n'):' '+renderReason(reasons[0]):'as no adapter specified';throw new AxiosError("There is no suitable adapter to dispatch the request "+s,'ERR_NOT_SUPPORT');}return adapter;},adapters:knownAdapters};/**
|
|
1475
710
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
1476
711
|
*
|
|
1477
712
|
* @param {Object} config The config that is to be used for the request
|
|
@@ -1499,7 +734,7 @@ config2=config2||{};var config={};function getMergedValue(target,source,caseless
|
|
|
1499
734
|
function mergeDeepProperties(a,b,caseless){if(!utils$1.isUndefined(b)){return getMergedValue(a,b,caseless);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a,caseless);}}// eslint-disable-next-line consistent-return
|
|
1500
735
|
function valueFromConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}}// eslint-disable-next-line consistent-return
|
|
1501
736
|
function defaultToConfig2(a,b){if(!utils$1.isUndefined(b)){return getMergedValue(undefined,b);}else if(!utils$1.isUndefined(a)){return getMergedValue(undefined,a);}}// eslint-disable-next-line consistent-return
|
|
1502
|
-
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var validators$1={};// eslint-disable-next-line func-names
|
|
737
|
+
function mergeDirectKeys(a,b,prop){if(prop in config2){return getMergedValue(a,b);}else if(prop in config1){return getMergedValue(undefined,a);}}var mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:function headers(a,b){return mergeDeepProperties(headersToObject(a),headersToObject(b),true);}};utils$1.forEach(Object.keys(Object.assign({},config1,config2)),function computeConfigValue(prop){var merge=mergeMap[prop]||mergeDeepProperties;var configValue=merge(config1[prop],config2[prop],prop);utils$1.isUndefined(configValue)&&merge!==mergeDirectKeys||(config[prop]=configValue);});return config;}var VERSION="1.6.2";var validators$1={};// eslint-disable-next-line func-names
|
|
1503
738
|
['object','boolean','number','function','string','symbol'].forEach(function(type,i){validators$1[type]=function validator(thing){return _typeof(thing)===type||'a'+(i<1?'n ':' ')+type;};});var deprecatedWarnings={};/**
|
|
1504
739
|
* Transitional option validator
|
|
1505
740
|
*
|
|
@@ -1581,7 +816,7 @@ return;}token.reason=new CanceledError(message,config,request);resolvePromise(to
|
|
|
1581
816
|
* @param {*} payload The value to test
|
|
1582
817
|
*
|
|
1583
818
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
|
1584
|
-
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(
|
|
819
|
+
*/function isAxiosError(payload){return utils$1.isObject(payload)&&payload.isAxiosError===true;}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(function(_ref12){var _ref13=_slicedToArray(_ref12,2),key=_ref13[0],value=_ref13[1];HttpStatusCode[value]=key;});var HttpStatusCode$1=HttpStatusCode;/**
|
|
1585
820
|
* Create an instance of Axios
|
|
1586
821
|
*
|
|
1587
822
|
* @param {Object} defaultConfig The default config for the instance
|
|
@@ -1599,7 +834,7 @@ axios.Cancel=axios.CanceledError;// Expose all/spread
|
|
|
1599
834
|
axios.all=function all(promises){return Promise.all(promises);};axios.spread=spread;// Expose isAxiosError
|
|
1600
835
|
axios.isAxiosError=isAxiosError;// Expose mergeConfig
|
|
1601
836
|
axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=function(thing){return formDataToJSON(utils$1.isHTMLForm(thing)?new FormData(thing):thing);};axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios["default"]=axios;// this module should only have a default export
|
|
1602
|
-
var axios$1=axios;var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}_createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var
|
|
837
|
+
var axios$1=axios;var logLevelEnum={level:{LNone:'none',LError:'error',LDebug:'debug',LTrace:'trace'}};var logFormatEnum={formats:{JSON:'json',TEXT:'text'}};var Logger=/*#__PURE__*/function(){function Logger(){_classCallCheck(this,Logger);this.log_level=logLevelEnum.level.LNone;this.log_format=logFormatEnum.formats.TEXT;this.log_to_console=true;this.log_file_path;this.log_response_body=false;this.log_request_body=false;this.setLogger();}_createClass(Logger,[{key:"logLevelEnum",get:function get(){return logLevelEnum;}},{key:"logFormatEnum",get:function get(){return logFormatEnum;}},{key:"setLogger",value:function setLogger(){}},{key:"log",value:function log(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var content=this.formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody);if(typeof window!=='undefined'){var shouldLog=this.calculateLogLevel(level);if(shouldLog>0&&this.log_to_console===true){if(this.log_format===this.logFormatEnum.formats.JSON){console.log(content);}else{console.log("".concat(level.toUpperCase(),": ").concat(content));}}}else{if(this.logger.transports.length>0)this.logger.log(level,content);}}},{key:"calculateLogLevel",value:function calculateLogLevel(level){switch(this.log_level){case this.logLevelEnum.level.LError:if(level!==this.logLevelEnum.level.LError){return-1;}return 1;case this.logLevelEnum.level.LDebug:if(level===this.logLevelEnum.level.LTrace){return-1;}return 1;case this.logLevelEnum.level.LTrace:return 1;default:return-1;}}},{key:"formatLog",value:function formatLog(level,statusCode,method,url,requestHeaders,responseHeaders,requestBody,responseBody){var result;var localRequestHeaders=requestHeaders?JSON.parse(JSON.stringify(requestHeaders)):null;var localResponseHeaders=responseHeaders?JSON.parse(JSON.stringify(responseHeaders)):null;var localRequestBody=requestBody?JSON.parse(JSON.stringify(requestBody)):null;var localResponseBody=responseBody?JSON.parse(JSON.stringify(responseBody)):null;if(requestHeaders)localRequestHeaders['Authorization']='[REDACTED]';if(!this.log_request_body)localRequestBody=undefined;if(!this.log_response_body)localResponseBody=undefined;if(this.log_format&&this.log_format===logFormatEnum.formats.JSON){result={level:level,date:new Date().toISOString(),method:method,url:decodeURIComponent(url),correlationId:localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'',statusCode:statusCode};if(localRequestHeaders)result.requestHeaders=localRequestHeaders;if(localResponseHeaders)result.responseHeaders=localResponseHeaders;if(localRequestBody)result.requestBody=localRequestBody;if(localResponseBody)result.responseBody=localResponseBody;}else{result="".concat(new Date().toISOString(),"\n=== REQUEST === \n").concat(this.formatValue('URL',decodeURIComponent(url))).concat(this.formatValue('Method',method)).concat(this.formatValue('Headers',this.formatHeaderString(localRequestHeaders))).concat(this.formatValue('Body',localRequestBody?JSON.stringify(localRequestBody,null,2):''),"\n=== RESPONSE ===\n").concat(this.formatValue('Status',statusCode)).concat(this.formatValue('Headers',this.formatHeaderString(localResponseHeaders))).concat(this.formatValue('CorrelationId',localResponseHeaders?localResponseHeaders['inin-correlation-id']?localResponseHeaders['inin-correlation-id']:'':'')).concat(this.formatValue('Body',localResponseBody?JSON.stringify(localResponseBody,null,2):''));}return result;}},{key:"formatHeaderString",value:function formatHeaderString(headers){var headerString='';if(!headers)return headerString;for(var _i=0,_Object$entries=Object.entries(headers);_i<_Object$entries.length;_i++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i],2),key=_Object$entries$_i[0],value=_Object$entries$_i[1];headerString+="\n\t".concat(key,": ").concat(value);}return headerString;}},{key:"formatValue",value:function formatValue(key,value){if(!value||value===''||value==='{}')return'';return"".concat(key,": ").concat(value,"\n");}},{key:"getLogLevel",value:function getLogLevel(level){switch(level){case'error':return logLevelEnum.level.LError;case'debug':return logLevelEnum.level.LDebug;case'trace':return logLevelEnum.level.LTrace;default:return logLevelEnum.level.LNone;}}},{key:"getLogFormat",value:function getLogFormat(format){switch(format){case'json':return logFormatEnum.formats.JSON;default:return logFormatEnum.formats.TEXT;}}}]);return Logger;}();var Configuration=/*#__PURE__*/function(){function Configuration(){_classCallCheck(this,Configuration);if(!Configuration.instance){Configuration.instance=this;}if(typeof window!=='undefined'){this.configPath='';}else{var os=require('os');var path=require('path');this.configPath=path.join(os.homedir(),'.genesyscloudjavascript','config');}this.refresh_access_token=true;this.refresh_token_wait_max=10;this.live_reload_config=true;this.host;this.environment;this.basePath;this.authUrl;this.config;this.logger=new Logger();this.setEnvironment();this.liveLoadConfig();}_createClass(Configuration,[{key:"instance",get:/**
|
|
1603
838
|
* Singleton getter
|
|
1604
839
|
*/function get(){return Configuration.instance;}/**
|
|
1605
840
|
* Singleton setter
|
|
@@ -1610,7 +845,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
|
|
|
1610
845
|
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
|
|
1611
846
|
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(this.environment.startsWith('api.'))this.environment=this.environment.substring(4);this.basePath="https://api.".concat(this.environment);this.authUrl="https://login.".concat(this.environment);}},{key:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);return Configuration;}();/**
|
|
1612
847
|
* @module purecloud-platform-client-v2/ApiClient
|
|
1613
|
-
* @version 182.
|
|
848
|
+
* @version 182.1.0
|
|
1614
849
|
*/var ApiClient=/*#__PURE__*/function(){/**
|
|
1615
850
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
1616
851
|
* application to use this class directly - the *Api and model classes provide the public API for the service. The
|
|
@@ -1686,73 +921,73 @@ var tempState=this.authData.state;this.authData=localStorage.getItem("".concat(t
|
|
|
1686
921
|
* @param {string} opts.state - (optional) An arbitrary string to be passed back with the login response. Used for client apps to associate login responses with a request.
|
|
1687
922
|
* @param {string} opts.org - (optional) The organization name that would normally used when specifying an organization name when logging in. This is only used when a provider is also specified.
|
|
1688
923
|
* @param {string} opts.provider - (optional) Authentication provider to log in with e.g. okta, adfs, salesforce, onelogin. This is only used when an org is also specified.
|
|
1689
|
-
*/},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var
|
|
924
|
+
*/},{key:"loginImplicitGrant",value:function loginImplicitGrant(clientId,redirectUri,opts){var _this=this;// Check for auth token in hash
|
|
1690
925
|
var hash=this._setValuesFromUrlHash();this.clientId=clientId;this.redirectUri=redirectUri;if(!opts)opts={};return new Promise(function(resolve,reject){// Abort if org and provider are not set together
|
|
1691
926
|
if(opts.org&&!opts.provider){reject(new Error('opts.provider must be set if opts.org is set'));}else if(opts.provider&&!opts.org){reject(new Error('opts.org must be set if opts.provider is set'));}// Abort on auth error
|
|
1692
|
-
if(hash&&hash.error){hash.accessToken=undefined;
|
|
1693
|
-
|
|
927
|
+
if(hash&&hash.error){hash.accessToken=undefined;_this._saveSettings(hash);return reject(new Error("[".concat(hash.error,"] ").concat(hash.error_description)));}// Test token and proceed with login
|
|
928
|
+
_this._testTokenAccess().then(function(){if(!_this.authData.state&&opts.state)_this.authData.state=opts.state;resolve(_this.authData);})["catch"](function(error){var query={client_id:encodeURIComponent(_this.clientId),redirect_uri:encodeURIComponent(_this.redirectUri),response_type:'token'};if(opts.state)query.state=encodeURIComponent(opts.state);if(opts.org)query.org=encodeURIComponent(opts.org);if(opts.provider)query.provider=encodeURIComponent(opts.provider);var url=_this._buildAuthUrl('oauth/authorize',query);window.location.replace(url);});});}/**
|
|
1694
929
|
* @description Initiates the client credentials login flow. Only available in node apps.
|
|
1695
930
|
* @param {string} clientId - The client ID of an OAuth Implicit Grant client
|
|
1696
931
|
* @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
|
|
1697
|
-
*/},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var
|
|
1698
|
-
if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};axios$1({method:"POST",url:"https://login.".concat(
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
resolve(
|
|
1703
|
-
if(error.response){
|
|
932
|
+
*/},{key:"loginClientCredentialsGrant",value:function loginClientCredentialsGrant(clientId,clientSecret){var _this2=this;this.clientId=clientId;var authHeader=Buffer.from("".concat(clientId,":").concat(clientSecret)).toString('base64');return new Promise(function(resolve,reject){// Block browsers from using client credentials
|
|
933
|
+
if(typeof window!=='undefined'){reject(new Error('The client credentials grant is not supported in a browser.'));return;}var headers={'Authorization':"Basic ".concat(authHeader)};axios$1({method:"POST",url:"https://login.".concat(_this2.config.environment,"/oauth/token"),headers:headers,data:'grant_type=client_credentials',httpsAgent:_this2.proxyAgent}).then(function(response){// Logging
|
|
934
|
+
_this2.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this2.config.environment,"/oauth/token"),headers,response.headers,{grant_type:'client_credentials'},undefined);_this2.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this2.config.environment,"/oauth/token"),headers,undefined,{grant_type:'client_credentials'},undefined);// Save access token
|
|
935
|
+
_this2.setAccessToken(response.data['access_token']);// Set expiry time
|
|
936
|
+
_this2.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this2.authData.tokenExpiryTimeString=new Date(_this2.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
937
|
+
resolve(_this2.authData);})["catch"](function(error){// Log error
|
|
938
|
+
if(error.response){_this2.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this2.config.environment,"/oauth/token"),headers,error.response.headers,{grant_type:'client_credentials'},error.response.data);}reject(error);});});}/**
|
|
1704
939
|
* @description Initiates the Saml2Bearerflow. Only available in node apps.
|
|
1705
940
|
* @param {string} clientId - The client ID of an OAuth Implicit Grant client
|
|
1706
941
|
* @param {string} clientSecret - The client secret of an OAuth Implicit Grant client
|
|
1707
942
|
* @param {string} orgName - The orgName of an OAuth Implicit Grant client
|
|
1708
943
|
* @param {string} assertion - The saml2bearer assertion
|
|
1709
|
-
*/},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var
|
|
944
|
+
*/},{key:"loginSaml2BearerGrant",value:function loginSaml2BearerGrant(clientId,clientSecret,orgName,assertion){var _this3=this;this.clientId=clientId;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The saml2bearer grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this3._formAuthRequest(encodedData,{grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion});request.proxy=_this3.proxy;var bodyParam={grant_type:'urn:ietf:params:oauth:grant-type:saml2-bearer',orgName:orgName,assertion:assertion};// Handle response
|
|
1710
945
|
request.then(function(response){// Logging
|
|
1711
|
-
|
|
1712
|
-
var access_token=response.data.access_token;
|
|
1713
|
-
resolve(
|
|
1714
|
-
if(error.response){
|
|
946
|
+
_this3.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this3.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
947
|
+
var access_token=response.data.access_token;_this3.setAccessToken(access_token);_this3.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this3.authData.tokenExpiryTimeString=new Date(_this3.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
948
|
+
resolve(_this3.authData);})["catch"](function(error){// Log error
|
|
949
|
+
if(error.response){_this3.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this3.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});});}/**
|
|
1715
950
|
* @description Initiates the Code Authorization. Only available in node apps.
|
|
1716
951
|
* @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
|
|
1717
952
|
* @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
|
|
1718
953
|
* @param {string} authCode - Authorization code
|
|
1719
954
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
1720
|
-
*/},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var
|
|
1721
|
-
|
|
955
|
+
*/},{key:"loginCodeAuthorizationGrant",value:function loginCodeAuthorizationGrant(clientId,clientSecret,authCode,redirectUri){var _this4=this;this.clientId=clientId;this.clientSecret=clientSecret;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this4._formAuthRequest(encodedData,{grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri});request.proxy=_this4.proxy;var bodyParam={grant_type:'authorization_code',code:authCode,redirect_uri:redirectUri};// Handle response
|
|
956
|
+
_this4._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
|
|
1722
957
|
* @description Requests a new access token for Code Authorization. Only available in node apps.
|
|
1723
958
|
* @param {string} clientId - The client ID of an OAuth Code Authorization Grant client
|
|
1724
959
|
* @param {string} clientSecret - The client secret of an OAuth Code Authorization Grant client
|
|
1725
960
|
* @param {string} authCode - Authorization code
|
|
1726
961
|
* @param {string} redirectUri - Authorized redirect URI for your Code Authorization client
|
|
1727
|
-
*/},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var
|
|
1728
|
-
|
|
962
|
+
*/},{key:"refreshCodeAuthorizationGrant",value:function refreshCodeAuthorizationGrant(clientId,clientSecret,refreshToken){var _this5=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('The Code Authorization grant is not supported in a browser.'));return;}var encodedData=Buffer.from(clientId+':'+clientSecret).toString('base64');var request=_this5._formAuthRequest(encodedData,{grant_type:'refresh_token',refresh_token:refreshToken});request.proxy=_this5.proxy;var bodyParam={grant_type:'refresh_token',refresh_token:refreshToken};// Handle response
|
|
963
|
+
_this5._handleCodeAuthorizationResponse(request,bodyParam,resolve,reject);});}/**
|
|
1729
964
|
* @description Handles the response for code auth requests
|
|
1730
965
|
* @param {object} request - Authorization request object
|
|
1731
966
|
* @param {object} bodyParam - Input body data for authorization request
|
|
1732
967
|
* @param {function} resolve - Promise resolve callback
|
|
1733
968
|
* @param {function} reject - Promise reject callback
|
|
1734
|
-
*/},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var
|
|
1735
|
-
|
|
1736
|
-
var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;
|
|
1737
|
-
resolve(
|
|
1738
|
-
if(error.response){
|
|
969
|
+
*/},{key:"_handleCodeAuthorizationResponse",value:function _handleCodeAuthorizationResponse(request,bodyParam,resolve,reject){var _this6=this;request.then(function(response){// Logging
|
|
970
|
+
_this6.config.logger.log('trace',response.status,'POST',"https://login.".concat(_this6.config.environment,"/oauth/token"),request.headers,response.headers,bodyParam,undefined);_this6.config.logger.log('debug',response.status,'POST',"https://login.".concat(_this6.config.environment,"/oauth/token"),request.headers,undefined,bodyParam,undefined);// Get access token from response
|
|
971
|
+
var access_token=response.data.access_token;var refresh_token=response.data.refresh_token;_this6.setAccessToken(access_token);_this6.authData.refreshToken=refresh_token;_this6.authData.tokenExpiryTime=new Date().getTime()+response.data['expires_in']*1000;_this6.authData.tokenExpiryTimeString=new Date(_this6.authData.tokenExpiryTime).toUTCString();// Return auth data
|
|
972
|
+
resolve(_this6.authData);})["catch"](function(error){// Log error
|
|
973
|
+
if(error.response){_this6.config.logger.log('error',error.response.status,'POST',"https://login.".concat(_this6.config.environment,"/oauth/token"),request.headers,error.response.headers,bodyParam,error.response.data);}reject(error);});}/**
|
|
1739
974
|
* @description Utility function to create the request for auth requests
|
|
1740
975
|
* @param {string} encodedData - Base64 encoded client and clientSecret pair
|
|
1741
976
|
* @param {object} data - data to url form encode
|
|
1742
977
|
*/},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var request=axios$1({method:"POST",url:"https://login.".concat(this.config.environment,"/oauth/token"),headers:{'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'},data:qs__default["default"].stringify(data)});return request;}/**
|
|
1743
978
|
* @description Handles an expired access token. Only available in node apps.
|
|
1744
979
|
* @param {string} statusCode - The status code of a request
|
|
1745
|
-
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var
|
|
1746
|
-
|
|
1747
|
-
|
|
980
|
+
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this7=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this7.refreshInProgress){_this7.refreshInProgress=true;_this7.refreshCodeAuthorizationGrant(_this7.clientId,_this7.clientSecret,_this7.authData.refreshToken).then(function(){_this7.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
|
|
981
|
+
_this7.refreshInProgress=false;reject(err);});}else{// Wait refresh_token_wait_max seconds for other thread to complete refresh
|
|
982
|
+
_this7._sleep(_this7.config.refresh_token_wait_max).then(function(){if(_this7.refreshInProgress)reject(new Error("Token refresh took longer than ".concat(_this7.config.refresh_token_wait_max," seconds")));else resolve();});}});}/**
|
|
1748
983
|
* @description Sleeps for a defined length
|
|
1749
984
|
* @param {int} millis - Length to sleep in milliseconds
|
|
1750
985
|
*/},{key:"_sleep",value:function _sleep(millis){return new Promise(function(resolve){return setTimeout(resolve,millis);});}/**
|
|
1751
986
|
* @description Loads token from storage, if enabled, and checks to ensure it works.
|
|
1752
|
-
*/},{key:"_testTokenAccess",value:function _testTokenAccess(){var
|
|
1753
|
-
|
|
1754
|
-
if(!
|
|
1755
|
-
|
|
987
|
+
*/},{key:"_testTokenAccess",value:function _testTokenAccess(){var _this8=this;return new Promise(function(resolve,reject){// Load from storage
|
|
988
|
+
_this8._loadSettings();// Check if there is a token to test
|
|
989
|
+
if(!_this8.authentications['PureCloud OAuth'].accessToken){reject(new Error('Token is not set'));return;}// Test token
|
|
990
|
+
_this8.callApi('/api/v2/tokens/me','GET',null,null,null,null,null,['PureCloud OAuth'],['application/json'],['application/json']).then(function(){resolve();})["catch"](function(error){_this8._saveSettings({accessToken:undefined});reject(error);});});}/**
|
|
1756
991
|
* @description Parses the URL hash, grabs the access token, and clears the hash. If no access token is found, no action is taken.
|
|
1757
992
|
*/},{key:"_setValuesFromUrlHash",value:function _setValuesFromUrlHash(){// Check for window
|
|
1758
993
|
if(!(typeof window!=='undefined'&&window.location.hash))return;// Process hash string into object
|
|
@@ -1791,13 +1026,13 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
|
|
|
1791
1026
|
* @param existingHeaders The existing header object.
|
|
1792
1027
|
* @param newHeaders New headers.
|
|
1793
1028
|
* @returns {Object} The combination of all headers.
|
|
1794
|
-
*/},{key:"addHeaders",value:function addHeaders(existingHeaders){for(var
|
|
1029
|
+
*/},{key:"addHeaders",value:function addHeaders(existingHeaders){for(var _len3=arguments.length,newHeaders=new Array(_len3>1?_len3-1:0),_key4=1;_key4<_len3;_key4++){newHeaders[_key4-1]=arguments[_key4];}if(existingHeaders){existingHeaders=Object.assign.apply(Object,[existingHeaders].concat(newHeaders));}else{existingHeaders=Object.assign.apply(Object,newHeaders);}return existingHeaders;}/**
|
|
1795
1030
|
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
1796
1031
|
* NOTE: query parameters are not handled here.
|
|
1797
1032
|
* @param {String} path The path to append to the base URL.
|
|
1798
1033
|
* @param {Object} pathParams The parameter values to append.
|
|
1799
1034
|
* @returns {String} The encoded path with parameter values substituted.
|
|
1800
|
-
*/},{key:"buildUrl",value:function buildUrl(path,pathParams){var
|
|
1035
|
+
*/},{key:"buildUrl",value:function buildUrl(path,pathParams){var _this9=this;if(!path.match(/^\//)){path="/".concat(path);}var url=this.config.basePath+path;url=url.replace(/\{([\w-]+)\}/g,function(fullMatch,key){var value;if(pathParams.hasOwnProperty(key)){value=_this9.paramToString(pathParams[key]);}else{value=fullMatch;}return encodeURIComponent(value);});return url;}/**
|
|
1801
1036
|
* Checks whether the given content type represents JSON.<br>
|
|
1802
1037
|
* JSON content type examples:<br>
|
|
1803
1038
|
* <ul>
|
|
@@ -1838,7 +1073,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
|
|
|
1838
1073
|
* Applies authentication headers to the request.
|
|
1839
1074
|
* @param {Object} request The axios request config object.
|
|
1840
1075
|
* @param {Array.<String>} authNames An array of authentication method names.
|
|
1841
|
-
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var
|
|
1076
|
+
*/},{key:"applyAuthToRequest",value:function applyAuthToRequest(request,authNames){var _this10=this;authNames.forEach(function(authName){var auth=_this10.authentications[authName];switch(auth.type){case'basic':if(auth.username||auth.password){request.auth={username:auth.username||'',password:auth.password||''};}break;case'apiKey':if(auth.apiKey){var data={};if(auth.apiKeyPrefix){data[auth.name]="".concat(auth.apiKeyPrefix," ").concat(auth.apiKey);}else{data[auth.name]=auth.apiKey;}if(auth['in']==='header'){request.headers=_this10.addHeaders(request.headers,data);}else{request.params=_this10.serialize(data);}}break;case'oauth2':if(auth.accessToken){request.headers=_this10.addHeaders(request.headers,{'Authorization':"Bearer ".concat(auth.accessToken)});}break;default:throw new Error("Unknown authentication type: ".concat(auth.type));}});}/**
|
|
1842
1077
|
* @description Sets the proxy agent axios will use for requests
|
|
1843
1078
|
* @param {any} agent - The proxy agent
|
|
1844
1079
|
*/},{key:"setProxyAgent",value:function setProxyAgent(agent){this.proxyAgent=agent;}/**
|
|
@@ -1855,7 +1090,7 @@ return param.map(this.paramToString);default:throw new Error("Unknown collection
|
|
|
1855
1090
|
* @param {Array.<String>} accepts An array of acceptable response MIME types.types or the
|
|
1856
1091
|
* constructor for a complex type.
|
|
1857
1092
|
* @returns {Promise} A Promise object.
|
|
1858
|
-
*/},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var
|
|
1093
|
+
*/},{key:"callApi",value:function callApi(path,httpMethod,pathParams,queryParams,headerParams,formParams,bodyParam,authNames,contentTypes,accepts){var _this11=this;return new Promise(function(resolve,reject){sendRequest(_this11);function sendRequest(that){var url=that.buildUrl(path,pathParams);var request={method:httpMethod,url:url,httpsAgent:that.proxyAgent,timeout:that.timeout,params:that.serialize(queryParams)};// apply authentications
|
|
1859
1094
|
that.applyAuthToRequest(request,authNames);// set header parameters
|
|
1860
1095
|
var defaultHeaders=that.defaultHeaders;var normalizedHeaderParams=that.normalizeParams(headerParams);request.headers=that.addHeaders(request.headers,defaultHeaders,normalizedHeaderParams);var contentType=that.jsonPreferredMime(contentTypes);if(contentType){request.headers['Content-Type']=contentType;}else if(!request.headers['Content-Type']){request.headers['Content-Type']='application/json';}if(contentType==='application/x-www-form-urlencoded'){request.data=that.normalizeParams(formParams);}else if(contentType=='multipart/form-data'){var _formParams=that.normalizeParams(formParams);for(var key in _formParams){if(_formParams.hasOwnProperty(key)){// Looks like axios handles files and forms the same way
|
|
1861
1096
|
var formData=new FormData();formData.set(key,_formParams[key]);request.data=formData;}}}else if(bodyParam){request.data=bodyParam;}var accept=that.jsonPreferredMime(accepts);if(accept){request.headers['Accept']=accept;}axios$1.request(request).then(function(response){// Build response object
|
|
@@ -1865,7 +1100,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
|
|
|
1865
1100
|
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);return ApiClient;}();var AlertingApi=/*#__PURE__*/function(){/**
|
|
1866
1101
|
* Alerting service.
|
|
1867
1102
|
* @module purecloud-platform-client-v2/api/AlertingApi
|
|
1868
|
-
* @version 182.
|
|
1103
|
+
* @version 182.1.0
|
|
1869
1104
|
*/ /**
|
|
1870
1105
|
* Constructs a new AlertingApi.
|
|
1871
1106
|
* @alias module:purecloud-platform-client-v2/api/AlertingApi
|
|
@@ -2011,7 +1246,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
|
|
|
2011
1246
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return AlertingApi;}();var AnalyticsApi=/*#__PURE__*/function(){/**
|
|
2012
1247
|
* Analytics service.
|
|
2013
1248
|
* @module purecloud-platform-client-v2/api/AnalyticsApi
|
|
2014
|
-
* @version 182.
|
|
1249
|
+
* @version 182.1.0
|
|
2015
1250
|
*/ /**
|
|
2016
1251
|
* Constructs a new AnalyticsApi.
|
|
2017
1252
|
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
|
|
@@ -2578,7 +1813,7 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet
|
|
|
2578
1813
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return AnalyticsApi;}();var ArchitectApi=/*#__PURE__*/function(){/**
|
|
2579
1814
|
* Architect service.
|
|
2580
1815
|
* @module purecloud-platform-client-v2/api/ArchitectApi
|
|
2581
|
-
* @version 182.
|
|
1816
|
+
* @version 182.1.0
|
|
2582
1817
|
*/ /**
|
|
2583
1818
|
* Constructs a new ArchitectApi.
|
|
2584
1819
|
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
|
|
@@ -3610,7 +2845,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
|
|
|
3610
2845
|
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ArchitectApi;}();var AuditApi=/*#__PURE__*/function(){/**
|
|
3611
2846
|
* Audit service.
|
|
3612
2847
|
* @module purecloud-platform-client-v2/api/AuditApi
|
|
3613
|
-
* @version 182.
|
|
2848
|
+
* @version 182.1.0
|
|
3614
2849
|
*/ /**
|
|
3615
2850
|
* Constructs a new AuditApi.
|
|
3616
2851
|
* @alias module:purecloud-platform-client-v2/api/AuditApi
|
|
@@ -3652,7 +2887,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
3652
2887
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return AuditApi;}();var AuthorizationApi=/*#__PURE__*/function(){/**
|
|
3653
2888
|
* Authorization service.
|
|
3654
2889
|
* @module purecloud-platform-client-v2/api/AuthorizationApi
|
|
3655
|
-
* @version 182.
|
|
2890
|
+
* @version 182.1.0
|
|
3656
2891
|
*/ /**
|
|
3657
2892
|
* Constructs a new AuthorizationApi.
|
|
3658
2893
|
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
|
|
@@ -3963,7 +3198,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
|
|
|
3963
3198
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return AuthorizationApi;}();var BillingApi=/*#__PURE__*/function(){/**
|
|
3964
3199
|
* Billing service.
|
|
3965
3200
|
* @module purecloud-platform-client-v2/api/BillingApi
|
|
3966
|
-
* @version 182.
|
|
3201
|
+
* @version 182.1.0
|
|
3967
3202
|
*/ /**
|
|
3968
3203
|
* Constructs a new BillingApi.
|
|
3969
3204
|
* @alias module:purecloud-platform-client-v2/api/BillingApi
|
|
@@ -3987,7 +3222,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
|
|
|
3987
3222
|
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return BillingApi;}();var CarrierServicesApi=/*#__PURE__*/function(){/**
|
|
3988
3223
|
* CarrierServices service.
|
|
3989
3224
|
* @module purecloud-platform-client-v2/api/CarrierServicesApi
|
|
3990
|
-
* @version 182.
|
|
3225
|
+
* @version 182.1.0
|
|
3991
3226
|
*/ /**
|
|
3992
3227
|
* Constructs a new CarrierServicesApi.
|
|
3993
3228
|
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
|
|
@@ -4007,7 +3242,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
|
|
|
4007
3242
|
*/},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return CarrierServicesApi;}();var ChatApi=/*#__PURE__*/function(){/**
|
|
4008
3243
|
* Chat service.
|
|
4009
3244
|
* @module purecloud-platform-client-v2/api/ChatApi
|
|
4010
|
-
* @version 182.
|
|
3245
|
+
* @version 182.1.0
|
|
4011
3246
|
*/ /**
|
|
4012
3247
|
* Constructs a new ChatApi.
|
|
4013
3248
|
* @alias module:purecloud-platform-client-v2/api/ChatApi
|
|
@@ -4204,7 +3439,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4204
3439
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ChatApi;}();var CoachingApi=/*#__PURE__*/function(){/**
|
|
4205
3440
|
* Coaching service.
|
|
4206
3441
|
* @module purecloud-platform-client-v2/api/CoachingApi
|
|
4207
|
-
* @version 182.
|
|
3442
|
+
* @version 182.1.0
|
|
4208
3443
|
*/ /**
|
|
4209
3444
|
* Constructs a new CoachingApi.
|
|
4210
3445
|
* @alias module:purecloud-platform-client-v2/api/CoachingApi
|
|
@@ -4357,7 +3592,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
4357
3592
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return CoachingApi;}();var ContentManagementApi=/*#__PURE__*/function(){/**
|
|
4358
3593
|
* ContentManagement service.
|
|
4359
3594
|
* @module purecloud-platform-client-v2/api/ContentManagementApi
|
|
4360
|
-
* @version 182.
|
|
3595
|
+
* @version 182.1.0
|
|
4361
3596
|
*/ /**
|
|
4362
3597
|
* Constructs a new ContentManagementApi.
|
|
4363
3598
|
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
|
|
@@ -4659,7 +3894,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
|
|
|
4659
3894
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ContentManagementApi;}();var ConversationsApi=/*#__PURE__*/function(){/**
|
|
4660
3895
|
* Conversations service.
|
|
4661
3896
|
* @module purecloud-platform-client-v2/api/ConversationsApi
|
|
4662
|
-
* @version 182.
|
|
3897
|
+
* @version 182.1.0
|
|
4663
3898
|
*/ /**
|
|
4664
3899
|
* Constructs a new ConversationsApi.
|
|
4665
3900
|
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
|
|
@@ -6383,7 +5618,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
|
|
|
6383
5618
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ConversationsApi;}();var DataExtensionsApi=/*#__PURE__*/function(){/**
|
|
6384
5619
|
* DataExtensions service.
|
|
6385
5620
|
* @module purecloud-platform-client-v2/api/DataExtensionsApi
|
|
6386
|
-
* @version 182.
|
|
5621
|
+
* @version 182.1.0
|
|
6387
5622
|
*/ /**
|
|
6388
5623
|
* Constructs a new DataExtensionsApi.
|
|
6389
5624
|
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
|
|
@@ -6404,7 +5639,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
6404
5639
|
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return DataExtensionsApi;}();var DownloadsApi=/*#__PURE__*/function(){/**
|
|
6405
5640
|
* Downloads service.
|
|
6406
5641
|
* @module purecloud-platform-client-v2/api/DownloadsApi
|
|
6407
|
-
* @version 182.
|
|
5642
|
+
* @version 182.1.0
|
|
6408
5643
|
*/ /**
|
|
6409
5644
|
* Constructs a new DownloadsApi.
|
|
6410
5645
|
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
|
|
@@ -6423,7 +5658,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
|
|
|
6423
5658
|
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return DownloadsApi;}();var EmailsApi=/*#__PURE__*/function(){/**
|
|
6424
5659
|
* Emails service.
|
|
6425
5660
|
* @module purecloud-platform-client-v2/api/EmailsApi
|
|
6426
|
-
* @version 182.
|
|
5661
|
+
* @version 182.1.0
|
|
6427
5662
|
*/ /**
|
|
6428
5663
|
* Constructs a new EmailsApi.
|
|
6429
5664
|
* @alias module:purecloud-platform-client-v2/api/EmailsApi
|
|
@@ -6441,7 +5676,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
6441
5676
|
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return EmailsApi;}();var EventsApi=/*#__PURE__*/function(){/**
|
|
6442
5677
|
* Events service.
|
|
6443
5678
|
* @module purecloud-platform-client-v2/api/EventsApi
|
|
6444
|
-
* @version 182.
|
|
5679
|
+
* @version 182.1.0
|
|
6445
5680
|
*/ /**
|
|
6446
5681
|
* Constructs a new EventsApi.
|
|
6447
5682
|
* @alias module:purecloud-platform-client-v2/api/EventsApi
|
|
@@ -6466,7 +5701,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
6466
5701
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return EventsApi;}();var ExternalContactsApi=/*#__PURE__*/function(){/**
|
|
6467
5702
|
* ExternalContacts service.
|
|
6468
5703
|
* @module purecloud-platform-client-v2/api/ExternalContactsApi
|
|
6469
|
-
* @version 182.
|
|
5704
|
+
* @version 182.1.0
|
|
6470
5705
|
*/ /**
|
|
6471
5706
|
* Constructs a new ExternalContactsApi.
|
|
6472
5707
|
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
|
|
@@ -6921,7 +6156,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
|
|
|
6921
6156
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ExternalContactsApi;}();var FaxApi=/*#__PURE__*/function(){/**
|
|
6922
6157
|
* Fax service.
|
|
6923
6158
|
* @module purecloud-platform-client-v2/api/FaxApi
|
|
6924
|
-
* @version 182.
|
|
6159
|
+
* @version 182.1.0
|
|
6925
6160
|
*/ /**
|
|
6926
6161
|
* Constructs a new FaxApi.
|
|
6927
6162
|
* @alias module:purecloud-platform-client-v2/api/FaxApi
|
|
@@ -6962,7 +6197,7 @@ if(documentId===undefined||documentId===null){throw'Missing the required paramet
|
|
|
6962
6197
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putFaxDocument';}return this.apiClient.callApi('/api/v2/fax/documents/{documentId}','PUT',{'documentId':documentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return FaxApi;}();var FlowsApi=/*#__PURE__*/function(){/**
|
|
6963
6198
|
* Flows service.
|
|
6964
6199
|
* @module purecloud-platform-client-v2/api/FlowsApi
|
|
6965
|
-
* @version 182.
|
|
6200
|
+
* @version 182.1.0
|
|
6966
6201
|
*/ /**
|
|
6967
6202
|
* Constructs a new FlowsApi.
|
|
6968
6203
|
* @alias module:purecloud-platform-client-v2/api/FlowsApi
|
|
@@ -7011,7 +6246,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7011
6246
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return FlowsApi;}();var GamificationApi=/*#__PURE__*/function(){/**
|
|
7012
6247
|
* Gamification service.
|
|
7013
6248
|
* @module purecloud-platform-client-v2/api/GamificationApi
|
|
7014
|
-
* @version 182.
|
|
6249
|
+
* @version 182.1.0
|
|
7015
6250
|
*/ /**
|
|
7016
6251
|
* Constructs a new GamificationApi.
|
|
7017
6252
|
* @alias module:purecloud-platform-client-v2/api/GamificationApi
|
|
@@ -7551,7 +6786,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7551
6786
|
if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return GamificationApi;}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
|
|
7552
6787
|
* GeneralDataProtectionRegulation service.
|
|
7553
6788
|
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
7554
|
-
* @version 182.
|
|
6789
|
+
* @version 182.1.0
|
|
7555
6790
|
*/ /**
|
|
7556
6791
|
* Constructs a new GeneralDataProtectionRegulationApi.
|
|
7557
6792
|
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
|
|
@@ -7586,7 +6821,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
|
|
|
7586
6821
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return GeneralDataProtectionRegulationApi;}();var GeolocationApi=/*#__PURE__*/function(){/**
|
|
7587
6822
|
* Geolocation service.
|
|
7588
6823
|
* @module purecloud-platform-client-v2/api/GeolocationApi
|
|
7589
|
-
* @version 182.
|
|
6824
|
+
* @version 182.1.0
|
|
7590
6825
|
*/ /**
|
|
7591
6826
|
* Constructs a new GeolocationApi.
|
|
7592
6827
|
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
|
|
@@ -7620,7 +6855,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
7620
6855
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return GeolocationApi;}();var GreetingsApi=/*#__PURE__*/function(){/**
|
|
7621
6856
|
* Greetings service.
|
|
7622
6857
|
* @module purecloud-platform-client-v2/api/GreetingsApi
|
|
7623
|
-
* @version 182.
|
|
6858
|
+
* @version 182.1.0
|
|
7624
6859
|
*/ /**
|
|
7625
6860
|
* Constructs a new GreetingsApi.
|
|
7626
6861
|
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
|
|
@@ -7727,7 +6962,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
7727
6962
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return GreetingsApi;}();var GroupsApi=/*#__PURE__*/function(){/**
|
|
7728
6963
|
* Groups service.
|
|
7729
6964
|
* @module purecloud-platform-client-v2/api/GroupsApi
|
|
7730
|
-
* @version 182.
|
|
6965
|
+
* @version 182.1.0
|
|
7731
6966
|
*/ /**
|
|
7732
6967
|
* Constructs a new GroupsApi.
|
|
7733
6968
|
* @alias module:purecloud-platform-client-v2/api/GroupsApi
|
|
@@ -7860,7 +7095,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
|
|
|
7860
7095
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return GroupsApi;}();var IdentityProviderApi=/*#__PURE__*/function(){/**
|
|
7861
7096
|
* IdentityProvider service.
|
|
7862
7097
|
* @module purecloud-platform-client-v2/api/IdentityProviderApi
|
|
7863
|
-
* @version 182.
|
|
7098
|
+
* @version 182.1.0
|
|
7864
7099
|
*/ /**
|
|
7865
7100
|
* Constructs a new IdentityProviderApi.
|
|
7866
7101
|
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
|
|
@@ -7994,7 +7229,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
7994
7229
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return IdentityProviderApi;}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
|
|
7995
7230
|
* InfrastructureAsCode service.
|
|
7996
7231
|
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
7997
|
-
* @version 182.
|
|
7232
|
+
* @version 182.1.0
|
|
7998
7233
|
*/ /**
|
|
7999
7234
|
* Constructs a new InfrastructureAsCodeApi.
|
|
8000
7235
|
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
|
|
@@ -8048,7 +7283,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
|
|
|
8048
7283
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return InfrastructureAsCodeApi;}();var IntegrationsApi=/*#__PURE__*/function(){/**
|
|
8049
7284
|
* Integrations service.
|
|
8050
7285
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8051
|
-
* @version 182.
|
|
7286
|
+
* @version 182.1.0
|
|
8052
7287
|
*/ /**
|
|
8053
7288
|
* Constructs a new IntegrationsApi.
|
|
8054
7289
|
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
|
|
@@ -8569,7 +7804,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
|
|
|
8569
7804
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return IntegrationsApi;}();var JourneyApi=/*#__PURE__*/function(){/**
|
|
8570
7805
|
* Journey service.
|
|
8571
7806
|
* @module purecloud-platform-client-v2/api/JourneyApi
|
|
8572
|
-
* @version 182.
|
|
7807
|
+
* @version 182.1.0
|
|
8573
7808
|
*/ /**
|
|
8574
7809
|
* Constructs a new JourneyApi.
|
|
8575
7810
|
* @alias module:purecloud-platform-client-v2/api/JourneyApi
|
|
@@ -8874,7 +8109,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
8874
8109
|
*/},{key:"postJourneySegments",value:function postJourneySegments(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/segments','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return JourneyApi;}();var KnowledgeApi=/*#__PURE__*/function(){/**
|
|
8875
8110
|
* Knowledge service.
|
|
8876
8111
|
* @module purecloud-platform-client-v2/api/KnowledgeApi
|
|
8877
|
-
* @version 182.
|
|
8112
|
+
* @version 182.1.0
|
|
8878
8113
|
*/ /**
|
|
8879
8114
|
* Constructs a new KnowledgeApi.
|
|
8880
8115
|
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
|
|
@@ -9671,7 +8906,7 @@ if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the requir
|
|
|
9671
8906
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return KnowledgeApi;}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
|
|
9672
8907
|
* LanguageUnderstanding service.
|
|
9673
8908
|
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
9674
|
-
* @version 182.
|
|
8909
|
+
* @version 182.1.0
|
|
9675
8910
|
*/ /**
|
|
9676
8911
|
* Constructs a new LanguageUnderstandingApi.
|
|
9677
8912
|
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
|
|
@@ -9927,7 +9162,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
|
|
|
9927
9162
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return LanguageUnderstandingApi;}();var LanguagesApi=/*#__PURE__*/function(){/**
|
|
9928
9163
|
* Languages service.
|
|
9929
9164
|
* @module purecloud-platform-client-v2/api/LanguagesApi
|
|
9930
|
-
* @version 182.
|
|
9165
|
+
* @version 182.1.0
|
|
9931
9166
|
*/ /**
|
|
9932
9167
|
* Constructs a new LanguagesApi.
|
|
9933
9168
|
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
|
|
@@ -9982,7 +9217,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
9982
9217
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return LanguagesApi;}();var LearningApi=/*#__PURE__*/function(){/**
|
|
9983
9218
|
* Learning service.
|
|
9984
9219
|
* @module purecloud-platform-client-v2/api/LearningApi
|
|
9985
|
-
* @version 182.
|
|
9220
|
+
* @version 182.1.0
|
|
9986
9221
|
*/ /**
|
|
9987
9222
|
* Constructs a new LearningApi.
|
|
9988
9223
|
* @alias module:purecloud-platform-client-v2/api/LearningApi
|
|
@@ -10201,7 +9436,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
|
|
|
10201
9436
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return LearningApi;}();var LicenseApi=/*#__PURE__*/function(){/**
|
|
10202
9437
|
* License service.
|
|
10203
9438
|
* @module purecloud-platform-client-v2/api/LicenseApi
|
|
10204
|
-
* @version 182.
|
|
9439
|
+
* @version 182.1.0
|
|
10205
9440
|
*/ /**
|
|
10206
9441
|
* Constructs a new LicenseApi.
|
|
10207
9442
|
* @alias module:purecloud-platform-client-v2/api/LicenseApi
|
|
@@ -10255,7 +9490,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
|
|
|
10255
9490
|
*/},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return LicenseApi;}();var LocationsApi=/*#__PURE__*/function(){/**
|
|
10256
9491
|
* Locations service.
|
|
10257
9492
|
* @module purecloud-platform-client-v2/api/LocationsApi
|
|
10258
|
-
* @version 182.
|
|
9493
|
+
* @version 182.1.0
|
|
10259
9494
|
*/ /**
|
|
10260
9495
|
* Constructs a new LocationsApi.
|
|
10261
9496
|
* @alias module:purecloud-platform-client-v2/api/LocationsApi
|
|
@@ -10314,7 +9549,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10314
9549
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return LocationsApi;}();var MessagingApi=/*#__PURE__*/function(){/**
|
|
10315
9550
|
* Messaging service.
|
|
10316
9551
|
* @module purecloud-platform-client-v2/api/MessagingApi
|
|
10317
|
-
* @version 182.
|
|
9552
|
+
* @version 182.1.0
|
|
10318
9553
|
*/ /**
|
|
10319
9554
|
* Constructs a new MessagingApi.
|
|
10320
9555
|
* @alias module:purecloud-platform-client-v2/api/MessagingApi
|
|
@@ -10404,7 +9639,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10404
9639
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return MessagingApi;}();var MobileDevicesApi=/*#__PURE__*/function(){/**
|
|
10405
9640
|
* MobileDevices service.
|
|
10406
9641
|
* @module purecloud-platform-client-v2/api/MobileDevicesApi
|
|
10407
|
-
* @version 182.
|
|
9642
|
+
* @version 182.1.0
|
|
10408
9643
|
*/ /**
|
|
10409
9644
|
* Constructs a new MobileDevicesApi.
|
|
10410
9645
|
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
|
|
@@ -10443,7 +9678,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10443
9678
|
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return MobileDevicesApi;}();var NotificationsApi=/*#__PURE__*/function(){/**
|
|
10444
9679
|
* Notifications service.
|
|
10445
9680
|
* @module purecloud-platform-client-v2/api/NotificationsApi
|
|
10446
|
-
* @version 182.
|
|
9681
|
+
* @version 182.1.0
|
|
10447
9682
|
*/ /**
|
|
10448
9683
|
* Constructs a new NotificationsApi.
|
|
10449
9684
|
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
|
|
@@ -10500,7 +9735,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
|
|
|
10500
9735
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return NotificationsApi;}();var OAuthApi=/*#__PURE__*/function(){/**
|
|
10501
9736
|
* OAuth service.
|
|
10502
9737
|
* @module purecloud-platform-client-v2/api/OAuthApi
|
|
10503
|
-
* @version 182.
|
|
9738
|
+
* @version 182.1.0
|
|
10504
9739
|
*/ /**
|
|
10505
9740
|
* Constructs a new OAuthApi.
|
|
10506
9741
|
* @alias module:purecloud-platform-client-v2/api/OAuthApi
|
|
@@ -10585,7 +9820,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
|
|
|
10585
9820
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return OAuthApi;}();var ObjectsApi=/*#__PURE__*/function(){/**
|
|
10586
9821
|
* Objects service.
|
|
10587
9822
|
* @module purecloud-platform-client-v2/api/ObjectsApi
|
|
10588
|
-
* @version 182.
|
|
9823
|
+
* @version 182.1.0
|
|
10589
9824
|
*/ /**
|
|
10590
9825
|
* Constructs a new ObjectsApi.
|
|
10591
9826
|
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
|
|
@@ -10656,7 +9891,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
|
|
|
10656
9891
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ObjectsApi;}();var OperationalEventsApi=/*#__PURE__*/function(){/**
|
|
10657
9892
|
* OperationalEvents service.
|
|
10658
9893
|
* @module purecloud-platform-client-v2/api/OperationalEventsApi
|
|
10659
|
-
* @version 182.
|
|
9894
|
+
* @version 182.1.0
|
|
10660
9895
|
*/ /**
|
|
10661
9896
|
* Constructs a new OperationalEventsApi.
|
|
10662
9897
|
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
|
|
@@ -10674,7 +9909,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
|
|
|
10674
9909
|
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return OperationalEventsApi;}();var OrganizationApi=/*#__PURE__*/function(){/**
|
|
10675
9910
|
* Organization service.
|
|
10676
9911
|
* @module purecloud-platform-client-v2/api/OrganizationApi
|
|
10677
|
-
* @version 182.
|
|
9912
|
+
* @version 182.1.0
|
|
10678
9913
|
*/ /**
|
|
10679
9914
|
* Constructs a new OrganizationApi.
|
|
10680
9915
|
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
|
|
@@ -10776,7 +10011,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
10776
10011
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return OrganizationApi;}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
|
|
10777
10012
|
* OrganizationAuthorization service.
|
|
10778
10013
|
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
10779
|
-
* @version 182.
|
|
10014
|
+
* @version 182.1.0
|
|
10780
10015
|
*/ /**
|
|
10781
10016
|
* Constructs a new OrganizationAuthorizationApi.
|
|
10782
10017
|
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
|
|
@@ -11099,7 +10334,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
|
|
|
11099
10334
|
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return OrganizationAuthorizationApi;}();var OutboundApi=/*#__PURE__*/function(){/**
|
|
11100
10335
|
* Outbound service.
|
|
11101
10336
|
* @module purecloud-platform-client-v2/api/OutboundApi
|
|
11102
|
-
* @version 182.
|
|
10337
|
+
* @version 182.1.0
|
|
11103
10338
|
*/ /**
|
|
11104
10339
|
* Constructs a new OutboundApi.
|
|
11105
10340
|
* @alias module:purecloud-platform-client-v2/api/OutboundApi
|
|
@@ -11990,7 +11225,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
11990
11225
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return OutboundApi;}();var PresenceApi=/*#__PURE__*/function(){/**
|
|
11991
11226
|
* Presence service.
|
|
11992
11227
|
* @module purecloud-platform-client-v2/api/PresenceApi
|
|
11993
|
-
* @version 182.
|
|
11228
|
+
* @version 182.1.0
|
|
11994
11229
|
*/ /**
|
|
11995
11230
|
* Constructs a new PresenceApi.
|
|
11996
11231
|
* @alias module:purecloud-platform-client-v2/api/PresenceApi
|
|
@@ -12163,7 +11398,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
12163
11398
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return PresenceApi;}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
|
|
12164
11399
|
* ProcessAutomation service.
|
|
12165
11400
|
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
12166
|
-
* @version 182.
|
|
11401
|
+
* @version 182.1.0
|
|
12167
11402
|
*/ /**
|
|
12168
11403
|
* Constructs a new ProcessAutomationApi.
|
|
12169
11404
|
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
|
|
@@ -12226,7 +11461,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
|
|
|
12226
11461
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ProcessAutomationApi;}();var QualityApi=/*#__PURE__*/function(){/**
|
|
12227
11462
|
* Quality service.
|
|
12228
11463
|
* @module purecloud-platform-client-v2/api/QualityApi
|
|
12229
|
-
* @version 182.
|
|
11464
|
+
* @version 182.1.0
|
|
12230
11465
|
*/ /**
|
|
12231
11466
|
* Constructs a new QualityApi.
|
|
12232
11467
|
* @alias module:purecloud-platform-client-v2/api/QualityApi
|
|
@@ -12694,7 +11929,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
|
|
|
12694
11929
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return QualityApi;}();var RecordingApi=/*#__PURE__*/function(){/**
|
|
12695
11930
|
* Recording service.
|
|
12696
11931
|
* @module purecloud-platform-client-v2/api/RecordingApi
|
|
12697
|
-
* @version 182.
|
|
11932
|
+
* @version 182.1.0
|
|
12698
11933
|
*/ /**
|
|
12699
11934
|
* Constructs a new RecordingApi.
|
|
12700
11935
|
* @alias module:purecloud-platform-client-v2/api/RecordingApi
|
|
@@ -13101,7 +12336,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
13101
12336
|
*/},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return RecordingApi;}();var ResponseManagementApi=/*#__PURE__*/function(){/**
|
|
13102
12337
|
* ResponseManagement service.
|
|
13103
12338
|
* @module purecloud-platform-client-v2/api/ResponseManagementApi
|
|
13104
|
-
* @version 182.
|
|
12339
|
+
* @version 182.1.0
|
|
13105
12340
|
*/ /**
|
|
13106
12341
|
* Constructs a new ResponseManagementApi.
|
|
13107
12342
|
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
|
|
@@ -13217,7 +12452,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
|
|
|
13217
12452
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ResponseManagementApi;}();var RoutingApi=/*#__PURE__*/function(){/**
|
|
13218
12453
|
* Routing service.
|
|
13219
12454
|
* @module purecloud-platform-client-v2/api/RoutingApi
|
|
13220
|
-
* @version 182.
|
|
12455
|
+
* @version 182.1.0
|
|
13221
12456
|
*/ /**
|
|
13222
12457
|
* Constructs a new RoutingApi.
|
|
13223
12458
|
* @alias module:purecloud-platform-client-v2/api/RoutingApi
|
|
@@ -14123,7 +13358,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14123
13358
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return RoutingApi;}();var SCIMApi=/*#__PURE__*/function(){/**
|
|
14124
13359
|
* SCIM service.
|
|
14125
13360
|
* @module purecloud-platform-client-v2/api/SCIMApi
|
|
14126
|
-
* @version 182.
|
|
13361
|
+
* @version 182.1.0
|
|
14127
13362
|
*/ /**
|
|
14128
13363
|
* Constructs a new SCIMApi.
|
|
14129
13364
|
* @alias module:purecloud-platform-client-v2/api/SCIMApi
|
|
@@ -14348,7 +13583,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
14348
13583
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);return SCIMApi;}();var ScriptsApi=/*#__PURE__*/function(){/**
|
|
14349
13584
|
* Scripts service.
|
|
14350
13585
|
* @module purecloud-platform-client-v2/api/ScriptsApi
|
|
14351
|
-
* @version 182.
|
|
13586
|
+
* @version 182.1.0
|
|
14352
13587
|
*/ /**
|
|
14353
13588
|
* Constructs a new ScriptsApi.
|
|
14354
13589
|
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
|
|
@@ -14484,7 +13719,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
|
|
|
14484
13719
|
*/},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return ScriptsApi;}();var SearchApi=/*#__PURE__*/function(){/**
|
|
14485
13720
|
* Search service.
|
|
14486
13721
|
* @module purecloud-platform-client-v2/api/SearchApi
|
|
14487
|
-
* @version 182.
|
|
13722
|
+
* @version 182.1.0
|
|
14488
13723
|
*/ /**
|
|
14489
13724
|
* Constructs a new SearchApi.
|
|
14490
13725
|
* @alias module:purecloud-platform-client-v2/api/SearchApi
|
|
@@ -14644,7 +13879,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14644
13879
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return SearchApi;}();var SettingsApi=/*#__PURE__*/function(){/**
|
|
14645
13880
|
* Settings service.
|
|
14646
13881
|
* @module purecloud-platform-client-v2/api/SettingsApi
|
|
14647
|
-
* @version 182.
|
|
13882
|
+
* @version 182.1.0
|
|
14648
13883
|
*/ /**
|
|
14649
13884
|
* Constructs a new SettingsApi.
|
|
14650
13885
|
* @alias module:purecloud-platform-client-v2/api/SettingsApi
|
|
@@ -14662,7 +13897,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14662
13897
|
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return SettingsApi;}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
|
|
14663
13898
|
* SpeechTextAnalytics service.
|
|
14664
13899
|
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
14665
|
-
* @version 182.
|
|
13900
|
+
* @version 182.1.0
|
|
14666
13901
|
*/ /**
|
|
14667
13902
|
* Constructs a new SpeechTextAnalyticsApi.
|
|
14668
13903
|
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
|
|
@@ -14905,7 +14140,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
|
|
|
14905
14140
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return SpeechTextAnalyticsApi;}();var StationsApi=/*#__PURE__*/function(){/**
|
|
14906
14141
|
* Stations service.
|
|
14907
14142
|
* @module purecloud-platform-client-v2/api/StationsApi
|
|
14908
|
-
* @version 182.
|
|
14143
|
+
* @version 182.1.0
|
|
14909
14144
|
*/ /**
|
|
14910
14145
|
* Constructs a new StationsApi.
|
|
14911
14146
|
* @alias module:purecloud-platform-client-v2/api/StationsApi
|
|
@@ -14937,7 +14172,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
|
|
|
14937
14172
|
*/},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return StationsApi;}();var SuggestApi=/*#__PURE__*/function(){/**
|
|
14938
14173
|
* Suggest service.
|
|
14939
14174
|
* @module purecloud-platform-client-v2/api/SuggestApi
|
|
14940
|
-
* @version 182.
|
|
14175
|
+
* @version 182.1.0
|
|
14941
14176
|
*/ /**
|
|
14942
14177
|
* Constructs a new SuggestApi.
|
|
14943
14178
|
* @alias module:purecloud-platform-client-v2/api/SuggestApi
|
|
@@ -14977,7 +14212,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
14977
14212
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return SuggestApi;}();var TaskManagementApi=/*#__PURE__*/function(){/**
|
|
14978
14213
|
* TaskManagement service.
|
|
14979
14214
|
* @module purecloud-platform-client-v2/api/TaskManagementApi
|
|
14980
|
-
* @version 182.
|
|
14215
|
+
* @version 182.1.0
|
|
14981
14216
|
*/ /**
|
|
14982
14217
|
* Constructs a new TaskManagementApi.
|
|
14983
14218
|
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
|
|
@@ -15319,7 +14554,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
|
|
|
15319
14554
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return TaskManagementApi;}();var TeamsApi=/*#__PURE__*/function(){/**
|
|
15320
14555
|
* Teams service.
|
|
15321
14556
|
* @module purecloud-platform-client-v2/api/TeamsApi
|
|
15322
|
-
* @version 182.
|
|
14557
|
+
* @version 182.1.0
|
|
15323
14558
|
*/ /**
|
|
15324
14559
|
* Constructs a new TeamsApi.
|
|
15325
14560
|
* @alias module:purecloud-platform-client-v2/api/TeamsApi
|
|
@@ -15398,7 +14633,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
15398
14633
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return TeamsApi;}();var TelephonyApi=/*#__PURE__*/function(){/**
|
|
15399
14634
|
* Telephony service.
|
|
15400
14635
|
* @module purecloud-platform-client-v2/api/TelephonyApi
|
|
15401
|
-
* @version 182.
|
|
14636
|
+
* @version 182.1.0
|
|
15402
14637
|
*/ /**
|
|
15403
14638
|
* Constructs a new TelephonyApi.
|
|
15404
14639
|
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
|
|
@@ -15447,7 +14682,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
|
|
|
15447
14682
|
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return TelephonyApi;}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
|
|
15448
14683
|
* TelephonyProvidersEdge service.
|
|
15449
14684
|
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
15450
|
-
* @version 182.
|
|
14685
|
+
* @version 182.1.0
|
|
15451
14686
|
*/ /**
|
|
15452
14687
|
* Constructs a new TelephonyProvidersEdgeApi.
|
|
15453
14688
|
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
|
|
@@ -16266,7 +15501,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
|
|
|
16266
15501
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return TelephonyProvidersEdgeApi;}();var TextbotsApi=/*#__PURE__*/function(){/**
|
|
16267
15502
|
* Textbots service.
|
|
16268
15503
|
* @module purecloud-platform-client-v2/api/TextbotsApi
|
|
16269
|
-
* @version 182.
|
|
15504
|
+
* @version 182.1.0
|
|
16270
15505
|
*/ /**
|
|
16271
15506
|
* Constructs a new TextbotsApi.
|
|
16272
15507
|
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
|
|
@@ -16301,7 +15536,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
|
|
|
16301
15536
|
if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return TextbotsApi;}();var TokensApi=/*#__PURE__*/function(){/**
|
|
16302
15537
|
* Tokens service.
|
|
16303
15538
|
* @module purecloud-platform-client-v2/api/TokensApi
|
|
16304
|
-
* @version 182.
|
|
15539
|
+
* @version 182.1.0
|
|
16305
15540
|
*/ /**
|
|
16306
15541
|
* Constructs a new TokensApi.
|
|
16307
15542
|
* @alias module:purecloud-platform-client-v2/api/TokensApi
|
|
@@ -16337,7 +15572,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
16337
15572
|
*/},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);return TokensApi;}();var UploadsApi=/*#__PURE__*/function(){/**
|
|
16338
15573
|
* Uploads service.
|
|
16339
15574
|
* @module purecloud-platform-client-v2/api/UploadsApi
|
|
16340
|
-
* @version 182.
|
|
15575
|
+
* @version 182.1.0
|
|
16341
15576
|
*/ /**
|
|
16342
15577
|
* Constructs a new UploadsApi.
|
|
16343
15578
|
* @alias module:purecloud-platform-client-v2/api/UploadsApi
|
|
@@ -16379,7 +15614,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16379
15614
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return UploadsApi;}();var UsageApi=/*#__PURE__*/function(){/**
|
|
16380
15615
|
* Usage service.
|
|
16381
15616
|
* @module purecloud-platform-client-v2/api/UsageApi
|
|
16382
|
-
* @version 182.
|
|
15617
|
+
* @version 182.1.0
|
|
16383
15618
|
*/ /**
|
|
16384
15619
|
* Constructs a new UsageApi.
|
|
16385
15620
|
* @alias module:purecloud-platform-client-v2/api/UsageApi
|
|
@@ -16430,7 +15665,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
16430
15665
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return UsageApi;}();var UserRecordingsApi=/*#__PURE__*/function(){/**
|
|
16431
15666
|
* UserRecordings service.
|
|
16432
15667
|
* @module purecloud-platform-client-v2/api/UserRecordingsApi
|
|
16433
|
-
* @version 182.
|
|
15668
|
+
* @version 182.1.0
|
|
16434
15669
|
*/ /**
|
|
16435
15670
|
* Constructs a new UserRecordingsApi.
|
|
16436
15671
|
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
|
|
@@ -16479,7 +15714,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
|
|
|
16479
15714
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return UserRecordingsApi;}();var UsersApi=/*#__PURE__*/function(){/**
|
|
16480
15715
|
* Users service.
|
|
16481
15716
|
* @module purecloud-platform-client-v2/api/UsersApi
|
|
16482
|
-
* @version 182.
|
|
15717
|
+
* @version 182.1.0
|
|
16483
15718
|
*/ /**
|
|
16484
15719
|
* Constructs a new UsersApi.
|
|
16485
15720
|
* @alias module:purecloud-platform-client-v2/api/UsersApi
|
|
@@ -17138,7 +16373,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
|
|
|
17138
16373
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return UsersApi;}();var UtilitiesApi=/*#__PURE__*/function(){/**
|
|
17139
16374
|
* Utilities service.
|
|
17140
16375
|
* @module purecloud-platform-client-v2/api/UtilitiesApi
|
|
17141
|
-
* @version 182.
|
|
16376
|
+
* @version 182.1.0
|
|
17142
16377
|
*/ /**
|
|
17143
16378
|
* Constructs a new UtilitiesApi.
|
|
17144
16379
|
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
|
|
@@ -17165,7 +16400,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17165
16400
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return UtilitiesApi;}();var VoicemailApi=/*#__PURE__*/function(){/**
|
|
17166
16401
|
* Voicemail service.
|
|
17167
16402
|
* @module purecloud-platform-client-v2/api/VoicemailApi
|
|
17168
|
-
* @version 182.
|
|
16403
|
+
* @version 182.1.0
|
|
17169
16404
|
*/ /**
|
|
17170
16405
|
* Constructs a new VoicemailApi.
|
|
17171
16406
|
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
|
|
@@ -17314,7 +16549,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
|
|
|
17314
16549
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return VoicemailApi;}();var WebChatApi=/*#__PURE__*/function(){/**
|
|
17315
16550
|
* WebChat service.
|
|
17316
16551
|
* @module purecloud-platform-client-v2/api/WebChatApi
|
|
17317
|
-
* @version 182.
|
|
16552
|
+
* @version 182.1.0
|
|
17318
16553
|
*/ /**
|
|
17319
16554
|
* Constructs a new WebChatApi.
|
|
17320
16555
|
* @alias module:purecloud-platform-client-v2/api/WebChatApi
|
|
@@ -17447,7 +16682,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
|
|
|
17447
16682
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return WebChatApi;}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
|
|
17448
16683
|
* WebDeployments service.
|
|
17449
16684
|
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
17450
|
-
* @version 182.
|
|
16685
|
+
* @version 182.1.0
|
|
17451
16686
|
*/ /**
|
|
17452
16687
|
* Constructs a new WebDeploymentsApi.
|
|
17453
16688
|
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
|
|
@@ -17568,7 +16803,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17568
16803
|
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return WebDeploymentsApi;}();var WebMessagingApi=/*#__PURE__*/function(){/**
|
|
17569
16804
|
* WebMessaging service.
|
|
17570
16805
|
* @module purecloud-platform-client-v2/api/WebMessagingApi
|
|
17571
|
-
* @version 182.
|
|
16806
|
+
* @version 182.1.0
|
|
17572
16807
|
*/ /**
|
|
17573
16808
|
* Constructs a new WebMessagingApi.
|
|
17574
16809
|
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
|
|
@@ -17584,7 +16819,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
|
|
|
17584
16819
|
*/_createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return WebMessagingApi;}();var WidgetsApi=/*#__PURE__*/function(){/**
|
|
17585
16820
|
* Widgets service.
|
|
17586
16821
|
* @module purecloud-platform-client-v2/api/WidgetsApi
|
|
17587
|
-
* @version 182.
|
|
16822
|
+
* @version 182.1.0
|
|
17588
16823
|
*/ /**
|
|
17589
16824
|
* Constructs a new WidgetsApi.
|
|
17590
16825
|
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
|
|
@@ -17619,7 +16854,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
|
|
|
17619
16854
|
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);return WidgetsApi;}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
|
|
17620
16855
|
* WorkforceManagement service.
|
|
17621
16856
|
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
17622
|
-
* @version 182.
|
|
16857
|
+
* @version 182.1.0
|
|
17623
16858
|
*/ /**
|
|
17624
16859
|
* Constructs a new WorkforceManagementApi.
|
|
17625
16860
|
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
|
|
@@ -18910,7 +18145,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
|
|
|
18910
18145
|
* </pre>
|
|
18911
18146
|
* </p>
|
|
18912
18147
|
* @module purecloud-platform-client-v2/index
|
|
18913
|
-
* @version 182.
|
|
18148
|
+
* @version 182.1.0
|
|
18914
18149
|
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
|
|
18915
18150
|
* The ApiClient constructor.
|
|
18916
18151
|
* @property {module:purecloud-platform-client-v2/ApiClient}
|