@indfnd/utils 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/ind-utils.es.js +1 -1
- package/dist/ind-utils.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/utils/cache/user-cache.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.22](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.21...v0.1.22) (2025-07-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 给SessionStorage增加TOKEN_KEY_IBP ([c9fdef2](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/c9fdef2549707124530347e38703e81249f38ee4))
|
|
11
|
+
|
|
5
12
|
### [0.1.21](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.20...v0.1.21) (2025-05-08)
|
|
6
13
|
|
|
7
14
|
### [0.1.20](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.19...v0.1.20) (2025-01-06)
|
package/dist/ind-utils.es.js
CHANGED
|
@@ -112,7 +112,7 @@ function setPermissionCache(data) {
|
|
|
112
112
|
function clearPermissionCache() {
|
|
113
113
|
removeSessionStorage(PERMISSION_KEY);
|
|
114
114
|
}
|
|
115
|
-
const USER_INFO_KEY = "userInfo";
|
|
115
|
+
const USER_INFO_KEY = "lambo-userInfo";
|
|
116
116
|
function getUserInfoCache() {
|
|
117
117
|
return getLocalStorage(USER_INFO_KEY);
|
|
118
118
|
}
|
package/dist/ind-utils.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(C,_e){typeof exports=="object"&&typeof module!="undefined"?_e(exports):typeof define=="function"&&define.amd?define(["exports"],_e):(C=typeof globalThis!="undefined"?globalThis:C||self,_e(C.IndUtils={}))})(this,function(C){"use strict";var RA=Object.defineProperty,LA=Object.defineProperties;var NA=Object.getOwnPropertyDescriptors;var ru=Object.getOwnPropertySymbols;var nh=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable;var th=(C,_e,Ae)=>_e in C?RA(C,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):C[_e]=Ae,ht=(C,_e)=>{for(var Ae in _e||(_e={}))nh.call(_e,Ae)&&th(C,Ae,_e[Ae]);if(ru)for(var Ae of ru(_e))rh.call(_e,Ae)&&th(C,Ae,_e[Ae]);return C},Mt=(C,_e)=>LA(C,NA(_e));var ih=(C,_e)=>{var Ae={};for(var Ze in C)nh.call(C,Ze)&&_e.indexOf(Ze)<0&&(Ae[Ze]=C[Ze]);if(C!=null&&ru)for(var Ze of ru(C))_e.indexOf(Ze)<0&&rh.call(C,Ze)&&(Ae[Ze]=C[Ze]);return Ae};var iu=(C,_e,Ae)=>new Promise((Ze,qr)=>{var Rn=St=>{try{mn(Ae.next(St))}catch(hr){qr(hr)}},Ln=St=>{try{mn(Ae.throw(St))}catch(hr){qr(hr)}},mn=St=>St.done?Ze(St.value):Promise.resolve(St.value).then(Rn,Ln);mn((Ae=Ae.apply(C,_e)).next())});const _e=n=>{const r=sessionStorage.getItem(n);if(r)try{return JSON.parse(r)}catch(u){return r}return r},Ae=(n,r)=>{typeof r!="string"&&(r=JSON.stringify(r)),sessionStorage.setItem(n,r)},Ze=n=>sessionStorage.removeItem(n);function qr(){sessionStorage.clear()}const Rn=n=>{const r=localStorage.getItem(n);if(r)try{return JSON.parse(r)}catch(u){return r}return r},Ln=(n,r)=>{typeof r!="string"&&(r=JSON.stringify(r)),localStorage.setItem(n,r)},mn=n=>localStorage.removeItem(n),St="indexDesc";function hr(){return Rn(St)}function uh(n){Ln(St,n)}function oh(){mn(St)}const uu="ibp-sc-permission";function ah(){return _e(uu)}function fh(n){Ae(uu,n)}function sh(){Ze(uu)}const ou="userInfo";function lh(){return Rn(ou)}function ch(n){Ln(ou,n)}function hh(){mn(ou)}var _n=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ph(n){if(n.__esModule)return n;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(u){var a=Object.getOwnPropertyDescriptor(n,u);Object.defineProperty(r,u,a.get?a:{enumerable:!0,get:function(){return n[u]}})}),r}var au={exports:{}},Ca=function(r,u){return function(){for(var f=new Array(arguments.length),l=0;l<f.length;l++)f[l]=arguments[l];return r.apply(u,f)}},gh=Ca,wn=Object.prototype.toString;function fu(n){return wn.call(n)==="[object Array]"}function su(n){return typeof n=="undefined"}function dh(n){return n!==null&&!su(n)&&n.constructor!==null&&!su(n.constructor)&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function vh(n){return wn.call(n)==="[object ArrayBuffer]"}function yh(n){return typeof FormData!="undefined"&&n instanceof FormData}function mh(n){var r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&n.buffer instanceof ArrayBuffer,r}function _h(n){return typeof n=="string"}function wh(n){return typeof n=="number"}function xa(n){return n!==null&&typeof n=="object"}function zr(n){if(wn.call(n)!=="[object Object]")return!1;var r=Object.getPrototypeOf(n);return r===null||r===Object.prototype}function Eh(n){return wn.call(n)==="[object Date]"}function Sh(n){return wn.call(n)==="[object File]"}function Ah(n){return wn.call(n)==="[object Blob]"}function Oa(n){return wn.call(n)==="[object Function]"}function bh(n){return xa(n)&&Oa(n.pipe)}function Ch(n){return typeof URLSearchParams!="undefined"&&n instanceof URLSearchParams}function xh(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function Oh(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function lu(n,r){if(!(n===null||typeof n=="undefined"))if(typeof n!="object"&&(n=[n]),fu(n))for(var u=0,a=n.length;u<a;u++)r.call(null,n[u],u,n);else for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&r.call(null,n[f],f,n)}function cu(){var n={};function r(f,l){zr(n[l])&&zr(f)?n[l]=cu(n[l],f):zr(f)?n[l]=cu({},f):fu(f)?n[l]=f.slice():n[l]=f}for(var u=0,a=arguments.length;u<a;u++)lu(arguments[u],r);return n}function Th(n,r,u){return lu(r,function(f,l){u&&typeof f=="function"?n[l]=gh(f,u):n[l]=f}),n}function Ih(n){return n.charCodeAt(0)===65279&&(n=n.slice(1)),n}var rt={isArray:fu,isArrayBuffer:vh,isBuffer:dh,isFormData:yh,isArrayBufferView:mh,isString:_h,isNumber:wh,isObject:xa,isPlainObject:zr,isUndefined:su,isDate:Eh,isFile:Sh,isBlob:Ah,isFunction:Oa,isStream:bh,isURLSearchParams:Ch,isStandardBrowserEnv:Oh,forEach:lu,merge:cu,extend:Th,trim:xh,stripBOM:Ih},Nn=rt;function Ta(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ia=function(r,u,a){if(!u)return r;var f;if(a)f=a(u);else if(Nn.isURLSearchParams(u))f=u.toString();else{var l=[];Nn.forEach(u,function(d,v){d===null||typeof d=="undefined"||(Nn.isArray(d)?v=v+"[]":d=[d],Nn.forEach(d,function(_){Nn.isDate(_)?_=_.toISOString():Nn.isObject(_)&&(_=JSON.stringify(_)),l.push(Ta(v)+"="+Ta(_))}))}),f=l.join("&")}if(f){var g=r.indexOf("#");g!==-1&&(r=r.slice(0,g)),r+=(r.indexOf("?")===-1?"?":"&")+f}return r},$h=rt;function Kr(){this.handlers=[]}Kr.prototype.use=function(r,u,a){return this.handlers.push({fulfilled:r,rejected:u,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1},Kr.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},Kr.prototype.forEach=function(r){$h.forEach(this.handlers,function(a){a!==null&&r(a)})};var Dh=Kr,Fh=rt,Ph=function(r,u){Fh.forEach(r,function(f,l){l!==u&&l.toUpperCase()===u.toUpperCase()&&(r[u]=f,delete r[l])})},$a=function(r,u,a,f,l){return r.config=u,a&&(r.code=a),r.request=f,r.response=l,r.isAxiosError=!0,r.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}},r},Mh=$a,Da=function(r,u,a,f,l){var g=new Error(r);return Mh(g,u,a,f,l)},Rh=Da,Lh=function(r,u,a){var f=a.config.validateStatus;!a.status||!f||f(a.status)?r(a):u(Rh("Request failed with status code "+a.status,a.config,null,a.request,a))},Jr=rt,Nh=Jr.isStandardBrowserEnv()?function(){return{write:function(u,a,f,l,g,p){var d=[];d.push(u+"="+encodeURIComponent(a)),Jr.isNumber(f)&&d.push("expires="+new Date(f).toGMTString()),Jr.isString(l)&&d.push("path="+l),Jr.isString(g)&&d.push("domain="+g),p===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(u){var a=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(u){this.write(u,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Bh=function(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)},Uh=function(r,u){return u?r.replace(/\/+$/,"")+"/"+u.replace(/^\/+/,""):r},Wh=Bh,Hh=Uh,Yh=function(r,u){return r&&!Wh(u)?Hh(r,u):u},hu=rt,kh=["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"],Gh=function(r){var u={},a,f,l;return r&&hu.forEach(r.split(`
|
|
1
|
+
(function(C,_e){typeof exports=="object"&&typeof module!="undefined"?_e(exports):typeof define=="function"&&define.amd?define(["exports"],_e):(C=typeof globalThis!="undefined"?globalThis:C||self,_e(C.IndUtils={}))})(this,function(C){"use strict";var RA=Object.defineProperty,LA=Object.defineProperties;var NA=Object.getOwnPropertyDescriptors;var ru=Object.getOwnPropertySymbols;var nh=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable;var th=(C,_e,Ae)=>_e in C?RA(C,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):C[_e]=Ae,ht=(C,_e)=>{for(var Ae in _e||(_e={}))nh.call(_e,Ae)&&th(C,Ae,_e[Ae]);if(ru)for(var Ae of ru(_e))rh.call(_e,Ae)&&th(C,Ae,_e[Ae]);return C},Mt=(C,_e)=>LA(C,NA(_e));var ih=(C,_e)=>{var Ae={};for(var Ze in C)nh.call(C,Ze)&&_e.indexOf(Ze)<0&&(Ae[Ze]=C[Ze]);if(C!=null&&ru)for(var Ze of ru(C))_e.indexOf(Ze)<0&&rh.call(C,Ze)&&(Ae[Ze]=C[Ze]);return Ae};var iu=(C,_e,Ae)=>new Promise((Ze,qr)=>{var Rn=St=>{try{mn(Ae.next(St))}catch(hr){qr(hr)}},Ln=St=>{try{mn(Ae.throw(St))}catch(hr){qr(hr)}},mn=St=>St.done?Ze(St.value):Promise.resolve(St.value).then(Rn,Ln);mn((Ae=Ae.apply(C,_e)).next())});const _e=n=>{const r=sessionStorage.getItem(n);if(r)try{return JSON.parse(r)}catch(u){return r}return r},Ae=(n,r)=>{typeof r!="string"&&(r=JSON.stringify(r)),sessionStorage.setItem(n,r)},Ze=n=>sessionStorage.removeItem(n);function qr(){sessionStorage.clear()}const Rn=n=>{const r=localStorage.getItem(n);if(r)try{return JSON.parse(r)}catch(u){return r}return r},Ln=(n,r)=>{typeof r!="string"&&(r=JSON.stringify(r)),localStorage.setItem(n,r)},mn=n=>localStorage.removeItem(n),St="indexDesc";function hr(){return Rn(St)}function uh(n){Ln(St,n)}function oh(){mn(St)}const uu="ibp-sc-permission";function ah(){return _e(uu)}function fh(n){Ae(uu,n)}function sh(){Ze(uu)}const ou="lambo-userInfo";function lh(){return Rn(ou)}function ch(n){Ln(ou,n)}function hh(){mn(ou)}var _n=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ph(n){if(n.__esModule)return n;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(u){var a=Object.getOwnPropertyDescriptor(n,u);Object.defineProperty(r,u,a.get?a:{enumerable:!0,get:function(){return n[u]}})}),r}var au={exports:{}},Ca=function(r,u){return function(){for(var f=new Array(arguments.length),l=0;l<f.length;l++)f[l]=arguments[l];return r.apply(u,f)}},gh=Ca,wn=Object.prototype.toString;function fu(n){return wn.call(n)==="[object Array]"}function su(n){return typeof n=="undefined"}function dh(n){return n!==null&&!su(n)&&n.constructor!==null&&!su(n.constructor)&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function vh(n){return wn.call(n)==="[object ArrayBuffer]"}function yh(n){return typeof FormData!="undefined"&&n instanceof FormData}function mh(n){var r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(n):r=n&&n.buffer&&n.buffer instanceof ArrayBuffer,r}function _h(n){return typeof n=="string"}function wh(n){return typeof n=="number"}function xa(n){return n!==null&&typeof n=="object"}function zr(n){if(wn.call(n)!=="[object Object]")return!1;var r=Object.getPrototypeOf(n);return r===null||r===Object.prototype}function Eh(n){return wn.call(n)==="[object Date]"}function Sh(n){return wn.call(n)==="[object File]"}function Ah(n){return wn.call(n)==="[object Blob]"}function Oa(n){return wn.call(n)==="[object Function]"}function bh(n){return xa(n)&&Oa(n.pipe)}function Ch(n){return typeof URLSearchParams!="undefined"&&n instanceof URLSearchParams}function xh(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function Oh(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function lu(n,r){if(!(n===null||typeof n=="undefined"))if(typeof n!="object"&&(n=[n]),fu(n))for(var u=0,a=n.length;u<a;u++)r.call(null,n[u],u,n);else for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&r.call(null,n[f],f,n)}function cu(){var n={};function r(f,l){zr(n[l])&&zr(f)?n[l]=cu(n[l],f):zr(f)?n[l]=cu({},f):fu(f)?n[l]=f.slice():n[l]=f}for(var u=0,a=arguments.length;u<a;u++)lu(arguments[u],r);return n}function Th(n,r,u){return lu(r,function(f,l){u&&typeof f=="function"?n[l]=gh(f,u):n[l]=f}),n}function Ih(n){return n.charCodeAt(0)===65279&&(n=n.slice(1)),n}var rt={isArray:fu,isArrayBuffer:vh,isBuffer:dh,isFormData:yh,isArrayBufferView:mh,isString:_h,isNumber:wh,isObject:xa,isPlainObject:zr,isUndefined:su,isDate:Eh,isFile:Sh,isBlob:Ah,isFunction:Oa,isStream:bh,isURLSearchParams:Ch,isStandardBrowserEnv:Oh,forEach:lu,merge:cu,extend:Th,trim:xh,stripBOM:Ih},Nn=rt;function Ta(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ia=function(r,u,a){if(!u)return r;var f;if(a)f=a(u);else if(Nn.isURLSearchParams(u))f=u.toString();else{var l=[];Nn.forEach(u,function(d,v){d===null||typeof d=="undefined"||(Nn.isArray(d)?v=v+"[]":d=[d],Nn.forEach(d,function(_){Nn.isDate(_)?_=_.toISOString():Nn.isObject(_)&&(_=JSON.stringify(_)),l.push(Ta(v)+"="+Ta(_))}))}),f=l.join("&")}if(f){var g=r.indexOf("#");g!==-1&&(r=r.slice(0,g)),r+=(r.indexOf("?")===-1?"?":"&")+f}return r},$h=rt;function Kr(){this.handlers=[]}Kr.prototype.use=function(r,u,a){return this.handlers.push({fulfilled:r,rejected:u,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1},Kr.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},Kr.prototype.forEach=function(r){$h.forEach(this.handlers,function(a){a!==null&&r(a)})};var Dh=Kr,Fh=rt,Ph=function(r,u){Fh.forEach(r,function(f,l){l!==u&&l.toUpperCase()===u.toUpperCase()&&(r[u]=f,delete r[l])})},$a=function(r,u,a,f,l){return r.config=u,a&&(r.code=a),r.request=f,r.response=l,r.isAxiosError=!0,r.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}},r},Mh=$a,Da=function(r,u,a,f,l){var g=new Error(r);return Mh(g,u,a,f,l)},Rh=Da,Lh=function(r,u,a){var f=a.config.validateStatus;!a.status||!f||f(a.status)?r(a):u(Rh("Request failed with status code "+a.status,a.config,null,a.request,a))},Jr=rt,Nh=Jr.isStandardBrowserEnv()?function(){return{write:function(u,a,f,l,g,p){var d=[];d.push(u+"="+encodeURIComponent(a)),Jr.isNumber(f)&&d.push("expires="+new Date(f).toGMTString()),Jr.isString(l)&&d.push("path="+l),Jr.isString(g)&&d.push("domain="+g),p===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(u){var a=document.cookie.match(new RegExp("(^|;\\s*)("+u+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(u){this.write(u,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Bh=function(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)},Uh=function(r,u){return u?r.replace(/\/+$/,"")+"/"+u.replace(/^\/+/,""):r},Wh=Bh,Hh=Uh,Yh=function(r,u){return r&&!Wh(u)?Hh(r,u):u},hu=rt,kh=["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"],Gh=function(r){var u={},a,f,l;return r&&hu.forEach(r.split(`
|
|
2
2
|
`),function(p){if(l=p.indexOf(":"),a=hu.trim(p.substr(0,l)).toLowerCase(),f=hu.trim(p.substr(l+1)),a){if(u[a]&&kh.indexOf(a)>=0)return;a==="set-cookie"?u[a]=(u[a]?u[a]:[]).concat([f]):u[a]=u[a]?u[a]+", "+f:f}}),u},Fa=rt,qh=Fa.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a"),a;function f(l){var g=l;return r&&(u.setAttribute("href",g),g=u.href),u.setAttribute("href",g),{href:u.href,protocol:u.protocol?u.protocol.replace(/:$/,""):"",host:u.host,search:u.search?u.search.replace(/^\?/,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:u.pathname.charAt(0)==="/"?u.pathname:"/"+u.pathname}}return a=f(window.location.href),function(g){var p=Fa.isString(g)?f(g):g;return p.protocol===a.protocol&&p.host===a.host}}():function(){return function(){return!0}}(),Vr=rt,zh=Lh,Kh=Nh,Jh=Ia,Vh=Yh,Qh=Gh,Xh=qh,pu=Da,Pa=function(r){return new Promise(function(a,f){var l=r.data,g=r.headers,p=r.responseType;Vr.isFormData(l)&&delete g["Content-Type"];var d=new XMLHttpRequest;if(r.auth){var v=r.auth.username||"",E=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";g.Authorization="Basic "+btoa(v+":"+E)}var _=Vh(r.baseURL,r.url);d.open(r.method.toUpperCase(),Jh(_,r.params,r.paramsSerializer),!0),d.timeout=r.timeout;function w(){if(!!d){var $="getAllResponseHeaders"in d?Qh(d.getAllResponseHeaders()):null,M=!p||p==="text"||p==="json"?d.responseText:d.response,B={data:M,status:d.status,statusText:d.statusText,headers:$,config:r,request:d};zh(a,f,B),d=null}}if("onloadend"in d?d.onloadend=w:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(w)},d.onabort=function(){!d||(f(pu("Request aborted",r,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(pu("Network Error",r,null,d)),d=null},d.ontimeout=function(){var M="timeout of "+r.timeout+"ms exceeded";r.timeoutErrorMessage&&(M=r.timeoutErrorMessage),f(pu(M,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},Vr.isStandardBrowserEnv()){var S=(r.withCredentials||Xh(_))&&r.xsrfCookieName?Kh.read(r.xsrfCookieName):void 0;S&&(g[r.xsrfHeaderName]=S)}"setRequestHeader"in d&&Vr.forEach(g,function(M,B){typeof l=="undefined"&&B.toLowerCase()==="content-type"?delete g[B]:d.setRequestHeader(B,M)}),Vr.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),p&&p!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",r.onUploadProgress),r.cancelToken&&r.cancelToken.promise.then(function(M){!d||(d.abort(),f(M),d=null)}),l||(l=null),d.send(l)})},Ue=rt,Ma=Ph,Zh=$a,jh={"Content-Type":"application/x-www-form-urlencoded"};function Ra(n,r){!Ue.isUndefined(n)&&Ue.isUndefined(n["Content-Type"])&&(n["Content-Type"]=r)}function ep(){var n;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(n=Pa),n}function tp(n,r,u){if(Ue.isString(n))try{return(r||JSON.parse)(n),Ue.trim(n)}catch(a){if(a.name!=="SyntaxError")throw a}return(u||JSON.stringify)(n)}var Qr={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:ep(),transformRequest:[function(r,u){return Ma(u,"Accept"),Ma(u,"Content-Type"),Ue.isFormData(r)||Ue.isArrayBuffer(r)||Ue.isBuffer(r)||Ue.isStream(r)||Ue.isFile(r)||Ue.isBlob(r)?r:Ue.isArrayBufferView(r)?r.buffer:Ue.isURLSearchParams(r)?(Ra(u,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):Ue.isObject(r)||u&&u["Content-Type"]==="application/json"?(Ra(u,"application/json"),tp(r)):r}],transformResponse:[function(r){var u=this.transitional,a=u&&u.silentJSONParsing,f=u&&u.forcedJSONParsing,l=!a&&this.responseType==="json";if(l||f&&Ue.isString(r)&&r.length)try{return JSON.parse(r)}catch(g){if(l)throw g.name==="SyntaxError"?Zh(g,this,"E_JSON_PARSE"):g}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(r){return r>=200&&r<300}};Qr.headers={common:{Accept:"application/json, text/plain, */*"}},Ue.forEach(["delete","get","head"],function(r){Qr.headers[r]={}}),Ue.forEach(["post","put","patch"],function(r){Qr.headers[r]=Ue.merge(jh)});var gu=Qr,np=rt,rp=gu,ip=function(r,u,a){var f=this||rp;return np.forEach(a,function(g){r=g.call(f,r,u)}),r},La=function(r){return!!(r&&r.__CANCEL__)},Na=rt,du=ip,up=La,op=gu;function vu(n){n.cancelToken&&n.cancelToken.throwIfRequested()}var ap=function(r){vu(r),r.headers=r.headers||{},r.data=du.call(r,r.data,r.headers,r.transformRequest),r.headers=Na.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),Na.forEach(["delete","get","head","post","put","patch","common"],function(f){delete r.headers[f]});var u=r.adapter||op.adapter;return u(r).then(function(f){return vu(r),f.data=du.call(r,f.data,f.headers,r.transformResponse),f},function(f){return up(f)||(vu(r),f&&f.response&&(f.response.data=du.call(r,f.response.data,f.response.headers,r.transformResponse))),Promise.reject(f)})},Ye=rt,Ba=function(r,u){u=u||{};var a={},f=["url","method","data"],l=["headers","auth","proxy","params"],g=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],p=["validateStatus"];function d(w,S){return Ye.isPlainObject(w)&&Ye.isPlainObject(S)?Ye.merge(w,S):Ye.isPlainObject(S)?Ye.merge({},S):Ye.isArray(S)?S.slice():S}function v(w){Ye.isUndefined(u[w])?Ye.isUndefined(r[w])||(a[w]=d(void 0,r[w])):a[w]=d(r[w],u[w])}Ye.forEach(f,function(S){Ye.isUndefined(u[S])||(a[S]=d(void 0,u[S]))}),Ye.forEach(l,v),Ye.forEach(g,function(S){Ye.isUndefined(u[S])?Ye.isUndefined(r[S])||(a[S]=d(void 0,r[S])):a[S]=d(void 0,u[S])}),Ye.forEach(p,function(S){S in u?a[S]=d(r[S],u[S]):S in r&&(a[S]=d(void 0,r[S]))});var E=f.concat(l).concat(g).concat(p),_=Object.keys(r).concat(Object.keys(u)).filter(function(S){return E.indexOf(S)===-1});return Ye.forEach(_,v),a},fp={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]},Ua=fp,yu={};["object","boolean","number","function","string","symbol"].forEach(function(n,r){yu[n]=function(a){return typeof a===n||"a"+(r<1?"n ":" ")+n}});var Wa={},sp=Ua.version.split(".");function Ha(n,r){for(var u=r?r.split("."):sp,a=n.split("."),f=0;f<3;f++){if(u[f]>a[f])return!0;if(u[f]<a[f])return!1}return!1}yu.transitional=function(r,u,a){var f=u&&Ha(u);function l(g,p){return"[Axios v"+Ua.version+"] Transitional option '"+g+"'"+p+(a?". "+a:"")}return function(g,p,d){if(r===!1)throw new Error(l(p," has been removed in "+u));return f&&!Wa[p]&&(Wa[p]=!0,console.warn(l(p," has been deprecated since v"+u+" and will be removed in the near future"))),r?r(g,p,d):!0}};function lp(n,r,u){if(typeof n!="object")throw new TypeError("options must be an object");for(var a=Object.keys(n),f=a.length;f-- >0;){var l=a[f],g=r[l];if(g){var p=n[l],d=p===void 0||g(p,l,n);if(d!==!0)throw new TypeError("option "+l+" must be "+d);continue}if(u!==!0)throw Error("Unknown option "+l)}}var cp={isOlderVersion:Ha,assertOptions:lp,validators:yu},Ya=rt,hp=Ia,ka=Dh,Ga=ap,Xr=Ba,qa=cp,Bn=qa.validators;function pr(n){this.defaults=n,this.interceptors={request:new ka,response:new ka}}pr.prototype.request=function(r){typeof r=="string"?(r=arguments[1]||{},r.url=arguments[0]):r=r||{},r=Xr(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var u=r.transitional;u!==void 0&&qa.assertOptions(u,{silentJSONParsing:Bn.transitional(Bn.boolean,"1.0.0"),forcedJSONParsing:Bn.transitional(Bn.boolean,"1.0.0"),clarifyTimeoutError:Bn.transitional(Bn.boolean,"1.0.0")},!1);var a=[],f=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(r)===!1||(f=f&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});var l=[];this.interceptors.response.forEach(function(w){l.push(w.fulfilled,w.rejected)});var g;if(!f){var p=[Ga,void 0];for(Array.prototype.unshift.apply(p,a),p=p.concat(l),g=Promise.resolve(r);p.length;)g=g.then(p.shift(),p.shift());return g}for(var d=r;a.length;){var v=a.shift(),E=a.shift();try{d=v(d)}catch(_){E(_);break}}try{g=Ga(d)}catch(_){return Promise.reject(_)}for(;l.length;)g=g.then(l.shift(),l.shift());return g},pr.prototype.getUri=function(r){return r=Xr(this.defaults,r),hp(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")},Ya.forEach(["delete","get","head","options"],function(r){pr.prototype[r]=function(u,a){return this.request(Xr(a||{},{method:r,url:u,data:(a||{}).data}))}}),Ya.forEach(["post","put","patch"],function(r){pr.prototype[r]=function(u,a,f){return this.request(Xr(f||{},{method:r,url:u,data:a}))}});var pp=pr;function mu(n){this.message=n}mu.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},mu.prototype.__CANCEL__=!0;var za=mu,gp=za;function Zr(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(f){r=f});var u=this;n(function(f){u.reason||(u.reason=new gp(f),r(u.reason))})}Zr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Zr.source=function(){var r,u=new Zr(function(f){r=f});return{token:u,cancel:r}};var dp=Zr,vp=function(r){return function(a){return r.apply(null,a)}},yp=function(r){return typeof r=="object"&&r.isAxiosError===!0},Ka=rt,mp=Ca,jr=pp,_p=Ba,wp=gu;function Ja(n){var r=new jr(n),u=mp(jr.prototype.request,r);return Ka.extend(u,jr.prototype,r),Ka.extend(u,r),u}var At=Ja(wp);At.Axios=jr,At.create=function(r){return Ja(_p(At.defaults,r))},At.Cancel=za,At.CancelToken=dp,At.isCancel=La,At.all=function(r){return Promise.all(r)},At.spread=vp,At.isAxiosError=yp,au.exports=At,au.exports.default=At;var Ep=au.exports,Sp=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},u=Symbol("test"),a=Object(u);if(typeof u=="string"||Object.prototype.toString.call(u)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var f=42;r[u]=f;for(u in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==u||!Object.prototype.propertyIsEnumerable.call(r,u))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(r,u);if(g.value!==f||g.enumerable!==!0)return!1}return!0},Va=typeof Symbol!="undefined"&&Symbol,Ap=Sp,bp=function(){return typeof Va!="function"||typeof Symbol!="function"||typeof Va("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ap()},Qa={foo:{}},Cp=Object,xp=function(){return{__proto__:Qa}.foo===Qa.foo&&!({__proto__:null}instanceof Cp)},Op="Function.prototype.bind called on incompatible ",Tp=Object.prototype.toString,Ip=Math.max,$p="[object Function]",Xa=function(r,u){for(var a=[],f=0;f<r.length;f+=1)a[f]=r[f];for(var l=0;l<u.length;l+=1)a[l+r.length]=u[l];return a},Dp=function(r,u){for(var a=[],f=u||0,l=0;f<r.length;f+=1,l+=1)a[l]=r[f];return a},Fp=function(n,r){for(var u="",a=0;a<n.length;a+=1)u+=n[a],a+1<n.length&&(u+=r);return u},Pp=function(r){var u=this;if(typeof u!="function"||Tp.apply(u)!==$p)throw new TypeError(Op+u);for(var a=Dp(arguments,1),f,l=function(){if(this instanceof f){var E=u.apply(this,Xa(a,arguments));return Object(E)===E?E:this}return u.apply(r,Xa(a,arguments))},g=Ip(0,u.length-a.length),p=[],d=0;d<g;d++)p[d]="$"+d;if(f=Function("binder","return function ("+Fp(p,",")+"){ return binder.apply(this,arguments); }")(l),u.prototype){var v=function(){};v.prototype=u.prototype,f.prototype=new v,v.prototype=null}return f},Mp=Pp,_u=Function.prototype.bind||Mp,Rp=Function.prototype.call,Lp=Object.prototype.hasOwnProperty,Np=_u,Bp=Np.call(Rp,Lp),se,Un=SyntaxError,Za=Function,Wn=TypeError,wu=function(n){try{return Za('"use strict"; return ('+n+").constructor;")()}catch(r){}},En=Object.getOwnPropertyDescriptor;if(En)try{En({},"")}catch(n){En=null}var Eu=function(){throw new Wn},Up=En?function(){try{return arguments.callee,Eu}catch(n){try{return En(arguments,"callee").get}catch(r){return Eu}}}():Eu,Hn=bp(),Wp=xp(),Re=Object.getPrototypeOf||(Wp?function(n){return n.__proto__}:null),Yn={},Hp=typeof Uint8Array=="undefined"||!Re?se:Re(Uint8Array),Sn={"%AggregateError%":typeof AggregateError=="undefined"?se:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?se:ArrayBuffer,"%ArrayIteratorPrototype%":Hn&&Re?Re([][Symbol.iterator]()):se,"%AsyncFromSyncIteratorPrototype%":se,"%AsyncFunction%":Yn,"%AsyncGenerator%":Yn,"%AsyncGeneratorFunction%":Yn,"%AsyncIteratorPrototype%":Yn,"%Atomics%":typeof Atomics=="undefined"?se:Atomics,"%BigInt%":typeof BigInt=="undefined"?se:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?se:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?se:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?se:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?se:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?se:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?se:FinalizationRegistry,"%Function%":Za,"%GeneratorFunction%":Yn,"%Int8Array%":typeof Int8Array=="undefined"?se:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?se:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?se:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Hn&&Re?Re(Re([][Symbol.iterator]())):se,"%JSON%":typeof JSON=="object"?JSON:se,"%Map%":typeof Map=="undefined"?se:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Hn||!Re?se:Re(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?se:Promise,"%Proxy%":typeof Proxy=="undefined"?se:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?se:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?se:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Hn||!Re?se:Re(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?se:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Hn&&Re?Re(""[Symbol.iterator]()):se,"%Symbol%":Hn?Symbol:se,"%SyntaxError%":Un,"%ThrowTypeError%":Up,"%TypedArray%":Hp,"%TypeError%":Wn,"%Uint8Array%":typeof Uint8Array=="undefined"?se:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?se:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?se:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?se:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?se:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?se:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?se:WeakSet};if(Re)try{null.error}catch(n){var Yp=Re(Re(n));Sn["%Error.prototype%"]=Yp}var kp=function n(r){var u;if(r==="%AsyncFunction%")u=wu("async function () {}");else if(r==="%GeneratorFunction%")u=wu("function* () {}");else if(r==="%AsyncGeneratorFunction%")u=wu("async function* () {}");else if(r==="%AsyncGenerator%"){var a=n("%AsyncGeneratorFunction%");a&&(u=a.prototype)}else if(r==="%AsyncIteratorPrototype%"){var f=n("%AsyncGenerator%");f&&Re&&(u=Re(f.prototype))}return Sn[r]=u,u},ja={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},gr=_u,ei=Bp,Gp=gr.call(Function.call,Array.prototype.concat),qp=gr.call(Function.apply,Array.prototype.splice),ef=gr.call(Function.call,String.prototype.replace),ti=gr.call(Function.call,String.prototype.slice),zp=gr.call(Function.call,RegExp.prototype.exec),Kp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jp=/\\(\\)?/g,Vp=function(r){var u=ti(r,0,1),a=ti(r,-1);if(u==="%"&&a!=="%")throw new Un("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&u!=="%")throw new Un("invalid intrinsic syntax, expected opening `%`");var f=[];return ef(r,Kp,function(l,g,p,d){f[f.length]=p?ef(d,Jp,"$1"):g||l}),f},Qp=function(r,u){var a=r,f;if(ei(ja,a)&&(f=ja[a],a="%"+f[0]+"%"),ei(Sn,a)){var l=Sn[a];if(l===Yn&&(l=kp(a)),typeof l=="undefined"&&!u)throw new Wn("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:f,name:a,value:l}}throw new Un("intrinsic "+r+" does not exist!")},An=function(r,u){if(typeof r!="string"||r.length===0)throw new Wn("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof u!="boolean")throw new Wn('"allowMissing" argument must be a boolean');if(zp(/^%?[^%]*%?$/,r)===null)throw new Un("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Vp(r),f=a.length>0?a[0]:"",l=Qp("%"+f+"%",u),g=l.name,p=l.value,d=!1,v=l.alias;v&&(f=v[0],qp(a,Gp([0,1],v)));for(var E=1,_=!0;E<a.length;E+=1){var w=a[E],S=ti(w,0,1),$=ti(w,-1);if((S==='"'||S==="'"||S==="`"||$==='"'||$==="'"||$==="`")&&S!==$)throw new Un("property names with quotes must have matching quotes");if((w==="constructor"||!_)&&(d=!0),f+="."+w,g="%"+f+"%",ei(Sn,g))p=Sn[g];else if(p!=null){if(!(w in p)){if(!u)throw new Wn("base intrinsic for "+r+" exists, but the property is not available.");return}if(En&&E+1>=a.length){var M=En(p,w);_=!!M,_&&"get"in M&&!("originalValue"in M.get)?p=M.get:p=p[w]}else _=ei(p,w),p=p[w];_&&!d&&(Sn[g]=p)}}return p},tf={exports:{}},Xp=An,Su=Xp("%Object.defineProperty%",!0),Au=function(){if(Su)try{return Su({},"a",{value:1}),!0}catch(r){return!1}return!1};Au.hasArrayLengthDefineBug=function(){if(!Au())return null;try{return Su([],"length",{value:1}).length!==1}catch(r){return!0}};var nf=Au,Zp=An,ni=Zp("%Object.getOwnPropertyDescriptor%",!0);if(ni)try{ni([],"length")}catch(n){ni=null}var rf=ni,jp=nf(),bu=An,dr=jp&&bu("%Object.defineProperty%",!0);if(dr)try{dr({},"a",{value:1})}catch(n){dr=!1}var eg=bu("%SyntaxError%"),kn=bu("%TypeError%"),uf=rf,tg=function(r,u,a){if(!r||typeof r!="object"&&typeof r!="function")throw new kn("`obj` must be an object or a function`");if(typeof u!="string"&&typeof u!="symbol")throw new kn("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new kn("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new kn("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new kn("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new kn("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,d=!!uf&&uf(r,u);if(dr)dr(r,u,{configurable:g===null&&d?d.configurable:!g,enumerable:f===null&&d?d.enumerable:!f,value:a,writable:l===null&&d?d.writable:!l});else if(p||!f&&!l&&!g)r[u]=a;else throw new eg("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},of=An,af=tg,ng=nf(),ff=rf,sf=of("%TypeError%"),rg=of("%Math.floor%"),ig=function(r,u){if(typeof r!="function")throw new sf("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||rg(u)!==u)throw new sf("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],f=!0,l=!0;if("length"in r&&ff){var g=ff(r,"length");g&&!g.configurable&&(f=!1),g&&!g.writable&&(l=!1)}return(f||l||!a)&&(ng?af(r,"length",u,!0,!0):af(r,"length",u)),r};(function(n){var r=_u,u=An,a=ig,f=u("%TypeError%"),l=u("%Function.prototype.apply%"),g=u("%Function.prototype.call%"),p=u("%Reflect.apply%",!0)||r.call(g,l),d=u("%Object.defineProperty%",!0),v=u("%Math.max%");if(d)try{d({},"a",{value:1})}catch(_){d=null}n.exports=function(w){if(typeof w!="function")throw new f("a function is required");var S=p(r,g,arguments);return a(S,1+v(0,w.length-(arguments.length-1)),!0)};var E=function(){return p(r,l,arguments)};d?d(n.exports,"apply",{value:E}):n.exports.apply=E})(tf);var lf=An,cf=tf.exports,ug=cf(lf("String.prototype.indexOf")),og=function(r,u){var a=lf(r,!!u);return typeof a=="function"&&ug(r,".prototype.")>-1?cf(a):a},ag={},fg=Object.freeze(Object.defineProperty({__proto__:null,default:ag},Symbol.toStringTag,{value:"Module"})),sg=ph(fg),Cu=typeof Map=="function"&&Map.prototype,xu=Object.getOwnPropertyDescriptor&&Cu?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ri=Cu&&xu&&typeof xu.get=="function"?xu.get:null,hf=Cu&&Map.prototype.forEach,Ou=typeof Set=="function"&&Set.prototype,Tu=Object.getOwnPropertyDescriptor&&Ou?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ii=Ou&&Tu&&typeof Tu.get=="function"?Tu.get:null,pf=Ou&&Set.prototype.forEach,lg=typeof WeakMap=="function"&&WeakMap.prototype,vr=lg?WeakMap.prototype.has:null,cg=typeof WeakSet=="function"&&WeakSet.prototype,yr=cg?WeakSet.prototype.has:null,hg=typeof WeakRef=="function"&&WeakRef.prototype,gf=hg?WeakRef.prototype.deref:null,pg=Boolean.prototype.valueOf,gg=Object.prototype.toString,dg=Function.prototype.toString,vg=String.prototype.match,Iu=String.prototype.slice,un=String.prototype.replace,yg=String.prototype.toUpperCase,df=String.prototype.toLowerCase,vf=RegExp.prototype.test,yf=Array.prototype.concat,Rt=Array.prototype.join,mg=Array.prototype.slice,mf=Math.floor,$u=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Du=Object.getOwnPropertySymbols,Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ke=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Gn?"object":"symbol")?Symbol.toStringTag:null,_f=Object.prototype.propertyIsEnumerable,wf=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function Ef(n,r){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||vf.call(/e/,r))return r;var u=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var a=n<0?-mf(-n):mf(n);if(a!==n){var f=String(a),l=Iu.call(r,f.length+1);return un.call(f,u,"$&_")+"."+un.call(un.call(l,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(r,u,"$&_")}var Pu=sg,Sf=Pu.custom,Af=xf(Sf)?Sf:null,_g=function n(r,u,a,f){var l=u||{};if(on(l,"quoteStyle")&&l.quoteStyle!=="single"&&l.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(on(l,"maxStringLength")&&(typeof l.maxStringLength=="number"?l.maxStringLength<0&&l.maxStringLength!==1/0:l.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=on(l,"customInspect")?l.customInspect:!0;if(typeof g!="boolean"&&g!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(on(l,"indent")&&l.indent!==null&&l.indent!==" "&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(on(l,"numericSeparator")&&typeof l.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var p=l.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Tf(r,l);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var d=String(r);return p?Ef(r,d):d}if(typeof r=="bigint"){var v=String(r)+"n";return p?Ef(r,v):v}var E=typeof l.depth=="undefined"?5:l.depth;if(typeof a=="undefined"&&(a=0),a>=E&&E>0&&typeof r=="object")return Mu(r)?"[Array]":"[Object]";var _=Ng(l,a);if(typeof f=="undefined")f=[];else if(Of(f,r)>=0)return"[Circular]";function w(qe,K,H){if(K&&(f=mg.call(f),f.push(K)),H){var L={depth:l.depth};return on(l,"quoteStyle")&&(L.quoteStyle=l.quoteStyle),n(qe,L,a+1,f)}return n(qe,l,a+1,f)}if(typeof r=="function"&&!Cf(r)){var S=Tg(r),$=ui(r,w);return"[Function"+(S?": "+S:" (anonymous)")+"]"+($.length>0?" { "+Rt.call($,", ")+" }":"")}if(xf(r)){var M=Gn?un.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Fu.call(r);return typeof r=="object"&&!Gn?mr(M):M}if(Mg(r)){for(var B="<"+df.call(String(r.nodeName)),P=r.attributes||[],k=0;k<P.length;k++)B+=" "+P[k].name+"="+bf(wg(P[k].value),"double",l);return B+=">",r.childNodes&&r.childNodes.length&&(B+="..."),B+="</"+df.call(String(r.nodeName))+">",B}if(Mu(r)){if(r.length===0)return"[]";var F=ui(r,w);return _&&!Lg(F)?"["+Lu(F,_)+"]":"[ "+Rt.call(F,", ")+" ]"}if(Sg(r)){var N=ui(r,w);return!("cause"in Error.prototype)&&"cause"in r&&!_f.call(r,"cause")?"{ ["+String(r)+"] "+Rt.call(yf.call("[cause]: "+w(r.cause),N),", ")+" }":N.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Rt.call(N,", ")+" }"}if(typeof r=="object"&&g){if(Af&&typeof r[Af]=="function"&&Pu)return Pu(r,{depth:E-a});if(g!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(Ig(r)){var R=[];return hf&&hf.call(r,function(qe,K){R.push(w(K,r,!0)+" => "+w(qe,r))}),If("Map",ri.call(r),R,_)}if(Fg(r)){var X=[];return pf&&pf.call(r,function(qe){X.push(w(qe,r))}),If("Set",ii.call(r),X,_)}if($g(r))return Ru("WeakMap");if(Pg(r))return Ru("WeakSet");if(Dg(r))return Ru("WeakRef");if(bg(r))return mr(w(Number(r)));if(xg(r))return mr(w($u.call(r)));if(Cg(r))return mr(pg.call(r));if(Ag(r))return mr(w(String(r)));if(typeof window!="undefined"&&r===window)return"{ [object Window] }";if(r===_n)return"{ [object globalThis] }";if(!Eg(r)&&!Cf(r)){var z=ui(r,w),ue=wf?wf(r)===Object.prototype:r instanceof Object||r.constructor===Object,ye=r instanceof Object?"":"null prototype",de=!ue&&ke&&Object(r)===r&&ke in r?Iu.call(an(r),8,-1):ye?"Object":"",oe=ue||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",$e=oe+(de||ye?"["+Rt.call(yf.call([],de||[],ye||[]),": ")+"] ":"");return z.length===0?$e+"{}":_?$e+"{"+Lu(z,_)+"}":$e+"{ "+Rt.call(z,", ")+" }"}return String(r)};function bf(n,r,u){var a=(u.quoteStyle||r)==="double"?'"':"'";return a+n+a}function wg(n){return un.call(String(n),/"/g,""")}function Mu(n){return an(n)==="[object Array]"&&(!ke||!(typeof n=="object"&&ke in n))}function Eg(n){return an(n)==="[object Date]"&&(!ke||!(typeof n=="object"&&ke in n))}function Cf(n){return an(n)==="[object RegExp]"&&(!ke||!(typeof n=="object"&&ke in n))}function Sg(n){return an(n)==="[object Error]"&&(!ke||!(typeof n=="object"&&ke in n))}function Ag(n){return an(n)==="[object String]"&&(!ke||!(typeof n=="object"&&ke in n))}function bg(n){return an(n)==="[object Number]"&&(!ke||!(typeof n=="object"&&ke in n))}function Cg(n){return an(n)==="[object Boolean]"&&(!ke||!(typeof n=="object"&&ke in n))}function xf(n){if(Gn)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Fu)return!1;try{return Fu.call(n),!0}catch(r){}return!1}function xg(n){if(!n||typeof n!="object"||!$u)return!1;try{return $u.call(n),!0}catch(r){}return!1}var Og=Object.prototype.hasOwnProperty||function(n){return n in this};function on(n,r){return Og.call(n,r)}function an(n){return gg.call(n)}function Tg(n){if(n.name)return n.name;var r=vg.call(dg.call(n),/^function\s*([\w$]+)/);return r?r[1]:null}function Of(n,r){if(n.indexOf)return n.indexOf(r);for(var u=0,a=n.length;u<a;u++)if(n[u]===r)return u;return-1}function Ig(n){if(!ri||!n||typeof n!="object")return!1;try{ri.call(n);try{ii.call(n)}catch(r){return!0}return n instanceof Map}catch(r){}return!1}function $g(n){if(!vr||!n||typeof n!="object")return!1;try{vr.call(n,vr);try{yr.call(n,yr)}catch(r){return!0}return n instanceof WeakMap}catch(r){}return!1}function Dg(n){if(!gf||!n||typeof n!="object")return!1;try{return gf.call(n),!0}catch(r){}return!1}function Fg(n){if(!ii||!n||typeof n!="object")return!1;try{ii.call(n);try{ri.call(n)}catch(r){return!0}return n instanceof Set}catch(r){}return!1}function Pg(n){if(!yr||!n||typeof n!="object")return!1;try{yr.call(n,yr);try{vr.call(n,vr)}catch(r){return!0}return n instanceof WeakSet}catch(r){}return!1}function Mg(n){return!n||typeof n!="object"?!1:typeof HTMLElement!="undefined"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Tf(n,r){if(n.length>r.maxStringLength){var u=n.length-r.maxStringLength,a="... "+u+" more character"+(u>1?"s":"");return Tf(Iu.call(n,0,r.maxStringLength),r)+a}var f=un.call(un.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Rg);return bf(f,"single",r)}function Rg(n){var r=n.charCodeAt(0),u={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return u?"\\"+u:"\\x"+(r<16?"0":"")+yg.call(r.toString(16))}function mr(n){return"Object("+n+")"}function Ru(n){return n+" { ? }"}function If(n,r,u,a){var f=a?Lu(u,a):Rt.call(u,", ");return n+" ("+r+") {"+f+"}"}function Lg(n){for(var r=0;r<n.length;r++)if(Of(n[r],`
|
|
3
3
|
`)>=0)return!1;return!0}function Ng(n,r){var u;if(n.indent===" ")u=" ";else if(typeof n.indent=="number"&&n.indent>0)u=Rt.call(Array(n.indent+1)," ");else return null;return{base:u,prev:Rt.call(Array(r+1),u)}}function Lu(n,r){if(n.length===0)return"";var u=`
|
|
4
4
|
`+r.prev+r.base;return u+Rt.call(n,","+u)+`
|
package/package.json
CHANGED