").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
6 |
--------------------------------------------------------------------------------
/src/js/jquery.sortElements.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jQuery.fn.sortElements
3 | * --------------
4 | * @author James Padolsey (http://james.padolsey.com)
5 | * @version 0.11
6 | * @updated 18-MAR-2010
7 | * --------------
8 | * @param Function comparator:
9 | * Exactly the same behaviour as [1,2,3].sort(comparator)
10 | *
11 | * @param Function getSortable
12 | * A function that should return the element that is
13 | * to be sorted. The comparator will run on the
14 | * current collection, but you may want the actual
15 | * resulting sort to occur on a parent or another
16 | * associated element.
17 | *
18 | * E.g. $('td').sortElements(comparator, function(){
19 | * return this.parentNode;
20 | * })
21 | *
22 | * The
's parent ( | ) will be sorted instead
23 | * of the itself.
24 | */
25 | jQuery.fn.sortElements = (function(){
26 |
27 | var sort = [].sort;
28 |
29 | return function(comparator, getSortable) {
30 |
31 | getSortable = getSortable || function(){return this;};
32 |
33 | var placements = this.map(function(){
34 |
35 | var sortElement = getSortable.call(this),
36 | parentNode = sortElement.parentNode,
37 |
38 | // Since the element itself will change position, we have
39 | // to have some way of storing it's original position in
40 | // the DOM. The easiest way is to have a 'flag' node:
41 | nextSibling = parentNode.insertBefore(
42 | document.createTextNode(''),
43 | sortElement.nextSibling
44 | );
45 |
46 | return function() {
47 |
48 | if (parentNode === this) {
49 | throw new Error(
50 | "You can't sort elements if any one is a descendant of another."
51 | );
52 | }
53 |
54 | // Insert before flag:
55 | parentNode.insertBefore(this, nextSibling);
56 | // Remove flag:
57 | parentNode.removeChild(nextSibling);
58 |
59 | };
60 |
61 | });
62 |
63 | return sort.call(this, comparator).each(function(i){
64 | placements[i].call(getSortable.call(this));
65 | });
66 |
67 | };
68 |
69 | })();
--------------------------------------------------------------------------------
/src/js/jquery.sprintf.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * sprintf and vsprintf for jQuery
3 | * somewhat based on http://jan.moesen.nu/code/javascript/sprintf-and-printf-in-javascript/
4 | * Copyright (c) 2008 Sabin Iacob (m0n5t3r)
5 | * @license http://www.gnu.org/licenses/gpl.html
6 | * @project jquery.sprintf
7 | */
8 | (function(d){var a={b:function(e){return parseInt(e,10).toString(2)},c:function(e){return String.fromCharCode(parseInt(e,10))},d:function(e){return parseInt(e,10)},u:function(e){return Math.abs(e)},f:function(f,e){e=parseInt(e,10);f=parseFloat(f);if(isNaN(e&&f)){return NaN}return e&&f.toFixed(e)||f},o:function(e){return parseInt(e,10).toString(8)},s:function(e){return e},x:function(e){return(""+parseInt(e,10).toString(16)).toLowerCase()},X:function(e){return(""+parseInt(e,10).toString(16)).toUpperCase()}};var c=/%(?:(\d+)?(?:\.(\d+))?|\(([^)]+)\))([%bcdufosxX])/g;var b=function(f){if(f.length==1&&typeof f[0]=="object"){f=f[0];return function(i,h,k,j,g,m,l){return a[g](f[j])}}else{var e=0;return function(i,h,k,j,g,m,l){if(g=="%"){return"%"}return a[g](f[e++],k)}}};d.extend({sprintf:function(f){var e=Array.apply(null,arguments).slice(1);return f.replace(c,b(e))},vsprintf:function(f,e){return f.replace(c,b(e))}})})(jQuery);
9 |
--------------------------------------------------------------------------------
/src/js/main.js:
--------------------------------------------------------------------------------
1 | !function () {
2 | "use strict";
3 |
4 | function forEach(nodeList, callback)
5 | {
6 | Array.prototype.forEach.call(nodeList, callback)
7 | }
8 |
9 | function adjustSidebarOverflowing() {
10 | var sidebar = document.body.querySelector('.sidebar')
11 |
12 | if (!sidebar)
13 | {
14 | return
15 | }
16 |
17 | sidebar.classList.add('computing')
18 |
19 | var menu = sidebar.querySelector('.sidebar nav')
20 | var max = 0
21 |
22 | forEach(menu.querySelectorAll('*'), function (el) {
23 |
24 | max = Math.max(max, el.scrollWidth)
25 |
26 | })
27 |
28 | var method = max > menu.clientWidth ? 'add' : 'remove'
29 |
30 | sidebar.classList[method]('overflowing')
31 | sidebar.classList.remove('computing')
32 | }
33 |
34 | function indexAssets()
35 | {
36 | var assets = {}
37 |
38 | forEach(document.querySelectorAll('[data-asset]'), function (asset) {
39 |
40 | assets[asset.getAttribute('data-asset')] = asset
41 |
42 | })
43 |
44 | return assets
45 | }
46 |
47 | function attachAnchors(icon)
48 | {
49 | forEach(document.querySelectorAll('a.anchor'), function (anchor) {
50 |
51 | anchor.appendChild(icon.cloneNode(true))
52 |
53 | })
54 | }
55 |
56 | function markDetailedElements()
57 | {
58 | forEach(document.body.querySelectorAll('.element .description.detailed.hidden'), function (detailed) {
59 |
60 | var element = detailed.closest('.element')
61 | var short = element.querySelector('.description.short')
62 |
63 | if (short.textContent.trim() == detailed.textContent.trim())
64 | {
65 | return
66 | }
67 |
68 | element.classList.add('expandable')
69 |
70 | })
71 | }
72 |
73 | jQuery(document).ready(function ($) {
74 |
75 | var assets = indexAssets()
76 |
77 | adjustSidebarOverflowing()
78 | attachAnchors(assets['icon-anchor'])
79 |
80 | if (ApiGen.config.options.elementDetailsCollapsed) {
81 | markDetailedElements()
82 |
83 | $(document.body).on('click', '.element.expandable', function () {
84 |
85 | this.classList.toggle('expanded')
86 |
87 | })
88 | }
89 |
90 | /**
91 | * Events
92 | */
93 | $(document.body).on('click', '.sidebar-toggle', function () {
94 |
95 | document.body.classList.toggle('show-sidebar')
96 | this.setAttribute('aria-pressed', this.getAttribute('aria-pressed') == 'true' ? 'false' : 'true')
97 |
98 | })
99 |
100 | $(document.body).on('click', '.veil', function () {
101 |
102 | document.body.classList.remove('show-sidebar')
103 |
104 | })
105 |
106 | $(document.body).on('focus', '.search-query', function () {
107 |
108 | document.body.classList.add('in-search')
109 |
110 | })
111 |
112 | $(document.body).on('blur', '.search-query', function () {
113 |
114 | document.body.classList.remove('in-search')
115 |
116 | })
117 |
118 | })
119 | } ()
120 |
121 | $(window).load(function() {
122 | var $right = $('#right');
123 | var $groups = $('#groups');
124 | var $content = $('#content');
125 |
126 | // Menu
127 |
128 | // Hide deep packages and namespaces
129 | $('ul span', $groups).click(function(event) {
130 | event.preventDefault();
131 | event.stopPropagation();
132 | $(this)
133 | .toggleClass('collapsed')
134 | .parent()
135 | .next('ul')
136 | .toggleClass('collapsed');
137 | }).click();
138 |
139 | $active = $('ul li.active', $groups);
140 | if ($active.length > 0) {
141 | // Open active
142 | $('> a > span', $active).click();
143 | } else {
144 | $main = $('> ul > li.main', $groups);
145 | if ($main.length > 0) {
146 | // Open first level of the main project
147 | $('> a > span', $main).click();
148 | } else {
149 | // Open first level of all
150 | $('> ul > li > a > span', $groups).click();
151 | }
152 | }
153 |
154 | // Content
155 |
156 | // Search autocompletion
157 | var autocompleteFound = false;
158 | var autocompleteFiles = {'c': 'class', 'co': 'constant', 'f': 'function', 'm': 'class', 'mm': 'class', 'p': 'class', 'mp': 'class', 'cc': 'class'};
159 | var $search = $('#search input[name=q]');
160 | $search
161 | .autocomplete(ApiGen.elements, {
162 | matchContains: true,
163 | max: 20,
164 | noRecord: '',
165 | highlight: function(value, term) {
166 | var term = term.toUpperCase().replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1").replace(/[A-Z0-9]/g, function(m, offset) {
167 | return offset === 0 ? '(?:' + m + '|^' + m.toLowerCase() + ')' : '(?:(?:[^<>]|<[^<>]*>)*' + m + '|' + m.toLowerCase() + ')';
168 | });
169 | return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)(" + term + ")(?![^<>]*>)(?![^&;]+;)"), "$1");
170 | },
171 | formatItem: function(data) {
172 | return data.length > 1 ? data[1].replace(/^(.+\\)(.+)$/, '$1$2') : data[0];
173 | },
174 | formatMatch: function(data) {
175 | return data[1];
176 | },
177 | formatResult: function(data) {
178 | return data[1];
179 | }
180 | }).result(function(event, data) {
181 | autocompleteFound = true;
182 | var location = window.location.href.split('/');
183 | location.pop();
184 | var parts = data[1].split(/::|$/);
185 | var file = $.sprintf(ApiGen.config.templates[autocompleteFiles[data[0]]].filename, parts[0].replace(/\(\)/, '').replace(/[^\w]/g, '.'));
186 | if (parts[1]) {
187 | file += '#' + ('mm' === data[0] || 'mp' === data[0] ? 'm' : '') + parts[1].replace(/([\w]+)\(\)/, '_$1');
188 | }
189 | location.push(file);
190 | window.location = location.join('/');
191 |
192 | // Workaround for Opera bug
193 | $(this).closest('form').attr('action', location.join('/'));
194 | }).closest('form')
195 | .submit(function() {
196 | var query = $search.val();
197 | if ('' === query) {
198 | return false;
199 | }
200 | return !autocompleteFound && '' !== $('#search input[name=cx]').val();
201 | });
202 |
203 | // Save natural order
204 | $('.summary [data-order]', $content).each(function(index) {
205 | do {
206 | index = '0' + index;
207 | } while (index.length < 3);
208 | $(this).attr('data-order-natural', index);
209 | });
210 |
211 | // Switch between natural and alphabetical order
212 | var $caption = $('.summary', $content)
213 | .filter(':has([data-order])')
214 | .prev('h2');
215 | $caption
216 | .click(function() {
217 | var $this = $(this);
218 | var order = $this.data('order') || 'natural';
219 | order = 'natural' === order ? 'alphabetical' : 'natural';
220 | $this.data('order', order);
221 | $.cookie('order', order, {expires: 365});
222 | var attr = 'alphabetical' === order ? 'data-order' : 'data-order-natural';
223 | $this
224 | .next('.summary')
225 | .find('.element').sortElements(function(a, b) {
226 | return $(a).attr(attr) > $(b).attr(attr) ? 1 : -1;
227 | });
228 | return false;
229 | })
230 | .addClass('switchable')
231 | .attr('title', 'Switch between natural and alphabetical order');
232 | if ((null === $.cookie('order') && 'alphabetical' === ApiGen.config.options.elementsOrder) || 'alphabetical' === $.cookie('order')) {
233 | $caption.click();
234 | }
235 |
236 | // Select selected lines
237 | var matches = window.location.hash.substr(1).match(/^\d+(?:-\d+)?(?:,\d+(?:-\d+)?)*$/);
238 | if (null !== matches) {
239 | var lists = matches[0].split(',');
240 | for (var i = 0; i < lists.length; i++) {
241 | var lines = lists[i].split('-');
242 | lines[0] = parseInt(lines[0]);
243 | lines[1] = parseInt(lines[1] || lines[0]);
244 | for (var j = lines[0]; j <= lines[1]; j++) {
245 | $('#' + j).addClass('selected');
246 | }
247 | }
248 |
249 | var $firstLine = $('#' + parseInt(matches[0]));
250 | if ($firstLine.length > 0) {
251 | $right.scrollTop($firstLine.position().top);
252 | }
253 | }
254 |
255 | // Save selected lines
256 | var lastLine;
257 | $('.l a').click(function(event) {
258 | event.preventDefault();
259 |
260 | var selectedLine = $(this).parent().index() + 1;
261 | var $selectedLine = $('pre.code .l').eq(selectedLine - 1);
262 |
263 | if (event.shiftKey) {
264 | if (lastLine) {
265 | for (var i = Math.min(selectedLine, lastLine); i <= Math.max(selectedLine, lastLine); i++) {
266 | $('#' + i).addClass('selected');
267 | }
268 | } else {
269 | $selectedLine.addClass('selected');
270 | }
271 | } else if (event.ctrlKey) {
272 | $selectedLine.toggleClass('selected');
273 | } else {
274 | var $selected = $('.l.selected')
275 | .not($selectedLine)
276 | .removeClass('selected');
277 | if ($selected.length > 0) {
278 | $selectedLine.addClass('selected');
279 | } else {
280 | $selectedLine.toggleClass('selected');
281 | }
282 | }
283 |
284 | lastLine = $selectedLine.hasClass('selected') ? selectedLine : null;
285 |
286 | // Update hash
287 | var lines = $('.l.selected')
288 | .map(function() {
289 | return parseInt($(this).attr('id'));
290 | })
291 | .get()
292 | .sort(function(a, b) {
293 | return a - b;
294 | });
295 |
296 | var hash = [];
297 | var list = [];
298 | for (var j = 0; j < lines.length; j++) {
299 | if (0 === j && j + 1 === lines.length) {
300 | hash.push(lines[j]);
301 | } else if (0 === j) {
302 | list[0] = lines[j];
303 | } else if (lines[j - 1] + 1 !== lines[j] && j + 1 === lines.length) {
304 | hash.push(list.join('-'));
305 | hash.push(lines[j]);
306 | } else if (lines[j - 1] + 1 !== lines[j]) {
307 | hash.push(list.join('-'));
308 | list = [lines[j]];
309 | } else if (j + 1 === lines.length) {
310 | list[1] = lines[j];
311 | hash.push(list.join('-'));
312 | } else {
313 | list[1] = lines[j];
314 | }
315 | }
316 |
317 | hash = hash.join(',');
318 | $backup = $('#' + hash).removeAttr('id');
319 | window.location.hash = hash;
320 | $backup.attr('id', hash);
321 | });
322 | });
323 |
--------------------------------------------------------------------------------
/src/namespace.latte:
--------------------------------------------------------------------------------
1 | {layout '@layout.latte'}
2 | {var $active = 'namespace'}
3 |
4 | {block title}{if $namespace != 'None'}Namespace {$namespace}{else}No namespace{/if}{/block}
5 |
6 | {block content}
7 |
8 | {if $namespace != 'None'}Namespace {$namespace|namespaceLinks:false|noescape}{else}No namespace{/if}
9 |
10 | {if $subnamespaces}
11 | Namespaces summary
12 |
17 | {/if}
18 |
19 | {include '@elementlist.latte'}
20 |
21 | {/block}
22 |
--------------------------------------------------------------------------------
/src/opensearch.xml.latte:
--------------------------------------------------------------------------------
1 | {contentType xml}
2 |
3 |
4 | {$config->title}
5 | {$config->title} Documentation
6 |
7 | {$config->baseUrl}/favicon.ico
8 | open
9 | UTF-8
10 | UTF-8
11 |
12 |
--------------------------------------------------------------------------------
/src/overview.latte:
--------------------------------------------------------------------------------
1 | {layout '@layout.latte'}
2 | {var $active = 'overview'}
3 |
4 | {block title}{$config->title ?: 'Overview'}{/block}
5 |
6 | {block content}
7 |
8 | {include title}
9 |
10 | {var $group = false}
11 |
12 | {if count($namespaces)}
13 | Namespaces summary
14 |
15 | {foreach $namespaces as $namespace}
16 | {continueIf $config->main && 0 !== strpos($namespace, $config->main)}
17 |
18 | {var $group = true}
19 | {$namespace} |
20 |
21 | {/foreach}
22 |
23 | {/if}
24 |
25 | {if count($packages)}
26 | Packages summary
27 |
28 | {foreach $packages as $package}
29 | {continueIf $config->main && 0 !== strpos($package, $config->main)}
30 |
31 | {var $group = true}
32 |
33 | {$package}
34 | |
35 |
36 | {/foreach}
37 |
38 | {/if}
39 |
40 | {if ! $group}
41 | {include '@elementlist.latte'}
42 | {/if}
43 |
44 | {/block}
45 |
--------------------------------------------------------------------------------
/src/package.latte:
--------------------------------------------------------------------------------
1 | {layout '@layout.latte'}
2 | {var $active = 'package'}
3 |
4 | {block title}{if $package != 'None'}Package {$package}{else}No package{/if}{/block}
5 |
6 | {block content}
7 |
8 | {if $package != 'None'}Package {$package|packageLinks:false|noescape}{else}No package{/if}
9 |
10 | {if $subpackages}
11 | Packages summary
12 |
17 | {/if}
18 |
19 | {include '@elementlist.latte'}
20 |
21 | {/block}
22 |
--------------------------------------------------------------------------------
/src/resources/collapsed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deprecated-packages/ThemeBootstrap/4257ef3953b13d61c4266a7fa14df74d9d481600/src/resources/collapsed.png
--------------------------------------------------------------------------------
/src/resources/style.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | z-index:
4 | 3: veil (if .show-sidebar)
5 | 4: sidebar
6 | 5: veil
7 | 10: navbar
8 | 20: search suggestion
9 | */
10 |
11 | html {
12 | font-family: sans-serif;
13 | line-height: 1.15;
14 | -webkit-text-size-adjust: 100%;
15 | }
16 |
17 | body {
18 | font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
19 | font-size: 1rem;
20 | font-weight: 400;
21 | line-height: 1.5;
22 | color: #292b2c;
23 | background: white;
24 | margin: 0;
25 | }
26 |
27 | h1,
28 | h2,
29 | h3,
30 | h4 {
31 | position: relative;
32 | margin-top: 1.6666rem;
33 | margin-bottom: .8333rem;
34 | font-weight: 500;
35 | }
36 |
37 | h1 + h2,
38 | h2 + h3,
39 | h3 + h4 {
40 | margin-top: 0;
41 | }
42 |
43 | h1 {
44 | font-size: 2.5rem;
45 | margin-top: 0;
46 | }
47 |
48 | h1 .type {
49 | opacity: .6;
50 | float: right;
51 | font-size: 1rem;
52 | font-weight: normal;
53 | font-family: Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace;
54 | text-transform: lowercase;
55 | }
56 |
57 | h2 {
58 | font-size: 2em;
59 | }
60 |
61 | h3 {
62 | font-size: 1.5em;
63 | margin: 1em 0 0.2em 0;
64 | }
65 |
66 | h4 {
67 | font-size: 1rem;
68 | margin: 1rem 0;
69 | }
70 |
71 | ul, ol {
72 | margin-bottom: 0;
73 | }
74 |
75 | a {
76 | color: #4078c0;
77 | text-decoration: none;
78 | }
79 |
80 | a:hover {
81 | text-decoration: underline;
82 | }
83 |
84 | pre {
85 | overflow: auto;
86 | }
87 |
88 | pre:empty {
89 | display: none;
90 | }
91 |
92 | pre,
93 | code,
94 | tt,
95 | var {
96 | padding: 0.2em 0;
97 | margin: 0;
98 | font-size: .8521rem;
99 | background-color: rgba(0, 0, 0, 0.04);
100 | border-radius: 3px;
101 | font-family: Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace;
102 | font-style: normal;
103 | }
104 |
105 | code::before,
106 | code::after,
107 | tt::before,
108 | tt::after {
109 | letter-spacing: -0.2em;
110 | content: "\00a0";
111 | }
112 |
113 | pre:empty,
114 | tt:empty,
115 | var:empty,
116 | code:empty {
117 | display: none;
118 | }
119 |
120 | code code,
121 | code var {
122 | font-size: inherit;
123 | background: transparent;
124 | }
125 |
126 | code code::before,
127 | code code::after,
128 | pre code::before,
129 | pre code::after {
130 | display: none;
131 | }
132 |
133 | pre code {
134 | white-space: pre;
135 | }
136 |
137 | .deprecated {
138 | text-decoration: line-through;
139 | opacity: .5;
140 | }
141 |
142 | .invalid {
143 | color: #dd1144;
144 | }
145 |
146 | .hidden {
147 | display: none;
148 | }
149 |
150 | pre,
151 | .tree,
152 | .alert {
153 | padding: .75rem 1.25rem;
154 | margin-bottom: 1rem;
155 | border: 1px solid transparent;
156 | border-radius: .25rem;
157 | }
158 |
159 | pre,
160 | .tree {
161 | background-color: #FAFAFA;
162 | border-color: #ddd;
163 | }
164 |
165 | .alert-info {
166 | background-color: #d9edf7;
167 | border-color: #bcdff1;
168 | color: #31708f;
169 | }
170 |
171 | .alert-info a {
172 | color: #245269;
173 | font-weight: 700;
174 | }
175 |
176 | .alert-danger {
177 | background-color: #f2dede;
178 | border-color: #ebcccc;
179 | color: #a94442;
180 | }
181 |
182 | .alert-danger a {
183 | color: #843534;
184 | font-weight: 700;
185 | }
186 |
187 | /* Navigation */
188 |
189 | .navbar {
190 | background: #24292E;
191 | border: 0;
192 | border-radius: 0;
193 | color: #C6C7C8;
194 | margin-bottom: 0;
195 | padding: .5rem 1rem;
196 | line-height: 1rem;
197 | overflow: hidden;
198 | position: fixed;
199 | left: 0;
200 | right: 0;
201 | z-index: 10;
202 | }
203 |
204 | .navbar a {
205 | color: inherit;
206 | }
207 |
208 | .navbar a:hover {
209 | color: #fff;
210 | text-decoration: none;
211 | }
212 |
213 | .navbar-brand {
214 | font-size: 1.5rem;
215 | line-height: 1.5rem;
216 | white-space: nowrap;
217 | float: left;
218 | }
219 |
220 | .navbar-brand > a {
221 | color: white;
222 | vertical-align: middle;
223 | }
224 |
225 | .navbar-nav {
226 | list-style: none;
227 | margin: 0 0 0 .5rem;
228 | padding: 0;
229 | float: left;
230 | display: flex;
231 | }
232 |
233 | .navbar-nav .nav-link {
234 | display: block;
235 | padding: .5rem;
236 | }
237 |
238 | .navbar-nav span.nav-link {
239 | color: rgba(255, 255, 255, .5);
240 | }
241 |
242 | .navbar-nav a > span.nav-link {
243 | color: inherit;
244 | }
245 |
246 | .sidebar-toggle {
247 | display: none;
248 | fill: white;
249 | box-sizing: border-box;
250 | height: 2rem;
251 | width: 2rem;
252 | padding: .25em;
253 | border-radius: .25em;
254 | cursor: default;
255 | user-select: none;
256 | }
257 |
258 | .show-sidebar .sidebar-toggle {
259 | fill: #24292E;
260 | padding: .4em;
261 | }
262 |
263 | .search-wrapper {
264 | margin: 0;
265 | float: right;
266 | display: block;
267 | height: 2rem;
268 | background: rgba(255,255,255,0.125);
269 | padding: 0;
270 | border-radius: .25rem;
271 | font-size: .8521rem;
272 | position: relative;
273 | }
274 |
275 | .search-wrapper svg {
276 | height: 2rem;
277 | width: auto;
278 | fill: white;
279 | position: absolute;
280 | right: .2rem;
281 | top: 3px;
282 | box-sizing: border-box;
283 | padding: .2rem;
284 | }
285 |
286 | .search-query {
287 | position: relative;
288 | color: white;
289 | box-sizing: border-box;
290 | border: 0;
291 | padding: .5rem;
292 | width: 30ex;
293 | font-family: inherit;
294 | font-size: inherit;
295 | font-weight: inherit;
296 | line-height: inherit;
297 | background: transparent;
298 | outline: none;
299 | z-index: 1;
300 | }
301 |
302 | .search-query:focus {
303 | width: 30ex;
304 | opacity: 1;
305 | }
306 |
307 | /* sidebar */
308 |
309 | .sidebar {
310 | position: fixed;
311 | top: 3rem;
312 | bottom: 0;
313 | width: 270px;
314 | min-width: 270px;
315 | border-right: 1px solid #eee;
316 | box-sizing: border-box;
317 | background: #FAFAFA;
318 | overflow-y: auto;
319 | overflow-x: hidden;
320 | z-index: 4;
321 | }
322 |
323 | .sidebar:hover {
324 | width: auto;
325 | }
326 |
327 | .sidebar.overflowing:hover {
328 | box-shadow: 10px 20px 20px rgba(0,0,0,.1);
329 | }
330 |
331 | /* forced style to compute overflowing */
332 | .sidebar.computing {
333 | width: 270px !important;
334 | overflow-x: hidden !important;
335 | }
336 |
337 | /* Menu */
338 | .sidebar nav {
339 | padding: 0 1rem 1rem 1rem;
340 | overflow-x: hidden;
341 | opacity: .6;
342 | transition: opacity 120ms linear;
343 | }
344 |
345 | .sidebar:hover nav {
346 | opacity: 1;
347 | }
348 |
349 | .sidebar strong {
350 | margin: 1rem 0 .2rem 0;
351 | display: block;
352 | font-weight: 500;
353 | }
354 |
355 | .sidebar ul {
356 | list-style: none;
357 | padding: 0;
358 | margin: 0;
359 | }
360 |
361 | .sidebar ul ul {
362 | padding-left: .5rem;
363 | }
364 |
365 | .sidebar li {
366 | white-space: nowrap;
367 | position: relative;
368 | }
369 |
370 | .sidebar a {
371 | display: block;
372 | overflow: hidden;
373 | text-overflow: ellipsis;
374 | color: inherit;
375 | }
376 |
377 | .sidebar a:hover,
378 | .sidebar .active > a {
379 | color: #4078c0;
380 | }
381 |
382 | .sidebar .active > a.invalid {
383 | color: #dd1144;
384 | }
385 |
386 | .sidebar #groups span {
387 | position: absolute;
388 | top: 6px;
389 | right: 3px;
390 | cursor: pointer;
391 | display: block;
392 | width: 12px;
393 | height: 12px;
394 | background: url('collapsed.png') transparent 0 0 no-repeat;
395 | }
396 |
397 | .sidebar #groups span:hover {
398 | background-position: -12px 0;
399 | }
400 |
401 | .sidebar #groups span.collapsed {
402 | background-position: 0 -12px;
403 | }
404 |
405 | .sidebar #groups span.collapsed:hover {
406 | background-position: -12px -12px;
407 | }
408 |
409 | .sidebar #groups ul.collapsed {
410 | display: none;
411 | }
412 |
413 | /* search suggestion */
414 |
415 | .search-suggestion {
416 | position: fixed;
417 | top: 3rem;
418 | left: 0;
419 | right: 0;
420 | bottom: 0;
421 | overflow-x: hidden;
422 | overflow-y: auto;
423 | z-index: 20;
424 | background: white;
425 | border-top: 1px solid #ddd;
426 | }
427 |
428 | .search-suggestion ul {
429 | display: block;
430 | list-style: none;
431 | padding: 1rem .5rem;
432 | margin: 0;
433 | }
434 |
435 | .search-suggestion li {
436 | margin: 0;
437 | padding: 0 .5rem;
438 | cursor: auto;
439 | display: block;
440 | overflow: hidden;
441 | white-space: nowrap;
442 | text-overflow: ellipsis;
443 | line-height: 2;
444 | border-radius: .25rem;
445 | }
446 |
447 | .search-suggestion small {
448 | font-size: inherit;
449 | opacity: .6;
450 | }
451 |
452 | .search-suggestion .search-suggestion-highlight {
453 | background: rgba(0, 140, 255, .2);
454 | color: #245269;
455 | cursor: pointer;
456 | }
457 |
458 | /* veil */
459 |
460 | .veil {
461 | position: fixed;
462 | top: 0;
463 | right: 100%;
464 | bottom: 100%;
465 | left: 0;
466 | background: white;
467 | opacity: 0;
468 | z-index: 5;
469 | transition: opacity 120ms linear;
470 | }
471 |
472 | .show-sidebar .veil {
473 | z-index: 3;
474 | }
475 |
476 | .in-search .veil,
477 | .show-sidebar .veil{
478 | opacity: .8;
479 | top: 3rem;
480 | right: 0;
481 | bottom: 0;
482 | left: 0;
483 | }
484 |
485 | /* Right side */
486 | #right {
487 | position: fixed;
488 | top: 3rem;
489 | bottom: 0;
490 | left: 270px;
491 | right: 0;
492 | overflow: auto;
493 | }
494 |
495 | #rightInner {
496 | min-width: 350px;
497 | min-height: calc(100vh - 130px); /* 130px is ~ navigation + footer */
498 | }
499 |
500 | /* Content */
501 | #content {
502 | padding: 15px 30px 0 30px;
503 | }
504 |
505 | #content > .description {
506 | margin: 1.2em 0;
507 | }
508 |
509 | .elementList {
510 | line-height: 2rem;
511 | }
512 |
513 | h2.switchable {
514 | cursor: pointer;
515 | }
516 |
517 | h2.switchable::after {
518 | content: "\2B0D";
519 | float: right;
520 | }
521 |
522 | table.summary {
523 | width: 100%;
524 | }
525 |
526 | .summary td {
527 | vertical-align: top;
528 | padding: .2rem .4rem;
529 | }
530 |
531 | .summary td:first-child {
532 | padding-left: 0;
533 | width: 25%;
534 | }
535 |
536 | .summary td:last-child {
537 | padding-right: 0;
538 | }
539 |
540 | .summary .element {
541 | position: relative;
542 | padding: 1rem 0;
543 | }
544 |
545 | .summary .element.expandable {
546 | cursor: zoom-in;
547 | }
548 |
549 | .summary .element.expanded {
550 | cursor: zoom-out;
551 | }
552 |
553 | .summary .element.expanded .short {
554 | display: none !important;
555 | }
556 |
557 | .summary .element.expanded .detailed {
558 | display: block !important;
559 | visibility: visible !important;
560 | }
561 |
562 | .summary td,
563 | .summary .element {
564 | border-top: 1px solid #eee;
565 | }
566 |
567 | .summary tr:last-child td,
568 | .summary .element:last-child {
569 | border-bottom: 1px solid #eee;
570 | }
571 |
572 | .summary td hr {
573 | margin: 8px -8px;
574 | }
575 |
576 | .summary p,
577 | .summary pre,
578 | .summary ul,
579 | .summary .list dt {
580 | margin-top: 1rem;
581 | margin-bottom: 0;
582 | }
583 |
584 | .summary dt > .parameter {
585 | font-size: 1rem;
586 | }
587 |
588 | #packages.summary td:first-child, #namespaces.summary td:first-child, .inherited.summary td:first-child, .used.summary td:first-child {
589 | text-align: left;
590 | }
591 |
592 | .summary dl {
593 | margin: 0;
594 | }
595 |
596 | .summary dd {
597 | margin: 0 0 0 2rem;
598 | }
599 |
600 | code.signature {
601 | background: transparent;
602 | color: #737373;
603 | display: block;
604 | font-size: 1rem;
605 | padding: 0;
606 | white-space: normal;
607 | }
608 |
609 | code.signature::before,
610 | code.signature::after {
611 | content: "";
612 | }
613 |
614 | code.signature .name,
615 | code.signature .parameter,
616 | code.parameter {
617 | color: #369;
618 | }
619 |
620 | code.signature .modifier {
621 | float: right;
622 | opacity: .6;
623 | }
624 |
625 | code.signature .type {
626 | color: #693;
627 | }
628 |
629 | code.signature .modifier,
630 | code.signature .initializer {
631 | color: #936;
632 | }
633 |
634 | code.signature code,
635 | code.signature var,
636 | code.parameter {
637 | padding: 0;
638 | border: 0;
639 | font-style: normal;
640 | background: transparent;
641 | }
642 |
643 | code.signature code,
644 | code.signature var {
645 | font-size: inherit;
646 | }
647 |
648 | .class .methods .name, .class .properties .name, .class .constants .name {
649 | width: auto;
650 | white-space: normal;
651 | }
652 |
653 | .class .methods .name > div > code {
654 | white-space: pre-wrap;
655 | }
656 |
657 | .class .methods .name > div > code span, .function .value > code {
658 | white-space: nowrap;
659 | display: inline-block;
660 | }
661 |
662 | .class .methods td.name > div, .class td.value > div {
663 | position: relative;
664 | padding-right: 1em;
665 | }
666 |
667 | .attributes code, .name code, dd code {
668 | color: #468847;
669 | }
670 |
671 | .anchor {
672 | top: 0;
673 | right: 100%;
674 | bottom: 0;
675 | position: absolute;
676 | width: 30px; /* gutter size */
677 | }
678 |
679 | :not(:hover) > .anchor {
680 | opacity: 0;
681 | }
682 |
683 | .anchor svg {
684 | width: 20px; /* gutter size */
685 | height: auto;
686 | position: absolute;
687 | left: 50%;
688 | top: 1rem;
689 | margin-left: -10px;
690 | margin-top: 2px;
691 | }
692 |
693 | .list {
694 | margin: 0 0 5px 25px;
695 | line-height: 24px;
696 | }
697 |
698 | footer {
699 | border-top: 1px solid #e5e5e5;
700 | clear: both;
701 | color: #808080;
702 | text-align: right;
703 | padding: 1em;
704 | margin: 3em 0 0 0;
705 | font-size: 12px;
706 | }
707 |
708 | /* Tree */
709 | .tree ul {
710 | list-style: none;
711 | background: url('tree-vertical.png') left repeat-y;
712 | padding: 0;
713 | margin-left: 20px;
714 | }
715 |
716 | .tree dd,
717 | .tree li {
718 | margin: 0;
719 | padding: 0;
720 | }
721 |
722 | .tree div {
723 | padding-left: 30px;
724 | }
725 |
726 | .tree div.notlast {
727 | background: url('tree-hasnext.png') left 10px no-repeat;
728 | }
729 |
730 | .tree div.last {
731 | background: url('tree-last.png') left -240px no-repeat;
732 | }
733 |
734 | .tree li.last {
735 | background: url('tree-cleaner.png') left center repeat-y;
736 | }
737 |
738 | .tree span.padding {
739 | padding-left: 15px;
740 | }
741 |
742 | .tree b {
743 | font-weight: 600;
744 | }
745 |
746 | /* Source code */
747 | #source {
748 | overflow: auto;
749 | }
750 |
751 | #source pre {
752 | padding: 0;
753 | border: none;
754 | border-radius: 0;
755 | overflow: visible;
756 | }
757 |
758 | #source .numbers {
759 | float: left;
760 | background-color: transparent;
761 | border-right: 1px solid #EEEEEE;
762 | margin-right: 1rem;
763 | padding-left: 1rem;
764 | }
765 |
766 | #source .numbers code {
767 | opacity: .6;
768 | }
769 |
770 | #source .code {
771 | background: transparent;
772 | }
773 |
774 | #source .numbers,
775 | #source .code {
776 | padding-top: 1rem;
777 | padding-bottom: 1rem;
778 | }
779 |
780 | .php-keyword1 {
781 | color: #468847;
782 | font-weight: bold;
783 | }
784 |
785 | .php-keyword2 {
786 | font-weight: bold;
787 | }
788 |
789 | .php-var {
790 | color: #c09853;
791 | font-weight: bold;
792 | }
793 |
794 | .php-num {
795 | color: #006dcc;
796 | }
797 |
798 | .php-quote {
799 | color: #006dcc;
800 | }
801 |
802 | .php-comment {
803 | color: #929292;
804 | }
805 |
806 | .xlang {
807 | color: #468847;
808 | font-weight: bold;
809 | }
810 |
811 | span.l {
812 | display: block;
813 | }
814 |
815 | span.l.selected {
816 | background: rgba(0, 140, 255, .05);
817 | }
818 |
819 | span.l a {
820 | color: #333333;
821 | }
822 |
823 | span.l a:hover, span.l a:active, span.l a:focus {
824 | background: transparent;
825 | color: #333333 !important;
826 | }
827 |
828 | span.l .php-var a {
829 | color: #c09853;
830 | }
831 |
832 | span.l .php-var a:hover, span.l .php-var a:active, span.l .php-var a:focus {
833 | color: #c09853 !important;
834 | }
835 |
836 | span.l a.l {
837 | background: #fbfbfc;
838 | margin-right: 8px;
839 | padding: 2px 2px 2px 8px;
840 | color: #c0c0c0;
841 | }
842 |
843 | span.l a.l:hover, span.l a.l:active, span.l a.l:focus {
844 | background: #fbfbfc;
845 | color: #c0c0c0 !important;
846 | }
847 |
848 | /* Small screens */
849 | #rightInner.medium .name, #rightInner.medium .attributes {
850 | white-space: normal;
851 | }
852 |
853 | /* global style */
854 | .left, .summary td.left {
855 | text-align: left;
856 | }
857 | .right, .summary td.right {
858 | text-align: right;
859 | }
860 |
861 | [aria-hidden] {
862 | display: none;
863 | }
864 |
865 | #navigation-mirror {
866 | display: none;
867 | margin-top: 1rem;
868 | }
869 |
870 | @media (max-width: 768px) {
871 |
872 | .navbar {
873 | display: flex;
874 | justify-content: space-between;
875 | }
876 |
877 | .navbar-brand {
878 | margin-left: 1rem;
879 | }
880 |
881 | .navbar-nav {
882 | display: none;
883 | }
884 |
885 | .navbar .sidebar-toggle {
886 | display: inline-block;
887 | }
888 |
889 | .show-sidebar .sidebar-toggle {
890 | color: #3a3f42;
891 | background: white;
892 | }
893 |
894 | .search-wrapper {
895 | float: none;
896 | }
897 |
898 | #search label {
899 | padding-left: 0;
900 | }
901 |
902 | #search label > span {
903 | display: none;
904 | }
905 |
906 | .search-wrapper {
907 | background: transparent;
908 | }
909 |
910 | .search-wrapper svg {
911 | padding: 0;
912 | }
913 |
914 | .search-query {
915 | border-left: 0;
916 | margin-left: 0;
917 | width: 2rem;
918 | opacity: 0;
919 | cursor: default;
920 | }
921 |
922 | .sidebar {
923 | width: auto;
924 | box-shadow: 10px 20px 20px rgba(0, 0, 0, .1);
925 | font-size: inherit;
926 | visibility: hidden;
927 | opacity: .6;
928 | transform: translate(-200px);
929 | transition: linear all 120ms;
930 | }
931 |
932 | body.show-sidebar .sidebar {
933 | visibility: visible;
934 | opacity: 1;
935 | transform: translate(0px);
936 | }
937 |
938 | .sidebar nav {
939 | opacity: 1;
940 | }
941 |
942 | #right {
943 | left: 0;
944 | }
945 |
946 | #content {
947 | padding: .5rem 1rem 0 1rem;
948 | }
949 |
950 | #navigation-mirror {
951 | display: block;
952 | margin-top: 1rem;
953 | }
954 | }
955 |
956 | .in-search .sidebar-toggle,
957 | .in-search .navbar-brand,
958 | .in-search .navbar-nav {
959 | display: none;
960 | }
961 |
962 | .in-search .navbar-collapse,
963 | .in-search .search-wrapper {
964 | width: 100%;
965 | }
966 |
967 | .in-search .navbar {
968 | background: white;
969 | padding-left: .5rem;
970 | padding-right: .5rem;
971 | border-bottom: 1px solid #ddd;
972 | box-shadow: 0 1rem 2rem rgba(0, 0, 0, .1);
973 | }
974 |
975 | .in-search .search-wrapper svg {
976 | fill: #24292E;
977 | right: .7rem;
978 | }
979 |
980 | .in-search .search-query {
981 | color: #24292E;
982 | font-size: 1rem;
983 | width: 100%;
984 | cursor: auto;
985 | }
986 |
--------------------------------------------------------------------------------
/src/resources/tree-cleaner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deprecated-packages/ThemeBootstrap/4257ef3953b13d61c4266a7fa14df74d9d481600/src/resources/tree-cleaner.png
--------------------------------------------------------------------------------
/src/resources/tree-hasnext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deprecated-packages/ThemeBootstrap/4257ef3953b13d61c4266a7fa14df74d9d481600/src/resources/tree-hasnext.png
--------------------------------------------------------------------------------
/src/resources/tree-last.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deprecated-packages/ThemeBootstrap/4257ef3953b13d61c4266a7fa14df74d9d481600/src/resources/tree-last.png
--------------------------------------------------------------------------------
/src/resources/tree-vertical.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/deprecated-packages/ThemeBootstrap/4257ef3953b13d61c4266a7fa14df74d9d481600/src/resources/tree-vertical.png
--------------------------------------------------------------------------------
/src/robots.txt.latte:
--------------------------------------------------------------------------------
1 | {contentType text}
2 | User-agent: *
3 | Disallow:
4 | Sitemap: {$config->baseUrl}/sitemap.xml
5 |
--------------------------------------------------------------------------------
/src/sitemap.xml.latte:
--------------------------------------------------------------------------------
1 | {contentType xml}
2 |
3 |
4 |
5 | {$config->baseUrl}/index.html
6 |
7 |
8 | {$config->baseUrl}/{$namespace|namespaceUrl}
9 |
10 |
11 | {$config->baseUrl}/{$package|packageUrl}
12 |
13 |
14 | {define elements}
15 |
16 | {$config->baseUrl}/{$element|elementUrl}
17 |
18 | {/define}
19 |
20 | {include elements, elements => $classes}
21 | {include elements, elements => $interfaces}
22 | {include elements, elements => $traits}
23 | {include elements, elements => $exceptions}
24 | {include elements, elements => $constants}
25 | {include elements, elements => $functions}
26 |
27 |
--------------------------------------------------------------------------------
/src/source.latte:
--------------------------------------------------------------------------------
1 | {layout '@layout.latte'}
2 | {var $robots = false}
3 |
4 | {block title}File {$fileName}{/block}
5 |
6 | {block content}
7 |
8 | {var $lineRegex = '~ (\s*)(\d+):(\s*)([^\\n]*(?:\\n|$))~'}
9 | {$source|replaceRE:$lineRegex,'$1$2$3'|noescape}
10 | {$source|replaceRE:$lineRegex,'$4'|noescape}
11 |
12 | {/block}
13 |
--------------------------------------------------------------------------------
/src/tree.latte:
--------------------------------------------------------------------------------
1 | {layout '@layout.latte'}
2 | {var $active = 'tree'}
3 |
4 | {block title}Tree{/block}
5 |
6 | {define tree}
7 |
8 |
9 | {var $level = -1}
10 | {foreach $tree as $reflectionName => $reflection|noiterator}
11 | {if $level === $tree->getDepth()}
12 |
13 | {elseif $level > $tree->getDepth()}
14 | {=' '|repeat:$level - $tree->getDepth()|noescape}
15 | {elseif -1 !== $level}
16 |
17 | {/if}
18 |
19 | {$reflectionName}
20 | {var $interfaces = $reflection->ownInterfaces}
21 | {if $interfaces} implements {foreach $interfaces as $interface}
22 | {$interface->name}{sep}, {/sep}
23 | {/foreach}{/if}
24 | {var $traits = $reflection->ownTraits}
25 | {if $traits}{if $interfaces} {/if} uses {foreach $traits as $trait}
26 | {if is_string($trait)}
27 | {$trait} (not available)
28 |
29 | {else}
30 | {$trait->name}{sep}, {/sep}
31 | {/}
32 | {/foreach}{/if}
33 |
34 |
35 | {var $level = $tree->getDepth()}
36 | {/foreach}
37 |
38 | {=' '|repeat:$level|noescape}
39 |
40 |
41 | {/define}
42 |
43 | {block content}
44 |
45 | {include title}
46 |
47 | {if $classTree->valid()}
48 | Classes
49 | {include tree, tree => $classTree}
50 | {/if}
51 |
52 | {if $interfaceTree->valid()}
53 | Interfaces
54 | {include tree, tree => $interfaceTree}
55 | {/if}
56 |
57 | {if $traitTree->valid()}
58 | Traits
59 | {include tree, tree => $traitTree}
60 | {/if}
61 |
62 | {if $exceptionTree->valid()}
63 | Exceptions
64 | {include tree, tree => $exceptionTree}
65 | {/if}
66 |
67 | {/block}
68 |
--------------------------------------------------------------------------------
|