/*! fineui 2019-05-07 14:52:57 */
function _classCallCheck ( a , b ) { if ( ! ( a instanceof b ) ) throw new TypeError ( "Cannot call a class as a function" ) } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , null == _global . BI && ( _global . BI = { prepares : [ ] } ) , null == _global . BI . prepares && ( _global . BI . prepares = [ ] ) , function ( ) { function a ( a , b , c ) { switch ( c . length ) { case 0 : return a . call ( b ) ; case 1 : return a . call ( b , c [ 0 ] ) ; case 2 : return a . call ( b , c [ 0 ] , c [ 1 ] ) ; case 3 : return a . call ( b , c [ 0 ] , c [ 1 ] , c [ 2 ] ) } return a . apply ( b , c ) } function b ( a , b , c , d ) { for ( var e = - 1 , f = null == a ? 0 : a . length ; ++ e < f ; ) { var g = a [ e ] ; b ( d , g , c ( g ) , a ) } return d } function c ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d && b ( a [ c ] , c , a ) !== ! 1 ; ) ; return a } function d ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( ! b ( a [ c ] , c , a ) ) return ! 1 ; return ! 0 } function e ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; b ( g , c , a ) && ( f [ e ++ ] = g ) } return f } function f ( a , b ) { var c = null == a ? 0 : a . length ; return ! ! c && o ( a , b , 0 ) > - 1 } function g ( a , b , c ) { for ( var d = - 1 , e = null == a ? 0 : a . length ; ++ d < e ; ) if ( c ( b , a [ d ] ) ) return ! 0 ; return ! 1 } function h ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = Array ( d ) ; ++ c < d ; ) e [ c ] = b ( a [ c ] , c , a ) ; return e } function i ( a , b ) { for ( var c = - 1 , d = b . length , e = a . length ; ++ c < d ; ) a [ e + c ] = b [ c ] ; return a } function j ( a , b , c , d ) { var e = - 1 , f = null == a ? 0 : a . length ; for ( d && f && ( c = a [ ++ e ] ) ; ++ e < f ; ) c = b ( c , a [ e ] , e , a ) ; return c } function k ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( b ( a [ c ] , c , a ) ) return ! 0 ; return ! 1 } function l ( a ) { return a . split ( "" ) } function m ( a , b , c ) { var d ; return c ( a , function ( a , c , e ) { if ( b ( a , c , e ) ) return d = c , ! 1 } ) , d } function n ( a , b , c , d ) { for ( var e = a . length , f = c + ( d ? 1 : - 1 ) ; d ? f -- : ++ f < e ; ) if ( b ( a [ f ] , f , a ) ) return f ; return - 1 } function o ( a , b , c ) { return b === b ? J ( a , b , c ) : n ( a , p , c ) } function p ( a ) { return a !== a } function q ( a ) { return function ( b ) { return null == b ? Ie : b [ a ] } } function r ( a ) { return function ( b ) { return null == a ? Ie : a [ b ] } } function s ( a , b , c , d , e ) { return e ( a , function ( a , e , f ) { c = d ? ( d = ! 1 , a ) : b ( c , a , e , f ) } ) , c } function t ( a , b ) { var c = a . length ; for ( a . sort ( b ) ; c -- ; ) a [ c ] = a [ c ] . value ; return a } function u ( a , b ) { for ( var c = - 1 , d = Array ( a ) ; ++ c < a ; ) d [ c ] = b ( c ) ; return d } function v ( a ) { return function ( b ) { return a ( b ) } } function w ( a , b ) { return h ( b , function ( b ) { return a [ b ] } ) } function x ( a , b ) { return a . has ( b ) } function y ( a , b ) { for ( var c = - 1 , d = a . length ; ++ c < d && o ( b , a [ c ] , 0 ) > - 1 ; ) ; return c } function z ( a , b ) { for ( var c = a . length ; c -- && o ( b , a [ c ] , 0 ) > - 1 ; ) ; return c } function A ( a , b ) { for ( var c = a . length , d = 0 ; c -- ; ) a [ c ] === b && ++ d ; return d } function B ( a , b ) { return null == a ? Ie : a [ b ] } function C ( a ) { return Cg . test ( a ) } function D ( a ) { for ( var b , c = [ ] ; ! ( b = a . next ( ) ) . done ; ) c . push ( b . value ) ; return c } function E ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a , d ) { c [ ++ b ] = [ d , a ] } ) , c } function F ( a , b ) { return function ( c ) { return a ( b ( c ) ) } } function G ( a , b ) { for ( var c = - 1 , d = a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; g !== b && g !== Oe || ( a [ c ] = Oe , f [ e ++ ] = c ) } return f } function H ( a , b ) { return "__proto__" == b ? Ie : a [ b ] } function I ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a ) { c [ ++ b ] = a } ) , c } function J ( a , b , c ) { for ( var d = c - 1 , e = a . length ; ++ d < e ; ) if ( a [ d ] === b ) return d ; return - 1 } function K ( a ) { return C ( a ) ? M ( a ) : Vg ( a ) } function L ( a ) { return C ( a ) ? N ( a ) : l ( a ) } function M ( a ) { for ( var b = Bg . lastIndex = 0 ; Bg . test ( a ) ; ) ++ b ; return b } function N ( a ) { return a . match ( Bg ) || [ ] } function O ( a ) { if ( Td ( a ) && ! si ( a ) && ! ( a instanceof R ) ) { if ( a instanceof Q ) return a ; if ( ah . call ( a , "__wrapped__" ) ) return Xc ( a ) } return new Q ( a ) } function P ( ) { } function Q ( a , b ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _chain _ _ = ! ! b , this . _ _index _ _ = 0 , this . _ _values _ _ = Ie } function R ( a ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _dir _ _ = 1 , this . _ _filtered _ _ = ! 1 , this . _ _iteratees _ _ = [ ] , this . _ _takeCount _ _ = mf , this . _ _views _ _ = [ ] } function S ( ) { var a = new R ( this . _ _wrapped _ _ ) ; return a . _ _actions _ _ = Qb ( this . _ _actions _ _ ) , a . _ _dir _ _ = this . _ _dir _ _ , a . _ _filtered _ _ = this . _ _filtered _ _ , a . _ _iteratees _ _ = Qb ( this . _ _iteratees _ _ ) , a . _ _takeCount _ _ = this . _ _takeCount _ _ , a . _ _views _ _ = Qb ( this . _ _views _ _ ) , a } function T ( ) { if ( this . _ _filtered _ _ ) { var a = new R ( this ) ; a . _ _dir _ _ = - 1 , a . _ _filtered _ _ = ! 0 } else a = this . clone ( ) , a . _ _dir _ _ *= - 1 ; return a } function U ( ) { var a = this . _ _wrapped _ _ . value ( ) , b = this . _ _dir _ _ , c = si ( a ) , d = b < 0 , e = c ? a . length : 0 , f = uc ( 0 , e , this . _ _views _ _ ) , g = f . start , h = f . end , i = h - g , j = d ? h : g - 1 , k = this . _ _ite
var d = null == a ? Ie : Oa ( a , b ) ; return d === Ie ? c : d } function je ( a , b ) { return null != a && wc ( a , b , Sa ) } function ke ( a , b ) { return null != a && wc ( a , b , Ta ) } function le ( a ) { return Kd ( a ) ? ua ( a ) : gb ( a ) } function me ( a ) { return Kd ( a ) ? ua ( a , ! 0 ) : hb ( a ) } function ne ( a , b ) { return oe ( a , Dd ( fb ( b ) ) ) } function oe ( a , b ) { if ( null == a ) return { } ; var c = h ( nc ( a ) , function ( a ) { return [ a ] } ) ; return b = fb ( b ) , qb ( a , c , function ( a , c ) { return b ( a , c [ 0 ] ) } ) } function pe ( a , b , c ) { b = Eb ( b , a ) ; var d = - 1 , e = b . length ; for ( e || ( e = 1 , a = Ie ) ; ++ d < e ; ) { var f = null == a ? Ie : a [ Uc ( b [ d ] ) ] ; f === Ie && ( d = e , f = c ) , a = Qd ( f ) ? f . call ( a ) : f } return a } function qe ( a ) { return null == a ? [ ] : w ( a , le ( a ) ) } function re ( a , b , c ) { return c === Ie && ( c = b , b = Ie ) , c !== Ie && ( c = ce ( c ) , c = c === c ? c : 0 ) , b !== Ie && ( b = ce ( b ) , b = b === b ? b : 0 ) , Da ( ce ( a ) , b , c ) } function se ( a , b , c ) { if ( c && "boolean" != typeof c && Dc ( a , b , c ) && ( b = c = Ie ) , c === Ie && ( "boolean" == typeof b ? ( c = b , b = Ie ) : "boolean" == typeof a && ( c = a , a = Ie ) ) , a === Ie && b === Ie ? ( a = 0 , b = 1 ) : ( a = ae ( a ) , b === Ie ? ( b = a , a = 0 ) : b = ae ( b ) ) , a > b ) { var d = a ; a = b , b = d } if ( c || a % 1 || b % 1 ) { var e = Ch ( ) ; return Ah ( a + e * ( b - a + Gg ( "1e-" + ( ( e + "" ) . length - 1 ) ) ) , b ) } return sb ( a , b ) } function te ( a ) { return a = ee ( a ) , a && Uf . test ( a ) ? a . replace ( Tf , Wg ) : a } function ue ( a , b , c ) { if ( a = ee ( a ) , a && ( c || b === Ie ) ) return a . replace ( Zf , "" ) ; if ( ! a || ! ( b = yb ( b ) ) ) return a ; var d = L ( a ) , e = L ( b ) , f = y ( d , e ) , g = z ( d , e ) + 1 ; return Fb ( d , f , g ) . join ( "" ) } function ve ( a ) { return function ( ) { return a } } function we ( a ) { return a } function xe ( a ) { return fb ( "function" == typeof a ? a : Ea ( a , Pe ) ) } function ye ( a ) { return kb ( Ea ( a , Pe ) ) } function ze ( a , b , d ) { var e = le ( b ) , f = Na ( b , e ) ; null != d || Sd ( b ) && ( f . length || ! e . length ) || ( d = b , b = a , a = this , f = Na ( b , le ( b ) ) ) ; var g = ! ( Sd ( d ) && "chain" in d && ! d . chain ) , h = Qd ( a ) ; return c ( f , function ( c ) { var d = b [ c ] ; a [ c ] = d , h && ( a . prototype [ c ] = function ( ) { var b = this . _ _chain _ _ ; if ( g || b ) { var c = a ( this . _ _wrapped _ _ ) , e = c . _ _actions _ _ = Qb ( this . _ _actions _ _ ) ; return e . push ( { func : d , args : arguments , thisArg : a } ) , c . _ _chain _ _ = b , c } return d . apply ( a , i ( [ this . value ( ) ] , arguments ) ) } ) } ) , a } function Ae ( ) { return Kg . _ === this && ( Kg . _ = fh ) , this } function Be ( ) { } function Ce ( a ) { return Ec ( a ) ? q ( Uc ( a ) ) : rb ( a ) } function De ( ) { return [ ] } function Ee ( ) { return ! 1 } function Fe ( a ) { var b = ++ bh ; return ee ( a ) + b } function Ge ( a ) { return a && a . length ? Ia ( a , we , Ra ) : Ie } function He ( a ) { return a && a . length ? Ia ( a , we , ib ) : Ie } var Ie , Je = "4.17.5" , Ke = 200 , Le = "Expected a function" , Me = "__lodash_hash_undefined__" , Ne = 500 , Oe = "__lodash_placeholder__" , Pe = 1 , Qe = 2 , Re = 4 , Se = 1 , Te = 2 , Ue = 1 , Ve = 2 , We = 4 , Xe = 8 , Ye = 16 , Ze = 32 , $e = 64 , _e = 128 , af = 256 , bf = 512 , cf = 800 , df = 16 , ef = 1 , ff = 2 , gf = 3 , hf = 1 / 0 , jf = 9007199254740991 , kf = 1.7976931348623157 e308 , lf = NaN , mf = 4294967295 , nf = [ [ "ary" , _e ] , [ "bind" , Ue ] , [ "bindKey" , Ve ] , [ "curry" , Xe ] , [ "curryRight" , Ye ] , [ "flip" , bf ] , [ "partial" , Ze ] , [ "partialRight" , $e ] , [ "rearg" , af ] ] , of = "[object Arguments]" , pf = "[object Array]" , qf = "[object AsyncFunction]" , rf = "[object Boolean]" , sf = "[object Date]" , tf = "[object Error]" , uf = "[object Function]" , vf = "[object GeneratorFunction]" , wf = "[object Map]" , xf = "[object Number]" , yf = "[object Null]" , zf = "[object Object]" , Af = "[object Promise]" , Bf = "[object Proxy]" , Cf = "[object RegExp]" , Df = "[object Set]" , Ef = "[object String]" , Ff = "[object Symbol]" , Gf = "[object Undefined]" , Hf = "[object WeakMap]" , If = "[object ArrayBuffer]" , Jf = "[object DataView]" , Kf = "[object Float32Array]" , Lf = "[object Float64Array]" , Mf = "[object Int8Array]" , Nf = "[object Int16Array]" , Of = "[object Int32Array]" , Pf = "[object Uint8Array]" , Qf = "[object Uint8ClampedArray]" , Rf = "[object Uint16Array]" , Sf = "[object Uint32Array]" , Tf = /[&<>"']/g , Uf = RegExp ( Tf . source ) , Vf = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/ , Wf = /^\w*$/ , Xf = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g , Yf = /[\\^$.*+?()[\]{}|]/g , Zf = /^\s+|\s+$/g , $f = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/ , _f = /\{\n\/\* \[wrapped with (.+)\] \*/ , ag = /,? & / , bg = /\\(\\)?/g , cg = /\w*$/ , dg = /^[-+]0x[0-9a-f]+$/i , eg = /^0b[01]+$/i , fg = /^\[object .+?Constructor\]$/ , gg = /^0o[0-7]+$/i , hg = /^(?:0|[1-9]\d*)$/ , ig = "\\ud800-\\udfff" , jg = "\\u0300-\\u036f" , kg = "\\ufe20-\\ufe2f" , lg = "\\u20d0-\\u20ff" , mg = jg + kg + lg , ng = "\\ufe0e\\ufe0f" , og = "[" + ig + "]" , pg = "[" + mg + "]" , qg = "\\ud83c[\\udffb-\\udfff]" , rg = "(?:" + pg + "|" + qg + ")" , sg = "[^" + ig + "]" , tg = "(?:\\ud83c[\\udde6-\\uddff]){2}" , ug = "[\\ud800-\\udbff][\\udc00-\\udfff]" , vg = "\\u200d" , wg = rg + "?" , xg = "[" + ng + "]?" , yg = "(?:" +
this . un ( a , c ) } ; this . on ( a , c ) } , un : function ( a , b ) { if ( a = a . toLowerCase ( ) , null == b ) delete this . _getEvents ( ) [ a ] ; else { var c = this . _getEvents ( ) [ a ] ; if ( _ . isArray ( c ) ) { var d = [ ] ; _ . each ( c , function ( a ) { a != b && d . push ( a ) } ) , this . _getEvents ( ) [ a ] = d } } } , purgeListeners : function ( ) { this . events = [ ] } , fireEvent : function ( ) { var a = arguments [ 0 ] . toLowerCase ( ) , b = this . _getEvents ( ) [ a ] ; if ( BI . isArray ( b ) ) if ( BI . isArguments ( arguments [ 1 ] ) ) { for ( var c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , arguments [ 1 ] ) === ! 1 ) return ! 1 } else for ( var d = Array . prototype . slice . call ( arguments , 1 ) , c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , d ) === ! 1 ) return ! 1 ; return ! 0 } , destroy : function ( ) { this . destroyed && this . destroyed ( ) , this . _purgeRef ( ) , this . purgeListeners ( ) } } ) } ( ) , ! function ( ) { BI . Widget = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Widget . superclass . _defaultConfig . apply ( this ) , { root : ! 1 , tagName : "div" , attributes : null , data : null , tag : null , disabled : ! 1 , invisible : ! 1 , invalid : ! 1 , baseCls : "" , extraCls : "" , cls : "" } ) } , beforeInit : null , beforeCreate : null , created : null , render : null , beforeMount : null , mounted : null , shouldUpdate : null , update : function ( ) { } , beforeDestroy : null , destroyed : null , _init : function ( ) { BI . Widget . superclass . _init . apply ( this , arguments ) , this . _initRoot ( ) , this . _initElementWidth ( ) , this . _initElementHeight ( ) , this . _initVisual ( ) , this . _initState ( ) , this . _initRender ( ) } , _initRender : function ( ) { this . beforeInit ? ( this . _ _asking = ! 0 , this . beforeInit ( BI . bind ( this . _render , this ) ) , this . _ _asking === ! 0 && ( this . _ _async = ! 0 ) ) : this . _render ( ) } , _render : function ( ) { this . _ _asking = ! 1 , this . beforeCreate && this . beforeCreate ( ) , this . _initElement ( ) , this . _initEffects ( ) , this . created && this . created ( ) } , _initRoot : function ( ) { var a = this . options ; this . widgetName = a . widgetName || BI . uniqueId ( "widget" ) , this . _isRoot = a . root , BI . isWidget ( a . element ) ? ( a . element instanceof BI . Widget ? ( this . _parent = a . element , this . _parent . addWidget ( this . widgetName , this ) ) : this . _isRoot = ! 0 , this . element = this . options . element . element ) : a . element ? ( this . element = BI . Widget . _renderEngine . createElement ( this ) , this . _isRoot = ! 0 ) : this . element = BI . Widget . _renderEngine . createElement ( this ) , this . element . _isWidget = ! 0 , ( a . _baseCls || a . baseCls || a . extraCls || a . cls ) && this . element . addClass ( ( a . _baseCls || "" ) + " " + ( a . baseCls || "" ) + " " + ( a . extraCls || "" ) + " " + ( a . cls || "" ) ) , a . attributes && this . element . attr ( a . attributes ) , a . data && this . element . data ( a . data ) , this . _children = { } } , _initElementWidth : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . width ) && this . element . css ( "width" , a . width ) } , _initElementHeight : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . height ) && this . element . css ( "height" , a . height ) } , _initVisual : function ( ) { var a = this . options ; a . invisible && this . element . css ( "display" , "none" ) } , _initEffects : function ( ) { var a = this . options ; ( a . disabled || a . invalid ) && ( this . options . disabled && this . setEnable ( ! 1 ) , this . options . invalid && this . setValid ( ! 1 ) ) } , _initState : function ( ) { this . _isMounted = ! 1 } , _initElement : function ( ) { var a = this , b = this . render && this . render ( ) ; BI . isPlainObject ( b ) && ( b = [ b ] ) , BI . isArray ( b ) && BI . each ( b , function ( b , c ) { BI . createWidget ( c , { element : a } ) } ) , this . _mount ( ) } , _setParent : function ( a ) { this . _parent = a } , _mount : function ( a , b , c , d ) { var e = this ; return ! ! ( a || ! this . _isMounted && this . isVisible ( ) && this . _ _asking !== ! 0 && ( this . _isRoot === ! 0 || this . _parent && this . _parent . _isMounted === ! 0 ) ) && ( c !== ! 1 && this . beforeMount && this . beforeMount ( ) , this . _isMounted = ! 0 , this . _mountChildren && this . _mountChildren ( ) , BI . each ( this . _children , function ( f , g ) { ! e . isEnabled ( ) && g . _setEnable ( ! 1 ) , ! e . isValid ( ) && g . _setValid ( ! 1 ) , g . _mount && g . _mount ( ! ! b && a , b , c , d ) } ) , c !== ! 1 && this . mounted && this . mounted ( ) , this . fireEvent ( BI . Events . MOUNT ) , d && d ( this ) , ! 0 ) } , _mountChildren : null , isMounted : function ( ) { return this . _isMounted } , setWidth : function ( a ) { this . options . width = a , this . _initElementWidth ( ) } , setHeight : function ( a ) { this . options . height = a , this . _initElementHeight ( ) } , _setEnable : function ( a ) { a === ! 0 ? this . options . disabled = ! 1 : a === ! 1 && ( this . options . disabled = ! 0 ) , BI . each ( this . _children , function ( b , c ) { ! c . _manualSetEnable && c . _setEnable && c . _setEnable ( a ) } ) } , _setValid : function ( a ) { a === ! 0 ? this . options . invalid = ! 1 : a === ! 1 && ( this . options . invalid = ! 0 ) , BI . each ( this . _children , function ( b , c ) { ! c . _manualSetValid && c . _setValid && c . _setValid ( a ) } ) } , _set
19969 : "DZ" , 19975 : "WM" , 19988 : "QJ" , 20048 : "YL" , 20056 : "SC" , 20060 : "NM" , 20094 : "QG" , 20127 : "QJ" , 20167 : "QC" , 20193 : "YG" , 20250 : "KH" , 20256 : "ZC" , 20282 : "SC" , 20285 : "QJG" , 20291 : "TD" , 20314 : "YD" , 20315 : "BF" , 20340 : "NE" , 20375 : "TD" , 20389 : "YJ" , 20391 : "CZ" , 20415 : "PB" , 20446 : "YS" , 20447 : "SQ" , 20504 : "TC" , 20608 : "KG" , 20854 : "QJ" , 20857 : "ZC" , 20911 : "PF" , 20985 : "AW" , 21032 : "PB" , 21048 : "XQ" , 21049 : "SC" , 21089 : "YS" , 21119 : "JC" , 21242 : "SB" , 21273 : "SC" , 21305 : "YP" , 21306 : "QO" , 21330 : "ZC" , 21333 : "SDC" , 21345 : "QK" , 21378 : "CA" , 21397 : "SC" , 21414 : "XS" , 21442 : "SC" , 21477 : "JG" , 21480 : "TD" , 21484 : "ZS" , 21494 : "YX" , 21505 : "YX" , 21512 : "HG" , 21523 : "XH" , 21537 : "PB" , 21542 : "PF" , 21549 : "KH" , 21571 : "E" , 21574 : "DA" , 21588 : "TD" , 21589 : "O" , 21618 : "ZC" , 21621 : "KHA" , 21632 : "ZJ" , 21654 : "KG" , 21679 : "LKG" , 21683 : "KH" , 21710 : "A" , 21719 : "YH" , 21734 : "WOE" , 21769 : "A" , 21780 : "WN" , 21804 : "XH" , 21834 : "A" , 21899 : "ZD" , 21903 : "RN" , 21908 : "WO" , 21939 : "ZC" , 21956 : "SA" , 21964 : "YA" , 21970 : "TD" , 22003 : "A" , 22031 : "JG" , 22040 : "XS" , 22060 : "ZC" , 22066 : "ZC" , 22079 : "MH" , 22129 : "XJ" , 22179 : "XA" , 22237 : "NJ" , 22244 : "TD" , 22280 : "JQ" , 22300 : "YH" , 22313 : "XW" , 22331 : "YQ" , 22343 : "YJ" , 22351 : "PH" , 22395 : "DC" , 22412 : "TD" , 22484 : "PB" , 22500 : "PB" , 22534 : "ZD" , 22549 : "DH" , 22561 : "PB" , 22612 : "TD" , 22771 : "KQ" , 22831 : "HB" , 22841 : "JG" , 22855 : "QJ" , 22865 : "XQ" , 23013 : "ML" , 23081 : "WM" , 23487 : "SX" , 23558 : "QJ" , 23561 : "YW" , 23586 : "YW" , 23614 : "YW" , 23615 : "SN" , 23631 : "PB" , 23646 : "ZS" , 23663 : "ZT" , 23673 : "YG" , 23762 : "TD" , 23769 : "ZS" , 23780 : "QJ" , 23884 : "QK" , 24055 : "XH" , 24113 : "DC" , 24162 : "ZC" , 24191 : "GA" , 24273 : "QJ" , 24324 : "NL" , 24377 : "TD" , 24378 : "QJ" , 24439 : "PF" , 24554 : "ZS" , 24683 : "TD" , 24694 : "WE" , 24733 : "LK" , 24925 : "TN" , 25094 : "ZG" , 25100 : "XQ" , 25103 : "XH" , 25153 : "PB" , 25170 : "PB" , 25179 : "KG" , 25203 : "PB" , 25240 : "ZS" , 25282 : "FB" , 25303 : "NA" , 25324 : "KG" , 25341 : "ZY" , 25373 : "WZ" , 25375 : "XJ" , 25384 : "A" , 25457 : "A" , 25528 : "SD" , 25530 : "SC" , 25552 : "TD" , 25774 : "ZC" , 25874 : "ZC" , 26044 : "YW" , 26080 : "WM" , 26292 : "PB" , 26333 : "PB" , 26355 : "ZY" , 26366 : "CZ" , 26397 : "ZC" , 26399 : "QJ" , 26415 : "ZS" , 26451 : "SB" , 26526 : "ZC" , 26552 : "JG" , 26561 : "TD" , 26588 : "JG" , 26597 : "CZ" , 26629 : "ZS" , 26638 : "YL" , 26646 : "XQ" , 26653 : "KG" , 26657 : "XJ" , 26727 : "HG" , 26894 : "ZC" , 26937 : "ZS" , 26946 : "ZC" , 26999 : "KJ" , 27099 : "KJ" , 27449 : "YQ" , 27481 : "XS" , 27542 : "ZS" , 27663 : "ZS" , 27748 : "TS" , 27784 : "SC" , 27788 : "ZD" , 27795 : "TD" , 27812 : "O" , 27850 : "PB" , 27852 : "MB" , 27895 : "SL" , 27898 : "PL" , 27973 : "QJ" , 27981 : "KH" , 27986 : "HX" , 27994 : "XJ" , 28044 : "YC" , 28065 : "WG" , 28177 : "SM" , 28267 : "QJ" , 28291 : "KH" , 28337 : "ZQ" , 28463 : "TL" , 28548 : "DC" , 28601 : "TD" , 28689 : "PB" , 28805 : "JG" , 28820 : "QG" , 28846 : "PB" , 28952 : "TD" , 28975 : "ZC" , 29100 : "A" , 29325 : "QJ" , 29575 : "SL" , 29602 : "FB" , 30010 : "TD" , 30044 : "CX" , 30058 : "PF" , 30091 : "YSP" , 30111 : "YN" , 30229 : "XJ" , 30427 : "SC" , 30465 : "SX" , 30631 : "YQ" , 30655 : "QJ" , 30684 : "QJG" , 30707 : "SD" , 30729 : "XH" , 30796 : "LG" , 30917 : "PB" , 31074 : "NM" , 31085 : "JZ" , 31109 : "SC" , 31181 : "ZC" , 31192 : "MLB" , 31293 : "JQ" , 31400 : "YX" , 31584 : "YJ" , 31896 : "ZN" , 31909 : "ZY" , 31995 : "XJ" , 32321 : "PF" , 32327 : "ZY" , 32418 : "HG" , 32420 : "XQ" , 32421 : "HG" , 32438 : "LG" , 32473 : "GJ" , 32488 : "TD" , 32521 : "QJ" , 32527 : "PB" , 32562 : "ZSQ" , 32564 : "JZ" , 32735 : "ZD" , 32793 : "PB" , 33071 : "PF" , 33098 : "XL" , 33100 : "YA" , 33152 : "PB" , 33261 : "CX" , 33324 : "BP" , 33333 : "TD" , 33406 : "YA" , 33426 : "WM" , 33432 : "PB" , 33445 : "JG" , 33486 : "ZN" , 33493 : "TS" , 33507 : "QJ" , 33540 : "QJ" , 33544 : "ZC" , 33564 : "XQ" , 33617 : "YT" , 33632 : "QJ" , 33636 : "XH" , 33637 : "YX" , 33694 : "WG" , 33705 : "PF" , 33728 : "YW" , 33882 : "SR" , 34067 : "WM" , 34074 : "YW" , 34121 : "QJ" , 34255 : "ZC" , 34259 : "XL" , 34425 : "JH" , 34430 : "XH" , 34485 : "KH" , 34503 : "YS" , 34532 : "HG" , 34552 : "XS" , 34558 : "YE" , 34593 : "ZL" , 34660 : "YQ" , 34892 : "XH" , 34928 : "SC" , 34999 : "QJ" , 35048 : "PB" , 35059 : "SC" , 35098 : "ZC" , 35203 : "TQ" , 35265 : "JX" , 35299 : "JX" , 35782 : "SZ" , 35828 : "YS" , 35830 : "E" , 35843 : "TD" , 35895 : "YG" , 35977 : "MH" , 36158 : "JG" , 36228 : "QJ" , 36426 : "XQ" , 36466 : "DC" , 36710 : "JC" , 36711 : "ZYG" , 36767 : "PB" , 36866 : "SK" , 36951 : "YW" , 37034 : "YX" , 37063 : "XH" , 37218 : "ZC" , 37325 : "ZC" , 38063 : "PB" , 38079 : "TD" , 38085 : "QY" , 38107 : "DC" , 38116 : "TD" , 38123 : "YD" , 38224 : "HG" , 38241 : "XTC" , 38271 : "ZC" , 38415 : "YE" , 38426 : "KH" , 38461 : "YD" , 38463 : "AE" , 38466 : "PB" , 38477 : "XJ" , 38518 : "YT" , 38551 : "WK" , 38585 : "ZC" , 38704 : "XS" , 38739 : "LJ" , 38761 : "GJ" , 38808 : "SQ" , 39048 : "JG" , 39049 : "XJ" , 39052 : "HG" , 39076 : "CZ" , 39271 : "XT" , 39534 : "TD" , 39552 : "TD" , 39584 : "PB" , 39647 : "SB" , 39730 : "LG" , 39748 : "TPB" , 40109 : "ZQ" , 40479 : "ND" , 40516 : "HG" , 40536 : "HG" , 40583 : "QJ" , 40765 : "YQ" , 40784 : "QJ" , 40840 : "YK" , 40863 : "QJG" } , c = function (
d [ a ] || ( d [ a ] = [ ] ) , d [ a ] . length > 0 && console . log ( "对象已经注册过了!" ) , d [ a ] . push ( b ) } , relieveObject : function ( a ) { delete d [ a ] } } ) } ( ) , BI . Action = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Action . superclass . _defaultConfig . apply ( this , arguments ) , { src : null , tar : null } ) } , _init : function ( ) { BI . Action . superclass . _init . apply ( this , arguments ) } , actionPerformed : function ( a , b , c ) { } , actionBack : function ( a , b , c ) { } } ) , BI . ActionFactory = { createAction : function ( a , b ) { var c ; switch ( a ) { case "show" : c = BI . ShowAction } return new c ( b ) } } , BI . ShowAction = BI . inherit ( BI . Action , { _defaultConfig : function ( ) { return BI . extend ( BI . ShowAction . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . ShowAction . superclass . _init . apply ( this , arguments ) } , actionPerformed : function ( a , b , c ) { b = b || this . options . tar , b . setVisible ( ! 0 ) , c && c ( ) } , actionBack : function ( a , b , c ) { a = a || this . options . tar , a . setVisible ( ! 1 ) , c && c ( ) } } ) , function ( ) { function isEmpty ( a ) { var b = "" === a || null === a || void 0 === a ; return b } function isInvalidDate ( a ) { return "Invalid Date" == a || "NaN" == a } function _eFormat ( a , b ) { function c ( a , b ) { var c = a < 0 ? ( a *= - 1 , "-" ) : "" , h = "" , i = a > 0 && a < 1 ? "floor" : "ceil" , j = Math [ i ] ( Math . log ( a ) / Math . log ( 10 ) ) ; if ( ! isFinite ( j ) ) return b . replace ( /#/gi , "" ) . replace ( /\.e/gi , "E" ) ; a /= Math . pow ( 10 , j ) , a > 0 && a < 1 && ( a *= 10 , j -= 1 ) ; var k = f ( j , b ) ; k > 1 && ( j -= k - 1 , a *= Math . pow ( 10 , k - 1 ) ) , j < 0 && ( h = "-" , j *= - 1 ) ; var l = e ( b ) , m = g ( a ) ; return a *= Math . pow ( 10 , l ) , a = Math . round ( a ) , m && ( a /= 10 , j += "-" === h ? - 1 : 1 ) , a /= Math . pow ( 10 , l ) , a = a . toFixed ( l ) , j = d ( b , j , h ) , c + a + "E" + j } function d ( a , b , c ) { if ( b += "" , ! /e/gi . test ( a ) ) return b ; for ( a = a . split ( /e/gi ) [ 1 ] ; b . length < a . length ; ) b = "0" + b ; for ( var d = ! 0 , e = 0 , f = b . length ; e < f ; e ++ ) d && ( d = "0" === b . charAt ( e ) ) ; return c = d ? "" : c , c + b } function e ( a ) { if ( ! /e/gi . test ( a ) ) return 0 ; var b = a . split ( /e/gi ) [ 0 ] . split ( "." ) ; return b . length > 1 ? b [ 1 ] . length : 0 } function f ( a , b ) { if ( ! /e/gi . test ( b ) ) return 0 ; var c , d , e = b . split ( /e/gi ) [ 0 ] . split ( "." ) [ 0 ] , f = e . length , g = 0 ; for ( c = 0 ; c < f ; c ++ ) d = e . charAt ( c ) , ( 0 == d || "#" == d && f - c <= a + 1 ) && g ++ ; return g } function g ( a ) { var b = Math . round ( a ) ; return a = ( a + "" ) . split ( "." ) [ 0 ] , b = ( b + "" ) . split ( "." ) [ 0 ] , a . length !== b . length } return a = + a , c ( a , b ) } function _dealNumberPrecision ( a , b ) { if ( /[eE]/ . test ( a ) ) { var c , d = 0 , e = 0 ; /[%‰]$/ . test ( b ) && ( d = /[%]$/ . test ( b ) ? 2 : 3 ) ; for ( var f = b . length ; e < f ; e ++ ) "0" != ( c = b . charAt ( e ) ) && "#" != c || d ++ ; return Number ( a ) . toFixed ( d ) } return a } function _numberFormat ( a , b ) { var a = a + "" ; if ( ! /[0-9]/ . test ( a ) || ! b ) return a ; var c = b . indexOf ( ";" ) ; if ( c > - 1 ) return a >= 0 ? _numberFormat ( a + "" , b . substring ( 0 , c ) ) : _numberFormat ( - a + "" , b . substr ( c + 1 ) ) ; if ( + a < 0 && "-" !== b . charAt ( 0 ) ) return _numberFormat ( - a + "" , "-" + b ) ; var d = b . split ( "." ) , e = d [ 0 ] || "" , f = d [ 1 ] || "" ; a = _dealNumberPrecision ( a , f ) ; var g = a . split ( "." ) , h = g [ 0 ] || "" , i = g [ 1 ] || "" ; if ( /[%‰]$/ . test ( b ) ) { var j = /[%]$/ . test ( b ) ? "00" : "000" ; i += j , h += i . substr ( 0 , j . length ) , h = h . replace ( /^0+/gi , "" ) , i = i . substr ( j . length ) . replace ( /0+$/gi , "" ) } var k = _dealWithRight ( i , f ) ; k . leftPlus && ( h = parseInt ( h ) + 1 + "" , h = isNaN ( h ) ? "1" : h ) , k = k . num ; var l = _dealWithLeft ( h , e ) ; return /[0-9]/ . test ( l ) || ( l += "0" ) , /[0-9]/ . test ( k ) ? l + "." + k : l + k } function _dealWithRight ( a , b ) { for ( var c = "" , d = 0 , e = 0 , f = b . length ; e < f ; e ++ ) { var g = b . charAt ( e ) , h = a . charAt ( d ) ; switch ( g ) { case "0" : isEmpty ( h ) && ( h = "0" ) , c += h , d ++ ; break ; case "#" : c += h , d ++ ; break ; default : c += g } } var i = a . substr ( d ) , j = { } ; if ( ! isEmpty ( i ) && i . charAt ( 0 ) > 4 ) { j . leftPlus = ! 0 ; var k = c . match ( /^[0-9]+/ ) ; if ( k ) { var l = k [ 0 ] , m = l . length , n = parseInt ( l ) + 1 + "" ; n . length > m ? n = n . substr ( 1 ) : ( n = BI . leftPad ( n , m , "0" ) , j . leftPlus = ! 1 ) , c = c . replace ( /^[0-9]+/ , n ) } } return j . num = c , j } function _dealWithLeft ( a , b ) { for ( var c = "" , d = a . length - 1 , e = - 1 , f = - 1 , g = b . length - 1 ; g >= 0 ; g -- ) { var h = b . charAt ( g ) , i = a . charAt ( d ) ; switch ( h ) { case "0" : isEmpty ( i ) && ( i = "0" ) , f = - 1 , c = i + c , d -- ; break ; case "#" : f = g , c = i + c , d -- ; break ; case "," : if ( ! isEmpty ( i ) ) { var j = b . match ( /,[#0]+/ ) ; j && ( e = j [ 0 ] . length - 1 ) , c = "," + c } break ; default : c = h + c } } if ( f > - 1 ) { var k = a . substr ( 0 , d + 1 ) ; c = c . substr ( 0 , f ) + k + c . substr ( f ) } if ( e > 0 ) { var l = c . match ( /[0-9]+,/ ) ; if ( l ) { l = l [ 0 ] ; for ( var m = "" , n = l . length - 1 - e ; n >= 0 ; n -= e ) m = l . substr ( n , e ) + "," + m ; var o = l . substr ( 0 , n + e ) ; isEmpty ( o ) || ( m = o + "," + m ) } c = c . replace ( /[0-9]+,/ , m ) } return c } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , _global . BI || ( _global . BI = { } ) , BI . cjkEncode = functio
if ( j = BI . deepClone ( j ) , e = BI . stripEL ( j ) , f = BI . find ( [ e [ c ] , e . text , e . value , e . name , e ] , function ( a , b ) { return BI . isNotNull ( b ) } ) , ! BI . isNull ( f ) && ! BI . isObject ( f ) ) { g = BI . makeFirstPY ( f ) , f = BI . toUpperCase ( f ) , g = BI . toUpperCase ( g ) ; var k ; f . indexOf ( b ) > - 1 ? f === b ? d ? h . push ( j ) : h [ a ] = j : d ? i . push ( j ) : i [ a ] = j : ( k = g . indexOf ( b ) , k > - 1 && Math . floor ( k / f . length ) === Math . floor ( ( k + b . length - 1 ) / f . length ) && ( f === b || b . length === f . length ? d ? h . push ( j ) : h [ a ] = j : d ? i . push ( j ) : i [ a ] = j ) ) } } ) , { match : h , find : i } } } ) , _ . extend ( BI , { beforeFunc : function ( a , b ) { var c = a ; return function ( ) { return b . apply ( a , arguments ) !== ! 1 && c . apply ( a , arguments ) } } , afterFunc : function ( a ) { var b = sFunc ; return function ( ) { var c = b . apply ( sFunc , arguments ) ; return c !== ! 1 && ( a . apply ( sFunc , arguments ) , c ) } } } ) , _ . extend ( BI , { add : function ( a , b ) { function c ( a , b ) { var c , d , e , f ; try { c = a . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { c = 0 } try { d = b . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { d = 0 } if ( f = Math . abs ( c - d ) , e = Math . pow ( 10 , Math . max ( c , d ) ) , f > 0 ) { var h = Math . pow ( 10 , f ) ; c > d ? ( a = Number ( a . toString ( ) . replace ( "." , "" ) ) , b = Number ( b . toString ( ) . replace ( "." , "" ) ) * h ) : ( a = Number ( a . toString ( ) . replace ( "." , "" ) ) * h , b = Number ( b . toString ( ) . replace ( "." , "" ) ) ) } else a = Number ( a . toString ( ) . replace ( "." , "" ) ) , b = Number ( b . toString ( ) . replace ( "." , "" ) ) ; return ( a + b ) / e } return c ( b , a ) } , sub : function ( a , b ) { function c ( a , b ) { var c , d , e , f ; try { c = a . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { c = 0 } try { d = b . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { d = 0 } return e = Math . pow ( 10 , Math . max ( c , d ) ) , f = c >= d ? c : d , ( ( a * e - b * e ) / e ) . toFixed ( f ) } return c ( a , b ) } , mul : function ( a , b ) { function c ( a , b ) { var c = 0 , d = a . toString ( ) , e = b . toString ( ) ; try { c += d . split ( "." ) [ 1 ] . length } catch ( f ) { } try { c += e . split ( "." ) [ 1 ] . length } catch ( f ) { } return Number ( d . replace ( "." , "" ) ) * Number ( e . replace ( "." , "" ) ) / Math . pow ( 10 , c ) } return c ( b , a ) } , div : function ( a , b ) { function c ( a ) { var b = a . toString ( ) . split ( /[eE]/ ) , c = ( b [ 0 ] . split ( "." ) [ 1 ] || "" ) . length - + ( b [ 1 ] || 0 ) ; return c > 0 ? c : 0 } function d ( a ) { if ( a . toString ( ) . indexOf ( "e" ) === - 1 ) return Number ( a . toString ( ) . replace ( "." , "" ) ) ; var b = c ( a ) ; return b > 0 ? a * Math . pow ( 10 , b ) : a } function e ( a , b ) { for ( var f = [ ] , g = 2 ; g < arguments . length ; g ++ ) f [ g - 2 ] = arguments [ g ] ; if ( f . length > 0 ) return e . apply ( void 0 , [ e ( a , b ) , f [ 0 ] ] . concat ( f . slice ( 1 ) ) ) ; var h = d ( a ) , i = d ( b ) , j = c ( a ) + c ( b ) , k = h * i ; return k / Math . pow ( 10 , j ) } function f ( a , b ) { for ( var g = [ ] , h = 2 ; h < arguments . length ; h ++ ) g [ h - 2 ] = arguments [ h ] ; if ( g . length > 0 ) return f . apply ( void 0 , [ f ( a , b ) , g [ 0 ] ] . concat ( g . slice ( 1 ) ) ) ; var i = d ( a ) , j = d ( b ) ; return e ( i / j , Math . pow ( 10 , c ( b ) - c ( a ) ) ) } return f ( a , b ) } } ) , _ . extend ( BI , { startWith : function ( a , b ) { return a = a || "" , ! ( null == b || "" == b || 0 === a . length || b . length > a . length ) && a . substr ( 0 , b . length ) == b } , endWith : function ( a , b ) { return ! ( null == b || "" == b || 0 === a . length || b . length > a . length ) && a . substring ( a . length - b . length ) == b } , getQuery : function ( a , b ) { var c = new RegExp ( "(^|&)" + b + "=([^&]*)(&|$)" ) , d = a . substr ( a . indexOf ( "?" ) + 1 ) . match ( c ) ; return d ? unescape ( d [ 2 ] ) : null } , appendQuery : function ( a , b ) { if ( ! b ) return a ; var c = a ; return c . indexOf ( "?" ) === - 1 && ( c += "?" ) , c . endWith ( "?" ) !== ! 1 || ( c += "&" ) , _ . each ( b , function ( a , b ) { "string" == typeof b && ( c += b + "=" + a + "&" ) } ) , c = c . substr ( 0 , c . length - 1 ) } , replaceAll : function ( a , b , c ) { return a . replace ( new RegExp ( b , "gm" ) , c ) } , perfectStart : function ( a , b ) { return a . startWith ( b ) ? a : b + a } , allIndexOf : function ( a , b ) { if ( "string" != typeof b ) return [ ] ; for ( var c = [ ] , d = 0 ; a . length > 0 ; ) { var e = a . indexOf ( b ) ; if ( e === - 1 ) break ; c . push ( d + e ) , a = a . substring ( e + b . length , a . length ) , d += e + b . length } return c } } ) , ! function ( ) { var a = { } ; _ . extend ( BI , { addI18n : function ( b ) { BI . extend ( a , b ) } , i18nText : function ( b ) { var c = a [ b ] || BI . i18n && BI . i18n [ b ] || "" ; c || ( c = b ) ; var d = arguments . length ; if ( d > 1 ) { if ( ! ( c . indexOf ( "{R1}" ) > - 1 ) ) { var e = Array . prototype . slice . call ( arguments ) , f = 1 ; return BI . replaceAll ( c , "\\{\\s*\\}" , function ( ) { return e [ f ++ ] + "" } ) } for ( var g = 1 ; g < d ; g ++ ) { var b = "{R" + g + "}" ; c = BI . replaceAll ( c , b , arguments [ g ] + "" ) } } return c } } ) } ( ) , function ( ) { var a = { } ; BI . module = function ( b , c ) { null != a [ b ] && _global . console && console . error ( "module:[" + b + "] has been registed" ) , a [ b ] = c } ; var b = { } ; BI . constant = function ( a , c ) { null != b [ a ] && _global . console && console . error ( "constant:[" + a + "] has been registed" ) , b [ a ] = c } ; var c = { } ; BI . model = function ( a , b ) { null != c [ a ] && _global . console && console . error ( "model:[" + a + "] has been registed" ) , c [ a ] = b } ; var d = { } ; BI . store = function ( a , b ) { null != d
b [ c ] = ! 0 } ) , b } function e ( a , c , d , e ) { if ( ia . acceptData ( a ) ) { var f , g , h = ia . expando , i = "string" == typeof c , j = a . nodeType , k = j ? ia . cache : a , l = j ? a [ h ] : a [ h ] && h ; if ( l && k [ l ] && ( e || k [ l ] . data ) || ! i || d !== b ) return l || ( j ? a [ h ] = l = _ . pop ( ) || ia . guid ++ : l = h ) , k [ l ] || ( k [ l ] = { } , j || ( k [ l ] . toJSON = ia . noop ) ) , "object" != typeof c && "function" != typeof c || ( e ? k [ l ] = ia . extend ( k [ l ] , c ) : k [ l ] . data = ia . extend ( k [ l ] . data , c ) ) , f = k [ l ] , e || ( f . data || ( f . data = { } ) , f = f . data ) , d !== b && ( f [ ia . camelCase ( c ) ] = d ) , i ? ( g = f [ c ] , null == g && ( g = f [ ia . camelCase ( c ) ] ) ) : g = f , g } } function f ( a , b , c ) { if ( ia . acceptData ( a ) ) { var d , e , f , g = a . nodeType , i = g ? ia . cache : a , j = g ? a [ ia . expando ] : ia . expando ; if ( i [ j ] ) { if ( b && ( f = c ? i [ j ] : i [ j ] . data ) ) { ia . isArray ( b ) ? b = b . concat ( ia . map ( b , ia . camelCase ) ) : b in f ? b = [ b ] : ( b = ia . camelCase ( b ) , b = b in f ? [ b ] : b . split ( " " ) ) ; for ( d = 0 , e = b . length ; d < e ; d ++ ) delete f [ b [ d ] ] ; if ( ! ( c ? h : ia . isEmptyObject ) ( f ) ) return } ( c || ( delete i [ j ] . data , h ( i [ j ] ) ) ) && ( g ? ia . cleanData ( [ a ] , ! 0 ) : ia . support . deleteExpando || i != i . window ? delete i [ j ] : i [ j ] = null ) } } } function g ( a , c , d ) { if ( d === b && 1 === a . nodeType ) { var e = "data-" + c . replace ( za , "-$1" ) . toLowerCase ( ) ; if ( d = a . getAttribute ( e ) , "string" == typeof d ) { try { d = "true" === d || "false" !== d && ( "null" === d ? null : + d + "" === d ? + d : ya . test ( d ) ? ia . parseJSON ( d ) : d ) } catch ( f ) { } ia . data ( a , c , d ) } else d = b } return d } function h ( a ) { var b ; for ( b in a ) if ( ( "data" !== b || ! ia . isEmptyObject ( a [ b ] ) ) && "toJSON" !== b ) return ! 1 ; return ! 0 } function i ( ) { return ! 0 } function j ( ) { return ! 1 } function k ( a , b ) { do a = a [ b ] ; while ( a && 1 !== a . nodeType ) ; return a } function l ( a , b , c ) { if ( b = b || 0 , ia . isFunction ( b ) ) return ia . grep ( a , function ( a , d ) { var e = ! ! b . call ( a , d , a ) ; return e === c } ) ; if ( b . nodeType ) return ia . grep ( a , function ( a ) { return a === b === c } ) ; if ( "string" == typeof b ) { var d = ia . grep ( a , function ( a ) { return 1 === a . nodeType } ) ; if ( Ra . test ( b ) ) return ia . filter ( b , d , ! c ) ; b = ia . filter ( b , d ) } return ia . grep ( a , function ( a ) { return ia . inArray ( a , b ) >= 0 === c } ) } function m ( a ) { var b = Ua . split ( "|" ) , c = a . createDocumentFragment ( ) ; if ( c . createElement ) for ( ; b . length ; ) c . createElement ( b . pop ( ) ) ; return c } function n ( a , b ) { return a . getElementsByTagName ( b ) [ 0 ] || a . appendChild ( a . ownerDocument . createElement ( b ) ) } function o ( a ) { var b = a . getAttributeNode ( "type" ) ; return a . type = ( b && b . specified ) + "/" + a . type , a } function p ( a ) { var b = eb . exec ( a . type ) ; return b ? a . type = b [ 1 ] : a . removeAttribute ( "type" ) , a } function q ( a , b ) { for ( var c , d = 0 ; null != ( c = a [ d ] ) ; d ++ ) ia . _data ( c , "globalEval" , ! b || ia . _data ( b [ d ] , "globalEval" ) ) } function r ( a , b ) { if ( 1 === b . nodeType && ia . hasData ( a ) ) { var c , d , e , f = ia . _data ( a ) , g = ia . _data ( b , f ) , h = f . events ; if ( h ) { delete g . handle , g . events = { } ; for ( c in h ) for ( d = 0 , e = h [ c ] . length ; d < e ; d ++ ) ia . event . add ( b , c , h [ c ] [ d ] ) } g . data && ( g . data = ia . extend ( { } , g . data ) ) } } function s ( a , b ) { var c , d , e ; if ( 1 === b . nodeType ) { if ( c = b . nodeName . toLowerCase ( ) , ! ia . support . noCloneEvent && b [ ia . expando ] ) { e = ia . _data ( b ) ; for ( d in e . events ) ia . removeEvent ( b , d , e . handle ) ; b . removeAttribute ( ia . expando ) } "script" === c && b . text !== a . text ? ( o ( b ) . text = a . text , p ( b ) ) : "object" === c ? ( b . parentNode && ( b . outerHTML = a . outerHTML ) , ia . support . html5Clone && a . innerHTML && ! ia . trim ( b . innerHTML ) && ( b . innerHTML = a . innerHTML ) ) : "input" === c && bb . test ( a . type ) ? ( b . defaultChecked = b . checked = a . checked , b . value !== a . value && ( b . value = a . value ) ) : "option" === c ? b . defaultSelected = b . selected = a . defaultSelected : "input" !== c && "textarea" !== c || ( b . defaultValue = a . defaultValue ) } } function t ( a , c ) { var d , e , f = 0 , g = typeof a . getElementsByTagName !== V ? a . getElementsByTagName ( c || "*" ) : typeof a . querySelectorAll !== V ? a . querySelectorAll ( c || "*" ) : b ; if ( ! g ) for ( g = [ ] , d = a . childNodes || a ; null != ( e = d [ f ] ) ; f ++ ) ! c || ia . nodeName ( e , c ) ? g . push ( e ) : ia . merge ( g , t ( e , c ) ) ; return c === b || c && ia . nodeName ( a , c ) ? ia . merge ( [ a ] , g ) : g } function u ( a ) { bb . test ( a . type ) && ( a . defaultChecked = a . checked ) } function v ( a , b ) { if ( b in a ) return b ; for ( var c = b . charAt ( 0 ) . toUpperCase ( ) + b . slice ( 1 ) , d = b , e = yb . length ; e -- ; ) if ( b = yb [ e ] + c , b in a ) return b ; return d } function w ( a , b ) { return a = b || a , "none" === ia . css ( a , "display" ) || ! ia . contains ( a . ownerDocument , a ) } function x ( a , b ) { for ( var c , d , e , f = [ ] , g = 0 , h = a . length ; g < h ; g ++ ) d = a [ g ] , d . style && ( f [ g ] = ia . _data ( d , "olddisplay" ) , c = d . style . display , b ? ( f [ g ] || "none" !== c || ( d . style . display = "" ) , "" === d . style . display && w ( d ) && ( f [ g ] = ia . _data ( d , "olddisplay" , B ( d . nodeName ) ) ) ) : f [ g ] || ( e = w ( d ) , ( c && "none" !== c || ! e ) && ia . _data ( d , "olddisplay" , e ? c : ia . css ( d , "display" ) ) ) ) ; for ( g
return ia . nodeName ( a , "input" ) ? a . defaultValue : d && d . specified ? d . value : b } , set : function ( a , b , c ) { return ia . nodeName ( a , "input" ) ? void ( a . defaultValue = b ) : Aa && Aa . set ( a , b , c ) } } ) , Ia || ( Aa = ia . valHooks . button = { get : function ( a , c ) { var d = a . getAttributeNode ( c ) ; return d && ( "id" === c || "name" === c || "coords" === c ? "" !== d . value : d . specified ) ? d . value : b } , set : function ( a , c , d ) { var e = a . getAttributeNode ( d ) ; return e || a . setAttributeNode ( e = a . ownerDocument . createAttribute ( d ) ) , e . value = c += "" , "value" === d || c === a . getAttribute ( d ) ? c : b } } , ia . attrHooks . contenteditable = { get : Aa . get , set : function ( a , b , c ) { Aa . set ( a , "" !== b && b , c ) } } , ia . each ( [ "width" , "height" ] , function ( a , b ) { ia . attrHooks [ b ] = ia . extend ( ia . attrHooks [ b ] , { set : function ( a , c ) { if ( "" === c ) return a . setAttribute ( b , "auto" ) , c } } ) } ) ) , ia . support . hrefNormalized || ( ia . each ( [ "href" , "src" , "width" , "height" ] , function ( a , c ) { ia . attrHooks [ c ] = ia . extend ( ia . attrHooks [ c ] , { get : function ( a ) { var d = a . getAttribute ( c , 2 ) ; return null == d ? b : d } } ) } ) , ia . each ( [ "href" , "src" ] , function ( a , b ) { ia . propHooks [ b ] = { get : function ( a ) { return a . getAttribute ( b , 4 ) } } } ) ) , ia . support . style || ( ia . attrHooks . style = { get : function ( a ) { return a . style . cssText || b } , set : function ( a , b ) { return a . style . cssText = b + "" } } ) , ia . support . optSelected || ( ia . propHooks . selected = ia . extend ( ia . propHooks . selected , { get : function ( a ) { var b = a . parentNode ; return b && ( b . selectedIndex , b . parentNode && b . parentNode . selectedIndex ) , null } } ) ) , ia . support . enctype || ( ia . propFix . enctype = "encoding" ) , ia . support . checkOn || ia . each ( [ "radio" , "checkbox" ] , function ( ) { ia . valHooks [ this ] = { get : function ( a ) { return null === a . getAttribute ( "value" ) ? "on" : a . value } } } ) , ia . each ( [ "radio" , "checkbox" ] , function ( ) { ia . valHooks [ this ] = ia . extend ( ia . valHooks [ this ] , { set : function ( a , b ) { if ( ia . isArray ( b ) ) return a . checked = ia . inArray ( ia ( a ) . val ( ) , b ) >= 0 } } ) } ) ; var Ka = /^(?:input|select|textarea)$/i , La = /^key/ , Ma = /^(?:mouse|contextmenu)|click/ , Na = /^(?:focusinfocus|focusoutblur)$/ , Oa = /^([^.]*)(?:\.(.+)|)$/ ; ia . event = { global : { } , add : function ( a , c , d , e , f ) { var g , h , i , j , k , l , m , n , o , p , q , r = ia . _data ( a ) ; if ( r ) { for ( d . handler && ( j = d , d = j . handler , f = j . selector ) , d . guid || ( d . guid = ia . guid ++ ) , ( h = r . events ) || ( h = r . events = { } ) , ( l = r . handle ) || ( l = r . handle = function ( a ) { return typeof ia === V || a && ia . event . triggered === a . type ? b : ia . event . dispatch . apply ( l . elem , arguments ) } , l . elem = a ) , c = ( c || "" ) . match ( ka ) || [ "" ] , i = c . length ; i -- ; ) g = Oa . exec ( c [ i ] ) || [ ] , o = q = g [ 1 ] , p = ( g [ 2 ] || "" ) . split ( "." ) . sort ( ) , k = ia . event . special [ o ] || { } , o = ( f ? k . delegateType : k . bindType ) || o , k = ia . event . special [ o ] || { } , m = ia . extend ( { type : o , origType : q , data : e , handler : d , guid : d . guid , selector : f , needsContext : f && ia . expr . match . needsContext . test ( f ) , namespace : p . join ( "." ) } , j ) , ( n = h [ o ] ) || ( n = h [ o ] = [ ] , n . delegateCount = 0 , k . setup && k . setup . call ( a , e , p , l ) !== ! 1 || ( a . addEventListener ? a . addEventListener ( o , l , ! 1 ) : a . attachEvent && a . attachEvent ( "on" + o , l ) ) ) , k . add && ( k . add . call ( a , m ) , m . handler . guid || ( m . handler . guid = d . guid ) ) , f ? n . splice ( n . delegateCount ++ , 0 , m ) : n . push ( m ) , ia . event . global [ o ] = ! 0 ; a = null } } , remove : function ( a , b , c , d , e ) { var f , g , h , i , j , k , l , m , n , o , p , q = ia . hasData ( a ) && ia . _data ( a ) ; if ( q && ( k = q . events ) ) { for ( b = ( b || "" ) . match ( ka ) || [ "" ] , j = b . length ; j -- ; ) if ( h = Oa . exec ( b [ j ] ) || [ ] , n = p = h [ 1 ] , o = ( h [ 2 ] || "" ) . split ( "." ) . sort ( ) , n ) { for ( l = ia . event . special [ n ] || { } , n = ( d ? l . delegateType : l . bindType ) || n , m = k [ n ] || [ ] , h = h [ 2 ] && new RegExp ( "(^|\\.)" + o . join ( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) , i = f = m . length ; f -- ; ) g = m [ f ] , ! e && p !== g . origType || c && c . guid !== g . guid || h && ! h . test ( g . namespace ) || d && d !== g . selector && ( "**" !== d || ! g . selector ) || ( m . splice ( f , 1 ) , g . selector && m . delegateCount -- , l . remove && l . remove . call ( a , g ) ) ; i && ! m . length && ( l . teardown && l . teardown . call ( a , o , q . handle ) !== ! 1 || ia . removeEvent ( a , n , q . handle ) , delete k [ n ] ) } else for ( n in k ) ia . event . remove ( a , n + b [ j ] , c , d , ! 0 ) ; ia . isEmptyObject ( k ) && ( delete q . handle , ia . _removeData ( a , "events" ) ) } } , trigger : function ( c , d , e , f ) { var g , h , i , j , k , l , m , n = [ e || W ] , o = ga . call ( c , "type" ) ? c . type : c , p = ga . call ( c , "namespace" ) ? c . namespace . split ( "." ) : [ ] ; if ( i = l = e = e || W , 3 !== e . nodeType && 8 !== e . nodeType && ! Na . test ( o + ia . event . triggered ) && ( o . indexOf ( "." ) >= 0 && ( p = o . split ( "." ) , o = p . shift ( ) , p . sort ( ) ) , h = o . indexOf ( ":" ) < 0 && "on" + o , c = c [ ia . expando ] ? c : new ia . Event ( o , "object" == typeof c && c ) , c . isTrigger = ! 0 , c . namespace = p . join ( "." ) , c . namespace _re = c . namespace ? new RegExp ( "(^|\\.)" + p . join ( "\\.(?:.*\\.|)" ) + "
} , siblings : function ( a ) { return ia . sibling ( ( a . parentNode || { } ) . firstChild , a ) } , children : function ( a ) { return ia . sibling ( a . firstChild ) } , contents : function ( a ) { return ia . nodeName ( a , "iframe" ) ? a . contentDocument || a . contentWindow . document : ia . merge ( [ ] , a . childNodes ) } } , function ( a , b ) { ia . fn [ a ] = function ( c , d ) { var e = ia . map ( this , b , c ) ; return Pa . test ( a ) || ( d = c ) , d && "string" == typeof d && ( e = ia . filter ( d , e ) ) , e = this . length > 1 && ! Ta [ a ] ? ia . unique ( e ) : e , this . length > 1 && Qa . test ( a ) && ( e = e . reverse ( ) ) , this . pushStack ( e ) } } ) , ia . extend ( { filter : function ( a , b , c ) { return c && ( a = ":not(" + a + ")" ) , 1 === b . length ? ia . find . matchesSelector ( b [ 0 ] , a ) ? [ b [ 0 ] ] : [ ] : ia . find . matches ( a , b ) } , dir : function ( a , c , d ) { for ( var e = [ ] , f = a [ c ] ; f && 9 !== f . nodeType && ( d === b || 1 !== f . nodeType || ! ia ( f ) . is ( d ) ) ; ) 1 === f . nodeType && e . push ( f ) , f = f [ c ] ; return e } , sibling : function ( a , b ) { for ( var c = [ ] ; a ; a = a . nextSibling ) 1 === a . nodeType && a !== b && c . push ( a ) ; return c } } ) ; var Ua = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video" , Va = / jQuery\d+="(?:null|\d+)"/g , Wa = new RegExp ( "<(?:" + Ua + ")[\\s/>]" , "i" ) , Xa = /^\s+/ , Ya = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi , Za = /<([\w:]+)/ , $a = /<tbody/i , _a = /<|&#?\w+;/ , ab = /<(?:script|style|link)/i , bb = /^(?:checkbox|radio)$/i , cb = /checked\s*(?:[^=]|=\s*.checked.)/i , db = /^$|\/(?:java|ecma)script/i , eb = /^true\/(.*)/ , fb = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g , gb = { option : [ 1 , "<select multiple='multiple'>" , "</select>" ] , legend : [ 1 , "<fieldset>" , "</fieldset>" ] , area : [ 1 , "<map>" , "</map>" ] , param : [ 1 , "<object>" , "</object>" ] , thead : [ 1 , "<table>" , "</table>" ] , tr : [ 2 , "<table><tbody>" , "</tbody></table>" ] , col : [ 2 , "<table><tbody></tbody><colgroup>" , "</colgroup></table>" ] , td : [ 3 , "<table><tbody><tr>" , "</tr></tbody></table>" ] , _default : ia . support . htmlSerialize ? [ 0 , "" , "" ] : [ 1 , "X<div>" , "</div>" ] } , hb = m ( W ) , ib = hb . appendChild ( W . createElement ( "div" ) ) ; gb . optgroup = gb . option , gb . tbody = gb . tfoot = gb . colgroup = gb . caption = gb . thead , gb . th = gb . td , ia . fn . extend ( { text : function ( a ) { return ia . access ( this , function ( a ) { return a === b ? ia . text ( this ) : this . empty ( ) . append ( ( this [ 0 ] && this [ 0 ] . ownerDocument || W ) . createTextNode ( a ) ) } , null , a , arguments . length ) } , wrapAll : function ( a ) { if ( ia . isFunction ( a ) ) return this . each ( function ( b ) { ia ( this ) . wrapAll ( a . call ( this , b ) ) } ) ; if ( this [ 0 ] ) { var b = ia ( a , this [ 0 ] . ownerDocument ) . eq ( 0 ) . clone ( ! 0 ) ; this [ 0 ] . parentNode && b . insertBefore ( this [ 0 ] ) , b . map ( function ( ) { for ( var a = this ; a . firstChild && 1 === a . firstChild . nodeType ; ) a = a . firstChild ; return a } ) . append ( this ) } return this } , wrapInner : function ( a ) { return ia . isFunction ( a ) ? this . each ( function ( b ) { ia ( this ) . wrapInner ( a . call ( this , b ) ) } ) : this . each ( function ( ) { var b = ia ( this ) , c = b . contents ( ) ; c . length ? c . wrapAll ( a ) : b . append ( a ) } ) } , wrap : function ( a ) { var b = ia . isFunction ( a ) ; return this . each ( function ( c ) { ia ( this ) . wrapAll ( b ? a . call ( this , c ) : a ) } ) } , unwrap : function ( ) { return this . parent ( ) . each ( function ( ) { ia . nodeName ( this , "body" ) || ia ( this ) . replaceWith ( this . childNodes ) } ) . end ( ) } , append : function ( ) { return this . domManip ( arguments , ! 0 , function ( a ) { 1 !== this . nodeType && 11 !== this . nodeType && 9 !== this . nodeType || this . appendChild ( a ) } ) } , prepend : function ( ) { return this . domManip ( arguments , ! 0 , function ( a ) { 1 !== this . nodeType && 11 !== this . nodeType && 9 !== this . nodeType || this . insertBefore ( a , this . firstChild ) } ) } , before : function ( ) { return this . domManip ( arguments , ! 1 , function ( a ) { this . parentNode && this . parentNode . insertBefore ( a , this ) } ) } , after : function ( ) { return this . domManip ( arguments , ! 1 , function ( a ) { this . parentNode && this . parentNode . insertBefore ( a , this . nextSibling ) } ) } , remove : function ( a , b ) { for ( var c , d = 0 ; null != ( c = this [ d ] ) ; d ++ ) ( ! a || ia . filter ( a , [ c ] ) . length > 0 ) && ( b || 1 !== c . nodeType || ia . cleanData ( t ( c ) ) , c . parentNode && ( b && ia . contains ( c . ownerDocument , c ) && q ( t ( c , "script" ) ) , c . parentNode . removeChild ( c ) ) ) ; return this } , empty : function ( ) { for ( var a , b = 0 ; null != ( a = this [ b ] ) ; b ++ ) { for ( 1 === a . nodeType && ia . cleanData ( t ( a , ! 1 ) ) ; a . firstChild ; ) a . removeChild ( a . firstChild ) ; a . options && ia . nodeName ( a , "select" ) && ( a . options . length = 0 ) } return this } , clone : function ( a , b ) { return a = null != a && a , b = null == b ? a : b , this . map ( function ( ) { return ia . clone ( this , a , b ) } ) } , html : function ( a ) { return ia . access ( this , function ( a ) { var c = this [
"z-index" : a } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : c , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . indexMask . push ( c ) , a && ( this . zIndexMask [ a ] = c ) , c . element } , _ _releaseZIndexMask _ _ : function ( a ) { if ( a && this . zIndexMask [ a ] ) return BI . remove ( this . indexMask , this . zIndexMask [ a ] ) , void this . zIndexMask [ a ] . destroy ( ) ; this . indexMask = this . indexMask || [ ] ; var b = this . indexMask . pop ( ) ; b && b . destroy ( ) } } ) ) , _ . extend ( BI , { $import : function ( ) { function a ( a , c ) { var d = $ ( "head script, body script" ) ; $ . each ( d , function ( c , d ) { d . src . indexOf ( a ) != - 1 && ( b [ a ] = ! 0 ) } ) ; var e = $ ( "head link" ) ; $ . each ( e , function ( d , e ) { e . href . indexOf ( a ) != - 1 && c && ( b [ a ] = ! 1 , $ ( e ) . remove ( ) ) } ) } var b = { } ; return function ( c , d , e ) { if ( a ( c , e ) , b [ c ] !== ! 0 ) if ( "css" === d ) { var f = document . createElement ( "link" ) ; f . rel = "stylesheet" , f . type = "text/css" , f . href = c ; var g = document . getElementsByTagName ( "head" ) [ 0 ] ; g . appendChild ( f ) , b [ c ] = ! 0 } else $ . ajax ( { url : c , dataType : "script" , async : ! 1 , cache : ! 0 , complete : function ( a , d ) { "success" == d && ( b [ c ] = ! 0 ) } } ) } } ( ) } ) , Number . prototype . toFixed && "0.000" === 8e-5 . toFixed ( 3 ) && "0" !== . 9. toFixed ( 0 ) && "1.25" === 1.255 . toFixed ( 2 ) && "1000000000000000128" === ( 0xde0b6b3a7640080 ) . toFixed ( 0 ) || ! function ( ) { function a ( a , b ) { for ( var c = - 1 ; ++ c < g ; ) b += a * h [ c ] , h [ c ] = b % f , b = Math . floor ( b / f ) } function b ( a ) { for ( var b = g , c = 0 ; -- b >= 0 ; ) c += h [ b ] , h [ b ] = Math . floor ( c / a ) , c = c % a * f } function c ( ) { for ( var a = g , b = "" ; -- a >= 0 ; ) if ( "" !== b || 0 === a || 0 !== h [ a ] ) { var c = String ( h [ a ] ) ; "" === b ? b = c : b += "0000000" . slice ( 0 , 7 - c . length ) + c } return b } function d ( a , b , c ) { return 0 === b ? c : b % 2 === 1 ? d ( a , b - 1 , c * a ) : d ( a * a , b / 2 , c ) } function e ( a ) { for ( var b = 0 ; a >= 4096 ; ) b += 12 , a /= 4096 ; for ( ; a >= 2 ; ) b += 1 , a /= 2 ; return b } var f , g , h ; f = 1e7 , g = 6 , h = [ 0 , 0 , 0 , 0 , 0 , 0 ] , Number . prototype . toFixed = function ( f ) { var g , h , i , j , k , l , m , n ; if ( g = Number ( f ) , g = g !== g ? 0 : Math . floor ( g ) , g < 0 || g > 20 ) throw new RangeError ( "Number.toFixed called with invalid number of decimals" ) ; if ( h = Number ( this ) , h !== h ) return "NaN" ; if ( h <= - 1e21 || h > 1e21 ) return String ( h ) ; if ( i = "" , h < 0 && ( i = "-" , h = - h ) , j = "0" , h > 1e-21 ) if ( k = e ( h * d ( 2 , 69 , 1 ) ) - 69 , l = k < 0 ? h * d ( 2 , - k , 1 ) : h / d ( 2 , k , 1 ) , l *= 4503599627370496 , k = 52 - k , k > 0 ) { for ( a ( 0 , l ) , m = g ; m >= 7 ; ) a ( 1e7 , 0 ) , m -= 7 ; for ( a ( d ( 10 , m , 1 ) , 0 ) , m = k - 1 ; m >= 23 ; ) b ( 1 << 23 ) , m -= 23 ; b ( 1 << m ) , a ( 1 , 1 ) , b ( 2 ) , j = c ( ) } else a ( 0 , l ) , a ( 1 << - k , 0 ) , j = c ( ) + "0.00000000000000000000" . slice ( 2 , 2 + g ) ; return g > 0 ? ( n = j . length , j = n <= g ? i + "0.0000000000000000000" . slice ( 0 , g - n + 2 ) + j : i + j . slice ( 0 , n - g ) + "." + j . slice ( n - g ) ) : j = i + j , j } } ( ) , _ . extend ( BI , { MAX : 0x1000000000000000 , MIN : - 0x1000000000000000 , EVENT _RESPONSE _TIME : 200 , zIndex _layer : 1e5 , zIndex _popover : 1e6 , zIndex _popup : 1e7 , zIndex _masker : 1e8 , zIndex _tip : 1e9 , emptyStr : "" , emptyFn : function ( ) { } , empty : null , Key : { 48 : "0" , 49 : "1" , 50 : "2" , 51 : "3" , 52 : "4" , 53 : "5" , 54 : "6" , 55 : "7" , 56 : "8" , 57 : "9" , 65 : "a" , 66 : "b" , 67 : "c" , 68 : "d" , 69 : "e" , 70 : "f" , 71 : "g" , 72 : "h" , 73 : "i" , 74 : "j" , 75 : "k" , 76 : "l" , 77 : "m" , 78 : "n" , 79 : "o" , 80 : "p" , 81 : "q" , 82 : "r" , 83 : "s" , 84 : "t" , 85 : "u" , 86 : "v" , 87 : "w" , 88 : "x" , 89 : "y" , 90 : "z" , 96 : "0" , 97 : "1" , 98 : "2" , 99 : "3" , 100 : "4" , 101 : "5" , 102 : "6" , 103 : "7" , 104 : "8" , 105 : "9" , 106 : "*" , 107 : "+" , 109 : "-" , 110 : "." , 111 : "/" } , KeyCode : { BACKSPACE : 8 , COMMA : 188 , DELETE : 46 , DOWN : 40 , END : 35 , ENTER : 13 , ESCAPE : 27 , HOME : 36 , LEFT : 37 , NUMPAD _ADD : 107 , NUMPAD _DECIMAL : 110 , NUMPAD _DIVIDE : 111 , NUMPAD _ENTER : 108 , NUMPAD _MULTIPLY : 106 , NUMPAD _SUBTRACT : 109 , PAGE _DOWN : 34 , PAGE _UP : 33 , PERIOD : 190 , RIGHT : 39 , SPACE : 32 , TAB : 9 , UP : 38 } , Status : { SUCCESS : 1 , WRONG : 2 , START : 3 , END : 4 , WAITING : 5 , READY : 6 , RUNNING : 7 , OUTOFBOUNDS : 8 , NULL : - 1 } , Direction : { Top : "top" , Bottom : "bottom" , Left : "left" , Right : "right" , Custom : "custom" } , Axis : { Vertical : "vertical" , Horizontal : "horizontal" } , Selection : { Default : - 2 , None : - 1 , Single : 0 , Multi : 1 , All : 2 } , HorizontalAlign : { Left : "left" , Right : "right" , Center : "center" , Stretch : "stretch" } , VerticalAlign : { Middle : "middle" , Top : "top" , Bottom : "bottom" , Stretch : "stretch" } , StartOfWeek : 1 } ) , BI . version = "2.0" , BI . AbsoluteCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-center-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteCenterLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "absolute"
BI . AdaptiveLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AdaptiveLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-adaptive-layout" , hgap : null , vgap : null , lgap : null , rgap : null , tgap : null , bgap : null } ) } , render : function ( ) { BI . AdaptiveLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AdaptiveLayout . superclass . _addElement . apply ( this , arguments ) ; d . element . css ( { position : "relative" } ) ; var e = 0 , f = 0 , g = 0 , h = 0 ; return BI . isNotNull ( b . left ) && d . element . css ( { "margin-left" : b . left } ) , BI . isNotNull ( b . right ) && d . element . css ( { "margin-right" : b . right } ) , BI . isNotNull ( b . top ) && d . element . css ( { "margin-top" : b . top } ) , BI . isNotNull ( b . bottom ) && d . element . css ( { "margin-bottom" : b . bottom } ) , BI . isNotNull ( c . hgap ) && ( e += c . hgap , d . element . css ( { left : e } ) , f += c . hgap , d . element . css ( { right : f } ) ) , BI . isNotNull ( c . vgap ) && ( g += c . vgap , d . element . css ( { top : g } ) , h += c . vgap , d . element . css ( { bottom : h } ) ) , BI . isNotNull ( c . lgap ) && ( e += c . lgap , d . element . css ( { left : e } ) ) , BI . isNotNull ( c . rgap ) && ( f += c . rgap , d . element . css ( { right : f } ) ) , BI . isNotNull ( c . tgap ) && ( g += c . tgap , d . element . css ( { top : g } ) ) , BI . isNotNull ( c . bgap ) && ( h += c . bgap , d . element . css ( { bottom : h } ) ) , BI . isNotNull ( b . width ) && d . element . css ( { width : b . width } ) , BI . isNotNull ( b . height ) && d . element . css ( { height : b . height } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . AbsoluteLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.adaptive" , BI . AdaptiveLayout ) , BI . BorderLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . BorderLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-border-layout" , items : { } } ) } , render : function ( ) { BI . BorderLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { this . stroke ( this . options . items ) } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b , c = 0 , d = 0 , e = 0 , f = 0 ; if ( "north" in a && ( b = a . north , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "north" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "north" , g ) } this . getWidgetByName ( this . getName ( ) + "north" ) . element . height ( b . height ) . css ( { position : "absolute" , top : b . top || 0 , left : b . left || 0 , right : b . right || 0 , bottom : "initial" } ) } c = ( b . height || 0 ) + ( b . top || 0 ) + ( b . bottom || 0 ) } if ( "south" in a && ( b = a . south , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "south" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "south" , g ) } this . getWidgetByName ( this . getName ( ) + "south" ) . element . height ( b . height ) . css ( { position : "absolute" , bottom : b . bottom || 0 , left : b . left || 0 , right : b . right || 0 , top : "initial" } ) } d = ( b . height || 0 ) + ( b . top || 0 ) + ( b . bottom || 0 ) } if ( "west" in a && ( b = a . west , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "west" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "west" , g ) } this . getWidgetByName ( this . getName ( ) + "west" ) . element . width ( b . width ) . css ( { position : "absolute" , left : b . left || 0 , top : c , bottom : d , right : "initial" } ) } e = ( b . width || 0 ) + ( b . left || 0 ) + ( b . right || 0 ) } if ( "east" in a && ( b = a . east , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "east" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "east" , g ) } this . getWidgetByName ( this . getName ( ) + "east" ) . element . width ( b . width ) . css ( { position : "absolute" , right : b . right || 0 , top : c , bottom : d , left : "initial" } ) } f = ( b . width || 0 ) + ( b . left || 0 ) + ( b . right || 0 ) } if ( "center" in a && ( b = a . center , null != b ) ) { if ( ! this . hasWidget ( this . getName ( ) + "center" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "center" , g ) } this . getWidgetByName ( this . getName ( ) + "center" ) . element . css ( { position : "absolute" , top : c , bottom : d , left : e , right : f } ) } } , update : function ( a ) { } , populate : function ( a ) { BI . BorderLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.border" , BI . BorderLayout ) , BI . CardLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . CardLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-card-layout" , items : [ ] } ) } , render : function ( ) { BI . CardLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , stroke : function ( a ) { var b = this , c = this . options ; this . showIndex = void 0 , BI . each ( a , function ( a , d ) { if ( d ) { i
height : o } ) , d ( m , f , g ) } if ( ! BI . isNumber ( e . rowSize [ f ] ) ) break } for ( var f = e . rows - 1 ; f >= 0 ; f -- ) { for ( var g = 0 ; g < e . columns ; g ++ ) { var m = this . getWidgetByName ( this . getName ( ) + f + "_" + g ) ; BI . isNull ( l [ f ] ) && ( l [ f ] = l [ f + 1 ] + ( e . rowSize [ f + 1 ] < 1 ? e . rowSize [ f + 1 ] : e . rowSize [ f + 1 ] + e . vgap + e . tgap ) ) ; var p = l [ f ] <= 1 ? 100 * l [ f ] + "%" : l [ f ] + e . vgap + e . bgap + "px" , o = "" ; BI . isNumber ( e . rowSize [ f ] ) && ( o = e . rowSize [ f ] <= 1 ? 100 * e . rowSize [ f ] + "%" : e . rowSize [ f ] + "px" ) , m . element . css ( { bottom : p , height : o } ) , d ( m , f , g ) } if ( ! BI . isNumber ( e . rowSize [ f ] ) ) break } for ( var g = 0 ; g < e . columns ; g ++ ) { for ( var f = 0 ; f < e . rows ; f ++ ) { var m = this . getWidgetByName ( this . getName ( ) + f + "_" + g ) ; BI . isNull ( i [ g ] ) && ( i [ g ] = i [ g - 1 ] + ( e . columnSize [ g - 1 ] < 1 ? e . columnSize [ g - 1 ] : e . columnSize [ g - 1 ] + e . hgap + e . rgap ) ) ; var q = i [ g ] <= 1 ? 100 * i [ g ] + "%" : i [ g ] + e . hgap + e . lgap + "px" , h = "" ; BI . isNumber ( e . columnSize [ g ] ) && ( h = e . columnSize [ g ] <= 1 ? 100 * e . columnSize [ g ] + "%" : e . columnSize [ g ] + "px" ) , m . element . css ( { left : q , width : h } ) , d ( m , f , g ) } if ( ! BI . isNumber ( e . columnSize [ g ] ) ) break } for ( var g = e . columns - 1 ; g >= 0 ; g -- ) { for ( var f = 0 ; f < e . rows ; f ++ ) { var m = this . getWidgetByName ( this . getName ( ) + f + "_" + g ) ; BI . isNull ( j [ g ] ) && ( j [ g ] = j [ g + 1 ] + ( e . columnSize [ g + 1 ] < 1 ? e . columnSize [ g + 1 ] : e . columnSize [ g + 1 ] + e . hgap + e . lgap ) ) ; var r = j [ g ] <= 1 ? 100 * j [ g ] + "%" : j [ g ] + e . hgap + e . rgap + "px" , h = "" ; BI . isNumber ( e . columnSize [ g ] ) && ( h = e . columnSize [ g ] <= 1 ? 100 * e . columnSize [ g ] + "%" : e . columnSize [ g ] + "px" ) , m . element . css ( { right : r , width : h } ) , d ( m , f , g ) } if ( ! BI . isNumber ( e . columnSize [ g ] ) ) break } } , update : function ( ) { } , populate : function ( a ) { BI . WindowLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.window" , BI . WindowLayout ) , BI . CenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . CenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . CenterLayout . superclass . render . apply ( this , arguments ) ; var a = this , b = this . options , c = [ ] , d = b . items ; return BI . each ( d , function ( a ) { c . push ( { column : a , row : 0 , el : BI . createWidget ( { type : "bi.default" , cls : "center-element " + ( 0 === a ? "first-element " : "" ) + ( a === d . length - 1 ? "last-element" : "" ) } ) } ) } ) , BI . each ( d , function ( a , d ) { if ( d ) { var e = BI . createWidget ( d ) ; e . element . css ( { position : "absolute" , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap , width : "auto" , height : "auto" } ) , c [ a ] . el . addItem ( e ) } } ) , { type : "bi.grid" , ref : function ( b ) { a . wrapper = b } , columns : c . length , rows : 1 , items : c } } , resize : function ( ) { } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , update : function ( a ) { return this . wrapper . update ( a ) } , populate : function ( a ) { this . wrapper . populate . apply ( this . wrapper , arguments ) } } ) , BI . shortcut ( "bi.center" , BI . CenterLayout ) , BI . FloatCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . FloatCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-float-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . FloatCenterLayout . superclass . render . apply ( this , arguments ) ; var a = this , b = this . options , c = b . items , d = [ ] , e = 100 / c . length ; return BI . each ( c , function ( a ) { var b = BI . createWidget ( { type : "bi.default" } ) ; b . element . addClass ( "center-element " + ( 0 === a ? "first-element " : "" ) + ( a === c . length - 1 ? "last-element" : "" ) ) . css ( { width : e + "%" , height : "100%" } ) , d . push ( { el : b } ) } ) , BI . each ( c , function ( a , c ) { if ( c ) { var e = BI . createWidget ( c ) ; e . element . css ( { position : "absolute" , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap , width : "auto" , height : "auto" } ) , d [ a ] . el . addItem ( e ) } } ) , { type : "bi.left" , ref : function ( b ) { a . wrapper = b } , items : d } } , resize : function ( ) { } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , update : function ( a ) { return this . wrapper . update ( a ) } , populate : function ( a ) { this . wrapper . populate . apply ( this . wrapper , arguments ) } } ) , BI . shortcut ( "bi.float_center" , BI . FloatCenterLayout ) , BI . HorizontalCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . HorizontalCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-horizontal-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . HorizontalCenterLayout . superclass . render . apply ( this , arguments ) ; var a = this , b = this . options , c = b . items , d = [ ] ; return BI . each ( c , function ( a ) { d . push ( { column : a , row : 0 , el : BI . createWidget
this . options . text = a } , getText : function ( ) { return this . options . text } , _setEnable : function ( a ) { BI . BasicButton . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . element . removeClass ( "base-disabled disabled" ) : a === ! 1 && this . element . addClass ( "base-disabled disabled" ) , a || this . options . shadow && this . $mask && this . $mask . setVisible ( ! 1 ) } , empty : function ( ) { BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mouseup." + this . getName ( ) ) , BI . BasicButton . superclass . empty . apply ( this , arguments ) } , destroy : function ( ) { BI . BasicButton . superclass . destroy . apply ( this , arguments ) } } ) , BI . BasicButton . EVENT _CHANGE = "BasicButton.EVENT_CHANGE" , BI . NodeButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . NodeButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { _baseCls : ( a . _baseCls || "" ) + " bi-node" , open : ! 1 } ) } , _init : function ( ) { BI . NodeButton . superclass . _init . apply ( this , arguments ) ; var a = this ; BI . nextTick ( function ( ) { a . setOpened ( a . isOpened ( ) ) } ) } , doClick : function ( ) { BI . NodeButton . superclass . doClick . apply ( this , arguments ) , this . setOpened ( ! this . isOpened ( ) ) } , isOnce : function ( ) { return ! 1 } , isOpened : function ( ) { return ! ! this . options . open } , setOpened : function ( a ) { this . options . open = ! ! a } , triggerCollapse : function ( ) { this . isOpened ( ) && ( this . setOpened ( ! 1 ) , this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , this . getValue ( ) , this ) ) } , triggerExpand : function ( ) { this . isOpened ( ) || ( this . setOpened ( ! 0 ) , this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , this . getValue ( ) , this ) ) } } ) , BI . Tip = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Link . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { _baseCls : ( a . _baseCls || "" ) + " bi-tip" , zIndex : BI . zIndex _tip } ) } , _init : function ( ) { BI . Tip . superclass . _init . apply ( this , arguments ) , this . element . css ( { zIndex : this . options . zIndex } ) } } ) , BI . ButtonGroup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ButtonGroup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-button-group" , behaviors : { } , items : [ ] , value : "" , chooseType : BI . Selection . Single , layouts : [ { type : "bi.center" , hgap : 0 , vgap : 0 } ] } ) } , _init : function ( ) { BI . ButtonGroup . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = { } ; BI . each ( a . behaviors , function ( a , c ) { b [ a ] = BI . BehaviorFactory . createBehavior ( a , { rule : c } ) } ) , this . behaviors = b , this . populate ( a . items ) , ( BI . isKey ( a . value ) || BI . isNotEmptyArray ( a . value ) ) && this . setValue ( a . value ) } , _createBtns : function ( a ) { this . options ; return BI . createWidgets ( BI . createItems ( a , { type : "bi.text_button" } ) ) } , _btnsCreator : function ( a ) { var b = this , c = Array . prototype . slice . call ( arguments ) , d = this . options , e = this . _createBtns ( a ) ; return c [ 0 ] = e , BI . each ( this . behaviors , function ( a , b ) { b . doBehavior . apply ( b , c ) } ) , BI . each ( e , function ( a , c ) { c . on ( BI . Controller . EVENT _CHANGE , function ( a , e , f ) { if ( a === BI . Events . CLICK ) { switch ( d . chooseType ) { case BI . ButtonGroup . CHOOSE _TYPE _SINGLE : b . setValue ( c . getValue ( ) ) ; break ; case BI . ButtonGroup . CHOOSE _TYPE _NONE : b . setValue ( [ ] ) } b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b . fireEvent ( BI . ButtonGroup . EVENT _CHANGE , e , f ) } else b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , c . on ( BI . Events . DESTROY , function ( ) { BI . remove ( b . buttons , c ) } ) } ) , e } , _packageBtns : function ( a ) { for ( var b = this . options , c = b . layouts . length - 1 ; c > 0 ; c -- ) a = BI . map ( a , function ( a , d ) { return BI . extend ( { } , b . layouts [ c ] , { items : [ BI . extend ( { } , b . layouts [ c ] . el , { el : d } ) ] } ) } ) ; return a } , _packageSimpleItems : function ( a ) { var b = this . options ; return BI . map ( b . items , function ( b , c ) { return BI . stripEL ( c ) === c ? a [ b ] : BI . extend ( { } , c , { el : a [ b ] } ) } ) } , _packageItems : function ( a , b ) { return BI . createItems ( BI . makeArrayByArray ( a , { } ) , BI . clone ( b ) ) } , _packageLayout : function ( a ) { for ( var b = this . options , c = BI . deepClone ( b . layouts [ 0 ] ) , d = BI . formatEL ( c ) . el ; d && d . items && ! BI . isEmpty ( d . items ) ; ) d = BI . formatEL ( d . items [ 0 ] ) . el ; return d . items = a , c } , _isSimpleLayout : function ( ) { var a = this . options ; return 1 === a . layouts . length && ! BI . isArray ( a . items [ 0 ] ) } , doBehavior : function ( ) { var a = Array . prototype . slice . call ( arguments ) ; a . unshift ( this . buttons ) , BI . each ( this . behaviors , function ( b , c ) { c . doBehavior . apply ( c , a ) } ) } , prependItems : function ( a ) { var b = ( this . options , this . _btnsCreator . apply ( this , arguments ) ) ; return this . buttons = BI . concat ( b , this
} , _getMaxScrollTop : function ( ) { return Math . max ( 0 , this . _height - this . options . height + ( this . options . overflowY ? BI . DOM . getScrollWidth ( ) : 0 ) ) } , _populate : function ( a ) { var b = this . options ; if ( this . _reRange ( ) , a && a !== this . options . items && ( this . options . items = a , this . _calculateSizeAndPositionData ( ) ) , b . items . length > 0 ) { this . container . setWidth ( this . _width ) , this . container . setHeight ( this . _height ) , this . _calculateChildrenToRender ( ) ; try { this . element . scrollTop ( b . scrollTop ) , this . element . scrollLeft ( b . scrollLeft ) } catch ( c ) { } } } , setScrollLeft : function ( a ) { this . options . scrollLeft !== a && ( this . _scrollLock = ! 0 , this . options . scrollLeft = BI . clamp ( a || 0 , 0 , this . _getMaxScrollLeft ( ) ) , this . _debounceRelease ( ) , this . _calculateChildrenToRender ( ) , this . element . scrollLeft ( this . options . scrollLeft ) ) } , setScrollTop : function ( a ) { this . options . scrollTop !== a && ( this . _scrollLock = ! 0 , this . options . scrollTop = BI . clamp ( a || 0 , 0 , this . _getMaxScrollTop ( ) ) , this . _debounceRelease ( ) , this . _calculateChildrenToRender ( ) , this . element . scrollTop ( this . options . scrollTop ) ) } , setOverflowX : function ( a ) { var b = this ; this . options . overflowX !== ! ! a && ( this . options . overflowX = ! ! a , BI . nextTick ( function ( ) { b . element . css ( { overflowX : a ? "auto" : "hidden" } ) } ) ) } , setOverflowY : function ( a ) { var b = this ; this . options . overflowY !== ! ! a && ( this . options . overflowY = ! ! a , BI . nextTick ( function ( ) { b . element . css ( { overflowY : a ? "auto" : "hidden" } ) } ) ) } , getScrollLeft : function ( ) { return this . options . scrollLeft } , getScrollTop : function ( ) { return this . options . scrollTop } , getMaxScrollLeft : function ( ) { return this . _getMaxScrollLeft ( ) } , getMaxScrollTop : function ( ) { return this . _getMaxScrollTop ( ) } , _reRange : function ( ) { this . renderRange = { } } , _clearChildren : function ( ) { this . container . _children = { } , this . container . attr ( "items" , [ ] ) } , restore : function ( ) { BI . each ( this . renderedCells , function ( a , b ) { b . el . _destroy ( ) } ) , this . _clearChildren ( ) , this . renderedCells = [ ] , this . renderedKeys = [ ] , this . renderRange = { } , this . _scrollLock = ! 1 } , populate : function ( a ) { a && a !== this . options . items && this . restore ( ) , this . _populate ( a ) } } ) , BI . CollectionView . EVENT _SCROLL = "EVENT_SCROLL" , BI . shortcut ( "bi.collection_view" , BI . CollectionView ) , BI . Combo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . Combo . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-combo" , trigger : "click" , toggle : ! 0 , direction : "bottom" , container : null , isDefaultInit : ! 1 , destroyWhenHide : ! 1 , isNeedAdjustHeight : ! 0 , isNeedAdjustWidth : ! 0 , stopEvent : ! 1 , stopPropagation : ! 1 , adjustLength : 0 , adjustXOffset : 0 , adjustYOffset : 0 , hideChecker : BI . emptyFn , offsetStyle : "left" , el : { } , popup : { } , comboClass : "bi-combo-popup" , hoverClass : "bi-combo-hover" } ) } , _init : function ( ) { BI . Combo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . _initCombo ( ) , this . _initPullDownAction ( ) , this . combo . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . isEnabled ( ) && a . isValid ( ) && ( b === BI . Events . EXPAND && a . _popupView ( ) , b === BI . Events . COLLAPSE && a . _hideView ( ) , b === BI . Events . EXPAND && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . fireEvent ( BI . Combo . EVENT _EXPAND ) ) , b === BI . Events . COLLAPSE && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . isViewVisible ( ) && a . fireEvent ( BI . Combo . EVENT _COLLAPSE ) ) , b === BI . Events . CLICK && a . fireEvent ( BI . Combo . EVENT _TRIGGER _CHANGE , d ) ) } ) , a . element . on ( "mouseenter." + a . getName ( ) , function ( c ) { a . isEnabled ( ) && a . isValid ( ) && a . combo . isEnabled ( ) && a . combo . isValid ( ) && a . element . addClass ( b . hoverClass ) } ) , a . element . on ( "mouseleave." + a . getName ( ) , function ( c ) { a . isEnabled ( ) && a . isValid ( ) && a . combo . isEnabled ( ) && a . combo . isValid ( ) && a . element . removeClass ( b . hoverClass ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . combo } ] } ) , b . isDefaultInit && this . _assertPopupView ( ) , BI . Resizers . add ( this . getName ( ) , BI . bind ( function ( ) { this . isViewVisible ( ) && this . _hideView ( ) } , this ) ) } , _toggle : function ( ) { this . _assertPopupViewRender ( ) , this . popupView . isVisible ( ) ? this . _hideView ( ) : this . isEnabled ( ) && this . _popupView ( ) } , _initPullDownAction : function ( ) { function a ( ) { b . isEnabled ( ) && b . isValid ( ) && b . combo . isEnabled ( ) && b . combo . isValid ( ) && c . toggle === ! 0 && ( b . _hideView ( ) , b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _COLLAPSE ) ) , b . popupV
} , this . getName ( ) ) , this . _isSearching === ! 0 && ( this . popupView && this . popupView . pauseSearch && this . popupView . pauseSearch ( ) , this . fireEvent ( BI . Searcher . EVENT _PAUSE ) ) , this . _isSearching = ! 1 } , _stopSearch : function ( ) { var a = ( this . options , this . getName ( ) ) ; this . _stop = ! 0 , BI . Maskers . hide ( a ) , this . _isSearching === ! 0 && ( this . popupView && this . popupView . stopSearch && this . popupView . stopSearch ( ) , this . fireEvent ( BI . Searcher . EVENT _STOP ) ) , this . _isSearching = ! 1 } , _search : function ( ) { var a = this , b = this . options , c = this . editor . getValue ( ) ; if ( "" !== c && ! this . _stop ) { if ( b . isAutoSearch ) { var d = b . adapter && ( b . adapter . getItems && b . adapter . getItems ( ) || b . adapter . attr ( "items" ) ) || [ ] , e = BI . Func . getSearchResult ( d , c ) , f = e . match , g = e . find ; return this . popupView . populate ( g , f , c ) , b . isAutoSync && b . adapter && b . adapter . getValue && this . popupView . setValue ( b . adapter . getValue ( ) ) , void a . fireEvent ( BI . Searcher . EVENT _SEARCHING ) } this . popupView . loading && this . popupView . loading ( ) , b . onSearch ( { times : 1 , keyword : c , selectedValues : b . adapter && b . adapter . getValue ( ) } , function ( d , e ) { if ( ! a . _stop ) { var f = [ ] . slice . call ( arguments ) ; f . length > 0 && f . push ( c ) , BI . Maskers . show ( a . getName ( ) ) , a . popupView . populate . apply ( a . popupView , f ) , b . isAutoSync && b . adapter && b . adapter . getValue && a . popupView . setValue ( b . adapter . getValue ( ) ) , a . popupView . loaded && a . popupView . loaded ( ) , a . fireEvent ( BI . Searcher . EVENT _SEARCHING ) } } ) } } , setAdapter : function ( a ) { this . options . adapter = a , BI . Maskers . remove ( this . getName ( ) ) } , doSearch : function ( ) { this . isSearching ( ) && this . _search ( ) } , stopSearch : function ( ) { this . _stopSearch ( ) ; try { this . editor . blur ( ) } catch ( a ) { if ( ! this . editor . blur ) throw new Error ( "editor没有实现blur方法" ) } finally { this . editor . setValue ( "" ) } } , isSearching : function ( ) { return this . _isSearching } , isViewVisible : function ( ) { return this . editor . isEnabled ( ) && BI . Maskers . isVisible ( this . getName ( ) ) } , getView : function ( ) { return this . popupView } , hasMatched : function ( ) { return this . _assertPopupView ( ) , this . popupView . hasMatched ( ) } , adjustHeight : function ( ) { BI . Maskers . has ( this . getName ( ) ) && BI . Maskers . get ( this . getName ( ) ) . isVisible ( ) && BI . Maskers . show ( this . getName ( ) ) } , adjustView : function ( ) { this . isViewVisible ( ) && BI . Maskers . show ( this . getName ( ) ) } , setValue : function ( a ) { BI . isNull ( this . popupView ) ? this . options . popup . value = a : this . popupView . setValue ( a ) } , getKeyword : function ( ) { return this . editor . getValue ( ) } , getKeywords : function ( ) { return this . editor . getKeywords ( ) } , getValue : function ( ) { var a = this . options ; return a . isAutoSync && a . adapter && a . adapter . getValue ? a . adapter . getValue ( ) : this . isSearching ( ) ? this . popupView . getValue ( ) : a . adapter && a . adapter . getValue ? a . adapter . getValue ( ) : BI . isNull ( this . popupView ) ? a . popup . value : this . popupView . getValue ( ) } , populate : function ( a , b , c ) { var d = this . options ; this . _assertPopupView ( ) , this . popupView . populate . apply ( this . popupView , arguments ) , d . isAutoSync && d . adapter && d . adapter . getValue && this . popupView . setValue ( d . adapter . getValue ( ) ) } , empty : function ( ) { this . popupView && this . popupView . empty ( ) } , destroy : function ( ) { BI . Maskers . remove ( this . getName ( ) ) , BI . Searcher . superclass . destroy . apply ( this , arguments ) } } ) , BI . Searcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . Searcher . EVENT _START = "EVENT_START" , BI . Searcher . EVENT _STOP = "EVENT_STOP" , BI . Searcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . Searcher . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . Searcher . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . shortcut ( "bi.searcher" , BI . Searcher ) , BI . Switcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Switcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-switcher" , direction : BI . Direction . Top , trigger : "click" , toggle : ! 0 , el : { } , popup : { } , adapter : null , masker : { } , switcherClass : "bi-switcher-popup" , hoverClass : "bi-switcher-hover" } ) } , _init : function ( ) { BI . Switcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . _initSwitcher ( ) , this . _initPullDownAction ( ) , this . switcher . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . isEnabled ( ) && a . isValid ( ) && ( b === BI . Events . EXPAND && a . _popupView ( ) , b === BI . Events . COLLAPSE && a . _hideView ( ) , b === BI . Events . EXPAND && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . fireEvent ( BI . Switcher . EVENT _EXPAND ) ) , b === BI . Events . COLLAPSE && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . isViewVisible ( ) && a . fireEven
this . _populate ( ) , this . element . scroll ( function ( c ) { b . scrollTop = a . element . scrollTop ( ) , a . _calculateBlocksToRender ( ) } ) , BI . ResizeDetector . addResizeListener ( this , function ( ) { a . _calculateBlocksToRender ( ) } ) } , _renderMoreIf : function ( ) { for ( var a , b = this , c = this . options , d = this . element . height ( ) , e = c . scrollTop + d + c . overscanHeight , f = this . cache [ this . renderedIndex ] && this . cache [ this . renderedIndex ] . index + c . blockSize || 0 , g = this . renderedIndex + 1 , h = function ( ) { return b . container . element . height ( ) } ; ( a = h ( ) ) < e && f < c . items . length ; ) { var i = c . items . slice ( f , f + c . blockSize ) ; this . container . addItems ( i , this ) ; var j = h ( ) - a ; this . cache [ g ] = { index : f , scrollTop : a , height : j } , this . renderedIndex = g , g ++ , f += c . blockSize } } , _calculateBlocksToRender : function ( ) { this . options ; this . _renderMoreIf ( ) } , _populate : function ( a ) { var b = this . options ; a && this . options . items !== a && ( this . options . items = a ) , this . _calculateBlocksToRender ( ) , this . element . scrollTop ( b . scrollTop ) } , restore : function ( ) { this . renderedIndex = - 1 , this . container . empty ( ) , this . cache = { } } , populate : function ( a ) { a && this . options . items !== a && this . restore ( ) , this . _populate ( a ) } , destroyed : function ( ) { this . restore ( ) } } ) , BI . shortcut ( "bi.list_view" , BI . ListView ) , BI . VirtualList = BI . inherit ( BI . Widget , { props : function ( ) { return { baseCls : "bi-virtual-list" , overscanHeight : 100 , blockSize : 10 , scrollTop : 0 , items : [ ] } } , init : function ( ) { this . renderedIndex = - 1 , this . cache = { } } , render : function ( ) { var a = this ; this . options ; return { type : "bi.vertical" , items : [ { type : "bi.layout" , ref : function ( ) { a . topBlank = this } } , { type : "bi.vertical" , scrolly : ! 1 , ref : function ( ) { a . container = this } } , { type : "bi.layout" , ref : function ( ) { a . bottomBlank = this } } ] , element : this } } , mounted : function ( ) { var a = this , b = this . options ; this . _populate ( ) , this . element . scroll ( function ( c ) { b . scrollTop = a . element . scrollTop ( ) , a . _calculateBlocksToRender ( ) } ) , BI . ResizeDetector . addResizeListener ( this , function ( ) { a . _calculateBlocksToRender ( ) } ) } , _renderMoreIf : function ( ) { for ( var a , b = this , c = this . options , d = this . element . height ( ) , e = c . scrollTop + d + c . overscanHeight , f = this . cache [ this . renderedIndex ] && this . cache [ this . renderedIndex ] . index + c . blockSize || 0 , g = this . renderedIndex + 1 , h = function ( ) { return b . container . element . height ( ) + b . topBlank . element . height ( ) + b . bottomBlank . element . height ( ) } ; ( a = h ( ) ) < e && f < c . items . length ; ) { var i = c . items . slice ( f , f + c . blockSize ) ; this . container . addItems ( i , this ) ; var j = h ( ) - a ; this . cache [ g ] = { index : f , scrollTop : a , height : j } , this . tree . set ( g , j ) , this . renderedIndex = g , g ++ , f += c . blockSize } } , _calculateBlocksToRender : function ( ) { var a = this . options ; this . _renderMoreIf ( ) ; for ( var b = this . element . height ( ) , c = a . scrollTop - a . overscanHeight , d = a . scrollTop + b + a . overscanHeight , e = this . tree . greatestLowerBound ( c ) , f = this . tree . leastUpperBound ( d ) , g = [ ] , h = 0 ; h < e ; h ++ ) { var i = this . cache [ h ] . index ; if ( ! this . cache [ h ] . destroyed ) { for ( var j = i ; j < i + a . blockSize && j < a . items . length ; j ++ ) g . push ( this . container . _children [ j ] ) , this . container . _children [ j ] = null ; this . cache [ h ] . destroyed = ! 0 } } for ( var h = f + 1 ; h <= this . renderedIndex ; h ++ ) { var i = this . cache [ h ] . index ; if ( ! this . cache [ h ] . destroyed ) { for ( var j = i ; j < i + a . blockSize && j < a . items . length ; j ++ ) g . push ( this . container . _children [ j ] ) , this . container . _children [ j ] = null ; this . cache [ h ] . destroyed = ! 0 } } for ( var k = BI . Widget . _renderEngine . createFragment ( ) , l = BI . Widget . _renderEngine . createFragment ( ) , m = k , h = e < 0 ? 0 : e ; h <= f && h <= this . renderedIndex ; h ++ ) { var i = this . cache [ h ] . index ; if ( this . cache [ h ] . destroyed || ( m = l ) , this . cache [ h ] . destroyed === ! 0 ) { for ( var j = i ; j < i + a . blockSize && j < a . items . length ; j ++ ) { var n = this . container . _addElement ( j , BI . extend ( { root : ! 0 } , BI . stripEL ( a . items [ j ] ) ) , this ) ; m . appendChild ( n . element [ 0 ] ) } this . cache [ h ] . destroyed = ! 1 } } this . container . element . prepend ( k ) , this . container . element . append ( l ) , this . topBlank . setHeight ( this . cache [ e < 0 ? 0 : e ] . scrollTop ) ; var o = this . cache [ Math . min ( f , this . renderedIndex ) ] ; this . bottomBlank . setHeight ( this . tree . sumTo ( this . renderedIndex ) - o . scrollTop - o . height ) , BI . each ( g , function ( a , b ) { b && b . _destroy ( ) } ) } , _populate : function ( a ) { var b = this . options ; a && this . options . items !== a && ( this . options . items = a ) , this . tree = BI . PrefixIntervalTree . empty ( Math . ceil ( b . items . length / b . blockSize ) ) , this . _calculateBlocksToRender ( ) , this . element . scrollTop ( b . scrollTop ) } , _clearChildren : function ( ) { BI . each ( this . container
BI . IconTextNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . _const ; this . text = BI . createWidget ( { type : "bi.label" , cls : "list-item-text" , textAlign : "left" , hgap : a . textHgap , vgap : a . textVgap , lgap : a . textLgap , rgap : a . textRgap , text : a . text , value : a . value , keyword : a . keyword , height : a . height } ) , this . icon = BI . createWidget ( { type : "bi.icon_label" , width : a . height , height : a . height , iconWidth : a . iconWidth , iconHeight : a . iconHeight } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , this . icon , this . text ) } ) ) ) ) } , setValue : function ( ) { this . isReadOnly ( ) || this . text . setValue . apply ( this . text , arguments ) } , getValue : function ( ) { return this . text . getValue ( ) } , setText : function ( ) { this . text . setText . apply ( this . text , arguments ) } , getText : function ( ) { return this . text . getText ( ) } , doClick : function ( ) { BI . IconTextNode . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . IconTextNode . EVENT _CHANGE , this . getValue ( ) , this ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } } ) , BI . IconTextNode . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_text_node" , BI . IconTextNode ) , BI . TextIconNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . TextIconNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-icon-node" , logic : { dynamic : ! 1 } , cls : "close-ha-font" , iconHeight : null , iconWidth : null , textHgap : 0 , textVgap : 0 , textLgap : 0 , textRgap : 0 } ) } , _init : function ( ) { BI . TextIconNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . _const ; this . text = BI . createWidget ( { type : "bi.label" , cls : "list-item-text" , textAlign : "left" , hgap : a . textHgap , vgap : a . textVgap , lgap : a . textLgap , rgap : a . textRgap , text : a . text , value : a . value , keyword : a . keyword , height : a . height } ) , this . icon = BI . createWidget ( { type : "bi.icon_label" , width : a . height , height : a . height , iconWidth : a . iconWidth , iconHeight : a . iconHeight } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , this . text , this . icon ) } ) ) ) ) } , doClick : function ( ) { BI . TextIconNode . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TextIconNode . EVENT _CHANGE , this . getValue ( ) , this ) } , setValue : function ( ) { this . isReadOnly ( ) || this . text . setValue . apply ( this . text , arguments ) } , getValue : function ( ) { return this . text . getValue ( ) } , setText : function ( ) { this . text . setText . apply ( this . text , arguments ) } , getText : function ( ) { return this . text . getText ( ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } } ) , BI . TextIconNode . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_icon_node" , BI . TextIconNode ) , BI . TextNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . TextNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-node" , textAlign : "left" , whiteSpace : "nowrap" , textHgap : 0 , textVgap : 0 , textLgap : 0 , textRgap : 0 } ) } , _init : function ( ) { BI . TextNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : a . textAlign , whiteSpace : a . whiteSpace , textHeight : "nowrap" == a . whiteSpace ? a . height : a . textHeight , height : a . height , hgap : a . textHgap , vgap : a . textVgap , lgap : a . textLgap , rgap : a . textRgap , text : a . text , value : a . value , keyword : a . keyword , py : a . py } ) } , doClick : function ( ) { BI . TextNode . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TextNode . EVENT _CHANGE , this . getValue ( ) , this ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , setValue : function ( ) { this . isReadOnly ( ) || this . text . setValue . apply ( this . text , arguments ) } , getValue : function ( ) { return this . text . getValue ( ) } , setText : function ( ) { this . text . setText . apply ( this . text , arguments ) } , getText : function ( ) { return this . text . getText ( ) } } ) , BI . TextNode . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_node" , BI . TextNode
this . fireEvent ( BI . Input . EVENT _FOCUS ) } , _blur : function ( ) { function a ( ) { b . isValid ( ) || b . options . quitChecker . apply ( b , [ BI . trim ( b . getValue ( ) ) ] ) === ! 1 || ( b . element . val ( b . _lastValidValue ? b . _lastValidValue : "" ) , b . _checkValidationOnValueChange ( ) , b . _defaultState ( ) ) , b . element . removeClass ( "bi-input-focus" ) , b . _isEditing = ! 1 , b . _start = ! 1 , b . isValid ( ) && ( b . _lastValidValue = b . getValue ( ) , b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . CONFIRM , b . getValue ( ) , b ) , b . fireEvent ( BI . Input . EVENT _CONFIRM ) ) , b . fireEvent ( BI . Input . EVENT _BLUR ) } var b = this ; b . _keydown _ === ! 0 ? BI . delay ( a , 300 ) : a ( ) } , _click : function ( ) { this . _isEditing !== ! 0 && ( this . selectAll ( ) , this . fireEvent ( BI . Input . EVENT _CLICK ) ) } , onClick : function ( ) { this . _click ( ) } , onKeyDown : function ( a , b ) { this . isValid ( ) && BI . trim ( this . _lastChangedValue ) === BI . trim ( this . getValue ( ) ) || this . _checkValidationOnValueChange ( ) , this . isValid ( ) && "" !== BI . trim ( this . getValue ( ) ) && ( ( BI . trim ( this . getValue ( ) ) === this . _lastValue || this . _start && null != this . _lastValue && "" !== this . _lastValue ) && ( this . _pause !== ! 0 || /(\s|\u00A0)$/ . test ( this . getValue ( ) ) ) || ( this . _start = ! 0 , this . _pause = ! 1 , this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . STARTEDIT , this . getValue ( ) , this ) , this . fireEvent ( BI . Input . EVENT _START ) ) ) , b === ! 0 && 86 === a ? this . _valueChange ( ) : ( a == BI . KeyCode . ENTER && ( this . isValid ( ) || this . options . quitChecker . apply ( this , [ BI . trim ( this . getValue ( ) ) ] ) !== ! 1 ? ( this . blur ( ) , this . fireEvent ( BI . Input . EVENT _ENTER ) ) : this . fireEvent ( BI . Input . EVENT _RESTRICT ) ) , a == BI . KeyCode . SPACE && this . fireEvent ( BI . Input . EVENT _SPACE ) , a == BI . KeyCode . BACKSPACE && "" == this . _lastValue && this . fireEvent ( BI . Input . EVENT _REMOVE ) , a != BI . KeyCode . BACKSPACE && a != BI . KeyCode . DELETE || this . fireEvent ( BI . Input . EVENT _BACKSPACE ) ) , this . fireEvent ( BI . Input . EVENT _KEY _DOWN ) , BI . isEndWithBlank ( this . getValue ( ) ) ? ( this . _pause = ! 0 , this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . PAUSE , "" , this ) , this . fireEvent ( BI . Input . EVENT _PAUSE ) , this . _defaultState ( ) ) : a !== BI . KeyCode . BACKSPACE && a !== BI . KeyCode . DELETE || "" !== BI . trim ( this . getValue ( ) ) || null === this . _lastValue || "" === BI . trim ( this . _lastValue ) ? this . _valueChange ( ) : ( this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . STOPEDIT , this . getValue ( ) , this ) , this . fireEvent ( BI . Input . EVENT _STOP ) , this . _valueChange ( ) ) } , _defaultState : function ( ) { "" == this . getValue ( ) && ( this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EMPTY , this . getValue ( ) , this ) , this . fireEvent ( BI . Input . EVENT _EMPTY ) ) , this . _lastValue = this . getValue ( ) , this . _lastSubmitValue = null } , _valueChange : function ( ) { this . isValid ( ) && BI . trim ( this . getValue ( ) ) !== this . _lastSubmitValue && ( this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . CHANGE , this . getValue ( ) , this ) , this . fireEvent ( BI . Input . EVENT _CHANGE ) , this . _lastSubmitValue = BI . trim ( this . getValue ( ) ) ) , "" == this . getValue ( ) && ( this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EMPTY , this . getValue ( ) , this ) , this . fireEvent ( BI . Input . EVENT _EMPTY ) ) , this . _lastValue = this . getValue ( ) } , _checkValidationOnValueChange : function ( ) { var a = this . options , b = this . getValue ( ) ; this . setValid ( a . allowBlank === ! 0 && "" == BI . trim ( b ) || BI . isNotEmptyString ( BI . trim ( b ) ) && ( b === this . _lastChangedValue || a . validationChecker . apply ( this , [ BI . trim ( b ) ] ) !== ! 1 ) ) } , focus : function ( ) { if ( ! this . element . is ( ":visible" ) ) throw new Error ( "input输入框在不可见下不能focus" ) ; ! this . _isEditing == ! 0 && ( this . element . focus ( ) , this . selectAll ( ) ) } , blur : function ( ) { if ( ! this . element . is ( ":visible" ) ) throw new Error ( "input输入框在不可见下不能blur" ) ; this . _isEditing === ! 0 && ( this . element . blur ( ) , this . _blurDebounce ( ) ) } , selectAll : function ( ) { if ( ! this . element . is ( ":visible" ) ) throw new Error ( "input输入框在不可见下不能select" ) ; this . element . select ( ) , this . _isEditing = ! 0 } , setValue : function ( a ) { this . element . val ( a ) , BI . nextTick ( BI . bind ( function ( ) { this . _checkValidationOnValueChange ( ) , this . _defaultState ( ) , this . isValid ( ) && ( this . _lastValidValue = this . _lastSubmitValue = this . getValue ( ) ) } , this ) ) } , getValue : function ( ) { return this . element . val ( ) || "" } , isEditing : function ( ) { return this . _isEditing } , getLastValidValue : function ( ) { return this . _lastChangedValue } , _setValid : function ( ) { BI . Input . superclass . _setValid . apply ( this , arguments ) , this . isValid ( ) ? ( this . _lastChangedValue = this . getValue ( ) , this . element . removeClass ( " bi - i
tools . apply ( a . callback . onClick , [ c , d , e , f ] ) } ) , b . bind ( c . EXPAND , function ( b , c , d ) { tools . apply ( a . callback . onExpand , [ b , c , d ] ) } ) , b . bind ( c . COLLAPSE , function ( b , c , d ) { tools . apply ( a . callback . onCollapse , [ b , c , d ] ) } ) , b . bind ( c . ASYNC _SUCCESS , function ( b , c , d , e ) { tools . apply ( a . callback . onAsyncSuccess , [ b , c , d , e ] ) } ) , b . bind ( c . ASYNC _ERROR , function ( b , c , d , e , f , g ) { tools . apply ( a . callback . onAsyncError , [ b , c , d , e , f , g ] ) } ) , b . bind ( c . REMOVE , function ( b , c , d ) { tools . apply ( a . callback . onRemove , [ b , c , d ] ) } ) , b . bind ( c . SELECTED , function ( b , c , d , e ) { tools . apply ( a . callback . onSelected , [ c , d , e ] ) } ) , b . bind ( c . UNSELECTED , function ( b , c , d , e ) { tools . apply ( a . callback . onUnSelected , [ c , d , e ] ) } ) } , _unbindEvent = function ( a ) { var b = a . treeObj , c = consts . event ; b . unbind ( c . NODECREATED ) . unbind ( c . CLICK ) . unbind ( c . EXPAND ) . unbind ( c . COLLAPSE ) . unbind ( c . ASYNC _SUCCESS ) . unbind ( c . ASYNC _ERROR ) . unbind ( c . REMOVE ) . unbind ( c . SELECTED ) . unbind ( c . UNSELECTED ) } , _eventProxy = function ( a ) { var b = a . target , c = data . getSetting ( a . data . treeId ) , d = "" , e = null , f = "" , g = "" , h = null , i = null , j = null ; if ( tools . eqs ( a . type , "mousedown" ) ? g = "mousedown" : tools . eqs ( a . type , "mouseup" ) ? g = "mouseup" : tools . eqs ( a . type , "contextmenu" ) ? g = "contextmenu" : tools . eqs ( a . type , "click" ) ? tools . eqs ( b . tagName , "span" ) && null !== b . getAttribute ( "treeNode" + consts . id . SWITCH ) ? ( d = tools . getNodeMainDom ( b ) . id , f = "switchNode" ) : ( j = tools . getMDom ( c , b , [ { tagName : "a" , attrName : "treeNode" + consts . id . A } ] ) , j && ( d = tools . getNodeMainDom ( j ) . id , f = "clickNode" ) ) : tools . eqs ( a . type , "dblclick" ) && ( g = "dblclick" , j = tools . getMDom ( c , b , [ { tagName : "a" , attrName : "treeNode" + consts . id . A } ] ) , j && ( d = tools . getNodeMainDom ( j ) . id , f = "switchNode" ) ) , g . length > 0 && 0 == d . length && ( j = tools . getMDom ( c , b , [ { tagName : "a" , attrName : "treeNode" + consts . id . A } ] ) , j && ( d = tools . getNodeMainDom ( j ) . id ) ) , d . length > 0 ) switch ( e = data . getNodeCache ( c , d ) , f ) { case "switchNode" : e . isParent && ( tools . eqs ( a . type , "click" ) || tools . eqs ( a . type , "dblclick" ) && tools . apply ( c . view . dblClickExpand , [ c . treeId , e ] , c . view . dblClickExpand ) ) ? h = handler . onSwitchNode : f = "" ; break ; case "clickNode" : h = handler . onClickNode } switch ( g ) { case "mousedown" : i = handler . onZTreeMousedown ; break ; case "mouseup" : i = handler . onZTreeMouseup ; break ; case "dblclick" : i = handler . onZTreeDblclick ; break ; case "contextmenu" : i = handler . onZTreeContextmenu } var k = { stop : ! 1 , node : e , nodeEventType : f , nodeEventCallback : h , treeEventType : g , treeEventCallback : i } ; return k } , _initNode = function ( a , b , c , d , e , f , g ) { if ( c ) { var h = data . getRoot ( a ) , i = a . data . key . children ; c . level = b , c . tId = a . treeId + "_" + ++ h . zId , c . parentTId = d ? d . tId : null , c . open = "string" == typeof c . open ? tools . eqs ( c . open , "true" ) : ! ! c . open , c [ i ] && c [ i ] . length > 0 ? ( c . isParent = ! 0 , c . zAsync = ! 0 ) : ( c . isParent = "string" == typeof c . isParent ? tools . eqs ( c . isParent , "true" ) : ! ! c . isParent , c . open = ! ( ! c . isParent || a . async . enable ) && c . open , c . zAsync = ! c . isParent ) , c . isFirstNode = e , c . isLastNode = f , c . getParentNode = function ( ) { return data . getNodeCache ( a , c . parentTId ) } , c . getPreNode = function ( ) { return data . getPreNode ( a , c ) } , c . getNextNode = function ( ) { return data . getNextNode ( a , c ) } , c . isAjaxing = ! 1 , data . fixPIdKeyValue ( a , c ) } } , _init = { bind : [ _bindEvent ] , unbind : [ _unbindEvent ] , caches : [ _initCache ] , nodes : [ _initNode ] , proxys : [ _eventProxy ] , roots : [ _initRoot ] , beforeA : [ ] , afterA : [ ] , innerBeforeA : [ ] , innerAfterA : [ ] , zTreeTools : [ ] } , data = { addNodeCache : function ( a , b ) { data . getCache ( a ) . nodes [ data . getNodeCacheId ( b . tId ) ] = b } , getNodeCacheId : function ( a ) { return a . substring ( a . lastIndexOf ( "_" ) + 1 ) } , addAfterA : function ( a ) { _init . afterA . push ( a ) } , addBeforeA : function ( a ) { _init . beforeA . push ( a ) } , addInnerAfterA : function ( a ) { _init . innerAfterA . push ( a ) } , addInnerBeforeA : function ( a ) { _init . innerBeforeA . push ( a ) } , addInitBind : function ( a ) { _init . bind . push ( a ) } , addInitUnBind : function ( a ) { _init . unbind . push ( a ) } , addInitCache : function ( a ) { _init . caches . push ( a ) } , addInitNode : function ( a ) { _init . nodes . push ( a ) } , addInitProxy : function ( a , b ) { b ? _init . proxys . splice ( 0 , 0 , a ) : _init . proxys . push ( a ) } , addInitRoot : function ( a ) { _init . roots . push ( a ) } , addNodesData : function ( a , b , c ) { var d = a . data . key . children ; b [ d ] || ( b [ d ] = [ ] ) , b [ d ] . length > 0 && ( b [ d ] [ b [ d ] . length - 1 ] . isLastNode = ! 1 , view . setNodeLineIcos ( a , b [ d ] [ b [ d ] . length - 1 ] ) ) , b . isParent = ! 0 , b [ d ] = b [ d ] . concat ( c ) } , addSelectedNode : function ( a , b ) { var c = data . getRoot ( a ) ; data . isSelectedNode ( a , b ) || c . curSelectedList . push ( b ) } , addCreatedNode : func
break ; case "mouseoutCheck" : h = n . onMouseoutCheck } var j = { stop : "checkNode" === f , node : e , nodeEventType : f , nodeEventCallback : h , treeEventType : g , treeEventCallback : i } ; return j } , i = function ( a , b , c , d , e , f , g ) { if ( c ) { var h = a . data . key . checked ; if ( "string" == typeof c [ h ] && ( c [ h ] = s . eqs ( c [ h ] , "true" ) ) , c [ h ] = ! ! c [ h ] , c . checkedOld = c [ h ] , "string" == typeof c . nocheck && ( c . nocheck = s . eqs ( c . nocheck , "true" ) ) , c . nocheck = ! ! c . nocheck || a . check . nocheckInherit && d && ! ! d . nocheck , "string" == typeof c . chkDisabled && ( c . chkDisabled = s . eqs ( c . chkDisabled , "true" ) ) , c . chkDisabled = ! ! c . chkDisabled || a . check . chkDisabledInherit && d && ! ! d . chkDisabled , "string" == typeof c . halfCheck && ( c . halfCheck = s . eqs ( c . halfCheck , "true" ) ) , c . halfCheck = ! ! c . halfCheck , c . check _Child _State = - 1 , c . check _Focus = ! 1 , c . getCheckStatus = function ( ) { return v . getCheckStatus ( a , c ) } , a . check . chkStyle == t . radio . STYLE && a . check . radioType == t . radio . TYPE _ALL && c [ h ] ) { var i = v . getRoot ( a ) ; i . radioCheckedList . push ( c ) } } } , j = function ( a , b , c ) { a . data . key . checked ; a . check . enable && ( v . makeChkFlag ( a , b ) , c . push ( "<span ID='" , b . tId , t . id . CHECK , "' class='" , u . makeChkClass ( a , b ) , "' treeNode" , t . id . CHECK , b . nocheck === ! 0 ? " style='display:none;'" : "" , "></span>" ) ) } , k = function ( a , b ) { b . checkNode = function ( a , b , c , d ) { var e = this . setting . data . key . checked ; if ( a . chkDisabled !== ! 0 && ( b !== ! 0 && b !== ! 1 && ( b = ! a [ e ] ) , d = ! ! d , ( a [ e ] !== b || c ) && ( ! d || 0 != s . apply ( this . setting . callback . beforeCheck , [ this . setting . treeId , a ] , ! 0 ) ) && s . uCanDo ( this . setting ) && this . setting . check . enable && a . nocheck !== ! 0 ) ) { a [ e ] = b ; var f = w ( a , t . id . CHECK , this . setting ) ; ( c || this . setting . check . chkStyle === t . radio . STYLE ) && u . checkNodeRelation ( this . setting , a ) , u . setChkClass ( this . setting , f , a ) , u . repairParentChkClassWithSelf ( this . setting , a ) , d && this . setting . treeObj . trigger ( t . event . CHECK , [ null , this . setting . treeId , a ] ) } } , b . checkAllNodes = function ( a ) { u . repairAllChk ( this . setting , ! ! a ) } , b . getCheckedNodes = function ( a ) { var b = this . setting . data . key . children ; return a = a !== ! 1 , v . getTreeCheckedNodes ( this . setting , v . getRoot ( this . setting ) [ b ] , a ) } , b . getChangeCheckedNodes = function ( ) { var a = this . setting . data . key . children ; return v . getTreeChangeCheckedNodes ( this . setting , v . getRoot ( this . setting ) [ a ] ) } , b . setChkDisabled = function ( a , b , c , d ) { b = ! ! b , c = ! ! c , d = ! ! d , u . repairSonChkDisabled ( this . setting , a , b , d ) , u . repairParentChkDisabled ( this . setting , a . getParentNode ( ) , b , c ) } ; var c = b . updateNode ; b . updateNode = function ( a , d ) { if ( c && c . apply ( b , arguments ) , a && this . setting . check . enable ) { var e = w ( a , this . setting ) ; if ( e . get ( 0 ) && s . uCanDo ( this . setting ) ) { var f = w ( a , t . id . CHECK , this . setting ) ; 1 != d && this . setting . check . chkStyle !== t . radio . STYLE || u . checkNodeRelation ( this . setting , a ) , u . setChkClass ( this . setting , f , a ) , u . repairParentChkClassWithSelf ( this . setting , a ) } } } } , l = { getRadioCheckedList : function ( a ) { for ( var b = v . getRoot ( a ) . radioCheckedList , c = 0 , d = b . length ; c < d ; c ++ ) v . getNodeCache ( a , b [ c ] . tId ) || ( b . splice ( c , 1 ) , c -- , d -- ) ; return b } , getCheckStatus : function ( a , b ) { if ( ! a . check . enable || b . nocheck || b . chkDisabled ) return null ; var c = a . data . key . checked , d = { checked : b [ c ] , half : b . halfCheck ? b . halfCheck : a . check . chkStyle == t . radio . STYLE ? 2 === b . check _Child _State : b [ c ] ? b . check _Child _State > - 1 && b . check _Child _State < 2 : b . check _Child _State > 0 } ; return d } , getTreeCheckedNodes : function ( a , b , c , d ) { if ( ! b ) return [ ] ; var e = a . data . key . children , f = a . data . key . checked , g = c && a . check . chkStyle == t . radio . STYLE && a . check . radioType == t . radio . TYPE _ALL ; d = d ? d : [ ] ; for ( var h = 0 , i = b . length ; h < i && ( b [ h ] . nocheck === ! 0 || b [ h ] . chkDisabled === ! 0 || b [ h ] [ f ] != c || ( d . push ( b [ h ] ) , ! g ) ) && ( v . getTreeCheckedNodes ( a , b [ h ] [ e ] , c , d ) , ! ( g && d . length > 0 ) ) ; h ++ ) ; return d } , getTreeChangeCheckedNodes : function ( a , b , c ) { if ( ! b ) return [ ] ; var d = a . data . key . children , e = a . data . key . checked ; c = c ? c : [ ] ; for ( var f = 0 , g = b . length ; f < g ; f ++ ) b [ f ] . nocheck !== ! 0 && b [ f ] . chkDisabled !== ! 0 && b [ f ] [ e ] != b [ f ] . checkedOld && c . push ( b [ f ] ) , v . getTreeChangeCheckedNodes ( a , b [ f ] [ d ] , c ) ; return c } , makeChkFlag : function ( a , b ) { if ( b ) { var c = a . data . key . children , d = a . data . key . checked , e = - 1 ; if ( b [ c ] ) for ( var f = 0 , g = b [ c ] . length ; f < g ; f ++ ) { var h = b [ c ] [ f ] , i = - 1 ; if ( a . check . chkStyle == t . radio . STYLE ) { if ( i = h . nocheck === ! 0 || h . chkDisabled === ! 0 ? h . check _Child _State : h . halfCheck === ! 0 ? 2 : h [ d ] ? 2 : h . check _Child _State > 0 ? 2 : 0 , 2 == i ) { e = 2 ; break } 0 == i && ( e = 0 ) } else if ( a . check . chkStyle == t . checkbox . STYLE ) { if ( i = h . nocheck === ! 0 || h . chkDisabled === ! 0 ? h
type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : a . height , height : a . height , hgap : a . hgap , text : a . text , value : a . value , py : a . py } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , { width : 24 , el : b } , { el : this . text } ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( a . logic , { items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . IconTreeLeafItem . superclass . doClick . apply ( this , arguments ) } , setSelected : function ( a ) { BI . IconTreeLeafItem . superclass . setSelected . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.icon_tree_leaf_item" , BI . IconTreeLeafItem ) , BI . LastTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . LastTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-last-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , id : "" , pId : "" , layer : 0 , height : 24 } ) } , _init : function ( ) { BI . LastTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.checkbox" } ) , this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py , keyword : b . keyword } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . setSelected ( a . isSelected ( ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , 0 === b . layer ? "" : { width : 12 , el : { type : "bi.layout" , cls : b . pNode && b . pNode . isLastNode ? "" : "base-line-conn-background" , width : 12 , height : b . height } } , { width : 24 , el : { type : "bi.layout" , cls : "last-line-conn-background" , width : 24 , height : b . height } } , { el : this . text } ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( b . logic , { items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . LastTreeLeafItem . superclass . doClick . apply ( this , arguments ) } , setSelected : function ( a ) { BI . LastTreeLeafItem . superclass . setSelected . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.last_tree_leaf_item" , BI . LastTreeLeafItem ) , BI . MidTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MidTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-mid-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , id : "" , pId : "" , layer : 0 , height : 24 } ) } , _init : function ( ) { BI . MidTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.checkbox" } ) , this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py , keyword : b . keyword } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . setSelected ( a . isSelected ( ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , 0 === b . layer ? "" : { width : 12 , el : { type : "bi.layout" , cls : b . pNode && b . pNode . isLastNode ? "" : "base-line-conn-background" , width : 12 , height : b . height } } , { width : 24 , el : { type : "bi.layout" , cls : "mid-line-conn-background" , width : 24 , height : b . height } } , { el : this . text } ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( b . logic , { items : d } ) ) ) ) } , doRedMark : function (
this . colors = BI . createWidget ( { type : "bi.button_group" , element : this , items : BI . createItems ( b . items || this . _items , { type : "bi.color_picker_button" , once : ! 1 } ) , layouts : [ { type : "bi.grid" } ] , value : b . value } ) , this . colors . on ( BI . ButtonGroup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . ColorPicker . EVENT _CHANGE , arguments ) } ) } , populate : function ( a ) { var b = [ ] . slice . call ( arguments ) ; b [ 0 ] = BI . createItems ( a , { type : "bi.color_picker_button" , once : ! 1 } ) , this . colors . populate . apply ( this . colors , b ) } , setValue : function ( a ) { this . colors . setValue ( a ) } , getValue : function ( ) { return this . colors . getValue ( ) } } ) , BI . ColorPicker . EVENT _CHANGE = "ColorPicker.EVENT_CHANGE" , BI . shortcut ( "bi.color_picker" , BI . ColorPicker ) , BI . ColorPickerEditor = BI . inherit ( BI . Widget , { constants : { REB _WIDTH : 32 } , _defaultConfig : function ( ) { return BI . extend ( BI . ColorPickerEditor . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-color-picker-editor" , height : 30 } ) } , _init : function ( ) { BI . ColorPickerEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = ( this . options , this . constants ) ; this . storeValue = { } , this . colorShow = BI . createWidget ( { type : "bi.layout" , cls : "color-picker-editor-display bi-card bi-border" , height : 16 , width : 16 } ) ; var c = BI . createWidgets ( BI . createItems ( [ { text : "R" } , { text : "G" } , { text : "B" } ] , { type : "bi.label" , cls : "color-picker-editor-label" , width : 20 , height : 20 } ) ) , d = function ( a ) { return BI . isNumeric ( a ) && ( 0 | a ) >= 0 && ( 0 | a ) <= 255 } , e = BI . createWidgets ( [ { } , { } , { } ] , { type : "bi.small_text_editor" , cls : "color-picker-editor-input" , validationChecker : d , errorText : BI . i18nText ( "BI-Color_Picker_Error_Text" ) , allowBlank : ! 0 , value : 255 , width : b . REB _WIDTH , height : 20 } ) ; BI . each ( e , function ( b , c ) { c . on ( BI . TextEditor . EVENT _CHANGE , function ( ) { a . _checkEditors ( ) , d ( a . storeValue . r ) && d ( a . storeValue . g ) && d ( a . storeValue . b ) && ( a . colorShow . element . css ( "background-color" , a . getValue ( ) ) , a . fireEvent ( BI . ColorPickerEditor . EVENT _CHANGE ) ) } ) } ) , this . R = e [ 0 ] , this . G = e [ 1 ] , this . B = e [ 2 ] , this . none = BI . createWidget ( { type : "bi.icon_button" , cls : "auto-color-icon" , width : 16 , height : 16 , iconWidth : 16 , iconHeight : 16 , title : BI . i18nText ( "BI-Basic_Auto" ) } ) , this . none . on ( BI . IconButton . EVENT _CHANGE , function ( ) { this . isSelected ( ) ? ( a . lastColor = a . getValue ( ) , a . setValue ( "" ) ) : a . setValue ( a . lastColor || "#ffffff" ) , ( a . R . isValid ( ) && a . G . isValid ( ) && a . B . isValid ( ) || a . _isEmptyRGB ( ) ) && ( a . colorShow . element . css ( "background-color" , a . getValue ( ) ) , a . fireEvent ( BI . ColorPickerEditor . EVENT _CHANGE ) ) } ) , this . transparent = BI . createWidget ( { type : "bi.icon_button" , cls : "trans-color-icon" , width : 16 , height : 16 , iconWidth : 16 , iconHeight : 16 , title : BI . i18nText ( "BI-Transparent_Color" ) } ) , this . transparent . on ( BI . IconButton . EVENT _CHANGE , function ( ) { this . isSelected ( ) ? ( a . lastColor = a . getValue ( ) , a . setValue ( "transparent" ) ) : ( "transparent" === a . lastColor && ( a . lastColor = "" ) , a . setValue ( a . lastColor || "#ffffff" ) ) , ( a . R . isValid ( ) && a . G . isValid ( ) && a . B . isValid ( ) || a . _isEmptyRGB ( ) ) && ( a . colorShow . element . css ( "background-color" , a . getValue ( ) ) , a . fireEvent ( BI . ColorPickerEditor . EVENT _CHANGE ) ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.vertical_adapt" , items : [ { el : this . colorShow , width : 16 } , { el : c [ 0 ] , width : 20 } , { el : this . R , width : b . REB _WIDTH } , { el : c [ 1 ] , width : 20 } , { el : this . G , width : b . REB _WIDTH } , { el : c [ 2 ] , width : 20 } , { el : this . B , width : b . REB _WIDTH } , { el : this . transparent , width : 16 , lgap : 5 } , { el : this . none , width : 16 , lgap : 5 } ] } , left : 10 , right : 10 , top : 0 , bottom : 0 } ] } ) } , _checkEditors : function ( ) { BI . isEmptyString ( this . R . getValue ( ) ) && this . R . setValue ( 0 ) , BI . isEmptyString ( this . G . getValue ( ) ) && this . G . setValue ( 0 ) , BI . isEmptyString ( this . B . getValue ( ) ) && this . B . setValue ( 0 ) , this . storeValue = { r : this . R . getValue ( ) || 0 , g : this . G . getValue ( ) || 0 , b : this . B . getValue ( ) || 0 } } , _isEmptyRGB : function ( ) { return BI . isEmptyString ( this . storeValue . r ) && BI . isEmptyString ( this . storeValue . g ) && BI . isEmptyString ( this . storeValue . b ) } , _showPreColor : function ( a ) { "" === a ? this . colorShow . element . css ( "background-color" , "" ) . removeClass ( "trans-color-background" ) . addClass ( "auto-color-normal-background" ) : "transparent" === a ? this . colorShow . element . css ( "background-color" , "" ) . removeClass ( "auto-color-normal-background" ) . addClass ( "trans-color-background" ) : this . colorShow . element . css ( { "background-color" : a } ) . removeClass ( "auto-color-normal-background" ) . removeClass ( "
value : b . value , height : b . height , tipText : "" } , popup : { type : "bi.search_text_value_combo_popup" , cls : "bi-card" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } , onSearch : function ( a , c ) { var d = a . keyword , e = BI . Func . getSearchResult ( b . items , d ) , f = e . match , g = e . find ; c ( g , f ) } , listeners : [ { eventName : BI . Searcher . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . SearchTextValueTrigger . EVENT _CHANGE ) } } ] } } , { el : { type : "bi.layout" , width : 24 } , width : 24 } ] } } , _setState : function ( a ) { this . editor . setState ( a ) } , _digest : function ( a , b ) { var c = this . options ; a = BI . isArray ( a ) ? a : [ a ] ; var d = [ ] , e = BI . Tree . transformToArrayFormat ( b ) ; return BI . each ( e , function ( b , c ) { BI . deepContains ( a , c . value ) && ! BI . contains ( d , c . text || c . value ) && d . push ( c . text || c . value ) } ) , d . length > 0 ? d . join ( "," ) : BI . isFunction ( c . text ) ? c . text ( ) : c . text } , stopEditing : function ( ) { this . searcher . stopSearch ( ) } , getSearcher : function ( ) { return this . searcher } , populate : function ( a ) { this . options . items = a } , setValue : function ( a ) { this . _setState ( this . _digest ( a , this . options . items ) ) } , getValue : function ( ) { return this . searcher . getValue ( ) } } ) , BI . SearchTextValueTrigger . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . SearchTextValueTrigger . EVENT _STOP = "EVENT_STOP" , BI . SearchTextValueTrigger . EVENT _START = "EVENT_START" , BI . SearchTextValueTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.search_text_value_trigger" , BI . SearchTextValueTrigger ) , BI . TextValueCheckCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . TextValueCheckCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-text-value-check-combo" , width : 100 , height : 24 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , value : "" , attributes : { tabIndex : 0 } } ) } , _init : function ( ) { BI . TextValueCheckCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.select_text_trigger" , cls : "text-value-trigger" , items : b . items , height : b . height , text : b . text , value : b . value } ) , this . popup = BI . createWidget ( { type : "bi.text_value_check_combo_popup" , chooseType : b . chooseType , items : b . items , value : b . value } ) , this . popup . on ( BI . TextValueCheckComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . textIconCheckCombo . hideView ( ) , a . fireEvent ( BI . TextValueCheckCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . textIconCheckCombo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) , BI . isKey ( b . value ) && this . setValue ( b . value ) } , setTitle : function ( a ) { this . trigger . setTitle ( a ) } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( a ) } , setWarningTitle : function ( a ) { this . trigger . setWarningTitle ( a ) } , getValue : function ( ) { var a = this . popup . getValue ( ) ; return BI . isNull ( a ) ? [ ] : BI . isArray ( a ) ? a : [ a ] } , populate : function ( a ) { this . options . items = a , this . textIconCheckCombo . populate ( a ) } } ) , BI . TextValueCheckCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_value_check_combo" , BI . TextValueCheckCombo ) , BI . SmallTextValueCheckCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SmallTextValueCheckCombo . superclass . _defaultConfig . apply ( this , arguments ) , { width : 100 , height : 24 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , text : "" } ) } , _init : function ( ) { BI . SmallTextValueCheckCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.small_select_text_trigger" , items : b . items , height : b . height , text : b . text , value : b . value } ) , this . popup = BI . createWidget ( { type : "bi.text_value_check_combo_popup" , chooseType : b . chooseType , items : b . items , value : b . value } ) , this . popup . on ( BI . TextValueCheckComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . SmallTextIconCheckCombo . hideView ( ) , a . fireEvent ( BI . SmallTextValueCheckCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . SmallTextIconCheckCombo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) } , setValue : function ( a ) { this . SmallTextIconCheckCombo . setValue ( a ) } , getValue : function ( ) { return this . popup . getVa
this . text . element . removeClass ( "state-editor-infinite-text" ) ) : a === BI . Selection . Multi ? ( this . text . setText ( BI . i18nText ( "BI-Select_Part" ) ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) : ( this . text . setText ( b . text ) , this . text . element . addClass ( "state-editor-infinite-text" ) ) ) : BI . isString ( a ) ? ( this . text . setText ( a ) , void this . text . element . removeClass ( "state-editor-infinite-text" ) ) : void ( BI . isArray ( a ) && ( BI . isEmpty ( a ) ? ( this . text . setText ( b . text ) , this . text . element . addClass ( "state-editor-infinite-text" ) ) : 1 === a . length ? ( this . text . setText ( a [ 0 ] ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) : ( this . text . setText ( BI . i18nText ( "BI-Select_Part" ) ) , this . text . element . removeClass ( "state-editor-infinite-text" ) ) ) ) } , setTipType : function ( a ) { this . text . options . tipType = a } } ) , BI . StateEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . StateEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . StateEditor . EVENT _BLUR = "EVENT_BLUR" , BI . StateEditor . EVENT _CLICK = "EVENT_CLICK" , BI . StateEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . StateEditor . EVENT _CLICK _LABEL = "EVENT_CLICK_LABEL" , BI . StateEditor . EVENT _START = "EVENT_START" , BI . StateEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . StateEditor . EVENT _STOP = "EVENT_STOP" , BI . StateEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . StateEditor . EVENT _VALID = "EVENT_VALID" , BI . StateEditor . EVENT _ERROR = "EVENT_ERROR" , BI . StateEditor . EVENT _ENTER = "EVENT_ENTER" , BI . StateEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . StateEditor . EVENT _SPACE = "EVENT_SPACE" , BI . StateEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.state_editor" , BI . StateEditor ) , BI . SimpleStateEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . SimpleStateEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-simple-state-editor" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , mouseOut : ! 1 , allowBlank : ! 0 , watermark : "" , errorText : "" , height : 24 } ) } , _init : function ( ) { BI . SimpleStateEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.editor" , height : b . height , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , value : b . value , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText } ) , this . text = BI . createWidget ( { type : "bi.text_button" , cls : "state-editor-infinite-text" , textAlign : "left" , height : b . height , text : BI . i18nText ( "BI-Basic_Unrestricted" ) , hgap : 4 , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . setValue ( "" ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _CLICK _LABEL ) } ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . text , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . _showHint ( ) , a . fireEvent ( BI . SimpleStateEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _START , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _PAUSE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _STOP , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _STOP , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _SPACE , function ( ) { a . fireEvent ( BI . SimpleStateEditor . EVENT _SPACE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . SimpleS
title : BI . i18nText ( "BI-Up_Page" ) , warningTitle : BI . i18nText ( "BI-Current_Is_First_Page" ) , height : 20 , iconWidth : 16 , iconHeight : 16 , cls : "direction-pager-prev column-pre-page-h-font" } , next : { type : "bi.icon_button" , value : "next" , title : BI . i18nText ( "BI-Down_Page" ) , warningTitle : BI . i18nText ( "BI-Current_Is_Last_Page" ) , height : 20 , iconWidth : 16 , iconHeight : 16 , cls : "direction-pager-next column-next-page-h-font" } , hasPrev : c . hasPrev , hasNext : c . hasNext , firstPage : c . firstPage , lastPage : c . lastPage } ) , this . vpager . on ( BI . Pager . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DirectionPager . EVENT _CHANGE ) } ) , this . vpager . on ( BI . Pager . EVENT _AFTER _POPULATE , function ( ) { a . vlabel . setValue ( this . getCurrentPage ( ) ) , a . vlabel . setTitle ( this . getCurrentPage ( ) ) } ) } , _createHPager : function ( ) { var a = this , b = this . options , c = b . horizontal ; this . hlabel = BI . createWidget ( { type : "bi.label" , width : 24 , height : 20 , value : c . curr , title : c . curr , invisible : ! 0 } ) , this . hpager = BI . createWidget ( { type : "bi.pager" , width : 76 , layouts : [ { type : "bi.horizontal" , scrollx : ! 1 , rgap : 24 , vgap : 1 } ] , invisible : ! 0 , dynamicShow : ! 1 , pages : c . pages , curr : c . curr , groups : 0 , first : ! 1 , last : ! 1 , prev : { type : "bi.icon_button" , value : "prev" , title : BI . i18nText ( "BI-Left_Page" ) , warningTitle : BI . i18nText ( "BI-Current_Is_First_Page" ) , height : 20 , iconWidth : 16 , iconHeight : 16 , cls : "direction-pager-prev row-pre-page-h-font" } , next : { type : "bi.icon_button" , value : "next" , title : BI . i18nText ( "BI-Right_Page" ) , warningTitle : BI . i18nText ( "BI-Current_Is_Last_Page" ) , height : 20 , iconWidth : 16 , iconHeight : 16 , cls : "direction-pager-next row-next-page-h-font" } , hasPrev : c . hasPrev , hasNext : c . hasNext , firstPage : c . firstPage , lastPage : c . lastPage } ) , this . hpager . on ( BI . Pager . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DirectionPager . EVENT _CHANGE ) } ) , this . hpager . on ( BI . Pager . EVENT _AFTER _POPULATE , function ( ) { a . hlabel . setValue ( this . getCurrentPage ( ) ) , a . hlabel . setTitle ( this . getCurrentPage ( ) ) } ) } , getVPage : function ( ) { return this . vpager . getCurrentPage ( ) } , getHPage : function ( ) { return this . hpager . getCurrentPage ( ) } , setVPage : function ( a ) { this . vpager . setValue ( a ) , this . vlabel . setValue ( a ) , this . vlabel . setTitle ( a ) } , setHPage : function ( a ) { this . hpager . setValue ( a ) , this . hlabel . setValue ( a ) , this . hlabel . setTitle ( a ) } , hasVNext : function ( ) { return this . vpager . hasNext ( ) } , hasHNext : function ( ) { return this . hpager . hasNext ( ) } , hasVPrev : function ( ) { return this . vpager . hasPrev ( ) } , hasHPrev : function ( ) { return this . hpager . hasPrev ( ) } , setHPagerVisible : function ( a ) { this . hpager . setVisible ( a ) , this . hlabel . setVisible ( a ) } , setVPagerVisible : function ( a ) { this . vpager . setVisible ( a ) , this . vlabel . setVisible ( a ) } , populate : function ( ) { this . vpager . populate ( ) , this . hpager . populate ( ) ; var a = ! 1 , b = ! 1 ; this . hasHNext ( ) || this . hasHPrev ( ) ? ( this . setHPagerVisible ( ! 0 ) , b = ! 0 ) : this . setHPagerVisible ( ! 1 ) , this . hasVNext ( ) || this . hasVPrev ( ) ? ( this . setVPagerVisible ( ! 0 ) , a = ! 0 ) : this . setVPagerVisible ( ! 1 ) , this . setVisible ( b || a ) ; var c = [ 74 , 111 , - 9 , 28 ] , d = this . layout . attr ( "items" ) ; a === ! 0 && b === ! 0 ? ( d [ 0 ] . right = c [ 0 ] , d [ 1 ] . right = c [ 1 ] , d [ 2 ] . right = c [ 2 ] , d [ 3 ] . right = c [ 3 ] ) : a === ! 0 ? ( d [ 0 ] . right = c [ 2 ] , d [ 1 ] . right = c [ 3 ] ) : b === ! 0 && ( d [ 2 ] . right = c [ 2 ] , d [ 3 ] . right = c [ 3 ] ) , this . layout . attr ( "items" , d ) , this . layout . resize ( ) } , clear : function ( ) { this . vpager . attr ( "curr" , 1 ) , this . hpager . attr ( "curr" , 1 ) } } ) , BI . DirectionPager . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.direction_pager" , BI . DirectionPager ) , BI . DetailPager = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DetailPager . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-detail-pager" , behaviors : { } , layouts : [ { type : "bi.horizontal" , hgap : 10 , vgap : 0 } ] , dynamicShow : ! 0 , dynamicShowFirstLast : ! 1 , dynamicShowPrevNext : ! 1 , pages : ! 1 , curr : function ( ) { return 1 } , groups : 0 , jump : BI . emptyFn , first : ! 1 , last : ! 1 , prev : "上一页" , next : "下一页" , firstPage : 1 , lastPage : function ( ) { return 1 } , hasPrev : BI . emptyFn , hasNext : BI . emptyFn } ) } , _init : function ( ) { BI . DetailPager . superclass . _init . apply ( this , arguments ) ; var a = this ; this . currPage = BI . result ( this . options , "curr" ) , this . _lock = ! 1 , this . _debouce = BI . debounce ( function ( ) { a . _lock = ! 1 } , 300 ) , this . _populate ( ) } , _populate : function ( ) { var a = this , b = this . options , c = [ ] , d = { } ; this . empty ( ) ; var e = BI . result ( b , "pages" ) , f = BI . result ( this , "currPage" ) , g = BI . result ( b , "groups" ) , h = BI . result ( b , "first" ) , i = BI . result ( b , "last" ) , j = B
width : 25 , height : 25 } ) , this . right . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . setValue ( a . year . getValue ( ) + 1 ) , a . fireEvent ( BI . YearPicker . EVENT _CHANGE ) , a . _checkLeftValid ( ) , a . _checkRightValid ( ) } ) , this . year = BI . createWidget ( { type : "bi.year_date_combo" , min : b . min , behaviors : b . behaviors , max : b . max } ) , this . year . on ( BI . YearDateCombo . EVENT _CHANGE , function ( ) { a . setValue ( a . year . getValue ( ) ) , a . fireEvent ( BI . YearPicker . EVENT _CHANGE ) } ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : { type : "bi.center_adapt" , items : [ this . left ] } , width : 25 } , { type : "bi.center_adapt" , items : [ { el : { type : "bi.horizontal_float" , width : 50 , items : [ { el : this . year } ] } } ] } , { el : { type : "bi.center_adapt" , items : [ this . right ] } , width : 25 } ] } ) , this . setValue ( { year : this . _year } ) } , _checkLeftValid : function ( ) { var a = this . options , b = ! ( this . _year === BI . parseDateTime ( a . min , "%Y-%X-%d" ) . getFullYear ( ) ) ; return this . left . setEnable ( b ) , b } , _checkRightValid : function ( ) { var a = this . options , b = ! ( this . _year === BI . parseDateTime ( a . max , "%Y-%X-%d" ) . getFullYear ( ) ) ; return this . right . setEnable ( b ) , b } , setValue : function ( a ) { this . _year = a , this . year . setValue ( a ) , this . _checkLeftValid ( ) , this . _checkRightValid ( ) } , getValue : function ( ) { return this . year . getValue ( ) } } ) , BI . YearPicker . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.year_picker" , BI . YearPicker ) , BI . DateCalendarPopup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . DateCalendarPopup . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : "bi-date-calendar-popup" , min : "1900-01-01" , max : "2099-12-31" , selectedTime : null } ) } , _createNav : function ( a ) { var b = BI . Calendar . getDateJSONByPage ( a ) , c = BI . createWidget ( { type : "bi.calendar" , logic : { dynamic : ! 0 } , min : this . options . min , max : this . options . max , year : b . year , month : b . month , day : this . selectedTime . day } ) ; return c } , _init : function ( ) { BI . DateCalendarPopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . today = BI . getDate ( ) , this . _year = this . today . getFullYear ( ) , this . _month = this . today . getMonth ( ) + 1 , this . _day = this . today . getDate ( ) , this . selectedTime = b . selectedTime || { year : this . _year , month : this . _month , day : this . _day } , this . datePicker = BI . createWidget ( { type : "bi.date_picker" , behaviors : b . behaviors , min : b . min , max : b . max } ) , this . calendar = BI . createWidget ( { direction : "top" , logic : { dynamic : ! 0 } , type : "bi.navigation" , tab : this . datePicker , cardCreator : BI . bind ( this . _createNav , this ) , afterCardCreated : function ( ) { } , afterCardShow : function ( ) { this . setValue ( a . selectedTime ) } } ) , this . datePicker . on ( BI . DatePicker . EVENT _CHANGE , function ( ) { a . selectedTime = a . datePicker . getValue ( ) , a . selectedTime . day = 1 , a . calendar . setSelect ( BI . Calendar . getPageByDateJSON ( a . selectedTime ) ) } ) , this . calendar . on ( BI . Navigation . EVENT _CHANGE , function ( ) { a . selectedTime = a . calendar . getValue ( ) , a . setValue ( a . selectedTime ) , a . fireEvent ( BI . DateCalendarPopup . EVENT _CHANGE ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . calendar , left : 5 , right : 5 } , { el : { type : "bi.layout" , cls : "bi-split-top" } , height : 1 , top : 40 , left : 0 , right : 0 } ] } ) } , setValue : function ( a ) { this . datePicker . setValue ( a ) , this . calendar . setSelect ( BI . Calendar . getPageByDateJSON ( a ) ) , this . calendar . setValue ( a ) , this . selectedTime = a } , getValue : function ( ) { return this . selectedTime } } ) , BI . DateCalendarPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.date_calendar_popup" , BI . DateCalendarPopup ) , BI . YearPopup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . YearPopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-year-popup" , behaviors : { } , min : "1900-01-01" , max : "2099-12-31" } ) } , _createYearCalendar : function ( a ) { var b = this . options , c = this . _year , d = BI . createWidget ( { type : "bi.year_calendar" , behaviors : b . behaviors , min : b . min , max : b . max , logic : { dynamic : ! 0 } , year : c + 12 * a } ) ; return d . setValue ( this . _year ) , d } , _init : function ( ) { BI . YearPopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . selectedYear = this . _year = BI . getDate ( ) . getFullYear ( ) ; var c = BI . createWidget ( { type : "bi.icon_button" , cls : "pre-page-h-font" , width : 24 , height : 24 , value : - 1 } ) , d = BI . createWidget ( { type : "bi.icon_button" , cls : "next-page-h-font" , width : 24 , height : 24 , value : 1 } ) ; this . navigation = BI . createWidget ( { type : "bi.navigation" , element : this , single : ! 0 , logic : { dynamic : ! 0 } , tab : { cls : " year - popu
} else f . value === a [ d ] [ 0 ] && c . push ( a [ d ] [ 0 ] ) } ) } ) , c } , populate : function ( a ) { BI . DownListPopup . superclass . populate . apply ( this , arguments ) , this . items = BI . deepClone ( a ) , this . childValueMap = { } , this . fatherValueMap = { } , this . singleValues = [ ] ; var b = this . _createChildren ( this . items ) , c = BI . createItems ( b , { } , { adjustLength : - 2 } ) ; this . popup . populate ( c ) } , setValue : function ( a ) { this . popup . setValue ( this . _digest ( a ) ) } , _getValue : function ( ) { var a = [ ] ; return BI . each ( this . popup . getAllButtons ( ) , function ( b , c ) { b % 2 === 0 && a . push ( c . getValue ( ) ) } ) , a } , getValue : function ( ) { var a = this , b = [ ] , c = this . _checkValues ( this . _getValue ( ) ) ; return BI . each ( c , function ( c , d ) { var e = { } ; if ( BI . isNotNull ( a . childValueMap [ d ] ) ) { var f = a . fatherValueMap [ d ] ; e . childValue = a . childValueMap [ d ] , e . value = f } else e . value = d ; b . push ( e ) } ) , b } } ) , BI . DownListPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . DownListPopup . EVENT _SON _VALUE _CHANGE = "EVENT_SON_VALUE_CHANGE" , BI . shortcut ( "bi.down_list_popup" , BI . DownListPopup ) , ! function ( ) { BI . DynamicDateHelper = { } , BI . extend ( BI . DynamicDateHelper , { getCalculation : function ( a ) { var b = BI . getDate ( ) ; return this . getCalculationByDate ( b , a ) } , getCalculationByDate : function ( a , b ) { if ( BI . isNotNull ( b . year ) && ( a = BI . getDate ( a . getFullYear ( ) + BI . parseInt ( b . year ) , a . getMonth ( ) , a . getDate ( ) ) ) , BI . isNotNull ( b . quarter ) && ( a = BI . getOffsetQuarter ( a , BI . parseInt ( b . quarter ) ) ) , BI . isNotNull ( b . month ) && ( a = BI . getOffsetMonth ( a , BI . parseInt ( b . month ) ) ) , BI . isNotNull ( b . week ) && ( a = BI . getOffsetDate ( a , 7 * BI . parseInt ( b . week ) ) ) , BI . isNotNull ( b . day ) && ( a = BI . getOffsetDate ( a , BI . parseInt ( b . day ) ) ) , BI . isNotNull ( b . workDay ) ) if ( BI . isNotNull ( BI . holidays ) ) for ( var c = Math . abs ( b . workDay ) , d = 0 ; d < c ; d ++ ) a = BI . getOffsetDate ( a , b . workDay < 0 ? - 1 : 1 ) , BI . isNotNull ( BI . holidays [ BI . print ( a , "%Y-%X-%d" ) ] ) && d -- ; else a = BI . getOffsetDate ( a , BI . parseInt ( b . workDay ) ) ; return BI . isNotNull ( b . position ) && b . position !== BI . DynamicDateCard . OFFSET . CURRENT && ( a = this . getBeginDate ( a , b ) ) , BI . getDate ( a . getFullYear ( ) , a . getMonth ( ) , a . getDate ( ) ) } , getBeginDate : function ( a , b ) { return BI . isNotNull ( b . day ) ? b . position === BI . DynamicDateCard . OFFSET . BEGIN ? BI . getDate ( a . getFullYear ( ) , a . getMonth ( ) , 1 ) : BI . getDate ( a . getFullYear ( ) , a . getMonth ( ) , BI . getLastDateOfMonth ( a ) . getDate ( ) ) : BI . isNotNull ( b . week ) ? b . position === BI . DynamicDateCard . OFFSET . BEGIN ? BI . getWeekStartDate ( a ) : BI . getWeekEndDate ( a ) : BI . isNotNull ( b . month ) ? b . position === BI . DynamicDateCard . OFFSET . BEGIN ? BI . getDate ( a . getFullYear ( ) , a . getMonth ( ) , 1 ) : BI . getDate ( a . getFullYear ( ) , a . getMonth ( ) , BI . getLastDateOfMonth ( a ) . getDate ( ) ) : BI . isNotNull ( b . quarter ) ? b . position === BI . DynamicDateCard . OFFSET . BEGIN ? BI . getQuarterStartDate ( a ) : BI . getQuarterEndDate ( a ) : BI . isNotNull ( b . year ) ? b . position === BI . DynamicDateCard . OFFSET . BEGIN ? BI . getDate ( a . getFullYear ( ) , 0 , 1 ) : BI . getDate ( a . getFullYear ( ) , 11 , 31 ) : a } } ) } ( ) , BI . DynamicDateCard = BI . inherit ( BI . Widget , { props : { baseCls : "bi-dynamic-date-card" } , render : function ( ) { var a = this ; return this . position = BI . DynamicDateCard . OFFSET . CURRENT , { type : "bi.vertical" , items : [ { el : { type : "bi.label" , text : BI . i18nText ( "BI-Multi_Date_Relative_Current_Time" ) , textAlign : "left" , height : 12 , lgap : 10 } , tgap : 10 , bgap : 5 } , { type : "bi.button_group" , ref : function ( ) { a . checkgroup = this } , chooseType : BI . ButtonGroup . CHOOSE _TYPE _MULTI , lgap : 4 , value : [ BI . DynamicDateCard . TYPE . YEAR ] , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Basic_Year" ) , value : BI . DynamicDateCard . TYPE . YEAR } , { text : BI . i18nText ( "BI-Basic_Single_Quarter" ) , value : BI . DynamicDateCard . TYPE . QUARTER } , { text : BI . i18nText ( "BI-Basic_Month" ) , value : BI . DynamicDateCard . TYPE . MONTH } , { text : BI . i18nText ( "BI-Basic_Week" ) , value : BI . DynamicDateCard . TYPE . WEEK } , { text : BI . i18nText ( "BI-Basic_Day" ) , value : BI . DynamicDateCard . TYPE . DAY } ] , { type : "bi.multi_select_item" , logic : { dynamic : ! 0 } } ) , layouts : [ { type : "bi.left" , rgap : 4 } ] , listeners : [ { eventName : BI . ButtonGroup . EVENT _CHANGE , action : function ( ) { var b = a . checkgroup . getValue ( ) ; 0 !== b . length && a . workDayBox . setSelected ( ! 1 ) ; var c = { } ; BI . each ( a . resultPane . getAllButtons ( ) , function ( a , b ) { var d = b . getValue ( ) ; BI . isNotNull ( d . dateType ) && ( c [ d . dateType ] = { value : d . value , offset : d . offset } ) } ) , a . resultPane . populate ( a . _getParamJson ( BI . map ( a . checkgroup . getValue ( ) , function ( a , b ) { var d = { dateType : b } ; return BI . has ( c , b ) && ( d . value = c [ b ] . value , d . offset = c [ b ] . offset ) , d } ) ) ) , a . position = BI . DynamicDateCard . O
BI . DynamicDateTimeCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.dynamic_date_time_combo" , BI . DynamicDateTimeCombo ) , BI . extend ( BI . DynamicDateTimeCombo , { Static : 1 , Dynamic : 2 } ) , BI . DynamicDateTimePopup = BI . inherit ( BI . Widget , { constants : { tabHeight : 30 , buttonHeight : 24 } , props : { baseCls : "bi-dynamic-date-time-popup" , width : 248 , height : 385 } , _init : function ( ) { BI . DynamicDateTimePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . constants ; this . storeValue = { type : BI . DynamicDateCombo . Static } , BI . createWidget ( { element : this , type : "bi.vtape" , items : [ { el : this . _getTabJson ( ) } , { el : { type : "bi.grid" , items : [ [ { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-high-light bi-split-top" , textHeight : c . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_Clear" ) , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDateTimePopup . BUTTON _CLEAR _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-split-left bi-split-right bi-high-light bi-split-top" , textHeight : c . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Multi_Date_Today" ) , ref : function ( ) { a . textButton = this } , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDateTimePopup . BUTTON _lABEL _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-high-light bi-split-top" , textHeight : c . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDateTimePopup . BUTTON _OK _EVENT _CHANGE ) } } ] } ] ] } , height : 24 } ] } ) , this . setValue ( b . value ) } , _getTabJson : function ( ) { var a = this , b = this . options ; return { type : "bi.tab" , ref : function ( ) { a . dateTab = this } , tab : { type : "bi.linear_segment" , cls : "bi-split-bottom" , height : this . constants . tabHeight , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Multi_Date_YMD" ) , value : BI . DynamicDateCombo . Static } , { text : BI . i18nText ( "BI-Basic_Dynamic_Title" ) , value : BI . DynamicDateCombo . Dynamic } ] , { textAlign : "center" } ) } , cardCreator : function ( c ) { switch ( c ) { case BI . DynamicDateCombo . Dynamic : return { type : "bi.dynamic_date_card" , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . _setInnerValue ( a . year , c ) } } ] , ref : function ( ) { a . dynamicPane = this } } ; case BI . DynamicDateCombo . Static : default : return { type : "bi.vtape" , items : [ { type : "bi.date_calendar_popup" , behaviors : b . behaviors , min : a . options . min , max : a . options . max , ref : function ( ) { a . ymd = this } } , { el : { type : "bi.dynamic_date_time_select" , cls : "bi-split-top" , ref : function ( ) { a . timeSelect = this } } , height : 40 } ] } } } , listeners : [ { eventName : BI . Tab . EVENT _CHANGE , action : function ( ) { var b = a . dateTab . getSelect ( ) ; switch ( b ) { case BI . DynamicDateCombo . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dynamicPane . getValue ( ) ) ; a . ymd . setValue ( { year : c . getFullYear ( ) , month : c . getMonth ( ) + 1 , day : c . getDate ( ) } ) , a . timeSelect . setValue ( ) , a . _setInnerValue ( ) ; break ; case BI . DynamicDateCombo . Dynamic : default : a . storeValue && a . storeValue . type === BI . DynamicDateCombo . Dynamic ? a . dynamicPane . setValue ( a . storeValue . value ) : a . dynamicPane . setValue ( { year : 0 } ) , a . _setInnerValue ( ) } } } ] } } , _setInnerValue : function ( ) { if ( this . dateTab . getSelect ( ) === BI . DynamicDateCombo . Static ) this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) , this . textButton . setEnable ( ! 0 ) ; else { var a = BI . DynamicDateHelper . getCalculation ( this . dynamicPane . getValue ( ) ) ; a = BI . print ( a , "%Y-%X-%d" ) , this . textButton . setValue ( a ) , this . textButton . setEnable ( ! 1 ) } } , _checkValueValid : function ( a ) { return BI . isNull ( a ) || BI . isEmptyObject ( a ) || BI . isEmptyString ( a ) } , setValue : function ( a ) { this . storeValue = a ; var b , c , d = this ; switch ( a = a || { } , b = a . type || BI . DynamicDateCombo . Static , c = a . value || a , this . dateTab . setSelect ( b ) , b ) { case BI . DynamicDateCombo . Dynamic : this . dynamicPane . setValue ( c ) , d . _setInnerValue ( ) ; break ; case BI . DynamicDateCombo . Static : default : if ( this . _checkValueValid ( c ) ) { var e = BI . getDate ( ) ; this . ymd . setValue ( { year : e . getFullYear ( ) , month : e . getMonth ( ) + 1 , day : e . getDate ( ) } ) , this . timeSelect . setValue ( ) , this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) } else this . ymd . setValue ( c ) , this . timeSelect . setValue ( { hour : c . hour , minute : c . minute , second : c . second } ) , this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) ; this . textButton . setEnable ( ! 0
} , getValue : function ( ) { return this . valueOne <= this . valueTwo ? { min : this . valueOne , max : this . valueTwo } : { min : this . valueTwo , max : this . valueOne } } , setMinAndMax : function ( a ) { var b = BI . parseFloat ( a . min ) , c = BI . parseFloat ( a . max ) ; ! isNaN ( b ) && ! isNaN ( c ) && c >= b && ( this . min = b , this . max = c , this . valueOne = b , this . valueTwo = c , this . precision = this . _getPrecision ( ) , this . _setDraggableEnable ( ! 0 ) ) , c === b && this . _setDraggableEnable ( ! 1 ) } , setValue : function ( a ) { var b = this . options , c = BI . parseFloat ( a . min ) , d = BI . parseFloat ( a . max ) ; c = b . digit === ! 1 ? c : c . toFixed ( b . digit ) , d = b . digit === ! 1 ? d : d . toFixed ( b . digit ) , isNaN ( c ) || isNaN ( d ) || ( this . _checkValidation ( c ) && ( this . valueOne = this . valueOne <= this . valueTwo ? c : d ) , this . _checkValidation ( d ) && ( this . valueTwo = this . valueOne <= this . valueTwo ? d : c ) , c < this . min && ( this . valueOne = this . min ) , d > this . max && ( this . valueTwo = this . max ) ) } , reset : function ( ) { this . _setVisible ( ! 1 ) , this . enable = ! 1 , this . valueOne = "" , this . valueTwo = "" , this . min = NaN , this . max = NaN , this . _setBlueTrackWidth ( 0 ) } , populate : function ( ) { isNaN ( this . min ) || isNaN ( this . max ) || ( this . enable = ! 0 , this . _setVisible ( ! 0 ) , this . _setErrorText ( ) , ( BI . isNumeric ( this . valueOne ) || BI . isNotEmptyString ( this . valueOne ) ) && ( BI . isNumeric ( this . valueTwo ) || BI . isNotEmptyString ( this . valueTwo ) ) ? ( this . labelOne . setValue ( this . valueOne ) , this . labelTwo . setValue ( this . valueTwo ) , this . _setAllPosition ( this . _getPercentByValue ( this . valueOne ) , this . _getPercentByValue ( this . valueTwo ) ) ) : ( this . labelOne . setValue ( this . min ) , this . labelTwo . setValue ( this . max ) , this . _setAllPosition ( 0 , 100 ) ) ) } } ) , BI . IntervalSlider . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.interval_slider" , BI . IntervalSlider ) , BI . AccurateCalculationModel = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . AccurateCalculationModel . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "" } ) } , _init : function ( ) { BI . AccurateCalculationModel . superclass . _init . apply ( this , arguments ) } , _getMagnitude : function ( a ) { for ( var b = "1" , c = 0 ; c < a ; c ++ ) b += "0" ; return BI . parseInt ( b ) } , _formatDecimal : function ( a , b ) { if ( a . numDecimalLength !== b . numDecimalLength ) { var c = a . numDecimalLength - b . numDecimalLength ; if ( c > 0 ) var d = b ; else { var d = a ; c = 0 - c } for ( var e = 0 ; e < c ; e ++ ) "0" === d . numDecimal && 0 === e || ( d . numDecimal += "0" ) } } , _stringNumberFactory : function ( a ) { var b = a . toString ( ) , c = b . split ( "." ) , d = c [ 0 ] ; if ( 1 === c . length ) var e = "0" , f = 0 ; else var e = c [ 1 ] , f = c [ 1 ] . length ; return { numInteger : d , numDecimal : e , numDecimalLength : f } } , _accurateSubtraction : function ( a , b ) { function c ( a , b ) { return a . numDecimal . length >= b . numDecimal . length ? a . numDecimal . length : b . numDecimal . length } function d ( a , b ) { for ( var c = b - a . length , d = 0 ; d < c ; d ++ ) a = "0" + a ; return a } var e = this . _stringNumberFactory ( a ) , f = this . _stringNumberFactory ( b ) , g = BI . parseInt ( e . numInteger ) - BI . parseInt ( f . numInteger ) ; this . _formatDecimal ( e , f ) ; var h = c ( e , f ) ; if ( BI . parseInt ( e . numDecimal ) >= BI . parseInt ( f . numDecimal ) ) var i = ( BI . parseInt ( e . numDecimal ) - BI . parseInt ( f . numDecimal ) ) . toString ( ) , j = d ( i , h ) ; else { g -- ; var k = this . _getMagnitude ( h ) , i = ( k + BI . parseInt ( e . numDecimal ) - BI . parseInt ( f . numDecimal ) ) . toString ( ) , j = d ( i , h ) } var l = g + "." + j ; return BI . parseFloat ( l ) } , _accurateAddition : function ( a , b ) { function c ( a , b ) { for ( var c = b - a . length , d = 0 ; d < c ; d ++ ) a = "0" + a ; return a } var d = this . _stringNumberFactory ( a ) , e = this . _stringNumberFactory ( b ) , f = BI . parseInt ( d . numInteger ) + BI . parseInt ( e . numInteger ) ; this . _formatDecimal ( d , e ) ; var g = ( BI . parseInt ( d . numDecimal ) + BI . parseInt ( e . numDecimal ) ) . toString ( ) ; "0" !== g && ( g . length <= d . numDecimal . length ? g = c ( g , d . numDecimal . length ) : ( f ++ , g = g . slice ( 1 ) ) ) ; var h = f + "." + g ; return BI . parseFloat ( h ) } , _accurateMultiplication : function ( a , b ) { var c = this . _stringNumberFactory ( a ) , d = this . _stringNumberFactory ( b ) , e = BI . parseInt ( c . numInteger ) * BI . parseInt ( d . numInteger ) , f = this . _accurateDivisionTenExponent ( BI . parseInt ( c . numDecimal ) * BI . parseInt ( d . numInteger ) , c . numDecimalLength ) , g = this . _accurateDivisionTenExponent ( BI . parseInt ( c . numInteger ) * BI . parseInt ( d . numDecimal ) , d . numDecimalLength ) , h = this . _accurateDivisionTenExponent ( BI . parseInt ( c . numDecimal ) * BI . parseInt ( d . numDecimal ) , c . numDecimalLength + d . numDecimalLength ) ; return this . _accurateAddition ( this . _accurateAddition ( this . _accurateAddition ( e , f ) , g ) , h ) } , _accurateDivisionTenExponent : function ( a , b ) { function c ( a , b ) { for ( var c = b - a . length , d = 0 ; d < c ; d ++
e === a . length - 1 && ( g . type = "bi.multilayer_single_tree_last_plus_group_node" , g . isLastNode = ! 0 ) , 0 !== e || c || ( g . type = "bi.multilayer_single_tree_first_plus_group_node" ) , 0 !== e || e !== a . length - 1 || c || ( g . type = "bi.multilayer_single_tree_plus_group_node" ) , BI . defaults ( f , g ) , d . _formatItems ( f . children , b + 1 , f ) ) : ( g . type = "bi.multilayer_single_tree_mid_tree_leaf_item" , 0 !== e || c || ( g . type = "bi.multilayer_single_tree_first_tree_leaf_item" ) , e === a . length - 1 && ( g . type = "bi.multilayer_single_tree_last_tree_leaf_item" ) , BI . defaults ( f , g ) ) } ) , a } , _assertId : function ( a ) { BI . each ( a , function ( a , b ) { b . id = b . id || BI . UUID ( ) } ) } , initTree : function ( a ) { var b = this , c = this . options ; this . empty ( ) , this . _assertId ( a ) , this . tree = BI . createWidget ( { type : "bi.custom_tree" , cls : "tree-view display-table" , expander : { isDefaultInit : c . isDefaultInit , el : { } , popup : { type : "bi.custom_tree" } } , items : this . _formatItems ( BI . Tree . transformToTreeFormat ( a ) , 0 ) , value : c . value , itemsCreator : function ( a , b ) { c . itemsCreator ( a , function ( a ) { b ( BI . Tree . transformToTreeFormat ( a ) , 0 ) } ) } , el : { type : "bi.button_tree" , chooseType : c . chooseType , layouts : [ { type : "bi.vertical" } ] } } ) , this . tree . on ( BI . Controller . EVENT _CHANGE , function ( a , c ) { b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a === BI . Events . CLICK && b . fireEvent ( BI . MultiLayerSingleLevelTree . EVENT _CHANGE , c ) } ) , BI . createWidget ( { type : "bi.adaptive" , element : this , scrollable : c . scrollable , items : [ this . tree ] } ) } , populate : function ( a ) { this . tree . populate ( this . _formatItems ( BI . Tree . transformToTreeFormat ( a ) , 0 ) ) } , setValue : function ( a ) { this . tree . setValue ( a ) } , getValue : function ( ) { return BI . filter ( BI . uniq ( this . tree . getValue ( ) ) , function ( a , b ) { return BI . isNotNull ( b ) } ) } , getAllLeaves : function ( ) { return this . tree . getAllLeaves ( ) } , getNodeById : function ( a ) { return this . tree . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . tree . getNodeByValue ( a ) } } ) , BI . MultiLayerSingleLevelTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multilayer_single_level_tree" , BI . MultiLayerSingleLevelTree ) , BI . MultiLayerSingleTreePopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSingleTreePopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multilayer-singletree-popup" , tipText : BI . i18nText ( "BI-No_Selected_Item" ) , isDefaultInit : ! 1 , itemsCreator : BI . emptyFn , items : [ ] } ) } , _init : function ( ) { BI . MultiLayerSingleTreePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . tree = BI . createWidget ( { type : "bi.multilayer_single_level_tree" , isDefaultInit : b . isDefaultInit , items : b . items , itemsCreator : b . itemsCreator , value : b . value , scrollable : null } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , scrollable : ! 0 , element : this , vgap : 5 , items : [ this . tree ] } ) , this . tree . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . tree . on ( BI . MultiLayerSingleLevelTree . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiLayerSingleTreePopup . EVENT _CHANGE ) } ) , this . check ( ) } , getValue : function ( ) { return this . tree . getValue ( ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . tree . setValue ( a ) } , populate : function ( a ) { BI . MultiLayerSingleTreePopup . superclass . populate . apply ( this , arguments ) , this . tree . populate ( a ) } } ) , BI . MultiLayerSingleTreePopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multilayer_single_tree_popup" , BI . MultiLayerSingleTreePopup ) , BI . MultiLayerSingleTreeFirstPlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . MultiLayerSingleTreeFirstPlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-multilayer-single-tree-first-plus-group-node bi-list-item" , layer : 0 , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeFirstPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . node = this . _createNode ( ) ; for ( var b = [ ] , c = a . pNode ; c ; ) c . isLastNode && b . push ( c . layer ) , c = c . pNode ; var d = [ ] ; BI . count ( 0 , a . layer , function ( c ) { d . push ( { type : "bi.layout" , cls : BI . contains ( b , c ) ? "" : "base-line-conn-background" , width : 12 , height : a . height } ) } ) , d . push ( this . node ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( a . layer , 12 ) , items : [ d ] } ) } , doRedMark : function ( ) { this . node . doRedMark . apply ( this . node , arguments ) } , unRedMark : function ( ) { this . node . unRed
a . trigger . getSearcher ( ) . setState ( a . storeValue ) , a . trigger . getCounter ( ) . setButtonChecked ( a . storeValue ) } ; this . storeValue = { type : BI . Selection . Multi , value : b . value || [ ] } , this . requesting = ! 1 , this . trigger = BI . createWidget ( { type : "bi.multi_select_insert_trigger" , height : b . height , text : b . text , masker : { offset : { left : 0 , top : 0 , right : 0 , bottom : 25 } } , valueFormatter : b . valueFormatter , itemsCreator : function ( c , d ) { b . itemsCreator ( c , function ( b ) { 1 === c . times && BI . isNotNull ( c . keywords ) && a . trigger . setValue ( { type : BI . Selection . Multi , value : a . getValue ( ) } ) , d . apply ( a , arguments ) } ) } , value : { type : BI . Selection . Multi , value : b . value } } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _START , function ( ) { a . _setStartValue ( "" ) , this . getSearcher ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _STOP , function ( ) { a . _setStartValue ( "" ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _PAUSE , function ( ) { this . getSearcher ( ) . hasMatched ( ) && a . _addItem ( c ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _ADD _ITEM , function ( ) { this . getSearcher ( ) . hasMatched ( ) || ( a . _addItem ( c ) , a . trigger . stopEditing ( ) ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _SEARCHING , function ( b ) { var d = BI . last ( b ) ; b = BI . initial ( b || [ ] ) , b . length > 0 && a . _joinKeywords ( b , function ( ) { BI . isEndWithBlank ( d ) ? ( a . combo . setValue ( a . storeValue ) , c ( ) , a . combo . populate ( ) , a . _setStartValue ( "" ) ) : ( a . combo . setValue ( a . storeValue ) , c ( ) ) } ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _CHANGE , function ( b , d ) { d instanceof BI . MultiSelectBar ? a . _joinAll ( this . getValue ( ) , function ( ) { c ( ) } ) : a . _join ( this . getValue ( ) , function ( ) { c ( ) } ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW , function ( ) { this . getCounter ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _COUNTER _CLICK , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , toggle : ! 1 , container : b . container , el : this . trigger , adjustLength : 1 , popup : { type : "bi.multi_select_no_bar_popup_view" , ref : function ( ) { a . popup = this , a . trigger . setAdapter ( this ) } , listeners : [ { eventName : BI . MultiSelectPopupView . EVENT _CHANGE , action : function ( ) { a . storeValue = this . getValue ( ) , a . _adjust ( function ( ) { c ( ) } ) } } , { eventName : BI . MultiSelectPopupView . EVENT _CLICK _CONFIRM , action : function ( ) { a . _defaultState ( ) } } , { eventName : BI . MultiSelectPopupView . EVENT _CLICK _CLEAR , action : function ( ) { a . setValue ( ) , a . _defaultState ( ) } } ] , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , onLoaded : function ( ) { BI . nextTick ( function ( ) { a . combo . adjustWidth ( ) , a . combo . adjustHeight ( ) , a . trigger . getCounter ( ) . adjustView ( ) , a . trigger . getSearcher ( ) . adjustView ( ) } ) } } , value : { type : BI . Selection . Multi , value : b . value } , hideChecker : function ( a ) { return 0 === d . element . find ( a . target ) . length } } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { this . setValue ( a . storeValue ) , BI . nextTick ( function ( ) { a . populate ( ) } ) } ) , this . wants2Quit = ! 1 , this . combo . on ( BI . Combo . EVENT _AFTER _HIDEVIEW , function ( ) { a . trigger . stopEditing ( ) , a . requesting === ! 0 ? a . wants2Quit = ! 0 : a . fireEvent ( BI . MultiSelectInsertNoBarCombo . EVENT _CONFIRM ) } ) ; var d = BI . createWidget ( { type : "bi.trigger_icon_button" , width : b . height , height : b . height , cls : "multi-select-trigger-icon-button" } ) ; d . on ( BI . TriggerIconButton . EVENT _CHANGE , function ( ) { a . trigger . getCounter ( ) . hideView ( ) , a . combo . isViewVisible ( ) ? a . combo . hideView ( ) : a . combo . showView ( ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . combo , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : d , right : 0 , top : 0 , bottom : 0 } ] } ) } , _addItem : function ( a ) { var b = this , c = this . trigger . getSearcher ( ) . getKeyword ( ) ; this . _join ( { type : BI . Selection . Multi , value : [ c ] } , function ( ) { b . storeValue . type === BI . Selection . Multi && BI . pushDistinct ( b . storeValue . value , c ) , b . combo . setValue ( b . storeValue ) , b . _setStartValue ( c ) , a ( ) , b . populate ( ) , b . _setStartValue ( "" ) } ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) , this . combo . hideView ( ) } , _assertValue : function ( a ) { a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) } , _makeMap : function ( a ) { return BI . makeObject ( a || [ ] ) } , _joinKeywords : function ( a , b ) { function c ( c ) { var e = d . _makeMap ( c ) ; BI . each ( a , function ( a , b ) { BI . isNotNull ( e [ b ] ) && ( d . storeValue . type === BI . Selection . Multi ? BI . pushDistinct ( d
var a = this , b = this . options ; this . editor = BI . createWidget ( b . el , { type : "bi.state_editor" , element : this , height : b . height , watermark : BI . i18nText ( "BI-Basic_Search" ) , allowBlank : ! 0 , value : b . value , text : b . text , tipType : b . tipType , warningTitle : b . warningTitle } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . StateEditor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . MultiSelectEditor . EVENT _PAUSE ) } ) , this . editor . on ( BI . StateEditor . EVENT _CLICK _LABEL , function ( ) { } ) } , focus : function ( ) { this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) } , setState : function ( a ) { this . editor . setState ( a ) } , setValue : function ( a ) { this . editor . setValue ( a ) } , setTipType : function ( a ) { this . editor . setTipType ( a ) } , getValue : function ( ) { var a = this . editor . getState ( ) ; return BI . isArray ( a ) && a . length > 0 ? a [ a . length - 1 ] : "" } , getKeywords : function ( ) { var a = this . editor . getLastValidValue ( ) , b = a . match ( /[\S]+/g ) ; return BI . isEndWithBlank ( a ) ? b . concat ( [ " " ] ) : b } , populate : function ( a ) { } } ) , BI . MultiSelectEditor . EVENT _PAUSE = "MultiSelectEditor.EVENT_PAUSE" , BI . shortcut ( "bi.multi_select_editor" , BI . MultiSelectEditor ) , BI . MultiSelectInsertSearcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectInsertSearcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-searcher" , itemsCreator : BI . emptyFn , el : { } , popup : { } , valueFormatter : BI . emptyFn , adapter : null , masker : { } , text : BI . i18nText ( "BI-Basic_Please_Select" ) } ) } , _init : function ( ) { BI . MultiSelectInsertSearcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( b . el , { type : "bi.multi_select_editor" , height : b . height , text : b . text } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , height : b . height , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( a , b ) { b ( ) } , el : this . editor , popup : BI . extend ( { type : "bi.multi_select_search_insert_pane" , valueFormatter : b . valueFormatter , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { var e = a . editor . getValue ( ) ; c . keywords = [ e ] , this . setKeyword ( e ) , b . itemsCreator ( c , d ) } , value : b . value , listeners : [ { eventName : BI . MultiSelectSearchInsertPane . EVENT _ADD _ITEM , action : function ( ) { a . fireEvent ( BI . MultiSelectInsertSearcher . EVENT _ADD _ITEM ) } } ] } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . searcher . on ( BI . Searcher . EVENT _START , function ( ) { a . fireEvent ( BI . MultiSelectInsertSearcher . EVENT _START ) } ) , this . searcher . on ( BI . Searcher . EVENT _PAUSE , function ( ) { this . hasMatched ( ) , a . fireEvent ( BI . MultiSelectInsertSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . MultiSelectInsertSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectInsertSearcher . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . Searcher . EVENT _SEARCHING , function ( ) { var b = this . getKeywords ( ) ; a . fireEvent ( BI . MultiSelectInsertSearcher . EVENT _SEARCHING , b ) } ) , BI . isNotNull ( b . value ) && this . setState ( b . value ) } , adjustView : function ( ) { this . searcher . adjustView ( ) } , isSearching : function ( ) { return this . searcher . isSearching ( ) } , stopSearch : function ( ) { this . searcher . stopSearch ( ) } , getKeyword : function ( ) { return this . editor . getValue ( ) } , hasMatched : function ( ) { return this . searcher . hasMatched ( ) } , hasChecked : function ( ) { return this . searcher . getView ( ) && this . searcher . getView ( ) . hasChecked ( ) } , setAdapter : function ( a ) { this . searcher . setAdapter ( a ) } , setState : function ( a ) { var b = this . options ; if ( a || ( a = { } ) , a . value || ( a . value = [ ] ) , a . type === BI . Selection . All ) if ( 0 === a . value . length ) this . editor . setState ( BI . Selection . All ) ; else if ( BI . size ( a . assist ) <= 20 ) { var c = "" ; BI . each ( a . assist , function ( a , d ) { c += 0 === a ? "" + ( b . valueFormatter ( d + "" ) || d ) : "," + ( b . valueFormatter ( d + "" ) || d ) } ) , this . editor . setState ( c ) } else this . editor . setState ( BI . Selection . Multi ) ; else if ( 0 === a . value . length ) this . editor . setState ( BI . Selection . None ) ; else if ( BI . size ( a . value ) <= 20 ) { var c = "" ; BI . each ( a . value , function ( a , d ) { c += 0 === a ? "" + ( b . valueFormatter ( d + "" ) || d ) : "," + ( b . valueFormatter ( d + "" ) || d ) } ) , this . editor . setState ( c ) } else this . editor . setState ( BI . Selection . Multi ) } , setValue : function ( a ) { this . setState ( a ) , this . searcher . setValue ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } , g
a || ( a = { } ) , this . popup . setSelectedValue ( a ) } , updateValue : function ( a ) { this . popup . updateValue ( a ) , this . popup . refresh ( ) } , populate : function ( a ) { this . popup . stroke ( a ) } } ) , BI . MultiSelectTreePopup . EVENT _AFTER _INIT = "BI.MultiSelectTreePopup.EVENT_AFTER_INIT" , BI . MultiSelectTreePopup . EVENT _CHANGE = "BI.MultiSelectTreePopup.EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_tree_popup" , BI . MultiSelectTreePopup ) , BI . MultiTreeCheckPane = BI . inherit ( BI . Pane , { constants : { height : 25 , lgap : 10 , tgap : 5 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeCheckPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-check-pane bi-background" , onClickContinueSelect : BI . emptyFn , el : { type : "bi.display_tree" } } ) } , _init : function ( ) { BI . MultiTreeCheckPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . selectedValues = { } ; var c = BI . createWidget ( { type : "bi.text_button" , text : BI . i18nText ( "BI-Continue_Select" ) , cls : "multi-tree-check-selected" } ) ; c . on ( BI . TextButton . EVENT _CHANGE , function ( ) { b . onClickContinueSelect ( ) , BI . nextTick ( function ( ) { a . empty ( ) } ) } ) ; var d = BI . createWidget ( { type : "bi.left" , cls : "multi-tree-continue-select" , items : [ { el : { type : "bi.label" , text : BI . i18nText ( "BI-Selected_Data" ) } , lgap : this . constants . lgap , tgap : this . constants . tgap } , { el : c , lgap : this . constants . lgap , tgap : this . constants . tgap } ] } ) ; this . display = BI . createWidget ( b . el , { type : "bi.display_tree" , cls : "bi-multi-tree-display" , itemsCreator : function ( a , c ) { a . type = BI . TreeView . REQ _TYPE _GET _SELECTED _DATA , b . itemsCreator ( a , c ) } , value : ( b . value || { } ) . value } ) , this . display . on ( BI . Events . AFTERINIT , function ( ) { a . fireEvent ( BI . Events . AFTERINIT ) } ) , this . display . on ( BI . TreeView . EVENT _INIT , function ( ) { d . setVisible ( ! 1 ) } ) , this . display . on ( BI . TreeView . EVENT _AFTERINIT , function ( ) { d . setVisible ( ! 0 ) } ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { height : this . constants . height , el : d } , { height : "fill" , el : this . display } ] } ) } , empty : function ( ) { this . display . empty ( ) } , populate : function ( a ) { this . display . stroke ( a ) } , setValue : function ( a ) { a || ( a = { } ) , this . display . setSelectedValue ( a . value ) } , getValue : function ( ) { } } ) , BI . MultiTreeCheckPane . EVENT _CONTINUE _CLICK = "EVENT_CONTINUE_CLICK" , BI . shortcut ( "bi.multi_tree_check_pane" , BI . MultiTreeCheckPane ) , BI . MultiTreeCombo = BI . inherit ( BI . Single , { constants : { offset : { top : 0 , left : 0 , right : 0 , bottom : 25 } } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-combo" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , height : 24 } ) } , _init : function ( ) { function a ( ) { h ( ) ? b . storeValue = { value : b . trigger . getValue ( ) } : i ( ) && ( b . storeValue = { value : b . combo . getValue ( ) } ) , b . trigger . setValue ( b . storeValue ) } BI . MultiTreeCombo . superclass . _init . apply ( this , arguments ) ; var b = this , c = this . options , d = ! 1 , e = ! 1 ; this . storeValue = { value : c . value || { } } , this . trigger = BI . createWidget ( { type : "bi.multi_select_trigger" , height : c . height , valueFormatter : c . valueFormatter , masker : { offset : this . constants . offset } , searcher : { type : "bi.multi_tree_searcher" , itemsCreator : c . itemsCreator } , switcher : { el : { type : "bi.multi_tree_check_selected_button" } , popup : { type : "bi.multi_tree_check_pane" , itemsCreator : c . itemsCreator } } , value : { value : c . value || { } } } ) , this . combo = BI . createWidget ( { type : "bi.combo" , toggle : ! 1 , container : c . container , el : this . trigger , adjustLength : 1 , popup : { type : "bi.multi_tree_popup_view" , ref : function ( ) { b . popup = this , b . trigger . setAdapter ( this ) } , listeners : [ { eventName : BI . MultiTreePopup . EVENT _AFTERINIT , action : function ( ) { b . trigger . getCounter ( ) . adjustView ( ) , d = ! 0 , e === ! 0 && a ( ) } } , { eventName : BI . MultiTreePopup . EVENT _CHANGE , action : function ( ) { f = ! 0 ; var a = { type : BI . Selection . Multi , value : this . hasChecked ( ) ? this . getValue ( ) : { } } ; b . trigger . getSearcher ( ) . setState ( a ) , b . trigger . getCounter ( ) . setButtonChecked ( a ) } } , { eventName : BI . MultiTreePopup . EVENT _CLICK _CONFIRM , action : function ( ) { b . combo . hideView ( ) } } , { eventName : BI . MultiTreePopup . EVENT _CLICK _CLEAR , action : function ( ) { g = ! 0 , b . setValue ( ) , b . _defaultState ( ) } } ] , itemsCreator : c . itemsCreator , onLoaded : function ( ) { BI . nextTick ( function ( ) { b . trigger . getCounter ( ) . adjustView ( ) , b . trigger . getSearcher ( ) . adjustView ( ) } ) } } , value : { value : c . value || { } } , hideChecker : function ( a ) { return 0 === j . element . find ( a . target ) . length } } ) ; v
} ) , this . bigTip = BI . createWidget ( { type : "bi.label" , text : c . numTip , height : c . height - 2 , invisible : ! 0 } ) , BI . createWidget ( { type : "bi.absolute" , element : this . bigEditor . element , items : [ { el : this . bigTip , top : 0 , right : 5 } ] } ) , this . smallCombo = BI . createWidget ( { type : "bi.icon_combo" , cls : "number-interval-small-combo bi-border-top bi-border-bottom bi-border-right" , height : c . height - 2 , items : [ { text : "(" + BI . i18nText ( "BI-Less_Than" ) + ")" , iconCls : "less-font" , value : 0 } , { text : "(" + BI . i18nText ( "BI-Less_And_Equal" ) + ")" , value : 1 , iconCls : "less-equal-font" } ] } ) , c . closeMin === ! 0 ? this . smallCombo . setValue ( 1 ) : this . smallCombo . setValue ( 0 ) , this . bigCombo = BI . createWidget ( { type : "bi.icon_combo" , cls : "number-interval-big-combo bi-border-top bi-border-bottom bi-border-left" , height : c . height - 2 , items : [ { text : "(" + BI . i18nText ( "BI-Less_Than" ) + ")" , iconCls : "less-font" , value : 0 } , { text : "(" + BI . i18nText ( "BI-Less_And_Equal" ) + ")" , value : 1 , iconCls : "less-equal-font" } ] } ) , c . closeMax === ! 0 ? this . bigCombo . setValue ( 1 ) : this . bigCombo . setValue ( 0 ) , this . label = BI . createWidget ( { type : "bi.label" , text : BI . i18nText ( "BI-Basic_Value" ) , textHeight : c . height - 2 * b . border , width : b . width - 2 * b . border , height : c . height - 2 * b . border , level : "warning" , tipType : "warning" } ) , this . left = BI . createWidget ( { type : "bi.htape" , items : [ { el : a . smallEditor } , { el : a . smallCombo , width : b . width - b . border } ] } ) , this . right = BI . createWidget ( { type : "bi.htape" , items : [ { el : a . bigCombo , width : b . width - b . border } , { el : a . bigEditor , lgap : 1 } ] } ) , BI . createWidget ( { element : a , type : "bi.center" , hgap : 15 , height : c . height , items : [ { type : "bi.absolute" , items : [ { el : a . left , left : - 15 , right : 0 , top : 0 , bottom : 0 } ] } , { type : "bi.absolute" , items : [ { el : a . right , left : 0 , right : - 15 , top : 0 , bottom : 0 } ] } ] } ) , BI . createWidget ( { element : a , type : "bi.horizontal_auto" , items : [ a . label ] } ) , a . _setValidEvent ( a . bigEditor , b . bigEditor ) , a . _setValidEvent ( a . smallEditor , b . smallEditor ) , a . _setErrorEvent ( a . bigEditor , b . bigEditor ) , a . _setErrorEvent ( a . smallEditor , b . smallEditor ) , a . _setBlurEvent ( a . bigEditor ) , a . _setBlurEvent ( a . smallEditor ) , a . _setFocusEvent ( a . bigEditor ) , a . _setFocusEvent ( a . smallEditor ) , a . _setComboValueChangedEvent ( a . bigCombo ) , a . _setComboValueChangedEvent ( a . smallCombo ) , a . _setEditorValueChangedEvent ( a . bigEditor ) , a . _setEditorValueChangedEvent ( a . smallEditor ) , a . _checkValidation ( ) } , _checkValidation : function ( ) { var a = this , b = this . constants , c = this . options ; if ( a . _setTitle ( "" ) , BI . Bubbles . hide ( b . typeError ) , BI . Bubbles . hide ( b . numberError ) , BI . Bubbles . hide ( b . signalError ) , ! a . smallEditor . isValid ( ) || ! a . bigEditor . isValid ( ) ) return a . element . removeClass ( "number-error" ) , c . validation = "invalid" , b . typeError ; if ( BI . isEmptyString ( a . smallEditor . getValue ( ) ) || BI . isEmptyString ( a . bigEditor . getValue ( ) ) ) return a . element . removeClass ( "number-error" ) , c . validation = "valid" , "" ; var d = parseFloat ( a . smallEditor . getValue ( ) ) , e = parseFloat ( a . bigEditor . getValue ( ) ) , f = a . bigCombo . getValue ( ) , g = a . smallCombo . getValue ( ) ; return f [ 0 ] === b . less _equal && g [ 0 ] === b . less _equal ? d > e ? ( a . element . addClass ( "number-error" ) , c . validation = "invalid" , b . numberError ) : ( a . element . removeClass ( "number-error" ) , c . validation = "valid" , "" ) : d > e ? ( a . element . addClass ( "number-error" ) , c . validation = "invalid" , b . numberError ) : d === e ? ( a . element . addClass ( "number-error" ) , c . validation = "invalid" , b . signalError ) : ( a . element . removeClass ( "number-error" ) , c . validation = "valid" , "" ) } , _setTitle : function ( a ) { var b = this ; b . bigEditor . setTitle ( a ) , b . smallEditor . setTitle ( a ) , b . label . setTitle ( a ) } , _setFocusEvent : function ( a ) { var b = this , c = this . constants ; a . on ( BI . Editor . EVENT _FOCUS , function ( ) { switch ( b . _setTitle ( "" ) , b . _checkValidation ( ) ) { case c . typeError : BI . Bubbles . show ( c . typeError , BI . i18nText ( "BI-Numerical_Interval_Input_Data" ) , b , { offsetStyle : "left" , adjustYOffset : c . adjustYOffset } ) ; break ; case c . numberError : BI . Bubbles . show ( c . numberError , BI . i18nText ( "BI-Numerical_Interval_Number_Value" ) , b , { offsetStyle : "left" , adjustYOffset : c . adjustYOffset } ) ; break ; case c . signalError : BI . Bubbles . show ( c . signalError , BI . i18nText ( "BI-Numerical_Interval_Signal_Value" ) , b , { offsetStyle : "left" , adjustYOffset : c . adjustYOffset } ) ; break ; default : return } } ) } , _setBlurEvent : function ( a ) { var b = this . constants , c = this ; a . on ( BI . Editor . EVENT _BLUR , function ( ) { switch ( BI . Bubbles . hide ( b . typeError ) , BI . Bubbles . hide ( b . numberError ) , BI . Bubble
baseCls : "bi-multi-select-searcher" , itemsCreator : BI . emptyFn , el : { } , popup : { } , valueFormatter : BI . emptyFn , adapter : null , masker : { } } ) } , _init : function ( ) { BI . SearchMultiSelectSearcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( b . el , { type : "bi.multi_select_editor" , height : b . height , text : b . text , tipType : b . tipType , warningTitle : b . warningTitle } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , height : b . height , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( a , b ) { b ( ) } , el : this . editor , popup : BI . extend ( { type : "bi.multi_select_search_pane" , valueFormatter : b . valueFormatter , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { var e = a . editor . getValue ( ) ; c . keywords = [ e ] , this . setKeyword ( e ) , b . itemsCreator ( c , d ) } , value : b . value } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . searcher . on ( BI . Searcher . EVENT _START , function ( ) { a . fireEvent ( BI . SearchMultiSelectSearcher . EVENT _START ) } ) , this . searcher . on ( BI . Searcher . EVENT _PAUSE , function ( ) { this . hasMatched ( ) , a . fireEvent ( BI . SearchMultiSelectSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . SearchMultiSelectSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SearchMultiSelectSearcher . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . Searcher . EVENT _SEARCHING , function ( ) { var b = this . getKeywords ( ) ; a . fireEvent ( BI . SearchMultiSelectSearcher . EVENT _SEARCHING , b ) } ) , BI . isNotNull ( b . value ) && this . setState ( b . value ) } , adjustView : function ( ) { this . searcher . adjustView ( ) } , isSearching : function ( ) { return this . searcher . isSearching ( ) } , stopSearch : function ( ) { this . searcher . stopSearch ( ) } , getKeyword : function ( ) { return this . editor . getValue ( ) } , hasMatched : function ( ) { return this . searcher . hasMatched ( ) } , hasChecked : function ( ) { return this . searcher . getView ( ) && this . searcher . getView ( ) . hasChecked ( ) } , setAdapter : function ( a ) { this . searcher . setAdapter ( a ) } , setState : function ( a ) { var b = this . options , c = { } ; if ( c . type = a . type , c . value = b . allValueGetter ( ) || [ ] , c . assist = a . assist , c . type === BI . Selection . All ) if ( 0 === c . value . length ) this . editor . setState ( BI . Selection . All ) ; else if ( BI . size ( c . assist ) <= 20 ) { var d = "" ; BI . each ( c . assist , function ( a , c ) { d += 0 === a ? "" + ( b . valueFormatter ( c + "" ) || c ) : "," + ( b . valueFormatter ( c + "" ) || c ) } ) , this . editor . setState ( d ) } else this . editor . setState ( BI . Selection . Multi ) ; else if ( 0 === c . value . length ) this . editor . setState ( BI . Selection . None ) ; else if ( BI . size ( c . value ) <= 20 ) { var d = "" ; BI . each ( c . value , function ( a , c ) { d += 0 === a ? "" + ( b . valueFormatter ( c + "" ) || c ) : "," + ( b . valueFormatter ( c + "" ) || c ) } ) , this . editor . setState ( d ) } else this . editor . setState ( BI . Selection . Multi ) } , setTipType : function ( a ) { this . editor . setTipType ( a ) } , setValue : function ( a ) { this . setState ( a ) , this . searcher . setValue ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } , populate : function ( a ) { this . searcher . populate . apply ( this . searcher , arguments ) } } ) , BI . SearchMultiSelectSearcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . SearchMultiSelectSearcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . SearchMultiSelectSearcher . EVENT _START = "EVENT_START" , BI . SearchMultiSelectSearcher . EVENT _STOP = "EVENT_STOP" , BI . SearchMultiSelectSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . SearchMultiSelectSearcher . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . shortcut ( "bi.search_multi_select_searcher" , BI . SearchMultiSelectSearcher ) , BI . SelectTreeFirstPlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . SelectTreeFirstPlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-select-tree-first-plus-group-node bi-list-item-active" , logic : { dynamic : ! 1 } , id : "" , pId : "" , readonly : ! 0 , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . SelectTreeFirstPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.first_tree_node_checkbox" , stopPropagation : ! 0 } ) , this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , text : b . text , value : b . value , keyword : b . keyword , py : b . py } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , functio
} ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( BI . LogicFactory . createLogicTypeByDirection ( b . direction ) , BI . extend ( { scrolly : ! 0 } , b . logic , { items : b . allowNoSelect ? BI . LogicFactory . createLogicItemsByDirection ( b . direction , { type : "bi.single_select_item" , height : 24 , forceNotSelected : ! 0 , text : BI . i18nText ( "BI-Basic_No_Select" ) , ref : function ( b ) { a . toolbar = b } , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( b ) { b === BI . Events . CLICK && ( a . list . setValue ( ) , a . fireEvent ( BI . SingleSelectList . EVENT _CHANGE ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } ] } , this . list ) : BI . LogicFactory . createLogicItemsByDirection ( b . direction , this . list ) } ) ) ) ) } , hasPrev : function ( ) { return this . list . hasPrev ( ) } , hasNext : function ( ) { return this . list . hasNext ( ) } , prependItems : function ( a ) { this . list . prependItems . apply ( this . list , arguments ) } , addItems : function ( a ) { this . list . addItems . apply ( this . list , arguments ) } , setValue : function ( a ) { this . list . setValue ( [ a ] ) } , getValue : function ( ) { return this . list . getValue ( ) [ 0 ] } , empty : function ( ) { this . list . empty ( ) } , populate : function ( a ) { this . list . populate . apply ( this . list , arguments ) } , resetHeight : function ( a ) { this . list . resetHeight ? this . list . resetHeight ( a ) : this . list . element . css ( { "max-height" : a + "px" } ) } , setNotSelectedValue : function ( ) { this . list . setNotSelectedValue . apply ( this . list , arguments ) } , getNotSelectedValue : function ( ) { return this . list . getNotSelectedValue ( ) } , getAllButtons : function ( ) { return this . list . getAllButtons ( ) } , getAllLeaves : function ( ) { return this . list . getAllLeaves ( ) } , getSelectedButtons : function ( ) { return this . list . getSelectedButtons ( ) } , getNotSelectedButtons : function ( ) { return this . list . getNotSelectedButtons ( ) } , getIndexByValue : function ( a ) { return this . list . getIndexByValue ( a ) } , getNodeById : function ( a ) { return this . list . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . list . getNodeByValue ( a ) } } ) , BI . SingleSelectList . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_select_list" , BI . SingleSelectList ) , BI . SingleSelectLoader = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectLoader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-loader" , logic : { dynamic : ! 0 } , allowNoSelect : ! 1 , valueFormatter : BI . emptyFn , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . SingleSelectLoader . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = ! 1 ; this . storeValue = b . value , this . button _group = BI . createWidget ( { type : "bi.single_select_list" , allowNoSelect : b . allowNoSelect , logic : b . logic , el : BI . extend ( { onLoaded : b . onLoaded , el : { type : "bi.loader" , isDefaultInit : ! 1 , logic : { dynamic : ! 0 , scrolly : ! 0 } , el : { chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , behaviors : { redmark : function ( ) { return ! 0 } } , layouts : [ { type : "bi.vertical" } ] } } } , b . el ) , itemsCreator : function ( d , e ) { var f = a . _startValue ; BI . isNotNull ( a . storeValue ) && ( d = BI . extend ( d || { } , { selectedValues : [ a . storeValue ] } ) ) , b . itemsCreator ( d , function ( g ) { c = g . hasNext ; var h = [ ] ; if ( 1 === d . times && BI . isNotNull ( a . storeValue ) ) { var i = BI . map ( [ a . storeValue ] , function ( a , c ) { var d = b . valueFormatter ( c ) || c ; return { text : d , value : c , title : d , selected : ! 0 } } ) ; h = a . _createItems ( i ) } e ( h . concat ( a . _createItems ( g . items ) ) , g . keyword || "" ) , 1 === d . times && a . storeValue && ( BI . isKey ( f ) && ( a . storeValue = f ) , a . setValue ( a . storeValue ) ) , 1 === d . times && a . _scrollToTop ( ) } ) } , hasNext : function ( ) { return c } , value : this . storeValue } ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . button _group ] , vgap : 5 } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . SingleSelectList . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SingleSelectLoader . EVENT _CHANGE , arguments ) } ) } , _createItems : function ( a ) { return BI . createItems ( a , { type : this . options . allowNoSelect ? "bi.single_select_item" : "bi.single_select_combo_item" , logic : this . options . logic , cls : "bi-list-item-active" , height : 24 , selected : ! 1 } ) } , _scrollToTop : function ( ) { var a = this ; BI . delay ( function ( ) { a . button _group . element . scrollTop ( 0 ) } , 30 ) } , _assertValue : function ( a ) { } , setStartValue : function ( a ) { this . _startValue = a } , setValue : function ( a ) { this . storeValue = a , this . _assertValue ( this . storeValue ) , this . button _group . setValue ( this . store
c . _setSliderPosition ( l ) ; var m = c . _getValueByPercent ( l ) ; m = d . digit === ! 1 ? m : m . toFixed ( d . digit ) , c . value = m , c . fireEvent ( BI . SingleSliderNormal . EVENT _DRAG , m ) } } , function ( ) { if ( e === ! 0 ) { f = b ( f ) ; var d = 100 * f / c . _getGrayTrackLength ( ) , j = BI . parseFloat ( d . toFixed ( 1 ) ) ; c . _setSliderPosition ( j ) , f = 0 , g = 0 , h = f , e = ! 1 } a . element . removeClass ( "dragging" ) , i . releaseMouseMoves ( ) , c . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } , window ) ; a . element . on ( "mousedown" , function ( c ) { a . isEnabled ( ) && ( h = this . offsetLeft , b ( h ) , i . captureMouseMoves ( c ) ) } ) } , _createTrack : function ( ) { var a = this ; this . _constant ; return this . grayTrack = BI . createWidget ( { type : "bi.layout" , cls : "gray-track" , height : 6 } ) , this . blueTrack = BI . createWidget ( { type : "bi.layout" , cls : "blue-track bi-high-light-background" , height : 6 } ) , this . options . color && this . blueTrack . element . css ( { "background-color" : this . options . color } ) , { type : "bi.absolute" , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . grayTrack , top : 0 , left : 0 , width : "100%" } , { el : this . blueTrack , top : 0 , left : 0 , width : "0%" } ] } ] , hgap : 8 , height : 8 } , top : 8 , left : 0 , width : "100%" } ] , ref : function ( b ) { a . track = b } } } , _checkValidation : function ( a ) { return ! ( BI . isNull ( a ) || a < this . min || a > this . max ) } , _setBlueTrack : function ( a ) { this . blueTrack . element . css ( { width : a + "%" } ) } , _setSliderPosition : function ( a ) { this . slider . element . css ( { left : a + "%" } ) } , _setAllPosition : function ( a ) { this . _setSliderPosition ( a ) , this . _setBlueTrack ( a ) } , _setVisible : function ( a ) { this . slider . setVisible ( a ) } , _getGrayTrackLength : function ( ) { return this . grayTrack . element [ 0 ] . scrollWidth } , _getValueByPercent : function ( a ) { var b = BI . parseInt ( 10 * a ) ; return ( this . max - this . min ) * b / 1e3 + this . min } , _getPercentByValue : function ( a ) { return 100 * ( a - this . min ) / ( this . max - this . min ) } , _setEnable : function ( a ) { BI . SingleSliderNormal . superclass . _setEnable . apply ( this , [ a ] ) , a ? this . blueTrack . element . removeClass ( "disabled-blue-track" ) . addClass ( "blue-track" ) : this . blueTrack . element . removeClass ( "blue-track" ) . addClass ( "disabled-blue-track" ) } , getValue : function ( ) { return this . value } , setValue : function ( a ) { var b = BI . parseFloat ( a ) ; isNaN ( b ) || ( this . _checkValidation ( b ) && ( this . value = b ) , b > this . max && ( this . value = this . max ) , b < this . min && ( this . value = this . min ) ) } , setMinAndMax : function ( a ) { var b = BI . parseFloat ( a . min ) , c = BI . parseFloat ( a . max ) ; ! isNaN ( b ) && ! isNaN ( c ) && c > b && ( this . min = b , this . max = c ) } , reset : function ( ) { this . _setVisible ( ! 1 ) , this . enable = ! 1 , this . value = "" , this . min = 0 , this . max = 0 , this . _setBlueTrack ( 0 ) } , populate : function ( ) { isNaN ( this . min ) || isNaN ( this . max ) || ( this . _setVisible ( ! 0 ) , this . enable = ! 0 , BI . isNumeric ( this . value ) || BI . isNotEmptyString ( this . value ) ? this . _setAllPosition ( this . _getPercentByValue ( this . value ) ) : this . _setAllPosition ( 100 ) ) } } ) , BI . SingleSliderNormal . EVENT _DRAG = "EVENT_DRAG" , BI . shortcut ( "bi.single_slider_normal" , BI . SingleSliderNormal ) , BI . SingleTreeCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleTreeCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-tree-combo" , trigger : { } , height : 24 , text : "" , items : [ ] , value : "" , attributes : { tabIndex : 0 } } ) } , _init : function ( ) { BI . SingleTreeCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( BI . extend ( { type : "bi.single_tree_trigger" , text : b . text , height : b . height , items : b . items , value : b . value } , b . trigger ) ) , this . popup = BI . createWidget ( { type : "bi.single_level_tree" , items : b . items , value : b . value } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup } } ) , this . combo . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . SingleTreeCombo . EVENT _BEFORE _POPUPVIEW , arguments ) } ) , this . popup . on ( BI . SingleTreePopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . combo . hideView ( ) , a . fireEvent ( BI . SingleTreeCombo . EVENT _CHANGE ) } ) } , populate : function ( a ) { this . combo . populate ( a ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . trigger . setValue ( a ) , this . popup . setValue ( a ) } , getValue : function ( ) { return this . popup . getValue ( ) } } ) , BI . SingleTreeCombo . EVENT _CHANGE = "SingleTreeCombo.EVENT_CHANGE" , BI . SingleTreeCombo . EVENT _BEFORE _POPUPVIEW
allowBlank : ! 0 , errorText : function ( ) { return BI . i18nText ( "BI-Year_Trigger_Invalid_Text" ) } } ) , this . editor . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _FOCUS ) } ) , this . editor . on ( BI . SignEditor . EVENT _STOP , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _STOP ) } ) , this . editor . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = a . editor . getValue ( ) ; BI . isNotNull ( b ) && a . editor . setValue ( b ) , BI . isNotEmptyString ( b ) && ( a . storeValue = { type : BI . DynamicDateCombo . Static , value : { year : b } } ) , a . fireEvent ( BI . DynamicYearTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _SPACE , function ( ) { a . editor . isValid ( ) && a . editor . blur ( ) } ) , this . editor . on ( BI . SignEditor . EVENT _START , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _ERROR ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . editor } , { el : { type : "bi.text_button" , baseCls : "bi-trigger-year-text" , text : BI . i18nText ( "BI-Multi_Date_Year" ) , width : b . height } , width : b . height } , { el : { type : "bi.trigger_icon_button" , width : b . height } , width : b . height } ] } ) , this . setValue ( b . value ) } , _getText : function ( a ) { var b = "" ; return BI . isNotNull ( a . year ) && 0 !== BI . parseInt ( a . year ) && ( b += Math . abs ( a . year ) + BI . i18nText ( "BI-Basic_Year" ) + ( a . year < 0 ? BI . i18nText ( "BI-Basic_Front" ) : BI . i18nText ( "BI-Basic_Behind" ) ) ) , b } , _setInnerValue : function ( a , b ) { var c = BI . print ( a , "%Y" ) ; this . editor . setState ( c ) , this . editor . setValue ( c ) } , _titleCreator : function ( ) { var a = this . storeValue || { } , b = a . type || BI . DynamicDateCombo . Static , c = a . value ; if ( ! this . editor . isValid ( ) ) return "" ; switch ( b ) { case BI . DynamicDateCombo . Dynamic : var d = this . _getText ( c ) , e = BI . getDate ( ) ; e = BI . DynamicDateHelper . getCalculation ( c ) ; var f = BI . print ( e , "%Y" ) ; return BI . isEmptyString ( d ) ? f : d + ":" + f ; case BI . DynamicDateCombo . Static : default : return c = c || { } , c . year } } , setValue : function ( a ) { var b , c , d = BI . getDate ( ) ; switch ( this . storeValue = a , BI . isNotNull ( a ) && ( b = a . type || BI . DynamicDateCombo . Static , c = a . value || a ) , b ) { case BI . DynamicDateCombo . Dynamic : var e = this . _getText ( c ) ; d = BI . DynamicDateHelper . getCalculation ( c ) , this . _setInnerValue ( d , e ) ; break ; case BI . DynamicDateCombo . Static : default : c = c || { } , this . editor . setState ( c . year ) , this . editor . setValue ( c . year ) } } , getValue : function ( ) { return this . storeValue } , getKey : function ( ) { return 0 | this . editor . getValue ( ) } } ) , BI . DynamicYearTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . DynamicYearTrigger . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicYearTrigger . EVENT _START = "EVENT_START" , BI . DynamicYearTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DynamicYearTrigger . EVENT _STOP = "EVENT_STOP" , BI . shortcut ( "bi.dynamic_year_trigger" , BI . DynamicYearTrigger ) , BI . DynamicYearMonthCard = BI . inherit ( BI . Widget , { props : { baseCls : "bi-year-month-card" } , render : function ( ) { var a = this ; return { type : "bi.vertical" , items : [ { type : "bi.label" , text : BI . i18nText ( "BI-Multi_Date_Relative_Current_Time" ) , textAlign : "left" , height : 24 } , { type : "bi.dynamic_date_param_item" , ref : function ( ) { a . year = this } , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] } , { type : "bi.dynamic_date_param_item" , dateType : BI . DynamicDateCard . TYPE . MONTH , ref : function ( ) { a . month = this } , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] } ] , vgap : 10 , hgap : 10 } } , _createValue : function ( a , b ) { return { dateType : a , value : Math . abs ( b ) , offset : b > 0 ? 1 : 0 } } , setValue : function ( a ) { a = a || { year : 0 , month : 0 } , this . year . setValue ( this . _createValue ( BI . DynamicDateCard . TYPE . YEAR , a . year ) ) , this . month . setValue ( this . _createValue ( BI . DynamicDateCard . TYPE . MONTH , a . month ) ) } , getValue : function ( ) { var a = this . year . getValue ( ) , b = this . month . getValue ( ) ; return { year : 0 === a . offset ? - a . value : a . value , month : 0 === b . offset ? - b . value : b . value } } } ) , BI . DynamicYearMonthCard . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_year_month_card" , BI . DynamicYearMonthCard ) , BI . StaticYearMonthCard = BI . inherit ( BI . Widget , { props : { baseCls : "bi-static-year-month-card" , behaviors : { } } , _createMonths : function ( ) { var a = [ 1 , 7 , 2 , 8 , 3 , 9 , 4 , 10 , 5 , 11 , 6 , 12 ] , b = [ ] ; return b . push ( a . slice ( 0 , 2 ) ) , b . push ( a . slice ( 2 , 4 ) ) , b . push ( a . slice ( 4 , 6 ) ) , b . push ( a . slice ( 6 , 8 ) ) , b . push ( a . slice ( 8 , 10 ) ) , b . push ( a . slice ( 10 , 12 ) ) , BI . map ( b , function ( a , b ) { return BI . map ( b , fu
} } ] , ref : function ( ) { a . year = this } } } } , listeners : [ { eventName : BI . Tab . EVENT _CHANGE , action : function ( ) { var b = a . dateTab . getSelect ( ) ; switch ( b ) { case BI . DynamicYearQuarterCombo . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dynamicPane . getValue ( ) ) ; a . year . setValue ( { year : c . getFullYear ( ) , quarter : BI . getQuarter ( c ) } ) , a . _setInnerValue ( ) ; break ; case BI . DynamicYearQuarterCombo . Dynamic : default : a . storeValue && a . storeValue . type === BI . DynamicYearQuarterCombo . Dynamic ? a . dynamicPane . setValue ( a . storeValue . value ) : a . dynamicPane . setValue ( { year : 0 } ) , a . _setInnerValue ( ) } } } ] } } , setValue : function ( a ) { this . storeValue = a ; var b , c , d = this ; switch ( a = a || { } , b = a . type || BI . DynamicDateCombo . Static , c = a . value || a , this . dateTab . setSelect ( b ) , b ) { case BI . DynamicDateCombo . Dynamic : this . dynamicPane . setValue ( c ) , d . _setInnerValue ( ) ; break ; case BI . DynamicDateCombo . Static : default : this . year . setValue ( c ) , this . textButton . setValue ( BI . i18nText ( "BI-Basic_Current_Quarter" ) ) , this . textButton . setEnable ( ! 0 ) } } , getValue : function ( ) { return { type : this . dateTab . getSelect ( ) , value : this . dateTab . getValue ( ) } } } ) , BI . DynamicYearQuarterPopup . BUTTON _CLEAR _EVENT _CHANGE = "BUTTON_CLEAR_EVENT_CHANGE" , BI . DynamicYearQuarterPopup . BUTTON _lABEL _EVENT _CHANGE = "BUTTON_lABEL_EVENT_CHANGE" , BI . DynamicYearQuarterPopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DynamicYearQuarterPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_year_quarter_popup" , BI . DynamicYearQuarterPopup ) , BI . DynamicYearQuarterTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 } , props : { extraCls : "bi-year-quarter-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 22 } , _init : function ( ) { BI . DynamicYearQuarterTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . yearEditor = this . _createEditor ( ! 0 ) , this . quarterEditor = this . _createEditor ( ! 1 ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { type : "bi.center" , items : [ { type : "bi.htape" , items : [ this . yearEditor , { el : { type : "bi.text_button" , text : BI . i18nText ( "BI-Multi_Date_Year" ) , width : a . height } , width : a . height } ] } , { type : "bi.htape" , items : [ this . quarterEditor , { el : { type : "bi.text_button" , text : BI . i18nText ( "BI-Multi_Date_Quarter" ) , width : 24 } , width : 24 } ] } ] } , { el : { type : "bi.trigger_icon_button" , width : a . height } , width : a . height } ] } ) , this . setValue ( a . value ) } , _createEditor : function ( a ) { var b = this , c = this . options , d = this . _const , e = BI . createWidget ( { type : "bi.sign_editor" , height : c . height , validationChecker : function ( b ) { return a ? "" === b || BI . isPositiveInteger ( b ) && ! BI . checkDateVoid ( b , 1 , 1 , c . min , c . max ) [ 0 ] : "" === b || BI . isPositiveInteger ( b ) && b >= 1 && b <= 4 && ! BI . checkDateVoid ( BI . getDate ( ) . getFullYear ( ) , b , 1 , c . min , c . max ) [ 0 ] } , quitChecker : function ( ) { return ! 1 } , errorText : function ( a ) { return BI . i18nText ( "BI-Year_Trigger_Invalid_Text" ) } , watermark : BI . i18nText ( "BI-Basic_Unrestricted" ) , hgap : d . hgap , vgap : d . vgap , title : "" , allowBlank : ! 0 } ) ; return e . on ( BI . SignEditor . EVENT _KEY _DOWN , function ( ) { b . fireEvent ( BI . DynamicYearQuarterTrigger . EVENT _KEY _DOWN ) } ) , e . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { b . fireEvent ( BI . DynamicYearQuarterTrigger . EVENT _FOCUS ) } ) , e . on ( BI . SignEditor . EVENT _STOP , function ( ) { b . fireEvent ( BI . DynamicYearQuarterTrigger . EVENT _STOP ) } ) , e . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { b . _doEditorConfirm ( e ) , b . fireEvent ( BI . DynamicYearQuarterTrigger . EVENT _CONFIRM ) } ) , e . on ( BI . SignEditor . EVENT _SPACE , function ( ) { e . isValid ( ) && e . blur ( ) } ) , e . on ( BI . SignEditor . EVENT _START , function ( ) { b . fireEvent ( BI . DynamicYearQuarterTrigger . EVENT _START ) } ) , e . on ( BI . SignEditor . EVENT _ERROR , function ( ) { b . fireEvent ( BI . DynamicYearQuarterTrigger . EVENT _ERROR ) } ) , e . on ( BI . SignEditor . EVENT _CHANGE , function ( ) { a && b . _autoSwitch ( e ) } ) , e } , _doEditorConfirm : function ( a ) { var b = a . getValue ( ) ; BI . isNotNull ( b ) && a . setValue ( b ) ; var c = this . quarterEditor . getValue ( ) ; this . storeValue = { type : BI . DynamicYearQuarterCombo . Static , value : { year : this . yearEditor . getValue ( ) , quarter : BI . isEmptyString ( this . quarterEditor . getValue ( ) ) ? "" : c } } , this . setTitle ( this . _getStaticTitle ( this . storeValue . value ) ) } , _yearCheck : function ( a ) { var b = BI . print ( BI . parseDateTime ( a , "%Y-%X-%d" ) , "%Y-%X-%d" ) ; return BI . print ( BI . parseDateTime ( a , "%Y" ) , "%Y" ) === a && b >= this . options . min && b <= this . options . max } , _autoSwitch : function ( a ) { var b = a . getValue ( ) ; BI . isNotEmptyString ( b ) && BI . checkDateLegal ( b
s . apply ( this , arguments ) , BI . defer ( function ( ) { r ( ) } , 200 ) } ; var t = window . history . back ; window . history . back = function ( ) { t . apply ( this , arguments ) , BI . defer ( function ( ) { r ( ) } , 200 ) } } if ( BI . Router ) { var u = BI . Router . prototype . execute ; BI . Router . prototype . execute = function ( ) { u . apply ( this , arguments ) , r ( ) } } _ . each ( [ "each" , "map" , "reduce" , "reduceRight" , "find" , "filter" , "reject" , "every" , "all" , "some" , "any" , "max" , "min" , "sortBy" , "groupBy" , "indexBy" , "countBy" , "partition" , "keys" , "allKeys" , "values" , "pairs" , "invert" , "mapObject" , "findKey" , "pick" , "omit" , "tap" ] , function ( a ) { var b = BI [ a ] ; BI [ a ] = function ( a , c , d ) { return "function" == typeof c ? b ( a , function ( a , b ) { if ( ! ( a in Fix . $$skipArray ) ) return c . apply ( this , arguments ) } , d ) : b . apply ( this , arguments ) } } ) , BI . isEmpty = function ( a ) { return BI . isPlainObject ( a ) && a . _ _ob _ _ ? 0 === BI . keys ( a ) . length : _ . isEmpty ( a ) } , BI . keys = function ( a ) { for ( var b = _ . keys ( a ) , c = [ ] , d = 0 ; d < b . length ; d ++ ) b [ d ] in Fix . $$skipArray || c . push ( b [ d ] ) ; return c } , BI . values = function ( a ) { for ( var b = BI . keys ( obj ) , c = b . length , d = [ ] , e = 0 ; e < c ; e ++ ) d [ e ] = obj [ b [ e ] ] ; return d } , BI . extend = function ( ) { var a = Array . prototype . slice . call ( arguments ) ; if ( a . length < 1 ) return { } ; for ( var b = a [ 0 ] , c = 1 ; c < a . length ; ) BI . each ( a [ c ] , function ( a , c ) { b [ a ] = c } ) , c ++ ; return b } , BI . size = function ( a ) { return BI . isPlainObject ( a ) && a . _ _ob _ _ ? BI . keys ( a ) . length : _ . size ( a ) } , BI . isEmptyObject = function ( a ) { return 0 === BI . size ( a ) } , BI . deepClone = function ( a ) { return Fix . toJSON ( a ) } , Fix . set = function ( a , b , c ) { try { a && ( a [ b ] = c ) } catch ( d ) { } finally { return _ . cloneDeep ( a ) } } , Fix . del = function ( a , b ) { try { delete a [ b ] } catch ( c ) { } finally { return _ . cloneDeep ( a ) } } , BI . watch = Fix . watch } ( ) , function ( ) { var a = { on : function ( a , b , d ) { if ( ! c ( this , "on" , a , [ b , d ] ) || ! b ) return this ; this . _events || ( this . _events = { } ) ; var e = this . _events [ a ] || ( this . _events [ a ] = [ ] ) ; return e . push ( { callback : b , context : d , ctx : d || this } ) , this } , once : function ( a , b , d ) { if ( ! c ( this , "once" , a , [ b , d ] ) || ! b ) return this ; var e = this , f = _ . once ( function ( ) { e . off ( a , f ) , b . apply ( this , arguments ) } ) ; return f . _callback = b , this . on ( a , f , d ) } , off : function ( a , b , d ) { if ( ! this . _events || ! c ( this , "off" , a , [ b , d ] ) ) return this ; if ( ! a && ! b && ! d ) return this . _events = void 0 , this ; for ( var e = a ? [ a ] : _ . keys ( this . _events ) , f = 0 , g = e . length ; f < g ; f ++ ) { a = e [ f ] ; var h = this . _events [ a ] ; if ( h ) if ( b || d ) { for ( var i = [ ] , j = 0 , k = h . length ; j < k ; j ++ ) { var l = h [ j ] ; ( b && b !== l . callback && b !== l . callback . _callback || d && d !== l . context ) && i . push ( l ) } i . length ? this . _events [ a ] = i : delete this . _events [ a ] } else delete this . _events [ a ] } return this } , un : function ( ) { this . off . apply ( this , arguments ) } , trigger : function ( a ) { if ( ! this . _events ) return this ; var b = slice . call ( arguments , 1 ) ; if ( ! c ( this , "trigger" , a , b ) ) return this ; var e = this . _events [ a ] , f = this . _events . all ; return e && d ( e , b ) , f && d ( f , arguments ) , this } , fireEvent : function ( ) { this . trigger . apply ( this , arguments ) } , listenTo : function ( a , b , c ) { var d = this . _listeningTo || ( this . _listeningTo = { } ) , e = a . _listenId || ( a . _listenId = _ . uniqueId ( "l" ) ) ; return d [ e ] = a , c || "object" != typeof b || ( c = this ) , a . on ( b , c , this ) , this } , listenToOnce : function ( a , c , d ) { if ( "object" == typeof c ) { for ( var e in c ) this . listenToOnce ( a , e , c [ e ] ) ; return this } if ( b . test ( c ) ) { for ( var f = c . split ( b ) , g = 0 , h = f . length ; g < h ; g ++ ) this . listenToOnce ( a , f [ g ] , d ) ; return this } if ( ! d ) return this ; var i = _ . once ( function ( ) { this . stopListening ( a , c , i ) , d . apply ( this , arguments ) } ) ; return i . _callback = d , this . listenTo ( a , c , i ) } , stopListening : function ( a , b , c ) { var d = this . _listeningTo ; if ( ! d ) return this ; var e = ! b && ! c ; c || "object" != typeof b || ( c = this ) , a && ( ( d = { } ) [ a . _listenId ] = a ) ; for ( var f in d ) a = d [ f ] , a . off ( b , c , this ) , ( e || _ . isEmpty ( a . _events ) ) && delete this . _listeningTo [ f ] ; return this } } , b = /\s+/ , c = function ( a , c , d , e ) { if ( ! d ) return ! 0 ; if ( "object" == typeof d ) { for ( var f in d ) a [ c ] . apply ( a , [ f , d [ f ] ] . concat ( e ) ) ; return ! 1 } if ( b . test ( d ) ) { for ( var g = d . split ( b ) , h = 0 , i = g . length ; h < i ; h ++ ) a [ c ] . apply ( a , [ g [ h ] ] . concat ( e ) ) ; return ! 1 } return ! 0 } , d = function ( a , b ) { var c , d = - 1 , e = a . length , f = b [ 0 ] , g = b [ 1 ] , h = b [ 2 ] ; switch ( b . length ) { case 0 : for ( ; ++ d < e ; ) ( c = a [ d ] ) . callback . call ( c . ctx ) ; return ; case 1 : for ( ; ++ d < e ; ) ( c = a [ d ] ) . callback . call ( c . ctx , f ) ; return ; case 2 : for ( ; ++ d < e ; ) ( c = a [ d ] ) . callback . call ( c . ctx , f , g ) ; return ; case 3 : for ( ; ++ d < e ; ) ( c = a [ d ] ) . callback . call ( c . ctx , f , g , h ) ; return ; default : for ( ; ++ d < e ; ) ( c = a [ d ] ) . callback . apply ( c . ctx , b ) ; return } } , e = BI . Router = function ( a ) { a || ( a = { } ) , a . routes &