/*! fineui */
function accAdd ( 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 } function accSub ( 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 ) } function accMul ( 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 ) } function accDiv ( arg1 , arg2 ) { var t1 = 0 , t2 = 0 , r1 , r2 ; try { t1 = arg1 . toString ( ) . split ( "." ) [ 1 ] . length } catch ( e ) { } try { t2 = arg2 . toString ( ) . split ( "." ) [ 1 ] . length } catch ( e ) { } with ( Math ) return r1 = Number ( arg1 . toString ( ) . replace ( "." , "" ) ) , r2 = Number ( arg2 . toString ( ) . replace ( "." , "" ) ) , t2 > t1 ? r1 / r2 * pow ( 10 , t2 - t1 ) : r1 / r2 / pow ( 10 , t1 - t2 ) } ! function ( a , b ) { function c ( a ) { var b = a . length , c = ia . type ( a ) ; return ! ia . isWindow ( a ) && ( ! ( 1 !== a . nodeType || ! b ) || ( "array" === c || "function" !== c && ( 0 === b || "number" == typeof b && b > 0 && b - 1 in a ) ) ) } function d ( a ) { var b = xa [ a ] = { } ; return ia . each ( a . match ( ka ) || [ ] , function ( a , c ) { 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 &&
Ga . test ( c ) ? ! Ia && Ha . test ( c ) ? a [ ia . camelCase ( "default-" + c ) ] = a [ d ] = ! 1 : a [ d ] = ! 1 : ia . attr ( a , c , "" ) , a . removeAttribute ( Ia ? c : d ) } , attrHooks : { type : { set : function ( a , b ) { if ( ! ia . support . radioValue && "radio" === b && ia . nodeName ( a , "input" ) ) { var c = a . value ; return a . setAttribute ( "type" , b ) , c && ( a . value = c ) , b } } } } , propFix : { tabindex : "tabIndex" , readonly : "readOnly" , "for" : "htmlFor" , "class" : "className" , maxlength : "maxLength" , cellspacing : "cellSpacing" , cellpadding : "cellPadding" , rowspan : "rowSpan" , colspan : "colSpan" , usemap : "useMap" , frameborder : "frameBorder" , contenteditable : "contentEditable" } , prop : function ( a , c , d ) { var e , f , g , h = a . nodeType ; if ( a && 3 !== h && 8 !== h && 2 !== h ) return g = 1 !== h || ! ia . isXMLDoc ( a ) , g && ( c = ia . propFix [ c ] || c , f = ia . propHooks [ c ] ) , d !== b ? f && "set" in f && ( e = f . set ( a , d , c ) ) !== b ? e : a [ c ] = d : f && "get" in f && null !== ( e = f . get ( a , c ) ) ? e : a [ c ] } , propHooks : { tabIndex : { get : function ( a ) { var c = a . getAttributeNode ( "tabindex" ) ; return c && c . specified ? parseInt ( c . value , 10 ) : Ea . test ( a . nodeName ) || Fa . test ( a . nodeName ) && a . href ? 0 : b } } } } ) , Ba = { get : function ( a , c ) { var d = ia . prop ( a , c ) , e = "boolean" == typeof d && a . getAttribute ( c ) , f = "boolean" == typeof d ? Ja && Ia ? null != e : Ha . test ( c ) ? a [ ia . camelCase ( "default-" + c ) ] : ! ! e : a . getAttributeNode ( c ) ; return f && f . value !== ! 1 ? c . toLowerCase ( ) : b } , set : function ( a , b , c ) { return b === ! 1 ? ia . removeAttr ( a , c ) : Ja && Ia || ! Ha . test ( c ) ? a . setAttribute ( ! Ia && ia . propFix [ c ] || c , c ) : a [ ia . camelCase ( "default-" + c ) ] = a [ c ] = ! 0 , c } } , Ja && Ia || ( ia . attrHooks . value = { get : function ( a , c ) { var d = a . getAttributeNode ( c ) ; 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 . att
return this . pushStack ( l ( this , a , ! 0 ) ) } , is : function ( a ) { return ! ! a && ( "string" == typeof a ? Sa . test ( a ) ? ia ( a , this . context ) . index ( this [ 0 ] ) >= 0 : ia . filter ( a , this ) . length > 0 : this . filter ( a ) . length > 0 ) } , closest : function ( a , b ) { for ( var c , d = 0 , e = this . length , f = [ ] , g = Sa . test ( a ) || "string" != typeof a ? ia ( a , b || this . context ) : 0 ; d < e ; d ++ ) for ( c = this [ d ] ; c && c . ownerDocument && c !== b && 11 !== c . nodeType ; ) { if ( g ? g . index ( c ) > - 1 : ia . find . matchesSelector ( c , a ) ) { f . push ( c ) ; break } c = c . parentNode } return this . pushStack ( f . length > 1 ? ia . unique ( f ) : f ) } , index : function ( a ) { return a ? "string" == typeof a ? ia . inArray ( this [ 0 ] , ia ( a ) ) : ia . inArray ( a . jquery ? a [ 0 ] : a , this ) : this [ 0 ] && this [ 0 ] . parentNode ? this . first ( ) . prevAll ( ) . length : - 1 } , add : function ( a , b ) { var c = "string" == typeof a ? ia ( a , b ) : ia . makeArray ( a && a . nodeType ? [ a ] : a ) , d = ia . merge ( this . get ( ) , c ) ; return this . pushStack ( ia . unique ( d ) ) } , addBack : function ( a ) { return this . add ( null == a ? this . prevObject : this . prevObject . filter ( a ) ) } } ) , ia . fn . andSelf = ia . fn . addBack , ia . each ( { parent : function ( a ) { var b = a . parentNode ; return b && 11 !== b . nodeType ? b : null } , parents : function ( a ) { return ia . dir ( a , "parentNode" ) } , parentsUntil : function ( a , b , c ) { return ia . dir ( a , "parentNode" , c ) } , next : function ( a ) { return k ( a , "nextSibling" ) } , prev : function ( a ) { return k ( a , "previousSibling" ) } , nextAll : function ( a ) { return ia . dir ( a , "nextSibling" ) } , prevAll : function ( a ) { return ia . dir ( a , "previousSibling" ) } , nextUntil : function ( a , b , c ) { return ia . dir ( a , "nextSibling" , c ) } , prevUntil : function ( a , b , c ) { return ia . dir ( a , "previousSibling" , c ) } , 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 . leng
for ( var c = a . length , d = 0 ; c -- ; ) a [ c ] === b && ++ d ; return d } function w ( a , b ) { return null == a ? Nd : a [ b ] } function x ( a ) { return Hf . test ( a ) } function y ( a ) { for ( var b , c = [ ] ; ! ( b = a . next ( ) ) . done ; ) c . push ( b . value ) ; return c } function z ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a , d ) { c [ ++ b ] = [ d , a ] } ) , c } function A ( a , b ) { return function ( c ) { return a ( b ( c ) ) } } function B ( a , b ) { for ( var c = - 1 , d = a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; g !== b && g !== Td || ( a [ c ] = Td , f [ e ++ ] = c ) } return f } function C ( a ) { var b = - 1 , c = Array ( a . size ) ; return a . forEach ( function ( a ) { c [ ++ b ] = a } ) , c } function D ( a , b , c ) { for ( var d = c - 1 , e = a . length ; ++ d < e ; ) if ( a [ d ] === b ) return d ; return - 1 } function E ( a ) { return x ( a ) ? G ( a ) : Zf ( a ) } function F ( a ) { return x ( a ) ? H ( a ) : j ( a ) } function G ( a ) { for ( var b = Gf . lastIndex = 0 ; Gf . test ( a ) ; ) ++ b ; return b } function H ( a ) { return a . match ( Gf ) || [ ] } function I ( a ) { if ( fd ( a ) && ! kh ( a ) && ! ( a instanceof L ) ) { if ( a instanceof K ) return a ; if ( eg . call ( a , "__wrapped__" ) ) return wc ( a ) } return new K ( a ) } function J ( ) { } function K ( a , b ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _chain _ _ = ! ! b , this . _ _index _ _ = 0 , this . _ _values _ _ = Nd } function L ( a ) { this . _ _wrapped _ _ = a , this . _ _actions _ _ = [ ] , this . _ _dir _ _ = 1 , this . _ _filtered _ _ = ! 1 , this . _ _iteratees _ _ = [ ] , this . _ _takeCount _ _ = qe , this . _ _views _ _ = [ ] } function M ( ) { var a = new L ( this . _ _wrapped _ _ ) ; return a . _ _actions _ _ = ub ( this . _ _actions _ _ ) , a . _ _dir _ _ = this . _ _dir _ _ , a . _ _filtered _ _ = this . _ _filtered _ _ , a . _ _iteratees _ _ = ub ( this . _ _iteratees _ _ ) , a . _ _takeCount _ _ = this . _ _takeCount _ _ , a . _ _views _ _ = ub ( this . _ _views _ _ ) , a } function N ( ) { if ( this . _ _filtered _ _ ) { var a = new L ( this ) ; a . _ _dir _ _ = - 1 , a . _ _filtered _ _ = ! 0 } else a = this . clone ( ) , a . _ _dir _ _ *= - 1 ; return a } function O ( ) { var a = this . _ _wrapped _ _ . value ( ) , b = this . _ _dir _ _ , c = kh ( a ) , d = b < 0 , e = c ? a . length : 0 , f = Vb ( 0 , e , this . _ _views _ _ ) , g = f . start , h = f . end , i = h - g , j = d ? h : g - 1 , k = this . _ _iteratees _ _ , l = k . length , m = 0 , n = Bg ( i , this . _ _takeCount _ _ ) ; if ( ! c || ! d && e == i && n == i ) return ib ( a , this . _ _actions _ _ ) ; var o = [ ] ; a : for ( ; i -- && m < n ; ) { j += b ; for ( var p = - 1 , q = a [ j ] ; ++ p < l ; ) { var r = k [ p ] , s = r . iteratee , t = r . type , u = s ( q ) ; if ( t == ke ) q = u ; else if ( ! u ) { if ( t == je ) continue a ; break a } } o [ m ++ ] = q } return o } function P ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . clear ( ) ; ++ b < c ; ) { var d = a [ b ] ; this . set ( d [ 0 ] , d [ 1 ] ) } } function Q ( ) { this . _ _data _ _ = Ig ? Ig ( null ) : { } , this . size = 0 } function R ( a ) { var b = this . has ( a ) && delete this . _ _data _ _ [ a ] ; return this . size -= b ? 1 : 0 , b } function S ( a ) { var b = this . _ _data _ _ ; if ( Ig ) { var c = b [ a ] ; return c === Rd ? Nd : c } return eg . call ( b , a ) ? b [ a ] : Nd } function T ( a ) { var b = this . _ _data _ _ ; return Ig ? b [ a ] !== Nd : eg . call ( b , a ) } function U ( a , b ) { var c = this . _ _data _ _ ; return this . size += this . has ( a ) ? 0 : 1 , c [ a ] = Ig && b === Nd ? Rd : b , this } function V ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . clear ( ) ; ++ b < c ; ) { var d = a [ b ] ; this . set ( d [ 0 ] , d [ 1 ] ) } } function W ( ) { this . _ _data _ _ = [ ] , this . size = 0 } function X ( a ) { var b = this . _ _data _ _ , c = qa ( b , a ) ; if ( c < 0 ) return ! 1 ; var d = b . length - 1 ; return c == d ? b . pop ( ) : rg . call ( b , c , 1 ) , -- this . size , ! 0 } function Y ( a ) { var b = this . _ _data _ _ , c = qa ( b , a ) ; return c < 0 ? Nd : b [ c ] [ 1 ] } function Z ( a ) { return qa ( this . _ _data _ _ , a ) > - 1 } function $ ( a , b ) { var c = this . _ _data _ _ , d = qa ( c , a ) ; return d < 0 ? ( ++ this . size , c . push ( [ a , b ] ) ) : c [ d ] [ 1 ] = b , this } function _ ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . clear ( ) ; ++ b < c ; ) { var d = a [ b ] ; this . set ( d [ 0 ] , d [ 1 ] ) } } function aa ( ) { this . size = 0 , this . _ _data _ _ = { hash : new P , map : new ( Eg || V ) , string : new P } } function ba ( a ) { var b = Rb ( this , a ) [ "delete" ] ( a ) ; return this . size -= b ? 1 : 0 , b } function ca ( a ) { return Rb ( this , a ) . get ( a ) } function da ( a ) { return Rb ( this , a ) . has ( a ) } function ea ( a , b ) { var c = Rb ( this , a ) , d = c . size ; return c . set ( a , b ) , this . size += c . size == d ? 0 : 1 , this } function fa ( a ) { var b = - 1 , c = null == a ? 0 : a . length ; for ( this . _ _data _ _ = new _ ; ++ b < c ; ) this . add ( a [ b ] ) } function ga ( a ) { return this . _ _data _ _ . set ( a , Rd ) , this } function ha ( a ) { return this . _ _data _ _ . has ( a ) } function ia ( a ) { var b = this . _ _data _ _ = new V ( a ) ; this . size = b . size } function ja ( ) { this . _ _data _ _ = new V , this . size = 0 } function ka ( a ) { var b = this . _ _data _ _ , c = b [ "delete" ] ( a ) ; return this . size = b . size , c } function la ( a ) { return this . _ _data _ _ . get ( a ) } function ma ( a ) { return this . _ _data _ _ . has ( a ) } function na ( a , b ) { var c = this . _ _data _ _ ; if ( c instanceof V ) { var d = c . _ _data _ _ ; if ( ! Eg || d . length < Pd - 1 ) return d . push ( [ a , b ] ) , this . size = ++ c . size , this ; c = this . _ _data _ _ = new _ ( d ) } return c . set ( a , b ) , this . size = c . size , this } function oa ( a , b ) { var c = kh ( a ) , d =
return vg ( a , "toString" , { configurable : ! 0 , enumerable : ! 1 , value : Ad ( b ) , writable : ! 0 } ) } : Bd , Yg = Jg ? function ( a ) { return Jg . get ( a ) } : Gd , Zg = wg ? function ( a ) { return null == a ? [ ] : ( a = Object ( a ) , d ( wg ( a ) , function ( b ) { return qg . call ( a , b ) } ) ) } : Id , $g = wg ? function ( a ) { for ( var b = [ ] ; a ; ) g ( b , Zg ( a ) ) , a = og ( a ) ; return b } : Id , _g = Fa ; ( Dg && _g ( new Dg ( new ArrayBuffer ( 1 ) ) ) != Ne || Eg && _g ( new Eg ) != Ae || Fg && _g ( Fg . resolve ( ) ) != Ee || Gg && _g ( new Gg ) != He || Hg && _g ( new Hg ) != Le ) && ( _g = function ( a ) { var b = Fa ( a ) , c = b == De ? a . constructor : Nd , d = c ? uc ( c ) : "" ; if ( d ) switch ( d ) { case Lg : return Ne ; case Mg : return Ae ; case Ng : return Ee ; case Og : return He ; case Pg : return Le } return b } ) ; var ah = sc ( Wg ) , bh = sc ( Xg ) , ch = kc ( function ( a ) { var b = [ ] ; return 46 === a . charCodeAt ( 0 ) && b . push ( "" ) , a . replace ( _e , function ( a , c , d , e ) { b . push ( d ? e . replace ( ff , "$1" ) : c || a ) } ) , b } ) , dh = ( Mb ( function ( a ) { var b = a . length , c = b ? a [ 0 ] : 0 , d = this . _ _wrapped _ _ , e = function ( b ) { return ua ( b , a ) } ; return ! ( b > 1 || this . _ _actions _ _ . length ) && d instanceof L && bc ( c ) ? ( d = d . slice ( c , + c + ( b ? 1 : 0 ) ) , d . _ _actions _ _ . push ( { func : Ic , args : [ e ] , thisArg : Nd } ) , new K ( d , this . _ _chain _ _ ) . thru ( function ( a ) { return b && ! a . length && a . push ( Nd ) , a } ) ) : this . thru ( e ) } ) , Eb ( zc ) ) , eh = db ( function ( a , b ) { if ( null == a ) return [ ] ; var c = b . length ; return c > 1 && cc ( a , b [ 0 ] , b [ 1 ] ) ? b = [ ] : c > 2 && cc ( b [ 0 ] , b [ 1 ] , b [ 2 ] ) && ( b = [ b [ 0 ] ] ) , _a ( a , Aa ( b , 1 ) , [ ] ) } ) , fh = function ( ) { return Of . Date . now ( ) } , gh = db ( function ( a , b , c ) { var d = Zd ; if ( c . length ) { var e = B ( c , Qb ( gh ) ) ; d |= ce } return Ib ( a , d , b , c , e ) } ) , hh = db ( function ( a , b ) { return wa ( a , 1 , b ) } ) , ih = db ( function ( a , b , c ) { return wa ( a , pd ( b ) || 0 , c ) } ) ; Tc . Cache = _ ; var jh = Ka ( function ( ) { return arguments } ( ) ) ? Ka : function ( a ) { return fd ( a ) && eg . call ( a , "callee" ) && ! qg . call ( a , "callee" ) } , kh = Array . isArray , lh = xg || Jd , mh = Uf ? s ( Uf ) : La , nh = Vf ? s ( Vf ) : Oa , oh = Wf ? s ( Wf ) : Ra , ph = Xf ? s ( Xf ) : Sa , qh = Yf ? s ( Yf ) : Ta , rh = yb ( function ( a , b ) { vb ( b , wd ( b ) , a ) } ) , sh = db ( function ( a , b ) { a = Object ( a ) ; var c = - 1 , d = b . length , e = d > 2 ? b [ 2 ] : Nd ; for ( e && cc ( b [ 0 ] , b [ 1 ] , e ) && ( d = 1 ) ; ++ c < d ; ) for ( var f = b [ c ] , g = wd ( f ) , h = - 1 , i = g . length ; ++ h < i ; ) { var j = g [ h ] , k = a [ j ] ; ( k === Nd || Yc ( k , bg [ j ] ) && ! eg . call ( a , j ) ) && ( a [ j ] = f [ j ] ) } return a } ) , th = Mb ( function ( a , b ) { return null == a ? { } : ab ( a , b ) } ) ; I . assignIn = rh , I . before = Rc , I . bind = gh , I . chain = Gc , I . compact = xc , I . concat = yc , I . create = rd , I . debounce = Sc , I . defaults = sh , I . defer = hh , I . delay = ih , I . filter = Lc , I . flatten = Ac , I . flattenDeep = Bc , I . iteratee = Cd , I . keys = vd , I . map = Nc , I . matches = Dd , I . mixin = Ed , I . negate = Uc , I . once = Vc , I . pick = th , I . slice = Fc , I . sortBy = eh , I . tap = Hc , I . throttle = Wc , I . thru = Ic , I . toArray = md , I . values = yd , I . extend = rh , Ed ( I , I ) , I . clone = Xc , I . escape = zd , I . every = Kc , I . find = dh , I . forEach = Mc , I . get = sd , I . has = td , I . head = Cc , I . identity = Bd , I . indexOf = Dc , I . isArguments = jh , I . isArray = kh , I . isBoolean = $c , I . isDate = mh , I . isEmpty = _c , I . isEqual = ad , I . isFinite = bd , I . isFunction = cd , I . isNaN = gd , I . isNull = hd , I . isNumber = id , I . isObject = ed , I . isRegExp = oh , I . isString = jd , I . isUndefined = ld , I . last = Ec , I . max = Ld , I . min = Md , I . noConflict = Fd , I . noop = Gd , I . reduce = Oc , I . result = xd , I . size = Pc , I . some = Qc , I . uniqueId = Kd , I . each = Mc , I . first = Cc , Ed ( I , function ( ) { var a = { } ; return Ba ( I , function ( b , c ) { eg . call ( I . prototype , c ) || ( a [ c ] = b ) } ) , a } ( ) , { chain : ! 1 } ) , I . VERSION = Od , b ( [ "drop" , "take" ] , function ( a , b ) { L . prototype [ a ] = function ( c ) { c = c === Nd ? 1 : Ag ( od ( c ) , 0 ) ; var d = this . _ _filtered _ _ && ! b ? new L ( this ) : this . clone ( ) ; return d . _ _filtered _ _ ? d . _ _takeCount _ _ = Bg ( c , d . _ _takeCount _ _ ) : d . _ _views _ _ . push ( { size : Bg ( c , qe ) , type : a + ( d . _ _dir _ _ < 0 ? "Right" : "" ) } ) , d } , L . prototype [ a + "Right" ] = function ( b ) { return this . reverse ( ) [ a ] ( b ) . reverse ( ) } } ) , b ( [ "filter" , "map" , "takeWhile" ] , function ( a , b ) { var c = b + 1 , d = c == je || c == le ; L . prototype [ a ] = function ( a ) { var b = this . clone ( ) ; return b . _ _iteratees _ _ . push ( { iteratee : getIteratee ( a , 3 ) , type : c } ) , b . _ _filtered _ _ = b . _ _filtered _ _ || d , b } } ) , b ( [ "head" , "last" ] , function ( a , b ) { var c = "take" + ( b ? "Right" : "" ) ; L . prototype [ a ] = function ( ) { return this [ c ] ( 1 ) . value ( ) [ 0 ] } } ) , b ( [ "initial" , "tail" ] , function ( a , b ) { var c = "drop" + ( b ? "" : "Right" ) ; L . prototype [ a ] = function ( ) { return this . _ _filtered _ _ ? new L ( this ) : this [ c ] ( 1 ) } } ) , L . prototype . compact = function ( ) { return this . filter ( Bd ) } , L . prototype . find = function ( a ) { return this . filter ( a ) . head ( ) } , L . prototype . findLast = function ( a ) { return this . reverse ( ) . find ( a ) } , L . prototype . invokeMap = db ( function ( a , b ) { return "function" == typeof a ? new L ( this ) : this . map ( function ( c ) { return Ja ( c , a , b ) } ) } ) , L . prototype . reject = function ( a ) { return this . filter ( Uc ( g
if ( b . classType ) return new ( new Function ( "return " + b . classType + ";" ) ( ) ) ( b ) ; var c = a [ b . type ] ; return new c ( b ) } ; BI . createWidget = function ( a , c , d ) { var e , f ; if ( a || ( a = { } ) , BI . isWidget ( c ) ? ( d = c , c = { } ) : c || ( c = { } ) , BI . isEmpty ( a ) && BI . isEmpty ( c ) ) return BI . createWidget ( { type : "bi.layout" } ) ; if ( BI . isWidget ( a ) ) return a ; if ( a . type || c . type ) return e = BI . extend ( { } , c , a ) , f = BI . Plugin . getWidget ( e . type , e ) , f . type === e . type ? BI . Plugin . getObject ( e . type , b ( f ) ) : BI . createWidget ( BI . extend ( { } , a , { type : f . type } , c ) ) ; if ( a . el && ( a . el . type || c . type ) ) return e = BI . extend ( { } , c , a . el ) , f = BI . Plugin . getWidget ( e . type , e ) , f . type === e . type ? BI . Plugin . getObject ( e . type , b ( f ) ) : BI . createWidget ( BI . extend ( { } , a , { type : f . type } , c ) ) ; if ( BI . isWidget ( a . el ) ) return a . el ; throw new Error ( "无法根据item创建组件" ) } } ( ) , function ( a , b ) { function c ( a ) { return function ( b , c , d ) { var e , f = b [ c ] ; f && f . target == b || ( e = b [ c ] = function ( ) { for ( var a , b = e . before , c = arguments , d = b . length ; d -- ; ) { if ( a = b [ d ] . advice . apply ( this , c ) , a === ! 1 ) return ! 1 ; c = a || c } for ( var f = e . method . apply ( this , c ) , g = e . after , h = 0 , i = g . length ; h < i ; h ++ ) { if ( a = g [ h ] . advice . call ( this , f , c ) , f === ! 1 ) return ! 1 ; c = a || c } return f } , e . before = [ ] , e . after = [ ] , f && ( e . method = f ) , e . target = b ) ; var g = ( e || f ) [ a ] , h = { advice : d , _index : g . length , remove : function ( ) { g . splice ( this . _index , 1 ) } } ; return g . push ( h ) , h } } return BI . aspect = { before : c ( "before" ) , after : c ( "after" ) } , BI . aspect } ( window ) , ! function ( ) { var a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" , b = function ( a ) { a = a . replace ( /\r\n/g , "\n" ) ; for ( var b = "" , c = 0 ; c < a . length ; c ++ ) { var d = a . charCodeAt ( c ) ; d < 128 ? b += String . fromCharCode ( d ) : d > 127 && d < 2048 ? ( b += String . fromCharCode ( d >> 6 | 192 ) , b += String . fromCharCode ( 63 & d | 128 ) ) : ( b += String . fromCharCode ( d >> 12 | 224 ) , b += String . fromCharCode ( d >> 6 & 63 | 128 ) , b += String . fromCharCode ( 63 & d | 128 ) ) } return b } , c = function ( a ) { for ( var b = "" , c = 0 , d = 0 , e = 0 , f = 0 ; c < a . length ; ) d = a . charCodeAt ( c ) , d < 128 ? ( b += String . fromCharCode ( d ) , c ++ ) : d > 191 && d < 224 ? ( f = a . charCodeAt ( c + 1 ) , b += String . fromCharCode ( ( 31 & d ) << 6 | 63 & f ) , c += 2 ) : ( f = a . charCodeAt ( c + 1 ) , e = a . charCodeAt ( c + 2 ) , b += String . fromCharCode ( ( 15 & d ) << 12 | ( 63 & f ) << 6 | 63 & e ) , c += 3 ) ; return b } ; _ . extend ( BI , { encode : function ( c ) { var d , e , f , g , h , i , j , k = "" , l = 0 ; for ( c = b ( c ) ; l < c . length ; ) d = c . charCodeAt ( l ++ ) , e = c . charCodeAt ( l ++ ) , f = c . charCodeAt ( l ++ ) , g = d >> 2 , h = ( 3 & d ) << 4 | e >> 4 , i = ( 15 & e ) << 2 | f >> 6 , j = 63 & f , isNaN ( e ) ? i = j = 64 : isNaN ( f ) && ( j = 64 ) , k = k + a . charAt ( g ) + a . charAt ( h ) + a . charAt ( i ) + a . charAt ( j ) ; return k } , decode : function ( b ) { var d , e , f , g , h , i , j , k = "" , l = 0 ; for ( b = b . replace ( /[^A-Za-z0-9\+\/\=]/g , "" ) ; l < b . length ; ) g = a . indexOf ( b . charAt ( l ++ ) ) , h = a . indexOf ( b . charAt ( l ++ ) ) , i = a . indexOf ( b . charAt ( l ++ ) ) , j = a . indexOf ( b . charAt ( l ++ ) ) , d = g << 2 | h >> 4 , e = ( 15 & h ) << 4 | i >> 2 , f = ( 3 & i ) << 6 | j , k += String . fromCharCode ( d ) , 64 != i && ( k += String . fromCharCode ( e ) ) , 64 != j && ( k += String . fromCharCode ( f ) ) ; return k = c ( k ) } } ) } ( ) , BI . Cache = { _prefix : "bi" , setUsername : function ( a ) { localStorage . setItem ( BI . Cache . _prefix + ".username" , ( a + "" || "" ) . toUpperCase ( ) ) } , getUsername : function ( ) { return localStorage . getItem ( BI . Cache . _prefix + ".username" ) || "" } , _getKeyPrefix : function ( ) { return BI . Cache . getUsername ( ) + "." + BI . Cache . _prefix + "." } , _generateKey : function ( a ) { return BI . Cache . _getKeyPrefix ( ) + ( a || "" ) } , getItem : function ( a ) { return localStorage . getItem ( BI . Cache . _generateKey ( a ) ) } , setItem : function ( a , b ) { localStorage . setItem ( BI . Cache . _generateKey ( a ) , b ) } , removeItem : function ( a ) { localStorage . removeItem ( BI . Cache . _generateKey ( a ) ) } , clear : function ( ) { for ( var a = localStorage . length ; a >= 0 ; a -- ) { var b = localStorage . key ( a ) ; b && 0 === b . indexOf ( BI . Cache . _getKeyPrefix ( ) ) && localStorage . removeItem ( b ) } } , keys : function ( ) { for ( var a = [ ] , b = localStorage . length ; b >= 0 ; b -- ) { var c = localStorage . key ( b ) ; if ( c ) { var d = BI . Cache . _getKeyPrefix ( ) ; 0 === c . indexOf ( d ) && ( a [ a . length ] = c . substring ( d . length ) ) } } return a } , addCookie : function ( a , b , c , d ) { var e = a + "=" + escape ( b ) ; if ( d && d > 0 ) { var f = new Date ; f . setTime ( BI . getTime ( ) + 3600 * d * 1e3 ) , e = e + "; expires=" + f . toGMTString ( ) } c && ( e = e + "; path=" + c ) , document . cookie = e } , getCookie : function ( a ) { var b , c = new RegExp ( "(^| )" + a + "=([^;]*)(;|$)" ) ; return ( b = document . cookie . match ( c ) ) ? unescape ( b [ 2 ] ) : null } , deleteCookie : function ( a , b ) { var c = new Date ; c . setTime ( BI . getTime ( ) - 1e4 ) ; var d = a + "=v; expires=" + c . toGMTString ( ) ; b && ( d = d + "; path=" + b ) , document . cookie = d } } , BI . CellSizeAndPositionManager = function ( a , b , c ) { t
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 ( c ) { var d = c . charCodeAt ( 0 ) ; return d > 40869 || d < 19968 ? c : b [ d ] ? b [ d ] : a . charAt ( d - 19968 ) } , d = function ( a ) { for ( var b , c = [ "" ] , d = 0 , e = a . length ; d < e ; d ++ ) { var f = a [ d ] , g = f . length ; if ( 1 == g ) for ( b = 0 ; b < c . length ; b ++ ) c [ b ] += f ; else { var h = c . slice ( 0 ) ; for ( c = [ ] , b = 0 ; b < g ; b ++ ) { for ( var i = h . slice ( 0 ) , j = 0 ; j < i . length ; j ++ ) i [ j ] += f . charAt ( b ) ; c = c . concat ( i ) } } } return c . join ( "" ) . toLowerCase ( ) } ; _ . extend ( BI , { makeFirstPY : function ( a ) { if ( "string" != typeof a ) return "" + a ; for ( var b = [ ] , e = 0 , f = a . length ; e < f ; e ++ ) { var g = a . charAt ( e ) ; b . push ( c ( g ) ) } return d ( b ) } } ) } ( ) , ! function ( ) { var a ; a = "undefined" != typeof window ? window : "undefined" != typeof self ? self : this ; var b = "undefined" != typeof document && document . addEventListener , c = ! 1 ; if ( b ) { var d = function ( ) { var b = a . requestAnimationFrame || a . mozRequestAnimationFrame || a . webkitRequestAnimationFrame || function ( b ) { return a . setTimeout ( b , 20 ) } ; return function ( a ) { return b ( a ) } } ( ) , e = function ( ) { var b = a . cancelAnimationFrame || a . mozCancelAnimationFrame || a . webkitCancelAnimationFrame || a . clearTimeout ; return function ( a ) { return b ( a ) } } ( ) , f = function ( a ) { var b = a . _ _resizeTriggers _ _ , c = b . firstElementChild , d = b . lastElementChild , e = c . firstElementChild ; d . scrollLeft = d . scrollWidth , d . scrollTop = d . scrollHeight , e . style . width = c . offsetWidth + 1 + "px" , e . style . height = c . offsetHeight + 1 + "px" , c . scrollLeft = c . scrollWidth , c . scrollTop = c . scrollHeight } , g = function ( a ) { return a . offsetWidth !== a . _ _resizeLast _ _ . width || a . offsetHeight !== a . _ _resizeLast _ _ . height } , h = function ( a ) { var b = this ; f ( this ) , this . _ _resizeRAF _ _ && e ( this . _ _resizeRAF _ _ ) , this . _ _resizeRAF _ _ = d ( function ( ) { g ( b ) && ( b . _ _resizeLast _ _ . width = b . offsetWidth , b . _ _resizeLast _ _ . height = b . offsetHeight , b . _ _resizeListeners _ _ . forEach ( function ( c ) { c . call ( b , a ) } ) ) } ) } , i = ! 1 , j = "animation" , k = "" , l = "animationstart" , m = "Webkit Moz O ms" . split ( " " ) , n = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart" . split ( " " ) , o = "" , p = document . createElement ( "fakeelement" ) ; if ( void 0 !== p . style . animationName && ( i = ! 0 ) , i === ! 1 ) for ( var q = 0 ; q < m . length ; q ++ ) if ( void 0 !== p . style [ m [ q ] + "AnimationName" ] ) { o = m [ q ] , j = o + "Animation" , k = "-" + o . toLowerCase ( ) + "-" , l = n [ q ] , i = ! 0 ; break } var r = "resizeanim" , s = "@" + k + "keyframes " + r + " { from { opacity: 0; } to { opacity: 0; } } " , t = k + "animation: 1ms " + r + "; " } var u = function ( ) { if ( ! c ) { var a = ( s ? s : "" ) + ".resize-triggers { " + ( t ? t : "" ) + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }' , b = document . head || document . getElementsByTagName ( "head" )
if ( null != a . x && null != a . y ) { var b = new BI . Vector ( this . w , this . h ) , c = new BI . Vector ( a . x - this . x , a . y - this . y ) , d = new BI . Vector ( c . x + a . w , c . y + a . h ) ; if ( b . cross ( c ) * b . cross ( d ) < 0 ) return ! 0 } return ! 1 } , isPointInside : function ( a , b ) { return null != this . x && null != this . y && ( a >= this . x && a <= this . x + this . w && b >= this . y && b <= this . y + this . h ) } , getPosition : function ( ) { var a = [ ] ; return a . push ( this . x + this . w / 2 ) , a . push ( this . y + this . h / 2 ) , a } } , BI . BehaviorFactory = { createBehavior : function ( a , b ) { var c ; switch ( a ) { case "highlight" : c = BI . HighlightBehavior ; break ; case "redmark" : c = BI . RedMarkBehavior } return new c ( b ) } } , BI . Behavior = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Behavior . superclass . _defaultConfig . apply ( this , arguments ) , { rule : function ( ) { return ! 0 } } ) } , _init : function ( ) { BI . Behavior . superclass . _init . apply ( this , arguments ) } , doBehavior : function ( ) { } } ) , BI . Layout = BI . inherit ( BI . Widget , { props : function ( ) { return { scrollable : null , scrollx : ! 1 , scrolly : ! 1 , items : [ ] } } , render : function ( ) { this . _init4Margin ( ) , this . _init4Scroll ( ) } , _init4Margin : function ( ) { this . options . top && this . element . css ( "top" , this . options . top ) , this . options . left && this . element . css ( "left" , this . options . left ) , this . options . bottom && this . element . css ( "bottom" , this . options . bottom ) , this . options . right && this . element . css ( "right" , this . options . right ) } , _init4Scroll : function ( ) { switch ( this . options . scrollable ) { case ! 0 : this . element . css ( "overflow" , "auto" ) ; break ; case ! 1 : this . element . css ( "overflow" , "hidden" ) } this . options . scrollx && this . element . css ( { "overflow-x" : "auto" , "overflow-y" : "hidden" } ) , this . options . scrolly && this . element . css ( { "overflow-x" : "hidden" , "overflow-y" : "auto" } ) } , _mountChildren : function ( ) { var a = this , b = document . createDocumentFragment ( ) , c = ! 1 ; BI . each ( this . _children , function ( d , e ) { e . element !== a . element && ( b . appendChild ( e . element [ 0 ] ) , c = ! 0 ) } ) , c === ! 0 && this . element . append ( b ) } , _getChildName : function ( a ) { return a + "" } , _addElement : function ( a , b ) { var c , d = this ; return this . hasWidget ( this . _getChildName ( a ) ) ? c = this . getWidgetByName ( this . _getChildName ( a ) ) : ( c = BI . createWidget ( b ) , c . on ( BI . Events . DESTROY , function ( ) { BI . each ( d . _children , function ( a , b ) { b === c && ( BI . remove ( d . _children , b ) , d . removeItemAt ( 0 | a ) ) } ) } ) , this . addWidget ( this . _getChildName ( a ) , c ) ) , c } , _getOptions : function ( a ) { return a instanceof BI . Widget && ( a = a . options ) , a = BI . stripEL ( a ) , a instanceof BI . Widget && ( a = a . options ) , a } , _compare : function ( a , b ) { function c ( a , b , e , f ) { if ( a === b ) return 0 !== a || 1 / a === 1 / b ; if ( null == a || null == b ) return a === b ; var g = Object . prototype . toString . call ( a ) ; switch ( g ) { case "[object RegExp]" : case "[object String]" : return "" + a == "" + b ; case "[object Number]" : return + a !== + a ? + b !== + b : 0 === + a ? 1 / + a === 1 / b : + a === + b ; case "[object Date]" : case "[object Boolean]" : return + a === + b } var h = "[object Array]" === g ; if ( ! h ) { if ( BI . isFunction ( a ) && BI . isFunction ( b ) ) return ! 0 ; a = d . _getOptions ( a ) , b = d . _getOptions ( b ) } e = e || [ ] , f = f || [ ] ; for ( var i = e . length ; i -- ; ) if ( e [ i ] === a ) return f [ i ] === b ; if ( e . push ( a ) , f . push ( b ) , h ) { if ( i = a . length , i !== b . length ) return ! 1 ; for ( ; i -- ; ) if ( ! c ( a [ i ] , b [ i ] , e , f ) ) return ! 1 } else { var j , k = _ . keys ( a ) ; if ( i = k . length , _ . keys ( b ) . length !== i ) return ! 1 ; for ( ; i -- ; ) if ( j = k [ i ] , ! _ . has ( b , j ) || ! c ( a [ j ] , b [ j ] , e , f ) ) return ! 1 } return e . pop ( ) , f . pop ( ) , ! 0 } var d = this ; return c ( a , b ) } , _getWrapper : function ( ) { return this . element } , _addItemAt : function ( a , b ) { for ( var c = this . options . items . length ; c > a ; c -- ) this . _children [ this . _getChildName ( c ) ] = this . _children [ this . _getChildName ( c - 1 ) ] ; delete this . _children [ this . _getChildName ( a ) ] , this . options . items . splice ( a , 0 , b ) } , _removeItemAt : function ( a ) { for ( var b = a ; b < this . options . items . length - 1 ; b ++ ) this . _children [ this . _getChildName ( b ) ] = this . _children [ this . _getChildName ( b + 1 ) ] ; delete this . _children [ this . _getChildName ( this . options . items . length - 1 ) ] , this . options . items . splice ( a , 1 ) } , addItem : function ( a ) { return this . addItemAt ( this . options . items . length , a ) } , prependItem : function ( a ) { return this . addItemAt ( 0 , a ) } , addItemAt : function ( a , b ) { if ( ! ( a < 0 || a > this . options . items . length ) ) { this . _addItemAt ( a , b ) ; var c = this . _addElement ( a , b ) ; return a > 0 ? this . _children [ this . _getChildName ( a - 1 ) ] . element . after ( c . element ) : c . element . prependTo ( this . _getWrapper ( ) ) , c . _mount ( ) , c } } , removeItemAt : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] ; for ( var b = [ ] , c = [ ] , d = { } , e = 0 , f = this . options . items . length ; e < f ; e ++ ) { var g = thi
} ) , this } , add : function ( a , b ) { return this . has ( a ) ? this : ( this . set ( a , b ) , this ) } , get : function ( a ) { return this . tooltipsManager [ a ] } , set : function ( a , b ) { this . tooltipsManager [ a ] = b } , has : function ( a ) { return null != this . tooltipsManager [ a ] } , remove : function ( a ) { return this . has ( a ) ? ( this . tooltipsManager [ a ] . destroy ( ) , delete this . tooltipsManager [ a ] , this ) : this } } ) , _ . extend ( BI , { Events : { KEYDOWN : "_KEYDOWN" , BACKSPACE : "_BACKSPACE" , SPACE : "_SPACE" , ENTER : "_ENTER" , CONFIRM : "_CONFIRM" , ERROR : "_ERROR" , PAUSE : "_PAUSE" , DESTROY : "_DESTROY" , UNMOUNT : "_UNMOUNT" , CLEAR : "_CLEAR" , ADD : "_ADD" , EDITING : "_EDITING" , EMPTY : "_EMPTY" , VIEW : "_VIEW" , RESIZE : "_RESIZE" , BEFOREEDIT : "_BEFOREEDIT" , AFTEREDIT : "_AFTEREDIT" , STARTEDIT : "_STARTEDIT" , STOPEDIT : "_STOPEDIT" , CHANGE : "_CHANGE" , EXPAND : "_EXPAND" , COLLAPSE : "_COLLAPSE" , CALLBACK : "_CALLBACK" , CLICK : "_CLICK" , STATECHANGE : "_STATECHANGE" , BEFORESTATECHANGE : "_BEFORESTATECHANGE" , INIT : "_INIT" , AFTERINIT : "_AFTERINIT" , SCROLL : "_SCROLL" , STARTLOAD : "_STARTLOAD" , AFTERLOAD : "_AFTERLOAD" , BS : "beforesubmit" , AS : "aftersubmit" , SC : "submitcomplete" , SF : "submitfailure" , SS : "submitsuccess" , BVW : "beforeverifywrite" , AVW : "afterverifywrite" , AV : "afterverify" , BW : "beforewrite" , AW : "afterwrite" , WS : "writesuccess" , WF : "writefailure" , BA : "beforeappend" , AA : "afterappend" , BD : "beforedelete" , AD : "beforedelete" , UC : "unloadcheck" , BTOPDF : "beforetopdf" , ATOPDF : "aftertopdf" , BTOEXCEL : "beforetoexcel" , ATOEXCEL : "aftertoexcel" , BTOWORD : "beforetoword" , ATOWORD : "aftertoword" , BTOIMAGE : "beforetoimage" , ATOIMAGE : "aftertoimage" , BTOHTML : "beforetohtml" , ATOHTML : "aftertohtml" , BIMEXCEL : "beforeimportexcel" , AIMEXCEL : "afterimportexcel" , BPDFPRINT : "beforepdfprint" , APDFPRINT : "afterpdfprint" , BFLASHPRINT : "beforeflashprint" , AFLASHPRINT : "afterflashprint" , BAPPLETPRINT : "beforeappletprint" , AAPPLETPRINT : "afterappletprint" , BSEVERPRINT : "beforeserverprint" , ASERVERPRINT : "afterserverprint" , BEMAIL : "beforeemail" , AEMAIL : "afteremail" } } ) , BI . extend ( jQuery . fn , { destroy : function ( ) { this . remove ( ) , BI . isIE ( ) === ! 0 && ( this [ 0 ] . outerHTML = "" ) } , _ _textKeywordMarked _ _ : function ( a , b , c ) { if ( ! BI . isKey ( b ) || ( a + "" ) . length > 100 ) return this . html ( BI . htmlEncode ( a ) ) ; b += "" , b = BI . toUpperCase ( b ) ; var d = ( a || "" ) + "" ; for ( c = ( c || BI . makeFirstPY ( a ) ) + "" , null != c && ( c = BI . toUpperCase ( c ) ) , this . empty ( ) ; ; ) { var e = BI . toUpperCase ( d ) . indexOf ( b ) , f = null ; if ( null != c && ( f = c . indexOf ( b ) , f >= 0 && ( f %= a . length ) ) , e >= 0 ) this . append ( d . substr ( 0 , e ) ) , this . append ( $ ( "<span>" ) . addClass ( "bi-keyword-red-mark" ) . html ( BI . htmlEncode ( d . substr ( e , b . length ) ) ) ) , d = d . substr ( e + b . length ) , null != c && ( c = c . substr ( e + b . length ) ) ; else { if ( ! ( null != f && f >= 0 && Math . floor ( f / a . length ) === Math . floor ( ( f + b . length - 1 ) / a . length ) ) ) { this . append ( d ) ; break } this . append ( d . substr ( 0 , f ) ) , this . append ( $ ( "<span>" ) . addClass ( "bi-keyword-red-mark" ) . html ( BI . htmlEncode ( d . substr ( f , b . length ) ) ) ) , null != c && ( c = c . substr ( f + b . length ) ) , d = d . substr ( f + b . length ) } } return this } , getDomHeight : function ( a ) { var b = $ ( this ) . clone ( ) ; b . appendTo ( $ ( a || "body" ) ) ; var c = b . height ( ) ; return b . remove ( ) , c } , hasVerticalScroll : function ( ) { return this . height ( ) > 0 && this [ 0 ] . clientWidth < this [ 0 ] . offsetWidth } , hasHorizonScroll : function ( ) { return this . width ( ) > 0 && this [ 0 ] . clientHeight < this [ 0 ] . offsetHeight } , getStyle : function ( a ) { var b = this [ 0 ] , c = void 0 ; if ( window . getComputedStyle && ( c = window . getComputedStyle ( b , null ) ) ) return c . getPropertyValue ( BI . hyphenate ( a ) ) ; if ( document . defaultView && document . defaultView . getComputedStyle ) { if ( c = document . defaultView . getComputedStyle ( b , null ) ) return c . getPropertyValue ( BI . hyphenate ( a ) ) ; if ( "display" === a ) return "none" } return b . currentStyle ? "float" === a ? b . currentStyle . cssFloat || b . currentStyle . styleFloat : b . currentStyle [ BI . camelize ( a ) ] : b . style && b . style [ BI . camelize ( a ) ] } , _ _isMouseInBounds _ _ : function ( a ) { var b = this . offset ( ) ; return ! ( a . pageX < b . left || a . pageX > b . left + this . outerWidth ( ) || a . pageY < b . top || a . pageY > b . top + this . outerHeight ( ) ) } , _ _hasZIndexMask _ _ : function ( a ) { return a && null != this . zIndexMask [ a ] } , _ _buildZIndexMask _ _ : function ( a , b ) { this . zIndexMask = this . zIndexMask || { } , this . indexMask = this . indexMask || [ ] ; var c = BI . createWidget ( { type : "bi.center_adapt" , cls : "bi-z-index-mask" , items : b } ) ; return c . element . css ( { "z-index" : a } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : c , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . indexMask . p
this . _eventMoveToken || this . _eventUpToken || ( this . _eventMoveToken = BI . EventListener . listen ( this . _domNode , "mousemove" , this . _onMouseMove ) , this . _eventUpToken = BI . EventListener . listen ( this . _domNode , "mouseup" , this . _onMouseUp ) ) , this . _isDragging || ( this . _deltaX = 0 , this . _deltaY = 0 , this . _isDragging = ! 0 , this . _x = a . clientX , this . _y = a . clientY ) , a . preventDefault ? a . preventDefault ( ) : a . returnValue = ! 1 } , releaseMouseMoves : function ( ) { this . _eventMoveToken && this . _eventUpToken && ( this . _eventMoveToken . remove ( ) , this . _eventMoveToken = null , this . _eventUpToken . remove ( ) , this . _eventUpToken = null ) , null !== this . _animationFrameID && ( a ( this . _animationFrameID ) , this . _animationFrameID = null ) , this . _isDragging && ( this . _isDragging = ! 1 , this . _x = null , this . _y = null ) } , isDragging : function ( ) { return this . _isDragging } , _onMouseMove : function ( a ) { var c = a . clientX , d = a . clientY ; this . _deltaX += c - this . _x , this . _deltaY += d - this . _y , null === this . _animationFrameID && ( this . _animationFrameID = b ( this . _didMouseMove ) ) , this . _x = c , this . _y = d , a . preventDefault ? a . preventDefault ( ) : a . returnValue = ! 1 } , _didMouseMove : function ( ) { this . _animationFrameID = null , this . _onMove ( this . _deltaX , this . _deltaY ) , this . _deltaX = 0 , this . _deltaY = 0 } , _onMouseUp : function ( ) { this . _animationFrameID && this . _didMouseMove ( ) , this . _onMoveEnd ( ) } } } ( ) , ! function ( ) { function a ( a ) { var e = 0 , f = 0 , g = 0 , h = 0 ; return "detail" in a && ( f = a . detail ) , "wheelDelta" in a && ( f = - a . wheelDelta / 120 ) , "wheelDeltaY" in a && ( f = - a . wheelDeltaY / 120 ) , "wheelDeltaX" in a && ( e = - a . wheelDeltaX / 120 ) , "axis" in a && a . axis === a . HORIZONTAL _AXIS && ( e = f , f = 0 ) , g = e * b , h = f * b , "deltaY" in a && ( h = a . deltaY ) , "deltaX" in a && ( g = a . deltaX ) , ( g || h ) && a . deltaMode && ( 1 === a . deltaMode ? ( g *= c , h *= c ) : ( g *= d , h *= d ) ) , g && ! e && ( e = g < 1 ? - 1 : 1 ) , h && ! f && ( f = h < 1 ? - 1 : 1 ) , { spinX : e , spinY : f , pixelX : g , pixelY : h } } var b = 10 , c = 40 , d = 800 , e = window . requestAnimationFrame || window . webkitRequestAnimationFrame || window . mozRequestAnimationFrame || window . oRequestAnimationFrame || window . msRequestAnimationFrame || window . setTimeout ; BI . WheelHandler = function ( a , b , c , d ) { this . _animationFrameID = null , this . _deltaX = 0 , this . _deltaY = 0 , this . _didWheel = BI . bind ( this . _didWheel , this ) , "function" != typeof b && ( b = b ? function ( ) { return ! 0 } : function ( ) { return ! 1 } ) , "function" != typeof c && ( c = c ? function ( ) { return ! 0 } : function ( ) { return ! 1 } ) , "function" != typeof d && ( d = d ? function ( ) { return ! 0 } : function ( ) { return ! 1 } ) , this . _handleScrollX = b , this . _handleScrollY = c , this . _stopPropagation = d , this . _onWheelCallback = a , this . onWheel = BI . bind ( this . onWheel , this ) } , BI . WheelHandler . prototype = { constructor : BI . WheelHandler , onWheel : function ( b ) { var c = a ( b ) , d = this . _deltaX + c . pixelX , f = this . _deltaY + c . pixelY , g = this . _handleScrollX ( d , f ) , h = this . _handleScrollY ( f , d ) ; if ( g || h ) { this . _deltaX += g ? c . pixelX : 0 , this . _deltaY += h ? c . pixelY : 0 , b . preventDefault ? b . preventDefault ( ) : b . returnValue = ! 1 ; var i ; 0 === this . _deltaX && 0 === this . _deltaY || ( this . _stopPropagation ( ) && ( b . stopPropagation ? b . stopPropagation ( ) : b . cancelBubble = ! 0 ) , i = ! 0 ) , i === ! 0 && null === this . _animationFrameID && ( this . _animationFrameID = e ( this . _didWheel ) ) } } , _didWheel : function ( ) { this . _animationFrameID = null , this . _onWheelCallback ( this . _deltaX , this . _deltaY ) , this . _deltaX = 0 , this . _deltaY = 0 } } } ( ) , _ . extend ( BI , { MAX : 0x1000000000000000 , MIN : - 0x1000000000000000 , EVENT _RESPONSE _TIME : 200 , zIndex _layer : 1e5 , zIndex _floatbox : 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" }
} 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 } ) } } , 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 ) { if ( b . hasWidget ( d . cardName ) ) var e = b . getWidgetByName ( d . cardName ) ; else { var e = BI . createWidget ( d ) ; e . on ( BI . Events . DESTROY , function ( ) { var a = BI . findIndex ( c . items , function ( a , b ) { return b . cardName == d . cardName } ) ; a > - 1 && c . items . splice ( a , 1 ) } ) , b . addWidget ( d . cardName , e ) } e . element . css ( { position : "absolute" , top : "0" , right : "0" , bottom : "0" , left : "0" } ) , e . setVisible ( ! 1 ) } } ) } , update : function ( ) { } , empty : function ( ) { BI . CardLayout . superclass . empty . apply ( this , arguments ) , this . options . items = [ ] } , populate : function ( a ) { BI . CardLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) , this . options . defaultShowName && this . showCardByName ( this . options . defaultShowName ) } , isCardExisted : function ( a ) { return BI . some ( this . options . items , function ( b , c ) { return c . cardName == a && c . el } ) } , getCardByName : function ( a ) { if ( ! this . isCardExisted ( a ) ) throw new Error ( "cardName is not exist" ) ; return this . _children [ a ] } , _deleteCardByName : function ( a ) { delete this . _children [ a ] ; var b = BI . findIndex ( this . options . items , function ( b , c ) { return c . cardName == a } ) ; b > - 1 && this . options . items . splice ( b , 1 ) } , deleteCardByName : function ( a ) { if ( ! this . isCardExisted ( a ) ) throw new Error ( "cardName is not exist" ) ; var b = this . _children [ a ] ; this . _deleteCardByName ( a ) , b && b . _destroy ( ) } , addCardByName : function ( a , b ) { if ( this . isCardExisted ( a ) ) throw new Error ( "cardName is already exist" ) ; var c = BI . createWidget ( b ) ; return c . element . css ( { position : "relative" , top : "0" , left : "0" , width : "100%" , height : "100%" } ) . appendTo ( this . element ) , c . invisible ( ) , this . addWidget ( a , c ) , this . options . items . push ( { el : b , cardName : a } ) , c } , showCardByName : function ( a , b , c ) { var d = this , e = this . isCardExisted ( a ) ; null != this . showIndex && ( this . lastShowIndex = this . showIndex ) , this . showIndex = a ; var f = ! 1 ; BI . each ( this . options . items , function ( g , h ) { var i = d . _children [ h . cardName ] ; i && ( a != h . cardName ? ! f && ! e && BI . Action && b instanceof BI . Action ? ( b . actionBack ( i ) , f = ! 0 ) : i . invisible ( ) : BI . Action && b instanceof BI . Action ? b . actionPerformed ( void 0 , i , c ) : ( i . visible ( ) , c && c ( ) ) ) } ) } , showLastCard : function ( ) { var a = this ; this . showIndex = this . lastShowIndex , BI . each ( this . options . items , function ( b , c ) { a . _children [ c . cardName ] . setVisible ( a . showIndex == b ) } ) } , setDefaultShowName : function ( a ) { return this . options . defaultShowName = a , this } , getDefaultShowName : function ( ) { return this . options . defaultShowName } , getAllCardNames : function ( ) { return BI . map ( this . options . items , function ( a , b ) { return b . cardName } ) } , getShowingCard : function ( ) { if ( BI . isKey ( this . showIndex ) ) return this . getWidgetByName ( this . showIndex ) } , deleteAllCard : function ( ) { var a = this ; BI . each ( this . getAllCardNames ( ) , function ( b , c ) { a . deleteCardByName ( c ) } ) } , hideAllCard : function ( ) { var a = this ; BI . each ( this . options . items , function ( b , c ) { a . _children [ c . cardName ] . invisible ( ) } ) } , isAllCardHide : function ( ) { var a = this , b = ! 0 ; return BI . some ( this . options . items , function ( c , d ) { if ( a . _children [ d . cardName ] . isVisible ( ) ) return b = ! 1 , ! 1 } ) , b } , removeWidget : func
} ) } ) } ) , BI . each ( a , 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" } ) , c [ a ] . el . addItem ( e ) } } ) , BI . createWidget ( { type : "bi.grid" , element : this , columns : c . length , rows : 1 , items : c } ) } , populate : function ( a ) { BI . HorizontalCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.horizontal_center" , BI . HorizontalCenterLayout ) , BI . VerticalCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . VerticalCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-vertical-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . VerticalCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b = this . options , c = [ ] ; BI . each ( a , function ( b ) { c . push ( { column : 0 , row : b , el : BI . createWidget ( { type : "bi.default" , cls : "center-element " + ( 0 === b ? "first-element " : "" ) + ( b === a . length - 1 ? "last-element" : "" ) } ) } ) } ) , BI . each ( a , 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 , height : "auto" } ) , c [ a ] . el . addItem ( e ) } } ) , BI . createWidget ( { type : "bi.grid" , element : this , columns : 1 , rows : c . length , items : c } ) } , populate : function ( a ) { BI . VerticalCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.vertical_center" , BI . VerticalCenterLayout ) , BI . Data = Data = { } , Data . Constant = BICst = { } , function ( ) { var a = { } ; Data . BufferPool = { put : function ( b , c ) { if ( BI . isNotNull ( a [ b ] ) ) throw new Error ( "Buffer Pool has the key already!" ) ; a [ b ] = c } , get : function ( b ) { return a [ b ] } } } ( ) , function ( ) { var a = { } ; Data . SharingPool = { _Shared : a , put : function ( b , c ) { a [ b ] = c } , cat : function ( ) { for ( var b = Array . prototype . slice . call ( arguments , 0 ) , c = a , d = 0 ; d < b . length ; d ++ ) c = c && c [ b [ d ] ] ; return c } , get : function ( ) { return BI . deepClone ( this . cat . apply ( this , arguments ) ) } , remove : function ( b ) { delete a [ b ] } } } ( ) , Data . Req = { } , Data . Source = BISource = { } , function ( a ) { "function" == typeof define && define . amd ? define ( [ "../core/jquery" ] , a ) : "object" == typeof exports ? module . exports = a : a ( jQuery ) } ( function ( a ) { function b ( b ) { var g = b || window . event , h = i . call ( arguments , 1 ) , j = 0 , l = 0 , m = 0 , n = 0 , o = 0 , p = 0 ; if ( b = a . event . fix ( g ) , b . type = "mousewheel" , "detail" in g && ( m = g . detail * - 1 ) , "wheelDelta" in g && ( m = g . wheelDelta ) , "wheelDeltaY" in g && ( m = g . wheelDeltaY ) , "wheelDeltaX" in g && ( l = g . wheelDeltaX * - 1 ) , "axis" in g && g . axis === g . HORIZONTAL _AXIS && ( l = m * - 1 , m = 0 ) , j = 0 === m ? l : m , "deltaY" in g && ( m = g . deltaY * - 1 , j = m ) , "deltaX" in g && ( l = g . deltaX , 0 === m && ( j = l * - 1 ) ) , 0 !== m || 0 !== l ) { if ( 1 === g . deltaMode ) { var q = 40 ; j *= q , m *= q , l *= q } else if ( 2 === g . deltaMode ) { var r = 800 ; j *= r , m *= r , l *= r } if ( n = Math . max ( Math . abs ( m ) , Math . abs ( l ) ) , ( ! f || n < f ) && ( f = n , d ( g , n ) && ( f /= 40 ) ) , d ( g , n ) && ( j /= 40 , l /= 40 , m /= 40 ) , j = Math [ j >= 1 ? "floor" : "ceil" ] ( j / f ) , l = Math [ l >= 1 ? "floor" : "ceil" ] ( l / f ) , m = Math [ m >= 1 ? "floor" : "ceil" ] ( m / f ) , k . settings . normalizeOffset && this . getBoundingClientRect ) { var s = this . getBoundingClientRect ( ) ; o = b . clientX - s . left , p = b . clientY - s . top } return b . deltaX = l , b . deltaY = m , b . deltaFactor = f , b . offsetX = o , b . offsetY = p , b . deltaMode = 0 , h . unshift ( b , j , l , m ) , e && clearTimeout ( e ) , e = setTimeout ( c , 200 ) , ( a . event . dispatch || a . event . handle ) . apply ( this , h ) } } function c ( ) { f = null } function d ( a , b ) { return k . settings . adjustOldDeltas && "mousewheel" === a . type && b % 120 === 0 } var e , f , g = [ "wheel" , "mousewheel" , "DOMMouseScroll" , "MozMousePixelScroll" ] , h = "onwheel" in document || document . documentMode >= 9 ? [ "wheel" ] : [ "mousewheel" , "DomMouseScroll" , "MozMousePixelScroll" ] , i = Array . prototype . slice ; if ( a . event . fixHooks ) for ( var j = g . length ; j ; ) a . event . fixHooks [ g [ -- j ] ] = a . event . mouseHooks ; var k = a . event . special . mousewheel = { version : "3.1.12" , setup : function ( ) { if ( this . addEventListener ) for ( var a = h . length ; a ; ) this . addEventListener ( h [ -- a ] , b , ! 1 ) ; else this . onmousewheel = b } , teardown : function ( ) { if ( this . removeEventListener ) for ( var a = h . length ; a ; ) this . removeEventListener ( h [ -- a ] , b , ! 1 ) ; else this . onmousewheel = null } , settings : { adjustOldDeltas : ! 0 , normalizeOffset : ! 0 } } ; a . fn . extend ( { mousewheel : function ( a ) { return a ? this . bind ( "mousewheel" , a ) : this . trig
} } , _getTree : function ( a , b ) { var c = a ; return BI . any ( b , function ( a , b ) { return null == c [ b ] || void ( c = c [ b ] ) } ) , c } , _addTreeNode : function ( a , b , c , d ) { var e = a ; BI . each ( b , function ( a , b ) { null == e [ b ] && ( e [ b ] = { } ) , e = e [ b ] } ) , e [ c ] = d } , _buildTree : function ( a , b ) { var c = a ; BI . each ( b , function ( a , b ) { null == c [ b ] && ( c [ b ] = { } ) , c = c [ b ] } ) } , _getSelectedValues : function ( ) { function a ( a ) { BI . each ( a , function ( a , d ) { var e = d . getCheckStatus ( ) ; if ( e . checked === ! 0 || e . half === ! 0 ) if ( e . half === ! 0 ) b . _getHalfSelectedValues ( c , d ) ; else { var f = d . parentValues || b . _getParentValues ( d ) , g = f . concat ( [ b . _getNodeValue ( d ) ] ) ; b . _buildTree ( c , g ) } } ) } var b = this , c = { } , d = this . nodes . getNodes ( ) ; return a ( d ) , c } , _dealWidthNodes : function ( a ) { var b = this . options , c = BI . Tree . arrayFormat ( a ) ; return BI . each ( c , function ( a , c ) { c . title = c . title || c . text || c . value , BI . isKey ( b . paras . keyword ) ? c . text = $ ( "<div>" ) . _ _textKeywordMarked _ _ ( c . text , b . paras . keyword , c . py ) . html ( ) : c . text = ( c . text + "" ) . replaceAll ( " " , " " ) } ) , a } , _loadMore : function ( ) { var a = this , b = this . options ; this . tip . setLoading ( ) ; var c = BI . extend ( { } , b . paras , { times : ++ this . times } ) ; b . itemsCreator ( c , function ( b ) { if ( a . _stop !== ! 0 ) { var c = ! ! b . hasNext , d = b . items || [ ] ; c ? a . tip . setLoaded ( ) : a . tip . setEnd ( ) , d . length > 0 && a . nodes . addNodes ( null , a . _dealWidthNodes ( d ) ) } } ) } , _initTree : function ( a ) { var b = this , c = this . options ; b . fireEvent ( BI . Events . INIT ) , this . times = 1 ; var d = this . tree ; d . empty ( ) , this . loading ( ) , this . tip . setVisible ( ! 1 ) ; var e = function ( c ) { b . _stop !== ! 0 && ( b . nodes = $ . fn . zTree . init ( d . element , a , c ) ) } , f = BI . extend ( { } , c . paras , { times : 1 } ) ; c . itemsCreator ( f , function ( a ) { if ( b . _stop !== ! 0 ) { var c = ! ! a . hasNext , d = a . items || [ ] ; d . length > 0 && e ( b . _dealWidthNodes ( d ) ) , b . setTipVisible ( d . length <= 0 ) , b . loaded ( ) , c ? b . tip . setLoaded ( ) : b . tip . invisible ( ) , 1 === f . times && b . fireEvent ( BI . Events . AFTERINIT ) } } ) } , initTree : function ( a , b ) { var b = b || { async : { enable : ! 1 } , check : { enable : ! 1 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , view : { showIcon : ! 1 , expandSpeed : "" , nameIsHTML : ! 0 } , callback : { } } ; this . nodes = $ . fn . zTree . init ( this . tree . element , b , a ) } , start : function ( ) { this . _stop = ! 1 } , stop : function ( ) { this . _stop = ! 0 } , stroke : function ( a ) { delete this . options . keyword , BI . extend ( this . options . paras , a ) ; var b = this . _configSetting ( ) ; this . _createTree ( ) , this . start ( ) , this . _initTree ( b ) } , populate : function ( ) { this . stroke . apply ( this , arguments ) } , hasChecked : function ( ) { var a = this . nodes ; return a . getCheckedNodes ( ! 0 ) . length > 0 } , checkAll : function ( a ) { function b ( a ) { BI . each ( a , function ( a , c ) { c . halfCheck = ! 1 , b ( c . children ) } ) } this . nodes && ( BI . each ( this . nodes . getNodes ( ) , function ( a , c ) { c . halfCheck = ! 1 , b ( c . children ) } ) , this . nodes . checkAllNodes ( a ) ) } , expandAll : function ( a ) { this . nodes && this . nodes . expandAll ( a ) } , setValue : function ( a , b ) { this . checkAll ( ! 1 ) , this . updateValue ( a , b ) , this . refresh ( ) } , setSelectedValue : function ( a ) { this . options . paras . selectedValues = BI . deepClone ( a || { } ) } , updateValue : function ( a , b ) { if ( this . nodes ) { b || ( b = "value" ) ; var c = this . nodes ; BI . each ( a , function ( a , d ) { var e = c . getNodesByParam ( b , a , null ) ; BI . each ( e , function ( a , b ) { BI . extend ( b , { checked : ! 0 } , d ) , c . updateNode ( b ) } ) } ) } } , refresh : function ( ) { this . nodes && this . nodes . refresh ( ) } , getValue : function ( ) { return this . nodes ? this . _getSelectedValues ( ) : null } , destroyed : function ( ) { this . stop ( ) , this . nodes && this . nodes . destroy ( ) } } ) , BI . extend ( BI . TreeView , { REQ _TYPE _INIT _DATA : 1 , REQ _TYPE _ADJUST _DATA : 2 , REQ _TYPE _SELECT _DATA : 3 , REQ _TYPE _GET _SELECTED _DATA : 4 } ) , BI . TreeView . EVENT _CHANGE = "EVENT_CHANGE" , BI . TreeView . EVENT _INIT = BI . Events . INIT , BI . TreeView . EVENT _AFTERINIT = BI . Events . AFTERINIT , BI . shortcut ( "bi.tree_view" , BI . TreeView ) , BI . AsyncTree = BI . inherit ( BI . TreeView , { _defaultConfig : function ( ) { return BI . extend ( BI . AsyncTree . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . AsyncTree . superclass . _init . apply ( this , arguments ) } , _configSetting : function ( ) { function a ( a , b , c ) { var d = $ . fn . zTree . getZTreeObj ( b ) ; d . checkNode ( c , ! c . checked , ! 0 , ! 0 ) } function b ( a , b ) { function c ( a ) { BI . each ( a , function ( a , b ) { b . halfCheck === ! 0 && ( b . halfCheck = ! 1 , c ( b . children ) ) } ) } if ( b . halfCheck = ! 1 , b . checked === ! 0 ) { c ( b . children ) ; var d = $ . fn . zTree . getZTreeObj ( a ) , e = d . getSelectedNodes ( ) ; BI . each ( e , function ( a , b ) { b . halfCheck = ! 1 } ) } } function c ( a , b ) { h . _beforeExpandNode ( a , b ) } function d ( a , b , c ) { h . _selectTreeNode ( b , c ) } function e ( a , b , c ) { c . halfChe
this . element . removeClass ( this . options . expanderClass ) , this . fireEvent ( BI . Expander . EVENT _AFTER _HIDEVIEW ) } , _popupView : function ( ) { this . _assertPopupViewRender ( ) , this . fireEvent ( BI . Expander . EVENT _BEFORE _POPUPVIEW ) , this . _expanded = ! 0 , this . expander . setOpened ( ! 0 ) , this . popupView . visible ( ) , this . element . addClass ( this . options . expanderClass ) , this . fireEvent ( BI . Expander . EVENT _AFTER _POPUPVIEW ) } , populate : function ( a ) { this . popupView && this . popupView . populate . apply ( this . popupView , arguments ) , this . expander . populate . apply ( this . expander , arguments ) } , _setEnable : function ( a ) { BI . Expander . superclass . _setEnable . apply ( this , arguments ) , ! a && this . element . removeClass ( this . options . hoverClass ) , ! a && this . isViewVisible ( ) && this . _hideView ( ) } , setValue : function ( a ) { this . expander . setValue ( a ) , BI . isNull ( this . popupView ) ? this . options . popup . value = a : this . popupView . setValue ( a ) } , getValue : function ( ) { return BI . isNull ( this . popupView ) ? this . options . popup . value : this . popupView . getValue ( ) } , isViewVisible : function ( ) { return this . isEnabled ( ) && this . expander . isEnabled ( ) && ! ! this . popupView && this . popupView . isVisible ( ) } , isExpanded : function ( ) { return this . _expanded } , showView : function ( ) { this . isEnabled ( ) && this . expander . isEnabled ( ) && this . _popupView ( ) } , hideView : function ( ) { this . _hideView ( ) } , getView : function ( ) { return this . popupView } , getAllLeaves : function ( ) { return this . popupView && this . popupView . getAllLeaves ( ) } , getNodeById : function ( a ) { return this . expander . options . id === a ? this . expander : this . popupView && this . popupView . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . expander . getValue ( ) === a ? this . expander : this . popupView && this . popupView . getNodeByValue ( a ) } , destroy : function ( ) { BI . Expander . superclass . destroy . apply ( this , arguments ) } } ) , BI . Expander . EVENT _EXPAND = "EVENT_EXPAND" , BI . Expander . EVENT _COLLAPSE = "EVENT_COLLAPSE" , BI . Expander . EVENT _TRIGGER _CHANGE = "EVENT_TRIGGER_CHANGE" , BI . Expander . EVENT _CHANGE = "EVENT_CHANGE" , BI . Expander . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . Expander . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . Expander . EVENT _AFTER _POPUPVIEW = "EVENT_AFTER_POPUPVIEW" , BI . Expander . EVENT _BEFORE _HIDEVIEW = "EVENT_BEFORE_HIDEVIEW" , BI . Expander . EVENT _AFTER _HIDEVIEW = "EVENT_AFTER_HIDEVIEW" , BI . shortcut ( "bi.expander" , BI . Expander ) , BI . ComboGroup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ComboGroup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-combo-group bi-list-item" , trigger : "click,hover" , direction : "right" , adjustLength : 0 , isDefaultInit : ! 1 , isNeedAdjustHeight : ! 1 , isNeedAdjustWidth : ! 1 , el : { type : "bi.text_button" , text : "" , value : "" } , children : [ ] , popup : { el : { type : "bi.button_tree" , chooseType : 0 , layouts : [ { type : "bi.vertical" } ] } } } ) } , _init : function ( ) { BI . ComboGroup . superclass . _init . apply ( this , arguments ) , this . _populate ( this . options . el ) } , _populate : function ( a ) { var b = this , c = this . options , d = c . children ; if ( BI . isEmpty ( d ) ) throw new Error ( "ComboGroup构造错误" ) ; BI . each ( d , function ( a , b ) { var d = BI . formatEL ( b ) . el . children ; b = BI . formatEL ( b ) . el , BI . isEmpty ( d ) || ( b . el = BI . clone ( b ) , b . children = d , b . type = "bi.combo_group" , b . action = c . action , b . height = c . height , b . direction = c . direction , b . isDefaultInit = c . isDefaultInit , b . isNeedAdjustHeight = c . isNeedAdjustHeight , b . isNeedAdjustWidth = c . isNeedAdjustWidth , b . adjustLength = c . adjustLength , b . popup = c . popup ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , element : this , height : c . height , trigger : c . trigger , direction : c . direction , isDefaultInit : c . isDefaultInit , isNeedAdjustWidth : c . isNeedAdjustWidth , isNeedAdjustHeight : c . isNeedAdjustHeight , adjustLength : c . adjustLength , el : a , popup : BI . extend ( { } , c . popup , { el : BI . extend ( { items : d } , c . popup . el ) } ) } ) , this . combo . on ( BI . Controller . EVENT _CHANGE , function ( a , c , d ) { b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a === BI . Events . CLICK && b . fireEvent ( BI . ComboGroup . EVENT _CHANGE , d ) } ) } , getValue : function ( ) { return this . combo . getValue ( ) } , setValue : function ( a ) { this . combo . setValue ( a ) } } ) , BI . ComboGroup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.combo_group" , BI . ComboGroup ) , BI . VirtualGroup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . VirtualGroup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-virtual-group" , items : [ ] , layouts : [ { type : "bi.center" , hgap : 0 , vgap : 0 } ]
d = e . to . line , c += d . text . length - e . to . ch } return c } function m ( a ) { var b = a . display , c = a . doc ; b . maxLine = Vd ( c , c . first ) , b . maxLineLength = l ( b . maxLine ) , b . maxLineChanged = ! 0 , c . iter ( function ( a ) { var c = l ( a ) ; c > b . maxLineLength && ( b . maxLineLength = c , b . maxLine = a ) } ) } function n ( a ) { var b = De ( a . gutters , "CodeMirror-linenumbers" ) ; b == - 1 && a . lineNumbers ? a . gutters = a . gutters . concat ( [ "CodeMirror-linenumbers" ] ) : b > - 1 && ! a . lineNumbers && ( a . gutters = a . gutters . slice ( 0 ) , a . gutters . splice ( b , 1 ) ) } function o ( a ) { var b = a . display , c = b . gutters . offsetWidth , d = Math . round ( a . doc . height + Ra ( a . display ) ) ; return { clientHeight : b . scroller . clientHeight , viewHeight : b . wrapper . clientHeight , scrollWidth : b . scroller . scrollWidth , clientWidth : b . scroller . clientWidth , viewWidth : b . wrapper . clientWidth , barLeft : a . options . fixedGutter ? c : 0 , docHeight : d , scrollHeight : d + Ta ( a ) + b . barHeight , nativeBarWidth : b . nativeBarWidth , gutterWidth : c } } function p ( a , b , c ) { this . cm = c ; var d = this . vert = Me ( "div" , [ Me ( "div" , null , null , "min-width: 1px" ) ] , "CodeMirror-vscrollbar" ) , e = this . horiz = Me ( "div" , [ Me ( "div" , null , null , "height: 100%; min-height: 1px" ) ] , "CodeMirror-hscrollbar" ) ; a ( d ) , a ( e ) , xg ( d , "scroll" , function ( ) { d . clientHeight && b ( d . scrollTop , "vertical" ) } ) , xg ( e , "scroll" , function ( ) { e . clientWidth && b ( e . scrollLeft , "horizontal" ) } ) , this . checkedOverlay = ! 1 , nf && of < 8 && ( this . horiz . style . minHeight = this . vert . style . minWidth = "18px" ) } function q ( ) { } function r ( b ) { b . display . scrollbars && ( b . display . scrollbars . clear ( ) , b . display . scrollbars . addClass && Qg ( b . display . wrapper , b . display . scrollbars . addClass ) ) , b . display . scrollbars = new a . scrollbarModel [ b . options . scrollbarStyle ] ( function ( a ) { b . display . wrapper . insertBefore ( a , b . display . scrollbarFiller ) , xg ( a , "mousedown" , function ( ) { b . state . focused && setTimeout ( function ( ) { b . display . input . focus ( ) } , 0 ) } ) , a . setAttribute ( "cm-not-content" , "true" ) } , function ( a , c ) { "horizontal" == c ? bc ( b , a ) : ac ( b , a ) } , b ) , b . display . scrollbars . addClass && Rg ( b . display . wrapper , b . display . scrollbars . addClass ) } function s ( a , b ) { b || ( b = o ( a ) ) ; var c = a . display . barWidth , d = a . display . barHeight ; t ( a , b ) ; for ( var e = 0 ; e < 4 && c != a . display . barWidth || d != a . display . barHeight ; e ++ ) c != a . display . barWidth && a . options . lineWrapping && F ( a ) , t ( a , o ( a ) ) , c = a . display . barWidth , d = a . display . barHeight } function t ( a , b ) { var c = a . display , d = c . scrollbars . update ( b ) ; c . sizer . style . paddingRight = ( c . barWidth = d . right ) + "px" , c . sizer . style . paddingBottom = ( c . barHeight = d . bottom ) + "px" , d . right && d . bottom ? ( c . scrollbarFiller . style . display = "block" , c . scrollbarFiller . style . height = d . bottom + "px" , c . scrollbarFiller . style . width = d . right + "px" ) : c . scrollbarFiller . style . display = "" , d . bottom && a . options . coverGutterNextToScrollbar && a . options . fixedGutter ? ( c . gutterFiller . style . display = "block" , c . gutterFiller . style . height = d . bottom + "px" , c . gutterFiller . style . width = b . gutterWidth + "px" ) : c . gutterFiller . style . display = "" } function u ( a , b , c ) { var d = c && null != c . top ? Math . max ( 0 , c . top ) : a . scroller . scrollTop ; d = Math . floor ( d - Qa ( a ) ) ; var e = c && null != c . bottom ? c . bottom : d + a . wrapper . clientHeight , f = $d ( b , d ) , g = $d ( b , e ) ; if ( c && c . ensure ) { var h = c . ensure . from . line , i = c . ensure . to . line ; h < f ? ( f = h , g = $d ( b , _d ( Vd ( b , h ) ) + a . wrapper . clientHeight ) ) : Math . min ( i , b . lastLine ( ) ) >= g && ( f = $d ( b , _d ( Vd ( b , i ) ) - a . wrapper . clientHeight ) , g = i ) } return { from : f , to : Math . max ( g , f + 1 ) } } function v ( a ) { var b = a . display , c = b . view ; if ( b . alignWidgets || b . gutters . firstChild && a . options . fixedGutter ) { for ( var d = y ( b ) - b . scroller . scrollLeft + a . doc . scrollLeft , e = b . gutters . offsetWidth , f = d + "px" , g = 0 ; g < c . length ; g ++ ) if ( ! c [ g ] . hidden ) { a . options . fixedGutter && c [ g ] . gutter && ( c [ g ] . gutter . style . left = f ) ; var h = c [ g ] . alignable ; if ( h ) for ( var i = 0 ; i < h . length ; i ++ ) h [ i ] . style . left = f } a . options . fixedGutter && ( b . gutters . style . left = d + e + "px" ) } } function w ( a ) { if ( ! a . options . lineNumbers ) return ! 1 ; var b = a . doc , c = x ( a . options , b . first + b . size - 1 ) , d = a . display ; if ( c . length != d . lineNumChars ) { var e = d . measure . appendChild ( Me ( "div" , [ Me ( "div" , c ) ] , "CodeMirror-linenumber CodeMirror-gutter-elt" ) ) , f = e . firstChild . offsetWidth , g = e . offsetWidth - f ; return d . lineGutter . style . width = "" , d . lineNumInnerWidth = Math . max ( f , d . lineGutter . offsetWidth - g ) + 1 , d . lineNumWidth = d . lineNumInnerWidth + g , d . lineNumChars = d . lineNumInnerWidth ? c . length : - 1 , d . lineGutter . style . width = d . lineNumWidth + "px" , k ( a ) , ! 0 } return ! 1 } function x ( a , b ) { return String ( a . line
} } while ( c < b . length ) } function vb ( a ) { var b = a . curOp , c = b . ownsGroup ; if ( c ) try { ub ( c ) } finally { Mf = null ; for ( var d = 0 ; d < c . ops . length ; d ++ ) c . ops [ d ] . cm . curOp = null ; wb ( c ) } } function wb ( a ) { for ( var b = a . ops , c = 0 ; c < b . length ; c ++ ) xb ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) yb ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) zb ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) Ab ( b [ c ] ) ; for ( var c = 0 ; c < b . length ; c ++ ) Bb ( b [ c ] ) } function xb ( a ) { var b = a . cm , c = b . display ; A ( b ) , a . updateMaxLine && m ( b ) , a . mustUpdate = a . viewChanged || a . forceUpdate || null != a . scrollTop || a . scrollToPos && ( a . scrollToPos . from . line < c . viewFrom || a . scrollToPos . to . line >= c . viewTo ) || c . maxLineChanged && b . options . lineWrapping , a . update = a . mustUpdate && new z ( b , a . mustUpdate && { top : a . scrollTop , ensure : a . scrollToPos } , a . forceUpdate ) } function yb ( a ) { a . updatedDisplay = a . mustUpdate && B ( a . cm , a . update ) } function zb ( a ) { var b = a . cm , c = b . display ; a . updatedDisplay && F ( b ) , a . barMeasure = o ( b ) , c . maxLineChanged && ! b . options . lineWrapping && ( a . adjustWidthTo = Za ( b , c . maxLine , c . maxLine . text . length ) . left + 3 , b . display . sizerWidth = a . adjustWidthTo , a . barMeasure . scrollWidth = Math . max ( c . scroller . clientWidth , c . sizer . offsetLeft + a . adjustWidthTo + Ta ( b ) + b . display . barWidth ) , a . maxScrollLeft = Math . max ( 0 , c . sizer . offsetLeft + a . adjustWidthTo - Ua ( b ) ) ) , ( a . updatedDisplay || a . selectionChanged ) && ( a . preparedSelection = c . input . prepareSelection ( ) ) } function Ab ( a ) { var b = a . cm ; null != a . adjustWidthTo && ( b . display . sizer . style . minWidth = a . adjustWidthTo + "px" , a . maxScrollLeft < b . doc . scrollLeft && bc ( b , Math . min ( b . display . scroller . scrollLeft , a . maxScrollLeft ) , ! 0 ) , b . display . maxLineChanged = ! 1 ) , a . preparedSelection && b . display . input . showSelection ( a . preparedSelection ) , a . updatedDisplay && E ( b , a . barMeasure ) , ( a . updatedDisplay || a . startHeight != b . doc . height ) && s ( b , a . barMeasure ) , a . selectionChanged && La ( b ) , b . state . focused && a . updateInput && b . display . input . reset ( a . typing ) , a . focus && a . focus == Pe ( ) && Y ( a . cm ) } function Bb ( a ) { var b = a . cm , c = b . display , d = b . doc ; if ( a . updatedDisplay && C ( b , a . update ) , null == c . wheelStartX || null == a . scrollTop && null == a . scrollLeft && ! a . scrollToPos || ( c . wheelStartX = c . wheelStartY = null ) , null == a . scrollTop || c . scroller . scrollTop == a . scrollTop && ! a . forceScroll || ( d . scrollTop = Math . max ( 0 , Math . min ( c . scroller . scrollHeight - c . scroller . clientHeight , a . scrollTop ) ) , c . scrollbars . setScrollTop ( d . scrollTop ) , c . scroller . scrollTop = d . scrollTop ) , null == a . scrollLeft || c . scroller . scrollLeft == a . scrollLeft && ! a . forceScroll || ( d . scrollLeft = Math . max ( 0 , Math . min ( c . scroller . scrollWidth - Ua ( b ) , a . scrollLeft ) ) , c . scrollbars . setScrollLeft ( d . scrollLeft ) , c . scroller . scrollLeft = d . scrollLeft , v ( b ) ) , a . scrollToPos ) { var e = Ec ( b , qa ( d , a . scrollToPos . from ) , qa ( d , a . scrollToPos . to ) , a . scrollToPos . margin ) ; a . scrollToPos . isCursor && b . state . focused && Dc ( b , e ) } var f = a . maybeHiddenMarkers , g = a . maybeUnhiddenMarkers ; if ( f ) for ( var h = 0 ; h < f . length ; ++ h ) f [ h ] . lines . length || zg ( f [ h ] , "hide" ) ; if ( g ) for ( var h = 0 ; h < g . length ; ++ h ) g [ h ] . lines . length && zg ( g [ h ] , "unhide" ) ; c . wrapper . offsetHeight && ( d . scrollTop = b . display . scroller . scrollTop ) , a . changeObjs && zg ( b , "changes" , b , a . changeObjs ) , a . update && a . update . finish ( ) } function Cb ( a , b ) { if ( a . curOp ) return b ( ) ; tb ( a ) ; try { return b ( ) } finally { vb ( a ) } } function Db ( a , b ) { return function ( ) { if ( a . curOp ) return b . apply ( a , arguments ) ; tb ( a ) ; try { return b . apply ( a , arguments ) } finally { vb ( a ) } } } function Eb ( a ) { return function ( ) { if ( this . curOp ) return a . apply ( this , arguments ) ; tb ( this ) ; try { return a . apply ( this , arguments ) } finally { vb ( this ) } } } function Fb ( a ) { return function ( ) { var b = this . cm ; if ( ! b || b . curOp ) return a . apply ( this , arguments ) ; tb ( b ) ; try { return a . apply ( this , arguments ) } finally { vb ( b ) } } } function Gb ( a , b , c ) { this . line = b , this . rest = pd ( b ) , this . size = this . rest ? Zd ( Ce ( this . rest ) ) - c + 1 : 1 , this . node = this . text = null , this . hidden = sd ( a , b ) } function Hb ( a , b , c ) { for ( var d , e = [ ] , f = b ; f < c ; f = d ) { var g = new Gb ( a . doc , Vd ( a . doc , f ) , f ) ; d = f + g . size , e . push ( g ) } return e } function Ib ( a , b , c , d ) { null == b && ( b = a . doc . first ) , null == c && ( c = a . doc . first + a . doc . size ) , d || ( d = 0 ) ; var e = a . display ; if ( d && c < e . viewTo && ( null == e . updateLineNumbers || e . updateLineNumbers > b ) && ( e . updateLineNumbers = b ) , a . curOp . viewChanged = ! 0 , b >= e . viewTo ) Ef && qd ( a . doc , b ) < e . viewTo && Kb ( a ) ; else if ( c <= e . viewFrom ) Ef && rd ( a . doc , c + d ) > e . viewFrom ? Kb ( a ) : ( e . viewFrom += d , e . viewTo += d ) ; else if ( b <= e . viewFrom && c >= e . viewTo ) Kb ( a ) ; else if ( b <= e . viewFrom ) { va
var c = a [ b ] ; null != c . from && c . from == c . to && c . marker . clearWhenEmpty !== ! 1 && a . splice ( b -- , 1 ) } return a . length ? a : null } function dd ( a , b ) { var c = le ( a , b ) , d = bd ( a , b ) ; if ( ! c ) return d ; if ( ! d ) return c ; for ( var e = 0 ; e < c . length ; ++ e ) { var f = c [ e ] , g = d [ e ] ; if ( f && g ) a : for ( var h = 0 ; h < g . length ; ++ h ) { for ( var i = g [ h ] , j = 0 ; j < f . length ; ++ j ) if ( f [ j ] . marker == i . marker ) continue a ; f . push ( i ) } else g && ( c [ e ] = g ) } return c } function ed ( a , b , c ) { var d = null ; if ( a . iter ( b . line , c . line + 1 , function ( a ) { if ( a . markedSpans ) for ( var b = 0 ; b < a . markedSpans . length ; ++ b ) { var c = a . markedSpans [ b ] . marker ; ! c . readOnly || d && De ( d , c ) != - 1 || ( d || ( d = [ ] ) ) . push ( c ) } } ) , ! d ) return null ; for ( var e = [ { from : b , to : c } ] , f = 0 ; f < d . length ; ++ f ) for ( var g = d [ f ] , h = g . find ( 0 ) , i = 0 ; i < e . length ; ++ i ) { var j = e [ i ] ; if ( ! ( Gf ( j . to , h . from ) < 0 || Gf ( j . from , h . to ) > 0 ) ) { var k = [ i , 1 ] , l = Gf ( j . from , h . from ) , m = Gf ( j . to , h . to ) ; ( l < 0 || ! g . inclusiveLeft && ! l ) && k . push ( { from : j . from , to : h . from } ) , ( m > 0 || ! g . inclusiveRight && ! m ) && k . push ( { from : h . to , to : j . to } ) , e . splice . apply ( e , k ) , i += k . length - 1 } } return e } function fd ( a ) { var b = a . markedSpans ; if ( b ) { for ( var c = 0 ; c < b . length ; ++ c ) b [ c ] . marker . detachLine ( a ) ; a . markedSpans = null } } function gd ( a , b ) { if ( b ) { for ( var c = 0 ; c < b . length ; ++ c ) b [ c ] . marker . attachLine ( a ) ; a . markedSpans = b } } function hd ( a ) { return a . inclusiveLeft ? - 1 : 0 } function id ( a ) { return a . inclusiveRight ? 1 : 0 } function jd ( a , b ) { var c = a . lines . length - b . lines . length ; if ( 0 != c ) return c ; var d = a . find ( ) , e = b . find ( ) , f = Gf ( d . from , e . from ) || hd ( a ) - hd ( b ) ; if ( f ) return - f ; var g = Gf ( d . to , e . to ) || id ( a ) - id ( b ) ; return g ? g : b . id - a . id } function kd ( a , b ) { var c , d = Ef && a . markedSpans ; if ( d ) for ( var e , f = 0 ; f < d . length ; ++ f ) e = d [ f ] , e . marker . collapsed && null == ( b ? e . from : e . to ) && ( ! c || jd ( c , e . marker ) < 0 ) && ( c = e . marker ) ; return c } function ld ( a ) { return kd ( a , ! 0 ) } function md ( a ) { return kd ( a , ! 1 ) } function nd ( a , b , c , d , e ) { var f = Vd ( a , b ) , g = Ef && f . markedSpans ; if ( g ) for ( var h = 0 ; h < g . length ; ++ h ) { var i = g [ h ] ; if ( i . marker . collapsed ) { var j = i . marker . find ( 0 ) , k = Gf ( j . from , c ) || hd ( i . marker ) - hd ( e ) , l = Gf ( j . to , d ) || id ( i . marker ) - id ( e ) ; if ( ! ( k >= 0 && l <= 0 || k <= 0 && l >= 0 ) && ( k <= 0 && ( Gf ( j . to , c ) > 0 || i . marker . inclusiveRight && e . inclusiveLeft ) || k >= 0 && ( Gf ( j . from , d ) < 0 || i . marker . inclusiveLeft && e . inclusiveRight ) ) ) return ! 0 } } } function od ( a ) { for ( var b ; b = ld ( a ) ; ) a = b . find ( - 1 , ! 0 ) . line ; return a } function pd ( a ) { for ( var b , c ; b = md ( a ) ; ) a = b . find ( 1 , ! 0 ) . line , ( c || ( c = [ ] ) ) . push ( a ) ; return c } function qd ( a , b ) { var c = Vd ( a , b ) , d = od ( c ) ; return c == d ? b : Zd ( d ) } function rd ( a , b ) { if ( b > a . lastLine ( ) ) return b ; var c , d = Vd ( a , b ) ; if ( ! sd ( a , d ) ) return b ; for ( ; c = md ( d ) ; ) d = c . find ( 1 , ! 0 ) . line ; return Zd ( d ) + 1 } function sd ( a , b ) { var c = Ef && b . markedSpans ; if ( c ) for ( var d , e = 0 ; e < c . length ; ++ e ) if ( d = c [ e ] , d . marker . collapsed ) { if ( null == d . from ) return ! 0 ; if ( ! d . marker . widgetNode && 0 == d . from && d . marker . inclusiveLeft && td ( a , b , d ) ) return ! 0 } } function td ( a , b , c ) { if ( null == c . to ) { var d = c . marker . find ( 1 , ! 0 ) ; return td ( a , d . line , Yc ( d . line . markedSpans , c . marker ) ) } if ( c . marker . inclusiveRight && c . to == b . text . length ) return ! 0 ; for ( var e , f = 0 ; f < b . markedSpans . length ; ++ f ) if ( e = b . markedSpans [ f ] , e . marker . collapsed && ! e . marker . widgetNode && e . from == c . to && ( null == e . to || e . to != c . from ) && ( e . marker . inclusiveLeft || c . marker . inclusiveRight ) && td ( a , b , e ) ) return ! 0 } function ud ( a , b , c ) { _d ( b ) < ( a . curOp && a . curOp . scrollTop || a . doc . scrollTop ) && Hc ( a , null , c ) } function vd ( a ) { if ( null != a . height ) return a . height ; var b = a . doc . cm ; if ( ! b ) return 0 ; if ( ! Ng ( document . body , a . node ) ) { var c = "position: relative;" ; a . coverGutter && ( c += "margin-left: -" + b . display . gutters . offsetWidth + "px;" ) , a . noHScroll && ( c += "width: " + b . display . wrapper . clientWidth + "px;" ) , Oe ( b . display . measure , Me ( "div" , [ a . node ] , null , c ) ) } return a . height = a . node . offsetHeight } function wd ( a , b , c , d ) { var e = new mg ( a , c , d ) , f = a . cm ; return f && e . noHScroll && ( f . display . alignWidgets = ! 0 ) , Lc ( a , b , "widget" , function ( b ) { var c = b . widgets || ( b . widgets = [ ] ) ; if ( null == e . insertAt ? c . push ( e ) : c . splice ( Math . min ( c . length - 1 , Math . max ( 0 , e . insertAt ) ) , 0 , e ) , e . line = b , f && ! sd ( a , b ) ) { var d = _d ( b ) < a . scrollTop ; Yd ( b , b . height + vd ( e ) ) , d && Hc ( f , null , e . height ) , f . curOp . forceUpdate = ! 0 } return ! 0 } ) , e } function xd ( a , b , c , d ) { a . text = b , a . stateAfter && ( a . stateAfter = null ) , a . styles && ( a . styles = null ) , null != a . order && ( a . order = null ) , fd ( a ) , gd ( a , c ) ; var e = d ? d ( a ) : 1 ; e != a . height && Yd ( a , e ) } function yd ( a ) { a . parent = null , fd ( a ) } function zd ( a , b ) { if ( a ) for ( ; ; ) { var c = a . match ( /(?:^|\s+)line-(background-)?(\S+)/
this . showMultipleSelections ( a ) ) } , showPrimarySelection : function ( ) { var a = window . getSelection ( ) , b = this . cm . doc . sel . primary ( ) , c = ia ( this . cm , a . anchorNode , a . anchorOffset ) , d = ia ( this . cm , a . focusNode , a . focusOffset ) ; if ( ! c || c . bad || ! d || d . bad || 0 != Gf ( X ( c , d ) , b . from ( ) ) || 0 != Gf ( W ( c , d ) , b . to ( ) ) ) { var e = ga ( this . cm , b . from ( ) ) , f = ga ( this . cm , b . to ( ) ) ; if ( e || f ) { var g = this . cm . display . view , h = a . rangeCount && a . getRangeAt ( 0 ) ; if ( e ) { if ( ! f ) { var i = g [ g . length - 1 ] . measure , j = i . maps ? i . maps [ i . maps . length - 1 ] : i . map ; f = { node : j [ j . length - 1 ] , offset : j [ j . length - 2 ] - j [ j . length - 3 ] } } } else e = { node : g [ 0 ] . measure . map [ 2 ] , offset : 0 } ; try { var k = Jg ( e . node , e . offset , f . offset , f . node ) } catch ( l ) { } k && ( a . removeAllRanges ( ) , a . addRange ( k ) , h && null == a . anchorNode ? a . addRange ( h ) : kf && this . startGracePeriod ( ) ) , this . rememberSelection ( ) } } } , startGracePeriod : function ( ) { var a = this ; clearTimeout ( this . gracePeriod ) , this . gracePeriod = setTimeout ( function ( ) { a . gracePeriod = ! 1 , a . selectionChanged ( ) && a . cm . operation ( function ( ) { a . cm . curOp . selectionChanged = ! 0 } ) } , 20 ) } , showMultipleSelections : function ( a ) { Oe ( this . cm . display . cursorDiv , a . cursors ) , Oe ( this . cm . display . selectionDiv , a . selection ) } , rememberSelection : function ( ) { var a = window . getSelection ( ) ; this . lastAnchorNode = a . anchorNode , this . lastAnchorOffset = a . anchorOffset , this . lastFocusNode = a . focusNode , this . lastFocusOffset = a . focusOffset } , selectionInEditor : function ( ) { var a = window . getSelection ( ) ; if ( ! a . rangeCount ) return ! 1 ; var b = a . getRangeAt ( 0 ) . commonAncestorContainer ; return Ng ( this . div , b ) } , focus : function ( ) { "nocursor" != this . cm . options . readOnly && this . div . focus ( ) } , blur : function ( ) { this . div . blur ( ) } , getField : function ( ) { return this . div } , supportsTouch : function ( ) { return ! 0 } , receivedFocus : function ( ) { function a ( ) { b . cm . state . focused && ( b . pollSelection ( ) , b . polling . set ( b . cm . options . pollInterval , a ) ) } var b = this ; this . selectionInEditor ( ) ? this . pollSelection ( ) : Cb ( this . cm , function ( ) { b . cm . curOp . selectionChanged = ! 0 } ) , this . polling . set ( this . cm . options . pollInterval , a ) } , selectionChanged : function ( ) { var a = window . getSelection ( ) ; return a . anchorNode != this . lastAnchorNode || a . anchorOffset != this . lastAnchorOffset || a . focusNode != this . lastFocusNode || a . focusOffset != this . lastFocusOffset } , pollSelection : function ( ) { if ( ! this . composing && ! this . gracePeriod && this . selectionChanged ( ) ) { var a = window . getSelection ( ) , b = this . cm ; this . rememberSelection ( ) ; var c = ia ( b , a . anchorNode , a . anchorOffset ) , d = ia ( b , a . focusNode , a . focusOffset ) ; c && d && Cb ( b , function ( ) { Ba ( b . doc , oa ( c , d ) , Dg ) , ( c . bad || d . bad ) && ( b . curOp . selectionChanged = ! 0 ) } ) } } , pollContent : function ( ) { var a = this . cm , b = a . display , c = a . doc . sel . primary ( ) , d = c . from ( ) , e = c . to ( ) ; if ( d . line < b . viewFrom || e . line > b . viewTo - 1 ) return ! 1 ; var f ; if ( d . line == b . viewFrom || 0 == ( f = Lb ( a , d . line ) ) ) var g = Zd ( b . view [ 0 ] . line ) , h = b . view [ 0 ] . node ; else var g = Zd ( b . view [ f ] . line ) , h = b . view [ f - 1 ] . node . nextSibling ; var i = Lb ( a , e . line ) ; if ( i == b . view . length - 1 ) var j = b . viewTo - 1 , k = b . lineDiv . lastChild ; else var j = Zd ( b . view [ i + 1 ] . line ) - 1 , k = b . view [ i + 1 ] . node . previousSibling ; for ( var l = Ug ( ka ( a , h , k , g , j ) ) , m = Wd ( a . doc , Ff ( g , 0 ) , Ff ( j , Vd ( a . doc , j ) . text . length ) ) ; l . length > 1 && m . length > 1 ; ) if ( Ce ( l ) == Ce ( m ) ) l . pop ( ) , m . pop ( ) , j -- ; else { if ( l [ 0 ] != m [ 0 ] ) break ; l . shift ( ) , m . shift ( ) , g ++ } for ( var n = 0 , o = 0 , p = l [ 0 ] , q = m [ 0 ] , r = Math . min ( p . length , q . length ) ; n < r && p . charCodeAt ( n ) == q . charCodeAt ( n ) ; ) ++ n ; for ( var s = Ce ( l ) , t = Ce ( m ) , u = Math . min ( s . length - ( 1 == l . length ? n : 0 ) , t . length - ( 1 == m . length ? n : 0 ) ) ; o < u && s . charCodeAt ( s . length - o - 1 ) == t . charCodeAt ( t . length - o - 1 ) ; ) ++ o ; l [ l . length - 1 ] = s . slice ( 0 , s . length - o ) , l [ 0 ] = l [ 0 ] . slice ( n ) ; var v = Ff ( g , n ) , w = Ff ( j , m . length ? Ce ( m ) . length - o : 0 ) ; return l . length > 1 || l [ 0 ] || Gf ( v , w ) ? ( Cc ( a . doc , l , v , w , "+input" ) , ! 0 ) : void 0 } , ensurePolled : function ( ) { this . forceCompositionEnd ( ) } , reset : function ( ) { this . forceCompositionEnd ( ) } , forceCompositionEnd : function ( ) { this . composing && ! this . composing . handled && ( this . applyComposition ( this . composing ) , this . composing . handled = ! 0 , this . div . blur ( ) , this . div . focus ( ) ) } , applyComposition : function ( a ) { a . data && a . data != a . startData && Db ( this . cm , $ ) ( this . cm , a . data , 0 , a . sel ) } , setUneditable : function ( a ) { a . setAttribute ( "contenteditable" , "false" ) } , onKeyPress : function ( a ) { a . preventDefault ( ) , Db ( this . cm , $ ) ( this . cm , String . fromCharCode ( null == a . charCode ? a . keyCode : a . charCode ) , 0 ) } , onContextMenu : Fe , resetPosition : Fe , needsContentA
if ( null != d && b ) { for ( var e = 0 ; e < b . length ; ++ e ) b [ e ] == this && b . splice ( e -- , 1 ) ; b . length || ( c . widgets = null ) ; var f = vd ( this ) ; Yd ( c , Math . max ( 0 , c . height - f ) ) , a && Cb ( a , function ( ) { ud ( a , c , - f ) , Jb ( a , d , "widget" ) } ) } } , mg . prototype . changed = function ( ) { var a = this . height , b = this . doc . cm , c = this . line ; this . height = null ; var d = vd ( this ) - a ; d && ( Yd ( c , c . height + d ) , b && Cb ( b , function ( ) { b . curOp . forceUpdate = ! 0 , ud ( b , c , d ) } ) ) } ; var ng = a . Line = function ( a , b , c ) { this . text = a , gd ( this , b ) , this . height = c ? c ( this ) : 1 } ; ye ( ng ) , ng . prototype . lineNo = function ( ) { return Zd ( this ) } ; var og = { } , pg = { } ; Rd . prototype = { chunkSize : function ( ) { return this . lines . length } , removeInner : function ( a , b ) { for ( var c = a , d = a + b ; c < d ; ++ c ) { var e = this . lines [ c ] ; this . height -= e . height , yd ( e ) , te ( e , "delete" ) } this . lines . splice ( a , b ) } , collapse : function ( a ) { a . push . apply ( a , this . lines ) } , insertInner : function ( a , b , c ) { this . height += c , this . lines = this . lines . slice ( 0 , a ) . concat ( b ) . concat ( this . lines . slice ( a ) ) ; for ( var d = 0 ; d < b . length ; ++ d ) b [ d ] . parent = this } , iterN : function ( a , b , c ) { for ( var d = a + b ; a < d ; ++ a ) if ( c ( this . lines [ a ] ) ) return ! 0 } } , Sd . prototype = { chunkSize : function ( ) { return this . size } , removeInner : function ( a , b ) { this . size -= b ; for ( var c = 0 ; c < this . children . length ; ++ c ) { var d = this . children [ c ] , e = d . chunkSize ( ) ; if ( a < e ) { var f = Math . min ( b , e - a ) , g = d . height ; if ( d . removeInner ( a , f ) , this . height -= g - d . height , e == f && ( this . children . splice ( c -- , 1 ) , d . parent = null ) , 0 == ( b -= f ) ) break ; a = 0 } else a -= e } if ( this . size - b < 25 && ( this . children . length > 1 || ! ( this . children [ 0 ] instanceof Rd ) ) ) { var h = [ ] ; this . collapse ( h ) , this . children = [ new Rd ( h ) ] , this . children [ 0 ] . parent = this } } , collapse : function ( a ) { for ( var b = 0 ; b < this . children . length ; ++ b ) this . children [ b ] . collapse ( a ) } , insertInner : function ( a , b , c ) { this . size += b . length , this . height += c ; for ( var d = 0 ; d < this . children . length ; ++ d ) { var e = this . children [ d ] , f = e . chunkSize ( ) ; if ( a <= f ) { if ( e . insertInner ( a , b , c ) , e . lines && e . lines . length > 50 ) { for ( ; e . lines . length > 50 ; ) { var g = e . lines . splice ( e . lines . length - 25 , 25 ) , h = new Rd ( g ) ; e . height -= h . height , this . children . splice ( d + 1 , 0 , h ) , h . parent = this } this . maybeSpill ( ) } break } a -= f } } , maybeSpill : function ( ) { if ( ! ( this . children . length <= 10 ) ) { var a = this ; do { var b = a . children . splice ( a . children . length - 5 , 5 ) , c = new Sd ( b ) ; if ( a . parent ) { a . size -= c . size , a . height -= c . height ; var d = De ( a . parent . children , a ) ; a . parent . children . splice ( d + 1 , 0 , c ) } else { var e = new Sd ( a . children ) ; e . parent = a , a . children = [ e , c ] , a = e } c . parent = a . parent } while ( a . children . length > 10 ) ; a . parent . maybeSpill ( ) } } , iterN : function ( a , b , c ) { for ( var d = 0 ; d < this . children . length ; ++ d ) { var e = this . children [ d ] , f = e . chunkSize ( ) ; if ( a < f ) { var g = Math . min ( b , f - a ) ; if ( e . iterN ( a , g , c ) ) return ! 0 ; if ( 0 == ( b -= g ) ) break ; a = 0 } else a -= f } } } ; var qg = 0 , rg = a . Doc = function ( a , b , c ) { if ( ! ( this instanceof rg ) ) return new rg ( a , b , c ) ; null == c && ( c = 0 ) , Sd . call ( this , [ new Rd ( [ new ng ( "" , null ) ] ) ] ) , this . first = c , this . scrollTop = this . scrollLeft = 0 , this . cantEdit = ! 1 , this . cleanGeneration = 1 , this . frontier = c ; var d = Ff ( c , 0 ) ; this . sel = oa ( d ) , this . history = new be ( null ) , this . id = ++ qg , this . modeOption = b , "string" == typeof a && ( a = Ug ( a ) ) , Qd ( this , { from : d , to : d , text : a } ) , Ba ( this , oa ( d ) , Dg ) } ; rg . prototype = Ge ( Sd . prototype , { constructor : rg , iter : function ( a , b , c ) { c ? this . iterN ( a - this . first , b - a , c ) : this . iterN ( this . first , this . first + this . size , a ) } , insert : function ( a , b ) { for ( var c = 0 , d = 0 ; d < b . length ; ++ d ) c += b [ d ] . height ; this . insertInner ( a - this . first , b , c ) } , remove : function ( a , b ) { this . removeInner ( a - this . first , b ) } , getValue : function ( a , b ) { var c = Xd ( this , this . first , this . first + this . size , b ) ; return a === ! 1 ? c : c . join ( a || "\n" ) } , setValue : Fb ( function ( a ) { var b = Ff ( this . first , 0 ) , c = this . first + this . size - 1 ; wc ( this , { from : b , to : Ff ( c , Vd ( this , c ) . text . length ) , text : Ug ( a ) , origin : "setValue" , full : ! 0 } , ! 0 ) , Ba ( this , oa ( b ) ) } ) , replaceRange : function ( a , b , c , d ) { b = qa ( this , b ) , c = c ? qa ( this , c ) : b , Cc ( this , a , b , c , d ) } , getRange : function ( a , b , c ) { var d = Wd ( this , qa ( this , a ) , qa ( this , b ) ) ; return c === ! 1 ? d : d . join ( c || "\n" ) } , getLine : function ( a ) { var b = this . getLineHandle ( a ) ; return b && b . text } , getLineHandle : function ( a ) { if ( sa ( this , a ) ) return Vd ( this , a ) } , getLineNumber : function ( a ) { return Zd ( a ) } , getLineHandleVisualStart : function ( a ) { return "number" == typeof a && ( a = Vd ( this , a ) ) , od ( a ) } , lineCount : function ( ) { return this . size } , firstLine : function ( ) { return this . first } , lastLine : function ( ) { return this . first + this . size - 1 } , clipPo
var c = b . text , d = b . text , e = 0 ; return d . text = c , _ . forEach ( b . markedSpans , function ( b , c ) { switch ( b . marker . className ) { case "fieldName" : var f = b . to - b . from , g = b . from + e + 1 , h = f - 2 , i = a [ d . substr ( g , h ) ] ; d = d . substr ( 0 , b . from + e ) + "${" + i + "}" + d . substr ( b . to + e , d . length ) , e += i . length - f + 3 } } ) , d } ) } , setValue : function ( a ) { this . editor . setValue ( a ) } , setFieldTextValueMap : function ( a ) { this . options . fieldTextValueMap = a } , refresh : function ( ) { var a = this ; BI . nextTick ( function ( ) { a . editor . refresh ( ) } ) } } ) , BI . FormulaEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . FormulaEditor . EVENT _BLUR = "EVENT_BLUR" , BI . FormulaEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . shortcut ( "bi.formula_editor" , BI . FormulaEditor ) , $ . extend ( BI , { Msg : function ( ) { var a , b , c ; return { alert : function ( a , b , c ) { this . _show ( ! 1 , a , b , c ) } , confirm : function ( a , b , c ) { this . _show ( ! 0 , a , b , c ) } , prompt : function ( a , b , c , d , e ) { } , toast : function ( a , b , c ) { b = b || { } , c = c || $ ( "body" ) ; var d = b . level || "normal" , e = ! ! BI . isNull ( b . autoClose ) || b . autoClose , f = BI . createWidget ( { type : "bi.toast" , cls : "bi-message-animate bi-message-leave" , level : d , autoClose : e , text : a } ) ; BI . createWidget ( { type : "bi.absolute" , element : c , items : [ { el : f , left : "50%" , top : 10 } ] } ) , f . element . css ( { "margin-left" : - 1 * f . element . outerWidth ( ) / 2 } ) , f . element . removeClass ( "bi-message-leave" ) . addClass ( "bi-message-enter" ) , e && BI . delay ( function ( ) { f . element . removeClass ( "bi-message-enter" ) . addClass ( "bi-message-leave" ) , BI . delay ( function ( ) { f . destroy ( ) } , 1e3 ) } , 5e3 ) } , _show : function ( d , e , f , g ) { b = $ ( '<div class="bi-z-index-mask">' ) . css ( { position : "absolute" , zIndex : BI . zIndex _tip - 2 , top : 0 , left : 0 , right : 0 , bottom : 0 , opacity : . 5 } ) . appendTo ( "body" ) , c = $ ( '<div class="bi-message-depend">' ) . css ( { position : "absolute" , zIndex : BI . zIndex _tip - 1 , top : 0 , left : 0 , right : 0 , bottom : 0 } ) . appendTo ( "body" ) ; var h = function ( ) { a . destroy ( ) , b . remove ( ) } , i = [ ] ; d === ! 0 && i . push ( { el : { type : "bi.button" , text : BI . i18nText ( "BI-Basic_Cancel" ) , height : 30 , level : "ignore" , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 1 ] ) } } } ) , i . push ( { el : { type : "bi.button" , text : BI . i18nText ( "BI-Basic_OK" ) , height : 30 , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 0 ] ) } } } ) ; var j = { element : c , type : "bi.center_adapt" , items : [ { type : "bi.border" , cls : "bi-message-content bi-card" , items : { north : { el : { type : "bi.border" , cls : "bi-message-title bi-background" , items : { center : { el : { type : "bi.label" , text : e || BI . i18nText ( "BI-Basic_Prompt" ) , textAlign : "left" , hgap : 20 , height : 50 } } , east : { el : { type : "bi.icon_button" , cls : "bi-message-close close-font" , handler : function ( ) { h ( ) } } , width : 60 } } } , height : 50 } , center : { el : { type : "bi.text" , cls : "bi-message-text" , tgap : 60 , hgap : 20 , lineHeight : 30 , whiteSpace : "normal" , text : f } } , south : { el : { type : "bi.absolute" , items : [ { el : { type : "bi.right_vertical_adapt" , hgap : 5 , items : i } , top : 0 , left : 20 , right : 20 , bottom : 0 } ] } , height : 60 } } , width : 400 , height : 300 } ] } ; a = BI . createWidget ( j ) } } } ( ) } ) , BI . GridView = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . GridView . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-grid-view" , overflowX : ! 0 , overflowY : ! 0 , overscanColumnCount : 0 , overscanRowCount : 0 , rowHeightGetter : BI . emptyFn , columnWidthGetter : BI . emptyFn , scrollLeft : 0 , scrollTop : 0 , items : [ ] } ) } , _init : function ( ) { BI . GridView . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . renderedCells = [ ] , this . renderedKeys = [ ] , this . renderRange = { } , this . _scrollLock = ! 1 , this . _debounceRelease = BI . debounce ( function ( ) { a . _scrollLock = ! 1 } , 1e3 / 60 ) , this . container = BI . createWidget ( { type : "bi.absolute" } ) , this . element . scroll ( function ( ) { a . _scrollLock !== ! 0 && ( b . scrollLeft = a . element . scrollLeft ( ) , b . scrollTop = a . element . scrollTop ( ) , a . _calculateChildrenToRender ( ) , a . fireEvent ( BI . GridView . EVENT _SCROLL , { scrollLeft : b . scrollLeft , scrollTop : b . scrollTop } ) ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , scrollable : b . overflowX === ! 0 && b . overflowY === ! 0 , scrolly : b . overflowX === ! 1 && b . overflowY === ! 0 , scrollx : b . overflowX === ! 0 && b . overflowY === ! 1 , items : [ this . container ] } ) , b . items . length > 0 && this . _populate ( ) , 0 === b . scrollLeft && 0 === b . scrollTop || BI . nextTick ( function ( ) { a . element . scrollTop ( b . scrollTop ) , a . element . scrollLeft ( b . scrollLeft ) } ) } , _getOverscanIndices : function ( a , b , c , d ) { return { overscanStartIndex : Math . max ( 0 , c - b ) , overscanStopIndex : Math . min ( a - 1 , d + b ) } } , _calculateChildrenToRender : function ( ) { var a
value : a . value } ) , a . block === ! 0 && this . element . addClass ( "block" ) , a . clear === ! 0 && this . element . addClass ( "clear" ) , a . ghost === ! 0 && this . element . addClass ( "ghost" ) , a . minWidth > 0 && this . element . css ( { "min-width" : a . minWidth + "px" } ) } , doClick : function ( ) { BI . Button . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . Button . EVENT _CHANGE , this ) } , setText : function ( a ) { BI . Button . superclass . setText . apply ( this , arguments ) , this . text . setText ( a ) } , setValue : function ( a ) { BI . Button . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || this . text . setValue ( a ) } , 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 ) } , destroy : function ( ) { BI . Button . superclass . destroy . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.button" , BI . Button ) , BI . Button . EVENT _CHANGE = "EVENT_CHANGE" } ( jQuery ) , BI . TextButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . TextButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-button" , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : 0 , lgap : 0 , rgap : 0 , text : "" , py : "" } ) } , _init : function ( ) { BI . TextButton . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : a . textAlign , whiteSpace : a . whiteSpace , textWidth : a . textWidth , textHeight : a . textHeight , forceCenter : a . forceCenter , width : a . width , height : a . height , hgap : a . hgap , lgap : a . lgap , rgap : a . rgap , text : a . text , value : a . value , py : a . py , keyword : a . keyword } ) } , doClick : function ( ) { BI . TextButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TextButton . EVENT _CHANGE , this . getValue ( ) , this ) } , 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 ) } , setText : function ( a ) { BI . TextButton . superclass . setText . apply ( this , arguments ) , a = BI . isArray ( a ) ? a . join ( "," ) : a , this . text . setText ( a ) } , setStyle : function ( a ) { this . text . setStyle ( a ) } , setValue : function ( a ) { BI . TextButton . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || ( a = BI . isArray ( a ) ? a . join ( "," ) : a , this . text . setValue ( a ) ) } } ) , BI . TextButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_button" , BI . TextButton ) , BI . BlankIconIconTextItem = BI . inherit ( BI . BasicButton , { _const : { commonWidth : 25 } , _defaultConfig : function ( ) { var a = BI . BlankIconIconTextItem . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-blank-icon-text-item" , logic : { dynamic : ! 1 } , iconCls1 : "close-ha-font" , iconCls2 : "close-ha-font" , blankWidth : 0 , iconHeight : null , iconWidth : null , textHgap : 0 , textVgap : 0 , textLgap : 0 , textRgap : 0 } ) } , _init : function ( ) { BI . BlankIconIconTextItem . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _const , c = BI . createWidget ( { type : "bi.layout" , width : a . blankWidth , height : a . height } ) ; 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 . icon1 = BI . createWidget ( { type : "bi.icon_button" , cls : a . iconCls1 , forceNotSelected : ! 0 , width : b . commonWidth , height : a . height } ) , this . icon2 = BI . createWidget ( { type : "bi.icon_button" , cls : a . iconCls2 , forceNotSelected : ! 0 , width : b . commonWidth , height : a . height } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , c , this . icon1 , this . icon2 , this . text ) } ) ) ) ) } , doClick : function ( ) { BI . BlankIconIconTextItem . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . BlankIconIconTextItem . EVENT _CHANGE , this . getValue ( ) , this ) } , setSelected : function ( a ) { BI . BlankIconIconTextItem . superclass . setSelected . apply ( this , arguments ) , this . icon1 . setSelected ( a ) , th
BI . Editor . EVENT _SPACE = "EVENT_SPACE" , BI . Editor . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . Editor . EVENT _START = "EVENT_START" , BI . Editor . EVENT _PAUSE = "EVENT_PAUSE" , BI . Editor . EVENT _STOP = "EVENT_STOP" , BI . Editor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . Editor . EVENT _VALID = "EVENT_VALID" , BI . Editor . EVENT _ERROR = "EVENT_ERROR" , BI . Editor . EVENT _ENTER = "EVENT_ENTER" , BI . Editor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . Editor . EVENT _REMOVE = "EVENT_REMOVE" , BI . Editor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.editor" , BI . Editor ) , BI . MultifileEditor = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . MultifileEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-multifile-editor" , multiple : ! 1 , maxSize : - 1 , accept : "" , url : "" } ) } , _init : function ( ) { var a = this , b = this . options ; BI . MultifileEditor . superclass . _init . apply ( this , arguments ) , this . file = BI . createWidget ( { type : "bi.file" , cls : "multifile-editor" , width : "100%" , height : "100%" , name : b . name , url : b . url , multiple : b . multiple , accept : b . accept , maxSize : b . maxSize } ) , this . file . on ( BI . File . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _CHANGE , arguments ) } ) , this . file . on ( BI . File . EVENT _UPLOADSTART , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _UPLOADSTART , arguments ) } ) , this . file . on ( BI . File . EVENT _ERROR , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _ERROR , arguments ) } ) , this . file . on ( BI . File . EVENT _PROGRESS , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _PROGRESS , arguments ) } ) , this . file . on ( BI . File . EVENT _UPLOADED , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _UPLOADED , arguments ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.adaptive" , scrollable : ! 1 , items : [ this . file ] } , top : 0 , right : 0 , left : 0 , bottom : 0 } ] } ) } , select : function ( ) { this . file . select ( ) } , getValue : function ( ) { return this . file . getValue ( ) } , upload : function ( ) { this . file . upload ( ) } , reset : function ( ) { this . file . reset ( ) } } ) , BI . MultifileEditor . EVENT _CHANGE = "MultifileEditor.EVENT_CHANGE" , BI . MultifileEditor . EVENT _UPLOADSTART = "MultifileEditor.EVENT_UPLOADSTART" , BI . MultifileEditor . EVENT _ERROR = "MultifileEditor.EVENT_ERROR" , BI . MultifileEditor . EVENT _PROGRESS = "MultifileEditor.EVENT_PROGRESS" , BI . MultifileEditor . EVENT _UPLOADED = "MultifileEditor.EVENT_UPLOADED" , BI . shortcut ( "bi.multifile_editor" , BI . MultifileEditor ) , BI . TextAreaEditor = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return $ . extend ( BI . TextAreaEditor . superclass . _defaultConfig . apply ( ) , { baseCls : "bi-textarea-editor bi-card" , value : "" } ) } , _init : function ( ) { BI . TextAreaEditor . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this ; this . content = BI . createWidget ( { type : "bi.layout" , tagName : "textarea" , width : "100%" , height : "100%" , cls : "bi-textarea textarea-editor-content display-block" } ) , this . content . element . css ( { resize : "none" } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.adaptive" , items : [ this . content ] } , left : 0 , right : 3 , top : 0 , bottom : 5 } ] } ) , this . content . element . on ( "input propertychange" , function ( a ) { b . _checkWaterMark ( ) , b . fireEvent ( BI . TextAreaEditor . EVENT _CHANGE ) } ) , this . content . element . focus ( function ( ) { b . isValid ( ) && ( b . _focus ( ) , b . fireEvent ( BI . TextAreaEditor . EVENT _FOCUS ) ) , $ ( document ) . bind ( "mousedown." + b . getName ( ) , function ( a ) { BI . DOM . isExist ( b ) && ! b . element . _ _isMouseInBounds _ _ ( a ) && ( $ ( document ) . unbind ( "mousedown." + b . getName ( ) ) , b . content . element . blur ( ) ) } ) } ) , this . content . element . blur ( function ( ) { b . isValid ( ) && ( b . _blur ( ) , b . fireEvent ( BI . TextAreaEditor . EVENT _BLUR ) ) , $ ( document ) . unbind ( "mousedown." + b . getName ( ) ) } ) , BI . isKey ( a . value ) && b . setValue ( a . value ) , BI . isNotNull ( a . style ) && b . setValue ( a . style ) , this . _checkWaterMark ( ) } , _checkWaterMark : function ( ) { var a = this , b = this . options , c = this . getValue ( ) ; BI . isNotEmptyString ( c ) ? ( this . watermark && this . watermark . destroy ( ) , this . watermark = null ) : BI . isNotEmptyString ( b . watermark ) && ( this . watermark ? ( this . watermark . setText ( b . watermark ) , this . watermark . setValid ( ! b . invalid ) , this . watermark . setEnable ( ! b . disabled ) ) : ( this . watermark = BI . createWidget ( { type : "bi.text_button" , cls : "bi-water-mark" , textAlign : "left" , height : 30 , text : b . watermark , invalid : b . invalid , disabled : b . disabled } ) , this . watermark . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . focus ( ) } ) , BI . createWidget ( { type : "bi.absolute"
var a = this . options ; return this . text = BI . createWidget ( { type : "bi.label" , cls : "bubble-text bubble-" + a . level , text : a . text , hgap : 10 , height : 30 } ) } , _top : function ( ) { return BI . createWidget ( { type : "bi.vertical" , items : [ { el : this . _createBubbleText ( ) , height : 30 } , { el : { type : "bi.layout" } , height : 3 } ] } ) } , _bottom : function ( ) { return BI . createWidget ( { type : "bi.vertical" , items : [ { el : { type : "bi.layout" } , height : 3 } , { el : this . _createBubbleText ( ) , height : 30 } ] } ) } , _left : function ( ) { return BI . createWidget ( { type : "bi.right" , items : [ { el : { type : "bi.layout" , width : 3 , height : 30 } } , { el : this . _createBubbleText ( ) } ] } ) } , _right : function ( ) { return BI . createWidget ( { type : "bi.left" , items : [ { el : { type : "bi.layout" , width : 3 , height : 30 } } , { el : this . _createBubbleText ( ) } ] } ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.bubble" , BI . Bubble ) , BI . Toast = BI . inherit ( BI . Tip , { _const : { minWidth : 200 , hgap : 10 } , _defaultConfig : function ( ) { return BI . extend ( BI . Toast . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-toast" , text : "" , level : "success" } ) } , _init : function ( ) { BI . Toast . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . element . css ( { minWidth : this . _const . minWidth + "px" } ) , this . element . addClass ( "toast-" + b . level ) ; var c = function ( a ) { return a . stopPropagation ( ) , a . stopEvent ( ) , ! 1 } ; this . element . bind ( { click : c , mousedown : c , mouseup : c , mouseover : c , mouseenter : c , mouseleave : c , mousemove : c } ) ; var d = "close-font" ; switch ( b . level ) { case "success" : d = "toast-success-font" ; break ; case "error" : d = "toast-error-font" ; break ; case "warning" : d = "toast-warning-font" ; break ; case "normal" : default : d = "toast-message-font" } var e = [ { type : "bi.center_adapt" , cls : d + " toast-icon" , items : [ { type : "bi.icon" } ] , width : 36 } , { el : { type : "bi.label" , whiteSpace : "normal" , text : b . text , textAlign : "left" } , rgap : b . autoClose ? this . _const . hgap : 0 } ] , f = [ 36 , "" ] ; b . autoClose === ! 1 && ( e . push ( { type : "bi.icon_button" , cls : "close-font toast-icon" , handler : function ( ) { a . destroy ( ) } , width : 36 } ) , f . push ( 36 ) ) , this . text = BI . createWidget ( { type : "bi.horizontal_adapt" , element : this , items : e , vgap : 5 , columnSize : f } ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.toast" , BI . Toast ) , BI . Tooltip = BI . inherit ( BI . Tip , { _const : { hgap : 10 } , _defaultConfig : function ( ) { return BI . extend ( BI . Tooltip . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-tooltip" , text : "" , level : "success" , stopEvent : ! 1 , stopPropagation : ! 1 , height : 20 } ) } , _init : function ( ) { BI . Tooltip . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . element . addClass ( "tooltip-" + a . level ) ; var b = function ( b ) { a . stopPropagation && b . stopPropagation ( ) , a . stopEvent && b . stopEvent ( ) } ; this . element . bind ( { click : b , mousedown : b , mouseup : b , mouseover : b , mouseenter : b , mouseleave : b , mousemove : b } ) ; var c = ( a . text + "" ) . split ( "\n" ) ; c . length > 1 ? BI . createWidget ( { type : "bi.vertical" , element : this , hgap : this . _const . hgap , items : BI . map ( c , function ( a , b ) { return { type : "bi.label" , textAlign : "left" , whiteSpace : "normal" , text : b , textHeight : 16 } } ) } ) : this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : "left" , whiteSpace : "normal" , text : a . text , textHeight : 20 , hgap : this . _const . hgap } ) } , setWidth : function ( a ) { this . element . width ( a - 2 * this . _const . hgap ) } , setText : function ( a ) { this . text && this . text . setText ( a ) } , setLevel : function ( a ) { this . element . removeClass ( "tooltip-success" ) . removeClass ( "tooltip-warning" ) , this . element . addClass ( "tooltip-" + a ) } } ) , BI . shortcut ( "bi.tooltip" , BI . Tooltip ) , BI . Trigger = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Trigger . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-trigger cursor-pointer" , height : 24 } ) } , _init : function ( ) { BI . Trigger . superclass . _init . apply ( this , arguments ) } , setKey : function ( ) { } , getKey : function ( ) { } } ) , function ( a ) { a ( CodeMirror ) } ( function ( a ) { function b ( a ) { return "[object Array]" == Object . prototype . toString . call ( a ) } function c ( b ) { var c = b . doc . modeOption ; return "sql" === c && ( c = "text/x-sql" ) , a . resolveMode ( c ) . keywords } function d ( b ) { var c = b . doc . modeOption ; return "sql" === c && ( c = "text/x-sql" ) , a . resolveMode ( c ) . identifierQuote || "`" } function e ( a ) { return "string" == typeof a ? a : a . text } function f ( a , c ) { return b ( c ) && ( c = { columns : c } ) , c . text || ( c . text = a ) , c } function g ( a ) { var c = { } ; if ( b ( a ) ) for ( var d = a . length - 1 ; d >= 0 ; d -- ) { var g = a [ d ] ; c
e += [ i , h , 0 , 0 , h , i ] [ a ] , f += [ h , i , i , h , 0 , 0 ] [ a ] , g += [ 0 , 0 , h , i , i , h ] [ a ] , xa ( e , f , g , d ) } , b . rgb2hsb = function ( a , b , c ) { c = wa ( a , b , c ) , a = c [ 0 ] , b = c [ 1 ] , c = c [ 2 ] ; var d , e , f , g ; return f = N ( a , b , c ) , g = f - O ( a , b , c ) , d = 0 == g ? null : f == a ? ( b - c ) / g : f == b ? ( c - a ) / g + 2 : ( a - b ) / g + 4 , d = ( d + 360 ) % 6 * 60 / 360 , e = 0 == g ? 0 : g / f , { h : d , s : e , b : f , toString : ta } } , b . rgb2hsl = function ( a , b , c ) { c = wa ( a , b , c ) , a = c [ 0 ] , b = c [ 1 ] , c = c [ 2 ] ; var d , e , f , g , h , i ; return g = N ( a , b , c ) , h = O ( a , b , c ) , i = g - h , d = 0 == i ? null : g == a ? ( b - c ) / i : g == b ? ( c - a ) / i + 2 : ( a - b ) / i + 4 , d = ( d + 360 ) % 6 * 60 / 360 , f = ( g + h ) / 2 , e = 0 == i ? 0 : f < . 5 ? i / ( 2 * f ) : i / ( 2 - 2 * f ) , { h : d , s : e , l : f , toString : ua } } , b . _path2string = function ( ) { return this . join ( "," ) . replace ( fa , "$1" ) } ; b . _preload = function ( a , b ) { var c = z . doc . createElement ( "img" ) ; c . style . cssText = "position:absolute;left:-9999em;top:-9999em" , c . onload = function ( ) { b . call ( this ) , this . onload = null , z . doc . body . removeChild ( this ) } , c . onerror = function ( ) { z . doc . body . removeChild ( this ) } , z . doc . body . appendChild ( c ) , c . src = a } ; b . getRGB = e ( function ( a ) { if ( ! a || ( a = H ( a ) ) . indexOf ( "-" ) + 1 ) return { r : - 1 , g : - 1 , b : - 1 , hex : "none" , error : 1 , toString : f } ; if ( "none" == a ) return { r : - 1 , g : - 1 , b : - 1 , hex : "none" , toString : f } ; ! ( ea [ y ] ( a . toLowerCase ( ) . substring ( 0 , 2 ) ) || "#" == a . charAt ( ) ) && ( a = sa ( a ) ) ; var c , d , e , g , h , i , j = a . match ( W ) ; return j ? ( j [ 2 ] && ( e = _ ( j [ 2 ] . substring ( 5 ) , 16 ) , d = _ ( j [ 2 ] . substring ( 3 , 5 ) , 16 ) , c = _ ( j [ 2 ] . substring ( 1 , 3 ) , 16 ) ) , j [ 3 ] && ( e = _ ( ( h = j [ 3 ] . charAt ( 3 ) ) + h , 16 ) , d = _ ( ( h = j [ 3 ] . charAt ( 2 ) ) + h , 16 ) , c = _ ( ( h = j [ 3 ] . charAt ( 1 ) ) + h , 16 ) ) , j [ 4 ] && ( i = j [ 4 ] [ I ] ( da ) , c = $ ( i [ 0 ] ) , "%" == i [ 0 ] . slice ( - 1 ) && ( c *= 2.55 ) , d = $ ( i [ 1 ] ) , "%" == i [ 1 ] . slice ( - 1 ) && ( d *= 2.55 ) , e = $ ( i [ 2 ] ) , "%" == i [ 2 ] . slice ( - 1 ) && ( e *= 2.55 ) , "rgba" == j [ 1 ] . toLowerCase ( ) . slice ( 0 , 4 ) && ( g = $ ( i [ 3 ] ) ) , i [ 3 ] && "%" == i [ 3 ] . slice ( - 1 ) && ( g /= 100 ) ) , j [ 5 ] ? ( i = j [ 5 ] [ I ] ( da ) , c = $ ( i [ 0 ] ) , "%" == i [ 0 ] . slice ( - 1 ) && ( c *= 2.55 ) , d = $ ( i [ 1 ] ) , "%" == i [ 1 ] . slice ( - 1 ) && ( d *= 2.55 ) , e = $ ( i [ 2 ] ) , "%" == i [ 2 ] . slice ( - 1 ) && ( e *= 2.55 ) , ( "deg" == i [ 0 ] . slice ( - 3 ) || "°" == i [ 0 ] . slice ( - 1 ) ) && ( c /= 360 ) , "hsba" == j [ 1 ] . toLowerCase ( ) . slice ( 0 , 4 ) && ( g = $ ( i [ 3 ] ) ) , i [ 3 ] && "%" == i [ 3 ] . slice ( - 1 ) && ( g /= 100 ) , b . hsb2rgb ( c , d , e , g ) ) : j [ 6 ] ? ( i = j [ 6 ] [ I ] ( da ) , c = $ ( i [ 0 ] ) , "%" == i [ 0 ] . slice ( - 1 ) && ( c *= 2.55 ) , d = $ ( i [ 1 ] ) , "%" == i [ 1 ] . slice ( - 1 ) && ( d *= 2.55 ) , e = $ ( i [ 2 ] ) , "%" == i [ 2 ] . slice ( - 1 ) && ( e *= 2.55 ) , ( "deg" == i [ 0 ] . slice ( - 3 ) || "°" == i [ 0 ] . slice ( - 1 ) ) && ( c /= 360 ) , "hsla" == j [ 1 ] . toLowerCase ( ) . slice ( 0 , 4 ) && ( g = $ ( i [ 3 ] ) ) , i [ 3 ] && "%" == i [ 3 ] . slice ( - 1 ) && ( g /= 100 ) , b . hsl2rgb ( c , d , e , g ) ) : ( j = { r : c , g : d , b : e , toString : f } , j . hex = "#" + ( 16777216 | e | d << 8 | c << 16 ) . toString ( 16 ) . slice ( 1 ) , b . is ( g , "finite" ) && ( j . opacity = g ) , j ) ) : { r : - 1 , g : - 1 , b : - 1 , hex : "none" , error : 1 , toString : f } } , b ) , b . hsb = e ( function ( a , c , d ) { return b . hsb2rgb ( a , c , d ) . hex } ) , b . hsl = e ( function ( a , c , d ) { return b . hsl2rgb ( a , c , d ) . hex } ) , b . rgb = e ( function ( a , b , c ) { function d ( a ) { return a + . 5 | 0 } return "#" + ( 16777216 | d ( c ) | d ( b ) << 8 | d ( a ) << 16 ) . toString ( 16 ) . slice ( 1 ) } ) , b . getColor = function ( a ) { var b = this . getColor . start = this . getColor . start || { h : 0 , s : 1 , b : a || . 75 } , c = this . hsb2rgb ( b . h , b . s , b . b ) ; return b . h += . 075 , b . h > 1 && ( b . h = 0 , b . s -= . 2 , b . s <= 0 && ( this . getColor . start = { h : 0 , s : 1 , b : b . b } ) ) , c . hex } , b . getColor . reset = function ( ) { delete this . start } , b . parsePathString = function ( a ) { if ( ! a ) return null ; var c = ya ( a ) ; if ( c . arr ) return Aa ( c . arr ) ; var d = { a : 7 , c : 6 , h : 1 , l : 2 , m : 2 , r : 4 , q : 4 , s : 4 , t : 2 , v : 1 , z : 0 } , e = [ ] ; return b . is ( a , U ) && b . is ( a [ 0 ] , U ) && ( e = Aa ( a ) ) , e . length || H ( a ) . replace ( ga , function ( a , b , c ) { var f = [ ] , g = b . toLowerCase ( ) ; if ( c . replace ( ia , function ( a , b ) { b && f . push ( + b ) } ) , "m" == g && f . length > 2 && ( e . push ( [ b ] [ D ] ( f . splice ( 0 , 2 ) ) ) , g = "l" , b = "m" == b ? "l" : "L" ) , "r" == g ) e . push ( [ b ] [ D ] ( f ) ) ; else for ( ; f . length >= d [ g ] && ( e . push ( [ b ] [ D ] ( f . splice ( 0 , d [ g ] ) ) ) , d [ g ] ) ; ) ; } ) , e . toString = b . _path2string , c . arr = Aa ( e ) , e } , b . parseTransformString = e ( function ( a ) { if ( ! a ) return null ; var c = [ ] ; return b . is ( a , U ) && b . is ( a [ 0 ] , U ) && ( c = Aa ( a ) ) , c . length || H ( a ) . replace ( ha , function ( a , b , d ) { var e = [ ] ; L . call ( b ) ; d . replace ( ia , function ( a , b ) { b && e . push ( + b ) } ) , c . push ( [ b ] [ D ] ( e ) ) } ) , c . toString = b . _path2string , c } ) ; var ya = function ( a ) { var b = ya . ps = ya . ps || { } ; return b [ a ] ? b [ a ] . sleep = 100 : b [ a ] = { sleep : 100 } , setTimeout ( function ( ) { for ( var c in b ) b [ y ] ( c ) && c != a && ( b [ c ] . sleep -- , ! b [ c ] . sleep && delete b [ c ] ) } ) , b [ a ] } ; b . findDotsAtSegment = function ( a , b , c , d , e , f , g , h , i ) { var j = 1 - i , k = Q ( j , 3 ) , l = Q ( j , 2 ) , m = i * i , n = m * i , o = k * a + 3 * l * i * c + 3 * j * i * i * e + n * g , p = k * b + 3 * l * i * d + 3 * j * i * i * f + n * h , q = a + 2 * i * ( c - a ) + m * ( e - 2 * c + a ) , r = b + 2 * i * ( d - b ) + m * ( f - 2 * d + b ) , s = c + 2 * i * ( e - c ) + m * ( g - 2 * e + c ) , t = d + 2 * i * ( f - d ) + m * ( h - 2 * f + d ) , u = j * a + i * c , v = j * b + i * d , w = j * e + i * g , x = j * f + i * h , y = 90 - 180 * M
} ; var jb = function ( a ) { if ( this . items = [ ] , this . length = 0 , this . type = "set" , a ) for ( var b = 0 , c = a . length ; b < c ; b ++ ) ! a [ b ] || a [ b ] . constructor != Xa . constructor && a [ b ] . constructor != jb || ( this [ this . items . length ] = this . items [ this . items . length ] = a [ b ] , this . length ++ ) } , kb = jb . prototype ; kb . push = function ( ) { for ( var a , b , c = 0 , d = arguments . length ; c < d ; c ++ ) a = arguments [ c ] , ! a || a . constructor != Xa . constructor && a . constructor != jb || ( b = this . items . length , this [ b ] = this . items [ b ] = a , this . length ++ ) ; return this } , kb . pop = function ( ) { return this . length && delete this [ this . length -- ] , this . items . pop ( ) } , kb . forEach = function ( a , b ) { for ( var c = 0 , d = this . items . length ; c < d ; c ++ ) if ( a . call ( b , this . items [ c ] , c ) === ! 1 ) return this ; return this } ; for ( var lb in Xa ) Xa [ y ] ( lb ) && ( kb [ lb ] = function ( a ) { return function ( ) { var b = arguments ; return this . forEach ( function ( c ) { c [ a ] [ C ] ( c , b ) } ) } } ( lb ) ) ; return kb . attr = function ( a , c ) { if ( a && b . is ( a , U ) && b . is ( a [ 0 ] , "object" ) ) for ( var d = 0 , e = a . length ; d < e ; d ++ ) this . items [ d ] . attr ( a [ d ] ) ; else for ( var f = 0 , g = this . items . length ; f < g ; f ++ ) this . items [ f ] . attr ( a , c ) ; return this } , kb . clear = function ( ) { for ( ; this . length ; ) this . pop ( ) } , kb . splice = function ( a , b , c ) { a = a < 0 ? N ( this . length + a , 0 ) : a , b = N ( 0 , O ( this . length - a , b ) ) ; var d , e = [ ] , f = [ ] , g = [ ] ; for ( d = 2 ; d < arguments . length ; d ++ ) g . push ( arguments [ d ] ) ; for ( d = 0 ; d < b ; d ++ ) f . push ( this [ a + d ] ) ; for ( ; d < this . length - a ; d ++ ) e . push ( this [ a + d ] ) ; var h = g . length ; for ( d = 0 ; d < h + e . length ; d ++ ) this . items [ a + d ] = this [ a + d ] = d < h ? g [ d ] : e [ d - h ] ; for ( d = this . items . length = this . length -= b - h ; this [ d ] ; ) delete this [ d ++ ] ; return new jb ( f ) } , kb . exclude = function ( a ) { for ( var b = 0 , c = this . length ; b < c ; b ++ ) if ( this [ b ] == a ) return this . splice ( b , 1 ) , ! 0 } , kb . animate = function ( a , c , d , e ) { ( b . is ( d , "function" ) || ! d ) && ( e = d || null ) ; var f , g , h = this . items . length , i = h , j = this ; if ( ! h ) return this ; e && ( g = function ( ) { ! -- h && e . call ( j ) } ) , d = b . is ( d , T ) ? d : g ; var k = b . animation ( a , c , d , g ) ; for ( f = this . items [ -- i ] . animate ( k ) ; i -- ; ) this . items [ i ] && ! this . items [ i ] . removed && this . items [ i ] . animateWith ( f , k , k ) , this . items [ i ] && ! this . items [ i ] . removed || h -- ; return this } , kb . insertAfter = function ( a ) { for ( var b = this . items . length ; b -- ; ) this . items [ b ] . insertAfter ( a ) ; return this } , kb . getBBox = function ( ) { for ( var a = [ ] , b = [ ] , c = [ ] , d = [ ] , e = this . items . length ; e -- ; ) if ( ! this . items [ e ] . removed ) { var f = this . items [ e ] . getBBox ( ) ; a . push ( f . x ) , b . push ( f . y ) , c . push ( f . x + f . width ) , d . push ( f . y + f . height ) } return a = O [ C ] ( 0 , a ) , b = O [ C ] ( 0 , b ) , c = N [ C ] ( 0 , c ) , d = N [ C ] ( 0 , d ) , { x : a , y : b , x2 : c , y2 : d , width : c - a , height : d - b } } , kb . clone = function ( a ) { a = this . paper . set ( ) ; for ( var b = 0 , c = this . items . length ; b < c ; b ++ ) a . push ( this . items [ b ] . clone ( ) ) ; return a } , kb . toString = function ( ) { return "Raphaël‘s set" } , kb . glow = function ( a ) { var b = this . paper . set ( ) ; return this . forEach ( function ( c , d ) { var e = c . glow ( a ) ; null != e && e . forEach ( function ( a , c ) { b . push ( a ) } ) } ) , b } , kb . isPointInside = function ( a , b ) { var c = ! 1 ; return this . forEach ( function ( d ) { if ( d . isPointInside ( a , b ) ) return c = ! 0 , ! 1 } ) , c } , b . registerFont = function ( a ) { if ( ! a . face ) return a ; this . fonts = this . fonts || { } ; var b = { w : a . w , face : { } , glyphs : { } } , c = a . face [ "font-family" ] ; for ( var d in a . face ) a . face [ y ] ( d ) && ( b . face [ d ] = a . face [ d ] ) ; if ( this . fonts [ c ] ? this . fonts [ c ] . push ( b ) : this . fonts [ c ] = [ b ] , ! a . svg ) { b . face [ "units-per-em" ] = _ ( a . face [ "units-per-em" ] , 10 ) ; for ( var e in a . glyphs ) if ( a . glyphs [ y ] ( e ) ) { var f = a . glyphs [ e ] ; if ( b . glyphs [ e ] = { w : f . w , k : { } , d : f . d && "M" + f . d . replace ( /[mlcxtrv]/g , function ( a ) { return { l : "L" , c : "C" , x : "z" , t : "m" , r : "l" , v : "c" } [ a ] || "M" } ) + "z" } , f . k ) for ( var g in f . k ) f [ y ] ( g ) && ( b . glyphs [ e ] . k [ g ] = f . k [ g ] ) } } return a } , u . getFont = function ( a , c , d , e ) { if ( e = e || "normal" , d = d || "normal" , c = + c || { normal : 400 , bold : 700 , lighter : 300 , bolder : 800 } [ c ] || 400 , b . fonts ) { var f = b . fonts [ a ] ; if ( ! f ) { var g = new RegExp ( "(^|\\s)" + a . replace ( /[^\w\d\s+!~.:_-]/g , F ) + "(\\s|$)" , "i" ) ; for ( var h in b . fonts ) if ( b . fonts [ y ] ( h ) && g . test ( h ) ) { f = b . fonts [ h ] ; break } } var i ; if ( f ) for ( var j = 0 , k = f . length ; j < k && ( i = f [ j ] , i . face [ "font-weight" ] != c || i . face [ "font-style" ] != d && i . face [ "font-style" ] || i . face [ "font-stretch" ] != e ) ; j ++ ) ; return i } } , u . print = function ( a , c , d , e , f , g , h , i ) { g = g || "middle" , h = N ( O ( h || 0 , 1 ) , - 1 ) , i = N ( O ( i || 1 , 3 ) , 1 ) ; var j , k = H ( d ) [ I ] ( F ) , l = 0 , m = 0 , n = F ; if ( b . is ( e , "string" ) && ( e = this . getFont ( e ) ) , e ) { j = ( f || 16 ) / e . face [ "units-per-em" ] ; for ( var o = e . face . bbox [ I ] ( v ) , p = + o [ 0 ] , q = o [ 3 ] - o [ 1 ] , r = 0 , s = + o [ 1 ] + ( "baseline" == g ? q + + e . face . descent : q / 2 ) , t = 0 , u = k . length ; t < u ; t ++ ) { if ( "\n" == k [ t ] ) l =
b . raphaelid = this . id , this . X = 0 , this . Y = 0 , this . attrs = { } , this . paper = c , this . matrix = a . matrix ( ) , this . _ = { transform : [ ] , sx : 1 , sy : 1 , dx : 0 , dy : 0 , deg : 0 , dirty : 1 , dirtyT : 1 } , ! c . bottom && ( c . bottom = this ) , this . prev = c . top , c . top && ( c . top . next = this ) , c . top = this , this . next = null } , E = a . el ; D . prototype = E , E . constructor = D , E . transform = function ( b ) { if ( null == b ) return this . _ . transform ; var d , e = this . paper . _viewBoxShift , f = e ? "s" + [ e . scale , e . scale ] + "-1-1t" + [ e . dx , e . dy ] : o ; e && ( d = b = c ( b ) . replace ( /\.{3}|\u2026/g , this . _ . transform || o ) ) , a . _extractTransform ( this , f + b ) ; var g , h = this . matrix . clone ( ) , i = this . skew , j = this . node , k = ~ c ( this . attrs . fill ) . indexOf ( "-" ) , l = ! c ( this . attrs . fill ) . indexOf ( "url(" ) ; if ( h . translate ( 1 , 1 ) , l || k || "image" == this . type ) if ( i . matrix = "1 0 0 1" , i . offset = "0 0" , g = h . split ( ) , k && g . noRotation || ! g . isSimple ) { j . style . filter = h . toFilter ( ) ; var m = this . getBBox ( ) , p = this . getBBox ( 1 ) , q = m . x - p . x , r = m . y - p . y ; j . coordorigin = q * - u + n + r * - u , z ( this , 1 , 1 , q , r , 0 ) } else j . style . filter = o , z ( this , g . scalex , g . scaley , g . dx , g . dy , g . rotate ) ; else j . style . filter = o , i . matrix = c ( h ) , i . offset = h . offset ( ) ; return null !== d && ( this . _ . transform = d , a . _extractTransform ( this , d ) ) , this } , E . rotate = function ( a , b , e ) { if ( this . removed ) return this ; if ( null != a ) { if ( a = c ( a ) . split ( k ) , a . length - 1 && ( b = d ( a [ 1 ] ) , e = d ( a [ 2 ] ) ) , a = d ( a [ 0 ] ) , null == e && ( b = e ) , null == b || null == e ) { var f = this . getBBox ( 1 ) ; b = f . x + f . width / 2 , e = f . y + f . height / 2 } return this . _ . dirtyT = 1 , this . transform ( this . _ . transform . concat ( [ [ "r" , a , b , e ] ] ) ) , this } } , E . translate = function ( a , b ) { return this . removed ? this : ( a = c ( a ) . split ( k ) , a . length - 1 && ( b = d ( a [ 1 ] ) ) , a = d ( a [ 0 ] ) || 0 , b = + b || 0 , this . _ . bbox && ( this . _ . bbox . x += a , this . _ . bbox . y += b ) , this . transform ( this . _ . transform . concat ( [ [ "t" , a , b ] ] ) ) , this ) } , E . scale = function ( a , b , e , f ) { if ( this . removed ) return this ; if ( a = c ( a ) . split ( k ) , a . length - 1 && ( b = d ( a [ 1 ] ) , e = d ( a [ 2 ] ) , f = d ( a [ 3 ] ) , isNaN ( e ) && ( e = null ) , isNaN ( f ) && ( f = null ) ) , a = d ( a [ 0 ] ) , null == b && ( b = a ) , null == f && ( e = f ) , null == e || null == f ) var g = this . getBBox ( 1 ) ; return e = null == e ? g . x + g . width / 2 : e , f = null == f ? g . y + g . height / 2 : f , this . transform ( this . _ . transform . concat ( [ [ "s" , a , b , e , f ] ] ) ) , this . _ . dirtyT = 1 , this } , E . hide = function ( ) { return ! this . removed && ( this . node . style . display = "none" ) , this } , E . show = function ( ) { return ! this . removed && ( this . node . style . display = o ) , this } , E . auxGetBBox = a . el . getBBox , E . getBBox = function ( ) { var a = this . auxGetBBox ( ) ; if ( this . paper && this . paper . _viewBoxShift ) { var b = { } , c = 1 / this . paper . _viewBoxShift . scale ; return b . x = a . x - this . paper . _viewBoxShift . dx , b . x *= c , b . y = a . y - this . paper . _viewBoxShift . dy , b . y *= c , b . width = a . width * c , b . height = a . height * c , b . x2 = b . x + b . width , b . y2 = b . y + b . height , b } return a } , E . _getBBox = function ( ) { return this . removed ? { } : { x : this . X + ( this . bbx || 0 ) - this . W / 2 , y : this . Y - this . H , width : this . W , height : this . H } } , E . remove = function ( ) { if ( ! this . removed && this . node . parentNode ) { this . paper . _ _set _ _ && this . paper . _ _set _ _ . exclude ( this ) , a . eve . unbind ( "raphael.*.*." + this . id ) , a . _tear ( this , this . paper ) , this . node . parentNode . removeChild ( this . node ) , this . shape && this . shape . parentNode . removeChild ( this . shape ) ; for ( var b in this ) this [ b ] = "function" == typeof this [ b ] ? a . _removedFactory ( b ) : null ; this . removed = ! 0 } } , E . attr = function ( c , d ) { if ( this . removed ) return this ; if ( null == c ) { var e = { } ; for ( var f in this . attrs ) this . attrs [ b ] ( f ) && ( e [ f ] = this . attrs [ f ] ) ; return e . gradient && "none" == e . fill && ( e . fill = e . gradient ) && delete e . gradient , e . transform = this . _ . transform , e } if ( null == d && a . is ( c , "string" ) ) { if ( c == j && "none" == this . attrs . fill && this . attrs . gradient ) return this . attrs . gradient ; for ( var g = c . split ( k ) , h = { } , i = 0 , m = g . length ; i < m ; i ++ ) c = g [ i ] , c in this . attrs ? h [ c ] = this . attrs [ c ] : a . is ( this . paper . customAttributes [ c ] , "function" ) ? h [ c ] = this . paper . customAttributes [ c ] . def : h [ c ] = a . _availableAttrs [ c ] ; return m - 1 ? h : h [ g [ 0 ] ] } if ( this . attrs && null == d && a . is ( c , "array" ) ) { for ( h = { } , i = 0 , m = c . length ; i < m ; i ++ ) h [ c [ i ] ] = this . attr ( c [ i ] ) ; return h } var n ; null != d && ( n = { } , n [ c ] = d ) , null == d && a . is ( c , "object" ) && ( n = c ) ; for ( var o in n ) l ( "raphael.attr." + o + "." + this . id , this , n [ o ] ) ; if ( n ) { for ( o in this . paper . customAttributes ) if ( this . paper . customAttributes [ b ] ( o ) && n [ b ] ( o ) && a . is ( this . paper . customAttributes [ o ] , "function" ) ) { var p = this . paper . customAttributes [ o ] . apply ( this , [ ] . concat ( n [ o ] ) ) ; this . attrs [ o ] = n [ o ] ; for ( var q in p ) p [ b ] ( q ) && ( n [ q ] = p [ q ] ) } n . text && "text" == this . type && ( this . textpath . string = n . text ) , B ( this , n ) } r
var b = this . options ; this . cell . setWidth ( b . width - ( 0 === b . _columnIndex ? 1 : 0 ) - 1 ) } , setHeight : function ( a ) { BI . GridTableCell . superclass . setHeight . apply ( this , arguments ) ; var b = this . options ; this . cell . setHeight ( b . height - ( 0 === b . _rowIndex ? 1 : 0 ) - 1 ) } } ) , BI . shortcut ( "bi.grid_table_cell" , BI . GridTableCell ) , BI . GridTable = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . GridTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-grid-table" , headerRowSize : 25 , rowSize : 25 , columnSize : [ ] , isNeedFreeze : ! 1 , freezeCols : [ ] , header : [ ] , items : [ ] , regionColumnSize : [ ] } ) } , render : function ( ) { var a = this , b = this . options ; this . _width = 0 , this . _height = 0 , this . _scrollBarSize = BI . DOM . getScrollWidth ( ) ; var c = function ( ) { return b . rowSize } , d = function ( a ) { return b . columnSize [ a ] } , e = function ( c ) { return b . columnSize [ c + a . _getFreezeColLength ( ) ] } ; this . topLeftGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : d } ) , this . topLeftGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomLeftGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . topRightGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : e } ) , this . topRightGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomRightGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . bottomLeftGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : d } ) , this . bottomLeftGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomRightGrid . setScrollTop ( b . scrollTop ) , a . topLeftGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . bottomRightGrid = BI . createWidget ( { type : "bi.grid_view" , rowHeightGetter : c , columnWidthGetter : e } ) , this . bottomRightGrid . on ( BI . GridView . EVENT _SCROLL , function ( b ) { a . bottomLeftGrid . setScrollTop ( b . scrollTop ) , a . topRightGrid . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . topLeft = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . topLeftGrid ] } ) , this . topRight = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . topRightGrid ] } ) , this . bottomLeft = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . bottomLeftGrid ] } ) , this . bottomRight = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . bottomRightGrid ] } ) , this . contextLayout = BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . topLeft , top : 0 , left : 0 } , { el : this . topRight , top : 0 } , { el : this . bottomLeft , left : 0 } , { el : this . bottomRight } ] } ) , this . topScrollbar = BI . createWidget ( { type : "bi.grid_table_scrollbar" , width : BI . GridTableScrollbar . SIZE } ) , this . topScrollbar . on ( BI . GridTableScrollbar . EVENT _SCROLL , function ( b ) { a . bottomLeftGrid . setScrollTop ( b ) , a . bottomRightGrid . setScrollTop ( b ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . leftScrollbar = BI . createWidget ( { type : "bi.grid_table_horizontal_scrollbar" , height : BI . GridTableScrollbar . SIZE } ) , this . leftScrollbar . on ( BI . GridTableHorizontalScrollbar . EVENT _SCROLL , function ( b ) { a . topLeftGrid . setScrollLeft ( b ) , a . bottomLeftGrid . setScrollLeft ( b ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . rightScrollbar = BI . createWidget ( { type : "bi.grid_table_horizontal_scrollbar" , height : BI . GridTableScrollbar . SIZE } ) , this . rightScrollbar . on ( BI . GridTableHorizontalScrollbar . EVENT _SCROLL , function ( b ) { a . topRightGrid . setScrollLeft ( b ) , a . bottomRightGrid . setScrollLeft ( b ) , a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . scrollBarLayout = BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . topScrollbar , right : 0 , top : 0 } , { el : this . leftScrollbar , left : 0 } , { el : this . rightScrollbar } ] } ) , this . _width = b . width - BI . GridTableScrollbar . SIZE , this . _height = b . height - BI . GridTableScrollbar . SIZE , this . header = this . _getHeader ( ) , this . items = this . _getItems ( ) } , mounted : function ( ) { var a = this . options ; ( a . items . length > 0 || a . header . length > 0 ) && this . _populate ( ) } , _getFreezeColLength : function ( ) { var a = this . options ; return a . isNeedFreeze === ! 0 ? BI . clamp ( a . freezeCols . length , 0 , a . columnSize . length ) : 0 } , _getFreezeHeaderHeig
d [ a ] || ( d [ a ] = { } ) , e [ a ] || ( e [ a ] = { } ) , n [ a ] [ b ] = f , i . isNeedMerge && c . contains ( b ) ) if ( 0 === a && 0 === b ) s ( 0 , 0 ) ; else if ( 0 === b && a > 0 ) { var g = i . mergeRule ( n [ a ] [ b ] , n [ a - 1 ] [ b ] ) ; g === ! 0 ? ( q ( a , b ) , k [ a ] = j [ b ] , l [ a ] = m [ b ] ) : s ( a , b ) } else if ( 0 === a && b > 0 ) { var h = i . mergeRule ( n [ a ] [ b ] , n [ a ] [ b - 1 ] ) ; h === ! 0 ? ( r ( a , b ) , j [ b ] = k [ a ] , m [ b ] = l [ a ] ) : s ( a , b ) } else { var g = i . mergeRule ( n [ a ] [ b ] , n [ a - 1 ] [ b ] ) , h = i . mergeRule ( n [ a ] [ b ] , n [ a ] [ b - 1 ] ) ; if ( h && g ) return ; h && r ( a , b ) , g && q ( a , b ) , h || g || s ( a , b ) } else s ( a , b ) } ) , o . appendChild ( t [ 0 ] ) } ) , o } , _createColGroupCells : function ( a , b ) { var c = this , d = this . options ; a = a || d . columnSize , b = b || { } ; var e = document . createDocumentFragment ( ) ; return BI . each ( a , function ( a , d ) { var f = c . _calculateWidth ( d ) , g = $ ( "<col>" ) . attr ( "width" , f ) . css ( "width" , f ) ; b [ a ] = g , e . appendChild ( g [ 0 ] ) } ) , e } , _createHeaderCells : function ( a , b , c , d , e , f ) { var g = this . options ; f || ( f = 0 ) ; var h = this . _createCells ( a , b , BI . range ( g . columnSize . length ) , d , e , f , g . headerRowSize || g . rowSize ) ; return h } , _createFooterCells : function ( a , b , c , d ) { var e = ( this . options , this . _createCells ( a , b , [ ] , c , d , 0 ) ) ; return e } , _createColGroup : function ( a , b , c ) { this . options ; return this . colgroup = this . _colgroup ( ) , this . colgroup . element . append ( this . _createColGroupCells ( a , b , c ) ) , this . colgroup } , _createHeader : function ( ) { var a = this . options ; if ( a . header !== ! 1 ) return this . header = this . _header ( ) , this . header . element . append ( this . _createHeaderCells ( a . header , null , null , this . headerTds , this . headerItems ) ) , this . header } , _createFooter : function ( a , b , c ) { var d = this . options ; if ( d . footer !== ! 1 ) return this . footer = this . _footer ( ) , this . footer . element . append ( this . _createFooterCells ( d . footer , null , this . footerTds , this . footerItems ) ) , this . footer } , _createBody : function ( ) { var a = this . options ; return this . body = this . _body ( ) , this . body . element . append ( this . _createCells ( a . items , null , null , this . bodyTds , this . bodyItems ) ) , this . body } , _createNormalTable : function ( ) { var a = this , b = this . options , c = this . _table ( ) ; this . colgroupTds = { } , this . headerTds = { } , this . footerTds = { } , this . bodyTds = { } , this . headerItems = { } , this . footerItems = { } , this . bodyItems = { } ; var d = this . _createColGroup ( null , this . colgroupTds ) , e = this . _createHeader ( ) , f = this . _createFooter ( ) , g = this . _createBody ( ) ; BI . createWidget ( { type : "bi.adaptive" , element : c , items : [ d , e , f , g ] } ) ; var h = BI . sum ( this . options . columnSize ) || void 0 ; h = this . _calculateWidth ( h ) , BI . isNumeric ( h ) && h > 1 && ( h += b . columnSize . length ) , this . tableContainer = BI . createWidget ( { type : "bi.adaptive" , width : this . _calculateWidth ( h ) , items : [ c ] } ) , this . scrollBottomRight = BI . createWidget ( { type : "bi.adaptive" , width : "100%" , height : "100%" , cls : "scroll-bottom-right" , scrollable : ! 0 , items : [ this . tableContainer ] } ) , BI . createWidget ( { type : "bi.adaptive" , cls : "bottom-right" , element : this , scrollable : ! 1 , items : [ this . scrollBottomRight ] } ) , this . _initNormalScroll ( ) , BI . nextTick ( function ( ) { a . element . is ( ":visible" ) && a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _INIT ) } ) } , _initNormalScroll : function ( ) { var a = this ; this . scrollBottomRight . element . scroll ( function ( b ) { a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL ) } ) } , _split : function ( a ) { var b = this . options , c = [ ] , d = [ ] , e = this . _isRightFreeze ( ) ; return BI . each ( a , function ( a , f ) { c . push ( [ ] ) , d . push ( [ ] ) , BI . each ( f , function ( f , g ) { b . freezeCols . contains ( f ) ? ( e ? d : c ) [ a ] . push ( g ) : ( e ? c : d ) [ a ] . push ( g ) } ) } ) , { left : c , right : d } } , _table : function ( ) { return BI . createWidget ( { type : "bi.layout" , tagName : "table" , cls : "table" , attribute : { cellspacing : 0 , cellpadding : 0 } } ) } , _header : function ( ) { return BI . createWidget ( { type : "bi.layout" , cls : "header" , tagName : "thead" } ) } , _footer : function ( ) { return BI . createWidget ( { type : "bi.layout" , cls : "footer" , tagName : "tfoot" } ) } , _body : function ( ) { return BI . createWidget ( { type : "bi.layout" , tagName : "tbody" , cls : "body" } ) } , _colgroup : function ( ) { return BI . createWidget ( { type : "bi.layout" , tagName : "colgroup" } ) } , render : function ( ) { this . populate ( this . options . items ) } , setColumnSize : function ( a ) { var b = this , c = this . options , d = this . _isRightFreeze ( ) ; if ( c . columnSize = a || [ ] , c . isNeedFreeze ) { var e = [ ] , f = [ ] ; BI . each ( c . columnSize , function ( a , b ) { c . freezeCols . contains ( a ) ? d ? f . push ( b ) : e . push ( b ) : d ? e . push ( b ) : f . push ( b ) } ) ; var g = 0 , h = 1 , i = 2 , j = 3 , k = function ( a ) { var c , d , k , l ; switch ( a ) { case g : c = b . topLeftColGroupTds , d = b . topLeftBodyTds , k = b . topLeftBodyItems , l = e ; break ; case h : c = b . topRightColGroupTds , d = b . topRightBodyTds , k = b . topRightBodyItems , l = f ; b
} , _initCache = function ( a ) { var b = data . getCache ( a ) ; b || ( b = { } , data . setCache ( a , b ) ) , b . nodes = [ ] , b . doms = [ ] } , _bindEvent = function ( a ) { var b = a . treeObj , c = consts . event ; b . bind ( c . NODECREATED , function ( b , c , d ) { tools . apply ( a . callback . onNodeCreated , [ b , c , d ] ) } ) , b . bind ( c . CLICK , function ( b , c , d , e , f ) { 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 . childr
f = "checkNode" ) , d . length > 0 ) switch ( e = v . getNodeCache ( c , d ) , f ) { case "checkNode" : h = n . onCheckNode ; break ; case "mouseoverCheck" : h = n . onMouseoverCheck ; 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
} , 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 : 25 } ) } , _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 } ) , 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 : 13 , el : { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } } , { width : 25 , el : { type : "bi.layout" , cls : "mid-line-conn-background" , width : 25 , 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 : 25 } ) } , _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 } ) , 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 : 13 , el : { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } } , { width : 25 , el : { type : "bi.layout" , cls : "mid-line-conn-background" , width : 25 , 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 . MidTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MidTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . checkbox . setSelected ( a ) } } ) , BI . shortcut ( "bi.mid_tree_leaf_item" , BI . MidTreeLeafItem ) , BI . MultiLayerIconTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerIconTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments )
} else c += '<embed id="' + this . movieId + '" src="' + ZeroClipboard . moviePath + '" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="' + a + '" height="' + b + '" name="' + this . movieId + '" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="' + d + '" wmode="transparent" />' ; return c } , hide : function ( ) { this . div && ( this . div . style . left = "-2000px" ) } , show : function ( ) { this . reposition ( ) } , destroy : function ( ) { if ( this . domElement && this . div ) { this . hide ( ) , this . div . innerHTML = "" ; var a = document . getElementsByTagName ( "body" ) [ 0 ] ; try { a . removeChild ( this . div ) } catch ( b ) { } this . domElement = null , this . div = null } } , reposition : function ( a ) { if ( a && ( this . domElement = ZeroClipboard . $ ( a ) , this . domElement || this . hide ( ) ) , this . domElement && this . div ) { var b = ZeroClipboard . getDOMObjectPosition ( this . domElement ) , c = this . div . style ; c . left = "" + b . left + "px" , c . top = "" + b . top + "px" } } , setText : function ( a ) { this . clipText = a , this . ready && this . movie . setText ( a ) } , addEventListener : function ( a , b ) { a = a . toString ( ) . toLowerCase ( ) . replace ( /^on/ , "" ) , this . handlers [ a ] || ( this . handlers [ a ] = [ ] ) , this . handlers [ a ] . push ( b ) } , setHandCursor : function ( a ) { this . handCursorEnabled = a , this . ready && this . movie . setHandCursor ( a ) } , setCSSEffects : function ( a ) { this . cssEffects = ! ! a } , receiveEvent : function ( a , b ) { switch ( a = a . toString ( ) . toLowerCase ( ) . replace ( /^on/ , "" ) ) { case "load" : if ( this . movie = document . getElementById ( this . movieId ) , ! this . movie ) { var c = this ; return void setTimeout ( function ( ) { c . receiveEvent ( "load" , null ) } , 1 ) } if ( ! this . ready && navigator . userAgent . match ( /Firefox/ ) && navigator . userAgent . match ( /Windows/ ) ) { var c = this ; return setTimeout ( function ( ) { c . receiveEvent ( "load" , null ) } , 100 ) , void ( this . ready = ! 0 ) } this . ready = ! 0 ; try { this . movie . setText ( this . clipText ) } catch ( d ) { } try { this . movie . setHandCursor ( this . handCursorEnabled ) } catch ( d ) { } break ; case "mouseover" : this . domElement && this . cssEffects && ( this . domElement . addClass ( "hover" ) , this . recoverActive && this . domElement . addClass ( "active" ) ) ; break ; case "mouseout" : this . domElement && this . cssEffects && ( this . recoverActive = ! 1 , this . domElement . hasClass ( "active" ) && ( this . domElement . removeClass ( "active" ) , this . recoverActive = ! 0 ) , this . domElement . removeClass ( "hover" ) ) ; break ; case "mousedown" : this . domElement && this . cssEffects && this . domElement . addClass ( "active" ) ; break ; case "mouseup" : this . domElement && this . cssEffects && ( this . domElement . removeClass ( "active" ) , this . recoverActive = ! 1 ) } if ( this . handlers [ a ] ) for ( var e = 0 , f = this . handlers [ a ] . length ; e < f ; e ++ ) { var g = this . handlers [ a ] [ e ] ; "function" == typeof g ? g ( this , b ) : "object" == typeof g && 2 == g . length ? g [ 0 ] [ g [ 1 ] ] ( this , b ) : "string" == typeof g && window [ g ] ( this , b ) } } } } BI . ClipBoard = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . ClipBoard . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-clipboard" , el : { type : "bi.layout" } , copy : BI . emptyFn , afterCopy : BI . emptyFn } ) } , _init : function ( ) { BI . ClipBoard . superclass . _init . apply ( this , arguments ) , BI . createWidget ( this . options . el , { element : this } ) } , mounted : function ( ) { var a = this . options ; window . Clipboard ? ( this . clipboard = new Clipboard ( this . element [ 0 ] , { text : function ( ) { return BI . isFunction ( a . copy ) ? a . copy ( ) : a . copy } } ) , this . clipboard . on ( "success" , a . afterCopy ) ) : this . element . zclip ( { path : BI . resourceURL + "/ZeroClipboard.swf" , copy : a . copy , beforeCopy : a . beforeCopy , afterCopy : a . afterCopy } ) } , destroyed : function ( ) { this . clipboard && this . clipboard . destroy ( ) } } ) , BI . shortcut ( "bi.clipboard" , BI . ClipBoard ) , BI . CustomColorChooser = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . CustomColorChooser . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-custom-color-chooser" , width : 227 , height : 245 } ) } , _init : function ( ) { BI . CustomColorChooser . superclass . _init . apply ( this , arguments ) ; var a = this ; this . editor = BI . createWidget ( { type : "bi.color_picker_editor" } ) , this . editor . on ( BI . ColorPickerEditor . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) ) } ) , this . farbtastic = BI . createWidget ( { type : "bi.farbtastic" } ) , this . farbtastic . on ( BI . Farbtastic . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) ) } ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { type : "bi.absolute" , items : [ { el : this .
} } ) } , showView : function ( ) { this . iconCombo . showView ( ) } , hideView : function ( ) { this . iconCombo . hideView ( ) } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( 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 . iconCombo . populate ( a ) } } ) , BI . IconCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_combo" , BI . IconCombo ) , BI . IconComboPopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . IconComboPopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi.icon-combo-popup" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } ) } , _init : function ( ) { BI . IconComboPopup . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this ; this . popup = BI . createWidget ( { type : "bi.button_group" , items : BI . createItems ( a . items , { type : "bi.single_select_icon_text_item" , height : 30 } ) , chooseType : a . chooseType , layouts : [ { type : "bi.vertical" } ] , value : a . value } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( a , c , d ) { b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a === BI . Events . CLICK && b . fireEvent ( BI . IconComboPopup . EVENT _CHANGE , c , d ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . popup ] } ) } , populate : function ( a ) { BI . IconComboPopup . superclass . populate . apply ( this , arguments ) , a = BI . createItems ( a , { type : "bi.single_select_icon_text_item" , height : 30 } ) , this . popup . populate ( a ) } , getValue : function ( ) { return this . popup . getValue ( ) } , setValue : function ( a ) { this . popup . setValue ( a ) } } ) , BI . IconComboPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_combo_popup" , BI . IconComboPopup ) , BI . IconComboTrigger = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . IconComboTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-icon-combo-trigger" , el : { } , items : [ ] , iconCls : "" , width : 25 , height : 25 , isShowDown : ! 0 , value : "" } ) } , _init : function ( ) { BI . IconComboTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = "" ; BI . isKey ( a . value ) && ( b = this . _digest ( a . value , a . items ) ) , this . button = BI . createWidget ( a . el , { type : "bi.icon_change_button" , cls : "icon-combo-trigger-icon" , iconCls : b , disableSelected : ! 0 , width : a . width , height : a . height , iconWidth : a . iconWidth , iconHeight : a . iconHeight , selected : BI . isNotEmptyString ( b ) } ) , this . down = BI . createWidget ( { type : "bi.icon_button" , disableSelected : ! 0 , cls : "icon-combo-down-icon trigger-triangle-font" , width : 12 , height : 8 , selected : BI . isNotEmptyString ( b ) } ) , this . down . setVisible ( a . isShowDown ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . button , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : this . down , right : 0 , bottom : 0 } ] } ) } , _digest : function ( a , b ) { var c = "" ; return a = BI . isArray ( a ) ? a [ 0 ] : a , BI . any ( b , function ( b , d ) { if ( a === d . value ) return c = d . iconCls , ! 0 } ) , c } , populate : function ( a ) { var b = this . options ; this . options . items = a || [ ] , this . button . setIcon ( b . iconCls ) , this . button . setSelected ( ! 1 ) , this . down . setSelected ( ! 1 ) } , setValue : function ( a ) { BI . IconComboTrigger . superclass . setValue . apply ( this , arguments ) ; var b = this . options , c = this . _digest ( a , this . options . items ) ; a = BI . isArray ( a ) ? a [ 0 ] : a , BI . isNotEmptyString ( c ) ? ( this . button . setIcon ( c ) , this . button . setSelected ( ! 0 ) , this . down . setSelected ( ! 0 ) ) : ( this . button . setIcon ( b . iconCls ) , this . button . setSelected ( ! 1 ) , this . down . setSelected ( ! 1 ) ) } } ) , BI . IconComboTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_combo_trigger" , BI . IconComboTrigger ) , BI . IconTextValueCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . IconTextValueCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseClass : "bi-icon-text-value-combo" , height : 30 , iconHeight : null , iconWidth : null , value : "" } ) } , _init : function ( ) { BI . IconTextValueCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.select_icon_text_trigger" , items : b . items , height : b . height , text : b . text , value : b . value , iconHeight : b . iconHeight , iconWidth : b . iconWidth } ) , this . popup = BI . createWidget ( { type : "bi.icon_text_value_combo_popup" , items : b . items , value : b . value , iconHeight : b . iconHeight , iconWidth : b . iconWidth } ) , this . popup . on ( BI . IconTextValueComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . textIconCombo . hideView ( ) , a . fireEvent ( BI . IconT
allowBlank : ! 0 , watermark : "" , errorText : "" , value : "" , text : "" , height : 24 } ) } , _init : function ( ) { BI . SignInitialEditor . 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 : "sign-editor-text" , title : b . title , warningTitle : b . warningTitle , tipType : b . tipType , textAlign : "left" , height : b . height , hgap : 4 , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . selectAll ( ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . SignInitialEditor . 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 . SignInitialEditor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . SignInitialEditor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . _showHint ( ) , a . _checkText ( ) , a . fireEvent ( BI . SignInitialEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _START , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _PAUSE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _STOP , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _STOP , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _SPACE , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _SPACE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . _checkText ( ) , a . fireEvent ( BI . SignInitialEditor . EVENT _ERROR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ENTER , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _ENTER , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _RESTRICT , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _RESTRICT , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _EMPTY , function ( ) { a . fireEvent ( BI . SignInitialEditor . EVENT _EMPTY , arguments ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ this . editor ] } ) , this . _showHint ( ) , a . _checkText ( ) } , _checkText : function ( ) { var a = this . options ; BI . nextTick ( BI . bind ( function ( ) { if ( "" === this . editor . getValue ( ) ) this . text . setValue ( a . watermark || "" ) , this . text . element . addClass ( "bi-water-mark" ) ; else { var b = this . editor . getValue ( ) ; b = BI . isEmpty ( b ) || b == a . text ? a . text : b + "(" + a . text + ")" , this . text . setValue ( b ) , this . text . element . removeClass ( "bi-water-mark" ) } } , this ) ) } , _showInput : function ( ) { this . editor . visible ( ) , this . text . invisible ( ) } , _showHint : function ( ) { this . editor . invisible ( ) , this . text . visible ( ) } , setTitle : function ( a ) { this . text . setTitle ( a ) } , setWarningTitle : function ( a ) { this . text . setWarningTitle ( a ) } , focus : function ( ) { this . _showInput ( ) , this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) , this . _showHint ( ) , this . _checkText ( ) } , doRedMark : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , isValid : function ( ) { return this . editor . isValid ( ) } , setErrorText : function ( a ) { this . editor . setErrorText ( a ) } , getErrorText : function ( ) { return this . editor . getErrorText ( ) } , isEditing
} , setToolBarVisible : function ( a ) { this . toolbar . setVisible ( a ) } , isAllSelected : function ( ) { return this . allSelected } , 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 ) { var b = a . type === BI . ButtonGroup . CHOOSE _TYPE _ALL ; this . setAllSelected ( b ) , this . list [ b ? "setNotSelectedValue" : "setValue" ] ( a . value ) , this . _checkAllSelected ( ) } , getValue : function ( ) { return this . isAllSelected ( ) === ! 1 ? { type : BI . ButtonGroup . CHOOSE _TYPE _MULTI , value : this . list . getValue ( ) , assist : this . list . getNotSelectedValue ( ) } : { type : BI . ButtonGroup . CHOOSE _TYPE _ALL , value : this . list . getNotSelectedValue ( ) , assist : this . list . getValue ( ) } } , empty : function ( ) { this . list . empty ( ) } , populate : function ( a ) { this . toolbar . setVisible ( ! BI . isEmptyArray ( a ) ) , this . toolbar . setEnable ( ! BI . isEmptyArray ( a ) ) , this . list . populate . apply ( this . list , arguments ) , this . _checkAllSelected ( ) } , _setEnable : function ( a ) { BI . SelectList . superclass . _setEnable . apply ( this , arguments ) , this . toolbar . setEnable ( a ) } , resetHeight : function ( a ) { var b = ( this . toolbar . element . outerHeight ( ) || 25 ) * ( this . toolbar . isVisible ( ) ? 1 : 0 ) ; this . list . resetHeight ? this . list . resetHeight ( a - b ) : this . list . element . css ( { "max-height" : a - b + "px" } ) } , setNotSelectedValue : function ( ) { this . list . setNotSelectedValue . apply ( this . list , arguments ) , this . _checkAllSelected ( ) } , 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 . SelectList . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.select_list" , BI . SelectList ) , BI . LazyLoader = BI . inherit ( BI . Widget , { _const : { PAGE : 100 } , _defaultConfig : function ( ) { return BI . extend ( BI . LazyLoader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-lazy-loader" , el : { } } ) } , _init : function ( ) { var a = this , b = this . options ; BI . LazyLoader . superclass . _init . apply ( this , arguments ) ; var c = b . items . length ; this . loader = BI . createWidget ( { type : "bi.loader" , element : this , el : b . el , itemsCreator : function ( b , c ) { c ( a . _getNextItems ( b ) ) } , hasNext : function ( a ) { return a . count < c } } ) , this . loader . on ( BI . Loader . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . LazyLoader . EVENT _CHANGE , b ) } ) } , _getNextItems : function ( a ) { var b = this . options , c = b . items . length - this . _const . PAGE * ( a . times - 1 ) , d = BI . last ( b . items , c ) , e = BI . first ( d , this . _const . PAGE ) ; return e } , populate : function ( a ) { this . loader . populate ( a ) } , addItems : function ( a ) { this . loader . addItems ( a ) } , empty : function ( ) { this . loader . empty ( ) } , setNotSelectedValue : function ( ) { this . loader . setNotSelectedValue . apply ( this . loader , arguments ) } , getNotSelectedValue : function ( ) { return this . loader . getNotSelectedValue ( ) } , setValue : function ( ) { this . loader . setValue . apply ( this . loader , arguments ) } , getValue : function ( ) { return this . loader . getValue . apply ( this . loader , arguments ) } , getAllButtons : function ( ) { return this . loader . getAllButtons ( ) } , getAllLeaves : function ( ) { return this . loader . getAllLeaves ( ) } , getSelectedButtons : function ( ) { return this . loader . getSelectedButtons ( ) } , getNotSelectedButtons : function ( ) { return this . loader . getNotSelectedButtons ( ) } , getIndexByValue : function ( a ) { return this . loader . getIndexByValue ( a ) } , getNodeById : function ( a ) { return this . loader . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . loader . getNodeByValue ( a ) } } ) , BI . LazyLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.lazy_loader" , BI . LazyLoader ) , BI . ListLoader = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ListLoader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-list-loader" , isDefaultInit : ! 0 , el : { type : "bi.button_group" } , items : [ ] , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn , count : ! 1 , next : { } , hasNext : BI . emptyFn } ) } , _nextLoad : function ( ) { var a = this , b = this . options ; this . next .
this . align = BI . createWidget ( { type : "bi.icon_button" , element : this , forceNotSelected : ! 0 , title : BI . i18nText ( "BI-Word_Align_Right" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-align-right-font" } ) , this . align . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { } , deactivate : function ( ) { } } ) , BI . shortcut ( "bi.rich_editor_align_right_button" , BI . RichEditorAlignRightButton ) , BI . RichEditorBoldButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorBoldButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "Bold" , tags : [ "B" , "STRONG" ] , css : { fontWeight : "bold" } } ) } , _init : function ( ) { BI . RichEditorBoldButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . bold = BI . createWidget ( { type : "bi.icon_button" , element : this , title : BI . i18nText ( "BI-Basic_Bold" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-bold-font" } ) , this . bold . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { this . bold . setSelected ( ! 0 ) } , deactivate : function ( ) { this . bold . setSelected ( ! 1 ) } } ) , BI . shortcut ( "bi.rich_editor_bold_button" , BI . RichEditorBoldButton ) , BI . RichEditorItalicButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorItalicButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "Italic" , tags : [ "EM" , "I" ] , css : { fontStyle : "italic" } } ) } , _init : function ( ) { BI . RichEditorItalicButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . italic = BI . createWidget ( { type : "bi.icon_button" , element : this , title : BI . i18nText ( "BI-Basic_Italic" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-italic-font" } ) , this . italic . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { this . italic . setSelected ( ! 0 ) } , deactivate : function ( ) { this . italic . setSelected ( ! 1 ) } } ) , BI . shortcut ( "bi.rich_editor_italic_button" , BI . RichEditorItalicButton ) , BI . RichEditorParamButton = BI . inherit ( BI . RichEditorParamAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorParamButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 } ) } , _init : function ( ) { BI . RichEditorParamButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . param = BI . createWidget ( { type : "bi.button" , element : this , level : "ignore" , minWidth : 0 , text : BI . i18nText ( "BI-Formula_Insert" ) , height : 20 , width : 30 } ) , this . param . on ( BI . Button . EVENT _CHANGE , function ( ) { a . addParam ( "参数" ) } ) } , activate : function ( ) { } , deactivate : function ( ) { } } ) , BI . shortcut ( "bi.rich_editor_param_button" , BI . RichEditorParamButton ) , BI . RichEditorUnderlineButton = BI . inherit ( BI . RichEditorAction , { _defaultConfig : function ( ) { return BI . extend ( BI . RichEditorUnderlineButton . superclass . _defaultConfig . apply ( this , arguments ) , { width : 20 , height : 20 , command : "Underline" , tags : [ "U" ] , css : { textDecoration : "underline" } } ) } , _init : function ( ) { BI . RichEditorUnderlineButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . underline = BI . createWidget ( { type : "bi.icon_button" , element : this , title : BI . i18nText ( "BI-Basic_Underline" ) , height : 20 , width : 20 , cls : "text-toolbar-button bi-list-item-active text-underline-font" } ) , this . underline . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . doCommand ( ) } ) } , activate : function ( ) { this . underline . setSelected ( ! 0 ) } , deactivate : function ( ) { this . underline . setSelected ( ! 1 ) } } ) , BI . shortcut ( "bi.rich_editor_underline_button" , BI . RichEditorUnderlineButton ) , BI . RichEditorColorChooserTrigger = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . RichEditorColorChooserTrigger . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { width : 20 , height : 20 } ) } , _init : function ( ) { BI . RichEditorColorChooserTrigger . superclass . _init . apply ( this , arguments ) , this . font = BI . createWidget ( { type : "bi.icon_button" , cls : "text-color-font" } ) , this . underline = BI . createWidget ( { type : "bi.icon_button" , cls : "text-color-underline-font" } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . font , top : 2 , left : 2 } , { el : this . underline , top : 7 , left : 2 } ] } ) } , setValue : function ( a ) { this . underline . element . css ( "color" , a ) } , getValue : function ( ) { ret
_defaultConfig : function ( ) { return BI . extend ( BI . TableStyleCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-table-style-cell" , styleGetter : BI . emptyFn } ) } , _init : function ( ) { BI . TableStyleCell . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : "left" , forceCenter : ! 0 , hgap : 5 , text : a . text } ) , this . _digestStyle ( ) } , _digestStyle : function ( ) { var a = this . options , b = a . styleGetter ( ) ; b && this . text . element . css ( b ) } , setText : function ( a ) { this . text . setText ( a ) } , populate : function ( ) { this . _digestStyle ( ) } } ) , BI . shortcut ( "bi.table_style_cell" , BI . TableStyleCell ) , BI . TableTree = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . TableTree . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-table-tree" , el : { type : "bi.resizable_table" } , isNeedResize : ! 0 , isResizeAdapt : ! 0 , freezeCols : [ ] , isNeedMerge : ! 0 , mergeCols : [ ] , mergeRule : BI . emptyFn , columnSize : [ ] , minColumnSize : [ ] , maxColumnSize : [ ] , headerRowSize : 25 , rowSize : 25 , regionColumnSize : [ ] , headerCellStyleGetter : BI . emptyFn , summaryCellStyleGetter : BI . emptyFn , sequenceCellStyleGetter : BI . emptyFn , header : [ ] , items : [ ] , crossHeader : [ ] , crossItems : [ ] } ) } , _getVDeep : function ( ) { return this . options . crossHeader . length } , _getHDeep : function ( ) { var a = this . options ; return Math . max ( a . mergeCols . length , a . freezeCols . length , BI . TableTree . maxDeep ( a . items ) - 1 ) } , _init : function ( ) { BI . TableTree . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _digest ( ) ; this . table = BI . createWidget ( b . el , { type : "bi.resizable_table" , element : this , width : b . width , height : b . height , isNeedResize : b . isNeedResize , isResizeAdapt : b . isResizeAdapt , isNeedFreeze : b . isNeedFreeze , freezeCols : b . freezeCols , isNeedMerge : b . isNeedMerge , mergeCols : b . mergeCols , mergeRule : b . mergeRule , columnSize : b . columnSize , minColumnSize : b . minColumnSize , maxColumnSize : b . maxColumnSize , headerRowSize : b . headerRowSize , rowSize : b . rowSize , regionColumnSize : b . regionColumnSize , header : c . header , items : c . items } ) , this . table . on ( BI . Table . EVENT _TABLE _SCROLL , function ( ) { a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _REGION _RESIZE , function ( ) { b . regionColumnSize = this . getRegionColumnSize ( ) , b . columnSize = this . getColumnSize ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _COLUMN _RESIZE , function ( ) { b . regionColumnSize = this . getRegionColumnSize ( ) , b . columnSize = this . getColumnSize ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _COLUMN _RESIZE , arguments ) } ) } , _digest : function ( ) { var a = this . options , b = this . _getHDeep ( ) , c = this . _getVDeep ( ) , d = BI . TableTree . formatHeader ( a . header , a . crossHeader , a . crossItems , b , c , a . headerCellStyleGetter ) , e = BI . TableTree . formatItems ( a . items , b , ! 1 , a . summaryCellStyleGetter ) ; return { header : d , items : e } } , setWidth : function ( a ) { BI . TableTree . superclass . setWidth . apply ( this , arguments ) , this . table . setWidth ( a ) } , setHeight : function ( a ) { BI . TableTree . superclass . setHeight . apply ( this , arguments ) , this . table . setHeight ( a ) } , setColumnSize : function ( a ) { this . options . columnSize = a , this . table . setColumnSize ( a ) } , getColumnSize : function ( ) { return this . table . getColumnSize ( ) } , setRegionColumnSize : function ( a ) { this . options . regionColumnSize = a , this . table . setRegionColumnSize ( a ) } , getRegionColumnSize : function ( ) { return this . table . getRegionColumnSize ( ) } , setVerticalScroll : function ( a ) { this . table . setVerticalScroll ( a ) } , setLeftHorizontalScroll : function ( a ) { this . table . setLeftHorizontalScroll ( a ) } , setRightHorizontalScroll : function ( a ) { this . table . setRightHorizontalScroll ( a ) } , getVerticalScroll : function ( ) { return this . table . getVerticalScroll ( ) } , getLeftHorizontalScroll : function ( ) { return this . table . getLeftHorizontalScroll ( ) } , getRightHorizontalScroll : function ( ) { return this . table . getRightHorizontalScroll ( ) } , attr : function ( ) { BI . TableTree . superclass . attr . apply ( this , arguments ) , this . table . attr . apply ( this . table , arguments ) } , restore : function ( ) { this . table . restore ( ) } , populate : function ( a , b , c , d ) { var e = this . options ; a && ( e . items = a || [ ] ) , b && ( e . header = b ) , c && ( e . crossItems = c ) , d && ( e . crossHeader = d ) ; var f = this . _digest ( ) ; this . table . populate ( f . items , f . header ) } , destroy : function ( ) { this . table . destroy ( ) , BI . TableTree . superclass . des
this . text . setValue ( a ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.small_text_trigger" , BI . SmallTextTrigger ) , BI . SequenceTableTreeNumber = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SequenceTableTreeNumber . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-sequence-table-tree-number" , isNeedFreeze : ! 1 , startSequence : 1 , scrollTop : 0 , headerRowSize : 25 , rowSize : 25 , sequenceHeaderCreator : null , header : [ ] , items : [ ] , crossHeader : [ ] , crossItems : [ ] } ) } , _init : function ( ) { BI . SequenceTableTreeNumber . superclass . _init . apply ( this , arguments ) ; this . options ; this . vCurr = 1 , this . hCurr = 1 , this . tasks = [ ] , this . renderedCells = [ ] , this . renderedKeys = [ ] , this . container = BI . createWidget ( { type : "bi.absolute" , width : 60 , scrollable : ! 1 } ) , this . scrollContainer = BI . createWidget ( { type : "bi.vertical" , scrollable : ! 1 , scrolly : ! 1 , items : [ this . container ] } ) , this . headerContainer = BI . createWidget ( { type : "bi.absolute" , cls : "bi-border" , width : 58 , scrollable : ! 1 } ) , this . layout = BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . headerContainer , height : this . _getHeaderHeight ( ) - 2 } , { el : { type : "bi.layout" } , height : 2 } , { el : this . scrollContainer } ] } ) , this . start = this . options . startSequence , this . cache = { } , this . _nextState ( ) , this . _populate ( ) } , _getNextSequence : function ( a ) { function b ( a ) { c . cache [ a . text || a . value ] || ( c . cache [ a . text || a . value ] = e ) , e ++ } var c = this , d = this . start , e = this . start ; return BI . each ( a , function ( a , f ) { BI . isNotEmptyArray ( f . children ) && BI . each ( f . children , function ( a , f ) { 0 === a && c . cache [ f . text || f . value ] && ( d = e = c . cache [ f . text || f . value ] ) , b ( f ) } ) } ) , this . start = e , d } , _getStart : function ( a ) { var b = this , c = this . start ; return BI . some ( a , function ( a , d ) { if ( BI . isNotEmptyArray ( d . children ) ) return BI . some ( d . children , function ( a , d ) { if ( 0 === a && b . cache [ d . text || d . value ] ) return c = b . cache [ d . text || d . value ] , ! 0 } ) } ) , c } , _formatNumber : function ( a ) { function b ( a ) { var c = 0 ; return BI . isNotEmptyArray ( a . children ) ? ( BI . each ( a . children , function ( a , d ) { c += b ( d ) } ) , BI . isNotEmptyArray ( a . values ) && c ++ ) : c ++ , c } var c = this . options , d = [ ] , e = this . _getStart ( a ) , f = 0 , g = 0 ; return BI . each ( a , function ( a , h ) { BI . isArray ( h . children ) && ( BI . each ( h . children , function ( a , h ) { var i = b ( h ) ; d . push ( { text : e ++ , start : f , top : g , cnt : i , index : a , height : i * c . rowSize } ) , f += i , g += i * c . rowSize } ) , BI . isNotEmptyArray ( h . values ) && ( d . push ( { text : BI . i18nText ( "BI-Summary_Values" ) , start : f ++ , top : g , cnt : 1 , isSummary : ! 0 , height : c . rowSize } ) , g += c . rowSize ) ) } ) , d } , _layout : function ( ) { var a = this . options , b = this . _getHeaderHeight ( ) - 2 , c = this . layout . attr ( "items" ) ; a . isNeedFreeze === ! 1 ? ( c [ 0 ] . height = 0 , c [ 1 ] . height = 0 ) : a . isNeedFreeze === ! 0 && ( c [ 0 ] . height = b , c [ 1 ] . height = 2 ) , this . layout . attr ( "items" , c ) , this . layout . resize ( ) ; try { this . scrollContainer . element . scrollTop ( a . scrollTop ) } catch ( d ) { } } , _getHeaderHeight : function ( ) { var a = this . options ; return a . headerRowSize * ( a . crossHeader . length + ( a . header . length > 0 ? 1 : 0 ) ) } , _nextState : function ( ) { var a = this . options ; this . _getNextSequence ( a . items ) } , _prevState : function ( ) { var a , b = this . options ; BI . some ( b . items , function ( b , c ) { if ( BI . isNotEmptyArray ( c . children ) ) return BI . some ( c . children , function ( b , c ) { return a = c , ! 0 } ) } ) , a && BI . isNotEmptyObject ( this . cache ) ? this . start = this . cache [ a . text || a . value ] : this . start = 1 , this . _nextState ( ) } , _getMaxScrollTop : function ( a ) { var b = 0 ; return BI . each ( a , function ( a , c ) { b += c . cnt } ) , Math . max ( 0 , b * this . options . rowSize - ( this . options . height - this . _getHeaderHeight ( ) ) + BI . DOM . getScrollWidth ( ) ) } , _createHeader : function ( ) { var a = this . options ; BI . createWidget ( { type : "bi.absolute" , element : this . headerContainer , items : [ { el : a . sequenceHeaderCreator || { type : "bi.table_style_cell" , cls : "sequence-table-title-cell" , styleGetter : a . headerCellStyleGetter , text : BI . i18nText ( "BI-Number_Index" ) } , left : 0 , top : 0 , right : 0 , bottom : 0 } ] } ) } , _calculateChildrenToRender : function ( ) { var a = this , b = this . options , c = [ ] , d = [ ] , e = this . _formatNumber ( b . items ) , f = BI . PrefixIntervalTree . uniform ( e . length , 0 ) ; BI . each ( e , function ( a , b ) { f . set ( a , b . height ) } ) ; for ( var g = BI . clamp ( b . scrollTop , 0 , this . _getMaxScrollTop ( e ) ) , h = f . greatestLowerBound ( g ) , i = - ( g - ( h > 0 ? f . sumTo ( h - 1 ) : 0 ) ) , j = i , k = b . height - this . _getHeaderHeight ( ) ; j < k && h < e . length ; ) d . push ( h ) , i += e [ h ] . height , j += e [ h ] . height , h ++ ; BI . each ( d , function ( d , f ) { var g = BI . deepIndexOf ( a . renderedKeys , f ) ; if ( g > - 1 ) e [ f ] . height !== a
BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE = "BUTTON_CANCEL_EVENT_CHANGE" , BI . DateTimePopup . CALENDAR _EVENT _CHANGE = "CALENDAR_EVENT_CHANGE" , BI . shortcut ( "bi.date_time_popup" , BI . DateTimePopup ) , BI . DateTimeSelect = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DateTimeSelect . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-date-time-select bi-border" , max : 23 , min : 0 } ) } , _init : function ( ) { BI . DateTimeSelect . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , value : this . _alertInEditorValue ( b . min ) , allowBlank : ! 1 , errorText : BI . i18nText ( "BI-Please_Input_Natural_Number" ) , validationChecker : function ( a ) { return BI . isNaturalNumber ( a ) } } ) , this . editor . on ( BI . TextEditor . EVENT _CONFIRM , function ( ) { a . _finetuning ( 0 ) , a . fireEvent ( BI . DateTimeSelect . EVENT _CONFIRM ) } ) , this . topBtn = BI . createWidget ( { type : "bi.icon_button" , cls : "column-pre-page-h-font top-button bi-border-left bi-border-bottom" } ) , this . topBtn . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . _finetuning ( 1 ) , a . fireEvent ( BI . DateTimeSelect . EVENT _CONFIRM ) } ) , this . bottomBtn = BI . createWidget ( { type : "bi.icon_button" , cls : "column-next-page-h-font bottom-button bi-border-left" } ) , this . bottomBtn . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . _finetuning ( - 1 ) , a . fireEvent ( BI . DateTimeSelect . EVENT _CONFIRM ) } ) , this . _finetuning ( 0 ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ this . editor , { el : { type : "bi.grid" , columns : 1 , rows : 2 , items : [ { column : 0 , row : 0 , el : this . topBtn } , { column : 0 , row : 1 , el : this . bottomBtn } ] } , width : 30 } ] } ) } , _alertOutEditorValue : function ( a ) { return a > this . options . max && ( a = this . options . min ) , a < this . options . min && ( a = this . options . max ) , BI . parseInt ( a ) } , _alertInEditorValue : function ( a ) { return a > this . options . max && ( a = this . options . min ) , a < this . options . min && ( a = this . options . max ) , a = a < 10 ? "0" + a : a } , _finetuning : function ( a ) { var b = BI . parseInt ( this . _alertOutEditorValue ( this . editor . getValue ( ) ) ) ; this . editor . setValue ( this . _alertInEditorValue ( b + a ) ) } , getValue : function ( ) { var a = this . editor . getValue ( ) ; return this . _alertOutEditorValue ( a ) } , setValue : function ( a ) { this . editor . setValue ( this . _alertInEditorValue ( a ) ) , this . _finetuning ( 0 ) } } ) , BI . DateTimeSelect . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.date_time_select" , BI . DateTimeSelect ) , BI . DateTimeTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 } , _defaultConfig : function ( ) { return BI . extend ( BI . DateTimeTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-date-time-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 24 , width : 200 } ) } , _init : function ( ) { BI . DateTimeTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _const ; this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , height : a . height , width : a . width , hgap : b . hgap } ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : BI . createWidget ( ) , width : a . height } , { el : this . text } ] } ) , this . setValue ( a . value ) } , _printTime : function ( a ) { return a < 10 ? "0" + a : a } , setValue : function ( a ) { var b , c = a ; if ( BI . isNull ( c ) ) c = BI . getDate ( ) , b = c . print ( "%Y-%X-%d %H:%M:%S" ) ; else { var d = BI . getDate ( c . year , c . month , c . day , c . hour , c . minute , c . second ) ; b = d . print ( "%Y-%X-%d %H:%M:%S" ) } this . text . setText ( b ) , this . text . setTitle ( b ) } } ) , BI . shortcut ( "bi.date_time_trigger" , BI . DateTimeTrigger ) , BI . DownListCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DownListCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-down-list-combo" , height : 24 , items : [ ] , adjustLength : 0 , direction : "bottom" , trigger : "click" , container : null , stopPropagation : ! 1 , el : { } } ) } , _init : function ( ) { BI . DownListCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . popupview = BI . createWidget ( { type : "bi.down_list_popup" , items : b . items , chooseType : b . chooseType , value : b . value } ) , this . popupview . on ( BI . DownListPopup . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . DownListCombo . EVENT _CHANGE , b ) , a . downlistcombo . hideView ( ) } ) , this . popupview . on ( BI . DownListPopup . EVENT _SON _VALUE _CHANGE , function ( b , c ) { a . fireEvent ( BI . DownListCombo . EVENT _SON _VALUE _CHANGE , b , c ) , a . downlistcombo . hideView ( ) } ) , this . downlistcombo = BI . createWidget ( { element : this , type : "bi.combo" , trigger : b . trigger , isNeedAdjustWidth : ! 1 , container : b . container , adjustLength
value : BI . FileManagerNav . ROOT _CREATE _BY _ME } ] , layouts : [ { type : "bi.horizontal" } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . ButtonGroup . EVENT _CHANGE , function ( b , c ) { a . fireEvent ( BI . FileManagerNav . EVENT _CHANGE , arguments ) } ) } , _getAllParents : function ( a ) { var b , c = [ ] ; for ( b = a ? this . tree . search ( a ) : this . tree . getRoot ( ) ; b . parent ; ) c . push ( b ) , b = b . parent ; return c . push ( b ) , c . reverse ( ) } , _formatNodes : function ( a ) { var b = [ ] ; return BI . each ( a , function ( a , c ) { b . push ( BI . extend ( { type : "bi.file_manager_nav_button" , id : c . id } , c . get ( "data" ) ) ) } ) , BI . last ( b ) . selected = ! 0 , b } , getValue : function ( ) { return this . button _group . getValue ( ) } , getId : function ( ) { var a = [ ] ; return BI . each ( this . button _group . getSelectedButtons ( ) , function ( b , c ) { a . push ( c . attr ( "id" ) ) } ) , a } , refreshTreeData : function ( a ) { this . tree . initTree ( BI . Tree . transformToTreeFormat ( a ) ) , this . tree . getRoot ( ) . set ( "data" , { text : BI . i18nText ( "BI-Created_By_Me" ) , value : BI . FileManagerNav . ROOT _CREATE _BY _ME , id : BI . FileManagerNav . ROOT _CREATE _BY _ME } ) } , populate : function ( a ) { var b = BI . isNull ( a ) ? [ this . tree . getRoot ( ) ] : this . _getAllParents ( a . id ) ; this . button _group . populate ( this . _formatNodes ( b ) ) } } ) , BI . extend ( BI . FileManagerNav , { ROOT _CREATE _BY _ME : "-1" } ) , BI . FileManagerNav . EVENT _CHANGE = "FileManagerNav.EVENT_CHANGE" , BI . shortcut ( "bi.file_manager_nav" , BI . FileManagerNav ) , BI . IntervalSlider = BI . inherit ( BI . Widget , { _constant : { EDITOR _WIDTH : 58 , EDITOR _R _GAP : 60 , EDITOR _HEIGHT : 30 , SLIDER _WIDTH _HALF : 15 , SLIDER _WIDTH : 30 , SLIDER _HEIGHT : 30 , TRACK _HEIGHT : 24 } , _defaultConfig : function ( ) { return BI . extend ( BI . IntervalSlider . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-interval-slider bi-slider-track" , digit : ! 1 , unit : "" } ) } , _init : function ( ) { BI . IntervalSlider . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . _constant ; this . enable = ! 1 , this . valueOne = "" , this . valueTwo = "" , this . calculation = new BI . AccurateCalculationModel , 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 . track = this . _createTrackWrapper ( ) , this . labelOne = BI . createWidget ( { type : "bi.sign_text_editor" , cls : "slider-editor-button" , text : this . options . unit , errorText : "" , allowBlank : ! 1 , width : b . EDITOR _WIDTH , validationChecker : function ( b ) { return a . _checkValidation ( b ) } } ) , this . labelOne . element . hover ( function ( ) { a . labelOne . element . removeClass ( "bi-border" ) . addClass ( "bi-border" ) } , function ( ) { a . labelOne . element . removeClass ( "bi-border" ) } ) , this . labelOne . on ( BI . Editor . EVENT _CONFIRM , function ( ) { var b = BI . parseFloat ( this . getValue ( ) ) ; a . valueOne = b ; var c = a . _getPercentByValue ( b ) , d = BI . parseFloat ( c . toFixed ( 1 ) ) ; a . _setLabelOnePosition ( d ) , a . _setSliderOnePosition ( d ) , a . _setBlueTrack ( ) , a . fireEvent ( BI . IntervalSlider . EVENT _CHANGE ) } ) , this . labelTwo = BI . createWidget ( { type : "bi.sign_text_editor" , cls : "slider-editor-button" , errorText : "" , text : this . options . unit , allowBlank : ! 1 , width : b . EDITOR _WIDTH , validationChecker : function ( b ) { return a . _checkValidation ( b ) } } ) , this . labelTwo . element . hover ( function ( ) { a . labelTwo . element . removeClass ( "bi-border" ) . addClass ( "bi-border" ) } , function ( ) { a . labelTwo . element . removeClass ( "bi-border" ) } ) , this . labelTwo . on ( BI . Editor . EVENT _CONFIRM , function ( ) { var b = BI . parseFloat ( this . getValue ( ) ) ; a . valueTwo = b ; var c = a . _getPercentByValue ( b ) , d = BI . parseFloat ( c . toFixed ( 1 ) ) ; a . _setLabelTwoPosition ( d ) , a . _setSliderTwoPosition ( d ) , a . _setBlueTrack ( ) , a . fireEvent ( BI . IntervalSlider . EVENT _CHANGE ) } ) , this . sliderOne = BI . createWidget ( { type : "bi.single_slider_button" } ) , this . sliderTwo = BI . createWidget ( { type : "bi.single_slider_button" } ) , this . _draggable ( this . sliderOne , ! 0 ) , this . _draggable ( this . sliderTwo , ! 1 ) , this . _setVisible ( ! 1 ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . track , width : "100%" , height : b . TRACK _HEIGHT } ] } ] , hgap : 7 , height : b . TRACK _HEIGHT } , top : 23 , left : 0 , width : "100%" } , this . _createLabelWrapper ( ) , this . _createSliderWrapper ( ) ] } ) } , _rePosBySizeAfterMove : function ( a , b ) { var c = this . options , d = 100 * a / this . _getGrayTrackLength ( ) , e = BI . parseFloat ( d . toFixed ( 1 ) ) , f = this . _getValueByPercent ( e ) ; f = this . _ass
a . fireEvent ( BI . MultiDatePopup . BUTTON _CLEAR _EVENT _CHANGE ) } ) , this . okButton = BI . createWidget ( { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-multidate-popup-button bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) } ) , this . okButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiDatePopup . BUTTON _OK _EVENT _CHANGE ) } ) , this . dateTab = BI . createWidget ( { type : "bi.tab" , tab : { cls : "bi-multidate-popup-tab bi-border-bottom" , height : this . constants . tabHeight , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Multi_Date_YMD" ) , value : BI . MultiDateCombo . MULTI _DATE _YMD _CARD , width : this . constants . ymdWidth } , { text : BI . i18nText ( "BI-Multi_Date_Year" ) , value : BI . MultiDateCombo . MULTI _DATE _YEAR _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Quarter" ) , value : BI . MultiDateCombo . MULTI _DATE _QUARTER _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Month" ) , value : BI . MultiDateCombo . MULTI _DATE _MONTH _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Week" ) , value : BI . MultiDateCombo . MULTI _DATE _WEEK _CARD } , { text : BI . i18nText ( "BI-Multi_Date_Day" ) , value : BI . MultiDateCombo . MULTI _DATE _DAY _CARD } ] , { width : this . constants . tabWidth , textAlign : "center" , height : this . constants . itemHeight , cls : "bi-multidate-popup-item bi-list-item-active" } ) , layouts : [ { type : "bi.left" } ] } , cardCreator : function ( b ) { switch ( b ) { case BI . MultiDateCombo . MULTI _DATE _YMD _CARD : return a . ymd = BI . createWidget ( { type : "bi.date_calendar_popup" , min : a . options . min , max : a . options . max } ) , a . ymd . on ( BI . DateCalendarPopup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiDatePopup . CALENDAR _EVENT _CHANGE ) } ) , a . ymd ; case BI . MultiDateCombo . MULTI _DATE _YEAR _CARD : return a . year = BI . createWidget ( { type : "bi.yearcard" } ) , a . year . on ( BI . MultiDateCard . EVENT _CHANGE , function ( b ) { a . _setInnerValue ( a . year , b ) } ) , a . year ; case BI . MultiDateCombo . MULTI _DATE _QUARTER _CARD : return a . quarter = BI . createWidget ( { type : "bi.quartercard" } ) , a . quarter . on ( BI . MultiDateCard . EVENT _CHANGE , function ( b ) { a . _setInnerValue ( a . quarter , b ) } ) , a . quarter ; case BI . MultiDateCombo . MULTI _DATE _MONTH _CARD : return a . month = BI . createWidget ( { type : "bi.monthcard" } ) , a . month . on ( BI . MultiDateCard . EVENT _CHANGE , function ( b ) { a . _setInnerValue ( a . month , b ) } ) , a . month ; case BI . MultiDateCombo . MULTI _DATE _WEEK _CARD : return a . week = BI . createWidget ( { type : "bi.weekcard" } ) , a . week . on ( BI . MultiDateCard . EVENT _CHANGE , function ( b ) { a . _setInnerValue ( a . week , b ) } ) , a . week ; case BI . MultiDateCombo . MULTI _DATE _DAY _CARD : return a . day = BI . createWidget ( { type : "bi.daycard" } ) , a . day . on ( BI . MultiDateCard . EVENT _CHANGE , function ( b ) { a . _setInnerValue ( a . day , b ) } ) , a . day } } } ) , this . dateTab . setSelect ( BI . MultiDateCombo . MULTI _DATE _YMD _CARD ) , this . cur = BI . MultiDateCombo . MULTI _DATE _YMD _CARD , this . dateTab . on ( BI . Tab . EVENT _CHANGE , function ( ) { var b = a . dateTab . getSelect ( ) ; switch ( b ) { case BI . MultiDateCombo . MULTI _DATE _YMD _CARD : var c = this . getTab ( a . cur ) . getCalculationValue ( ) ; a . ymd . setValue ( { year : c . getFullYear ( ) , month : c . getMonth ( ) , day : BI . getDate ( ) } ) , a . _setInnerValue ( a . ymd ) ; break ; case BI . MultiDateCombo . MULTI _DATE _YEAR _CARD : a . year . setValue ( a . storeValue ) , a . _setInnerValue ( a . year ) ; break ; case BI . MultiDateCombo . MULTI _DATE _QUARTER _CARD : a . quarter . setValue ( a . storeValue ) , a . _setInnerValue ( a . quarter ) ; break ; case BI . MultiDateCombo . MULTI _DATE _MONTH _CARD : a . month . setValue ( a . storeValue ) , a . _setInnerValue ( a . month ) ; break ; case BI . MultiDateCombo . MULTI _DATE _WEEK _CARD : a . week . setValue ( a . storeValue ) , a . _setInnerValue ( a . week ) ; break ; case BI . MultiDateCombo . MULTI _DATE _DAY _CARD : a . day . setValue ( a . storeValue ) , a . _setInnerValue ( a . day ) } a . cur = b } ) , this . dateButton = BI . createWidget ( { type : "bi.grid" , items : [ [ this . clearButton , this . textButton , this . okButton ] ] } ) , BI . createWidget ( { element : this , type : "bi.vtape" , items : [ { el : this . dateTab } , { el : this . dateButton , height : 30 } ] } ) , this . setValue ( b . value ) } , _setInnerValue : function ( a ) { if ( this . dateTab . getSelect ( ) === BI . MultiDateCombo . MULTI _DATE _YMD _CARD ) this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) , this . textButton . setEnable ( ! 0 ) ; else { var b = a . getCalculationValue ( ) ; b = b . print ( "%Y-%x-%e" ) , this . textButton . setValue ( b ) , 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 , e = this ; switch ( BI . isNotNull ( a ) && ( c = a . type || BI . MultiDateCombo . DATE _
id : "" , pId : "" , height : 25 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . item = BI . createWidget ( { type : "bi.first_tree_leaf_item" , cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . item . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = [ ] ; BI . count ( 0 , b . layer , function ( ) { c . push ( { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } ) } ) , c . push ( this . item ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( b . layer , 13 ) , items : [ c ] } ) } , doRedMark : function ( ) { this . item . doRedMark . apply ( this . item , arguments ) } , unRedMark : function ( ) { this . item . unRedMark . apply ( this . item , arguments ) } , doHighLight : function ( ) { this . item . doHighLight . apply ( this . item , arguments ) } , unHighLight : function ( ) { this . item . unHighLight . apply ( this . item , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . item . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . item . setSelected ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_first_tree_leaf_item" , BI . MultiLayerSingleTreeFirstTreeLeafItem ) , BI . MultiLayerSingleTreeLastTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSingleTreeLastTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multilayer-single-tree-last-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , layer : 0 , id : "" , pId : "" , height : 25 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeLastTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . item = BI . createWidget ( { type : "bi.last_tree_leaf_item" , cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . item . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = [ ] ; BI . count ( 0 , b . layer , function ( ) { c . push ( { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } ) } ) , c . push ( this . item ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( b . layer , 13 ) , items : [ c ] } ) } , doRedMark : function ( ) { this . item . doRedMark . apply ( this . item , arguments ) } , unRedMark : function ( ) { this . item . unRedMark . apply ( this . item , arguments ) } , doHighLight : function ( ) { this . item . doHighLight . apply ( this . item , arguments ) } , unHighLight : function ( ) { this . item . unHighLight . apply ( this . item , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . MultiLayerSingleTreeLastTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . item . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MultiLayerSingleTreeLastTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . item . setSelected ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_last_tree_leaf_item" , BI . MultiLayerSingleTreeLastTreeLeafItem ) , BI . MultiLayerSingleTreeMidTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSingleTreeMidTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multilayer-single-tree-mid-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , layer : 0 , id : "" , pId : "" , height : 25 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeMidTreeLeafItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . item = BI . createWidget ( { type : "bi.mid_tree_leaf_item" , cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . item . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = [ ] ; BI . count ( 0 , b . layer , function ( ) { c . push ( { type : "bi.layout" , cls : "base-line-conn-background" , width : 13 , height : b . height } ) } ) , c . push ( this . item ) , BI . createWidge
} ) , this . resizer = BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . tooltipClick , height : 0 } , { el : this . loader } ] } ) , this . tooltipClick . setVisible ( ! 1 ) } , setKeyword : function ( a ) { var b , c = this . loader . getAllButtons ( ) . length > 0 && ( b = this . loader . getAllButtons ( ) [ 0 ] ) && a === b . getValue ( ) ; c !== this . tooltipClick . isVisible ( ) && ( this . tooltipClick . setVisible ( c ) , this . resizer . attr ( "items" ) [ 0 ] . height = c ? this . constants . height : 0 , this . resizer . resize ( ) ) } , isAllSelected : function ( ) { return this . loader . isAllSelected ( ) } , hasMatched : function ( ) { return this . tooltipClick . isVisible ( ) } , setValue : function ( a ) { this . loader . setValue ( a ) } , getValue : function ( ) { return this . loader . getValue ( ) } , empty : function ( ) { this . loader . empty ( ) } , populate : function ( a ) { this . loader . populate . apply ( this . loader , arguments ) } } ) , BI . MultiSelectSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_search_pane" , BI . MultiSelectSearchPane ) , BI . MultiSelectCheckSelectedButton = BI . inherit ( BI . Single , { _const : { checkSelected : BI . i18nText ( "BI-Check_Selected" ) } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectCheckSelectedButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-check-selected-button bi-high-light" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectCheckSelectedButton . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . numberCounter = BI . createWidget ( { type : "bi.text_button" , element : this , hgap : 4 , text : "0" , textAlign : "center" , textHeight : 15 } ) , this . numberCounter . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . numberCounter . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedButton . EVENT _CHANGE , arguments ) } ) , this . numberCounter . element . hover ( function ( ) { a . numberCounter . setTag ( a . numberCounter . getText ( ) ) , a . numberCounter . setText ( a . _const . checkSelected ) } , function ( ) { a . numberCounter . setText ( a . numberCounter . getTag ( ) ) } ) , this . setVisible ( ! 1 ) , BI . isNotNull ( b . value ) && this . setValue ( b . value ) } , setValue : function ( a ) { var b = this , c = this . options ; return a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) , a . type === BI . Selection . All ? void c . itemsCreator ( { type : BI . MultiSelectCombo . REQ _GET _DATA _LENGTH } , function ( c ) { var d = c . count - a . value . length ; BI . nextTick ( function ( ) { b . numberCounter . setText ( d ) , b . setVisible ( d > 0 ) } ) } ) : void BI . nextTick ( function ( ) { b . numberCounter . setText ( a . value . length ) , b . setVisible ( a . value . length > 0 ) } ) } , getValue : function ( ) { } } ) , BI . MultiSelectCheckSelectedButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_check_selected_button" , BI . MultiSelectCheckSelectedButton ) , BI . MultiSelectEditor = BI . inherit ( BI . Widget , { _const : { checkSelected : BI . i18nText ( "BI-Check_Selected" ) } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectEditor . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-editor" , el : { } } ) } , _init : function ( ) { BI . MultiSelectEditor . superclass . _init . apply ( this , arguments ) ; 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 } ) , 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 ) } , 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 . MultiSelectSearcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectSearcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-searcher" , itemsC
hasChecked : function ( ) { return this . tree . hasChecked ( ) } , resetHeight : function ( a ) { this . popupView . resetHeight ( a ) } , resetWidth : function ( a ) { this . popupView . resetWidth ( a ) } } ) , BI . MultiTreePopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiTreePopup . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . MultiTreePopup . EVENT _CLICK _CLEAR = "EVENT_CLICK_CLEAR" , BI . MultiTreePopup . EVENT _AFTERINIT = "EVENT_AFTERINIT" , BI . shortcut ( "bi.multi_tree_popup_view" , BI . MultiTreePopup ) , BI . MultiTreeSearchPane = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeSearchPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-search-pane bi-card" , itemsCreator : BI . emptyFn , keywordGetter : BI . emptyFn } ) } , _init : function ( ) { BI . MultiTreeSearchPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . partTree = BI . createWidget ( { type : "bi.part_tree" , element : this , tipText : BI . i18nText ( "BI-No_Select" ) , itemsCreator : function ( a , c ) { a . keyword = b . keywordGetter ( ) , b . itemsCreator ( a , c ) } , value : b . value } ) , this . partTree . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . partTree . on ( BI . TreeView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiTreeSearchPane . EVENT _CHANGE ) } ) } , hasChecked : function ( ) { return this . partTree . hasChecked ( ) } , setValue : function ( a ) { this . setSelectedValue ( a . value ) } , setSelectedValue : function ( a ) { a || ( a = { } ) , this . partTree . setSelectedValue ( a ) } , getValue : function ( ) { return this . partTree . getValue ( ) } , empty : function ( ) { this . partTree . empty ( ) } , populate : function ( a ) { this . partTree . stroke . apply ( this . partTree , arguments ) } } ) , BI . MultiTreeSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiTreeSearchPane . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . MultiTreeSearchPane . EVENT _CLICK _CLEAR = "EVENT_CLICK_CLEAR" , BI . shortcut ( "bi.multi_tree_search_pane" , BI . MultiTreeSearchPane ) , BI . MultiTreeCheckSelectedButton = BI . inherit ( BI . Single , { _const : { checkSelected : BI . i18nText ( "BI-Check_Selected" ) } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeCheckSelectedButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-check-selected-button" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiTreeCheckSelectedButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . indicator = BI . createWidget ( { type : "bi.icon_button" , cls : "check-font trigger-check-selected" , width : 15 , height : 15 , stopPropagation : ! 0 } ) , this . checkSelected = BI . createWidget ( { type : "bi.text_button" , cls : "trigger-check-selected" , invisible : ! 0 , hgap : 4 , text : this . _const . checkSelected , textAlign : "center" , textHeight : 15 } ) , this . checkSelected . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . checkSelected . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedButton . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( { type : "bi.horizontal" , element : this , items : [ this . indicator , this . checkSelected ] } ) , this . element . hover ( function ( ) { a . indicator . setVisible ( ! 1 ) , a . checkSelected . setVisible ( ! 0 ) } , function ( ) { a . indicator . setVisible ( ! 0 ) , a . checkSelected . setVisible ( ! 1 ) } ) , this . setVisible ( ! 1 ) } , setValue : function ( a ) { a || ( a = { } ) , this . setVisible ( BI . size ( a . value ) > 0 ) } } ) , BI . MultiTreeCheckSelectedButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_tree_check_selected_button" , BI . MultiTreeCheckSelectedButton ) , BI . MultiTreeSearcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeSearcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-searcher" , itemsCreator : BI . emptyFn , popup : { } , adapter : null , masker : { } } ) } , _init : function ( ) { BI . MultiTreeSearcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.multi_select_editor" , height : b . height , el : { type : "bi.simple_state_editor" , height : b . height } } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( b , c ) { c ( { keyword : a . editor . getValue ( ) } ) } , el : this . editor , popup : BI . extend ( { type : "bi.multi_tree_search_pane" , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { c . keyword = a . editor . getValue ( ) , b . itemsCreator ( c , d ) } , value : b . value } , b . popup ) , adapter :
BI . shortcut ( "bi.quarter_trigger" , BI . QuarterTrigger ) , BI . ResponisveTable = BI . inherit ( BI . Widget , { _const : { perColumnSize : 100 } , _defaultConfig : function ( ) { return BI . extend ( BI . ResponisveTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-responsive-table" , isNeedFreeze : ! 1 , freezeCols : [ ] , logic : { dynamic : ! 1 } , isNeedMerge : ! 1 , mergeCols : [ ] , mergeRule : function ( a , b ) { return BI . isEqual ( a , b ) } , columnSize : [ ] , headerRowSize : 25 , footerRowSize : 25 , rowSize : 25 , regionColumnSize : ! 1 , header : [ ] , footer : ! 1 , items : [ ] , crossHeader : [ ] , crossItems : [ ] } ) } , _init : function ( ) { BI . ResponisveTable . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . table = BI . createWidget ( { type : "bi.table_view" , element : this , logic : b . logic , isNeedFreeze : b . isNeedFreeze , freezeCols : b . freezeCols , isNeedMerge : b . isNeedMerge , mergeCols : b . mergeCols , mergeRule : b . mergeRule , columnSize : b . columnSize , headerRowSize : b . headerRowSize , footerRowSize : b . footerRowSize , rowSize : b . rowSize , regionColumnSize : b . regionColumnSize , header : b . header , footer : b . footer , items : b . items , crossHeader : b . crossHeader , crossItems : b . crossItems } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _INIT , function ( ) { a . _initRegionSize ( ) , a . table . resize ( ) , a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _INIT , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _RESIZE , function ( ) { a . _resizeRegion ( ) , a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _SCROLL , function ( ) { a . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _BEFORE _REGION _RESIZE , function ( ) { a . fireEvent ( BI . Table . EVENT _TABLE _BEFORE _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _REGION _RESIZE , function ( ) { b . isNeedResize === ! 0 && a . _isAdaptiveColumn ( ) && a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _REGION _RESIZE , function ( ) { a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _REGION _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _BEFORE _COLUMN _RESIZE , function ( ) { a . _resizeBody ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _BEFORE _COLUMN _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _COLUMN _RESIZE , function ( ) { a . fireEvent ( BI . Table . EVENT _TABLE _COLUMN _RESIZE , arguments ) } ) , this . table . on ( BI . Table . EVENT _TABLE _AFTER _COLUMN _RESIZE , function ( ) { a . _resizeRegion ( ) , a . _resizeHeader ( ) , a . fireEvent ( BI . Table . EVENT _TABLE _AFTER _COLUMN _RESIZE , arguments ) } ) } , _initRegionSize : function ( ) { var a = this . options ; if ( a . isNeedFreeze === ! 0 ) { var b = this . table . getRegionColumnSize ( ) , c = this . table . element . width ( ) ; if ( ! b [ 0 ] || "fill" === b [ 0 ] || b [ 0 ] > c || b [ 1 ] > c ) { var d = a . freezeCols ; if ( 0 === d . length ) this . table . setRegionColumnSize ( [ 0 , "fill" ] ) ; else if ( d . length > 0 && d . length < a . columnSize . length ) { var e = c / 3 ; d . length > a . columnSize . length / 2 && ( e = 2 * c / 3 ) , this . table . setRegionColumnSize ( [ e , "fill" ] ) } else this . table . setRegionColumnSize ( [ "fill" , 0 ] ) } } } , _getBlockSize : function ( ) { var a = this . options , b = this . table . getCalculateColumnSize ( ) ; if ( a . isNeedFreeze === ! 0 ) { var c = [ ] , d = [ ] ; BI . each ( b , function ( b , e ) { a . freezeCols . contains ( b ) ? c . push ( e ) : d . push ( e ) } ) ; var e = BI . sum ( c ) + c . length , f = BI . sum ( d ) + d . length ; return { sumLeft : e , sumRight : f , left : c , right : d } } return { size : b , sum : BI . sum ( b ) + b . length } } , _isAdaptiveColumn : function ( a ) { return ! ( BI . last ( a || this . table . getColumnSize ( ) ) > 1.05 ) } , _resizeHeader : function ( ) { var a = this , b = this . options ; if ( b . isNeedFreeze === ! 0 ) if ( this . _isAdaptiveColumn ( ) ) { var c = this . table . getCalculateColumnSize ( ) ; this . table . setHeaderColumnSize ( c ) } else { var d = this . table . getClientRegionColumnSize ( ) , e = this . _getBlockSize ( ) , f = e . sumLeft , g = e . sumRight , h = e . left , i = e . right ; h [ h . length - 1 ] += d [ 0 ] - f , i [ i . length - 1 ] += d [ 1 ] - g ; var j = BI . clone ( h ) , k = BI . clone ( i ) ; j [ j . length - 1 ] = "" , k [ k . length - 1 ] = "" , this . table . setColumnSize ( j . concat ( k ) ) , e = a . _getBlockSize ( ) , h [ h . length - 1 ] < e . left [ e . left . length - 1 ] && ( h [ h . length - 1 ] = e . left [ e . left . length - 1 ] ) , i [ i . length - 1 ] < e . right [ e . right . length - 1 ] && ( i [ i . length - 1 ] = e . right [ e . right . length - 1 ] ) , a . table . setColumnSize ( h . concat ( i ) ) } else if ( ! this . _isAdaptiveColumn ( ) ) { var d = this . table . getClientRegionColumnSize ( ) , e = this . _getBlockSize ( ) , l = e . sum , m = e . size ; m [ m . length - 1 ] += d [ 0 ] - l ; var n = BI . clone ( m ) ; n [ n . length - 1 ] = "" , this . table . setCol
} , listeners : [ { eventName : BI . SingleSelectPopupView . EVENT _CHANGE , action : function ( ) { a . storeValue = this . getValue ( ) , a . _adjust ( function ( ) { c ( ) } ) } } , { eventName : BI . SingleSelectPopupView . EVENT _CLICK _CONFIRM , action : function ( ) { a . _defaultState ( ) } } , { eventName : BI . SingleSelectPopupView . 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 . getSearcher ( ) . adjustView ( ) } ) } } , 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 . SingleSelectCombo . EVENT _CONFIRM ) } ) ; var d = BI . createWidget ( { type : "bi.trigger_icon_button" , width : b . height , height : b . height , cls : "single-select-trigger-icon-button" } ) ; d . on ( BI . TriggerIconButton . EVENT _CHANGE , function ( ) { 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 } ] } ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) , this . combo . hideView ( ) } , _assertValue : function ( a ) { a || ( a = "" ) } , _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 . value . remove ( b ) } ) , d . _adjust ( b ) } var d = this , e = this . options ; this . _assertValue ( this . storeValue ) , this . requesting = ! 0 , e . itemsCreator ( { type : BI . SingleSelectCombo . REQ _GET _ALL _DATA , keywords : a } , function ( a ) { var b = BI . pluck ( a . items , "value" ) ; c ( b ) } ) } , _joinAll : function ( a , b ) { var c = this , d = this . options ; this . _assertValue ( a ) , this . requesting = ! 0 , d . itemsCreator ( { type : BI . SingleSelectCombo . REQ _GET _ALL _DATA , keywords : [ this . trigger . getKey ( ) ] } , function ( d ) { var e = BI . pluck ( d . items , "value" ) ; if ( c . storeValue . type === a . type ) { var f = ! 1 , g = c . _makeMap ( c . storeValue . value ) ; return BI . each ( e , function ( a , b ) { BI . isNotNull ( g [ b ] ) && ( f = ! 0 , delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void c . _adjust ( b ) } var h = c . _makeMap ( c . storeValue . value ) , i = c . _makeMap ( a . value ) , j = [ ] ; BI . each ( e , function ( a , b ) { BI . isNotNull ( h [ e [ a ] ] ) && delete h [ e [ a ] ] , BI . isNull ( i [ e [ a ] ] ) && j . push ( b ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , c . _adjust ( b ) } ) } , _adjust : function ( a ) { function b ( ) { c . wants2Quit === ! 0 && ( c . fireEvent ( BI . SingleSelectCombo . EVENT _CONFIRM ) , c . wants2Quit = ! 1 ) , c . requesting = ! 1 } var c = this , d = this . options ; this . _count ? ( b ( ) , a ( ) ) : d . itemsCreator ( { type : BI . SingleSelectCombo . REQ _GET _DATA _LENGTH } , function ( d ) { c . _count = d . count , b ( ) , a ( ) } ) } , _join : function ( a , b ) { var c = this ; this . options ; if ( this . _assertValue ( a ) , this . _assertValue ( this . storeValue ) , this . storeValue . type === a . type ) { var d = this . _makeMap ( this . storeValue . value ) ; BI . each ( a . value , function ( a , b ) { d [ b ] || ( c . storeValue . value . push ( b ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void c . _adjust ( b ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . popup . setStartValue ( a ) } , setValue : function ( a ) { this . storeValue = a || "" , this . _assertValue ( this . storeValue ) , this . combo . setValue ( this . storeValue ) } , getValue : function ( ) { return this . storeValue } , populate : function ( ) { this . _count = null , this . combo . populate . apply ( this . combo , arguments ) } } ) , BI . extend ( BI . SingleSelectCombo , { REQ _GET _DATA _LENGTH : 0 , REQ _GET _ALL _DATA : - 1 } ) , BI . SingleSelectCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.single_select_combo" , BI . SingleSelectCombo ) , BI . SingleSelectList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-select-list" , direction : BI . Direction . Top , logic : { dynamic : ! 0 } , items : [ ] , itemsCreator : BI . emptyFn , hasNext : BI . emptyFn , onLoaded : BI . emptyFn , el : { type : "bi.list_pane" } } ) } , _init : function ( ) { BI . SingleSelectList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . list = BI . createWi
quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText } ) , this . text = BI . createWidget ( { type : "bi.text_button" , cls : "sign-editor-text" , title : b . title , warningTitle : b . warningTitle , tipType : b . tipType , textAlign : "left" , height : b . height , hgap : 4 , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . selectAll ( ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . SignTextEditor . 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 _CONFIRM , function ( ) { a . _showHint ( ) , a . _checkText ( ) , a . fireEvent ( BI . SignTextEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . _checkText ( ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ this . editor ] } ) , this . _showHint ( ) , a . _checkText ( ) } , _checkText : function ( ) { var a = this . options ; BI . nextTick ( BI . bind ( function ( ) { if ( "" === this . editor . getValue ( ) ) this . text . setValue ( a . watermark || "" ) , this . text . element . addClass ( "bi-water-mark" ) ; else { var b = this . editor . getValue ( ) ; b = BI . isEmpty ( b ) || b == a . text ? a . text : b + a . text , this . text . setValue ( b ) , this . text . element . removeClass ( "bi-water-mark" ) } } , this ) ) } , _showInput : function ( ) { this . editor . visible ( ) , this . text . invisible ( ) } , _showHint : function ( ) { this . editor . invisible ( ) , this . text . visible ( ) } , setTitle : function ( a ) { this . text . setTitle ( a ) } , setWarningTitle : function ( a ) { this . text . setWarningTitle ( a ) } , focus : function ( ) { this . _showInput ( ) , this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) , this . _showHint ( ) , this . _checkText ( ) } , doRedMark : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { "" === this . editor . getValue ( ) && BI . isKey ( this . options . watermark ) || this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , isValid : function ( ) { return this . editor . isValid ( ) } , setErrorText : function ( a ) { this . editor . setErrorText ( a ) } , getErrorText : function ( ) { return this . editor . getErrorText ( ) } , isEditing : function ( ) { return this . editor . isEditing ( ) } , getLastValidValue : function ( ) { return this . editor . getLastValidValue ( ) } , setValue : function ( a ) { this . editor . setValue ( a ) , this . _checkText ( ) } , getValue : function ( ) { return this . editor . getValue ( ) } , getState : function ( ) { return this . text . getValue ( ) } , setState : function ( a ) { var b = this . options ; this . _showHint ( ) , a = BI . isEmpty ( a ) || a == b . text ? b . text : a + b . text , this . text . setValue ( a ) } } ) , BI . SignTextEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . SignTextEditor . EVENT _CLICK _LABEL = "EVENT_CLICK_LABEL" , BI . shortcut ( "bi.sign_text_editor" , BI . SignTextEditor ) , BI . SliderIconButton = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SliderIconButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-slider-button" } ) } , _init : function ( ) { BI . extend ( BI . SliderIconButton . superclass . _init . apply ( this , arguments ) ) , this . slider = BI . createWidget ( { type : "bi.icon_button" , cls : "slider-icon slider-button" , iconWidth : 14 , iconHeight : 14 , height : 14 , width : 14 } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . slider , top : 7 , left : - 7 } ] , width : 0 , height : 14 } ) } } ) , BI . shortcut ( "bi.single_slider_button" , BI . SliderIconButton ) , BI . SingleSlider = BI . inherit ( BI . Widget , { _constant : { EDITOR _WIDTH : 90 , EDITOR _HEIGHT : 30 , SLIDER _WIDTH _HALF : 15 , SLIDER _WIDTH : 30 , SLIDER _HEIGHT : 30 , TRACK _HEIGHT : 24 } , _defaultConfig : function ( ) { return BI . extend ( BI . SingleSlider . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-slider bi-slider-track" , digit : ! 1 , unit : "" } ) } , _init : function ( ) { BI . SingleSlider . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _constant ; this . enable = ! 1 , this . value = "" , 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 . track = this . _createTrackWrapp
} ) , 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 . YearTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . YearTrigger . 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 } ] } ) } , setValue : function ( a ) { this . editor . setState ( a ) , this . editor . setValue ( a ) , this . editor . setTitle ( a ) } , getKey : function ( ) { return 0 | this . editor . getValue ( ) } } ) , BI . YearTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . YearTrigger . EVENT _ERROR = "EVENT_ERROR" , BI . YearTrigger . EVENT _START = "EVENT_START" , BI . YearTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . YearTrigger . EVENT _STOP = "EVENT_STOP" , BI . shortcut ( "bi.year_trigger" , BI . YearTrigger ) , BI . YearMonthCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . YearMonthCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-year-month-combo" , yearBehaviors : { } , monthBehaviors : { } , height : 25 } ) } , _init : function ( ) { BI . YearMonthCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . value = b . value || { } , this . year = BI . createWidget ( { type : "bi.year_combo" , behaviors : b . yearBehaviors , value : b . value . year } ) , this . month = BI . createWidget ( { type : "bi.month_combo" , behaviors : b . monthBehaviors , value : b . value . month } ) , this . year . on ( BI . YearCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _CONFIRM ) } ) , this . year . on ( BI . YearCombo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _BEFORE _POPUPVIEW ) } ) , this . month . on ( BI . MonthCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _CONFIRM ) } ) , this . month . on ( BI . MonthCombo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . YearMonthCombo . EVENT _BEFORE _POPUPVIEW ) } ) , BI . createWidget ( { type : "bi.center" , element : this , hgap : 5 , items : [ this . year , this . month ] } ) } , setValue : function ( a ) { a = a || { } , this . month . setValue ( a . month ) , this . year . setValue ( a . year ) } , getValue : function ( ) { return { year : this . year . getValue ( ) , month : this . month . getValue ( ) } } } ) , BI . YearMonthCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . YearMonthCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.year_month_combo" , BI . YearMonthCombo ) , BI . YearQuarterCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . YearQuarterCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-year-quarter-combo" , yearBehaviors : { } , quarterBehaviors : { } , height : 25 } ) } , _init : function ( ) { BI . YearQuarterCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . value = b . value || { } , this . year = BI . createWidget ( { type : "bi.year_combo" , behaviors : b . yearBehaviors , value : b . value . year } ) , this . quarter = BI . createWidget ( { type : "bi.quarter_combo" , behaviors : b . quarterBehaviors , value : b . value . quarter } ) , this . year . on ( BI . YearCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . YearQuarterCombo . EVENT _CONFIRM ) } ) , this . year . on ( BI . YearCombo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . YearQuarterCombo . EVENT _BEFORE _POPUPVIEW ) } ) , this . quarter . on ( BI . QuarterCombo . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . YearQuarterCombo . EVENT _CONFIRM ) } ) , this . quarter . on ( BI . QuarterCombo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . YearQuarterCombo . EVENT _BEFORE _POPUPVIEW ) } ) , BI . createWidget ( { type : "bi.center" , element : this , hgap : 5 , items : [ this . year , this . quarter ] } ) } , setValue : function ( a ) { a = a || { } , this . quarter . setValue ( a . quarter ) , this . year . setValue ( a . year ) } , getValue : function ( ) { return { year : this . year . getValue ( ) , quarter : this . quarter . getValue ( ) } } } ) , BI . YearQuarterCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . YearQuarterCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.year_quarter_combo" , BI . YearQuarterCombo ) , BI . AbstractAllValueChooser = BI . inherit ( BI . Widget , { _const : { perPage : 100 } , _defaultConfig : function ( ) { return BI . extend ( BI . AbstractAllValueChooser . superclass . _defaultConfig . apply ( this , arguments ) , { width : 200 , height : 30 , items : null , itemsCreator : BI . emptyFn , cache : ! 0 } ) } , _valueFormatter : function ( a ) { var b = a ; retu