2024-02-18 12:10:21 +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 , 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 Alert , aX as Drawer , aY as Message , aZ as Button , a _ as ConfigProvider , a$ as lang , b0 as resolveComponent , b1 as Modal , b2 as createApp } from "./arco.beabb834.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.83b8c11b.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.30c84055.js" ; ( function ( ) { const e = document . createElement ( "link" ) . relList ; if ( e && e . supports && e . supports ( "modulepreload" ) ) return ; for ( const o of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) u ( o ) ; new MutationObserver ( o => { for ( const r of o ) if ( r . type === "childList" ) for ( const t of r . addedNodes ) t . tagName === "LINK" && t . rel === "modulepreload" && u ( t ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( o ) { const r = { } ; return o . integrity && ( r . integrity = o . integrity ) , o . referrerpolicy && ( r . referrerPolicy = o . referrerpolicy ) , o . crossorigin === "use-credentials" ? r . credentials = "include" : o . crossorigin === "anonymous" ? r . credentials = "omit" : r . credentials = "same-origin" , r } function u ( o ) { if ( o . ep ) return ; o . ep = ! 0 ; const r = n ( o ) ; fetch ( o . href , r ) } } ) ( ) ; const _sfc _main$3F = defineComponent ( { name : "IconArrowDown" , props : { size : { type : [ Number , String ] } , strokeWidth : { type : Number , default : 4 } , strokeLinecap : { type : String , default : "butt" , validator : l => [ "butt" , "round" , "square" ] . includes ( l ) } , strokeLinejoin : { type : String , default : "miter" , validator : l => [ "arcs" , "bevel" , "miter" , "miter-clip" , "round" ] . includes ( l ) } , rotate : Number , spin : Boolean } , emits : { click : l => ! 0 } , setup ( l , { emit : e } ) { const n = getPrefixCls ( "icon" ) , u = computed ( ( ) => [ n , ` ${ n } -arrow-down ` , { [ ` ${ n } -spin ` ] : l . spin } ] ) , o = computed ( ( ) => { const t = { } ; return l . size && ( t . fontSize = isNumber$1 ( l . size ) ? ` ${ l . size } px ` : l . size ) , l . rotate && ( t . transform = ` rotate( ${ l . rotate } deg) ` ) , t } ) ; return { cls : u , innerStyle : o , onClick : t => { e ( "click" , t ) } } } } ) , _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 ( l , e , n , u , o , r ) { return openBlock ( ) , createElementBlock ( "svg" , { viewBox : "0 0 48 48" , fill : "none" , xmlns : "http://www.w3.org/2000/svg" , stroke : "currentColor" , class : normalizeClass ( l . cls ) , style : normalizeStyle ( l . innerSty
2024-02-18 14:33:52 +00:00
* @ license MIT * / ( f u n c t i o n ( l , e ) { ( f u n c t i o n ( n , u ) { l . e x p o r t s = u ( ) } ) ( c o m m o n j s G l o b a l , f u n c t i o n ( ) { v a r n = { } ; n . v e r s i o n = " 0 . 2 . 0 " ; v a r u = n . s e t t i n g s = { m i n i m u m : . 0 8 , e a s i n g : " e a s e " , p o s i t i o n U s i n g : " " , s p e e d : 2 0 0 , t r i c k l e : ! 0 , t r i c k l e R a t e : . 0 2 , t r i c k l e S p e e d : 8 0 0 , s h o w S p i n n e r : ! 0 , b a r S e l e c t o r : ' [ r o l e = " b a r " ] ' , s p i n n e r S e l e c t o r : ' [ r o l e = " s p i n n e r " ] ' , p a r e n t : " b o d y " , t e m p l a t e : ' < d i v c l a s s = " b a r " r o l e = " b a r " > < d i v c l a s s = " p e g " > < / d i v > < / d i v > < d i v c l a s s = " s p i n n e r " r o l e = " s p i n n e r " > < d i v c l a s s = " s p i n n e r - i c o n " > < / d i v > < / d i v > ' } ; n . c o n f i g u r e = f u n c t i o n ( k ) { v a r b , E ; f o r ( b i n k ) E = k [ b ] , E ! = = v o i d 0 & & k . h a s O w n P r o p e r t y ( b ) & & ( u [ b ] = E ) ; r e t u r n t h i s } , n . s t a t u s = n u l l , n . s e t = f u n c t i o n ( k ) { v a r b = n . i s S t a r t e d ( ) ; k = o ( k , u . m i n i m u m , 1 ) , n . s t a t u s = k = = = 1 ? n u l l : k ; v a r E = n . r e n d e r ( ! b ) , R = E . q u e r y S e l e c t o r ( u . b a r S e l e c t o r ) , J = u . s p e e d , s 2 = u . e a s i n g ; r e t u r n E . o f f s e t W i d t h , f ( f u n c t i o n ( j ) { u . p o s i t i o n U s i n g = = = " " & & ( u . p o s i t i o n U s i n g = n . g e t P o s i t i o n i n g C S S ( ) ) , _ ( R , t ( k , J , s 2 ) ) , k = = = 1 ? ( _ ( E , { t r a n s i t i o n : " n o n e " , o p a c i t y : 1 } ) , E . o f f s e t W i d t h , s e t T i m e o u t ( f u n c t i o n ( ) { _ ( E , { t r a n s i t i o n : " a l l " + J + " m s l i n e a r " , o p a c i t y : 0 } ) , s e t T i m e o u t ( f u n c t i o n ( ) { n . r e m o v e ( ) , j ( ) } , J ) } , J ) ) : s e t T i m e o u t ( j , J ) } ) , t h i s } , n . i s S t a r t e d = f u n c t i o n ( ) { r e t u r n t y p e o f n . s t a t u s = = " n u m b e r " } , n . s t a r t = f u n c t i o n ( ) { n . s t a t u s | | n . s e t ( 0 ) ; v a r k = f u n c t i o n ( ) { s e t T i m e o u t ( f u n c t i o n ( ) { ! n . s t a t u s | | ( n . t r i c k l e ( ) , k ( ) ) } , u . t r i c k l e S p e e d ) } ; r e t u r n u . t r i c k l e & & k ( ) , t h i s } , n . d o n e = f u n c t i o n ( k ) { r e t u r n ! k & & ! n . s t a t u s ? t h i s : n . i n c ( . 3 + . 5 * M a t h . r a n d o m ( ) ) . s e t ( 1 ) } , n . i n c = f u n c t i o n ( k ) { v a r b = n . s t a t u s ; r e t u r n b ? ( t y p e o f k ! = " n u m b e r " & & ( k = ( 1 - b ) * o ( M a t h . r a n d o m ( ) * b , . 1 , . 9 5 ) ) , b = o ( b + k , 0 , . 9 9 4 ) , n . s e t ( b ) ) : n . s t a r t ( ) } , n . t r i c k l e = f u n c t i o n ( ) { r e t u r n n . i n c ( M a t h . r a n d o m ( ) * u . t r i c k l e R a t e ) } , f u n c t i o n ( ) { v a r k = 0 , b = 0 ; n . p r o m i s e = f u n c t i o n ( E ) { r e t u r n ! E | | E . s t a t e ( ) = = = " r e s o l v e d " ? t h i s : ( b = = = 0 & & n . s t a r t ( ) , k + + , b + + , E . a l w a y s ( f u n c t i o n ( ) { b - - , b = = = 0 ? ( k = 0 , n . d o n e ( ) ) : n . s e t ( ( k - b ) / k ) } ) , t h i s ) } } ( ) , n . r e n d e r = f u n c t i o n ( k ) { i f ( n . i s R e n d e r e d ( ) ) r e t u r n d o c u m e n t . g e t E l e m e n t B y I d ( " n p r o g r e s s " ) ; C ( d o c u m e n t . d o c u m e n t E l e m e n t , " n p r o g r e s s - b u s y " ) ; v a r b = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; b . i d = " n p r o g r e s s " , b . i n n e r H T M L = u . t e m p l a t e ; v a r E = b . q u e r y S e l e c t o r ( u . b a r S e l e c t o r ) , R = k ? " - 1 0 0 " : r ( n . s t a t u s | | 0 ) , J = d o c u m e n t . q u e r y S e l e c t o r ( u . p a r e n t ) , s 2 ; r e t u r n _ ( E , { t r a n s i t i o n : " a l l 0 l i n e a r " , t r a n s f o r m : " t r a n s l a t e 3 d ( " + R + " % , 0 , 0 ) " } ) , u . s h o w S p i n n e r | | ( s 2 = b . q u e r y S e l e c t o r ( u . s p i n n e r S e l e c t o r ) , s 2 & & F ( s 2 ) ) , J ! = d o c u m e n t . b o d y & & C ( J , " n p r o g r e s s - c u s t o m - p a r e n t " ) , J . a p p e n d C h i l d ( b ) , b } , n . r e m o v e = f u n c t i o n ( ) { y ( d o c u m e n t . d o c u m e n t E l e m e n t , " n p r o g r e s s - b u s y " ) , y ( d o c u m e n t . q u e r y S e l e c t o r ( u . p a r e n t ) , " n p r o g r e s s - c u s t o m - p a r e n t " ) ; v a r k = d o c u m e n t . g e t E l e m e n t B y I d ( " n p r o g r e s s " ) ; k & & F ( k ) } , n . i s R e n d e r e d = f u n c t i o n ( ) { r e t u r n ! ! d o c u m e n t . g e t E l e m e n t B y I d ( " n p r o g r e s s " ) } , n . g e t P o s i t i o n i n g C S S = f u n c t i o n ( ) { v a r k = d o c u m e n t . b o d y . s t y l e , b = " W e b k i t T r a n s f o r m " i n k ? " W e b k i t " : " M o z T r a n s f o r m " i n k ? " M o z " : " m s T r a n s f o r m " i n k ? " m s " : " O T r a n s f o r m " i n k ? " O " : " " ; r e t u r n b + " P e r s p e c t i v e " i n k ? " t r a n s l a t e 3 d " : b + " T r a n s f o r m " i n k ? " t r a n s l a t e " : " m a r g i n " } ; f u n c t i o n o ( k , b , E ) { r e t u r n k < b ? b : k > E ? E : k } f u n c t i o n r ( k ) { r e t u r n ( - 1 + k ) * 1 0 0 } f u n c t i o n t ( k , b , E ) { v a r R ; r e t u r n u . p o s i t i o n U s i n g = = = " t r a n s l a t e 3 d " ? R = { t r a n s f o r m : " t r a n s l a t e 3 d ( " + r ( k ) + " % , 0 , 0 ) " } : u . p o s i t i o n U s i n g = = = " t r a n s l a t e " ? R = { t r a n s f o r m : " t r a n s l a t e ( " + r ( k ) + " % , 0 ) " } : R = { " m a r g i n - l e f t " : r ( k ) + " % " } , R . t r a n s i t i o n = " a l l " + b + " m s " + E , R } v a r f = f u n c t i o n ( ) { v a r k = [ ] ; f u n c t i o n b ( ) { v a r E = k . s h i f t ( ) ; E & & E ( b ) } r e t u r n f u n c t i o n ( E ) { k . p u s h ( E ) , k . l e n g t h = = 1 & & b ( ) } } ( ) , _ = f u n c t i o n ( ) { v a r k = [ " W e b k i t " , " O " , " M o z " , " m s " ] , b = { } ; f u n c t i o n E ( j ) { r e t u r n j . r e p l a c e ( / ^ - m s - / , " m s - " ) . r e p l a c e ( / - ( [ \ d a - z ] ) / g i , f u n c t i o n ( t 2 , h 2 ) { r e t u r n h 2 . t o U p p e r C a s e ( ) } ) } f u n c t i o n R ( j ) { v a r t 2 = d o c u m e n t . b o d y . s t y l e ; i f ( j i n t 2 ) r e t u r n j ; f o r ( v a r h 2 = k . l e n g t h , P = j . c h a r A t ( 0 ) . t o U p p e r C a s e ( ) + j . s l i c e ( 1 ) , T ; h 2 - - ; ) i f ( T = k [ h 2 ] + P , T i n t 2 ) r e t u r n T ; r e t u r n j } f u n c t i o n J ( j ) { r e t u r n j = E ( j ) , b [ j ] | | ( b [ j ] = R ( j ) ) } f u n c t i o n s 2 ( j , t 2 , h 2 ) { t 2 = J ( t 2 ) , j . s t y l e [ t 2 ] = h 2 } r e t u r n f u n c t i o n ( j , t 2 ) { v a r h 2 = a r g u m e n t s , P , T ; i f ( h 2 . l e n g t h = = 2 ) f o r ( P i n t 2 ) T = t 2 [ P ] , T ! = = v o i d 0 & & t 2 . h a s O w n P r o p e r t y ( P ) & & s 2 ( j , P , T ) ; e l s e s 2 ( j , h 2 [ 1 ] , h 2 [ 2 ] ) } } ( ) ; f u n c t i o n p ( k , b ) { v a r E = t y p e o f k = = " s t r i n g " ? k : w ( k ) ; r e t u r n E . i n d e x O f ( " " + b + " " ) > = 0 } f u n c t i o n C ( k , b ) { v a r E = w ( k ) , R = E + b ; p ( E , b ) | | ( k . c l a s s N a m e = R . s u b s t r i n g ( 1 ) ) } f u n c t i o n y ( k , b ) { v a r E = w ( k ) , R ; ! p ( k , b ) | | ( R = E . r e p l a c e ( " " + b + " " , " " ) , k . c l a s s N a m e = R . s u b s t r i n g ( 1 , R . l e n g t h - 1 ) ) } f u n c t i o n w ( k ) { r e t u r n ( " " + ( k . c l a s s N a m e | | " " ) + " " ) . r e p l a c e ( / \ s + / g i , " " ) } f u n c t i o n F ( k ) { k & & k . p a r e n t N o d e & & k . p a r e n t N o d e . r e m o v e C h i l d ( k ) } r e t
` ),function(p){if(f=p.indexOf(":"),r=l.trim(p.substr(0,f)).toLowerCase(),t=l.trim(p.substr(f+1)),r){if(o[r]&&e.indexOf(r)>=0)return;r==="set-cookie"?o[r]=(o[r]?o[r]:[]).concat([t]):o[r]=o[r]?o[r]+", "+t:t}}),o},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var l=utils $ 8;return isURLSameOrigin=l.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),u=document.createElement("a"),o;function r(t){var f=t;return n&&(u.setAttribute("href",f),f=u.href),u.setAttribute("href",f),{href:u.href,protocol:u.protocol?u.protocol.replace(/: $ /,""):"",host:u.host,search:u.search?u.search.replace(/^ \? /,""):"",hash:u.hash?u.hash.replace(/^#/,""):"",hostname:u.hostname,port:u.port,pathname:u.pathname.charAt(0)==="/"?u.pathname:"/"+u.pathname}}return o=r(window.location.href),function(f){var _=l.isString(f)?r(f):f;return _.protocol===o.protocol&&_.host===o.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function l(e){this.message=e}return l.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},l.prototype.__CANCEL__=!0,Cancel_1=l,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var l=utils $ 8,e=requireSettle(),n=requireCookies(),u=buildURL $ 1,o=requireBuildFullPath(),r=requireParseHeaders(),t=requireIsURLSameOrigin(),f=requireCreateError(),_=requireDefaults(),p=requireCancel();return xhr=function(y){return new Promise(function(F,k){var b=y.data,E=y.headers,R=y.responseType,J;function s2(){y.cancelToken&&y.cancelToken.unsubscribe(J),y.signal&&y.signal.removeEventListener("abort",J)}l.isFormData(b)&&delete E["Content-Type"];var j=new XMLHttpRequest;if(y.auth){var t2=y.auth.username||"",h2=y.auth.password?unescape(encodeURIComponent(y.auth.password)):"";E.Authorization="Basic "+btoa(t2+":"+h2)}var P=o(y.baseURL,y.url);j.open(y.method.toUpperCase(),u(P,y.params,y.paramsSerializer),!0),j.timeout=y.timeout;function T(){if(!!j){var $ 2="getAllResponseHeaders"in j?r(j.getAllResponseHeaders()):null,V=!R||R==="text"||R==="json"?j.responseText:j.response,E2={data:V,status:j.status,statusText:j.statusText,headers: $ 2,config:y,request:j};e(function(y2){F(y2),s2()},function(y2){k(y2),s2()},E2),j=null}}if("onloadend"in j?j.onloadend=T:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(T)},j.onabort=function(){!j||(k(f("Request aborted",y,"ECONNABORTED",j)),j=null)},j.onerror=function(){k(f("Network Error",y,null,j)),j=null},j.ontimeout=function(){var V=y.timeout?"timeout of "+y.timeout+"ms exceeded":"timeout exceeded",E2=y.transitional||_.transitional;y.timeoutErrorMessage&&(V=y.timeoutErrorMessage),k(f(V,y,E2.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",j)),j=null},l.isStandardBrowserEnv()){var p2=(y.withCredentials||t(P))&&y.xsrfCookieName?n.read(y.xsrfCookieName):void 0;p2&&(E[y.xsrfHeaderName]=p2)}"setRequestHeader"in j&&l.forEach(E,function(V,E2){typeof b>"u"&&E2.toLowerCase()==="content-type"?delete E[E2]:j.setRequestHeader(E2,V)}),l.isUndefined(y.withCredentials)||(j.withCredentials=!!y.withCredentials),R&&R!=="json"&&(j.responseType=y.responseType),typeof y.onDownloadProgress=="function"&&j.addEventListener("progress",y.onDownloadProgress),typeof y.onUploadProgress=="function"&&j.upload&&j.upload.addEventListener("progress",y.onUploadProgress),(y.cancelToken||y.signal)&&(J=function( $ 2){!j||(k(! $ 2|| $ 2&& $ 2.type?new p("canceled"): $ 2),j.abort(),j=null)},y.cancelToken&&y.cancelToken.subscribe(J),y.signal&&(y.signal.aborted?J():y.signal.addEventListener("abort",J))),b||(b=null),j.send(b)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var l=utils $ 8,e=normalizeHeaderName,n=enhanceError,u={"Content-Type":"application/x-www-form-urle
2024-02-08 10:38:15 +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 / 2 p97mcze "};function getWarnMessage(l,...e){return shared.format(warnMessages[l],...e)}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(l,...e){return coreBase.createCompileError(l,null,{messages:errorMessages,args:e})}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(l){if(!shared.isObject(l))return l;for(const e in l)if(!!shared.hasOwn(l,e))if(!e.includes(" . "))shared.isObject(l[e])&&handleFlatJson(l[e]);else{const n=e.split(" . " ) , u = n . length - 1 ; let o = l , r = ! 1 ; for ( let t = 0 ; t < u ; t ++ ) { if ( n [ t ] in o
Mock - 模拟请求 & 模拟数据
https : //github.com/nuysoft/Mock
墨智 mozhi . gyy @ taobao . com nuysoft @ gmail . com
* / v a r C = { H a n d l e r : u , R a n d o m : r , U t i l : o , X H R : p , R E : t , t o J S O N S c h e m a : f , v a l i d : _ , h e r e d o c : o . h e r e d o c , s e t u p : f u n c t i o n ( y ) { r e t u r n p . s e t u p ( y ) } , _ m o c k e d : { } } ; C . v e r s i o n = " 1 . 0 . 1 - b e t a 3 " , p & & ( p . M o c k = C ) , C . m o c k = f u n c t i o n ( y , w , F ) { r e t u r n a r g u m e n t s . l e n g t h = = = 1 ? u . g e n ( y ) : ( a r g u m e n t s . l e n g t h = = = 2 & & ( F = w , w = v o i d 0 ) , p & & ( w i n d o w . X M L H t t p R e q u e s t = p ) , C . _ m o c k e d [ y + ( w | | " " ) ] = { r u r l : y , r t y p e : w , t e m p l a t e : F } , C ) } , l . e x p o r t s = C } , f u n c t i o n ( m o d u l e , e x p o r t s , _ _ w e b p a c k _ r e q u i r e _ _ ) { v a r C o n s t a n t = _ _ w e b p a c k _ r e q u i r e _ _ ( 2 ) , U t i l = _ _ w e b p a c k _ r e q u i r e _ _ ( 3 ) , P a r s e r = _ _ w e b p a c k _ r e q u i r e _ _ ( 4 ) , R a n d o m = _ _ w e b p a c k _ r e q u i r e _ _ ( 5 ) , R E = _ _ w e b p a c k _ r e q u i r e _ _ ( 2 0 ) , H a n d l e r = { e x t e n d : U t i l . e x t e n d } ; H a n d l e r . g e n = f u n c t i o n ( l , e , n ) { e = e = = n u l l ? " " : e + " " , n = n | | { } , n = { p a t h : n . p a t h | | [ C o n s t a n t . G U I D ] , t e m p l a t e P a t h : n . t e m p l a t e P a t h | | [ C o n s t a n t . G U I D + + ] , c u r r e n t C o n t e x t : n . c u r r e n t C o n t e x t , t e m p l a t e C u r r e n t C o n t e x t : n . t e m p l a t e C u r r e n t C o n t e x t | | l , r o o t : n . r o o t | | n . c u r r e n t C o n t e x t , t e m p l a t e R o o t : n . t e m p l a t e R o o t | | n . t e m p l a t e C u r r e n t C o n t e x t | | l } ; v a r u = P a r s e r . p a r s e ( e ) , o = U t i l . t y p e ( l ) , r ; r e t u r n H a n d l e r [ o ] ? ( r = H a n d l e r [ o ] ( { t y p e : o , t e m p l a t e : l , n a m e : e , p a r s e d N a m e : e & & e . r e p l a c e ( C o n s t a n t . R E _ K E Y , " $ 1 " ) , r u l e : u , c o n t e x t : n } ) , n . r o o t | | ( n . r o o t = r ) , r ) : l } , H a n d l e r . e x t e n d ( { a r r a y : f u n c t i o n ( l ) { v a r e = [ ] , n , u ; i f ( l . t e m p l a t e . l e n g t h = = = 0 ) r e t u r n e ; i f ( l . r u l e . p a r a m e t e r s ) i f ( l . r u l e . m i n = = = 1 & & l . r u l e . m a x = = = v o i d 0 ) l . c o n t e x t . p a t h . p u s h ( l . n a m e ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( l . n a m e ) , e = R a n d o m . p i c k ( H a n d l e r . g e n ( l . t e m p l a t e , v o i d 0 , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e i f ( l . r u l e . p a r a m e t e r s [ 2 ] ) l . t e m p l a t e . _ _ o r d e r _ i n d e x = l . t e m p l a t e . _ _ o r d e r _ i n d e x | | 0 , l . c o n t e x t . p a t h . p u s h ( l . n a m e ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( l . n a m e ) , e = H a n d l e r . g e n ( l . t e m p l a t e , v o i d 0 , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) [ l . t e m p l a t e . _ _ o r d e r _ i n d e x % l . t e m p l a t e . l e n g t h ] , l . t e m p l a t e . _ _ o r d e r _ i n d e x + = + l . r u l e . p a r a m e t e r s [ 2 ] , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e f o r ( n = 0 ; n < l . r u l e . c o u n t ; n + + ) f o r ( u = 0 ; u < l . t e m p l a t e . l e n g t h ; u + + ) l . c o n t e x t . p a t h . p u s h ( e . l e n g t h ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( u ) , e . p u s h ( H a n d l e r . g e n ( l . t e m p l a t e [ u ] , e . l e n g t h , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e f o r ( n = 0 ; n < l . t e m p l a t e . l e n g t h ; n + + ) l . c o n t e x t . p a t h . p u s h ( n ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( n ) , e . p u s h ( H a n d l e r . g e n ( l . t e m p l a t e [ n ] , n , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; r e t u r n e } , o b j e c t : f u n c t i o n ( l ) { v a r e = { } , n , u , o , r , t , f ; i f ( l . r u l e . m i n ! = n u l l ) f o r ( n = U t i l . k e y s ( l . t e m p l a t e ) , n = R a n d o m . s h u f f l e ( n ) , n = n . s l i c e ( 0 , l . r u l e . c o u n t ) , f = 0 ; f < n . l e n g t h ; f + + ) o = n [ f ] , r = o . r e p l a c e ( C o n s t a n t . R E _ K E Y , " $ 1 " ) , l . c o n t e x t . p a t h . p u s h ( r ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( o ) , e [ r ] = H a n d l e r . g e n ( l . t e m p l a t e [ o ] , o , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) ; e l s e { n = [ ] , u = [ ] ; f o r ( o i n l . t e m p l a t e ) ( t y p e o f l . t e m p l a t e [ o ] = = " f u n c t i o n " ? u : n ) . p u s h ( o ) ; f o r ( n = n . c o n c a t ( u ) , f = 0 ; f < n . l e n g t h ; f + + ) o = n [ f ] , r = o . r e p l a c e ( C o n s t a n t . R E _ K E Y , " $ 1 " ) , l . c o n t e x t . p a t h . p u s h ( r ) , l . c o n t e x t . t e m p l a t e P a t h . p u s h ( o ) , e [ r ] = H a n d l e r . g e n ( l . t e m p l a t e [ o ] , o , { p a t h : l . c o n t e x t . p a t h , t e m p l a t e P a t h : l . c o n t e x t . t e m p l a t e P a t h , c u r r e n t C o n t e x t : e , t e m p l a t e C u r r e n t C o n t e x t : l . t e m p l a t e , r o o t : l . c o n t e x t . r o o t | | e , t e m p l a t e R o o t : l . c o n t e x t . t e m p l a t e R o o t | | l . t e m p l a t e } ) , l . c o n t e x t . p a t h . p o p ( ) , l . c o n t e x t . t e m p l a t e P a t h . p o p ( ) , t = o . m a t c h ( C o n s t a n t . R E _ K E Y ) , t & & t [ 2 ] & & U t i l . t y p e ( l . t e m p l a t e [ o ] ) = = = " n u m b e r " & & ( l . t e m p l a t e [ o ] + = p a r s e I n t ( t [ 2 ] , 1 0 ) ) } r e t u r n e } , n u m b e r : f u n c t i o n ( l ) { v a r e , n ; i f ( l . r u l e . d e c i m a l ) { f o r ( l . t e m p l a t e + = " " , n = l . t e m p l a t e . s p l i t ( " . " ) , n [ 0 ] = l . r u l e . r a n g e ? l . r u l e . c o u n t : n [ 0 ] , n [ 1 ] = ( n [ 1 ] | | " " ) . s l i c e ( 0 , l . r u l e
` ?(N.seenCR||N.line++,N.column=1,N.seenCR=!1):pl===" \r "||pl===" \u 2028"||pl===" \u 2029"?(N.line++,N.column=1,N.seenCR=!0):(N.column++,N.seenCR=!1)}return ml!==a&&(ml>a&&(ml=0,rn={line:1,column:1,seenCR:!1}),m(rn,ml,a),ml=a),rn}function V(a){Jl>g||(g>Jl&&(Jl=g,Xl=[]),Xl.push(a))}function E2(a){var m=0;for(a.sort();m<a.length;)a[m-1]===a[m]?a.splice(m,1):m++}function I2(){var a,m,N,H,d2;return a=g,m=y2(),m!==null?(N=g,P.charCodeAt(g)===124?(H=Q3,g++):(H=null,U===0&&V(R2)),H!==null?(d2=I2(),d2!==null?(H=[H,d2],N=H):(g=N,N=X)):(g=N,N=X),N===null&&(N=o3),N!==null?(n2=a,m=R3(m,N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X),a}function y2(){var a,m,N,H,d2;if(a=g,m=S2(),m===null&&(m=o3),m!==null)if(N=g,U++,H=A2(),U--,H===null?N=o3:(g=N,N=X),N!==null){for(H=[],d2=T2(),d2===null&&(d2=P2());d2!==null;)H.push(d2),d2=T2(),d2===null&&(d2=P2());H!==null?(d2=Q2(),d2===null&&(d2=o3),d2!==null?(n2=a,m=M3(m,H,d2),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X)}else g=a,a=X;else g=a,a=X;return a}function P2(){var a;return a=e3(),a===null&&(a=W(),a===null&&(a=A3())),a}function S2(){var a,m;return a=g,P.charCodeAt(g)===94?(m=K3,g++):(m=null,U===0&&V(l3)),m!==null&&(n2=a,m=kl()),m===null&&(g=a),a=m,a}function Q2(){var a,m;return a=g,P.charCodeAt(g)===36?(m=gl,g++):(m=null,U===0&&V(Z2)),m!==null&&(n2=a,m=Ql()),m===null&&(g=a),a=m,a}function T2(){var a,m,N;return a=g,m=P2(),m!==null?(N=A2(),N!==null?(n2=a,m=I3(m,N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X),a}function A2(){var a,m,N;return U++,a=g,m=B2(),m!==null?(N=Y2(),N===null&&(N=o3),N!==null?(n2=a,m=G2(m,N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X),U--,a===null&&(m=null,U===0&&V(Kl)),a}function B2(){var a;return a=F2(),a===null&&(a=K2(),a===null&&(a=k3(),a===null&&(a=g3(),a===null&&(a=d3(),a===null&&(a=f3()))))),a}function F2(){var a,m,N,H,d2,_3;return a=g,P.charCodeAt(g)===123?(m=r3,g++):(m=null,U===0&&V(J2)),m!==null?(N=V2(),N!==null?(P.charCodeAt(g)===44?(H=B3,g++):(H=null,U===0&&V( $ l)),H!==null?(d2=V2(),d2!==null?(P.charCodeAt(g)===125?(_3=E3,g++):(_3=null,U===0&&V(c3)),_3!==null?(n2=a,m=vl(N,d2),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X)):(g=a,a=X)):(g=a,a=X)):(g=a,a=X),a}function K2(){var a,m,N,H;return a=g,P.charCodeAt(g)===123?(m=r3,g++):(m=null,U===0&&V(J2)),m!==null?(N=V2(),N!==null?(P.substr(g,2)===Y3?(H=Y3,g+=2):(H=null,U===0&&V(ll)),H!==null?(n2=a,m=c2(N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X)):(g=a,a=X),a}function k3(){var a,m,N,H;return a=g,P.charCodeAt(g)===123?(m=r3,g++):(m=null,U===0&&V(J2)),m!==null?(N=V2(),N!==null?(P.charCodeAt(g)===125?(H=E3,g++):(H=null,U===0&&V(c3)),H!==null?(n2=a,m=Cl(N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X)):(g=a,a=X),a}function g3(){var a,m;return a=g,P.charCodeAt(g)===43?(m=Yl,g++):(m=null,U===0&&V(n3)),m!==null&&(n2=a,m=ln()),m===null&&(g=a),a=m,a}function d3(){var a,m;return a=g,P.charCodeAt(g)===42?(m=bl,g++):(m=null,U===0&&V(nn)),m!==null&&(n2=a,m=yl()),m===null&&(g=a),a=m,a}function f3(){var a,m;return a=g,P.charCodeAt(g)===63?(m=Sl,g++):(m=null,U===0&&V(nl)),m!==null&&(n2=a,m=wl()),m===null&&(g=a),a=m,a}function Y2(){var a;return P.charCodeAt(g)===63?(a=Sl,g++):(a=null,U===0&&V(nl)),a}function V2(){var a,m,N;if(a=g,m=[],el.test(P.charAt(g))?(N=P.charAt(g),g++):(N=null,U===0&&V(tl)),N!==null)for(;N!==null;)m.push(N),el.test(P.charAt(g))?(N=P.charAt(g),g++):(N=null,U===0&&V(tl));else m=X;return m!==null&&(n2=a,m=i3(m)),m===null&&(g=a),a=m,a}function e3(){var a,m,N,H;return a=g,P.charCodeAt(g)===40?(m=D3,g++):(m=null,U===0&&V(s3)),m!==null?(N=_2(),N===null&&(N=x2(),N===null&&(N=u2(),N===null&&(N=v2()))),N!==null?(P.charCodeAt(g)===41?(H=ul,g++):(H=null,U===0&&V(ol)),H!==null?(n2=a,m=rl(N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X)):(g=a,a=X),a}function v2(){var a,m;return a=g,m=I2(),m!==null&&(n2=a,m=il(m)),m===null&&(g=a),a=m,a}function u2(){var a,m,N;return a=g,P.substr(g,2)===T3?(m=T3,g+=2):(m=null,U===0&&V(Il)),m!==null?(N=I2(),N!==null?(n2=a,m=Bl(N),m===null&&(g=a),a=m):(g=a,a=X)):(g=a,a=X),a}function _2(){var a,m,N;return a=g,P.substr(g,2)===El?(m=El,g+=2):(m=null,U===0&&V(Fl)),m!==null?(N=I2(),N!==null?(n2=a,m=xl(N),m===null&&(g=a),a=m):(g=a,
\ r \ v \ xA0\u2028\u2029 ` ,w={" \\ w":t+f+_+"_"," \\ W":p.replace("_","")," \\ s":y," \\ S":function(){for(var k=C,b=0;b<y.length;b++)k=k.replace(y[b],"");return k}()," \\ d":_," \\ D":t+f+p};function F(k,b){for(var E="",R=k;R<=b;R++)E+=String.fromCharCode(R);return E}r.gen=function(k,b,E){return E=E||{guid:1},r[k.type]?r[k.type](k,b,E):r.token(k,b,E)},r.extend({token:function(k,b,E){switch(k.type){case"start":case"end":return"";case"any-character":return o.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return o.pick(_.split(""));case"non-digit":return o.pick((t+f+p).split(""));case"form-feed":break;case"line-feed":return k.body||k.text;case"carriage-return":break;case"white-space":return o.pick(y.split(""));case"non-white-space":return o.pick((t+f+_).split(""));case"tab":break;case"vertical-tab":break;case"word":return o.pick((t+f+_).split(""));case"non-word":return o.pick(p.replace("_","").split(""))}return k.body||k.text},alternate:function(k,b,E){return this.gen(o.boolean()?k.left:k.right,b,E)},match:function(k,b,E){b="";for(var R=0;R<k.body.length;R++)b+=this.gen(k.body[R],b,E);return b},"capture-group":function(k,b,E){return b=this.gen(k.body,b,E),E[E.guid++]=b,b},"non-capture-group":function(k,b,E){return this.gen(k.body,b,E)},"positive-lookahead":function(k,b,E){return this.gen(k.body,b,E)},"negative-lookahead":function(k,b,E){return""},quantified:function(k,b,E){b="";for(var R=this.quantifier(k.quantifier),J=0;J<R;J++)b+=this.gen(k.body,b,E);return b},quantifier:function(k,b,E){var R=Math.max(k.min,0),J=isFinite(k.max)?k.max:R+o.integer(3,7);return o.integer(R,J)},charset:function(k,b,E){if(k.invert)return this["invert-charset"](k,b,E);var R=o.pick(k.body);return this.gen(R,b,E)},"invert-charset":function(k,b,E){for(var R=C,J=0,s2;J<k.body.length;J++)switch(s2=k.body[J],s2.type){case"literal":R=R.replace(s2.body,"");break;case"range":for(var j=this.gen(s2.start,b,E).charCodeAt(),t2=this.gen(s2.end,b,E).charCodeAt(),h2=j;h2<=t2;h2++)R=R.replace(String.fromCharCode(h2),"");default:var P=w[s2.text];if(P)for(var T=0;T<=P.length;T++)R=R.replace(P[T],"")}return o.pick(R.split(""))},range:function(k,b,E){var R=this.gen(k.start,b,E).charCodeAt(),J=this.gen(k.end,b,E).charCodeAt();return String.fromCharCode(o.integer(R,J))},literal:function(k,b,E){return k.escaped?k.body:k.text},unicode:function(k,b,E){return String.fromCharCode(parseInt(k.code,16))},hex:function(k,b,E){return String.fromCharCode(parseInt(k.code,16))},octal:function(k,b,E){return String.fromCharCode(parseInt(k.code,8))},"back-reference":function(k,b,E){return E[k.code]||""},CONTROL_CHARACTER_MAP:function(){for(var k="@ 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(" "),b= ` \ 0 \ x07 \ b
\ v \ f \ r \ x1B ` .split(" "),E={},R=0;R<k.length;R++)E[k[R]]=b[R];return E}(),"control-character":function(k,b,E){return this.CONTROL_CHARACTER_MAP[k.code]}}),l.exports=r},function(l,e,n){l.exports=n(24)},function(l,e,n){var u=n(2),o=n(3),r=n(4);function t(f,_,p){p=p||[];var C={name:typeof _=="string"?_.replace(u.RE_KEY," $ 1"):_,template:f,type:o.type(f),rule:r.parse(_)};switch(C.path=p.slice(0),C.path.push(_===void 0?"ROOT":C.name),C.type){case"array":C.items=[],o.each(f,function(y,w){C.items.push(t(y,w,C.path))});break;case"object":C.properties=[],o.each(f,function(y,w){C.properties.push(t(y,w,C.path))});break}return C}l.exports=t},function(l,e,n){l.exports=n(26)},function(l,e,n){var u=n(2),o=n(3),r=n(23);function t(p,C){for(var y=r(p),w=f.diff(y,C),F=0;F<w.length;F++);return w}var f={diff:function(C,y,w){var F=[];return this.name(C,y,w,F)&&this.type(C,y,w,F)&&(this.value(C,y,w,F),this.properties(C,y,w,F),this.items(C,y,w,F)),F},name:function(p,C,y,w){var F=w.length;return _.equal("name",p.path,y+"",p.name+"",w),w.length===F},type:function(p,C,y,w){var F=w.length;switch(p.type){case"string":if(p.template.match(u.RE_PLACEHOLDER))return!0;break;case"array":if(p.rule.parameters&&(p.rule.min!==void 0&&p.rule.max===void 0&&p.rule.count===1||p.rule.parameters[2]))return!0;break;case"function":return!0}return _.equal("type",p.path,o.type(C),p.type,w),w.length===F},value:function(p,C,y,w){var F=w.length,k=p.rule,b=p.type;if(b==="object"||b==="array"||b==="function")return!0;if(!k.parameters){switch(b){case"regexp":return _.match("value",p.path,C,p.template,w),w.length===F;case"string":if(p.template.match(u.RE_PLACEHOLDER))return w.length===F;break}return _.equal("value",p.path,C,p.template,w),w.length===F}var E;switch(b){case"number":var R=(C+"").split(".");R[0]=+R[0],k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("value",p.path,R[0],Math.min(k.min,k.max),w),_.lessThanOrEqualTo("value",p.path,R[0],Math.max(k.min,k.max),w)),k.min!==void 0&&k.max===void 0&&_.equal("value",p.path,R[0],k.min,w,"[value] "+y),k.decimal&&(k.dmin!==void 0&&k.dmax!==void 0&&(_.greaterThanOrEqualTo("value",p.path,R[1].length,k.dmin,w),_.lessThanOrEqualTo("value",p.path,R[1].length,k.dmax,w)),k.dmin!==void 0&&k.dmax===void 0&&_.equal("value",p.path,R[1].length,k.dmin,w));break;case"boolean":break;case"string":E=C.match(new RegExp(p.template,"g")),E=E?E.length:0,k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("repeat count",p.path,E,k.min,w),_.lessThanOrEqualTo("repeat count",p.path,E,k.max,w)),k.min!==void 0&&k.max===void 0&&_.equal("repeat count",p.path,E,k.min,w);break;case"regexp":E=C.match(new RegExp(p.template.source.replace(/^ \^ | \$ $ /g,""),"g")),E=E?E.length:0,k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("repeat count",p.path,E,k.min,w),_.lessThanOrEqualTo("repeat count",p.path,E,k.max,w)),k.min!==void 0&&k.max===void 0&&_.equal("repeat count",p.path,E,k.min,w);break}return w.length===F},properties:function(p,C,y,w){var F=w.length,k=p.rule,b=o.keys(C);if(!!p.properties){if(p.rule.parameters?(k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("properties length",p.path,b.length,Math.min(k.min,k.max),w),_.lessThanOrEqualTo("properties length",p.path,b.length,Math.max(k.min,k.max),w)),k.min!==void 0&&k.max===void 0&&k.count!==1&&_.equal("properties length",p.path,b.length,k.min,w)):_.equal("properties length",p.path,b.length,p.properties.length,w),w.length!==F)return!1;for(var E=0;E<b.length;E++)w.push.apply(w,this.diff(function(){var R;return o.each(p.properties,function(J){J.name===b[E]&&(R=J)}),R||p.properties[E]}(),C[b[E]],b[E]));return w.length===F}},items:function(p,C,y,w){var F=w.length;if(!!p.items){var k=p.rule;if(!p.rule.parameters)_.equal("items length",p.path,C.length,p.items.length,w);else{if(k.min!==void 0&&k.max!==void 0&&(_.greaterThanOrEqualTo("items",p.path,C.length,Math.min(k.min,k.max)*p.items.length,w,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),_.lessThanOrEqualTo("items",p.path,C.length,Math.max(k.
2024-02-18 12:10:21 +00:00
` );return k},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),u.extend(p.prototype,{addEventListener:function(k,b){var E=this.custom.events;E[k]||(E[k]=[]),E[k].push(b)},removeEventListener:function(k,b){for(var E=this.custom.events[k]||[],R=0;R<E.length;R++)E[R]===b&&E.splice(R--,1)},dispatchEvent:function(k){for(var b=this.custom.events[k.type]||[],E=0;E<b.length;E++)b[E].call(this,k);var R="on"+k.type;this[R]&&this[R](k)}});function C(){var F=function(){var E=/^(?:about|app|app-storage|.+-extension|file|res|widget): $ /,R=/^([ \w .+-]+:)(?: \/ \/ ([^ \/ ?#:]*)(?::( \d +)|)|)/,J=location.href,s2=R.exec(J.toLowerCase())||[];return E.test(s2[1])}();return window.ActiveXObject?!F&&k()||b():k();function k(){try{return new window._XMLHttpRequest}catch{}}function b(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function y(F){for(var k in p.Mock._mocked){var b=p.Mock._mocked[k];if((!b.rurl||E(b.rurl,F.url))&&(!b.rtype||E(b.rtype,F.type.toLowerCase())))return b}function E(R,J){if(u.type(R)==="string")return R===J;if(u.type(R)==="regexp")return R.test(J)}}function w(F,k){return u.isFunction(F.template)?F.template(k):p.Mock.mock(F.template)}l.exports=p}])})})(mock);const Mock=mock.exports,debug=!1,setupMock=({mock:l,setup:e})=>{l!==!1&&debug&&e()},successResponseWrap=l=>({data:l,status:"ok",msg:" \u 8BF7 \u 6C42 \u 6210 \u 529F",code:2e4}),failResponseWrap=(l,e,n=5e4)=>({data:l,status:"fail",msg:e,code:n});setupMock({setup(){Mock.mock(new RegExp("/api/user/info"),()=>{if(isLogin()){const l=window.localStorage.getItem("userRole")||"admin";return successResponseWrap({name:" \u 738B \u 7ACB \u 7FA4",avatar:"//lf1-xgcdn-tos.pstatp.com/obj/vcloud/vadmin/start.8e0e4855ee346a46ccff8ff3e24db27b.png",email:"wangliqun@email.com",job:"frontend",jobName:" \u 524D \u 7AEF \u 827A \u 672F \u 5BB6",organization:"Frontend",organizationName:" \u 524D \u 7AEF",location:"beijing",locationName:" \u 5317 \u 4EAC",introduction:" \u 4EBA \u 6F47 \u 6D12 \u FF0C \u 6027 \u 6E29 \u 5B58",personalWebsite:"https://www.arco.design",phone:"150****0000",registrationDate:"2013-05-10 12:10:00",accountId:"15012312300",certification:1,role:l})}return failResponseWrap(null," \u 672A \u 767B \u 5F55",50008)}),Mock.mock(new RegExp("/api/user/login"),l=>{const{username:e,password:n}=JSON.parse(l.body);return e?n?e==="admin"&&n==="admin"?(window.localStorage.setItem("userRole","admin"),successResponseWrap({token:"12345"})):e==="user"&&n==="user"?(window.localStorage.setItem("userRole","user"),successResponseWrap({token:"54321"})):failResponseWrap(null," \u 8D26 \u 53F7 \u 6216 \u 8005 \u 5BC6 \u 7801 \u 9519 \u 8BEF",5e4):failResponseWrap(null," \u 5BC6 \u 7801 \u 4E0D \u 80FD \u 4E3A \u 7A7A",5e4):failResponseWrap(null," \u 7528 \u 6237 \u 540D \u 4E0D \u 80FD \u 4E3A \u 7A7A",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:" \u 90D1 \u 66E6 \u 6708",subTitle:" \u 7684 \u 79C1 \u 4FE1",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/8361eeb82904210b4f55fab888fe8416.png~tplv-uwbnlip3yd-webp.webp",content:" \u 5BA1 \u 6279 \u 8BF7 \u 6C42 \u 5DF2 \u 53D1 \u 9001 \u FF0C \u 8BF7 \u 67E5 \u 6536",time:" \u 4ECA \u 5929 12:30:01"},{id:2,type:"message",title:" \u 5B81 \u 6CE2",subTitle:" \u 7684 \u 56DE \u 590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:" \u 6B64 \u 5904 bug \u 5DF2 \u 7ECF \u 4FEE \u 590D",time:" \u 4ECA \u 5929 12:30:01"},{id:3,type:"message",title:" \u 5B81 \u 6CE2",subTitle:" \u 7684 \u 56DE \u 590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:" \u 6B64 \u 5904 bug \u 5DF2 \u 7ECF \u 4FEE \u 590D",time:" \u 4ECA \u 5929 12:20:01"},{id:4,
2024-02-08 10:38:15 +00:00
Error . stack : ` +d.stack;if(typeof d=="object"&&d!==null){if(s.has(d))return"[Circular "+(c||"root")+"]";s.add(d)}return d}},U2=function(s){if(typeof s=="string")return s;try{return s instanceof Error?(JSON.stringify(s, $ 3(),4)||"undefined").replace(/"/gim,""):JSON.stringify(s, $ 3(),4)||"undefined"}catch(c){return ` error happen when aegis stringify :
` +c.message+ `
` +c.stack}},A3=function(s){if(typeof s=="string")return s;try{return JSON.stringify(s, $ 3())||"undefined"}catch(c){return ` error happen when aegis stringify :
` +c.message+ `
` +c.stack}},v3=function(s,c){c===void 0&&(c=3);var d,h, $ ,v="";return Array.isArray(s)?(v+="[",d=s.length,s.forEach(function(S,I){v=(v+=typeof S=="object"&&1<c?v3(S,c-1):Z3(S))+(I===d-1?"":",")}),v+="]"):s instanceof Object?(v="{",h=Object.keys(s), $ =h.length,h.forEach(function(S,I){typeof s[S]=="object"&&1<c?v+='"'+S+'":'+v3(s[S],c-1):v+=H3(S,s[S]),v+=I=== $ -1||I< $ -1&&s[h[I+1]]===void 0?"":","}),v+="}"):v+=s,v},H3=function(s,c){var d=typeof c,h="";return d=="string"||d=="object"?h+='"'+s+'":"'+c+'"':typeof c=="function"?h+='"'+s+'":"function '+c.name+'"':typeof c=="symbol"?h+='"'+s+'":"symbol"':typeof c!="number"&&d!="boolean"||(h+='"'+s+'": '+c),h},Z3=function(s){var c=typeof s;return""+(c=="undefined"||c=="symbol"||c=="function"?"null":c=="string"||c=="object"?'"'+s+'"':s)},G3=/data:(image|text|application|font) \/ .*;base64/,j3=((Z=u2=u2||{}).INFO_ALL="-1",Z.API_RESPONSE="1",Z.INFO="2",Z.ERROR="4",Z.PROMISE_ERROR="8",Z.AJAX_ERROR="16",Z.SCRIPT_ERROR="32",Z.IMAGE_ERROR="64",Z.CSS_ERROR="128",Z.CONSOLE_ERROR="256",Z.MEDIA_ERROR="512",Z.RET_ERROR="1024",Z.REPORT="2048",Z.PV="4096",Z.EVENT="8192",Z.PAGE_NOT_FOUND_ERROR="16384",Z.WEBSOCKET_ERROR="32768",Z.BRIDGE_ERROR="65536",Z.LAZY_LOAD_ERROR="131072",(Z=_2=_2||{}).LOG="log",Z.SPEED="speed",Z.PERFORMANCE="performance",Z.OFFLINE="offline",Z.WHITE_LIST="whiteList",Z.VITALS="vitals",Z.PV="pv",Z.CUSTOM_PV="customPV",Z.EVENT="event",Z.CUSTOM="custom",Z.SDK_ERROR="sdkError",Z.SET_DATA="setData",Z.LOAD_PACKAGE="loadPackage",(Z=x2=x2||{}).production="production",Z.development="development",Z.gray="gray",Z.pre="pre",Z.daily="daily",Z.local="local",Z.test="test",Z.others="others",function(s){return s.filter(function(c,d){return c.type!=="static"||!s.find(function(h, $ ){return c.url===h.url&&c.status===200&&d< $ })})}),b2=function(s){s.level===u2.INFO_ALL&&(s.level=u2.INFO)},L={},D={},a2=function(s){return L[s]||(L[s]=setTimeout(function(){D[s]={},L[s]=null},6e4)),L[s]},C2=function(s){return(Array.isArray(s)?s:[s]).map(function(c){return Object.getOwnPropertyNames(c).reduce(function(d,h){return h!=="ctx"&&(d[h]=c[h]),d},{level:u2.INFO,msg:""})})},O2=function(s){return function(c){return s.sendPipeline([function(d,h){return h({url:s.config.url||"",data:I2(C2(d)),method:"post",contentType:"application/json",type:_2.LOG,log:d,requestConfig:{timeout:5e3},success:function(){var $ =s.config.onReport;typeof $ =="function"&&d.forEach(function(v){ $ (v)}),typeof h=="function"&&h([])}})}],_2.LOG)(c)}},t3=function(){},Z=(o2.use=function(s){o2.installedPlugins.indexOf(s)===-1&&s.aegisPlugin&&o2.installedPlugins.push(s)},o2.unuse=function(s){s=o2.installedPlugins.indexOf(s),s!==-1&&o2.installedPlugins.splice(s,1)},o2.prototype.init=function(s){this.setConfig(s);for(var c=0;c<o2.installedPlugins.length;c++)try{o2.installedPlugins[c].patch(this)}catch(d){this.sendSDKError(d)}this.lifeCycle.emit("onInited")},o2.prototype.destroy=function(s){s===void 0&&(s=!1);var c,d,h=o2.instances.indexOf(this);h!==-1&&o2.instances.splice(h,1);for(var $ =o2.installedPlugins.length-1;0<= $ ; $ --)try{o2.installedPlugins[ $ ].unpatch(this)}catch(S){this.sendSDKError(S)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),s)c=this,d=Object.getOwnPropertyDescriptors(c),Object.keys(d).forEach(function(S){d[S].writable&&(c[S]=null)}),Object.setPrototypeOf(this,null);else{for(var v=this;v.constructor!==Object&&V2(v,this),v=Object.getPrototypeOf(v););o2.instances.length===0&&(h=Object.getPrototypeOf(this).constructor,V2(h),V2(o2))}},o2.prototype.setConfig=function(A){Object.assign(this.config,A);var A=this.config,c=A.id,d=A.uin,h=A.version, $ =A.ext1,v=A.ext2,S=A.ext3,I=A.aid,z=A.env,x=z===void 0?"production":z,z=A.pageUrl,A=this.bean.id!==c||this.bean.uin!==d||this.bean.aid!==I;return this.bean.id=c||"",this.bean.uin=d||"",this.bean.version=h||"1.39.1",this.bean.aid=I||"",this.bean.env=function(){switch(x){case x2.production:case x2.development:case x2.gray:case x2.pre:case x2.daily:case x2.local:case x2.test:case x2.others:return 1;default:return}}()?x:x2.others,z&&this.extendBean("from",encodeURIComponent(z.slice(0,2048))), $ &&this.e
` )+d+" header "+ $ +": "+v:h},""):""}function b3(s,c){return s&&["null","undefined"].indexOf(s)===-1?c+": "+s:""}function y3(v,c,d){c===void 0&&(c="");var h, $ ,v=typeof(( $ =v.api)==null?void 0: $ .resourceTypeHandler)=="function"?( $ =v.api)==null?void 0: $ .resourceTypeHandler(d):"";return w.indexOf(v)===-1&&(h=c===void 0?"":c, $ =(d===void 0?"":d).split("?")[0],v=f2.test( $ )||W.some(function(S){return String(h).indexOf(S)!==-1})?"static":"fetch"),v}function S3(s,c){return s?u2.AJAX_ERROR:c?u2.RET_ERROR:u2.API_RESPONSE}function w3(s,c){return(s=s.api)!=null&&s.usePerformanceTiming&&typeof c.url=="string"&&(s=(s=performance.getEntriesByName(c.url))==null?void 0:s.pop(),s)?{url:c.url,isHttps:T2(c.url),method:c.method,type:c.type,status:c.status,duration:Number(s.duration.toFixed(2)),nextHopProtocol:s.nextHopProtocol||"",domainLookup:P2(s.domainLookupEnd-s.domainLookupStart),connectTime:P2(s.connectEnd-s.connectStart)}:{url:c.url,isHttps:T2(c.url),method:c.method,type:c.type,status:c.status,duration:Number(c.duration.toFixed(2)),nextHopProtocol:"",domainLookup:T.number,connectTime:T.number}}var X3,X,o3,Q3,R2,R3,M3,K3=!(K.isIE=function(){return"ActiveXObject"in window}),l3=[],kl=/^ \/ [^/]/,gl=!1,Z2=[],Ql=(new k2({name:"reportApiSpeed"}),new k2({name:"reportApiSpeed",override:!1,onNewAegis:function(s){var c,d;this.override||(this.override=!0,(d=s.config.api)!=null&&d.injectTraceHeader&&(this.traceRequestHeader=new V(d.injectTraceHeader,(c=d==null?void 0:d.injectTraceIgnoreUrls)!=null?c:[],d==null?void 0:d.injectTraceUrls)),this.overrideFetch(s.config,s),this.overrideXhr(s.config,s))},overrideFetch:function(s,c){var d=this,h=s.api,h={name:this.name,traceRequestHeader:h!=null&&h.injectTraceHeader?this.traceRequestHeader:null,then:function(S,I,x,z){var A,M;F2(x,s.hostUrl)||(A=S.headers?S.headers.get("content-type"):"",(M=y3(s,A||"",x))==="fetch"?S.clone().text().then(function(O){var q,r2=S.status<=0||400<=S.status,G=((G=s.api)==null?void 0:G.reqHeaders)||[],i2=m3(z==null?void 0:z.headers,G,"req"),G=((G=s.api)==null?void 0:G.resHeaders)||[],e2=m3(S.headers,G,"res"),Y=P(z==null?void 0:z.headers),G=A2(O,s.api,{url:x,ctx:S,payload:z==null?void 0:z.body}),Q=G.code,l2=G.isErr,G=(G=s.api)==null?void 0:G.apiDetail,m2=G?B2(z==null?void 0:z.body,(q=s.api)==null?void 0:q.reqParamHandler,{url:x}):"",X2=G?B2(O,(q=s.api)==null?void 0:q.resBodyHandler,{url:x,ctx:S}):"";setTimeout(function(){var g2=w3(s,{url:x,duration:I,type:M,status:S.status||0,method:(z==null?void 0:z.method)||"get"}),D2=[r2?"FETCH_ERROR: "+O:"","fetch req url: "+x,"res status: "+(g2.status||0),"res duration: "+g2.duration+"ms",i2,e2,"req method: "+(g2.method||"GET"),"res retcode: "+Q,b3(m2,"req param"),b3(X2,"res data")].filter(function(h3){return h3}).join( `
` );g2.payload=z==null?void 0:z.body,g2.ret=Q,g2.isErr=+l2,d.publishNormalLog({msg:D2,level:S3(r2,l2),code:Q,trace:Y},c),d.publishSpeed(g2,c)},0)}):setTimeout(function(){var O=w3(s,{url:x,duration:I,type:M,status:S.status||0,method:(z==null?void 0:z.method)||"get"});O.type="static",O.urlQuery=S2(x,!0),d.publishSpeed(O,c)},0))},catch:function(S,I,x,z){var A,M,O,q,r2;throw F2(x,s.hostUrl)||(A=y3(s,"",x),M=((M=s.api)==null?void 0:M.reqHeaders)||[],O=m3(z==null?void 0:z.headers,M,"req"),q=P(z==null?void 0:z.headers),r2=(M=s.api)!=null&&M.apiDetail?B2(z==null?void 0:z.body,(M=s.api)==null?void 0:M.reqParamHandler,{url:x}):"",setTimeout(function(){var i2=w3(s,{url:x,duration:I,type:A,status:0,method:(z==null?void 0:z.method)||"get"}),i2=(d.publishSpeed(i2,c),"AJAX_ERROR: "+S+ `
req url : ` +x+ `
res status : 0
res duration : ` +i2.duration+ ` ms
req method : ` +((z==null?void 0:z.method)||"get")+ `
req param : ` +r2+ `
` +O);d.publishNormalLog({msg:i2,level:u2.AJAX_ERROR,code:-400,trace:q},c)},0)),S}}, $ =(this.hackFetchOptions=h,this.hackFetchOptions),v=(h=s.api)==null?void 0:h.ignoreHackReg;if(v===void 0&&(v=/ \. flv( \? | $ )/gi),Z2.find(function(S){return S.name=== $ .name}))throw new Error("name '"+ $ .name+"' is already in hackFetch option list");Z2.push( $ ),!gl&&window.fetch&&(gl=!0,Q3=window.fetch,window.fetch=function(S,I){I===void 0&&(I={});var x=typeof S=="string"?S:S==null?void 0:S.url;if((O=v==null?void 0:v.test)!=null&&O.call(v,x))return Q3(x,I);kl.test(x)&&(x=""+location.origin+x);var z,A,M,O=( $ ||{}).traceRequestHeader;O&&(z=(z=(I||{}).headers)===void 0?{}:z,A=(M=J3()).host,M=M.pathname,A=(O=O.generate(x,z,{host:A,pathname:M})||{}).name,M=O.value)&&A&&(I.headers=Object.assign(z,((O={})[A]=M,O)));for(var q=0;q<Z2.length;q++){var r2=Z2[q];try{typeof r2.beforeFetch=="function"&&r2.beforeFetch(x,I)}catch{}}var i2=Date.now();return Q3(S,I).then(function(e2){for(var Y=e2.clone(),Q=0;Q<Z2.length;Q++){var l2=Z2[Q];try{typeof l2.then=="function"&&l2.then(Y,Date.now()-i2,x,I)}catch{}}return Y}).catch(function(e2){for(var Y=0;Y<Z2.length;Y++){var Q=Z2[Y];try{typeof Q.catch=="function"&&Q.catch(e2,Date.now()-i2,x,I)}catch{}}throw e2})})},overrideXhr:function(s,c){var d,h=this, $ ={name:this.name,ignoreHackReg:( $ =s.api)==null?void 0: $ .ignoreHackReg,send:function(v,S){var I,x,z=Date.now(),A=(((s==null?void 0:s.api)||{}).injectTraceHeader&&(x=(I=J3()).host,I=I.pathname,I=(x=h.traceRequestHeader.generate(v.aegisUrl,{},{host:x,pathname:I})||{}).name,x=x.value,I)&&x&&v.setRequestHeader(I,x),v.addEventListener("loadend",function(){var q,r2,i2,e2,Y=v.aegisUrl||"";F2(Y,s.hostUrl)||v.failType==="abort"||(q="",(v.failType||!v.status||400<=v.status)&&(q=v.failType||"failed"),r2=Date.now()-z,i2=v.getResponseHeader("content-type")||"",e2=y3(s,i2,Y),setTimeout(function(){var Q=w3(s,{url:Y,duration:r2,type:e2,status:v.status,method:v.aegisMethod||"get"});if(e2==="fetch"){var g2=((g2=s.api)==null?void 0:g2.reqHeaders)||[],l2=m3(v.aegisXhrReqHeader,g2,"req"),g2=((g2=s.api)==null?void 0:g2.resHeaders)||[],G=v.getAllResponseHeaders().split( ` \ r
` ).reduce(function(N2,w2){return w2=w2.split(": "),w2[0]&&w2[1]&&(N2[w2[0]]=w2[1]),N2},{}),m2=m3(G,g2,"res"),X2=P(v.aegisXhrReqHeader),g2=(G=s.api)==null?void 0:G.apiDetail,D2=g2?B2(S,(G=s.api)==null?void 0:G.reqParamHandler,{url:Y}):"",h3=g2?B2(v.response,(G=s.api)==null?void 0:G.resBodyHandler,{url:Y}):"";try{(function(N2,w2,z2,L2){var q3,ql,W2,Ul;try{if(typeof(w2==null?void 0:w2.retCodeHandlerAsync)=="function")return w2.retCodeHandlerAsync(N2,z2==null?void 0:z2.url,z2==null?void 0:z2.ctx,function(P3){var fl=P3.code,P3=P3.isErr;L2!=null&&L2({code:fl===void 0?F:fl,isErr:P3})});if(typeof(w2==null?void 0:w2.retCodeHandler)=="function")return W2=(ql=w2.retCodeHandler(N2,z2==null?void 0:z2.url,z2==null?void 0:z2.ctx,z2==null?void 0:z2.payload)||{}).code,Ul=ql.isErr,L2!=null&&L2({code:W2===void 0?F:W2,isErr:Ul});if(!(N2=typeof N2=="string"?JSON.parse(N2):N2))return L2!=null&&L2({code:F,isErr:!1});typeof((q3=w2==null?void 0:w2.ret)==null?void 0:q3.join)=="function"&&(q2=[].concat(w2.ret.map(function(U3){return U3.toLowerCase()})));var dl=Object.getOwnPropertyNames(N2).filter(function(U3){return q2.indexOf(U3.toLowerCase())!==-1});if(dl.length)return(W2=N2[dl[0]])!==" \u 672A \u 77E5"&&W2!==""||(W2=F),L2!=null&&L2({code:""+W2,isErr:W2!==0&&W2!=="0"&&W2!==F});L2!=null&&L2({code:F,isErr:!1})}catch{L2!=null&&L2({code:F,isErr:!1})}})(v.response,s.api,{url:Y,ctx:v,payload:S},function(z2){var w2=z2.code,z2=z2.isErr,L2=[q?"AJAX_ERROR: request "+q:"","fetch req url: "+Y,"res status: "+(Q.status||0),"res duration: "+Q.duration+"ms",l2,m2,"req method: "+(Q.method||"GET"),"res retcode: "+w2,b3(D2,"req param"),b3(h3,"res data")].filter(function(q3){return q3}).join( `
` );Q.ret=w2,Q.isErr=+z2,Q.payload=S,h.publishNormalLog({msg:L2,level:S3(!!q,z2),code:w2,trace:X2},c),h.publishSpeed(Q,c)})}catch{Q.ret=F,h.publishSpeed(Q,c)}}else Q.type="static",Q.urlQuery=S2(Y,!0),h.publishSpeed(Q,c);v.removeEventListener("abort",A),v.removeEventListener("error",M),v.removeEventListener("timeout",O)},0))}),function(){v.failType="abort"}),M=function(){v.failType="error"},O=function(){v.failType="timeout"};v.addEventListener("abort",A),v.addEventListener("error",M),v.addEventListener("timeout",O)}};this.hackXHROptions= $ ,d=this.hackXHROptions,l3.find(function(v){return v.name===d.name})||(l3.push(d),!K3&&window.XMLHttpRequest&&(X3=window.XMLHttpRequest.prototype.send,X=window.XMLHttpRequest.prototype.open,o3=window.XMLHttpRequest.prototype.setRequestHeader,K3=!0,window.XMLHttpRequest.prototype.open=function(){this.aegisMethod=arguments[0];var v,S=arguments[1];if(kl.test(S)&&(S=""+location.origin+S),this.aegisUrl=S,(S=(v=d.ignoreHackReg)==null?void 0:v.test)==null||!S.call(v,this.aegisUrl))if(this.aegisXhrStartTime=Date.now(),this.sendByAegis)K.isIE()||(this.timeout=5e3);else for(var I=0;I<l3.length;I++){var x=l3[I];try{typeof x.open=="function"&&x.open(this)}catch{}}return X.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var v,S,I;return(S=(I=d.ignoreHackReg)==null?void 0:I.test)!=null&&S.call(I,this.aegisUrl)?o3.apply(this,arguments):(S=arguments[0],I=arguments[1],this.aegisXhrReqHeader=(v=this.aegisXhrReqHeader)!=null?v:{},-1<["traceparent","b3","sw8","sentry-trace"].indexOf(S)&&(this.aegisXhrReqHeader[S]||(arguments[1]=I),this.aegisXhrReqHeader[S])?void 0:(this.aegisXhrReqHeader[S]=arguments[1],o3.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var v,S;if(!((S=(v=d.ignoreHackReg)==null?void 0:v.test)!=null&&S.call(v,this.aegisUrl)||this.sendByAegis))for(var I=0;I<l3.length;I++){var x=l3[I];try{typeof x.send=="function"&&x.send(this,arguments[0])}catch{}}return X3.apply(this,arguments)}))},publishSpeed:function(s){var c=this;this. $ walk(function(d){var h=c. $ getConfig(d);s.type!=="fetch"||typeof(h==null?void 0:h.urlHandler)!="function"?(s.url=S2(s.url),d.speedLogPipeline(s)):d.speedLogPipeline(t(t({},s),{url:S2(h.urlHandler(s.url,s.payload))}))})},publishNormalLog:function(s){this. $ walk(function(c){c.normalLogPipeline(s)})},destroy:function(){var s,c,d;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(s=this.option.hackXHROptions,(d=l3.findIndex(function(h){return h.name===s.name}))!==-1)&&l3.splice(d,1),this.option.hackFetchOptions&&(c=this.option.hackFetchOptions,(d=Z2.findIndex(function(h){return h.name===c.name}))!==-1)&&Z2.splice(d,1),this.option.override=!1}})),I3={},Kl=new k2({name:"reportBridgeSpeed",override:!1,onNewAegis:function(s){this.override||(this.override=!0,this.overrideBridge(s))},publishSpeed:function(s,c){this. $ walk(function(d){d===c&&d.speedLogPipeline(s)})},overrideBridge:function(s){var c=this,d=s.config;d.reportBridgeSpeed&&d.h5Bridge&&d.h5BridgeFunc.length&&d.h5BridgeFunc.forEach(function(h){var $ =d.h5Bridge[h];I3[h]= $ ,d.h5Bridge[h]=function(){for(var v=[],S=0;S<arguments.length;S++)v[S]=arguments[S];var I=v[0],x=v[1],z=v[2],A=v[3],M=Date.now(); $ (I,x,z,function(O){var q=A2(O,d.api),r2=q.code,q=q.isErr,r2={url:I+"-"+x,name:I+"-"+x,duration:Date.now()-M,type:"bridge",ret:r2,isErr:+q};c.publishSpeed(r2,s),A(O)})}})},unHackBridge:function(s){Object.keys(I3).forEach(function(c){I3[c]&&(s.config.h5Bridge[c]=I3[c])}),I3={}},destroy:function(s){this.option.publishSpeed=function(){},this.option.unHackBridge(s),this.option.override=!1}});(c2=R2=R2||{})[c2.unknown=100]="unknown",c2[c2.wifi=1]="wifi",c2[c2.net2g=2]="net2g",c2[c2.net3g=3]="net3g",c2[c2.net4g=4]="net4g",c2[c2.net5g=5]="net5g",c2[c2.net6g=6]="net6g",(c2=R3=R3||{})[c2.android=1]="android",c2[c2.ios=2]="ios",c2[c2.windows=3]="windows",c2[c2.macos=4]="macos",c2[c2.linux=5]="linux",c2[c2.other=100]="other",(c2=M3=M3||{})[c2.unknown=100]="unknown",c2[c2.normal=0]="normal",c2[c2.weak=1]="weak",c2[c2.disconnected=2]
` +U2(z[4]||""),level:u2.ERROR},s),x!=null&&x.call.apply(x,f([window],z))},window.addEventListener("unhandledrejection",c),window.document.addEventListener("error",d,!0),s.lifeCycle.on("destroy",function(){bl.countInstance()===0&&(window.document.removeEventListener("unhandledrejection",c),window.document.removeEventListener("error",d,!0))}),s.config.websocketHack&&(h={key:s.config.id+"-"+this.name,onErr:function(z){var A;(A=I.publishWsErrorLog)!=null&&A.call(I,z,s)},sendErr:function(z){var A;(A=I.publishWsErrorLog)!=null&&A.call(I,z,s)}},this.hackWebsocketConfig=h,h=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&( $ =window.WebSocket,window&&! $ .isHack&&(v=new Proxy(WebSocket,ln), $ .isHack=!0,window.WebSocket=v),S=h,n3.find(function(z){return z.key===S.key})||S&&n3.push(S))},publishErrorLog:function(s,c){this. $ walk(function(d){d===c&&d.normalLogPipeline(s)})},publishWsErrorLog:function( $ ,c){var d= $ .connectUrl,h= $ .msg, $ = $ .readyState;this.publishErrorLog({msg: ` WEBSOCKET _ERROR :
connect : ` +d+ `
readyState : ` + $ + `
msg : ` +h,level:u2.WEBSOCKET_ERROR},c)},destroy:function(){var s,c;this.option.publishErrorLog=function(){},this.option.hackWebsocketConfig&&(s=this.option.hackWebsocketConfig,window.WebSocket=Yl,(c=n3.findIndex(function(d){return d.key===s.key}))!==-1)&&n3.splice(c,1)}}),yl=(new k2({name:"pagePerformance"}),3),Sl=new k2({name:"pagePerformance",performanceMap:{},onNewAegis:function(s){e3()&&(r3?this.publish(r3,s):this.startCalcPerformance(s))},publish:function(s,c){var d=this;this. $ walk(function(h){h===c&&h.sendPipeline([function( $ ,v){var S,I=[];for(S in $ )I.push(S+"="+ $ [S]);var x,z=d. $ getConfig(h);if(z)return x=((x=h.config.performanceUrl)==null?void 0:x.indexOf("?"))===-1?"?":"&",typeof z.urlHandler=="function"?v({url:h.config.performanceUrl+x+I.join("&")+"&from="+(encodeURIComponent(z.urlHandler())||window.location.href),beanFilter:["from"],type:_2.PERFORMANCE,log: $ }):v({url:h.config.performanceUrl+x+I.join("&"),type:_2.PERFORMANCE,log: $ })}],_2.PERFORMANCE)(t({},s))})},startCalcPerformance:function(s){var c=this;try{this.getFirstScreenTiming(s,function(d){var h=performance.timing;h&&(r3={dnsLookup:G2(h.domainLookupEnd-h.domainLookupStart),tcp:G2(h.connectEnd-h.connectStart),ssl:G2(h.secureConnectionStart===0?0:h.requestStart-h.secureConnectionStart),ttfb:G2(h.responseStart-h.requestStart),contentDownload:G2(h.responseEnd-h.responseStart),domParse:G2(h.domInteractive-h.domLoading,0,15e3,1070),resourceDownload:G2(h.loadEventStart-h.domInteractive,0,15e3,1070),firstScreenTiming:G2(Math.floor(d),0,15e3,15e3)},(h=s.config).extraPerformanceData&&JSON.stringify(h.extraPerformanceData)!=="{}"&&(h=(d=h.extraPerformanceData).engineInit,d=d.bundleLoad,r3=t(t({},r3),{engineInit:G2(h,0,1e4),bundleLoad:G2(d,0,1e4)})),c.publish(r3,s))})}catch{}},getFirstScreenTiming:function(s,c){var d=this;s.lifeCycle.on("destroy",function(){M&&clearTimeout(M)});var h, $ =this,v=["script","style","link","br"],S=[],I={},x=(-1<((z=(z=window.PerformanceObserver)==null?void 0:z.supportedEntryTypes)==null?void 0:z.indexOf("paint"))&&(h=new PerformanceObserver(function(O){O.getEntries().forEach(function(q){var r2;q.entryType==="paint"&&q.name==="first-contentful-paint"&&0<(r2=document.querySelectorAll("[AEGIS-FIRST-SCREEN-TIMING]")).length&&(d.setFirstScreenInfo(s,q.startTime,r2[0],r2),c!=null&&c(q.startTime),x.disconnect(),h.disconnect())})})).observe({entryTypes:["paint"]}),new MutationObserver(function(O){var q={roots:[],ignores:[],rootsDomNum:[],time:performance.now()};O.forEach(function(r2){r2&&r2.addedNodes&&Array.prototype.slice.call(r2.addedNodes).forEach(function(i2){ $ .isEleInArray(i2,q.ignores)?q.ignores.push(i2):i2.nodeType===1&&i2.hasAttribute("AEGIS-FIRST-SCREEN-TIMING")?(Object.prototype.hasOwnProperty.apply(I,[q.time])||(I[q.time]=[]),I[q.time].push(i2)):i2.nodeType===1&&( $ .hasAncestorOrSelfWithAttribute(i2,"AEGIS-IGNORE-FIRST-SCREEN-TIMING")?q.ignores.push(i2):v.indexOf(i2.nodeName.toLocaleLowerCase())!==-1|| $ .isEleInArray(i2,q.roots)||(q.roots.push(i2),q.rootsDomNum.push( $ .walkAndCount(i2)||0)))})}),q.roots.length&&S.push(q)}));x.observe(document,{childList:!0,subtree:!0});var z,A=function(O){(O=O===void 0?0:O)||(q=0,(i2=Object.keys(I)).length?(O=Math.max.apply(null,i2),d.setFirstScreenInfo(s,O,(i2=I[O])==null?void 0:i2[0],I)):S.forEach(function(l2){for(var G=0;G<l2.roots.length;G++)l2.rootsDomNum[G]>q&& $ .isInFirstScreen(l2.roots[G])&&(q=l2.rootsDomNum[G],O=l2.time,d.setFirstScreenInfo(s,O,l2.roots[G]))}),S.length=0,Object.keys(I).forEach(function(l2){I[l2]=I[l2].map(function(G){var m2={tagName:G.tagName},X2=G.attributes;if(!X2)return G;for(var g2=0;g2<X2.length;g2++){var D2=X2[g2];D2.name&&(m2[D2.name]=G.getAttribute(D2.name))}return m2})}));var q,i2=performance.timing,r2=i2.domInteractive-i2.domLoading,i2=i2.loadEventStart-i2.domInteractive,e2=O;M=null;for(var Y=0,Q=[r2,i2,e2];Y<Q.length;Y++)if(Q[Y]<=0&&0<yl){M=setTimeout(function(){return A(e2)},3e3);break}M?--yl:(x.disconnect(),h!=null&&h.disconnect(),c!=null&&c(O))},M=setTimeout(function(){return A()},3e3)},setFirstScreenInfo:function(s,c,d,h){var $ ;s.config.id&&this.per
It is recommended that you contact us for feedback and thank you for your support . ` ,"color: red"),v.sendSDKError(S)}return v}function Wl(){this.constructor=sl}new k2({name:"ie"}),new k2({name:"onClose"});var Vl=new k2({name:"onClose",onNewAegis:function(s){var c,d=this;K.desktop()?(c=window.onunload,window.onunload=function(){for(var h=[], $ =0; $ <arguments.length; $ ++)h[ $ ]=arguments[ $ ];d.publishNotReportedLog(s),c!=null&&c.call.apply(c,f([window],h))}):xl(this.publishNotReportedLog.bind(this,s),{once:!0})},publishNotReportedLog:function(s){var c=this;this. $ walk(function(d){d===s&&(d.sendNow=!0,d.publishPluginsLogs(),c.publishThrottlePipeLogs(d))})},publishThrottlePipeLogs:function(s){s!=null&&s.speedLogPipeline([]),s!=null&&s.eventPipeline([]),s!=null&&s.customTimePipeline([]),s!=null&&s.normalLogPipeline([])}});return new k2({name:"aid"}),Z.use(nn),Z.use(Ql),Z.use(hl),Z.use(Sl),Z.use(Ol),Z.use(H2),Z.use(c2),Z.use(on),Z.use(Vl),Z.use(Kl),Z})})(aegis_min);const Aegis=aegis_min.exports,encodingIndexes $ 1={big5:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null