猎羽广告

axios.8506093b.js 18KB

12
  1. var e,t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={exports:{}},r=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},o=r,i=Object.prototype.toString,s=(e=Object.create(null),function(t){var n=i.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var f=a("ArrayBuffer");function l(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=a("Date"),h=a("File"),m=a("Blob"),y=a("FileList");function v(e){return"[object Function]"===i.call(e)}var g=a("URLSearchParams");function E(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),u(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,w=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b}),O={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:p,isUndefined:c,isDate:d,isFile:h,isBlob:m,isFunction:v,isStream:function(e){return l(e)&&v(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:E,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,o=arguments.length;r<o;r++)E(arguments[r],n);return t},extend:function(e,t,n){return E(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,o,i,s={};t=t||{};do{for(o=(r=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=r[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y},R=O;function A(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var S=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(R.isURLSearchParams(t))r=t.toString();else{var o=[];R.forEach(t,(function(e,t){null!=e&&(R.isArray(e)?t+="[]":e=[e],R.forEach(e,(function(e){R.isDate(e)?e=e.toISOString():R.isObject(e)&&(e=JSON.stringify(e)),o.push(A(t)+"="+A(e))})))})),r=o.join("&")}if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},T=O;function N(){this.handlers=[]}N.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},N.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},N.prototype.forEach=function(e){T.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var j=N,C=O,x=O;function _(e,t,n,r,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}x.inherits(_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var P=_.prototype,U={};["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"].forEach((function(e){U[e]={value:e}})),Object.defineProperties(_,U),Object.defineProperty(P,"isAxiosError",{value:!0}),_.from=function(e,t,n,r,o,i){var s=Object.create(P);return x.toFlatObject(e,s,(function(e){return e!==Error.prototype})),_.call(s,e.message,t,n,r,o),s.name=e.name,i&&Object.assign(s,i),s};var B=_,D={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},L=O;var k=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":L.isDate(e)?e.toISOString():L.isArrayBuffer(e)||L.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,i){if(L.isPlainObject(o)||L.isArray(o)){if(-1!==n.indexOf(o))throw Error("Circular reference detected in "+i);n.push(o),L.forEach(o,(function(n,o){if(!L.isUndefined(n)){var s,a=i?i+"."+o:o;if(n&&!i&&"object"==typeof n)if(L.endsWith(o,"{}"))n=JSON.stringify(n);else if(L.endsWith(o,"[]")&&(s=L.toArray(n)))return void s.forEach((function(e){!L.isUndefined(e)&&t.append(a,r(e))}));e(n,a)}})),n.pop()}else t.append(i,r(o))}(e),t},F=B,q=O,I=q.isStandardBrowserEnv()?{write:function(e,t,n,r,o,i){var s=[];s.push(e+"="+encodeURIComponent(t)),q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),q.isString(r)&&s.push("path="+r),q.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},J=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)},M=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},H=function(e,t){return e&&!J(t)?M(e,t):t},W=O,z=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],V=O,X=V.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=V.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},K=B;function $(e){K.call(this,null==e?"canceled":e,K.ERR_CANCELED),this.name="CanceledError"}O.inherits($,K,{__CANCEL__:!0});var Q=$,G=O,Y=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)},Z=I,ee=S,te=H,ne=function(e){var t,n,r,o={};return e?(W.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=W.trim(e.substr(0,r)).toLowerCase(),n=W.trim(e.substr(r+1)),t){if(o[t]&&z.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o},re=X,oe=D,ie=B,se=Q,ae=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""},ue=function(e){return new Promise((function(t,n){var r,o=e.data,i=e.headers,s=e.responseType;function a(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}G.isFormData(o)&&G.isStandardBrowserEnv()&&delete i["Content-Type"];var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.Authorization="Basic "+btoa(c+":"+f)}var l=te(e.baseURL,e.url);function p(){if(u){var r="getAllResponseHeaders"in u?ne(u.getAllResponseHeaders()):null,o={data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u};Y((function(e){t(e),a()}),(function(e){n(e),a()}),o),u=null}}if(u.open(e.method.toUpperCase(),ee(l,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new ie("Request aborted",ie.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new ie("Network Error",ie.ERR_NETWORK,e,u,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||oe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ie(t,r.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,u)),u=null},G.isStandardBrowserEnv()){var d=(e.withCredentials||re(l))&&e.xsrfCookieName?Z.read(e.xsrfCookieName):void 0;d&&(i[e.xsrfHeaderName]=d)}"setRequestHeader"in u&&G.forEach(i,(function(e,t){void 0===o&&"content-type"===t.toLowerCase()?delete i[t]:u.setRequestHeader(t,e)})),G.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(r=function(e){u&&(n(!e||e&&e.type?new se:e),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r))),o||(o=null);var h=ae(l);h&&-1===["http","https","file"].indexOf(h)?n(new ie("Unsupported protocol "+h+":",ie.ERR_BAD_REQUEST,e)):u.send(o)}))},ce=O,fe=function(e,t){C.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},le=B,pe=k,de={"Content-Type":"application/x-www-form-urlencoded"};function he(e,t){!ce.isUndefined(e)&&ce.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var me,ye={transitional:D,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(me=ue),me),transformRequest:[function(e,t){if(fe(t,"Accept"),fe(t,"Content-Type"),ce.isFormData(e)||ce.isArrayBuffer(e)||ce.isBuffer(e)||ce.isStream(e)||ce.isFile(e)||ce.isBlob(e))return e;if(ce.isArrayBufferView(e))return e.buffer;if(ce.isURLSearchParams(e))return he(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,r=ce.isObject(e),o=t&&t["Content-Type"];if((n=ce.isFileList(e))||r&&"multipart/form-data"===o){var i=this.env&&this.env.FormData;return pe(n?{"files[]":e}:e,i&&new i)}return r||"application/json"===o?(he(t,"application/json"),function(e,t,n){if(ce.isString(e))try{return(t||JSON.parse)(e),ce.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||ye.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&ce.isString(e)&&e.length)try{return JSON.parse(e)}catch(i){if(o){if("SyntaxError"===i.name)throw le.from(i,le.ERR_BAD_RESPONSE,this,null,this.response);throw i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:null},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ce.forEach(["delete","get","head"],(function(e){ye.headers[e]={}})),ce.forEach(["post","put","patch"],(function(e){ye.headers[e]=ce.merge(de)}));var ve=ye,ge=O,Ee=ve,be=function(e){return!(!e||!e.__CANCEL__)},we=O,Oe=function(e,t,n){var r=this||Ee;return ge.forEach(n,(function(n){e=n.call(r,e,t)})),e},Re=be,Ae=ve,Se=Q;function Te(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Se}var Ne=O,je=function(e,t){t=t||{};var n={};function r(e,t){return Ne.isPlainObject(e)&&Ne.isPlainObject(t)?Ne.merge(e,t):Ne.isPlainObject(t)?Ne.merge({},t):Ne.isArray(t)?t.slice():t}function o(n){return Ne.isUndefined(t[n])?Ne.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!Ne.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return Ne.isUndefined(t[n])?Ne.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function a(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Ne.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);Ne.isUndefined(r)&&t!==a||(n[e]=r)})),n},Ce="0.27.2",xe=Ce,_e=B,Pe={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Pe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Ue={};Pe.transitional=function(e,t,n){return function(r,o,i){if(!1===e)throw new _e(function(e,t){return"[Axios v"+xe+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),_e.ERR_DEPRECATED);return t&&!Ue[o]&&(Ue[o]=!0),!e||e(r,o,i)}};var Be=O,De=S,Le=j,ke=function(e){return Te(e),e.headers=e.headers||{},e.data=Oe.call(e,e.data,e.headers,e.transformRequest),e.headers=we.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),we.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||Ae.adapter)(e).then((function(t){return Te(e),t.data=Oe.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return Re(t)||(Te(e),t&&t.response&&(t.response.data=Oe.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},Fe=je,qe=H,Ie={assertOptions:function(e,t,n){if("object"!=typeof e)throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new _e("option "+i+" must be "+u,_e.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new _e("Unknown option "+i,_e.ERR_BAD_OPTION)}},validators:Pe},Je=Ie.validators;function Me(e){this.defaults=e,this.interceptors={request:new Le,response:new Le}}Me.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=Fe(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&Ie.assertOptions(n,{silentJSONParsing:Je.transitional(Je.boolean),forcedJSONParsing:Je.transitional(Je.boolean),clarifyTimeoutError:Je.transitional(Je.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,s=[];if(this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)})),!o){var a=[ke,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),i=Promise.resolve(t);a.length;)i=i.then(a.shift(),a.shift());return i}for(var u=t;r.length;){var c=r.shift(),f=r.shift();try{u=c(u)}catch(l){f(l);break}}try{i=ke(u)}catch(l){return Promise.reject(l)}for(;s.length;)i=i.then(s.shift(),s.shift());return i},Me.prototype.getUri=function(e){e=Fe(this.defaults,e);var t=qe(e.baseURL,e.url);return De(t,e.params,e.paramsSerializer)},Be.forEach(["delete","get","head","options"],(function(e){Me.prototype[e]=function(t,n){return this.request(Fe(n||{},{method:e,url:t,data:(n||{}).data}))}})),Be.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Fe(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Me.prototype[e]=t(),Me.prototype[e+"Form"]=t(!0)}));var He=Me,We=Q;function ze(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new We(e),t(n.reason))}))}ze.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},ze.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},ze.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},ze.source=function(){var e;return{token:new ze((function(t){e=t})),cancel:e}};var Ve=ze,Xe=O,Ke=O,$e=r,Qe=He,Ge=je;var Ye=function e(t){var n=new Qe(t),r=$e(Qe.prototype.request,n);return Ke.extend(r,Qe.prototype,n),Ke.extend(r,n),r.create=function(n){return e(Ge(t,n))},r}(ve);Ye.Axios=Qe,Ye.CanceledError=Q,Ye.CancelToken=Ve,Ye.isCancel=be,Ye.VERSION=Ce,Ye.toFormData=k,Ye.AxiosError=B,Ye.Cancel=Ye.CanceledError,Ye.all=function(e){return Promise.all(e)},Ye.spread=function(e){return function(t){return e.apply(null,t)}},Ye.isAxiosError=function(e){return Xe.isObject(e)&&!0===e.isAxiosError},n.exports=Ye,n.exports.default=Ye;var Ze=n.exports;export{Ze as a,t as c};