/*! fineui 2019-09-12 17:29:14 */
function _classCallCheck ( a , b ) { if ( ! ( a instanceof b ) ) throw new TypeError ( "Cannot call a class as a function" ) } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , null == _global . BI && ( _global . BI = { prepares : [ ] } ) , null == _global . BI . prepares && ( _global . BI . prepares = [ ] ) , Array . prototype . indexOf || ( Array . prototype . indexOf = function ( a , b ) { var c ; if ( null == this ) throw new TypeError ( '"this" is null or not defined' ) ; var d = Object ( this ) , e = d . length >>> 0 ; if ( 0 === e ) return - 1 ; var f = 0 | b ; if ( f >= e ) return - 1 ; for ( c = Math . max ( f >= 0 ? f : e - Math . abs ( f ) , 0 ) ; c < e ; ) { if ( c in d && d [ c ] === a ) return c ; c ++ } return - 1 } ) , Array . prototype . lastIndexOf || ( Array . prototype . lastIndexOf = function ( a ) { "use strict" ; if ( void 0 === this || null === this ) throw new TypeError ; var b , c , d = Object ( this ) , e = d . length >>> 0 ; if ( 0 === e ) return - 1 ; for ( b = e - 1 , arguments . length > 1 && ( b = Number ( arguments [ 1 ] ) , b != b ? b = 0 : 0 != b && b != 1 / 0 && b != - ( 1 / 0 ) && ( b = ( b > 0 || - 1 ) * Math . floor ( Math . abs ( b ) ) ) ) , c = b >= 0 ? Math . min ( b , e - 1 ) : e - Math . abs ( b ) ; c >= 0 ; c -- ) if ( c in d && d [ c ] === a ) return c ; return - 1 } ) , _global . console = _global . console || function ( ) { var a = { } ; return a . log = a . warn = a . debug = a . info = a . error = a . time = a . dir = a . profile = a . clear = a . exception = a . trace = a . assert = function ( ) { } , a } ( ) , _global . localStorage || ( _global . localStorage = { items : { } , setItem : function ( a , b ) { BI . Cache . addCookie ( a , b ) } , getItem : function ( a ) { return BI . Cache . getCookie ( a ) } , removeItem : function ( a ) { BI . Cache . deleteCookie ( a ) } , key : function ( ) { } , clear : function ( ) { this . items = { } } } ) , Object . keys || ( Object . keys = function ( a ) { if ( a !== Object ( a ) ) throw new TypeError ( "Object.keys called on a non-object" ) ; var b , c , d = { _ _ob _ _ : b , $accessors : b , $vbthis : b , $vbsetter : b } , e = [ ] ; for ( c in a ) c in d || Object . prototype . hasOwnProperty . call ( a , c ) && e . push ( c ) ; return e } ) , Array . isArray || ( Array . isArray = function ( a ) { return "[object Array]" === Object . prototype . toString . call ( a ) } ) , "function" != typeof Object . getPrototypeOf && ( Object . getPrototypeOf = "" . _ _proto _ _ === String . prototype ? function ( a ) { return a . _ _proto _ _ } : function ( a ) { return a . constructor . prototype } ) , Date . now || ( Date . now = function ( ) { return ( new Date ) . valueOf ( ) } ) , "undefined" != typeof Set && Set . toString ( ) . match ( /native code/ ) || ( Set = function ( ) { this . set = { } } , Set . prototype . has = function ( a ) { return void 0 !== this . set [ a ] } , Set . prototype . add = function ( a ) { this . set [ a ] = 1 } , Set . prototype . clear = function ( ) { this . set = { } } ) , ! function ( a ) { var b = a . navigator . userAgent . toLowerCase ( ) , c = /msie/ ; if ( c . test ( b ) ) { var d = Array . prototype . sort ; Array . prototype . sort = function ( a ) { if ( a && "function" == typeof a ) { if ( this . length < 2 ) return this ; for ( var b , c = 0 , e = c + 1 , f = this . length , g = ! 1 , h = 0 ; c < f ; c ++ ) for ( e = c + 1 ; e < f ; e ++ ) h = a . call ( this , this [ c ] , this [ e ] ) , g = ( "number" == typeof h ? h : h ? 1 : 0 ) > 0 , g === ! 0 && ( b = this [ c ] , this [ c ] = this [ e ] , this [ e ] = b ) ; return this } return d . call ( this ) } } } ( window ) ; var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , null == _global . BI && ( _global . BI = { prepares : [ ] } ) , null == _global . BI . prepares && ( _global . BI . prepares = [ ] ) , function ( ) { function a ( a , b , c ) { switch ( c . length ) { case 0 : return a . call ( b ) ; case 1 : return a . call ( b , c [ 0 ] ) ; case 2 : return a . call ( b , c [ 0 ] , c [ 1 ] ) ; case 3 : return a . call ( b , c [ 0 ] , c [ 1 ] , c [ 2 ] ) } return a . apply ( b , c ) } function b ( a , b , c , d ) { for ( var e = - 1 , f = null == a ? 0 : a . length ; ++ e < f ; ) { var g = a [ e ] ; b ( d , g , c ( g ) , a ) } return d } function c ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d && b ( a [ c ] , c , a ) !== ! 1 ; ) ; return a } function d ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( ! b ( a [ c ] , c , a ) ) return ! 1 ; return ! 0 } function e ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; b ( g , c , a ) && ( f [ e ++ ] = g ) } return f } function f ( a , b ) { var c = null == a ? 0 : a . length ; return ! ! c && o ( a , b , 0 ) > - 1 } function g ( a , b , c ) { for ( var d = - 1 , e = null == a ? 0 : a . length ; ++ d < e ; ) if ( c ( b , a [ d ] ) ) return ! 0 ; return ! 1 } function h ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = Array ( d ) ; ++ c < d ; ) e [ c ] = b ( a [ c ] , c , a ) ; return e } function i ( a , b ) { for ( var c = - 1 , d = b . length , e = a . length ; ++ c < d ; ) a [ e + c ] = b [ c ] ; return a } function j ( a , b , c , d ) { var e = - 1 , f = null == a ? 0 : a . length ; for ( d && f && ( c = a [ ++ e ] ) ; ++ e < f ; ) c = b ( c , a [ e ] , e , a ) ; return c } function k ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( b ( a [ c ] , c , a ) ) return ! 0 ; return ! 1 } function l ( a ) { return a . split ( "" ) } function m ( a , b , c ) { var d ; return c ( a , func
return ! a . call ( this ) ; case 1 : return ! a . call ( this , b [ 0 ] ) ; case 2 : return ! a . call ( this , b [ 0 ] , b [ 1 ] ) ; case 3 : return ! a . call ( this , b [ 0 ] , b [ 1 ] , b [ 2 ] ) } return ! a . apply ( this , b ) } } function Ed ( a ) { return Ad ( 2 , a ) } function Fd ( a , b ) { if ( "function" != typeof a ) throw new TypeError ( Le ) ; return b = b === Ie ? b : be ( b ) , ub ( a , b ) } function Gd ( a , b , c ) { var d = ! 0 , e = ! 0 ; if ( "function" != typeof a ) throw new TypeError ( Le ) ; return Sd ( c ) && ( d = "leading" in c ? ! ! c . leading : d , e = "trailing" in c ? ! ! c . trailing : e ) , Bd ( a , b , { leading : d , maxWait : b , trailing : e } ) } function Hd ( a ) { return Ea ( a , Re ) } function Id ( a ) { return Ea ( a , Pe | Re ) } function Jd ( a , b ) { return a === b || a !== a && b !== b } function Kd ( a ) { return null != a && Rd ( a . length ) && ! Qd ( a ) } function Ld ( a ) { return Td ( a ) && Kd ( a ) } function Md ( a ) { return a === ! 0 || a === ! 1 || Td ( a ) && Qa ( a ) == rf } function Nd ( a ) { if ( null == a ) return ! 0 ; if ( Kd ( a ) && ( ti ( a ) || "string" == typeof a || "function" == typeof a . splice || ui ( a ) || zi ( a ) || si ( a ) ) ) return ! a . length ; var b = bi ( a ) ; if ( b == wf || b == Df ) return ! a . size ; if ( Ic ( a ) ) return ! gb ( a ) . length ; for ( var c in a ) if ( ah . call ( a , c ) ) return ! 1 ; return ! 0 } function Od ( a , b ) { return Za ( a , b ) } function Pd ( a ) { return "number" == typeof a && xh ( a ) } function Qd ( a ) { if ( ! Sd ( a ) ) return ! 1 ; var b = Qa ( a ) ; return b == uf || b == vf || b == qf || b == Bf } function Rd ( a ) { return "number" == typeof a && a > - 1 && a % 1 == 0 && a <= jf } function Sd ( a ) { var b = typeof a ; return null != a && ( "object" == b || "function" == b ) } function Td ( a ) { return null != a && "object" == typeof a } function Ud ( a ) { return Wd ( a ) && a != + a } function Vd ( a ) { return null === a } function Wd ( a ) { return "number" == typeof a || Td ( a ) && Qa ( a ) == xf } function Xd ( a ) { if ( ! Td ( a ) || Qa ( a ) != zf ) return ! 1 ; var b = lh ( a ) ; if ( null === b ) return ! 0 ; var c = ah . call ( b , "constructor" ) && b . constructor ; return "function" == typeof c && c instanceof c && _g . call ( c ) == eh } function Yd ( a ) { return "string" == typeof a || ! ti ( a ) && Td ( a ) && Qa ( a ) == Ef } function Zd ( a ) { return "symbol" == typeof a || Td ( a ) && Qa ( a ) == Ff } function $d ( a ) { return a === Ie } function _d ( a ) { if ( ! a ) return [ ] ; if ( Kd ( a ) ) return Yd ( a ) ? L ( a ) : Qb ( a ) ; if ( qh && a [ qh ] ) return D ( a [ qh ] ( ) ) ; var b = bi ( a ) , c = b == wf ? E : b == Df ? I : qe ; return c ( a ) } function ae ( a ) { if ( ! a ) return 0 === a ? a : 0 ; if ( a = ce ( a ) , a === hf || a === - hf ) { var b = a < 0 ? - 1 : 1 ; return b * kf } return a === a ? a : 0 } function be ( a ) { var b = ae ( a ) , c = b % 1 ; return b === b ? c ? b - c : b : 0 } function ce ( a ) { if ( "number" == typeof a ) return a ; if ( Zd ( a ) ) return lf ; if ( Sd ( a ) ) { var b = "function" == typeof a . valueOf ? a . valueOf ( ) : a ; a = Sd ( b ) ? b + "" : b } if ( "string" != typeof a ) return 0 === a ? a : + a ; a = a . replace ( Zf , "" ) ; var c = eg . test ( a ) ; return c || gg . test ( a ) ? Hg ( a . slice ( 2 ) , c ? 2 : 8 ) : dg . test ( a ) ? lf : + a } function de ( a ) { return Rb ( a , me ( a ) ) } function ee ( a ) { return null == a ? "" : yb ( a ) } function fe ( a , b ) { var c = Th ( a ) ; return null == b ? c : za ( c , b ) } function ge ( a , b ) { return m ( a , fb ( b , 3 ) , La ) } function he ( a , b ) { return m ( a , fb ( b , 3 ) , Ma ) } function ie ( a , b , c ) { var d = null == a ? Ie : Oa ( a , b ) ; return d === Ie ? c : d } function je ( a , b ) { return null != a && wc ( a , b , Sa ) } function ke ( a , b ) { return null != a && wc ( a , b , Ta ) } function le ( a ) { return Kd ( a ) ? ua ( a ) : gb ( a ) } function me ( a ) { return Kd ( a ) ? ua ( a , ! 0 ) : hb ( a ) } function ne ( a , b ) { return oe ( a , Dd ( fb ( b ) ) ) } function oe ( a , b ) { if ( null == a ) return { } ; var c = h ( nc ( a ) , function ( a ) { return [ a ] } ) ; return b = fb ( b ) , qb ( a , c , function ( a , c ) { return b ( a , c [ 0 ] ) } ) } function pe ( a , b , c ) { b = Eb ( b , a ) ; var d = - 1 , e = b . length ; for ( e || ( e = 1 , a = Ie ) ; ++ d < e ; ) { var f = null == a ? Ie : a [ Uc ( b [ d ] ) ] ; f === Ie && ( d = e , f = c ) , a = Qd ( f ) ? f . call ( a ) : f } return a } function qe ( a ) { return null == a ? [ ] : w ( a , le ( a ) ) } function re ( a , b , c ) { return c === Ie && ( c = b , b = Ie ) , c !== Ie && ( c = ce ( c ) , c = c === c ? c : 0 ) , b !== Ie && ( b = ce ( b ) , b = b === b ? b : 0 ) , Da ( ce ( a ) , b , c ) } function se ( a , b , c ) { if ( c && "boolean" != typeof c && Dc ( a , b , c ) && ( b = c = Ie ) , c === Ie && ( "boolean" == typeof b ? ( c = b , b = Ie ) : "boolean" == typeof a && ( c = a , a = Ie ) ) , a === Ie && b === Ie ? ( a = 0 , b = 1 ) : ( a = ae ( a ) , b === Ie ? ( b = a , a = 0 ) : b = ae ( b ) ) , a > b ) { var d = a ; a = b , b = d } if ( c || a % 1 || b % 1 ) { var e = Ch ( ) ; return Ah ( a + e * ( b - a + Gg ( "1e-" + ( ( e + "" ) . length - 1 ) ) ) , b ) } return sb ( a , b ) } function te ( a ) { return a = ee ( a ) , a && Uf . test ( a ) ? a . replace ( Tf , Wg ) : a } function ue ( a , b , c ) { if ( a = ee ( a ) , a && ( c || b === Ie ) ) return a . replace ( Zf , "" ) ; if ( ! a || ! ( b = yb ( b ) ) ) return a ; var d = L ( a ) , e = L ( b ) , f = y ( d , e ) , g = z ( d , e ) + 1 ; return Fb ( d , f , g ) . join ( "" ) } function ve ( a ) { return function ( ) { return a } } function we ( a ) { return a } function xe ( a ) { return fb ( "function" == typeof a ? a : Ea ( a , Pe ) ) } function ye ( a ) { return kb ( Ea ( a , Pe ) ) } function ze ( a , b , d ) { var e = le ( b ) , f = Na ( b , e ) ; null != d || Sd ( b ) && ( f . length || ! e . length ) || ( d = b , b = a , a = this , f = N
function a ( ) { for ( var a , b , c , d , e = arguments [ 0 ] || { } , f = arguments . length , g = 1 ; g < f ; g ++ ) if ( null != ( a = arguments [ g ] ) ) for ( b in a ) c = e [ b ] , d = a [ b ] , e !== d && void 0 !== d && ( e [ b ] = d ) ; return e } BI . OB = function ( a ) { this . _constructor ( a ) } , _ . extend ( BI . OB . prototype , { props : { } , init : null , destroyed : null , _constructor : function ( a ) { this . _initProps ( a ) , this . _init ( ) , this . _initRef ( ) } , _defaultConfig : function ( a ) { return { } } , _initProps : function ( b ) { var c = this . props ; BI . isFunction ( this . props ) && ( c = this . props ( b ) ) , this . options = a ( this . _defaultConfig ( b ) , c , b ) } , _init : function ( ) { this . _initListeners ( ) , this . init && this . init ( ) } , _initListeners : function ( ) { var a = this ; null != this . options . listeners && ( _ . each ( this . options . listeners , function ( b ) { ( b . target ? b . target : a ) [ b . once ? "once" : "on" ] ( b . eventName , _ . bind ( b . action , a ) ) } ) , delete this . options . listeners ) } , _initRef : function ( ) { this . options . ref && this . options . ref . call ( this , this ) } , _purgeRef : function ( ) { this . options . ref && this . options . ref . call ( null ) } , _getEvents : function ( ) { return _ . isArray ( this . events ) || ( this . events = [ ] ) , this . events } , on : function ( a , b ) { a = a . toLowerCase ( ) ; var c = this . _getEvents ( ) [ a ] ; _ . isArray ( c ) || ( c = [ ] , this . _getEvents ( ) [ a ] = c ) , c . push ( b ) } , once : function ( a , b ) { var c = function ( ) { b . apply ( this , arguments ) , this . un ( a , c ) } ; this . on ( a , c ) } , un : function ( a , b ) { if ( a = a . toLowerCase ( ) , null == b ) delete this . _getEvents ( ) [ a ] ; else { var c = this . _getEvents ( ) [ a ] ; if ( _ . isArray ( c ) ) { var d = [ ] ; _ . each ( c , function ( a ) { a != b && d . push ( a ) } ) , this . _getEvents ( ) [ a ] = d } } } , purgeListeners : function ( ) { this . events = [ ] } , fireEvent : function ( ) { var a = arguments [ 0 ] . toLowerCase ( ) , b = this . _getEvents ( ) [ a ] ; if ( BI . isArray ( b ) ) if ( BI . isArguments ( arguments [ 1 ] ) ) { for ( var c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , arguments [ 1 ] ) === ! 1 ) return ! 1 } else for ( var d = Array . prototype . slice . call ( arguments , 1 ) , c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , d ) === ! 1 ) return ! 1 ; return ! 0 } , destroy : function ( ) { this . destroyed && this . destroyed ( ) , this . _purgeRef ( ) , this . purgeListeners ( ) } } ) } ( ) , ! function ( ) { BI . Widget = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Widget . superclass . _defaultConfig . apply ( this ) , { root : ! 1 , tagName : "div" , attributes : null , data : null , tag : null , disabled : ! 1 , invisible : ! 1 , invalid : ! 1 , baseCls : "" , extraCls : "" , cls : "" , css : null } ) } , _constructor : function ( ) { } , beforeInit : null , beforeCreate : null , created : null , render : null , beforeMount : null , mounted : null , shouldUpdate : null , update : function ( ) { } , beforeDestroy : null , destroyed : null , _init : function ( ) { BI . Widget . superclass . _init . apply ( this , arguments ) , this . _initRoot ( ) , this . _initElementWidth ( ) , this . _initElementHeight ( ) , this . _initVisual ( ) , this . _initState ( ) , this . _initRender ( ) } , _initRender : function ( ) { this . beforeInit ? ( this . _ _asking = ! 0 , this . beforeInit ( BI . bind ( this . _render , this ) ) , this . _ _asking === ! 0 && ( this . _ _async = ! 0 ) ) : this . _render ( ) } , _render : function ( ) { this . _ _asking = ! 1 , this . beforeCreate && this . beforeCreate ( ) , this . _initElement ( ) , this . _initEffects ( ) , this . created && this . created ( ) } , _initRoot : function ( ) { var a = this . options ; this . widgetName = a . widgetName || BI . uniqueId ( "widget" ) , this . _isRoot = a . root , BI . isWidget ( a . element ) ? ( a . element instanceof BI . Widget ? ( this . _parent = a . element , this . _parent . addWidget ( this . widgetName , this ) ) : this . _isRoot = ! 0 , this . element = this . options . element . element ) : a . element ? ( this . element = BI . Widget . _renderEngine . createElement ( this ) , this . _isRoot = ! 0 ) : this . element = BI . Widget . _renderEngine . createElement ( this ) , this . element . _isWidget = ! 0 , ( a . _baseCls || a . baseCls || a . extraCls || a . cls ) && this . element . addClass ( ( a . _baseCls || "" ) + " " + ( a . baseCls || "" ) + " " + ( a . extraCls || "" ) + " " + ( a . cls || "" ) ) , a . attributes && this . element . attr ( a . attributes ) , a . data && this . element . data ( a . data ) , a . css && this . element . css ( a . css ) , this . _children = { } } , _initElementWidth : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . width ) && this . element . css ( "width" , a . width ) } , _initElementHeight : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . height ) && this . element . css ( "height" , a . height ) } , _initVisual : function ( ) { var a = this . options ; a . invisible && this . element . css ( "display" , "none" ) } , _initEffects : function ( ) { var a = this . options ; ( a . disabled || a . invalid ) && ( this . options . disabled && this . setEnable ( ! 1 ) , this . options . invalid && this . setValid ( ! 1 ) ) } , _initState : function ( ) { this . _isMounted = ! 1 } , _initElement : function ( ) { var
if ( c === d ) return b ; var e = this . _getOffsetPercentage ( a , b , d ) ; return Math . round ( e * ( c - a ) ) } } , ! function ( ) { var a = " YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLHJLQMKKZGCYYGLLLJDZGYDHZWXPYSJBZKDZGYZZHYWYFQYTYZSZYEZZLYMHJJHTSMQWYZLKYYWZCSRKQYTLTDXWCTYJKLWSQZWBDCQYNCJSRSZJLKCDCDTLZZZACQQZZDDXYPLXZBQJ
c . newer . older = c . older ) , c . older && ( c . older . newer = c . newer ) , c . newer = void 0 , c . older = this . tail , this . tail && ( this . tail . newer = c ) , this . tail = c , b ? c : c . value ) } , a . has = function ( a ) { return null != this . _keymap [ a ] } } ( ) , function ( ) { var a = function ( a ) { return Math . floor ( a / 2 ) } , b = _global . Int32Array || function ( a ) { for ( var b = [ ] , c = a - 1 ; c >= 0 ; -- c ) b [ c ] = 0 ; return b } , c = function ( a ) { for ( var b = 1 ; b < a ; ) b *= 2 ; return b } ; BI . PrefixIntervalTree = function ( a ) { this . _size = a . length , this . _half = c ( this . _size ) , this . _heap = new b ( 2 * this . _half ) ; var d ; for ( d = 0 ; d < this . _size ; ++ d ) this . _heap [ this . _half + d ] = a [ d ] ; for ( d = this . _half - 1 ; d > 0 ; -- d ) this . _heap [ d ] = this . _heap [ 2 * d ] + this . _heap [ 2 * d + 1 ] } , BI . PrefixIntervalTree . prototype = { constructor : BI . PrefixIntervalTree , set : function ( b , c ) { var d = this . _half + b ; for ( this . _heap [ d ] = c , d = a ( d ) ; 0 !== d ; d = a ( d ) ) this . _heap [ d ] = this . _heap [ 2 * d ] + this . _heap [ 2 * d + 1 ] } , get : function ( a ) { var b = this . _half + a ; return this . _heap [ b ] } , getSize : function ( ) { return this . _size } , sumUntil : function ( b ) { if ( 0 === b ) return 0 ; for ( var c = this . _half + b - 1 , d = this . _heap [ c ] ; 1 !== c ; c = a ( c ) ) c % 2 === 1 && ( d += this . _heap [ c - 1 ] ) ; return d } , sumTo : function ( a ) { return this . sumUntil ( a + 1 ) } , sum : function ( a , b ) { return this . sumUntil ( b ) - this . sumUntil ( a ) } , greatestLowerBound : function ( a ) { if ( a < 0 ) return - 1 ; var b = 1 ; if ( this . _heap [ b ] <= a ) return this . _size ; for ( ; b < this . _half ; ) { var c = this . _heap [ 2 * b ] ; a < c ? b = 2 * b : ( b = 2 * b + 1 , a -= c ) } return b - this . _half } , greatestStrictLowerBound : function ( a ) { if ( a <= 0 ) return - 1 ; var b = 1 ; if ( this . _heap [ b ] < a ) return this . _size ; for ( ; b < this . _half ; ) { var c = this . _heap [ 2 * b ] ; a <= c ? b = 2 * b : ( b = 2 * b + 1 , a -= c ) } return b - this . _half } , leastUpperBound : function ( a ) { return this . greatestStrictLowerBound ( a ) + 1 } , leastStrictUpperBound : function ( a ) { return this . greatestLowerBound ( a ) + 1 } } , BI . PrefixIntervalTree . uniform = function ( a , b ) { for ( var c = [ ] , d = a - 1 ; d >= 0 ; -- d ) c [ d ] = b ; return new BI . PrefixIntervalTree ( c ) } , BI . PrefixIntervalTree . empty = function ( a ) { return BI . PrefixIntervalTree . uniform ( a , 0 ) } } ( ) , ! function ( ) { BI . Queue = function ( a ) { this . capacity = a , this . array = [ ] } , BI . Queue . prototype = { constructor : BI . Queue , contains : function ( a ) { return BI . contains ( this . array , a ) } , indexOf : function ( a ) { return BI . contains ( this . array , a ) } , getElementByIndex : function ( a ) { return this . array [ a ] } , push : function ( a ) { this . array . push ( a ) , this . capacity && this . array . length > this . capacity && this . array . shift ( ) } , pop : function ( ) { this . array . pop ( ) } , shift : function ( ) { this . array . shift ( ) } , unshift : function ( a ) { this . array . unshift ( a ) , this . capacity && this . array . length > this . capacity && this . array . pop ( ) } , remove : function ( a ) { BI . remove ( this . array , a ) } , splice : function ( ) { this . array . splice . apply ( this . array , arguments ) } , slice : function ( ) { this . array . slice . apply ( this . array , arguments ) } , size : function ( ) { return this . array . length } , each : function ( a , b ) { var b = b || window , a = a || null ; if ( null != a && "function" == typeof a ) for ( var c = 0 ; c < this . array . length ; c ++ ) { var d = a . call ( b , c , this . array [ c ] , this . array ) ; if ( 0 == d ) break } } , toArray : function ( ) { return this . array } , fromArray : function ( a ) { var b = this ; BI . each ( a , function ( a , c ) { b . push ( c ) } ) } , clear : function ( ) { this . array . length = 0 } } } ( ) , ! function ( ) { var a = function ( a , b , c , d ) { this . height = a , this . width = b , this . x = c , this . y = d , this . _indexMap = { } , this . _indices = [ ] } ; a . prototype = { constructor : a , addCellIndex : function ( a ) { this . _indexMap [ a ] || ( this . _indexMap [ a ] = ! 0 , this . _indices . push ( a ) ) } , getCellIndices : function ( ) { return this . _indices } } ; var b = 100 ; BI . SectionManager = function ( a ) { this . _sectionSize = a || b , this . _cellMetadata = [ ] , this . _sections = { } } , BI . SectionManager . prototype = { constructor : BI . SectionManager , getCellIndices : function ( a , b , c , d ) { var e = { } ; return BI . each ( this . getSections ( a , b , c , d ) , function ( a , b ) { BI . each ( b . getCellIndices ( ) , function ( a , b ) { e [ b ] = b } ) } ) , BI . map ( BI . keys ( e ) , function ( a , b ) { return e [ b ] } ) } , getCellMetadata : function ( a ) { return this . _cellMetadata [ a ] } , getSections : function ( b , c , d , e ) { for ( var f = Math . floor ( d / this . _sectionSize ) , g = Math . floor ( ( d + c - 1 ) / this . _sectionSize ) , h = Math . floor ( e / this . _sectionSize ) , i = Math . floor ( ( e + b - 1 ) / this . _sectionSize ) , j = [ ] , k = f ; k <= g ; k ++ ) for ( var l = h ; l <= i ; l ++ ) { var m = k + "." + l ; this . _sections [ m ] || ( this . _sections [ m ] = new a ( this . _sectionSize , this . _sectionSize , k * this . _sectionSize , l * this . _sectionSize ) ) , j . push ( this . _sections [ m ] ) } return j } , getTotalSectionCount : function ( ) { return BI . size ( th
BI . RedMarkBehavior . superclass . _init . apply ( this , arguments ) } , doBehavior : function ( a ) { var b = Array . prototype . slice . call ( arguments , 1 ) , c = this . options ; BI . each ( a , function ( a , d ) { d instanceof BI . Single ? c . rule ( d . getValue ( ) , d ) ? d . doRedMark && d . doRedMark . apply ( d , b ) : d . doRedMark && d . unRedMark . apply ( d , b ) : d . doBehavior && d . doBehavior . apply ( d , b ) } ) } } ) , BI . Controller = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Controller . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . Controller . superclass . _init . apply ( this , arguments ) } , destroy : function ( ) { } } ) , BI . Controller . EVENT _CHANGE = "__EVENT_CHANGE__" , BI . BroadcastController = BI . inherit ( BI . Controller , { _defaultConfig : function ( ) { return BI . extend ( BI . BroadcastController . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . BroadcastController . superclass . _init . apply ( this , arguments ) , this . _broadcasts = { } } , on : function ( a , b ) { var c = this ; return this . _broadcasts [ a ] || ( this . _broadcasts [ a ] = [ ] ) , this . _broadcasts [ a ] . push ( b ) , function ( ) { c . remove ( a , b ) } } , send : function ( a ) { var b = [ ] . slice . call ( arguments , 1 ) ; BI . each ( this . _broadcasts [ a ] , function ( a , c ) { c . apply ( null , b ) } ) } , remove : function ( a , b ) { var c = this ; return b ? ( BI . remove ( this . _broadcasts [ a ] , function ( d ) { return c . _broadcasts [ a ] . indexOf ( b ) === d } ) , this . _broadcasts [ a ] . remove ( b ) , 0 === this . _broadcasts [ a ] . length && delete this . _broadcasts [ a ] ) : delete this . _broadcasts [ a ] , this } } ) , BI . BubblesController = BI . inherit ( BI . Controller , { _defaultConfig : function ( ) { return BI . extend ( BI . BubblesController . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _const : { bubbleHeight : 18 } , _init : function ( ) { BI . BubblesController . superclass . _init . apply ( this , arguments ) ; var a = this ; this . bubblesManager = { } , this . storeBubbles = { } , BI . Resizers . add ( "bubbleController" + BI . uniqueId ( ) , function ( ) { BI . each ( a . bubblesManager , function ( b ) { a . remove ( b ) } ) , a . bubblesManager = { } , a . storeBubbles = { } } ) } , _createBubble : function ( a , b , c , d ) { return BI . createWidget ( { type : "bi.bubble" , text : b , level : c , height : d || 18 , direction : a } ) } , _getOffsetLeft : function ( a , b , c ) { var d = 0 ; return "center" === c ? ( d = b . element . offset ( ) . left + ( b . element . bounds ( ) . width - this . get ( a ) . element . bounds ( ) . width ) / 2 , d < 0 && ( d = 0 ) , d ) : "right" === c ? ( d = b . element . offset ( ) . left + b . element . bounds ( ) . width - this . get ( a ) . element . bounds ( ) . width , d < 0 && ( d = 0 ) , d ) : b . element . offset ( ) . left } , _getOffsetTop : function ( a , b , c ) { var d = 0 ; return "center" === c ? ( d = b . element . offset ( ) . top + ( b . element . bounds ( ) . height - this . get ( a ) . element . bounds ( ) . height ) / 2 , d < 0 && ( d = 0 ) , d ) : "right" === c ? ( d = b . element . offset ( ) . top + b . element . bounds ( ) . height - this . get ( a ) . element . bounds ( ) . height , d < 0 && ( d = 0 ) , d ) : b . element . offset ( ) . top } , _getLeftPosition : function ( a , b , c ) { var d = BI . DOM . getLeftPosition ( b , this . get ( a ) ) ; return d . top = this . _getOffsetTop ( a , b , c ) , d } , _getBottomPosition : function ( a , b , c ) { var d = BI . DOM . getBottomPosition ( b , this . get ( a ) ) ; return d . left = this . _getOffsetLeft ( a , b , c ) , d } , _getTopPosition : function ( a , b , c ) { var d = BI . DOM . getTopPosition ( b , this . get ( a ) ) ; return d . left = this . _getOffsetLeft ( a , b , c ) , d } , _getRightPosition : function ( a , b , c ) { var d = BI . DOM . getRightPosition ( b , this . get ( a ) ) ; return d . top = this . _getOffsetTop ( a , b , c ) , d } , show : function ( a , b , c , d ) { d || ( d = { } ) ; var e = d . container || c , f = d . offsetStyle || { } , g = d . level || "error" , h = d . adjustYOffset || 0 , i = d . adjustXOffset || 0 ; this . storeBubbles [ a ] || ( this . storeBubbles [ a ] = { } ) , this . storeBubbles [ a ] . top || ( this . storeBubbles [ a ] . top = this . _createBubble ( "top" , b , g ) ) , BI . createWidget ( { type : "bi.absolute" , element : e , items : [ { el : this . storeBubbles [ a ] . top } ] } ) , this . set ( a , this . storeBubbles [ a ] . top ) ; var j = this . _getTopPosition ( a , c , f ) ; if ( this . get ( a ) . element . css ( { left : j . left + i , top : j . top - h } ) , this . get ( a ) . invisible ( ) , ! BI . DOM . isTopSpaceEnough ( c , this . get ( a ) , h ) ) { this . storeBubbles [ a ] . left || ( this . storeBubbles [ a ] . left = this . _createBubble ( "left" , b , g , 30 ) ) , BI . createWidget ( { type : "bi.absolute" , element : e , items : [ { el : this . storeBubbles [ a ] . left } ] } ) , this . set ( a , this . storeBubbles [ a ] . left ) ; var j = this . _getLeftPosition ( a , c , f ) ; if ( this . get ( a ) . element . css ( { left : j . left - i , top : j . top - h } ) , this . get ( a ) . invisible ( ) , ! BI . DOM . isLeftSpaceEnough ( c , this . get ( a ) , i ) ) { this . storeBubbles [ a ] . right || ( this . storeBubbles [ a ] . right = this . _createBubble ( "right" , b , g , 30 ) ) , BI . createWidget ( { type : " bi . absolute
scrolly : b . scrolly , scrollx : b . scrollx , columns : b . columns , rows : b . rows , columnSize : b . columnSize , rowSize : b . rowSize , hgap : b . hgap , vgap : b . vgap , items : b . items } } , _init : function ( ) { BI . TableLayoutLogic . superclass . _init . apply ( this , arguments ) } } ) , BI . HorizontalFillLayoutLogic = BI . inherit ( BI . Logic , { _defaultConfig : function ( ) { return BI . extend ( BI . HorizontalFillLayoutLogic . superclass . _defaultConfig . apply ( this , arguments ) , { dynamic : ! 1 , scrollable : null , scrolly : ! 1 , scrollx : ! 1 , items : [ ] , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , createLogic : function ( ) { var a , b = this . options , c = [ ] ; return BI . each ( b . items , function ( a , b ) { c . push ( b . width || 0 ) } ) , a = b . dynamic ? "bi.horizontal_adapt" : "bi.htape" , { type : a , columnSize : c , scrollable : b . scrollable , scrolly : b . scrolly , scrollx : b . scrollx , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , items : b . items } } , _init : function ( ) { BI . HorizontalFillLayoutLogic . superclass . _init . apply ( this , arguments ) } } ) , BI . prepares . push ( function ( ) { var a , b = function ( ) { return null == a && ( a = ! ( ! BI . isSupportCss3 || ! BI . isSupportCss3 ( "flex" ) ) ) , a } ; BI . Plugin . registerWidget ( "bi.horizontal" , function ( a ) { var c = BI . isIE ( ) , d = b ( ) , e = c && BI . getIEVersion ( ) < 8 ; return a . verticalAlign === BI . VerticalAlign . Middle && a . horizontalAlign === BI . HorizontalAlign . Center ? e ? a : BI . extend ( a , { type : "bi.table_adapt" } ) : a . verticalAlign === BI . VerticalAlign . Middle && a . horizontalAlign === BI . HorizontalAlign . Left ? e ? a : BI . extend ( a , { type : "bi.table_adapt" } ) : a . verticalAlign === BI . VerticalAlign . Top && a . horizontalAlign === BI . HorizontalAlign . Center ? e ? a : BI . extend ( a , { type : "bi.table_adapt" } ) : c ? a : d ? BI . extend ( a , { type : "bi.flex_horizontal" } ) : BI . extend ( a , { type : "bi.table_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.center_adapt" , function ( a ) { var c = BI . isIE ( ) , d = b ( ) , e = a . items && a . items . length <= 1 ; return ! c && d && e ? a . scrollable === ! 0 || a . scrollx === ! 0 || a . scrolly === ! 0 ? BI . extend ( a , { type : "bi.flex_scrollable_center_adapt" } ) : BI . extend ( a , { type : "bi.flex_center_adapt" } ) : e ? BI . extend ( a , { type : "bi.inline_center_adapt" } ) : a } ) , BI . Plugin . registerWidget ( "bi.vertical_adapt" , function ( a ) { var c = BI . isIE ( ) , d = b ( ) ; return ! c && d ? a . scrollable === ! 0 || a . scrollx === ! 0 || a . scrolly === ! 0 ? BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical_center_adapt" } ) : BI . extend ( a , { type : "bi.flex_vertical_center_adapt" } ) : BI . extend ( a , { type : "bi.inline_vertical_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.horizontal_adapt" , function ( a ) { return a . items && a . items . length <= 1 ? BI . extend ( a , { type : "bi.horizontal_auto" } ) : a } ) , BI . Plugin . registerWidget ( "bi.float_center_adapt" , function ( a ) { return ! BI . isIE ( ) && b ( ) ? a . scrollable === ! 0 || a . scrollx === ! 0 || a . scrolly === ! 0 ? BI . extend ( { } , a , { type : "bi.flex_scrollable_center_adapt" } ) : BI . extend ( a , { type : "bi.flex_center_adapt" } ) : BI . extend ( a , { type : "bi.inline_center_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_horizontal" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_horizontal" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_vertical" , function ( a ) { if ( a . scrollable === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_horizontal_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_horizontal_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_vertical_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_horizontal_center_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_horizontal_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_vertical_center_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_center_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_center_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.radio" , function ( a ) { return BI . isIE ( ) && BI . getIEVersion ( ) < 9 ? BI . extend ( a , { type : "bi.image_radio" } ) : a } ) , BI . Plugin . registerWidget ( "bi.checkbox" , function ( a ) { return BI . isIE ( ) && BI . getIEVersion ( ) < 9 ? BI . extend ( a , { type : "bi.image_checkbox" } ) : a } ) , B
q ? ia ( a ) . show ( ) : m . done ( function ( ) { ia ( a ) . hide ( ) } ) , m . done ( function ( ) { var b ; ia . _removeData ( a , "fxshow" ) ; for ( b in o ) ia . style ( a , b , o [ b ] ) } ) ; for ( e = 0 ; e < f ; e ++ ) d = p [ e ] , j = m . createTween ( d , q ? h [ d ] : 0 ) , o [ d ] = h [ d ] || ia . style ( a , d ) , d in h || ( h [ d ] = j . start , q && ( j . end = j . start , j . start = "width" === d || "height" === d ? 1 : 0 ) ) } } function Q ( a , b , c , d , e ) { return new Q . prototype . init ( a , b , c , d , e ) } function R ( a , b ) { var c , d = { height : a } , e = 0 ; for ( b = b ? 1 : 0 ; e < 4 ; e += 2 - b ) c = xb [ e ] , d [ "margin" + c ] = d [ "padding" + c ] = a ; return b && ( d . opacity = d . width = a ) , d } function S ( a ) { return ia . isWindow ( a ) ? a : 9 === a . nodeType && ( a . defaultView || a . parentWindow ) } var T , U , V = typeof b , W = a . document , X = a . location , Y = a . jQuery , Z = a . $ , $ = { } , _ = [ ] , aa = "1.12.4" , ba = _ . concat , ca = _ . push , da = _ . slice , ea = _ . indexOf , fa = $ . toString , ga = $ . hasOwnProperty , ha = aa . trim , ia = function ( a , b ) { return new ia . fn . init ( a , b , U ) } , ja = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ . source , ka = /\S+/g , la = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g , ma = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/ , na = /^<(\w+)\s*\/?>(?:<\/\1>|)$/ , oa = /^[\],:{}\s]*$/ , pa = /(?:^|:|,)(?:\s*\[)+/g , qa = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g , ra = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g , sa = /^-ms-/ , ta = /-([\da-z])/gi , ua = function ( a , b ) { return b . toUpperCase ( ) } , va = function ( a ) { ( W . addEventListener || "load" === a . type || "complete" === W . readyState ) && ( wa ( ) , ia . ready ( ) ) } , wa = function ( ) { W . addEventListener ? ( W . removeEventListener ( "DOMContentLoaded" , va , ! 1 ) , a . removeEventListener ( "load" , va , ! 1 ) ) : ( W . detachEvent ( "onreadystatechange" , va ) , a . detachEvent ( "onload" , va ) ) } ; ia . fn = ia . prototype = { jquery : aa , constructor : ia , init : function ( a , c , d ) { var e , f ; if ( ! a ) return this ; if ( "string" == typeof a ) { if ( e = "<" === a . charAt ( 0 ) && ">" === a . charAt ( a . length - 1 ) && a . length >= 3 ? [ null , a , null ] : ma . exec ( a ) , ! e || ! e [ 1 ] && c ) return ! c || c . jquery ? ( c || d ) . find ( a ) : this . constructor ( c ) . find ( a ) ; if ( e [ 1 ] ) { if ( c = c instanceof ia ? c [ 0 ] : c , ia . merge ( this , ia . parseHTML ( e [ 1 ] , c && c . nodeType ? c . ownerDocument || c : W , ! 0 ) ) , na . test ( e [ 1 ] ) && ia . isPlainObject ( c ) ) for ( e in c ) ia . isFunction ( this [ e ] ) ? this [ e ] ( c [ e ] ) : this . attr ( e , c [ e ] ) ; return this } if ( f = W . getElementById ( e [ 2 ] ) , f && f . parentNode ) { if ( f . id !== e [ 2 ] ) return d . find ( a ) ; this . length = 1 , this [ 0 ] = f } return this . context = W , this . selector = a , this } return a . nodeType ? ( this . context = this [ 0 ] = a , this . length = 1 , this ) : ia . isFunction ( a ) ? d . ready ( a ) : ( a . selector !== b && ( this . selector = a . selector , this . context = a . context ) , ia . makeArray ( a , this ) ) } , selector : "" , length : 0 , size : function ( ) { return this . length } , toArray : function ( ) { return da . call ( this ) } , get : function ( a ) { return null == a ? this . toArray ( ) : a < 0 ? this [ this . length + a ] : this [ a ] } , pushStack : function ( a ) { var b = ia . merge ( this . constructor ( ) , a ) ; return b . prevObject = this , b . context = this . context , b } , each : function ( a , b ) { return ia . each ( this , a , b ) } , ready : function ( a ) { return ia . ready . promise ( ) . done ( a ) , this } , slice : function ( ) { return this . pushStack ( da . apply ( this , arguments ) ) } , first : function ( ) { return this . eq ( 0 ) } , last : function ( ) { return this . eq ( - 1 ) } , eq : function ( a ) { var b = this . length , c = + a + ( a < 0 ? b : 0 ) ; return this . pushStack ( c >= 0 && c < b ? [ this [ c ] ] : [ ] ) } , map : function ( a ) { return this . pushStack ( ia . map ( this , function ( b , c ) { return a . call ( b , c , b ) } ) ) } , end : function ( ) { return this . prevObject || this . constructor ( null ) } , push : ca , sort : [ ] . sort , splice : [ ] . splice } , ia . fn . init . prototype = ia . fn , ia . extend = ia . fn . extend = function ( ) { var a , c , d , e , f , g , h = arguments [ 0 ] || { } , i = 1 , j = arguments . length , k = ! 1 ; for ( "boolean" == typeof h && ( k = h , h = arguments [ 1 ] || { } , i = 2 ) , "object" == typeof h || ia . isFunction ( h ) || ( h = { } ) , j === i && ( h = this , -- i ) ; i < j ; i ++ ) if ( null != ( f = arguments [ i ] ) ) for ( e in f ) a = h [ e ] , d = f [ e ] , h !== d && ( k && d && ( ia . isPlainObject ( d ) || ( c = ia . isArray ( d ) ) ) ? ( c ? ( c = ! 1 , g = a && ia . isArray ( a ) ? a : [ ] ) : g = a && ia . isPlainObject ( a ) ? a : { } , h [ e ] = ia . extend ( k , g , d ) ) : d !== b && ( h [ e ] = d ) ) ; return h } , ia . extend ( { noConflict : function ( b ) { return a . $ === ia && ( a . $ = Z ) , b && a . jQuery === ia && ( a . jQuery = Y ) , ia } , isReady : ! 1 , readyWait : 1 , holdReady : function ( a ) { a ? ia . readyWait ++ : ia . ready ( ! 0 ) } , ready : function ( a ) { if ( a === ! 0 ? ! -- ia . readyWait : ! ia . isReady ) { if ( ! W . body ) return setTimeout ( ia . ready ) ; ia . isReady = ! 0 , a !== ! 0 && -- ia . readyWait > 0 || ( T . resolveWith ( W , [ ia ] ) , ia . fn . trigger && ia ( W ) . trigger ( "ready" ) . off ( "ready" ) ) } } , isFunction : function ( a ) { return "function" === ia . type ( a ) } , isArray : Array . isArray || function ( a ) { return "array" === ia . type ( a ) } , isWindow : func
this . parentNode && ! a . isTrigger && ia . event . simulate ( "submit" , this . parentNode , a , ! 0 ) ) } , teardown : function ( ) { return ! ia . nodeName ( this , "form" ) && void ia . event . remove ( this , "._submit" ) } } ) , ia . support . changeBubbles || ( ia . event . special . change = { setup : function ( ) { return Ka . test ( this . nodeName ) ? ( "checkbox" !== this . type && "radio" !== this . type || ( ia . event . add ( this , "propertychange._change" , function ( a ) { "checked" === a . originalEvent . propertyName && ( this . _just _changed = ! 0 ) } ) , ia . event . add ( this , "click._change" , function ( a ) { this . _just _changed && ! a . isTrigger && ( this . _just _changed = ! 1 ) , ia . event . simulate ( "change" , this , a , ! 0 ) } ) ) , ! 1 ) : void ia . event . add ( this , "beforeactivate._change" , function ( a ) { var b = a . target ; Ka . test ( b . nodeName ) && ! ia . _data ( b , "changeBubbles" ) && ( ia . event . add ( b , "change._change" , function ( a ) { ! this . parentNode || a . isSimulated || a . isTrigger || ia . event . simulate ( "change" , this . parentNode , a , ! 0 ) } ) , ia . _data ( b , "changeBubbles" , ! 0 ) ) } ) } , handle : function ( a ) { var b = a . target ; if ( this !== b || a . isSimulated || a . isTrigger || "radio" !== b . type && "checkbox" !== b . type ) return a . handleObj . handler . apply ( this , arguments ) } , teardown : function ( ) { return ia . event . remove ( this , "._change" ) , ! Ka . test ( this . nodeName ) } } ) , ia . support . focusinBubbles || ia . each ( { focus : "focusin" , blur : "focusout" } , function ( a , b ) { var c = 0 , d = function ( a ) { ia . event . simulate ( b , a . target , ia . event . fix ( a ) , ! 0 ) } ; ia . event . special [ b ] = { setup : function ( ) { 0 === c ++ && W . addEventListener ( a , d , ! 0 ) } , teardown : function ( ) { 0 === -- c && W . removeEventListener ( a , d , ! 0 ) } } } ) , ia . fn . extend ( { on : function ( a , c , d , e , f ) { var g , h ; if ( "object" == typeof a ) { "string" != typeof c && ( d = d || c , c = b ) ; for ( g in a ) this . on ( g , c , d , a [ g ] , f ) ; return this } if ( null == d && null == e ? ( e = c , d = c = b ) : null == e && ( "string" == typeof c ? ( e = d , d = b ) : ( e = d , d = c , c = b ) ) , e === ! 1 ) e = j ; else if ( ! e ) return this ; return 1 === f && ( h = e , e = function ( a ) { return ia ( ) . off ( a ) , h . apply ( this , arguments ) } , e . guid = h . guid || ( h . guid = ia . guid ++ ) ) , this . each ( function ( ) { ia . event . add ( this , a , e , d , c ) } ) } , one : function ( a , b , c , d ) { return this . on ( a , b , c , d , 1 ) } , off : function ( a , c , d ) { var e , f ; if ( a && a . preventDefault && a . handleObj ) return e = a . handleObj , ia ( a . delegateTarget ) . off ( e . namespace ? e . origType + "." + e . namespace : e . origType , e . selector , e . handler ) , this ; if ( "object" == typeof a ) { for ( f in a ) this . off ( f , c , a [ f ] ) ; return this } return c !== ! 1 && "function" != typeof c || ( d = c , c = b ) , d === ! 1 && ( d = j ) , this . each ( function ( ) { ia . event . remove ( this , a , d , c ) } ) } , bind : function ( a , b , c ) { return this . on ( a , null , b , c ) } , unbind : function ( a , b ) { return this . off ( a , null , b ) } , delegate : function ( a , b , c , d ) { return this . on ( b , a , c , d ) } , undelegate : function ( a , b , c ) { return 1 === arguments . length ? this . off ( a , "**" ) : this . off ( b , a || "**" , c ) } , trigger : function ( a , b ) { return this . each ( function ( ) { ia . event . trigger ( a , b , this ) } ) } , triggerHandler : function ( a , b ) { var c = this [ 0 ] ; if ( c ) return ia . event . trigger ( a , b , c , ! 0 ) } } ) , function ( a , b ) { function c ( a ) { return oa . test ( a + "" ) } function d ( ) { var a , b = [ ] ; return a = function ( c , d ) { return b . push ( c += " " ) > y . cacheLength && delete a [ b . shift ( ) ] , a [ c ] = d } } function e ( a ) { return a [ N ] = ! 0 , a } function f ( a ) { var b = F . createElement ( "div" ) ; try { return a ( b ) } catch ( c ) { return ! 1 } finally { b = null } } function g ( a , b , c , d ) { var e , f , g , h , i , j , k , n , o , p ; if ( ( b ? b . ownerDocument || b : O ) !== F && E ( b ) , b = b || F , c = c || [ ] , ! a || "string" != typeof a ) return c ; if ( 1 !== ( h = b . nodeType ) && 9 !== h ) return [ ] ; if ( ! H && ! d ) { if ( e = pa . exec ( a ) ) if ( g = e [ 1 ] ) { if ( 9 === h ) { if ( f = b . getElementById ( g ) , ! f || ! f . parentNode ) return c ; if ( f . id === g ) return c . push ( f ) , c } else if ( b . ownerDocument && ( f = b . ownerDocument . getElementById ( g ) ) && L ( b , f ) && f . id === g ) return c . push ( f ) , c } else { if ( e [ 2 ] ) return Z . apply ( c , $ . call ( b . getElementsByTagName ( a ) , 0 ) ) , c ; if ( ( g = e [ 3 ] ) && P . getByClassName && b . getElementsByClassName ) return Z . apply ( c , $ . call ( b . getElementsByClassName ( g ) , 0 ) ) , c } if ( P . qsa && ! I . test ( a ) ) { if ( k = ! 0 , n = N , o = b , p = 9 === h && a , 1 === h && "object" !== b . nodeName . toLowerCase ( ) ) { for ( j = l ( a ) , ( k = b . getAttribute ( "id" ) ) ? n = k . replace ( sa , "\\$&" ) : b . setAttribute ( "id" , n ) , n = "[id='" + n + "'] " , i = j . length ; i -- ; ) j [ i ] = n + m ( j [ i ] ) ; o = na . test ( a ) && b . parentNode || b , p = j . join ( "," ) } if ( p ) try { return Z . apply ( c , $ . call ( o . querySelectorAll ( p ) , 0 ) ) , c } catch ( q ) { } finally { k || b . removeAttribute ( "id" ) } } } return u ( a . replace ( ga , "$1" ) , b , c , d ) } function h ( a , b ) { var c = b && a , d = c && ( ~ b . sourceIndex || W ) - ( ~ a . sourceIndex || W ) ; if ( d ) return d ; if ( c ) for ( ; c = c . nextSibling ; ) if ( c === b ) retu
h && "get" in h && ( g = h . get ( a , ! 0 , d ) ) , g === b && ( g = lb ( a , c , e ) ) , "normal" === g && c in wb && ( g = wb [ c ] ) , "" === d || d ? ( f = parseFloat ( g ) , d === ! 0 || ia . isNumeric ( f ) ? f || 0 : g ) : g } , swap : function ( a , b , c , d ) { var e , f , g = { } ; for ( f in b ) g [ f ] = a . style [ f ] , a . style [ f ] = b [ f ] ; e = c . apply ( a , d || [ ] ) ; for ( f in b ) a . style [ f ] = g [ f ] ; return e } } ) , a . getComputedStyle ? ( kb = function ( b ) { return a . getComputedStyle ( b , null ) } , lb = function ( a , c , d ) { var e , f , g , h = d || kb ( a ) , i = h ? h . getPropertyValue ( c ) || h [ c ] : b , j = a . style ; return h && ( "" !== i || ia . contains ( a . ownerDocument , a ) || ( i = ia . style ( a , c ) ) , sb . test ( i ) && qb . test ( c ) && ( e = j . width , f = j . minWidth , g = j . maxWidth , j . minWidth = j . maxWidth = j . width = i , i = h . width , j . width = e , j . minWidth = f , j . maxWidth = g ) ) , i } ) : W . documentElement . currentStyle && ( kb = function ( a ) { return a . currentStyle } , lb = function ( a , c , d ) { var e , f , g , h = d || kb ( a ) , i = h ? h [ c ] : b , j = a . style ; return null == i && j && j [ c ] && ( i = j [ c ] ) , sb . test ( i ) && ! ob . test ( c ) && ( e = j . left , f = a . runtimeStyle , g = f && f . left , g && ( f . left = a . currentStyle . left ) , j . left = "fontSize" === c ? "1em" : i , i = j . pixelLeft + "px" , j . left = e , g && ( f . left = g ) ) , "" === i ? "auto" : i } ) , ia . each ( [ "height" , "width" ] , function ( a , b ) { ia . cssHooks [ b ] = { get : function ( a , c , d ) { if ( c ) return 0 === a . offsetWidth && pb . test ( ia . css ( a , "display" ) ) ? ia . swap ( a , vb , function ( ) { return A ( a , b , d ) } ) : A ( a , b , d ) } , set : function ( a , c , d ) { var e = d && kb ( a ) ; return y ( a , c , d ? z ( a , b , d , ia . support . boxSizing && "border-box" === ia . css ( a , "boxSizing" , ! 1 , e ) , e ) : 0 ) } } } ) , ia . support . opacity || ( ia . cssHooks . opacity = { get : function ( a , b ) { return nb . test ( ( b && a . currentStyle ? a . currentStyle . filter : a . style . filter ) || "" ) ? . 01 * parseFloat ( RegExp . $1 ) + "" : b ? "1" : "" } , set : function ( a , b ) { var c = a . style , d = a . currentStyle , e = ia . isNumeric ( b ) ? "alpha(opacity=" + 100 * b + ")" : "" , f = d && d . filter || c . filter || "" ; c . zoom = 1 , ( b >= 1 || "" === b ) && "" === ia . trim ( f . replace ( mb , "" ) ) && c . removeAttribute && ( c . removeAttribute ( "filter" ) , "" === b || d && ! d . filter ) || ( c . filter = mb . test ( f ) ? f . replace ( mb , e ) : f + " " + e ) } } ) , ia ( function ( ) { ia . support . reliableMarginRight || ( ia . cssHooks . marginRight = { get : function ( a , b ) { if ( b ) return ia . swap ( a , { display : "inline-block" } , lb , [ a , "marginRight" ] ) } } ) , ! ia . support . pixelPosition && ia . fn . position && ia . each ( [ "top" , "left" ] , function ( a , b ) { ia . cssHooks [ b ] = { get : function ( a , c ) { if ( c ) return c = lb ( a , b ) , sb . test ( c ) ? ia ( a ) . position ( ) [ b ] + "px" : c } } } ) } ) , ia . expr && ia . expr . filters && ( ia . expr . filters . hidden = function ( a ) { return a . offsetWidth <= 0 && a . offsetHeight <= 0 || ! ia . support . reliableHiddenOffsets && "none" === ( a . style && a . style . display || ia . css ( a , "display" ) ) } , ia . expr . filters . visible = function ( a ) { return ! ia . expr . filters . hidden ( a ) } ) , ia . each ( { margin : "" , padding : "" , border : "Width" } , function ( a , b ) { ia . cssHooks [ a + b ] = { expand : function ( c ) { for ( var d = 0 , e = { } , f = "string" == typeof c ? c . split ( " " ) : [ c ] ; d < 4 ; d ++ ) e [ a + xb [ d ] + b ] = f [ d ] || f [ d - 2 ] || f [ 0 ] ; return e } } , qb . test ( a ) || ( ia . cssHooks [ a + b ] . set = y ) } ) ; var zb = /%20/g , Ab = /\[\]$/ , Bb = /\r?\n/g , Cb = /^(?:submit|button|image|reset|file)$/i , Db = /^(?:input|select|textarea|keygen)/i ; ia . fn . extend ( { serialize : function ( ) { return ia . param ( this . serializeArray ( ) ) } , serializeArray : function ( ) { return this . map ( function ( ) { var a = ia . prop ( this , "elements" ) ; return a ? ia . makeArray ( a ) : this } ) . filter ( function ( ) { var a = this . type ; return this . name && ! ia ( this ) . is ( ":disabled" ) && Db . test ( this . nodeName ) && ! Cb . test ( a ) && ( this . checked || ! bb . test ( a ) ) } ) . map ( function ( a , b ) { var c = ia ( this ) . val ( ) ; return null == c ? null : ia . isArray ( c ) ? ia . map ( c , function ( a ) { return { name : b . name , value : a . replace ( Bb , "\r\n" ) } } ) : { name : b . name , value : c . replace ( Bb , "\r\n" ) } } ) . get ( ) } } ) , ia . param = function ( a , c ) { var d , e = [ ] , f = function ( a , b ) { b = ia . isFunction ( b ) ? b ( ) : null == b ? "" : b , e [ e . length ] = encodeURIComponent ( a ) + "=" + encodeURIComponent ( b ) } ; if ( c === b && ( c = ia . ajaxSettings && ia . ajaxSettings . traditional ) , ia . isArray ( a ) || a . jquery && ! ia . isPlainObject ( a ) ) ia . each ( a , function ( ) { f ( this . name , this . value ) } ) ; else for ( d in a ) D ( d , a [ d ] , c , f ) ; return e . join ( "&" ) . replace ( zb , "+" ) } , ia . each ( "blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu" . split ( " " ) , function ( a , b ) { ia . fn [ b ] = function ( a , c ) { return arguments . length > 0 ? this . on ( b , null , a , c ) : this . trigger ( b ) } } ) , ia . fn . hover = function ( a , b ) { return this . mouseenter ( a ) . mouseleave ( b || a ) } ; var Eb , Fb , Gb = ia . now ( ) , Hb = /
} } ) , BI . shortcut ( "bi.left_vertical_adapt" , BI . LeftVerticalAdaptLayout ) , BI . RightVerticalAdaptLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . RightVerticalAdaptLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-right-vertical-adapt-layout" , items : [ ] , lgap : 0 , rgap : 0 , hgap : 0 } ) } , render : function ( ) { var a = this . options , b = this ; return BI . RightVerticalAdaptLayout . superclass . render . apply ( this , arguments ) , { type : "bi.right" , ref : function ( a ) { b . layout = a } , items : [ { el : { type : "bi.vertical_adapt" , height : "100%" , textAlign : "right" , items : a . items , lgap : a . lgap , hgap : a . hgap , rgap : a . rgap } } ] } } , resize : function ( ) { } , addItem : function ( ) { throw new Error ( "cannot be added" ) } , populate : function ( a ) { this . layout . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.right_vertical_adapt" , BI . RightVerticalAdaptLayout ) , BI . TableAdaptLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . TableAdaptLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-table-center-adapt-layout" , columnSize : [ ] , verticalAlign : BI . VerticalAlign . Top , horizontalAlign : BI . HorizontalAlign . Left , scrollx : ! 0 , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { var a = this . options ; BI . TableAdaptLayout . superclass . render . apply ( this , arguments ) , this . $table = BI . Widget . _renderEngine . createElement ( "<div>" ) . css ( { position : "relative" , display : "table" , height : a . verticalAlign === BI . VerticalAlign . Middle ? "100%" : "auto" , width : a . horizontalAlign === BI . HorizontalAlign . Center ? "100%" : "auto" , "white-space" : "nowrap" } ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c , d = this . options , e = d . columnSize [ a ] <= 1 ? 100 * d . columnSize [ a ] + "%" : d . columnSize [ a ] ; if ( this . hasWidget ( this . _getChildName ( a ) ) ) c = this . getWidgetByName ( this . _getChildName ( a ) ) , c . element . width ( e ) ; else { var f = BI . createWidget ( b ) ; f . element . css ( { position : "relative" , top : "0" , left : "0" , margin : "0px auto" } ) , c = BI . createWidget ( { type : "bi.default" , width : e , items : [ f ] } ) , this . addWidget ( this . _getChildName ( a ) , c ) } return c . element . css ( { "max-width" : d . columnSize [ a ] <= 1 ? e : e + "px" } ) , 0 === a && c . element . addClass ( "first-element" ) , c . element . css ( { position : "relative" , display : "table-cell" , "vertical-align" : d . verticalAlign , margin : "0" , padding : "0" , height : "100%" } ) , d . vgap + d . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) !== 0 && f . element . css ( { "margin-top" : d . vgap + d . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , d . hgap + d . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) !== 0 && f . element . css ( { "margin-left" : ( 0 === a ? d . hgap : 0 ) + d . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , d . hgap + d . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) !== 0 && f . element . css ( { "margin-right" : d . hgap + d . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , d . vgap + d . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) !== 0 && f . element . css ( { "margin-bottom" : d . vgap + d . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , c } , appendFragment : function ( a ) { this . $table . append ( a ) , this . element . append ( this . $table ) } , resize : function ( ) { } , populate : function ( a ) { BI . TableAdaptLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.table_adapt" , BI . TableAdaptLayout ) , BI . VerticalAdaptLayout = BI . inherit ( BI . Layout , { props : { baseCls : "bi-vertical-adapt-layout" , horizontalAlign : BI . HorizontalAlign . Left , columnSize : [ ] , scrollx : ! 1 , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } , render : function ( ) { var a = this , b = this . options ; return BI . VerticalAdaptLayout . superclass . render . apply ( this , arguments ) , { type : "bi.horizontal" , verticalAlign : BI . VerticalAlign . Middle , horizontalAlign : b . horizontalAlign , columnSize : b . columnSize , items : b . items , scrollx : b . scrollx , ref : function ( b ) { a . layout = b } , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap } } , resize : function ( ) { } , populate : function ( a ) { this . layout . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.vertical_adapt" , BI . VerticalAdaptLayout ) , BI . HorizontalAutoLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . HorizontalAutoLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-horizon-auto-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . HorizontalAutoLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . HorizontalAutoLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "relative" , margin : " 0 px
this . addWidget ( this . getName ( ) + k + "_" + m , n ) } var o = 100 * l / i [ k ] ; if ( n . element . css ( { position : "absolute" , left : o + "%" } ) , m > 0 ) { var p = this . getWidgetByName ( this . getName ( ) + k + "_" + ( m - 1 ) ) ; p . element . css ( { right : 100 - o + "%" } ) } m == e . columns - 1 && n . element . css ( { right : "0%" } ) , d ( n , k , m ) , l += h [ k ] [ m ] . width } for ( var m = 0 ; m < e . columns ; m ++ ) for ( var q = 0 , k = 0 ; k < e . rows ; k ++ ) { var n = this . getWidgetByName ( this . getName ( ) + k + "_" + m ) , r = 100 * q / j [ m ] ; if ( n . element . css ( { top : r + "%" } ) , k > 0 ) { var p = this . getWidgetByName ( this . getName ( ) + ( k - 1 ) + "_" + m ) ; p . element . css ( { bottom : 100 - r + "%" } ) } k == e . rows - 1 && n . element . css ( { bottom : "0%" } ) , q += h [ k ] [ m ] . height } } , update : function ( ) { } , populate : function ( a ) { BI . DivisionLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.division" , BI . DivisionLayout ) , BI . FloatLeftLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . FloatLeftLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-float-left-layout clearfix" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . FloatLeftLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . FloatLeftLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "relative" , "float" : "left" } ) , BI . isNotNull ( b . left ) && d . element . css ( { left : b . left } ) , BI . isNotNull ( b . right ) && d . element . css ( { right : b . right } ) , BI . isNotNull ( b . top ) && d . element . css ( { top : b . top } ) , BI . isNotNull ( b . bottom ) && d . element . css ( { bottom : b . bottom } ) , c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-top" : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-left" : ( 0 === a ? c . hgap : 0 ) + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-right" : c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-bottom" : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . FloatLeftLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.left" , BI . FloatLeftLayout ) , BI . FloatRightLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . FloatRightLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-float-right-layout clearfix" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . FloatRightLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . FloatRightLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "relative" , "float" : "right" } ) , BI . isNotNull ( b . left ) && d . element . css ( { left : b . left } ) , BI . isNotNull ( b . right ) && d . element . css ( { right : b . right } ) , BI . isNotNull ( b . top ) && d . element . css ( { top : b . top } ) , BI . isNotNull ( b . bottom ) && d . element . css ( { bottom : b . bottom } ) , c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-top" : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-left" : c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-right" : ( 0 === a ? c . hgap : 0 ) + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-bottom" : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . FloatRightLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.right" , BI . FloatRightLayout ) , BI . GridLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . GridLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-grid-layout" , columns : null , rows : null , items : [ ] } ) } , render : function ( ) { BI . GridLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { } , addItem : function ( ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { function b ( a , b , c ) { 0 === b && a . addClass ( "first-row" ) , 0 === c && a . addClass ( "first-col" ) , a . addClass ( BI . isOdd ( b + 1 ) ? "odd-row" : "even-row" ) , a . addClass ( BI . isOdd ( c + 1 ) ? "odd-col" : "even-col" ) , a . addClass ( "
if ( e || _ . isObject ( a ) ) { if ( a . _ _ob _ _ ) { var f = a . _ _ob _ _ . dep . id ; if ( b . has ( f ) ) return ; b . add ( f ) } if ( e ) for ( c = a . length ; c -- ; ) y ( a [ c ] , b ) ; else for ( d = _ . keys ( a ) , c = d . length ; c -- ; ) y ( a [ d [ c ] ] , b ) } } function z ( a ) { for ( var b = "" , c = 0 , d = a . length ; c < d ; c ++ ) b += _ . isBoolean ( a [ c ] ) || _ . has ( za , a [ c ] ) ? a [ c ] : "false" ; return new Function ( "return " + b ) ( ) } function A ( a ) { return a = a . replace ( /\*./g , "[a-zA-Z0-9_]+." ) , "^" + a + "$" } function B ( a , b , c , d ) { e ( c ) && ( d = c , c = c . handler ) , "string" == typeof c && ( c = a [ c ] ) , d = d || { } , d . user = ! 0 ; var f = void 0 ; if ( _ . isFunction ( b ) || ! ( f = b . match ( /[a-zA-Z0-9_.*]+|[|][|]|[&][&]|[(]|[)]/g ) ) || 1 === f . length && ! /\*/ . test ( b ) ) { var g = new xa ( a , b , c , d ) ; return d . immediate && c ( g . value ) , function ( ) { g . teardown ( ) } } var j = [ ] , k = f . slice ( ) , l = ! 1 , m = ! 1 , n = function ( a , b , e , g ) { l !== ! 0 && ( k [ a ] = ! 0 , z ( k ) && ( l = ! 0 , c ( b , e , g ) ) , d && d . sync ? ( l = ! 1 , m = ! 1 , k = f . slice ( ) ) : m || ( m = ! 0 , Y ( function ( ) { l = ! 1 , m = ! 1 , k = f . slice ( ) } ) ) ) } ; return _ . each ( f , function ( b , c ) { if ( ! _ . has ( za , b ) ) { if ( /^[1-9a-zA-Z.]+(\*\*$|\*$)/ . test ( b ) || "**" === b ) { var e = /\*\*$/ . test ( b ) ; b = e ? b . replace ( ".**" , "" ) : b . replace ( ".*" , "" ) ; var f = "**" === b ? function ( a ) { return a } : i ( b ) , g = f . call ( a , a ) , k = new aa ; e ? ( g . _ _ob _ _ . _scopeDeps || ( g . _ _ob _ _ . _scopeDeps = [ ] ) ) . push ( k ) : ( g . _ _ob _ _ . _deps || ( g . _ _ob _ _ . _deps = [ ] ) ) . push ( k ) ; var l = new xa ( a , function ( ) { return k . depend ( ) , NaN } , function ( a , b , d ) { n ( c , a , b , _ . extend ( { index : c } , d ) ) } , d ) ; return void j . push ( function ( ) { l . teardown ( ) , g . _ _ob _ _ . _scopeDeps && h ( g . _ _ob _ _ . _scopeDeps , k ) , g . _ _ob _ _ . _deps && h ( g . _ _ob _ _ . _deps , k ) } ) } if ( /\*\*$|\*$/ . test ( b ) ) throw new Error ( "not support" ) ; if ( /\*/ . test ( b ) ) { for ( var m = a , o = b . split ( "." ) , p = 0 , q = o . length ; p < q && "*" !== o [ p ] ; p ++ ) m = a [ o [ p ] ] ; b = b . substr ( b . indexOf ( "*" ) ) ; for ( var r = m . _ _ob _ _ . parent , s = m . _ _ob _ _ ; r ; ) b = "*." + b , s = r , r = r . parent ; var t = A ( b ) , u = new aa ; s . _globalDeps || ( s . _globalDeps = { } ) , s . _globalDeps [ t ] = u ; var v = new xa ( m , function ( ) { return u . depend ( ) , NaN } , function ( a , b , d ) { n ( c , a , b , _ . extend ( { index : c } , d ) ) } , d ) ; return void j . push ( function ( ) { v . teardown ( ) , s . _globalDeps && delete s . _globalDeps [ t ] } ) } var w = new xa ( a , b , function ( a , b , d ) { n ( c , a , b , _ . extend ( { index : c } , d ) ) } , d ) ; j . push ( function ( ) { w . teardown ( ) } ) } } ) , j } function C ( a ) { return Aa [ a ] } function D ( a , b ) { Aa [ a ] = _ . cloneDeep ( b ) } function E ( a , b ) { b && ( a . $$state = o ( b ) . model ) } function F ( a , c ) { var d = a . _computedWatchers = { } ; G ( a , c ) ; for ( var e in c ) { var f = c [ e ] , g = a . $$model ? a . model : a , h = "function" == typeof f ? _ . bind ( f , g ) : _ . bind ( f . get , g ) ; d [ e ] = new xa ( a . $$computed , h || b , b , Ba ) } } function G ( a , c ) { var d = { } , e = ! 0 ; for ( var f in c ) if ( ! ( f in a ) ) { var g = { enumerable : ! 0 , configurable : ! 0 , get : b , set : b } , h = c [ f ] ; "function" == typeof h ? ( g . get = H ( a , f ) , g . set = b ) : ( g . get = h . get ? e && h . cache !== ! 1 ? H ( f ) : h . get : b , g . set = h . set ? h . set : b ) , d [ f ] = g } a . $$computed = ma ( { } , d ) } function H ( a , b ) { return function ( ) { var c = a . _computedWatchers && a . _computedWatchers [ b ] ; if ( c ) return c . dirty && c . evaluate ( ) , aa . target && c . depend ( ) , c . value } } function I ( a , b ) { a . _watchers || ( a . _watchers = [ ] ) ; for ( var c in b ) { var d = b [ c ] ; if ( _ . isArray ( d ) ) for ( var e = 0 ; e < d . length ; e ++ ) a . _watchers . push ( J ( a , c , d [ e ] ) ) ; else a . _watchers . push ( J ( a , c , d ) ) } } function J ( a , b , c , d ) { return e ( c ) && ( d = c , c = c . handler ) , "string" == typeof c && ( c = a [ c ] ) , B ( a . model , b , _ . bind ( c , a . $$model ? a . model : a ) , d ) } function K ( a , c ) { for ( var d in c ) a [ d ] = null == c [ d ] ? b : _ . bind ( c [ d ] , a . $$model ? a . model : a ) } function L ( a , b ) { b = b || [ ] , _ . each ( b . reverse ( ) , function ( b ) { var c = C ( b ) ; for ( var d in c ) "function" == typeof c [ d ] && ( _ . has ( a , d ) || ( a [ d ] = _ . bind ( c [ d ] , a . $$model ? a . model : a ) ) ) } ) } function M ( a , b ) { for ( var c = { } , d = ( function ( d , e ) { var f = b [ d ] ; f in Z || ( c [ f ] = { enumerable : ! 0 , configurable : ! 0 , get : function ( ) { if ( a . $$computed && f in a . $$computed ) return a . $$computed [ f ] ; if ( a . $$state && f in a . $$state ) return a . $$state [ f ] ; if ( a . $$model && f in a . $$model ) return a . $$model [ f ] ; for ( var b = a . _parent ; b ; ) { if ( b . $$context && f in b . $$context ) return b . $$context [ f ] ; b = b . _parent } } , set : function ( b ) { if ( a . $$state && f in a . $$state ) return a . $$state [ f ] = b ; if ( a . $$model && f in a . $$model ) return a . $$model [ f ] = b ; for ( var c = a . _parent ; c ; ) { if ( c . $$context && f in c . $$context ) return c . $$context [ f ] = b ; c = c . _parent } } } ) } ) , e = 0 , f = b . length ; e < f ; e ++ ) d ( e , f ) ; a . model = ma ( { } , c ) } function N ( a , b ) { for ( var c = { } , d = ( function ( d , e ) { var f = b [ d ] ; f in Z || ( c [ f ] = { enumerable : ! 0 , configurable : ! 0 , get : function ( ) { return a . model [ f ] } , set : function ( b ) { return a . model [ f ] = b } } ) } ) , e = 0 , f = b . length ; e < f ; e ++ ) d ( e , f ) ; a . $$context = ma ( { } , c ) } funct
element : this } , this . _packageLayout ( a ) ) ) } , setNotSelectedValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { BI . deepContains ( a , c . getValue ( ) ) ? c . setSelected && c . setSelected ( ! 1 ) : c . setSelected && c . setSelected ( ! 0 ) } ) } , setEnabledValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { BI . deepContains ( a , c . getValue ( ) ) ? c . setEnable ( ! 0 ) : c . setEnable ( ! 1 ) } ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { BI . deepContains ( a , c . getValue ( ) ) ? c . setSelected && c . setSelected ( ! 0 ) : c . setSelected && c . setSelected ( ! 1 ) } ) } , getNotSelectedValue : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { ! c . isEnabled ( ) || c . isSelected && c . isSelected ( ) || a . push ( c . getValue ( ) ) } ) , a } , getValue : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { c . isEnabled ( ) && c . isSelected && c . isSelected ( ) && a . push ( c . getValue ( ) ) } ) , a } , getAllButtons : function ( ) { return this . buttons } , getAllLeaves : function ( ) { return this . buttons } , getSelectedButtons : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { c . isSelected && c . isSelected ( ) && a . push ( c ) } ) , a } , getNotSelectedButtons : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { c . isSelected && ! c . isSelected ( ) && a . push ( c ) } ) , a } , getIndexByValue : function ( a ) { var b = - 1 ; return BI . any ( this . buttons , function ( c , d ) { if ( d . isEnabled ( ) && d . getValue ( ) === a ) return b = c , ! 0 } ) , b } , getNodeById : function ( a ) { var b ; return BI . any ( this . buttons , function ( c , d ) { if ( d . isEnabled ( ) && d . options . id === a ) return b = d , ! 0 } ) , b } , getNodeByValue : function ( a ) { var b ; return BI . any ( this . buttons , function ( c , d ) { if ( d . isEnabled ( ) && d . getValue ( ) === a ) return b = d , ! 0 } ) , b } , empty : function ( ) { BI . ButtonGroup . superclass . empty . apply ( this , arguments ) , this . options . items = [ ] } , destroy : function ( ) { BI . ButtonGroup . superclass . destroy . apply ( this , arguments ) , this . options . items = [ ] } } ) , BI . extend ( BI . ButtonGroup , { CHOOSE _TYPE _SINGLE : BI . Selection . Single , CHOOSE _TYPE _MULTI : BI . Selection . Multi , CHOOSE _TYPE _ALL : BI . Selection . All , CHOOSE _TYPE _NONE : BI . Selection . None , CHOOSE _TYPE _DEFAULT : BI . Selection . Default } ) , BI . ButtonGroup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.button_group" , BI . ButtonGroup ) , BI . ButtonTree = BI . inherit ( BI . ButtonGroup , { _defaultConfig : function ( ) { return BI . extend ( BI . ButtonTree . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-button-tree" } ) } , _init : function ( ) { BI . ButtonTree . superclass . _init . apply ( this , arguments ) } , setNotSelectedValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { return BI . isFunction ( c . setSelected ) ? void ( BI . deepContains ( a , c . getValue ( ) ) ? c . setSelected ( ! 1 ) : c . setSelected ( ! 0 ) ) : void c . setNotSelectedValue ( a ) } ) } , setEnabledValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { return BI . isFunction ( c . setEnabledValue ) ? void c . setEnabledValue ( a ) : void ( BI . deepContains ( a , c . getValue ( ) ) ? c . setEnable ( ! 0 ) : c . setEnable ( ! 1 ) ) } ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { return BI . isFunction ( c . setSelected ) ? void ( BI . deepContains ( a , c . getValue ( ) ) ? c . setSelected ( ! 0 ) : c . setSelected ( ! 1 ) ) : void c . setValue ( a ) } ) } , getNotSelectedValue : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = BI . concat ( a , c . getNotSelectedValue ( ) ) ) : void ( c . isEnabled ( ) && c . isSelected && ! c . isSelected ( ) && a . push ( c . getValue ( ) ) ) } ) , a } , getValue : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = BI . concat ( a , c . getValue ( ) ) ) : void ( c . isEnabled ( ) && c . isSelected && c . isSelected ( ) && a . push ( c . getValue ( ) ) ) } ) , a } , getSelectedButtons : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = a . concat ( c . getSelectedButtons ( ) ) ) : void ( c . isSelected && c . isSelected ( ) && a . push ( c ) ) } ) , a } , getNotSelectedButtons : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = a . concat ( c . getNotSelectedButtons ( ) ) ) : void ( c . isSelected && ! c . isSelected ( ) && a . push ( c ) ) } ) , a } , getAllLeaves : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = a . concat ( c . getAl
b . isViewVisible ( ) ? ( b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _EXPAND ) ) : ( b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _COLLAPSE ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ; b . element . off ( g + "." + b . getName ( ) ) . on ( g + "." + b . getName ( ) , function ( a ) { h ( a ) , e ( a ) } ) ; break ; case "click-hover" : var h = BI . debounce ( function ( a ) { b . combo . element . _ _isMouseInBounds _ _ ( a ) && b . isEnabled ( ) && b . isValid ( ) && b . combo . isEnabled ( ) && b . combo . isValid ( ) && ( b . _popupView ( ) , b . isViewVisible ( ) && ( b . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , b . combo ) , b . fireEvent ( BI . Combo . EVENT _EXPAND ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ; b . element . off ( "click." + b . getName ( ) ) . on ( "click." + b . getName ( ) , function ( a ) { h ( a ) , e ( a ) } ) , b . element . on ( "mouseleave." + b . getName ( ) , function ( c ) { b . popupView && ( b . popupView . element . on ( "mouseenter." + b . getName ( ) , function ( c ) { f = ! 0 , b . popupView . element . on ( "mouseleave." + b . getName ( ) , function ( b ) { a ( ) } ) , b . popupView . element . off ( "mouseenter." + b . getName ( ) ) } ) , BI . defer ( function ( ) { f || a ( ) } , 50 ) ) } ) } } ) } , _initCombo : function ( ) { this . combo = BI . createWidget ( this . options . el , { value : this . options . value } ) } , _assertPopupView : function ( ) { var a = this , b = this . options ; null == this . popupView && ( this . popupView = BI . createWidget ( this . options . popup , { type : "bi.popup_view" , value : b . value } , this ) , this . popupView . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { b === BI . Events . CLICK && ( a . combo . setValue ( a . getValue ( ) ) , a . fireEvent ( BI . Combo . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . popupView . setVisible ( ! 1 ) , BI . nextTick ( function ( ) { a . fireEvent ( BI . Combo . EVENT _AFTER _INIT ) } ) ) } , _assertPopupViewRender : function ( ) { this . _assertPopupView ( ) , this . _rendered || ( BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this . options . container || this , items : [ { el : this . popupView } ] } ) , this . _rendered = ! 0 ) } , _hideIf : function ( a ) { if ( this . element . find ( a . target ) . length > 0 || this . popupView && this . popupView . element . find ( a . target ) . length > 0 || "CodeMirror-cursor" === a . target . className || BI . Widget . _renderEngine . createElement ( a . target ) . closest ( ".CodeMirror-hints" ) . length > 0 ) { var b = this . options . direction . split ( "," ) ; return void ( ( BI . contains ( b , "innerLeft" ) || BI . contains ( b , "innerRight" ) ) && ( this . adjustWidth ( ) , this . adjustHeight ( ) ) ) } var c = this . options . hideChecker . apply ( this , [ a ] ) ; c !== ! 1 && this . _hideView ( ) } , _hideView : function ( ) { this . fireEvent ( BI . Combo . EVENT _BEFORE _HIDEVIEW ) , this . options . destroyWhenHide === ! 0 ? ( this . popupView && this . popupView . destroy ( ) , this . popupView = null , this . _rendered = ! 1 ) : this . popupView && this . popupView . invisible ( ) , this . element . removeClass ( this . options . comboClass ) , BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mousedown." + this . getName ( ) ) . unbind ( "mousewheel." + this . getName ( ) ) , this . fireEvent ( BI . Combo . EVENT _AFTER _HIDEVIEW ) } , _popupView : function ( a ) { this . _assertPopupViewRender ( ) , this . fireEvent ( BI . Combo . EVENT _BEFORE _POPUPVIEW ) , this . popupView . visible ( ) , this . adjustWidth ( a ) , this . adjustHeight ( a ) , this . element . addClass ( this . options . comboClass ) , BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mousedown." + this . getName ( ) ) . unbind ( "mousewheel." + this . getName ( ) ) , BI . Widget . _renderEngine . createElement ( document ) . bind ( "mousedown." + this . getName ( ) , BI . bind ( this . _hideIf , this ) ) . bind ( "mousewheel." + this . getName ( ) , BI . bind ( this . _hideIf , this ) ) , this . fireEvent ( BI . Combo . EVENT _AFTER _POPUPVIEW ) } , adjustWidth : function ( a ) { var b = this . options ; if ( this . popupView && b . isNeedAdjustWidth === ! 0 ) { this . resetListWidth ( "" ) ; var c = this . popupView . element . outerWidth ( ) , d = this . element . outerWidth ( ) || b . width ; c > d + 80 ? d += 80 : c > d && ( d = c ) , this . resetListWidth ( d < 100 ? 100 : d ) } } , adjustHeight : function ( a ) { var b = this . options , c = { } ; if ( this . popupView ) { var d = this . popupView . isVisible ( ) ; this . popupView . visible ( ) ; var e = BI . isNotNull ( a ) ? { element : { offset : function ( ) { return { left : a . pageX , top : a . pageY } } , bounds : function ( ) { return { x : a . offsetX , y : a . offsetY , width : 0 , height : 24 } } , outerWidth : function ( ) { return 0 } , outerHeight : function ( ) { return 24 } } } : this . combo ; switch ( b . direction ) { case "bottom" : case "bottom,right" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset , b . adjustYOffset || b . adjustLength , b . i
a . isEnabled ( ) && a . switcher . isEnabled ( ) && a . element . addClass ( b . hoverClass ) } , function ( ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && a . element . removeClass ( b . hoverClass ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . switcher } ] } ) , b . isDefaultInit && this . _assertPopupView ( ) } , _toggle : function ( ) { this . _assertPopupView ( ) , this . isExpanded ( ) ? this . _hideView ( ) : this . isEnabled ( ) && this . _popupView ( ) } , _initPullDownAction : function ( ) { var a = this , b = this . options , c = this . options . trigger . split ( "," ) ; BI . each ( c , function ( c , d ) { switch ( d ) { case "hover" : a . element [ d ] ( function ( b ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && ( a . _popupView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _EXPAND ) ) } , function ( ) { a . isEnabled ( ) && a . switcher . isEnabled ( ) && b . toggle && ( a . _hideView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _COLLAPSE ) ) } ) ; break ; default : d && a . element . off ( d + "." + a . getName ( ) ) . on ( d + "." + a . getName ( ) , BI . debounce ( function ( c ) { a . switcher . element . _ _isMouseInBounds _ _ ( c ) && a . isEnabled ( ) && a . switcher . isEnabled ( ) && ( b . toggle ? a . _toggle ( ) : a . _popupView ( ) , a . isExpanded ( ) ? ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _EXPAND ) ) : ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . switcher ) , a . fireEvent ( BI . Switcher . EVENT _COLLAPSE ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ) } } ) } , _initSwitcher : function ( ) { this . switcher = BI . createWidget ( this . options . el , { value : this . options . value } ) } , _assertPopupView : function ( ) { var a = this , b = this . options ; this . _created || ( this . popupView = BI . createWidget ( b . popup , { type : "bi.button_group" , element : b . adapter && BI . Maskers . create ( this . getName ( ) , b . adapter , BI . extend ( { container : this } , b . masker ) ) , cls : "switcher-popup" , layouts : [ { type : "bi.vertical" , hgap : 0 , vgap : 0 } ] , value : b . value } , this ) , this . popupView . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b === BI . Events . CLICK && a . fireEvent ( BI . Switcher . EVENT _CHANGE , c , d ) } ) , b . direction === BI . Direction . Custom || b . adapter || BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . popupView } ] } ) , this . _created = ! 0 , BI . nextTick ( function ( ) { a . fireEvent ( BI . Switcher . EVENT _AFTER _INIT ) } ) ) } , _hideView : function ( ) { this . fireEvent ( BI . Switcher . EVENT _BEFORE _HIDEVIEW ) ; var a = this , b = this . options ; b . adapter ? BI . Maskers . hide ( a . getName ( ) ) : a . popupView && a . popupView . setVisible ( ! 1 ) , BI . nextTick ( function ( ) { b . adapter ? BI . Maskers . hide ( a . getName ( ) ) : a . popupView && a . popupView . setVisible ( ! 1 ) , a . element . removeClass ( b . switcherClass ) , a . fireEvent ( BI . Switcher . EVENT _AFTER _HIDEVIEW ) } ) } , _popupView : function ( ) { var a = this , b = this . options ; this . _assertPopupView ( ) , this . fireEvent ( BI . Switcher . EVENT _BEFORE _POPUPVIEW ) , b . adapter ? BI . Maskers . show ( this . getName ( ) ) : a . popupView . setVisible ( ! 0 ) , BI . nextTick ( function ( c ) { b . adapter ? BI . Maskers . show ( c ) : a . popupView . setVisible ( ! 0 ) , a . element . addClass ( b . switcherClass ) , a . fireEvent ( BI . Switcher . EVENT _AFTER _POPUPVIEW ) } , this . getName ( ) ) } , populate : function ( a ) { this . _assertPopupView ( ) , this . popupView . populate . apply ( this . popupView , arguments ) , this . switcher . populate . apply ( this . switcher , arguments ) } , _setEnable : function ( a ) { BI . Switcher . superclass . _setEnable . apply ( this , arguments ) , ! a && this . isViewVisible ( ) && this . _hideView ( ) } , setValue : function ( a ) { this . switcher . setValue ( a ) , BI . isNull ( this . popupView ) ? this . options . popup . value = a : this . popupView . setValue ( a ) } , getValue : function ( ) { return BI . isNull ( this . popupView ) ? this . options . popup . value : this . popupView . getValue ( ) } , setAdapter : function ( a ) { this . options . adapter = a , BI . Maskers . remove ( this . getName ( ) ) } , isViewVisible : function ( ) { return this . isEnabled ( ) && this . switcher . isEnabled ( ) && ( this . options . adapter ? BI . Maskers . isVisible ( this . getName ( ) ) : this . popupView && this . popupView . isVisible ( ) ) } , isExpanded : function ( ) { return this . isViewVisible ( ) } , showView : function ( ) { this . isEnabled ( ) && this . switcher . isEnabled ( ) && this . _popupView ( ) } , hideView : function ( ) { this . _hideView ( ) } , getView : function ( ) { return this . popupView } , adjustView : function ( ) { this . isViewVisible ( ) && BI . Maskers . show ( this . getName ( ) ) } , getAllLeaves : function ( ) { return this
this . renderedIndex = - 1 , this . _clearChildren ( ) , this . cache = { } , this . options . scrollTop = 0 , this . topBlank . setHeight ( 0 ) , this . bottomBlank . setHeight ( 0 ) } , populate : function ( a ) { a && this . options . items !== a && this . restore ( ) , this . _populate ( ) } , destroyed : function ( ) { this . restore ( ) } } ) , BI . shortcut ( "bi.virtual_list" , BI . VirtualList ) , BI . Pager = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Pager . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-pager" , behaviors : { } , layouts : [ { type : "bi.horizontal" , hgap : 10 , vgap : 0 } ] , dynamicShow : ! 0 , dynamicShowFirstLast : ! 1 , dynamicShowPrevNext : ! 1 , pages : ! 1 , curr : function ( ) { return 1 } , groups : 0 , jump : BI . emptyFn , first : ! 1 , last : ! 1 , prev : "上一页" , next : "下一页" , firstPage : 1 , lastPage : function ( ) { return 1 } , hasPrev : BI . emptyFn , hasNext : BI . emptyFn } ) } , _init : function ( ) { BI . Pager . superclass . _init . apply ( this , arguments ) ; this . currPage = BI . result ( this . options , "curr" ) , this . _populate ( ) } , _populate : function ( ) { var a = this , b = this . options , c = [ ] , d = { } ; this . empty ( ) ; var e = BI . result ( b , "pages" ) , f = BI . result ( this , "currPage" ) , g = BI . result ( b , "groups" ) , h = BI . result ( b , "first" ) , i = BI . result ( b , "last" ) , j = BI . result ( b , "prev" ) , k = BI . result ( b , "next" ) ; e === ! 1 ? ( g = 0 , h = ! 1 , i = ! 1 ) : g > e && ( g = e ) , d . index = Math . ceil ( ( f + ( g > 1 && g !== e ? 1 : 0 ) ) / ( 0 === g ? 1 : g ) ) , ( ! b . dynamicShow && ! b . dynamicShowPrevNext || f > 1 ) && j !== ! 1 && ( BI . isKey ( j ) ? c . push ( { text : j , value : "prev" , disabled : e === ! 1 ? b . hasPrev ( f ) === ! 1 : ! ( f > 1 && j !== ! 1 ) } ) : c . push ( BI . extend ( { disabled : e === ! 1 ? b . hasPrev ( f ) === ! 1 : ! ( f > 1 && j !== ! 1 ) } , j ) ) ) , ( ! b . dynamicShow && ! b . dynamicShowFirstLast || d . index > 1 && 0 !== g ) && h && ( c . push ( { text : h , value : "first" , disabled : ! ( d . index > 1 && 0 !== g ) } ) , d . index > 1 && 0 !== g && c . push ( { type : "bi.label" , cls : "page-ellipsis" , text : "…" } ) ) , d . poor = Math . floor ( ( g - 1 ) / 2 ) , d . start = d . index > 1 ? f - d . poor : 1 , d . end = d . index > 1 ? function ( ) { var a = f + ( g - d . poor - 1 ) ; return a > e ? e : a } ( ) : g , d . end - d . start < g - 1 && ( d . start = d . end - g + 1 ) ; var l = d . start , m = d . end ; for ( h && i && d . index > 1 && 0 !== g && e > g && d . end < e && 0 !== g && ( l ++ , m -- ) ; l <= m ; l ++ ) l === f ? c . push ( { text : l , value : l , selected : ! 0 } ) : c . push ( { text : l , value : l } ) ; ( ! b . dynamicShow && ! b . dynamicShowFirstLast || e > g && d . end < e && 0 !== g ) && i && ( e > g && d . end < e && 0 !== g && c . push ( { type : "bi.label" , cls : "page-ellipsis" , text : "…" } ) , c . push ( { text : i , value : "last" , disabled : ! ( e > g && d . end < e && 0 !== g ) } ) ) , d . flow = ! j && 0 === g , ( ! b . dynamicShow && ! b . dynamicShowPrevNext && k || f !== e && k || d . flow ) && c . push ( function ( ) { return BI . isKey ( k ) ? e === ! 1 ? { text : k , value : "next" , disabled : b . hasNext ( f ) === ! 1 } : d . flow && f === e ? { text : k , value : "next" , disabled : ! 0 } : { text : k , value : "next" , disabled : ! ( f !== e && k || d . flow ) } : BI . extend ( { disabled : e === ! 1 ? b . hasNext ( f ) === ! 1 : ! ( f !== e && k || d . flow ) } , k ) } ( ) ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , element : this , items : BI . createItems ( c , { cls : "bi-list-item-select bi-border-radius" , height : 23 , hgap : 10 } ) , behaviors : b . behaviors , layouts : b . layouts } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( c , d , f ) { if ( c === BI . Events . CLICK ) { var g = a . button _group . getValue ( ) [ 0 ] ; switch ( g ) { case "first" : a . currPage = 1 ; break ; case "last" : a . currPage = e ; break ; case "prev" : a . currPage -- ; break ; case "next" : a . currPage ++ ; break ; default : a . currPage = g } b . jump . apply ( a , [ { pages : e , curr : a . currPage } ] ) , a . _populate ( ) , a . fireEvent ( BI . Pager . EVENT _CHANGE , f ) } a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . fireEvent ( BI . Pager . EVENT _AFTER _POPULATE ) } , getCurrentPage : function ( ) { return this . currPage } , setAllPages : function ( a ) { this . options . pages = a } , hasPrev : function ( a ) { a || ( a = 1 ) ; var b = this . options , c = this . options . pages ; return c === ! 1 ? b . hasPrev ( a ) : a > 1 } , hasNext : function ( a ) { a || ( a = 1 ) ; var b = this . options , c = this . options . pages ; return c === ! 1 ? b . hasNext ( a ) : a < c } , setValue : function ( a ) { var b = this . options ; if ( a = 0 | a , a = a < 1 ? 1 : a , b . pages === ! 1 ) { var c = BI . result ( b , "lastPage" ) , d = 1 ; this . currPage = a > c ? c : ( d = BI . result ( b , "firstPage" ) , a < d ? d : a ) } else a = a > b . pages ? b . pages : a , this . currPage = a ; this . _populate ( ) } , getValue : function ( ) { var a = this . button _group . getValue ( ) [ 0 ] ; switch ( a ) { case "prev" : return - 1 ; case "next" : return 1 ; case "first" : return BI . MIN ; case "last" : return BI . MAX ; default : return a } } , attr : function ( a , b ) { BI . Pager . superclass . attr . apply ( this , arguments ) , "curr" === a && ( this . currPage = BI . result ( this . options , "curr" ) ) } , populate : function ( ) { this . _populate ( ) } } ) , BI . Pager . EVENT _CHANGE = "EVENT_CHANGE" ,
hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , tipType : "warning" , inputType : "text" , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 1 , watermark : "" , errorText : "" } ) } , _init : function ( ) { BI . Editor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = this . addWidget ( BI . createWidget ( { type : "bi.input" , element : "<input type='" + b . inputType + "'/>" , root : ! 0 , value : b . value , watermark : b . watermark , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank } ) ) , this . editor . element . css ( { width : "100%" , height : "100%" , border : "none" , outline : "none" , padding : "0" , margin : "0" } ) , BI . isKey ( this . options . watermark ) && this . _assertWaterMark ( ) ; var c = [ ] ; this . watermark && c . push ( { el : this . watermark , left : 3 , right : 3 , top : 0 , bottom : 0 } ) , c . push ( { el : this . editor , left : 0 , right : 0 , top : 0 , bottom : 0 } ) ; var d = [ { el : { type : "bi.absolute" , ref : function ( b ) { a . contentWrapper = b } , items : c } , left : b . hgap + b . lgap , right : b . hgap + b . rgap , top : b . vgap + b . tgap , bottom : b . vgap + b . bgap } ] ; BI . createWidget ( { type : "bi.absolute" , element : this , items : d } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _FOCUS , function ( ) { a . _checkError ( ) , a . element . addClass ( "bi-editor-focus" ) , a . fireEvent ( BI . Editor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Input . EVENT _BLUR , function ( ) { a . _setErrorVisible ( ! 1 ) , a . element . removeClass ( "bi-editor-focus" ) , a . fireEvent ( BI . Editor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Input . EVENT _CLICK , function ( ) { a . fireEvent ( BI . Editor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Input . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Editor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . Editor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Input . EVENT _QUICK _DOWN , function ( b ) { b . keyCode !== BI . KeyCode . TAB && a . watermark && a . watermark . invisible ( ) } ) , this . editor . on ( BI . Input . EVENT _VALID , function ( ) { a . _checkWaterMark ( ) , a . _setErrorVisible ( ! 1 ) , a . fireEvent ( BI . Editor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Input . EVENT _ERROR , function ( ) { a . _checkWaterMark ( ) , a . fireEvent ( BI . Editor . EVENT _ERROR , arguments ) , a . _setErrorVisible ( a . isEditing ( ) ) } ) , this . editor . on ( BI . Input . EVENT _RESTRICT , function ( ) { a . _checkWaterMark ( ) ; var b = a . _setErrorVisible ( ! 0 ) ; b && b . element . fadeOut ( 100 , function ( ) { b . element . fadeIn ( 100 ) } ) , a . fireEvent ( BI . Editor . EVENT _RESTRICT , arguments ) } ) , this . editor . on ( BI . Input . EVENT _EMPTY , function ( ) { a . _checkWaterMark ( ) , a . fireEvent ( BI . Editor . EVENT _EMPTY , arguments ) } ) , this . editor . on ( BI . Input . EVENT _ENTER , function ( ) { a . fireEvent ( BI . Editor . EVENT _ENTER , arguments ) } ) , this . editor . on ( BI . Input . EVENT _SPACE , function ( ) { a . fireEvent ( BI . Editor . EVENT _SPACE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _BACKSPACE , function ( ) { a . fireEvent ( BI . Editor . EVENT _BACKSPACE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _REMOVE , function ( ) { a . fireEvent ( BI . Editor . EVENT _REMOVE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _START , function ( ) { a . fireEvent ( BI . Editor . EVENT _START , arguments ) } ) , this . editor . on ( BI . Input . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . Editor . EVENT _PAUSE , arguments ) } ) , this . editor . on ( BI . Input . EVENT _STOP , function ( ) { a . fireEvent ( BI . Editor . EVENT _STOP , arguments ) } ) , this . editor . on ( BI . Input . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . Editor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Input . EVENT _CHANGE _CONFIRM , function ( ) { a . fireEvent ( BI . Editor . EVENT _CHANGE _CONFIRM , arguments ) } ) , this . element . click ( function ( a ) { return a . stopPropagation ( ) , ! 1 } ) , BI . isKey ( this . options . value ) || BI . isEmptyString ( this . options . value ) ? ( this . _checkError ( ) , this . _checkWaterMark ( ) ) : this . _checkWaterMark ( ) } , _checkToolTip : function ( ) { var a = this . options , b = a . errorText ; BI . isFunction ( b ) && ( b = b ( this . editor . getValue ( ) ) ) , BI . isKey ( b ) && ( ! this . isEnabled ( ) || this . isValid ( ) || BI . Bubbles . has ( this . getName ( ) ) && BI . Bubbles . get ( this . getName ( ) ) . isVisible ( ) ? this . setTitle ( "" ) : this . setTitle ( b ) ) } , _assertWaterMark : function ( ) { var a = this , b = this . options ; BI . isNull ( this . watermark ) && ( this . watermark = BI . createWidget ( { type : "bi.label" , cls : "bi-water-mark" , text : this . options . watermark , height : b . height - 2 * ( b . vgap + b . tgap ) , whiteSpace : "nowrap" , textAlign : "left" } ) , this . watermark . element . bind ( { mousedown : function ( b ) { a . isEn
this . isValid ( ) && ( this . _lastValidValue = this . _lastSubmitValue = this . getValue ( ) ) } , this ) ) } , getValue : function ( ) { return this . element . val ( ) || "" } , isEditing : function ( ) { return this . _isEditing } , getLastValidValue : function ( ) { return this . _lastValidValue } , getLastChangedValue : function ( ) { return this . _lastChangedValue } , _setValid : function ( ) { BI . Input . superclass . _setValid . apply ( this , arguments ) , this . isValid ( ) ? ( this . _lastChangedValue = this . getValue ( ) , this . element . removeClass ( "bi-input-error" ) , this . fireEvent ( BI . Input . EVENT _VALID , BI . trim ( this . getValue ( ) ) , this ) ) : ( this . _lastChangedValue === this . getValue ( ) && ( this . _lastChangedValue = null ) , this . element . addClass ( "bi-input-error" ) , this . fireEvent ( BI . Input . EVENT _ERROR , BI . trim ( this . getValue ( ) ) , this ) ) } , _setEnable : function ( a ) { BI . Input . superclass . _setEnable . apply ( this , [ a ] ) , this . element [ 0 ] . disabled = ! a } } ) , BI . Input . EVENT _CHANGE = "EVENT_CHANGE" , BI . Input . EVENT _FOCUS = "EVENT_FOCUS" , BI . Input . EVENT _CLICK = "EVENT_CLICK" , BI . Input . EVENT _BLUR = "EVENT_BLUR" , BI . Input . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . Input . EVENT _QUICK _DOWN = "EVENT_QUICK_DOWN" , BI . Input . EVENT _SPACE = "EVENT_SPACE" , BI . Input . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . Input . EVENT _START = "EVENT_START" , BI . Input . EVENT _PAUSE = "EVENT_PAUSE" , BI . Input . EVENT _STOP = "EVENT_STOP" , BI . Input . EVENT _CHANGE _CONFIRM = "EVENT_CHANGE_CONFIRM" , BI . Input . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . Input . EVENT _REMOVE = "EVENT_REMOVE" , BI . Input . EVENT _EMPTY = "EVENT_EMPTY" , BI . Input . EVENT _VALID = "EVENT_VALID" , BI . Input . EVENT _ERROR = "EVENT_ERROR" , BI . Input . EVENT _ENTER = "EVENT_ENTER" , BI . Input . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . shortcut ( "bi.input" , BI . Input ) , BI . ImageRadio = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { var a = BI . ImageRadio . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-radio radio-icon" , selected : ! 1 , handler : BI . emptyFn , width : 16 , height : 16 , iconWidth : 16 , iconHeight : 16 } ) } , _init : function ( ) { BI . ImageRadio . superclass . _init . apply ( this , arguments ) } , doClick : function ( ) { BI . ImageRadio . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . ImageRadio . EVENT _CHANGE ) } } ) , BI . ImageRadio . EVENT _CHANGE = BI . IconButton . EVENT _CHANGE , BI . shortcut ( "bi.image_radio" , BI . ImageRadio ) , BI . Radio = BI . inherit ( BI . BasicButton , { props : { baseCls : "bi-radio" , selected : ! 1 , handler : BI . emptyFn , width : 16 , height : 16 , iconWidth : 14 , iconHeight : 14 } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.center_adapt" , element : this . element , items : [ { type : "bi.layout" , cls : "radio-content" , ref : function ( b ) { a . radio = b } , width : b . iconWidth , height : b . iconHeight } ] } } , _setEnable : function ( a ) { BI . Radio . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . radio . element . removeClass ( "base-disabled disabled" ) : this . radio . element . addClass ( "base-disabled disabled" ) } , doClick : function ( ) { BI . Radio . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . Radio . EVENT _CHANGE ) } , setSelected : function ( a ) { BI . Radio . superclass . setSelected . apply ( this , arguments ) , a ? this . radio . element . addClass ( "bi-high-light-background" ) : this . radio . element . removeClass ( "bi-high-light-background" ) } } ) , BI . Radio . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.radio" , BI . Radio ) , BI . AbstractLabel = BI . inherit ( BI . Single , { _defaultConfig : function ( a ) { var b = BI . AbstractLabel . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( b , { textAlign : "center" , whiteSpace : "nowrap" , textWidth : null , textHeight : null , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , text : "" , highLight : ! 1 } ) } , _createJson : function ( ) { var a = this . options ; return { type : "bi.text" , textAlign : a . textAlign , whiteSpace : a . whiteSpace , lineHeight : a . textHeight , text : a . text , value : a . value , py : a . py , keyword : a . keyword , highLight : a . highLight } } , _init : function ( ) { BI . AbstractLabel . superclass . _init . apply ( this , arguments ) , "center" === this . options . textAlign ? this . _createCenterEl ( ) : this . _createNotCenterEl ( ) } , _createCenterEl : function ( ) { var a = this . options , b = this . _createJson ( ) ; return b . textAlign = "left" , BI . isNumber ( a . width ) && a . width > 0 ? BI . isNumber ( a . textWidth ) && a . textWidth > 0 ? ( b . maxWidth = a . textWidth , BI . isNumber ( a . height ) && a . height > 0 ? void BI . createWidget ( { type : "bi.center_adapt" , height : a . height , scrollable : "normal" === a . whiteSpace , element : this , items : [
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 : tools . apply ( setting . async . url , [ setting . treeId , node ] , setting . async . url ) , data : tmpParam , dataType : setting . async . dataType , success : function ( msg ) { if ( _tmpV == data . getRoot ( setting ) . _ver ) { var newNodes = [ ] ; try { newNodes = msg && 0 != msg . length ? "string" == typeof msg ? eval ( "(" + msg + ")" ) : msg : [ ] } catch ( err ) { newNodes = msg } node && ( node . isAjaxing = null , node . zAsync = ! 0 ) , view . setNodeLineIcos ( setting , node ) , newNodes && "" !== newNodes ? ( newNodes = tools . apply ( setting . async . dataFilter , [ setting . treeId , node , newNodes ] , newNodes ) , view . addNodes ( setting , node , newNodes ? tools . clone ( newNodes ) : [ ] , ! ! isSilent ) ) : view . addNodes ( setting , node , [ ] , ! ! isSilent ) , setting . treeObj . trigger ( consts . event . ASYNC _SUCCESS , [ setting . treeId , node , msg ] ) , tools . apply ( callback ) } } , error : function ( a , b , c ) { _tmpV == data . getRoot ( setting ) . _ver && ( node && ( node . isAjaxing = null ) , view . setNodeLineIcos ( setting , node ) , setting . treeObj . trigger ( consts . event . ASYNC _ERROR , [ setting . treeId , node , a , b , c ] ) ) } } ) , ! 0 } , cancelPreSelectedNode : function ( a , b , c ) { var d , e , f = data . getRoot ( a ) . curSelectedList ; for ( d = f . length - 1 ; d >= 0 ; d -- ) if ( e = f [ d ] , b === e || ! b && ( ! c || c !== e ) ) { if ( $$ ( e , consts . id . A , a ) . removeClass ( consts . node . CURSELECTED ) , b ) { data . removeSelectedNode ( a , b ) , a . treeObj . trigger ( consts . event . UNSELECTED , [ event , a . treeId , e ] ) ; break } f . splice ( d , 1 ) , a . treeObj . trigger ( consts . event . UNSELECTED , [ event , a . treeId , e ] ) } } , createNodeCallback : function ( a ) { if ( a . callback . onNodeCreated || a . view . addDiyDom ) for ( var b = data . getRoot ( a ) ; b . createdNodes . length > 0 ; ) { var c = b . createdNodes . shift ( ) ; tools . apply ( a . view . addDiyDom , [ a . treeId , c ] ) , a . callback . onNodeCreated && a . treeObj . trigger ( consts . event . NODECREATED , [ a . treeId , c ] ) } } , createNodes : function ( a , b , c , d ) { if ( c && 0 != c . length ) { var e = data . getRoot ( a ) , f = a . data . key . children , g = ! d || d . open || ! ! $$ ( d [ f ] [ 0 ] , a ) . get ( 0 ) ; e . createdNodes = [ ] ; var h = view . appendNodes ( a , b , c , d , ! 0 , g ) ; if ( d ) { var i = $$ ( d , consts . id . UL , a ) ; i . get ( 0 ) && i . append ( h . join ( "" ) ) } else a . treeObj . append ( h . join ( "" ) ) ; view . createNodeCallback (
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 : b . iconWrapperWidth } , 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" , iconCls : "" , height : 24 } ) } , _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 . iconCls , once : b . once , iconWrapperWidth : b . iconWrapperWidth , 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 : 24 , textAlign : "left" } ) } , _init : function ( ) { BI . SingleSelectItem . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : a . textAlign , whiteSpace : "nowrap" , textHeight : a . height , height : a . height , hgap : a . hgap , text : a . text , keyword : a . keyword , value : a . value , title : a . title || a . text , warningTitle : a . warningTitle , py : a . py } ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . SingleSelectItem . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . SingleSelectItem . EVENT _CHANGE , this . isSelected ( ) , this ) } , setSelected : function ( a ) { BI . SingleSelectItem . superclass . setSelected . apply ( this , arguments ) } } ) , BI . SingleSelectItem . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_select_item" , BI . SingleSelectItem ) , BI . SingleSelectRadioItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectRadioItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-single-select-radio-item" , logic : { dynamic : ! 1 } , hgap : 10 , height : 24 } ) } , _init : function ( ) { BI . SingleSelectRadioItem . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . radio = BI . createWidget ( { type : "bi.radio" } ) , this . text = BI . createWidget ( { type : "bi.label" , cls : "list-item-text" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : a . height , height : a . height , hgap : a . hgap , text : a . text , keyword : a . keyword , value : a . value , py : a . py } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , { type : "bi.center_adapt" , items : [ this . radio ] , width : 16 } , this . text ) } ) ) ) ) } , doRedMark
columns : 2 , rows : 6 , columnSize : [ . 5 , . 5 ] , rowSize : 24 } ) ) , { 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 , ! ! BI . checkDateVoid ( 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 , ! ! BI . checkDateVoid ( 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 = BI . getDate ( ) . getFullYear ( ) ; return a - ( ( a - b + 3 ) % BI . YearCalendar . INTERVAL + 12 ) % BI . YearCalendar . INTERVAL } , getEndYear : function ( a ) { return BI . YearCalendar . getStartYear ( a ) + BI . YearCalendar . INTERVAL - 1 } , getPageByYear : function ( a ) { var b = BI . getDate ( ) . getFullYear ( ) ; return a = BI . YearCalendar . getStartYear ( a ) , ( a - b + 3 ) / BI . YearCalendar . INTERVAL } } ) , BI . shortcut ( "bi.year_calendar" , BI . YearCalendar ) , BI . ArrowTreeGroupNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . ArrowTreeGroupNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-arrow-group-node-checkbox" } ) } , setSelected : function ( a ) { BI . ArrowTreeGroupNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a ? this . element . removeClass ( "expander-right-font" ) . addClass ( "expander-down-font" ) : this . element . removeClass ( "expander-down-font" ) . addClass ( "expander-right-font" ) } } ) , BI . shortcut ( "bi.arrow_group_node_checkbox" , BI . ArrowTreeGroupNodeCheckbox ) , BI . CheckingMarkNode = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . CheckingMarkNode . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "check-mark-font" } ) } , _init : function ( ) { BI . CheckingMarkNode . superclass . _init . apply ( this , arguments ) , this . setSelected ( this . options . selected ) } , setSelected : function ( a ) { BI . CheckingMarkNode . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . element . addClass ( "check-mark-font" ) : this . element . removeClass ( "check-mark-font" ) } } ) , BI . shortcut ( "bi.checking_mark_node" , BI . CheckingMarkNode ) , BI . FirstTreeNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . FirstTreeNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "tree-collapse-icon-type2" , iconWidth : 24 , iconHeight : 24 } ) } , setSelected : function ( a ) { BI . FirstTreeNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . element . addClass ( "tree-expand-icon-type2" ) : this . element . removeClass ( "tree-expand-icon-type2" ) } } ) , BI . shortcut ( "bi.first_tree_node_checkbox" , BI . FirstTreeNodeCheckbox ) , BI . LastTreeNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . LastTreeNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "tree-collapse-icon-type4" , iconWidth : 24 , iconHeight : 24 } ) } , setSelected : function ( a ) { BI . LastTreeNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . element . addClass ( "tree-expand-icon-type4" ) : this . element . removeClass ( "tree-expand-icon-type4" ) } } ) , BI . shortcut ( "bi.last_tree_node_checkbox" , BI . LastTreeNodeCheckbox ) , BI . MidTreeNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MidTreeNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "tree-collapse-icon-type3" , iconWidth : 24 , iconHeight : 24 } ) } , setSelected : function ( a ) { BI . MidTreeNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . element . addClass ( "tree-expand-icon-type3" ) : this . element . removeClass ( "tree-expand-icon-type3" ) } } ) , BI . shortcut ( "bi.mid_tree_node_checkbox" , BI . MidTreeNodeCheckbox ) , BI . TreeNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . TreeNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "tree-collapse-icon-type1" , iconWidth : 24 , iconHeight : 24 } ) } , setSelected : function ( a ) { BI . TreeNodeCheckbox . superclass . setSelected . ap
} , _createTriangle : function ( a ) { var b = { } , c = { } , d = this . options . adjustLength , e = this . element . offset ( ) , f = e . left , g = e . left + this . element . outerWidth ( ) , h = e . top , i = e . top + this . element . outerHeight ( ) ; switch ( a ) { case "left" : b = { top : h , height : this . element . outerHeight ( ) , left : f - d - this . _const . TRIANGLE _LENGTH } , c = { width : this . _const . TRIANGLE _LENGTH } ; break ; case "right" : b = { top : h , height : this . element . outerHeight ( ) , left : g + d } , c = { width : this . _const . TRIANGLE _LENGTH } ; break ; case "top" : b = { left : f , width : this . element . outerWidth ( ) , top : h - d - this . _const . TRIANGLE _LENGTH } , c = { height : this . _const . TRIANGLE _LENGTH } ; break ; case "bottom" : b = { left : f , width : this . element . outerWidth ( ) , top : i + d } , c = { height : this . _const . TRIANGLE _LENGTH } } this . triangle && this . triangle . destroy ( ) , this . triangle = BI . createWidget ( c , { type : "bi.center_adapt" , cls : "button-combo-triangle-wrapper" , items : [ { type : "bi.layout" , cls : "bubble-combo-triangle-" + a } ] } ) , b . el = this . triangle , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ b ] } ) } , _createLeftTriangle : function ( ) { this . _createTriangle ( "left" ) } , _createRightTriangle : function ( ) { this . _createTriangle ( "right" ) } , _createTopTriangle : function ( ) { this . _createTriangle ( "top" ) } , _createBottomTriangle : function ( ) { this . _createTriangle ( "bottom" ) } , _showTriangle : function ( ) { var a = this . combo . getPopupPosition ( ) ; switch ( a . dir ) { case "left,top" : case "left,bottom" : this . _createLeftTriangle ( ) ; break ; case "right,top" : case "right,bottom" : this . _createRightTriangle ( ) ; break ; case "top,left" : case "top,right" : this . _createTopTriangle ( ) ; break ; case "bottom,left" : case "bottom,right" : this . _createBottomTriangle ( ) } } , _hideTriangle : function ( ) { this . triangle && this . triangle . destroy ( ) , this . triangle = null } , hideView : function ( ) { this . _hideTriangle ( ) , this . combo && this . combo . hideView ( ) } , showView : function ( ) { this . combo && this . combo . showView ( ) } , isViewVisible : function ( ) { return this . combo . isViewVisible ( ) } } ) , BI . BubbleCombo . EVENT _TRIGGER _CHANGE = "EVENT_TRIGGER_CHANGE" , BI . BubbleCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . BubbleCombo . EVENT _EXPAND = "EVENT_EXPAND" , BI . BubbleCombo . EVENT _COLLAPSE = "EVENT_COLLAPSE" , BI . BubbleCombo . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . BubbleCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . BubbleCombo . EVENT _AFTER _POPUPVIEW = "EVENT_AFTER_POPUPVIEW" , BI . BubbleCombo . EVENT _BEFORE _HIDEVIEW = "EVENT_BEFORE_HIDEVIEW" , BI . BubbleCombo . EVENT _AFTER _HIDEVIEW = "EVENT_AFTER_HIDEVIEW" , BI . shortcut ( "bi.bubble_combo" , BI . BubbleCombo ) , BI . BubblePopupView = BI . inherit ( BI . PopupView , { _defaultConfig : function ( ) { var a = BI . BubblePopupView . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : a . baseCls + " bi-bubble-popup-view" , minWidth : 220 , maxWidth : 300 , minHeight : 90 } ) } , _init : function ( ) { BI . BubblePopupView . superclass . _init . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.bubble_popup_view" , BI . BubblePopupView ) , BI . BubblePopupBarView = BI . inherit ( BI . BubblePopupView , { _defaultConfig : function ( ) { return BI . extend ( BI . BubblePopupBarView . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-bubble-bar-popup-view" , buttons : [ { value : ! 1 , text : BI . i18nText ( "BI-Basic_Cancel" ) , ghost : ! 0 } , { text : BI . i18nText ( BI . i18nText ( "BI-Basic_Sure" ) ) , value : ! 0 } ] } ) } , _init : function ( ) { BI . BubblePopupBarView . superclass . _init . apply ( this , arguments ) } , _createToolBar : function ( ) { var a = this . options , b = this , c = [ ] ; return BI . each ( a . buttons , function ( a , d ) { BI . isWidget ( d ) ? c . push ( d ) : c . push ( BI . extend ( { type : "bi.button" , height : 24 , handler : function ( a ) { b . fireEvent ( BI . BubblePopupBarView . EVENT _CLICK _TOOLBAR _BUTTON , a ) } } , d ) ) } ) , BI . createWidget ( { type : "bi.center" , height : 44 , rgap : 15 , items : [ { type : "bi.right_vertical_adapt" , lgap : 10 , items : c } ] } ) } , _createView : function ( ) { var a = this . options , b = BI . createWidget ( { type : "bi.button_group" , items : [ a . el ] , layouts : [ { type : "bi.vertical" , cls : "bar-popup-container" , hgap : 15 , tgap : 10 } ] } ) ; return b . element . css ( "min-height" , a . minHeight - 44 ) , b } } ) , BI . BubblePopupBarView . EVENT _CLICK _TOOLBAR _BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON" , BI . shortcut ( "bi.bubble_bar_popup_view" , BI . BubblePopupBarView ) , BI . TextBubblePopupBarView = BI . inherit ( BI . Widget , { props : function ( ) { return { baseCls : "bi-text-bubble-bar-popup-view" , text : "" , buttons : [ { level : "ignore" , value : ! 1 , text : BI . i18nText ( "BI-Basic_Cancel" ) } , { value : ! 0 , text : BI . i18nText ( " BI - B
} ) , this . editor . on ( BI . Editor . EVENT _ENTER , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _ENTER ) } ) , this . editor . on ( BI . Editor . EVENT _RESTRICT , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _RESTRICT ) } ) , this . editor . on ( BI . Editor . EVENT _EMPTY , function ( ) { a . _checkClear ( ) , a . fireEvent ( BI . ClearEditor . EVENT _EMPTY ) } ) , this . editor . on ( BI . Editor . EVENT _REMOVE , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _REMOVE ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _CONFIRM ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE _CONFIRM , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _CHANGE _CONFIRM ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _START ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _PAUSE ) } ) , this . editor . on ( BI . Editor . EVENT _STOP , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _STOP ) } ) , BI . isKey ( b . value ) ? this . clear . visible ( ) : this . clear . invisible ( ) } , _checkClear : function ( ) { this . getValue ( ) ? this . clear . visible ( ) : this . clear . invisible ( ) } , setWaterMark : function ( a ) { this . options . watermark = a , this . editor . setWaterMark ( a ) } , focus : function ( ) { this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) } , getValue : function ( ) { if ( this . isValid ( ) ) { var a = this . editor . getValue ( ) . match ( /[\S]+/g ) ; return BI . isNull ( a ) ? "" : a [ a . length - 1 ] } } , setValue : function ( a ) { this . editor . setValue ( a ) , BI . isKey ( a ) && this . clear . visible ( ) } , isValid : function ( ) { return this . editor . isValid ( ) } } ) , BI . ClearEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . ClearEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . ClearEditor . EVENT _BLUR = "EVENT_BLUR" , BI . ClearEditor . EVENT _CLICK = "EVENT_CLICK" , BI . ClearEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . ClearEditor . EVENT _SPACE = "EVENT_SPACE" , BI . ClearEditor . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . ClearEditor . EVENT _CLEAR = "EVENT_CLEAR" , BI . ClearEditor . EVENT _START = "EVENT_START" , BI . ClearEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . ClearEditor . EVENT _STOP = "EVENT_STOP" , BI . ClearEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . ClearEditor . EVENT _CHANGE _CONFIRM = "EVENT_CHANGE_CONFIRM" , BI . ClearEditor . EVENT _VALID = "EVENT_VALID" , BI . ClearEditor . EVENT _ERROR = "EVENT_ERROR" , BI . ClearEditor . EVENT _ENTER = "EVENT_ENTER" , BI . ClearEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . ClearEditor . EVENT _REMOVE = "EVENT_REMOVE" , BI . ClearEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.clear_editor" , BI . ClearEditor ) , BI . ShelterEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . ShelterEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-shelter-editor" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 0 , watermark : "" , errorText : "" , height : 24 , textAlign : "left" } ) } , _init : function ( ) { BI . ShelterEditor . 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 : "shelter-editor-text" , title : b . title , warningTitle : b . warningTitle , tipType : b . tipType , textAlign : b . textAlign , height : b . height , hgap : b . hgap } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . text , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . text . on ( BI . Controller . EVENT _CHANGE , function ( ) { arguments [ 2 ] = a , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . ShelterEditor . EVENT _CLICK _LABEL ) } ) , 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 . ShelterEditor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . ShelterEditor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . ShelterEditor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . ShelterEditor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function
baseCls : "bi-panel bi-border" , title : "" , titleButtons : [ ] , el : { } , logic : { dynamic : ! 1 } } ) } , _init : function ( ) { BI . Panel . superclass . _init . apply ( this , arguments ) ; var a = this . options ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "vertical" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "top" , this . _createTitle ( ) , this . options . el ) } ) ) ) ) } , _createTitle : function ( ) { var a = this , b = this . options ; return this . text = BI . createWidget ( { type : "bi.label" , cls : "panel-title-text" , text : b . title , height : 30 } ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , items : b . titleButtons , layouts : [ { type : "bi.center_adapt" , lgap : 10 } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . ButtonGroup . EVENT _CHANGE , function ( b , c ) { a . fireEvent ( BI . Panel . EVENT _CHANGE , b , c ) } ) , { el : { type : "bi.left_right_vertical_adapt" , cls : "panel-title bi-header-background bi-border-bottom" , height : 29 , items : { left : [ this . text ] , right : [ this . button _group ] } , lhgap : 10 , rhgap : 10 } , height : 29 } } , setTitle : function ( a ) { this . text . setValue ( a ) } } ) , BI . Panel . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.panel" , BI . Panel ) , BI . LinearSegmentButton = BI . inherit ( BI . BasicButton , { props : { extraCls : "bi-line-segment-button bi-list-item-effect" , once : ! 0 , readonly : ! 0 , hgap : 10 , height : 25 } , render : function ( ) { var a = this , b = this . options ; return [ { type : "bi.label" , text : b . text , height : b . height , value : b . value , hgap : b . hgap , ref : function ( ) { a . text = this } } , { type : "bi.absolute" , items : [ { el : { type : "bi.layout" , cls : "line-segment-button-line" , height : 2 , ref : function ( ) { a . line = this } } , left : 0 , right : 0 , bottom : 0 } ] } ] } , setSelected : function ( a ) { BI . LinearSegmentButton . superclass . setSelected . apply ( this , arguments ) , a ? this . line . element . addClass ( "bi-high-light-background" ) : this . line . element . removeClass ( "bi-high-light-background" ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.linear_segment_button" , BI . LinearSegmentButton ) , BI . LinearSegment = BI . inherit ( BI . Widget , { props : { baseCls : "bi-linear-segment bi-split-bottom" , items : [ ] , height : 29 } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.button_group" , items : BI . createItems ( b . items , { type : "bi.linear_segment_button" , height : b . height - 1 } ) , layout : [ { type : "bi.center" } ] , listeners : [ { eventName : "__EVENT_CHANGE__" , action : function ( ) { a . fireEvent ( "__EVENT_CHANGE__" , arguments ) } } , { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] , ref : function ( ) { a . buttonGroup = this } } } , setValue : function ( a ) { this . buttonGroup . setValue ( a ) } , setEnabledValue : function ( a ) { this . buttonGroup . setEnabledValue ( a ) } , getValue : function ( ) { return this . buttonGroup . getValue ( ) } } ) , BI . shortcut ( "bi.linear_segment" , BI . LinearSegment ) , BI . SelectList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SelectList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-select-list" , direction : BI . Direction . Top , logic : { dynamic : ! 0 } , items : [ ] , itemsCreator : BI . emptyFn , hasNext : BI . emptyFn , onLoaded : BI . emptyFn , toolbar : { type : "bi.multi_select_bar" , iconWrapperWidth : 36 } , el : { type : "bi.list_pane" } } ) } , _init : function ( ) { BI . SelectList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . toolbar = BI . createWidget ( b . toolbar ) , this . allSelected = ! 1 , this . toolbar . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . allSelected = this . isSelected ( ) , b === BI . Events . CLICK && ( a . setAllSelected ( a . allSelected ) , a . fireEvent ( BI . SelectList . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . list = BI . createWidget ( b . el , { type : "bi.list_pane" , items : b . items , itemsCreator : function ( c , d ) { 1 === c . times && a . toolbar . setVisible ( ! 1 ) , b . itemsCreator ( c , function ( b ) { d . apply ( a , arguments ) , 1 === c . times && ( a . toolbar . setVisible ( b && b . length > 0 ) , a . toolbar . setEnable ( a . isEnabled ( ) && b && b . length > 0 ) ) , a . _checkAllSelected ( ) } ) } , onLoaded : b . onLoaded , hasNext : b . hasNext } ) , this . list . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { b === BI . Events . CLICK && ( a . _checkAllSelected ( ) , a . fireEvent ( BI . SelectList . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( BI . LogicFactory . createLogicTypeByDirection ( b . direction ) , BI . ext
this . initTree ( this . options . items ) } , _formatItems : function ( a , b , c ) { var d = this ; return BI . each ( a , function ( e , f ) { var g = { layer : b } ; BI . isKey ( f . id ) || ( f . id = BI . UUID ( ) ) , g . pNode = c , f . isParent === ! 0 || f . parent === ! 0 || BI . isNotEmptyArray ( f . children ) ? ( g . type = "bi.mid_plus_group_node" , e === a . length - 1 && ( g . type = "bi.last_plus_group_node" , g . isLastNode = ! 0 ) , 0 !== e || c || ( g . type = "bi.first_plus_group_node" ) , 0 === e && e === a . length - 1 && ( g . type = "bi.plus_group_node" ) , BI . defaults ( f , g ) , d . _formatItems ( f . children , b + 1 , f ) ) : ( g . type = "bi.mid_tree_leaf_item" , 0 !== e || c || ( g . type = "bi.first_tree_leaf_item" ) , e === a . length - 1 && ( g . type = "bi.last_tree_leaf_item" ) , BI . defaults ( f , g ) ) } ) , a } , _assertId : function ( a ) { BI . each ( a , function ( a , b ) { BI . isKey ( b . id ) || ( b . id = BI . UUID ( ) ) } ) } , initTree : function ( a ) { var b = this , c = this . options ; this . empty ( ) , this . _assertId ( a ) , this . tree = BI . createWidget ( { type : "bi.custom_tree" , element : this , expander : BI . extend ( { el : { } , popup : { type : "bi.custom_tree" } } , c . expander ) , items : this . _formatItems ( BI . Tree . transformToTreeFormat ( a ) , 0 ) , value : c . value , el : BI . extend ( { type : "bi.button_tree" , chooseType : 0 , layouts : [ { type : "bi.vertical" } ] } , c . el ) } ) , this . tree . on ( BI . Controller . EVENT _CHANGE , function ( a , c , d ) { b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a === BI . Events . CLICK && b . fireEvent ( BI . LevelTree . EVENT _CHANGE , c , d ) } ) } , stroke : function ( a ) { this . tree . stroke . apply ( this . tree , arguments ) } , populate : function ( a , b ) { a = this . _formatItems ( BI . Tree . transformToTreeFormat ( a ) , 0 ) , this . tree . populate ( a , b ) } , setValue : function ( a ) { this . tree . setValue ( a ) } , getValue : function ( ) { return this . tree . getValue ( ) } , getAllLeaves : function ( ) { return this . tree . getAllLeaves ( ) } , getNodeById : function ( a ) { return this . tree . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . tree . getNodeByValue ( a ) } } ) , BI . LevelTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.level_tree" , BI . LevelTree ) , BI . DisplayTree = BI . inherit ( BI . TreeView , { _defaultConfig : function ( ) { return BI . extend ( BI . DisplayTree . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-display-tree" } ) } , _init : function ( ) { BI . DisplayTree . superclass . _init . apply ( this , arguments ) } , _configSetting : function ( ) { function a ( a , b ) { return ! 1 } var b = { view : { selectedMulti : ! 1 , dblClickExpand : ! 1 , showIcon : ! 1 , nameIsHTML : ! 0 , showTitle : ! 1 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , callback : { beforeCollapse : a } } ; return b } , _dealWidthNodes : function ( a ) { a = BI . DisplayTree . superclass . _dealWidthNodes . apply ( this , arguments ) ; this . options ; return BI . each ( a , function ( a , b ) { b . isParent = b . isParent || b . parent , null == b . text && b . count > 0 && ( b . text = b . value + "(" + BI . i18nText ( "BI-Basic_Altogether" ) + b . count + BI . i18nText ( "BI-Basic_Count" ) + ")" ) } ) , a } , initTree : function ( a , b ) { var b = b || this . _configSetting ( ) ; this . nodes = $ . fn . zTree . init ( this . tree . element , b , a ) } , destroy : function ( ) { BI . DisplayTree . superclass . destroy . apply ( this , arguments ) } } ) , BI . DisplayTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.display_tree" , BI . DisplayTree ) , BI . ListDisplayTree = BI . inherit ( BI . ListTreeView , { _defaultConfig : function ( ) { return BI . extend ( BI . ListDisplayTree . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-list-display-tree" } ) } , _init : function ( ) { BI . ListDisplayTree . superclass . _init . apply ( this , arguments ) } , _configSetting : function ( ) { function a ( a , b ) { return ! 1 } function b ( a , b ) { return b . isLeaf ? { } : { color : "#999999" } } var c = { view : { selectedMulti : ! 1 , dblClickExpand : ! 1 , showIcon : ! 1 , nameIsHTML : ! 0 , showTitle : ! 1 , fontCss : b } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , callback : { beforeCollapse : a } } ; return c } , _dealWidthNodes : function ( a ) { a = BI . ListDisplayTree . superclass . _dealWidthNodes . apply ( this , arguments ) ; this . options ; return BI . each ( a , function ( a , b ) { b . isParent = b . isParent || b . parent , null == b . text && b . count > 0 && ( b . text = b . value + "(" + BI . i18nText ( "BI-Basic_Altogether" ) + b . count + BI . i18nText ( "BI-Basic_Count" ) + ")" ) } ) , a } , initTree : function ( a , b ) { var b = b || this . _configSetting ( ) ; this . nodes = $ . fn . zTree . init ( this . tree . element , b , a ) } , destroy : function ( ) { BI . ListDisplayTree . superclass . destroy . apply ( this , arguments ) } } ) , BI . ListDisplayTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.list_display_tree" , BI . ListDisplayTree ) , BI . SimpleTreeView = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SimpleTree
min : b . minDate , max : b . maxDate , value : b . value } ) , this . popup = BI . createWidget ( { type : "bi.date_time_popup" , behaviors : b . behaviors , min : b . minDate , max : b . maxDate , value : b . value } ) , a . setValue ( this . storeValue ) , this . popup . on ( BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE , function ( ) { a . setValue ( a . storeValue ) , a . hidePopupView ( ) , a . fireEvent ( BI . DateTimeCombo . EVENT _CANCEL ) } ) , this . popup . on ( BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE , function ( ) { a . storeValue = a . popup . getValue ( ) , a . setValue ( a . storeValue ) , a . hidePopupView ( ) , a . fireEvent ( BI . DateTimeCombo . EVENT _CONFIRM ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , toggle : ! 1 , isNeedAdjustHeight : ! 1 , isNeedAdjustWidth : ! 1 , el : this . trigger , adjustLength : this . constants . comboAdjustHeight , popup : { el : this . popup , width : this . constants . popupWidth , stopPropagation : ! 1 } , hideChecker : function ( a ) { return 0 === d . element . find ( a . target ) . length } } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . popup . setValue ( a . storeValue ) , a . fireEvent ( BI . DateTimeCombo . EVENT _BEFORE _POPUPVIEW ) } ) ; var d = BI . createWidget ( { type : "bi.icon_button" , cls : "bi-trigger-icon-button date-font" , width : 24 , height : 24 } ) ; d . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ { type : "bi.absolute" , items : [ { el : this . combo , top : 0 , left : 0 , right : 0 , bottom : 0 } , { el : d , top : 0 , right : 0 } ] } ] } ) } , setValue : function ( a ) { this . storeValue = a , this . popup . setValue ( a ) , this . trigger . setValue ( a ) } , getValue : function ( ) { return this . storeValue } , hidePopupView : function ( ) { this . combo . hideView ( ) } } ) , BI . DateTimeCombo . EVENT _CANCEL = "EVENT_CANCEL" , BI . DateTimeCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DateTimeCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . DateTimeCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.date_time_combo" , BI . DateTimeCombo ) , BI . DateTimePopup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DateTimePopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-date-time-popup" , width : 268 , height : 374 } ) } , _init : function ( ) { BI . DateTimePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . cancelButton = BI . createWidget ( { type : "bi.text_button" , cls : "multidate-popup-button bi-border-top bi-border-right" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_Cancel" ) } ) , this . cancelButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE ) } ) , this . okButton = BI . createWidget ( { type : "bi.text_button" , cls : "multidate-popup-button bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) } ) , this . okButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE ) } ) , this . dateCombo = BI . createWidget ( { type : "bi.date_calendar_popup" , behaviors : b . behaviors , min : a . options . min , max : a . options . max } ) , a . dateCombo . on ( BI . DateCalendarPopup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . CALENDAR _EVENT _CHANGE ) } ) , this . dateButton = BI . createWidget ( { type : "bi.grid" , items : [ [ this . cancelButton , this . okButton ] ] } ) , BI . createWidget ( { element : this , type : "bi.vtape" , items : [ { el : this . dateCombo } , { el : { type : "bi.center_adapt" , cls : "bi-split-top" , items : [ { type : "bi.dynamic_date_time_select" , ref : function ( b ) { a . timeSelect = b } } ] } , height : 50 } , { el : this . dateButton , height : 30 } ] } ) , this . setValue ( b . value ) } , setValue : function ( a ) { var b , c = a ; BI . isNull ( c ) ? ( b = BI . getDate ( ) , this . dateCombo . setValue ( { year : b . getFullYear ( ) , month : b . getMonth ( ) + 1 , day : b . getDate ( ) } ) , this . timeSelect . setValue ( { hour : b . getHours ( ) , minute : b . getMinutes ( ) , second : b . getSeconds ( ) } ) ) : ( this . dateCombo . setValue ( { year : c . year , month : c . month , day : c . day } ) , this . timeSelect . setValue ( { hour : c . hour , minute : c . minute , second : c . second } ) ) } , getValue : function ( ) { return BI . extend ( { year : this . dateCombo . getValue ( ) . year , month : this . dateCombo . getValue ( ) . month , day : this . dateCombo . getValue ( ) . day } , this . timeSelect . getValue ( ) ) } } ) , BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE = "BUTTON_CANCEL_EVENT_CHANGE" , BI . DateTimePopup . CALENDAR _EVENT _CHANGE = "CALENDAR_EVENT_CHANGE" , BI . shortcut ( "bi.date_time_popup" , BI . DateTimePopup ) , BI . DateTimeTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 } , _defaultConfig : functio
action : function ( ) { a . setValue ( ) , a . combo . hideView ( ) , a . fireEvent ( BI . DynamicDateCombo . EVENT _CONFIRM ) } } , { eventName : BI . DynamicDatePopup . BUTTON _lABEL _EVENT _CHANGE , action : function ( ) { var b = BI . getDate ( ) ; a . setValue ( { type : BI . DynamicDateCombo . Static , value : { year : b . getFullYear ( ) , month : b . getMonth ( ) + 1 , day : b . getDate ( ) } } ) , a . combo . hideView ( ) , a . fireEvent ( BI . DynamicDateCombo . EVENT _CONFIRM ) } } , { eventName : BI . DynamicDatePopup . BUTTON _OK _EVENT _CHANGE , action : function ( ) { var b = a . popup . getValue ( ) ; a . _checkValue ( b ) && a . setValue ( b ) , a . combo . hideView ( ) , a . fireEvent ( BI . DynamicDateCombo . EVENT _CONFIRM ) } } , { eventName : BI . DynamicDatePopup . EVENT _CHANGE , action : function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . combo . hideView ( ) , a . fireEvent ( BI . DynamicDateCombo . EVENT _CONFIRM ) } } ] } , stopPropagation : ! 1 } , hideChecker : function ( b ) { return 0 === a . triggerBtn . element . find ( b . target ) . length } , listeners : [ { eventName : BI . Combo . EVENT _BEFORE _POPUPVIEW , action : function ( ) { a . popup . setValue ( a . storeValue ) , a . fireEvent ( BI . DynamicDateCombo . EVENT _BEFORE _POPUPVIEW ) } } ] } , top : 0 , left : 0 , right : 0 , bottom : 0 } , { el : { type : "bi.icon_button" , cls : "bi-trigger-icon-button date-font" , width : b . height , height : b . height , listeners : [ { eventName : BI . IconButton . EVENT _CHANGE , action : function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } } ] , ref : function ( ) { a . triggerBtn = this } } , top : 0 , right : 0 } ] } ] , ref : function ( b ) { a . comboWrapper = b } } } , mounted : function ( ) { this . _checkDynamicValue ( this . storeValue ) } , _checkDynamicValue : function ( a ) { var b = this . options , c = null ; switch ( BI . isNotNull ( a ) && ( c = a . type ) , c ) { case BI . DynamicDateCombo . Dynamic : this . changeIcon . setVisible ( ! 0 ) , this . comboWrapper . attr ( "items" ) [ 0 ] . width = b . height , this . comboWrapper . resize ( ) ; break ; default : this . comboWrapper . attr ( "items" ) [ 0 ] . width = 0 , this . comboWrapper . resize ( ) , this . changeIcon . setVisible ( ! 1 ) } } , _checkValue : function ( a ) { switch ( a . type ) { case BI . DynamicDateCombo . Dynamic : return BI . isNotEmptyObject ( a . value ) ; case BI . DynamicDateCombo . Static : default : return ! 0 } } , _defaultState : function ( ) { } , setValue : function ( a ) { this . storeValue = a , this . trigger . setValue ( a ) , this . _checkDynamicValue ( a ) } , getValue : function ( ) { return this . storeValue } , getKey : function ( ) { return this . trigger . getKey ( ) } , hidePopupView : function ( ) { this . combo . hideView ( ) } } ) , BI . DynamicDateCombo . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . DynamicDateCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DynamicDateCombo . EVENT _FOCUS = "EVENT_FOCUS" , BI . DynamicDateCombo . EVENT _BLUR = "EVENT_BLUR" , BI . DynamicDateCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . DynamicDateCombo . EVENT _VALID = "EVENT_VALID" , BI . DynamicDateCombo . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicDateCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.dynamic_date_combo" , BI . DynamicDateCombo ) , BI . extend ( BI . DynamicDateCombo , { Static : 1 , Dynamic : 2 } ) , BI . DynamicDateParamItem = BI . inherit ( BI . Widget , { props : { baseCls : "bi-dynamic-date-param-item" , dateType : BI . DynamicDateCard . TYPE . YEAR , value : 0 , offset : 0 , height : 24 } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.htape" , items : [ { el : { type : "bi.sign_editor" , cls : "bi-border" , height : 22 , validationChecker : function ( a ) { return BI . isNaturalNumber ( a ) } , value : b . value , ref : function ( ) { a . editor = this } , errorText : function ( a ) { return BI . isEmptyString ( a ) ? BI . i18nText ( "BI-Basic_Please_Input_Content" ) : BI . i18nText ( "BI-Please_Input_Natural_Number" ) } , allowBlank : ! 1 , listeners : [ { eventName : BI . SignEditor . EVENT _CONFIRM , action : function ( ) { a . fireEvent ( BI . DynamicDateParamItem . EVENT _CHANGE ) } } ] } , width : 60 } , { el : { type : "bi.label" , height : 24 , text : this . _getText ( ) } , width : b . dateType === BI . DynamicDateCard . TYPE . WORK _DAY ? 60 : 20 } , { type : "bi.text_value_combo" , height : 24 , items : [ { text : BI . i18nText ( "BI-Basic_Front" ) , value : 0 } , { text : BI . i18nText ( "BI-Basic_Behind" ) , value : 1 } ] , ref : function ( ) { a . offsetCombo = this } , container : null , value : b . offset , listeners : [ { eventName : BI . TextValueCombo . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDateParamItem . EVENT _CHANGE ) } } ] } ] } } , _getText : function ( ) { var a = "" ; switch ( this . options . dateType ) { case BI . DynamicDateCard . TYPE . YEAR : a = BI . i18nText ( "BI-Basic_Year" ) ; break ; case BI . DynamicDateCard . TYPE . QUARTER : a = BI . i18nText ( "BI-Basic_Single_Quarter" ) ; break ; case BI . DynamicDateCard . TYPE . MONTH : a = BI . i18nText ( "BI-Basic_Month" ) ; break ; case BI . DynamicDateCard
} ) , this . editor . on ( BI . SignEditor . EVENT _VALID , function ( ) { a . fireEvent ( BI . DynamicDateTimeTrigger . EVENT _VALID ) } ) , this . editor . on ( BI . SignEditor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . DynamicDateTimeTrigger . EVENT _ERROR ) } ) , this . editor . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = a . editor . getValue ( ) ; if ( BI . isNotNull ( b ) && a . editor . setState ( b ) , BI . isNotEmptyString ( b ) && ! BI . isEqual ( a . storeTriggerValue , a . getKey ( ) ) ) { var c = a . _getStandardDateStr ( b ) , d = c . match ( /\d+/g ) ; a . storeValue = { type : BI . DynamicDateCombo . Static , value : { year : 0 | d [ 0 ] , month : 0 | d [ 1 ] , day : 0 | d [ 2 ] , hour : 0 | d [ 3 ] , minute : 0 | d [ 4 ] , second : 0 | d [ 5 ] } } } a . fireEvent ( BI . DynamicDateTimeTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _START , function ( ) { a . fireEvent ( BI . DynamicDateTimeTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DynamicDateTimeTrigger . EVENT _CHANGE ) } ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : this . editor } , { el : BI . createWidget ( ) , width : 24 } ] } ) , ! b . allowEdit && BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.text" , title : BI . bind ( this . _getTitle , this ) } , left : 0 , right : 24 , top : 0 , bottom : 0 } ] } ) , this . setValue ( b . value ) } , _getTitle : function ( ) { var a = this . storeValue || { } , b = a . type || BI . DynamicDateCombo . Static , c = a . value ; switch ( b ) { case BI . DynamicDateCombo . Dynamic : var d = this . _getText ( c ) , e = BI . DynamicDateHelper . getCalculation ( c ) , f = BI . print ( e , this . _getFormatString ( ) ) ; return BI . isEmptyString ( d ) ? f : d + ":" + f ; case BI . DynamicDateCombo . Static : default : return BI . isNull ( c ) || BI . isNull ( c . day ) ? "" : BI . print ( BI . getDate ( c . year , c . month - 1 , c . day , c . hour || 0 , c . minute || 0 , c . second || 0 ) , this . _getFormatString ( ) ) } } , _getStandardDateStr : function ( a ) { var b = this . _const , c = [ ] , d = ! 1 , e = this . _getFormatString ( ) . match ( /%./g ) ; BI . each ( e , function ( a , b ) { switch ( b ) { case "%Y" : case "%y" : c [ 0 ] = a ; break ; case "%X" : case "%x" : c [ 1 ] = a ; break ; case "%d" : case "%e" : c [ 2 ] = a ; break ; case "%S" : d = ! 0 } } ) ; var f = BI . parseDateTime ( a , this . _getFormatString ( ) ) ; BI . print ( f , this . _getFormatString ( ) ) === a && ( a = BI . print ( f , b . compareFormat ) , c = [ 0 , 1 , 2 ] ) ; var g = a . match ( /\d+/g ) || [ ] , h = [ ] ; BI . each ( g . slice ( 0 , 3 ) , function ( a ) { h [ a ] = g [ c [ a ] ] } ) ; var i = g . slice ( 3 ) ; BI . each ( i , function ( a , b ) { BI . isNumeric ( b ) && 1 === b . length && ( i [ a ] = "0" + b ) } ) , 2 !== i . length || d || i . push ( "00" ) ; var j = i . join ( ":" ) , k = h . slice ( 0 , 3 ) . join ( "-" ) ; return BI . isNotEmptyString ( j ) && ( k += " " + j ) , k } , _getFormatString : function ( ) { return this . options . format || this . _const . compareFormat } , _dateCheck : function ( a ) { return BI . print ( BI . parseDateTime ( a , "%Y-%x-%d %H:%M:%S" ) , "%Y-%x-%d %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%X-%d %H:%M:%S" ) , "%Y-%X-%d %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%x-%e %H:%M:%S" ) , "%Y-%x-%e %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%X-%e %H:%M:%S" ) , "%Y-%X-%e %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%x-%d" ) , "%Y-%x-%d" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%X-%d" ) , "%Y-%X-%d" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%x-%e" ) , "%Y-%x-%e" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%X-%e" ) , "%Y-%X-%e" ) === a } , _checkVoid : function ( a ) { return ! BI . checkDateVoid ( a . year , a . month , a . day , this . options . min , this . options . max ) [ 0 ] } , _autoAppend : function ( a , b ) { if ( BI . isNotNull ( b ) && BI . checkDateLegal ( a ) ) switch ( a . length ) { case this . _const . yearLength : this . _yearCheck ( a ) && this . editor . setValue ( a + "-" ) ; break ; case this . _const . yearMonthLength : case this . _const . yearFullMonthLength : var c = a . split ( "-" ) [ 1 ] ; ( BI . isNotNull ( c ) && 2 === c . length || this . _monthCheck ( a ) ) && this . editor . setValue ( a + "-" ) } } , _yearCheck : function ( a ) { var b = BI . print ( BI . parseDateTime ( a , "%Y-%X-%d" ) , "%Y-%X-%d" ) ; return BI . print ( BI . parseDateTime ( a , "%Y" ) , "%Y" ) === a && b >= this . options . min && b <= this . options . max } , _monthCheck : function ( a ) { var b = BI . parseDateTime ( a , "%Y-%X-%d" ) , c = BI . print ( b , "%Y-%X-%d" ) ; return b . getMonth ( ) > 0 && ( BI . print ( BI . parseDateTime ( a , "%Y-%X" ) , "%Y-%X" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%x" ) , "%Y-%x" ) === a ) && c >= this . options . min && c <= this . options . max } , _setInnerValue : function ( a ) { var b = BI . print ( a , this . _getFormatString ( ) ) ; this . editor . setState ( b ) , this . editor . setValue ( b ) } , _getText : function ( a ) { function b ( a , b ) { switch ( b ) { case BI . DynamicDateCard . OFFSET . BEGIN : return a + BI . i18nText ( "BI-Basic_Begin_Start" ) ; case BI . DynamicDateCard . OFFSET . END : return a + BI . i18nText ( " BI - Basic _
this . month . setValue ( [ a ] ) } } ) , BI . MonthPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.month_popup" , BI . MonthPopup ) , BI . MonthTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 } , _defaultConfig : function ( ) { return BI . extend ( BI . MonthTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-month-trigger bi-border" , height : 24 } ) } , _init : function ( ) { BI . MonthTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height , validationChecker : function ( a ) { return "" === a || BI . isPositiveInteger ( a ) && a >= 1 && a <= 12 } , quitChecker : function ( a ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , allowBlank : ! 0 , errorText : BI . i18nText ( "BI-Month_Trigger_Error_Text" ) } ) , this . editor . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . MonthTrigger . EVENT _FOCUS ) } ) , this . editor . on ( BI . SignEditor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MonthTrigger . EVENT _CHANGE ) } ) , this . editor . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = a . editor . getValue ( ) ; BI . isNotNull ( b ) && ( a . editor . setValue ( b ) , a . editor . setTitle ( b ) ) , a . fireEvent ( BI . MonthTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _SPACE , function ( ) { a . editor . isValid ( ) && a . editor . blur ( ) } ) , this . editor . on ( BI . SignEditor . EVENT _START , function ( ) { a . fireEvent ( BI . MonthTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _STOP , function ( ) { a . fireEvent ( BI . MonthTrigger . EVENT _STOP ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . editor } , { el : { type : "bi.text_button" , text : BI . i18nText ( "BI-Multi_Date_Month" ) , baseCls : "bi-trigger-month-text" , width : b . height } , width : b . height } , { el : { type : "bi.trigger_icon_button" , width : b . height } , width : b . height } ] } ) , this . setValue ( b . value ) } , setValue : function ( a ) { return BI . isNotNull ( a ) ? ( this . editor . setState ( a + 1 ) , this . editor . setValue ( a + 1 ) , void this . editor . setTitle ( a + 1 ) ) : ( this . editor . setState ( "" ) , this . editor . setValue ( "" ) , void this . editor . setTitle ( "" ) ) } , getKey : function ( ) { return 0 | this . editor . getValue ( ) } , getValue : function ( ) { return this . editor . getValue ( ) - 1 } } ) , BI . MonthTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . MonthTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . MonthTrigger . EVENT _START = "EVENT_START" , BI . MonthTrigger . EVENT _STOP = "EVENT_STOP" , BI . MonthTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.month_trigger" , BI . MonthTrigger ) , BI . DownListCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . DownListCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multilayer-down-list-combo" , height : 24 , items : [ ] , adjustLength : 0 , direction : "bottom" , trigger : "click" , container : null , stopPropagation : ! 1 , el : { } } ) } , _init : function ( ) { BI . DownListCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . popupview = BI . createWidget ( { type : "bi.multi_layer_down_list_popup" , items : b . items , chooseType : b . chooseType , value : b . value } ) , this . popupview . on ( BI . DownListPopup . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . DownListCombo . EVENT _CHANGE , b ) , a . downlistcombo . hideView ( ) } ) , this . popupview . on ( BI . DownListPopup . EVENT _SON _VALUE _CHANGE , function ( b , c ) { a . fireEvent ( BI . DownListCombo . EVENT _SON _VALUE _CHANGE , b , c ) , a . downlistcombo . hideView ( ) } ) , this . downlistcombo = BI . createWidget ( { element : this , type : "bi.combo" , trigger : b . trigger , isNeedAdjustWidth : ! 1 , container : b . container , adjustLength : b . adjustLength , direction : b . direction , stopPropagation : b . stopPropagation , 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 : b . stopPropagation , maxHeight : 1e3 } } ) , this . downlistcombo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . DownListCombo . EVENT _BEFORE _POPUPVIEW ) } ) } , hideView : function ( ) { this . downlistcombo . hideView ( ) } , showView : function ( a ) { this . downlistcombo . showView ( a ) } , populate : function ( a ) { this . popupview . populate ( a ) } , setValue : function ( a ) { this . popupview . setValue ( a ) } , getValue : function ( ) { return this . popupview . getValue ( ) } } ) , BI . DownListCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . DownListCombo . EVENT _SON _VALUE _CHANGE = "EVENT_SON_VALUE_CHANGE" , BI . DownListCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.multi_layer_down_list_combo" , BI . DownListComb
a . fireEvent ( BI . MultiLayerSingleTreeCombo . EVENT _CHANGE ) } } ] } , value : b . value , maxHeight : 400 , minHeight : 240 } } } , _getSearchConfig : function ( ) { var a = this , b = this . options ; return { el : { type : "bi.multilayer_single_tree_trigger" , allowInsertValue : b . allowInsertValue , allowSearchValue : b . allowSearchValue , allowEdit : b . allowEdit , cls : "multilayer-single-tree-trigger" , ref : function ( b ) { a . trigger = b } , watermark : b . watermark , items : b . items , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , height : b . height - 2 , text : b . text , value : b . value , tipType : b . tipType , warningTitle : b . warningTitle , title : b . title , listeners : [ { eventName : BI . MultiLayerSingleTreeTrigger . EVENT _CHANGE , action : function ( ) { a . setValue ( this . getValue ( ) ) , a . combo . hideView ( ) , a . fireEvent ( BI . MultiLayerSingleTreeCombo . EVENT _CHANGE ) } } , { eventName : BI . MultiLayerSingleTreeTrigger . EVENT _FOCUS , action : function ( ) { a . fireEvent ( BI . MultiLayerSingleTreeCombo . EVENT _FOCUS ) } } , { eventName : BI . MultiLayerSingleTreeTrigger . EVENT _BLUR , action : function ( ) { a . fireEvent ( BI . MultiLayerSingleTreeCombo . EVENT _BLUR ) } } , { eventName : BI . MultiLayerSingleTreeTrigger . EVENT _SEARCHING , action : function ( ) { a . fireEvent ( BI . MultiLayerSingleTreeCombo . EVENT _SEARCHING ) } } , { eventName : BI . MultiLayerSingleTreeTrigger . EVENT _ADD _ITEM , action : function ( ) { var b = a . trigger . getSearcher ( ) . getKeyword ( ) ; a . combo . setValue ( b ) , a . combo . hideView ( ) } } ] } , hideChecker : function ( b ) { return 0 === a . triggerBtn . element . find ( b . target ) . length } , listeners : [ { eventName : BI . Combo . EVENT _AFTER _HIDEVIEW , action : function ( ) { a . trigger . stopEditing ( ) } } ] } } , _getSyncConfig : function ( ) { var a = this . options , b = this . _getBaseConfig ( ) ; return BI . extend ( b , a . allowEdit ? this . _getSearchConfig ( ) : { el : { type : "bi.single_tree_trigger" , text : a . text , height : a . height , items : a . items , value : a . value } } ) } , _getAsyncConfig : function ( ) { var a = this . _getBaseConfig ( ) ; return BI . extend ( a , this . _getSearchConfig ( ) ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . combo . setValue ( a ) } , getValue : function ( ) { return this . combo . getValue ( ) } , populate : function ( a ) { this . combo . populate ( a ) } } ) , BI . MultiLayerSingleTreeCombo . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . MultiLayerSingleTreeCombo . EVENT _BLUR = "EVENT_BLUR" , BI . MultiLayerSingleTreeCombo . EVENT _FOCUS = "EVENT_FOCUS" , BI . MultiLayerSingleTreeCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multilayer_single_tree_combo" , BI . MultiLayerSingleTreeCombo ) , BI . MultiLayerSingleTreeInsertSearchPane = BI . inherit ( BI . Widget , { props : function ( ) { return { baseCls : "bi-multilayer-single-tree-popup" , tipText : BI . i18nText ( "BI-No_Selected_Item" ) , isDefaultInit : ! 1 , itemsCreator : BI . emptyFn , items : [ ] , value : "" } } , render : function ( ) { var a = this , b = this . options ; return this . tree = BI . createWidget ( { type : "bi.multilayer_select_level_tree" , isDefaultInit : b . isDefaultInit , items : b . items , itemsCreator : b . itemsCreator === BI . emptyFn ? BI . emptyFn : function ( c , d ) { b . itemsCreator ( c , function ( c ) { d ( c ) , a . setKeyword ( b . keywordGetter ( ) ) } ) } , keywordGetter : b . keywordGetter , value : b . value , scrollable : null , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } , { eventName : BI . MultiLayerSelectLevelTree . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . MultiLayerSingleTreeInsertSearchPane . EVENT _CHANGE ) } } ] } ) , { type : "bi.vertical" , scrolly : ! 1 , scrollable : ! 0 , vgap : 5 , items : [ { type : "bi.text_button" , invisible : ! 0 , text : BI . i18nText ( "BI-Basic_Click_To_Add_Text" , "" ) , height : 24 , cls : "bi-high-light" , hgap : 5 , ref : function ( b ) { a . addNotMatchTip = b } , handler : function ( ) { a . fireEvent ( BI . MultiLayerSingleTreeInsertSearchPane . EVENT _ADD _ITEM , b . keywordGetter ( ) ) } } , this . tree ] } } , setKeyword : function ( a ) { var b = BI . isEmptyArray ( this . tree . getAllLeaves ( ) ) ; this . addNotMatchTip . setVisible ( b ) , b && this . addNotMatchTip . setText ( BI . i18nText ( "BI-Basic_Click_To_Add_Text" , a ) ) } , getValue : function ( ) { return this . tree . getValue ( ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . tree . setValue ( a ) } , populate : function ( a ) { this . tree . populate ( a ) } } ) , BI . MultiLayerSingleTreeInsertSearchPane . EVENT _ADD _ITEM = "EVENT_ADD_ITEM" , BI . MultiLayerSingleTreeInsertSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multilayer_single_tree_insert_search_pane" , BI . MultiLayerSingleTreeInsertSearchPane ) , BI . MultiLayerSingleLevelTree = BI . inherit ( BI . Pane , { _d
} , _assertValue : function ( a ) { a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) } , _makeMap : function ( a ) { return BI . makeObject ( a || [ ] ) } , _joinKeywords : function ( a , b ) { function c ( c ) { var e = d . _makeMap ( c ) ; BI . each ( a , function ( a , b ) { BI . isNotNull ( e [ b ] ) && ( d . storeValue . type === BI . Selection . Multi ? BI . pushDistinct ( d . storeValue . value , b ) : BI . remove ( d . storeValue . value , b ) ) } ) , d . _adjust ( b ) } var d = this , e = this . options ; this . _assertValue ( this . storeValue ) , this . requesting = ! 0 , e . itemsCreator ( { type : BI . MultiSelectCombo . REQ _GET _ALL _DATA , keywords : a } , function ( a ) { var b = BI . map ( a . items , "value" ) ; c ( b ) } ) } , _joinAll : function ( a , b ) { var c = this , d = this . options ; this . _assertValue ( a ) , this . requesting = ! 0 , d . itemsCreator ( { type : BI . MultiSelectCombo . REQ _GET _ALL _DATA , keywords : [ this . trigger . getKey ( ) ] } , function ( d ) { var e = BI . map ( d . items , "value" ) ; if ( c . storeValue . type === a . type ) { var f = ! 1 , g = c . _makeMap ( c . storeValue . value ) ; return BI . each ( e , function ( a , b ) { BI . isNotNull ( g [ b ] ) && ( f = ! 0 , c . storeValue . assist && c . storeValue . assist . push ( g [ b ] ) , delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void c . _adjust ( b ) } var h = c . _makeMap ( c . storeValue . value ) , i = c . _makeMap ( a . value ) , j = [ ] ; BI . each ( e , function ( a , b ) { BI . isNotNull ( h [ e [ a ] ] ) && ( c . storeValue . assist && c . storeValue . assist . push ( h [ e [ a ] ] ) , delete h [ e [ a ] ] ) , BI . isNull ( i [ e [ a ] ] ) && ( BI . remove ( c . storeValue . assist , b ) , j . push ( b ) ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , c . _adjust ( b ) } ) } , _adjust : function ( a ) { function b ( ) { c . wants2Quit === ! 0 && ( c . fireEvent ( BI . MultiSelectCombo . EVENT _CONFIRM ) , c . wants2Quit = ! 1 ) , c . requesting = ! 1 } var c = this ; this . options ; b ( ) , a ( ) } , _join : function ( a , b ) { var c = this ; this . options ; if ( this . _assertValue ( a ) , this . _assertValue ( this . storeValue ) , this . storeValue . type === a . type ) { var d = this . _makeMap ( this . storeValue . value ) ; BI . each ( a . value , function ( a , b ) { d [ b ] || ( c . storeValue . value . push ( b ) , BI . remove ( c . storeValue . assist , b ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , c . storeValue . assist && c . storeValue . assist . push ( d [ b ] ) , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void c . _adjust ( b ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . popup . setStartValue ( a ) } , setValue : function ( a ) { this . storeValue = a || { } , this . _assertValue ( this . storeValue ) , this . combo . setValue ( this . storeValue ) } , getValue : function ( ) { return BI . deepClone ( this . storeValue ) } , populate : function ( ) { this . combo . populate . apply ( this . combo , arguments ) } } ) , BI . extend ( BI . MultiSelectCombo , { REQ _GET _DATA _LENGTH : 1 , REQ _GET _ALL _DATA : - 1 } ) , BI . MultiSelectCombo . EVENT _BLUR = "EVENT_BLUR" , BI . MultiSelectCombo . EVENT _FOCUS = "EVENT_FOCUS" , BI . MultiSelectCombo . EVENT _STOP = "EVENT_STOP" , BI . MultiSelectCombo . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . MultiSelectCombo . EVENT _CLICK _ITEM = "EVENT_CLICK_ITEM" , BI . MultiSelectCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.multi_select_combo" , BI . MultiSelectCombo ) , BI . MultiSelectInsertCombo = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectInsertCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-insert-combo" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , height : 24 , attributes : { tabIndex : 0 } , allowEdit : ! 0 } ) } , _init : function ( ) { BI . MultiSelectInsertCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = function ( ) { BI . isKey ( a . _startValue ) && ( a . storeValue . type === BI . Selection . All ? BI . remove ( a . storeValue . value , a . _startValue ) : BI . pushDistinct ( a . storeValue . value , a . _startValue ) ) , a . trigger . getSearcher ( ) . setState ( a . storeValue ) , a . trigger . getCounter ( ) . setButtonChecked ( a . storeValue ) } ; this . storeValue = b . value || { } , this . requesting = ! 1 , this . trigger = BI . createWidget ( { type : "bi.multi_select_insert_trigger" , allowEdit : b . allowEdit , height : b . height , text : b . text , watermark : b . watermark , masker : { offset : { left : 0 , top : 0 , right : 0 , bottom : 25 } } , valueFormatter : b . valueFormatter , itemsCreator : function ( c , d ) { b . itemsCreator ( c , function ( b ) { 1 === c . times && BI . isNotNull ( c . keywords ) && a . trigger . setValue ( BI . deepClone ( a . getValue ( ) ) ) , d . apply ( a , arguments ) } ) } , value : b . value } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . MultiSelectInsertCombo . EVENT _FOCUS ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _BLUR , function (
BI . MultiSelectTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . height && this . setHeight ( b . height - 2 ) , this . searcher = BI . createWidget ( b . searcher , { type : "bi.multi_select_searcher" , height : b . height , text : b . text , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , watermark : b . watermark , popup : { } , adapter : b . adapter , masker : b . masker , value : b . value } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _START , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _START ) } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _PAUSE ) } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _SEARCHING , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _SEARCHING , arguments ) } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _STOP ) } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _BLUR , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _BLUR ) } ) , this . searcher . on ( BI . MultiSelectSearcher . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _FOCUS ) } ) , this . numberCounter = BI . createWidget ( b . switcher , { type : "bi.multi_select_check_selected_switcher" , valueFormatter : b . valueFormatter , itemsCreator : b . itemsCreator , adapter : b . adapter , masker : b . masker , value : b . value } ) , this . numberCounter . on ( BI . MultiSelectCheckSelectedSwitcher . EVENT _TRIGGER _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _COUNTER _CLICK ) } ) , this . numberCounter . on ( BI . MultiSelectCheckSelectedSwitcher . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . MultiSelectTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW ) } ) ; var c = BI . createWidget ( { type : "bi.right_vertical_adapt" , hgap : 4 , items : [ { el : this . numberCounter } ] } ) , d = BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : this . searcher , width : "fill" } , { el : c , width : 0 } , { el : BI . createWidget ( ) , width : 24 } ] } ) ; ! b . allowEdit && BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.layout" } , left : 0 , right : 24 , top : 0 , bottom : 0 } ] } ) , this . numberCounter . on ( BI . Events . VIEW , function ( b ) { BI . nextTick ( function ( ) { d . attr ( "items" ) [ 1 ] . width = b === ! 0 ? a . numberCounter . element . outerWidth ( ) + 8 : 0 , d . resize ( ) } ) } ) , this . element . click ( function ( b ) { a . element . find ( b . target ) . length > 0 && a . numberCounter . hideView ( ) } ) } , getCounter : function ( ) { return this . numberCounter } , getSearcher : function ( ) { return this . searcher } , stopEditing : function ( ) { this . searcher . stopSearch ( ) , this . numberCounter . hideView ( ) } , setAdapter : function ( a ) { this . searcher . setAdapter ( a ) , this . numberCounter . setAdapter ( a ) } , setValue : function ( a ) { this . searcher . setValue ( a ) , this . numberCounter . setValue ( a ) } , getKey : function ( ) { return this . searcher . getKey ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } } ) , BI . MultiSelectTrigger . EVENT _TRIGGER _CLICK = "EVENT_TRIGGER_CLICK" , BI . MultiSelectTrigger . EVENT _COUNTER _CLICK = "EVENT_COUNTER_CLICK" , BI . MultiSelectTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiSelectTrigger . EVENT _START = "EVENT_START" , BI . MultiSelectTrigger . EVENT _STOP = "EVENT_STOP" , BI . MultiSelectTrigger . EVENT _PAUSE = "EVENT_PAUSE" , BI . MultiSelectTrigger . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . MultiSelectTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW = "EVENT_BEFORE_COUNTER_POPUPVIEW" , BI . MultiSelectTrigger . EVENT _BLUR = "EVENT_BLUR" , BI . MultiSelectTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . shortcut ( "bi.multi_select_trigger" , BI . MultiSelectTrigger ) , BI . MultiSelectSearchInsertPane = BI . inherit ( BI . Widget , { constants : { height : 24 , lgap : 10 , tgap : 5 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectSearchInsertPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-search-pane bi-card" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , keywordGetter : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectSearchInsertPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . tooltipClick = BI . createWidget ( { type : "bi.label" , invisible : ! 0 , text : BI . i18nText ( "BI-Click_Blank_To_Select" ) , cls : "multi-select-toolbar" , height : this . constants . height } ) , this . addNotMatchTip = BI . createWidget ( { type : "bi.text_button" , invisible : ! 0 , text : BI . i18nText ( " BI - Basic _Click _To _Add _Te
c ( ) , a . adapter . populate ( ) , a . _setStartValue ( "" ) ) : ( a . adapter . setValue ( a . storeValue ) , c ( ) ) } ) } } , { eventName : BI . Searcher . EVENT _CHANGE , action : function ( b , d ) { d instanceof BI . MultiSelectBar ? a . _joinAll ( this . getValue ( ) , function ( ) { c ( ) , a . fireEvent ( BI . MultiSelectInsertNoBarList . EVENT _CHANGE ) } ) : a . _join ( this . getValue ( ) , function ( ) { c ( ) , a . fireEvent ( BI . MultiSelectInsertNoBarList . EVENT _CHANGE ) } ) } } ] , value : { type : BI . Selection . Multi , value : b . value || [ ] } } ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . trigger , height : 24 } , { el : this . adapter , height : "fill" } ] } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . searcherPane , top : 30 , bottom : 0 , left : 0 , right : 0 } ] } ) } , _showAdapter : function ( ) { this . adapter . setVisible ( ! 0 ) , this . searcherPane . setVisible ( ! 1 ) } , _showSearcherPane : function ( ) { this . searcherPane . setVisible ( ! 0 ) , this . adapter . setVisible ( ! 1 ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) } , _assertValue : function ( a ) { a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) } , _makeMap : function ( a ) { return BI . makeObject ( a || [ ] ) } , _joinKeywords : function ( a , b ) { function c ( c ) { var e = d . _makeMap ( c ) ; BI . each ( a , function ( a , b ) { BI . isNotNull ( e [ b ] ) && ( d . storeValue . type === BI . Selection . Multi ? BI . pushDistinct ( d . storeValue . value , b ) : BI . remove ( d . storeValue . value , b ) ) } ) , b ( ) } var d = this , e = this . options ; this . _assertValue ( this . storeValue ) , this . _allData ? c ( this . _allData ) : e . itemsCreator ( { type : BI . MultiSelectInsertNoBarList . REQ _GET _ALL _DATA } , function ( a ) { d . _allData = BI . map ( a . items , "value" ) , c ( d . _allData ) } ) } , _joinAll : function ( a , b ) { var c = this , d = this . options ; this . _assertValue ( a ) , d . itemsCreator ( { type : BI . MultiSelectInsertNoBarList . REQ _GET _ALL _DATA , keywords : [ c . trigger . getKeyword ( ) ] } , function ( d ) { var e = BI . map ( d . items , "value" ) ; if ( c . storeValue . type === a . type ) { var f = ! 1 , g = c . _makeMap ( c . storeValue . value ) ; return BI . each ( e , function ( a , b ) { BI . isNotNull ( g [ b ] ) && ( f = ! 0 , delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void b ( ) } var h = c . _makeMap ( c . storeValue . value ) , i = c . _makeMap ( a . value ) , j = [ ] ; BI . each ( e , function ( a , b ) { BI . isNotNull ( h [ e [ a ] ] ) && delete h [ e [ a ] ] , BI . isNull ( i [ e [ a ] ] ) && j . push ( b ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , b ( ) } ) } , _join : function ( a , b ) { var c = this ; this . options ; if ( this . _assertValue ( a ) , this . _assertValue ( this . storeValue ) , this . storeValue . type === a . type ) { var d = this . _makeMap ( this . storeValue . value ) ; BI . each ( a . value , function ( a , b ) { d [ b ] || ( c . storeValue . value . push ( b ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void b ( ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . adapter . setStartValue ( a ) } , isAllSelected : function ( ) { return this . adapter . isAllSelected ( ) } , resize : function ( ) { } , setValue : function ( a ) { this . storeValue = { type : BI . Selection . Multi , value : a || [ ] } , this . adapter . setValue ( this . storeValue ) , this . trigger . setValue ( this . storeValue ) } , getValue : function ( ) { return BI . deepClone ( this . storeValue . value ) } , populate : function ( ) { this . _count = null , this . _allData = null , this . adapter . populate . apply ( this . adapter , arguments ) , this . trigger . populate . apply ( this . trigger , arguments ) } } ) , BI . extend ( BI . MultiSelectInsertNoBarList , { REQ _GET _DATA _LENGTH : 1 , REQ _GET _ALL _DATA : - 1 } ) , BI . MultiSelectInsertNoBarList . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_insert_no_bar_list" , BI . MultiSelectInsertNoBarList ) , BI . MultiSelectList = BI . inherit ( BI . Widget , { _constant : { EDITOR _HEIGHT : 24 } , _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 . type === BI . Selection . All ? BI . remove ( a . storeValue . value , a . _startValue ) : BI . pushDistinct ( a . storeValue . value , 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 , logic : { dynamic : ! 1 } , el : { } } ) , this . adapter . on ( BI . MultiSelectLoader . EVENT _
break ; case 1 : a . fireEvent ( BI . MultiTreePopup . EVENT _CLICK _CONFIRM ) } } ) , this . tree . on ( BI . TreeView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiTreePopup . EVENT _CHANGE ) } ) , this . tree . on ( BI . TreeView . EVENT _AFTERINIT , function ( ) { a . fireEvent ( BI . MultiTreePopup . EVENT _AFTERINIT ) } ) } , getValue : function ( ) { return this . tree . getValue ( ) } , setValue : function ( a ) { a || ( a = { } ) , this . tree . setSelectedValue ( a . value ) } , populate : function ( a ) { this . tree . stroke ( a ) } , hasChecked : function ( ) { return this . tree . hasChecked ( ) } , resetHeight : function ( a ) { this . popupView . resetHeight ( a ) } , resetWidth : function ( a ) { this . popupView . resetWidth ( a ) } } ) , BI . MultiTreePopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiTreePopup . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . MultiTreePopup . EVENT _CLICK _CLEAR = "EVENT_CLICK_CLEAR" , BI . MultiTreePopup . EVENT _AFTERINIT = "EVENT_AFTERINIT" , BI . shortcut ( "bi.multi_tree_popup_view" , BI . MultiTreePopup ) , BI . MultiTreeCheckSelectedButton = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeCheckSelectedButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-check-selected-button" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiTreeCheckSelectedButton . superclass . _init . apply ( this , arguments ) ; var a = this ; this . indicator = BI . createWidget ( { type : "bi.icon_button" , cls : "check-font trigger-check-selected icon-size-12" , width : 15 , height : 15 , stopPropagation : ! 0 } ) , this . checkSelected = BI . createWidget ( { type : "bi.text_button" , cls : "trigger-check-selected" , invisible : ! 0 , hgap : 4 , text : BI . i18nText ( "BI-Check_Selected" ) , textAlign : "center" , textHeight : 15 } ) , this . checkSelected . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . checkSelected . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedButton . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( { type : "bi.horizontal" , element : this , items : [ this . indicator , this . checkSelected ] } ) , this . element . hover ( function ( ) { a . indicator . setVisible ( ! 1 ) , a . checkSelected . setVisible ( ! 0 ) } , function ( ) { a . indicator . setVisible ( ! 0 ) , a . checkSelected . setVisible ( ! 1 ) } ) , this . setVisible ( ! 1 ) } , setValue : function ( a ) { a || ( a = { } ) ; var b = BI . size ( a . value ) > 0 ; this . setVisible ( b ) , b && ( this . indicator . setVisible ( ! 0 ) , this . checkSelected . setVisible ( ! 1 ) ) } } ) , BI . MultiTreeCheckSelectedButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_tree_check_selected_button" , BI . MultiTreeCheckSelectedButton ) , BI . MultiTreeSearchInsertPane = BI . inherit ( BI . Widget , { constants : { height : 24 } , props : { baseCls : "bi-multi-tree-search-insert-pane bi-card" , itemsCreator : BI . emptyFn , keywordGetter : BI . emptyFn , el : { type : "bi.part_tree" } } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.absolute" , items : [ { el : { type : "bi.text_button" , invisible : ! 0 , ref : function ( b ) { a . addTip = b } , text : BI . i18nText ( "BI-Basic_Click_To_Add_Text" , "" ) , height : this . constants . height , cls : "bi-high-light" , handler : function ( ) { a . fireEvent ( BI . MultiTreeSearchInsertPane . EVENT _ADD _ITEM , b . keywordGetter ( ) ) } } , top : 5 , left : 0 , right : 0 } , { el : BI . extend ( { type : "bi.part_tree" , tipText : BI . i18nText ( "BI-No_Select" ) , itemsCreator : function ( c , d ) { c . keyword = b . keywordGetter ( ) , b . itemsCreator ( c , function ( c ) { d ( c ) , a . setKeyword ( b . keywordGetter ( ) , c . items ) } ) } , ref : function ( b ) { a . partTree = b } , value : b . value , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } , { eventName : BI . TreeView . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . MultiTreeSearchInsertPane . EVENT _CHANGE ) } } ] } , b . el ) , left : 0 , top : 0 , bottom : 0 , right : 0 } ] } } , setKeyword : function ( a , b ) { var c = BI . isEmptyArray ( b ) ; this . addTip . setVisible ( c ) , this . partTree . setVisible ( ! c ) , c && this . addTip . setText ( BI . i18nText ( "BI-Basic_Click_To_Add_Text" , a ) ) } , hasChecked : function ( ) { return this . partTree . hasChecked ( ) } , setValue : function ( a ) { this . setSelectedValue ( a . value ) } , setSelectedValue : function ( a ) { a || ( a = { } ) , this . partTree . setSelectedValue ( a ) } , getValue : function ( ) { return this . partTree . getValue ( ) } , empty : function ( ) { this . partTree . empty ( ) } , populate : function ( a ) { this . partTree . stroke . apply ( this . partTree , arguments ) } } ) , BI . MultiTreeSearchInsertPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiTreeSearchInsertPane . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . Multi
a . _updateAllValue ( ) , a . _checkError ( ) , a . trigger . getSearcher ( ) . setState ( a . storeValue ) , a . trigger . getCounter ( ) . setButtonChecked ( a . storeValue ) } ; this . storeValue = BI . deepClone ( b . value || { } ) , this . _updateAllValue ( ) , this . _assertValue ( this . storeValue ) , this . _checkError ( ) , this . requesting = ! 1 , this . trigger = BI . createWidget ( { type : "bi.search_multi_select_trigger" , text : b . text , height : b . height , masker : { offset : { left : 0 , top : 0 , right : 0 , bottom : 25 } } , allValueGetter : function ( ) { return a . allValue } , valueFormatter : b . valueFormatter , itemsCreator : function ( b , c ) { a . _itemsCreator ( b , function ( d ) { 1 === b . times && BI . isNotNull ( b . keywords ) && a . trigger . setValue ( BI . deepClone ( a . getValue ( ) ) ) , c . apply ( a , arguments ) } ) } , value : this . storeValue , warningTitle : b . warningTitle } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _START , function ( ) { a . _setStartValue ( "" ) , this . getSearcher ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _STOP , function ( ) { a . _setStartValue ( "" ) } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _PAUSE , function ( ) { if ( this . getSearcher ( ) . hasMatched ( ) ) { var b = this . getSearcher ( ) . getKeyword ( ) ; a . _join ( { type : BI . Selection . Multi , value : [ b ] } , function ( ) { a . combo . setValue ( a . storeValue ) , a . _setStartValue ( b ) , c ( ) , a . _populate ( ) , a . _setStartValue ( "" ) } ) } } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _SEARCHING , function ( b ) { var d = BI . last ( b ) ; b = BI . initial ( b || [ ] ) , b . length > 0 && a . _joinKeywords ( b , function ( ) { BI . isEndWithBlank ( d ) ? ( a . combo . setValue ( a . storeValue ) , c ( ) , a . combo . populate ( ) , a . _setStartValue ( "" ) ) : ( a . combo . setValue ( a . storeValue ) , c ( ) ) } ) } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _CHANGE , function ( b , d ) { d instanceof BI . MultiSelectBar ? a . _joinAll ( this . getValue ( ) , function ( ) { c ( ) } ) : a . _join ( this . getValue ( ) , function ( ) { c ( ) } ) } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW , function ( ) { this . getCounter ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . MultiSelectTrigger . EVENT _COUNTER _CLICK , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , toggle : ! 1 , container : b . container , el : this . trigger , adjustLength : 1 , popup : { type : "bi.search_multi_select_popup_view" , ref : function ( ) { a . popup = this , a . trigger . setAdapter ( this ) } , listeners : [ { eventName : BI . MultiSelectPopupView . EVENT _CHANGE , action : function ( ) { a . storeValue = this . getValue ( ) , a . _adjust ( function ( ) { c ( ) } ) } } , { eventName : BI . MultiSelectPopupView . EVENT _CLICK _CONFIRM , action : function ( ) { a . _defaultState ( ) } } , { eventName : BI . MultiSelectPopupView . EVENT _CLICK _CLEAR , action : function ( ) { a . setValue ( ) , a . _defaultState ( ) } } ] , itemsCreator : BI . bind ( a . _itemsCreator , this ) , valueFormatter : b . valueFormatter , onLoaded : function ( ) { BI . nextTick ( function ( ) { a . combo . adjustWidth ( ) , a . combo . adjustHeight ( ) , a . trigger . getCounter ( ) . adjustView ( ) , a . trigger . getSearcher ( ) . adjustView ( ) } ) } } , value : b . value , hideChecker : function ( a ) { return 0 === d . element . find ( a . target ) . length } } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { this . setValue ( a . storeValue ) , BI . nextTick ( function ( ) { a . _populate ( ) } ) } ) , this . wants2Quit = ! 1 , this . combo . on ( BI . Combo . EVENT _AFTER _HIDEVIEW , function ( ) { a . trigger . stopEditing ( ) , a . requesting === ! 0 ? a . wants2Quit = ! 0 : ( c ( ) , a . fireEvent ( BI . SearchMultiTextValueCombo . EVENT _CONFIRM ) ) } ) ; var d = BI . createWidget ( { type : "bi.trigger_icon_button" , width : b . height , height : b . height , cls : "multi-select-trigger-icon-button" } ) ; d . on ( BI . TriggerIconButton . EVENT _CHANGE , function ( ) { a . trigger . getCounter ( ) . hideView ( ) , a . combo . isViewVisible ( ) ? a . combo . hideView ( ) : a . combo . showView ( ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . combo , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : d , right : 0 , top : 0 , bottom : 0 } ] } ) , this . _checkError ( ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) , this . combo . hideView ( ) } , _assertValue : function ( a ) { var b = this . options ; a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) , BI . remove ( a . value , function ( a , c ) { return ! BI . contains ( BI . map ( b . items , "value" ) , c ) } ) } , _makeMap : function ( a ) { return BI . makeObject ( a || [ ] ) } , _joinKeywords : function ( a , b ) { function c ( c ) { var e = d . _makeMap ( c ) ; BI . each ( a , function ( a , b ) { BI . isNotNull ( e [ b ] ) && ( d . storeValue . type === BI . Selection . Multi ? BI . pushDistinct ( d . storeValue . value , b ) : BI . remove ( d . storeValue . value , b ) ) } ) , d . _adjust ( b ) } var d = this ; t
var h = [ ] ; if ( 1 === d . times && BI . isNotNull ( a . storeValue ) ) { var i = a . _filterValues ( a . storeValue ) ; h = a . _createItems ( i ) } e ( h . concat ( a . _createItems ( f . items ) ) , g || "" ) , 1 === d . times && a . storeValue && a . setValue ( a . storeValue ) } ) } , hasNext : function ( ) { return c } } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . SingleSelectList . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SingleSelectSearchLoader . EVENT _CHANGE , arguments ) } ) } , _createItems : function ( a ) { return BI . createItems ( a , { type : this . options . allowNoSelect ? "bi.single_select_item" : "bi.single_select_combo_item" , cls : "bi-list-item-active" , logic : { dynamic : ! 1 } , height : 25 , selected : ! 1 } ) } , _filterValues : function ( a ) { var b = this . options , c = b . keywordGetter ( ) , d = a || [ ] , e = BI . map ( BI . isArray ( d ) ? d : [ d ] , function ( a , c ) { return { text : b . valueFormatter ( c ) || c , value : c } } ) ; if ( BI . isKey ( c ) ) { var f = BI . Func . getSearchResult ( e , c ) ; d = f . match . concat ( f . find ) } return BI . map ( d , function ( a , b ) { return { text : b . text , title : b . text , value : b . value , selected : ! 1 } } ) } , setValue : function ( a ) { this . storeValue = a , this . button _group . setValue ( a ) } , getValue : function ( ) { return this . button _group . getValue ( ) } , getAllButtons : function ( ) { return this . button _group . getAllButtons ( ) } , empty : function ( ) { this . button _group . empty ( ) } , populate : function ( a ) { this . button _group . populate . apply ( this . button _group , arguments ) } , resetHeight : function ( a ) { this . button _group . resetHeight ( a ) } , resetWidth : function ( a ) { this . button _group . resetWidth ( a ) } } ) , BI . SingleSelectSearchLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_select_search_loader" , BI . SingleSelectSearchLoader ) , BI . SingleSelectSearchInsertPane = BI . inherit ( BI . Widget , { constants : { height : 25 , lgap : 10 , tgap : 5 } , _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectSearchInsertPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-search-pane bi-card" , allowNoSelect : ! 1 , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , keywordGetter : BI . emptyFn } ) } , _init : function ( ) { BI . SingleSelectSearchInsertPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . tooltipClick = BI . createWidget ( { type : "bi.label" , invisible : ! 0 , text : BI . i18nText ( "BI-Click_Blank_To_Select" ) , cls : "multi-select-toolbar" , height : this . constants . height } ) , this . addNotMatchTip = BI . createWidget ( { type : "bi.text_button" , invisible : ! 0 , text : BI . i18nText ( "BI-Basic_Click_To_Add_Text" , "" ) , height : this . constants . height , cls : "bi-high-light" , hgap : 5 , handler : function ( ) { a . fireEvent ( BI . SingleSelectSearchInsertPane . EVENT _ADD _ITEM , b . keywordGetter ( ) ) } } ) , this . loader = BI . createWidget ( { type : "bi.single_select_search_loader" , allowNoSelect : b . allowNoSelect , keywordGetter : b . keywordGetter , valueFormatter : b . valueFormatter , itemsCreator : function ( c , d ) { b . itemsCreator . apply ( a , [ c , function ( c ) { d ( c ) , a . setKeyword ( b . keywordGetter ( ) ) } ] ) } , value : b . value } ) , this . loader . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . resizer = BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { type : "bi.vertical" , items : [ this . tooltipClick , this . addNotMatchTip ] , height : this . constants . height } , { el : this . loader } ] } ) } , setKeyword : function ( a ) { var b , c = this . loader . getAllButtons ( ) . length > 0 && ( b = this . loader . getAllButtons ( ) [ 0 ] ) && a === b . getValue ( ) ; this . tooltipClick . setVisible ( c ) , this . addNotMatchTip . setVisible ( ! c ) , ! c && this . addNotMatchTip . setText ( BI . i18nText ( "BI-Basic_Click_To_Add_Text" , a ) ) } , hasMatched : function ( ) { return this . tooltipClick . isVisible ( ) } , setValue : function ( a ) { this . loader . setValue ( a ) } , getValue : function ( ) { return this . loader . getValue ( ) } , empty : function ( ) { this . loader . empty ( ) } , populate : function ( a ) { this . loader . populate . apply ( this . loader , arguments ) } } ) , BI . SingleSelectSearchInsertPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . SingleSelectSearchInsertPane . EVENT _ADD _ITEM = "EVENT_ADD_ITEM" , BI . shortcut ( "bi.single_select_search_insert_pane" , BI . SingleSelectSearchInsertPane ) , BI . SingleSelectSearchPane = BI . inherit ( BI . Widget , { constants : { height : 25 , lgap : 10 , tgap : 5 } , _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectSearchPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-search-pane bi-card" , allowNoSelect : ! 1 , itemsCreator : BI
a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . StateEditor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . SingleSelectEditor . EVENT _PAUSE ) } ) , this . editor . on ( BI . StateEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . SingleSelectEditor . EVENT _FOCUS ) } ) , this . editor . on ( BI . StateEditor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SingleSelectEditor . EVENT _BLUR ) } ) } , focus : function ( ) { this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) } , setState : function ( a ) { this . editor . setState ( a ) } , setValue : function ( a ) { this . editor . setValue ( a ) } , getValue : function ( ) { var a = this . editor . getState ( ) ; return BI . isArray ( a ) && a . length > 0 ? a [ a . length - 1 ] : "" } , getKeywords : function ( ) { var a = this . editor . getLastChangedValue ( ) , b = a . match ( /[\S]+/g ) ; return BI . isEndWithBlank ( a ) ? b . concat ( [ " " ] ) : b } , populate : function ( a ) { } } ) , BI . SingleSelectEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . SingleSelectEditor . EVENT _BLUR = "EVENT_BLUR" , BI . SingleSelectEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . shortcut ( "bi.single_select_editor" , BI . SingleSelectEditor ) , BI . SingleSelectSearcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectSearcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-searcher" , itemsCreator : BI . emptyFn , el : { } , popup : { } , valueFormatter : BI . emptyFn , adapter : null , masker : { } , allowNoSelect : ! 1 } ) } , _init : function ( ) { BI . SingleSelectSearcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( b . el , { type : "bi.single_select_editor" , height : b . height , text : b . text , listeners : [ { eventName : BI . SingleSelectEditor . EVENT _FOCUS , action : function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _FOCUS ) } } , { eventName : BI . SingleSelectEditor . EVENT _BLUR , action : function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _BLUR ) } } ] } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , height : b . height , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( a , b ) { b ( ) } , el : this . editor , popup : BI . extend ( { type : "bi.single_select_search_pane" , allowNoSelect : b . allowNoSelect , valueFormatter : b . valueFormatter , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { var e = a . editor . getValue ( ) ; c . keywords = [ e ] , this . setKeyword ( e ) , b . itemsCreator ( c , d ) } , value : b . value } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . searcher . on ( BI . Searcher . EVENT _START , function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _START ) } ) , this . searcher . on ( BI . Searcher . EVENT _PAUSE , function ( ) { this . hasMatched ( ) , a . fireEvent ( BI . SingleSelectSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SingleSelectSearcher . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . Searcher . EVENT _SEARCHING , function ( ) { var b = this . getKeywords ( ) ; a . fireEvent ( BI . SingleSelectSearcher . EVENT _SEARCHING , b ) } ) , BI . isNotNull ( b . value ) && this . setState ( b . value ) } , adjustView : function ( ) { this . searcher . adjustView ( ) } , isSearching : function ( ) { return this . searcher . isSearching ( ) } , stopSearch : function ( ) { this . searcher . stopSearch ( ) } , getKeyword : function ( ) { return this . editor . getValue ( ) } , hasMatched : function ( ) { return this . searcher . hasMatched ( ) } , hasChecked : function ( ) { return this . searcher . getView ( ) && this . searcher . getView ( ) . hasChecked ( ) } , setAdapter : function ( a ) { this . searcher . setAdapter ( a ) } , setState : function ( a ) { var b = this . options ; BI . isNull ( a ) ? this . editor . setState ( BI . Selection . None ) : this . editor . setState ( b . valueFormatter ( a + "" ) || a + "" ) } , setValue : function ( a ) { this . setState ( a ) , this . searcher . setValue ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } , populate : function ( a ) { this . searcher . populate . apply ( this . searcher , arguments ) } } ) , BI . SingleSelectSearcher . EVENT _FOCUS = "EVENT_FOCUS" , BI . SingleSelectSearcher . EVENT _BLUR = "EVENT_BLUR" , BI . SingleSelectSearcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . SingleSelectSearcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . SingleSelectSearcher . EVENT _START = "EVENT_START" , BI . SingleSelectSearcher . EVENT _STOP = "EVENT_STOP" , BI . SingleSelectSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . SingleSelectSearcher . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . shortcut ( " bi . single _se
listeners : [ { eventName : "EVENT_KEY_DOWN" , action : function ( ) { a . fireEvent ( "EVENT_KEY_DOWN" , arguments ) } } , { eventName : "EVENT_FOCUS" , action : function ( ) { a . storeTriggerValue = a . getKey ( ) , a . fireEvent ( "EVENT_FOCUS" ) } } , { eventName : "EVENT_BLUR" , action : function ( ) { a . fireEvent ( "EVENT_BLUR" ) } } , { eventName : "EVENT_STOP" , action : function ( ) { a . fireEvent ( "EVENT_STOP" ) } } , { eventName : "EVENT_VALID" , action : function ( ) { a . fireEvent ( "EVENT_VALID" ) } } , { eventName : "EVENT_ERROR" , action : function ( ) { a . fireEvent ( "EVENT_ERROR" ) } } , { eventName : "EVENT_CONFIRM" , action : function ( ) { var b = a . editor . getValue ( ) ; if ( BI . isNotNull ( b ) && a . editor . setState ( b ) , BI . isNotEmptyString ( b ) && ! BI . isEqual ( a . storeTriggerValue , a . getKey ( ) ) ) { var c = b . match ( /\d+/g ) ; a . storeValue = { hour : 0 | c [ 0 ] , minute : 0 | c [ 1 ] , second : 0 | c [ 2 ] } } a . fireEvent ( "EVENT_CONFIRM" ) } } , { eventName : "EVENT_START" , action : function ( ) { a . fireEvent ( "EVENT_START" ) } } , { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] } , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : { type : "bi.text" , invisible : b . allowEdit , cls : "show-text" , title : BI . bind ( this . _getTitle , this ) , hgap : 4 } , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } } , _dateCheck : function ( a ) { var b = this . _const ; return BI . any ( b . FORMAT _ARRAY , function ( c , d ) { return BI . print ( BI . parseDateTime ( b . DEFAULT _DATE _STRING + " " + a , b . COMPLETE _COMPARE _FORMAT ) , d ) === a } ) } , _getTitle : function ( ) { var a = this . storeValue || { } , b = BI . getDate ( ) ; return BI . print ( BI . getDate ( b . getFullYear ( ) , 0 , 1 , a . hour , a . minute , a . second ) , this . _getFormatString ( ) ) } , _getFormatString : function ( ) { return this . options . format || this . _const . COMPARE _FORMAT } , _formatValue : function ( a ) { var b = BI . getDate ( ) ; return BI . isNotEmptyObject ( a ) ? BI . print ( BI . getDate ( b . getFullYear ( ) , b . getMonth ( ) , b . getDay ( ) , a . hour , a . minute , a . second ) , this . _getFormatString ( ) ) : BI . i18nText ( "BI-Basic_Unrestricted" ) } , getKey : function ( ) { return this . editor . getValue ( ) } , setValue : function ( a ) { this . storeValue = a , this . editor . setValue ( this . _formatValue ( a ) ) } , getValue : function ( ) { return this . storeValue } } ) , BI . shortcut ( "bi.time_trigger" , BI . TimeTrigger ) } ( ) , BI . DateInterval = BI . inherit ( BI . Single , { constants : { height : 24 , width : 24 , lgap : 15 , offset : 0 , timeErrorCls : "time-error" } , _defaultConfig : function ( ) { var a = BI . DateInterval . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-date-interval" , minDate : "1900-01-01" , maxDate : "2099-12-31" } ) } , _init : function ( ) { var a = this , b = this . options ; BI . DateInterval . superclass . _init . apply ( this , arguments ) , b . value = b . value || { } , this . left = this . _createCombo ( b . value . start ) , this . right = this . _createCombo ( b . value . end ) , this . label = BI . createWidget ( { type : "bi.label" , height : this . constants . height , width : this . constants . width , text : "-" } ) , BI . createWidget ( { element : a , type : "bi.center" , height : this . constants . height , items : [ { type : "bi.absolute" , items : [ { el : a . left , left : this . constants . offset , right : this . constants . width / 2 , top : 0 , bottom : 0 } ] } , { type : "bi.absolute" , items : [ { el : a . right , left : this . constants . width / 2 , right : this . constants . offset , top : 0 , bottom : 0 } ] } ] } ) , BI . createWidget ( { type : "bi.horizontal_auto" , element : this , items : [ a . label ] } ) } , _createCombo : function ( a ) { var b = this , c = this . options , d = BI . createWidget ( { type : "bi.dynamic_date_combo" , behaviors : c . behaviors , value : a } ) ; return d . on ( BI . DynamicDateCombo . EVENT _ERROR , function ( ) { b . _clearTitle ( ) , BI . Bubbles . hide ( "error" ) , b . element . removeClass ( b . constants . timeErrorCls ) , b . fireEvent ( BI . DateInterval . EVENT _ERROR ) } ) , d . on ( BI . DynamicDateCombo . EVENT _VALID , function ( ) { BI . Bubbles . hide ( "error" ) ; var a = b . left . getKey ( ) , c = b . right . getKey ( ) ; b . _check ( a , c ) && b . _compare ( a , c ) ? ( b . _setTitle ( BI . i18nText ( "BI-Time_Interval_Error_Text" ) ) , b . element . addClass ( b . constants . timeErrorCls ) , BI . Bubbles . show ( "error" , BI . i18nText ( "BI-Time_Interval_Error_Text" ) , b , { offsetStyle : "center" } ) , b . fireEvent ( BI . DateInterval . EVENT _ERROR ) ) : ( b . _clearTitle ( ) , b . element . removeClass ( b . constants . timeErrorCls ) ) } ) , d . on ( BI . DynamicDateCombo . EVENT _FOCUS , function ( ) { BI . Bubbles . hide ( "error" ) ; var a = b . left . getKey ( ) , c = b . right . getKey ( ) ; b . _check ( a , c ) && b . _compare ( a , c ) ? ( b . _setTitle ( BI . i18nText ( "BI-Time_Interval_Error_Text" ) ) , b . element . addClass ( b . constants . timeErrorCls ) , BI . Bubbles . show ( "error" , BI . i18nText ( "BI-Time_Interval_Error_Text" ) , b , { offsetStyle : "center" } ) , b . fireEvent ( BI . DateInte
} ) , BI . createWidget ( { type : "bi.htape" , element : this , ref : function ( ) { a . comboWrapper = this } , items : [ { el : { type : "bi.icon_button" , cls : "bi-trigger-icon-button date-change-h-font" , width : 24 , height : 24 , ref : function ( ) { a . changeIcon = this } } , width : 24 } , this . combo ] } ) , this . _checkDynamicValue ( b . value ) } , _checkDynamicValue : function ( a ) { var b = null ; switch ( BI . isNotNull ( a ) && ( b = a . type ) , b ) { case BI . DynamicYearMonthCombo . Dynamic : this . changeIcon . setVisible ( ! 0 ) , this . comboWrapper . attr ( "items" ) [ 0 ] . width = 24 , this . comboWrapper . resize ( ) ; break ; default : this . comboWrapper . attr ( "items" ) [ 0 ] . width = 0 , this . comboWrapper . resize ( ) , this . changeIcon . setVisible ( ! 1 ) } } , hideView : function ( ) { this . combo . hideView ( ) } , setValue : function ( a ) { this . storeValue = a , this . trigger . setValue ( a ) , this . _checkDynamicValue ( a ) } , getValue : function ( ) { return this . storeValue } , getKey : function ( ) { return this . trigger . getKey ( ) } , isValid : function ( ) { return this . trigger . isValid ( ) } } ) , BI . DynamicYearMonthCombo . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicYearMonthCombo . EVENT _VALID = "EVENT_VALID" , BI . DynamicYearMonthCombo . EVENT _FOCUS = "EVENT_FOCUS" , BI . DynamicYearMonthCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DynamicYearMonthCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.dynamic_year_month_combo" , BI . DynamicYearMonthCombo ) , BI . extend ( BI . DynamicYearMonthCombo , { Static : 1 , Dynamic : 2 } ) , BI . DynamicYearMonthPopup = BI . inherit ( BI . Widget , { constants : { tabHeight : 30 , buttonHeight : 24 } , props : { baseCls : "bi-year-month-popup" , behaviors : { } , min : "1900-01-01" , max : "2099-12-31" , width : 180 , height : 240 } , render : function ( ) { var a = this , b = ( this . options , this . constants ) ; return this . storeValue = { type : BI . DynamicYearMonthCombo . Static } , { type : "bi.vtape" , items : [ { el : this . _getTabJson ( ) } , { el : { type : "bi.grid" , items : [ [ { type : "bi.text_button" , cls : "bi-split-top bi-high-light" , textHeight : b . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_Clear" ) , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicYearMonthPopup . BUTTON _CLEAR _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , cls : "bi-split-left bi-split-right bi-high-light bi-split-top" , textHeight : b . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_Current_Month" ) , ref : function ( ) { a . textButton = this } , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicYearMonthPopup . BUTTON _lABEL _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , cls : "bi-split-top bi-high-light" , textHeight : b . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicYearMonthPopup . BUTTON _OK _EVENT _CHANGE ) } } ] } ] ] } , height : 24 } ] } } , _setInnerValue : function ( ) { if ( this . dateTab . getSelect ( ) === BI . DynamicDateCombo . Static ) this . textButton . setValue ( BI . i18nText ( "BI-Basic_Current_Month" ) ) , this . textButton . setEnable ( ! 0 ) ; else { var a = BI . DynamicDateHelper . getCalculation ( this . dynamicPane . getValue ( ) ) ; a = BI . print ( a , "%Y-%x" ) , this . textButton . setValue ( a ) , this . textButton . setEnable ( ! 1 ) } } , _getTabJson : function ( ) { var a = this , b = this . options ; return { type : "bi.tab" , ref : function ( ) { a . dateTab = this } , tab : { type : "bi.linear_segment" , cls : "bi-split-bottom" , height : this . constants . tabHeight , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Basic_Year_Month" ) , value : BI . DynamicYearCombo . Static } , { text : BI . i18nText ( "BI-Basic_Dynamic_Title" ) , value : BI . DynamicYearCombo . Dynamic } ] , { textAlign : "center" } ) } , cardCreator : function ( c ) { switch ( c ) { case BI . DynamicYearCombo . Dynamic : return { type : "bi.dynamic_year_month_card" , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . _setInnerValue ( a . year , c ) } } ] , ref : function ( ) { a . dynamicPane = this } } ; case BI . DynamicYearCombo . Static : default : return { type : "bi.static_year_month_card" , behaviors : b . behaviors , min : a . options . min , max : a . options . max , listeners : [ { eventName : BI . StaticYearMonthCard . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicYearMonthPopup . EVENT _CHANGE ) } } ] , ref : function ( ) { a . year = this } } } } , listeners : [ { eventName : BI . Tab . EVENT _CHANGE , action : function ( ) { var b = a . dateTab . getSelect ( ) ; switch ( b ) { case BI . DynamicYearCombo . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dynamicPane . getValue ( ) ) ; a . year . setValue ( { year : c . getFullYear ( ) , month : c . getMonth ( ) + 1 } ) , a . _setInnerValue ( ) ; b
_defaultConfig : function ( ) { return BI . extend ( BI . AllValueChooserPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-all-value-chooser-pane" , width : 200 , height : 30 , items : null , itemsCreator : BI . emptyFn , cache : ! 0 } ) } , _init : function ( ) { BI . AllValueChooserPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; BI . isNotNull ( b . items ) && ( this . items = b . items ) , this . list = BI . createWidget ( { type : "bi.multi_select_list" , element : this , itemsCreator : BI . bind ( this . _itemsCreator , this ) , valueFormatter : BI . bind ( this . _valueFormatter , this ) , width : b . width , height : b . height } ) , this . list . on ( BI . MultiSelectList . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . AllValueChooserPane . EVENT _CHANGE ) } ) } , setValue : function ( a ) { this . list . setValue ( { type : BI . Selection . Multi , value : a || [ ] } ) } , getValue : function ( ) { var a = this . list . getValue ( ) || { } ; return a . type === BI . Selection . All ? a . assist : a . value || [ ] } , populate : function ( a ) { this . items = a , this . list . populate . apply ( this . list , arguments ) } } ) , BI . AllValueChooserPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.all_value_chooser_pane" , BI . AllValueChooserPane ) , BI . AllValueMultiTextValueCombo = BI . inherit ( BI . Widget , { props : { baseCls : "bi-all-value-multi-text-value-combo" , width : 200 , height : 24 , items : [ ] } , render : function ( ) { var a = this , b = this . options , c = this . _digestValue ( b . value ) ; return { type : "bi.search_multi_text_value_combo" , text : b . text , height : b . height , items : b . items , value : c , numOfPage : 100 , valueFormatter : b . valueFormatter , warningTitle : b . warningTitle , listeners : [ { eventName : BI . SearchMultiTextValueCombo . EVENT _CONFIRM , action : function ( ) { a . fireEvent ( BI . AllValueMultiTextValueCombo . EVENT _CONFIRM ) } } ] , ref : function ( ) { a . combo = this } } } , setValue : function ( a ) { var b = this . _digestValue ( a ) ; this . combo . setValue ( b ) } , getValue : function ( ) { var a = this . combo . getValue ( ) || { } ; if ( a . value = a . value || [ ] , a . type === BI . Selection . All ) { var b = [ ] ; return BI . each ( this . options . items , function ( c , d ) { ! BI . contains ( a . value , d . value ) && b . push ( d . value ) } ) , b } return a . value || [ ] } , populate : function ( a ) { this . options . items = a , this . combo . populate . apply ( this , arguments ) } , _digestValue : function ( a ) { return { type : BI . Selection . Multi , value : a || [ ] } } } ) , BI . AllValueMultiTextValueCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.all_value_multi_text_value_combo" , BI . AllValueMultiTextValueCombo ) , BI . AbstractTreeValueChooser = BI . inherit ( BI . Widget , { _const : { perPage : 100 } , _defaultConfig : function ( ) { return BI . extend ( BI . AbstractTreeValueChooser . superclass . _defaultConfig . apply ( this , arguments ) , { items : null , itemsCreator : BI . emptyFn , open : ! 1 } ) } , _valueFormatter : function ( a ) { var b = a ; return BI . isNotNull ( this . items ) && BI . some ( this . items , function ( c , d ) { if ( d . value + "" === a ) return b = d . text , ! 0 } ) , b } , _initData : function ( a ) { this . items = a ; var b = BI . Tree . treeFormat ( a ) ; this . tree = new BI . Tree , this . tree . initTree ( b ) } , _itemsCreator : function ( a , b ) { function c ( ) { switch ( a . type ) { case BI . TreeView . REQ _TYPE _INIT _DATA : d . _reqInitTreeNode ( a , b ) ; break ; case BI . TreeView . REQ _TYPE _ADJUST _DATA : d . _reqAdjustTreeNode ( a , b ) ; break ; case BI . TreeView . REQ _TYPE _SELECT _DATA : d . _reqSelectedTreeNode ( a , b ) ; break ; case BI . TreeView . REQ _TYPE _GET _SELECTED _DATA : d . _reqDisplayTreeNode ( a , b ) ; break ; default : d . _reqTreeNode ( a , b ) } } var d = this , e = this . options ; this . items ? c ( ) : e . itemsCreator ( { } , function ( a ) { d . _initData ( a ) , c ( ) } ) } , _reqDisplayTreeNode : function ( a , b ) { function c ( a , b , g ) { return null == g || BI . isEmpty ( g ) ? void BI . each ( b . getChildren ( ) , function ( d , g ) { var h = BI . clone ( a ) ; h . push ( g . value ) ; var i = f . _getChildCount ( h ) ; e ( g , b . id , i ) , c ( h , g , { } ) } ) : void BI . each ( g , function ( b ) { var h = f . _getTreeNode ( a , b ) ; if ( BI . isNull ( h ) ) e ( { id : BI . UUID ( ) , text : b , value : b } , BI . UUID ( ) , 0 ) ; else { var i = BI . clone ( a ) ; i . push ( h . value ) , e ( h , h . parent && h . parent . id , d ( g [ b ] , i ) ) , c ( i , h , g [ b ] ) } } ) } function d ( a , b ) { return null == a ? 0 : BI . isEmpty ( a ) ? f . _getChildCount ( b ) : BI . size ( a ) } function e ( a , b , c ) { g . push ( { id : a . id , pId : b , text : a . text + ( c > 0 ? "(" + BI . i18nText ( "BI-Basic_Altogether" ) + c + BI . i18nText ( "BI-Basic_Count" ) + ")" : "" ) , value : a . value , open : ! 0 } ) } var f = this , g = [ ] , h = a . selectedValues ; return null == h || BI . isEmpty ( h ) ? void b ( { } ) : ( c ( [ ] , this . tree . getRoot ( ) , h ) , void b ( { items : g } ) ) } , _reqSelectedTreeNode : function ( a , b ) { function c ( a ) { var b = m . concat ( k ) ; if ( g ( a , b ) ) if ( f ( b ) ) i . _deleteNode ( a , b ) ; else { var c = [ ] , j = e ( m , k , [ ] , c ) ; j && BI . isNotEmptyArray (
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 ( l , "/" ) , 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 c = document . createElement ( "iframe" ) ; c . src = "javascript:0" , c . style . display = "none" , c . tabIndex = - 1 ; var d = document . body ; this . iframe = d . insertBefore ( c , d . firstChild ) . contentWindow , this . iframe . document . open ( ) . close ( ) , this . iframe . location . hash = "#" + this . fragment } var e = _global . addEventListener || function ( a , b ) { return attachEvent ( "on" + a , b ) } ; if ( this . _hasPushState ? e ( "popstate" , this . checkUrl , ! 1 ) : this . _wantsHashChange && this . _hasHashChange && ! this . iframe ? e ( "hashchange" , this . checkUrl , ! 1 ) : this . _wantsHashChange && ( this . _checkUrlInterval = setInterval ( this . checkUrl , this . interval ) ) , ! this . options . silent ) return this . loadUrl ( ) } , stop : function ( ) { var a = _global . 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 ) , j . 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 ) , _ . some ( this . handlers , function ( b ) { if ( b . route . test ( a ) ) return b . callback ( a ) , ! 0 } ) } , navigate : function ( a , b ) { if ( ! j . started ) return ! 1 ; b && b !== ! 0 || ( b = { trigger : ! ! b } ) , a = this . getFragment ( a || "" ) ; var c = this . root ; "" !== a && "?" !== a . charAt ( 0 ) || ( c = c . slice ( 0 , - 1 ) || "/" ) ; var d = c + a ; if ( a = decodeURI ( a . replace ( m , "" ) ) , this . fragment !== a ) { if ( this . fragment = a , this . _hasPushState ) this . history [ b . replace ? "replaceState" : "pushState" ] ( { } , document . title , d ) ; else { if ( ! this . _wantsHashChange ) return this . location . assign ( d ) ; this . _updateHash ( this . location , a , b . replace ) , this . iframe && a !== this . getHash ( this . iframe ) && ( b . replace || this . iframe . document . open ( ) . close ( ) , this . _updateHash ( this . iframe . location , a , b . replace ) ) } return b . trigger ? this . loadUrl ( a ) : void 0 } } , _updateHash : function ( a , b , c ) { if ( c ) { var d = a . href . replace ( /(javascript:|#).*$/ , "" ) ; a . replace ( d + "#" + b ) } else a . hash = "#" + b } } ) , BI . history = new j } ( ) , function ( ) { function a ( a , c ) { a . _watchers || ( a . _watchers = [ ] ) ; for ( var d in c ) { var e = c [ d ] ; if ( BI . isArray ( e ) ) for ( var f = 0 ; f < e . length ; f ++ ) a . _watchers . push ( b ( a , d , e [ f ] ) ) ; else a . _watchers . push ( b ( a , d , e ) ) } } function b ( a , b , c ) { return Fix . watch ( a . model , b , _ . bind ( c , a ) , { store : a . store } ) } function c ( a ) { i && j . push ( i ) , Fix . Model . target = i = a } function d ( ) { Fix . Model . target = i = j . pop ( ) } function e ( a ) { k && l . push ( k ) , Fix . Model . context = k = a } function f ( ) { Fix . Model . context = k = l . pop ( ) } function g ( a ) { if ( null != i ) return i ; a = a || k ; for ( var b = a ; b && ! ( b instanceof Fix . Model || b . store || b . _ _cacheStore ) ; ) b = b . _parent || b . options && b . options . element ; return b ? b instanceof Fix . Model ? a . _ _cacheStore = b : ( a . _ _cacheStore = b . store || b . _ _cacheStore , b . _ _cacheStore || b . store ) : void 0 } function h ( ) { var a = ! 1 ; if ( _global . Fix && this . _store ) { var b = g ( this . options . context || this . options . element ) ; b && ( c ( b ) , a = ! 0 ) , this . store = this . _store ( ) , this . store && ( this . store . _widget = this ) , a && d ( ) , a = ! 1 , c ( this . store ) , this . store instanceof Fix . Model ? this . model = this . store . model : this . model = this . store , a = ! 0 } return a } var i = null , j = [ ] , k = null , l = [ ] , m = Fix . watch ; Fix . watch = function ( a , b , e , f ) { return BI . isPlainObject ( e ) && ( f = e , e = e . handler ) , "string" == typeof e && ( e = a [ e ] ) , m . call ( this , a , b , function ( ) { f && f . store && c ( f . store ) ; try { var a = e . apply ( this , arguments ) } catch ( b ) { console . error ( b ) } return f && f . store && d ( ) , a } , f ) } ; var n = BI . createWidget ; BI . createWi