k5web/assets/index.132300a0.js

16 lines
740 KiB
JavaScript
Raw Normal View History

2024-01-29 08:49:58 +00:00
import{d as defineComponent,A as getPrefixCls,c as computed,B as isNumber$1,_ as _export_sfc$1,C as openBlock,D as createElementBlock,E as normalizeClass,F as normalizeStyle,G as createBaseVNode,H as createStaticVNode,I as IconCaretDown,J as IconCaretLeft,K as IconCaretRight,L as IconCaretUp,M as IconDoubleLeft,N as IconDoubleRight,O as IconDown,P as IconLeft,Q as IconMenuFold,R as IconMenuUnfold,S as IconRight,T as IconRotateLeft,U as IconRotateRight,V as IconToTop,W as IconUp,X as IconCheckCircleFill,Y as IconCloseCircleFill,Z as IconExclamationCircleFill,$ as IconInfoCircleFill,a0 as IconCheck,a1 as IconClockCircle,a2 as IconClose,a3 as IconExclamation,a4 as IconInfo,a5 as IconMinus,a6 as IconPlus,a7 as IconQuestionCircle,a8 as IconStarFill,a9 as IconEyeInvisible,aa as IconEye,ab as IconMore,ac as IconSearch,ad as IconUpload,ae as IconCopy,af as IconDelete,ag as IconEdit,ah as IconFilter,ai as IconLink,aj as IconObliqueLine,ak as IconOriginalSize,al as IconZoomIn,am as IconZoomOut,an as IconPlayArrowFill,ao as IconFullscreen,ap as IconPause,aq as IconFaceFrownFill,ar as IconFaceMehFill,as as IconFaceSmileFill,at as IconCalendar,au as IconDragDotVertical,av as IconDragDot,aw as IconEmpty,ax as IconFileAudio,ay as IconFileImage,az as IconFilePdf,aA as IconFileVideo,aB as IconFile,aC as IconImageClose,aD as IconLoading,f as ref,n as nextTick,aE as createBlock,u as unref,aF as createCommentVNode,aG as Breadcrumb$1,aH as withCtx,aI as createVNode,aJ as renderList,aK as Fragment,aL as BreadcrumbItem,aM as createTextVNode,aN as toDisplayString,aO as commonjsGlobal,aP as getDefaultExportFromCjs,aQ as Notification,aR as getAugmentedNamespace,aS as vue_esmBundler,aT as dayjs,aU as InputNumber,aV as Switch,aW as Message,aX as Button,aY as Alert,aZ as Drawer,a_ as ConfigProvider,a$ as lang,b0 as resolveComponent,b1 as Modal,b2 as createApp,b3 as ArcoVue}from"./arco.d15c1506.js";import{B,u as use,i as install$1,a as install$2,b as install$3,c as install$4,d as install$5,e as install$6,f as install$7,g as install$8,h as install$9,j as install$a}from"./chart.4422206f.js";import{d as defineStore,c as createPinia,a as createRouter,b as createWebHashHistory,s as shared_esmBrowser,e as coreBase_esmBrowser,u as useClipboard}from"./vue.295dbc7d.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerpolicy&&(l.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?l.credentials="include":s.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=t(s);fetch(s.href,l)}})();const _sfc_main$3F=defineComponent({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:n}){const t=getPrefixCls("icon"),r=computed(()=>[t,`${t}-arrow-down`,{[`${t}-spin`]:e.spin}]),s=computed(()=>{const o={};return e.size&&(o.fontSize=isNumber$1(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:r,innerStyle:s,onClick:o=>{n("click",o)}}}}),_hoisted_1$3A=["stroke-width","stroke-linecap","stroke-linejoin"],_hoisted_2$3A=createBaseVNode("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1),_hoisted_3$3w=[_hoisted_2$3A];function _sfc_render$3z(e,n,t,r,s,l){return openBlock(),createElementBlock("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:normalizeClass(e.cls),style:normalize
* @license MIT */(function(e,n){(function(t,r){e.exports=r()})(commonjsGlobal,function(){var t={};t.version="0.2.0";var r=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};t.configure=function(f){var _,g;for(_ in f)g=f[_],g!==void 0&&f.hasOwnProperty(_)&&(r[_]=g);return this},t.status=null,t.set=function(f){var _=t.isStarted();f=s(f,r.minimum,1),t.status=f===1?null:f;var g=t.render(!_),w=g.querySelector(r.barSelector),P=r.speed,M=r.easing;return g.offsetWidth,u(function(S){r.positionUsing===""&&(r.positionUsing=t.getPositioningCSS()),m(w,o(f,P,M)),f===1?(m(g,{transition:"none",opacity:1}),g.offsetWidth,setTimeout(function(){m(g,{transition:"all "+P+"ms linear",opacity:0}),setTimeout(function(){t.remove(),S()},P)},P)):setTimeout(S,P)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var f=function(){setTimeout(function(){!t.status||(t.trickle(),f())},r.trickleSpeed)};return r.trickle&&f(),this},t.done=function(f){return!f&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(f){var _=t.status;return _?(typeof f!="number"&&(f=(1-_)*s(Math.random()*_,.1,.95)),_=s(_+f,0,.994),t.set(_)):t.start()},t.trickle=function(){return t.inc(Math.random()*r.trickleRate)},function(){var f=0,_=0;t.promise=function(g){return!g||g.state()==="resolved"?this:(_===0&&t.start(),f++,_++,g.always(function(){_--,_===0?(f=0,t.done()):t.set((f-_)/f)}),this)}}(),t.render=function(f){if(t.isRendered())return document.getElementById("nprogress");k(document.documentElement,"nprogress-busy");var _=document.createElement("div");_.id="nprogress",_.innerHTML=r.template;var g=_.querySelector(r.barSelector),w=f?"-100":l(t.status||0),P=document.querySelector(r.parent),M;return m(g,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(M=_.querySelector(r.spinnerSelector),M&&v(M)),P!=document.body&&k(P,"nprogress-custom-parent"),P.appendChild(_),_},t.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(r.parent),"nprogress-custom-parent");var f=document.getElementById("nprogress");f&&v(f)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var f=document.body.style,_="WebkitTransform"in f?"Webkit":"MozTransform"in f?"Moz":"msTransform"in f?"ms":"OTransform"in f?"O":"";return _+"Perspective"in f?"translate3d":_+"Transform"in f?"translate":"margin"};function s(f,_,g){return f<_?_:f>g?g:f}function l(f){return(-1+f)*100}function o(f,_,g){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+l(f)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+l(f)+"%,0)"}:w={"margin-left":l(f)+"%"},w.transition="all "+_+"ms "+g,w}var u=function(){var f=[];function _(){var g=f.shift();g&&g(_)}return function(g){f.push(g),f.length==1&&_()}}(),m=function(){var f=["Webkit","O","Moz","ms"],_={};function g(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(x,O){return O.toUpperCase()})}function w(S){var x=document.body.style;if(S in x)return S;for(var O=f.length,y=S.charAt(0).toUpperCase()+S.slice(1),z;O--;)if(z=f[O]+y,z in x)return z;return S}function P(S){return S=g(S),_[S]||(_[S]=w(S))}function M(S,x,O){x=P(x),S.style[x]=O}return function(S,x){var O=arguments,y,z;if(O.length==2)for(y in x)z=x[y],z!==void 0&&x.hasOwnProperty(y)&&M(S,y,z);else M(S,O[1],O[2])}}();function d(f,_){var g=typeof f=="string"?f:$(f);return g.indexOf(" "+_+" ")>=0}function k(f,_){var g=$(f),w=g+_;d(g,_)||(f.className=w.substring(1))}function h(f,_){var g=$(f),w;!d(f,_)||(w=g.replace(" "+_+" "," "),f.className=w.substring(1,w.length-1))}function $(f){return(" "+(f.className||"")+" ").replace(/\s+/gi," ")}function v(f){f&&f.parentNode&&f.parentNode.removeChild(f)}return t})})(nprogress$1);const NPr
`),function(d){if(u=d.indexOf(":"),l=e.trim(d.substr(0,u)).toLowerCase(),o=e.trim(d.substr(u+1)),l){if(s[l]&&n.indexOf(l)>=0)return;l==="set-cookie"?s[l]=(s[l]?s[l]:[]).concat([o]):s[l]=s[l]?s[l]+", "+o:o}}),s},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var e=utils$8;return isURLSameOrigin=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),s;function l(o){var u=o;return t&&(r.setAttribute("href",u),u=r.href),r.setAttribute("href",u),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return s=l(window.location.href),function(u){var m=e.isString(u)?l(u):u;return m.protocol===s.protocol&&m.host===s.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function e(n){this.message=n}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Cancel_1=e,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var e=utils$8,n=requireSettle(),t=requireCookies(),r=buildURL$1,s=requireBuildFullPath(),l=requireParseHeaders(),o=requireIsURLSameOrigin(),u=requireCreateError(),m=requireDefaults(),d=requireCancel();return xhr=function(h){return new Promise(function(v,f){var _=h.data,g=h.headers,w=h.responseType,P;function M(){h.cancelToken&&h.cancelToken.unsubscribe(P),h.signal&&h.signal.removeEventListener("abort",P)}e.isFormData(_)&&delete g["Content-Type"];var S=new XMLHttpRequest;if(h.auth){var x=h.auth.username||"",O=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+O)}var y=s(h.baseURL,h.url);S.open(h.method.toUpperCase(),r(y,h.params,h.paramsSerializer),!0),S.timeout=h.timeout;function z(){if(!!S){var W="getAllResponseHeaders"in S?l(S.getAllResponseHeaders()):null,F=!w||w==="text"||w==="json"?S.responseText:S.response,Z={data:F,status:S.status,statusText:S.statusText,headers:W,config:h,request:S};n(function(Y){v(Y),M()},function(Y){f(Y),M()},Z),S=null}}if("onloadend"in S?S.onloadend=z:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(z)},S.onabort=function(){!S||(f(u("Request aborted",h,"ECONNABORTED",S)),S=null)},S.onerror=function(){f(u("Network Error",h,null,S)),S=null},S.ontimeout=function(){var F=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",Z=h.transitional||m.transitional;h.timeoutErrorMessage&&(F=h.timeoutErrorMessage),f(u(F,h,Z.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",S)),S=null},e.isStandardBrowserEnv()){var q=(h.withCredentials||o(y))&&h.xsrfCookieName?t.read(h.xsrfCookieName):void 0;q&&(g[h.xsrfHeaderName]=q)}"setRequestHeader"in S&&e.forEach(g,function(F,Z){typeof _>"u"&&Z.toLowerCase()==="content-type"?delete g[Z]:S.setRequestHeader(Z,F)}),e.isUndefined(h.withCredentials)||(S.withCredentials=!!h.withCredentials),w&&w!=="json"&&(S.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&S.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(P=function(W){!S||(f(!W||W&&W.type?new d("canceled"):W),S.abort(),S=null)},h.cancelToken&&h.cancelToken.subscribe(P),h.signal&&(h.signal.aborted?P():h.signal.addEventListener("abort",P))),_||(_=null),S.send(_)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var e=utils$8,n=normalizeHeaderName,t=enhanceError,r={"Content-Type":"application/x-www-form-urlencoded"};function s(m,d){!e.i
2024-01-25 13:47:56 +00:00
* vue-i18n v9.9.0
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/var shared=require$$0,coreBase=require$$1,vue=require$$2;const VERSION="9.9.0",code$1=coreBase.CoreWarnCodes.__EXTEND_POINT__,inc$1=shared.incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze"};function getWarnMessage(e,...n){return shared.format(warnMessages[e],...n)}const code=coreBase.CoreErrorCodes.__EXTEND_POINT__,inc=shared.incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...n){return coreBase.createCompileError(e,null,{messages:errorMessages,args:n})}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=shared.makeSymbol("__translateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");shared.makeSymbol("__intlifyMeta");const InejctWithOptionSymbol=shared.makeSymbol("__injectWithOption"),DisposeSymbol=shared.makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(e){if(!shared.isObject(e))return e;for(const n in e)if(!!shared.hasOwn(e,n))if(!n.includes("."))shared.isObject(e[n])&&handleFlatJson(e[n]);else{const t=n.split("."),r=t.length-1;let s=e,l=!1;for(let o=0;o<r;o++){if(t[o]in s
Mock - 模拟请求 & 模拟数据
https://github.com/nuysoft/Mock
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
*/var k={Handler:r,Random:l,Util:s,XHR:d,RE:o,toJSONSchema:u,valid:m,heredoc:s.heredoc,setup:function(h){return d.setup(h)},_mocked:{}};k.version="1.0.1-beta3",d&&(d.Mock=k),k.mock=function(h,$,v){return arguments.length===1?r.gen(h):(arguments.length===2&&(v=$,$=void 0),d&&(window.XMLHttpRequest=d),k._mocked[h+($||"")]={rurl:h,rtype:$,template:v},k)},e.exports=k},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(e,n,t){n=n==null?"":n+"",t=t||{},t={path:t.path||[Constant.GUID],templatePath:t.templatePath||[Constant.GUID++],currentContext:t.currentContext,templateCurrentContext:t.templateCurrentContext||e,root:t.root||t.currentContext,templateRoot:t.templateRoot||t.templateCurrentContext||e};var r=Parser.parse(n),s=Util.type(e),l;return Handler[s]?(l=Handler[s]({type:s,template:e,name:n,parsedName:n&&n.replace(Constant.RE_KEY,"$1"),rule:r,context:t}),t.root||(t.root=l),l):e},Handler.extend({array:function(e){var n=[],t,r;if(e.template.length===0)return n;if(e.rule.parameters)if(e.rule.min===1&&e.rule.max===void 0)e.context.path.push(e.name),e.context.templatePath.push(e.name),n=Random.pick(Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:n,templateCurrentContext:e.template,root:e.context.root||n,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();else if(e.rule.parameters[2])e.template.__order_index=e.template.__order_index||0,e.context.path.push(e.name),e.context.templatePath.push(e.name),n=Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:n,templateCurrentContext:e.template,root:e.context.root||n,templateRoot:e.context.templateRoot||e.template})[e.template.__order_index%e.template.length],e.template.__order_index+=+e.rule.parameters[2],e.context.path.pop(),e.context.templatePath.pop();else for(t=0;t<e.rule.count;t++)for(r=0;r<e.template.length;r++)e.context.path.push(n.length),e.context.templatePath.push(r),n.push(Handler.gen(e.template[r],n.length,{path:e.context.path,templatePath:e.context.templatePath,currentContext:n,templateCurrentContext:e.template,root:e.context.root||n,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();else for(t=0;t<e.template.length;t++)e.context.path.push(t),e.context.templatePath.push(t),n.push(Handler.gen(e.template[t],t,{path:e.context.path,templatePath:e.context.templatePath,currentContext:n,templateCurrentContext:e.template,root:e.context.root||n,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();return n},object:function(e){var n={},t,r,s,l,o,u;if(e.rule.min!=null)for(t=Util.keys(e.template),t=Random.shuffle(t),t=t.slice(0,e.rule.count),u=0;u<t.length;u++)s=t[u],l=s.replace(Constant.RE_KEY,"$1"),e.context.path.push(l),e.context.templatePath.push(s),n[l]=Handler.gen(e.template[s],s,{path:e.context.path,templatePath:e.context.templatePath,currentContext:n,templateCurrentContext:e.template,root:e.context.root||n,templateRoot:e.context.templateRoot||e.template}),e.context.path.pop(),e.context.templatePath.pop();else{t=[],r=[];for(s in e.template)(typeof e.template[s]=="function"?r:t).push(s);for(t=t.concat(r),u=0;u<t.length;u++)s=t[u],l=s.replace(Constant.RE_KEY,"$1"),e.context.path.push(l),e.context.templatePath.push(s),n[l]=Handler.gen(e.template[s],s,{path:e.context.path,templatePath:e.context.templatePath,currentContext:n,templateCurrentContext:e.template,root:e.context.root||n,templateRoot:e.context.templateRoot||e.template}),e.context.path.pop(),e.context.templatePath.pop(),o=s.match(Constant.RE_KEY),o&&o[2]&&Util.type(e.template[s])==="number"&&(e.template[s]+=parseInt(o[2],10))}return n},number:function(e){var n,t;if(e.rule.decimal){for(e.template+="",t=e.template.split("."),t[0]=e.rule.range?e.rule.count:t[0],t[1]=(t[1]||"").slice(0,e.rule
`?(C.seenCR||C.line++,C.column=1,C.seenCR=!1):ye==="\r"||ye==="\u2028"||ye==="\u2029"?(C.line++,C.column=1,C.seenCR=!0):(C.column++,C.seenCR=!1)}return be!==a&&(be>a&&(be=0,He={line:1,column:1,seenCR:!1}),c(He,be,a),be=a),He}function F(a){Ne>p||(p>Ne&&(Ne=p,Le=[]),Le.push(a))}function Z(a){var c=0;for(a.sort();c<a.length;)a[c-1]===a[c]?a.splice(c,1):c++}function U(){var a,c,C,L,D;return a=p,c=Y(),c!==null?(C=p,y.charCodeAt(p)===124?(L=xt,p++):(L=null,N===0&&F(Mt)),L!==null?(D=U(),D!==null?(L=[L,D],C=L):(p=C,C=j)):(p=C,C=j),C===null&&(C=de),C!==null?(A=a,c=Dt(c,C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j),a}function Y(){var a,c,C,L,D;if(a=p,c=G(),c===null&&(c=de),c!==null)if(C=p,N++,L=X(),N--,L===null?C=de:(p=C,C=j),C!==null){for(L=[],D=ie(),D===null&&(D=te());D!==null;)L.push(D),D=ie(),D===null&&(D=te());L!==null?(D=oe(),D===null&&(D=de),D!==null?(A=a,c=Rt(c,L,D),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j)}else p=a,a=j;else p=a,a=j;return a}function te(){var a;return a=he(),a===null&&(a=E(),a===null&&(a=Ae())),a}function G(){var a,c;return a=p,y.charCodeAt(p)===94?(c=tt,p++):(c=null,N===0&&F(nt)),c!==null&&(A=a,c=Tt()),c===null&&(p=a),a=c,a}function oe(){var a,c;return a=p,y.charCodeAt(p)===36?(c=Ot,p++):(c=null,N===0&&F(Wt)),c!==null&&(A=a,c=Vt()),c===null&&(p=a),a=c,a}function ie(){var a,c,C;return a=p,c=te(),c!==null?(C=X(),C!==null?(A=a,c=qt(c,C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j),a}function X(){var a,c,C;return N++,a=p,c=Q(),c!==null?(C=Se(),C===null&&(C=de),C!==null?(A=a,c=Ut(c,C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j),N--,a===null&&(c=null,N===0&&F(Ht)),a}function Q(){var a;return a=J(),a===null&&(a=ue(),a===null&&(a=me(),a===null&&(a=fe(),a===null&&(a=pe(),a===null&&(a=ke()))))),a}function J(){var a,c,C,L,D,le;return a=p,y.charCodeAt(p)===123?(c=We,p++):(c=null,N===0&&F(Ve)),c!==null?(C=se(),C!==null?(y.charCodeAt(p)===44?(L=Zt,p++):(L=null,N===0&&F(Gt)),L!==null?(D=se(),D!==null?(y.charCodeAt(p)===125?(le=ot,p++):(le=null,N===0&&F(rt)),le!==null?(A=a,c=Qt(C,D),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j)):(p=a,a=j)):(p=a,a=j)):(p=a,a=j),a}function ue(){var a,c,C,L;return a=p,y.charCodeAt(p)===123?(c=We,p++):(c=null,N===0&&F(Ve)),c!==null?(C=se(),C!==null?(y.substr(p,2)===it?(L=it,p+=2):(L=null,N===0&&F(Yt)),L!==null?(A=a,c=Xt(C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j)):(p=a,a=j),a}function me(){var a,c,C,L;return a=p,y.charCodeAt(p)===123?(c=We,p++):(c=null,N===0&&F(Ve)),c!==null?(C=se(),C!==null?(y.charCodeAt(p)===125?(L=ot,p++):(L=null,N===0&&F(rt)),L!==null?(A=a,c=Jt(C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j)):(p=a,a=j),a}function fe(){var a,c;return a=p,y.charCodeAt(p)===43?(c=Kt,p++):(c=null,N===0&&F(tn)),c!==null&&(A=a,c=nn()),c===null&&(p=a),a=c,a}function pe(){var a,c;return a=p,y.charCodeAt(p)===42?(c=on,p++):(c=null,N===0&&F(rn)),c!==null&&(A=a,c=sn()),c===null&&(p=a),a=c,a}function ke(){var a,c;return a=p,y.charCodeAt(p)===63?(c=st,p++):(c=null,N===0&&F(lt)),c!==null&&(A=a,c=ln()),c===null&&(p=a),a=c,a}function Se(){var a;return y.charCodeAt(p)===63?(a=st,p++):(a=null,N===0&&F(lt)),a}function se(){var a,c,C;if(a=p,c=[],at.test(y.charAt(p))?(C=y.charAt(p),p++):(C=null,N===0&&F(ct)),C!==null)for(;C!==null;)c.push(C),at.test(y.charAt(p))?(C=y.charAt(p),p++):(C=null,N===0&&F(ct));else c=j;return c!==null&&(A=a,c=an(c)),c===null&&(p=a),a=c,a}function he(){var a,c,C,L;return a=p,y.charCodeAt(p)===40?(c=un,p++):(c=null,N===0&&F(dn)),c!==null?(C=ge(),C===null&&(C=ve(),C===null&&(C=$e(),C===null&&(C=_e()))),C!==null?(y.charCodeAt(p)===41?(L=mn,p++):(L=null,N===0&&F(fn)),L!==null?(A=a,c=pn(C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j)):(p=a,a=j),a}function _e(){var a,c;return a=p,c=U(),c!==null&&(A=a,c=kn(c)),c===null&&(p=a),a=c,a}function $e(){var a,c,C;return a=p,y.substr(p,2)===ut?(c=ut,p+=2):(c=null,N===0&&F(hn)),c!==null?(C=U(),C!==null?(A=a,c=_n(C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j),a}function ge(){var a,c,C;return a=p,y.substr(p,2)===dt?(c=dt,p+=2):(c=null,N===0&&F($n)),c!==null?(C=U(),C!==null?(A=a,c=gn(C),c===null&&(p=a),a=c):(p=a,a=j)):(p=a,a=j),a}function ve(){var a,c,C;return a=p,y.s
\r \v\xA0\u2028\u2029`,$={"\\w":o+u+m+"_","\\W":d.replace("_",""),"\\s":h,"\\S":function(){for(var f=k,_=0;_<h.length;_++)f=f.replace(h[_],"");return f}(),"\\d":m,"\\D":o+u+d};function v(f,_){for(var g="",w=f;w<=_;w++)g+=String.fromCharCode(w);return g}l.gen=function(f,_,g){return g=g||{guid:1},l[f.type]?l[f.type](f,_,g):l.token(f,_,g)},l.extend({token:function(f,_,g){switch(f.type){case"start":case"end":return"";case"any-character":return s.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return s.pick(m.split(""));case"non-digit":return s.pick((o+u+d).split(""));case"form-feed":break;case"line-feed":return f.body||f.text;case"carriage-return":break;case"white-space":return s.pick(h.split(""));case"non-white-space":return s.pick((o+u+m).split(""));case"tab":break;case"vertical-tab":break;case"word":return s.pick((o+u+m).split(""));case"non-word":return s.pick(d.replace("_","").split(""))}return f.body||f.text},alternate:function(f,_,g){return this.gen(s.boolean()?f.left:f.right,_,g)},match:function(f,_,g){_="";for(var w=0;w<f.body.length;w++)_+=this.gen(f.body[w],_,g);return _},"capture-group":function(f,_,g){return _=this.gen(f.body,_,g),g[g.guid++]=_,_},"non-capture-group":function(f,_,g){return this.gen(f.body,_,g)},"positive-lookahead":function(f,_,g){return this.gen(f.body,_,g)},"negative-lookahead":function(f,_,g){return""},quantified:function(f,_,g){_="";for(var w=this.quantifier(f.quantifier),P=0;P<w;P++)_+=this.gen(f.body,_,g);return _},quantifier:function(f,_,g){var w=Math.max(f.min,0),P=isFinite(f.max)?f.max:w+s.integer(3,7);return s.integer(w,P)},charset:function(f,_,g){if(f.invert)return this["invert-charset"](f,_,g);var w=s.pick(f.body);return this.gen(w,_,g)},"invert-charset":function(f,_,g){for(var w=k,P=0,M;P<f.body.length;P++)switch(M=f.body[P],M.type){case"literal":w=w.replace(M.body,"");break;case"range":for(var S=this.gen(M.start,_,g).charCodeAt(),x=this.gen(M.end,_,g).charCodeAt(),O=S;O<=x;O++)w=w.replace(String.fromCharCode(O),"");default:var y=$[M.text];if(y)for(var z=0;z<=y.length;z++)w=w.replace(y[z],"")}return s.pick(w.split(""))},range:function(f,_,g){var w=this.gen(f.start,_,g).charCodeAt(),P=this.gen(f.end,_,g).charCodeAt();return String.fromCharCode(s.integer(w,P))},literal:function(f,_,g){return f.escaped?f.body:f.text},unicode:function(f,_,g){return String.fromCharCode(parseInt(f.code,16))},hex:function(f,_,g){return String.fromCharCode(parseInt(f.code,16))},octal:function(f,_,g){return String.fromCharCode(parseInt(f.code,8))},"back-reference":function(f,_,g){return g[f.code]||""},CONTROL_CHARACTER_MAP:function(){for(var f="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),_=`\0       \x07 \b
\v \f \r              \x1B    `.split(" "),g={},w=0;w<f.length;w++)g[f[w]]=_[w];return g}(),"control-character":function(f,_,g){return this.CONTROL_CHARACTER_MAP[f.code]}}),e.exports=l},function(e,n,t){e.exports=t(24)},function(e,n,t){var r=t(2),s=t(3),l=t(4);function o(u,m,d){d=d||[];var k={name:typeof m=="string"?m.replace(r.RE_KEY,"$1"):m,template:u,type:s.type(u),rule:l.parse(m)};switch(k.path=d.slice(0),k.path.push(m===void 0?"ROOT":k.name),k.type){case"array":k.items=[],s.each(u,function(h,$){k.items.push(o(h,$,k.path))});break;case"object":k.properties=[],s.each(u,function(h,$){k.properties.push(o(h,$,k.path))});break}return k}e.exports=o},function(e,n,t){e.exports=t(26)},function(e,n,t){var r=t(2),s=t(3),l=t(23);function o(d,k){for(var h=l(d),$=u.diff(h,k),v=0;v<$.length;v++);return $}var u={diff:function(k,h,$){var v=[];return this.name(k,h,$,v)&&this.type(k,h,$,v)&&(this.value(k,h,$,v),this.properties(k,h,$,v),this.items(k,h,$,v)),v},name:function(d,k,h,$){var v=$.length;return m.equal("name",d.path,h+"",d.name+"",$),$.length===v},type:function(d,k,h,$){var v=$.length;switch(d.type){case"string":if(d.template.match(r.RE_PLACEHOLDER))return!0;break;case"array":if(d.rule.parameters&&(d.rule.min!==void 0&&d.rule.max===void 0&&d.rule.count===1||d.rule.parameters[2]))return!0;break;case"function":return!0}return m.equal("type",d.path,s.type(k),d.type,$),$.length===v},value:function(d,k,h,$){var v=$.length,f=d.rule,_=d.type;if(_==="object"||_==="array"||_==="function")return!0;if(!f.parameters){switch(_){case"regexp":return m.match("value",d.path,k,d.template,$),$.length===v;case"string":if(d.template.match(r.RE_PLACEHOLDER))return $.length===v;break}return m.equal("value",d.path,k,d.template,$),$.length===v}var g;switch(_){case"number":var w=(k+"").split(".");w[0]=+w[0],f.min!==void 0&&f.max!==void 0&&(m.greaterThanOrEqualTo("value",d.path,w[0],Math.min(f.min,f.max),$),m.lessThanOrEqualTo("value",d.path,w[0],Math.max(f.min,f.max),$)),f.min!==void 0&&f.max===void 0&&m.equal("value",d.path,w[0],f.min,$,"[value] "+h),f.decimal&&(f.dmin!==void 0&&f.dmax!==void 0&&(m.greaterThanOrEqualTo("value",d.path,w[1].length,f.dmin,$),m.lessThanOrEqualTo("value",d.path,w[1].length,f.dmax,$)),f.dmin!==void 0&&f.dmax===void 0&&m.equal("value",d.path,w[1].length,f.dmin,$));break;case"boolean":break;case"string":g=k.match(new RegExp(d.template,"g")),g=g?g.length:0,f.min!==void 0&&f.max!==void 0&&(m.greaterThanOrEqualTo("repeat count",d.path,g,f.min,$),m.lessThanOrEqualTo("repeat count",d.path,g,f.max,$)),f.min!==void 0&&f.max===void 0&&m.equal("repeat count",d.path,g,f.min,$);break;case"regexp":g=k.match(new RegExp(d.template.source.replace(/^\^|\$$/g,""),"g")),g=g?g.length:0,f.min!==void 0&&f.max!==void 0&&(m.greaterThanOrEqualTo("repeat count",d.path,g,f.min,$),m.lessThanOrEqualTo("repeat count",d.path,g,f.max,$)),f.min!==void 0&&f.max===void 0&&m.equal("repeat count",d.path,g,f.min,$);break}return $.length===v},properties:function(d,k,h,$){var v=$.length,f=d.rule,_=s.keys(k);if(!!d.properties){if(d.rule.parameters?(f.min!==void 0&&f.max!==void 0&&(m.greaterThanOrEqualTo("properties length",d.path,_.length,Math.min(f.min,f.max),$),m.lessThanOrEqualTo("properties length",d.path,_.length,Math.max(f.min,f.max),$)),f.min!==void 0&&f.max===void 0&&f.count!==1&&m.equal("properties length",d.path,_.length,f.min,$)):m.equal("properties length",d.path,_.length,d.properties.length,$),$.length!==v)return!1;for(var g=0;g<_.length;g++)$.push.apply($,this.diff(function(){var w;return s.each(d.properties,function(P){P.name===_[g]&&(w=P)}),w||d.properties[g]}(),k[_[g]],_[g]));return $.length===v}},items:function(d,k,h,$){var v=$.length;if(!!d.items){var f=d.rule;if(!d.rule.parameters)m.equal("items length",d.path,k.length,d.items.length,$);else{if(f.min!==void 0&&f.max!==void 0&&(m.greaterThanOrEqualTo("items",d.path,k.length,Math.min(f.min,f.max)*d.items.length,$,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),m.lessThanOrEqualTo("items",d.path,k.length,Math.max(f.
2024-01-29 06:56:37 +00:00
`);return f},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),r.extend(d.prototype,{addEventListener:function(f,_){var g=this.custom.events;g[f]||(g[f]=[]),g[f].push(_)},removeEventListener:function(f,_){for(var g=this.custom.events[f]||[],w=0;w<g.length;w++)g[w]===_&&g.splice(w--,1)},dispatchEvent:function(f){for(var _=this.custom.events[f.type]||[],g=0;g<_.length;g++)_[g].call(this,f);var w="on"+f.type;this[w]&&this[w](f)}});function k(){var v=function(){var g=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,w=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,P=location.href,M=w.exec(P.toLowerCase())||[];return g.test(M[1])}();return window.ActiveXObject?!v&&f()||_():f();function f(){try{return new window._XMLHttpRequest}catch{}}function _(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function h(v){for(var f in d.Mock._mocked){var _=d.Mock._mocked[f];if((!_.rurl||g(_.rurl,v.url))&&(!_.rtype||g(_.rtype,v.type.toLowerCase())))return _}function g(w,P){if(r.type(w)==="string")return w===P;if(r.type(w)==="regexp")return w.test(P)}}function $(v,f){return r.isFunction(v.template)?v.template(f):d.Mock.mock(v.template)}e.exports=d}])})})(mock);const Mock=mock.exports,debug=!1,setupMock=({mock:e,setup:n})=>{e!==!1&&debug&&n()},successResponseWrap=e=>({data:e,status:"ok",msg:"\u8BF7\u6C42\u6210\u529F",code:2e4}),failResponseWrap=(e,n,t=5e4)=>({data:e,status:"fail",msg:n,code:t});setupMock({setup(){Mock.mock(new RegExp("/api/user/info"),()=>{if(isLogin()){const e=window.localStorage.getItem("userRole")||"admin";return successResponseWrap({name:"\u738B\u7ACB\u7FA4",avatar:"//lf1-xgcdn-tos.pstatp.com/obj/vcloud/vadmin/start.8e0e4855ee346a46ccff8ff3e24db27b.png",email:"wangliqun@email.com",job:"frontend",jobName:"\u524D\u7AEF\u827A\u672F\u5BB6",organization:"Frontend",organizationName:"\u524D\u7AEF",location:"beijing",locationName:"\u5317\u4EAC",introduction:"\u4EBA\u6F47\u6D12\uFF0C\u6027\u6E29\u5B58",personalWebsite:"https://www.arco.design",phone:"150****0000",registrationDate:"2013-05-10 12:10:00",accountId:"15012312300",certification:1,role:e})}return failResponseWrap(null,"\u672A\u767B\u5F55",50008)}),Mock.mock(new RegExp("/api/user/login"),e=>{const{username:n,password:t}=JSON.parse(e.body);return n?t?n==="admin"&&t==="admin"?(window.localStorage.setItem("userRole","admin"),successResponseWrap({token:"12345"})):n==="user"&&t==="user"?(window.localStorage.setItem("userRole","user"),successResponseWrap({token:"54321"})):failResponseWrap(null,"\u8D26\u53F7\u6216\u8005\u5BC6\u7801\u9519\u8BEF",5e4):failResponseWrap(null,"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",5e4):failResponseWrap(null,"\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A",5e4)}),Mock.mock(new RegExp("/api/user/logout"),()=>successResponseWrap(null)),Mock.mock(new RegExp("/api/user/menu"),()=>successResponseWrap([{path:"/dashboard",name:"dashboard",meta:{locale:"menu.server.dashboard",requiresAuth:!0,icon:"icon-dashboard",order:1},children:[{path:"workplace",name:"Workplace",meta:{locale:"menu.server.workplace",requiresAuth:!0}},{path:"https://arco.design",name:"arcoWebsite",meta:{locale:"menu.arcoWebsite",requiresAuth:!0}}]}]))}});const haveReadIds=[],getMessageList=()=>[{id:1,type:"message",title:"\u90D1\u66E6\u6708",subTitle:"\u7684\u79C1\u4FE1",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/8361eeb82904210b4f55fab888fe8416.png~tplv-uwbnlip3yd-webp.webp",content:"\u5BA1\u6279\u8BF7\u6C42\u5DF2\u53D1\u9001\uFF0C\u8BF7\u67E5\u6536",time:"\u4ECA\u5929 12:30:01"},{id:2,type:"message",title:"\u5B81\u6CE2",subTitle:"\u7684\u56DE\u590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:"\u6B64\u5904 bug \u5DF2\u7ECF\u4FEE\u590D",time:"\u4ECA\u5929 12:30:01"},{id:3,type:"message",title:"\u5B81\u6CE2",subTitle:"\u7684\u56DE\u590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:"\u6B64\u5904 bug \u5DF2\u7ECF\u4FEE\u590D",time:"\u4ECA\u5929 12:20:01"},{id:4,ty