芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/media/vendor/debugbar/widgets.min.js
if(void 0===PhpDebugBar){var PhpDebugBar={};PhpDebugBar.$=jQuery}!function(e){PhpDebugBar.Widgets={};var t=PhpDebugBar.utils.makecsscls("phpdebugbar-widgets-"),a=PhpDebugBar.Widgets.htmlize=function(e){return e.replace(/\n/g,"
").replace(/\s/g," ")},s=PhpDebugBar.Widgets.renderValue=function(e,t){return"string"!=typeof e?t?a(JSON.stringify(e,void 0,2)):JSON.stringify(e):e},i=PhpDebugBar.Widgets.highlight=function(e,t){return"string"==typeof e?"undefined"==typeof hljs?a(e):t?hljs.highlight(t,e).value:hljs.highlightAuto(e).value:("object"==typeof hljs&&e.each((function(e,t){hljs.highlightBlock(t)})),e)},n=PhpDebugBar.Widgets.createCodeBlock=function(a,s,n,l){var r=e("
").addClass(t("code-block")),d=e("
").text(a+"\n").appendTo(r);if(e.isNumeric(l)&&(e.isNumeric(n)&&(l=l-n+1),d.html((function(e,a){var s=1;return a.replace(/^.*$/gm,(function(e){return s++==l?'
'+e+"
":e}))}))),s&&r.addClass("language-"+s),i(r),e.isNumeric(n)){var p=a.split("\n").length,o=e("
").prependTo(r);r.children().addClass(t("numbered-code"));for(var h=n;h
").text(h).appendTo(o)}return r},l=PhpDebugBar.Widgets.ListWidget=PhpDebugBar.Widget.extend({tagName:"ul",className:t("list"),initialize:function(e){e.itemRenderer||(e.itemRenderer=this.itemRenderer),this.set(e)},render:function(){this.bindAttr(["itemRenderer","data"],(function(){if(this.$el.empty(),this.has("data"))for(var a=this.get("data"),s=0;s
").addClass(t("list-item")).appendTo(this.$el);this.get("itemRenderer")(i,a[s])}}))},itemRenderer:function(e,t){e.html(s(t))}}),r=PhpDebugBar.Widgets.KVListWidget=l.extend({tagName:"dl",className:t("kvlist"),render:function(){this.bindAttr(["itemRenderer","data"],(function(){if(this.$el.empty(),this.has("data")){var a=this;e.each(this.get("data"),(function(s,i){var n=e("
").addClass(t("key")).appendTo(a.$el),l=e("
").addClass(t("value")).appendTo(a.$el);a.get("itemRenderer")(n,l,s,i)}))}}))},itemRenderer:function(e,t,s,i){e.text(s),t.html(a(i))}});PhpDebugBar.Widgets.VariableListWidget=r.extend({className:t("kvlist varlist"),itemRenderer:function(a,s,i,l){e("
").attr("title",i).text(i).appendTo(a);var r=l;r&&r.length>100&&(r=r.substr(0,100)+"...");var d=null;s.text(r).click((function(){s.hasClass(t("pretty"))?s.text(r).removeClass(t("pretty")):(d=d||n(l),s.addClass(t("pretty")).empty().append(d))}))}}),PhpDebugBar.Widgets.HtmlVariableListWidget=r.extend({className:t("kvlist htmlvarlist"),itemRenderer:function(t,a,s,i){e("
").attr("title",s).text(s).appendTo(t),a.html(i)}}),PhpDebugBar.Widgets.IFrameWidget=PhpDebugBar.Widget.extend({tagName:"iframe",className:t("iframe"),render:function(){this.$el.attr({seamless:"seamless",border:"0",width:"100%",height:"100%"}),this.bindAttr("data",(function(e){this.$el.attr("src",e)}))}}),PhpDebugBar.Widgets.MessagesWidget=PhpDebugBar.Widget.extend({className:t("messages"),render:function(){var a=this;this.$list=new l({itemRenderer:function(a,s){if(s.message_html)var i=e("
").addClass(t("value")).html(s.message_html).appendTo(a);else{var l=s.message;l.length>100&&(l=l.substr(0,100)+"...");i=e("
").addClass(t("value")).text(l).appendTo(a);if(!s.is_string||s.message.length>100){var r=s.message;s.is_string||(r=null),a.css("cursor","pointer").click((function(){i.hasClass(t("pretty"))?i.text(l).removeClass(t("pretty")):(r=r||n(s.message,"php"),i.addClass(t("pretty")).empty().append(r))}))}}s.collector&&e("
").addClass(t("collector")).text(s.collector).prependTo(a),s.label&&(i.addClass(t(s.label)),e("
").addClass(t("label")).text(s.label).prependTo(a))}}),this.$list.$el.appendTo(this.$el),this.$toolbar=e('
').addClass(t("toolbar")).appendTo(this.$el),e('
').on("change",(function(){a.set("search",this.value)})).appendTo(this.$toolbar),this.bindAttr("data",(function(a){this.set({exclude:[],search:""}),this.$toolbar.find(t(".filter")).remove();for(var s=[],i=this,n=0;n
-1||(s.push(a[n].label),e("
").addClass(t("filter")).text(a[n].label).attr("rel",a[n].label).on("click",(function(){i.onFilterClick(this)})).appendTo(this.$toolbar))})),this.bindAttr(["exclude","search"],(function(){var t=this.get("data"),a=this.get("exclude"),s=this.get("search"),i=!1,n=[];s&&s===s.toLowerCase()&&(i=!0);for(var l=0;l
-1)||n.push(t[l])}this.$list.set("data",n)}))},onFilterClick:function(a){e(a).toggleClass(t("excluded"));var s=[];this.$toolbar.find(t(".filter")+t(".excluded")).each((function(){s.push(this.rel)})),this.set("exclude",s)}}),PhpDebugBar.Widgets.TimelineWidget=PhpDebugBar.Widget.extend({tagName:"ul",className:t("timeline"),render:function(){this.bindAttr("data",(function(a){if(this.$el.empty(),a.measures){for(var s={},i=0;i
").addClass(t("measure")),r=e("
"),d=(100*n.relative_start/a.duration).toFixed(2),p=Math.min((100*n.duration/a.duration).toFixed(2),100-d);if(l.append(e("
").addClass(t("value")).css({left:d+"%",width:p+"%"})),l.append(e("
").addClass(t("label")).text(n.label+" ("+n.duration_str+")")),n.collector&&e("
").addClass(t("collector")).text(n.collector).appendTo(l),l.appendTo(r),this.$el.append(r),n.params&&!e.isEmptyObject(n.params)){var o=e('
Params
').addClass(t("params")).appendTo(r);for(var h in n.params)"function"!=typeof n.params[h]&&o.append('
'+h+'
'+n.params[h]+"
");r.css("cursor","pointer").click((function(){var t=e(this).find("table");t.is(":visible")?t.hide():t.show()}))}}s=e.map(s,(function(e,t){return{label:t,data:e}})).sort((function(e,t){return t.data.duration-e.data.duration}));var u=e('
').addClass(t("params"));e.each(s,(function(e,s){var i;p=Math.min((100*s.data.duration/a.duration).toFixed(2),100),u.append('
'+s.data.count+" x "+s.label+" ("+p+'%)
'+(((i=s.data.duration)<.001?(1e6*i).toFixed()+"μs":i<1?(1e3*i).toFixed(2)+"ms":i.toFixed(2)+"s")+"
"))})),this.$el.append("
").find("li:last").append(u)}}))}}),PhpDebugBar.Widgets.ExceptionsWidget=PhpDebugBar.Widget.extend({className:t("exceptions"),render:function(){this.$list=new l({itemRenderer:function(a,s){if(e("
").addClass(t("message")).text(s.message).appendTo(a),s.file){var i=e("
").addClass(t("filename")).text(s.file+"#"+s.line);s.xdebug_link&&(s.xdebug_link.ajax?e('
').on("click",(function(){e.ajax(s.xdebug_link.url)})).addClass(t("editor-link")).appendTo(i):e('
').addClass(t("editor-link")).appendTo(i)),i.appendTo(a)}if(s.type&&e("
").addClass(t("type")).text(s.type).appendTo(a),s.surrounding_lines){var l=n(s.surrounding_lines.join(""),"php").addClass(t("file")).appendTo(a);s.stack_trace_html||a.click((function(){l.is(":visible")?l.hide():l.show()}))}s.stack_trace_html?e("
").addClass(t("filename")).html(s.stack_trace_html).appendTo(a):s.stack_trace&&s.stack_trace.split("\n").forEach((function(s){var i=e("
");e("
").addClass(t("filename")).text(s).appendTo(i),i.appendTo(a)}))}}),this.$list.$el.appendTo(this.$el),this.bindAttr("data",(function(e){this.$list.set("data",e),1==e.length&&this.$list.$el.children().first().find(t(".file")).show()}))}})}(PhpDebugBar.$);