$(window).on("load",(function(){var t,e=d3.select("#bracket-tree"),n={top:0,right:0,bottom:0,left:0},r=e.node().getBoundingClientRect().width-n.left-n.right,i=r/2,a=600-n.top-n.bottom-5,l=0,o=500,c=e.append("svg"),s=c.attr("width",r+n.left+n.right).attr("height",a+n.top+n.bottom).append("g").attr("transform","translate("+n.left+","+n.top+")"),u=d3.behavior.zoom().scaleExtent([1,2]).on("zoom",(function(){s.attr("transform","translate("+d3.event.translate+") scale("+d3.event.scale+")")}));c.call(u);var d=d3.layout.tree().size([a,r]),f=(d3.svg.diagonal().projection((function(t){return[t.y,t.x]})),function(t,e){var n=h(t.source),r=h(t.target),i=(r.y-n.y)/2;return t.isRight&&(i=-i),"M"+n.y+","+n.x+"H"+(n.y+i)+"V"+r.x+"H"+r.y}),h=function(t){var e=t.y;return t.isRight||(e=t.y-i,e=i-e),{x:t.x,y:e}},g=function(t,e){e=e||[];var n=0,r=t.children?t.children.length:0;for(e.push(t);n