2019-11-07 10:52:51 +08:00
! function ( e ) { function t ( t ) { for ( var n , r , o = t [ 0 ] , a = t [ 1 ] , s = 0 , c = [ ] ; s < o . length ; s ++ ) r = o [ s ] , i [ r ] && c . push ( i [ r ] [ 0 ] ) , i [ r ] = 0 ; for ( n in a ) Object . prototype . hasOwnProperty . call ( a , n ) && ( e [ n ] = a [ n ] ) ; for ( l && l ( t ) ; c . length ; ) c . shift ( ) ( ) } var n = { } , i = { 0 : 0 } ; function r ( t ) { if ( n [ t ] ) return n [ t ] . exports ; var i = n [ t ] = { i : t , l : ! 1 , exports : { } } ; return e [ t ] . call ( i . exports , i , i . exports , r ) , i . l = ! 0 , i . exports } r . e = function ( e ) { var t = [ ] , n = i [ e ] ; if ( 0 !== n ) if ( n ) t . push ( n [ 2 ] ) ; else { var o = new Promise ( function ( t , r ) { n = i [ e ] = [ t , r ] } ) ; t . push ( n [ 2 ] = o ) ; var a , s = document . createElement ( "script" ) ; s . charset = "utf-8" , s . timeout = 120 , r . nc && s . setAttribute ( "nonce" , r . nc ) , s . src = function ( e ) { return r . p + "static/" + ( { } [ e ] || e ) + ".js" } ( e ) , a = function ( t ) { s . onerror = s . onload = null , clearTimeout ( l ) ; var n = i [ e ] ; if ( 0 !== n ) { if ( n ) { var r = t && ( "load" === t . type ? "missing" : t . type ) , o = t && t . target && t . target . src , a = new Error ( "Loading chunk " + e + " failed.\n(" + r + ": " + o + ")" ) ; a . type = r , a . request = o , n [ 1 ] ( a ) } i [ e ] = void 0 } } ; var l = setTimeout ( function ( ) { a ( { type : "timeout" , target : s } ) } , 12e4 ) ; s . onerror = s . onload = a , document . head . appendChild ( s ) } return Promise . all ( t ) } , r . m = e , r . c = n , r . d = function ( e , t , n ) { r . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : n } ) } , r . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , r . t = function ( e , t ) { if ( 1 & t && ( e = r ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var n = Object . create ( null ) ; if ( r . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var i in e ) r . d ( n , i , function ( t ) { return e [ t ] } . bind ( null , i ) ) ; return n } , r . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return r . d ( t , "a" , t ) , t } , r . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , r . p = "./" , r . oe = function ( e ) { throw console . error ( e ) , e } ; var o = window . webpackJsonp = window . webpackJsonp || [ ] , a = o . push . bind ( o ) ; o . push = t , o = o . slice ( ) ; for ( var s = 0 ; s < o . length ; s ++ ) t ( o [ s ] ) ; var l = a ; r ( r . s = 222 ) } ( [ function ( e , t , n ) { var i = n ( 2 ) , r = n ( 23 ) , o = n ( 13 ) , a = n ( 14 ) , s = n ( 24 ) , l = function ( e , t , n ) { var c , d , u , p , h = e & l . F , f = e & l . G , _ = e & l . S , m = e & l . P , g = e & l . B , b = f ? i : _ ? i [ t ] || ( i [ t ] = { } ) : ( i [ t ] || { } ) . prototype , v = f ? r : r [ t ] || ( r [ t ] = { } ) , E = v . prototype || ( v . prototype = { } ) ; for ( c in f && ( n = t ) , n ) u = ( ( d = ! h && b && void 0 !== b [ c ] ) ? b : n ) [ c ] , p = g && d ? s ( u , i ) : m && "function" == typeof u ? s ( Function . call , u ) : u , b && a ( b , c , u , e & l . U ) , v [ c ] != u && o ( v , c , p ) , m && E [ c ] != u && ( E [ c ] = u ) } ; i . core = r , l . F = 1 , l . G = 2 , l . S = 4 , l . P = 8 , l . B = 16 , l . W = 32 , l . U = 64 , l . R = 128 , e . exports = l } , function ( e , t , n ) { var i = n ( 5 ) ; e . exports = function ( e ) { if ( ! i ( e ) ) throw TypeError ( e + " is not an object!" ) ; return e } } , function ( e , t ) { var n = e . exports = "undefined" != typeof window && window . Math == Math ? window : "undefined" != typeof self && self . Math == Math ? self : Function ( "return this" ) ( ) ; "number" == typeof _ _g && ( _ _g = n ) } , , function ( e , t ) { e . exports = function ( e ) { try { return ! ! e ( ) } catch ( e ) { return ! 0 } } } , function ( e , t ) { e . exports = function ( e ) { return "object" == typeof e ? null !== e : "function" == typeof e } } , function ( e , t , n ) { var i = n ( 66 ) ( "wks" ) , r = n ( 42 ) , o = n ( 2 ) . Symbol , a = "function" == typeof o ; ( e . exports = function ( e ) { return i [ e ] || ( i [ e ] = a && o [ e ] || ( a ? o : r ) ( "Symbol." + e ) ) } ) . store = i } , function ( e , t , n ) { var i = n ( 26 ) , r = Math . min ; e . exports = function ( e ) { return e > 0 ? r ( i ( e ) , 9007199254740991 ) : 0 } } , function ( e , t , n ) { e . exports = ! n ( 4 ) ( function ( ) { return 7 != Object . defineProperty ( { } , "a" , { get : function ( ) { return 7 } } ) . a } ) } , function ( e , t , n ) { var i = n ( 1 ) , r = n ( 154 ) , o = n ( 29 ) , a = Object . defineProperty ; t . f = n ( 8 ) ? Object . defineProperty : function ( e , t , n ) { if ( i ( e ) , t = o ( t , ! 0 ) , i ( n ) , r ) try { return a ( e , t , n ) } catch ( e ) { } if ( "get" in n || "set" in n ) throw TypeError ( "Accessors not supported!" ) ; return "value" in n && ( e [ t ] = n . value ) , e } } , function ( e , t , n ) { var i = n ( 30 ) ; e . exports = function ( e ) { return Object ( i ( e ) ) } } , function ( e , t , n ) { "use strict" ; n . r ( t ) , function ( e , n ) {
2019-09-25 17:47:38 +08:00
/ * !
* Vue . js v2 . 6.10
* ( c ) 2014 - 2019 Evan You
* Released under the MIT License .
* /
2019-11-07 10:52:51 +08:00
var i = Object . freeze ( { } ) ; function r ( e ) { return null == e } function o ( e ) { return null != e } function a ( e ) { return ! 0 === e } function s ( e ) { return "string" == typeof e || "number" == typeof e || "symbol" == typeof e || "boolean" == typeof e } function l ( e ) { return null !== e && "object" == typeof e } var c = Object . prototype . toString ; function d ( e ) { return "[object Object]" === c . call ( e ) } function u ( e ) { return "[object RegExp]" === c . call ( e ) } function p ( e ) { var t = parseFloat ( String ( e ) ) ; return t >= 0 && Math . floor ( t ) === t && isFinite ( e ) } function h ( e ) { return o ( e ) && "function" == typeof e . then && "function" == typeof e . catch } function f ( e ) { return null == e ? "" : Array . isArray ( e ) || d ( e ) && e . toString === c ? JSON . stringify ( e , null , 2 ) : String ( e ) } function _ ( e ) { var t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } function m ( e , t ) { for ( var n = Object . create ( null ) , i = e . split ( "," ) , r = 0 ; r < i . length ; r ++ ) n [ i [ r ] ] = ! 0 ; return t ? function ( e ) { return n [ e . toLowerCase ( ) ] } : function ( e ) { return n [ e ] } } m ( "slot,component" , ! 0 ) ; var g = m ( "key,ref,slot,slot-scope,is" ) ; function b ( e , t ) { if ( e . length ) { var n = e . indexOf ( t ) ; if ( n > - 1 ) return e . splice ( n , 1 ) } } var v = Object . prototype . hasOwnProperty ; function E ( e , t ) { return v . call ( e , t ) } function S ( e ) { var t = Object . create ( null ) ; return function ( n ) { return t [ n ] || ( t [ n ] = e ( n ) ) } } var y = /-(\w)/g , x = S ( function ( e ) { return e . replace ( y , function ( e , t ) { return t ? t . toUpperCase ( ) : "" } ) } ) , C = S ( function ( e ) { return e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) } ) , T = /\B([A-Z])/g , w = S ( function ( e ) { return e . replace ( T , "-$1" ) . toLowerCase ( ) } ) ; var O = Function . prototype . bind ? function ( e , t ) { return e . bind ( t ) } : function ( e , t ) { function n ( n ) { var i = arguments . length ; return i ? i > 1 ? e . apply ( t , arguments ) : e . call ( t , n ) : e . call ( t ) } return n . _length = e . length , n } ; function N ( e , t ) { t = t || 0 ; for ( var n = e . length - t , i = new Array ( n ) ; n -- ; ) i [ n ] = e [ n + t ] ; return i } function R ( e , t ) { for ( var n in t ) e [ n ] = t [ n ] ; return e } function I ( e ) { for ( var t = { } , n = 0 ; n < e . length ; n ++ ) e [ n ] && R ( t , e [ n ] ) ; return t } function k ( e , t , n ) { } var A = function ( e , t , n ) { return ! 1 } , D = function ( e ) { return e } ; function M ( e , t ) { if ( e === t ) return ! 0 ; var n = l ( e ) , i = l ( t ) ; if ( ! n || ! i ) return ! n && ! i && String ( e ) === String ( t ) ; try { var r = Array . isArray ( e ) , o = Array . isArray ( t ) ; if ( r && o ) return e . length === t . length && e . every ( function ( e , n ) { return M ( e , t [ n ] ) } ) ; if ( e instanceof Date && t instanceof Date ) return e . getTime ( ) === t . getTime ( ) ; if ( r || o ) return ! 1 ; var a = Object . keys ( e ) , s = Object . keys ( t ) ; return a . length === s . length && a . every ( function ( n ) { return M ( e [ n ] , t [ n ] ) } ) } catch ( e ) { return ! 1 } } function P ( e , t ) { for ( var n = 0 ; n < e . length ; n ++ ) if ( M ( e [ n ] , t ) ) return n ; return - 1 } function L ( e ) { var t = ! 1 ; return function ( ) { t || ( t = ! 0 , e . apply ( this , arguments ) ) } } var F = "data-server-rendered" , B = [ "component" , "directive" , "filter" ] , U = [ "beforeCreate" , "created" , "beforeMount" , "mounted" , "beforeUpdate" , "updated" , "beforeDestroy" , "destroyed" , "activated" , "deactivated" , "errorCaptured" , "serverPrefetch" ] , G = { optionMergeStrategies : Object . create ( null ) , silent : ! 1 , productionTip : ! 1 , devtools : ! 1 , performance : ! 1 , errorHandler : null , warnHandler : null , ignoredElements : [ ] , keyCodes : Object . create ( null ) , isReservedTag : A , isReservedAttr : A , isUnknownElement : A , getTagNamespace : k , parsePlatformTagName : D , mustUseProp : A , async : ! 0 , _lifecycleHooks : U } , $ = /a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/ ; function V ( e , t , n , i ) { Object . defineProperty ( e , t , { value : n , enumerable : ! ! i , writable : ! 0 , configurable : ! 0 } ) } var z = new RegExp ( "[^" + $ . source + ".$_\\d]" ) ; var Y , H = "__proto__" in { } , j = "undefined" != typeof window , q = "undefined" != typeof WXEnvironment && ! ! WXEnvironment . platform , W = q && WXEnvironment . platform . toLowerCase ( ) , K = j && window . navigator . userAgent . toLowerCase ( ) , Q = K && /msie|trident/ . test ( K ) , X = K && K . indexOf ( "msie 9.0" ) > 0 , Z = K && K . indexOf ( "edge/" ) > 0 , J = ( K && K . indexOf ( "android" ) , K && /iphone|ipad|ipod|ios/ . test ( K ) || "ios" === W ) , ee = ( K && /chrome\/\d+/ . test ( K ) , K && /phantomjs/ . test ( K ) , K && K . match ( /firefox\/(\d+)/ ) ) , te = { } . watch , ne = ! 1 ; if ( j ) try { var ie = { } ; Object . defineProperty ( ie , "passive" , { get : function ( ) { ne = ! 0 } } ) , window . addEventListener ( "test-passive" , null , ie ) } catch ( e ) { } var re = function ( ) { return void 0 === Y && ( Y = ! j && ! q && void 0 !== e && ( e . process && "server" === e . process . env . VUE _ENV ) ) , Y } , oe = j && window . _ _VUE _DEVTOOLS _GLOBAL _HOOK _ _ ; function ae ( e ) { retur
2019-09-25 17:47:38 +08:00
/ * !
* vue - router v3 . 1.3
* ( c ) 2019 Evan You
* @ license MIT
2019-11-07 10:52:51 +08:00
* /function i(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function r(e,t){return t instanceof e||t&&(t.name===e.name||t._name===e._name)}function o(e,t){for(var n in t)e[n]=t[n];return e}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,r=t.parent,a=t.data;a.routerView=!0;for(var s=r.$createElement,l=n.name,c=r.$route,d=r._routerViewCache||(r._routerViewCache={}),u=0,p=!1;r&&r._routerRoot!==r;){var h=r.$vnode&&r.$vnode.data;h&&(h.routerView&&u++,h.keepAlive&&r._inactive&&(p=!0)),r=r.$parent}if(a.routerViewDepth=u,p)return s(d[l],a,i);var f=c.matched[u];if(!f)return d[l]=null,s();var _=d[l]=f.components[l];a.registerRouteInstance=function(e,t){var n=f.instances[l];(t&&n!==e||!t&&n===e)&&(f.instances[l]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){f.instances[l]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==f.instances[l]&&(f.instances[l]=e.componentInstance)};var m=a.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(c,f.props&&f.props[l]);if(m){m=a.props=o({},m);var g=a.attrs=a.attrs||{};for(var b in m)_.props&&b in _.props||(g[b]=m[b],delete m[b])}return s(_,a,i)}};var s=/ [ ! ' ( ) * ] / g , l = function ( e ) { return "%" + e . charCodeAt ( 0 ) . toString ( 16 ) } , c = /%2C/g , d = function ( e ) { return encodeURIComponent ( e ) . replace ( s , l ) . replace ( c , "," ) } , u = decodeURIComponent ; function p ( e ) { var t = { } ; return ( e = e . trim ( ) . replace ( /^(\?|#|&)/ , "" ) ) ? ( e . split ( "&" ) . forEach ( function ( e ) { var n = e . replace ( /\+/g , " " ) . split ( "=" ) , i = u ( n . shift ( ) ) , r = n . length > 0 ? u ( n . join ( "=" ) ) : null ; void 0 === t [ i ] ? t [ i ] = r : Array . isArray ( t [ i ] ) ? t [ i ] . push ( r ) : t [ i ] = [ t [ i ] , r ] } ) , t ) : t } function h ( e ) { var t = e ? Object . keys ( e ) . map ( function ( t ) { var n = e [ t ] ; if ( void 0 === n ) return "" ; if ( null === n ) return d ( t ) ; if ( Array . isArray ( n ) ) { var i = [ ] ; return n . forEach ( function ( e ) { void 0 !== e && ( null === e ? i . push ( d ( t ) ) : i . push ( d ( t ) + "=" + d ( e ) ) ) } ) , i . join ( "&" ) } return d ( t ) + "=" + d ( n ) } ) . filter ( function ( e ) { return e . length > 0 } ) . join ( "&" ) : null ; return t ? "?" + t : "" } var f = /\/?$/ ; function _ ( e , t , n , i ) { var r = i && i . options . stringifyQuery , o = t . query || { } ; try { o = m ( o ) } catch ( e ) { } var a = { name : t . name || e && e . name , meta : e && e . meta || { } , path : t . path || "/" , hash : t . hash || "" , query : o , params : t . params || { } , fullPath : v ( t , r ) , matched : e ? b ( e ) : [ ] } ; return n && ( a . redirectedFrom = v ( n , r ) ) , Object . freeze ( a ) } function m ( e ) { if ( Array . isArray ( e ) ) return e . map ( m ) ; if ( e && "object" == typeof e ) { var t = { } ; for ( var n in e ) t [ n ] = m ( e [ n ] ) ; return t } return e } var g = _ ( null , { path : "/" } ) ; function b ( e ) { for ( var t = [ ] ; e ; ) t . unshift ( e ) , e = e . parent ; return t } function v ( e , t ) { var n = e . path , i = e . query ; void 0 === i && ( i = { } ) ; var r = e . hash ; return void 0 === r && ( r = "" ) , ( n || "/" ) + ( t || h ) ( i ) + r } function E ( e , t ) { return t === g ? e === t : ! ! t && ( e . path && t . path ? e . path . replace ( f , "" ) === t . path . replace ( f , "" ) && e . hash === t . hash && S ( e . query , t . query ) : ! ( ! e . name || ! t . name ) && ( e . name === t . name && e . hash === t . hash && S ( e . query , t . query ) && S ( e . params , t . params ) ) ) } function S ( e , t ) { if ( void 0 === e && ( e = { } ) , void 0 === t && ( t = { } ) , ! e || ! t ) return e === t ; var n = Object . keys ( e ) , i = Object . keys ( t ) ; return n . length === i . length && n . every ( function ( n ) { var i = e [ n ] , r = t [ n ] ; return "object" == typeof i && "object" == typeof r ? S ( i , r ) : String ( i ) === String ( r ) } ) } function y ( e , t , n ) { var i = e . charAt ( 0 ) ; if ( "/" === i ) return e ; if ( "?" === i || "#" === i ) return t + e ; var r = t . split ( "/" ) ; n && r [ r . length - 1 ] || r . pop ( ) ; for ( var o = e . replace ( /^\// , "" ) . split ( "/" ) , a = 0 ; a < o . length ; a ++ ) { var s = o [ a ] ; ".." === s ? r . pop ( ) : "." !== s && r . push ( s ) } return "" !== r [ 0 ] && r . unshift ( "" ) , r . join ( "/" ) } function x ( e ) { return e . replace ( /\/\//g , "/" ) } var C = Array . isArray || function ( e ) { return "[object Array]" == Object . prototype . toString . call ( e ) } , T = U , w = k , O = function ( e , t ) { return D ( k ( e , t ) ) } , N = D , R = B , I = new RegExp ( [ "(\\\\.)" , "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))" ] . join ( "|" ) , "g" ) ; function k ( e , t ) { for ( var n , i = [ ] , r = 0 , o = 0 , a = "" , s = t && t . delimiter || "/" ; null != ( n = I . exec ( e ) ) ; ) { var l = n [ 0 ] , c = n [ 1 ] , d = n . index ; if ( a += e . slice ( o , d ) , o = d + l . length , c ) a += c [ 1 ] ; else { var u = e [ o ] , p = n [ 2 ] , h = n [ 3 ] , f = n [ 4 ] , _ = n [ 5 ] , m = n [ 6 ] , g = n [ 7 ] ; a && ( i
2019-09-25 17:47:38 +08:00
/ * *
* Checks if an event is supported in the current execution environment .
*
* NOTE : This will not work correctly for non - generic events such as ` change ` ,
* ` reset ` , ` load ` , ` error ` , and ` select ` .
*
* Borrows from Modernizr .
*
* @ param { string } eventNameSuffix Event name , e . g . "click" .
* @ param { ? boolean } capture Check if the capture phase is supported .
* @ return { boolean } True if the event is supported .
* @ internal
* @ license Modernizr 3.0 . 0 pre ( Custom Build ) | MIT
2019-11-07 10:52:51 +08:00
* / , e . e x p o r t s = f u n c t i o n ( e , t ) { i f ( ! r . c a n U s e D O M | | t & & ! ( " a d d E v e n t L i s t e n e r " i n d o c u m e n t ) ) r e t u r n ! 1 ; v a r n = " o n " + e , o = n i n d o c u m e n t ; i f ( ! o ) { v a r a = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; a . s e t A t t r i b u t e ( n , " r e t u r n ; " ) , o = " f u n c t i o n " = = t y p e o f a [ n ] } r e t u r n ! o & & i & & " w h e e l " = = = e & & ( o = d o c u m e n t . i m p l e m e n t a t i o n . h a s F e a t u r e ( " E v e n t s . w h e e l " , " 3 . 0 " ) ) , o } } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r i = ! ( " u n d e f i n e d " = = t y p e o f w i n d o w | | ! w i n d o w . d o c u m e n t | | ! w i n d o w . d o c u m e n t . c r e a t e E l e m e n t ) , r = { c a n U s e D O M : i , c a n U s e W o r k e r s : " u n d e f i n e d " ! = t y p e o f W o r k e r , c a n U s e E v e n t L i s t e n e r s : i & & ! ( ! w i n d o w . a d d E v e n t L i s t e n e r & & ! w i n d o w . a t t a c h E v e n t ) , c a n U s e V i e w p o r t : i & & ! ! w i n d o w . s c r e e n , i s I n W o r k e r : ! i } ; e . e x p o r t s = r } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; t . _ _ e s M o d u l e = ! 0 ; v a r i , r = " f u n c t i o n " = = t y p e o f S y m b o l & & " s y m b o l " = = t y p e o f S y m b o l . i t e r a t o r ? f u n c t i o n ( e ) { r e t u r n t y p e o f e } : f u n c t i o n ( e ) { r e t u r n e & & " f u n c t i o n " = = t y p e o f S y m b o l & & e . c o n s t r u c t o r = = = S y m b o l & & e ! = = S y m b o l . p r o t o t y p e ? " s y m b o l " : t y p e o f e } , o = n ( 1 4 0 ) , a = ( i = o ) & & i . _ _ e s M o d u l e ? i : { d e f a u l t : i } ; v a r s , l = l | | { } ; l . D i a l o g = f u n c t i o n ( e , t , n ) { v a r i = t h i s ; i f ( t h i s . d i a l o g N o d e = e , n u l l = = = t h i s . d i a l o g N o d e | | " d i a l o g " ! = = t h i s . d i a l o g N o d e . g e t A t t r i b u t e ( " r o l e " ) ) t h r o w n e w E r r o r ( " D i a l o g ( ) r e q u i r e s a D O M e l e m e n t w i t h A R I A r o l e o f d i a l o g . " ) ; " s t r i n g " = = t y p e o f t ? t h i s . f o c u s A f t e r C l o s e d = d o c u m e n t . g e t E l e m e n t B y I d ( t ) : " o b j e c t " = = = ( v o i d 0 = = = t ? " u n d e f i n e d " : r ( t ) ) ? t h i s . f o c u s A f t e r C l o s e d = t : t h i s . f o c u s A f t e r C l o s e d = n u l l , " s t r i n g " = = t y p e o f n ? t h i s . f o c u s F i r s t = d o c u m e n t . g e t E l e m e n t B y I d ( n ) : " o b j e c t " = = = ( v o i d 0 = = = n ? " u n d e f i n e d " : r ( n ) ) ? t h i s . f o c u s F i r s t = n : t h i s . f o c u s F i r s t = n u l l , t h i s . f o c u s F i r s t ? t h i s . f o c u s F i r s t . f o c u s ( ) : a . d e f a u l t . f o c u s F i r s t D e s c e n d a n t ( t h i s . d i a l o g N o d e ) , t h i s . l a s t F o c u s = d o c u m e n t . a c t i v e E l e m e n t , s = f u n c t i o n ( e ) { i . t r a p F o c u s ( e ) } , t h i s . a d d L i s t e n e r s ( ) } , l . D i a l o g . p r o t o t y p e . a d d L i s t e n e r s = f u n c t i o n ( ) { d o c u m e n t . a d d E v e n t L i s t e n e r ( " f o c u s " , s , ! 0 ) } , l . D i a l o g . p r o t o t y p e . r e m o v e L i s t e n e r s = f u n c t i o n ( ) { d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " f o c u s " , s , ! 0 ) } , l . D i a l o g . p r o t o t y p e . c l o s e D i a l o g = f u n c t i o n ( ) { v a r e = t h i s ; t h i s . r e m o v e L i s t e n e r s ( ) , t h i s . f o c u s A f t e r C l o s e d & & s e t T i m e o u t ( f u n c t i o n ( ) { e . f o c u s A f t e r C l o s e d . f o c u s ( ) } ) } , l . D i a l o g . p r o t o t y p e . t r a p F o c u s = f u n c t i o n ( e ) { a . d e f a u l t . I g n o r e U t i l F o c u s C h a n g e s | | ( t h i s . d i a l o g N o d e . c o n t a i n s ( e . t a r g e t ) ? t h i s . l a s t F o c u s = e . t a r g e t : ( a . d e f a u l t . f o c u s F i r s t D e s c e n d a n t ( t h i s . d i a l o g N o d e ) , t h i s . l a s t F o c u s = = = d o c u m e n t . a c t i v e E l e m e n t & & a . d e f a u l t . f o c u s L a s t D e s c e n d a n t ( t h i s . d i a l o g N o d e ) , t h i s . l a s t F o c u s = d o c u m e n t . a c t i v e E l e m e n t ) ) } , t . d e f a u l t = l . D i a l o g } , f u n c t i o n ( e , t , n ) { e . e x p o r t s = { d e f a u l t : n ( 4 5 3 ) , _ _ e s M o d u l e : ! 0 } } , f u n c t i o n ( e , t , n ) { n ( 4 5 4 ) , e . e x p o r t s = n ( 7 1 ) . O b j e c t . a s s i g n } , f u n c t i o n ( e , t , n ) { v a r i = n ( 1 4 1 ) ; i ( i . S + i . F , " O b j e c t " , { a s s i g n : n ( 4 5 7 ) } ) } , f u n c t i o n ( e , t , n ) { v a r i = n ( 4 5 6 ) ; e . e x p o r t s = f u n c t i o n ( e , t , n ) { i f ( i ( e ) , v o i d 0 = = = t ) r e t u r n e ; s w i t c h ( n ) { c a s e 1 : r e t u r n f u n c t i o n ( n ) { r e t u r n e . c a l l ( t , n ) } ; c a s e 2 : r e t u r n f u n c t i o n ( n , i ) { r e t u r n e . c a l l ( t , n , i ) } ; c a s e 3 : r e t u r n f u n c t i o n ( n , i , r ) { r e t u r n e . c a l l ( t , n , i , r ) } } r e t u r n f u n c t i o n ( ) { r e t u r n e . a p p l y ( t , a r g u m e n t s ) } } } , f u n c t i o n ( e , t ) { e . e x p o r t s = f u n c t i o n ( e ) { i f ( " f u n c t i o n " ! = t y p e o f e ) t h r o w T y p e E r r o r ( e + " i s n o t a f u n c t i o n ! " ) ; r e t u r n e } } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r i = n ( 9 5 ) , r = n ( 1 4 8 ) , o = n ( 9 8 ) , a = n ( 2 0 3 ) , s = n ( 2 0 1 ) , l = O b j e c t . a s s i g n ; e . e x p o r t s = ! l | | n ( 7 3 ) ( f u n c t i o n ( ) { v a r e = { } , t = { } , n = S y m b o l ( ) , i = " a b c d e f g h i j k l m n o p q r s t " ; r e t u r n e [ n ] = 7 , i . s p l i t ( " " ) . f o r E a c h ( f u n c t i o n ( e ) { t [ e ] = e } ) , 7 ! = l ( { } , e ) [ n ] | | O b j e c t . k e y s ( l ( { } , t ) ) . j o i n ( " " ) ! = i } ) ? f u n c t i o n ( e , t ) { f o r ( v a r n = a ( e ) , l = a r g u m e n t s . l e n g t h , c = 1 , d = r . f , u = o . f ; l > c ; ) f o r ( v a r p , h = s ( a r g u m e n t s [ c + + ] ) , f = d ? i ( h ) . c o n c a t ( d ( h ) ) : i ( h ) , _ = f . l e n g t h , m = 0 ; _ > m ; ) u . c a l l ( h , p = f [ m + + ] ) & & ( n [ p ] = h [ p ] ) ; r e t u r n n } : l } , f u n c t i o n ( e , t , n ) { v a r i = n ( 6 3 ) , r = n ( 4 5 9 ) , o = n ( 4 6 0 ) ; e . e x p o r t s = f u n c t i o n ( e ) { r e t u r n f u n c t i o n ( t , n , a ) { v a r s , l = i ( t ) , c = r ( l . l e n g t h ) , d = o ( a , c ) ; i f ( e & & n ! = n ) { f o r ( ; c > d ; ) i f ( ( s = l [ d + + ] ) ! = s ) r e t u r n ! 0 } e l s e f o r ( ; c > d ; d + + ) i f ( ( e | | d i n l ) & & l [ d ] = = = n ) r e t u r n e | | d | | 0 ; r e t u r n ! e & & - 1 } } } , f u n c t i o n ( e , t , n ) { v a r i = n ( 1 4 4 ) , r = M a t h . m i n ; e . e x p o r t s = f u n c t i o n ( e ) { r e t u r n e > 0 ? r ( i ( e ) , 9 0 0 7 1 9 9 2 5 4 7 4 0 9 9 1 ) : 0 } } , f u n c t i o n ( e , t , n ) { v a r i = n ( 1 4 4 ) , r = M a t h . m a x , o = M a t h . m i n ; e . e x p o r t s = f u n c t i o n ( e , t ) { r e t u r n ( e = i ( e ) ) < 0 ? r ( e + t , 0 ) : o ( e , t ) } } , f u n c t i o n ( e , t , n ) { e . e x p o r t s = { d e f a u l t : n ( 4 6 2 ) , _ _ e s M o d u l e : ! 0 } } , f u n c t i o n ( e , t , n ) { n ( 4 6 3 ) , n ( 4 6 9 ) , e . e x p o r t s = n ( 1 5 1 ) . f ( " i t e r a t o r " ) } , f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r i = n ( 4 6 4 ) ( ! 0 ) ; n ( 2 0 4 ) ( S t r i n g , " S t r i n g " , f u n c t i o n ( e ) { t h i s . _ t = S t r i n g ( e ) , t h i s . _ i = 0 } , f u n c t i o n ( ) { v a r e , t = t h i s . _ t , n = t h i s . _ i ; r e t u r n n > = t . l e n g t h ? { v a l u e : v o i d 0 , d o n e : ! 0 } : ( e = i
2019-10-20 18:01:27 +08:00
/ * *
* @ Name : 基于layui的tree重写
* @ Author : 李祥
* @ License : MIT
* 最近修改时间 : 2019 / 09 / 24
2019-11-07 10:52:51 +08:00
* /layui.define(["jquery","laytpl"],function(e){var t=layui.jquery,i=layui.laytpl,r=layui.hint(),o={on:function(e,t){return layui.onevent.call(this,"eleTree",e,t)},render:function(e){var t=new l(e);return a.call(t)}},a=function(){var e=this,t=e.config;return{updateKeyChildren:function(n,i){if(0!==t.data.length)return e.updateKeyChildren.call(e,n,i)},updateKeySelf:function(n,i){if(0!==t.data.length)return e.updateKeySelf.call(e,n,i)},remove:function(n){if(0!==t.data.length)return e.remove.call(e,n)},append:function(n,i){if(0!==t.data.length)return e.append.call(e,n,i)},insertBefore:function(n,i){if(0!==t.data.length)return e.insertBefore.call(e,n,i)},insertAfter:function(n,i){if(0!==t.data.length)return e.insertAfter.call(e,n,i)},getChecked:function(n,i){if(0!==t.data.length)return e.getChecked.call(e,n,i)},setChecked:function(n,i){if(0!==t.data.length)return e.setChecked.call(e,n,i)},unCheckNodes:function(){if(0!==t.data.length)return e.unCheckNodes.call(e)},unCheckArrNodes:function(n){if(0!==t.data.length)return e.unCheckArrNodes.call(e,n)},expandAll:function(){if(0!==t.data.length)return e.expandAll.call(e)},expandNode:function(n){if(0!==t.data.length)return e.expandNode.call(e,n)},unExpandNode:function(n){if(0!==t.data.length)return e.unExpandNode.call(e,n)},toggleExpandNode:function(n){if(0!==t.data.length)return e.toggleExpandNode.call(e,n)},unExpandAll:function(){if(0!==t.data.length)return e.unExpandAll.call(e)},reload:function(t){return e.reload.call(e,t)},search:function(t){return e.search.call(e,t)},getAllNodeData:function(){return e.getAllNodeData.call(e)}}},s=function(e,t,n){return["{{# for(var i=0;i<d.length;i++){ }}",'<div class="eleTree-node {{# if(d[i].visible===false){ }}eleTree-search-hide{{# } }}" data-padding="'+e.indent*t+'" data-'+e.customKey+'="{{d[i]["'+e.request.key+'"]}}" eletree-floor="'+t+'">',e.showLine?0!==t?'<i class="eleTree-node-verticalline" style="left: '+(9+e.indent*(t-1))+'px;"></i > < i class = "eleTree-node-horizontalline" style = "width: '+(e.indent-4)+" px ; left : "+(9+e.indent*(t-1))+'px;" > < /i>':'<i class="eleTree-node-verticalline" style="left: '+(9+e.indent*(t-1))+'px;display: none;"></i > < i class = "eleTree-node-horizontalline" style = "width: '+(e.indent-4)+" px ; left : "+(9+e.indent*(t-1))+'px;display: none;" > < /i>':"",'<div class="eleTree-node-content" style="padding-left: '+e.indent*t+'px;">','<span class="eleTree-node-content-icon">','<i class="layui-icon layui-icon-triangle-r ',e.lazy?['{{# if(!d[i]["'+e.request.isLeaf+'"]){ }}','lazy-icon" ></i > ',"{{# }else{ }}",' leaf - icon " style=" color : transparent ; " ></i>'," { { # } } } "].join(" "):['{{# if(!d[i][" '+e.request.children+' "] || d[i][" '+e.request.children+' "].length===0){ }}','leaf-icon" style = "color: transparent;" ',"{{# } }}",' "></i>'].join(" ")," < /span>",function(){if(e.showCheckbox){var t="";return t=e.checkStrictly?'"0"':"1"===n?'"1" checked':"2"===n?'"2"':'"0"',['{{# if(d[i]["'+e.request.checked+'"]) { }}','<input type="checkbox" name="eleTree-node" lay-ignore eleTree-status="1" checked data-checked class="layui-hide eleTree-hideen ',"{{# }else{ }}",'<input type="checkbox" name="eleTree-node" lay-ignore eleTree-status='+t+' class="layui-hide eleTree-hideen ',"{{# } }}",'{{# if(d[i]["'+e.request.disabled+'"]) { }}',"eleTree-disabled","{{# } }}",'" / > '].join("")}return""}(),' < span class = "eleTree-node-content-label" > { { d [ i ] [ "'+e.request.name+'" ] } } < / s p a n > ' , " < / d i v > " , ' < d i v c l a s s = " e l e T r e e - n o d e - g r o u p " s t y l e = " d i s p l a y : n o n e ; " > ' , " < / d i v > " , " < / d i v > " , " { { # } } } " ] . j o i n ( " " ) } , l = f u n c t i o n ( e ) { e . r e s p o n s e = t . e x t e n d ( { } , t h i s . c o n f i g . r e s p o n s e , e . r e s p o n s e ) , e . r e q u e s t = t . e x t e n d ( { } , t h i s . c o n f i g . r e q u e s t , e . r e q u e s t ) , t h i s . c o n f i g = t . e x t e n d ( { } , t h i s . c o n f i g , e ) , t h i s . c o n f i g . c u s t o m K e y = t h i s . c u s t o m K e y I n i t ( ) , t h i s . p r e v C l i c k E l e = n u l l , t h i s . n a m e I n d e x = 1 , t h i s . i s R e n d e r A l l D o m = ! 1 , t h i s . r e n d e r ( ) } ; l . p r o t o t y p e = { c o n s t r u c t o r : l , c o n f i g : { e l e m : " " , d a t a : [ ] , e m p t T e x t : " 暂 无 数 据 " , r e n d e r A f t e r E x p a n d : ! 0 , h i g h l i g h t C u r r e n t : ! 1 , d e f a u l t E x p a n d A l l : ! 1 , e x p a n d O n C l i c k N o d e : ! 0 , c h e c k O n C l i c k N o d e : ! 1 , d e f a u l t E x p a n d e d K e y s : [ ] , a u t o E x p a n d P a r e n t : ! 0 , s h o w C h e c k b o x : ! 1 , c h e c k S t r i c t l y : ! 1 , d e f a u l t C h e c k e d K e y s : [ ] , a c c o r d i o n : ! 1 , i n d e n t : 1 6 , l a z y : ! 1 , l o a d : f