2014-09-26 05:03:39 +05:30
function Tabs ( e ) { function t ( e ) { console . log ( "hide" , e ) , e . removeClass ( "js-tab-nav-show" ) , $ ( e . data ( "tab-target" ) ) . removeClass ( "js-tab-show" ) . hide ( ) } function n ( e ) { console . log ( "show" , e ) , e . addClass ( "js-tab-nav-show" ) , $ ( e . data ( "tab-target" ) ) . addClass ( "js-tab-show" ) . show ( ) } var r = $ ( e ) ; if ( r . length ) { var i = r . find ( ".js-tab-nav-show" ) ; i . length && $ ( i . data ( "tab-target" ) ) . addClass ( "js-tab-show" ) , r . on ( "click" , ".js-tab-nav" , function ( e ) { e . preventDefault ( ) ; var o = $ ( this ) ; o . hasClass ( "js-tab-nav-show" ) || ( i = r . find ( ".js-tab-nav-show" ) . eq ( 0 ) , t ( i ) , n ( o ) ) } ) , console . log ( "init tabs @" , e ) } } function Preview ( e , t ) { function n ( e ) { return e . find ( ".js-preview-input" ) . eq ( 0 ) } function r ( e ) { return e . hasClass ( "js-preview-container" ) ? e : e . find ( ".js-preview-container" ) . eq ( 0 ) } var i = $ ( e ) , o = $ ( t ) , a = n ( o ) ; if ( ! a . length ) return void console . log ( "[preview]: no preview input" ) ; var s = r ( o ) ; return s . length ? ( i . on ( "click" , function ( ) { $ . post ( "/api/v1/markdown" , { text : a . val ( ) } , function ( e ) { s . html ( e ) } ) } ) , void console . log ( "[preview]: init preview @" , e , "&" , t ) ) : void console . log ( "[preview]: no preview container" ) } function initCore ( ) { Gogs . renderMarkdown ( ) , Gogs . renderCodeView ( ) , $ ( ".js-tab-nav" ) . click ( function ( e ) { $ ( this ) . hasClass ( "js-tab-nav-show" ) || ( $ ( this ) . parent ( ) . find ( ".js-tab-nav-show" ) . each ( function ( ) { $ ( this ) . removeClass ( "js-tab-nav-show" ) , $ ( $ ( this ) . data ( "tab-target" ) ) . hide ( ) } ) , $ ( this ) . addClass ( "js-tab-nav-show" ) , $ ( $ ( this ) . data ( "tab-target" ) ) . show ( ) ) , e . preventDefault ( ) } ) } function initUserSetting ( ) { $ ( "#user-profile-form" ) . submit ( function ( e ) { var t = $ ( "#username" ) ; return t . data ( "uname" ) == t . val ( ) || confirm ( "Username has been changed, do you want to continue?" ) ? void 0 : ( e . preventDefault ( ) , ! 0 ) } ) , $ ( "#ssh-add" ) . click ( function ( ) { $ ( "#user-ssh-add-form" ) . removeClass ( "hide" ) } ) , $ ( "#delete-account-button" ) . click ( function ( e ) { return confirm ( "This account is going to be deleted, do you want to continue?" ) ? void 0 : ( e . preventDefault ( ) , ! 0 ) } ) } function initRepoCreate ( ) { $ ( "#repo-create-owner-list" ) . on ( "click" , "li" , function ( ) { if ( ! $ ( this ) . hasClass ( "checked" ) ) { var e = $ ( this ) . data ( "uid" ) ; $ ( "#repo-owner-id" ) . val ( e ) , $ ( "#repo-owner-avatar" ) . attr ( "src" , $ ( this ) . find ( "img" ) . attr ( "src" ) ) , $ ( "#repo-owner-name" ) . text ( $ ( this ) . text ( ) . trim ( ) ) , $ ( this ) . parent ( ) . find ( ".checked" ) . removeClass ( "checked" ) , $ ( this ) . addClass ( "checked" ) , console . log ( "set repo owner to uid :" , e , $ ( this ) . text ( ) . trim ( ) ) } } ) , $ ( "#auth-button" ) . click ( function ( e ) { $ ( "#repo-migrate-auth" ) . slideToggle ( "fast" ) , e . preventDefault ( ) } ) , console . log ( "initRepoCreate" ) } function initRepo ( ) { $ ( "#repo-clone-ssh" ) . click ( function ( ) { $ ( this ) . removeClass ( "btn-gray" ) . addClass ( "btn-blue" ) , $ ( "#repo-clone-https" ) . removeClass ( "btn-blue" ) . addClass ( "btn-gray" ) , $ ( "#repo-clone-url" ) . val ( $ ( this ) . data ( "link" ) ) , $ ( ".clone-url" ) . text ( $ ( this ) . data ( "link" ) ) } ) , $ ( "#repo-clone-https" ) . click ( function ( ) { $ ( this ) . removeClass ( "btn-gray" ) . addClass ( "btn-blue" ) , $ ( "#repo-clone-ssh" ) . removeClass ( "btn-blue" ) . addClass ( "btn-gray" ) , $ ( "#repo-clone-url" ) . val ( $ ( this ) . data ( "link" ) ) , $ ( ".clone-url" ) . text ( $ ( this ) . data ( "link" ) ) } ) ; var e = $ ( "#repo-clone-copy" ) ; e . hover ( function ( ) { Gogs . bindCopy ( $ ( this ) ) } ) , e . tipsy ( { fade : ! 0 } ) } function initHookTypeChange ( ) { $ ( "select#hook-type" ) . on ( "change" , function ( ) { hookTypes = [ "Gogs" , "Slack" ] ; var e = $ ( this ) . val ( ) ; hookTypes . forEach ( function ( t ) { e === t ? $ ( "div#" + t . toLowerCase ( ) ) . toggleShow ( ) : $ ( "div#" + t . toLowerCase ( ) ) . toggleHide ( ) } ) } ) } function initRepoSetting ( ) { $ ( "#repo-setting-form" ) . submit ( function ( e ) { var t = $ ( "#repo_name" ) ; return t . data ( "repo-name" ) == t . val ( ) || confirm ( "Repository name has been changed, do you want to continue?" ) ? void 0 : ( e . preventDefault ( ) , ! 0 ) } ) , initHookTypeChange ( ) , $ ( "#transfer-button" ) . click ( function ( ) { $ ( "#transfer-form" ) . show ( ) } ) , $ ( "#delete-button" ) . click ( function ( ) { $ ( "#delete-form" ) . show ( ) } ) , $ ( "#repo-collab-list hr:last-child" ) . remove ( ) ; var e = $ ( "#repo-collaborator" ) . next ( ) . next ( ) . find ( "ul" ) ; $ ( "#repo-collaborator" ) . on ( "keyup" , function ( ) { var t = $ ( this ) ; return t . val ( ) ? void Gogs . searchUsers ( t . val ( ) , e ) : void e . toggleHide ( ) } ) . on ( "focus" , function ( ) { $ ( this ) . val ( ) ? e . toggleShow ( ) : e . toggleHide ( ) } ) . next ( ) . next ( ) . find ( "ul" ) . on ( "click" , "li" , function ( ) { $ ( "#repo-collaborator" ) . val ( $ ( this ) . text ( ) ) , e . toggleHide ( ) } )
2014-09-25 19:22:58 +05:30
} ) ) , ( w . matchesSelector = $ . test ( q = _ . matches || _ . webkitMatchesSelector || _ . mozMatchesSelector || _ . oMatchesSelector || _ . msMatchesSelector ) ) && i ( function ( e ) { w . disconnectedMatch = q . call ( e , "div" ) , q . call ( e , "[s!='']:x" ) , O . push ( "!=" , lt ) } ) , P = P . length && new RegExp ( P . join ( "|" ) ) , O = O . length && new RegExp ( O . join ( "|" ) ) , t = $ . test ( _ . compareDocumentPosition ) , M = t || $ . test ( _ . contains ) ? function ( e , t ) { var n = 9 === e . nodeType ? e . documentElement : e , r = t && t . parentNode ; return e === r || ! ( ! r || 1 !== r . nodeType || ! ( n . contains ? n . contains ( r ) : e . compareDocumentPosition && 16 & e . compareDocumentPosition ( r ) ) ) } : function ( e , t ) { if ( t ) for ( ; t = t . parentNode ; ) if ( t === e ) return ! 0 ; return ! 1 } , Z = t ? function ( e , t ) { if ( e === t ) return j = ! 0 , 0 ; var r = ! e . compareDocumentPosition - ! t . compareDocumentPosition ; return r ? r : ( r = ( e . ownerDocument || e ) === ( t . ownerDocument || t ) ? e . compareDocumentPosition ( t ) : 1 , 1 & r || ! w . sortDetached && t . compareDocumentPosition ( e ) === r ? e === n || e . ownerDocument === I && M ( I , e ) ? - 1 : t === n || t . ownerDocument === I && M ( I , t ) ? 1 : A ? nt . call ( A , e ) - nt . call ( A , t ) : 0 : 4 & r ? - 1 : 1 ) } : function ( e , t ) { if ( e === t ) return j = ! 0 , 0 ; var r , i = 0 , o = e . parentNode , s = t . parentNode , l = [ e ] , u = [ t ] ; if ( ! o || ! s ) return e === n ? - 1 : t === n ? 1 : o ? - 1 : s ? 1 : A ? nt . call ( A , e ) - nt . call ( A , t ) : 0 ; if ( o === s ) return a ( e , t ) ; for ( r = e ; r = r . parentNode ; ) l . unshift ( r ) ; for ( r = t ; r = r . parentNode ; ) u . unshift ( r ) ; for ( ; l [ i ] === u [ i ] ; ) i ++ ; return i ? a ( l [ i ] , u [ i ] ) : l [ i ] === I ? - 1 : u [ i ] === I ? 1 : 0 } , n ) : R } , t . matches = function ( e , n ) { return t ( e , null , null , n ) } , t . matchesSelector = function ( e , n ) { if ( ( e . ownerDocument || e ) !== R && D ( e ) , n = n . replace ( ft , "='$1']" ) , ! ( ! w . matchesSelector || ! H || O && O . test ( n ) || P && P . test ( n ) ) ) try { var r = q . call ( e , n ) ; if ( r || w . disconnectedMatch || e . document && 11 !== e . document . nodeType ) return r } catch ( i ) { } return t ( n , R , null , [ e ] ) . length > 0 } , t . contains = function ( e , t ) { return ( e . ownerDocument || e ) !== R && D ( e ) , M ( e , t ) } , t . attr = function ( e , t ) { ( e . ownerDocument || e ) !== R && D ( e ) ; var n = C . attrHandle [ t . toLowerCase ( ) ] , r = n && Q . call ( C . attrHandle , t . toLowerCase ( ) ) ? n ( e , t , ! H ) : void 0 ; return void 0 !== r ? r : w . attributes || ! H ? e . getAttribute ( t ) : ( r = e . getAttributeNode ( t ) ) && r . specified ? r . value : null } , t . error = function ( e ) { throw new Error ( "Syntax error, unrecognized expression: " + e ) } , t . uniqueSort = function ( e ) { var t , n = [ ] , r = 0 , i = 0 ; if ( j = ! w . detectDuplicates , A = ! w . sortStable && e . slice ( 0 ) , e . sort ( Z ) , j ) { for ( ; t = e [ i ++ ] ; ) t === e [ i ] && ( r = n . push ( i ) ) ; for ( ; r -- ; ) e . splice ( n [ r ] , 1 ) } return A = null , e } , S = t . getText = function ( e ) { var t , n = "" , r = 0 , i = e . nodeType ; if ( i ) { if ( 1 === i || 9 === i || 11 === i ) { if ( "string" == typeof e . textContent ) return e . textContent ; for ( e = e . firstChild ; e ; e = e . nextSibling ) n += S ( e ) } else if ( 3 === i || 4 === i ) return e . nodeValue } else for ( ; t = e [ r ++ ] ; ) n += S ( t ) ; return n } , C = t . selectors = { cacheLength : 50 , createPseudo : r , match : mt , attrHandle : { } , find : { } , relative : { ">" : { dir : "parentNode" , first : ! 0 } , " " : { dir : "parentNode" } , "+" : { dir : "previousSibling" , first : ! 0 } , "~" : { dir : "previousSibling" } } , preFilter : { ATTR : function ( e ) { return e [ 1 ] = e [ 1 ] . replace ( wt , Ct ) , e [ 3 ] = ( e [ 3 ] || e [ 4 ] || e [ 5 ] || "" ) . replace ( wt , Ct ) , "~=" === e [ 2 ] && ( e [ 3 ] = " " + e [ 3 ] + " " ) , e . slice ( 0 , 4 ) } , CHILD : function ( e ) { return e [ 1 ] = e [ 1 ] . toLowerCase ( ) , "nth" === e [ 1 ] . slice ( 0 , 3 ) ? ( e [ 3 ] || t . error ( e [ 0 ] ) , e [ 4 ] = + ( e [ 4 ] ? e [ 5 ] + ( e [ 6 ] || 1 ) : 2 * ( "even" === e [ 3 ] || "odd" === e [ 3 ] ) ) , e [ 5 ] = + ( e [ 7 ] + e [ 8 ] || "odd" === e [ 3 ] ) ) : e [ 3 ] && t . error ( e [ 0 ] ) , e } , PSEUDO : function ( e ) { var t , n = ! e [ 6 ] && e [ 2 ] ; return mt . CHILD . test ( e [ 0 ] ) ? null : ( e [ 3 ] ? e [ 2 ] = e [ 4 ] || e [ 5 ] || "" : n && pt . test ( n ) && ( t = k ( n , ! 0 ) ) && ( t = n . indexOf ( ")" , n . length - t ) - n . length ) && ( e [ 0 ] = e [ 0 ] . slice ( 0 , t ) , e [ 2 ] = n . slice ( 0 , t ) ) , e . slice ( 0 , 3 ) ) } } , filter : { TAG : function ( e ) { var t = e . replace ( wt , Ct ) . toLowerCase ( ) ; return "*" === e ? function ( ) { return ! 0 } : function ( e ) { return e . nodeName && e . nodeName . toLowerCase ( ) === t } } , CLASS : function ( e ) { var t = W [ e + " " ] ; return t || ( t = new RegExp ( "(^|" + it + ")" + e + "(" + it + "|$)" ) ) && W ( e , function ( e ) { return t . test ( "string" == typeof e . className && e . className || typeof e . getAttribute !== G && e . getAttribute ( "class" ) || "" ) } ) } , ATTR : function ( e , n , r ) { return function ( i ) { var o = t . attr ( i , e ) ; return null == o ? "!=" === n : n ? ( o += "" , "=" === n ? o === r : "!=" === n ? o !== r : "^=" === n ? r && 0 === o . indexOf ( r ) : "*=" === n ? r && o . indexOf ( r ) > - 1 : "$=" === n ? r && o . slice ( - r . length ) === r : "~=" === n ? ( " " + o + " " ) . indexOf ( r ) > - 1 : "|=" === n ? o === r || o . slice ( 0 , r . length + 1 ) === r + "-" : ! 1 ) : ! 0 } } , CHILD : function ( e , t , n , r , i ) { var o = "nth" !== e . slice ( 0 , 3 ) , a = "last" !== e . slice ( - 4 ) , s = "of-type" === t ; return 1 === r && 0 === i ? func
} ) } , one : function ( e , t , n , r ) { return this . on ( e , t , n , r , 1 ) } , off : function ( e , t , n ) { var r , i ; if ( e && e . preventDefault && e . handleObj ) return r = e . handleObj , ot ( e . delegateTarget ) . off ( r . namespace ? r . origType + "." + r . namespace : r . origType , r . selector , r . handler ) , this ; if ( "object" == typeof e ) { for ( i in e ) this . off ( i , t , e [ i ] ) ; return this } return ( t === ! 1 || "function" == typeof t ) && ( n = t , t = void 0 ) , n === ! 1 && ( n = p ) , this . each ( function ( ) { ot . event . remove ( this , e , n , t ) } ) } , trigger : function ( e , t ) { return this . each ( function ( ) { ot . event . trigger ( e , t , this ) } ) } , triggerHandler : function ( e , t ) { var n = this [ 0 ] ; return n ? ot . event . trigger ( e , t , n , ! 0 ) : void 0 } } ) ; var Pt = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video" , Ot = / jQuery\d+="(?:null|\d+)"/g , qt = new RegExp ( "<(?:" + Pt + ")[\\s/>]" , "i" ) , Mt = /^\s+/ , zt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi , It = /<([\w:]+)/ , Ft = /<tbody/i , Bt = /<|&#?\w+;/ , Wt = /<(?:script|style|link)/i , Ut = /checked\s*(?:[^=]|=\s*.checked.)/i , Xt = /^$|\/(?:java|ecma)script/i , Zt = /^true\/(.*)/ , Gt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g , Vt = { option : [ 1 , "<select multiple='multiple'>" , "</select>" ] , legend : [ 1 , "<fieldset>" , "</fieldset>" ] , area : [ 1 , "<map>" , "</map>" ] , param : [ 1 , "<object>" , "</object>" ] , thead : [ 1 , "<table>" , "</table>" ] , tr : [ 2 , "<table><tbody>" , "</tbody></table>" ] , col : [ 2 , "<table><tbody></tbody><colgroup>" , "</colgroup></table>" ] , td : [ 3 , "<table><tbody><tr>" , "</tr></tbody></table>" ] , _default : rt . htmlSerialize ? [ 0 , "" , "" ] : [ 1 , "X<div>" , "</div>" ] } , Qt = m ( mt ) , Yt = Qt . appendChild ( mt . createElement ( "div" ) ) ; Vt . optgroup = Vt . option , Vt . tbody = Vt . tfoot = Vt . colgroup = Vt . caption = Vt . thead , Vt . th = Vt . td , ot . extend ( { clone : function ( e , t , n ) { var r , i , o , a , s , l = ot . contains ( e . ownerDocument , e ) ; if ( rt . html5Clone || ot . isXMLDoc ( e ) || ! qt . test ( "<" + e . nodeName + ">" ) ? o = e . cloneNode ( ! 0 ) : ( Yt . innerHTML = e . outerHTML , Yt . removeChild ( o = Yt . firstChild ) ) , ! ( rt . noCloneEvent && rt . noCloneChecked || 1 !== e . nodeType && 11 !== e . nodeType || ot . isXMLDoc ( e ) ) ) for ( r = g ( o ) , s = g ( e ) , a = 0 ; null != ( i = s [ a ] ) ; ++ a ) r [ a ] && S ( i , r [ a ] ) ; if ( t ) if ( n ) for ( s = s || g ( e ) , r = r || g ( o ) , a = 0 ; null != ( i = s [ a ] ) ; a ++ ) C ( i , r [ a ] ) ; else C ( e , o ) ; return r = g ( o , "script" ) , r . length > 0 && w ( r , ! l && g ( e , "script" ) ) , r = s = i = null , o } , buildFragment : function ( e , t , n , r ) { for ( var i , o , a , s , l , u , c , d = e . length , f = m ( t ) , p = [ ] , h = 0 ; d > h ; h ++ ) if ( o = e [ h ] , o || 0 === o ) if ( "object" === ot . type ( o ) ) ot . merge ( p , o . nodeType ? [ o ] : o ) ; else if ( Bt . test ( o ) ) { for ( s = s || f . appendChild ( t . createElement ( "div" ) ) , l = ( It . exec ( o ) || [ "" , "" ] ) [ 1 ] . toLowerCase ( ) , c = Vt [ l ] || Vt . _default , s . innerHTML = c [ 1 ] + o . replace ( zt , "<$1></$2>" ) + c [ 2 ] , i = c [ 0 ] ; i -- ; ) s = s . lastChild ; if ( ! rt . leadingWhitespace && Mt . test ( o ) && p . push ( t . createTextNode ( Mt . exec ( o ) [ 0 ] ) ) , ! rt . tbody ) for ( o = "table" !== l || Ft . test ( o ) ? "<table>" !== c [ 1 ] || Ft . test ( o ) ? 0 : s : s . firstChild , i = o && o . childNodes . length ; i -- ; ) ot . nodeName ( u = o . childNodes [ i ] , "tbody" ) && ! u . childNodes . length && o . removeChild ( u ) ; for ( ot . merge ( p , s . childNodes ) , s . textContent = "" ; s . firstChild ; ) s . removeChild ( s . firstChild ) ; s = f . lastChild } else p . push ( t . createTextNode ( o ) ) ; for ( s && f . removeChild ( s ) , rt . appendChecked || ot . grep ( g ( p , "input" ) , v ) , h = 0 ; o = p [ h ++ ] ; ) if ( ( ! r || - 1 === ot . inArray ( o , r ) ) && ( a = ot . contains ( o . ownerDocument , o ) , s = g ( f . appendChild ( o ) , "script" ) , a && w ( s ) , n ) ) for ( i = 0 ; o = s [ i ++ ] ; ) Xt . test ( o . type || "" ) && n . push ( o ) ; return s = null , f } , cleanData : function ( e , t ) { for ( var n , r , i , o , a = 0 , s = ot . expando , l = ot . cache , u = rt . deleteExpando , c = ot . event . special ; null != ( n = e [ a ] ) ; a ++ ) if ( ( t || ot . acceptData ( n ) ) && ( i = n [ s ] , o = i && l [ i ] ) ) { if ( o . events ) for ( r in o . events ) c [ r ] ? ot . event . remove ( n , r ) : ot . removeEvent ( n , r , o . handle ) ; l [ i ] && ( delete l [ i ] , u ? delete n [ s ] : typeof n . removeAttribute !== St ? n . removeAttribute ( s ) : n [ s ] = null , V . push ( i ) ) } } } ) , ot . fn . extend ( { text : function ( e ) { return At ( this , function ( e ) { return void 0 === e ? ot . text ( this ) : this . empty ( ) . append ( ( this [ 0 ] && this [ 0 ] . ownerDocument || mt ) . createTextNode ( e ) ) } , null , e , arguments . length ) } , append : function ( ) { return this . domManip ( arguments , function ( e ) { if ( 1 === this . nodeType || 11 === this . nodeType || 9 === this . nodeType ) { var t = y ( this , e ) ; t . appendChild ( e ) } } ) } , prepend : function ( ) { return this . domManip ( arguments , function ( e ) { if ( 1 === this . nodeType || 11 === this . nodeType || 9 === this . nodeType ) { var t = y ( this , e ) ; t . insertBefore ( e , t . firstChild ) } } ) } , b
} : function ( ) { var t = ot ( this ) , n = t . contents ( ) ; n . length ? n . wrapAll ( e ) : t . append ( e ) } ) } , wrap : function ( e ) { var t = ot . isFunction ( e ) ; return this . each ( function ( n ) { ot ( this ) . wrapAll ( t ? e . call ( this , n ) : e ) } ) } , unwrap : function ( ) { return this . parent ( ) . each ( function ( ) { ot . nodeName ( this , "body" ) || ot ( this ) . replaceWith ( this . childNodes ) } ) . end ( ) } } ) , ot . expr . filters . hidden = function ( e ) { return e . offsetWidth <= 0 && e . offsetHeight <= 0 || ! rt . reliableHiddenOffsets ( ) && "none" === ( e . style && e . style . display || ot . css ( e , "display" ) ) } , ot . expr . filters . visible = function ( e ) { return ! ot . expr . filters . hidden ( e ) } ; var Zn = /%20/g , Gn = /\[\]$/ , Vn = /\r?\n/g , Qn = /^(?:submit|button|image|reset|file)$/i , Yn = /^(?:input|select|textarea|keygen)/i ; ot . param = function ( e , t ) { var n , r = [ ] , i = function ( e , t ) { t = ot . isFunction ( t ) ? t ( ) : null == t ? "" : t , r [ r . length ] = encodeURIComponent ( e ) + "=" + encodeURIComponent ( t ) } ; if ( void 0 === t && ( t = ot . ajaxSettings && ot . ajaxSettings . traditional ) , ot . isArray ( e ) || e . jquery && ! ot . isPlainObject ( e ) ) ot . each ( e , function ( ) { i ( this . name , this . value ) } ) ; else for ( n in e ) U ( n , e [ n ] , t , i ) ; return r . join ( "&" ) . replace ( Zn , "+" ) } , ot . fn . extend ( { serialize : function ( ) { return ot . param ( this . serializeArray ( ) ) } , serializeArray : function ( ) { return this . map ( function ( ) { var e = ot . prop ( this , "elements" ) ; return e ? ot . makeArray ( e ) : this } ) . filter ( function ( ) { var e = this . type ; return this . name && ! ot ( this ) . is ( ":disabled" ) && Yn . test ( this . nodeName ) && ! Qn . test ( e ) && ( this . checked || ! jt . test ( e ) ) } ) . map ( function ( e , t ) { var n = ot ( this ) . val ( ) ; return null == n ? null : ot . isArray ( n ) ? ot . map ( n , function ( e ) { return { name : t . name , value : e . replace ( Vn , "\r\n" ) } } ) : { name : t . name , value : n . replace ( Vn , "\r\n" ) } } ) . get ( ) } } ) , ot . ajaxSettings . xhr = void 0 !== e . ActiveXObject ? function ( ) { return ! this . isLocal && /^(get|post|head|put|delete|options)$/i . test ( this . type ) && X ( ) || Z ( ) } : X ; var Kn = 0 , Jn = { } , er = ot . ajaxSettings . xhr ( ) ; e . ActiveXObject && ot ( e ) . on ( "unload" , function ( ) { for ( var e in Jn ) Jn [ e ] ( void 0 , ! 0 ) } ) , rt . cors = ! ! er && "withCredentials" in er , er = rt . ajax = ! ! er , er && ot . ajaxTransport ( function ( e ) { if ( ! e . crossDomain || rt . cors ) { var t ; return { send : function ( n , r ) { var i , o = e . xhr ( ) , a = ++ Kn ; if ( o . open ( e . type , e . url , e . async , e . username , e . password ) , e . xhrFields ) for ( i in e . xhrFields ) o [ i ] = e . xhrFields [ i ] ; e . mimeType && o . overrideMimeType && o . overrideMimeType ( e . mimeType ) , e . crossDomain || n [ "X-Requested-With" ] || ( n [ "X-Requested-With" ] = "XMLHttpRequest" ) ; for ( i in n ) void 0 !== n [ i ] && o . setRequestHeader ( i , n [ i ] + "" ) ; o . send ( e . hasContent && e . data || null ) , t = function ( n , i ) { var s , l , u ; if ( t && ( i || 4 === o . readyState ) ) if ( delete Jn [ a ] , t = void 0 , o . onreadystatechange = ot . noop , i ) 4 !== o . readyState && o . abort ( ) ; else { u = { } , s = o . status , "string" == typeof o . responseText && ( u . text = o . responseText ) ; try { l = o . statusText } catch ( c ) { l = "" } s || ! e . isLocal || e . crossDomain ? 1223 === s && ( s = 204 ) : s = u . text ? 200 : 404 } u && r ( s , l , u , o . getAllResponseHeaders ( ) ) } , e . async ? 4 === o . readyState ? setTimeout ( t ) : o . onreadystatechange = Jn [ a ] = t : t ( ) } , abort : function ( ) { t && t ( void 0 , ! 0 ) } } } } ) , ot . ajaxSetup ( { accepts : { script : "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" } , contents : { script : /(?:java|ecma)script/ } , converters : { "text script" : function ( e ) { return ot . globalEval ( e ) , e } } } ) , ot . ajaxPrefilter ( "script" , function ( e ) { void 0 === e . cache && ( e . cache = ! 1 ) , e . crossDomain && ( e . type = "GET" , e . global = ! 1 ) } ) , ot . ajaxTransport ( "script" , function ( e ) { if ( e . crossDomain ) { var t , n = mt . head || ot ( "head" ) [ 0 ] || mt . documentElement ; return { send : function ( r , i ) { t = mt . createElement ( "script" ) , t . async = ! 0 , e . scriptCharset && ( t . charset = e . scriptCharset ) , t . src = e . url , t . onload = t . onreadystatechange = function ( e , n ) { ( n || ! t . readyState || /loaded|complete/ . test ( t . readyState ) ) && ( t . onload = t . onreadystatechange = null , t . parentNode && t . parentNode . removeChild ( t ) , t = null , n || i ( 200 , "success" ) ) } , n . insertBefore ( t , n . firstChild ) } , abort : function ( ) { t && t . onload ( void 0 , ! 0 ) } } } } ) ; var tr = [ ] , nr = /(=)\?(?=&|$)|\?\?/ ; ot . ajaxSetup ( { jsonp : "callback" , jsonpCallback : function ( ) { var e = tr . pop ( ) || ot . expando + "_" + jn ++ ; return this [ e ] = ! 0 , e } } ) , ot . ajaxPrefilter ( "json jsonp" , function ( t , n , r ) { var i , o , a , s = t . jsonp !== ! 1 && ( nr . test ( t . url ) ? "url" : "string" == typeof t . data && ! ( t . contentType || "" ) . indexOf ( "application/x-www-form-urlencoded" ) && nr . test ( t . data ) && "data" ) ; return s || "jsonp" === t . dataTypes [ 0 ] ? ( i = t . jsonpCallback = ot . isF
2014-09-26 05:03:39 +05:30
var a = null ; PR . registerLangHandler ( PR . createSimpleLexer ( [ [ "str" , /^'(?:[^\n\r'\\]|\\.)*(?:'|$)/ , a , "'" ] , [ "pln" , /^\s+/ , a , " \r\n " ] ] , [ [ "com" , /^\(\*[\S\s]*?(?:\*\)|$)|^{[\S\s]*?(?:}|$)/ , a ] , [ "kwd" , /^(?:absolute|and|array|asm|assembler|begin|case|const|constructor|destructor|div|do|downto|else|end|external|for|forward|function|goto|if|implementation|in|inline|interface|interrupt|label|mod|not|object|of|or|packed|procedure|program|record|repeat|set|shl|shr|then|to|type|unit|until|uses|var|virtual|while|with|xor)\b/i , a ] , [ "lit" , /^(?:true|false|self|nil)/i , a ] , [ "pln" , /^[a-z][^\W_]*/i , a ] , [ "lit" , /^(?:\$[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)/i , a , "0123456789" ] , [ "pun" , /^.[^\s\w$'./@]*/ , a ] ] ) , [ "pascal" ] ) , PR . registerLangHandler ( PR . sourceDecorator ( { keywords : "bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true" , types : /^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/ , cStyleComments : ! 0 } ) , [ "proto" ] ) , PR . registerLangHandler ( PR . createSimpleLexer ( [ [ "pln" , /^[\t\n\r \xa0]+/ , null , " \n\r " ] , [ "str" , /^"(?:[^"\\]|\\[\S\s])*(?:"|$)/ , null , '"' ] , [ "str" , /^'(?:[^'\\]|\\[\S\s])*(?:'|$)/ , null , "'" ] ] , [ [ "com" , /^#.*/ ] , [ "kwd" , /^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![\w.])/ ] , [ "lit" , /^0[Xx][\dA-Fa-f]+([Pp]\d+)?[Li]?/ ] , [ "lit" , /^[+-]?(\d+(\.\d+)?|\.\d+)([Ee][+-]?\d+)?[Li]?/ ] , [ "lit" , /^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|\d+))(?![\w.])/ ] , [ "pun" , /^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|[!*+/^]|%.*?%|[$=@~]|:{1,3}|[(),;?[\]{}])/ ] , [ "pln" , /^(?:[A-Za-z]+[\w.]*|\.[^\W\d][\w.]*)(?![\w.])/ ] , [ "str" , /^`.+`/ ] ] ) , [ "r" , "s" , "R" , "S" , "Splus" ] ) , PR . registerLangHandler ( PR . createSimpleLexer ( [ [ "pln" , /^[\t\n\r \xa0]+/ , null , " \n\r " ] , [ "com" , /^%[^\n\r]*/ , null , "%" ] ] , [ [ "lit" , /^\\(?:cr|l?dots|R|tab)\b/ ] , [ "kwd" , /^\\[@-Za-z]+/ ] , [ "kwd" , /^#(?:ifn?def|endif)/ ] , [ "pln" , /^\\[{}]/ ] , [ "pun" , /^[()[\]{}]+/ ] ] ) , [ "Rd" , "rd" ] ) , PR . registerLangHandler ( PR . createSimpleLexer ( [ [ "pln" , /^[\t\n\r \xa0]+/ , null , " \n\r " ] , [ "str" , /^"(?:""(?:""?(?!")|[^"\\]|\\.)*"{0,3}|(?:[^\n\r"\\]|\\.)*"?)/ , null , '"' ] , [ "lit" , /^`(?:[^\n\r\\`]|\\.)*`?/ , null , "`" ] , [ "pun" , /^[!#%&(--:-@[-^{-~]+/ , null , "!#%&()*+,-:;<=>?@[\\]^{|}~" ] ] , [ [ "str" , /^'(?:[^\n\r'\\]|\\(?:'|[^\n\r']+))'/ ] , [ "lit" , /^'[$A-Z_a-z][\w$]*(?![\w$'])/ ] , [ "kwd" , /^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/ ] , [ "lit" , /^(?:true|false|null|this)\b/ ] , [ "lit" , /^(?:0(?:[0-7]+|x[\da-f]+)l?|(?:0|[1-9]\d*)(?:(?:\.\d+)?(?:e[+-]?\d+)?f?|l?)|\\.\d+(?:e[+-]?\d+)?f?)/i ] , [ "typ" , /^[$_]*[A-Z][\d$A-Z_]*[a-z][\w$]*/ ] , [ "pln" , /^[$A-Z_a-z][\w$]*/ ] , [ "com" , /^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/ ] , [ "pun" , /^(?:\.+|\/)/ ] ] ) , [ "scala" ] ) , PR . registerLangHandler ( PR . createSimpleLexer ( [ [ "pln" , /^[\t\n\r \xa0]+/ , null , " \n\r " ] , [ "str" , /^(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/ , null , "\"'" ] ] , [ [ "com" , /^(?:--[^\n\r]*|\/\*[\S\s]*?(?:\*\/|$))/ ] , [ "kwd" , / ^ ( ? : a d d | a l l | a l t e r | a n d | a n y | a p p l y | a s | a s c | a u t h o r i z a t i o n | b a c k u p | b e g i n | b e t w e e n | b r e a k | b r o w s e | b u l k | b y | c a s c a d e | c a s e | c h e c k | c h e c k p o i n t | c l o s e | c l u s t e r e d | c o a l e s c e | c o l l a t e | c o l u m n | c o m m i t | c o m p u t e | c o n n e c t | c o n s t r a i n t | c o n t a i n s | c o n t a i n s t a b l e | c o n t i n u e | c o n v e r t | c r e a t e | c r o s s | c u r r e n t | c u r r e n t _ d a t e | c u r r e n t _ t i m e | c u r r e n t _ t i m e s t a m p | c u r r e n t _ u s e r | c u r s o r | d a t a b a s e | d b c c | d e a l l o c a t e | d e c l a r e | d e f a u l t | d e l e t e | d e n y | d e s c | d i s k | d i s t i n c t | d i s t r i b u t e d | d o u b l e | d r o p | d u m m y | d u m p | e l s e | e n d | e r r l v l | e s c a p e | e x c e p t | e x e c | e x e c u t e | e x i s t s | e x i t | f e t c h | f i l e | f i l l f a c t o r | f o l l o w i n g | f o r | f o r e i g n | f r e e t e x t | f r e e t e x t t a b l e | f r o m | f u l l | f u n c t i o n | g o t o | g r a n t | g r o u p | h a v i n g | h o l d l o c k | i d e n t i t y | i d e n t i t y c o l | i d e n t i t y _ i n s e r t | i f | i n | i n d e x | i n n e r | i n s e r t | i n t e r s e c t | i n t o | i s | j o i n | k e y | k i l l | l e f t | l i k e | l i n e n o | l o a d | m a t c h | m a t c h e d | m e r g e | n a t u r a l | n a t i o n a l | n o c h e c k | n o n c l u s t e r e d | n o c y c l e | n o t | n u l l | n u l l i f | o f | o f f | o f f s e t s | o n | o p e n | o p e n d a t a s o u r c e | o p e n q u e r y | o p e n r o w s e t | o p e n x m l | o p t i o n | o r | o r d e r | o u t e r | o v e r | p a r t i t i o n | p e r c e n t | p i v o t | p l a n | p r e c e d i n g | p r e c i s i o n | p r i m a r y | p r i n t | p r o c | p r o c e d u r e | p u b l i c | r a i s e r r o r | r e a d | r e a d t e x t | r e c o n f i g u r e | r e f