if(typeof PhpDebugBar>"u"){var PhpDebugBar={};PhpDebugBar.$=jQuery}(function(n){typeof localStorage>"u"&&(localStorage={setItem:function(t,e){},getItem:function(t){return null}}),typeof PhpDebugBar.utils>"u"&&(PhpDebugBar.utils={});var g=PhpDebugBar.utils.getDictValue=function(t,e,i){for(var s=t,r=e.split("."),o=0;o-1){for(var i=t.split(" "),s=[],r=0,o=i.length;r"),this.className&&this.$el.addClass(this.className),this.initialize.apply(this,[t||{}]),this.render.apply(this)};n.extend(l.prototype,{tagName:"div",className:null,defaults:{},initialize:function(t){this.set(t)},render:function(){},set:function(t,e){if(typeof t!="string"){for(var i in t)this.set(i,t[i]);return}if(this._attributes[t]=e,typeof this._boundAttributes[t]<"u")for(var s=0,r=this._boundAttributes[t].length;s"u"&&(this._boundAttributes[t]=[]),typeof e=="object"){var r=e;e=function(o){r.text(o||"")}}this._boundAttributes[t].push(e),this.has(t)&&e.apply(this,[this._attributes[t]])}}),l.extend=function(t){var e=this,i=function(){return e.apply(this,arguments)};n.extend(i,e);var s=function(){this.constructor=i};return s.prototype=e.prototype,i.prototype=new s,n.extend(i.prototype,t),i.__super__=e.prototype,i};var f=l.extend({className:a("panel"),render:function(){this.$tab=n("").addClass(a("tab")),this.$icon=n("").appendTo(this.$tab),this.bindAttr("icon",function(t){t?this.$icon.attr("class","phpdebugbar-fa phpdebugbar-fa-"+t):this.$icon.attr("class","")}),this.bindAttr("title",n("").addClass(a("text")).appendTo(this.$tab)),this.$badge=n("").addClass(a("badge")).appendTo(this.$tab),this.bindAttr("badge",function(t){t!==null?(this.$badge.text(t),this.$badge.addClass(a("visible"))):this.$badge.removeClass(a("visible"))}),this.bindAttr("widget",function(t){this.$el.empty().append(t.$el)}),this.bindAttr("data",function(t){this.has("widget")&&(this.get("widget").set("data",t),n.isEmptyObject(t)||this.$tab.show())})}}),c=l.extend({tagName:"span",className:a("indicator"),render:function(){this.$icon=n("").appendTo(this.$el),this.bindAttr("icon",function(t){t?this.$icon.attr("class","phpdebugbar-fa phpdebugbar-fa-"+t):this.$icon.attr("class","")}),this.bindAttr(["title","data"],n("").addClass(a("text")).appendTo(this.$el)),this.$tooltip=n("").addClass(a("tooltip disabled")).appendTo(this.$el),this.bindAttr("tooltip",function(t){t?this.$tooltip.text(t).removeClass(a("disabled")):this.$tooltip.addClass(a("disabled"))})}}),b=PhpDebugBar.DatasetTitleFormater=function(t){this.debugbar=t};n.extend(b.prototype,{format:function(t,e,i,r){i?i=" "+i:i="";var r=r||u(this.debugbar.datasets);if(typeof e.__meta>"u")return"#"+r+i;var o=e.__meta.uri.split("/"),h=o.pop();h||(h=(o.pop()||"")+"/"),o.length&&!isNaN(h)&&(h=o.pop()+"/"+h);var d=150;h.length>d&&(h=h.substr(0,d)+"...");var p="#"+r+" "+h+i+" ("+e.__meta.datetime.split(" ")[1]+")";return p}});var m=PhpDebugBar.DebugBar=l.extend({className:"phpdebugbar "+a("minimized"),options:{bodyMarginBottom:!0,bodyMarginBottomHeight:0},initialize:function(){this.controls={},this.dataMap={},this.datasets={},this.firstTabName=null,this.activePanelName=null,this.activeDatasetId=null,this.hideEmptyTabs=!1,this.datesetTitleFormater=new b(this),this.options.bodyMarginBottomHeight=parseInt(n("body").css("margin-bottom"));try{this.isIframe=window.self!==window.top&&window.top.phpdebugbar}catch{this.isIframe=!1}this.registerResizeHandler()},registerResizeHandler:function(){if(!(typeof this.resize.bind>"u"||this.isIframe)){var t=this.resize.bind(this);this.respCSSSize=0,n(window).resize(t),setTimeout(t,20)}},resize:function(){var t=this.respCSSSize;this.respCSSSize==0&&this.$header.find("> *:visible").each(function(){t+=n(this).outerWidth(!0)});var e=this.$header.width(),i=a("mini-design"),s=this.$header.hasClass(i);e<=t&&!s?(this.respCSSSize=t,this.$header.addClass(i)):t").addClass(a("drag-capture")).appendTo(this.$el),this.$resizehdle=n("
").addClass(a("resize-handle")).appendTo(this.$el),this.$header=n("
").addClass(a("header")).appendTo(this.$el),this.$headerBtn=n("").addClass(a("restore-btn")).appendTo(this.$header),this.$headerBtn.click(function(){t.close()}),this.$headerLeft=n("
").addClass(a("header-left")).appendTo(this.$header),this.$headerRight=n("
").addClass(a("header-right")).appendTo(this.$header);var e=this.$body=n("
").addClass(a("body")).appendTo(this.$el);this.recomputeBottomOffset();var i,s;this.$resizehdle.on("mousedown",function(h){s=e.height(),i=h.pageY,e.parents().on("mousemove",r).on("mouseup",o),t.$dragCapture.show(),h.preventDefault()});var r=function(h){var d=s+(i-h.pageY);t.setHeight(d)},o=function(){e.parents().off("mousemove",r).off("mouseup",o),t.$dragCapture.hide()};this.$closebtn=n("").addClass(a("close-btn")).appendTo(this.$headerRight),this.$closebtn.click(function(){t.close()}),this.$minimizebtn=n("").addClass(a("minimize-btn")).appendTo(this.$headerRight),this.$minimizebtn.click(function(){t.minimize()}),this.$maximizebtn=n("").addClass(a("maximize-btn")).appendTo(this.$headerRight),this.$maximizebtn.click(function(){t.restore()}),this.$restorebtn=n("").addClass(a("restore-btn")).hide().appendTo(this.$el),this.$restorebtn.click(function(){t.restore()}),this.$openbtn=n("").addClass(a("open-btn")).appendTo(this.$headerRight).hide(),this.$openbtn.click(function(){t.openHandler.show(function(h,d){t.addDataSet(d,h,"(opened)"),t.showTab()})}),this.$datasets=n("