/*! fineui 07-09-2017 */
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 ) } window . BI || ( window . BI = { } ) , BI . servletURL = "https://fanruan.coding.me/fineui/dist/" , BI . resourceURL = "https://fanruan.coding.me/fineui/dist/resource/" , BI . i18n = { "BI-Basic_OK" : "确定" , "BI-Basic_Sure" : "确定" , "BI-Basic_Clears" : "清空" , "BI-Basic_Cancel" : "取消" , "BI-Basic_Time" : "时间" , "BI-Basic_Simple_Sunday" : "日" , "BI-Basic_Simple_Monday" : "一" , "BI-Basic_Simple_Tuesday" : "二" , "BI-Basic_Simple_Wednesday" : "三" , "BI-Basic_Simple_Thursday" : "四" , "BI-Basic_Simple_Friday" : "五" , "BI-Basic_Simple_Saturday" : "六" , "BI-Multi_Date_Year" : "年" , "BI-Multi_Date_Month" : "月" , "BI-Multi_Date_Quarter" : "季度" , "BI-Basic_Unrestricted" : "无限制" , "BI-Quarter_1" : "第1季度" , "BI-Quarter_2" : "第2季度" , "BI-Quarter_3" : "第3季度" , "BI-Quarter_4" : "第4季度" , "BI-Basic_Value" : "值" , "BI-Load_More" : "加载更多" , "BI-Select_All" : "全选" , "BI-Basic_Auto" : "自动" , "BI-No_More_Data" : "无更多数据" , "BI-No_Selected_Value" : "没有可选项" } , 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
if ( b = ia ( c ) . val ( ) , f ) return b ; g . push ( b ) } return g } , set : function ( a , b ) { var c = ia . makeArray ( b ) ; return ia ( a ) . find ( "option" ) . each ( function ( ) { this . selected = ia . inArray ( ia ( this ) . val ( ) , c ) >= 0 } ) , c . length || ( a . selectedIndex = - 1 ) , c } } } , attr : function ( a , c , d ) { var e , f , g , h = a . nodeType ; if ( a && 3 !== h && 8 !== h && 2 !== h ) return typeof a . getAttribute === V ? ia . prop ( a , c , d ) : ( f = 1 !== h || ! ia . isXMLDoc ( a ) , f && ( c = c . toLowerCase ( ) , e = ia . attrHooks [ c ] || ( Ga . test ( c ) ? Ba : Aa ) ) , d === b ? e && f && "get" in e && null !== ( g = e . get ( a , c ) ) ? g : ( typeof a . getAttribute !== V && ( g = a . getAttribute ( c ) ) , null == g ? b : g ) : null !== d ? e && f && "set" in e && ( g = e . set ( a , d , c ) ) !== b ? g : ( a . setAttribute ( c , d + "" ) , d ) : void ia . removeAttr ( a , c ) ) } , removeAttr : function ( a , b ) { var c , d , e = 0 , f = b && b . match ( ka ) ; if ( f && 1 === a . nodeType ) for ( ; c = f [ e ++ ] ; ) d = ia . propFix [ c ] || c , 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 ,
ia . text = g . getText , ia . isXMLDoc = g . isXML , ia . contains = g . contains } ( a ) ; var Pa = /Until$/ , Qa = /^(?:parents|prev(?:Until|All))/ , Ra = /^.[^:#\[\.,]*$/ , Sa = ia . expr . match . needsContext , Ta = { children : ! 0 , contents : ! 0 , next : ! 0 , prev : ! 0 } ; ia . fn . extend ( { find : function ( a ) { var b , c , d , e = this . length ; if ( "string" != typeof a ) return d = this , this . pushStack ( ia ( a ) . filter ( function ( ) { for ( b = 0 ; b < e ; b ++ ) if ( ia . contains ( d [ b ] , this ) ) return ! 0 } ) ) ; for ( c = [ ] , b = 0 ; b < e ; b ++ ) ia . find ( a , this [ b ] , c ) ; return c = this . pushStack ( e > 1 ? ia . unique ( c ) : c ) , c . selector = ( this . selector ? this . selector + " " : "" ) + a , c } , has : function ( a ) { var b , c = ia ( a , this ) , d = c . length ; return this . filter ( function ( ) { for ( b = 0 ; b < d ; b ++ ) if ( ia . contains ( this , c [ b ] ) ) return ! 0 } ) } , not : function ( a ) { return this . pushStack ( l ( this , a , ! 1 ) ) } , filter : function ( a ) { 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 . tfoo
} ; "undefined" != typeof exports ? ( "undefined" != typeof module && module . exports && ( exports = module . exports = r ) , exports . _ = r ) : d . _ = r , r . VERSION = "1.8.2" ; var s = function ( a , b , c ) { if ( void 0 === b ) return a ; switch ( null == c ? 3 : c ) { case 1 : return function ( c ) { return a . call ( b , c ) } ; case 2 : return function ( c , d ) { return a . call ( b , c , d ) } ; case 3 : return function ( c , d , e ) { return a . call ( b , c , d , e ) } ; case 4 : return function ( c , d , e , f ) { return a . call ( b , c , d , e , f ) } } return function ( ) { return a . apply ( b , arguments ) } } , t = function ( a , b , c ) { return null == a ? r . identity : r . isFunction ( a ) ? s ( a , b , c ) : r . isObject ( a ) ? r . matcher ( a ) : r . property ( a ) } ; r . iteratee = function ( a , b ) { return t ( a , b , 1 / 0 ) } ; var u = function ( a , b ) { return function ( c ) { var d = arguments . length ; if ( d < 2 || null == c ) return c ; for ( var e = 1 ; e < d ; e ++ ) for ( var f = arguments [ e ] , g = a ( f ) , h = g . length , i = 0 ; i < h ; i ++ ) { var j = g [ i ] ; b && void 0 !== c [ j ] || ( c [ j ] = f [ j ] ) } return c } } , v = function ( a ) { if ( ! r . isObject ( a ) ) return { } ; if ( p ) return p ( a ) ; q . prototype = a ; var b = new q ; return q . prototype = null , b } , w = Math . pow ( 2 , 53 ) - 1 , x = function ( a ) { var b = null != a && a . length ; return "number" == typeof b && b >= 0 && b <= w } ; r . each = r . forEach = function ( a , b , c ) { b = s ( b , c ) ; var d , e ; if ( x ( a ) ) for ( d = 0 , e = a . length ; d < e ; d ++ ) b ( a [ d ] , d , a ) ; else { var f = r . keys ( a ) ; for ( d = 0 , e = f . length ; d < e ; d ++ ) b ( a [ f [ d ] ] , f [ d ] , a ) } return a } , r . map = r . collect = function ( a , b , c ) { b = t ( b , c ) ; for ( var d = ! x ( a ) && r . keys ( a ) , e = ( d || a ) . length , f = Array ( e ) , g = 0 ; g < e ; g ++ ) { var h = d ? d [ g ] : g ; f [ g ] = b ( a [ h ] , h , a ) } return f } , r . reduce = r . foldl = r . inject = a ( 1 ) , r . reduceRight = r . foldr = a ( - 1 ) , r . find = r . detect = function ( a , b , c ) { var d ; if ( d = x ( a ) ? r . findIndex ( a , b , c ) : r . findKey ( a , b , c ) , void 0 !== d && d !== - 1 ) return a [ d ] } , r . filter = r . select = function ( a , b , c ) { var d = [ ] ; return b = t ( b , c ) , r . each ( a , function ( a , c , e ) { b ( a , c , e ) && d . push ( a ) } ) , d } , r . reject = function ( a , b , c ) { return r . filter ( a , r . negate ( t ( b ) ) , c ) } , r . every = r . all = function ( a , b , c ) { b = t ( b , c ) ; for ( var d = ! x ( a ) && r . keys ( a ) , e = ( d || a ) . length , f = 0 ; f < e ; f ++ ) { var g = d ? d [ f ] : f ; if ( ! b ( a [ g ] , g , a ) ) return ! 1 } return ! 0 } , r . some = r . any = function ( a , b , c ) { b = t ( b , c ) ; for ( var d = ! x ( a ) && r . keys ( a ) , e = ( d || a ) . length , f = 0 ; f < e ; f ++ ) { var g = d ? d [ f ] : f ; if ( b ( a [ g ] , g , a ) ) return ! 0 } return ! 1 } , r . contains = r . includes = r . include = function ( a , b , c ) { return x ( a ) || ( a = r . values ( a ) ) , r . indexOf ( a , b , "number" == typeof c && c ) >= 0 } , r . invoke = function ( a , b ) { var c = j . call ( arguments , 2 ) , d = r . isFunction ( b ) ; return r . map ( a , function ( a ) { var e = d ? b : a [ b ] ; return null == e ? e : e . apply ( a , c ) } ) } , r . pluck = function ( a , b ) { return r . map ( a , r . property ( b ) ) } , r . where = function ( a , b ) { return r . filter ( a , r . matcher ( b ) ) } , r . findWhere = function ( a , b ) { return r . find ( a , r . matcher ( b ) ) } , r . max = function ( a , b , c ) { var d , e , f = - ( 1 / 0 ) , g = - ( 1 / 0 ) ; if ( null == b && null != a ) { a = x ( a ) ? a : r . values ( a ) ; for ( var h = 0 , i = a . length ; h < i ; h ++ ) d = a [ h ] , d > f && ( f = d ) } else b = t ( b , c ) , r . each ( a , function ( a , c , d ) { e = b ( a , c , d ) , ( e > g || e === - ( 1 / 0 ) && f === - ( 1 / 0 ) ) && ( f = a , g = e ) } ) ; return f } , r . min = function ( a , b , c ) { var d , e , f = 1 / 0 , g = 1 / 0 ; if ( null == b && null != a ) { a = x ( a ) ? a : r . values ( a ) ; for ( var h = 0 , i = a . length ; h < i ; h ++ ) d = a [ h ] , d < f && ( f = d ) } else b = t ( b , c ) , r . each ( a , function ( a , c , d ) { e = b ( a , c , d ) , ( e < g || e === 1 / 0 && f === 1 / 0 ) && ( f = a , g = e ) } ) ; return f } , r . shuffle = function ( a ) { for ( var b , c = x ( a ) ? a : r . values ( a ) , d = c . length , e = Array ( d ) , f = 0 ; f < d ; f ++ ) b = r . random ( 0 , f ) , b !== f && ( e [ f ] = e [ b ] ) , e [ b ] = c [ f ] ; return e } , r . sample = function ( a , b , c ) { return null == b || c ? ( x ( a ) || ( a = r . values ( a ) ) , a [ r . random ( a . length - 1 ) ] ) : r . shuffle ( a ) . slice ( 0 , Math . max ( 0 , b ) ) } , r . sortBy = function ( a , b , c ) { return b = t ( b , c ) , r . pluck ( r . map ( a , function ( a , c , d ) { return { value : a , index : c , criteria : b ( a , c , d ) } } ) . sort ( function ( a , b ) { var c = a . criteria , d = b . criteria ; if ( c !== d ) { if ( c > d || void 0 === c ) return 1 ; if ( c < d || void 0 === d ) return - 1 } return a . index - b . index } ) , "value" ) } ; var y = function ( a ) { return function ( b , c , d ) { var e = { } ; return c = t ( c , d ) , r . each ( b , function ( d , f ) { var g = c ( d , f , b ) ; a ( e , d , g ) } ) , e } } ; r . groupBy = y ( function ( a , b , c ) { r . has ( a , c ) ? a [ c ] . push ( b ) : a [ c ] = [ b ] } ) , r . indexBy = y ( function ( a , b , c ) { a [ c ] = b } ) , r . countBy = y ( function ( a , b , c ) { r . has ( a , c ) ? a [ c ] ++ : a [ c ] = 1 } ) , r . toArray = function ( a ) { return a ? r . isArray ( a ) ? j . call ( a ) : x ( a ) ? r . map ( a , r . identity ) : r . values ( a ) : [ ] } , r . size = function ( a ) { return null == a ? 0 : x ( a ) ? a . length : r . keys ( a ) . length } , r . partition = function ( a , b , c ) { b = t ( b , c ) ; var d = [ ] , e = [ ] ; return r . each ( a , function ( a , c , f ) { ( b ( a , c , f ) ? d : e ) . push ( a ) } ) , [ d , e ] } , r . first = r . head = r . take = function ( a , b , c ) { if ( null != a ) return null == b || c ? a [ 0 ] : r . initial ( a , a . length - b ) } , r . initial = function ( a ,
this . _bindRoutes ( ) , this . _init . apply ( this , arguments ) } , y = /\((.*?)\)/g , z = /(\(\?)?:\w+/g , A = /\*\w+/g , B = /[\-{}\[\]+?.,\\\^$|#\s]/g ; c . extend ( x . prototype , h , { _init : function ( ) { } , route : function ( a , d , e ) { c . isRegExp ( a ) || ( a = this . _routeToRegExp ( a ) ) , c . isFunction ( d ) && ( e = d , d = "" ) , e || ( e = this [ d ] ) ; var f = this ; return b . history . route ( a , function ( c ) { var g = f . _extractParameters ( a , c ) ; f . execute ( e , g , d ) !== ! 1 && ( f . trigger . apply ( f , [ "route:" + d ] . concat ( g ) ) , f . trigger ( "route" , d , g ) , b . history . trigger ( "route" , f , d , g ) ) } ) , this } , execute : function ( a , b , c ) { a && a . apply ( this , b ) } , navigate : function ( a , c ) { return b . history . navigate ( a , c ) , this } , _bindRoutes : function ( ) { if ( this . routes ) { this . routes = c . result ( this , "routes" ) ; for ( var a , b = c . keys ( this . routes ) ; null != ( a = b . pop ( ) ) ; ) this . route ( a , this . routes [ a ] ) } } , _routeToRegExp : function ( a ) { return a = a . replace ( B , "\\$&" ) . replace ( y , "(?:$1)?" ) . replace ( z , function ( a , b ) { return b ? a : "([^/?]+)" } ) . replace ( A , "([^?]*?)" ) , new RegExp ( "^" + a + "(?:\\?([\\s\\S]*))?$" ) } , _extractParameters : function ( a , b ) { var d = a . exec ( b ) . slice ( 1 ) ; return c . map ( d , function ( a , b ) { return b === d . length - 1 ? a || null : a ? decodeURIComponent ( a ) : null } ) } } ) ; var C = b . History = function ( ) { this . handlers = [ ] , c . bindAll ( this , "checkUrl" ) , "undefined" != typeof window && ( this . location = window . location , this . history = window . history ) } , D = /^[#\/]|\s+$/g , E = /^\/+|\/+$/g , F = /#.*$/ ; C . started = ! 1 , c . extend ( C . prototype , h , { interval : 50 , atRoot : function ( ) { var a = this . location . pathname . replace ( /[^\/]$/ , "$&/" ) ; return a === this . root && ! this . getSearch ( ) } , getSearch : function ( ) { var a = this . location . href . replace ( /#.*/ , "" ) . match ( /\?.+/ ) ; return a ? a [ 0 ] : "" } , getHash : function ( a ) { var b = ( a || this ) . location . href . match ( /#(.*)$/ ) ; return b ? b [ 1 ] : "" } , getPath : function ( ) { var a = decodeURI ( this . location . pathname + this . getSearch ( ) ) , b = this . root . slice ( 0 , - 1 ) ; return a . indexOf ( b ) || ( a = a . slice ( b . length ) ) , "/" === a . charAt ( 0 ) ? a . slice ( 1 ) : a } , getFragment : function ( a ) { return null == a && ( a = this . _hasPushState || ! this . _wantsHashChange ? this . getPath ( ) : this . getHash ( ) ) , a . replace ( D , "" ) } , start : function ( a ) { if ( C . started ) throw new Error ( "BI.history has already been started" ) ; if ( C . started = ! 0 , this . options = c . extend ( { root : "/" } , this . options , a ) , this . root = this . options . root , this . _wantsHashChange = this . options . hashChange !== ! 1 , this . _hasHashChange = "onhashchange" in window , this . _wantsPushState = ! ! this . options . pushState , this . _hasPushState = ! ! ( this . options . pushState && this . history && this . history . pushState ) , this . fragment = this . getFragment ( ) , this . root = ( "/" + this . root + "/" ) . replace ( E , "/" ) , this . _wantsHashChange && this . _wantsPushState ) { if ( ! this . _hasPushState && ! this . atRoot ( ) ) { var b = this . root . slice ( 0 , - 1 ) || "/" ; return this . location . replace ( b + "#" + this . getPath ( ) ) , ! 0 } this . _hasPushState && this . atRoot ( ) && this . navigate ( this . getHash ( ) , { replace : ! 0 } ) } if ( ! this . _hasHashChange && this . _wantsHashChange && ( ! this . _wantsPushState || ! this . _hasPushState ) ) { var d = document . createElement ( "iframe" ) ; d . src = "javascript:0" , d . style . display = "none" , d . tabIndex = - 1 ; var e = document . body ; this . iframe = e . insertBefore ( d , e . firstChild ) . contentWindow , this . iframe . document . open ( ) . close ( ) , this . iframe . location . hash = "#" + this . fragment } var f = window . addEventListener || function ( a , b ) { return attachEvent ( "on" + a , b ) } ; if ( this . _hasPushState ? f ( "popstate" , this . checkUrl , ! 1 ) : this . _wantsHashChange && this . _hasHashChange && ! this . iframe ? f ( "hashchange" , this . checkUrl , ! 1 ) : this . _wantsHashChange && ( this . _checkUrlInterval = setInterval ( this . checkUrl , this . interval ) ) , ! this . options . silent ) return this . loadUrl ( ) } , stop : function ( ) { var a = window . removeEventListener || function ( a , b ) { return detachEvent ( "on" + a , b ) } ; this . _hasPushState ? a ( "popstate" , this . checkUrl , ! 1 ) : this . _wantsHashChange && this . _hasHashChange && ! this . iframe && a ( "hashchange" , this . checkUrl , ! 1 ) , this . iframe && ( document . body . removeChild ( this . iframe . frameElement ) , this . iframe = null ) , this . _checkUrlInterval && clearInterval ( this . _checkUrlInterval ) , C . started = ! 1 } , route : function ( a , b ) { this . handlers . unshift ( { route : a , callback : b } ) } , checkUrl : function ( a ) { var b = this . getFragment ( ) ; return b === this . fragment && this . iframe && ( b = this . getHash ( this . iframe ) ) , b !== this . fragment && ( this . iframe && this . navigate ( b ) , void this . loadUrl ( ) ) } , loadUrl : function ( a ) { return a = this . fragment = this . getFragment ( a ) , c . any ( this . handl
BI . Model . superclass . has . apply ( this , arguments ) ) } , cat : function ( a ) { if ( _ . has ( this . _tmp , a ) ) return this . _tmp [ a ] ; if ( this . _start === ! 0 && this . _hass [ a ] ) switch ( delete this . _hass [ a ] , a ) { case "default" : break ; case "current" : break ; default : this . _gets . push ( a ) } if ( _ . has ( this . attributes , a ) ) return this . attributes [ a ] ; var b = _ . result ( this , "_static" ) ; return BI . isFunction ( b [ a ] ) ? b [ a ] . apply ( this , BI . values ( arguments ) . slice ( 1 ) ) : b [ a ] } , get : function ( ) { return BI . deepClone ( this . cat . apply ( this , arguments ) ) } , set : function ( a , b , c ) { return this . _start === ! 0 || this . _changing _ === ! 0 ? ( this . _F . push ( { f : this . set , arg : arguments } ) , this ) : BI . Model . superclass . set . apply ( this , arguments ) } , unset : function ( a , b ) { var c = this ; return BI . each ( this . _childs , function ( b , d ) { b += "" ; var e = b . split ( "." ) ; _ . isEqual ( a , e [ 0 ] ) && ( delete c . _childs [ a ] , BI . isArray ( d ) || ( d = [ d ] ) , BI . each ( d , function ( a , b ) { b . trigger ( "unset" ) } ) ) } ) , BI . Model . superclass . unset . apply ( this , arguments ) } , tmp : function ( a , b , c ) { if ( this . _start === ! 0 || this . _changing _ === ! 0 ) return this . _F . push ( { f : this . tmp , arg : arguments } ) , this ; var d , e , f , g , h , i , j , k , l ; if ( null == a ) return this ; "object" == typeof a ? ( e = a , c = b ) : ( e = { } ) [ a ] = b , c || ( c = { } ) , f = c . unset , h = c . silent , g = [ ] , i = this . _changingTmp , this . _changingTmp = ! 0 , i || ( this . _previousTmp = _ . clone ( this . _tmp ) , this . changedTmp = { } ) , this . _previousTmp || ( this . _previousTmp = _ . clone ( this . _tmp ) ) , l = this . _tmp , k = this . _previousTmp ; for ( d in e ) b = e [ d ] , _ . isEqual ( l [ d ] , b ) || g . push ( d ) , _ . isEqual ( k [ d ] , b ) ? delete this . changedTmp [ d ] : this . changedTmp [ d ] = b , f ? delete l [ d ] : l [ d ] = b ; if ( ! h ) { g . length && ( this . _pendingTmp = c ) ; for ( var m = 0 , n = g . length ; m < n ; m ++ ) this . trigger ( "change:" + g [ m ] , this , l [ g [ m ] ] , c ) } if ( i ) return this ; if ( j = BI . clone ( this . changedTmp ) , ! h ) for ( ; this . _pendingTmp ; ) c = this . _pendingTmp , this . _pendingTmp = ! 1 , this . trigger ( "change" , j , k , this , c ) ; return this . _pendingTmp = ! 1 , this . _changingTmp = ! 1 , ! h && g . length && this . trigger ( "changed" , j , k , this , c ) , this } , untmp : function ( a , b ) { var c = this ; return BI . each ( this . _childs , function ( b , d ) { b += "" ; var e = b . split ( "." ) ; _ . isEqual ( a , e [ 0 ] ) && ( delete c . _childs [ a ] , BI . isArray ( d ) || ( d = [ d ] ) , BI . each ( d , function ( a , b ) { b . trigger ( "unset" ) } ) ) } ) , this . tmp ( a , void 0 , _ . extend ( { } , b , { unset : ! 0 } ) ) } , cancel : function ( a ) { var b = this , c = BI . clone ( this . _tmp ) ; this . _tmp = { } , BI . each ( c , function ( c ) { b . untmp ( c , a ) } ) } , submit : function ( ) { var a = BI . clone ( this . _tmp ) ; return this . _tmp = { } , this . set ( a ) , this } , urlRoot : function ( ) { return BI . servletURL } , parse : function ( a ) { return a } , setEditing : function ( a ) { this . _editing = a } , getEditing : function ( ) { if ( this . _start !== ! 0 ) throw new Error ( "getEditing函数只允许在local中调用" ) ; return this . _editing } , local : function ( ) { } , load : function ( a ) { } , refresh : function ( ) { } , updateURL : function ( ) { } , patchURL : function ( ) { } , deleteURL : function ( ) { } , readURL : function ( ) { } , read : function ( a ) { return 1 == this . _start || this . _changing _ === ! 0 ? void this . _F . push ( { f : this . read , arg : arguments } ) : void this . _read ( a ) } , update : function ( a ) { return 1 == this . _start || this . _changing _ === ! 0 ? void this . _F . push ( { f : this . update , arg : arguments } ) : void this . _save ( null , a ) } , patch : function ( a ) { return 1 == this . _start || this . _changing _ === ! 0 ? void this . _F . push ( { f : this . patch , arg : arguments } ) : void this . _save ( null , BI . extend ( { } , a , { patch : ! 0 } ) ) } , _destroy : function ( ) { var a = BI . extend ( { } , this . _childs ) ; this . _childs = { } , BI . each ( a , function ( a , b ) { b . _destroy ( ) } ) , this . destroyed && this . destroyed ( ) } , destroy : function ( ) { this . _destroy ( ) , BI . Model . superclass . destroy . apply ( this , arguments ) } } ) , BI . View = BI . inherit ( BI . V , { beforeCreate : null , created : null , beforeDestroy : null , destroyed : null , _init : function ( ) { BI . View . superclass . _init . apply ( this , arguments ) , this . beforeCreate && this . beforeCreate ( ) ; var a = this ; this . listenTo ( this . model , "change:current" , function ( a , b ) { BI . isNotNull ( b ) && b . length > 0 && this . refresh ( b ) } ) . listenTo ( this . model , "change" , function ( a ) { this . delegateEvents ( ) } ) . listenTo ( this . model , "changed" , function ( a , b , c , d ) { if ( BI . has ( a , "current" ) && BI . size ( a ) > 1 ) throw new Error ( "refresh操作不能调用set操作" ) ; var e = ! BI . has ( a , "current" ) && ! this . local ( ) && this . notifyParent ( ) . notify ( ) ; this . model . actionEnd ( ) && this . actionEnd ( ) , this . model . _changing _ = ! 0 , e && ! BI . isEmpty ( a ) && this . change ( a , b , c , d ) , this . model . _changing _ = ! 1 , this . model . actionEnd ( ) && this . actionEnd ( ) } ) . listenTo ( this . model , "destroy" , function ( ) { thi
19969 : "DZ" , 19975 : "WM" , 19988 : "QJ" , 20048 : "YL" , 20056 : "SC" , 20060 : "NM" , 20094 : "QG" , 20127 : "QJ" , 20167 : "QC" , 20193 : "YG" , 20250 : "KH" , 20256 : "ZC" , 20282 : "SC" , 20285 : "QJG" , 20291 : "TD" , 20314 : "YD" , 20340 : "NE" , 20375 : "TD" , 20389 : "YJ" , 20391 : "CZ" , 20415 : "PB" , 20446 : "YS" , 20447 : "SQ" , 20504 : "TC" , 20608 : "KG" , 20854 : "QJ" , 20857 : "ZC" , 20911 : "PF" , 20504 : "TC" , 20608 : "KG" , 20854 : "QJ" , 20857 : "ZC" , 20911 : "PF" , 20985 : "AW" , 21032 : "PB" , 21048 : "XQ" , 21049 : "SC" , 21089 : "YS" , 21119 : "JC" , 21242 : "SB" , 21273 : "SC" , 21305 : "YP" , 21306 : "QO" , 21330 : "ZC" , 21333 : "SDC" , 21345 : "QK" , 21378 : "CA" , 21397 : "SC" , 21414 : "XS" , 21442 : "SC" , 21477 : "JG" , 21480 : "TD" , 21484 : "ZS" , 21494 : "YX" , 21505 : "YX" , 21512 : "HG" , 21523 : "XH" , 21537 : "PB" , 21542 : "PF" , 21549 : "KH" , 21571 : "E" , 21574 : "DA" , 21588 : "TD" , 21589 : "O" , 21618 : "ZC" , 21621 : "KHA" , 21632 : "ZJ" , 21654 : "KG" , 21679 : "LKG" , 21683 : "KH" , 21710 : "A" , 21719 : "YH" , 21734 : "WOE" , 21769 : "A" , 21780 : "WN" , 21804 : "XH" , 21834 : "A" , 21899 : "ZD" , 21903 : "RN" , 21908 : "WO" , 21939 : "ZC" , 21956 : "SA" , 21964 : "YA" , 21970 : "TD" , 22003 : "A" , 22031 : "JG" , 22040 : "XS" , 22060 : "ZC" , 22066 : "ZC" , 22079 : "MH" , 22129 : "XJ" , 22179 : "XA" , 22237 : "NJ" , 22244 : "TD" , 22280 : "JQ" , 22300 : "YH" , 22313 : "XW" , 22331 : "YQ" , 22343 : "YJ" , 22351 : "PH" , 22395 : "DC" , 22412 : "TD" , 22484 : "PB" , 22500 : "PB" , 22534 : "ZD" , 22549 : "DH" , 22561 : "PB" , 22612 : "TD" , 22771 : "KQ" , 22831 : "HB" , 22841 : "JG" , 22855 : "QJ" , 22865 : "XQ" , 23013 : "ML" , 23081 : "WM" , 23487 : "SX" , 23558 : "QJ" , 23561 : "YW" , 23586 : "YW" , 23614 : "YW" , 23615 : "SN" , 23631 : "PB" , 23646 : "ZS" , 23663 : "ZT" , 23673 : "YG" , 23762 : "TD" , 23769 : "ZS" , 23780 : "QJ" , 23884 : "QK" , 24055 : "XH" , 24113 : "DC" , 24162 : "ZC" , 24191 : "GA" , 24273 : "QJ" , 24324 : "NL" , 24377 : "TD" , 24378 : "QJ" , 24439 : "PF" , 24554 : "ZS" , 24683 : "TD" , 24694 : "WE" , 24733 : "LK" , 24925 : "TN" , 25094 : "ZG" , 25100 : "XQ" , 25103 : "XH" , 25153 : "PB" , 25170 : "PB" , 25179 : "KG" , 25203 : "PB" , 25240 : "ZS" , 25282 : "FB" , 25303 : "NA" , 25324 : "KG" , 25341 : "ZY" , 25373 : "WZ" , 25375 : "XJ" , 25384 : "A" , 25457 : "A" , 25528 : "SD" , 25530 : "SC" , 25552 : "TD" , 25774 : "ZC" , 25874 : "ZC" , 26044 : "YW" , 26080 : "WM" , 26292 : "PB" , 26333 : "PB" , 26355 : "ZY" , 26366 : "CZ" , 26397 : "ZC" , 26399 : "QJ" , 26415 : "ZS" , 26451 : "SB" , 26526 : "ZC" , 26552 : "JG" , 26561 : "TD" , 26588 : "JG" , 26597 : "CZ" , 26629 : "ZS" , 26638 : "YL" , 26646 : "XQ" , 26653 : "KG" , 26657 : "XJ" , 26727 : "HG" , 26894 : "ZC" , 26937 : "ZS" , 26946 : "ZC" , 26999 : "KJ" , 27099 : "KJ" , 27449 : "YQ" , 27481 : "XS" , 27542 : "ZS" , 27663 : "ZS" , 27748 : "TS" , 27784 : "SC" , 27788 : "ZD" , 27795 : "TD" , 27812 : "O" , 27850 : "PB" , 27852 : "MB" , 27895 : "SL" , 27898 : "PL" , 27973 : "QJ" , 27981 : "KH" , 27986 : "HX" , 27994 : "XJ" , 28044 : "YC" , 28065 : "WG" , 28177 : "SM" , 28267 : "QJ" , 28291 : "KH" , 28337 : "ZQ" , 28463 : "TL" , 28548 : "DC" , 28601 : "TD" , 28689 : "PB" , 28805 : "JG" , 28820 : "QG" , 28846 : "PB" , 28952 : "TD" , 28975 : "ZC" , 29100 : "A" , 29325 : "QJ" , 29575 : "SL" , 29602 : "FB" , 30010 : "TD" , 30044 : "CX" , 30058 : "PF" , 30091 : "YSP" , 30111 : "YN" , 30229 : "XJ" , 30427 : "SC" , 30465 : "SX" , 30631 : "YQ" , 30655 : "QJ" , 30684 : "QJG" , 30707 : "SD" , 30729 : "XH" , 30796 : "LG" , 30917 : "PB" , 31074 : "NM" , 31085 : "JZ" , 31109 : "SC" , 31181 : "ZC" , 31192 : "MLB" , 31293 : "JQ" , 31400 : "YX" , 31584 : "YJ" , 31896 : "ZN" , 31909 : "ZY" , 31995 : "XJ" , 32321 : "PF" , 32327 : "ZY" , 32418 : "HG" , 32420 : "XQ" , 32421 : "HG" , 32438 : "LG" , 32473 : "GJ" , 32488 : "TD" , 32521 : "QJ" , 32527 : "PB" , 32562 : "ZSQ" , 32564 : "JZ" , 32735 : "ZD" , 32793 : "PB" , 33071 : "PF" , 33098 : "XL" , 33100 : "YA" , 33152 : "PB" , 33261 : "CX" , 33324 : "BP" , 33333 : "TD" , 33406 : "YA" , 33426 : "WM" , 33432 : "PB" , 33445 : "JG" , 33486 : "ZN" , 33493 : "TS" , 33507 : "QJ" , 33540 : "QJ" , 33544 : "ZC" , 33564 : "XQ" , 33617 : "YT" , 33632 : "QJ" , 33636 : "XH" , 33637 : "YX" , 33694 : "WG" , 33705 : "PF" , 33728 : "YW" , 33882 : "SR" , 34067 : "WM" , 34074 : "YW" , 34121 : "QJ" , 34255 : "ZC" , 34259 : "XL" , 34425 : "JH" , 34430 : "XH" , 34485 : "KH" , 34503 : "YS" , 34532 : "HG" , 34552 : "XS" , 34558 : "YE" , 34593 : "ZL" , 34660 : "YQ" , 34892 : "XH" , 34928 : "SC" , 34999 : "QJ" , 35048 : "PB" , 35059 : "SC" , 35098 : "ZC" , 35203 : "TQ" , 35265 : "JX" , 35299 : "JX" , 35782 : "SZ" , 35828 : "YS" , 35830 : "E" , 35843 : "TD" , 35895 : "YG" , 35977 : "MH" , 36158 : "JG" , 36228 : "QJ" , 36426 : "XQ" , 36466 : "DC" , 36710 : "JC" , 36711 : "ZYG" , 36767 : "PB" , 36866 : "SK" , 36951 : "YW" , 37034 : "YX" , 37063 : "XH" , 37218 : "ZC" , 37325 : "ZC" , 38063 : "PB" , 38079 : "TD" , 38085 : "QY" , 38107 : "DC" , 38116 : "TD" , 38123 : "YD" , 38224 : "HG" , 38241 : "XTC" , 38271 : "ZC" , 38415 : "YE" , 38426 : "KH" , 38461 : "YD" , 38463 : "AE" , 38466 : "PB" , 38477 : "XJ" , 38518 : "YT" , 38551 : "WK" , 38585 : "ZC" , 38704 : "XS" , 38739 : "LJ" , 38761 : "GJ" , 38808 : "SQ" , 39048 : "JG" , 39049 : "XJ" , 39052 : "HG" , 39076 : "CZ" , 39271 : "XT" , 39534 : "TD" , 39552 : "TD" , 39584 : "PB" , 39647 : "SB" , 39730 : "LG" , 39748 : "TPB" , 40109 : "ZQ" , 40479 : "ND" , 40516 : "HG" , 40536 : "HG" , 40583 : "QJ" , 40765 : "YQ" , 40
this . children = [ ] } , addChild : function ( a , b ) { var c = null ; c = BI . isUndefined ( b ) ? this . children . length - 1 : b - 1 , a . setParent ( this ) , c >= 0 && ( this . getChild ( c ) . setRight ( a ) , a . setLeft ( this . getChild ( c ) ) ) , BI . isUndefined ( b ) ? this . children . push ( a ) : this . children . splice ( b , 0 , a ) } , equals : function ( a ) { return this === a || this . id === a . id } , clear : function ( ) { this . parent = null , this . left = null , this . right = null , this . children = [ ] } } , BI . extend ( BI . Tree , { transformToArrayFormat : function ( a , b ) { if ( ! a ) return [ ] ; var c = [ ] ; if ( BI . isArray ( a ) ) for ( var d = 0 , e = a . length ; d < e ; d ++ ) { var f = BI . clone ( a [ d ] ) ; f . pId = null == f . pId ? b : f . pId , delete f . children , c . push ( f ) , a [ d ] . children && ( c = c . concat ( BI . Tree . transformToArrayFormat ( a [ d ] . children , f . id ) ) ) } else { var g = BI . clone ( a ) ; g . pId = null == g . pId ? b : g . pId , delete g . children , c . push ( g ) , a . children && ( c = c . concat ( BI . Tree . transformToArrayFormat ( a . children , g . id ) ) ) } return c } , arrayFormat : function ( a , b ) { if ( ! a ) return [ ] ; var c = [ ] ; if ( BI . isArray ( a ) ) for ( var d = 0 , e = a . length ; d < e ; d ++ ) { var f = a [ d ] ; f . pId = null == f . pId ? b : f . pId , c . push ( f ) , a [ d ] . children && ( c = c . concat ( BI . Tree . arrayFormat ( a [ d ] . children , f . id ) ) ) } else { var g = a ; g . pId = null == g . pId ? b : g . pId , c . push ( g ) , a . children && ( c = c . concat ( BI . Tree . arrayFormat ( a . children , g . id ) ) ) } return c } , transformToTreeFormat : function ( a ) { var b , c ; if ( ! a ) return [ ] ; if ( BI . isArray ( a ) ) { var d = [ ] , e = [ ] ; for ( b = 0 , c = a . length ; b < c ; b ++ ) { if ( BI . isNull ( a [ b ] . id ) ) return a ; e [ a [ b ] . id ] = BI . clone ( a [ b ] ) } for ( b = 0 , c = a . length ; b < c ; b ++ ) e [ a [ b ] . pId ] && a [ b ] . id !== a [ b ] . pId ? ( e [ a [ b ] . pId ] . children || ( e [ a [ b ] . pId ] . children = [ ] ) , e [ a [ b ] . pId ] . children . push ( e [ a [ b ] . id ] ) ) : d . push ( e [ a [ b ] . id ] ) , delete e [ a [ b ] . id ] . pId ; return d } return [ a ] } , treeFormat : function ( a ) { var b , c ; if ( ! a ) return [ ] ; if ( BI . isArray ( a ) ) { var d = [ ] , e = [ ] ; for ( b = 0 , c = a . length ; b < c ; b ++ ) { if ( BI . isNull ( a [ b ] . id ) ) return a ; e [ a [ b ] . id ] = a [ b ] } for ( b = 0 , c = a . length ; b < c ; b ++ ) e [ a [ b ] . pId ] && a [ b ] . id !== a [ b ] . pId ? ( e [ a [ b ] . pId ] . children || ( e [ a [ b ] . pId ] . children = [ ] ) , e [ a [ b ] . pId ] . children . push ( e [ a [ b ] . id ] ) ) : d . push ( e [ a [ b ] . id ] ) ; return d } return [ a ] } , traversal : function ( a , b ) { if ( ! BI . isNull ( a ) ) { var c = this ; BI . any ( a , function ( a , d ) { return b ( a , d ) === ! 1 || void c . traversal ( d . children , b ) } ) } } } ) } ( ) , BI . Vector = function ( a , b ) { this . x = a , this . y = b } , BI . Vector . prototype = { constructor : BI . Vector , cross : function ( a ) { return this . x * a . y - this . y * a . x } , length : function ( a ) { return Math . sqrt ( this . x * a . x + this . y * a . y ) } } , BI . Region = function ( a , b , c , d ) { this . x = a , this . y = b , this . w = c , this . h = d } , BI . Region . prototype = { constructor : BI . Region , isIntersects : function ( a ) { if ( this . isPointInside ( a . x , a . y ) || this . isPointInside ( a . x + a . w , a . y ) || this . isPointInside ( a . x , a . y + a . h ) || this . isPointInside ( a . x + a . w , a . y + a . h ) ) return ! 0 ; if ( a . isPointInside ( this . x , this . y ) || a . isPointInside ( this . x + this . w , this . y ) || a . isPointInside ( this . x , this . y + this . h ) || a . isPointInside ( this . x + this . w , this . y + this . h ) ) return ! 0 ; 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 && thi
} return this . controller . open ( a ) , this . views [ a ] . populate ( h , e . force || ! 0 ) , this } , close : function ( a ) { return this . controller && this . controller . close ( a ) , this } , remove : function ( a , b ) { return a = b . rootURL + "/" + a , this . controller && ( this . controller . remove ( a ) , delete this . store [ a ] , this . views [ a ] && this . views [ a ] . model . destroy ( ) , delete this . views [ a ] ) , this } } ) , BI . EventList = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . EventList . superclass . _defaultConfig . apply ( this , arguments ) , { event : "click" , callback : BI . emptyFn , handle : "" , items : [ ] } ) } , _init : function ( ) { BI . EventList . superclass . _init . apply ( this , arguments ) , this . populate ( this . options . items ) } , _getHandle : function ( a ) { var b = this . options . handle ? _ . result ( a , this . options . handle ) : a ; return b . element || b } , populate : function ( a ) { var b = this , c = this . options . event , d = this . options . callback ; BI . nextTick ( function ( ) { BI . each ( a , function ( a , e ) { var f = d ( e ) ; BI . isFunction ( f ) && ( f = BI . debounce ( f , BI . EVENT _RESPONSE _TIME , ! 0 ) ) , b . _getHandle ( e ) [ c ] ( f ) } ) } ) } } ) , BI . ListenerList = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . ListenerList . superclass . _defaultConfig . apply ( this , arguments ) , { event : "click" , callback : BI . emptyFn , items : [ ] } ) } , _init : function ( ) { BI . ListenerList . superclass . _init . apply ( this , arguments ) , this . populate ( this . options . items ) } , _getHandle : function ( a ) { var b = this . options . handle ? _ . result ( a , this . options . handle ) : a ; return b . element || b } , populate : function ( a ) { var b = this , c = this . options . event , d = this . options . callback ; BI . nextTick ( function ( ) { BI . each ( a , function ( a , e ) { var f = d ( e ) ; BI . isFunction ( f ) && ( f = BI . debounce ( f , BI . EVENT _RESPONSE _TIME , ! 0 ) ) , b . _getHandle ( e ) . on ( c , f ) } ) } ) } } ) , BI . OffList = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . OffList . superclass . _defaultConfig . apply ( this , arguments ) , { event : "click" , items : [ ] } ) } , _init : function ( ) { BI . OffList . superclass . _init . apply ( this , arguments ) , this . populate ( this . options . items ) } , _getHandle : function ( a ) { var b = this . options . handle ? _ . result ( a , this . options . handle ) : a ; return b . element || b } , populate : function ( a ) { var b = this , c = this . options . event ; BI . each ( a , function ( a , d ) { b . _getHandle ( d ) . off ( c ) } ) } } ) , _ . 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 . text ( ( a + "" ) . replaceAll ( " " , " " ) ) ; 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" ) . text ( d . substr ( e ,
{ x : b . left , y : b . top , width : this . outerWidth ( ) , height : this . outerHeight ( ) } ) } ) } ( jQuery ) , Number . prototype . toFixed && "0.000" === 8e-5 . toFixed ( 3 ) && "0" !== . 9. toFixed ( 0 ) && "1.25" === 1.255 . toFixed ( 2 ) && "1000000000000000128" === ( 0xde0b6b3a7640080 ) . toFixed ( 0 ) || ! function ( ) { function a ( a , b ) { for ( var c = - 1 ; ++ c < g ; ) b += a * h [ c ] , h [ c ] = b % f , b = Math . floor ( b / f ) } function b ( a ) { for ( var b = g , c = 0 ; -- b >= 0 ; ) c += h [ b ] , h [ b ] = Math . floor ( c / a ) , c = c % a * f } function c ( ) { for ( var a = g , b = "" ; -- a >= 0 ; ) if ( "" !== b || 0 === a || 0 !== h [ a ] ) { var c = String ( h [ a ] ) ; "" === b ? b = c : b += "0000000" . slice ( 0 , 7 - c . length ) + c } return b } function d ( a , b , c ) { return 0 === b ? c : b % 2 === 1 ? d ( a , b - 1 , c * a ) : d ( a * a , b / 2 , c ) } function e ( a ) { for ( var b = 0 ; a >= 4096 ; ) b += 12 , a /= 4096 ; for ( ; a >= 2 ; ) b += 1 , a /= 2 ; return b } var f , g , h ; f = 1e7 , g = 6 , h = [ 0 , 0 , 0 , 0 , 0 , 0 ] , Number . prototype . toFixed = function ( f ) { var g , h , i , j , k , l , m , n ; if ( g = Number ( f ) , g = g !== g ? 0 : Math . floor ( g ) , g < 0 || g > 20 ) throw new RangeError ( "Number.toFixed called with invalid number of decimals" ) ; if ( h = Number ( this ) , h !== h ) return "NaN" ; if ( h <= - 1e21 || h > 1e21 ) return String ( h ) ; if ( i = "" , h < 0 && ( i = "-" , h = - h ) , j = "0" , h > 1e-21 ) if ( k = e ( h * d ( 2 , 69 , 1 ) ) - 69 , l = k < 0 ? h * d ( 2 , - k , 1 ) : h / d ( 2 , k , 1 ) , l *= 4503599627370496 , k = 52 - k , k > 0 ) { for ( a ( 0 , l ) , m = g ; m >= 7 ; ) a ( 1e7 , 0 ) , m -= 7 ; for ( a ( d ( 10 , m , 1 ) , 0 ) , m = k - 1 ; m >= 23 ; ) b ( 1 << 23 ) , m -= 23 ; b ( 1 << m ) , a ( 1 , 1 ) , b ( 2 ) , j = c ( ) } else a ( 0 , l ) , a ( 1 << - k , 0 ) , j = c ( ) + "0.00000000000000000000" . slice ( 2 , 2 + g ) ; return g > 0 ? ( n = j . length , j = n <= g ? i + "0.0000000000000000000" . slice ( 0 , g - n + 2 ) + j : i + j . slice ( 0 , n - g ) + "." + j . slice ( n - g ) ) : j = i + j , j } } ( ) , Number . prototype . add = function ( a ) { return accAdd ( a , this ) } , Number . prototype . sub = function ( a ) { return accSub ( this , a ) } , Number . prototype . mul = function ( a ) { return accMul ( a , this ) } , Number . prototype . div = function ( a ) { return accDiv ( this , a ) } , $ . extend ( String . prototype , { startWith : function ( a ) { return ! ( null == a || "" == a || 0 === this . length || a . length > this . length ) && this . substr ( 0 , a . length ) == a } , endWith : function ( a ) { return ! ( null == a || "" == a || 0 === this . length || a . length > this . length ) && this . substring ( this . length - a . length ) == a } , getQuery : function ( a ) { var b = new RegExp ( "(^|&)" + a + "=([^&]*)(&|$)" ) , c = this . substr ( this . indexOf ( "?" ) + 1 ) . match ( b ) ; return c ? unescape ( c [ 2 ] ) : null } , appendQuery : function ( a ) { if ( ! a ) return this ; var b = this ; return b . indexOf ( "?" ) === - 1 && ( b += "?" ) , b . endWith ( "?" ) !== ! 1 || ( b += "&" ) , $ . each ( a , function ( a , c ) { "string" == typeof a && ( b += a + "=" + c + "&" ) } ) , b = b . substr ( 0 , b . length - 1 ) } , replaceAll : function ( a , b ) { return this . replace ( new RegExp ( a , "gm" ) , b ) } , perfectStart : function ( a ) { return this . startWith ( a ) ? this : a + this } , allIndexOf : function ( a ) { if ( "string" != typeof a ) return [ ] ; for ( var b = this , c = [ ] , d = 0 ; b . length > 0 ; ) { var e = b . indexOf ( a ) ; if ( e === - 1 ) break ; c . push ( d + e ) , b = b . substring ( e + a . length , b . length ) , d += e + a . length } return c } } ) , $ . extend ( String , { escape : function ( a ) { return a . replace ( /('|\\)/g , "\\$1" ) } , leftPad : function ( a , b , c ) { var d = String ( a ) ; for ( c || ( c = " " ) ; d . length < b ; ) d = c + d ; return d . toString ( ) } , format : function ( a ) { var b = Array . prototype . slice . call ( arguments , 1 ) ; return a . replace ( /\{(\d+)\}/g , function ( a , c ) { return b [ c ] } ) } } ) , BI . EventListener = { listen : function ( a , b , c ) { return a . addEventListener ? ( a . addEventListener ( b , c , ! 1 ) , { remove : function ( ) { a . removeEventListener ( b , c , ! 1 ) } } ) : a . attachEvent ? ( a . attachEvent ( "on" + b , c ) , { remove : function ( ) { a . detachEvent ( "on" + b , c ) } } ) : void 0 } , capture : function ( a , b , c ) { return a . addEventListener ? ( a . addEventListener ( b , c , ! 0 ) , { remove : function ( ) { a . removeEventListener ( b , c , ! 0 ) } } ) : { remove : BI . emptyFn } } , registerDefault : function ( ) { } } , ! function ( ) { var a = window . cancelAnimationFrame || window . webkitCancelAnimationFrame || window . mozCancelAnimationFrame || window . oCancelAnimationFrame || window . msCancelAnimationFrame || window . clearTimeout , b = window . requestAnimationFrame || window . webkitRequestAnimationFrame || window . mozRequestAnimationFrame || window . oRequestAnimationFrame || window . msRequestAnimationFrame || window . setTimeout ; BI . MouseMoveTracker = function ( a , b , c ) { this . _isDragging = ! 1 , this . _animationFrameID = null , this . _domNode = c , this . _onMove = a , this . _onMoveEnd = b , this . _onMouseMove = BI . bind ( this . _onMouseMove , this ) , this . _onMouseUp = BI . bind ( this . _onMouseUp , this ) , this . _didMouseMove = BI . bind ( this . _didMouseMove , this ) } , BI . MouseMoveTracker . prototype = { constructor : BI . MouseMoveTracker , captureMouseMoves : function ( a ) { this . _eventMoveToken || this . _eventUpToken || ( this . _eventMoveToken = BI .
"margin-left" : b . left } ) , BI . isNotNull ( b . right ) && d . element . css ( { "margin-right" : b . right } ) , BI . isNotNull ( b . top ) && d . element . css ( { "margin-top" : b . top } ) , BI . isNotNull ( b . bottom ) && d . element . css ( { "margin-bottom" : b . bottom } ) , BI . isNotNull ( c . hgap ) && ( e += c . hgap , d . element . css ( { left : e } ) , f += c . hgap , d . element . css ( { right : f } ) ) , BI . isNotNull ( c . vgap ) && ( g += c . vgap , d . element . css ( { top : g } ) , h += c . vgap , d . element . css ( { bottom : h } ) ) , BI . isNotNull ( c . lgap ) && ( e += c . lgap , d . element . css ( { left : e } ) ) , BI . isNotNull ( c . rgap ) && ( f += c . rgap , d . element . css ( { right : f } ) ) , BI . isNotNull ( c . tgap ) && ( g += c . tgap , d . element . css ( { top : g } ) ) , BI . isNotNull ( c . bgap ) && ( h += c . bgap , d . element . css ( { bottom : h } ) ) , BI . isNotNull ( b . width ) && d . element . css ( { width : b . width } ) , BI . isNotNull ( b . height ) && d . element . css ( { height : b . height } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . AbsoluteLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.adaptive" , BI . AdaptiveLayout ) , BI . BorderLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . BorderLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-border-layout" , items : { } } ) } , render : function ( ) { BI . BorderLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { this . stroke ( this . options . items ) } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { var b , c = 0 , d = 0 , e = 0 , f = 0 ; if ( "north" in a && ( b = a . north , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "north" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "north" , g ) } this . getWidgetByName ( this . getName ( ) + "north" ) . element . height ( b . height ) . css ( { position : "absolute" , top : b . top || 0 , left : b . left || 0 , right : b . right || 0 , bottom : "initial" } ) } c = ( b . height || 0 ) + ( b . top || 0 ) + ( b . bottom || 0 ) } if ( "south" in a && ( b = a . south , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "south" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "south" , g ) } this . getWidgetByName ( this . getName ( ) + "south" ) . element . height ( b . height ) . css ( { position : "absolute" , bottom : b . bottom || 0 , left : b . left || 0 , right : b . right || 0 , top : "initial" } ) } d = ( b . height || 0 ) + ( b . top || 0 ) + ( b . bottom || 0 ) } if ( "west" in a && ( b = a . west , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "west" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "west" , g ) } this . getWidgetByName ( this . getName ( ) + "west" ) . element . width ( b . width ) . css ( { position : "absolute" , left : b . left || 0 , top : c , bottom : d , right : "initial" } ) } e = ( b . width || 0 ) + ( b . left || 0 ) + ( b . right || 0 ) } if ( "east" in a && ( b = a . east , null != b ) ) { if ( b . el ) { if ( ! this . hasWidget ( this . getName ( ) + "east" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "east" , g ) } this . getWidgetByName ( this . getName ( ) + "east" ) . element . width ( b . width ) . css ( { position : "absolute" , right : b . right || 0 , top : c , bottom : d , left : "initial" } ) } f = ( b . width || 0 ) + ( b . left || 0 ) + ( b . right || 0 ) } if ( "center" in a && ( b = a . center , null != b ) ) { if ( ! this . hasWidget ( this . getName ( ) + "center" ) ) { var g = BI . createWidget ( b ) ; this . addWidget ( this . getName ( ) + "center" , g ) } this . getWidgetByName ( this . getName ( ) + "center" ) . element . css ( { position : "absolute" , top : c , bottom : d , left : e , right : f } ) } } , 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 . d
} ) , c . push ( { el : e } ) } ) , 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" , height : "auto" } ) , c [ a ] . el . addItem ( e ) } } ) , BI . createWidget ( { type : "bi.left" , element : this , items : c } ) } , populate : function ( a ) { BI . FloatCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.float_center" , BI . FloatCenterLayout ) , BI . HorizontalCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . HorizontalCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-horizontal-center-layout" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . HorizontalCenterLayout . superclass . render . apply ( this , arguments ) , 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 : b , row : 0 , 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 , 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 = BI . 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 ( ) { var a = BI . isSupportCss3 ( "flex" ) ; BI . Plugin . registerWidget ( "bi.horizontal" , function ( b ) { return a ? BI . extend ( b , { type : "bi.flex_horizontal" } ) : b } ) , BI . Plugin . registerWidget ( "bi.center_adapt" , function ( b ) { return a && b . items && b . items . length <= 1 ? b . scrollable === ! 0 || b . scrollx === ! 0 || b . scrolly === ! 0 ? BI . isIE ( ) ? b : BI . extend ( b , { type : "bi.flex_wrapper_center" } ) : BI . extend ( b , { type : "bi.flex_center" } ) : b } ) , BI . Plugin . registerWidget ( "bi.vertical_adapt" , function ( b ) { return a ? b . scrollable === ! 0 || b . scrollx === ! 0 || b . scrolly === ! 0 ? BI . isIE ( ) ? b : BI . extend ( { } , b , { type : "bi.flex_wrapper_vertical_center" } ) : BI . extend ( b , { type : "bi.flex_vertical_center" } ) : b } ) , BI . Plugin . registerWidget ( "bi.float_center_adapt" , function ( b ) { return a ? b . scrollable === ! 0 || b . scrollx === ! 0 || b . scrolly === ! 0 ? BI . isIE ( ) ? b : BI . extend ( { } , b , { type : "bi.flex_wrapper_center" } ) : BI . extend ( b , { type : "bi.flex_center" } ) : b } ) , BI . Plugin . registerWidget ( "bi.grid_table_scrollbar" , function ( a ) { return BI . is
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 ) } ) } BI . each ( this . nodes . getNodes ( ) , function ( a , c ) { c . halfCheck = ! 1 , b ( c . children ) } ) , this . nodes && 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 . halfCheck = ! 1 } function f ( a , b , c ) { c . halfCheck = ! 1 } var g = this . options . paras , h = this , i = { async : { enable : ! 1 , otherParam : BI . cjkEncodeDO ( g ) } , check : { enable : ! 0 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , view : { showIcon : ! 1 , expandSpeed : "" , nameIsHTML : ! 0 , dblClickExpand : ! 1 } , callback : { beforeCheck : b , onCheck : d , beforeExpand : c , onExpand : e , onCollapse : f , onClick : a } } ; return i } , _selectTreeNode : function ( a , b ) { var c = this , d = ( this . options , BI . deepClone ( b . parentValues || c . _getParentValues ( b ) ) ) , e = this . _getNodeValue ( b ) ; if ( b . checked === ! 0 ) ; else { var f = b , g = this . _getTree ( this . options . paras . selectedValues , d ) ; for ( BI . isNotNull ( g [ e ] ) && delete g [ e ] ; null != f && BI . isEmpty ( g ) ; ) d = d . slice ( 0 , d . length - 1 ) , f = f . getParentNode ( ) , null != f && ( g = this . _getTree ( this . options . paras . selectedValues , d ) , e = this . _getNodeValue ( f ) , delete g [ e ] ) } BI . AsyncTree . superclass . _selectTreeNode . apply ( c , arguments ) } , _beforeExpandNode : function ( a , b ) { function c ( a , c ) { d . nodes . addNodes ( b , a ) , c === ! 0 && BI . delay ( function ( ) { i ++ , g . times = i , e . itemsCreator ( g , h ) } , 100 ) } var d = this , e = this . options , f = b . parentValues || d . _getParentValues ( b ) , g = BI . extend ( { } , e . paras , { id : b . id , times : 1 , parentValues : f . concat ( this . _getNodeValue ( b ) ) , checkState : b . getCheckStatus ( ) } ) , h = function ( a ) { var b = a . items || [ ] ; b . length > 0 && c ( d . _dealWidthNodes ( b ) , ! ! a . hasNext ) } , i = 1 ; b . children || e . itemsCreator ( g , h ) } , _join : function ( a , b ) { function c ( a , b , f ) { BI . each ( b , function ( g , h ) { BI . isNull ( f [ g ] ) ? d . _addTreeNode ( e , a , g , h ) : BI . isEmpty ( f [ g ] ) ? d . _addTreeNode ( e , a , g , { } ) : c ( a . concat ( [ g ] ) , b [ g ] , f [ g ] ) } ) } var d = this , e = { } ; return c ( [ ] , a , b ) , c ( [ ] , b , a ) , e } , hasChecked : function ( ) { return ! BI . isEmpty ( this . options . paras . selectedValues ) || BI . AsyncTree . superclass . hasChecked . apply ( this , arguments ) } , getValue : function ( ) { if ( ! this . nodes ) return { } ; var a = this . _getSelectedValues ( ) ; return BI . isEmpty ( a ) ? BI . deepClone ( this . options . paras . selectedValues ) : BI . isEmpty ( this . options . paras . selectedValues ) ? a : this . _join ( a , this . opti
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 } ] } ) } , render : function ( ) { this . populate ( this . options . items ) } , _packageBtns : function ( a ) { for ( var b = this . options , c = b . layouts . length - 1 ; c > 0 ; c -- ) a = BI . map ( a , function ( a , d ) { return BI . extend ( { } , b . layouts [ c ] , { items : [ BI . extend ( { } , b . layouts [ c ] . el , { el : BI . stripEL ( d ) } ) ] } ) } ) ; return a } , _packageItems : function ( a , b ) { return BI . createItems ( BI . makeArrayByArray ( a , { } ) , BI . clone ( b ) ) } , _packageLayout : function ( a ) { for ( var b = this . options , c = BI . deepClone ( b . layouts [ 0 ] ) , d = BI . formatEL ( c ) . el ; d && d . items && ! BI . isEmpty ( d . items ) ; ) d = BI . formatEL ( d . items [ 0 ] ) . el ; return d . items = a , c } , addItems : function ( a ) { this . layouts . addItems ( a ) } , prependItems : function ( a ) { this . layouts . prependItems ( a ) } , setValue : function ( a ) { this . layouts . setValue ( a ) } , getValue : function ( ) { return this . layouts . getValue ( ) } , empty : function ( ) { this . layouts . empty ( ) } , populate : function ( a ) { a = a || [ ] , this . options . items = a , a = this . _packageBtns ( a ) , this . layouts ? this . layouts . populate ( a ) : this . layouts = BI . createWidget ( BI . extend ( { element : this } , this . _packageLayout ( a ) ) ) } } ) , BI . VirtualGroup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.virtual_group" , BI . VirtualGroup ) , BI . Loader = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Loader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-loader" , direction : "top" , isDefaultInit : ! 0 , logic : { dynamic : ! 0 , scrolly : ! 0 } , el : { type : "bi.button_group" } , items : [ ] , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn , count : ! 1 , prev : ! 1 , next : { } , hasPrev : BI . emptyFn , hasNext : BI . emptyFn } ) } , _prevLoad : function ( ) { var a = this , b = this . options ; this . prev . setLoading ( ) , b . itemsCreator . apply ( this , [ { times : -- this . times } , function ( ) { a . prev . setLoaded ( ) , a . prependItems . apply ( a , arguments ) } ] ) } , _nextLoad : function ( ) { var a = this , b = this . options ; this . next . setLoading ( ) , b . itemsCreator . apply ( this , [ { times : ++ this . times } , function ( ) { a . next . setLoaded ( ) , a . addItems . apply ( a , arguments ) } ] ) } , _init : function ( ) { BI . Loader . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . itemsCreator === ! 1 && ( b . prev = ! 1 , b . next = ! 1 ) , b . prev !== ! 1 && ( this . prev = BI . createWidget ( BI . extend ( { type : "bi.loading_bar" } , b . prev ) ) , this . prev . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . _prevLoad ( ) } ) ) , this . button _group = BI . createWidget ( b . el , { type : "bi.button_group" , chooseType : 0 , items : b . items , behaviors : { } , layouts : [ { type : "bi.vertical" } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b === BI . Events . CLICK && a . fireEvent ( BI . Loader . EVENT _CHANGE , d ) } ) , b . next !== ! 1 && ( this . next = BI . createWidget ( BI . extend ( { type : "bi.loading_bar" } , b . next ) ) , this . next . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . _nextLoad ( ) } ) ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( BI . LogicFactory . createLogicTypeByDirection ( b . direction ) , BI . extend ( { scrolly : ! 0 } , b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( b . direction , this . prev , this . button _group , this . next ) } ) ) ) ) , b . isDefaultInit && BI . isEmpty ( b . items ) && BI . nextTick ( BI . bind ( function ( ) { b . isDefaultInit && BI . isEmpty ( b . items ) && this . populate ( ) } , this ) ) , BI . isNotEmptyArray ( b . items ) && this . populate ( b . items ) } , hasPrev : function ( ) { var a = this . options ; return BI . isNumber ( a . count ) ? this . count < a . count : ! ! a . hasPrev . apply ( this , [ { times : this . times , count : this . count } ] ) } , hasNext : function ( ) { var a = this . options ; return BI . isNumber ( a . count ) ? this . count < a . count : ! ! a . hasNext . apply ( this , [ { times : this . times , count : this . count } ] ) } , prependItems : function ( a ) { this . count += a . length , this . next !== ! 1 && ( this . hasPrev ( ) ? ( this . options . items = this . options . item
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 . lineNumberFormatter ( b + a . firstLineNumber ) ) } function y ( a ) { return a . scroller . getBoundingClientRect ( ) . left - a . sizer . getBoundingClientRect ( ) . left } function z ( a , b , c ) { var d = a . display ; this . viewport = b , this . visible = u ( d , a . doc , b ) , this . editorIsHidden = ! d . wrapper . offsetWidth , this . wrapperHeight = d . wrapper . clientHeight , this . wrapperWidth = d . wrapper . clientWidth , this . oldDisplayWidth = Ua ( a ) , this . force = c , this . dims = H ( a ) , this . events = [ ] } function A ( a ) { var b = a . display ; ! b . scrollbarsClipped && b . scroller . offsetWidth && ( b . nativeBarWidth = b . scroller . offsetWidth - b . scroller . clientWidth , b . heightForcer . style . height = Ta ( a ) + "px" , b . sizer . style . marginBottom = - b . nativeBarWidth + "px" , b . sizer . style . borderRightWidth = Ta ( a ) + "px" , b . scrollbarsClipped = ! 0 ) } function B ( a , b ) { var c = a . display , d = a . doc ; if ( b . editorIsHidden ) return Kb ( a ) , ! 1 ; if ( ! b . force && b . visible . from >= c . viewFrom && b . visible . to <= c . viewTo && ( null == c . updateLineNumbers || c . updateLineNumbers >= c . viewTo ) && c . renderedView == c . view && 0 == Ob ( a ) ) return ! 1 ; w ( a ) && ( Kb ( a ) , b . dims = H ( a ) ) ; var e = d . first + d . size , f = Math . max ( b . visible . from - a . options . viewportMargin , d . first ) , g = Math . min ( e , b . visible . to + a . options . viewportMargin ) ; c . viewFrom < f && f - c . viewFrom < 20 && ( f = Math . max ( d . first , c . viewFrom ) ) , c . viewTo > g && c . viewTo - g < 20 && ( g = Math . min ( e , c . viewTo ) ) , Ef && ( f = qd ( a . doc , f ) , g = rd ( a . doc , g ) ) ; var h = f != c . viewFrom || g != c . viewTo || c . lastWrapHeight != b . wrapperHeight || c . lastWrapWidth != b . wrapperWidth ; Nb ( a , f , g ) , c . viewOffset = _d ( Vd ( a . doc , c . viewFrom ) ) , a . display . mover . style . top = c . viewOffset + "px" ; var i = Ob ( a ) ; if ( ! h && 0 == i && ! b . force && c . renderedView == c . view && ( null == c . updateLineNumbers || c . updateLineNumbers >= c . viewTo ) ) return ! 1 ; var j = Pe ( ) ; return i > 4 && ( c . lineDiv . style . display = "none" ) , I ( a , c . updateLineNumbers , b . dims ) , i > 4 && ( c . lineDiv . style . display = "" ) , c . renderedView = c . view , j && Pe ( ) != j && j . offsetHeight && j . focus ( ) , Ne ( c . cursorDiv ) , Ne ( c . selectionDiv ) , c . gutters . style . height = 0 , h && ( c . lastWrapHeight = b . wrapperHeight , c . lastWrapWidth = b . wrapperWidth , Ma ( a , 400 ) ) , c . updateLineNumbers = null , ! 0 } function C ( a , b ) { for ( var c = b . viewport , d = ! 0 ; ( d && a . options . lineWrapping && b . oldDisplayWidth != Ua ( a ) || ( c && null != c . top && ( c = { top : Math . min ( a . doc . height + Ra ( a . display ) - Va ( a ) , c . top ) } ) , b . visible = u ( a . display , a . doc , c ) , ! ( b . visible . from >= a . display . viewFrom && b . visible . to <= a . display . viewTo ) ) ) && B ( a , b ) ; d = ! 1 ) { F ( a ) ; var e = o ( a ) ; Ha ( a ) , E ( a , e ) , s ( a , e ) } b . signal ( a , "update" , a ) , a . display . viewFrom == a . display . reportedViewFrom && a . display . viewTo == a . display . reportedViewTo || ( b . signal ( a , "viewportChange" , a , a . display . viewFrom , a . display . viewTo ) , a . display . reportedViewFrom = a . display . viewFrom , a . display . reportedViewTo = a . display . viewTo ) } function D ( a , b ) { var c = new z ( a , b ) ; if ( B ( a , c ) ) { F ( a ) , C ( a , c ) ; var d = o ( a ) ; Ha ( a ) , E ( a , d ) , s ( a , d ) , c . finish ( ) } } function E ( a , b ) { a . display . sizer . style . minHeight = b . docHeight + "px" ; var c = b . docHeight + a . display . barHeight ; a . display . heightForcer . style . top = c + "px" , a . display . gutters . style . height = Math . max ( c + Ta ( a ) , b . clientHeight ) + "px" } function F ( a ) { for ( var b = a . display , c = b . lineDiv . offsetTop , d = 0 ; d < b . view . length ; d ++ ) { var e , f = b . view [ d ] ; if ( ! f . hidden ) { if ( nf && of < 8 ) { var g = f . node . offsetTop + f . node . offsetHeight ; e = g - c , c = g } else { var h = f . node . getBoundingClientRect ( ) ; e = h . bottom - h . top } var i = f . line . height - e ; if ( e < 2 && ( e = rb ( b ) ) , ( i > . 001 || i < - . 001 ) && ( Yd ( f . line , e ) , G ( f . line ) , f . rest ) ) for ( var j = 0 ; j < f . rest . length ; j ++ ) G ( f . rest [ j ] ) } } } function G ( a ) { if ( a . widgets ) for ( var b = 0 ; b < a . widgets . length ; ++ b ) a . widgets [ b ] . height = a . widgets [ b ] . node . offsetHeight } function H ( a ) { for ( var b = a . display , c = { } , d = { } , e = b . gutters . clientLeft , f = b . gutters . firstChild , g = 0 ; f ; f = f . nextSibling , ++ g ) c [ a . options . gutters [ g ] ] = f . offsetLeft + f . clientLeft + e , d [ a . options . gutters [ g ] ] = f . clientWidth ; return { fixedPos : y ( b ) , gutterTotalWidth : b . gutters . offsetWidth , gutterLeft : c , gutterWidth : d , wrapperWidth : b . wrapper . clientWidth } } function I ( a , b , c ) { function d ( b ) { var c = b . nextSibling ; return pf && yf && a . display . currentWheelTarget == b ? b . style . display = "none" : b . parentNode . removeChild ( b ) , c } for ( var e = a . display , f = a . options . lineNumbers , g = e . lineDiv , h = g . firstChild , i = e . view , j = e . viewFrom , k = 0 ; k < i . length ; k ++ )
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 ) { var f = Mb ( a , c , c + d , 1 ) ; f ? ( e . view = e . view . slice ( f . index ) , e . viewFrom = f . lineN , e . viewTo += d ) : Kb ( a ) } else if ( c >= e . viewTo ) { var f = Mb ( a , b , b , - 1 ) ; f ? ( e . view = e . view . slice ( 0 , f . index ) , e . viewTo = f . lineN ) : Kb ( a ) } else { var g = Mb ( a , b , b , - 1 ) , h = Mb ( a , c , c + d , 1 ) ; g && h ? ( e . view = e . view . slice ( 0 , g . index ) . concat ( Hb ( a , g . lineN , h . lineN ) ) . concat ( e . view . slice ( h . index ) ) , e . viewTo += d ) : Kb ( a ) } var i = e . externalMeasured ; i && ( c < i . lineN ? i . lineN += d : b < i . lineN + i . size && ( e . externalMeasured = null ) ) } function Jb ( a , b , c ) { a . curOp . viewChanged = ! 0 ; var d = a . display , e = a . display . externalMeasured ; if ( e && b >= e . lineN && b < e . lineN + e . size && ( d . externalMeasured = null ) , ! ( b < d . viewFrom || b >= d . viewTo ) ) { var f = d . view [ Lb ( a , b ) ] ; if ( null != f . node ) { var g = f . changes || ( f . changes = [ ] ) ; De ( g , c ) == - 1 && g . push ( c ) } } } function Kb ( a ) { a . display . viewFrom = a . display . viewTo = a . doc . first , a . display . view = [ ] , a . display . viewOffset = 0 } function Lb ( a , b ) { if ( b >= a . display . viewTo ) return null ; if ( b -= a . display . viewFrom , b < 0 ) return null ; for ( var c = a . display . view , d = 0 ; d < c . length ; d ++ ) if ( b -= c [ d ] . size , b < 0 ) return d } function Mb ( a , b , c , d ) { var e , f = Lb ( a , b ) , g = a . display . view ; if ( ! Ef || c == a . doc . first + a . doc . size ) return { index : f , lineN : c } ; for ( var h = 0 , i = a . display . viewFrom ; h < f ; h ++ ) i += g [ h ] . size ; if ( i != b ) { if ( d > 0 ) { if ( f == g . length - 1 ) return null ; e = i + g [ f ] . size - b , f ++ } else e = i - b ; b += e , c += e } for ( ; qd ( a . doc , c ) != c ; ) { if ( f == ( d < 0 ? 0 : g . length - 1 ) ) return null ; c += d * g [ f - ( d < 0 ? 1 : 0 ) ] . size , f += d } return { index : f , lineN : c } } function Nb ( a , b , c ) { var d = a . display , e = d . view ; 0 == e . length || b >= d . viewTo || c <= d . viewFrom ? ( d . view = Hb ( a , b , c ) , d . viewFrom = b ) : ( d . viewFrom > b ? d . view = Hb ( a , b , d . viewFrom ) . concat ( d . view ) : d . viewFrom < b && ( d . view = d . view . slice ( Lb ( a , b ) ) ) , d . viewFrom = b , d . viewTo < c ? d . view = d . view . concat ( Hb ( a , d . viewTo , c ) ) : d . viewTo > c && ( d . view = d . view . slice ( 0 , Lb ( a , c ) ) ) ) , d . viewTo = c } function Ob ( a ) { for ( var b = a . display . view , c = 0 , d = 0 ; d < b . length ; d ++ ) { var e = b [ d ] ; e . hidden || e . node && ! e . changes || ++ c } return c } function Pb ( a ) { function b ( ) { e . activeTouch && ( f = setTimeout ( function ( ) { e . activeTouch = null } , 1e3 ) , g = e . activeTouch , g . end = + new Date ) } function c ( a ) { if ( 1 != a . touches . length ) return ! 1 ; var b = a . touches [ 0 ] ; return b . radiusX <= 1 && b . radiusY <= 1 } function d ( a , b ) { if ( null == b . left ) return ! 0 ; var c = b . left - a . left , d = b . top - a . top ; return c * c + d * d > 400 } var e = a . display ; xg ( e . scroller , "mousedown" , Db ( a , Ub ) ) , nf && of < 11 ? xg ( e . scroller , "dblclick" , Db ( a , function ( b ) { if ( ! ve ( a , b ) ) { var c = Tb ( a , b ) ; if ( c && ! Zb ( a , b ) && ! Sb ( a . display , b ) ) { ug ( b ) ; var d = a . findWordAt ( c ) ; va ( a . doc , d . anchor , d . head ) } } } ) ) : xg ( e . scroller , "dblclick" , function ( b ) { ve ( a , b ) || ug ( b ) } ) , Cf || xg ( e . scroller , "contextmenu" , function ( b ) { pc ( a , b ) } ) ; var f , g = { end : 0 } ; xg ( e . scroller , "touchstart" , function ( a ) { if ( ! c ( a ) ) { clearTimeout ( f ) ; var b = + new Date ; e . activeTouch = { start : b , moved : ! 1 , prev : b - g . end <= 300 ? g : null } , 1 == a . touches . length && ( e . activeTouch . left = a . touches [ 0 ] . pageX , e . activeTouch . top = a . touches [ 0 ] . pageY ) } } ) , xg ( e . scroller , "touchmove" , function ( ) { e . activeTouch && ( e . activeTouch . moved = ! 0 ) } ) , xg ( e . scroller , "touchend" , function ( c ) { var f = e . activeTouch ; if ( f && ! Sb ( e , c ) && null != f . left && ! f . moved && new Date - f . start < 300 ) { var g , h = a . coordsChar ( e . activeTouch , "page" ) ; g = ! f . prev || d ( f , f . prev ) ? new ma ( h , h ) : ! f . prev . prev || d ( f , f . prev . prev ) ? a . findWordAt ( h ) : new ma ( Ff ( h . line , 0 ) , qa ( a . doc , Ff ( h . line + 1 , 0 ) ) ) , a . setSelection ( g . anchor , g . head ) , a . focus ( ) , ug ( c ) } b ( ) } ) , xg ( e . scroller , "touchcancel" , b ) , xg ( e . scroller , "scroll" , function ( ) { e . scroller . clientHeight && ( ac ( a , e . scroller . scrollTop ) , bc ( a , e . scroller . scrollLeft , ! 0 ) , zg ( a , "scroll" , a ) ) } ) , xg ( e . scroller , "mousewheel" , function ( b ) { cc ( a , b ) } ) , xg ( e . scroller , "DOMMouseScroll" , function ( b ) { cc ( a , b ) } ) , xg ( e . wrapper , "scroll" , function ( ) { e . wrapper . scrollTop = e . wrapper . scrollLeft = 0 } ) , e . dragFunctions = { simple : function ( b ) { ve ( a , b ) || wg ( b ) } , start : function ( b ) { _b ( a , b ) } , drop : Db ( a , $b ) } ; var h = e . input . getField ( ) ; xg ( h , "keyup" , function ( b ) { kc . call ( a , b ) } ) , xg ( h , "keydown" , Db ( a , ic ) ) , xg ( h , "keypress" , Db ( a , lc ) ) , xg ( h , "focus" , Ie ( nc , a ) ) , xg ( h , "blur" , Ie ( oc , a ) ) } function Qb ( b , c , d ) { var e = d && d != a . Init ; if ( ! c != ! e ) { var f = b . display . dragFunctions , g = c ? xg : yg ; g ( b . display . scroller , "dragstart" , f . start ) , g ( b . displa
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+)/ ) ; if ( ! c ) break ; a = a . slice ( 0 , c . index ) + a . slice ( c . index + c [ 0 ] . length ) ; var d = c [ 1 ] ? "bgClass" : "textClass" ; null == b [ d ] ? b [ d ] = c [ 2 ] : new RegExp ( "(?:^|s)" + c [ 2 ] + "(?:$|s)" ) . test ( b [ d ] ) || ( b [ d ] += " " + c [ 2 ] ) } return a } function Ad ( b , c ) { if ( b . blankLine ) return b . blankLine ( c ) ; if ( b . innerMode ) { var d = a . innerMode ( b , c ) ; return d . mode . blankLine ? d . mode . blankLine ( d . state ) : void 0 } } function Bd ( b , c , d , e ) { for ( var f = 0 ; f < 10 ; f ++ ) { e && ( e [ 0 ] = a . innerMode ( b , d ) . mode ) ; var g = b . token ( c , d ) ; if ( c . pos > c . start ) return g } throw new Error ( "Mode " + b . name + " failed to advance stream." ) } function Cd ( a , b , c , d ) { function e ( a ) { return { start : l . start , end : l . pos , string : l . current ( ) , type : f || null , state : a ? bg ( g . mode , k ) : k } } var f , g = a . doc , h = g . mode ; b = qa ( g , b ) ; var i , j = Vd ( g , b . line ) , k = Pa ( a , b . line , c ) , l = new ig ( j . text , a . options . tabSize ) ; for ( d && ( i = [ ] ) ; ( d || l . pos < b . ch ) && ! l . eol ( ) ; ) l . start = l . pos , f = Bd ( h , l , k ) , d && i . push ( e ( ! 0 ) ) ; return d ? i : e ( ) } function Dd ( a , b , c , d , e , f , g ) { var h = c . flattenSpans ; null == h && ( h = a . options . flattenSpans ) ; var i , j = 0 , k = null , l = new ig ( b , a . options . tabSize ) , m = a . options . addModeClass && [ null ] ; for ( "" == b && zd ( Ad ( c , d ) , f ) ; ! l . eol ( ) ; ) { if ( l . pos > a . options . maxHighlightLength ? ( h = ! 1 , g && Gd ( a , b , d , l . pos ) , l . pos = b . length , i = null ) : i = zd ( Bd ( c , l , d , m ) , f ) , m ) { var n = m [ 0 ] . name ; n && ( i = "m-" + ( i ? n + " " + i : n ) ) } if ( ! h || k != i ) { for ( ; j < l . start ; ) j = Math . min ( l . start , j + 5e4 ) , e ( j , k ) ; k = i } l . start = l . pos } for ( ; j < l . pos ; ) { var o = Math . min ( l . pos , j + 5e4 ) ; e ( o , k ) , j = o } } function Ed ( a , b , c , d ) { var e = [ a . state . modeGen ] , f = { } ; Dd ( a , b . text , a . doc . mode , c , function ( a , b ) { e . push ( a , b ) } , f , d ) ; for ( var g = 0 ; g < a . state . overlays . length ; ++ g ) { var h = a . state . overlays [ g ] , i = 1 , j = 0 ; Dd ( a , b . text , h . mode , ! 0 , function ( a , b ) { for ( var c = i ; j < a ; ) { var d = e [ i ] ; d > a && e . splice ( i , 1 , a , e [ i + 1 ] , d ) , i += 2 , j = Math . min ( a , d ) } if ( b ) if ( h . opaque ) e . splice ( c , i - c , a , "cm-overlay " + b ) , i = c + 2 ; else for ( ; c < i ; c += 2 ) { var f = e [ c + 1 ] ; e [ c + 1 ] = ( f ? f + " " : "" ) + "cm-overlay " + b } } , f ) } return { styles : e , classes : f . bgClass || f . textClass ? f : null } } function Fd ( a , b , c ) { if ( ! b . styles || b . styles [ 0 ] != a . state . modeGen ) { var d = Ed ( a , b , b . stateAfter = Pa ( a , Zd ( b ) ) ) ; b . styles = d . styles , d . classes ? b . styleClasses = d . classes : b . styleClasses && ( b . styleClasses = null ) , c === a . doc . frontier && a . doc . frontier ++ } return b . styles } function Gd ( a , b , c , d ) { var e = a . doc . mode , f = new ig ( b , a . options . tabSize ) ; for ( f . start = f . pos = d || 0 , "" == b && Ad ( e , c ) ; ! f . eol ( ) && f . pos <= a . options . maxHighlightLength ; ) Bd ( e , f , c ) , f . start = f . pos } function Hd ( a , b ) { if ( ! a || /^\s*$/ . test ( a ) ) return null ; var c = b . addModeClass ? pg : og ; return c [ a ] || ( c [ a ] = a . replace ( /\S+/g , "cm-$&" ) ) } function Id ( a , b ) { var c = Me ( "span" , null , null , pf ? "padding-right: .1px" : null ) , d = { pre : Me ( "pre" , [ c ] , "CodeMirror-line" ) , content : c , col : 0 , pos : 0 , cm : a , splitSpaces : ( nf || pf ) && a . getOption ( "lineWrapping" ) } ; b . measure = { } ; for ( var e = 0 ; e <= ( b . rest ? b . rest . length : 0 ) ; e ++ ) { var f , g = e ? b . rest [ e - 1 ] : b . line ; d . pos = 0 , d . addToken = Kd , We ( a . display . measure ) && ( f = ae ( g ) ) && ( d . addToken = Md ( d . addToken , f ) ) , d . map = [ ] ; var h = b != a . display . externalMeasured && Zd ( g ) ; Od ( g , d , Fd ( a , g , h ) ) , g . styleClasses && ( g . styleClasses . bgClass && ( d . bgClass = Re ( g . styleClasses . bgClass , d . bgClass || "" ) ) , g . styleClasses . textClass && ( d . textClass = Re ( g . styleClasses . textClass , d . textClass || "" ) ) ) , 0 == d . map . length && d . map . push ( 0 , 0 , d . content . appendChild ( Ve ( a . display . measure ) ) ) , 0 == e ? ( b . measure . map = d . map , b . measure . cache = { } ) : ( ( b . measure . maps || ( b . measure . maps = [ ] ) ) . push ( d . map ) , ( b . measure . caches || ( b . measure . caches = [ ] ) ) . push ( { } ) ) } return pf && /\bcm-tab\b/ . test ( d . content . lastChild . className ) && ( d . content . className = "cm-tab-wrap-hack" ) , zg ( a , "renderLine" , a , b . line , d . pre ) , d . pre . className && ( d . textClass = Re ( d . pre . className , d . textClass || "" ) ) , d } function Jd ( a ) { var b = Me ( "span" , "•" , "cm-invalidchar" ) ; return b . title = "\\u" + a . charCodeAt ( 0 ) . toString ( 16 ) , b . setAttribute ( "aria-label" , b . title ) , b } function Kd ( a , b , c , d , e , f , g ) { if ( b ) { var h = a . splitSpaces ? b . replace ( / {3,}/g , Ld ) : b , i = a . cm . state . specialChars , j = ! 1 ; if ( i . test ( b ) ) for ( var k = document . createDocumentFragment ( ) , l = 0 ; ; ) { i . lastIndex = l ; var m = i . exec ( b ) , n = m ? m . index - l : b . length - l ; if ( n ) { var o = document . createTextNode ( h . slice ( l , l + n ) ) ; nf && of < 9 ? k . appendChild ( Me ( "span" ,
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 , needsContentAttribute : ! 0 } , fa . prototype ) , a . inputStyles = { textarea : da , contenteditable : fa } , la . prototype = { primary : function ( ) { return this . ranges [ this . primIndex ] } , equals : function ( a ) { if ( a == this ) return ! 0 ; if ( a . primIndex != this . primIndex || a . ranges . length != this . ranges . length ) return ! 1 ; for ( var b = 0 ; b < this . ranges . length ; b ++ ) { var c = this . ranges [ b ] , d = a . ranges [ b ] ; if ( 0 != Gf ( c . anchor , d . anchor ) || 0 != Gf ( c . head , d . head ) ) return ! 1 } return ! 0 } , deepCopy : function ( ) { for ( var a = [ ] , b = 0 ; b < this . ranges . length ; b ++ ) a [ b ] = new ma ( V ( this . ranges [ b ] . anchor ) , V ( this . ranges [ b ] . head ) ) ; return new la ( a , this . primIndex ) } , somethingSelected : function ( ) { for ( var a = 0 ; a < this . ranges . length ; a ++ ) if ( ! this . ranges [ a ] . empty ( ) ) return ! 0 ; return ! 1 } , contains : function ( a , b ) { b || ( b = a ) ; for ( var c = 0 ; c < this . ranges . length ; c ++ ) { var d = this . ranges [ c ] ; if ( Gf ( b , d . from ( ) ) >= 0 && Gf ( a , d . to ( ) ) <= 0 ) return c } return - 1 } } , ma . prototype = { from : function ( ) { return X ( this . anchor , this . head ) } , to : function ( ) { return W ( this . anchor , this . head ) } , empty : function ( ) { return this . head . line == this . anchor . line && this . head . ch == this . anchor . ch } } ; var If , Jf , Kf , Lf = { left : 0 , right : 0 , top : 0 , bottom : 0 } , Mf = null , Nf = 0 , Of = 0 , Pf = 0 , Qf = null ; nf ? Qf = - . 53 : kf ? Qf = 15 : rf ? Qf = - . 7 : tf && ( Qf = - 1 / 3 ) ; var Rf = function ( a ) { var b = a . wheelDeltaX , c = a . wheelDeltaY ; return null == b && a . detail && a . axis == a . HORIZONTAL _AXIS && ( b = a . detail ) , null == c && a . detail && a . axis == a . VERTICAL _AXIS ? c = a . detail : null == c && ( c = a . wheelDelta ) , { x : b , y : c } } ; a . wheelEventPixels = function ( a ) { var b = Rf ( a ) ; return b . x *= Qf , b . y *= Qf , b } ; var Sf = new ze , Tf = null , Uf = a . changeEnd = function ( a ) { return a . text ? Ff ( a . from . line + a . text . length - 1 , Ce ( a . text ) . length + ( 1 == a . text . length ? a . from . ch : 0 ) ) : a . to } ; a . prototype = { constructor : a , focus : function ( ) { window . focus ( ) , this . display . input . focus ( ) } , setOption : function ( a , b ) { var c = this . options , d = c [ a ] ; c [ a ] == b && "mode" != a || ( c [ a ] = b , Wf . hasOwnProperty ( a ) && Db ( this , Wf [ a ] ) ( this , b , d ) ) } , getOption : function ( a ) { return this . options [ a ] } , getDoc : function ( ) { return this . doc } , addKeyMap : function ( a , b ) { this . state . keyMaps [ b ? "push" : "unshift" ] ( Rc ( a ) ) } , removeKeyMap : function ( a ) { for ( var b = this . state . keyMaps , c = 0 ; c < b . length ; ++ c ) if ( b [ c ] == a || b [ c ] . name == a ) return b . splice ( c , 1 ) , ! 0 } , addOverlay : Eb ( function ( b , c ) { var d = b . token ? b : a . getMode ( this . options , b ) ; if ( d . startState ) throw new Error ( "Overlays may not be stateful." ) ; this . state . overlays . push ( { mode : d , modeSpec : b , opaque : c && c . opaque } ) , this . state . modeGen ++ , Ib ( this ) } ) , removeOverlay : Eb ( function ( a ) { for ( var b = this . state . overlays , c = 0 ; c < b . length ; ++ c ) { var d = b [ c ] . modeSpec ; if ( d == a || "string" == typeof a && d . name == a ) return b . splice ( c , 1 ) , this . state . modeGen ++ , void Ib ( this ) } } ) , indentLine : Eb ( function ( a , b , c ) { "string" != typeof b && "number" != typeof b && ( b = null == b ? this . options . smartIndent ? "smart" : "prev" : b ? "add" : "subtract" ) , sa ( this . doc , a ) && Kc ( this , a , b , c ) } ) , indentSelection : Eb ( function ( a ) { for ( var b = this . doc . sel . ranges , c = - 1 , d = 0 ; d < b . length ; d ++ ) { var e = b [ d ] ; if ( e . empty ( ) ) e . head . line > c && ( Kc ( this , e . head . line , a , ! 0 ) , c = e . head . line , d == this . doc . sel . primIndex && Ic ( this ) ) ; else { var f = e . from ( ) , g = e . to ( ) , h = Math . max ( c , f . line ) ; c = Math . min ( this . lastLine ( ) , g . line - ( g . ch ? 0 : 1 ) ) + 1 ; for ( var i = h ; i < c ; ++ i ) Kc ( this , i , a ) ; var j = this . doc . sel . ranges ; 0 == f . ch && b . length == j . length && j [ d ] . from ( ) . ch > 0 && xa ( this . doc , d , new ma ( f , j [ d ] . to ( ) ) , Dg ) } } } ) , getTokenAt : function ( a , b ) { return Cd ( this , a , b ) } , getLineTokens : function ( a , b ) { return Cd ( this , Ff ( a ) , b , ! 0 ) } , getTokenTypeAt : function ( a ) { a = qa ( this . doc , a ) ; var b , c = Fd ( this , Vd ( this . doc , a . line ) ) , d = 0 , e = ( c . length - 1 ) / 2 , f = a . ch ; if ( 0 == f ) b = c [ 2 ] ; else for ( ; ; ) { var g = d + e >> 1 ; if ( ( g ? c [ 2 * g - 1 ] : 0 ) >= f ) e = g ; else { if ( ! ( c [ 2 * g + 1 ] < f ) ) { b = c [ 2 * g + 2 ] ; break } d = g + 1 } } var h = b ? b . indexOf ( "cm-overlay " ) : - 1 ; return h < 0 ? b : 0 == h ? null : b . slice ( 0 , h - 1 ) } , getModeAt : function ( b ) { var c = this . doc . mode ; return c . innerMode ? a . innerMode ( c , this . getTokenAt ( b ) . state ) . mode : c } , getHelper : function ( a , b ) { return this . getHelpers ( a , b ) [ 0 ] } , getHelpers : function ( a , b ) { var c = [ ] ; if ( ! ag . hasOwnProperty ( b ) ) return c ; var d = ag [ b ] , e = this . getModeAt ( a ) ; if ( "string" == typeof e [ b ] ) d [ e [ b ] ] && c . push ( d [ e [ b ] ] ) ; else if ( e [ b ] ) for ( var f = 0 ; f < e [ b ] . length ; f ++ ) { var g = d [
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 } , clipPos : function ( a ) { return qa ( this , a ) } , getCursor : function ( a ) { var b , c = this . sel . primary ( ) ; return b = null == a || "head" == a ? c . head : "anchor" == a ? c . anchor : "end" == a || "to" == a || a === ! 1 ? c . to ( ) : c . from ( ) } , listSelections : function ( ) { return this . sel . ranges } , somethingSelected : function ( ) { return this . sel . somethingSelected ( ) } , setCursor : Fb ( function ( a , b , c ) { ya ( this , qa ( this , "number" == typeof a ? Ff ( a , b || 0 ) : a ) , null , c ) } ) , setSelection : Fb ( function ( a , b , c ) { ya ( this , qa ( this , a ) , qa ( this , b || a ) , c ) } ) , extendSelection : Fb ( function ( a , b , c ) { va ( this , qa ( this , a ) , b && qa ( this , b ) , c ) } ) , extendSelections : Fb ( function ( a , b ) { wa ( this , ta ( this , a , b ) ) } ) , extendSelectionsBy : Fb ( function ( a , b ) { wa ( this , Ee ( this . sel . ranges , a ) , b ) } ) , setSelections : Fb ( function ( a , b , c ) { if ( a . length ) { for ( var d = 0 , e = [ ] ; d < a . length ; d ++ ) e [ d ] = new ma ( qa ( this , a [ d ] . anchor ) , qa ( this , a [ d ] . head ) ) ; null == b && ( b = Math . min ( a . length - 1 , this . sel . primIndex ) ) , Ba ( this , na ( e , b ) , c ) } } ) , addSelection : Fb ( function ( a , b , c ) { var d = this . sel . ranges . slice ( 0 ) ; d . push ( new ma ( qa ( this , a ) , qa ( this , b || a ) ) ) , Ba ( this , na ( d , d . length - 1 ) , c ) } ) , getSelection : function ( a ) { for ( var b , c = this . sel . ranges , d = 0 ; d < c . length ; d ++ ) { var e = Wd ( this , c [ d ] . from ( ) , c [ d ] . to ( ) ) ; b = b ? b . concat ( e ) : e } return a === ! 1 ? b : b . join ( a || "\n" ) } , getSelections : function ( a ) { for ( var b = [ ] , c = this . sel . ranges , d = 0 ; d < c . length ; d ++ ) { var e = Wd ( this , c [ d ] . from ( ) , c [ d ] . to ( ) ) ; a !== ! 1 && ( e = e . join ( a || "\n" ) ) , b [ d ] = e } return b } , replaceSelection : function ( a , b , c ) { for ( var d = [ ] , e = 0 ; e < this . sel . ranges . length ; e ++ ) d [ e ] = a ; this . replaceSelections ( d , b , c || "+input" ) } , replaceSelections : Fb ( function ( a , b , c ) { for ( var d = [ ] , e = this . sel , f = 0 ; f < e . ranges . length ; f ++ ) { var g = e . ranges [ f ] ; d [ f ] = { from : g . from ( ) , to : g . to ( ) , text : Ug ( a [ f ] ) , origin : c } } for ( var h = b && "end" != b && uc ( this , d , b ) , f = d . length - 1 ; f >= 0 ; f -- ) wc ( this , d [ f ] ) ; h ? Aa ( this , h ) : this . cm && Ic ( this . cm ) } ) , undo : Fb ( function ( ) { yc ( this , "undo" ) } ) , redo : Fb ( function ( ) { yc ( this , "redo" ) } ) , undoSelection : Fb ( function ( ) { yc ( this , "undo" , ! 0 ) } ) , redoSelection : Fb ( function ( ) { yc ( this , "redo" , ! 0 ) } ) , setExtending : function ( a ) { this . extend = a } , getExtending : function ( ) { return this . extend } , historySize : function ( ) { for ( var a = this . history , b = 0 , c = 0 , d = 0 ; d < a . done . length ; d ++ ) a . done [ d ] . ranges || ++ b ; for ( var d = 0 ; d < a . undone . length ; d ++ ) a . undone [ d ] . ranges || ++ c ; return { undo : b , redo : c } } , clearHistory : function ( ) { this . history = new be ( this . history . maxGeneration ) } , markClean : function ( ) { this . cleanGeneration = this . changeGeneration ( ! 0 ) } , changeGeneration : function ( a ) { return a && ( this . history . lastOp = this . history . lastSelOp = this . history . lastOrigin = null ) , this . history . generation } , isClean : function ( a ) { return this . history . generation == ( a || this . cleanGeneration ) } , getHistory : function ( ) { return { done : me ( this . history . done ) , undone : me ( this . history . undone ) } } , setHistory : function ( a ) { var b = this . history = new be ( this . history . maxGeneration ) ; b . done = me ( a . done . slice ( 0 ) , null , ! 0 ) , b . undone = me ( a . undone . slice ( 0 ) , null , ! 0 ) } , addLineClass : Fb ( function ( a , b , c ) { return Lc ( this , a , "gutter" == b ? "gutter" : "class" , function ( a ) { var d = "text" == b ? "textClass" : "background" == b ? "bgClass" : "gutter" == b ? "gutterClass" : "wrapClass" ; if ( a [ d ] ) { if ( Qe ( c ) . test ( a [ d ] ) ) return ! 1 ; a [ d ] += " " + c } else a [ d ] = c ; return ! 0 } ) } ) , removeLineClass : Fb ( function ( a , b , c ) { return Lc ( this , a , "gutter" == b ? "gutter" : "class" , function ( a ) { var d = "text" == b ? "textClass" : "background" == b ? "bgClass" : "gutter" == b ? "gutterClass" : "wrapClass" , e = a [ d ] ; if ( ! e ) return ! 1 ; if ( null == c ) a [ d ] = null ; else { var f = e . match ( Qe ( c ) ) ; if ( ! f ) return ! 1 ; var g = f . index + f [ 0 ] . length ; a [ d ] = e . slice ( 0 , f . index ) + ( f . index && g != e . length ? " " : "" ) + e . slice ( g ) || null } return ! 0 } ) } ) , addLineWidget : Fb ( function ( a , b , c ) { return wd ( this , a , b , c ) } ) , removeLineWidget : function ( a ) { a . clear ( ) } , markText : function ( a , b , c ) { return Sc ( this , qa ( this , a ) , qa ( this , b ) , c , "range" ) } , setBookmark : function ( a , b ) { var c = { replacedWith : b && ( null == b . nodeType ? b . widget : b ) , insertLeft : b && b . insertLeft , clearWhenEmpty : ! 1 , shared : b && b . shared , handleMouseEvents : b && b . handleMouseEvents } ; return a = qa ( this , a ) , Sc ( this , a , a , c , "bookmark" ) } , findMarksAt : function ( a ) { a = qa ( this , a ) ; var b = [ ] , c = Vd ( this , a . line ) . markedSp
$ . 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 ) { c = c || $ ( "body" ) ; var d = BI . createWidget ( { type : "bi.toast" , level : b , text : a } ) ; BI . createWidget ( { type : "bi.absolute" , element : c , items : [ { el : d , left : "50%" , top : 0 } ] } ) , d . element . outerWidth ( ) > c . outerWidth ( ) && d . setWidth ( c . width ( ) ) , d . element . css ( { "margin-left" : - 1 * d . element . outerWidth ( ) / 2 } ) , d . invisible ( ) , d . element . slideDown ( 500 , function ( ) { BI . delay ( function ( ) { d . element . slideUp ( 500 , function ( ) { d . destroy ( ) } ) } , 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 = this , b = this . options , c = b . width , d = b . height , e = BI . clamp ( b . scrollLeft , 0 , this . _getMaxScrollLeft ( ) ) , f = BI . clamp ( b . scrollTop , 0 , this . _getMaxScrollTop ( ) ) , g = b . overscanColumnCount , h = b . overscanRowCount ; if ( d > 0 && c > 0 ) { var i = this . _columnSizeAndPositionManager . getVisibleCellRange ( c , e ) , j = this . _rowSizeAndPositionManager . getVisibleCellRange ( d , f ) ; if ( BI . isEmpty ( i ) || BI . isEmpty ( j ) ) return ; var k = this . _columnSizeAndPositionManager . getOffsetAdjustment ( c , e ) , l = this . _rowSizeAndPositionManager . getOffsetAdjustment ( d , f ) ; this . _renderedColumnStartIndex = i . start , this . _renderedColumnStopIndex = i . stop , this . _renderedRowStartIndex = j . start , this . _renderedRowStopIndex = j . stop ; var m = this . _getOverscanIndices ( this . columnCount , g , this . _renderedColumnStartIndex , this . _renderedColumnStopIndex ) , n = this . _getOverscanIndices ( thi
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 } ) } , 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 } ) ; 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 } ) , this . icon2 = BI . createWidget ( { type : "bi.icon_button" , cls : a . iconCls2 , forceNotSelected : ! 0 , width : b . commonWidth } ) , 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 ) , this . icon2 . setSelected ( a ) } , setValue : function ( ) { this . isReadOnly ( ) || this . text . setValue . apply ( this . text , arguments ) } , getValue : function ( ) { return this . text . getValue ( ) } , setText : function ( ) { this . text . setText . apply ( this . text , arguments ) } , getText : function ( ) { return this . text . getText ( ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } } ) , BI . BlankIconIconTextItem . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.blank_icon_icon_text_item" , BI . BlankIconIconTextItem ) , BI . BlankIconTextIconItem = BI . inherit ( BI . BasicButton , { _const : { commonWidth : 25 } , _defaultConfig : function ( ) { var a = BI . BlankIconTextIconItem . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-blank-icon-text-icon-item" , logic : { dynamic : ! 1 } , iconCls1 : "close-ha-font" , iconCls2 : "close-ha-font" , blankWidth : 0 , iconHeight : null , iconWidth : null , textHgap
} ) , 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" , element : this , items : [ { el : this . watermark , left : 0 , top : 0 , right : 0 } ] } ) ) ) } , _focus : function ( ) { this . content . element . addClass ( "textarea-editor-focus" ) , this . _checkWaterMark ( ) } , _blur : function ( ) { this . content . element . removeClass ( "textarea-editor-focus" ) , this . _checkWaterMark ( ) } , focus : function ( ) { this . _focus ( ) , this . content . element . focus ( ) } , blur : function ( ) { this . _blur ( ) , this . content . element . blur ( ) } , getValue : function ( ) { return this . content . element . val ( ) } , setValue : function ( a ) { this . content . element . val ( a ) , this . _checkWaterMark ( ) } , setStyle : function ( a ) { this . style = a , this . element . css ( a ) , this . content . element . css ( BI . extend ( { } , a , { color : a . color || BI . DOM . getContrastColor ( BI . DOM . isRGBColor ( a . backgroundColor ) ? BI . DOM . rgb2hex ( a . backgroundColor ) : a . backgroundColor ) } ) ) } , getStyle : function ( ) { return this . style } , _setValid : function ( a ) { BI . TextAreaEditor . superclass . _setValid . apply ( this , arguments ) } } ) , BI . TextAreaEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . TextAreaEditor . EVENT _BLUR = "EVENT_BLUR" , BI . TextAreaEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . shortcut ( "bi.textarea_editor" , BI . TextAreaEditor ) , BI . Icon = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Icon . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { tagName : "i" , baseCls : ( a . baseCls |
hgap : this . _const . hgap } ) } , setWidth : function ( a ) { this . element . width ( a ) } , 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 : 30 } ) } , _init : function ( ) { BI . Trigger . superclass . _init . apply ( this , arguments ) } , setKey : function ( ) { } , getKey : function ( ) { } } ) , function ( a , b ) { "function" == typeof define && define . amd ? define ( "eve" , function ( ) { return b ( ) } ) : "object" == typeof exports ? module . exports = b ( ) : a . eve = b ( ) } ( this , function ( ) { var a , b , c = "0.4.2" , d = "hasOwnProperty" , e = /[\.\/]/ , f = "*" , g = function ( ) { } , h = function ( a , b ) { return a - b } , i = { n : { } } , j = function ( c , d ) { c = String ( c ) ; var e , f = b , g = Array . prototype . slice . call ( arguments , 2 ) , i = j . listeners ( c ) , k = 0 , l = [ ] , m = { } , n = [ ] , o = a ; a = c , b = 0 ; for ( var p = 0 , q = i . length ; p < q ; p ++ ) "zIndex" in i [ p ] && ( l . push ( i [ p ] . zIndex ) , i [ p ] . zIndex < 0 && ( m [ i [ p ] . zIndex ] = i [ p ] ) ) ; for ( l . sort ( h ) ; l [ k ] < 0 ; ) if ( e = m [ l [ k ++ ] ] , n . push ( e . apply ( d , g ) ) , b ) return b = f , n ; for ( p = 0 ; p < q ; p ++ ) if ( e = i [ p ] , "zIndex" in e ) if ( e . zIndex == l [ k ] ) { if ( n . push ( e . apply ( d , g ) ) , b ) break ; do if ( k ++ , e = m [ l [ k ] ] , e && n . push ( e . apply ( d , g ) ) , b ) break ; while ( e ) } else m [ e . zIndex ] = e ; else if ( n . push ( e . apply ( d , g ) ) , b ) break ; return b = f , a = o , n . length ? n : null } ; return j . _events = i , j . listeners = function ( a ) { var b , c , d , g , h , j , k , l , m = a . split ( e ) , n = i , o = [ n ] , p = [ ] ; for ( g = 0 , h = m . length ; g < h ; g ++ ) { for ( l = [ ] , j = 0 , k = o . length ; j < k ; j ++ ) for ( n = o [ j ] . n , c = [ n [ m [ g ] ] , n [ f ] ] , d = 2 ; d -- ; ) b = c [ d ] , b && ( l . push ( b ) , p = p . concat ( b . f || [ ] ) ) ; o = l } return p } , j . on = function ( a , b ) { if ( a = String ( a ) , "function" != typeof b ) return function ( ) { } ; for ( var c = a . split ( e ) , d = i , f = 0 , h = c . length ; f < h ; f ++ ) d = d . n , d = d . hasOwnProperty ( c [ f ] ) && d [ c [ f ] ] || ( d [ c [ f ] ] = { n : { } } ) ; for ( d . f = d . f || [ ] , f = 0 , h = d . f . length ; f < h ; f ++ ) if ( d . f [ f ] == b ) return g ; return d . f . push ( b ) , function ( a ) { + a == + a && ( b . zIndex = + a ) } } , j . f = function ( a ) { var b = [ ] . slice . call ( arguments , 1 ) ; return function ( ) { j . apply ( null , [ a , null ] . concat ( b ) . concat ( [ ] . slice . call ( arguments , 0 ) ) ) } } , j . stop = function ( ) { b = 1 } , j . nt = function ( b ) { return b ? new RegExp ( "(?:\\.|\\/|^)" + b + "(?:\\.|\\/|$)" ) . test ( a ) : a } , j . nts = function ( ) { return a . split ( e ) } , j . off = j . unbind = function ( a , b ) { if ( ! a ) return void ( j . _events = i = { n : { } } ) ; var c , g , h , k , l , m , n , o = a . split ( e ) , p = [ i ] ; for ( k = 0 , l = o . length ; k < l ; k ++ ) for ( m = 0 ; m < p . length ; m += h . length - 2 ) { if ( h = [ m , 1 ] , c = p [ m ] . n , o [ k ] != f ) c [ o [ k ] ] && h . push ( c [ o [ k ] ] ) ; else for ( g in c ) c [ d ] ( g ) && h . push ( c [ g ] ) ; p . splice . apply ( p , h ) } for ( k = 0 , l = p . length ; k < l ; k ++ ) for ( c = p [ k ] ; c . n ; ) { if ( b ) { if ( c . f ) { for ( m = 0 , n = c . f . length ; m < n ; m ++ ) if ( c . f [ m ] == b ) { c . f . splice ( m , 1 ) ; break } ! c . f . length && delete c . f } for ( g in c . n ) if ( c . n [ d ] ( g ) && c . n [ g ] . f ) { var q = c . n [ g ] . f ; for ( m = 0 , n = q . length ; m < n ; m ++ ) if ( q [ m ] == b ) { q . splice ( m , 1 ) ; break } ! q . length && delete c . n [ g ] . f } } else { delete c . f ; for ( g in c . n ) c . n [ d ] ( g ) && c . n [ g ] . f && delete c . n [ g ] . f } c = c . n } } , j . once = function ( a , b ) { var c = function ( ) { return j . unbind ( a , c ) , b . apply ( this , arguments ) } ; return j . on ( a , c ) } , j . version = c , j . toString = function ( ) { return
} , b . _insertafter = function ( a , b , c ) { Ja ( a , c ) , b == c . top && ( c . top = a ) , b . next && ( b . next . prev = a ) , a . next = b . next , a . prev = b , b . next = a } , b . _insertbefore = function ( a , b , c ) { Ja ( a , c ) , b == c . bottom && ( c . bottom = a ) , b . prev && ( b . prev . next = a ) , a . prev = b . prev , b . prev = a , a . next = b } , b . toMatrix = function ( a , b ) { var c = za ( a ) , d = { _ : { transform : F } , getBBox : function ( ) { return c } } ; return La ( d , b ) , d . matrix } ) , La = ( b . transformPath = function ( a , b ) { return pa ( a , Ka ( a , b ) ) } , b . _extractTransform = function ( a , c ) { if ( null == c ) return a . _ . transform ; c = H ( c ) . replace ( /\.{3}|\u2026/g , a . _ . transform || F ) ; var d = b . parseTransformString ( c ) , e = 0 , f = 0 , g = 0 , h = 1 , i = 1 , j = a . _ , k = new n ; if ( j . transform = d || [ ] , d ) for ( var l = 0 , m = d . length ; l < m ; l ++ ) { var o , p , q , r , s , t = d [ l ] , u = t . length , v = H ( t [ 0 ] ) . toLowerCase ( ) , w = t [ 0 ] != v , x = w ? k . invert ( ) : 0 ; "t" == v && 3 == u ? w ? ( o = x . x ( 0 , 0 ) , p = x . y ( 0 , 0 ) , q = x . x ( t [ 1 ] , t [ 2 ] ) , r = x . y ( t [ 1 ] , t [ 2 ] ) , k . translate ( q - o , r - p ) ) : k . translate ( t [ 1 ] , t [ 2 ] ) : "r" == v ? 2 == u ? ( s = s || a . getBBox ( 1 ) , k . rotate ( t [ 1 ] , s . x + s . width / 2 , s . y + s . height / 2 ) , e += t [ 1 ] ) : 4 == u && ( w ? ( q = x . x ( t [ 2 ] , t [ 3 ] ) , r = x . y ( t [ 2 ] , t [ 3 ] ) , k . rotate ( t [ 1 ] , q , r ) ) : k . rotate ( t [ 1 ] , t [ 2 ] , t [ 3 ] ) , e += t [ 1 ] ) : "s" == v ? 2 == u || 3 == u ? ( s = s || a . getBBox ( 1 ) , k . scale ( t [ 1 ] , t [ u - 1 ] , s . x + s . width / 2 , s . y + s . height / 2 ) , h *= t [ 1 ] , i *= t [ u - 1 ] ) : 5 == u && ( w ? ( q = x . x ( t [ 3 ] , t [ 4 ] ) , r = x . y ( t [ 3 ] , t [ 4 ] ) , k . scale ( t [ 1 ] , t [ 2 ] , q , r ) ) : k . scale ( t [ 1 ] , t [ 2 ] , t [ 3 ] , t [ 4 ] ) , h *= t [ 1 ] , i *= t [ 2 ] ) : "m" == v && 7 == u && k . add ( t [ 1 ] , t [ 2 ] , t [ 3 ] , t [ 4 ] , t [ 5 ] , t [ 6 ] ) , j . dirtyT = 1 , a . matrix = k } a . matrix = k , j . sx = h , j . sy = i , j . deg = e , j . dx = f = k . e , j . dy = g = k . f , 1 == h && 1 == i && ! e && j . bbox ? ( j . bbox . x += + f , j . bbox . y += + g ) : j . dirtyT = 1 } ) , Ma = function ( a ) { var b = a [ 0 ] ; switch ( b . toLowerCase ( ) ) { case "t" : return [ b , 0 , 0 ] ; case "m" : return [ b , 1 , 0 , 0 , 1 , 0 , 0 ] ; case "r" : return 4 == a . length ? [ b , 0 , a [ 2 ] , a [ 3 ] ] : [ b , 0 ] ; case "s" : return 5 == a . length ? [ b , 1 , 1 , a [ 3 ] , a [ 4 ] ] : 3 == a . length ? [ b , 1 , 1 ] : [ b , 1 ] } } , Na = b . _equaliseTransform = function ( a , c ) { c = H ( c ) . replace ( /\.{3}|\u2026/g , a ) , a = b . parseTransformString ( a ) || [ ] , c = b . parseTransformString ( c ) || [ ] ; for ( var d , e , f , g , h = N ( a . length , c . length ) , i = [ ] , j = [ ] , k = 0 ; k < h ; k ++ ) { if ( f = a [ k ] || Ma ( c [ k ] ) , g = c [ k ] || Ma ( f ) , f [ 0 ] != g [ 0 ] || "r" == f [ 0 ] . toLowerCase ( ) && ( f [ 2 ] != g [ 2 ] || f [ 3 ] != g [ 3 ] ) || "s" == f [ 0 ] . toLowerCase ( ) && ( f [ 3 ] != g [ 3 ] || f [ 4 ] != g [ 4 ] ) ) return ; for ( i [ k ] = [ ] , j [ k ] = [ ] , d = 0 , e = N ( f . length , g . length ) ; d < e ; d ++ ) d in f && ( i [ k ] [ d ] = f [ d ] ) , d in g && ( j [ k ] [ d ] = g [ d ] ) } return { from : i , to : j } } ; b . _getContainer = function ( a , c , d , e ) { var f ; if ( f = null != e || b . is ( a , "object" ) ? a : z . doc . getElementById ( a ) , null != f ) return f . tagName ? null == c ? { container : f , width : f . style . pixelWidth || f . offsetWidth , height : f . style . pixelHeight || f . offsetHeight } : { container : f , width : c , height : d } : { container : 1 , x : a , y : c , width : d , height : e } } , b . pathToRelative = Ba , b . _engine = { } , b . path2curve = Ia , b . matrix = function ( a , b , c , d , e , f ) { return new n ( a , b , c , d , e , f ) } , function ( a ) { function c ( a ) { return a [ 0 ] * a [ 0 ] + a [ 1 ] * a [ 1 ] } function d ( a ) { var b = M . sqrt ( c ( a ) ) ; a [ 0 ] && ( a [ 0 ] /= b ) , a [ 1 ] && ( a [ 1 ] /= b ) } a . add = function ( a , b , c , d , e , f ) { var g , h , i , j , k = [ [ ] , [ ] , [ ] ] , l = [ [ this . a , this . c , this . e ] , [ this . b , this . d , this . f ] , [ 0 , 0 , 1 ] ] , m = [ [ a , c , e ] , [ b , d , f ] , [ 0 , 0 , 1 ] ] ; for ( a && a instanceof n && ( m = [ [ a . a , a . c , a . e ] , [ a . b , a . d , a . f ] , [ 0 , 0 , 1 ] ] ) , g = 0 ; g < 3 ; g ++ ) for ( h = 0 ; h < 3 ; h ++ ) { for ( j = 0 , i = 0 ; i < 3 ; i ++ ) j += l [ g ] [ i ] * m [ i ] [ h ] ; k [ g ] [ h ] = j } this . a = k [ 0 ] [ 0 ] , this . b = k [ 1 ] [ 0 ] , this . c = k [ 0 ] [ 1 ] , this . d = k [ 1 ] [ 1 ] , this . e = k [ 0 ] [ 2 ] , this . f = k [ 1 ] [ 2 ] } , a . invert = function ( ) { var a = this , b = a . a * a . d - a . b * a . c ; return new n ( a . d / b , - a . b / b , - a . c / b , a . a / b , ( a . c * a . f - a . d * a . e ) / b , ( a . b * a . e - a . a * a . f ) / b ) } , a . clone = function ( ) { return new n ( this . a , this . b , this . c , this . d , this . e , this . f ) } , a . translate = function ( a , b ) { this . add ( 1 , 0 , 0 , 1 , a , b ) } , a . scale = function ( a , b , c , d ) { null == b && ( b = a ) , ( c || d ) && this . add ( 1 , 0 , 0 , 1 , c , d ) , this . add ( a , 0 , 0 , b , 0 , 0 ) , ( c || d ) && this . add ( 1 , 0 , 0 , 1 , - c , - d ) } , a . rotate = function ( a , c , d ) { a = b . rad ( a ) , c = c || 0 , d = d || 0 ; var e = + M . cos ( a ) . toFixed ( 9 ) , f = + M . sin ( a ) . toFixed ( 9 ) ; this . add ( e , f , - f , e , c , d ) , this . add ( 1 , 0 , 0 , 1 , - c , - d ) } , a . x = function ( a , b ) { return a * this . a + b * this . c + this . e } , a . y = function ( a , b ) { return a * this . b + b * this . d + this . f } , a . get = function ( a ) { return + this [ H . fromCharCode ( 97 + a ) ] . toFixed ( 4 ) } , a . toString = function ( ) { return b . svg ? "matrix(" + [ this . get ( 0 ) , this . get ( 1 ) , this . get ( 2 ) , this . get ( 3 ) , this . get ( 4 ) , this . get ( 5 ) ] . join ( ) + ")" : [ this . get ( 0 ) , this . get ( 2 ) , this . get ( 1 ) , this . get ( 3 ) , 0 , 0 ] . join ( ) } , a . toFilter = function ( ) { return "progid:DXImageTransform.Microsoft.Matrix(M11=" + this . get ( 0 ) + ", M12=" + this . get ( 2 ) + ", M21=" + this . get ( 1 ) + ", M22=" + this . get ( 3 ) + ", Dx=" + this . get ( 4 ) + " , D
1 == d . _ . sx && 1 == d . _ . sy || ( p /= g ( h ( d . _ . sx ) , h ( d . _ . sy ) ) || 1 ) , i . setAttribute ( o , p ) , k [ "stroke-dasharray" ] && v ( d , k [ "stroke-dasharray" ] , f ) , d . _ . arrows && ( "startString" in d . _ . arrows && t ( d , d . _ . arrows . startString ) , "endString" in d . _ . arrows && t ( d , d . _ . arrows . endString , 1 ) ) ; break ; case "stroke-dasharray" : v ( d , p , f ) ; break ; case "fill" : var F = c ( p ) . match ( a . _ISURL ) ; if ( F ) { B = q ( "pattern" ) ; var G = q ( "image" ) ; B . id = a . createUUID ( ) , q ( B , { x : 0 , y : 0 , patternUnits : "userSpaceOnUse" , height : 1 , width : 1 } ) , q ( G , { x : 0 , y : 0 , "xlink:href" : F [ 1 ] } ) , B . appendChild ( G ) , function ( b ) { a . _preload ( F [ 1 ] , function ( ) { var a = this . offsetWidth , c = this . offsetHeight ; q ( b , { width : a , height : c } ) , q ( G , { width : a , height : c } ) } ) } ( B ) , d . paper . defs . appendChild ( B ) , q ( i , { fill : "url(#" + B . id + ")" } ) , d . pattern = B , d . pattern && s ( d ) ; break } var H = a . getRGB ( p ) ; if ( H . error ) { if ( ( "circle" == d . type || "ellipse" == d . type || "r" != c ( p ) . charAt ( ) ) && r ( d , p ) ) { if ( "opacity" in k || "fill-opacity" in k ) { var I = a . _g . doc . getElementById ( i . getAttribute ( "fill" ) . replace ( /^url\(#|\)$/g , l ) ) ; if ( I ) { var J = I . getElementsByTagName ( "stop" ) ; q ( J [ J . length - 1 ] , { "stop-opacity" : ( "opacity" in k ? k . opacity : 1 ) * ( "fill-opacity" in k ? k [ "fill-opacity" ] : 1 ) } ) } } k . gradient = p , k . fill = "none" ; break } } else delete f . gradient , delete k . gradient , ! a . is ( k . opacity , "undefined" ) && a . is ( f . opacity , "undefined" ) && q ( i , { opacity : k . opacity } ) , ! a . is ( k [ "fill-opacity" ] , "undefined" ) && a . is ( f [ "fill-opacity" ] , "undefined" ) && q ( i , { "fill-opacity" : k [ "fill-opacity" ] } ) ; H [ b ] ( "opacity" ) && q ( i , { "fill-opacity" : H . opacity > 1 ? H . opacity / 100 : H . opacity } ) ; case "stroke" : H = a . getRGB ( p ) , i . setAttribute ( o , H . hex ) , "stroke" == o && H [ b ] ( "opacity" ) && q ( i , { "stroke-opacity" : H . opacity > 1 ? H . opacity / 100 : H . opacity } ) , "stroke" == o && d . _ . arrows && ( "startString" in d . _ . arrows && t ( d , d . _ . arrows . startString ) , "endString" in d . _ . arrows && t ( d , d . _ . arrows . endString , 1 ) ) ; break ; case "gradient" : ( "circle" == d . type || "ellipse" == d . type || "r" != c ( p ) . charAt ( ) ) && r ( d , p ) ; break ; case "opacity" : k . gradient && ! k [ b ] ( "stroke-opacity" ) && q ( i , { "stroke-opacity" : p > 1 ? p / 100 : p } ) ; case "fill-opacity" : if ( k . gradient ) { I = a . _g . doc . getElementById ( i . getAttribute ( "fill" ) . replace ( /^url\(#|\)$/g , l ) ) , I && ( J = I . getElementsByTagName ( "stop" ) , q ( J [ J . length - 1 ] , { "stop-opacity" : p } ) ) ; break } default : "font-size" == o && ( p = e ( p , 10 ) + "px" ) ; var K = o . replace ( /(\-.)/g , function ( a ) { return a . substring ( 1 ) . toUpperCase ( ) } ) ; i . style [ K ] = p , d . _ . dirty = 1 , i . setAttribute ( o , p ) } } y ( d , f ) , i . style . visibility = m } , x = 1.2 , y = function ( d , f ) { if ( "text" == d . type && ( f [ b ] ( "text" ) || f [ b ] ( "font" ) || f [ b ] ( "font-size" ) || f [ b ] ( "x" ) || f [ b ] ( "y" ) ) ) { var g = d . attrs , h = d . node , i = h . firstChild ? e ( a . _g . doc . defaultView . getComputedStyle ( h . firstChild , l ) . getPropertyValue ( "font-size" ) , 10 ) : 10 ; if ( f [ b ] ( "text" ) ) { for ( g . text = f . text ; h . firstChild ; ) h . removeChild ( h . firstChild ) ; for ( var j , k = c ( f . text ) . split ( "\n" ) , m = [ ] , n = 0 , o = k . length ; n < o ; n ++ ) j = q ( "tspan" ) , n && q ( j , { dy : i * x , x : g . x } ) , j . appendChild ( a . _g . doc . createTextNode ( k [ n ] ) ) , h . appendChild ( j ) , m [ n ] = j } else for ( m = h . getElementsByTagName ( "tspan" ) , n = 0 , o = m . length ; n < o ; n ++ ) n ? q ( m [ n ] , { dy : i * x , x : g . x } ) : q ( m [ 0 ] , { dy : 0 } ) ; q ( h , { x : g . x , y : g . y } ) , d . _ . dirty = 1 ; var p = d . _getBBox ( ) , r = g . y - ( p . y + p . height / 2 ) ; r && a . is ( r , "finite" ) && q ( m [ 0 ] , { dy : r } ) } } , z = function ( a ) { return a . parentNode && "a" === a . parentNode . tagName . toLowerCase ( ) ? a . parentNode : a } , A = function ( b , c ) { this [ 0 ] = this . node = b , b . raphael = ! 0 , this . id = a . _oid ++ , b . raphaelid = this . id , this . matrix = a . matrix ( ) , this . realPath = null , this . paper = c , this . attrs = this . attrs || { } , this . _ = { transform : [ ] , sx : 1 , sy : 1 , deg : 0 , dx : 0 , dy : 0 , dirty : 1 } , ! c . bottom && ( c . bottom = this ) , this . prev = c . top , c . top && ( c . top . next = this ) , c . top = this , this . next = null } , B = a . el ; A . prototype = B , B . constructor = A , a . _engine . path = function ( a , b ) { var c = q ( "path" ) ; b . canvas && b . canvas . appendChild ( c ) ; var d = new A ( c , b ) ; return d . type = "path" , w ( d , { fill : "none" , stroke : "#000" , path : a } ) , d } , B . rotate = function ( a , b , e ) { if ( this . removed ) return this ; if ( a = c ( a ) . split ( j ) , 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 . transform ( this . _ . transform . concat ( [ [ "r" , a , b , e ] ] ) ) , this } , B . scale = function ( a , b , e , f ) { if ( this . removed ) return this ; if ( a = c ( a ) . split ( j ) , a . length - 1 && ( b = d ( a [ 1 ] ) , e = d ( a [ 2 ] ) , f = d ( a [ 3 ] ) ) , 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 =
} ) , { type : "bi.default" , scrolly : ! 0 , items : [ { type : "bi.layout" , width : 1 , ref : function ( b ) { a . inner = b } } ] } } , mounted : function ( ) { this . _populate ( ) } , _populate : function ( ) { var a = this . options ; if ( a . size < 1 || a . contentSize <= a . size ) return void this . setVisible ( ! 1 ) ; this . setVisible ( ! 0 ) ; try { this . element . scrollTop ( a . position ) } catch ( b ) { } this . inner . element . height ( a . contentSize ) } , setContentSize : function ( a ) { this . options . contentSize = a } , setPosition : function ( a ) { this . options . position = a } , setSize : function ( a ) { this . setHeight ( a ) , this . options . size = a } , populate : function ( ) { this . _populate ( ) } } ) , BI . NativeTableScrollbar . EVENT _SCROLL = "EVENT_SCROLL" , BI . shortcut ( "bi.native_table_scrollbar" , BI . NativeTableScrollbar ) , BI . NativeTableHorizontalScrollbar = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . NativeTableHorizontalScrollbar . superclass . _defaultConfig . apply ( this , arguments ) , { attributes : { tabIndex : 0 } , contentSize : 0 , position : 0 , size : 0 } ) } , render : function ( ) { var a = this ; this . options ; this . element . height ( 36 ) ; var b = BI . throttle ( function ( ) { a . fireEvent ( BI . NativeTableScrollbar . EVENT _SCROLL , a . element . scrollLeft ( ) ) } , 150 , { leading : ! 1 } ) ; return this . element . scroll ( function ( ) { b ( ) } ) , { type : "bi.default" , scrollx : ! 0 , items : [ { type : "bi.layout" , height : 1 , ref : function ( b ) { a . inner = b } } ] } } , setContentSize : function ( a ) { this . options . contentSize = a } , setPosition : function ( a ) { this . options . position = a } , setSize : function ( a ) { this . setWidth ( a ) , this . options . size = a } , _populate : function ( ) { var a = this . options ; if ( a . size < 1 || a . contentSize <= a . size ) return void this . setVisible ( ! 1 ) ; this . setVisible ( ! 0 ) ; try { this . element . scrollLeft ( a . position ) } catch ( b ) { } this . inner . element . width ( a . contentSize ) } , populate : function ( ) { this . _populate ( ) } } ) , BI . NativeTableHorizontalScrollbar . EVENT _SCROLL = "EVENT_SCROLL" , BI . shortcut ( "bi.native_table_horizontal_scrollbar" , BI . NativeTableHorizontalScrollbar ) , BI . TableCell = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . TableCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-table-cell" , textAlign : "left" , text : "" } ) } , _init : function ( ) { BI . TableCell . superclass . _init . apply ( this , arguments ) , BI . createWidget ( { type : "bi.label" , element : this , whiteSpace : "nowrap" , textAlign : this . options . textAlign , height : this . options . height , text : this . options . text , value : this . options . value , lgap : 5 } ) } } ) , BI . shortcut ( "bi.table_cell" , BI . TableCell ) , BI . CollectionTableCell = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . CollectionTableCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-collection-table-cell bi-border-right bi-border-bottom" , width : 0 , height : 0 , _left : 0 , _top : 0 , cell : { } } ) } , _init : function ( ) { BI . CollectionTableCell . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . cell = BI . createWidget ( BI . extend ( { type : "bi.label" } , a . cell , { cls : ( a . cell . cls || "" ) + " collection-table-cell-wrapper" , width : a . width - ( 0 === a . _left ? 1 : 0 ) - 1 , height : a . height - ( 0 === a . _top ? 1 : 0 ) - 1 } ) ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . cell , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) } , setWidth : function ( a ) { BI . CollectionTableCell . superclass . setWidth . apply ( this , arguments ) ; var b = this . options ; this . cell . setWidth ( b . width - ( 0 === b . _left ? 1 : 0 ) - 1 ) } , setHeight : function ( a ) { BI . CollectionTableCell . superclass . setHeight . apply ( this , arguments ) ; var b = this . options ; this . cell . setHeight ( b . height - ( 0 === b . _top ? 1 : 0 ) - 1 ) } } ) , BI . shortcut ( "bi.collection_table_cell" , BI . CollectionTableCell ) , BI . CollectionTable = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . CollectionTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-collection-table" , headerRowSize : 25 , rowSize : 25 , columnSize : [ ] , isNeedFreeze : ! 1 , freezeCols : [ ] , isNeedMerge : ! 1 , mergeCols : [ ] , mergeRule : BI . emptyFn , header : [ ] , items : [ ] , regionColumnSize : [ ] } ) } , render : function ( ) { var a = this , b = this . options ; this . _width = 0 , this . _height = 0 , this . _scrollBarSize = BI . DOM . getScrollWidth ( ) , this . topLeftCollection = BI . createWidget ( { type : "bi.collection_view" , cellSizeAndPositionGetter : function ( b ) { return a . topLeftItems [ b ] } } ) , this . topLeftCollection . on ( BI . CollectionView . EVENT _SCROLL , function ( b ) { a . bottomLeftCollection . setScrollLeft ( b . scrollLeft ) , a . _populateScrollbar ( ) , a . fireEvent ( BI . Table . EVE
return a > 0 ? this . bottomLeftGrid . getScrollLeft ( ) < this . bottomLeftGrid . getMaxScrollLeft ( ) : this . bottomLeftGrid . getScrollLeft ( ) > 0 } , _shouldHandleRightX : function ( a ) { return a > 0 ? this . bottomRightGrid . getScrollLeft ( ) < this . bottomRightGrid . getMaxScrollLeft ( ) : this . bottomRightGrid . getScrollLeft ( ) > 0 } , _shouldHandleY : function ( a ) { return a > 0 ? this . bottomRightGrid . getScrollTop ( ) < this . bottomRightGrid . getMaxScrollTop ( ) : this . bottomRightGrid . getScrollTop ( ) > 0 } , _onWheelLeft : function ( a , b ) { var c = this , d = this . bottomLeftGrid . getScrollTop ( ) , e = this . bottomLeftGrid . getScrollLeft ( ) ; d += b , e += a , this . bottomLeftGrid . setScrollTop ( d ) , this . bottomRightGrid . setScrollTop ( d ) , this . topLeftGrid . setScrollLeft ( e ) , this . bottomLeftGrid . setScrollLeft ( e ) , c . _populateScrollbar ( ) , this . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } , _onWheelRight : function ( a , b ) { var c = this , d = this . bottomRightGrid . getScrollTop ( ) , e = this . bottomRightGrid . getScrollLeft ( ) ; d += b , e += a , this . bottomLeftGrid . setScrollTop ( d ) , this . bottomRightGrid . setScrollTop ( d ) , this . topRightGrid . setScrollLeft ( e ) , this . bottomRightGrid . setScrollLeft ( e ) , c . _populateScrollbar ( ) , this . fireEvent ( BI . Table . EVENT _TABLE _SCROLL , arguments ) } , _populateTable : function ( ) { function a ( a , b , c , d , e ) { var f = c / d , g = b / e ; ( g * ( 120 / d ) >= 60 || f * ( 120 / e ) >= 60 ) && ( a . attr ( "overscanRowCount" , 100 ) , a . attr ( "overscanColumnCount" , 100 ) ) } var b = this . options , c = this . getRegionSize ( ) , d = 0 , e = 0 , f = 0 , g = [ ] , h = this . _getFreezeColLength ( ) ; BI . each ( b . columnSize , function ( a , c ) { b . isNeedFreeze === ! 0 && b . freezeCols . contains ( a ) ? d += c : e += c , f += c , 0 === a ? g [ a ] = c : g [ a ] = g [ a - 1 ] + c } ) ; var i = c , j = this . _getFreezeHeaderHeight ( ) , k = this . _width - c , l = this . _getFreezeHeaderHeight ( ) , m = c , n = this . _height - j , o = this . _width - c , p = this . _height - l ; this . topLeft . setWidth ( i ) , this . topLeft . setHeight ( j ) , this . topRight . setWidth ( k ) , this . topRight . setHeight ( l ) , this . bottomLeft . setWidth ( m ) , this . bottomLeft . setHeight ( n ) , this . bottomRight . setWidth ( o ) , this . bottomRight . setHeight ( p ) , this . topLeftGrid . setWidth ( i ) , this . topLeftGrid . setHeight ( j ) , this . topRightGrid . setWidth ( k ) , this . topRightGrid . setHeight ( l ) , this . bottomLeftGrid . setWidth ( m ) , this . bottomLeftGrid . setHeight ( n ) , this . bottomRightGrid . setWidth ( o ) , this . bottomRightGrid . setHeight ( p ) , this . topLeftGrid . setEstimatedColumnSize ( h > 0 ? d / h : 0 ) , this . topLeftGrid . setEstimatedRowSize ( b . headerRowSize ) , this . topRightGrid . setEstimatedColumnSize ( b . columnSize . length - h > 0 ? e / ( b . columnSize . length - h ) : 0 ) , this . topRightGrid . setEstimatedRowSize ( b . headerRowSize ) , this . bottomLeftGrid . setEstimatedColumnSize ( h > 0 ? d / h : 0 ) , this . bottomLeftGrid . setEstimatedRowSize ( b . rowSize ) , this . bottomRightGrid . setEstimatedColumnSize ( b . columnSize . length - h > 0 ? e / ( b . columnSize . length - h ) : 0 ) , this . bottomRightGrid . setEstimatedRowSize ( b . rowSize ) ; var q = this . contextLayout . attr ( "items" ) ; q [ 1 ] . left = c , q [ 2 ] . top = this . _getFreezeHeaderHeight ( ) , q [ 3 ] . left = c , q [ 3 ] . top = this . _getFreezeHeaderHeight ( ) , this . contextLayout . attr ( "items" , q ) , this . contextLayout . resize ( ) ; var r = [ ] , s = [ ] , t = [ ] , u = [ ] ; BI . each ( b . header , function ( a , b ) { r [ a ] = [ ] , s [ a ] = [ ] , BI . each ( b , function ( b , c ) { var d = { type : "bi.grid_table_cell" , cell : c } ; b < h ? r [ a ] . push ( d ) : s [ a ] . push ( d ) } ) } ) , BI . each ( this . _getActualItems ( ) , function ( a , b ) { t [ a ] = [ ] , u [ a ] = [ ] , BI . each ( b , function ( b , c ) { var d = { type : "bi.grid_table_cell" , cell : c } ; b < h ? t [ a ] . push ( d ) : u [ a ] . push ( d ) } ) } ) , this . topLeftGrid . attr ( { overscanColumnCount : 0 , overscanRowCount : 0 } ) , this . topRightGrid . attr ( { overscanColumnCount : 0 , overscanRowCount : 0 } ) , this . bottomLeftGrid . attr ( { overscanColumnCount : 0 , overscanRowCount : 0 } ) , this . bottomRightGrid . attr ( { overscanColumnCount : 0 , overscanRowCount : 0 } ) , h > 0 && ( a ( this . topLeftGrid , i , j , b . headerRowSize , d / h ) , a ( this . bottomLeftGrid , m , n , b . rowSize , d / h ) ) , b . columnSize . length - h > 0 && ( a ( this . topRight , k , l , b . headerRowSize , e / ( b . columnSize . length - h ) ) , a ( this . bottomRightGrid , o , p , b . rowSize , e / ( b . columnSize . length - h ) ) ) , this . topLeftGrid . populate ( r ) , this . topRightGrid . populate ( s ) , this . bottomLeftGrid . populate ( t ) , this . bottomRightGrid . populate ( u ) } } ) , BI . shortcut ( "bi.quick_grid_table" , BI . QuickGridTable ) , BI . GridTableScrollbar = BI . inherit ( BI . Widget , { _const : { FACE _MARGIN : 4 , FACE _MARGIN _2 : 8 , FACE _SIZE _MIN : 30 , KEYBOARD _SCROLL _AMOUNT : 40 } , _defaultConfig : function ( ) { return BI . extend ( BI . GridTableScrollbar . superclass . _defaultConfig . apply ( this , argum
var e = d . width ( ) / d . _ _mergeCols . length ; b == BI . size ( a . topRightBodyTds [ BI . size ( a . topRightBodyTds ) - 1 ] ) - 1 && e ++ , c . push ( e ) } ) } else BI . each ( this . headerTds [ BI . size ( this . headerTds ) - 1 ] , function ( b , d ) { var e = d . width ( ) / d . _ _mergeCols . length ; b == BI . size ( a . headerTds [ BI . size ( a . headerTds ) - 1 ] ) - 1 && e ++ , c . push ( e ) } ) ; return c } , setHeaderColumnSize : function ( a ) { var b = this , c = this . options , d = this . _isRightFreeze ( ) ; if ( c . isNeedFreeze ) { var e = [ ] , f = [ ] ; BI . each ( a , 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 = function ( a ) { var c , d , i , j ; switch ( a ) { case g : c = b . topLeftColGroupTds , d = b . topLeftBodyTds , i = b . topLeftBodyItems , j = e ; break ; case h : c = b . topRightColGroupTds , d = b . topRightBodyTds , i = b . topRightBodyItems , j = f } BI . each ( c , function ( a , c ) { var e = 0 | c . attr ( "width" ) ; if ( e !== j [ a ] ) { var f = b . _calculateWidth ( j [ a ] ) ; c . attr ( "width" , f ) . css ( "width" , f ) , BI . each ( d , function ( c , d ) { if ( d [ a ] ) if ( d [ a ] . _ _mergeCols . length > 1 ) { var e = 0 ; BI . each ( j , function ( b , c ) { d [ a ] . _ _mergeCols . contains ( b ) && ( e += c ) } ) , e = b . _calculateWidth ( e ) , e > 1 && ( e += d [ a ] . _ _mergeCols . length - 1 ) , BI . isNumeric ( e ) ? a == BI . size ( d ) - 1 ? d [ a ] . attr ( "width" , e - 1 ) . css ( "width" , e - 1 ) : d [ a ] . attr ( "width" , e ) . css ( "width" , e ) : d [ a ] . attr ( "width" , "" ) . css ( "width" , "" ) } else a == BI . size ( d ) - 1 ? d [ a ] . attr ( "width" , f - 1 ) . css ( "width" , f - 1 ) : d [ a ] . attr ( "width" , f ) . css ( "width" , f ) } ) , BI . each ( i , function ( c , e ) { if ( e [ a ] ) if ( d [ c ] [ a ] . _ _mergeCols . length > 1 ) { var g = 0 ; BI . each ( j , function ( b , e ) { d [ c ] [ a ] . _ _mergeCols . contains ( b ) && ( g += e ) } ) , g = b . _calculateWidth ( g ) , g > 1 && ( g += d [ c ] [ a ] . _ _mergeCols . length - 1 ) , BI . isNumeric ( g ) ? a == BI . size ( e ) - 1 ? e [ a ] . element . attr ( "width" , g - 1 ) . css ( "width" , g - 1 ) : e [ a ] . element . attr ( "width" , g ) . css ( "width" , g ) : e [ a ] . element . attr ( "width" , "" ) . css ( "width" , "" ) } else BI . isNumeric ( f ) ? a == BI . size ( e ) - 1 ? e [ a ] . element . attr ( "width" , f - 1 ) . css ( "width" , f - 1 ) : e [ a ] . element . attr ( "width" , f ) . css ( "width" , f ) : e [ a ] . element . attr ( "width" , "" ) . css ( "width" , "" ) } ) } } ) } ; i ( g ) , i ( h ) ; var j = 0 , k = 0 ; BI . each ( a , function ( a , b ) { c . freezeCols . contains ( a ) ? j += b : k += b } ) , j = this . _calculateWidth ( j ) , k = this . _calculateWidth ( k ) , BI . isNumeric ( j ) && ( j = BI . parseFloat ( j ) + c . freezeCols . length ) , BI . isNumeric ( k ) && ( k = BI . parseFloat ( k ) + a . length - c . freezeCols . length ) , this . topLeftContainer . element . width ( d ? k : j ) , this . topRightContainer . element . width ( d ? j : k ) , this . scrollTopLeft . element [ 0 ] . scrollLeft = this . scrollBottomLeft . element [ 0 ] . scrollLeft , this . scrollTopRight . element [ 0 ] . scrollLeft = this . scrollBottomRight . element [ 0 ] . scrollLeft } else { BI . each ( this . colgroupTds , function ( c , d ) { var e = 0 | d . attr ( "width" ) ; if ( e !== a [ c ] ) { var f = b . _calculateWidth ( a [ c ] ) ; d . attr ( "width" , f ) . css ( "width" , f ) , BI . each ( b . headerTds , function ( d , e ) { if ( e [ c ] ) if ( e [ c ] . _ _mergeCols . length > 1 ) { var g = 0 ; BI . each ( a , function ( a , b ) { e [ c ] . _ _mergeCols . contains ( a ) && ( g += b ) } ) , g = b . _calculateWidth ( g ) , g > 1 && ( g += e [ c ] . _ _mergeCols . length - 1 ) , BI . isNumeric ( g ) ? c == BI . size ( e ) - 1 ? e [ c ] . element . attr ( "width" , g - 1 ) . css ( "width" , g - 1 ) : e [ c ] . element . attr ( "width" , g ) . css ( "width" , g ) : e [ c ] . attr ( "width" , "" ) . css ( "width" , "" ) } else c == BI . size ( e ) - 1 ? e [ c ] . attr ( "width" , f - 1 ) . css ( "width" , f - 1 ) : e [ c ] . attr ( "width" , f ) . css ( "width" , f ) } ) , BI . each ( b . headerItems , function ( d , e ) { if ( e [ c ] ) if ( b . headerTds [ d ] [ c ] . _ _mergeCols . length > 1 ) { var g = 0 ; BI . each ( a , function ( a , e ) { b . headerTds [ d ] [ c ] . _ _mergeCols . contains ( a ) && ( g += e ) } ) , g = b . _calculateWidth ( g ) , g > 1 && ( g += b . headerTds [ d ] [ c ] . _ _mergeCols . length - 1 ) , BI . isNumeric ( g ) ? c == BI . size ( e ) - 1 ? e [ c ] . element . attr ( "width" , g - 1 ) . css ( "width" , g - 1 ) : e [ c ] . element . attr ( "width" , g ) . css ( "width" , g ) : e [ c ] . element . attr ( "width" , "" ) . css ( "width" , "" ) } else BI . isNumeric ( f ) ? c == BI . size ( e ) - 1 ? e [ c ] . element . attr ( "width" , f - 1 ) . css ( "width" , f - 1 ) : e [ c ] . element . attr ( "width" , f ) . css ( "width" , f ) : e [ c ] . element . attr ( "width" , "" ) . css ( "width" , "" ) } ) } } ) ; var l = this . _calculateWidth ( BI . sum ( a ) ) ; l > 1.05 && ( l += a . length ) , this . tableContainer . element . width ( l ) } } , setRegionColumnSize : function ( a ) { var b = this . options ; b . regionColumnSize = a , 0 === b . freezeCols . length ? b . isNeedFreeze ? ( this . partitions . attr ( "columnSize" , this . _isRightFreeze ( ) ? [ "fill" , 0 ] : [ 0 , "fill" ] ) , this . partitions . resize ( ) ) : this . tableContainer . element . width ( a [ 0 ] ) : b . freezeCols . length > 0 && b . freezeCols . length < b . columnSize . length ? b . isNeedFreeze ? ( this . partitions . attr ( "columnSize" , a ) , this . partitions . resize ( ) ) : this . tableContainer . element . width ( a [ 0 ] ) : b . isNeedFre
! 0 } , onZTreeDblclick : function ( a , b ) { var c = data . getSetting ( a . data . treeId ) ; return tools . apply ( c . callback . beforeDblClick , [ c . treeId , b ] , ! 0 ) && tools . apply ( c . callback . onDblClick , [ a , c . treeId , b ] ) , ! 0 } , onZTreeContextmenu : function ( a , b ) { var c = data . getSetting ( a . data . treeId ) ; return tools . apply ( c . callback . beforeRightClick , [ c . treeId , b ] , ! 0 ) && tools . apply ( c . callback . onRightClick , [ a , c . treeId , b ] ) , "function" != typeof c . callback . onRightClick } } , tools = { apply : function ( a , b , c ) { return "function" == typeof a ? a . apply ( zt , b ? b : [ ] ) : c } , canAsync : function ( a , b ) { var c = a . data . key . children ; return a . async . enable && b && b . isParent && ! ( b . zAsync || b [ c ] && b [ c ] . length > 0 ) } , clone : function ( a ) { if ( null === a ) return null ; var b = tools . isArray ( a ) ? [ ] : { } ; for ( var c in a ) b [ c ] = a [ c ] instanceof Date ? new Date ( a [ c ] . getTime ( ) ) : "object" == typeof a [ c ] ? arguments . callee ( a [ c ] ) : a [ c ] ; return b } , eqs : function ( a , b ) { return a . toLowerCase ( ) === b . toLowerCase ( ) } , isArray : function ( a ) { return "[object Array]" === Object . prototype . toString . apply ( a ) } , $ : function ( a , b , c ) { return b && "string" != typeof b && ( c = b , b = "" ) , "string" == typeof a ? $ ( a , c ? c . treeObj . get ( 0 ) . ownerDocument : null ) : $ ( "#" + a . tId + b , c ? c . treeObj : null ) } , getMDom : function ( a , b , c ) { if ( ! b ) return null ; for ( ; b && b . id !== a . treeId ; ) { for ( var d = 0 , e = c . length ; b . tagName && d < e ; d ++ ) if ( tools . eqs ( b . tagName , c [ d ] . tagName ) && null !== b . getAttribute ( c [ d ] . attrName ) ) return b ; b = b . parentNode } return null } , getNodeMainDom : function ( a ) { return $ ( a ) . parent ( "li" ) . get ( 0 ) || $ ( a ) . parentsUntil ( "li" ) . parent ( ) . get ( 0 ) } , isChildOrSelf : function ( a , b ) { return $ ( a ) . closest ( "#" + b ) . length > 0 } , uCanDo : function ( a , b ) { return ! 0 } } , view = { addNodes : function ( a , b , c , d ) { if ( ! a . data . keep . leaf || ! b || b . isParent ) if ( tools . isArray ( c ) || ( c = [ c ] ) , a . data . simpleData . enable && ( c = data . transformTozTreeFormat ( a , c ) ) , b ) { var e = $$ ( b , consts . id . SWITCH , a ) , f = $$ ( b , consts . id . ICON , a ) , g = $$ ( b , consts . id . UL , a ) ; b . open || ( view . replaceSwitchClass ( b , e , consts . folder . CLOSE ) , view . replaceIcoClass ( b , f , consts . folder . CLOSE ) , b . open = ! 1 , g . css ( { display : "none" } ) ) , data . addNodesData ( a , b , c ) , view . createNodes ( a , b . level + 1 , c , b ) , d || view . expandCollapseParentNode ( a , b , ! 0 ) } else data . addNodesData ( a , data . getRoot ( a ) , c ) , view . createNodes ( a , 0 , c , null ) } , appendNodes : function ( a , b , c , d , e , f ) { if ( ! c ) return [ ] ; for ( var g = [ ] , h = a . data . key . children , i = 0 , j = c . length ; i < j ; i ++ ) { var k = c [ i ] ; if ( e ) { var l = d ? d : data . getRoot ( a ) , m = l [ h ] , n = m . length == c . length && 0 == i , o = i == c . length - 1 ; data . initNode ( a , b , k , d , n , o , f ) , data . addNodeCache ( a , k ) } var p = [ ] ; k [ h ] && k [ h ] . length > 0 && ( p = view . appendNodes ( a , b + 1 , k [ h ] , k , e , f && k . open ) ) , f && ( view . makeDOMNodeMainBefore ( g , a , k ) , view . makeDOMNodeLine ( g , a , k ) , data . getBeforeA ( a , k , g ) , view . makeDOMNodeNameBefore ( g , a , k ) , data . getInnerBeforeA ( a , k , g ) , view . makeDOMNodeIcon ( g , a , k ) , data . getInnerAfterA ( a , k , g ) , view . makeDOMNodeNameAfter ( g , a , k ) , data . getAfterA ( a , k , g ) , k . isParent && k . open && view . makeUlHtml ( a , k , g , p . join ( "" ) ) , view . makeDOMNodeMainAfter ( g , a , k ) , data . addCreatedNode ( a , k ) ) } return g } , appendParentULDom : function ( a , b ) { var c = [ ] , d = $$ ( b , a ) ; ! d . get ( 0 ) && b . parentTId && ( view . appendParentULDom ( a , b . getParentNode ( ) ) , d = $$ ( b , a ) ) ; var e = $$ ( b , consts . id . UL , a ) ; e . get ( 0 ) && e . remove ( ) ; var f = a . data . key . children , g = view . appendNodes ( a , b . level + 1 , b [ f ] , b , ! 1 , ! 0 ) ; view . makeUlHtml ( a , b , c , g . join ( "" ) ) , d . append ( c . join ( "" ) ) } , asyncNode : function ( setting , node , isSilent , callback ) { var i , l ; if ( node && ! node . isParent ) return tools . apply ( callback ) , ! 1 ; if ( node && node . isAjaxing ) return ! 1 ; if ( 0 == tools . apply ( setting . callback . beforeAsync , [ setting . treeId , node ] , ! 0 ) ) return tools . apply ( callback ) , ! 1 ; if ( node ) { node . isAjaxing = ! 0 ; var icoObj = $$ ( node , consts . id . ICON , setting ) ; icoObj . attr ( { style : "" , "class" : consts . className . BUTTON + " " + consts . className . ICO _LOADING } ) } var tmpParam = { } ; for ( i = 0 , l = setting . async . autoParam . length ; node && i < l ; i ++ ) { var pKey = setting . async . autoParam [ i ] . split ( "=" ) , spKey = pKey ; pKey . length > 1 && ( spKey = pKey [ 1 ] , pKey = pKey [ 0 ] ) , tmpParam [ spKey ] = node [ pKey ] } if ( tools . isArray ( setting . async . otherParam ) ) for ( i = 0 , l = setting . async . otherParam . length ; i < l ; i += 2 ) tmpParam [ setting . async . otherParam [ i ] ] = setting . async . otherParam [ i + 1 ] ; else for ( var p in setting . async . otherParam ) tmpParam [ p ] = setting . async . otherParam [ p ] ; var _tmpV = data . getRoot ( setting ) . _ver ; return $ . ajax ( { contentType : setting . async . contentType , cache : ! 1 , type : setting . async . type , url : too
return BI . extend ( a , { extraCls : "bi-half-icon-button check-half-select-icon" , height : 16 , width : 16 , iconWidth : 16 , iconHeight : 16 , selected : ! 1 } ) } , _init : function ( ) { BI . HalfIconButton . superclass . _init . apply ( this , arguments ) } , doClick : function ( ) { BI . HalfIconButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . HalfIconButton . EVENT _CHANGE ) } } ) , BI . HalfIconButton . EVENT _CHANGE = "HalfIconButton.EVENT_CHANGE" , BI . shortcut ( "bi.half_icon_button" , BI . HalfIconButton ) , BI . TriggerIconButton = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { var a = BI . TriggerIconButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-trigger-icon-button" , extraCls : "pull-down-font" } ) } , _init : function ( ) { BI . TriggerIconButton . superclass . _init . apply ( this , arguments ) } , doClick : function ( ) { BI . TriggerIconButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TriggerIconButton . EVENT _CHANGE , this ) } } ) , BI . TriggerIconButton . EVENT _CHANGE = "TriggerIconButton.EVENT_CHANGE" , BI . shortcut ( "bi.trigger_icon_button" , BI . TriggerIconButton ) , BI . MultiSelectItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multi-select-item" , height : 25 , logic : { dynamic : ! 1 } } ) } , _init : function ( ) { BI . MultiSelectItem . 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" , cls : "list-item-text" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , rgap : b . rgap , text : b . text , keyword : b . keyword , value : b . value , py : b . py } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . setSelected ( a . isSelected ( ) ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , { type : "bi.center_adapt" , items : [ this . checkbox ] , width : 36 } , this . text ) } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . MultiSelectItem . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isSelected ( ) ) , this . isValid ( ) && this . fireEvent ( BI . MultiSelectItem . EVENT _CHANGE , this . getValue ( ) , this ) } , setSelected : function ( a ) { BI . MultiSelectItem . superclass . setSelected . apply ( this , arguments ) , this . checkbox . setSelected ( a ) } } ) , BI . MultiSelectItem . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_item" , BI . MultiSelectItem ) , BI . SingleSelectIconTextItem = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectIconTextItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-single-select-icon-text-item bi-list-item-active" , iconClass : "" , hgap : 10 , height : 25 } ) } , _init : function ( ) { BI . SingleSelectIconTextItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . text = BI . createWidget ( { type : "bi.icon_text_item" , element : this , cls : b . iconClass , once : b . once , selected : b . selected , height : b . height , iconHeight : b . iconHeight , iconWidth : b . iconWidth , text : b . text , keyword : b . keyword , value : b . value , py : b . py } ) , this . text . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) } , isSelected : function ( ) { return this . text . isSelected ( ) } , setSelected : function ( a ) { this . text . setSelected ( a ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . SingleSelectIconTextItem . superclass . doClick . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.single_select_icon_text_item" , BI . SingleSelectIconTextItem ) , BI . SingleSelectItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-single-select-item bi-list-item-active" , hgap : 10 , height : 25 , textAlign : "left" } ) } , _init : function ( ) { BI . SingleSelectItem . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , text
var e = { } ; Date . checkVoid ( c + a , 1 , 1 , b . min , b . max ) [ 0 ] && ( e . disabled = ! 0 ) , e . text = c + a , d . push ( e ) } ) , d } , _init : function ( ) { BI . YearCalendar . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . currentYear = ( new Date ) . getFullYear ( ) ; var c = this . _yearCreator ( b . year || this . currentYear ) , d = c . length , e = BI . makeArray ( d , "" ) , f = [ 0 , 6 , 1 , 7 , 2 , 8 , 3 , 9 , 4 , 10 , 5 , 11 ] ; BI . each ( c , function ( a , b ) { e [ a ] = c [ f [ a ] ] } ) ; var g = [ ] ; g . push ( e . slice ( 0 , 2 ) ) , g . push ( e . slice ( 2 , 4 ) ) , g . push ( e . slice ( 4 , 6 ) ) , g . push ( e . slice ( 6 , 8 ) ) , g . push ( e . slice ( 8 , 10 ) ) , g . push ( e . slice ( 10 , 12 ) ) , g = BI . map ( g , function ( a , b ) { return BI . map ( b , function ( a , b ) { return BI . extend ( b , { type : "bi.text_item" , cls : "bi-list-item-active" , textAlign : "center" , whiteSpace : "normal" , once : ! 1 , forceSelected : ! 0 , height : 23 , width : 38 , value : b . text , disabled : b . disabled } ) } ) } ) , this . years = BI . createWidget ( { type : "bi.button_group" , behaviors : b . behaviors , items : BI . createItems ( g , { } ) , layouts : [ BI . LogicFactory . createLogic ( "table" , BI . extend ( { } , b . logic , { columns : 2 , rows : 6 , columnSize : [ . 5 , . 5 ] , rowSize : 25 } ) ) , { type : "bi.center_adapt" , vgap : 1 } ] } ) , this . years . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "vertical" , BI . extend ( { } , b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "top" , this . years ) } ) ) ) ) } , isFrontYear : function ( ) { var a = this . options , b = a . year ; return b = 0 | b , ! ! Date . checkVoid ( BI . YearCalendar . getStartYear ( b ) - 1 , 1 , 1 , a . min , a . max ) [ 0 ] } , isFinalYear : function ( ) { var a = this . options , b = ( this . _const , a . year ) ; return b = 0 | b , ! ! Date . checkVoid ( BI . YearCalendar . getEndYear ( b ) + 1 , 1 , 1 , a . min , a . max ) [ 0 ] } , setValue : function ( a ) { this . years . setValue ( [ a ] ) } , getValue : function ( ) { return this . years . getValue ( ) [ 0 ] } } ) , BI . extend ( BI . YearCalendar , { INTERVAL : 12 , getStartYear : function ( a ) { var b = ( new Date ) . getFullYear ( ) ; return a - ( ( a - b + 3 ) % BI . YearCalendar . INTERVAL + 12 ) % BI . YearCalendar . INTERVAL } , getEndYear : function ( a ) { return BI . YearCalendar . getStartYear ( a ) + BI . YearCalendar . INTERVAL } , getPageByYear : function ( a ) { var b = ( new Date ) . getFullYear ( ) ; return a = BI . YearCalendar . getStartYear ( a ) , ( a - b + 3 ) / BI . YearCalendar . INTERVAL } } ) , BI . shortcut ( "bi.year_calendar" , BI . YearCalendar ) , BI . ComplexCanvas = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ComplexCanvas . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-complex-canvas" } ) } , _init : function ( ) { BI . ComplexCanvas . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . canvas = BI . createWidget ( { type : "bi.canvas" , element : this , width : a . width , height : a . height } ) } , branch : function ( a , b , c , d , e , f ) { var g = this , h = [ ] . slice . call ( arguments ) ; if ( h . length <= 5 ) return this . canvas . line . apply ( this . canvas , arguments ) ; var i ; BI . isOdd ( h . length ) && ( i = BI . last ( h ) , h = BI . initial ( h ) ) , h = [ ] . slice . call ( h , 2 ) ; var j = BI . filter ( h , function ( a ) { return a % 2 === 0 } ) , k = BI . filter ( h , function ( a ) { return a % 2 !== 0 } ) ; i || ( i = { } ) ; var l = i . offset || 20 ; if ( b > d && b > f || b < d && b < f ) { if ( b > d && b > f ) var m = Math . max . apply ( this , k ) + l ; else var m = Math . min . apply ( this , k ) - l ; var n = Math . min . apply ( this , j ) , o = BI . indexOf ( j , n ) , p = Math . max . apply ( this , j ) , q = BI . indexOf ( j , p ) ; return this . canvas . line ( n , k [ o ] , n , m , p , m , p , k [ q ] , i ) , BI . each ( j , function ( a , b ) { a !== q && a !== o && g . canvas . line ( b , k [ a ] , b , m , i ) } ) , void this . canvas . line ( a , m , a , b , i ) } if ( a > c && a > e || a < c && a < e ) { if ( a > c && a > e ) var r = Math . max . apply ( this , j ) + l ; else var r = Math . min . apply ( this , j ) - l ; var s = Math . min . apply ( this , k ) , t = BI . indexOf ( k , s ) , u = Math . max . apply ( this , k ) , v = BI . indexOf ( k , u ) ; return this . canvas . line ( j [ t ] , s , r , s , r , u , j [ v ] , u , i ) , BI . each ( k , function ( a , b ) { a !== t && a !== v && g . canvas . line ( j [ a ] , b , r , b , i ) } ) , void this . canvas . line ( r , b , a , b , i ) } } , stroke : function ( a ) { this . canvas . stroke ( a ) } } ) , BI . shortcut ( "bi.complex_canvas" , BI . ComplexCanvas ) , BI . ArrowTreeGroupNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . ArrowTreeGroupNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-arrow-tree-group-node" , iconWidth : 13 , iconHeight : 13 } ) } , _init : function ( ) { BI . ArrowTreeGroupNodeCheckbox . superclass . _init . apply ( this , arguments ) } , setSelected : function ( a ) { BI . ArrowTreeGroupNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a ? this . element . removeClass ( "column-next-page-h-font" ) . addClass ( " column -
cls : "bi-card color-chooser-trigger-content" } ) ; var a = BI . createWidget ( { type : "bi.icon_button" , disableSelected : ! 0 , cls : "icon-combo-down-icon trigger-triangle-font" , width : 12 , height : 8 } ) ; BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . colorContainer , left : 3 , right : 3 , top : 3 , bottom : 3 } , { el : a , right : 3 , bottom : 3 } ] } ) , this . options . value && this . setValue ( this . options . value ) } , setValue : function ( a ) { BI . ColorChooserTrigger . superclass . setValue . apply ( this , arguments ) , "" === a ? this . colorContainer . element . css ( "background-color" , "" ) . removeClass ( "trans-color-background" ) . addClass ( "auto-color-background" ) : "transparent" === a ? this . colorContainer . element . css ( "background-color" , "" ) . removeClass ( "auto-color-background" ) . addClass ( "trans-color-background" ) : this . colorContainer . element . css ( { "background-color" : a } ) . removeClass ( "auto-color-background" ) . removeClass ( "trans-color-background" ) } } ) , BI . ColorChooserTrigger . EVENT _CHANGE = "ColorChooserTrigger.EVENT_CHANGE" , BI . shortcut ( "bi.color_chooser_trigger" , BI . ColorChooserTrigger ) , BI . ColorPickerButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . ColorPickerButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-color-picker-button bi-background bi-border-top bi-border-left" } ) } , _init : function ( ) { BI . ColorPickerButton . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; if ( b . value ) { this . element . css ( "background-color" , b . value ) ; var c = this . getName ( ) ; this . element . hover ( function ( ) { a . _createMask ( ) , a . isEnabled ( ) && BI . Maskers . show ( c ) } , function ( ) { a . isSelected ( ) || BI . Maskers . hide ( c ) } ) } } , _createMask : function ( ) { var a = this . options , b = this . getName ( ) ; if ( this . isEnabled ( ) && ! BI . Maskers . has ( b ) ) { var c = BI . Maskers . make ( b , this , { offset : { left : - 1 , top : - 1 , right : - 1 , bottom : - 1 } } ) ; c . element . addClass ( "color-picker-button-mask" ) . css ( "background-color" , a . value ) } } , setSelected : function ( a ) { BI . ColorPickerButton . superclass . setSelected . apply ( this , arguments ) , a && this . _createMask ( ) , BI . Maskers [ a ? "show" : "hide" ] ( this . getName ( ) ) } } ) , BI . ColorPickerButton . EVENT _CHANGE = "ColorPickerButton.EVENT_CHANGE" , BI . shortcut ( "bi.color_picker_button" , BI . ColorPickerButton ) , BI . ColorPicker = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ColorPicker . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-color-picker" , items : null } ) } , _items : [ [ { value : "#ffffff" } , { value : "#f2f2f2" } , { value : "#e5e5e5" } , { value : "#d9d9d9" } , { value : "#cccccc" } , { value : "#bfbfbf" } , { value : "#b2b2b2" } , { value : "#a6a6a6" } , { value : "#999999" } , { value : "#8c8c8c" } , { value : "#808080" } , { value : "#737373" } , { value : "#666666" } , { value : "#4d4d4d" } , { value : "#333333" } , { value : "#000000" } ] , [ { value : "#d8b5a6" } , { value : "#ff9e9a" } , { value : "#ffc17d" } , { value : "#f5e56b" } , { value : "#d8e698" } , { value : "#e0ebaf" } , { value : "#c3d825" } , { value : "#bce2e8" } , { value : "#85d3cd" } , { value : "#bce2e8" } , { value : "#a0d8ef" } , { value : "#89c3eb" } , { value : "#bbc8e6" } , { value : "#bbbcde" } , { value : "#d6b4cc" } , { value : "#fbc0d3" } ] , [ { value : "#bb9581" } , { value : "#f37d79" } , { value : "#fba74f" } , { value : "#ffdb4f" } , { value : "#c7dc68" } , { value : "#b0ca71" } , { value : "#99ab4e" } , { value : "#84b9cb" } , { value : "#00a3af" } , { value : "#2ca9e1" } , { value : "#0095d9" } , { value : "#4c6cb3" } , { value : "#8491c3" } , { value : "#a59aca" } , { value : "#cc7eb1" } , { value : "#e89bb4" } ] , [ { value : "#9d775f" } , { value : "#dd4b4b" } , { value : "#ef8b07" } , { value : "#fcc800" } , { value : "#aacf53" } , { value : "#82ae46" } , { value : "#69821b" } , { value : "#59b9c6" } , { value : "#2a83a2" } , { value : "#007bbb" } , { value : "#19448e" } , { value : "#274a78" } , { value : "#4a488e" } , { value : "#7058a3" } , { value : "#884898" } , { value : "#d47596" } ] ] , _init : function ( ) { BI . ColorPicker . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . colors = BI . createWidget ( { type : "bi.button_group" , element : this , items : BI . createItems ( b . items || this . _items , { type : "bi.color_picker_button" , once : ! 1 } ) , layouts : [ { type : "bi.grid" } ] } ) , this . colors . on ( BI . ButtonGroup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . ColorPicker . EVENT _CHANGE , arguments ) } ) } , populate : function ( a ) { var b = [ ] . slice . call ( arguments ) ; b [ 0 ] = BI . createItems ( a , { type : "bi.color_picker_button" , once : ! 1 } ) , this . colors . populate . apply ( this . colors , b ) } , setValue : function ( a ) { this . colors . setValue ( a ) } , getValue : function ( ) { return this . c
} , getValue : function ( ) { return this . textIconCheckCombo . getValue ( ) } , populate : function ( a ) { this . options . items = a , this . textIconCheckCombo . populate ( a ) } } ) , BI . TextValueCheckCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_value_check_combo" , BI . TextValueCheckCombo ) , BI . SmallTextValueCheckCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SmallTextValueCheckCombo . superclass . _defaultConfig . apply ( this , arguments ) , { width : 100 , height : 24 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , text : "" } ) } , _init : function ( ) { BI . SmallTextValueCheckCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.small_select_text_trigger" , items : b . items , height : b . height , text : b . text } ) , this . popup = BI . createWidget ( { type : "bi.text_value_check_combo_popup" , chooseType : b . chooseType , items : b . items } ) , this . popup . on ( BI . TextValueCheckComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . SmallTextIconCheckCombo . hideView ( ) , a . fireEvent ( BI . SmallTextValueCheckCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . SmallTextIconCheckCombo = BI . createWidget ( { type : "bi.combo" , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) } , setValue : function ( a ) { this . SmallTextIconCheckCombo . setValue ( a ) } , getValue : function ( ) { return this . SmallTextIconCheckCombo . getValue ( ) } , populate : function ( a ) { this . options . items = a , this . SmallTextIconCheckCombo . populate ( a ) } } ) , BI . SmallTextValueCheckCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.small_text_value_check_combo" , BI . SmallTextValueCheckCombo ) , BI . TextValueCheckComboPopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . TextValueCheckComboPopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-text-icon-popup" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } ) } , _init : function ( ) { BI . TextValueCheckComboPopup . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this ; this . popup = BI . createWidget ( { type : "bi.button_group" , items : this . _formatItems ( a . items ) , chooseType : a . chooseType , layouts : [ { type : "bi.vertical" } ] } ) , 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 . TextValueCheckComboPopup . EVENT _CHANGE , c , d ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . popup ] } ) } , _formatItems : function ( a ) { return BI . map ( a , function ( a , b ) { return BI . extend ( { type : "bi.icon_text_item" , cls : "item-check-font bi-list-item" , height : 30 } , b ) } ) } , populate : function ( a ) { BI . TextValueCheckComboPopup . superclass . populate . apply ( this , arguments ) , this . popup . populate ( this . _formatItems ( a ) ) } , getValue : function ( ) { return this . popup . getValue ( ) } , setValue : function ( a ) { this . popup . setValue ( a ) } } ) , BI . TextValueCheckComboPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.text_value_check_combo_popup" , BI . TextValueCheckComboPopup ) , BI . TextValueCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . TextValueCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseClass : "bi-text-value-combo" , height : 30 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , text : "" , el : { } } ) } , _init : function ( ) { BI . TextValueCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( b . el , { type : "bi.select_text_trigger" , items : b . items , height : b . height , text : b . text } ) , this . popup = BI . createWidget ( { type : "bi.text_value_combo_popup" , chooseType : b . chooseType , items : b . items } ) , this . popup . on ( BI . TextValueComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . textIconCombo . hideView ( ) , a . fireEvent ( BI . TextValueCombo . EVENT _CHANGE , arguments ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . textIconCombo = BI . createWidget ( { type : "bi.combo" , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) } , setValue : function ( a ) { this . textIconCombo . setValue ( a ) } , getValue : function ( ) { return this . textIconCombo . getValue ( ) } , populate : function ( a ) { this . options . items = a , this . textIconCombo . populate ( a ) } } ) , BI . TextValueCombo . EVENT _CHANGE = " EVENT _CHAN
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 ) { this . _showHint ( ) , this . text . setValue ( a ) } } ) , BI . SignEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . SignEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . SignEditor . EVENT _BLUR = "EVENT_BLUR" , BI . SignEditor . EVENT _CLICK = "EVENT_CLICK" , BI . SignEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . SignEditor . EVENT _CLICK _LABEL = "EVENT_CLICK_LABEL" , BI . SignEditor . EVENT _START = "EVENT_START" , BI . SignEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . SignEditor . EVENT _STOP = "EVENT_STOP" , BI . SignEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . SignEditor . EVENT _VALID = "EVENT_VALID" , BI . SignEditor . EVENT _ERROR = "EVENT_ERROR" , BI . SignEditor . EVENT _ENTER = "EVENT_ENTER" , BI . SignEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . SignEditor . EVENT _SPACE = "EVENT_SPACE" , BI . SignEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.sign_editor" , BI . SignEditor ) , BI . StateEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . StateEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-state-editor" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 0 , watermark : "" , errorText : "" , height : 30 } ) } , _init : function ( ) { BI . StateEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.editor" , height : b . height , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , value : b . value , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText } ) , this . text = BI . createWidget ( { type : "bi.text_button" , cls : "state-editor-infinite-text bi-disabled" , textAlign : "left" , height : b . height , text : BI . i18nText ( "BI-Basic_Unrestricted" ) , hgap : 4 , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . setValue ( "" ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . StateEditor . 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 . StateEditor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . StateEditor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . StateEditor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . StateEditor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . StateEditor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . StateEditor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . _showHint ( ) , a . fireEvent ( BI . StateEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . StateEditor . EVENT _START , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent
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 . setLoading ( ) , b . itemsCreator . apply ( this , [ { times : ++ this . times } , function ( ) { a . next . setLoaded ( ) , a . addItems . apply ( a , arguments ) } ] ) } , _init : function ( ) { BI . ListLoader . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . itemsCreator === ! 1 && ( b . next = ! 1 ) , this . button _group = BI . createWidget ( b . el , { type : "bi.button_group" , element : this , chooseType : 0 , items : b . items , behaviors : { } , layouts : [ { type : "bi.vertical" } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b === BI . Events . CLICK && a . fireEvent ( BI . ListLoader . EVENT _CHANGE , d ) } ) , b . next !== ! 1 && ( this . next = BI . createWidget ( BI . extend ( { type : "bi.loading_bar" } , b . next ) ) , this . next . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . _nextLoad ( ) } ) ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . next ] } ) , b . isDefaultInit && BI . isEmpty ( b . items ) && BI . nextTick ( BI . bind ( function ( ) { this . populate ( ) } , this ) ) , BI . isNotEmptyArray ( b . items ) && this . populate ( b . items ) } , hasNext : function ( ) { var a = this . options ; return BI . isNumber ( a . count ) ? this . count < a . count : ! ! a . hasNext . apply ( this , [ { times : this . times , count : this . count } ] ) } , addItems : function ( a ) { this . count += a . length , BI . isObject ( this . next ) && ( this . hasNext ( ) ? ( this . options . items = this . options . items . concat ( a ) , this . next . setLoaded ( ) ) : this . next . setEnd ( ) ) , this . button _group . addItems . apply ( this . button _group , arguments ) , this . next . element . appendTo ( this . element ) } , populate : function ( a ) { var b = this , c = this . options ; return 0 === arguments . length && BI . isFunction ( c . itemsCreator ) ? void c . itemsCreator . apply ( this , [ { times : 1 } , function ( ) { if ( 0 === arguments . length ) throw new Error ( "参数不能为空" ) ; b . populate . apply ( b , arguments ) , c . onLoaded ( ) } ] ) : ( this . options . items = a , this . times = 1 , this . count = 0 , this . count += a . length , BI . isObject ( this . next ) && ( this . hasNext ( ) ? this . next . setLoaded ( ) : this . next . invisible ( ) ) , BI . DOM . hang ( [ this . next ] ) , this . button _group . populate . apply ( this . button _group , arguments ) , void this . next . element . appendTo ( this . element ) ) } , empty : function ( ) { BI . DOM . hang ( [ this . next ] ) , this . button _group . empty ( ) , this . next . element . appendTo ( this . element ) , BI . each ( [ this . next ] , function ( a , b ) { b && b . setVisible ( ! 1 ) } ) } , setNotSelectedValue : function ( ) { this . button _group . setNotSelectedValue . apply ( this . button _group , arguments ) } , getNotSelectedValue : function ( ) { return this . button _group . getNotSelectedValue ( ) } , setValue : function ( ) { this . button _group . setValue . apply ( this . button _group , arguments ) } , getValue : function ( ) { return this . button _group . getValue . apply ( this . button _group , arguments ) } , getAllButtons : function ( ) { return this . button _group . getAllButtons ( ) } , getAllLeaves : function ( ) { return this . button _group . getAllLeaves ( ) } , getSelectedButtons : function ( ) { return this . button _group . getSelectedButtons ( ) } , getNotSelectedButtons : function ( ) { return this . button _group . getNotSelectedButtons ( ) } , getIndexByValue : function ( a ) { return this . button _group . getIndexByValue ( a ) } , getNodeById : function ( a ) { return this . button _group . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . button _group . getNodeByValue ( a ) } } ) , BI . ListLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.list_loader" , BI . ListLoader ) , BI . SortList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SortList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-sort-list" , isDefaultInit : ! 0 , el : { type : "bi.button_group" } , items : [ ] , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn , count : ! 1 , next : { } , hasNext : BI . emptyFn } ) } , _init : function ( ) { BI . SortList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . loader = BI . createWidget ( { type : "bi.list_loader" , element : this , isDefaultInit : b . isDefaultInit , el : b . el , items : this . _formatItems ( b . items ) , itemsCreator : function ( c , d ) { b . itemsCreator ( c , function ( b ) { d ( a . _formatItems ( b ) ) } ) } , onLoaded : b . onLoaded , count : b . count , next : b . next , hasNext : b . hasNext
BI . DynamicSummaryTreeTable . superclass . setHeight . apply ( this , arguments ) , this . table . setHeight ( a ) } , setColumnSize : function ( a ) { this . options . columnSize = a } , getColumnSize : function ( ) { return this . options . columnSize } , 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 ( a ) { switch ( BI . DynamicSummaryTreeTable . superclass . attr . apply ( this , arguments ) , a ) { case "minColumnSize" : case "maxColumnSize" : return } 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 . setColumnSize ( f . columnSize ) , this . table . attr ( "minColumnSize" , f . minColumnSize ) , this . table . attr ( "maxColumnSize" , f . maxColumnSize ) , this . table . populate ( f . items , f . header ) } , destroy : function ( ) { this . table . destroy ( ) , BI . DynamicSummaryTreeTable . superclass . destroy . apply ( this , arguments ) } } ) , BI . extend ( BI . DynamicSummaryTreeTable , { formatHorizontalItems : function ( a , b , c , d ) { function e ( a , g ) { var h ; if ( BI . isArray ( g . children ) ) { if ( BI . each ( g . children , function ( b , c ) { var d ; a != - 1 ? ( d = a . slice ( ) , d . push ( g ) ) : d = [ ] , e ( d , c ) } ) , a != - 1 ? ( h = a . slice ( ) , h . push ( g ) ) : h = [ ] , ( a == - 1 || g . children . length > 1 ) && BI . isNotEmptyArray ( g . values ) ) { for ( var i = { text : BI . i18nText ( "BI-Summary_Values" ) , type : "bi.table_style_cell" , styleGetter : function ( ) { return d ( a === - 1 ) } } , j = h . length ; j < b ; j ++ ) h . push ( i ) ; if ( c || ( h = h . concat ( g . values ) ) , h . length > 0 ) if ( c ) for ( var k = 0 , l = g . values . length ; k < l ; k ++ ) f . push ( h ) ; else f . push ( h ) } } else { if ( a != - 1 ) { h = a . slice ( ) ; for ( var j = h . length ; j < b ; j ++ ) h . push ( g ) } else h = [ ] ; if ( ! c && BI . isArray ( g . values ) && ( h = h . concat ( g . values ) ) , c && BI . isArray ( g . values ) ) for ( var j = 0 , m = g . values . length ; j < m - 1 ; j ++ ) h . length > 0 && f . push ( h ) ; h . length > 0 && f . push ( h ) } } var f = [ ] ; return BI . each ( a , function ( a , b ) { e ( - 1 , b ) } ) , BI . each ( f , function ( a , c ) { for ( var d = BI . last ( c ) , e = c . length ; e < b ; e ++ ) c . push ( d ) } ) , f } , formatSummaryItems : function ( a , b , c , d ) { function e ( a ) { if ( BI . isArray ( a . children ) ) { if ( BI . each ( a . children , function ( a , b ) { e ( b ) } ) , BI . isNotEmptyArray ( a . values ) ) { if ( 1 === a . children . length ) for ( var b = 0 ; b < a . values . length ; b ++ ) f . push ( g + b + d ) ; g += a . values . length } } else a . values && a . values . length > 1 ? g += a . values . length : g ++ } var f = [ ] , g = 0 ; if ( BI . each ( c , function ( a , b ) { e ( b ) } ) , f . length > 0 ) { var h = [ ] , i = [ ] ; BI . each ( b , function ( a , b ) { var c = b . slice ( ) ; BI . removeAt ( c , f ) , h . push ( c ) } ) , BI . each ( a , function ( a , b ) { var c = b . slice ( ) ; BI . removeAt ( c , f ) , i . push ( c ) } ) , b = h , a = i } return { items : a , header : b , deletedCols : f } } } ) , BI . shortcut ( "bi.dynamic_summary_tree_table" , BI . DynamicSummaryTreeTable ) , BI . LayerTreeTableCell = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . LayerTreeTableCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-layer-tree-table-cell" , layer : 0 , text : "" } ) } , _init : function ( ) { BI . LayerTreeTableCell . superclass . _init . apply ( this , arguments ) ; var a = this . options ; BI . createWidget ( { type : "bi.label" , element : this . element , textAlign : "left" , whiteSpace : "nowrap" , height : a . height , text : a . text , value : a . value , lgap : 5 + 30 * a . layer , rgap : 5 } ) } } ) , BI . shortcut ( "bi.layer_tree_table_cell" , BI . LayerTreeTableCell ) , BI . LayerTreeTable = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . LayerTreeTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-layer-tree-table" , el : { type : "bi.resizable_table" } , isNeedResize : ! 1 , isResizeAdapt : ! 0 , isNeedFreeze : ! 1 , freezeCols : [ ] , isNeedMerge : ! 0 , mergeCols : [ ] , mergeRule : BI . emptyFn , columnSize : [ ] , minColumnSize : [ ] , maxColumnSize : [ ] , headerRowSize : 25 , rowSize : 25 , regionColumnSize : [ ] , rowHeaderCreator : null , headerCellStyleGetter : BI . emptyFn , summaryCellStyleGetter : BI . emptyFn , sequenceCellStyleGet
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 . renderedCells [ g ] . _height && ( a . renderedCells [ g ] . _height = e [ f ] . height , a . renderedCells [ g ] . el . setHeight ( e [ f ] . height ) ) , e [ f ] . top !== a . renderedCells [ g ] . top && ( a . renderedCells [ g ] . top = e [ f ] . top , a . renderedCells [ g ] . el . element . css ( "top" , e [ f ] . top + "px" ) ) , c . push ( a . renderedCells [ g ] ) ; else { var h = BI . createWidget ( B
var c = this . _calculateXY ( a ) ; this . _stroke ( a , c ) } , _isNeedAdjust : function ( ) { var a = this . options ; return a . direction === BI . Direction . Top && a . align === BI . VerticalAlign . Bottom || a . direction === BI . Direction . Bottom && a . align === BI . VerticalAlign . Top || a . direction === BI . Direction . Left && a . align === BI . HorizontalAlign . Right || a . direction === BI . Direction . Right && a . align === BI . HorizontalAlign . Left } , setValue : function ( a ) { } , getValue : function ( ) { } , _transformToTreeFormat : function ( a ) { var b , c ; if ( ! a ) return [ ] ; if ( BI . isArray ( a ) ) { var d = [ ] , e = [ ] ; for ( b = 0 , c = a . length ; b < c ; b ++ ) e [ a [ b ] . id ] = a [ b ] ; for ( b = 0 , c = a . length ; b < c ; b ++ ) e [ a [ b ] . pId ] && a [ b ] . id != a [ b ] . pId ? ( e [ a [ b ] . pId ] . children || ( e [ a [ b ] . pId ] . children = [ ] ) , e [ a [ b ] . pId ] . children . push ( a [ b ] ) ) : d . push ( a [ b ] ) ; return d } return [ a ] } , populate : function ( a ) { var b = this . options ; b . items = a || [ ] , this . empty ( ) , a = this . _transformToTreeFormat ( b . items ) , this . tree = new BI . Tree , this . tree . initTree ( a ) , this . svg = BI . createWidget ( { type : "bi.svg" } ) ; var c = this . _stratification ( ) ; if ( this . _isNeedAdjust ( ) ) { var d = this . _translate ( c ) ; d = this . _adjust ( d ) , this . _createBranches ( d ) } else { var d = this . _fill ( c ) ; this . _createBranches ( d ) } var e = BI . createWidget ( { type : "bi.layout" , width : this . _isVertical ( ) ? this . _calculateWidth ( ) : this . _calculateHeight ( ) , height : this . _isVertical ( ) ? this . _calculateHeight ( ) : this . _calculateWidth ( ) } ) ; BI . createWidget ( { type : "bi.absolute" , element : e , items : [ { el : this . svg , top : 0 , left : 0 , right : 0 , bottom : 0 } ] } ) , a = this . _isVertical ( ) ? [ { type : "bi.handstand_branch_tree" , expander : { direction : b . direction } , el : { layouts : [ { type : "bi.horizontal_adapt" , verticalAlign : b . align } ] } , items : a } ] : [ { type : "bi.branch_tree" , expander : { direction : b . direction } , el : { layouts : [ { type : "bi.vertical" } , { type : b . align === BI . HorizontalAlign . Left ? "bi.left" : "bi.right" } ] } , items : a } ] , BI . createWidget ( { type : "bi.adaptive" , element : e , items : a } ) , BI . createWidget ( { type : "bi.center_adapt" , scrollable : ! 0 , element : this , items : [ e ] } ) } } ) , BI . BranchRelation . EVENT _CHANGE = "BranchRelation.EVENT_CHANGE" , BI . shortcut ( "bi.branch_relation" , BI . BranchRelation ) , BI . MonthDateCombo = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . MonthDateCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-month-combo" , height : 25 } ) } , _init : function ( ) { BI . MonthDateCombo . superclass . _init . apply ( this , arguments ) ; var a = this ; this . options ; this . trigger = BI . createWidget ( { type : "bi.date_triangle_trigger" } ) , this . popup = BI . createWidget ( { type : "bi.month_popup" } ) , this . popup . on ( BI . YearPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , offsetStyle : "center" , element : this , isNeedAdjustHeight : ! 1 , isNeedAdjustWidth : ! 1 , el : this . trigger , popup : { minWidth : 85 , stopPropagation : ! 1 , el : this . popup } } ) , this . combo . on ( BI . Combo . EVENT _CHANGE , function ( ) { a . combo . hideView ( ) , a . fireEvent ( BI . MonthDateCombo . EVENT _CHANGE ) } ) } , setValue : function ( a ) { this . trigger . setValue ( a + 1 ) , this . popup . setValue ( a ) } , getValue : function ( ) { return this . popup . getValue ( ) } } ) , BI . MonthDateCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.month_date_combo" , BI . MonthDateCombo ) , BI . YearDateCombo = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . YearDateCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-year-combo" , min : "1900-01-01" , max : "2099-12-31" , height : 25 } ) } , _init : function ( ) { BI . YearDateCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.date_triangle_trigger" } ) , this . popup = BI . createWidget ( { type : "bi.year_popup" , min : b . min , max : b . max } ) , this . popup . on ( BI . YearPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . combo . hideView ( ) , a . fireEvent ( BI . YearDateCombo . EVENT _CHANGE ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , offsetStyle : "center" , element : this , isNeedAdjustHeight : ! 1 , isNeedAdjustWidth : ! 1 , el : this . trigger , popup : { minWidth : 85 , stopPropagation : ! 1 , el : this . popup } } ) , this . combo . on ( BI . Combo . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . YearDateCombo . EVENT _CHANGE ) } ) } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( a ) } , getValue : function ( ) { return this . popup . getValue ( ) } } ) , BI . YearDateCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.year_date_combo" , BI . YearDateCombo ) , BI . DatePicker = BI . inherit ( BI .
BI . each ( this . arrows , function ( b , c ) { BI . each ( c , function ( b , c ) { BI . each ( c , function ( b , c ) { c . attr ( { fill : a , stroke : a } ) } ) } ) } ) } , _drawOneArrow : function ( a , b ) { var c = this . _const . lineColor , d = ( this . _const . selectLineColor , this . pathChooser . svg ) , e = "" ; switch ( b ) { case 0 : e = "M" + a . x + "," + a . y + "L" + ( a . x - 3 ) + "," + ( a . y + 5 ) + "L" + ( a . x + 3 ) + "," + ( a . y + 5 ) + "L" + a . x + "," + a . y ; break ; case 1 : e = "M" + a . x + "," + a . y + "L" + ( a . x - 5 ) + "," + ( a . y - 3 ) + "L" + ( a . x - 5 ) + "," + ( a . y + 3 ) + "L" + a . x + "," + a . y ; break ; case 2 : e = "M" + a . x + "," + a . y + "L" + ( a . x - 3 ) + "," + ( a . y - 5 ) + "L" + ( a . x + 3 ) + "," + ( a . y - 5 ) + "L" + a . x + "," + a . y ; break ; case 3 : e = "M" + a . x + "," + a . y + "L" + ( a . x + 5 ) + "," + ( a . y - 3 ) + "L" + ( a . x + 5 ) + "," + ( a . y + 3 ) + "L" + a . x + "," + a . y } return d . path ( e ) . attr ( { fill : c , stroke : c } ) } , _drawArrows : function ( ) { function a ( a , b ) { return b === - 1 ? 100 * ( a + 1 ) - 20 : 100 * a + 20 } function b ( a , b ) { var c = BI . find ( a , function ( c , d ) { if ( c > 0 && a [ c - 1 ] . x < b && a [ c ] . x > b ) return ! 0 } ) ; return c . y } var c = this , d = ( this . options , this . pathChooser . routes ) , e = this . pathChooser . pathes , f = this . pathChooser . store ; this . arrows = { } , BI . each ( d , function ( d , g ) { c . arrows [ d ] = [ ] , BI . each ( g , function ( g , h ) { c . arrows [ d ] [ g ] = [ ] ; var i = e [ d ] [ g ] ; BI . each ( i , function ( a , b ) { if ( a > 0 && a < i . length - 1 ) { var e ; b . y === i [ a - 1 ] . y ? i [ a + 1 ] . y != b . y && ( f [ h [ h . length - 2 ] ] . direction === - 1 ? a - 1 > 0 && ( e = c . _drawOneArrow ( i [ a - 1 ] , 3 ) ) : e = c . _drawOneArrow ( i [ a ] , 1 ) ) : b . x === i [ a - 1 ] . x && ( e = b . y > i [ a - 1 ] . y ? f [ BI . first ( h ) ] . direction === - 1 ? c . _drawOneArrow ( i [ a - 1 ] , 0 ) : c . _drawOneArrow ( b , 2 ) : f [ h [ h . length - 2 ] ] . direction === - 1 ? c . _drawOneArrow ( i [ a - 1 ] , 2 ) : c . _drawOneArrow ( b , 0 ) ) , e && c . arrows [ d ] [ g ] . push ( e ) } } ) , BI . each ( h , function ( e , j ) { if ( 0 !== e ) { var k , l = h [ e - 1 ] ; if ( f [ l ] . direction === - 1 ) { var m = c . pathChooser . getRegionIndexById ( l ) , n = a ( m , - 1 ) , o = b ( i , n ) ; k = c . _drawOneArrow ( { x : n , y : o } , 3 ) } else { var m = c . pathChooser . getRegionIndexById ( j ) , n = a ( m ) , o = b ( i , n ) ; k = c . _drawOneArrow ( { x : n , y : o } , 1 ) } k && c . arrows [ d ] [ g ] . push ( k ) } } ) } ) } ) } , _setValue : function ( a , b ) { var c = this , d = this . _const . lineColor , e = this . _const . selectLineColor , f = this . pathChooser . routes , g = this . pathChooser . start , h = [ a ] ; g . contains ( a ) && ( h = g ) , BI . each ( h , function ( a , b ) { BI . each ( c . arrows [ b ] , function ( a , b ) { BI . each ( b , function ( a , b ) { b . attr ( { fill : d , stroke : d } ) . toFront ( ) } ) } ) } ) , BI . each ( this . arrows [ a ] [ b ] , function ( a , b ) { b . attr ( { fill : e , stroke : e } ) . toFront ( ) } ) ; for ( var i = BI . last ( f [ a ] [ b ] ) ; i && f [ i ] && 1 === f [ i ] . length ; ) BI . each ( c . arrows [ i ] [ 0 ] , function ( a , b ) { b . attr ( { fill : e , stroke : e } ) . toFront ( ) } ) , i = BI . last ( f [ i ] [ 0 ] ) } , setValue : function ( a ) { this . pathChooser . setValue ( a ) , this . _unselectAllArrows ( ) ; var b = this . pathChooser . routes , c = BI . keys ( b ) , d = this , e = [ ] , f = [ ] ; BI . each ( a , function ( a , b ) { BI . contains ( c , b ) && f . length > 0 && ( f . push ( b ) , e . push ( f ) , f = [ ] ) , f . push ( b ) } ) , f . length > 0 && e . push ( f ) , BI . each ( e , function ( a , c ) { var e = c [ 0 ] , f = BI . findIndex ( b [ e ] , function ( a , b ) { if ( BI . isEqual ( c , b ) ) return ! 0 } ) ; f >= 0 && d . _setValue ( e , f ) } ) } , getValue : function ( ) { return this . pathChooser . getValue ( ) } , populate : function ( a ) { this . pathChooser . populate ( a ) , this . _drawArrows ( ) } } ) , BI . DirectionPathChooser . EVENT _CHANGE = "DirectionPathChooser.EVENT_CHANGE" , BI . shortcut ( "bi.direction_path_chooser" , BI . DirectionPathChooser ) , BI . DownListCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DownListCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-down-list-combo" , invalid : ! 1 , height : 25 , items : [ ] , adjustLength : 0 , direction : "bottom" , trigger : "click" , 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 } ) , 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 , adjustLength : b . adjustLength , direction : b . direction , el : BI . createWidget ( b . el , { type : "bi.icon_trigger" , extraCls : b . iconCls ? b . iconCls : "pull-down-font" , width : b . width , height : b . height } ) , popup : { el : this . popupview , stopPropagation : ! 0 , maxHeight : 1e3 } } ) , this . downlistcombo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . DownListCombo . EVENT _BEFORE _POP
center : e , right : f , top : g , middle : h , bottom : i } } , _getRegionClientPosition : function ( a ) { var b = this . getRegionByName ( a ) , c = this . arrangement . _getScrollOffset ( ) ; return { top : b . top - c . top , left : b . left - c . left , width : b . width , height : b . height , id : b . id } } , _vAlign : function ( a , b ) { var c , d = this , e = this . _positionAt ( a , b ) , f = [ ] ; if ( e . left . length > 0 ) c = this . _getRegionClientPosition ( e . left [ 0 ] . id ) . left ; else if ( e . right . length > 0 ) { var g = this . _getRegionClientPosition ( e . right [ 0 ] . id ) ; c = g . left + g . width } var h = e . left . concat ( e . right ) ; return BI . each ( h , function ( b , e ) { var g = d . _getRegionClientPosition ( e . id ) ; if ( d . _isEqual ( g . left , c ) || d . _isEqual ( g . left + g . width , c ) ) { var h = { top : g . top + g . height / 2 , left : c } ; f . push ( { id : e . id , start : h , end : { left : c , top : a . top } } ) } } ) , f } , _leftAlign : function ( a , b , c ) { return this . _vAlign ( { left : a . left , top : a . top + b . height / 2 } , c ) } , _rightAlign : function ( a , b , c ) { return this . _vAlign ( { left : a . left + b . width , top : a . top + b . height / 2 } , c ) } , _hAlign : function ( a , b ) { var c , d = this , e = this . _positionAt ( a , b ) , f = [ ] ; if ( e . top . length > 0 ) { var g = this . _getRegionClientPosition ( e . top [ 0 ] . id ) ; c = g . top } else if ( e . bottom . length > 0 ) { var g = this . _getRegionClientPosition ( e . bottom [ 0 ] . id ) ; c = g . top + g . height } var h = e . top . concat ( e . bottom ) ; return BI . each ( h , function ( b , e ) { var g = d . _getRegionClientPosition ( e . id ) ; if ( d . _isEqual ( g . top , c ) || d . _isEqual ( g . top + g . height , c ) ) { var h = { top : c , left : g . left + g . width / 2 } ; f . push ( { id : g . id , start : h , end : { left : a . left , top : c } } ) } } ) , f } , _topAlign : function ( a , b , c ) { return this . _hAlign ( { left : a . left + b . width / 2 , top : a . top } , c ) } , _bottomAlign : function ( a , b , c ) { return this . _hAlign ( { left : a . left + b . width / 2 , top : a . top + b . height } , c ) } , _centerAlign : function ( a , b , c ) { var d , e = this , f = this . _positionAt ( { left : a . left + b . width / 2 , top : a . top + b . height / 2 } , c ) , g = [ ] ; if ( f . center . length > 0 ) { var h = this . _getRegionClientPosition ( f . center [ 0 ] . id ) ; d = h . left + h . width / 2 } return BI . each ( f . center , function ( c , f ) { var h = e . _getRegionClientPosition ( f . id ) ; if ( e . _isEqual ( h . left + h . width / 2 , d ) ) { var i = { top : h . top + h . height / 2 , left : h . left + h . width / 2 } ; g . push ( { id : h . id , start : i , end : { left : d , top : a . top + b . height / 2 } } ) } } ) , g } , _middleAlign : function ( a , b , c ) { var d , e = this , f = this . _positionAt ( { left : a . left + b . width / 2 , top : a . top + b . height / 2 } , c ) , g = [ ] ; if ( f . middle . length > 0 ) { var h = this . _getRegionClientPosition ( f . middle [ 0 ] . id ) ; d = h . top + h . height / 2 } return BI . each ( f . middle , function ( c , f ) { var h = e . _getRegionClientPosition ( f . id ) ; if ( e . _isEqual ( h . top + h . height / 2 , d ) ) { var i = { top : h . top + h . height / 2 , left : h . left + h . width / 2 } ; g . push ( { id : h . id , start : i , end : { left : a . left + b . width / 2 , top : d } } ) } } ) , g } , _drawOneTag : function ( a , b ) { var c = BI . createWidget ( { type : "bi.icon_button" , width : 13 , height : 13 , cls : "drag-tag-font interactive-arrangement-dragtag-icon" } ) , d = BI . createWidget ( { type : "bi.icon_button" , width : 13 , height : 13 , cls : "drag-tag-font interactive-arrangement-dragtag-icon" } ) ; if ( this . _isEqual ( a . left , b . left ) ) var e = BI . createWidget ( { type : "bi.layout" , cls : "interactive-arrangement-dragtag-line" , width : 1 , height : Math . abs ( a . top - b . top ) } ) ; else var e = BI . createWidget ( { type : "bi.layout" , cls : "interactive-arrangement-dragtag-line" , height : 1 , width : Math . abs ( a . left - b . left ) } ) ; BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : c , left : a . left - 6 , top : a . top - 7 } , { el : d , left : b . left - 6 , top : b . top - 7 } , { el : e , left : Math . min ( a . left , b . left ) , top : Math . min ( a . top , b . top ) } ] } ) , this . tags . push ( c ) , this . tags . push ( d ) , this . tags . push ( e ) } , stopDraw : function ( ) { BI . each ( this . tags , function ( a , b ) { b . destroy ( ) } ) , this . tags = [ ] } , _getRegionExcept : function ( a , b ) { var c = [ ] ; return BI . each ( b || this . getAllRegions ( ) , function ( b , d ) { a && d . id === a || c . push ( d ) } ) , c } , getClientWidth : function ( ) { return this . arrangement . getClientWidth ( ) } , getClientHeight : function ( ) { return this . arrangement . getClientHeight ( ) } , getPosition : function ( a , b , c ) { var d , e = this . getAllRegions ( ) ; a && ( d = this . _getRegionClientPosition ( a ) ) ; var f = this . _getRegionExcept ( a , e ) ; b = b || { left : d . left , top : d . top } , c = c || { width : d . width , height : d . height } ; var g = this . _leftAlign ( b , c , f ) , h = this . _rightAlign ( b , c , f ) , i = this . _topAlign ( b , c , f , f ) , j = this . _bottomAlign ( b , c , f ) , k = this . _centerAlign ( b , c , f ) , l = this . _middleAlign ( b , c , f ) ; return BI . each ( k , function ( a , d ) { b . left = d . end . left - c . width / 2 } ) , BI . each ( h , function ( a , d ) { b . left = d . end . left - c . width } ) , BI . each ( g , function ( a , c ) { b . left = c . end . left } ) , BI . each ( l , function ( a , d ) { b . top = d
} , setOpened : function ( a ) { BI . MultiLayerSingleTreeMidPlusGroupNode . superclass . setOpened . apply ( this , arguments ) , BI . isNotNull ( this . node ) && this . node . setOpened ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_mid_plus_group_node" , BI . MultiLayerSingleTreeMidPlusGroupNode ) , BI . MultiLayerSingleTreeFirstTreeLeafItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSingleTreeFirstTreeLeafItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multilayer-single-tree-first-tree-leaf-item bi-list-item-active" , logic : { dynamic : ! 1 } , layer : 0 , 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
} , setValue : function ( a ) { this . setState ( a ) , this . searcher . setValue ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } , populate : function ( a ) { this . searcher . populate . apply ( this . searcher , arguments ) } } ) , BI . MultiSelectSearcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . MultiSelectSearcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiSelectSearcher . EVENT _START = "EVENT_START" , BI . MultiSelectSearcher . EVENT _STOP = "EVENT_STOP" , BI . MultiSelectSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . MultiSelectSearcher . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . shortcut ( "bi.multi_select_searcher" , BI . MultiSelectSearcher ) , BI . MultiSelectCheckSelectedSwitcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectCheckSelectedSwitcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-check-selected-switcher" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , el : { } , popup : { } , adapter : null , masker : { } } ) } , _init : function ( ) { BI . MultiSelectCheckSelectedSwitcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . button = BI . createWidget ( b . el , { type : "bi.multi_select_check_selected_button" , itemsCreator : b . itemsCreator } ) , this . button . on ( BI . Events . VIEW , function ( ) { a . fireEvent ( BI . Events . VIEW , arguments ) } ) , this . switcher = BI . createWidget ( { type : "bi.switcher" , toggle : ! 1 , element : this , el : this . button , popup : BI . extend ( { type : "bi.multi_select_check_pane" , valueFormatter : b . valueFormatter , itemsCreator : b . itemsCreator , onClickContinueSelect : function ( ) { a . switcher . hideView ( ) } } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . switcher . on ( BI . Switcher . EVENT _TRIGGER _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _CHANGE ) } ) , this . switcher . on ( BI . Switcher . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedSwitcher . EVENT _BEFORE _POPUPVIEW ) } ) , this . switcher . on ( BI . Switcher . EVENT _AFTER _POPUPVIEW , function ( ) { var a = this ; BI . nextTick ( function ( ) { a . populate ( ) } ) } ) , this . switcher . element . click ( function ( a ) { a . stopPropagation ( ) } ) } , adjustView : function ( ) { this . switcher . adjustView ( ) } , hideView : function ( ) { this . switcher . empty ( ) , this . switcher . hideView ( ) } , setAdapter : function ( a ) { this . switcher . setAdapter ( a ) } , setValue : function ( a ) { this . switcher . setValue ( a ) } , setButtonChecked : function ( a ) { this . button . setValue ( a ) } , getValue : function ( ) { } , populate : function ( a ) { this . switcher . populate . apply ( this . switcher , arguments ) } } ) , BI . MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _CHANGE = "MultiSelectCheckSelectedSwitcher.EVENT_TRIGGER_CHANGE" , BI . MultiSelectCheckSelectedSwitcher . EVENT _BEFORE _POPUPVIEW = "MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.multi_select_check_selected_switcher" , BI . MultiSelectCheckSelectedSwitcher ) , BI . MultiSelectList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-list" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . storeValue = { } ; var c = function ( ) { BI . isKey ( a . _startValue ) && a . storeValue . value [ a . storeValue . type === BI . Selection . All ? "remove" : "pushDistinct" ] ( a . _startValue ) } ; this . adapter = BI . createWidget ( { type : "bi.multi_select_loader" , cls : "popup-multi-select-list bi-border-left bi-border-right bi-border-bottom" , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , el : { height : "" } } ) , this . adapter . on ( BI . MultiSelectLoader . EVENT _CHANGE , function ( ) { a . storeValue = this . getValue ( ) , a . _adjust ( function ( ) { c ( ) , a . fireEvent ( BI . MultiSelectList . EVENT _CHANGE ) } ) } ) , this . searcherPane = BI . createWidget ( { type : "bi.multi_select_search_pane" , cls : "bi-border-left bi-border-right bi-border-bottom" , valueFormatter : b . valueFormatter , keywordGetter : function ( ) { return a . trigger . getKeyword ( ) } , itemsCreator : function ( c , d ) { c . keyword = a . trigger . getKeyword ( ) , this . setKeyword ( c . keyword ) , b . itemsCreator ( c , d ) } } ) , this . searcherPane . setVisible ( ! 1 ) , this . trigger = BI . createWidget ( { type : "bi.searcher" , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( a , b ) { b ( ) } , adapter : this . adapter , popup : this . searcherPane , heigh
offsetStyle : "center" } ) ; break ; case c . numberError : BI . Bubbles . show ( c . numberError , BI . i18nText ( "BI-Numerical_Interval_Number_Value" ) , b , { offsetStyle : "center" } ) ; break ; case c . signalError : BI . Bubbles . show ( c . signalError , BI . i18nText ( "BI-Numerical_Interval_Signal_Value" ) , b , { offsetStyle : "center" } ) } b . fireEvent ( BI . NumericalInterval . EVENT _CHANGE ) } ) } , _setComboValueChangedEvent : function ( a ) { var b = this , c = this . constants ; a . on ( BI . IconCombo . EVENT _CHANGE , function ( ) { switch ( b . _checkValidation ( ) ) { case c . typeError : b . _setTitle ( BI . i18nText ( "BI-Numerical_Interval_Input_Data" ) ) , b . fireEvent ( BI . NumericalInterval . EVENT _ERROR ) ; break ; case c . numberError : b . _setTitle ( BI . i18nText ( "BI-Numerical_Interval_Number_Value" ) ) , b . fireEvent ( BI . NumericalInterval . EVENT _ERROR ) ; break ; case c . signalError : b . _setTitle ( BI . i18nText ( "BI-Numerical_Interval_Signal_Value" ) ) , b . fireEvent ( BI . NumericalInterval . EVENT _ERROR ) ; break ; default : b . fireEvent ( BI . NumericalInterval . EVENT _CHANGE ) , b . fireEvent ( BI . NumericalInterval . EVENT _VALID ) } } ) } , isStateValid : function ( ) { return "valid" === this . options . validation } , setMinEnable : function ( a ) { this . smallEditor . setEnable ( a ) } , setCloseMinEnable : function ( a ) { this . smallCombo . setEnable ( a ) } , setMaxEnable : function ( a ) { this . bigEditor . setEnable ( a ) } , setCloseMaxEnable : function ( a ) { this . bigCombo . setEnable ( a ) } , showNumTip : function ( ) { this . smallTip . setVisible ( ! 0 ) , this . bigTip . setVisible ( ! 0 ) } , hideNumTip : function ( ) { this . smallTip . setVisible ( ! 1 ) , this . bigTip . setVisible ( ! 1 ) } , setNumTip : function ( a ) { this . smallTip . setText ( a ) , this . bigTip . setText ( a ) } , getNumTip : function ( ) { return this . smallTip . getText ( ) } , setValue : function ( a ) { a = a || { } ; var b , c = this ; ( BI . isNumeric ( a . min ) || BI . isEmptyString ( a . min ) ) && c . smallEditor . setValue ( a . min ) , BI . isNotNull ( a . min ) || c . smallEditor . setValue ( "" ) , ( BI . isNumeric ( a . max ) || BI . isEmptyString ( a . max ) ) && c . bigEditor . setValue ( a . max ) , BI . isNotNull ( a . max ) || c . bigEditor . setValue ( "" ) , BI . isNull ( a . closemin ) || ( b = a . closemin === ! 0 ? 1 : 0 , c . smallCombo . setValue ( b ) ) , BI . isNull ( a . closemax ) || ( b = a . closemax === ! 0 ? 1 : 0 , c . bigCombo . setValue ( b ) ) } , getValue : function ( ) { var a = this , b = { } , c = a . smallCombo . getValue ( ) , d = a . bigCombo . getValue ( ) ; return b . min = a . smallEditor . getValue ( ) , b . max = a . bigEditor . getValue ( ) , 0 === c [ 0 ] ? b . closemin = ! 1 : b . closemin = ! 0 , 0 === d [ 0 ] ? b . closemax = ! 1 : b . closemax = ! 0 , b } } ) , BI . NumericalInterval . EVENT _CHANGE = "EVENT_CHANGE" , BI . NumericalInterval . EVENT _VALID = "EVENT_VALID" , BI . NumericalInterval . EVENT _ERROR = "EVENT_ERROR" , BI . shortcut ( "bi.numerical_interval" , BI . NumericalInterval ) , BI . PageTableCell = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . PageTableCell . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-page-table-cell" , text : "" , title : "" } ) } , _init : function ( ) { BI . PageTableCell . superclass . _init . apply ( this , arguments ) ; BI . createWidget ( { type : "bi.label" , element : this , textAlign : "left" , whiteSpace : "nowrap" , height : this . options . height , text : this . options . text , title : this . options . title , value : this . options . value , lgap : 5 , rgap : 5 } ) ; BI . isNotNull ( this . options . styles ) && BI . isObject ( this . options . styles ) && this . element . css ( this . options . styles ) } } ) , BI . shortcut ( "bi.page_table_cell" , BI . PageTableCell ) , BI . PageTable = BI . inherit ( BI . Widget , { _const : { scrollWidth : 18 , minScrollWidth : 100 } , _defaultConfig : function ( ) { return BI . extend ( BI . PageTable . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-page-table" , el : { type : "bi.sequence_table" } , pager : { horizontal : { pages : ! 1 , curr : 1 , hasPrev : BI . emptyFn , hasNext : BI . emptyFn , firstPage : 1 , lastPage : BI . emptyFn } , vertical : { pages : ! 1 , curr : 1 , hasPrev : BI . emptyFn , hasNext : BI . emptyFn , firstPage : 1 , lastPage : BI . emptyFn } } , itemsCreator : BI . emptyFn , isNeedFreeze : ! 1 , freezeCols : [ ] , isNeedMerge : ! 1 , 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 : [ ] } ) } , _init : function ( ) { BI . PageTable . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . hCurr = 1 , this . vCurr = 1 , this . table = BI . createWidget ( b . el , { type : "bi.sequence_table" , width : b . width , height : b . height && b . height - 30 , isNeedResize : ! 0 , isResizeAdapt : ! 1 ,
var a = this , b = this . options ; this . region = BI . createWidget ( { type : "bi.relation_view_region" , value : b . value , header : b . header , text : b . text , handler : b . handler , items : b . items , belongPackage : b . belongPackage } ) , this . region . on ( BI . RelationViewRegion . EVENT _PREVIEW , function ( b ) { a . fireEvent ( BI . RelationViewRegionContainer . EVENT _PREVIEW , b ) } ) , this . region . on ( BI . RelationViewRegion . EVENT _HOVER _IN , function ( b ) { a . fireEvent ( BI . RelationViewRegionContainer . EVENT _HOVER _IN , b ) } ) , this . region . on ( BI . RelationViewRegion . EVENT _HOVER _OUT , function ( b ) { a . fireEvent ( BI . RelationViewRegionContainer . EVENT _HOVER _OUT , b ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . region ] , width : this . region . getWidth ( ) , height : this . region . getHeight ( ) } ) } , doRedMark : function ( ) { this . region . doRedMark . apply ( this . region , arguments ) } , unRedMark : function ( ) { this . region . unRedMark . apply ( this . region , arguments ) } , getWidth : function ( ) { return this . region . getWidth ( ) } , getHeight : function ( ) { return this . region . getHeight ( ) } , getTopLeftPosition : function ( ) { return this . region . getTopLeftPosition ( ) } , getTopRightPosition : function ( ) { return this . region . getTopRightPosition ( ) } , getBottomPosition : function ( ) { return this . region . getBottomPosition ( ) } , getLeftPosition : function ( ) { return this . region . getLeftPosition ( ) } , getRightPosition : function ( ) { return this . region . getRightPosition ( ) } , setValue : function ( a ) { this . region . setValue ( a ) } , toggleRegion : function ( a ) { a === ! 0 ? this . region . element . fadeIn ( ) : this . region . element . fadeOut ( ) } , setPreviewSelected : function ( a ) { this . region . setPreviewSelected ( a ) } } ) , BI . RelationViewRegionContainer . EVENT _HOVER _IN = "RelationViewRegion.EVENT_HOVER_IN" , BI . RelationViewRegionContainer . EVENT _HOVER _OUT = "RelationViewRegion.EVENT_HOVER_OUT" , BI . RelationViewRegionContainer . EVENT _PREVIEW = "RelationViewRegion.EVENT_PREVIEW" , BI . shortcut ( "bi.relation_view_region_container" , BI . RelationViewRegionContainer ) , BI . RelationViewRegion = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . RelationViewRegion . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-relation-view-region cursor-pointer" , width : 150 , text : "" , value : "" , header : "" , items : [ ] , belongPackage : ! 0 } ) } , _init : function ( ) { BI . RelationViewRegion . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . preview = BI . createWidget ( { type : "bi.icon_button" , cls : "relation-table-preview-font" , width : 25 , height : 25 , stopPropagation : ! 0 } ) , this . preview . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . RelationViewRegion . EVENT _PREVIEW , this . isSelected ( ) ) } ) , this . title = BI . createWidget ( { type : "bi.label" , height : 25 , width : 70 , text : b . text , value : b . value , textAlign : "left" } ) , BI . isKey ( b . header ) && this . title . setTitle ( b . header , { container : "body" } ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , items : this . _createItems ( b . items ) , layouts : [ { type : "bi.vertical" } ] } ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ { type : "bi.vertical" , cls : "relation-view-region-container bi-card bi-border " + ( b . belongPackage ? "" : "other-package" ) , items : [ { type : "bi.vertical_adapt" , cls : "relation-view-region-title bi-border-bottom" , items : [ this . preview , this . title ] } , this . button _group ] } ] , hgap : 25 , vgap : 20 } ) } , _createItems : function ( a ) { var b = this ; return BI . map ( a , function ( a , c ) { return BI . extend ( c , { type : "bi.relation_view_item" , hoverIn : function ( ) { b . setValue ( c . value ) , b . fireEvent ( BI . RelationViewRegion . EVENT _HOVER _IN , c . value ) } , hoverOut : function ( ) { b . setValue ( [ ] ) , b . fireEvent ( BI . RelationViewRegion . EVENT _HOVER _OUT , c . value ) } } ) } ) } , doRedMark : function ( ) { this . title . doRedMark . apply ( this . title , arguments ) } , unRedMark : function ( ) { this . title . unRedMark . apply ( this . title , arguments ) } , getWidth : function ( ) { return this . options . width } , getHeight : function ( ) { return 25 * this . button _group . getAllButtons ( ) . length + 25 + 40 + 3 } , getTopLeftPosition : function ( ) { return { x : 35 , y : 20 } } , getTopRightPosition : function ( ) { return { x : this . getWidth ( ) - 25 - 10 , y : 20 } } , getBottomPosition : function ( ) { return { x : 35 , y : this . getHeight ( ) - 20 } } , getLeftPosition : function ( ) { return { x : 25 , y : 30 } } , getRightPosition : function ( ) { return { x : this . getWidth ( ) - 25 , y : 30 } } , setValue : function ( a ) { this . button _group . setValue ( a ) } , setPreviewSelected : function ( a ) { this . preview . setSelected ( a ) } } ) , BI . RelationViewRe
a . fireEvent ( BI . SingleTreePopup . EVENT _CHANGE ) } ) , this . check ( ) } , getValue : function ( ) { return this . tree . getValue ( ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . tree . setValue ( a ) } , populate : function ( a ) { BI . SingleTreePopup . superclass . populate . apply ( this , arguments ) , this . tree . populate ( a ) } } ) , BI . SingleTreePopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_tree_popup" , BI . SingleTreePopup ) , BI . SingleTreeTrigger = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleTreeTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-tree-trigger" , height : 30 , text : "" , items : [ ] } ) } , _init : function ( ) { BI . SingleTreeTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . trigger = BI . createWidget ( { type : "bi.select_text_trigger" , element : this , text : a . text , items : a . items , height : a . height } ) } , _checkTitle : function ( ) { var a = this , b = this . getValue ( ) ; BI . any ( this . options . items , function ( c , d ) { if ( b . contains ( d . value ) ) return a . trigger . setTitle ( d . text || d . value ) , ! 0 } ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . options . value = a , this . trigger . setValue ( a ) , this . _checkTitle ( ) } , getValue : function ( ) { return this . options . value || [ ] } , populate : function ( a ) { BI . SingleTreeTrigger . superclass . populate . apply ( this , arguments ) , this . trigger . populate ( a ) } } ) , BI . shortcut ( "bi.single_tree_trigger" , BI . SingleTreeTrigger ) , BI . SliderButton = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SliderButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-slider-button" } ) } , _init : function ( ) { BI . extend ( BI . SliderButton . superclass . _init . apply ( this , arguments ) ) ; var a = this , b = BI . createWidget ( { type : "bi.icon_button" , cls : "column-next-page-h-font" , iconWidth : 16 , iconHeight : 16 , height : 16 , width : 16 } ) ; BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : b , left : - 8 } , { el : { type : "bi.label" , ref : function ( b ) { a . label = b } } , left : - 8 , top : - 10 } ] } ) } , setValue : function ( a ) { this . label . setText ( a ) } } ) , BI . shortcut ( "bi.slider_button" , BI . SliderButton ) , BI . SliderNormal = BI . inherit ( BI . Widget , { _constant : { HEIGHT : 28 , SLIDER _WIDTH _HALF : 10 , SLIDER _WIDTH : 25 , SLIDER _HEIGHT : 30 , TRACK _HEIGHT : 24 } , _defaultConfig : function ( ) { return BI . extend ( BI . SliderNormal . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-slider" , min : 10 , max : 50 } ) } , _init : function ( ) { BI . SliderNormal . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . _constant , c = this . options ; this . enable = ! 1 , this . value = c . min , this . min = c . min , this . max = c . max , this . rightTrack = BI . createWidget ( { type : "bi.layout" , cls : "bi-slider-track" , height : 5 } ) , this . track = this . _createTrack ( ) , this . slider = BI . createWidget ( { type : "bi.slider_button" } ) , this . slider . setValue ( this . getValue ( ) ) , this . slider . element . draggable ( { axis : "x" , containment : this . rightTrack . element , scroll : ! 1 , drag : function ( b , c ) { var d = 100 * c . position . left / a . _getRightTrackLength ( ) , e = BI . parseFloat ( d . toFixed ( 1 ) ) , f = a . _getValueByPercent ( e ) ; a . value = BI . parseInt ( f ) + 1 , a . slider . setValue ( a . getValue ( ) ) , a . fireEvent ( BI . SliderNormal . EVENT _CHANGE ) } , stop : function ( b , c ) { var d = 100 * c . position . left / a . _getRightTrackLength ( ) , e = BI . parseFloat ( d . toFixed ( 1 ) ) ; a . _setSliderPosition ( e ) , a . fireEvent ( BI . SliderNormal . EVENT _CHANGE ) } } ) ; var d = BI . createWidget ( { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . slider , top : 10 } ] } ] , hgap : b . SLIDER _WIDTH _HALF , height : b . SLIDER _HEIGHT } ) ; d . element . click ( function ( c ) { if ( a . enable ) { var d = c . clientX - a . element . offset ( ) . left - b . SLIDER _WIDTH _HALF , e = a . track . element [ 0 ] . scrollWidth , f = 0 ; d < 0 && ( f = 0 ) , d > 0 && d < e - b . SLIDER _WIDTH && ( f = 100 * d / a . _getRightTrackLength ( ) ) , d > e - b . SLIDER _WIDTH && ( f = 100 ) ; var g = BI . parseFloat ( f . toFixed ( 1 ) ) ; a . _setSliderPosition ( g ) ; var h = a . _getValueByPercent ( g ) ; a . value = BI . parseInt ( h ) , a . slider . setValue ( a . getValue ( ) ) , a . fireEvent ( BI . SliderNormal . EVENT _CHANGE ) } } ) , 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 } ] } ] , height : b . TRACK _HEIGHT } , top : 33 , left : 0 , width : "100%" } , { el : d , top : 15 , left : 0 , width : "100%" } ] } ) } , _createTrack : function ( ) { return BI . createWidget ( { type : "bi.absolute" , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . rightTrack , top : 0 , left : 0 , width : "100%" } ] } ] ,