yxuse 3.0.38 → 3.0.40
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/lib/api.cjs.js +1 -1
- package/lib/api.es.js +9 -9
- package/lib/app.cjs.js +1 -1
- package/lib/app.es.js +1 -1
- package/lib/components.cjs.js +1 -1
- package/lib/components.es.js +15 -17
- package/lib/directives.cjs.js +1 -1
- package/lib/directives.es.js +3 -3
- package/lib/hooks.cjs.js +1 -1
- package/lib/hooks.es.js +2 -2
- package/lib/index.cjs.js +1 -1
- package/lib/index.cjs10.js +1 -1
- package/lib/index.cjs11.js +1 -0
- package/lib/index.cjs11.js.gz +0 -0
- package/lib/index.cjs12.js +1 -0
- package/lib/index.cjs13.js +1 -0
- package/lib/index.cjs2.js +1 -42
- package/lib/index.cjs3.js +1 -1
- package/lib/index.cjs4.js +1 -1
- package/lib/index.cjs5.js +22 -1
- package/lib/index.cjs5.js.gz +0 -0
- package/lib/index.cjs6.js +1 -1
- package/lib/index.cjs6.js.gz +0 -0
- package/lib/index.cjs7.js +1 -3
- package/lib/index.cjs8.js +1 -1
- package/lib/index.cjs9.js +1 -1
- package/lib/index.es.js +49 -20
- package/lib/index.es10.js +313 -9
- package/lib/index.es10.js.gz +0 -0
- package/lib/index.es11.js +2390 -0
- package/lib/index.es11.js.gz +0 -0
- package/lib/index.es12.js +202 -0
- package/lib/index.es13.js +22 -0
- package/lib/index.es2.js +14 -8230
- package/lib/index.es3.js +59 -131
- package/lib/index.es4.js +47 -42
- package/lib/index.es5.js +11117 -35
- package/lib/index.es5.js.gz +0 -0
- package/lib/index.es6.js +1098 -300
- package/lib/index.es6.js.gz +0 -0
- package/lib/index.es7.js +17 -1669
- package/lib/index.es8.js +4 -15
- package/lib/index.es9.js +9 -20
- package/lib/theme.cjs.js +1 -1
- package/lib/theme.es.js +17 -20
- package/lib/translate.cjs.js +1 -1
- package/lib/translate.es.js +10 -13
- package/lib/utils.cjs.js +1 -1
- package/lib/utils.es.js +11 -11
- package/lib/yxIcon.cjs.js +1 -1
- package/lib/yxIcon.es.js +4 -4
- package/package.json +2 -1
- package/types/bc/index.d.ts +5 -0
- package/types/config/index.d.ts +3 -0
- package/types/index.d.ts +3 -2
- package/lib/index.cjs2.js.gz +0 -0
- package/lib/index.cjs7.js.gz +0 -0
- package/lib/index.es2.js.gz +0 -0
- package/lib/index.es7.js.gz +0 -0
package/lib/api.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs11.js"),t=require("./index.cjs13.js"),s=require("./index.cjs4.js");require("element-plus"),exports.auth=e.index,exports.assets=t.index,exports.getCommentUntreatedCount=s.getCommentUntreatedCount,exports.getUserSelectAnteList=s.getUserSelectAnteList,exports.getUserSelectSatelliteList=s.getUserSelectSatelliteList,exports.getUserThemeList=s.getUserThemeList;
|
package/lib/api.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i
|
|
2
|
-
import { i as
|
|
3
|
-
import { g
|
|
1
|
+
import { i } from "./index.es11.js";
|
|
2
|
+
import { i as i2 } from "./index.es13.js";
|
|
3
|
+
import { g, d, c, b } from "./index.es4.js";
|
|
4
4
|
import "element-plus";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
i2 as assets,
|
|
7
|
+
i as auth,
|
|
8
|
+
g as getCommentUntreatedCount,
|
|
9
|
+
d as getUserSelectAnteList,
|
|
10
|
+
c as getUserSelectSatelliteList,
|
|
11
|
+
b as getUserThemeList
|
|
12
12
|
};
|
package/lib/app.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs9.js");exports.isWebApp=e.isWebApp;
|
package/lib/app.es.js
CHANGED
package/lib/components.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs6.js"),r=require("./index.cjs5.js");require("vue"),require("./index.cjs11.js"),require("element-plus"),require("./index.cjs13.js"),require("./index.cjs4.js"),require("./index.cjs12.js"),require("./index.cjs10.js"),exports.Update=e.Update,exports.YxDialog=e._sfc_main,exports.YxForm=e.form,exports.YxFormV2=e._sfc_main$3,exports.YxIcon=e.index$1,exports.YxSearchForm=e.index,exports.YxTable=e._sfc_main$1,exports.YxUpload=e._sfc_main$2,exports.Toolbar=r.Toolbar;
|
package/lib/components.es.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./index.
|
|
3
|
-
import "
|
|
1
|
+
import { U, _, f, e, b, i, a, d } from "./index.es6.js";
|
|
2
|
+
import { T } from "./index.es5.js";
|
|
3
|
+
import "vue";
|
|
4
|
+
import "./index.es11.js";
|
|
4
5
|
import "element-plus";
|
|
6
|
+
import "./index.es13.js";
|
|
5
7
|
import "./index.es4.js";
|
|
6
|
-
import "./index.
|
|
7
|
-
import "./index.es5.js";
|
|
8
|
-
import "vue";
|
|
9
|
-
import "./index.es6.js";
|
|
10
|
-
import "./index.es9.js";
|
|
8
|
+
import "./index.es12.js";
|
|
11
9
|
import "./index.es10.js";
|
|
12
10
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
T as Toolbar,
|
|
12
|
+
U as Update,
|
|
13
|
+
_ as YxDialog,
|
|
14
|
+
f as YxForm,
|
|
15
|
+
e as YxFormV2,
|
|
16
|
+
b as YxIcon,
|
|
17
|
+
i as YxSearchForm,
|
|
18
|
+
a as YxTable,
|
|
19
|
+
d as YxUpload
|
|
22
20
|
};
|
package/lib/directives.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs7.js");require("./index.cjs11.js"),require("element-plus"),exports.default=e.directives$1;
|
package/lib/directives.es.js
CHANGED
package/lib/hooks.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs10.js");require("vue"),exports.useTime=e.useTime;
|
package/lib/hooks.es.js
CHANGED
package/lib/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs2.js"),s=require("./index.cjs3.js"),r=require("./index.cjs4.js"),t=require("./index.cjs5.js"),i=require("./index.cjs6.js"),o=require("./index.cjs7.js"),n=require("./index.cjs8.js"),u=require("./index.cjs9.js"),x=require("./index.cjs10.js");require("./index.cjs11.js"),require("element-plus"),require("./index.cjs12.js"),require("./index.cjs13.js"),require("vue");const p={install:e=>{e.config.globalProperties.$yx18n=e=>t.getWordByYxI18nThesaurus(e)}},c=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"})),j={utils:e.utils2,api:r.api2,app:u.app,theme:t.theme2,components:i.components2,directives:o.directives,BC:t.BC,translate:t.translate2,yxi18n:c,yxHooks:n.yxHooks,yxIcon:s.yxIcon2};exports.utils=e.utils2,exports.yxIcon=s.yxIcon2,exports.api=r.api2,exports.BC=t.BC$1,exports.theme=t.theme2,exports.translate=t.translate2,exports.components=i.components2,exports.isWebApp=u.isWebApp,exports.useTime=x.useTime,exports.default=j,exports.yxi18n=c;
|
package/lib/index.cjs10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("vue");var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var n={exports:{}};const s=r(n.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:i,s:s,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",p={};p[g]=y;var D="$isDayjsObject",w=function(t){return t instanceof _||!(!t||!t[D])},S=function t(e,r,n){var s;if(!e)return g;if("string"==typeof e){var i=e.toLowerCase();p[i]&&(s=i),r&&(p[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;p[a]=e,s=a}return!n&&s&&(g=s),s||!n&&g},b=function(t,e){if(w(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},O=v;O.l=S,O.i=w,O.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function y(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[D]=!0}var M=y.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return O},M.isValid=function(){return!(this.$d.toString()===l)},M.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return b(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<b(t)},M.$g=function(t,e,r){return O.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,n=!!O.u(e)||e,f=O.p(t),l=function(t,e){var s=O.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?s:s.endOf(a)},$=function(t,e){return O.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,y=this.$M,M=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return n?l(1,0):l(31,11);case c:return n?l(1,y):l(0,y+1);case o:var g=this.$locale().weekStart||0,p=(m<g?m+7:m)-g;return l(n?M-p:M+(6-p),y);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case i:return $(v+"Seconds",2);case s:return $(v+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var r,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(r={},r[a]=f+"Date",r[d]=f+"Date",r[c]=f+"Month",r[h]=f+"FullYear",r[u]=f+"Hours",r[i]=f+"Minutes",r[s]=f+"Seconds",r[n]=f+"Milliseconds",r)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(d,1);m.$d[l]($),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[O.p(t)]()},M.add=function(n,f){var d,l=this;n=Number(n);var $=O.p(f),m=function(t){var e=b(l);return O.w(e.date(e.date()+Math.round(t*n)),l)};if($===c)return this.set(c,this.$M+n);if($===h)return this.set(h,this.$y+n);if($===a)return m(1);if($===o)return m(7);var y=(d={},d[i]=e,d[u]=r,d[s]=t,d)[$]||1,M=this.$d.getTime()+n*y;return O.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=r.weekdays,c=r.months,f=r.meridiem,h=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},$=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,(function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,o,2);case"ddd":return h(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(i,u,!0);case"A":return $(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,d,l){var $,m=this,y=O.p(d),M=b(n),v=(M.utcOffset()-this.utcOffset())*e,g=this-M,p=function(){return O.m(m,M)};switch(y){case h:$=p()/12;break;case c:$=p();break;case f:$=p()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/r;break;case i:$=g/e;break;case s:$=g/t;break;default:$=g}return l?$:O.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return p[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return O.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},y}(),T=_.prototype;return b.prototype=T,[["$ms",n],["$s",s],["$m",i],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),b.extend=function(t,e){return t.$i||(t(e,_,b),t.$i=!0),b},b.locale=S,b.isDayjs=w,b.unix=function(t){return b(1e3*t)},b.en=p[g],b.Ls=p,b.p={},b}()),i=t.ref("");let u;exports.commonjsGlobal=e,exports.getDefaultExportFromCjs=r,exports.useTime=()=>{const t=()=>{u=setTimeout((()=>{i.value=s().format("YYYY-MM-DD HH:mm:ss"),u&&clearTimeout(u),t()}),1e3)};return t(),{time:i}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=Object.defineProperty,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,s=(e,s)=>{for(var i in s||(s={}))r.call(s,i)&&o(e,i,s[i]);if(t)for(var i of t(s))n.call(s,i)&&o(e,i,s[i]);return e},i=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),a=(e,t,r)=>new Promise(((n,o)=>{var s=e=>{try{a(r.next(e))}catch(t){o(t)}},i=e=>{try{a(r.throw(e))}catch(t){o(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,i);a((r=r.apply(e,t)).next())}));const c=require("element-plus");function u(e,t){return function(){return e.apply(t,arguments)}}const{toString:l}=Object.prototype,{getPrototypeOf:f}=Object,d=(e=>t=>{const r=l.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),p=e=>(e=e.toLowerCase(),t=>d(t)===e),h=e=>t=>typeof t===e,{isArray:m}=Array,g=h("undefined");const y=p("ArrayBuffer");const E=h("string"),b=h("function"),w=h("number"),O=e=>null!==e&&"object"==typeof e,S=e=>{if("object"!==d(e))return!1;const t=f(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},R=p("Date"),v=p("File"),A=p("Blob"),T=p("FileList"),N=p("URLSearchParams");function j(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),m(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(n=0;n<s;n++)i=o[n],t.call(null,e[i],i,e)}}function x(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=e=>!g(e)&&e!==C;const U=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&f(Uint8Array)),L=p("HTMLFormElement"),_=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B=p("RegExp"),k=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};j(r,((r,o)=>{!1!==t(r,o,e)&&(n[o]=r)})),Object.defineProperties(e,n)},D="abcdefghijklmnopqrstuvwxyz",F="0123456789",M={DIGIT:F,ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+F};const I={isArray:m,isArrayBuffer:y,isBuffer:function(e){return null!==e&&!g(e)&&null!==e.constructor&&!g(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||l.call(e)===t||b(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer),t},isString:E,isNumber:w,isBoolean:e=>!0===e||!1===e,isObject:O,isPlainObject:S,isUndefined:g,isDate:R,isFile:v,isBlob:A,isRegExp:B,isFunction:b,isStream:e=>O(e)&&b(e.pipe),isURLSearchParams:N,isTypedArray:U,isFileList:T,forEach:j,merge:function e(){const{caseless:t}=P(this)&&this||{},r={},n=(n,o)=>{const s=t&&x(r,o)||o;S(r[s])&&S(n)?r[s]=e(r[s],n):S(n)?r[s]=e({},n):m(n)?r[s]=n.slice():r[s]=n};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&j(arguments[o],n);return r},extend:(e,t,r,{allOwnKeys:n}={})=>(j(t,((t,n)=>{r&&b(t)?e[n]=u(t,r):e[n]=t}),{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],n&&!n(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==r&&f(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:d,kindOfTest:p,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(m(e))return e;let t=e.length;if(!w(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:L,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,r)=>{if(b(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];b(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach((e=>{r[e]=!0}))};return m(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:x,global:C,isContextDefined:P,ALPHABET:M,generateString:(e=16,t=M.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&b(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(O(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=m(e)?[]:{};return j(e,((e,t)=>{const s=r(e,n+1);!g(s)&&(o[t]=s)})),t[n]=void 0,o}}return e};return r(e,0)}};function q(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}I.inherits(q,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:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const H=q.prototype,J={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{J[e]={value:e}})),Object.defineProperties(q,J),Object.defineProperty(H,"isAxiosError",{value:!0}),q.from=(e,t,r,n,o,s)=>{const i=Object.create(H);return I.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),q.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};function z(e){return I.isPlainObject(e)||I.isArray(e)}function V(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function G(e,t,r){return e?e.concat(t).map((function(e,t){return e=V(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const W=I.toFlatObject(I,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!I.isUndefined(t[e])}))).metaTokens,o=r.visitor||u,s=r.dots,i=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(I.isDate(e))return e.toISOString();if(!a&&I.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(e)||I.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,r,o){let a=e;if(e&&!o&&"object"==typeof e)if(I.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(I.isArray(e)&&function(e){return I.isArray(e)&&!e.some(z)}(e)||(I.isFileList(e)||I.endsWith(r,"[]"))&&(a=I.toArray(e)))return r=V(r),a.forEach((function(e,n){!I.isUndefined(e)&&null!==e&&t.append(!0===i?G([r],n,s):null===i?r:r+"[]",c(e))})),!1;return!!z(e)||(t.append(G(o,r,s),c(e)),!1)}const l=[],f=Object.assign(W,{defaultVisitor:u,convertValue:c,isVisitable:z});if(!I.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!I.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),I.forEach(r,(function(r,s){!0===(!(I.isUndefined(r)||null===r)&&o.call(t,r,I.isString(s)?s.trim():s,n,f))&&e(r,n?n.concat(s):[s])})),l.pop()}}(e),t}function K(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function X(e,t){this._pairs=[],e&&$(e,this,t)}const Q=X.prototype;function Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,r){if(!t)return e;const n=r&&r.encode||Z,o=r&&r.serialize;let s;if(s=o?o(t,r):I.isURLSearchParams(t)?t.toString():new X(t,r).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ee{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},re="undefined"!=typeof URLSearchParams?URLSearchParams:X,ne="undefined"!=typeof FormData?FormData:null,oe=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),se="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ie={isBrowser:!0,classes:{URLSearchParams:re,FormData:ne,Blob:Blob},isStandardBrowserEnv:oe,isStandardBrowserWebWorkerEnv:se,protocols:["http","https","file","blob","url","data"]};function ae(e){function t(e,r,n,o){let s=e[o++];const i=Number.isFinite(+s),a=o>=e.length;if(s=!s&&I.isArray(n)?n.length:s,a)return I.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!i;n[s]&&I.isObject(n[s])||(n[s]=[]);return t(e,r,n[s],o)&&I.isArray(n[s])&&(n[s]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],t[s]=e[s];return t}(n[s])),!i}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,((e,n)=>{t(function(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null}const ce={"Content-Type":void 0};const ue={transitional:te,adapter:["xhr","http"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=I.isObject(e);o&&I.isHTMLForm(e)&&(e=new FormData(e));if(I.isFormData(e))return n&&n?JSON.stringify(ae(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $(e,new ie.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ie.isNode&&I.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=I.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ue.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&I.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw q.from(o,q.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],(function(e){ue.headers[e]={}})),I.forEach(["post","put","patch"],(function(e){ue.headers[e]=I.merge(ce)}));const le=ue,fe=I.toObjectSet(["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"]),de=Symbol("internals");function pe(e){return e&&String(e).trim().toLowerCase()}function he(e){return!1===e||null==e?e:I.isArray(e)?e.map(he):String(e)}function me(e,t,r,n,o){return I.isFunction(n)?n.call(this,t,r):(o&&(t=r),I.isString(t)?I.isString(n)?-1!==t.indexOf(n):I.isRegExp(n)?n.test(t):void 0:void 0)}class ge{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=pe(t);if(!o)throw new Error("header name must be a non-empty string");const s=I.findKey(n,o);(!s||void 0===n[s]||!0===r||void 0===r&&!1!==n[s])&&(n[s||t]=he(e))}const s=(e,t)=>I.forEach(e,((e,r)=>o(e,r,t)));return I.isPlainObject(e)||e instanceof this.constructor?s(e,t):I.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z]+$/.test(e.trim())?s((e=>{const t={};let r,n,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||t[r]&&fe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=pe(e)){const r=I.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(I.isFunction(t))return t.call(this,e,r);if(I.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=pe(e)){const r=I.findKey(this,e);return!(!r||void 0===this[r]||t&&!me(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=pe(e)){const o=I.findKey(r,e);!o||t&&!me(0,r[o],o,t)||(delete r[o],n=!0)}}return I.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!me(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return I.forEach(this,((n,o)=>{const s=I.findKey(r,o);if(s)return t[s]=he(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=he(n),r[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return I.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&I.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach((e=>r.set(e))),r}static accessor(e){const t=(this[de]=this[de]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=pe(e);t[n]||(!function(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return I.isArray(e)?e.forEach(n):n(e),this}}ge.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.freezeMethods(ge.prototype),I.freezeMethods(ge);const ye=ge;function Ee(e,t){const r=this||le,n=t||r,o=ye.from(n.headers);let s=n.data;return I.forEach(e,(function(e){s=e.call(r,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function be(e){return!(!e||!e.__CANCEL__)}function we(e,t,r){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,r),this.name="CanceledError"}I.inherits(we,q,{__CANCEL__:!0});const Oe=ie.isStandardBrowserEnv?function(){return{write:function(e,t,r,n,o,s){const i=[];i.push(e+"="+encodeURIComponent(t)),I.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),I.isString(n)&&i.push("path="+n),I.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Se(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Re=ie.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=I.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return function(){return!0}}();function ve(e,t){let r=0;const n=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=n[i];o||(o=c),r[s]=a,n[s]=c;let l=i,f=0;for(;l!==s;)f+=r[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return o=>{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-r,c=n(a);r=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const Ae={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){let n=e.data;const o=ye.from(e.headers).normalize(),s=e.responseType;let i;function a(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}I.isFormData(n)&&(ie.isStandardBrowserEnv||ie.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}const u=Se(e.baseURL,e.url);function l(){if(!c)return;const n=ye.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new q("Request failed with status code "+r.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}((function(e){t(e),a()}),(function(e){r(e),a()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:n,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),Y(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=l:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(l)},c.onabort=function(){c&&(r(new q("Request aborted",q.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new q("Network Error",q.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||te;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new q(t,n.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,c)),c=null},ie.isStandardBrowserEnv){const t=(e.withCredentials||Re(u))&&e.xsrfCookieName&&Oe.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===n&&o.setContentType(null),"setRequestHeader"in c&&I.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),I.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&"json"!==s&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",ve(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",ve(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{c&&(r(!t||t.type?new we(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);f&&-1===ie.protocols.indexOf(f)?r(new q("Unsupported protocol "+f+":",q.ERR_BAD_REQUEST,e)):c.send(n||null)}))}};I.forEach(Ae,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const Te=e=>{e=I.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let o=0;o<t&&(r=e[o],!(n=I.isString(r)?Ae[r.toLowerCase()]:r));o++);if(!n){if(!1===n)throw new q(`Adapter ${r} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(I.hasOwnProp(Ae,r)?`Adapter '${r}' is not available in the build`:`Unknown adapter '${r}'`)}if(!I.isFunction(n))throw new TypeError("adapter is not a function");return n};function Ne(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function je(e){Ne(e),e.headers=ye.from(e.headers),e.data=Ee.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Te(e.adapter||le.adapter)(e).then((function(t){return Ne(e),t.data=Ee.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t}),(function(t){return be(t)||(Ne(e),t&&t.response&&(t.response.data=Ee.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)}))}const xe=e=>e instanceof ye?e.toJSON():e;function Ce(e,t){t=t||{};const r={};function n(e,t,r){return I.isPlainObject(e)&&I.isPlainObject(t)?I.merge.call({caseless:r},e,t):I.isPlainObject(t)?I.merge({},t):I.isArray(t)?t.slice():t}function o(e,t,r){return I.isUndefined(t)?I.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!I.isUndefined(t))return n(void 0,t)}function i(e,t){return I.isUndefined(t)?I.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,s){return s in t?n(r,o):s in e?n(void 0,r):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t)=>o(xe(e),xe(t),!0)};return I.forEach(Object.keys(e).concat(Object.keys(t)),(function(n){const s=c[n]||o,i=s(e[n],t[n],n);I.isUndefined(i)&&s!==a||(r[n]=i)})),r}const Pe="1.3.3",Ue={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const Le={};Ue.transitional=function(e,t,r){return(n,o,s)=>{if(!1===e)throw new q(function(e,t){return"[Axios v1.3.3] Transitional option '"+e+"'"+t+(r?". "+r:"")}(o," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Le[o]&&(Le[o]=!0),!e||e(n,o,s)}};const _e={assertOptions:function(e,t,r){if("object"!=typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const s=n[o],i=t[s];if(i){const t=e[s],r=void 0===t||i(t,s,e);if(!0!==r)throw new q("option "+s+" must be "+r,q.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new q("Unknown option "+s,q.ERR_BAD_OPTION)}},validators:Ue},Be=_e.validators;class ke{constructor(e){this.defaults=e,this.interceptors={request:new ee,response:new ee}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ce(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;let s;void 0!==r&&_e.assertOptions(r,{silentJSONParsing:Be.transitional(Be.boolean),forcedJSONParsing:Be.transitional(Be.boolean),clarifyTimeoutError:Be.transitional(Be.boolean)},!1),void 0!==n&&_e.assertOptions(n,{encode:Be.function,serialize:Be.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),s=o&&I.merge(o.common,o[t.method]),s&&I.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ye.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[je.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(p){t.call(this,p);break}}try{u=je.call(this,d)}catch(p){return Promise.reject(p)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return Y(Se((e=Ce(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}I.forEach(["delete","get","head","options"],(function(e){ke.prototype[e]=function(t,r){return this.request(Ce(r||{},{method:e,url:t,data:(r||{}).data}))}})),I.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Ce(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ke.prototype[e]=t(),ke.prototype[e+"Form"]=t(!0)}));const De=ke;class Fe{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null})),this.promise.then=e=>{let t;const n=new Promise((e=>{r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e,n,o){r.reason||(r.reason=new we(e,n,o),t(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Fe((function(t){e=t})),cancel:e}}}const Me=Fe;const Ie={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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,NetworkAuthenticationRequired:511};Object.entries(Ie).forEach((([e,t])=>{Ie[t]=e}));const qe=Ie;const He=function e(t){const r=new De(t),n=u(De.prototype.request,r);return I.extend(n,De.prototype,r,{allOwnKeys:!0}),I.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ce(t,r))},n}(le);He.Axios=De,He.CanceledError=we,He.CancelToken=Me,He.isCancel=be,He.VERSION=Pe,He.toFormData=$,He.AxiosError=q,He.Cancel=He.CanceledError,He.all=function(e){return Promise.all(e)},He.spread=function(e){return function(t){return e.apply(null,t)}},He.isAxiosError=function(e){return I.isObject(e)&&!0===e.isAxiosError},He.mergeConfig=Ce,He.AxiosHeaders=ye,He.formToJSON=e=>ae(I.isHTMLForm(e)?new FormData(e):e),He.HttpStatusCode=qe,He.default=He;const Je={ttc:{LOGIN_URL:`${window.location.origin}/ttc/cloud/#/login`,HOME_URL:`${window.location.origin}/ttc/cloud/#/cloud`,INTEGRATED_BASE_URL:"/gateway/integrated-management/api/v1"}},ze=(e="ttc")=>{Xe({token:""})},Ve=(e="ttc")=>{var t;const r=`${e}GlobalState`,n=null!=(t=localStorage.getItem(r))?t:"{}";return JSON.parse(n)?JSON.parse(n).token:null},Ge=(e,...t)=>a(exports,[e,...t],(function*({userName:e,password:t},r="ttc"){const n=Qe("loginApiUrl"),{data:o}=yield at.post(n,{userName:e,password:t});o.tokenValue&&c.ElMessage.success("登录成功"),Xe({token:o.tokenValue,userInfo:o})})),We=()=>{if(Ze()){ze();if(location.pathname.includes($e()))return;location.replace($e())}else{const e=window.prompt("当前系统处于开发环境,当前登录过期,请输入登录账号","");if(null!==e){const t=window.prompt("请输入登录密码","");null!==t&&""!=t||window.prompt("请输入登录密码",""),Ge({userName:e,password:t})}}},$e=()=>Qe("loginUrl"),Ke=()=>Qe("homeUrl"),Xe=e=>{var t;const r=null!=(t=localStorage.getItem("ttcGlobalState"))?t:"{}",n=s(s({},JSON.parse(r)),e);localStorage.setItem("ttcGlobalState",JSON.stringify(n))},Qe=e=>{var t,r;return null!=(r=JSON.parse(null!=(t=localStorage.getItem("ttcGlobalState"))?t:"{}")[e])?r:""},Ze=()=>"production"===Qe("environment"),Ye=e=>{var t;if(!e)return!1;const r=null!=(t=sessionStorage.getItem("ttcUserBtnList"))?t:"[]";return JSON.parse(r).includes(e)},et=Object.freeze(Object.defineProperty({__proto__:null,autoLogin:Ge,getHomeUrl:Ke,getLoginUrl:$e,getSystemConfig:Qe,getToken:Ve,getUserInfo:(e="ttc")=>{var t;const r=`${e}GlobalState`,n=null!=(t=localStorage.getItem(r))?t:"{}";return JSON.parse(n)?JSON.parse(n).userInfo:null},getUserIsHaveBtnPower:Ye,getUserPermissions:(e,t=!0,r)=>a(exports,null,(function*(){if(!Ve()&&t)return We();try{const{data:t}=yield((e="ttc")=>at.get(`${Je[e].INTEGRATED_BASE_URL}/account/auth/route/list`))(r),n=t.filter((t=>t.routeTag.includes(e))),o=n.filter((e=>"VIEW"===e.routeType)),s=n.filter((e=>"BTN"===e.routeType));return sessionStorage.setItem("ttcUserBtnList",JSON.stringify(s.map((e=>e.routeTag)))),{userMenuList:o,userBtnList:s}}catch(n){}})),getUserRouteList:()=>a(exports,null,(function*(){if(!Ve())return[];return yield((e="ttc")=>at.get(`${Je[e].INTEGRATED_BASE_URL}/account/home/menu`))()})),getUserRouter:(e,t,r)=>{let n=[];return e.forEach((e=>{const o=`/src/views${e.routeView}/config.ts`,s=`/src/views${e.routeView}/index.vue`;if(t[s]&&r[o]){const i=r[o],a={path:e.routeView,name:e.routeView.split("/")[1],meta:{title:i.title,icon:i.icon},component:t[s]};n.push(a)}})),n},isProduction:Ze,jumpToHome:()=>{window.location.replace(Ke())},jumpToLogin:We,removeToken:ze,setSystemConfig:Xe},Symbol.toStringTag,{value:"Module"}));let tt;const rt={lock:!0,text:"加载中...",fullscreen:!0,background:"rgba(0, 0, 0, 0.6)"};let nt=0;const ot=()=>{0===nt&&(tt=c.ElLoading.service(rt)),nt++},st=()=>{nt<=0||(nt--,0===nt&&tt.close())};var it=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.ERROR=500]="ERROR",e[e.OVERDUE=401]="OVERDUE",e[e.TIMEOUT=3e4]="TIMEOUT",e))(it||{});const at=new class{constructor(e){i(this,"service"),i(this,"customResMap"),this.service=He.create(e),this.setupInterceptors(),this.customResMap={}}setupInterceptors(){this.service.interceptors.request.use((e=>{var t;return(null==(t=e.headers)?void 0:t.noLoading)||ot(),e.headers.token=Ve(),(null==e?void 0:e.customResHandler)&&(null==e?void 0:e.url)&&(this.customResMap[null==e?void 0:e.url]=e.customResHandler),e}),(e=>Promise.reject(e))),this.service.interceptors.response.use((e=>{const{data:t,config:r}=e;return st(),r.url&&this.customResMap[r.url]?this.customResMap[r.url](t):(t.code==it.OVERDUE?this.handleOverdueResponse(t):t.code!==it.SUCCESS&&this.handleErrorResponse(t),t)}),(e=>{st();const{config:t}=e;return(null==t?void 0:t.url)&&this.customResMap[t.url]&&this.customResMap[t.url](e.response),e.message.includes("timeout")?c.ElMessage.error("请求超时!请稍后重试"):e.message.includes("Network Error")&&c.ElMessage.error("网络错误!请稍后重试"),e.response&&((e,t)=>{switch(e){case 400:c.ElMessage.error(t||"请求失败!请您稍后重试");break;case 401:location.href.includes($e())||(c.ElMessage.error(t||"登录失效!请您重新登录"),We());break;case 403:c.ElMessage.error(t||"当前账号无权限访问!");break;case 404:c.ElMessage.error("你所访问的资源不存在!");break;case 405:c.ElMessage.error(t||"请求方式错误!请您稍后重试");break;case 408:c.ElMessage.error(t||"请求超时!请您稍后重试");break;case 500:c.ElMessage.error(t||"服务异常!");break;case 502:c.ElMessage.error("网关错误!");break;case 503:c.ElMessage.error("服务不可用!");break;case 504:c.ElMessage.error("网关超时!");break;default:c.ElMessage.error("请求失败!")}})(e.response.status),window.navigator.onLine||c.ElNotification({title:"提示",message:"当前网络似乎开小差了",type:"warning",duration:5e3}),Promise.reject(e)}))}handleOverdueResponse(e){return ze(),We(),c.ElNotification({title:"登录过期提醒",message:e.resultMsg||"当前登录失效",type:"warning",duration:5e3}),Promise.reject(e)}handleErrorResponse(e){return c.ElMessage.error(e.resultMsg),Promise.reject(e)}get(e,t,r={}){return this.service.get(e,s({params:t},r))}post(e,t,r={}){return this.service.post(e,t,r)}put(e,t,r={}){return this.service.put(e,t,r)}delete(e,t,r={}){return this.service.delete(e,s({params:t},r))}}({timeout:3e4,withCredentials:!0});exports.BC_LANG_NAME="LANG",exports.BC_THEME_NAME="THEME",exports.URL=Je,exports.getSystemConfig=Qe,exports.getUserIsHaveBtnPower=Ye,exports.http=at,exports.index=et,exports.setSystemConfig=Xe;
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var s=Object.defineProperty,r=(r,t,e)=>(((r,t,e)=>{t in r?s(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e})(r,"symbol"!=typeof t?t+"":t,e),e);const t=s=>{if(4===s.length&&"#"===s[0]){const r=s[1],t=s[2],e=s[3];return`#${r}${r}${t}${t}${e}${e}`}return s};const e=new class{constructor(){r(this,"subscribers"),this.subscribers={}}subscribe(s,r){this.subscribers[s]||(this.subscribers[s]=[]),this.subscribers[s].push(r)}unsubscribe(s,r){const t=this.subscribers[s];if(!r)return this.subscribers[s]=[];if(t){const s=t.indexOf(r);-1!==s&&t.splice(s,1)}}publish(s){const r=this.subscribers[s.type];r&&r.forEach((r=>{r(s.data)}))}};exports.areColorsSimilar=(s,r,t=100)=>{const e=s=>{let r,t,e,n=1;if(s.startsWith("#"))if(3===(s=s.slice(1)).length)r=parseInt(s[0]+s[0],16),t=parseInt(s[1]+s[1],16),e=parseInt(s[2]+s[2],16);else{if(6!==s.length)return null;r=parseInt(s.slice(0,2),16),t=parseInt(s.slice(2,4),16),e=parseInt(s.slice(4,6),16)}else{if(!s.startsWith("rgb"))return null;{const a=s.match(/(\d+(\.\d+)?)/g);r=parseFloat(a[0]),t=parseFloat(a[1]),e=parseFloat(a[2]),a.length>3&&(n=parseFloat(a[3]))}}return[r,t,e,n]},n=e(s),a=e(r);if(!n||!a)return!1;return Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)+Math.pow(n[2]-a[2],2)+Math.pow(n[3]-a[3],2))<=t},exports.enumToArray=s=>{const r=[];for(const t in s)isNaN(Number(t))&&r.push({label:t,value:s[t]});return r},exports.getSelectOptions=(s,r,t,e)=>Array.isArray(s)?s.map((s=>({label:null==s?void 0:s[r],value:e?+s[t]:s[t]}))):[],exports.isColorEqual=(s,r)=>{function e(s){if(s.toLowerCase().startsWith("rgba"))return s.toLowerCase();if(s.toLowerCase().startsWith("rgb"))return s.replace("rgb","rgba").replace(")",", 1)");if(7===s.length){return`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, 1)`}if(9===s.length&&s.toLowerCase().startsWith("rrggbbaa")){return`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, ${Math.round(parseInt(s.substring(7,9),16)/255*100)/100})`}return null}const n=e(t(s)),a=e(t(r));return!(!n||!a)&&n===a},exports.isDarkColor=s=>{const r=(s=>{let r=0,t=0,e=0,n=1;if(s.startsWith("#"))if(3===(s=s.slice(1)).length)r=parseInt(s[0]+s[0],16),t=parseInt(s[1]+s[1],16),e=parseInt(s[2]+s[2],16);else{if(6!==s.length)return null;r=parseInt(s.slice(0,2),16),t=parseInt(s.slice(2,4),16),e=parseInt(s.slice(4,6),16)}else{if(!s.startsWith("rgb"))return null;{const a=s.match(/(\d+(\.\d+)?)/g);if(!a)return null;r=parseFloat(a[0]),t=parseFloat(a[1]),e=parseFloat(a[2]),a.length>3&&(n=parseFloat(a[3]))}}return[r,t,e,n]})(s);if(!r)return null;const[t,e,n,a]=r,i=t/255,l=e/255,o=n/255;return(Math.max(i,l,o)+Math.min(i,l,o))/2<.5},exports.notifyMessageToSystems=s=>{new BroadcastChannel("YXUSE_BC").postMessage(s)},exports.receiveMessage=s=>{new BroadcastChannel("YXUSE_BC").onmessage=()=>{s()}},exports.yxSubscribe=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.cjs11.js"),t=(t,o)=>e.http.post(`${e.URL.ttc.INTEGRATED_BASE_URL}/file/upload`,t,o),o=()=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/group/list`,{},{headers:{noLoading:!0}}),r=(t,o)=>e.http.get(`${e.URL.ttc.INTEGRATED_BASE_URL}/resource/file/list/${o}/${t}`,{},{headers:{noLoading:!0}}),s=Object.freeze(Object.defineProperty({__proto__:null,getGroupListApi:o,getResourceListApi:r,uploadResourceApi:t},Symbol.toStringTag,{value:"Module"}));exports.getGroupListApi=o,exports.getResourceListApi=r,exports.index=s,exports.uploadResourceApi=t;
|