@teamix/utils
Version:
utils组件
2 lines • 342 kB
JavaScript
/*! For license information please see utils.min.js.LICENSE.txt */
!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@alicloudfe/components"),require("react"),require("react-router-dom")):"function"==typeof define&&define.amd?define(["@alicloudfe/components","react","react-router-dom"],r):"object"==typeof exports?exports.ProUtils=r(require("@alicloudfe/components"),require("react"),require("react-router-dom")):t.ProUtils=r(t.AliCloudComponents,t.React,t.ReactRouterDOM)}(this,((t,r,e)=>(()=>{var n={4434:(t,r,e)=>{"use strict";e.d(r,{Z:()=>i});var n=e(9787),o=e.n(n)().createContext({});o.displayName="UseRequestConfigContext";const i=o},4294:(t,r,e)=>{"use strict";e.d(r,{ZP:()=>d});var n=e(9787),o=e(5861),i=e(8268),u=e(1084),a=e(4434);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}var f=function(){return f=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},f.apply(this,arguments)},l=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e},s=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},p=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(s(arguments[r]));return t};a.Z.Provider;const d=function(t,r){void 0===r&&(r={});var e=(0,n.useContext)(a.Z),s=f(f({},e),r),d=s.paginated,h=s.loadMore,v=s.requestMethod,g=(0,n.useRef)(d),y=(0,n.useRef)(h);if(g.current!==d)throw Error("You should not modify the paginated of options");if(y.current!==h)throw Error("You should not modify the loadMore of options");g.current=d,y.current=h;var m,b=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return fetch.apply(void 0,p(t)).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))},_=v||b;switch(c(t)){case"string":m=function(){return _(t)};break;case"object":var w=t.url,x=l(t,["url"]);m=function(){return v?v(t):b(w,x)};break;default:m=function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return new Promise((function(e,n){var o=t.apply(void 0,p(r)),i=o;if(!o.then)switch(c(o)){case"string":i=_(o);break;case"object":var u=o.url,a=l(o,["url"]);i=v?v(o):b(u,a)}i.then(e).catch(n)}))}}return h?(0,i.Z)(m,s):d?(0,u.Z)(m,s):(0,o.Z)(m,s)}},5861:(t,r,e)=>{"use strict";e.d(r,{Z:()=>_});var n=e(9339),o=e.n(n),i=e(7530),u=e.n(i),a=e(9787),c=e(370),f=e(7289),l=e(4153),s=e(9075),p=e(2840),d=e(7283),h=e(9781),v=function(){return v=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},v.apply(this,arguments)},g=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},y=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(g(arguments[r]));return t},m="AHOOKS_USE_REQUEST_DEFAULT_KEY",b=function(){function t(t,r,e,n){this.count=0,this.pollingWhenVisibleFlag=!1,this.pollingTimer=void 0,this.loadingDelayTimer=void 0,this.unsubscribe=[],this.that=this,this.state={loading:!1,params:[],data:void 0,error:void 0,run:this.run.bind(this.that),mutate:this.mutate.bind(this.that),refresh:this.refresh.bind(this.that),cancel:this.cancel.bind(this.that),unmount:this.unmount.bind(this.that)},this.service=t,this.config=r,this.subscribe=e,n&&(this.state=v(v({},this.state),n)),this.debounceRun=this.config.debounceInterval?o()(this._run,this.config.debounceInterval):void 0,this.throttleRun=this.config.throttleInterval?u()(this._run,this.config.throttleInterval):void 0,this.limitRefresh=(0,l.Z)(this.refresh.bind(this),this.config.focusTimespan),this.config.pollingInterval&&this.unsubscribe.push((0,h.Z)(this.rePolling.bind(this))),this.config.refreshOnWindowFocus&&this.unsubscribe.push((0,d.Z)(this.limitRefresh.bind(this)))}return t.prototype.setState=function(t){void 0===t&&(t={}),this.state=v(v({},this.state),t),this.subscribe(this.state)},t.prototype._run=function(){for(var t=this,r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];this.pollingTimer&&clearTimeout(this.pollingTimer),this.loadingDelayTimer&&clearTimeout(this.loadingDelayTimer),this.count+=1;var n=this.count;return this.setState({loading:!this.config.loadingDelay,params:r}),this.config.loadingDelay&&(this.loadingDelayTimer=setTimeout((function(){t.setState({loading:!0})}),this.config.loadingDelay)),this.service.apply(this,y(r)).then((function(e){if(n!==t.count)return new Promise((function(){}));t.loadingDelayTimer&&clearTimeout(t.loadingDelayTimer);var o=t.config.formatResult?t.config.formatResult(e):e;return t.setState({data:o,error:void 0,loading:!1}),t.config.onSuccess&&t.config.onSuccess(o,r),o})).catch((function(e){if(n!==t.count)return new Promise((function(){}));if(t.loadingDelayTimer&&clearTimeout(t.loadingDelayTimer),t.setState({data:void 0,error:e,loading:!1}),t.config.onError&&t.config.onError(e,r),t.config.throwOnError)throw e;return console.error(e),Promise.reject("useRequest has caught the exception, if you need to handle the exception yourself, you can set options.throwOnError to true.")})).finally((function(){if(n===t.count&&t.config.pollingInterval){if(!(0,c.o)()&&!t.config.pollingWhenHidden)return void(t.pollingWhenVisibleFlag=!0);t.pollingTimer=setTimeout((function(){t._run.apply(t,y(r))}),t.config.pollingInterval)}}))},t.prototype.run=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this.debounceRun?(this.debounceRun.apply(this,y(t)),Promise.resolve(null)):this.throttleRun?(this.throttleRun.apply(this,y(t)),Promise.resolve(null)):this._run.apply(this,y(t))},t.prototype.cancel=function(){this.debounceRun&&this.debounceRun.cancel(),this.throttleRun&&this.throttleRun.cancel(),this.loadingDelayTimer&&clearTimeout(this.loadingDelayTimer),this.pollingTimer&&clearTimeout(this.pollingTimer),this.pollingWhenVisibleFlag=!1,this.count+=1,this.setState({loading:!1})},t.prototype.refresh=function(){return this.run.apply(this,y(this.state.params))},t.prototype.rePolling=function(){this.pollingWhenVisibleFlag&&(this.pollingWhenVisibleFlag=!1,this.refresh())},t.prototype.mutate=function(t){"function"==typeof t?this.setState({data:t(this.state.data)||{}}):this.setState({data:t})},t.prototype.unmount=function(){this.cancel(),this.unsubscribe.forEach((function(t){t()}))},t}();const _=function(t,r){var e,n=r||{},o=n.refreshDeps,i=void 0===o?[]:o,u=n.manual,c=void 0!==u&&u,l=n.onSuccess,d=void 0===l?function(){}:l,h=n.onError,_=void 0===h?function(){}:h,w=n.defaultLoading,x=void 0!==w&&w,A=n.loadingDelay,O=n.pollingInterval,S=void 0===O?0:O,j=n.pollingWhenHidden,E=void 0===j||j,F=n.defaultParams,k=void 0===F?[]:F,C=n.refreshOnWindowFocus,D=void 0!==C&&C,I=n.focusTimespan,R=void 0===I?5e3:I,L=n.fetchKey,B=n.cacheKey,T=n.cacheTime,P=void 0===T?3e5:T,M=n.staleTime,N=void 0===M?0:M,Y=n.debounceInterval,z=n.throttleInterval,W=n.initialData,$=n.ready,U=void 0===$||$,H=n.throwOnError,Z=void 0!==H&&H,q=(0,a.useRef)(m),G=(0,s.Z)(t),K=(0,s.Z)(d),V=(0,s.Z)(_),Q=(0,s.Z)(L);"formatResult"in n&&(e=n.formatResult);var J={formatResult:(0,s.Z)(e),onSuccess:K,onError:V,loadingDelay:A,pollingInterval:S,pollingWhenHidden:E,refreshOnWindowFocus:!c&&D,focusTimespan:R,debounceInterval:Y,throttleInterval:z,throwOnError:Z},X=(0,s.Z)((function(t,r){et((function(e){return e[t]=r,v({},e)}))})),tt=g((0,a.useState)((function(){var t;if(B){var r=null===(t=(0,f.l)(B))||void 0===t?void 0:t.data;if(r){q.current=r.newstFetchKey;var e={};return Object.keys(r.fetches).forEach((function(t){var n=r.fetches[t],o=new b(G,J,X.bind(null,t),{loading:n.loading,params:n.params,data:n.data,error:n.error});e[t]=o.state})),e}}return{}})),2),rt=tt[0],et=tt[1],nt=(0,a.useRef)(rt);nt.current=rt;var ot=(0,a.useRef)(),it=(0,a.useCallback)((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(U){if(Q){var e=Q.apply(void 0,y(t));q.current=void 0===e?m:e}var n=q.current,o=nt.current[n];if(!o){var i=new b(G,J,X.bind(null,n),{data:W});o=i.state,et((function(t){return t[n]=o,v({},t)}))}return o.run.apply(o,y(t))}ot.current=t}),[L,X,U]),ut=(0,a.useRef)(it);ut.current=it,(0,p.Z)((function(){B&&(0,f.K)(B,P,{fetches:rt,newstFetchKey:q.current})}),[B,rt]);var at=(0,a.useRef)(!1);(0,p.Z)((function(){U&&(!at.current&&ot.current&&ut.current.apply(ut,y(ot.current)),at.current=!0)}),[U]),(0,a.useEffect)((function(){var t;if(!c)if(Object.keys(rt).length>0){var r=B&&(null===(t=(0,f.l)(B))||void 0===t?void 0:t.startTime)||0;-1===N||(new Date).getTime()-r<=N||Object.values(rt).forEach((function(t){t.refresh()}))}else ut.current.apply(ut,y(k))}),[]);var ct=(0,a.useCallback)((function(){Object.values(nt.current).forEach((function(t){t.unmount()})),q.current=m,et({}),nt.current={}}),[et]);(0,p.Z)((function(){c||Object.values(nt.current).forEach((function(t){t.refresh()}))}),y(i)),(0,a.useEffect)((function(){return function(){Object.values(nt.current).forEach((function(t){t.unmount()}))}}),[]);var ft=(0,a.useCallback)((function(t){return function(){console.warn("You should't call "+t+" when service not executed once.")}}),[]);return v(v({loading:U&&!c||x,data:W,error:void 0,params:[],cancel:ft("cancel"),refresh:ft("refresh"),mutate:ft("mutate")},rt[q.current]||{}),{run:it,fetches:rt,reset:ct})}},8268:(t,r,e)=>{"use strict";e.d(r,{Z:()=>l});var n=e(9787),o=e(5861),i=e(2840),u=function(){return u=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},u.apply(this,arguments)},a=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e},c=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},f=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(c(arguments[r]));return t};const l=function(t,r){var e=r.refreshDeps,l=void 0===e?[]:e,s=r.ref,p=r.isNoMore,d=r.threshold,h=void 0===d?100:d,v=(r.fetchKey,a(r,["refreshDeps","ref","isNoMore","threshold","fetchKey"])),g=c((0,n.useState)(!1),2),y=g[0],m=g[1];(0,n.useEffect)((function(){r.fetchKey&&console.warn("useRequest loadMore mode don't need fetchKey!")}),[]);var b=(0,o.Z)(t,u(u({},v),{fetchKey:function(t){var r;return(null===(r=null==t?void 0:t.list)||void 0===r?void 0:r.length)||0},onSuccess:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];m(!1),r.onSuccess&&r.onSuccess.apply(r,f(t))}})),_=b.data,w=b.run,x=b.params,A=b.reset,O=b.loading,S=b.fetches,j=(0,n.useCallback)((function(){A();var t=c(x).slice(1);w.apply(void 0,f([void 0],t))}),[w,A,x]),E=(0,n.useRef)(j);E.current=j,(0,i.Z)((function(){r.manual||E.current()}),f(l));var F=(0,n.useMemo)((function(){var t=[],r=_;return Object.values(S).forEach((function(e){var n,o;(null===(n=e.data)||void 0===n?void 0:n.list)&&(t=t.concat(null===(o=e.data)||void 0===o?void 0:o.list)),e.loading||(r=e.data)})),u(u({},r),{list:t})}),[S,_]),k=!!p&&(!O&&!y&&p(F)),C=(0,n.useCallback)((function(){if(!k){m(!0);var t=c(x).slice(1);w.apply(void 0,f([F],t))}}),[k,w,F,x]),D=function(){!O&&!y&&s&&s.current&&s.current.scrollHeight-s.current.scrollTop<=s.current.clientHeight+h&&C()},I=(0,n.useRef)(D);return I.current=D,(0,n.useEffect)((function(){if(!s||!s.current)return function(){};var t=function(){return I.current()};return s.current.addEventListener("scroll",t),function(){s&&s.current&&s.current.removeEventListener("scroll",t)}}),[I]),u(u({},b),{data:F,reload:j,loading:O&&0===F.list.length,loadMore:C,loadingMore:y,noMore:k})}},1084:(t,r,e)=>{"use strict";e.d(r,{Z:()=>l});var n=e(9787),o=e(5861),i=e(2840),u=function(){return u=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},u.apply(this,arguments)},a=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e},c=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},f=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(c(arguments[r]));return t};const l=function(t,r){r.paginated;var e=r.defaultPageSize,l=void 0===e?10:e,s=r.refreshDeps,p=void 0===s?[]:s,d=r.fetchKey,h=a(r,["paginated","defaultPageSize","refreshDeps","fetchKey"]);(0,n.useEffect)((function(){d&&console.error("useRequest pagination's fetchKey will not work!")}),[]);var v=(0,o.Z)(t,u({defaultParams:[{current:1,pageSize:l}]},h)),g=v.data,y=v.params,m=v.run,b=v.loading,_=a(v,["data","params","run","loading"]),w=y&&y[0]?y[0]:{},x=w.current,A=void 0===x?1:x,O=w.pageSize,S=void 0===O?l:O,j=w.sorter,E=void 0===j?{}:j,F=w.filters,k=void 0===F?{}:F,C=(0,n.useCallback)((function(t){var r=c(y),e=r[0],n=r.slice(1);m.apply(void 0,f([u(u({},e),t)],n))}),[m,y]),D=(null==g?void 0:g.total)||0,I=(0,n.useMemo)((function(){return Math.ceil(D/S)}),[S,D]),R=(0,n.useCallback)((function(t,r){var e=t<=0?1:t,n=r<=0?1:r,o=Math.ceil(D/n);e>o&&(e=Math.max(1,o)),C({current:e,pageSize:n})}),[D,C]),L=(0,n.useCallback)((function(t){R(t,S)}),[R,S]),B=(0,n.useCallback)((function(t){R(A,t)}),[R,A]),T=(0,n.useRef)(L);T.current=L,(0,i.Z)((function(){r.manual||T.current(1)}),f(p));var P=(0,n.useCallback)((function(t,r,e){C({current:t.current,pageSize:t.pageSize||l,filters:r,sorter:e})}),[k,E,C]);return u({loading:b,data:g,params:y,run:m,pagination:{current:A,pageSize:S,total:D,totalPage:I,onChange:R,changeCurrent:L,changePageSize:B},tableProps:{dataSource:(null==g?void 0:g.list)||[],loading:b,onChange:P,pagination:{current:A,pageSize:S,total:D}},sorter:E,filters:k},_)}},7289:(t,r,e)=>{"use strict";e.d(r,{K:()=>o,l:()=>i});var n=new Map,o=function(t,r,e){var o=n.get(t);(null==o?void 0:o.timer)&&clearTimeout(o.timer);var i=void 0;r>-1&&(i=setTimeout((function(){n.delete(t)}),r)),n.set(t,{data:e,timer:i,startTime:(new Date).getTime()})},i=function(t){var r=n.get(t);return{data:null==r?void 0:r.data,startTime:null==r?void 0:r.startTime}}},4153:(t,r,e)=>{"use strict";e.d(r,{Z:()=>i});var n=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},o=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(n(arguments[r]));return t};function i(t,r){var e=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];e||(e=!0,t.apply(void 0,o(n)),setTimeout((function(){e=!1}),r))}}},9075:(t,r,e)=>{"use strict";e.d(r,{Z:()=>u});var n=e(9787),o=function(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,o,i=e.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u},i=function(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(o(arguments[r]));return t};const u=function(t){var r=(0,n.useRef)((function(){throw new Error("Cannot call an event handler while rendering.")}));r.current=t;var e=(0,n.useCallback)((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=r.current;if(n)return n.apply(void 0,i(t))}),[r]);if("function"==typeof t)return e}},2840:(t,r,e)=>{"use strict";e.d(r,{Z:()=>o});var n=e(9787);const o=function(t,r){var e=(0,n.useRef)(!1);(0,n.useEffect)((function(){return function(){e.current=!1}}),[]),(0,n.useEffect)((function(){if(e.current)return t();e.current=!0}),r)}},370:(t,r,e)=>{"use strict";function n(){return"undefined"==typeof document||void 0===document.visibilityState||"hidden"!==document.visibilityState}function o(){return void 0===navigator.onLine||navigator.onLine}e.d(r,{G:()=>o,o:()=>n})},7283:(t,r,e)=>{"use strict";e.d(r,{Z:()=>a});var n=e(370),o=[];var i=!1;if("undefined"!=typeof window&&window.addEventListener&&!i){var u=function(){if((0,n.o)()&&(0,n.G)())for(var t=0;t<o.length;t++){(0,o[t])()}};window.addEventListener("visibilitychange",u,!1),window.addEventListener("focus",u,!1),i=!0}const a=function(t){return o.push(t),function(){var r=o.indexOf(t);o.splice(r,1)}}},9781:(t,r,e)=>{"use strict";e.d(r,{Z:()=>u});var n=e(370),o=[];var i=!1;if("undefined"!=typeof window&&window.addEventListener&&!i){window.addEventListener("visibilitychange",(function(){if((0,n.o)())for(var t=0;t<o.length;t++){(0,o[t])()}}),!1),i=!0}const u=function(t){return o.push(t),function(){var r=o.indexOf(t);o.splice(r,1)}}},6020:(t,r,e)=>{"use strict";e.d(r,{L:()=>i});var n=e(2529),o={},i=function(){function t(){}return(0,n.Z)(t,null,[{key:"global",get:function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:o}},{key:"globalCache",get:function(){return void 0!==t.global._teamixIconScriptCaches||(t.global._teamixIconScriptCaches=new Set),t.global._teamixIconScriptCaches}}]),t}();i.has=function(t){return i.globalCache.has(t)},i.add=function(t){return i.globalCache.add(t)}},9227:(t,r,e)=>{"use strict";e.d(r,{Z:()=>v});var n=e(7038),o=e(32),i=e(9787),u=e.n(i),a=e(8266),c=e.n(a),f=e(6020),l=["type","size","className","symbolPrefix"],s={scriptUrl:"",symbolPrefix:""};function p(t){if("string"==typeof t&&t.length){var r=t,e=r.indexOf("?");e>0&&(r=r.slice(0,e));var n=r.indexOf("#");if(n>0&&(r=r.slice(0,n)),r=r.replace("http:","").replace("https:",""),"undefined"!=typeof document&&"undefined"!=typeof window&&"function"==typeof document.createElement&&!f.L.has(r)){var o,i=document.createElement("script");i.setAttribute("src",t),i.setAttribute("data-namespace",t),i.setAttribute("async","true"),f.L.add(r),null!==(o=document)&&void 0!==o&&o.body?document.body.appendChild(i):document.head.appendChild(i)}}}var d=(0,i.createContext)(s),h=(0,i.forwardRef)((function(t,r){var e,a=t.type,f=t.size,p=void 0===f?"medium":f,h=t.className,v=t.symbolPrefix,g=(0,n.Z)(t,l),y=(0,i.useContext)(d),m=v||y.symbolPrefix||s.symbolPrefix||window.__teamixIconSymbolPrefix__||"hybridcloud-",b=c()(((e={})["teamix-icon"]=!0,e["teamix-icon-"+a]=!!a,e["teamix-"+p]=!0,e[h]=!!h,e)),_=null;return a&&(_=u().createElement("use",{xlinkHref:"#"+m+a})),u().createElement("i",(0,o.Z)({className:b,ref:r},g),u().createElement("svg",{viewBox:"0 0 1024 1024"},_))}));h.setConfig=function(t){var r=(s=(0,o.Z)({},s,t)).scriptUrl;"string"==typeof r?p(r):Array.isArray(r)&&r.forEach((function(t){p(t)}))},h.Provider=function(t){var r=t.config,e=t.children;return(0,i.useEffect)((function(){"string"==typeof r.scriptUrl?p(r.scriptUrl):Array.isArray(r.scriptUrl)&&r.scriptUrl.forEach((function(t){p(t)})),p(r.scriptUrl)}),[r.scriptUrl]),u().createElement(d.Provider,{value:r},e)},h.YUNXIAO={scriptUrl:"//at.alicdn.com/t/font_2460517_sbqs4qvs528.js",symbolPrefix:"yunxiao-"},h.HYBRIDCLOUD={scriptUrl:"//at.alicdn.com/t/a/font_2436140_rs0hku5idd.js",symbolPrefix:"hybridcloud-"},h.displayName="TeamixIcon";const v=h},8478:(t,r,e)=>{t.exports=e(6570)},3819:(t,r,e)=>{"use strict";var n=e(4243),o=e(3402),i=e(8998),u=e(9774),a=e(9627),c=e(1842),f=e(5548),l=e(6168);t.exports=function(t){return new Promise((function(r,e){var s=t.data,p=t.headers,d=t.responseType;n.isFormData(s)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var v=t.auth.username||"",g=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";p.Authorization="Basic "+btoa(v+":"+g)}var y=a(t.baseURL,t.url);function m(){if(h){var n="getAllResponseHeaders"in h?c(h.getAllResponseHeaders()):null,i={data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};o(r,e,i),h=null}}if(h.open(t.method.toUpperCase(),u(y,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,"onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(m)},h.onabort=function(){h&&(e(l("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){e(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){var r="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(r=t.timeoutErrorMessage),e(l(r,t,t.transitional&&t.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var b=(t.withCredentials||f(y))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;b&&(p[t.xsrfHeaderName]=b)}"setRequestHeader"in h&&n.forEach(p,(function(t,r){void 0===s&&"content-type"===r.toLowerCase()?delete p[r]:h.setRequestHeader(r,t)})),n.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),d&&"json"!==d&&(h.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),e(t),h=null)})),s||(s=null),h.send(s)}))}},6570:(t,r,e)=>{"use strict";var n=e(4243),o=e(7342),i=e(372),u=e(719);function a(t){var r=new i(t),e=o(i.prototype.request,r);return n.extend(e,i.prototype,r),n.extend(e,r),e}var c=a(e(7587));c.Axios=i,c.create=function(t){return a(u(c.defaults,t))},c.Cancel=e(9188),c.CancelToken=e(6028),c.isCancel=e(4429),c.all=function(t){return Promise.all(t)},c.spread=e(2497),c.isAxiosError=e(4256),t.exports=c,t.exports.default=c},9188:t=>{"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},6028:(t,r,e)=>{"use strict";var n=e(9188);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(t){r=t}));var e=this;t((function(t){e.reason||(e.reason=new n(t),r(e.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(r){t=r})),cancel:t}},t.exports=o},4429:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},372:(t,r,e)=>{"use strict";var n=e(4243),o=e(9774),i=e(3919),u=e(9547),a=e(719),c=e(7518),f=c.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:f.transitional(f.boolean,"1.0.0"),forcedJSONParsing:f.transitional(f.boolean,"1.0.0"),clarifyTimeoutError:f.transitional(f.boolean,"1.0.0")},!1);var e=[],n=!0;this.interceptors.request.forEach((function(r){"function"==typeof r.runWhen&&!1===r.runWhen(t)||(n=n&&r.synchronous,e.unshift(r.fulfilled,r.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!n){var l=[u,void 0];for(Array.prototype.unshift.apply(l,e),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var s=t;e.length;){var p=e.shift(),d=e.shift();try{s=p(s)}catch(t){d(t);break}}try{o=u(s)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=a(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(r,e){return this.request(a(e||{},{method:t,url:r,data:(e||{}).data}))}})),n.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(r,e,n){return this.request(a(n||{},{method:t,url:r,data:e}))}})),t.exports=l},3919:(t,r,e)=>{"use strict";var n=e(4243);function o(){this.handlers=[]}o.prototype.use=function(t,r,e){return this.handlers.push({fulfilled:t,rejected:r,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){n.forEach(this.handlers,(function(r){null!==r&&t(r)}))},t.exports=o},9627:(t,r,e)=>{"use strict";var n=e(6991),o=e(2293);t.exports=function(t,r){return t&&!n(r)?o(t,r):r}},6168:(t,r,e)=>{"use strict";var n=e(4062);t.exports=function(t,r,e,o,i){var u=new Error(t);return n(u,r,e,o,i)}},9547:(t,r,e)=>{"use strict";var n=e(4243),o=e(2653),i=e(4429),u=e(7587);function a(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return a(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(r){delete t.headers[r]})),(t.adapter||u.adapter)(t).then((function(r){return a(t),r.data=o.call(t,r.data,r.headers,t.transformResponse),r}),(function(r){return i(r)||(a(t),r&&r.response&&(r.response.data=o.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)}))}},4062:t=>{"use strict";t.exports=function(t,r,e,n,o){return t.config=r,e&&(t.code=e),t.request=n,t.response=o,t.isAxiosError=!0,t.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}},t}},719:(t,r,e)=>{"use strict";var n=e(4243);t.exports=function(t,r){r=r||{};var e={},o=["url","method","data"],i=["headers","auth","proxy","params"],u=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,r){return n.isPlainObject(t)&&n.isPlainObject(r)?n.merge(t,r):n.isPlainObject(r)?n.merge({},r):n.isArray(r)?r.slice():r}function f(o){n.isUndefined(r[o])?n.isUndefined(t[o])||(e[o]=c(void 0,t[o])):e[o]=c(t[o],r[o])}n.forEach(o,(function(t){n.isUndefined(r[t])||(e[t]=c(void 0,r[t]))})),n.forEach(i,f),n.forEach(u,(function(o){n.isUndefined(r[o])?n.isUndefined(t[o])||(e[o]=c(void 0,t[o])):e[o]=c(void 0,r[o])})),n.forEach(a,(function(n){n in r?e[n]=c(t[n],r[n]):n in t&&(e[n]=c(void 0,t[n]))}));var l=o.concat(i).concat(u).concat(a),s=Object.keys(t).concat(Object.keys(r)).filter((function(t){return-1===l.indexOf(t)}));return n.forEach(s,f),e}},3402:(t,r,e)=>{"use strict";var n=e(6168);t.exports=function(t,r,e){var o=e.config.validateStatus;e.status&&o&&!o(e.status)?r(n("Request failed with status code "+e.status,e.config,null,e.request,e)):t(e)}},2653:(t,r,e)=>{"use strict";var n=e(4243),o=e(7587);t.exports=function(t,r,e){var i=this||o;return n.forEach(e,(function(e){t=e.call(i,t,r)})),t}},7587:(t,r,e)=>{"use strict";var n=e(4243),o=e(2586),i=e(4062),u={"Content-Type":"application/x-www-form-urlencoded"};function a(t,r){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=r)}var c,f={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=e(3819)),c),transformRequest:[function(t,r){return o(r,"Accept"),o(r,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(a(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)||r&&"application/json"===r["Content-Type"]?(a(r,"application/json"),function(t,r,e){if(n.isString(t))try{return(r||JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(e||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var r=this.transitional,e=r&&r.silentJSONParsing,o=r&&r.forcedJSONParsing,u=!e&&"json"===this.responseType;if(u||o&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(u){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};f.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){f.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){f.headers[t]=n.merge(u)})),t.exports=f},7342:t=>{"use strict";t.exports=function(t,r){return function(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];return t.apply(r,e)}}},9774:(t,r,e)=>{"use strict";var n=e(4243);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,r,e){if(!r)return t;var i;if(e)i=e(r);else if(n.isURLSearchParams(r))i=r.toString();else{var u=[];n.forEach(r,(function(t,r){null!=t&&(n.isArray(t)?r+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),u.push(o(r)+"="+o(t))})))})),i=u.join("&")}if(i){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},2293:t=>{"use strict";t.exports=function(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}},8998:(t,r,e)=>{"use strict";var n=e(4243);t.exports=n.isStandardBrowserEnv()?{write:function(t,r,e,o,i,u){var a=[];a.push(t+"="+encodeURIComponent(r)),n.isNumber(e)&&a.push("expires="+new Date(e).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===u&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},6991:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},4256:t=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}t.exports=function(t){return"object"===r(t)&&!0===t.isAxiosError}},5548:(t,r,e)=>{"use strict";var n=e(4243);t.exports=n.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");function o(t){var n=t;return r&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return t=o(window.location.href),function(r){var e=n.isString(r)?o(r):r;return e.protocol===t.protocol&&e.host===t.host}}():function(){return!0}},2586:(t,r,e)=>{"use strict";var n=e(4243);t.exports=function(t,r){n.forEach(t,(function(e,n){n!==r&&n.toUpperCase()===r.toUpperCase()&&(t[r]=e,delete t[n])}))}},1842:(t,r,e)=>{"use strict";var n=e(4243),o=["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"];t.exports=function(t){var r,e,i,u={};return t?(n.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),r=n.trim(t.substr(0,i)).toLowerCase(),e=n.trim(t.substr(i+1)),r){if(u[r]&&o.indexOf(r)>=0)return;u[r]="set-cookie"===r?(u[r]?u[r]:[]).concat([e]):u[r]?u[r]+", "+e:e}})),u):u}},2497:t=>{"use strict";t.exports=function(t){return function(r){return t.apply(null,r)}}},7518:(t,r,e)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=e(8593),i={};["object","boolean","number","function","string","symbol"].forEach((function(t,r){i[t]=function(e){return n(e)===t||"a"+(r<1?"n ":" ")+t}}));var u={},a=o.version.split(".");function c(t,r){for(var e=r?r.split("."):a,n=t.split("."),o=0;o<3;o++){if(e[o]>n[o])return!0;if(e[o]<n[o])return!1}return!1}i.transitional=function(t,r,e){var n=r&&c(r);function i(t,r){return"[Axios v"+o.version+"] Transitional option '"+t+"'"+r+(e?". "+e:"")}return function(e,o,a){if(!1===t)throw new Error(i(o," has been removed in "+r));return n&&!u[o]&&(u[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),!t||t(e,o,a)}},t.exports={isOlderVersion:c,assertOptions:function(t,r,e){if("object"!==n(t))throw new TypeError("options must be an object");for(var o=Object.keys(t),i=o.length;i-- >0;){var u=o[i],a=r[u];if(a){var c=t[u],f=void 0===c||a(c,u,t);if(!0!==f)throw new TypeError("option "+u+" must be "+f)}else if(!0!==e)throw Error("Unknown option "+u)}},validators:i}},4243:(t,r,e)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var o=e(7342),i=Object.prototype.toString;function u(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function c(t){return null!==t&&"object"===n(t)}function f(t){if("[object Object]"!==i.call(t))return!1;var r=Object.getPrototypeOf(t);return null===r||r===Object.prototype}function l(t){return"[object Function]"===i.call(t)}function s(t,r){if(null!=t)if("object"!==n(t)&&(t=[t]),u(t))for(var e=0,o=t.length;e<o;e++)r.call(null,t[e],e,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.call(null,t[i],i,t)}t.exports={isArray:u,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isPlainObject:f,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:l,isStream:function(t){return c(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:s,merge:function t(){var r={};function e(e,n){f(r[n])&&f(e)?r[n]=t(r[n],e):f(e)?r[n]=t({},e):u(e)?r[n]=e.slice():r[n]=e}for(var n=0,o=arguments.length;n<o;n++)s(arguments[n],e);return r},extend:function(t,r,e){return s(r,(function(r,n){t[n]=e&&"function"==typeof r?o(r,e):r})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},8266:(t,r,e)=>{var n;function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}!function(){"use strict";var i={}.hasOwnProperty;function u(){for(var t=[],r=0;r<arguments.length;r++){var e=arguments[r];if(e){var n=o(e);if("string"===n||"number"===n)t.push(e);else if(Array.isArray(e)){if(e.length){var a=u.apply(null,e);a&&t.push(a)}}else if("object"===n){if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]")){t.push(e.toString());continue}for(var c in e)i.call(e,c)&&e[c]&&t.push(c)}}}return t.join(" ")}t.exports?(u.default=u,t.exports=u):"object"===o(e.amdO)&&e.amdO?void 0===(n=function(){return u}.apply(r,[]))||(t.exports=n):window.classNames=u}()},3129:function(t,r,e){var n,o,i;function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}i=function(){"use strict";var t=6e4,r=36e5,e="millisecond",n="second",o="minute",i="hour",a="day",c="week",f="month",l="quarter",s="year",p="date",d="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,g={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 r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}},y=function(t,r,e){var n=String(t);return!n||n.length>=r?t:""+Array(r+1-n.length).join(e)+t},m={s:y,z:function(t){var r=-t.utcOffset(),e=Math.abs(r),n=Math.floor(e/60),o=e%60;return(r<=0?"+":"-")+y(n,2,"0")+":"+y(o,2,"0")},m:function t(r,e){if(r.date()<e.date())return-t(e,r);var n=12*(e.year()-r.year())+(e.month()-r.month()),o=r.clone().add(n,f),i=e-o<0,u=r.clone().add(n+(i?-1:1),f);return+(-(n+(e-o)/(i?o-u:u-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:s,w:c,d:a,D:p,h:i,m:o,s:n,ms:e,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",_={};_[b]=g;var w=function(t){return t instanceof S},x=function t(r,e,n){var o;if(!r)return b;if("string"==typeof r){var i=r.toLowerCase();_[i]&&(o=i),e&&(_[i]=e,o=i);var u=r.split("-");if(!o&&u.length>1)return t(u[0])}else{var a=r.name;_[a]=r,o=a}return!n&&o&&(b=o),o||!n&&b},A=function(t,r){if(w(t))return t.clone();var e="object"==u(r)?r:{};return e.date=t,e.args=arguments,new S(e)},O=m;O.l=x,O.i=w,O.w=function(t,r){return A(t,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var S=function(){function u(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=u.prototype;return g.parse=function(t){this.$d=function(t){var r=t.date,e=t.utc;if(null===r)return new Date(NaN);if(O.u(r))return new Date;if(r instanceof Date)return new Date(r);if("string"==typeof r&&!/Z$/i.test(r)){var n=r.match(h);if(n){var o=n[2]-1||0,i=(n[7]||"0").substring(0,3);return e?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(r)}(t),this.$x=t.x||{},this.init()},g.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()},g.$utils=function(){return O},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,r){var e=A(t);return this.startOf(r)<=e&&e<=this.endOf(r)},g.isAfter=function(t,r){return A(t)<this.startOf(r)},g.isBefore=function(t,r){return this.endOf(r)<A(t)},g.$g=function(t,r,e){return O.u(t)?this[r]:this.set(e,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,r){var e=this,u=!!O.u(r)||r,l=O.p(t),d=function(t,r){var n=O.w(e.$u?Date.UTC(e.$y,r,t):new Date(e.$y,r,t),e);return u?n:n.endOf(a)},h=function(t,r){return O.w(e.toDate()[t].apply(e.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(r)),e)},v=this.$W,g=this.$M,y=this.$D,m="set"+(this.$u?"UTC":"");switch(l){case s:return u?d(1,0):d(31,11);case f:return u?d(1,g):d(0,g+1);case c:var b=this.$locale().weekStart||0,_=(v<b?v+7:v)-b;return d(u?y-_:y+(6-_),g);case a:case p:return h(m+"Hours",0);case i:return h(m+"Minutes",1);case o:return h(m+"Seconds",2);case n:return h(m+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,r){var u,c=O.p(t),l="set"+(this.$u?"UTC":""),d=(u={},u[a]=l+"Date",u[p]=l+"Date",u[f]=l+"Month",u[s]=l+"FullYear",u[i]=l+"Hours",u[o]=l+"Minutes",u[n]=l+"Seconds",u[e]=l+"Milliseconds",u)[c],h=c===a?this.$D+(r-this.$W):r;if(c===f||c===s){var v=this.clone().set(p,1);v.$d[d](h),v.init(),this.$d=v.set(p,Math.min(this.$D,v.daysInMonth())).$d}else d&&this.$d[d](h);return this.init(),this},g.set=function(t,r){return this.clone().$set(t,r)},g.get=function(t){return this[O.p(t)]()},g.add=function(e,u){var l,p=this;e=Number(e);var d=O.p(u),h=function(t){var r=A(p);return O.w(r.date(r.date()+Math.round(t*e)),p)};if(d===f)return this.set(f,this.$M+e);if(d===s)return this.set(s,this.$y+e);if(d===a)return h(1);if(d===c)return h(7);var v=(l={},l[o]=t,l[i]=r,l[n]=1e3,l)[d]||1,g=this.$d.getTime()+e*v;return O.w(g,this)},g.subtract=function(t,r){return this.add(-1*t,r)},g.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",o=O.z(this),i=this.$H,u=this.$m,a=this.$M,c=e.weekdays,f=e.months,l=function(t,e,o,i){return t&&(t[e]||t(r,n))||o[e].slice(0,i)},s=function(t){return O.s(i%12||12,t,"0")},p=e.meridiem||function(t,r,e){var n=t<12?"AM":"PM";return e?n.toLowerCase():n},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:l(e.monthsShort,a,f,3),MMMM:l(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:l(e.weekdaysMin,this.$W,c,2),ddd:l(e.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(i),HH:O.s(i,2,"0"),h:s(1),hh:s(2),a:p(i,u,!0),A:p(i,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:o};return n.replace(v,(function(t,r){return r||h[t]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(e,u,p){var d,h=O.p(u),v=A(e),g=(v.utcOffset()-this.utcOffset())*t,y=this-v,m=O.m(this,v);return m=(d={},d[s]=m/12,d[f]=m,d[l]=m/3,d[c]=(y-g)/6048e5,d[a]=(y-g)/864e5,d[i]=y/r,d[o]=y/t,d[n]=y/1e3,d)[h]||y,p?m:O.a(m)},g.daysInMonth=function(){return this.endOf(f).$D},g.$locale=function(){return _[this.$L]},g.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),n=x(t,r,!0);return n&&(e.$L=n),e},g.clone=function(){return O.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},u}(),j=S.prototype;return A.prototype=j,[["$ms",e],["$s",n],["$m",o],["$H",i],["$W",a],["$M",f],["$y",s],["$D",p]].forEach((function(t){j[t[1]]=function(r){return this.$g(r,t[0],t[1])}})),A.extend=function(t,r){return t.$i||(t(r,S,A),t.$i=!0),A},A.locale=x,A.isDayjs=w,A.unix=function(t){return A(1e3*t)},A.en=_[b],A.Ls=_,A.p={},A},"object"==u(r)?t.exports=i():void 0===(o="function"==typeof(n=i)?n.call(r,e,r,t):n)||(t.exports=o)},5010:function(t,r,e){var n,o,i;function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}i=function(){"use strict";return{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 r=["th","st","nd","rd"],e=t%100;return"["+t+(r[(e-20)%10]||r[e]||r[0])+"]"}}},"object"==u(r)?t.exports=i():void 0===(o="function"==typeof(n=i)?n.call(r,e,r,t):n)||(t.exports=o)},4476:function(t,r,e){var n,o,i,u;function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}u=function(t){"use strict";var r=function(t){return t&&"object"==a(t)&&"default"in t?t:{default:t}}(t),e={name:"zh",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(t,r){return"W"===r?t+"周":t+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s后",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(t,r){var e=100*t+r;return e<600?"凌晨":e<900?"早上":e<1100?"上午":e<1300?"中午":e<1800?"下午":"晚上"}};return r.default.locale(e,null,!0),e},"object"==a(r)?t.exports=u(e(3129)):(o=[e(3129)],void 0===(i="function"==typeof(n=u)?n.apply(r,o):n)||(t.exports=i))},9910:function(t,r,e){var n,o,i;function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}i=function(){"use strict";return function(t,r){var e=r.prototype,n=e.format;e.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return n.bind(this)(t);var o=this.$utils(),i=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((r.$M+1)/3);case"Do":return e.ordinal(r.$D);case"gggg":return r.weekYear();case"GGGG":return r.isoWeekYear();case"wo":return e.ordinal(r.week(),"W");case"w":case"ww":return o.s(r.week(),"w"===t?1:2,"0");case"W":case"WW":return o.s(r.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return o.s(String(0===r.$H?24:r.$H),"k"===t?1:2,"0");case"X":return Math.floor(r.$d.getTime()/1e3);case"x":return r.$d.getTime();case"z":return"["+r.offsetName()+"]";case"zzz":return"["+r.offsetName("long")+"]";default:return t}}));return n.bind(this)(i)}}},"object"==u(r)?t.exports=i():void 0===(o="function"==typeof(n=i)?n.call(r,e,r,t):n)||(t.exports=o)},7939:function(t,r,e){var n,o,i;function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}i=function(){"use strict";var t="day";return function(r,e,n){var o=function(r){return r.add(4-r.isoWeekday(),t)},i=e.prototype;i.isoWeekYear=function(){return o(this).year()},i.isoWeek=function(r){if(!this.$utils().u(r))return this.add(7*(r-this.isoWeek()),t);var e,i,u,a=o(this),c=(e=this.isoWeekYear(),u=4-(i=(this.$u?n.utc:n)().year(e).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(u+=7),i.add(u,t));return a.diff(c,"week")+1},i.isoWeekday=function(t){return this.$utils().u(t)?this.day()||7:this.day(this.day()%7?t:t-7)};var u=i.startOf;i.startOf=function(t,r){var e=this.$utils(),n=!!e.u(r)||r;return"isoweek"===e.p(t)?n?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(t,r)}}},"object"==u(r)?t.exports=i():void 0===(o="function"==typeof(n=i)?n.call(r,e,r,t):n)||(t.exports=o)},4797:t=>{"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var e="%[a-f0-9]{2}",n=new RegExp(e,"gi"),o=new RegExp("("+e+")+","gi");function i(t,r){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;r=r||1;var e=t.slice(0,r),n=t.slice(r);return Array.prototype.concat.call([],i(e),i(n))}function u(t){try{return decodeURIComponent(t)}catch(o){for(var r=t.match(n),e=1;e<r.length;e++)r=(t=i(r,e).join("")).match(n);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of