Comparing version 1.3.3 to 1.3.4
@@ -1,2 +0,2 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,function(){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";var o=r(1),n=r(3),i=n.fetchDecorator;e.exports={fetch:i(o)}},function(e,t,r){r(2),e.exports=self.fetch.bind(self)},function(e,t){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return m.iterable&&(t[Symbol.iterator]=function(){return t}),t}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function s(e){var t=new FileReader,r=a(t);return t.readAsArrayBuffer(e),r}function f(e){var t=new FileReader,r=a(t);return t.readAsText(e),r}function u(e){for(var t=new Uint8Array(e),r=new Array(t.length),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(m.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(m.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(m.arrayBuffer&&m.blob&&w(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!g(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(u(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e){var t=e.toUpperCase();return j.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var r=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}}),t}function h(e){var t=new n;return e.split("\r\n").forEach(function(e){var r=e.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();t.append(o,n)}}),t}function b(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new n(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],w=function(e){return e&&DataView.prototype.isPrototypeOf(e)},g=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};n.prototype.append=function(e,o){e=t(e),o=r(o);var n=this.map[e];this.map[e]=n?n+","+o:o},n.prototype.delete=function(e){delete this.map[t(e)]},n.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},n.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},n.prototype.set=function(e,o){this.map[t(e)]=r(o)},n.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},n.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),o(e)},n.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},n.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),o(e)},m.iterable&&(n.prototype[Symbol.iterator]=n.prototype.entries);var j=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},l.call(d.prototype),l.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];b.redirect=function(e,t){if(O.indexOf(t)===-1)throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=n,e.Request=d,e.Response=b,e.fetch=function(e,t){return new Promise(function(r,o){var n=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:h(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;r(new b(t,e))},i.onerror=function(){o(new TypeError("Network request failed"))},i.ontimeout=function(){o(new TypeError("Network request failed"))},i.open(n.method,n.url,!0),"include"===n.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),n.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof n._bodyInit?null:n._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t,r){(function(t){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function n(e,t){var r={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(4),f=r(9),u=r(10),c="object"===("undefined"==typeof window?"undefined":a(window))?window:t;c.Headers.prototype.keys=t.Headers.prototype.keys||function(){return Object.keys(this._headers||{})},c.Headers.prototype.values=t.Headers.prototype.values||function(){var e=this;return Object.keys(this._headers||{}).map(function(t){return e._headers[k]})};var l=function(e){return e},p={},d="",y=function(e){return e},h=function(e){return e instanceof Headers?function(){return Array.from(e.keys()).reduce(function(t,r){return t[r]=e.get(r),t},{})}():e},b=function(e,t,r){var o=t.ssl,n=(t.method,t.query);return"function"==typeof r?r(e,t):("string"==typeof r&&(e=e.replace(/^\/\//,r)),/^\/\//.test(e)&&(e=(o?"https":"http")+":"+e),n&&(e+=""+(e.match(/\?/)?"&":"?")+s.stringify(n)),e)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.method,o=void 0===r?"GET":r,c=t.query,l=void 0===c?{}:c,y=t.data,m=void 0===y?{}:y,v=t.body,w=void 0===v?{}:v,g=t.headers,j=void 0===g?{}:g,O=(t.json,n(t,["method","query","data","body","headers","json"])),A="GET"===o||"HEAD"===o,x="undefined"!=typeof window&&"undefined"!=typeof FormData&&w instanceof FormData;if(A?l="object"===("undefined"==typeof l?"undefined":a(l))?i({},l,m,w):0===Object.keys(l).length?m:l:w="object"!==("undefined"==typeof w?"undefined":a(w))||x?0!==Object.keys(w).length||x?w:m:i({},m,w),j=new Headers(i({},h(j),h(p))),A?"":j.set("Content-Type",j.get("Content-Type")||f(w)),"object"===("undefined"==typeof w?"undefined":a(w)))switch(j.get("Content-Type")){case u.form:w=s.stringify(w);break;case u.formData:var D=function(){var e=new FormData;return Object.keys(w).forEach(function(t){e.set(t,w[t])}),w=e,"break"}();if("break"===D)break}var E=i({method:o,query:l,headers:j},O);return A||(E.body=w),[b(e,E,d),E]},v=function(e){var t=function(){return e.call.apply(e,[void 0].concat(o(m.apply(void 0,arguments)))).then(y).then(l)};return t.callback=function(e){"function"==typeof e&&(l=e),delete t.callback},t.baseHost=function(e){d=e},t.headers=function(e){if("object"!==("undefined"==typeof e?"undefined":a(e))&&"function"!=typeof e)throw new Error("global headers must be object or function");p=e,delete t.headers},t};e.exports={fetchDecorator:v}}).call(t,function(){return this}())},function(e,t,r){"use strict";var o=r(5),n=r(8),i=r(7);e.exports={formats:i,parse:n,stringify:o}},function(e,t,r){"use strict";var o=r(6),n=r(7),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:o.encode,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,r,n,i,a,s,f,u,c,l,p){var d=t;if("function"==typeof f)d=f(r,d);else if(d instanceof Date)d=l(d);else if(null===d){if(i)return s?s(r):r;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||o.isBuffer(d))return s?[p(s(r))+"="+p(s(d))]:[p(r)+"="+p(String(d))];var y=[];if("undefined"==typeof d)return y;var h;if(Array.isArray(f))h=f;else{var b=Object.keys(d);h=u?b.sort(u):b}for(var m=0;m<h.length;++m){var v=h[m];a&&null===d[v]||(y=Array.isArray(d)?y.concat(e(d[v],n(r,v),n,i,a,s,f,u,c,l,p)):y.concat(e(d[v],r+(c?"."+v:"["+v+"]"),n,i,a,s,f,u,c,l,p)))}return y};e.exports=function(e,t){var r=e,o=t||{},a="undefined"==typeof o.delimiter?s.delimiter:o.delimiter,u="boolean"==typeof o.strictNullHandling?o.strictNullHandling:s.strictNullHandling,c="boolean"==typeof o.skipNulls?o.skipNulls:s.skipNulls,l="boolean"==typeof o.encode?o.encode:s.encode,p=l?"function"==typeof o.encoder?o.encoder:s.encoder:null,d="function"==typeof o.sort?o.sort:null,y="undefined"!=typeof o.allowDots&&o.allowDots,h="function"==typeof o.serializeDate?o.serializeDate:s.serializeDate;if("undefined"==typeof o.format)o.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,o.format))throw new TypeError("Unknown format option provided.");var b,m,v=n.formatters[o.format];if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof o.filter?(m=o.filter,r=m("",r)):Array.isArray(o.filter)&&(m=o.filter,b=m);var w=[];if("object"!=typeof r||null===r)return"";var g;g=o.arrayFormat in i?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var j=i[g];b||(b=Object.keys(r)),d&&b.sort(d);for(var O=0;O<b.length;++O){var A=b[O];c&&null===r[A]||(w=w.concat(f(r[A],A,j,u,c,p,m,d,y,h,v)))}return w.join(a)}},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!=typeof e[o]&&(r[o]=e[o]);return r},t.merge=function(e,o,n){if(!o)return e;if("object"!=typeof o){if(Array.isArray(e))e.push(o);else{if("object"!=typeof e)return[e,o];e[o]=!0}return e}if("object"!=typeof e)return[e].concat(o);var i=e;return Array.isArray(e)&&!Array.isArray(o)&&(i=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(o)?(o.forEach(function(o,i){r.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t.merge(e[i],o,n):e.push(o):e[i]=o}),e):Object.keys(o).reduce(function(e,r){var i=o[r];return Object.prototype.hasOwnProperty.call(e,r)?e[r]=t.merge(e[r],i,n):e[r]=i,e},i)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",n=0;n<t.length;++n){var i=t.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var o=r||[],n=o.indexOf(e);if(n!==-1)return o[n];if(o.push(e),Array.isArray(e)){for(var i=[],a=0;a<e.length;++a)e[a]&&"object"==typeof e[a]?i.push(t.compact(e[a],o)):"undefined"!=typeof e[a]&&i.push(e[a]);return i}var s=Object.keys(e);return s.forEach(function(r){e[r]=t.compact(e[r],o)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t){"use strict";var r=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";var o=r(6),n=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},o=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),i=0;i<o.length;++i){var a,s,f=o[i],u=f.indexOf("]=")===-1?f.indexOf("="):f.indexOf("]=")+1;u===-1?(a=t.decoder(f),s=t.strictNullHandling?null:""):(a=t.decoder(f.slice(0,u)),s=t.decoder(f.slice(u+1))),n.call(r,a)?r[a]=[].concat(r[a]).concat(s):r[a]=s}return r},s=function e(t,r,o){if(!t.length)return r;var n,i=t.shift();if("[]"===i)n=[],n=n.concat(e(t,r,o));else{n=o.plainObjects?Object.create(null):{};var a="["===i[0]&&"]"===i[i.length-1]?i.slice(1,i.length-1):i,s=parseInt(a,10);!isNaN(s)&&i!==a&&String(s)===a&&s>=0&&o.parseArrays&&s<=o.arrayLimit?(n=[],n[s]=e(t,r,o)):n[a]=e(t,r,o)}return n},f=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,i=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,f=i.exec(o),u=[];if(f[1]){if(!r.plainObjects&&n.call(Object.prototype,f[1])&&!r.allowPrototypes)return;u.push(f[1])}for(var c=0;null!==(f=a.exec(o))&&c<r.depth;)c+=1,(r.plainObjects||!n.call(Object.prototype,f[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&u.push(f[1]);return f&&u.push("["+o.slice(f.index)+"]"),s(u,t,r)}};e.exports=function(e,t){var r=t||{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=r.parseArrays!==!1,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||"undefined"==typeof e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?a(e,r):e,s=r.plainObjects?Object.create(null):{},u=Object.keys(n),c=0;c<u.length;++c){var l=u[c],p=f(l,n[l],r);s=o.merge(s,p,r)}return o.compact(s)}},function(e,t,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(10),i=function(e,t){if("undefined"!=typeof window&&"undefined"!=typeof FormData&&e instanceof FormData)return n.formData;if("string"==typeof e)try{if(JSON.parse(e))return n.json}catch(e){return n.text}return"object"===("undefined"==typeof e?"undefined":o(e))?t?n.json:n.form:n.text};e.exports=i},function(e,t){"use strict";e.exports={formData:"multipart/form-data",form:"application/x-www-form-urlencoded",json:"application/json",text:"text/plain"}}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,function(){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";var o=r(1),n=r(3),i=n.fetchDecorator;e.exports={fetch:i(o)}},function(e,t,r){r(2),e.exports=self.fetch.bind(self)},function(e,t){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return m.iterable&&(t[Symbol.iterator]=function(){return t}),t}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function i(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function s(e){var t=new FileReader,r=a(t);return t.readAsArrayBuffer(e),r}function f(e){var t=new FileReader,r=a(t);return t.readAsText(e),r}function u(e){for(var t=new Uint8Array(e),r=new Array(t.length),o=0;o<t.length;o++)r[o]=String.fromCharCode(t[o]);return r.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function l(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(m.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(m.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(m.arrayBuffer&&m.blob&&w(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!g(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(s)}),this.text=function(){var e=i(this);if(e)return e;if(this._bodyBlob)return f(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(u(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function p(e){var t=e.toUpperCase();return j.indexOf(t)>-1?t:e}function d(e,t){t=t||{};var r=t.body;if("string"==typeof e)this.url=e;else{if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new n(e.headers)),this.method=e.method,this.mode=e.mode,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new n(t.headers)),this.method=p(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(n))}}),t}function h(e){var t=new n;return e.split("\r\n").forEach(function(e){var r=e.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();t.append(o,n)}}),t}function b(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new n(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(m.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],w=function(e){return e&&DataView.prototype.isPrototypeOf(e)},g=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};n.prototype.append=function(e,o){e=t(e),o=r(o);var n=this.map[e];this.map[e]=n?n+","+o:o},n.prototype.delete=function(e){delete this.map[t(e)]},n.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},n.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},n.prototype.set=function(e,o){this.map[t(e)]=r(o)},n.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},n.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),o(e)},n.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},n.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),o(e)},m.iterable&&(n.prototype[Symbol.iterator]=n.prototype.entries);var j=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},l.call(d.prototype),l.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];b.redirect=function(e,t){if(O.indexOf(t)===-1)throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=n,e.Request=d,e.Response=b,e.fetch=function(e,t){return new Promise(function(r,o){var n=new d(e,t),i=new XMLHttpRequest;i.onload=function(){var e={status:i.status,statusText:i.statusText,headers:h(i.getAllResponseHeaders()||"")};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var t="response"in i?i.response:i.responseText;r(new b(t,e))},i.onerror=function(){o(new TypeError("Network request failed"))},i.ontimeout=function(){o(new TypeError("Network request failed"))},i.open(n.method,n.url,!0),"include"===n.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),n.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send("undefined"==typeof n._bodyInit?null:n._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t,r){(function(t){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function n(e,t){var r={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=r(4),f=r(9),u=r(10),c="object"===("undefined"==typeof window?"undefined":a(window))?window:t;"function"==typeof c.Headers&&(c.Headers.prototype.keys=c.Headers.prototype.keys||function(){return Object.keys(this._headers||{})},c.Headers.prototype.values=c.Headers.prototype.values||function(){var e=this;return Object.keys(this._headers||{}).map(function(t){return e._headers[k]})});var l=function(e){return e},p={},d="",y=function(e){return e},h=function(e){return e instanceof Headers?function(){return Array.from(e.keys()).reduce(function(t,r){return t[r]=e.get(r),t},{})}():e},b=function(e,t,r){var o=t.ssl,n=(t.method,t.query);return"function"==typeof r?r(e,t):("string"==typeof r&&(e=e.replace(/^\/\//,r)),/^\/\//.test(e)&&(e=(o?"https":"http")+":"+e),n&&(e+=""+(e.match(/\?/)?"&":"?")+s.stringify(n)),e)},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.method,o=void 0===r?"GET":r,c=t.query,l=void 0===c?{}:c,y=t.data,m=void 0===y?{}:y,v=t.body,w=void 0===v?{}:v,g=t.headers,j=void 0===g?{}:g,O=(t.json,n(t,["method","query","data","body","headers","json"])),A="GET"===o||"HEAD"===o,x="undefined"!=typeof window&&"undefined"!=typeof FormData&&w instanceof FormData;if(A?l="object"===("undefined"==typeof l?"undefined":a(l))?i({},l,m,w):0===Object.keys(l).length?m:l:w="object"!==("undefined"==typeof w?"undefined":a(w))||x?0!==Object.keys(w).length||x?w:m:i({},m,w),j=new Headers(i({},h(j),h(p))),A?"":j.set("Content-Type",j.get("Content-Type")||f(w)),"object"===("undefined"==typeof w?"undefined":a(w)))switch(j.get("Content-Type")){case u.form:w=s.stringify(w);break;case u.formData:var D=function(){var e=new FormData;return Object.keys(w).forEach(function(t){e.set(t,w[t])}),w=e,"break"}();if("break"===D)break}var E=i({method:o,query:l,headers:j},O);return A||(E.body=w),[b(e,E,d),E]},v=function(e){var t=function(){return e.call.apply(e,[void 0].concat(o(m.apply(void 0,arguments)))).then(y).then(l)};return t.callback=function(e){"function"==typeof e&&(l=e),delete t.callback},t.baseHost=function(e){d=e},t.headers=function(e){if("object"!==("undefined"==typeof e?"undefined":a(e))&&"function"!=typeof e)throw new Error("global headers must be object or function");p=e,delete t.headers},t};e.exports={fetchDecorator:v}}).call(t,function(){return this}())},function(e,t,r){"use strict";var o=r(5),n=r(8),i=r(7);e.exports={formats:i,parse:n,stringify:o}},function(e,t,r){"use strict";var o=r(6),n=r(7),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:o.encode,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,r,n,i,a,s,f,u,c,l,p){var d=t;if("function"==typeof f)d=f(r,d);else if(d instanceof Date)d=l(d);else if(null===d){if(i)return s?s(r):r;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||o.isBuffer(d))return s?[p(s(r))+"="+p(s(d))]:[p(r)+"="+p(String(d))];var y=[];if("undefined"==typeof d)return y;var h;if(Array.isArray(f))h=f;else{var b=Object.keys(d);h=u?b.sort(u):b}for(var m=0;m<h.length;++m){var v=h[m];a&&null===d[v]||(y=Array.isArray(d)?y.concat(e(d[v],n(r,v),n,i,a,s,f,u,c,l,p)):y.concat(e(d[v],r+(c?"."+v:"["+v+"]"),n,i,a,s,f,u,c,l,p)))}return y};e.exports=function(e,t){var r=e,o=t||{},a="undefined"==typeof o.delimiter?s.delimiter:o.delimiter,u="boolean"==typeof o.strictNullHandling?o.strictNullHandling:s.strictNullHandling,c="boolean"==typeof o.skipNulls?o.skipNulls:s.skipNulls,l="boolean"==typeof o.encode?o.encode:s.encode,p=l?"function"==typeof o.encoder?o.encoder:s.encoder:null,d="function"==typeof o.sort?o.sort:null,y="undefined"!=typeof o.allowDots&&o.allowDots,h="function"==typeof o.serializeDate?o.serializeDate:s.serializeDate;if("undefined"==typeof o.format)o.format=n.default;else if(!Object.prototype.hasOwnProperty.call(n.formatters,o.format))throw new TypeError("Unknown format option provided.");var b,m,v=n.formatters[o.format];if(null!==o.encoder&&void 0!==o.encoder&&"function"!=typeof o.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof o.filter?(m=o.filter,r=m("",r)):Array.isArray(o.filter)&&(m=o.filter,b=m);var w=[];if("object"!=typeof r||null===r)return"";var g;g=o.arrayFormat in i?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var j=i[g];b||(b=Object.keys(r)),d&&b.sort(d);for(var O=0;O<b.length;++O){var A=b[O];c&&null===r[A]||(w=w.concat(f(r[A],A,j,u,c,p,m,d,y,h,v)))}return w.join(a)}},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)"undefined"!=typeof e[o]&&(r[o]=e[o]);return r},t.merge=function(e,o,n){if(!o)return e;if("object"!=typeof o){if(Array.isArray(e))e.push(o);else{if("object"!=typeof e)return[e,o];e[o]=!0}return e}if("object"!=typeof e)return[e].concat(o);var i=e;return Array.isArray(e)&&!Array.isArray(o)&&(i=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(o)?(o.forEach(function(o,i){r.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t.merge(e[i],o,n):e.push(o):e[i]=o}),e):Object.keys(o).reduce(function(e,r){var i=o[r];return Object.prototype.hasOwnProperty.call(e,r)?e[r]=t.merge(e[r],i,n):e[r]=i,e},i)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",n=0;n<t.length;++n){var i=t.charCodeAt(n);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var o=r||[],n=o.indexOf(e);if(n!==-1)return o[n];if(o.push(e),Array.isArray(e)){for(var i=[],a=0;a<e.length;++a)e[a]&&"object"==typeof e[a]?i.push(t.compact(e[a],o)):"undefined"!=typeof e[a]&&i.push(e[a]);return i}var s=Object.keys(e);return s.forEach(function(r){e[r]=t.compact(e[r],o)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t){"use strict";var r=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";var o=r(6),n=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},o=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),i=0;i<o.length;++i){var a,s,f=o[i],u=f.indexOf("]=")===-1?f.indexOf("="):f.indexOf("]=")+1;u===-1?(a=t.decoder(f),s=t.strictNullHandling?null:""):(a=t.decoder(f.slice(0,u)),s=t.decoder(f.slice(u+1))),n.call(r,a)?r[a]=[].concat(r[a]).concat(s):r[a]=s}return r},s=function e(t,r,o){if(!t.length)return r;var n,i=t.shift();if("[]"===i)n=[],n=n.concat(e(t,r,o));else{n=o.plainObjects?Object.create(null):{};var a="["===i[0]&&"]"===i[i.length-1]?i.slice(1,i.length-1):i,s=parseInt(a,10);!isNaN(s)&&i!==a&&String(s)===a&&s>=0&&o.parseArrays&&s<=o.arrayLimit?(n=[],n[s]=e(t,r,o)):n[a]=e(t,r,o)}return n},f=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,i=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,f=i.exec(o),u=[];if(f[1]){if(!r.plainObjects&&n.call(Object.prototype,f[1])&&!r.allowPrototypes)return;u.push(f[1])}for(var c=0;null!==(f=a.exec(o))&&c<r.depth;)c+=1,(r.plainObjects||!n.call(Object.prototype,f[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&u.push(f[1]);return f&&u.push("["+o.slice(f.index)+"]"),s(u,t,r)}};e.exports=function(e,t){var r=t||{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.delimiter="string"==typeof r.delimiter||o.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=r.parseArrays!==!1,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||"undefined"==typeof e)return r.plainObjects?Object.create(null):{};for(var n="string"==typeof e?a(e,r):e,s=r.plainObjects?Object.create(null):{},u=Object.keys(n),c=0;c<u.length;++c){var l=u[c],p=f(l,n[l],r);s=o.merge(s,p,r)}return o.compact(s)}},function(e,t,r){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(10),i=function(e,t){if("undefined"!=typeof window&&"undefined"!=typeof FormData&&e instanceof FormData)return n.formData;if("string"==typeof e)try{if(JSON.parse(e))return n.json}catch(e){return n.text}return"object"===("undefined"==typeof e?"undefined":o(e))?t?n.json:n.form:n.text};e.exports=i},function(e,t){"use strict";e.exports={formData:"multipart/form-data",form:"application/x-www-form-urlencoded",json:"application/json",text:"text/plain"}}])}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguYnJvd3Nlci5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9pbmRleC5icm93c2VyLmpzIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ== |
@@ -1,2 +0,2 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){(function(t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=r(1),f=r(6),u=r(7),l="object"===("undefined"==typeof window?"undefined":a(window))?window:t;l.Headers.prototype.keys=t.Headers.prototype.keys||function(){return Object.keys(this._headers||{})},l.Headers.prototype.values=t.Headers.prototype.values||function(){var e=this;return Object.keys(this._headers||{}).map(function(t){return e._headers[k]})};var s=function(e){return e},p={},d="",y=function(e){return e},b=function(e){return e instanceof Headers?function(){return Array.from(e.keys()).reduce(function(t,r){return t[r]=e.get(r),t},{})}():e},m=function(e,t,r){var n=t.ssl,o=(t.method,t.query);return"function"==typeof r?r(e,t):("string"==typeof r&&(e=e.replace(/^\/\//,r)),/^\/\//.test(e)&&(e=(n?"https":"http")+":"+e),o&&(e+=""+(e.match(/\?/)?"&":"?")+c.stringify(o)),e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.method,n=void 0===r?"GET":r,l=t.query,s=void 0===l?{}:l,y=t.data,h=void 0===y?{}:y,v=t.body,j=void 0===v?{}:v,g=t.headers,O=void 0===g?{}:g,w=(t.json,o(t,["method","query","data","body","headers","json"])),x="GET"===n||"HEAD"===n,A="undefined"!=typeof window&&"undefined"!=typeof FormData&&j instanceof FormData;if(x?s="object"===("undefined"==typeof s?"undefined":a(s))?i({},s,h,j):0===Object.keys(s).length?h:s:j="object"!==("undefined"==typeof j?"undefined":a(j))||A?0!==Object.keys(j).length||A?j:h:i({},h,j),O=new Headers(i({},b(O),b(p))),x?"":O.set("Content-Type",O.get("Content-Type")||f(j)),"object"===("undefined"==typeof j?"undefined":a(j)))switch(O.get("Content-Type")){case u.form:j=c.stringify(j);break;case u.formData:var k=function(){var e=new FormData;return Object.keys(j).forEach(function(t){e.set(t,j[t])}),j=e,"break"}();if("break"===k)break}var D=i({method:n,query:s,headers:O},w);return x||(D.body=j),[m(e,D,d),D]},v=function(e){var t=function(){return e.call.apply(e,[void 0].concat(n(h.apply(void 0,arguments)))).then(y).then(s)};return t.callback=function(e){"function"==typeof e&&(s=e),delete t.callback},t.baseHost=function(e){d=e},t.headers=function(e){if("object"!==("undefined"==typeof e?"undefined":a(e))&&"function"!=typeof e)throw new Error("global headers must be object or function");p=e,delete t.headers},t};e.exports={fetchDecorator:v}}).call(t,function(){return this}())},function(e,t,r){"use strict";var n=r(2),o=r(5),i=r(4);e.exports={formats:i,parse:o,stringify:n}},function(e,t,r){"use strict";var n=r(3),o=r(4),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,r,o,i,a,c,f,u,l,s,p){var d=t;if("function"==typeof f)d=f(r,d);else if(d instanceof Date)d=s(d);else if(null===d){if(i)return c?c(r):r;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||n.isBuffer(d))return c?[p(c(r))+"="+p(c(d))]:[p(r)+"="+p(String(d))];var y=[];if("undefined"==typeof d)return y;var b;if(Array.isArray(f))b=f;else{var m=Object.keys(d);b=u?m.sort(u):m}for(var h=0;h<b.length;++h){var v=b[h];a&&null===d[v]||(y=Array.isArray(d)?y.concat(e(d[v],o(r,v),o,i,a,c,f,u,l,s,p)):y.concat(e(d[v],r+(l?"."+v:"["+v+"]"),o,i,a,c,f,u,l,s,p)))}return y};e.exports=function(e,t){var r=e,n=t||{},a="undefined"==typeof n.delimiter?c.delimiter:n.delimiter,u="boolean"==typeof n.strictNullHandling?n.strictNullHandling:c.strictNullHandling,l="boolean"==typeof n.skipNulls?n.skipNulls:c.skipNulls,s="boolean"==typeof n.encode?n.encode:c.encode,p=s?"function"==typeof n.encoder?n.encoder:c.encoder:null,d="function"==typeof n.sort?n.sort:null,y="undefined"!=typeof n.allowDots&&n.allowDots,b="function"==typeof n.serializeDate?n.serializeDate:c.serializeDate;if("undefined"==typeof n.format)n.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,n.format))throw new TypeError("Unknown format option provided.");var m,h,v=o.formatters[n.format];if(null!==n.encoder&&void 0!==n.encoder&&"function"!=typeof n.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof n.filter?(h=n.filter,r=h("",r)):Array.isArray(n.filter)&&(h=n.filter,m=h);var j=[];if("object"!=typeof r||null===r)return"";var g;g=n.arrayFormat in i?n.arrayFormat:"indices"in n?n.indices?"indices":"repeat":"indices";var O=i[g];m||(m=Object.keys(r)),d&&m.sort(d);for(var w=0;w<m.length;++w){var x=m[w];l&&null===r[x]||(j=j.concat(f(r[x],x,O,u,l,p,h,d,y,b,v)))}return j.join(a)}},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!=typeof e[n]&&(r[n]=e[n]);return r},t.merge=function(e,n,o){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];e[n]=!0}return e}if("object"!=typeof e)return[e].concat(n);var i=e;return Array.isArray(e)&&!Array.isArray(n)&&(i=t.arrayToObject(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,i){r.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t.merge(e[i],n,o):e.push(n):e[i]=n}),e):Object.keys(n).reduce(function(e,r){var i=n[r];return Object.prototype.hasOwnProperty.call(e,r)?e[r]=t.merge(e[r],i,o):e[r]=i,e},i)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var i=t.charCodeAt(o);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(o):i<128?r+=n[i]:i<2048?r+=n[192|i>>6]+n[128|63&i]:i<55296||i>=57344?r+=n[224|i>>12]+n[128|i>>6&63]+n[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(o)),r+=n[240|i>>18]+n[128|i>>12&63]+n[128|i>>6&63]+n[128|63&i])}return r},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var n=r||[],o=n.indexOf(e);if(o!==-1)return n[o];if(n.push(e),Array.isArray(e)){for(var i=[],a=0;a<e.length;++a)e[a]&&"object"==typeof e[a]?i.push(t.compact(e[a],n)):"undefined"!=typeof e[a]&&i.push(e[a]);return i}var c=Object.keys(e);return c.forEach(function(r){e[r]=t.compact(e[r],n)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t){"use strict";var r=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";var n=r(3),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},n=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),i=0;i<n.length;++i){var a,c,f=n[i],u=f.indexOf("]=")===-1?f.indexOf("="):f.indexOf("]=")+1;u===-1?(a=t.decoder(f),c=t.strictNullHandling?null:""):(a=t.decoder(f.slice(0,u)),c=t.decoder(f.slice(u+1))),o.call(r,a)?r[a]=[].concat(r[a]).concat(c):r[a]=c}return r},c=function e(t,r,n){if(!t.length)return r;var o,i=t.shift();if("[]"===i)o=[],o=o.concat(e(t,r,n));else{o=n.plainObjects?Object.create(null):{};var a="["===i[0]&&"]"===i[i.length-1]?i.slice(1,i.length-1):i,c=parseInt(a,10);!isNaN(c)&&i!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[],o[c]=e(t,r,n)):o[a]=e(t,r,n)}return o},f=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,i=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,f=i.exec(n),u=[];if(f[1]){if(!r.plainObjects&&o.call(Object.prototype,f[1])&&!r.allowPrototypes)return;u.push(f[1])}for(var l=0;null!==(f=a.exec(n))&&l<r.depth;)l+=1,(r.plainObjects||!o.call(Object.prototype,f[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&u.push(f[1]);return f&&u.push("["+n.slice(f.index)+"]"),c(u,t,r)}};e.exports=function(e,t){var r=t||{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=r.parseArrays!==!1,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||"undefined"==typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?a(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(o),l=0;l<u.length;++l){var s=u[l],p=f(s,o[s],r);c=n.merge(c,p,r)}return n.compact(c)}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(7),i=function(e,t){if("undefined"!=typeof window&&"undefined"!=typeof FormData&&e instanceof FormData)return o.formData;if("string"==typeof e)try{if(JSON.parse(e))return o.json}catch(e){return o.text}return"object"===("undefined"==typeof e?"undefined":n(e))?t?o.json:o.form:o.text};e.exports=i},function(e,t){"use strict";e.exports={formData:"multipart/form-data",form:"application/x-www-form-urlencoded",json:"application/json",text:"text/plain"}}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){(function(t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=r(1),f=r(6),u=r(7),l="object"===("undefined"==typeof window?"undefined":a(window))?window:t;"function"==typeof l.Headers&&(l.Headers.prototype.keys=l.Headers.prototype.keys||function(){return Object.keys(this._headers||{})},l.Headers.prototype.values=l.Headers.prototype.values||function(){var e=this;return Object.keys(this._headers||{}).map(function(t){return e._headers[k]})});var s=function(e){return e},p={},d="",y=function(e){return e},b=function(e){return e instanceof Headers?function(){return Array.from(e.keys()).reduce(function(t,r){return t[r]=e.get(r),t},{})}():e},m=function(e,t,r){var n=t.ssl,o=(t.method,t.query);return"function"==typeof r?r(e,t):("string"==typeof r&&(e=e.replace(/^\/\//,r)),/^\/\//.test(e)&&(e=(n?"https":"http")+":"+e),o&&(e+=""+(e.match(/\?/)?"&":"?")+c.stringify(o)),e)},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.method,n=void 0===r?"GET":r,l=t.query,s=void 0===l?{}:l,y=t.data,h=void 0===y?{}:y,v=t.body,j=void 0===v?{}:v,g=t.headers,O=void 0===g?{}:g,w=(t.json,o(t,["method","query","data","body","headers","json"])),x="GET"===n||"HEAD"===n,A="undefined"!=typeof window&&"undefined"!=typeof FormData&&j instanceof FormData;if(x?s="object"===("undefined"==typeof s?"undefined":a(s))?i({},s,h,j):0===Object.keys(s).length?h:s:j="object"!==("undefined"==typeof j?"undefined":a(j))||A?0!==Object.keys(j).length||A?j:h:i({},h,j),O=new Headers(i({},b(O),b(p))),x?"":O.set("Content-Type",O.get("Content-Type")||f(j)),"object"===("undefined"==typeof j?"undefined":a(j)))switch(O.get("Content-Type")){case u.form:j=c.stringify(j);break;case u.formData:var k=function(){var e=new FormData;return Object.keys(j).forEach(function(t){e.set(t,j[t])}),j=e,"break"}();if("break"===k)break}var D=i({method:n,query:s,headers:O},w);return x||(D.body=j),[m(e,D,d),D]},v=function(e){var t=function(){return e.call.apply(e,[void 0].concat(n(h.apply(void 0,arguments)))).then(y).then(s)};return t.callback=function(e){"function"==typeof e&&(s=e),delete t.callback},t.baseHost=function(e){d=e},t.headers=function(e){if("object"!==("undefined"==typeof e?"undefined":a(e))&&"function"!=typeof e)throw new Error("global headers must be object or function");p=e,delete t.headers},t};e.exports={fetchDecorator:v}}).call(t,function(){return this}())},function(e,t,r){"use strict";var n=r(2),o=r(5),i=r(4);e.exports={formats:i,parse:o,stringify:n}},function(e,t,r){"use strict";var n=r(3),o=r(4),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,c={delimiter:"&",encode:!0,encoder:n.encode,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,r,o,i,a,c,f,u,l,s,p){var d=t;if("function"==typeof f)d=f(r,d);else if(d instanceof Date)d=s(d);else if(null===d){if(i)return c?c(r):r;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||n.isBuffer(d))return c?[p(c(r))+"="+p(c(d))]:[p(r)+"="+p(String(d))];var y=[];if("undefined"==typeof d)return y;var b;if(Array.isArray(f))b=f;else{var m=Object.keys(d);b=u?m.sort(u):m}for(var h=0;h<b.length;++h){var v=b[h];a&&null===d[v]||(y=Array.isArray(d)?y.concat(e(d[v],o(r,v),o,i,a,c,f,u,l,s,p)):y.concat(e(d[v],r+(l?"."+v:"["+v+"]"),o,i,a,c,f,u,l,s,p)))}return y};e.exports=function(e,t){var r=e,n=t||{},a="undefined"==typeof n.delimiter?c.delimiter:n.delimiter,u="boolean"==typeof n.strictNullHandling?n.strictNullHandling:c.strictNullHandling,l="boolean"==typeof n.skipNulls?n.skipNulls:c.skipNulls,s="boolean"==typeof n.encode?n.encode:c.encode,p=s?"function"==typeof n.encoder?n.encoder:c.encoder:null,d="function"==typeof n.sort?n.sort:null,y="undefined"!=typeof n.allowDots&&n.allowDots,b="function"==typeof n.serializeDate?n.serializeDate:c.serializeDate;if("undefined"==typeof n.format)n.format=o.default;else if(!Object.prototype.hasOwnProperty.call(o.formatters,n.format))throw new TypeError("Unknown format option provided.");var m,h,v=o.formatters[n.format];if(null!==n.encoder&&void 0!==n.encoder&&"function"!=typeof n.encoder)throw new TypeError("Encoder has to be a function.");"function"==typeof n.filter?(h=n.filter,r=h("",r)):Array.isArray(n.filter)&&(h=n.filter,m=h);var j=[];if("object"!=typeof r||null===r)return"";var g;g=n.arrayFormat in i?n.arrayFormat:"indices"in n?n.indices?"indices":"repeat":"indices";var O=i[g];m||(m=Object.keys(r)),d&&m.sort(d);for(var w=0;w<m.length;++w){var x=m[w];l&&null===r[x]||(j=j.concat(f(r[x],x,O,u,l,p,h,d,y,b,v)))}return j.join(a)}},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!=typeof e[n]&&(r[n]=e[n]);return r},t.merge=function(e,n,o){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];e[n]=!0}return e}if("object"!=typeof e)return[e].concat(n);var i=e;return Array.isArray(e)&&!Array.isArray(n)&&(i=t.arrayToObject(e,o)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,i){r.call(e,i)?e[i]&&"object"==typeof e[i]?e[i]=t.merge(e[i],n,o):e.push(n):e[i]=n}),e):Object.keys(n).reduce(function(e,r){var i=n[r];return Object.prototype.hasOwnProperty.call(e,r)?e[r]=t.merge(e[r],i,o):e[r]=i,e},i)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),r="",o=0;o<t.length;++o){var i=t.charCodeAt(o);45===i||46===i||95===i||126===i||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(o):i<128?r+=n[i]:i<2048?r+=n[192|i>>6]+n[128|63&i]:i<55296||i>=57344?r+=n[224|i>>12]+n[128|i>>6&63]+n[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(o)),r+=n[240|i>>18]+n[128|i>>12&63]+n[128|i>>6&63]+n[128|63&i])}return r},t.compact=function(e,r){if("object"!=typeof e||null===e)return e;var n=r||[],o=n.indexOf(e);if(o!==-1)return n[o];if(n.push(e),Array.isArray(e)){for(var i=[],a=0;a<e.length;++a)e[a]&&"object"==typeof e[a]?i.push(t.compact(e[a],n)):"undefined"!=typeof e[a]&&i.push(e[a]);return i}var c=Object.keys(e);return c.forEach(function(r){e[r]=t.compact(e[r],n)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!==e&&"undefined"!=typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t){"use strict";var r=String.prototype.replace,n=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,r){"use strict";var n=r(3),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},n=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),i=0;i<n.length;++i){var a,c,f=n[i],u=f.indexOf("]=")===-1?f.indexOf("="):f.indexOf("]=")+1;u===-1?(a=t.decoder(f),c=t.strictNullHandling?null:""):(a=t.decoder(f.slice(0,u)),c=t.decoder(f.slice(u+1))),o.call(r,a)?r[a]=[].concat(r[a]).concat(c):r[a]=c}return r},c=function e(t,r,n){if(!t.length)return r;var o,i=t.shift();if("[]"===i)o=[],o=o.concat(e(t,r,n));else{o=n.plainObjects?Object.create(null):{};var a="["===i[0]&&"]"===i[i.length-1]?i.slice(1,i.length-1):i,c=parseInt(a,10);!isNaN(c)&&i!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[],o[c]=e(t,r,n)):o[a]=e(t,r,n)}return o},f=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^\.\[]+)/g,"[$1]"):e,i=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,f=i.exec(n),u=[];if(f[1]){if(!r.plainObjects&&o.call(Object.prototype,f[1])&&!r.allowPrototypes)return;u.push(f[1])}for(var l=0;null!==(f=a.exec(n))&&l<r.depth;)l+=1,(r.plainObjects||!o.call(Object.prototype,f[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&u.push(f[1]);return f&&u.push("["+n.slice(f.index)+"]"),c(u,t,r)}};e.exports=function(e,t){var r=t||{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=r.parseArrays!==!1,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||"undefined"==typeof e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?a(e,r):e,c=r.plainObjects?Object.create(null):{},u=Object.keys(o),l=0;l<u.length;++l){var s=u[l],p=f(s,o[s],r);c=n.merge(c,p,r)}return n.compact(c)}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(7),i=function(e,t){if("undefined"!=typeof window&&"undefined"!=typeof FormData&&e instanceof FormData)return o.formData;if("string"==typeof e)try{if(JSON.parse(e))return o.json}catch(e){return o.text}return"object"===("undefined"==typeof e?"undefined":n(e))?t?o.json:o.form:o.text};e.exports=i},function(e,t){"use strict";e.exports={formData:"multipart/form-data",form:"application/x-www-form-urlencoded",json:"application/json",text:"text/plain"}}])}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vdXRpbHMuanMiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9 |
@@ -6,11 +6,13 @@ const qs = require('qs'); | ||
const root = typeof window === 'object' ? window : global; | ||
root.Headers.prototype.keys = global.Headers.prototype.keys || | ||
function () { | ||
return Object.keys(this._headers || {}); | ||
}; | ||
if (typeof root.Headers === 'function') { | ||
root.Headers.prototype.keys = root.Headers.prototype.keys || | ||
function () { | ||
return Object.keys(this._headers || {}); | ||
}; | ||
root.Headers.prototype.values = global.Headers.prototype.values || | ||
function () { | ||
return Object.keys(this._headers || {}).map((key) => this._headers[k]); | ||
}; | ||
root.Headers.prototype.values = root.Headers.prototype.values || | ||
function () { | ||
return Object.keys(this._headers || {}).map((key) => this._headers[k]); | ||
}; | ||
} | ||
@@ -17,0 +19,0 @@ let globalCallback = response => response; |
{ | ||
"name": "autofetch", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "fetch for node", | ||
@@ -5,0 +5,0 @@ "main": "src/index.node.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38268
297