moreShopAdmin/dist/admin/assets/axios.932d3f8a.js

3 lines
20 KiB
JavaScript
Raw Normal View History

2024-08-01 22:52:20 +08:00
var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mt(e){var r=e.default;if(typeof r=="function"){var t=function(){return r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),t}var ke={exports:{}},oe={exports:{}},Me=function(r,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return r.apply(t,n)}},fr=Me,ue=Object.prototype.toString,fe=function(e){return function(r){var t=ue.call(r);return e[t]||(e[t]=t.slice(8,-1).toLowerCase())}}(Object.create(null));function A(e){return e=e.toLowerCase(),function(t){return fe(t)===e}}function le(e){return Array.isArray(e)}function j(e){return typeof e>"u"}function lr(e){return e!==null&&!j(e)&&e.constructor!==null&&!j(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var He=A("ArrayBuffer");function cr(e){var r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&He(e.buffer),r}function dr(e){return typeof e=="string"}function hr(e){return typeof e=="number"}function Je(e){return e!==null&&typeof e=="object"}function B(e){if(fe(e)!=="object")return!1;var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}var pr=A("Date"),vr=A("File"),mr=A("Blob"),Er=A("FileList");function ce(e){return ue.call(e)==="[object Function]"}function yr(e){return Je(e)&&ce(e.pipe)}function Rr(e){var r="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||ue.call(e)===r||ce(e.toString)&&e.toString()===r)}var br=A("URLSearchParams");function wr(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Or(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function de(e,r){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),le(e))for(var t=0,i=e.length;t<i;t++)r.call(null,e[t],t,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.call(null,e[n],n,e)}function se(){var e={};function r(n,a){B(e[a])&&B(n)?e[a]=se(e[a],n):B(n)?e[a]=se({},n):le(n)?e[a]=n.slice():e[a]=n}for(var t=0,i=arguments.length;t<i;t++)de(arguments[t],r);return e}function Ar(e,r,t){return de(r,function(n,a){t&&typeof n=="function"?e[a]=fr(n,t):e[a]=n}),e}function Sr(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Cr(e,r,t,i){e.prototype=Object.create(r.prototype,i),e.prototype.constructor=e,t&&Object.assign(e.prototype,t)}function xr(e,r,t){var i,n,a,s={};r=r||{};do{for(i=Object.getOwnPropertyNames(e),n=i.length;n-- >0;)a=i[n],s[a]||(r[a]=e[a],s[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!t||t(e,r))&&e!==Object.prototype);return r}function Pr(e,r,t){e=String(e),(t===void 0||t>e.length)&&(t=e.length),t-=r.length;var i=e.indexOf(r,t);return i!==-1&&i===t}function Tr(e){if(!e)return null;var r=e.length;if(j(r))return null;for(var t=new Array(r);r-- >0;)t[r]=e[r];return t}var _r=function(e){return function(r){return e&&r instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),v={isArray:le,isArrayBuffer:He,isBuffer:lr,isFormData:Rr,isArrayBufferView:cr,isString:dr,isNumber:hr,isObject:Je,isPlainObject:B,isUndefined:j,isDate:pr,isFile:vr,isBlob:mr,isFunction:ce,isStream:yr,isURLSearchParams:br,isStandardBrowserEnv:Or,forEach:de,merge:se,extend:Ar,trim:wr,stripBOM:Sr,inherits:Cr,toFlatObject:xr,kindOf:fe,kindOfTest:A,endsWith:Pr,toArray:Tr,isTypedArray:_r,isFileList:Er},P=v;function ye(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ve=function(r,t,i){if(!t)return r;var n;if(i)n=i(t);else if(P.isURLSearchParams(t))n=t.toStri
`),function(d){if(o=d.indexOf(":"),a=e.trim(d.substr(0,o)).toLowerCase(),s=e.trim(d.substr(o+1)),a){if(n[a]&&r.indexOf(a)>=0)return;a==="set-cookie"?n[a]=(n[a]?n[a]:[]).concat([s]):n[a]=n[a]?n[a]+", "+s:s}}),n},z}var X,Oe;function Mr(){if(Oe)return X;Oe=1;var e=v;return X=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),n;function a(s){var o=s;return t&&(i.setAttribute("href",o),o=i.href),i.setAttribute("href",o),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return n=a(window.location.href),function(o){var f=e.isString(o)?a(o):o;return f.protocol===n.protocol&&f.host===n.host}}():function(){return function(){return!0}}(),X}var K,Ae;function $(){if(Ae)return K;Ae=1;var e=D,r=v;function t(i){e.call(this,i==null?"canceled":i,e.ERR_CANCELED),this.name="CanceledError"}return r.inherits(t,e,{__CANCEL__:!0}),K=t,K}var Q,Se;function Hr(){return Se||(Se=1,Q=function(r){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}),Q}var G,Ce;function xe(){if(Ce)return G;Ce=1;var e=v,r=Br(),t=Lr(),i=Ve,n=Ge,a=kr(),s=Mr(),o=Ke,f=D,d=$(),c=Hr();return G=function(u){return new Promise(function(ir,S){var g=u.data,U=u.headers,q=u.responseType,C;function ve(){u.cancelToken&&u.cancelToken.unsubscribe(C),u.signal&&u.signal.removeEventListener("abort",C)}e.isFormData(g)&&e.isStandardBrowserEnv()&&delete U["Content-Type"];var l=new XMLHttpRequest;if(u.auth){var ar=u.auth.username||"",sr=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";U.Authorization="Basic "+btoa(ar+":"+sr)}var M=n(u.baseURL,u.url);l.open(u.method.toUpperCase(),i(M,u.params,u.paramsSerializer),!0),l.timeout=u.timeout;function me(){if(!!l){var R="getAllResponseHeaders"in l?a(l.getAllResponseHeaders()):null,x=!q||q==="text"||q==="json"?l.responseText:l.response,O={data:x,status:l.status,statusText:l.statusText,headers:R,config:u,request:l};r(function(J){ir(J),ve()},function(J){S(J),ve()},O),l=null}}if("onloadend"in l?l.onloadend=me:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(me)},l.onabort=function(){!l||(S(new f("Request aborted",f.ECONNABORTED,u,l)),l=null)},l.onerror=function(){S(new f("Network Error",f.ERR_NETWORK,u,l,l)),l=null},l.ontimeout=function(){var x=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",O=u.transitional||o;u.timeoutErrorMessage&&(x=u.timeoutErrorMessage),S(new f(x,O.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,u,l)),l=null},e.isStandardBrowserEnv()){var Ee=(u.withCredentials||s(M))&&u.xsrfCookieName?t.read(u.xsrfCookieName):void 0;Ee&&(U[u.xsrfHeaderName]=Ee)}"setRequestHeader"in l&&e.forEach(U,function(x,O){typeof g>"u"&&O.toLowerCase()==="content-type"?delete U[O]:l.setRequestHeader(O,x)}),e.isUndefined(u.withCredentials)||(l.withCredentials=!!u.withCredentials),q&&q!=="json"&&(l.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&l.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(C=function(R){!l||(S(!R||R&&R.type?new d:R),l.abort(),l=null)},u.cancelToken&&u.cancelToken.subscribe(C),u.signal&&(u.signal.aborted?C():u.signal.addEventListener("abort",C))),g||(g=null);var H=c(M);if(H&&["http","https","file"].indexOf(H)===-1){S(new f("Unsupported protocol "+H+":",f.ERR_BAD_REQUEST,u));return}l.send(g)})},G}var Y,Pe;function Jr(){return Pe||(Pe=1,Y=null),Y}var p=v,Te=Ur,_e=D,Vr=Ke,Wr=Qe,zr={"Content-Type":"application/x-www-form-urlencoded"};function Ne(e,r){!p.isUndefined(e)&&p.isUndefined(e["Content-Type"])&&(e["Content-Type"]=r)}function Xr(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=xe()),e}function Kr(e,r,t){if(p.isString