2016-01-26 18:12:49 +08:00
! function ( a ) { "undefined" == typeof a . fn . each2 && a . extend ( a . fn , { each2 : function ( b ) { for ( var c = a ( [ 0 ] ) , d = - 1 , e = this . length ; ++ d < e && ( c . context = c [ 0 ] = this [ d ] ) && b . call ( c [ 0 ] , d , c ) !== ! 1 ; ) ; return this } } ) } ( jQuery ) , function ( a , b ) { "use strict" ; function n ( b ) { var c = a ( document . createTextNode ( "" ) ) ; b . before ( c ) , c . before ( b ) , c . remove ( ) } function o ( a ) { function b ( a ) { return m [ a ] || a } return a . replace ( /[^\u0000-\u007E]/g , b ) } function p ( a , b ) { for ( var c = 0 , d = b . length ; d > c ; c += 1 ) if ( r ( a , b [ c ] ) ) return c ; return - 1 } function q ( ) { var b = a ( l ) ; b . appendTo ( "body" ) ; var c = { width : b . width ( ) - b [ 0 ] . clientWidth , height : b . height ( ) - b [ 0 ] . clientHeight } ; return b . remove ( ) , c } function r ( a , c ) { return a === c ? ! 0 : a === b || c === b ? ! 1 : null === a || null === c ? ! 1 : a . constructor === String ? a + "" == c + "" : c . constructor === String ? c + "" == a + "" : ! 1 } function s ( b , c ) { var d , e , f ; if ( null === b || b . length < 1 ) return [ ] ; for ( d = b . split ( c ) , e = 0 , f = d . length ; f > e ; e += 1 ) d [ e ] = a . trim ( d [ e ] ) ; return d } function t ( a ) { return a . outerWidth ( ! 1 ) - a . width ( ) } function u ( c ) { var d = "keyup-change-value" ; c . on ( "keydown" , function ( ) { a . data ( c , d ) === b && a . data ( c , d , c . val ( ) ) } ) , c . on ( "keyup" , function ( ) { var e = a . data ( c , d ) ; e !== b && c . val ( ) !== e && ( a . removeData ( c , d ) , c . trigger ( "keyup-change" ) ) } ) } function v ( c ) { c . on ( "mousemove" , function ( c ) { var d = i ; ( d === b || d . x !== c . pageX || d . y !== c . pageY ) && a ( c . target ) . trigger ( "mousemove-filtered" , c ) } ) } function w ( a , c , d ) { d = d || b ; var e ; return function ( ) { var b = arguments ; window . clearTimeout ( e ) , e = window . setTimeout ( function ( ) { c . apply ( d , b ) } , a ) } } function x ( a , b ) { var c = w ( a , function ( a ) { b . trigger ( "scroll-debounced" , a ) } ) ; b . on ( "scroll" , function ( a ) { p ( a . target , b . get ( ) ) >= 0 && c ( a ) } ) } function y ( a ) { a [ 0 ] !== document . activeElement && window . setTimeout ( function ( ) { var d , b = a [ 0 ] , c = a . val ( ) . length ; a . focus ( ) ; var e = b . offsetWidth > 0 || b . offsetHeight > 0 ; e && b === document . activeElement && ( b . setSelectionRange ? b . setSelectionRange ( c , c ) : b . createTextRange && ( d = b . createTextRange ( ) , d . collapse ( ! 1 ) , d . select ( ) ) ) } , 0 ) } function z ( b ) { b = a ( b ) [ 0 ] ; var c = 0 , d = 0 ; if ( "selectionStart" in b ) c = b . selectionStart , d = b . selectionEnd - c ; else if ( "selection" in document ) { b . focus ( ) ; var e = document . selection . createRange ( ) ; d = document . selection . createRange ( ) . text . length , e . moveStart ( "character" , - b . value . length ) , c = e . text . length - d } return { offset : c , length : d } } function A ( a ) { a . preventDefault ( ) , a . stopPropagation ( ) } function B ( a ) { a . preventDefault ( ) , a . stopImmediatePropagation ( ) } function C ( b ) { if ( ! h ) { var c = b [ 0 ] . currentStyle || window . getComputedStyle ( b [ 0 ] , null ) ; h = a ( document . createElement ( "div" ) ) . css ( { position : "absolute" , left : "-10000px" , top : "-10000px" , display : "none" , fontSize : c . fontSize , fontFamily : c . fontFamily , fontStyle : c . fontStyle , fontWeight : c . fontWeight , letterSpacing : c . letterSpacing , textTransform : c . textTransform , whiteSpace : "nowrap" } ) , h . attr ( "class" , "select2-sizer" ) , a ( "body" ) . append ( h ) } return h . text ( b . val ( ) ) , h . width ( ) } function D ( b , c , d ) { var e , g , f = [ ] ; e = b . attr ( "class" ) , e && ( e = "" + e , a ( e . split ( " " ) ) . each2 ( function ( ) { 0 === this . indexOf ( "select2-" ) && f . push ( this ) } ) ) , e = c . attr ( "class" ) , e && ( e = "" + e , a ( e . split ( " " ) ) . each2 ( function ( ) { 0 !== this . indexOf ( "select2-" ) && ( g = d ( this ) , g && f . push ( g ) ) } ) ) , b . attr ( "class" , f . join ( " " ) ) } function E ( a , b , c , d ) { var e = o ( a . toUpperCase ( ) ) . indexOf ( o ( b . toUpperCase ( ) ) ) , f = b . length ; return 0 > e ? ( c . push ( d ( a ) ) , void 0 ) : ( c . push ( d ( a . substring ( 0 , e ) ) ) , c . push ( "<span class='select2-match'>" ) , c . push ( d ( a . substring ( e , e + f ) ) ) , c . push ( "</span>" ) , c . push ( d ( a . substring ( e + f , a . length ) ) ) , void 0 ) } function F ( a ) { var b = { "\\" : "\" , "&" : "&" , "<" : "<" , ">" : ">" , '"' : """ , "'" : "'" , "/" : "/" } ; return String ( a ) . replace ( /[&<>"'\/\\]/g , function ( a ) { return b [ a ] } ) } function G ( c ) { var d , e = null , f = c . quietMillis || 100 , g = c . url , h = this ; return function ( i ) { window . clearTimeout ( d ) , d = window . setTimeout ( function ( ) { var d = c . data , f = g , j = c . transport || a . fn . select2 . ajaxDefaults . transport , k = { type : c . type || "GET" , cache : c . cache || ! 1 , jsonpCallback : c . jsonpCallback || b , dataType : c . dataType || "json" } , l = a . extend ( { } , a . fn . select2 . ajaxDefaults . params , k ) ; d = d ? d . call ( h , i . term , i . page , i . context ) : null , f = "function" == typeof f ? f . call ( h , i . term , i . page , i . context ) : f , e && "function" == typeof e . abort && e . abort ( ) , c . params && ( a . isFunction ( c . params ) ? a . extend ( l , c . params . call ( h ) ) : a . extend ( l , c . params ) ) , a . extend ( l , { url : f , dataType : c . dataType , data : d , success : fu
} , highlightUnderEvent : function ( b ) { var c = a ( b . target ) . closest ( ".select2-result-selectable" ) ; if ( c . length > 0 && ! c . is ( ".select2-highlighted" ) ) { var d = this . findHighlightableChoices ( ) ; this . highlight ( d . index ( c ) ) } else 0 == c . length && this . removeHighlight ( ) } , loadMoreIfNeeded : function ( ) { var c , a = this . results , b = a . find ( "li.select2-more-results" ) , d = this . resultsPage + 1 , e = this , f = this . search . val ( ) , g = this . context ; 0 !== b . length && ( c = b . offset ( ) . top - a . offset ( ) . top - a . height ( ) , c <= this . opts . loadMorePadding && ( b . addClass ( "select2-active" ) , this . opts . query ( { element : this . opts . element , term : f , page : d , context : g , matcher : this . opts . matcher , callback : this . bind ( function ( c ) { e . opened ( ) && ( e . opts . populateResults . call ( this , a , c . results , { term : f , page : d , context : g } ) , e . postprocessResults ( c , ! 1 , ! 1 ) , c . more === ! 0 ? ( b . detach ( ) . appendTo ( a ) . text ( K ( e . opts . formatLoadMore , d + 1 ) ) , window . setTimeout ( function ( ) { e . loadMoreIfNeeded ( ) } , 10 ) ) : b . remove ( ) , e . positionDropdown ( ) , e . resultsPage = d , e . context = c . context , this . opts . element . trigger ( { type : "select2-loaded" , items : c } ) ) } ) } ) ) ) } , tokenize : function ( ) { } , updateResults : function ( c ) { function m ( ) { d . removeClass ( "select2-active" ) , h . positionDropdown ( ) , e . find ( ".select2-no-results,.select2-selection-limit,.select2-searching" ) . length ? h . liveRegion . text ( e . text ( ) ) : h . liveRegion . text ( h . opts . formatMatches ( e . find ( ".select2-result-selectable" ) . length ) ) } function n ( a ) { e . html ( a ) , m ( ) } var g , i , l , d = this . search , e = this . results , f = this . opts , h = this , j = d . val ( ) , k = a . data ( this . container , "select2-last-term" ) ; if ( ( c === ! 0 || ! k || ! r ( j , k ) ) && ( a . data ( this . container , "select2-last-term" , j ) , c === ! 0 || this . showSearchInput !== ! 1 && this . opened ( ) ) ) { l = ++ this . queryCount ; var o = this . getMaximumSelectionSize ( ) ; if ( o >= 1 && ( g = this . data ( ) , a . isArray ( g ) && g . length >= o && J ( f . formatSelectionTooBig , "formatSelectionTooBig" ) ) ) return n ( "<li class='select2-selection-limit'>" + K ( f . formatSelectionTooBig , o ) + "</li>" ) , void 0 ; if ( d . val ( ) . length < f . minimumInputLength ) return J ( f . formatInputTooShort , "formatInputTooShort" ) ? n ( "<li class='select2-no-results'>" + K ( f . formatInputTooShort , d . val ( ) , f . minimumInputLength ) + "</li>" ) : n ( "" ) , c && this . showSearch && this . showSearch ( ! 0 ) , void 0 ; if ( f . maximumInputLength && d . val ( ) . length > f . maximumInputLength ) return J ( f . formatInputTooLong , "formatInputTooLong" ) ? n ( "<li class='select2-no-results'>" + K ( f . formatInputTooLong , d . val ( ) , f . maximumInputLength ) + "</li>" ) : n ( "" ) , void 0 ; f . formatSearching && 0 === this . findHighlightableChoices ( ) . length && n ( "<li class='select2-searching'>" + K ( f . formatSearching ) + "</li>" ) , d . addClass ( "select2-active" ) , this . removeHighlight ( ) , i = this . tokenize ( ) , i != b && null != i && d . val ( i ) , this . resultsPage = 1 , f . query ( { element : f . element , term : d . val ( ) , page : this . resultsPage , context : null , matcher : f . matcher , callback : this . bind ( function ( g ) { var i ; if ( l == this . queryCount ) { if ( ! this . opened ( ) ) return this . search . removeClass ( "select2-active" ) , void 0 ; if ( this . context = g . context === b ? null : g . context , this . opts . createSearchChoice && "" !== d . val ( ) && ( i = this . opts . createSearchChoice . call ( h , d . val ( ) , g . results ) , i !== b && null !== i && h . id ( i ) !== b && null !== h . id ( i ) && 0 === a ( g . results ) . filter ( function ( ) { return r ( h . id ( this ) , h . id ( i ) ) } ) . length && this . opts . createSearchChoicePosition ( g . results , i ) ) , 0 === g . results . length && J ( f . formatNoMatches , "formatNoMatches" ) ) return n ( "<li class='select2-no-results'>" + K ( f . formatNoMatches , d . val ( ) ) + "</li>" ) , void 0 ; e . empty ( ) , h . opts . populateResults . call ( this , e , g . results , { term : d . val ( ) , page : this . resultsPage , context : null } ) , g . more === ! 0 && J ( f . formatLoadMore , "formatLoadMore" ) && ( e . append ( "<li class='select2-more-results'>" + h . opts . escapeMarkup ( K ( f . formatLoadMore , this . resultsPage ) ) + "</li>" ) , window . setTimeout ( function ( ) { h . loadMoreIfNeeded ( ) } , 10 ) ) , this . postprocessResults ( g , c ) , m ( ) , this . opts . element . trigger ( { type : "select2-loaded" , items : g } ) } } ) } ) } } , cancel : function ( ) { this . close ( ) } , blur : function ( ) { this . opts . selectOnBlur && this . selectHighlighted ( { noFocus : ! 0 } ) , this . close ( ) , this . container . removeClass ( "select2-container-active" ) , this . search [ 0 ] === document . activeElement && this . search . blur ( ) , this . clearSearch ( ) , this . selection . find ( ".select2-search-choice-focus" ) . removeClass ( "select2-search-choice-focus" ) } , focusSearch : function ( ) { y ( this . search ) } , selectHighlighted : function ( a ) { if ( this . _t
( function ( b ) { typeof define === "function" && define . amd ? define ( [ "jquery" ] , b ) : b ( typeof jQuery != "undefined" ? jQuery : window . Zepto ) } ) ( function ( b ) { function O ( a ) { var g = a . data ; if ( ! a . isDefaultPrevented ( ) ) { a . preventDefault ( ) ; b ( a . target ) . ajaxSubmit ( g ) } } function P ( a ) { var g = a . target , k = b ( g ) ; if ( ! k . is ( "[type=submit],[type=image]" ) ) { g = k . closest ( "[type=submit]" ) ; if ( g . length === 0 ) return ; g = g [ 0 ] } var e = this ; e . clk = g ; if ( g . type == "image" ) if ( a . offsetX !== undefined ) { e . clk _x = a . offsetX ; e . clk _y = a . offsetY } else if ( typeof b . fn . offset ==
"function" ) { k = k . offset ( ) ; e . clk _x = a . pageX - k . left ; e . clk _y = a . pageY - k . top } else { e . clk _x = a . pageX - g . offsetLeft ; e . clk _y = a . pageY - g . offsetTop } setTimeout ( function ( ) { e . clk = e . clk _x = e . clk _y = null } , 100 ) } function u ( ) { if ( b . fn . ajaxSubmit . debug ) { var a = "[jquery.form] " + Array . prototype . join . call ( arguments , "" ) ; if ( window . console && window . console . log ) window . console . log ( a ) ; else window . opera && window . opera . postError && window . opera . postError ( a ) } } var K = { } ; K . fileapi = b ( "<input type='file'/>" ) . get ( 0 ) . files !== undefined ; K . formdata = window . FormData !==
undefined ; var S = ! ! b . fn . prop ; b . fn . attr2 = function ( ) { if ( ! S ) return this . attr . apply ( this , arguments ) ; var a = this . prop . apply ( this , arguments ) ; if ( a && a . jquery || typeof a === "string" ) return a ; return this . attr . apply ( this , arguments ) } ; b . fn . ajaxSubmit = function ( a ) { function g ( l ) { l = b . param ( l , a . traditional ) . split ( "&" ) ; var w = l . length , p = [ ] , t , n ; for ( t = 0 ; t < w ; t ++ ) { l [ t ] = l [ t ] . replace ( /\+/g , " " ) ; n = l [ t ] . split ( "=" ) ; p . push ( [ decodeURIComponent ( n [ 0 ] ) , decodeURIComponent ( n [ 1 ] ) ] ) } return p } function k ( l ) { for ( var w = new FormData , p = 0 ; p < l . length ; p ++ ) w . append ( l [ p ] . name ,
l [ p ] . value ) ; if ( a . extraData ) { l = g ( a . extraData ) ; for ( p = 0 ; p < l . length ; p ++ ) l [ p ] && w . append ( l [ p ] [ 0 ] , l [ p ] [ 1 ] ) } a . data = null ; p = b . extend ( true , { } , b . ajaxSettings , a , { contentType : false , processData : false , cache : false , type : i || "POST" } ) ; if ( a . uploadProgress ) p . xhr = function ( ) { var n = b . ajaxSettings . xhr ( ) ; n . upload && n . upload . addEventListener ( "progress" , function ( r ) { var c = 0 , B = r . loaded || r . position , G = r . total ; if ( r . lengthComputable ) c = Math . ceil ( B / G * 100 ) ; a . uploadProgress ( r , B , G , c ) } , false ) ; return n } ; p . data = null ; var t = p . beforeSend ; p . beforeSend =
function ( n , r ) { r . data = a . formData ? a . formData : w ; t && t . call ( this , n , r ) } ; return b . ajax ( p ) } function e ( l ) { function w ( f ) { var j = null ; try { if ( f . contentWindow ) j = f . contentWindow . document } catch ( x ) { u ( "cannot get iframe.contentWindow document: " + x ) } if ( j ) return j ; try { j = f . contentDocument ? f . contentDocument : f . document } catch ( y ) { u ( "cannot get iframe.contentDocument: " + y ) ; j = f . document } return j } function p ( ) { function f ( ) { try { var H = w ( z ) . readyState ; u ( "state = " + H ) ; H && H . toLowerCase ( ) == "uninitialized" && setTimeout ( f , 50 ) } catch ( I ) { u ( "Server abort: " ,
I , " (" , I . name , ")" ) ; t ( Q ) ; L && clearTimeout ( L ) ; L = undefined } } var j = o . attr2 ( "target" ) , x = o . attr2 ( "action" ) , y = o . attr ( "enctype" ) || o . attr ( "encoding" ) || "multipart/form-data" ; n . setAttribute ( "target" , G ) ; if ( ! i || /post/i . test ( i ) ) n . setAttribute ( "method" , "POST" ) ; x != c . url && n . setAttribute ( "action" , c . url ) ; if ( ! c . skipEncodingOverride && ( ! i || /post/i . test ( i ) ) ) o . attr ( { encoding : "multipart/form-data" , enctype : "multipart/form-data" } ) ; if ( c . timeout ) L = setTimeout ( function ( ) { R = true ; t ( T ) } , c . timeout ) ; var C = [ ] ; try { if ( c . extraData ) for ( var A in c . extraData ) if ( c . extraData . hasOwnProperty ( A ) ) b . isPlainObject ( c . extraData [ A ] ) &&
c . extraData [ A ] . hasOwnProperty ( "name" ) && c . extraData [ A ] . hasOwnProperty ( "value" ) ? C . push ( b ( '<input type="hidden" name="' + c . extraData [ A ] . name + '">' ) . val ( c . extraData [ A ] . value ) . appendTo ( n ) [ 0 ] ) : C . push ( b ( '<input type="hidden" name="' + A + '">' ) . val ( c . extraData [ A ] ) . appendTo ( n ) [ 0 ] ) ; c . iframeTarget || D . appendTo ( "body" ) ; z . attachEvent ? z . attachEvent ( "onload" , t ) : z . addEventListener ( "load" , t , false ) ; setTimeout ( f , 15 ) ; try { n . submit ( ) } catch ( M ) { document . createElement ( "form" ) . submit . apply ( n ) } } finally { n . setAttribute ( "action" , x ) ;
n . setAttribute ( "enctype" , y ) ; j ? n . setAttribute ( "target" , j ) : o . removeAttr ( "target" ) ; b ( C ) . remove ( ) } } function t ( f ) { if ( ! ( d . aborted || U ) ) { v = w ( z ) ; if ( ! v ) { u ( "cannot access response document" ) ; f = Q } if ( f === T && d ) { d . abort ( "timeout" ) ; E . reject ( d , "timeout" ) } else if ( f == Q && d ) { d . abort ( "server abort" ) ; E . reject ( d , "error" , "server abort" ) } else { if ( ! v || v . location . href == c . iframeSrc ) if ( ! R ) return ; z . detachEvent ? z . detachEvent ( "onload" , t ) : z . removeEventListener ( "load" , t , false ) ; f = "success" ; var j ; try { if ( R ) throw "timeout" ; var x = c . dataType ==
"xml" || v . XMLDocument || b . isXMLDoc ( v ) ; u ( "isXml=" + x ) ; if ( ! x && window . opera && ( v . body === null || ! v . body . innerHTML ) ) if ( -- X ) { u ( "requeing onLoad callback, DOM not available" ) ; setTimeout ( t , 250 ) ; return } var y = v . body ? v . body : v . documentElement ; d . responseText = y ? y . innerHTML : null ; d . responseXML = v . XMLDocument ? v . XMLDocument : v ; if ( x ) c . dataType = "xml" ; d . getResponseHeader = function ( Y ) { return { "content-type" : c . dataType } [ Y . toLowerCase ( ) ] } ; if ( y ) { d . status = Number ( y . getAttribute ( "status" ) ) || d . status ; d . statusText = y . getAttribute ( "statusText" ) ||
d . statusText } var C = ( c . dataType || "" ) . toLowerCase ( ) , A = /(json|script|text)/ . test ( C ) ; if ( A || c . textarea ) { var M = v . getElementsByTagName ( "textarea" ) [ 0 ] ; if ( M ) { d . responseText = M . value ; d . status = Number ( M . getAttribute ( "status" ) ) || d . status ; d . statusText = M . getAttribute ( "statusText" ) || d . statusText } else if ( A ) { var H = v . getElementsByTagName ( "pre" ) [ 0 ] , I = v . getElementsByTagName ( "body" ) [ 0 ] ; if ( H ) d . responseText = H . textContent ? H . textContent : H . innerText ; else if ( I ) d . responseText = I . textContent ? I . textContent : I . innerText } } else if ( C ==
"xml" && ! d . responseXML && d . responseText ) d . responseXML = Z ( d . responseText ) ; try { V = $ ( d , C , c ) } catch ( aa ) { f = "parsererror" ; d . error = j = aa || f } } catch ( W ) { u ( "error caught: " , W ) ; f = "error" ; d . error = j = W || f } if ( d . aborted ) { u ( "upload aborted" ) ; f = null } if ( d . status ) f = d . status >= 200 && d . status < 300 || d . status === 304 ? "success" : "error" ; if ( f === "success" ) { c . success && c . success . call ( c . context , V , "success" , d ) ; E . resolve ( d . responseText , "success" , d ) ; B && b . event . trigger ( "ajaxSuccess" , [ d , c ] ) } else if ( f ) { if ( j === undefined ) j = d . statusText ; c . error && c . error . call ( c . context ,
d , f , j ) ; E . reject ( d , "error" , j ) ; B && b . event . trigger ( "ajaxError" , [ d , c , j ] ) } B && b . event . trigger ( "ajaxComplete" , [ d , c ] ) ; B && ! -- b . active && b . event . trigger ( "ajaxStop" ) ; c . complete && c . complete . call ( c . context , d , f ) ; U = true ; c . timeout && clearTimeout ( L ) ; setTimeout ( function ( ) { c . iframeTarget ? D . attr ( "src" , c . iframeSrc ) : D . remove ( ) ; d . responseXML = null } , 100 ) } } } var n = o [ 0 ] , r , c , B , G , D , z , d , R , L , E = b . Deferred ( ) ; E . abort = function ( f ) { d . abort ( f ) } ; if ( l ) for ( r = 0 ; r < s . length ; r ++ ) { l = b ( s [ r ] ) ; S ? l . prop ( "disabled" , false ) : l . removeAttr ( "disabled" ) } c =
b . extend ( true , { } , b . ajaxSettings , a ) ; c . context = c . context || c ; G = "jqFormIO" + ( new Date ) . getTime ( ) ; if ( c . iframeTarget ) { D = b ( c . iframeTarget ) ; if ( r = D . attr2 ( "name" ) ) G = r ; else D . attr2 ( "name" , G ) } else { D = b ( '<iframe name="' + G + '" src="' + c . iframeSrc + '" ></300>' ) ; D . css ( { position : "absolute" , top : "-1000px" , left : "-1000px" } ) } z = D [ 0 ] ; d = { aborted : 0 , responseText : null , responseXML : null , status : 0 , statusText : "n/a" , getAllResponseHeaders : function ( ) { } , getResponseHeader : function ( ) { } , setRequestHeader : function ( ) { } , abort : function ( f ) { var j = f === "timeout" ?
"timeout" : "aborted" ; u ( "aborting upload... " + j ) ; this . aborted = 1 ; try { z . contentWindow . document . execCommand && z . contentWindow . document . execCommand ( "Stop" ) } catch ( x ) { } D . attr ( "src" , c . iframeSrc ) ; d . error = j ; c . error && c . error . call ( c . context , d , j , f ) ; B && b . event . trigger ( "ajaxError" , [ d , c , j ] ) ; c . complete && c . complete . call ( c . context , d , j ) } } ; ( B = c . global ) && 0 === b . active ++ && b . event . trigger ( "ajaxStart" ) ; B && b . event . trigger ( "ajaxSend" , [ d , c ] ) ; if ( c . beforeSend && c . beforeSend . call ( c . context , d , c ) === false ) { c . global && b . active -- ; E . reject ( ) ;
return E } if ( d . aborted ) { E . reject ( ) ; return E } if ( l = n . clk ) if ( ( r = l . name ) && ! l . disabled ) { c . extraData = c . extraData || { } ; c . extraData [ r ] = l . value ; if ( l . type == "image" ) { c . extraData [ r + ".x" ] = n . clk _x ; c . extraData [ r + ".y" ] = n . clk _y } } var T = 1 , Q = 2 ; l = b ( "meta[name=csrf-token]" ) . attr ( "content" ) ; if ( ( r = b ( "meta[name=csrf-param]" ) . attr ( "content" ) ) && l ) { c . extraData = c . extraData || { } ; c . extraData [ r ] = l } c . forceSync ? p ( ) : setTimeout ( p , 10 ) ; var V , v , X = 50 , U , Z = b . parseXML || function ( f , j ) { if ( window . ActiveXObject ) { j = new ActiveXObject ( "Microsoft.XMLDOM" ) ;
j . async = "false" ; j . loadXML ( f ) } else j = ( new DOMParser ) . parseFromString ( f , "text/xml" ) ; return j && j . documentElement && j . documentElement . nodeName != "parsererror" ? j : null } , ba = b . parseJSON || function ( f ) { return window . eval ( "(" + f + ")" ) } , $ = function ( f , j , x ) { var y = f . getResponseHeader ( "content-type" ) || "" , C = j === "xml" || ! j && y . indexOf ( "xml" ) >= 0 ; f = C ? f . responseXML : f . responseText ; C && f . documentElement . nodeName === "parsererror" && b . error && b . error ( "parsererror" ) ; if ( x && x . dataFilter ) f = x . dataFilter ( f , j ) ; if ( typeof f === "string" ) if ( j ===
"json" || ! j && y . indexOf ( "json" ) >= 0 ) f = ba ( f ) ; else if ( j === "script" || ! j && y . indexOf ( "javascript" ) >= 0 ) b . globalEval ( f ) ; return f } ; return E } if ( ! this . length ) { u ( "ajaxSubmit: skipping submit process - no element selected" ) ; return this } var i , h , o = this ; if ( typeof a == "function" ) a = { success : a } ; else if ( a === undefined ) a = { } ; i = a . type || this . attr2 ( "method" ) ; h = a . url || this . attr2 ( "action" ) ; if ( h = ( h = typeof h === "string" ? b . trim ( h ) : "" ) || window . location . href || "" ) h = ( h . match ( /^([^#]+)/ ) || [ ] ) [ 1 ] ; a = b . extend ( true , { url : h , success : b . ajaxSettings . success ,
type : i || b . ajaxSettings . type , iframeSrc : /^https/i . test ( window . location . href || "" ) ? "javascript:false" : "about:blank" } , a ) ; h = { } ; this . trigger ( "form-pre-serialize" , [ this , a , h ] ) ; if ( h . veto ) { u ( "ajaxSubmit: submit vetoed via form-pre-serialize trigger" ) ; return this } if ( a . beforeSerialize && a . beforeSerialize ( this , a ) === false ) { u ( "ajaxSubmit: submit aborted via beforeSerialize callback" ) ; return this } var q = a . traditional ; if ( q === undefined ) q = b . ajaxSettings . traditional ; var s = [ ] , m , F = this . formToArray ( a . semantic , s ) ; if ( a . data ) { a . extraData =
a . data ; m = b . param ( a . data , q ) } if ( a . beforeSubmit && a . beforeSubmit ( F , this , a ) === false ) { u ( "ajaxSubmit: submit aborted via beforeSubmit callback" ) ; return this } this . trigger ( "form-submit-validate" , [ F , this , a , h ] ) ; if ( h . veto ) { u ( "ajaxSubmit: submit vetoed via form-submit-validate trigger" ) ; return this } h = b . param ( F , q ) ; if ( m ) h = h ? h + "&" + m : m ; if ( a . type . toUpperCase ( ) == "GET" ) { a . url += ( a . url . indexOf ( "?" ) >= 0 ? "&" : "?" ) + h ; a . data = null } else a . data = h ; var J = [ ] ; a . resetForm && J . push ( function ( ) { o . resetForm ( ) } ) ; a . clearForm && J . push ( function ( ) { o . clearForm ( a . includeHidden ) } ) ;
if ( ! a . dataType && a . target ) { var ca = a . success || function ( ) { } ; J . push ( function ( l ) { var w = a . replaceTarget ? "replaceWith" : "html" ; b ( a . target ) [ w ] ( l ) . each ( ca , arguments ) } ) } else a . success && J . push ( a . success ) ; a . success = function ( l , w , p ) { for ( var t = a . context || this , n = 0 , r = J . length ; n < r ; n ++ ) J [ n ] . apply ( t , [ l , w , p || o , o ] ) } ; if ( a . error ) { var da = a . error ; a . error = function ( l , w , p ) { da . apply ( a . context || this , [ l , w , p , o ] ) } } if ( a . complete ) { var ea = a . complete ; a . complete = function ( l , w ) { ea . apply ( a . context || this , [ l , w , o ] ) } } m = b ( "input[type=file]:enabled" ,
this ) . filter ( function ( ) { return b ( this ) . val ( ) !== "" } ) . length > 0 ; h = o . attr ( "enctype" ) == "multipart/form-data" || o . attr ( "encoding" ) == "multipart/form-data" ; q = K . fileapi && K . formdata ; u ( "fileAPI :" + q ) ; var N ; if ( a . iframe !== false && ( a . iframe || ( m || h ) && ! q ) ) if ( a . closeKeepAlive ) b . get ( a . closeKeepAlive , function ( ) { N = e ( F ) } ) ; else N = e ( F ) ; else N = ( m || h ) && q ? k ( F ) : b . ajax ( a ) ; o . removeData ( "jqxhr" ) . data ( "jqxhr" , N ) ; for ( m = 0 ; m < s . length ; m ++ ) s [ m ] = null ; this . trigger ( "form-submit-notify" , [ this , a ] ) ; return this } ; b . fn . ajaxForm = function ( a ) { a =
a || { } ; a . delegation = a . delegation && b . isFunction ( b . fn . on ) ; if ( ! a . delegation && this . length === 0 ) { var g = { s : this . selector , c : this . context } ; if ( ! b . isReady && g . s ) { u ( "DOM not ready, queuing ajaxForm" ) ; b ( function ( ) { b ( g . s , g . c ) . ajaxForm ( a ) } ) ; return this } u ( "terminating; zero elements found by selector" + ( b . isReady ? "" : " (DOM not ready)" ) ) ; return this } if ( a . delegation ) { b ( document ) . off ( "submit.form-plugin" , this . selector , O ) . off ( "click.form-plugin" , this . selector , P ) . on ( "submit.form-plugin" , this . selector , a , O ) . on ( "click.form-plugin" ,
this . selector , a , P ) ; return this } return this . ajaxFormUnbind ( ) . bind ( "submit.form-plugin" , a , O ) . bind ( "click.form-plugin" , a , P ) } ; b . fn . ajaxFormUnbind = function ( ) { return this . unbind ( "submit.form-plugin click.form-plugin" ) } ; b . fn . formToArray = function ( a , g ) { var k = [ ] ; if ( this . length === 0 ) return k ; var e = this [ 0 ] , i = this . attr ( "id" ) , h = a ? e . getElementsByTagName ( "*" ) : e . elements ; if ( h && ! /MSIE [678]/ . test ( navigator . userAgent ) ) h = b ( h ) . get ( ) ; if ( i ) { i = b ( ':input[form="' + i + '"]' ) . get ( ) ; if ( i . length ) h = ( h || [ ] ) . concat ( i ) } if ( ! h || ! h . length ) return k ;
var o , q , s , m , F ; o = 0 ; for ( F = h . length ; o < F ; o ++ ) { m = h [ o ] ; i = m . name ; if ( ! ( ! i || m . disabled ) ) if ( a && e . clk && m . type == "image" ) { if ( e . clk == m ) { k . push ( { name : i , value : b ( m ) . val ( ) , type : m . type } ) ; k . push ( { name : i + ".x" , value : e . clk _x } , { name : i + ".y" , value : e . clk _y } ) } } else if ( ( s = b . fieldValue ( m , true ) ) && s . constructor == Array ) { g && g . push ( m ) ; q = 0 ; for ( m = s . length ; q < m ; q ++ ) k . push ( { name : i , value : s [ q ] } ) } else if ( K . fileapi && m . type == "file" ) { g && g . push ( m ) ; s = m . files ; if ( s . length ) for ( q = 0 ; q < s . length ; q ++ ) k . push ( { name : i , value : s [ q ] , type : m . type } ) ; else k . push ( { name : i ,
value : "" , type : m . type } ) } else if ( s !== null && typeof s != "undefined" ) { g && g . push ( m ) ; k . push ( { name : i , value : s , type : m . type , required : m . required } ) } } if ( ! a && e . clk ) { h = b ( e . clk ) ; o = h [ 0 ] ; if ( ( i = o . name ) && ! o . disabled && o . type == "image" ) { k . push ( { name : i , value : h . val ( ) } ) ; k . push ( { name : i + ".x" , value : e . clk _x } , { name : i + ".y" , value : e . clk _y } ) } } return k } ; b . fn . formSerialize = function ( a ) { return b . param ( this . formToArray ( a ) ) } ; b . fn . fieldSerialize = function ( a ) { var g = [ ] ; this . each ( function ( ) { var k = this . name ; if ( k ) { var e = b . fieldValue ( this , a ) ; if ( e &&
e . constructor == Array ) for ( var i = 0 , h = e . length ; i < h ; i ++ ) g . push ( { name : k , value : e [ i ] } ) ; else e !== null && typeof e != "undefined" && g . push ( { name : this . name , value : e } ) } } ) ; return b . param ( g ) } ; b . fn . fieldValue = function ( a ) { for ( var g = [ ] , k = 0 , e = this . length ; k < e ; k ++ ) { var i = b . fieldValue ( this [ k ] , a ) ; i === null || typeof i == "undefined" || i . constructor == Array && ! i . length || ( i . constructor == Array ? b . merge ( g , i ) : g . push ( i ) ) } return g } ; b . fieldValue = function ( a , g ) { var k = a . name , e = a . type , i = a . tagName . toLowerCase ( ) ; if ( g === undefined ) g = true ; if ( g && ( ! k ||
a . disabled || e == "reset" || e == "button" || ( e == "checkbox" || e == "radio" ) && ! a . checked || ( e == "submit" || e == "image" ) && a . form && a . form . clk != a || i == "select" && a . selectedIndex == - 1 ) ) return null ; if ( i == "select" ) { var h = a . selectedIndex ; if ( h < 0 ) return null ; k = [ ] ; i = a . options ; var o = ( e = e == "select-one" ) ? h + 1 : i . length ; for ( h = e ? h : 0 ; h < o ; h ++ ) { var q = i [ h ] ; if ( q . selected ) { var s = q . value ; s || ( s = q . attributes && q . attributes . value && ! q . attributes . value . specified ? q . text : q . value ) ; if ( e ) return s ; k . push ( s ) } } return k } return b ( a ) . val ( ) } ; b . fn . clearForm =
function ( a ) { return this . each ( function ( ) { b ( "input,select,textarea" , this ) . clearFields ( a ) } ) } ; b . fn . clearFields = b . fn . clearInputs = function ( a ) { var g = /^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i ; return this . each ( function ( ) { var k = this . type , e = this . tagName . toLowerCase ( ) ; if ( g . test ( k ) || e == "textarea" ) this . value = "" ; else if ( k == "checkbox" || k == "radio" ) this . checked = false ; else if ( e == "select" ) this . selectedIndex = - 1 ; else if ( k == "file" ) / MSIE / . test ( navigator . userAgent ) ? b ( this ) . replaceWith ( b ( this ) . clone ( true ) ) :
b ( this ) . val ( "" ) ; else if ( a ) if ( a === true && /hidden/ . test ( k ) || typeof a == "string" && b ( this ) . is ( a ) ) this . value = "" } ) } ; b . fn . resetForm = function ( ) { return this . each ( function ( ) { if ( typeof this . reset == "function" || typeof this . reset == "object" && ! this . reset . nodeType ) this . reset ( ) } ) } ; b . fn . enable = function ( a ) { if ( a === undefined ) a = true ; return this . each ( function ( ) { this . disabled = ! a } ) } ; b . fn . selected = function ( a ) { if ( a === undefined ) a = true ; return this . each ( function ( ) { var g = this . type ; if ( g == "checkbox" || g == "radio" ) this . checked = a ; else if ( this . tagName . toLowerCase ( ) ==
"option" ) { g = b ( this ) . parent ( "select" ) ; a && g [ 0 ] && g [ 0 ] . type == "select-one" && g . find ( "option" ) . selected ( false ) ; this . selected = a } } ) } ; b . fn . ajaxSubmit . debug = false } ) ;
( function ( b ) { if ( b . fn . ajaxForm == undefined ) { } var a = { } ; a . fileapi = b ( "<input type='file'/>" ) . get ( 0 ) . files !== undefined ; a . formdata = window . FormData !== undefined ; b . fn . uploadFile = function ( t ) { var r = b . extend ( { url : "" , method : "POST" , enctype : "multipart/form-data" , formData : null , returnType : null , allowedTypes : "*" , fileName : "file" , formData : { } , dynamicFormData : function ( ) { return { } } , maxFileSize : - 1 , maxFileCount : - 1 , multiple : true , dragDrop : true , autoSubmit : true , showCancel : true , showAbort : true , showDone : true , showDelete : false , showError : true , showStatusAfterSuccess : true , showStatusAfterError : true , showFileCounter : true , fileCounterStyle : "). " , showProgress : false , onSelect : function ( s ) { return true } , onSubmit : function ( s , u ) { } , onSuccess : function ( u , s , v ) { } , onError : function ( v , s , u ) { } , deleteCallback : false , afterUploadAll : false , uploadButtonClass : "upload" , dragDropStr : "" , abortStr : "Abort" , cancelStr : "Cancel" , deletelStr : "Delete" , doneStr : "Done" , multiDragErrorStr : "Multiple File Drag & Drop is not allowed." , extErrorStr : "" , sizeErrorStr : "" , uploadErrorStr : "Upload is not allowed" , maxFileCountErrorStr : "" } , t ) ; this . fileCounter = 1 ; this . selectedFiles = 0 ; this . fCounter = 0 ; this . sCounter = 0 ; this . tCounter = 0 ; var d = "upload-" + ( new Date ( ) . getTime ( ) ) ; this . formGroup = d ; this . hide ( ) ; this . errorLog = b ( "<div></div>" ) ; this . after ( this . errorLog ) ; this . responses = [ ] ; if ( ! a . formdata ) { r . dragDrop = false } if ( ! a . formdata ) { r . multiple = false } var m = this ; var e = b ( "<div>" + b ( this ) . html ( ) + "</div>" ) ; b ( e ) . addClass ( r . uploadButtonClass ) ; ( function k ( ) { if ( b . fn . ajaxForm ) { if ( r . dragDrop ) { var s = b ( '<div class="ajax-upload-dragdrop" style="vertical-align:top;"></div>' ) ; b ( m ) . before ( s ) ; b ( s ) . append ( e ) ; b ( s ) . prepend ( b ( r . dragDropStr ) ) ; f ( m , r , s ) } else { b ( m ) . before ( e ) } q ( m , d , r , e ) } else { window . setTimeout ( k , 10 ) } } ) ( ) ; this . startUpload = function ( ) { b ( "." + this . formGroup ) . each ( function ( u , s ) { if ( b ( this ) . is ( "form" ) ) { b ( this ) . submit ( ) } } ) } ; this . stopUpload = function ( ) { b ( ".upload-red" ) . each ( function ( u , s ) { if ( b ( this ) . hasClass ( m . formGroup ) ) { b ( this ) . click ( ) } } ) } ; this . getResponses = function ( ) { return this . responses } ; var g = false ; function j ( ) { if ( r . afterUploadAll && ! g ) { g = true ; ( function s ( ) { if ( m . sCounter != 0 && ( m . sCounter + m . fCounter == m . tCounter ) ) { r . afterUploadAll ( m ) ; g = false } else { window . setTimeout ( s , 100 ) } } ) ( ) } } function f ( w , u , v ) { v . on ( "dragenter" , function ( s ) { s . stopPropagation ( ) ; s . preventDefault ( ) ; b ( this ) . css ( "border" , "2px dashed #ddd" ) } ) ; v . on ( "dragover" , function ( s ) { s . stopPropagation ( ) ; s . preventDefault ( ) } ) ; v . on ( "drop" , function ( x ) { b ( this ) . css ( "border" , "2px dashed #ddd" ) ; x . preventDefault ( ) ; w . errorLog . html ( "" ) ; var s = x . originalEvent . dataTransfer . files ; if ( ! u . multiple && s . length > 1 ) { if ( u . showError ) { b ( "<div class='um-error-block'>" + u . multiDragErrorStr + "</div>" ) . appendTo ( w . errorLog ) } return } if ( u . onSelect ( s ) == false ) { return } l ( u , w , s ) } ) ; b ( document ) . on ( "dragenter" , function ( s ) { s . stopPropagation ( ) ; s . preventDefault ( ) } ) ; b ( document ) . on ( "dragover" , function ( s ) { s . stopPropagation ( ) ; s . preventDefault ( ) ; v . css ( "border" , "2px dashed #ddd" ) } ) ; b ( document ) . on ( "drop" , function ( s ) { s . stopPropagation ( ) ; s . preventDefault ( ) ; v . css ( "border" , "2px dashed #ddd" ) } ) } function i ( s ) { var v = "" ; var u = s / 1024 ; if ( parseInt ( u ) > 1024 ) { var w = u / 1024 ; v = w . toFixed ( 2 ) + " MB" } else { v = u . toFixed ( 2 ) + " KB" } return v } function o ( x ) { var y = [ ] ; if ( jQuery . type ( x ) == "string" ) { y = x . split ( "&" ) } else { y = b . param ( x ) . split ( "&" ) } var u = y . length ; var s = [ ] ; var w , v ; for ( w = 0 ; w < u ; w ++ ) { y [ w ] = y [ w ] . replace ( /\+/g , " " ) ; v = y [ w ] . split ( "=" ) ; s . push ( [ decodeURIComponent ( v [ 0 ] ) , decodeURIComponent ( v [ 1 ] ) ] ) } return s } function l ( H , B , u ) { for ( var C = 0 ; C < u . length ; C ++ ) { if ( ! c ( B , H , u [ C ] . name ) ) { if ( H . showError ) { b ( "<div class='um-error-block'>" + H . extErrorStr + "</div>" ) . appendTo ( B . errorLog ) } continue } if ( H . maxFileSize != - 1 && u [ C ] . size > H . maxFileSize ) { if ( H . showError ) { b ( "<div class='um-error-block'>" + H . sizeErrorStr + "</div>" ) . appendTo ( B . errorLog ) } continue } if ( H . maxFileCount != - 1 && B . selectedFiles >= H . maxFileCount ) { if ( H . showError ) { b ( "<div class='um-error-block'>" + H . maxFileCountErrorStr + "</div>" ) . appendTo ( B . errorLog ) } continue } B . selectedFiles ++ ; var D = H ; var w = new FormData ( ) ; var A = H . fileName . replace ( "[]" , "" ) ; w . append ( A , u [ C ] ) ; var y = H . formData ; if ( y ) { var F = o ( y ) ; for ( var z = 0 ; z < F . length ; z ++ ) { if ( F [ z ] ) { w . append ( F [ z ] [ 0 ] , F [ z ] [ 1 ] ) } } } D . fileData = w ; var E = new
! function ( a ) { "function" == typeof define && define . amd ? define ( "picker" , [ "jquery" ] , a ) : this . Picker = a ( jQuery ) } ( function ( a ) { function b ( f , g , h , k ) { function l ( ) { return b . _ . node ( "div" , b . _ . node ( "div" , b . _ . node ( "div" , b . _ . node ( "div" , w . component . nodes ( r . open ) , t . box ) , t . wrap ) , t . frame ) , t . holder ) } function m ( ) { u . data ( g , w ) . addClass ( t . input ) . val ( u . data ( "value" ) ? w . get ( "select" , s . format ) : f . value ) . on ( "focus." + r . id + " click." + r . id , p ) , s . editable || u . on ( "keydown." + r . id , function ( a ) { var b = a . keyCode , c = /^(8|46)$/ . test ( b ) ; return 27 == b ? ( w . close ( ) , ! 1 ) : void ( ( 32 == b || c || ! r . open && w . component . key [ b ] ) && ( a . preventDefault ( ) , a . stopPropagation ( ) , c ? w . clear ( ) . close ( ) : w . open ( ) ) ) } ) , e ( f , { haspopup : ! 0 , expanded : ! 1 , readonly : ! 1 , owns : f . id + "_root" + ( w . _hidden ? " " + w . _hidden . id : "" ) } ) } function n ( ) { w . $root . on ( { focusin : function ( a ) { w . $root . removeClass ( t . focused ) , a . stopPropagation ( ) } , "mousedown click" : function ( b ) { var c = b . target ; c != w . $root . children ( ) [ 0 ] && ( b . stopPropagation ( ) , "mousedown" != b . type || a ( c ) . is ( ":input" ) || "OPTION" == c . nodeName || ( b . preventDefault ( ) , f . focus ( ) ) ) } } ) . on ( "click" , "[data-pick], [data-nav], [data-clear]" , function ( ) { var c = a ( this ) , d = c . data ( ) , e = c . hasClass ( t . navDisabled ) || c . hasClass ( t . disabled ) , g = document . activeElement ; g = g && ( g . type || g . href ) && g , ( e || g && ! a . contains ( w . $root [ 0 ] , g ) ) && f . focus ( ) , d . nav && ! e ? w . set ( "highlight" , w . component . item . highlight , { nav : d . nav } ) : b . _ . isInteger ( d . pick ) && ! e ? w . set ( "select" , d . pick ) . close ( ! 0 ) : d . clear && w . clear ( ) . close ( ! 0 ) } ) , e ( w . $root [ 0 ] , "hidden" , ! 0 ) } function o ( ) { var b , c ; s . hiddenName === ! 0 ? ( b = f . name + "_hidden" , c = f . name , f . name = "" ) : ( c = [ "string" == typeof s . hiddenPrefix ? s . hiddenPrefix : "" , "string" == typeof s . hiddenSuffix ? s . hiddenSuffix : "_submit" ] , c = b = c [ 0 ] + f . name + c [ 1 ] ) , w . _hidden = a ( '<input type=hidden name="' + c + '"id="' + b + '"' + ( u . data ( "value" ) || f . value ? ' value="' + w . get ( "select" , s . formatSubmit ) + '"' : "" ) + ">" ) [ 0 ] , u . on ( "change." + r . id , function ( ) { w . _hidden . value = f . value ? w . get ( "select" , s . formatSubmit ) : "" } ) . after ( w . _hidden ) } function p ( a ) { a . stopPropagation ( ) , "focus" == a . type && w . $root . addClass ( t . focused ) , w . open ( ) } if ( ! f ) return b ; var q = ! 1 , r = { id : f . id || "P" + Math . abs ( ~ ~ ( Math . random ( ) * new Date ) ) } , s = h ? a . extend ( ! 0 , { } , h . defaults , k ) : k || { } , t = a . extend ( { } , b . klasses ( ) , s . klass ) , u = a ( f ) , v = function ( ) { return this . start ( ) } , w = v . prototype = { constructor : v , $node : u , start : function ( ) { return r && r . start ? w : ( r . methods = { } , r . start = ! 0 , r . open = ! 1 , r . type = f . type , f . autofocus = f == document . activeElement , f . type = "text" , f . readOnly = ! s . editable , f . id = f . id || r . id , w . component = new h ( w , s ) , w . $root = a ( b . _ . node ( "div" , l ( ) , t . picker , 'id="' + f . id + '_root"' ) ) , n ( ) , s . formatSubmit && o ( ) , m ( ) , s . container ? a ( s . container ) . append ( w . $root ) : u . after ( w . $root ) , w . on ( { start : w . component . onStart , render : w . component . onRender , stop : w . component . onStop , open : w . component . onOpen , close : w . component . onClose , set : w . component . onSet } ) . on ( { start : s . onStart , render : s . onRender , stop : s . onStop , open : s . onOpen , close : s . onClose , set : s . onSet } ) , q = c ( w . $root . children ( ) [ 0 ] ) , f . autofocus && w . open ( ) , w . trigger ( "start" ) . trigger ( "render" ) ) } , render : function ( a ) { return a ? w . $root . html ( l ( ) ) : w . $root . find ( "." + t . box ) . html ( w . component . nodes ( r . open ) ) , w . trigger ( "render" ) } , stop : function ( ) { return r . start ? ( w . close ( ) , w . _hidden && w . _hidden . parentNode . removeChild ( w . _hidden ) , w . $root . remove ( ) , u . removeClass ( t . input ) . removeData ( g ) , setTimeout ( function ( ) { u . off ( "." + r . id ) } , 0 ) , f . type = r . type , f . readOnly = ! 1 , w . trigger ( "stop" ) , r . methods = { } , r . start = ! 1 , w ) : w } , open : function ( c ) { return r . open ? w : ( u . addClass ( t . active ) , e ( f , "expanded" , ! 0 ) , setTimeout ( function ( ) { w . $root . addClass ( t . opened ) , e ( w . $root [ 0 ] , "hidden" , ! 1 ) } , 0 ) , c !== ! 1 && ( r . open = ! 0 , q && j . css ( "overflow" , "hidden" ) . css ( "padding-right" , "+=" + d ( ) ) , u . trigger ( "focus" ) , i . on ( "click." + r . id + " focusin." + r . id , function ( a ) { var b = a . target ; b != f && b != document && 3 != a . which && w . close ( b === w . $root . children ( ) [ 0 ] ) } ) . on ( "keydown." + r . id , function ( c ) { var d = c . keyCode , e = w . component . key [ d ] , g = c . target ; 27 == d ? w . close ( ! 0 ) : g != f || ! e && 13 != d ? a . contains ( w . $root [ 0 ] , g ) && 13 == d && ( c . preventDefault ( ) , g . click ( ) ) : ( c . preventDefault ( ) , e ? b . _ . trigger ( w . component . key . go , w , [ b . _ . trigger ( e ) ] ) : w . $root . find ( "." + t . highlighted ) . hasClass ( t . disabled ) || w . set ( "select" , w . component . item . highlight ) . close ( ) ) } ) ) , w . trigger ( "open" ) ) } , close : function ( a ) { return a && ( u . off ( "fo
!function(a){" function "==typeof define&&define.amd?define([" picker "," jquery "],a):a(Picker,jQuery)}(function(a,b){function c(a,b){var c=this,d=a.$node[0].value,e=a.$node.data(" value "),f=e||d,g=e?b.formatSubmit:b.format,h=function(){return" rtl "===getComputedStyle(a.$root[0]).direction};c.settings=b,c.$node=a.$node,c.queue={min:" measure create ",max:" measure create ",now:" now create ",select:" parse create validate ",highlight:" parse navigate create validate ",view:" parse create validate viewset ",disable:" deactivate ",enable:" activate "},c.item={},c.item.clear=null,c.item.disable=(b.disable||[]).slice(0),c.item.enable=-function(a){return a[0]===!0?a.shift():-1}(c.item.disable),c.set(" min ",b.min).set(" max ",b.max).set(" now "),f?c.set(" select ",f,{format:g}):c.set(" select ",null).set(" highlight ",c.item.now),c.key={40:7,38:-7,39:function(){return h()?-1:1},37:function(){return h()?1:-1},go:function(a){var b=c.item.highlight,d=new Date(b.year,b.month,b.date+a);c.set(" highlight ",[d.getFullYear(),d.getMonth(),d.getDate()],{interval:a}),this.render()}},a.on(" render ",function(){a.$root.find(" . "+b.klass.selectMonth).on(" change ",function(){var c=this.value;c&&(a.set(" highlight ",[a.get(" view ").year,c,a.get(" highlight ").date]),a.$root.find(" . "+b.klass.selectMonth).trigger(" focus "))}),a.$root.find(" . "+b.klass.selectYear).on(" change ",function(){var c=this.value;c&&(a.set(" highlight ",[c,a.get(" view ").month,a.get(" highlight ").date]),a.$root.find(" . "+b.klass.selectYear).trigger(" focus "))})}).on(" open ",function(){a.$root.find(" button , select ").attr(" disabled ",!1)}).on(" close ",function(){a.$root.find(" button , select ").attr(" disabled ",!0)})}var d=7,e=6,f=a._;c.prototype.set=function(a,b,c){var d=this,e=d.item;return null===b?(" clear "==a&&(a=" select "),e[a]=b,d):(e[" enable "==a?" disable ":" flip "==a?" enable ":a]=d.queue[a].split(" ").map(function(e){return b=d[e](a,b,c)}).pop()," select "==a?d.set(" highlight ",e.select,c):" highlight "==a?d.set(" view ",e.highlight,c):a.match(/^(flip|min|max|disable|enable)$/)&&(e.select&&d.disabled(e.select)&&d.set(" select ",e.select,c),e.highlight&&d.disabled(e.highlight)&&d.set(" highlight ",e.highlight,c)),d)},c.prototype.get=function(a){return this.item[a]},c.prototype.create=function(a,c,d){var e,g=this;return c=void 0===c?a:c,c==-1/0||1/0==c?e=c:b.isPlainObject(c)&&f.isInteger(c.pick)?c=c.obj:b.isArray(c)?(c=new Date(c[0],c[1],c[2]),c=f.isDate(c)?c:g.create().obj):c=f.isInteger(c)||f.isDate(c)?g.normalize(new Date(c),d):g.now(a,c,d),{year:e||c.getFullYear(),month:e||c.getMonth(),date:e||c.getDate(),day:e||c.getDay(),obj:e||c,pick:e||c.getTime()}},c.prototype.createRange=function(a,c){var d=this,e=function(a){return a===!0||b.isArray(a)||f.isDate(a)?d.create(a):a};return f.isInteger(a)||(a=e(a)),f.isInteger(c)||(c=e(c)),f.isInteger(a)&&b.isPlainObject(c)?a=[c.year,c.month,c.date+a]:f.isInteger(c)&&b.isPlainObject(a)&&(c=[a.year,a.month,a.date+c]),{from:e(a),to:e(c)}},c.prototype.withinRange=function(a,b){return a=this.createRange(a.from,a.to),b.pick>=a.from.pick&&b.pick<=a.to.pick},c.prototype.overlapRanges=function(a,b){var c=this;return a=c.createRange(a.from,a.to),b=c.createRange(b.from,b.to),c.withinRange(a,b.from)||c.withinRange(a,b.to)||c.withinRange(b,a.from)||c.withinRange(b,a.to)},c.prototype.now=function(a,b,c){return b=new Date,c&&c.rel&&b.setDate(b.getDate()+c.rel),this.normalize(b,c)},c.prototype.navigate=function(a,c,d){var e,f,g,h,i=b.isArray(c),j=b.isPlainObject(c),k=this.item.view;if(i||j){for(j?(f=c.year,g=c.month,h=c.date):(f=+c[0],g=+c[1],h=+c[2]),d&&d.nav&&k&&k.month!==g&&(f=k.year,g=k.month),e=new Date(f,g+(d&&d.nav?d.nav:0),1),f=e.getFullYear(),g=e.getMonth();new Date(f,g,h).getMonth()!==g;)h-=1;c=[f,g,h]}return c},c.prototype.normalize=function(a){return a.setHours(0,0,0,0),a},c.prototype.measure=function(a,b){var c=this;return b?f.isInteger(b)&&(b=c.now(a,b,{rel:b})):b=" min "==a?-1/0:1/0,b},c.prototype.viewset=function(a,b){return this.create([b.year,b.month,1])},c.prototype.validate=function(a,c,d){var e,g,h,i,j=this,k=c,l=d&&d.interval?d.interval:1,m=-1===j.item.enable,n=j.item.min,o=j.item.max,p=m&&j.ite
!function(a){" function "==typeof define&&define.amd?define([" picker "," jquery "],a):a(Picker,jQuery)}(function(a,b){function c(a,b){var c=this,d=a.$node[0].value,e=a.$node.data(" value "),f=e||d,g=e?b.formatSubmit:b.format;c.settings=b,c.$node=a.$node,c.queue={interval:" i ",min:" measure create ",max:" measure create ",now:" now create ",select:" parse create validate ",highlight:" parse create validate ",view:" parse create validate ",disable:" deactivate ",enable:" activate "},c.item={},c.item.clear=null,c.item.interval=b.interval||30,c.item.disable=(b.disable||[]).slice(0),c.item.enable=-function(a){return a[0]===!0?a.shift():-1}(c.item.disable),c.set(" min ",b.min).set(" max ",b.max).set(" now "),f?c.set(" select ",f,{format:g,fromValue:!!d}):c.set(" select ",null).set(" highlight ",c.item.now),c.key={40:1,38:-1,39:1,37:-1,go:function(a){c.set(" highlight ",c.item.highlight.pick+a*c.item.interval,{interval:a*c.item.interval}),this.render()}},a.on(" render ",function(){var c=a.$root.children(),d=c.find(" . "+b.klass.viewset);d.length&&(c[0].scrollTop=~~d.position().top-2*d[0].clientHeight)}).on(" open ",function(){a.$root.find(" button ").attr(" disabled ",!1)}).on(" close ",function(){a.$root.find(" button ").attr(" disabled ",!0)})}var d=24,e=60,f=12,g=d*e,h=a._;c.prototype.set=function(a,b,c){var d=this,e=d.item;return null===b?(" clear "==a&&(a=" select "),e[a]=b,d):(e[" enable "==a?" disable ":" flip "==a?" enable ":a]=d.queue[a].split(" ").map(function(e){return b=d[e](a,b,c)}).pop()," select "==a?d.set(" highlight ",e.select,c):" highlight "==a?d.set(" view ",e.highlight,c):" interval "==a?d.set(" min ",e.min,c).set(" max ",e.max,c):a.match(/^(flip|min|max|disable|enable)$/)&&(" min "==a&&d.set(" max ",e.max,c),e.select&&d.disabled(e.select)&&d.set(" select ",e.select,c),e.highlight&&d.disabled(e.highlight)&&d.set(" highlight ",e.highlight,c)),d)},c.prototype.get=function(a){return this.item[a]},c.prototype.create=function(a,c,f){var i=this;return c=void 0===c?a:c,h.isDate(c)&&(c=[c.getHours(),c.getMinutes()]),b.isPlainObject(c)&&h.isInteger(c.pick)?c=c.pick:b.isArray(c)?c=+c[0]*e+ +c[1]:h.isInteger(c)||(c=i.now(a,c,f))," max "==a&&c<i.item.min.pick&&(c+=g)," min "!=a&&" max "!=a&&(c-i.item.min.pick)%i.item.interval!==0&&(c+=i.item.interval),c=i.normalize(a,c,f),{hour:~~(d+c/e)%d,mins:(e+c%e)%e,time:(g+c)%g,pick:c}},c.prototype.createRange=function(a,c){var d=this,e=function(a){return a===!0||b.isArray(a)||h.isDate(a)?d.create(a):a};return h.isInteger(a)||(a=e(a)),h.isInteger(c)||(c=e(c)),h.isInteger(a)&&b.isPlainObject(c)?a=[c.hour,c.mins+a*d.settings.interval]:h.isInteger(c)&&b.isPlainObject(a)&&(c=[a.hour,a.mins+c*d.settings.interval]),{from:e(a),to:e(c)}},c.prototype.withinRange=function(a,b){return a=this.createRange(a.from,a.to),b.pick>=a.from.pick&&b.pick<=a.to.pick},c.prototype.overlapRanges=function(a,b){var c=this;return a=c.createRange(a.from,a.to),b=c.createRange(b.from,b.to),c.withinRange(a,b.from)||c.withinRange(a,b.to)||c.withinRange(b,a.from)||c.withinRange(b,a.to)},c.prototype.now=function(a,b){var c,d=this.item.interval,f=new Date,g=f.getHours()*e+f.getMinutes(),i=h.isInteger(b);return g-=g%d,c=0>b&&-d>=d*b+g,g+=" min "==a&&c?0:d,i&&(g+=d*(c&&" max "!=a?b+1:b)),g},c.prototype.normalize=function(a,b){var c=this.item.interval,d=this.item.min&&this.item.min.pick||0;return b-=" min "==a?0:(b-d)%c},c.prototype.measure=function(a,c,f){var g=this;return c?c===!0||h.isInteger(c)?c=g.now(a,c,f):b.isPlainObject(c)&&h.isInteger(c.pick)&&(c=g.normalize(a,c.pick,f)):c=" min "==a?[0,0]:[d-1,e-1],c},c.prototype.validate=function(a,b,c){var d=this,e=c&&c.interval?c.interval:d.item.interval;return d.disabled(b)&&(b=d.shift(b,e)),b=d.scope(b),d.disabled(b)&&(b=d.shift(b,-1*e)),b},c.prototype.disabled=function(a){var c=this,d=c.item.disable.filter(function(d){return h.isInteger(d)?a.hour==d:b.isArray(d)||h.isDate(d)?a.pick==c.create(d).pick:b.isPlainObject(d)?c.withinRange(d,a):void 0});return d=d.length&&!d.filter(function(a){return b.isArray(a)&&" inverted "==a[2]||b.isPlainObject(a)&&a.inverted}).length,-1===c.item.enable?!d:d||a.pick<c.item.min.pick||a.pick>c.item.max.pick},c.prototype.shift=function(a,b){v
[].map||(Array.prototype.map=function(a,b){for(var c=this,d=c.length,e=new Array(d),f=0;d>f;f++)f in c&&(e[f]=a.call(b,c[f],f,c));return e}),[].filter||(Array.prototype.filter=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(" function "!=typeof a)throw new TypeError;for(var d=[],e=arguments[1],f=0;c>f;f++)if(f in b){var g=b[f];a.call(e,g,f,b)&&d.push(g)}return d}),[].indexOf||(Array.prototype.indexOf=function(a){if(null==this)throw new TypeError;var b=Object(this),c=b.length>>>0;if(0===c)return-1;var d=0;if(arguments.length>1&&(d=Number(arguments[1]),d!=d?d=0:0!==d&&1/0!=d&&d!=-1/0&&(d=(d>0||-1)*Math.floor(Math.abs(d)))),d>=c)return-1;for(var e=d>=0?d:Math.max(c-Math.abs(d),0);c>e;e++)if(e in b&&b[e]===a)return e;return-1});
var nativeSplit=String.prototype.split,compliantExecNpcg=void 0===/()??/.exec(" ")[1];String.prototype.split=function(a,b){var c=this;if(" [ object RegExp ] "!==Object.prototype.toString.call(a))return nativeSplit.call(c,a,b);var d,e,f,g,h=[],i=(a.ignoreCase?" i ":" ")+(a.multiline?" m ":" ")+(a.extended?" x ":" ")+(a.sticky?" y ":" "),j=0;for(a=new RegExp(a.source,i+" g "),c+=" ",compliantExecNpcg||(d=new RegExp(" ^ "+a.source+" $ ( ? ! \ \ s ) ",i)),b=void 0===b?-1>>>0:b>>>0;(e=a.exec(c))&&(f=e.index+e[0].length,!(f>j&&(h.push(c.slice(j,e.index)),!compliantExecNpcg&&e.length>1&&e[0].replace(d,function(){for(var a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(e[a]=void 0)}),e.length>1&&e.index<c.length&&Array.prototype.push.apply(h,e.slice(1)),g=e[0].length,j=f,h.length>=b)));)a.lastIndex===e.index&&a.lastIndex++;return j===c.length?(g||!a.test(" "))&&h.push(" "):h.push(c.slice(j)),h.length>b?h.slice(0,b):h};
(function(e){var c={init:function(a){return this.each(function(){this.self=e(this);c.destroy.call(this.self);this.opt=e.extend(true,{},e.fn.raty.defaults,a);c._adjustCallback.call(this);c._adjustNumber.call(this);this.opt.starType!==" img "&&c._adjustStarType.call(this);c._adjustPath.call(this);c._createStars.call(this);this.opt.cancel&&c._createCancel.call(this);this.opt.precision&&c._adjustPrecision.call(this);c._createScore.call(this);c._apply.call(this,this.opt.score);c._target.call(this,this.opt.score);
if(this.opt.readOnly)c._lock.call(this);else{this.style.cursor=" pointer ";c._binds.call(this)}this.self.data(" options ",this.opt)})},_adjustCallback:function(){for(var a=[" number "," readOnly "," score "," scoreName "," target "],b=0;b<a.length;b++)if(typeof this.opt[a[b]]===" function ")this.opt[a[b]]=this.opt[a[b]].call(this)},_adjustNumber:function(){this.opt.number=c._between(this.opt.number,1,this.opt.numberMax)},_adjustPath:function(){this.opt.path=this.opt.path||" ";if(this.opt.path&&this.opt.path.charAt(this.opt.path.length-
1)!==" / ")this.opt.path+=" / "},_adjustPrecision:function(){this.opt.half=true;this.opt.targetType=" score "},_adjustStarType:function(){this.opt.path=" ";for(var a=[" cancelOff "," cancelOn "," starHalf "," starOff "," starOn "],b=0;b<a.length;b++)this.opt[a[b]]=this.opt[a[b]].replace(" . "," - ")},_apply:function(a){c._fill.call(this,a);if(a){a>0&&this.score.val(c._between(a,0,this.opt.number));c._roundStars.call(this,a)}},_between:function(a,b,d){return Math.min(Math.max(parseFloat(a),b),d)},_binds:function(){if(this.cancel){c._bindOverCancel.call(this);
c._bindClickCancel.call(this);c._bindOutCancel.call(this)}c._bindOver.call(this);c._bindClick.call(this);c._bindOut.call(this)},_bindClick:function(){var a=this;a.stars.on(" click . raty ",function(b){var d=e(this);a.score.val(a.opt.half||a.opt.precision?a.self.data(" score "):this.alt||d.data(" alt "));a.opt.click&&a.opt.click.call(a,+a.score.val(),b)})},_bindClickCancel:function(){var a=this;a.cancel.on(" click . raty ",function(b){a.score.removeAttr(" value ");a.opt.click&&a.opt.click.call(a,null,b)})},_bindOut:function(){var a=
this;a.self.on(" mouseleave . raty ",function(b){var d=+a.score.val()||undefined;c._apply.call(a,d);c._target.call(a,d,b);a.opt.mouseout&&a.opt.mouseout.call(a,d,b)})},_bindOutCancel:function(){var a=this;a.cancel.on(" mouseleave . raty ",function(b){var d=a.opt.cancelOff;if(a.opt.starType!==" img ")d=a.opt.cancelClass+" "+d;c._setIcon.call(a,this,d);if(a.opt.mouseout){d=+a.score.val()||undefined;a.opt.mouseout.call(a,d,b)}})},_bindOver:function(){var a=this;a.stars.on(a.opt.half?" mousemove . raty ":" mouseover . raty ",
function(b){var d=c._getScoreByPosition.call(a,b,this);c._fill.call(a,d);if(a.opt.half){c._roundStars.call(a,d);a.self.data(" score ",d)}c._target.call(a,d,b);a.opt.mouseover&&a.opt.mouseover.call(a,d,b)})},_bindOverCancel:function(){var a=this;a.cancel.on(" mouseover . raty ",function(b){var d=a.opt.path+a.opt.starOff,f=a.opt.cancelOn;if(a.opt.starType===" img ")a.stars.attr(" src ",d);else{f=a.opt.cancelClass+" "+f;a.stars.attr(" class ",d)}c._setIcon.call(a,this,f);c._target.call(a,null,b);a.opt.mouseover&&
a.opt.mouseover.call(a,null)})},_buildScoreField:function(){return e(" < input / > ",{name:this.opt.scoreName,type:" hidden "}).appendTo(this)},_createCancel:function(){var a=this.opt.path+this.opt.cancelOff,b=e(" < "+this.opt.starType+" / > ",{title:this.opt.cancelHint," class ":this.opt.cancelClass});this.opt.starType===" img "?b.attr({src:a,alt:" x "}):b.attr(" data - alt "," x ").addClass(a);this.opt.cancelPlace===" left "?this.self.prepend(" ").prepend(b):this.self.append(" ").append(b);this.cancel=b},_createScore:function(){var a=
e(this.opt.targetScore);this.score=a.length?a:c._buildScoreField.call(this)},_createStars:function(){for(var a=1;a<=this.opt.number;a++){var b=c._nameForIndex.call(this,a);b={alt:a,src:this.opt.path+this.opt[b]};if(this.opt.starType!==" img ")b={" data - alt ":a," class ":b.src};b.title=c._getHint.call(this,a);e(" < "+this.opt.starType+" / > ",b).appendTo(this);if(this.opt.space)this.self.append(a<this.opt.number?" ":" ")}this.stars=this.self.children(this.opt.starType)},_error:function(a){e(this).text(a);
e.error(a)},_fill:function(a){for(var b=0,d=1;d<=this.stars.length;d++){var f,g=this.stars[d-1];f=c._turnOn.call(this,d,a);if(this.opt.iconRange&&this.opt.iconRange.length>b){var h=this.opt.iconRange[b];f=c._getRangeIcon.call(this,h,f);d<=h.range&&c._setIcon.call(this,g,f);d===h.range&&b++}else{f=this.opt[f?" starOn ":" starOff "];c._setIcon.call(this,g,f)}}},_getRangeIcon:function(a,b){return b?a.on||this.opt.starOn:a.off||this.opt.starOff},_getScoreByPosition:function(a,b){var d=parseInt(b.alt||b.getAttribute(" data - alt "),
10);if(this.opt.half){var f=c._getSize.call(this);f=parseFloat((a.pageX-e(b).offset().left)/f);d=this.opt.precision?d-1+f:d-1+(f>0.5?1:0.5)}return d},_getSize:function(){var a;(a=this.opt.starType===" img "?this.stars[0].width:parseFloat(this.stars.eq(0).css(" font - size ")))||c._error.call(this," Could not be possible get the icon size ! ");return a},_turnOn:function(a,b){return this.opt.single?a===b:a<=b},_getHint:function(a){var b=this.opt.hints[a-1];return b===" "?" ":b||a},_lock:function(){var a=parseInt(this.score.val(),
10);a=a?c._getHint.call(this,a):this.opt.noRatedMsg;this.style.cursor=" ";this.title=a;this.score.prop(" readonly ",true);this.stars.prop(" title ",a);this.cancel&&this.cancel.hide();this.self.data(" readonly ",true)},_nameForIndex:function(a){return this.opt.score&&this.opt.score>=a?" starOn ":" starOff "},_roundStars:function(a){var b=(a%1).toFixed(2);if(b>this.opt.round.down){var d=" starOn ";if(this.opt.halfShow&&b<this.opt.round.up)d=" starHalf ";else if(b<this.opt.round.full)d=" starOff ";c._setIcon.call(this,
this.stars[Math.ceil(a)-1],this.opt[d])}},_setIcon:function(a,b){a[this.opt.starType===" img "?" src ":" className "]=this.opt.path+b},_setTarget:function(a,b){if(b)b=this.opt.targetFormat.toString().replace(" { score } ",b);a.is(" : input ")?a.val(b):a.html(b)},_target:function(a,b){if(this.opt.target){var d=e(this.opt.target);d.length||c._error.call(this," Target selector invalid or missing ! ");var f=b&&b.type===" mouseover ";if(a===undefined)a=this.opt.targetText;else if(a===null)a=f?this.opt.cancelHint:this.opt.targetText;
else{if(this.opt.targetType===" hint ")a=c._getHint.call(this,Math.ceil(a));else if(this.opt.precision)a=parseFloat(a).toFixed(1);var g=b&&b.type===" mousemove ";if(!f&&!g&&!this.opt.targetKeep)a=this.opt.targetText}c._setTarget.call(this,d,a)}},_unlock:function(){this.style.cursor=" pointer ";this.removeAttribute(" title ");this.score.removeAttr(" readonly ");this.self.data(" readonly ",false);for(var a=0;a<this.opt.number;a++)this.stars[a].title=c._getHint.call(this,a+1);this.cancel&&this.cancel.css(" display ",
" ")},cancel:function(a){return this.each(function(){var b=e(this);if(b.data(" readonly ")!==true){c[a?" click ":" score "].call(b,null);this.score.removeAttr(" value ")}})},click:function(a){return this.each(function(){if(e(this).data(" readonly ")!==true){c._apply.call(this,a);this.opt.click&&this.opt.click.call(this,a,e.Event(" click "));c._target.call(this,a)}})},destroy:function(){return this.each(function(){var a=e(this),b=a.data(" raw ");b?a.off(" . raty ").empty().css({cursor:b.style.cursor}).removeData(" readonly "):
a.data(" raw ",a.clone()[0])})},getScore:function(){var a=[],b;this.each(function(){b=this.score.val();a.push(b?+b:undefined)});return a.length>1?a:a[0]},move:function(a){return this.each(function(){var b=parseInt(a,10),d=e(this).data(" options "),f=(+a).toFixed(1).split(" . ")[1];if(b>=d.number){b=d.number-1;f=10}d=c._getSize.call(this)/10;b=e(this.stars[b]);f=b.offset().left+d*parseInt(f,10);f=e.Event(" mousemove ",{pageX:f});b.trigger(f)})},readOnly:function(a){return this.each(function(){var b=e(this);
if(b.data(" readonly ")!==a){if(a){b.off(" . raty ").children(" img ").off(" . raty ");c._lock.call(this)}else{c._binds.call(this);c._unlock.call(this)}b.data(" readonly ",a)}})},reload:function(){return c.set.call(this,{})},score:function(){var a=e(this);return arguments.length?c.setScore.apply(a,arguments):c.getScore.call(a)},set:function(a){return this.each(function(){var b=e(this),d=b.data(" options ");d=e.extend({},d,a);b.raty(d)})},setScore:function(a){return this.each(function(){if(e(this).data(" readonly ")!==
true){c._apply.call(this,a);c._target.call(this,a)}})}};e.fn.raty=function(a){if(c[a])return c[a].apply(this,Array.prototype.slice.call(arguments,1));else if(typeof a===" object "||!a)return c.init.apply(this,arguments);else e.error(" Method "+a+" does not exist ! ")};e.fn.raty.defaults={cancel:false,cancelClass:" raty - cancel ",cancelHint:" Cancel this rating ! ",cancelOff:" cancel - off . png ",cancelOn:" cancel - on . png ",cancelPlace:" left ",click:undefined,half:false,halfShow:true,hints:[" bad "," poor "," regular "," good ",
" gorgeous "],iconRange:undefined,mouseout:undefined,mouseover:undefined,noRatedMsg:" Not rated yet ! ",number:5,numberMax:20,path:undefined,precision:false,readOnly:false,round:{down:0.25,full:0.6,up:0.76},score:undefined,scoreName:" score ",single:false,space:true,starHalf:" star - half . png ",starOff:" star - off . png ",starOn:" star - on . png ",starType:" img ",target:undefined,targetFormat:" { score } ",targetKeep:false,targetScore:undefined,targetText:" ",targetType:" hint "}})(jQuery);
(function(h){if(typeof define===" function "&&define.amd)define([" jquery "],h);else typeof exports===" object "?h(require(" jquery ")):h(jQuery)})(function(h){var z=h(window),A=h(document),v=window.location,K=/^(e|n|w|s|ne|nw|sw|se|all|crop|move|zoom)$/,L=/^(x|y|width|height)$/,M=/^(naturalWidth|naturalHeight|width|height|aspectRatio|ratio|rotate)$/,u=function(a){return typeof a===" number "},w=function(a,b){var c=[];typeof b===" number "&&c.push(b);return c.slice.apply(a,c)},x=function(a,b){var c=w(arguments,
2);return function(){return a.apply(b,c.concat(w(arguments)))}},n=function(a,b){this.element=a;this.$element=h(a);this.defaults=h.extend({},n.DEFAULTS,h.isPlainObject(b)?b:{});this.$original=null;this.replaced=this.disabled=this.rotated=this.cropped=this.built=this.ready=false;this.init()},y=Math.sqrt,p=Math.min,q=Math.max,o=Math.abs,B=Math.sin,C=Math.cos,s=parseFloat;n.prototype={constructor:n,support:{canvas:h.isFunction(h(" < canvas > ")[0].getContext)},init:function(){var a=this.defaults;h.each(a,
function(b,c){switch(b){case " aspectRatio ":a[b]=o(s(c))||NaN;break;case " autoCropArea ":a[b]=o(s(c))||0.8;break;case " minWidth ":case " minHeight ":a[b]=o(s(c))||0;break;case " maxWidth ":case " maxHeight ":a[b]=o(s(c))||Infinity}});this.image={rotate:0};this.load()},load:function(){var a=this,b=this.$element,c=this.element,e=this.image,d=" ",g,i;if(b.is(" img "))i=b.prop(" src ");else if(b.is(" canvas ")&&this.support.canvas)i=c.toDataURL();if(i){if(this.replaced)e.rotate=0;if(this.defaults.checkImageOrigin)if(b.prop(" crossOrigin ")||
this.isCrossOriginURL(i))d=" crossOrigin ";this.$clone=g=h(" < img "+d+' src=" '+i+' ">');g.one(" load ",function(){e.naturalWidth=this.naturalWidth||g.width();e.naturalHeight=this.naturalHeight||g.height();e.aspectRatio=e.naturalWidth/e.naturalHeight;a.url=i;a.ready=true;a.build()});g.addClass(" cropper - invisible ").prependTo(" body ")}},isCrossOriginURL:function(a){if((a=a.match(/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i))&&(a[1]!==v.protocol||a[2]!==v.hostname||a[3]!==v.port))return true;return false},build:function(){var a=
this.$element,b=this.defaults,c;if(this.ready){this.built&&this.unbuild();a.one(" build . cropper ",b.build);c=h.Event(" build . cropper ");a.trigger(c);if(!c.isDefaultPrevented()){this.$cropper=c=h(n.TEMPLATE);a.addClass(" cropper - hidden ");this.$clone.removeClass(" cropper - invisible ").prependTo(c);if(!this.rotated){this.$original=this.$clone.clone();this.$original.addClass(" cropper - hidden ").prependTo(this.$cropper);this.originalImage=h.extend({},this.image)}this.$container=a.parent();this.$container.append(c);
this.$canvas=c.find(" . cropper - canvas ");this.$dragger=c.find(" . cropper - dragger ");this.$viewer=c.find(" . cropper - viewer ");b.autoCrop?this.cropped=true:this.$dragger.addClass(" cropper - hidden ");b.dragCrop&&this.setDragMode(" crop ");b.modal&&this.$canvas.addClass(" cropper - modal ");!b.dashed&&this.$dragger.find(" . cropper - dashed ").addClass(" cropper - hidden ");!b.movable&&this.$dragger.find(" . cropper - face ").data(" directive "," move ");!b.resizable&&this.$dragger.find(" . cropper - line , . cropper - point ").addClass(" cropper - hidden ");
this.addListeners();this.initPreview();this.built=true;this.update();this.replaced=false;a.one(" built . cropper ",b.built);a.trigger(" built . cropper ")}}},unbuild:function(){if(this.built){this.built=false;this.removeListeners();this.$preview.empty();this.$container=this.$canvas=this.$dragger=this.$preview=null;this.$cropper.remove();this.$cropper=null}},update:function(a){this.initContainer();this.initCropper();this.initImage();this.initDragger();if(a){this.setData(a,true);this.setDragMode(" crop ")}else this.setData(this.defaults.data)},
resize:function(){clearTimeout(this.resizing);this.resizing=setTimeout(h.proxy(this.update,this,this.getData()),200)},preview:function(){var a=this.image,b=this.dragger,c=a.width,e=a.height,d=b.left-a.left,g=b.top-a.top;this.$viewer.find(" img ").css({width:c,height:e,marginLeft:-d,marginTop:-g});this.$preview.each(function(){var i=h(this),j=i.width()/b.width;i.find(" img ").css({width:c*j,height:e*j,marginLeft:-d*j,marginTop:-g*j})})},addListeners:function(){var a=this.defaults;this.$element.on(" dragstart . cropper ",
a.dragstart).on(" dragmove . cropper ",a.dragmove).on(" dragend . cropper ",a.dragend);this.$cropper.on(" mousedown touchstart ",h.proxy(this.dragstart,this)).on(" dblclick ",h.proxy(this.dblclick,this));if(a.zoomable)this.$cropper.on(" wheel mousewheel DOMMouseScroll ",h.proxy(this.wheel,this));if(a.multiple)this.$cropper.on(" mousemove touchmove ",h.proxy(this.dragmove,this)).on(" mouseup mouseleave touchend touchleave touchcancel ",h.proxy(this.dragend,this));else A.on(" mousemove touchmove ",this._dragmove=x(this.dragmove,
this)).on(" mouseup mouseleave touchend touchleave touchcancel ",this._dragend=x(this.dragend,this));z.on(" resize . cropper ",this._resize=x(this.resize,this))},removeListeners:function(){var a=this.defaults;this.$element.off(" dragstart . cropper ",a.dragstart).off(" dragmove . cropper ",a.dragmove).off(" dragend . cropper ",a.dragend);this.$cropper.off(" mousedown touchstart ",this.dragstart).off(" dblclick ",this.dblclick);a.zoomable&&this.$cropper.off(" wheel mousewheel DOMMouseScroll ",this.wheel);a.multiple?this.$cropper.off(" mousemove touchmove ",
this.dragmove).off(" mouseup mouseleave touchend touchleave touchcancel ",this.dragend):A.off(" mousemove touchmove ",this._dragmove).off(" mouseup mouseleave touchend touchleave touchcancel ",this._dragend);z.off(" resize . cropper ",this._resize)},initPreview:function(){var a='<img src=" '+this.url+' ">';this.$preview=h(this.defaults.preview);this.$viewer.html(a);this.$preview.html(a).find(" img ").css(" cssText "," min - width : 0 ! important ; min - height : 0 ! important ; max - width : none ! important ; max - height : none ! important ; ")},
initContainer:function(){var a=this.$container;this.container={width:q(a.width(),300),height:q(a.height(),150)}},initCropper:function(){var a=this.container,b=this.image;if(b.naturalWidth*a.height/b.naturalHeight-a.width>=0){b={width:a.width,height:a.width/b.aspectRatio,left:0};b.top=(a.height-b.height)/2}else{b={width:a.height*b.aspectRatio,height:a.height,top:0};b.left=(a.width-b.width)/2}this.$cropper.css({width:b.width,height:b.height,left:b.left,top:b.top});this.cropper=b},initImage:function(){var a=
this.image,b=this.cropper,c={_width:b.width,_height:b.height,width:b.width,height:b.height,left:0,top:0,ratio:b.width/a.naturalWidth};this.defaultImage=h.extend({},a,c);if(a._width!==b.width||a._height!==b.height)h.extend(a,c);else{a=h.extend({},c,a);if(this.replaced)a.ratio=c.ratio}this.image=a;this.renderImage()},renderImage:function(a){var b=this.image;if(a===" zoom "){b.left-=(b.width-b.oldWidth)/2;b.top-=(b.height-b.oldHeight)/2}b.left=p(q(b.left,b._width-b.width),0);b.top=p(q(b.top,b._height-
b.height),0);this.$clone.css({width:b.width,height:b.height,marginLeft:b.left,marginTop:b.top});if(a){this.defaults.done(this.getData());this.preview()}},initDragger:function(){var a=this.defaults,b=this.cropper,c=a.aspectRatio||this.image.aspectRatio,e=this.image.ratio,d;d=b.height*c-b.width>=0?{height:b.width/c,width:b.width,left:0,top:(b.height-b.width/c)/2,maxWidth:b.width,maxHeight:b.width/c}:{height:b.height,width:b.height*c,left:(b.width-b.height*c)/2,top:0,maxWidth:b.height*c,maxHeight:b.height};
d.minWidth=0;d.minHeight=0;if(a.aspectRatio){if(isFinite(a.maxWidth)){d.maxWidth=p(d.maxWidth,a.maxWidth*e);d.maxHeight=d.maxWidth/c}else if(isFinite(a.maxHeight)){d.maxHeight=p(d.maxHeight,a.maxHeight*e);d.maxWidth=d.maxHeight*c}if(a.minWidth>0){d.minWidth=q(0,a.minWidth*e);d.minHeight=d.minWidth/c}else if(a.minHeight>0){d.minHeight=q(0,a.minHeight*e);d.minWidth=d.minHeight*c}}else{d.maxWidth=p(d.maxWidth,a.maxWidth*e);d.maxHeight=p(d.maxHeight,a.maxHeight*e);d.minWidth=q(0,a.minWidth*e);d.minHeight=
q(0,a.minHeight*e)}d.minWidth=p(d.maxWidth,d.minWidth);d.minHeight=p(d.maxHeight,d.minHeight);d.height*=a.autoCropArea;d.width*=a.autoCropArea;d.left=(b.width-d.width)/2;d.top=(b.height-d.height)/2;d.oldLeft=d.left;d.oldTop=d.top;this.defaultDragger=d;this.dragger=h.extend({},d)},renderDragger:function(){var a=this.dragger,b=this.cropper;if(a.width>a.maxWidth){a.width=a.maxWidth;a.left=a.oldLeft}else if(a.width<a.minWidth){a.width=a.minWidth;a.left=a.oldLeft}if(a.height>a.maxHeight){a.height=a.maxHeight;
a.top=a.oldTop}else if(a.height<a.minHeight){a.height=a.minHeight;a.top=a.oldTop}a.left=p(q(a.left,0),b.width-a.width);a.top=p(q(a.top,0),b.height-a.height);a.oldLeft=a.left;a.oldTop=a.top;this.dragger=a;this.disabled||this.defaults.done(this.getData());this.$dragger.css({width:a.width,height:a.height,left:a.left,top:a.top});this.preview()},reset:function(a){if(this.cropped){if(a)this.defaults.data={};this.image=h.extend({},this.defaultImage);this.renderImage();this.dragger=h.extend({},this.defaultDragger);
this.setData(this.defaults.data)}},clear:function(){if(this.cropped){this.cropped=false;this.setData({x:0,y:0,width:0,height:0});this.$canvas.removeClass(" cropper - modal ");this.$dragger.addClass(" cropper - hidden ")}},destroy:function(){var a=this.$element;if(this.ready){this.unbuild();a.removeClass(" cropper - hidden ").removeData(" cropper ");this.rotated&&a.attr(" src ",this.$original.attr(" src "))}},replace:function(a,b){var c=this,e=this.$element,d=this.element,g;if(a&&a!==this.url&&a!==e.attr(" src ")){if(!b){this.rotated=
false;this.replaced=true}if(e.is(" img ")){e.attr(" src ",a);this.load()}else if(e.is(" canvas ")&&this.support.canvas){g=d.getContext(" 2 d ");h('<img src=" '+a+' ">').one(" load ",function(){d.width=this.width;d.height=this.height;g.clearRect(0,0,d.width,d.height);g.drawImage(this,0,0);c.load()})}}},setData:function(a,b){var c=this.cropper,e=this.dragger,d=this.image,g=this.defaults.aspectRatio;if(!(!this.built||typeof a===" undefined ")){if(a===null||h.isEmptyObject(a))e=h.extend({},this.defaultDragger);if(h.isPlainObject(a)&&
!h.isEmptyObject(a)){if(!b)this.defaults.data=a;a=this.transformData(a);if(u(a.x)&&a.x<=c.width-d.left)e.left=a.x+d.left;if(u(a.y)&&a.y<=c.height-d.top)e.top=a.y+d.top;if(g)if(u(a.width)&&a.width<=e.maxWidth&&a.width>=e.minWidth){e.width=a.width;e.height=e.width/g}else{if(u(a.height)&&a.height<=e.maxHeight&&a.height>=e.minHeight){e.height=a.height;e.width=e.height*g}}else{if(u(a.width)&&a.width<=e.maxWidth&&a.width>=e.minWidth)e.width=a.width;if(u(a.height)&&a.height<=e.maxHeight&&a.height>=e.minHeight)e.height=
a.height}}this.dragger=e;this.renderDragger()}},getData:function(a){var b=this.dragger,c=this.image,e={};if(this.built){e={x:b.left-c.left,y:b.top-c.top,width:b.width,height:b.height};e=this.transformData(e,true,a)}return e},transformData:function(a,b,c){var e=this.image.ratio,d={};h.each(a,function(g,i){i=s(i);if(L.test(g)&&!isNaN(i))d[g]=b?c?Math.round(i/e):i/e:i*e});return d},setAspectRatio:function(a){var b=a===" auto ";a=s(a);if(b||!isNaN(a)&&a>0){this.defaults.aspectRatio=b?NaN:a;if(this.built){this.initDragger();
this.renderDragger()}}},getImageData:function(){var a={};this.ready&&h.each(this.image,function(b,c){if(M.test(b))a[b]=c});return a},getDataURL:function(a,b,c){var e=h(" < canvas > ")[0],d=this.getData(),g=" ";if(!h.isPlainObject(a)){c=b;b=a;a={}}a=h.extend({width:d.width,height:d.height},a);if(this.cropped&&this.support.canvas){e.width=a.width;e.height=a.height;g=e.getContext(" 2 d ");if(b===" image / jpeg "){g.fillStyle=" # fff ";g.fillRect(0,0,a.width,a.height)}g.drawImage(this.$clone[0],d.x,d.y,d.width,d.height,
0,0,a.width,a.height);g=e.toDataURL(b,c)}return g},setDragMode:function(a){var b=this.$canvas,c=this.defaults,e=false,d=false;if(!(!this.built||this.disabled)){switch(a){case " crop ":if(c.dragCrop){e=true;b.data(" directive ",a)}break;case " move ":d=true;b.data(" directive ",a);break;default:b.removeData(" directive ")}b.toggleClass(" cropper - crop ",e).toggleClass(" cropper - move ",d)}},enable:function(){if(this.built){this.disabled=false;this.$cropper.removeClass(" cropper - disabled ")}},disable:function(){if(this.built){this.disabled=
true;this.$cropper.addClass(" cropper - disabled ")}},rotate:function(a){var b=this.image;a=s(a)||0;if(!(!this.built||a===0||this.disabled||!this.defaults.rotatable||!this.support.canvas)){this.rotated=true;a=b.rotate=(b.rotate+a)%360;this.replace(this.getRotatedDataURL(a),true)}},getRotatedDataURL:function(a){var b=h(" < canvas > ")[0],c=b.getContext(" 2 d "),e=a*Math.PI/180;a=o(a)%180;var d=(a>90?180-a:a)*Math.PI/180,g=this.originalImage;a=g.naturalWidth;g=g.naturalHeight;var i=o(a*C(d)+g*B(d));d=o(a*B(d)+
g*C(d));b.width=i;b.height=d;c.save();c.translate(i/2,d/2);c.rotate(e);c.drawImage(this.$original[0],-a/2,-g/2,a,g);c.restore();return b.toDataURL()},zoom:function(a){var b=this.image,c,e;a=s(a);if(!(!this.built||!a||this.disabled||!this.defaults.zoomable)){c=b.width*(1+a);a=b.height*(1+a);e=c/b._width;if(!(e>10)){if(e<1){c=b._width;a=b._height}e<=1?this.setDragMode(" crop "):this.setDragMode(" move ");b.oldWidth=b.width;b.oldHeight=b.height;b.width=c;b.height=a;b.ratio=b.width/b.naturalWidth;this.renderImage(" zoom ")}}},
dblclick:function(){this.disabled||(this.$canvas.hasClass(" cropper - crop ")?this.setDragMode(" move "):this.setDragMode(" crop "))},wheel:function(a){var b=a.originalEvent;if(!this.disabled){a.preventDefault();if(b.deltaY){a=b.deltaY;a=a%5===0?a/5:a%117.25===0?a/117.25:a/166.66665649414062}else a=b.wheelDelta?-b.wheelDelta/120:b.detail?b.detail/3:0;this.zoom(a*0.1)}},dragstart:function(a){var b=a.originalEvent.touches,c=a,e;if(!this.disabled){if(b){c=b.length;if(c>1)if(this.defaults.zoomable&&c===2){c=
b[1];this.startX2=c.pageX;this.startY2=c.pageY;e=" zoom "}else return;c=b[0]}e=e||h(c.target).data(" directive ");if(K.test(e)){a.preventDefault();a=h.Event(" dragstart . cropper ");this.$element.trigger(a);if(!a.isDefaultPrevented()){this.directive=e;this.cropping=false;this.startX=c.pageX;this.startY=c.pageY;if(e===" crop "){this.cropping=true;this.$canvas.addClass(" cropper - modal ")}}}}},dragmove:function(a){var b=a.originalEvent.touches,c=a;if(!this.disabled){if(b){c=b.length;if(c>1)if(this.defaults.zoomable&&
c===2){c=b[1];this.endX2=c.pageX;this.endY2=c.pageY}else return;c=b[0]}if(this.directive){a.preventDefault();a=h.Event(" dragmove . cropper ");this.$element.trigger(a);if(!a.isDefaultPrevented()){this.endX=c.pageX;this.endY=c.pageY;this.dragging()}}}},dragend:function(a){if(!this.disabled)if(this.directive){a.preventDefault();a=h.Event(" dragend . cropper ");this.$element.trigger(a);if(!a.isDefaultPrevented()){if(this.cropping){this.cropping=false;this.$canvas.toggleClass(" cropper - modal ",this.cropped&&this.defaults.modal)}this.directive=
" "}}},dragging:function(){var a=this.directive,b=this.image,c=this.cropper,e=c.width,d=c.height;c=this.dragger;var g=c.width,i=c.height,j=c.left,k=c.top,t=j+g,r=k+i,m=true,D=this.defaults,l=D.aspectRatio,f={x:this.endX-this.startX,y:this.endY-this.startY};if(l){f.X=f.y*l;f.Y=f.x/l}switch(a){case " all ":j+=f.x;k+=f.y;break;case " e ":if(f.x>=0&&(t>=e||l&&(k<=0||r>=d))){m=false;break}g+=f.x;if(l){i=g/l;k-=f.Y/2}if(g<0){a=" w ";g=0}break;case " n ":if(f.y<=0&&(k<=0||l&&(j<=0||t>=e))){m=false;break}i-=f.y;k+=
f.y;if(l){g=i*l;j+=f.X/2}if(i<0){a=" s ";i=0}break;case " w ":if(f.x<=0&&(j<=0||l&&(k<=0||r>=d))){m=false;break}g-=f.x;j+=f.x;if(l){i=g/l;k+=f.Y/2}if(g<0){a=" e ";g=0}break;case " s ":if(f.y>=0&&(r>=d||l&&(j<=0||t>=e))){m=false;break}i+=f.y;if(l){g=i*l;j-=f.X/2}if(i<0){a=" n ";i=0}break;case " ne ":if(l){if(f.y<=0&&(k<=0||t>=e)){m=false;break}i-=f.y;k+=f.y;g=i*l}else{if(f.x>=0)if(t<e)g+=f.x;else{if(f.y<=0&&k<=0)m=false}else g+=f.x;if(f.y<=0){if(k>0){i-=f.y;k+=f.y}}else{i-=f.y;k+=f.y}}if(i<0){a=" sw ";g=i=0}break;
case " nw ":if(l){if(f.y<=0&&(k<=0||j<=0)){m=false;break}i-=f.y;k+=f.y;g=i*l;j+=f.X}else{if(f.x<=0)if(j>0){g-=f.x;j+=f.x}else{if(f.y<=0&&k<=0)m=false}else{g-=f.x;j+=f.x}if(f.y<=0){if(k>0){i-=f.y;k+=f.y}}else{i-=f.y;k+=f.y}}if(i<0){a=" se ";g=i=0}break;case " sw ":if(l){if(f.x<=0&&(j<=0||r>=d)){m=false;break}g-=f.x;j+=f.x;i=g/l}else{if(f.x<=0)if(j>0){g-=f.x;j+=f.x}else{if(f.y>=0&&r>=d)m=false}else{g-=f.x;j+=f.x}if(f.y>=0){if(r<d)i+=f.y}else i+=f.y}if(g<0){a=" ne ";g=i=0}break;case " se ":if(l){if(f.x>=0&&(t>=
e||r>=d)){m=false;break}g+=f.x;i=g/l}else{if(f.x>=0)if(t<e)g+=f.x;else{if(f.y>=0&&r>=d)m=false}else g+=f.x;if(f.y>=0){if(r<d)i+=f.y}else i+=f.y}if(g<0){a=" nw ";g=i=0}break;case " move ":b.left+=f.x;b.top+=f.y;this.renderImage(" move ");m=false;break;case " zoom ":if(D.zoomable){this.zoom(function(E,F,G,H,I,J){return(y(I*I+J*J)-y(G*G+H*H))/y(E*E+F*F)}(b.width,b.height,o(this.startX-this.startX2),o(this.startY-this.startY2),o(this.endX-this.endX2),o(this.endY-this.endY2)));this.endX2=this.startX2;this.endY2=
this.startY2}break;case " crop ":if(f.x&&f.y){a=this.$cropper.offset();j=this.startX-a.left;k=this.startY-a.top;g=c.minWidth;i=c.minHeight;if(f.x>0)if(f.y>0)a=" se ";else{a=" ne ";k-=i}else if(f.y>0){a=" sw ";j-=g}else{a=" nw ";j-=g;k-=i}if(!this.cropped){this.cropped=true;this.$dragger.removeClass(" cropper - hidden ")}}}if(m){c.width=g;c.height=i;c.left=j;c.top=k;this.directive=a;this.renderDragger()}this.startX=this.endX;this.startY=this.endY}};n.TEMPLATE=function(a,b){b=b.split(" , ");return a.replace(/\d+/g,
function(c){return b[c]})}('<0 6=" 5 - container "><0 6=" 5 - canvas "></0><0 6=" 5 - dragger "><1 6=" 5 - viewer "></1><1 6=" 5 - 8 8 - h "></1><1 6=" 5 - 8 8 - v "></1><1 6=" 5 - face " 3-2=" all "></1><1 6=" 5 - 7 7 - e " 3-2=" e "></1><1 6=" 5 - 7 7 - n " 3-2=" n "></1><1 6=" 5 - 7 7 - w " 3-2=" w "></1><1 6=" 5 - 7 7 - s " 3-2=" s "></1><1 6=" 5 - 4 4 - e " 3-2=" e "></1><1 6=" 5 - 4 4 - n " 3-2=" n "></1><1 6=" 5 - 4 4 - w " 3-2=" w "></1><1 6=" 5 - 4 4 - s " 3-2=" s "></1><1 6=" 5 - 4 4 - ne " 3-2=" ne "></1><1 6=" 5 - 4 4 - nw " 3-2=" nw "></1><1 6=" 5 - 4 4 - sw " 3-2=" sw "></1><1 6=" 5 - 4 4 - se " 3-2=" se "></1></0></0>',
" div , span , directive , data , point , cropper , class , line , dashed ");n.DEFAULTS={aspectRatio:" auto ",autoCropArea:0.8,data:{},done:h.noop,preview:" ",multiple:false,autoCrop:true,dragCrop:true,dashed:true,modal:true,movable:true,resizable:true,zoomable:true,rotatable:true,checkImageOrigin:true,minWidth:0,minHeight:0,maxWidth:Infinity,maxHeight:Infinity,build:null,built:null,dragstart:null,dragmove:null,dragend:null};n.setDefaults=function(a){h.extend(n.DEFAULTS,a)};n.other=h.fn.cropper;h.fn.cropper=function(a){var b=
w(arguments,1),c;this.each(function(){var e=h(this),d=e.data(" cropper "),g;d||e.data(" cropper ",d=new n(this,a));if(typeof a===" string "&&h.isFunction(g=d[a]))c=g.apply(d,b)});return typeof c!==" undefined "?c:this};h.fn.cropper.Constructor=n;h.fn.cropper.setDefaults=n.setDefaults;h.fn.cropper.noConflict=function(){h.fn.cropper=n.other;return this}});
(function(b){function j(a,c){this.$element=b(a);this.options=c;this.enabled=true;this.fixTitle()}j.prototype={show:function(){var a=this.getTitle();if(a&&this.enabled){var c=this.tip();c.find(" . tipsy - inner ")[this.options.html?" html ":" text "](a);c[0].className=" tipsy ";c.remove().css({top:0,left:0,visibility:" hidden ",display:" block "}).prependTo(document.body);a=b.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var d=c[0].offsetWidth,h=c[0].offsetHeight,
f=typeof this.options.gravity==" function "?this.options.gravity.call(this.$element[0]):this.options.gravity,g;switch(f.charAt(0)){case " n ":g={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-d/2};break;case " s ":g={top:a.top-h-this.options.offset,left:a.left+a.width/2-d/2};break;case " e ":g={top:a.top+a.height/2-h/2,left:a.left-d-this.options.offset};break;case " w ":extra_gap=0;if(b(" body ").css(" position ").length>0&&b(" body ").css(" position ")==" relative ")if(b(" # wpadminbar ").length)extra_gap=
b(" # wpadminbar ").height();g={top:a.top+a.height/2-h/2-extra_gap,left:a.left+a.width+this.options.offset}}if(f.length==2)g.left=f.charAt(1)==" w "?a.left+a.width/2-15:a.left+a.width/2-d+15;c.css(g).addClass(" tipsy - "+f);c.find(" . tipsy - arrow ")[0].className=" tipsy - arrow tipsy - arrow - "+f.charAt(0);this.options.className&&c.addClass(typeof this.options.className==" function "?this.options.className.call(this.$element[0]):this.options.className);this.options.fade?c.stop().css({opacity:0,display:" block ",visibility:" visible "}).animate({opacity:this.options.opacity}):
c.css({visibility:" visible ",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){b(this).remove()}):this.tip().remove()},fixTitle:function(){var a=this.$element;if(a.attr(" title ")||typeof a.attr(" original - title ")!=" string ")a.attr(" original - title ",a.attr(" title ")||" ").removeAttr(" title ")},getTitle:function(){var a,c=this.$element,d=this.options;this.fixTitle();d=this.options;if(typeof d.title==" string ")a=c.attr(d.title==" title "?" original - title ":d.title);
else if(typeof d.title==" function ")a=d.title.call(c[0]);return(" "+a).replace(/(^\s*|\s*$)/," ")||d.fallback},tip:function(){if(!this.$tip){this.$tip=b('<div class=" tipsy "></div>').html('<div class=" tipsy - arrow "></div><div class=" tipsy - inner "></div>');this.$tip.data(" tipsy - pointee ",this.$element[0])}return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.options=this.$element=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=
!this.enabled}};b.fn.tipsy=function(a){function c(e){var i=b.data(e," tipsy ");if(!i){i=new j(e,b.fn.tipsy.elementOptions(e,a));b.data(e," tipsy ",i)}return i}function d(){var e=c(this);e.hoverState=" in ";if(a.delayIn==0)e.show();else{e.fixTitle();setTimeout(function(){e.hoverState==" in "&&e.show()},a.delayIn)}}function h(){var e=c(this);e.hoverState=" out ";a.delayOut==0?e.hide():setTimeout(function(){e.hoverState==" out "&&e.hide()},a.delayOut)}if(a===true)return this.data(" tipsy ");else if(typeof a==" string "){var f=
this.data(" tipsy ");if(f)f[a]();return this}a=b.extend({},b.fn.tipsy.defaults,a);a.live||this.each(function(){c(this)});if(a.trigger!=" manual "){var g=a.trigger==" hover "?" mouseleave ":" blur ";this['on'](a.trigger==" hover "?" mouseenter ":" focus ",d)['on'](g,h)}return this};b.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:false,fallback:" ",gravity:" n ",html:false,live:false,offset:0,opacity:0.8,title:" title ",trigger:" hover "};b.fn.tipsy.revalidate=function(){b(" . tipsy ").each(function(){var a=
b.data(this," tipsy - pointee "),c;if(!(c=!a)){a:{for(;a=a.parentNode;)if(a==document){a=true;break a}a=false}c=!a}c&&b(this).remove()})};b.fn.tipsy.elementOptions=function(a,c){return b.metadata?b.extend({},c,b(a).metadata()):c};b.fn.tipsy.autoNS=function(){return b(this).offset().top>b(document).scrollTop()+b(window).height()/2?" s ":" n "};b.fn.tipsy.autoWE=function(){return b(this).offset().left>b(document).scrollLeft()+b(window).width()/2?" e ":" w "};b.fn.tipsy.autoBounds=function(a,c){return function(){var d=
{ns:c[0],ew:c.length>1?c[1]:false},h=b(document).scrollTop()+a,f=b(document).scrollLeft()+a,g=b(this);if(g.offset().top<h)d.ns=" n ";if(g.offset().left<f)d.ew=" w ";if(b(window).width()+b(document).scrollLeft()-g.offset().left<a)d.ew=" e ";if(b(window).height()+b(document).scrollTop()-g.offset().top<a)d.ns=" s ";return d.ns+(d.ew?d.ew:" ")}}})(jQuery);
;(function(f){" use strict ";" function "===typeof define&&define.amd?define([" jquery "],f):" undefined "!==typeof module&&module.exports?module.exports=f(require(" jquery ")):f(jQuery)})(function($){" use strict ";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),[" iframe "," # document "," html "," body "])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:" xy ",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){" object "=== typeof d&&(b=d,d=0);" function "===typeof b&&(b={onAfter:b});" max "===a&&(a=9E9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1<b.axis.length;u&&(d/=2);b.offset=h(b.offset);b.over=h(b.over);return this.each(function(){function k(a){var k=$.extend({},b,{queue:!0,duration:d,complete:a&&function(){a.call(q,e,b)}});r.animate(f,k)}if(null!==a){var l=n(this),q=l?this.contentWindow||window:this,r=$(q),e=a,f={},t;switch(typeof e){case " number ":case " string ":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e= h(e);break}e=l?$(e):$(e,q);if(!e.length)return;case " object ":if(e.is||e.style)t=(e=$(e)).offset()}var v=$.isFunction(b.offset)&&b.offset(q,e)||b.offset;$.each(b.axis.split(" "),function(a,c){var d=" x "===c?" Left ":" Top ",m=d.toLowerCase(),g=" scroll "+d,h=r[g](),n=p.max(q,c);t?(f[g]=t[m]+(l?0:h-r.offset()[m]),b.margin&&(f[g]-=parseInt(e.css(" margin "+d),10)||0,f[g]-=parseInt(e.css(" border "+d+" Width "),10)||0),f[g]+=v[m]||0,b.over[m]&&(f[g]+=e[" x "===c?" width ":" height "]()*b.over[m])):(d=e[m],f[g]=d.slice&& " % "===d.slice(-1)?parseFloat(d)/100*n:d);b.limit&&/^\d+$/.test(f[g])&&(f[g]=0>=f[g]?0:Math.min(f[g],n));!a&&1<b.axis.length&&(h===f[g]?f={}:u&&(k(b.onAfterFirst),f={}))});k(b.onAfter)}})};p.max=function(a,d){var b=" x "===d?" Width ":" Height ",h=" scroll "+b;if(!n(a))return a[h]-$(a)[b.toLowerCase()]();var b=" client "+b,k=a.ownerDocument||a.document,l=k.documentElement,k=k.body;return Math.max(l[h],k[h])-Math.min(l[b],k[b])};$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(a){return $(a.elem)[a.prop]()}, set:function(a){var d=this.get(a);if(a.options.interrupt&&a._last&&a._last!==d)return $(a.elem).stop();var b=Math.round(a.now);d!==b&&($(a.elem)[a.prop](b),a._last=this.get(a))}};return p});
var live_field;var live_value;function um_conditional(){jQuery('.um-field.um-is-conditional').each(function(){for(var i = 0;i < 5;i++){var action0 = jQuery(this).data('cond-'+i+'-action');var field0 = jQuery(this).data('cond-'+i+'-field');var operator0 = jQuery(this).data('cond-'+i+'-operator');var value0 = jQuery(this).data('cond-'+i+'-value');if(action0 == 'show' && field0 == live_field){if(operator0 == 'empty'){if(!live_value||live_value == ''){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'not empty'){if(live_value&&live_value!= ''){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'equals to'){if(value0 == live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'not equals'){if(jQuery.isNumeric(value0) && parseInt(live_value)!= parseInt(value0) && live_value){jQuery(this).fadeIn()}else if(!jQuery.isNumeric(value0) && value0!= live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'greater than'){if(jQuery.isNumeric(value0) && parseInt(live_value)>parseInt(value0)){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'less than'){if(jQuery.isNumeric(value0) && parseInt(live_value) < parseInt(value0) && live_value){jQuery(this).fadeIn()}else{jQuery(this).hide()}}if(operator0 == 'contains'){if(live_value && live_value.indexOf(value0)>= 0){jQuery(this).fadeIn()}else{jQuery(this).hide()}}}if(action0 == 'hide' && field0 == live_field){if(operator0 == 'empty'){if(!live_value||live_value == ''){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'not empty'){if(live_value&&live_value!= ''){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'equals to'){if(value0 == live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'not equals'){if(jQuery.isNumeric(value0) && parseInt(live_value)!= parseInt(value0) && live_value){jQuery(this).hide()}else if(!jQuery.isNumeric(value0) && value0!= live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'greater than'){if(jQuery.isNumeric(value0) && parseInt(live_value)>parseInt(value0)){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'less than'){if(jQuery.isNumeric(value0) && parseInt(live_value) < parseInt(value0) && live_value){jQuery(this).hide()}else{jQuery(this).fadeIn()}}if(operator0 == 'contains'){if(live_value && live_value.indexOf(value0)>= 0){jQuery(this).hide()}else{jQuery(this).fadeIn()}}}}})}function UM_hide_menus(){menu = jQuery('.um-dropdown');menu.parents('div').find('a').removeClass('active');menu.hide()}function UM_domenus(){jQuery('.um-dropdown').each(function(){var menu = jQuery(this);var element = jQuery(this).attr('data-element');var position = jQuery(this).attr('data-position');jQuery(element).addClass('um-trigger-menu-on-'+menu.attr('data-trigger'));if(jQuery(window).width() <= 1200 && element == 'div.um-profile-edit'){position = 'lc'}if(position == 'lc'){if(200>jQuery(element).find('img').width()){left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)+((jQuery(element).find('img').width() - 200) / 2)}else{left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)}top_ = parseInt(jQuery(element).find('a').css('top'));if(top_){top_p = jQuery(element).find('img').height()+4+top_;left_gap = 4}else{top_p = jQuery(element).find('img').height()+4;left_gap = 0}if(top_p == 4 && element == 'div.um-cover'){top_p = jQuery(element).height() / 2+(menu.height() / 2)}else if(top_p == 4){top_p = jQuery(element).height()+20}gap_right = jQuery(element).width()+17;menu.css({'top':0,'width':200,'left':'auto','right':gap_right+'px','text-align':'center'});menu.find('.um-dropdown-arr').find('i').removeClass().addClass('um-icon-arrow-right-b');menu.find('.um-dropdown-arr').css({'top':'4px','left':'auto','right':'-17px'})}if(position == 'bc'){if(200>jQuery(element).find('img').width()){left_p =((jQuery(element).width() - jQuery(element).find('img').width()) / 2)+((jQuery(element).find('img').width() - 200) / 2)}else{left_p =((jQuery(element).width() - jQuery(element).find('img').widt
/* == jquery mousewheel plugin == Version: 3.1.12, License: MIT License (MIT) */
!function(a){" function "==typeof define&&define.amd?define([" jquery "],a):" object "==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type=" mousewheel "," detail "in g&&(m=-1*g.detail)," wheelDelta "in g&&(m=g.wheelDelta)," wheelDeltaY "in g&&(m=g.wheelDeltaY)," wheelDeltaX "in g&&(l=-1*g.wheelDeltaX)," axis "in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m," deltaY "in g&&(m=-1*g.deltaY,j=m)," deltaX "in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this," mousewheel - line - height ");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this," mousewheel - page - height ");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?" floor ":" ceil "](j/f),l=Math[l>=1?" floor ":" ceil "](l/f),m=Math[m>=1?" floor ":" ceil "](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&" mousewheel "===a.type&&b%120===0}var e,f,g=[" wheel "," mousewheel "," DOMMouseScroll "," MozMousePixelScroll "],h=" onwheel "in document||document.documentMode>=9?[" wheel "]:[" mousewheel "," DomMouseScroll "," MozMousePixelScroll "],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:" 3.1 . 12 ",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this," mousewheel - line - height ",k.getLineHeight(this)),a.data(this," mousewheel - page - height ",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this," mousewheel - line - height "),a.removeData(this," mousewheel - page - height ")},getLineHeight:function(b){var c=a(b),d=c[" offsetParent "in a.fn?" offsetParent ":" parent "]();return d.length||(d=a(" body ")),parseInt(d.css(" fontSize "),10)||parseInt(c.css(" fontSize "),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind(" mousewheel ",a):this.trigger(" mousewheel ")},unmousewheel:function(a){return this.unbind(" mousewheel ",a)}})});
/* == malihu jquery custom scrollbar plugin == Version: 3.0.8, License: MIT License (MIT) */
!function(e){" undefined "!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o=" function "==typeof define&&define.amd,a=" undefined "!=typeof module&&module.exports,n=" https : "==document.location.protocol?" https : ":" http : ",i=" cdnjs . cloudflare . com / ajax / libs / jquery - mousewheel / 3.1 . 12 / jquery . mousewheel . min . js ";o||(a?require(" jquery - mousewheel ")(e):e.event.special.mousewheel||e(" head ").append(decodeURI(" % 3 Cscript src = "+n+" //"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&V(t),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),S.call(this),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r.children())),n.overflowed=B.call(this),O.call(this),i.autoDraggerLength&&b.call(this),C.call(this),k.call(this);var s=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?l[0].height()>l[0].parent().height()?T.call(this):(Q(t,s[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(T.call(this),"y"===i.axis?M.call(this):"yx"===i.axis&&n.overflowed[1]&&Q(t,s[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?l[1].width()>l[1].parent().width()?T.call(this):(Q(t,s[1].toString(),{dir:"x",dur:0,overwrite:"n
if ( s . trigger = n . trigger , ( 0 !== m . scrollTop ( ) || 0 !== m . scrollLeft ( ) ) && ( e ( ".mCSB_" + s . idx + "_scrollbar" ) . css ( "visibility" , "visible" ) , m . scrollTop ( 0 ) . scrollLeft ( 0 ) ) , "_resetY" !== o || s . contentReset . y || ( i ( "onOverflowYNone" ) && c . callbacks . onOverflowYNone . call ( t [ 0 ] ) , s . contentReset . y = 1 ) , "_resetX" !== o || s . contentReset . x || ( i ( "onOverflowXNone" ) && c . callbacks . onOverflowXNone . call ( t [ 0 ] ) , s . contentReset . x = 1 ) , "_resetY" !== o && "_resetX" !== o ) { switch ( ! s . contentReset . y && t [ 0 ] . mcs || ! s . overflowed [ 0 ] || ( i ( "onOverflowY" ) && c . callbacks . onOverflowY . call ( t [ 0 ] ) , s . contentReset . x = null ) , ! s . contentReset . x && t [ 0 ] . mcs || ! s . overflowed [ 1 ] || ( i ( "onOverflowX" ) && c . callbacks . onOverflowX . call ( t [ 0 ] ) , s . contentReset . x = null ) , c . snapAmount && ( o = N ( o , c . snapAmount , c . snapOffset ) ) , n . dir ) { case "x" : var v = e ( "#mCSB_" + s . idx + "_dragger_horizontal" ) , x = "left" , _ = h [ 0 ] . offsetLeft , w = [ f . width ( ) - h . outerWidth ( ! 1 ) , v . parent ( ) . width ( ) - v . width ( ) ] , S = [ o , 0 === o ? 0 : o / s . scrollRatio . x ] , b = p [ 1 ] , C = g [ 1 ] , B = b > 0 ? b / s . scrollRatio . x : 0 , T = C > 0 ? C / s . scrollRatio . x : 0 ; break ; case "y" : var v = e ( "#mCSB_" + s . idx + "_dragger_vertical" ) , x = "top" , _ = h [ 0 ] . offsetTop , w = [ f . height ( ) - h . outerHeight ( ! 1 ) , v . parent ( ) . height ( ) - v . height ( ) ] , S = [ o , 0 === o ? 0 : o / s . scrollRatio . y ] , b = p [ 0 ] , C = g [ 0 ] , B = b > 0 ? b / s . scrollRatio . y : 0 , T = C > 0 ? C / s . scrollRatio . y : 0 } S [ 1 ] < 0 || 0 === S [ 0 ] && 0 === S [ 1 ] ? S = [ 0 , 0 ] : S [ 1 ] >= w [ 1 ] ? S = [ w [ 0 ] , w [ 1 ] ] : S [ 0 ] = - S [ 0 ] , t [ 0 ] . mcs || ( l ( ) , i ( "onInit" ) && c . callbacks . onInit . call ( t [ 0 ] ) ) , clearTimeout ( h [ 0 ] . onCompleteTimeout ) , ( s . tweenRunning || ! ( 0 === _ && S [ 0 ] >= 0 || _ === w [ 0 ] && S [ 0 ] <= w [ 0 ] ) ) && ( G ( v [ 0 ] , x , Math . round ( S [ 1 ] ) , u [ 1 ] , n . scrollEasing ) , G ( h [ 0 ] , x , Math . round ( S [ 0 ] ) , u [ 0 ] , n . scrollEasing , n . overwrite , { onStart : function ( ) { n . callbacks && n . onStart && ! s . tweenRunning && ( i ( "onScrollStart" ) && ( l ( ) , c . callbacks . onScrollStart . call ( t [ 0 ] ) ) , s . tweenRunning = ! 0 , y ( v ) , s . cbOffsets = r ( ) ) } , onUpdate : function ( ) { n . callbacks && n . onUpdate && i ( "whileScrolling" ) && ( l ( ) , c . callbacks . whileScrolling . call ( t [ 0 ] ) ) } , onComplete : function ( ) { if ( n . callbacks && n . onComplete ) { "yx" === c . axis && clearTimeout ( h [ 0 ] . onCompleteTimeout ) ; var e = h [ 0 ] . idleTimer || 0 ; h [ 0 ] . onCompleteTimeout = setTimeout ( function ( ) { i ( "onScroll" ) && ( l ( ) , c . callbacks . onScroll . call ( t [ 0 ] ) ) , i ( "onTotalScroll" ) && S [ 1 ] >= w [ 1 ] - B && s . cbOffsets [ 0 ] && ( l ( ) , c . callbacks . onTotalScroll . call ( t [ 0 ] ) ) , i ( "onTotalScrollBack" ) && S [ 1 ] <= T && s . cbOffsets [ 1 ] && ( l ( ) , c . callbacks . onTotalScrollBack . call ( t [ 0 ] ) ) , s . tweenRunning = ! 1 , h [ 0 ] . idleTimer = 0 , y ( v , "hide" ) } , e ) } } } ) ) } } , G = function ( e , t , o , a , n , i , r ) { function l ( ) { S . stop || ( x || m . call ( ) , x = J ( ) - v , s ( ) , x >= S . time && ( S . time = x > S . time ? x + f - ( x - S . time ) : x + f - 1 , S . time < x + 1 && ( S . time = x + 1 ) ) , S . time < a ? S . id = h ( l ) : g . call ( ) ) } function s ( ) { a > 0 ? ( S . currVal = u ( S . time , _ , b , a , n ) , w [ t ] = Math . round ( S . currVal ) + "px" ) : w [ t ] = o + "px" , p . call ( ) } function c ( ) { f = 1e3 / 60 , S . time = x + f , h = window . requestAnimationFrame ? window . requestAnimationFrame : function ( e ) { return s ( ) , setTimeout ( e , . 01 ) } , S . id = h ( l ) } function d ( ) { null != S . id && ( window . requestAnimationFrame ? window . cancelAnimationFrame ( S . id ) : clearTimeout ( S . id ) , S . id = null ) } function u ( e , t , o , a , n ) { switch ( n ) { case "linear" : case "mcsLinear" : return o * e / a + t ; case "mcsLinearOut" : return e /= a , e -- , o * Math . sqrt ( 1 - e * e ) + t ; case "easeInOutSmooth" : return e /= a / 2 , 1 > e ? o / 2 * e * e + t : ( e -- , - o / 2 * ( e * ( e - 2 ) - 1 ) + t ) ; case "easeInOutStrong" : return e /= a / 2 , 1 > e ? o / 2 * Math . pow ( 2 , 10 * ( e - 1 ) ) + t : ( e -- , o / 2 * ( - Math . pow ( 2 , - 10 * e ) + 2 ) + t ) ; case "easeInOut" : case "mcsEaseInOut" : return e /= a / 2 , 1 > e ? o / 2 * e * e * e + t : ( e -= 2 , o / 2 * ( e * e * e + 2 ) + t ) ; case "easeOutSmooth" : return e /= a , e -- , - o * ( e * e * e * e - 1 ) + t ; case "easeOutStrong" : return o * ( - Math . pow ( 2 , - 10 * e / a ) + 1 ) + t ; case "easeOut" : case "mcsEaseOut" : default : var i = ( e /= a ) * e , r = i * e ; return t + o * ( . 499999999999997 * r * i + - 2.5 * i * i + 5.5 * r + - 6.5 * i + 4 * e ) } } e . _mTween || ( e . _mTween = { top : { } , left : { } } ) ; var f , h , r = r || { } , m = r . onStart || function ( ) { } , p = r . onUpdate || function ( ) { } , g = r . onComplete || function ( ) { } , v = J ( ) , x = 0 , _ = e . offsetTop , w = e . style , S = e . _mTween [ t ] ; "left" === t && ( _ = e . offsetLeft ) ; var b = o - _ ; S . stop = 0 , "none" !== i && d ( ) , c ( ) } , J = function ( ) { return window . performance && window . performance . now ? window . performance . now ( ) : window . performance && window . performance . webkitNow ? window . performance . webkitNow ( ) : Date . now ? Date . now ( ) : ( new Date ) . getTime ( ) } , K = function ( ) { var e = this ; e . _mTween || ( e . _mTween = { top : { } , left : { } } ) ; for ( var t = [ "top" , "left" ] , o = 0 ; o < t . length ; o ++ ) { var a = t [ o ] ; e . _mTween [ a ] . id && ( window . requestAnimationFrame ? wind
function prepare _Modal ( ) { if ( jQuery ( '.um-popup-overlay' ) . length == 0 ) { jQuery ( 'body' ) . append ( '<div class="um-popup-overlay"></div>' ) ; jQuery ( 'body' ) . append ( '<div class="um-popup"></div>' ) ; jQuery ( '.um-popup' ) . addClass ( 'loading' ) ; jQuery ( "body,html" ) . css ( { overflow : 'hidden' } ) } } function remove _Modal ( ) { if ( jQuery ( '.um-popup-overlay' ) . length ) { jQuery ( '.tipsy' ) . remove ( ) ; jQuery ( '.um-popup' ) . empty ( ) . remove ( ) ; jQuery ( '.um-popup-overlay' ) . empty ( ) . remove ( ) ; jQuery ( "body,html" ) . css ( { overflow : 'auto' } ) } } function show _Modal ( contents ) { if ( jQuery ( '.um-popup-overlay' ) . length ) { jQuery ( '.um-popup' ) . removeClass ( 'loading' ) . html ( contents ) ; jQuery ( '.um-tip-n' ) . tipsy ( { gravity : 'n' , opacity : 1 , offset : 3 } ) ; jQuery ( '.um-tip-w' ) . tipsy ( { gravity : 'w' , opacity : 1 , offset : 3 } ) ; jQuery ( '.um-tip-e' ) . tipsy ( { gravity : 'e' , opacity : 1 , offset : 3 } ) ; jQuery ( '.um-tip-s' ) . tipsy ( { gravity : 's' , opacity : 1 , offset : 3 } ) } } function responsive _Modal ( ) { if ( jQuery ( '.um-popup-overlay' ) . length ) { ag _height = jQuery ( window ) . height ( ) - jQuery ( '.um-popup um-popup-header' ) . outerHeight ( ) - jQuery ( '.um-popup .um-popup-footer' ) . outerHeight ( ) - 80 ; if ( ag _height > 350 ) { ag _height = 350 } if ( jQuery ( '.um-popup-autogrow:visible' ) . length ) { jQuery ( '.um-popup-autogrow:visible' ) . css ( { 'height' : ag _height + 'px' } ) ; jQuery ( '.um-popup-autogrow:visible' ) . mCustomScrollbar ( { theme : "dark-3" , mouseWheelPixels : 500 } ) . mCustomScrollbar ( "scrollTo" , "bottom" , { scrollInertia : 0 } ) } else if ( jQuery ( '.um-popup-autogrow2:visible' ) . length ) { jQuery ( '.um-popup-autogrow2:visible' ) . css ( { 'max-height' : ag _height + 'px' } ) ; jQuery ( '.um-popup-autogrow2:visible' ) . mCustomScrollbar ( { theme : "dark-3" , mouseWheelPixels : 500 } ) } } }
jQuery ( window ) . load ( function ( ) { um _responsive ( ) ; um _modal _responsive ( ) } ) ; jQuery ( window ) . resize ( function ( ) { responsive _Modal ( ) ; jQuery ( 'img.cropper-hidden' ) . cropper ( 'destroy' ) ; um _responsive ( ) ; um _modal _responsive ( ) } ) ; jQuery ( document ) . ready ( function ( ) { jQuery ( document ) . on ( 'click' , '.um-popup-overlay' , function ( ) { remove _Modal ( ) } ) ; jQuery ( document ) . on ( "click" , '.um-modal-overlay, a[data-action="um_remove_modal"]' , function ( ) { um _remove _modal ( ) } ) ; jQuery ( document ) . on ( "click" , 'a[data-modal^="um_"], span[data-modal^="um_"], .um-modal a' , function ( a ) { a . preventDefault ( ) ; return false } ) ; jQuery ( document ) . on ( "click" , ".um-modal .um-single-file-preview a.cancel" , function ( a ) { a . preventDefault ( ) ; a = jQuery ( this ) . parents ( ".um-modal-body" ) ; var b = jQuery ( this ) . parents ( ".um-modal-body" ) . find ( ".um-single-fileinfo a" ) . attr ( "href" ) ;
a . find ( ".um-single-file-preview" ) . hide ( ) ; a . find ( ".ajax-upload-dragdrop" ) . show ( ) ; a . find ( ".um-modal-btn.um-finish-upload" ) . addClass ( "disabled" ) ; um _modal _responsive ( ) ; jQuery . ajax ( { url : um _scripts . ajaxurl , type : "post" , data : { action : "ultimatemember_remove_file" , src : b } } ) ; return false } ) ; jQuery ( document ) . on ( "click" , ".um-modal .um-single-image-preview a.cancel" , function ( a ) { a . preventDefault ( ) ; a = jQuery ( this ) . parents ( ".um-modal-body" ) ; var b = jQuery ( this ) . parents ( ".um-modal-body" ) . find ( ".um-single-image-preview img" ) . attr ( "src" ) ;
jQuery ( 'img.cropper-hidden' ) . cropper ( 'destroy' ) ; a . find ( ".um-single-image-preview img" ) . attr ( "src" , "" ) ; a . find ( ".um-single-image-preview" ) . hide ( ) ; a . find ( ".ajax-upload-dragdrop" ) . show ( ) ; a . find ( ".um-modal-btn.um-finish-upload" ) . addClass ( "disabled" ) ; um _modal _responsive ( ) ; jQuery . ajax ( { url : um _scripts . ajaxurl , type : "post" , data : { action : "ultimatemember_remove_file" , src : b } } ) ; return false } ) ; jQuery ( document ) . on ( "click" , ".um-finish-upload.file" , function ( ) { var a = jQuery ( this ) . attr ( "data-key" ) ,
b = jQuery ( this ) . parents ( ".um-modal-body" ) . find ( ".um-single-file-preview" ) . html ( ) ; um _remove _modal ( ) ; jQuery ( ".um-single-file-preview[data-key=" + a + "]" ) . fadeIn ( ) . html ( b ) ; jQuery ( ".um-single-file-preview[data-key=" + a + "]" ) . parents ( ".um-field" ) . find ( ".um-btn-auto-width" ) . html ( jQuery ( this ) . attr ( "data-change" ) ) ; jQuery ( ".um-single-file-preview[data-key=" + a + "]" ) . parents ( ".um-field" ) . find ( "input[type=hidden]" ) . val ( jQuery ( ".um-single-file-preview[data-key=" + a + "]" ) . parents ( ".um-field" ) . find ( ".um-single-fileinfo a" ) . attr ( "href" ) ) } ) ;
jQuery ( document ) . on ( "click" , ".um-finish-upload.image" , function ( ) { var a = jQuery ( this ) , b = jQuery ( this ) . attr ( "data-key" ) , c = jQuery ( this ) . parents ( ".um-modal-body" ) . find ( ".um-single-image-preview" ) , f = c . find ( "img" ) . attr ( "src" ) ; c = c . attr ( "data-coord" ) ; var g = jQuery ( this ) . parents ( "#um_upload_single" ) . attr ( "data-user_id" ) ? jQuery ( this ) . parents ( "#um_upload_single" ) . attr ( "data-user_id" ) : 0 ; if ( c ) { jQuery ( this ) . html ( jQuery ( this ) . attr ( "data-processing" ) ) . addClass ( "disabled" ) ; jQuery . ajax ( { url : um _scripts . ajaxurl , type : "POST" ,
data : { action : "ultimatemember_resize_image" , src : f , coord : c , user _id : g , key : b } , success : function ( e ) { d = new Date ; b == "profile_photo" && jQuery ( ".um-profile-photo-img img" ) . attr ( "src" , e + "?" + d . getTime ( ) ) ; if ( b == "cover_photo" ) { jQuery ( ".um-cover-e" ) . empty ( ) . html ( '<img src="' + e + "?" + d . getTime ( ) + '" alt="" />' ) ; jQuery ( ".um" ) . hasClass ( "um-editing" ) && jQuery ( ".um-cover-overlay" ) . show ( ) } jQuery ( ".um-single-image-preview[data-key=" + b + "]" ) . fadeIn ( ) . find ( "img" ) . attr ( "src" , e + "?" + d . getTime ( ) ) ; um _remove _modal ( ) ; jQuery ( ".um-single-image-preview[data-key=" +
b + "]" ) . parents ( ".um-field" ) . find ( ".um-btn-auto-width" ) . html ( a . attr ( "data-change" ) ) ; jQuery ( ".um-single-image-preview[data-key=" + b + "]" ) . parents ( ".um-field" ) . find ( "input[type=hidden]" ) . val ( e ) } } ) } else { d = new Date ; jQuery ( ".um-single-image-preview[data-key=" + b + "]" ) . fadeIn ( ) . find ( "img" ) . attr ( "src" , f + "?" + d . getTime ( ) ) ; um _remove _modal ( ) ; jQuery ( ".um-single-image-preview[data-key=" + b + "]" ) . parents ( ".um-field" ) . find ( ".um-btn-auto-width" ) . html ( a . attr ( "data-change" ) ) ; jQuery ( ".um-single-image-preview[data-key=" + b +
"]" ) . parents ( ".um-field" ) . find ( "input[type=hidden]" ) . val ( f ) } } ) ; jQuery ( document ) . on ( "click" , 'a[data-modal^="um_"], span[data-modal^="um_"]' , function ( ) { var a = jQuery ( this ) . attr ( "data-modal" ) , b = jQuery ( this ) . data ( "modal-size" ) ? jQuery ( this ) . data ( "modal-size" ) : "normal" ; if ( jQuery ( this ) . data ( "modal-copy" ) ) { jQuery ( "#" + a ) . html ( jQuery ( this ) . parents ( ".um-field" ) . find ( ".um-modal-hidden-content" ) . html ( ) ) ; jQuery ( this ) . parents ( ".um-profile-photo" ) . attr ( "data-user_id" ) && jQuery ( "#" + a ) . attr ( "data-user_id" , jQuery ( this ) . parents ( ".um-profile-photo" ) . attr ( "data-user_id" ) ) ;
jQuery ( this ) . parents ( ".um-cover" ) . attr ( "data-ratio" ) && jQuery ( "#" + a ) . attr ( "data-ratio" , jQuery ( this ) . parents ( ".um-cover" ) . attr ( "data-ratio" ) ) ; jQuery ( this ) . parents ( ".um-cover" ) . attr ( "data-user_id" ) && jQuery ( "#" + a ) . attr ( "data-user_id" , jQuery ( this ) . parents ( ".um-cover" ) . attr ( "data-user_id" ) ) } um _new _modal ( a , b ) } ) ; jQuery ( document ) . on ( 'input' , '.um-field input[type=text]' , function ( ) { live _field = jQuery ( this ) . parents ( '.um-field' ) . data ( 'key' ) ; live _value = jQuery ( this ) . val ( ) ; um _conditional ( ) } ) ; jQuery ( '.um-field input[type=text]' ) . trigger ( 'input' ) ; jQuery ( document ) . on ( 'change' , '.um-field select,.um-field input[type=radio],.um-field input[type=checkbox]' , function ( ) { live _field = jQuery ( this ) . parents ( '.um-field' ) . data ( 'key' ) ; live _value = jQuery ( this ) . val ( ) ; if ( jQuery ( this ) . is ( ':checkbox' ) ) { if ( jQuery ( this ) . parents ( '.um-field' ) . find ( 'input:checked' ) . length > 1 ) { live _value = '' ; jQuery ( this ) . parents ( '.um-field' ) . find ( 'input:checked' ) . each ( function ( ) { live _value = live _value + jQuery ( this ) . val ( ) + ' ' } ) } else { live _value = jQuery ( this ) . parents ( '.um-field' ) . find ( 'input:checked' ) . val ( ) } } if ( jQuery ( this ) . is ( ':radio' ) ) { live _value = jQuery ( this ) . parents ( '.um-field' ) . find ( 'input[type=radio]:checked' ) . val ( ) } um _conditional ( ) } ) ; jQuery ( '.um-field select,.um-field input[type=radio],.um-field input[type=checkbox]' ) . trigger ( 'change' ) ; jQuery ( document ) . on ( 'click' , '.um-dropdown a' , function ( e ) { return false } ) ; jQuery ( document ) . on ( 'click' , '.um-dropdown a.real_url' , function ( e ) { window . location = jQuery ( this ) . attr ( 'href' ) } ) ; jQuery ( document ) . on ( 'click' , '.um-trigger-menu-on-click' , function ( e ) { jQuery ( '.um-dropdown' ) . hide ( ) ; menu = jQuery ( this ) . find ( '.um-dropdown' ) ; menu . show ( ) ; return false } ) ; jQuery ( document ) . on ( 'click' , '.um-dropdown-hide' , function ( e ) { UM _hide _menus ( ) } ) ; jQuery ( document ) . on ( 'click' , 'a.um-manual-trigger' , function ( ) { var child = jQuery ( this ) . attr ( 'data-child' ) ; var parent = jQuery ( this ) . attr ( 'data-parent' ) ; jQuery ( this ) . parents ( parent ) . find ( child ) . trigger ( 'click' ) } ) ; jQuery ( '.um-tip-n' ) . tipsy ( { gravity : 'n' , opacity : 1 , live : 'a.live' , offset : 3 } ) ; jQuery ( '.um-tip-w' ) . tipsy ( { gravity : 'w' , opacity : 1 , live : 'a.live' , offset : 3 } ) ; jQuery ( '.um-tip-e' ) . tipsy ( { gravity : 'e' , opacity : 1 , live : 'a.live' , offset : 3 } ) ; jQuery ( '.um-tip-s' ) . tipsy ( { gravity : 's' , opacity : 1 , live : 'a.live' , offset : 3 } ) ; jQuery ( document ) . on ( 'change' , '.um-field-area input[type=radio]' , function ( ) { var field = jQuery ( this ) . parents ( '.um-field-area' ) ; var this _field = jQuery ( this ) . parents ( 'label' ) ; field . find ( '.um-field-radio' ) . removeClass ( 'active' ) ; field . find ( '.um-field-radio' ) . find ( 'i' ) . removeClass ( ) . addClass ( 'um-icon-android-radio-button-off' ) ; this _field . addClass ( 'active' ) ; this _field . find ( 'i' ) . removeClass ( ) . addClass ( 'um-icon-android-radio-button-on' ) } ) ; jQuery ( document ) . on ( 'change' , '.um-field-area input[type=checkbox]' , function ( ) { var field = jQuery ( this ) . parents ( '.um-field-area' ) ; var this _field = jQuery ( this ) . parents ( 'label' ) ; if ( this _field . hasClass ( 'active' ) ) { this _field . removeClass ( 'active' ) ; this _field . find ( 'i' ) . removeClass ( ) . addClass ( 'um-icon-android-checkbox-outline-blank' ) } else { this _field . addClass ( 'active' ) ; this _field . find ( 'i' ) . removeClass ( ) . addClass ( 'um-icon-android-checkbox-outline' ) } } ) ; jQuery ( '.um-datepicker' ) . each ( function ( ) { elem = jQuery ( this ) ; if ( elem . attr ( 'data-disabled_weekdays' ) != '' ) { var disable = JSON . parse ( elem . attr ( 'data-disabled_weekdays' ) ) } else { var disable = false } var years _n = elem . attr ( 'data-years' ) ; var min = elem . attr ( 'data-date_min' ) ; var max = elem . attr ( 'data-date_max' ) ; var min = min . split ( "," ) ; var max = max . split ( "," ) ; elem . pickadate ( { selectYears : years _n , min : min , max : max , disable : disable , format : elem . attr ( 'data-format' ) , formatSubmit : 'yyyy/mm/dd' , hiddenName : true , onOpen : function ( ) { elem . blur ( ) } , onClose : function ( ) { elem . blur ( ) } } ) } ) ; jQuery ( '.um-timepicker' ) . each ( function ( ) { elem = jQuery ( this ) ; elem . pickatime ( { format : elem . attr ( 'data-format' ) , interval : parseInt ( elem . attr ( 'data-intervals' ) ) , formatSubmit : 'HH:i' , hiddenName : true } ) } ) ; jQuery ( '.um-rating' ) . raty ( { half : false , starType : 'i' , number : function ( ) { return jQuery ( this ) . attr ( 'data-number' ) } , score : function ( ) { return jQuery ( this ) . attr ( 'data-score' ) } , scoreName : function ( ) { return jQuery ( this ) . att
a . addClass ( "current" ) ; a = jQuery ( this ) . attr ( "href" ) ; var b = jQuery ( this ) . attr ( "data-tab" ) ; window . history . pushState ( "" , "" , a ) ; jQuery ( ".um-account-tab" ) . hide ( ) ; jQuery ( ".um-account-tab[data-tab=" + b + "]" ) . fadeIn ( ) ; jQuery ( ".um-account-nav a" ) . removeClass ( "current" ) ; jQuery ( ".um-account-nav a[data-tab=" + b + "]" ) . addClass ( "current" ) ; return false } ) ; jQuery ( document ) . on ( "click" , ".um-account-nav a" , function ( a ) { a . preventDefault ( ) ; a = jQuery ( this ) . attr ( "data-tab" ) ; var b = jQuery ( this ) . parents ( "div" ) , c = jQuery ( this ) ; jQuery ( ".um-account-tab" ) . hide ( ) ;
if ( c . hasClass ( "current" ) ) { b . next ( ".um-account-tab" ) . slideUp ( ) ; c . removeClass ( "current" ) } else { b . next ( ".um-account-tab" ) . slideDown ( ) ; c . parents ( "div" ) . find ( "a" ) . removeClass ( "current" ) ; c . addClass ( "current" ) } jQuery ( ".um-account-side li a" ) . removeClass ( "current" ) ; jQuery ( ".um-account-side li a[data-tab=" + a + "]" ) . addClass ( "current" ) ; return false } ) } ) ;