/*! d3binding - v0.0.1 - 2012-12-04 * https://github.com/tenntenn/d3binding * Copyright (c) 2012 ; Licensed MIT */ (function(e,t){e.sb=e.sb||{},e.sb.d3=t()})(this,function(){var e,t,n;return function(r){function i(e,t){var n,r,i,s,o,u,a,f,l,c,h=t&&t.split("/"),p=g.map,d=p&&p["*"]||{};if(e&&e.charAt(0)==="."&&t){h=h.slice(0,h.length-1),e=h.concat(e.split("/"));for(f=0;f0&&(e.splice(f-1,2),f-=2)}}e=e.join("/")}if((h||d)&&p){n=e.split("/");for(f=n.length;f>0;f-=1){r=n.slice(0,f).join("/");if(h)for(l=h.length;l>0;l-=1){i=p[h.slice(0,l).join("/")];if(i){i=i[r];if(i){s=i,o=f;break}}}if(s)break;!u&&d&&d[r]&&(u=d[r],a=f)}!s&&u&&(s=u,o=a),s&&(n.splice(0,o,s),e=n.join("/"))}return e}function s(e,t){return function(){return h.apply(r,b.call(arguments,0).concat([e,t]))}}function o(e){return function(t){return i(t,e)}}function u(e){return function(t){v[e]=t}}function a(e){if(m.hasOwnProperty(e)){var t=m[e];delete m[e],y[e]=!0,c.apply(r,t)}if(!v.hasOwnProperty(e)&&!y.hasOwnProperty(e))throw new Error("No "+e);return v[e]}function f(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function l(e){return function(){return g&&g.config&&g.config[e]||{}}}var c,h,p,d,v={},m={},g={},y={},b=[].slice;p=function(e,t){var n,r=f(e),s=r[0];return e=r[1],s&&(s=i(s,t),n=a(s)),s?n&&n.normalize?e=n.normalize(e,o(t)):e=i(e,t):(e=i(e,t),r=f(e),s=r[0],e=r[1],s&&(n=a(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},d={require:function(e){return s(e)},exports:function(e){var t=v[e];return typeof t!="undefined"?t:v[e]={}},module:function(e){return{id:e,uri:"",exports:v[e],config:l(e)}}},c=function(e,t,n,i){var o,f,l,c,h,g=[],b;i=i||e;if(typeof n=="function"){t=!t.length&&n.length?["require","exports","module"]:t;for(h=0;h