v0.3
This commit is contained in:
1 parent
d1ee8edbbd
commit
7733a44362
429 files changed
+75840
-94
No files matched your search
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>C(e)===`[object Map]`,h=e=>C(e)===`[object Set]`,g=e=>C(e)===`[object Date]`,_=e=>typeof e==`function`,v=e=>typeof e==`string`,y=e=>typeof e==`symbol`,b=e=>typeof e==`object`&&!!e,x=e=>(b(e)||_(e))&&_(e.then)&&_(e.catch),S=Object.prototype.toString,C=e=>S.call(e),ee=e=>C(e).slice(8,-1),te=e=>C(e)===`[object Object]`,w=e=>v(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ne=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),re=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ie=/-\w/g,T=re(e=>e.replace(ie,e=>e.slice(1).toUpperCase())),ae=/\B([A-Z])/g,oe=re(e=>e.replace(ae,`-$1`).toLowerCase()),E=re(e=>e.charAt(0).toUpperCase()+e.slice(1)),D=re(e=>e?`on${E(e)}`:``),O=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ce=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},le=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function fe(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=v(r)?he(r):fe(r);if(i)for(let e in i)t[e]=i[e]}return t}if(v(e)||b(e))return e}var pe=/;(?![^(]*\))/g,me=/:([^]+)/,k=/\/\*[^]*?\*\//g;function he(e){let t={};return e.replace(k,``).split(pe).forEach(e=>{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(v(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(b(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var ge=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,_e=n(ge);ge+``;function ve(e){return!!e||e===``}function ye(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=be(e[r],t[r]);return n}function be(e,t){if(e===t)return!0;let n=g(e),r=g(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=y(e),r=y(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return n&&r?ye(e,t):!1;if(n=b(e),r=b(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!be(e[n],t[n]))return!1}}return String(e)===String(t)}function xe(e,t){return e.findIndex(e=>be(e,t))}var Se=e=>!!(e&&e.__v_isRef===!0),j=e=>v(e)?e:e==null?``:p(e)||b(e)&&(e.toString===S||!_(e.toString))?Se(e)?j(e.value):JSON.stringify(e,Ce,2):String(e),Ce=(e,t)=>Se(t)?Ce(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[we(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>we(e))}:y(t)?we(t):b(t)&&!p(t)&&!te(t)?String(t):t,we=(e,t=``)=>y(e)?`Symbol(${e.description??t})`:e,M,Te=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=M,!e&&M&&(this.index=(M.scopes||(M.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=M;try{return M=this,e()}finally{M=t}}}on(){++this._on===1&&(this.prevScope=M,M=this)}off(){this._on>0&&--this._on===0&&(M=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.lengtLine truncated
|
||||
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=q.hasOwnProp(t,n);!n||a&&q.hasOwnProp(vd,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function bd(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var xd=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Sd=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Cd(e,t){return q.isArray(e)?e.map(e=>Cd(e,t)):bd(String(e).replace(t,``))}var wd=e=>Cd(e,xd),Td=e=>Cd(e,Sd);function Ed(e){let t=Object.create(null);return q.forEach(e.toJSON(),(e,n)=>{t[n]=Td(e)}),t}var Dd=Symbol(`internals`);function Od(e){return e&&String(e).trim().toLowerCase()}function kd(e){return e===!1||e==null?e:q.isArray(e)?e.map(kd):wd(String(e))}function Ad(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var jd=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Md(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function Nd(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Pd(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=Md(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=Md(i.slice(0,a));if(!jd.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=Md(i.slice(a+1));t[s]=Nd(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var Fd=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()),Id=`__Proto__`,Ld=e=>e===`__proto__`?Id:e;function Rd(e,t,n,r,i){if(q.isFunction(r))return r.call(e,t,n);if(i&&(t=n),q.isString(t)){if(q.isString(r))return t.indexOf(r)!==-1;if(q.isRegExp(r))return r.test(t)}}function zd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Bd(e,t){let n=q.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var J=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Od(t);if(!i)return;let a=q.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[Ld(a||t)]=kd(e))}let a=(e,t)=>q.forEach(e,(e,n)=>i(e,n,t));if(q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(q.isString(e)&&(e=e.trim())&&!Fd(e))a(yd(e),t);else if(q.isObject(e)&&q.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!q.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],q.hasOwnProp(n,i)?(r=n[i],n[i]=q.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Od(e),e){let n=q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Ad(e);if(q.isFunction(t))return t.call(this,e,n);if(q.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Od(e),e){let n=q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Rd(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Od(e),e){let i=q.findKey(n,e);i&&(!t||Rd(n,n[i],i,t))&&(delete n[i],r=!0)}}return q.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Rd(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n=Object.create(null);return q.forEach(this,(r,i)=>{let a=q.findKey(n,i);if(a){t[a]=kd(r),delete t[i];return}let o=Ld(e?zd(i):String(i).trim());o!==i&&delete t[i],t[o]=kd(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return q.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&q.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
||||
`)}getSetCookie(){let e=this.get(`set-cookie`);return q.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return Pd(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Dd]=this[Dd]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Od(e);t[r]||(Bd(n,e),t[r]=!0)}return q.isArray(e)?e.forEach(r):r(e),this}};J.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),q.reduceDescriptors(J.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),q.freezeMethods(J);var Vd=`[REDACTED ****]`;function Hd(e){if(q.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(q.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function Ud(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||q.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof J&&(e=e.toJSON()),r.push(e);let t;if(q.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);q.isUndefined(r)||(t[n]=r)});else{if(!q.isPlainObject(e)&&Hd(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?Vd:i(a);q.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function Wd(e){try{return String(e)}catch{return``}}function Gd(e){return e.errors.map(e=>{try{return e&&e.message?Wd(e.message):Wd(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var Kd=`
|
||||
Caused by: `,qd=Symbol(`causeStack`);function Jd(e,t){let n=q.hasOwnProp(e,qd)&&e[qd];return n&&t.endsWith(n)?t.length-n.length:-1}function Yd(e,t){try{let n=t&&t.stack;if(typeof n!=`string`||!n)return;let r=e.stack;if(typeof r!=`string`||!r)return;let i=Kd+n;e.stack=r+i,Object.defineProperty(e,qd,{__proto__:null,value:i})}catch{}}var Y=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&q.isArray(t.errors)&&t.errors.length&&(s=Gd(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,Yd(c,t),t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&q.hasOwnProp(e,`redact`)?e.redact:void 0,n=q.isArray(t)&&t.length>0?Ud(e,t):q.toJSONObject(e);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:n,code:this.code,status:this.status}}};Y.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,Y.ERR_BAD_OPTION=`ERR_BAD_OPTION`,Y.ECONNABORTED=`ECONNABORTED`,Y.ETIMEDOUT=`ETIMEDOUT`,Y.ECONNREFUSED=`ECONNREFUSED`,Y.ERR_NETWORK=`ERR_NETWORK`,Y.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,Y.ERR_DEPRECATED=`ERR_DEPRECATED`,Y.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,Y.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,Y.ERR_CANCELED=`ERR_CANCELED`,Y.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,Y.ERR_INVALID_URL=`ERR_INVALID_URL`,Y.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function Xd(e){return q.isPlainObject(e)||q.isArray(e)}function Zd(e){return q.endsWith(e,`[]`)?e.slice(0,-2):e}function Qd(e,t,n){return e?e.concat(t).map(function(e,t){return e=Zd(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function $d(e){return q.isArray(e)&&!e.some(Xd)}var ef=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});function tf(e,t,n){if(!q.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=q.getSafeProp(n,e);return q.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&q.isSpecCompliantForm(t),d=[];if(!q.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(q.isDate(e))return e.toISOString();if(q.isBoolean(e))return e.toString();if(!u&&q.isBlob(e))throw new Y(`Blob is not supported. Use a Buffer instead.`);if(q.isArrayBuffer(e)||q.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new Y(`Blob is not supported. Use a Buffer instead.`,Y.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new Y(`Object is too deeply nested (`+e+` levels). Max depth: `+l,Y.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!q.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(q.isReactNative(t)&&q.isReactNativeBlob(e))return t.append(Qd(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(q.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(q.isArray(e)&&$d(e)||(q.isFileList(e)||q.endsWith(n,`[]`))&&(a=q.toArray(e)))return n=Zd(n),a.forEach(function(e,r){!(q.isUndefined(e)||e===null)&&t.append(s===!0?Qd([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return Xd(e)?!0:(t.append(Qd(r,n,o),f(e)),!1)}let g=Object.assign(ef,{defaultVisitor:h,convertValue:f,isVisitable:Xd});function _(e,n,r=0){if(!q.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),q.forEach(e,function(e,i){(!(q.isUndefined(e)||e===null)&&a.call(t,e,q.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!q.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function nf(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rf(e,t){this._pairs=[],e&&tf(e,this,t)}var af=rf.prototype;af.append=function(e,t){this._pairs.push([e,t])},af.toString=function(e){let t=e?t=>e.call(this,t,nf):nf;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function of(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function sf(e,t,n){if(!t)return e;e||=``;let r=q.isFunction(n)?{serialize:n}:n,i=q.getSafeProp(r,`encode`)||of,a=q.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):q.isURLSearchParams(t)?t.toString():new rf(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}ret
Line truncated
|
||||
`,Dp=e=>String(e).replace(/\r\n|\r|\n/g,Ep),Op=e=>String(e).replace(/[\r\n"]/g,e=>e===`\r`?`%0D`:e===`
|
||||
`?`%0A`:`%22`),kp=(e,t)=>{let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t&&(i===13||i===10)?(i===13&&e.charCodeAt(r+1)===10&&r++,n+=2):i<128?n++:i<2048?n+=2:i>=55296&&i<=56319&&e.charCodeAt(r+1)>=56320&&e.charCodeAt(r+1)<=57343?(n+=4,r++):n+=3}return n},Ap=class extends TypeError{constructor(e,t){super(e),this.name=`FormDataError`,this.reason=t}};function jp(e,t,n,r,i){if(!q.isFunction(t))throw new Ap(`Blob is not supported`,`blob`);if(!q.isString(i)||!/^[A-Za-z0-9'()+_,./:=? -]{1,70}$/.test(i)||/ $/.test(i))throw new Ap(`Invalid multipart boundary`,`boundary`);let a=`--`+i+`--\r
|
||||
`,o=a.length,s=[],c=e=>{if(o+e>n)throw r()};c(0);for(let[t,n]of e){let e=q.isString(n),r=e?kp(n,!0):n.size;if(!Number.isFinite(r)||r<0)throw new Ap(`Unsupported FormData part size`,`part`);c(r+kp(t,!0)+(!e&&n.name?kp(n.name,!1):0)+(!e&&n.type?kp(n.type,!1):0));let a=`--`+i+`\r
|
||||
Content-Disposition: form-data; name="`+Op(Dp(t))+`"`;e||(a+=`; filename="`+Op(q.isString(n.name)?n.name:`blob`)+`"\r
|
||||
Content-Type: `+String(n.type||`application/octet-stream`).replace(/[\r\n]/g,``)),a+=`\r
|
||||
\r
|
||||
`;let l=kp(a,!1)+r+2;c(l),o+=l,s.push({header:a,value:n,isString:e})}let l=[];for(let e of s)l.push(e.header,e.isString?Dp(e.value):e.value,Ep);return l.push(a),new t(l,{type:`multipart/form-data; boundary=`+i})}function Mp(e,t,n,r,i){if(!q.isFunction(t))throw new Y(`Blob is not supported`,Y.ERR_NOT_SUPPORT);if(i===void 0){if(q.isFunction(X.generateString))i=`axios-`+X.generateString(36,`0123456789abcdef`);else{let e=q.global.crypto;if(!e||!q.isFunction(e.getRandomValues))throw new Y(`Random byte generation is not supported`,Y.ERR_NOT_SUPPORT);let t=new Uint8Array(18);e.getRandomValues(t),i=`axios-`+Array.from(t,e=>(`0`+e.toString(16)).slice(-2)).join(``)}}try{return jp(e,t,n,r,i)}catch(e){if(e instanceof Ap){let t=e.reason===`boundary`?Y.ERR_BAD_OPTION_VALUE:Y.ERR_BAD_REQUEST;throw new Y(e.message,t)}throw e}}var Np=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Pp=(e,t,n)=>t+2<n&&Np(e.charCodeAt(t+1))&&Np(e.charCodeAt(t+2)),Fp=e=>e<=57?e-48:(e&223)-55,Ip=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Lp=e=>e===9||e===10||e===12||e===13||e===32,Rp=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},zp=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Bp=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&Pp(e,a,t)&&(o=Fp(e.charCodeAt(a+1))*16+Fp(e.charCodeAt(a+2)),a+=2),!Lp(o)){if(o===61){r++;continue}if(!Ip(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?zp(e):Rp(n)},Vp=(e,t,n)=>{if(!e||typeof e!=`string`||!/^data:/i.test(e))return 0;let r=e.indexOf(`,`);if(r<0)return 0;let i=e.slice(5,r),a=e.slice(r+1);if(n.test(i))return t(a);let o=0;for(let e=0,t=a.length;e<t;e++){let n=a.charCodeAt(e);if(n===37&&Pp(a,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=a.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o};function Hp(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Vp(t===-1?e:e.slice(0,t),Bp,/; *base64[\t\n\f\r ]*$/i)}var Up=`1.21.1`,Wp=65536,Gp={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:Kp}=q,qp=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Jp=e=>{if(!q.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Yp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Xp=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Zp=e=>{let t=q.global!==void 0&&q.global!==null?q.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=q.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response,Blob:t.Blob},e);let i=q.hasOwnProp(e,`fetch`)?e.fetch:void 0,{Request:a,Response:o,Blob:s}=e,c=i?Kp(i):typeof fetch==`function`,l=Kp(a),u=Kp(o);if(!c)return!1;let d=c&&Kp(n),f=c&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),p=l&&d&&Yp(()=>{let e=!1,t=new a(X.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),m=u&&d&&Yp(()=>q.isReadableStream(new o(``).body)),h=Object.assign(Object.create(null),Gp);l&&!Yp(()=>new a(X.origin,h))&&(delete h.cache,Yp(()=>new a(X.origin,h))||(h.cache=Gp.cache));let g={stream:m&&(e=>e.body)};c&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!g[e]&&(g[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})});let _=async e=>{if(e==null)return 0;if(q.isBlob(e))return e.size;if(q.isArrayBufferView(e)||q.isArrayBuffer(e))return e.byteLength;if(q.isURLSearchParams(e)&&(e+=``),q.isString(e))return(await f(e)).byteLength},v=async(e,t)=>q.toFiniteNumber(e.getContentLength())??_(t);return async e=>{let{url:t,method:n,data:c,signal:u,cancelToken:f,timeout:y,onDownloadProgress:b,onUploadProgress:x,responseType:S,headers:C,withCredentials:ee=`same-origin`,fetchOptions:te,maxContentLength:w,maxBodyLength:ne,maxRedirects:re}=yp(e),ie=q.isNumber(w)&&w>-1,T=q.isNumber(ne)&&ne>-1,ae=t=>q.hasOwnProp(e,t)?e[t]:void 0,oe=i||fetch;S=S?(S+``).toLowerCase():`text`;let E=xp([u,f&&f.toAbortSignal()],y),D=null,O=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),se,ce=null,le=null,ue=()=>new Y(`Request body larger than maxBodyLength limit`,Y.ERR_BAD_REQUEST,e,D);try{let i,u=ae(`auth`);u&&(i={username:q.getSafeProp(u,`username`)||``,password:q.getSafeProp(u,`password`)||``});let f;if(Xp(t)&&(f=new URL(t,X.origin),!i&&(f.username||f.password)&&(i={username:Jp(f.username),password:Jp(f.password)}),(f.username||f.password)&&(f.username=``,f.password=``,t=f.href)),i&&(C.delete(`authorization`),C.set(`Authorization`,`Basic `+btoa(qp((i.username||``)+`:`+(i.password||``))))),ie&&f&&f.protocol===`data:`&&Hp(f.href)>w)throw new Y(`maxContentLength size of `+w+`
Line truncated
|
||||
`+e.map(tm).join(`
|
||||
`):` `+tm(e[0]):`as no adapter specified`),Y.ERR_NOT_SUPPORT)}return i}var im={getAdapter:rm,adapters:em};function am(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new If(null,e)}function om(){return typeof performance<`u`&&q.isFunction(performance.now)?()=>performance.now():Date.now}function sm(e,t){return Math.max(0,Math.round(e()-t))}function cm(e){let t=q.toSafeFlatObject(e);am(t),t.headers=J.from(q.getSafeProp(t,`headers`)),t.data=Pf.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1);let n=im.getAdapter(t.adapter||Nf.adapter,t),r=om(),i=r();return n(t).then(function(e){am(t),e.duration=sm(r,i),t.response=e;try{e.data=Pf.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=J.from(e.headers),e},function(e){if(!Ff(e)&&(am(t),e&&e.response)){e.response.duration=sm(r,i),t.response=e.response;try{e.response.data=Pf.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=J.from(e.response.headers)}return Promise.reject(e)})}var lm={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{lm[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var um={};lm.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Up+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new Y(r(i,` has been removed`+(t?` in `+t:``)),Y.ERR_DEPRECATED);return t&&!um[i]&&(um[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},lm.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function dm(e,t,n){if(typeof e!=`object`||!e)throw new Y(`options must be an object`,Y.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new Y(`option `+a+` must be `+n,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y(`Unknown option `+a,Y.ERR_BAD_OPTION)}}var fm={assertOptions:dm,validators:lm},Q=fm.validators,pm=e=>{if(e==null||q.isPlainObject(e)||e instanceof J)return!0;try{return q.isObject(e)&&q.getSafeProp(e,Symbol.toStringTag)===`AxiosHeaders`&&[`toJSON`,`set`,`get`,`has`,`delete`,`clear`,`normalize`,`concat`,`toString`,Symbol.iterator].every(t=>q.isFunction(q.getSafeProp(e,t)))}catch{return!1}},mm=class{constructor(e){this.defaults=e||{},this.interceptors={request:new pf,response:new pf}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
|
||||
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
|
||||
`),n=t===-1?-1:r.indexOf(`
|
||||
`,t+1),i=n===-1?r:r.slice(n+1),a=String(e.stack),o=Jd(e,a),s=o===-1?a:a.slice(0,o),c=o===-1?``:a.slice(o);s.endsWith(i)||(e.stack=s+`
|
||||
`+r+c)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=mp(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&fm.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean),legacyInterceptorReqResOrdering:Q.transitional(Q.boolean),advertiseZstdAcceptEncoding:Q.transitional(Q.boolean),validateStatusUndefinedResolves:Q.transitional(Q.boolean),encodeBasicAuthUsername:Q.transitional(Q.boolean)},!1),r!=null&&(q.isFunction(r)?t.paramsSerializer={serialize:r}:fm.assertOptions(r,{encode:Q.function,serialize:Q.function},!0)),t.allowAbsoluteUrls!==void 0||(q.hasOwnProp(this.defaults,`allowAbsoluteUrls`)&&this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fm.assertOptions(t,{baseUrl:Q.spelling(`baseURL`),withXsrfToken:Q.spelling(`withXSRFToken`)},!0),t.method=(q.getSafeProp(t,`method`)||q.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=q.getSafeProp(i,`common`),o=q.getSafeProp(i,t.method),s=i&&q.merge(pm(a)?a:void 0,pm(o)?o:void 0);i&&q.forEach(Af.concat(`common`),e=>{pm(q.getSafeProp(i,e))&&delete i[e]}),t.headers=J.concat(s,i);let c=[],l=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;l&&=e.synchronous;let n=t.transitional||mf;n&&n.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let d,f=0,p;if(!l){let e=[cm.bind(this),void 0];for(e.unshift(...c),e.push(...u),p=e.length,d=Promise.resolve(t);f<p;)d=d.then(e[f++],e[f++]);return d}p=c.length;let m=t;for(;f<p;){let e=c[f++],t=c[f++];try{m=e?e(m):m}catch(e){if(!t){d=Promise.reject(e);break}try{let n=t.call(this,e);q.isThenable(n)&&(d=Promise.resolve(n).then(()=>cm.call(this,m)))}catch(e){d=Promise.reject(e)}break}}if(!d)try{d=cm.call(this,m)}catch(e){d=Promise.reject(e)}for(f=0,p=u.length;f<p;)d=d.then(u[f++],u[f++]);return d}getUri(e){return e=mp(this.defaults,e),sf(tp(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};q.forEach([`delete`,`get`,`head`,`options`],function(e){mm.prototype[e]=async function(t,n){return this.request(mp(n||{},{method:e,url:t,data:n&&q.hasOwnProp(n,`data`)?n.data:void 0}))}}),q.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return async function(n,r,i){return this.request(mp(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}mm.prototype[e]=t(),e!==`query`&&(mm.prototype[e+`Form`]=t(!0))});var hm=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new If(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function gm(e){return function(t){return e.apply(null,t)}}function _m(e){return q.isObject(e)&&e.isAxiosError===!0}var vm={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,NetworkAuthentication
Line truncated
|
||||
Reference in new issue
Block a user