From 1ede4ab8dcf23a789938054e46225309c46a6fa3 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sat, 14 Sep 2013 01:01:34 +0200 Subject: Remove python SVG stuff --- static/pygal/pygal.js | 180 -------------------------------------------------- 1 file changed, 180 deletions(-) delete mode 100644 static/pygal/pygal.js (limited to 'static/pygal') diff --git a/static/pygal/pygal.js b/static/pygal/pygal.js deleted file mode 100644 index 8cc1b21..0000000 --- a/static/pygal/pygal.js +++ /dev/null @@ -1,180 +0,0 @@ -(function(s,m){function $(a){var b=ra[a]={},c,e;a=a.split(/\s+/);c=0;for(e=a.length;cf;f+=2)d||(e-=parseFloat(c.css(a,"padding"+P[f]))||0),e="margin"===d?e+(parseFloat(c.css(a,d+P[f]))||0):e-(parseFloat(c.css(a,"border"+P[f]+"Width"))||0);return e+"px"}e=R(a,b);if(0>e||null==e)e=a.style[b];if(ga.test(e))return e;e=parseFloat(e)||0;if(d)for(;4>f;f+=2)e+=parseFloat(c.css(a,"padding"+P[f]))||0,"padding"!==d&&(e+=parseFloat(c.css(a,"border"+P[f]+"Width"))||0),"margin"===d&&(e+=parseFloat(c.css(a,d+ -P[f]))||0);return e+"px"}function va(a){return function(b,d){"string"!==typeof b&&(d=b,b="*");if(c.isFunction(d))for(var e=b.toLowerCase().split(wa),f=0,g=e.length,k,h;f").appendTo(b),e=d.css("display");d.remove();if("none"===e||""===e){J||(J=r.createElement("iframe"),J.frameBorder=J.width=J.height=0);b.appendChild(J);if(!X||!J.createElement)X=(J.contentWindow||J.contentDocument).document,X.write((c.support.boxModel?"":"")+""),X.close();d=X.createElement(a);X.body.appendChild(d);e=c.css(d,"display");b.removeChild(J)}ja[a]= -e}return ja[a]}function Ba(a){return c.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var r=s.document,ib=s.navigator,jb=s.location,c=function(){function a(){if(!b.isReady){try{r.documentElement.doScroll("left")}catch(c){setTimeout(a,1);return}b.ready()}}var b=function(a,c){return new b.fn.init(a,c,f)},c=s.jQuery,e=s.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,k=/\S/,h=/^\s+/,l=/\s+$/,p=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,q=/^[\],:{}\s]*$/,n=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,kb=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, -t=/(?:^|:|,)(?:\s*\[)+/g,lb=/(webkit)[ \/]([\w.]+)/,mb=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,A=/(mozilla)(?:.*? rv:([\w.]+))?/,x=/-([a-z]|[0-9])/ig,F=/^-ms-/,u=function(a,b){return(b+"").toUpperCase()},y=ib.userAgent,v,H,nb=Object.prototype.toString,ka=Object.prototype.hasOwnProperty,la=Array.prototype.push,Z=Array.prototype.slice,Ca=String.prototype.trim,Da=Array.prototype.indexOf,Ea={};b.fn=b.prototype={constructor:b,init:function(a,c,d){var e;if(!a)return this;if(a.nodeType)return this.context= -this[0]=a,this.length=1,this;if("body"===a&&!c&&r.body)return this.context=r,this[0]=r.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:g.exec(a))&&(e[1]||!c)){if(e[1])return d=(c=c instanceof b?c[0]:c)?c.ownerDocument||c:r,(a=p.exec(a))?b.isPlainObject(c)?(a=[r.createElementNS("http://www.w3.org/2000/svg",a[1])],b.fn.attr.call(a,c,!0)):a=[d.createElementNS("http://www.w3.org/2000/svg",a[1])]:(a=b.buildFragment([e[1]], -[d]),a=(a.cacheable?b.clone(a.fragment):a.fragment).childNodes),b.merge(this,a);if((c=r.getElementById(e[2]))&&c.parentNode){if(c.id!==e[2])return d.find(a);this.length=1;this[0]=c}this.context=r;this.selector=a;return this}return!c||c.jquery?(c||d).find(a):this.constructor(c).find(a)}if(b.isFunction(a))return d.ready(a);a.selector!==m&&(this.selector=a.selector,this.context=a.context);return b.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return Z.call(this, -0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,c,d){var e=this.constructor();b.isArray(a)?la.apply(e,a):b.merge(e,a);e.prevObject=this;e.context=this.context;"find"===c?e.selector=this.selector+(this.selector?" ":"")+d:c&&(e.selector=this.selector+"."+c+"("+d+")");return e},each:function(a,c){return b.each(this,a,c)},ready:function(a){b.bindReady();v.add(a);return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)}, -last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Z.apply(this,arguments),"slice",Z.call(arguments).join(","))},map:function(a){return this.pushStack(b.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:la,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a,c,d,e,f,v=arguments[0]||{},g=1,k=arguments.length,h=!1;"boolean"===typeof v&&(h=v,v=arguments[1]||{},g=2);"object"!== -typeof v&&!b.isFunction(v)&&(v={});k===g&&(v=this,--g);for(;gc?Math.max(0,d+c):c:0;ca.indexOf("compatible")&&A.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}b.extend(!0,a,this);a.superclass=this; -a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(d,e){e&&(e instanceof b&&!(e instanceof a))&&(e=a(e));return b.fn.init.call(this,d,e,c)};a.fn.init.prototype=a.fn;var c=a(r);return a},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Ea["[object "+b+"]"]=b.toLowerCase()});y=b.uaMatch(y);y.browser&&(b.browser[y.browser]=!0,b.browser.version=y.version);b.browser.webkit&&(b.browser.safari=!0);k.test("\u00a0")&&(h=/^[\s\xA0]+/, -l=/[\s\xA0]+$/);f=b(r);r.addEventListener?H=function(){r.removeEventListener("DOMContentLoaded",H,!1);b.ready()}:r.attachEvent&&(H=function(){"complete"===r.readyState&&(r.detachEvent("onreadystatechange",H),b.ready())});return b}(),ra={};c.Callbacks=function(a){a=a?ra[a]||$(a):{};var b=[],d=[],e,f,g,k,h,l,p=function(d){var e,f,g,k;e=0;for(f=d.length;e=g&&a&&c.isFunction(a.promise)?a:c.Deferred(),p=l.promise();if(1e)return null; -a=k?e:0;for(d=k?e+1:g.length;af.indexOf(":")?"on"+f:"",d){if(a.result=m,a.target||(a.target=d),b=null!=b?c.makeArray(b):[],b.unshift(a),l=c.event.special[f]||{},!(l.trigger&&!1===l.trigger.apply(d, -b))){q=[[d,l.bindType||f]];if(!e&&!l.noBubble&&!c.isWindow(d)){p=l.delegateType||f;g=La.test(p+f)?d:d.parentNode;for(h=null;g;g=g.parentNode)q.push([g,p]),h=g;h&&h===d.ownerDocument&&q.push([h.defaultView||h.parentWindow||s,p])}for(h=0;hd&&k.push({elem:this,matches:b.slice(d)});for(h=0;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,k=!1,h=!0,l=/\\/g, -p=/\r\n/g,q=/\W/;[0,0].sort(function(){h=!1;return 0});var n=function(a,b,c,e){c=c||[];var f=b=b||r;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var h,k,l,p,q,m=!0,s=n.isXML(b),u=[],w=a;do if(d.exec(""),h=d.exec(w))if(w=h[3],u.push(h[1]),h[2]){p=h[3];break}while(h);if(1":function(a,b){var c,d="string"===typeof b,e=0,f=a.length;if(d&&!q.test(b))for(b=b.toLowerCase();ec[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a, -b,c,d){var e=b[1],f=t.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||s([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c";c.insertBefore(a,c.firstChild);r.getElementById(b)&&(t.find.ID=function(a,b,c){if("undefined"!==typeof b.getElementById&& -!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:m:[]},t.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=r.createElement("div");a.appendChild(r.createComment(""));0

";if(!(b.querySelectorAll&&0===b.querySelectorAll(".TEST").length)){n=function(b,c,d,e){c=c||r;if(!e&&!n.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b); -if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return A(c.getElementsByTagName(b),d);if(f[2]&&t.find.CLASS&&c.getElementsByClassName)return A(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return A([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return A([g],d)}else return A([],d)}try{return A(c.querySelectorAll(b),d)}catch(k){}}else if(1===c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,h=(g=c.getAttribute("id"))||"__sizzle__", -l=c.parentNode,p=/^\s*[+~]/.test(b);g?h=h.replace(/'/g,"\\$&"):c.setAttribute("id",h);p&&l&&(c=c.parentNode);try{if(!p||l)return A(c.querySelectorAll("[id='"+h+"'] "+b),d)}catch(q){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)n[c]=a[c];b=null}}();(function(){var a=r.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var c=!b.call(r.createElement("div"),"div"),d=!1;try{b.call(r.documentElement,"[test!='']:sizzle")}catch(e){d= -!0}n.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(d||!t.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&11!==a.document.nodeType)return f}}catch(g){}return 0
";a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className.baseVal="e",1!==a.getElementsByClassName("e").length&& -(t.order.splice(1,0,"CLASS"),t.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},a=null))})();n.contains=r.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:r.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var B=function(a,b,c){var d, -e=[],f="";for(b=b.nodeType?[b]:b;d=t.match.PSEUDO.exec(a);)f+=d[0],a=a.replace(t.match.PSEUDO,"");a=t.relative[a]?a+"*":a;d=0;for(var g=b.length;d]*)\/>/ig,Pa=/<([\w:]+)/, -Db=/]","i"),Ra=/checked\s*(?:[^=]|=\s*.checked.)/i,Sa=/\/(java|ecma)script/i,Hb=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"], -area:[1,"",""],_default:[0,"",""]},pa=y(r);D.optgroup=D.option;D.tbody=D.tfoot=D.colgroup=D.caption=D.thead;D.th=D.td;c.support.htmlSerialize||(D._default=[1,"div
","
"]);c.fn.extend({text:function(a){return c.access(this,function(a){return a===m?c.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapAll(a.call(this,b))});if(this[0]){var b= -c(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return c.isFunction(a)?this.each(function(b){c(this).wrapInner(a.call(this,b))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each(function(d){c(this).wrapAll(b?a.call(this,d): -a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a= -c.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c.clean(arguments));return a}},remove:function(a,b){for(var d=0,e;null!=(e=this[d]);d++)if(!a||c.filter(a,[e]).length)!b&&1===e.nodeType&&(c.cleanData(e.getElementsByTagName("*")), -c.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){return c.access(this,function(a){var d=this[0]||{},e=0,f=this.length;if(a===m)return 1===d.nodeType?d.innerHTML.replace(Cb,""):null;if("string"=== -typeof a&&!Fb.test(a)&&(c.support.leadingWhitespace||!oa.test(a))&&!D[(Pa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Oa,"<$1>");try{for(;eh.length&&k===r&&"<"===h.charAt(0)&&!Gb.test(h)&&(c.support.checkClone||!Ra.test(h))&& -(c.support.html5Clone||!Qa.test(h)))f=!0,(g=c.fragments[h])&&1!==g&&(e=g);e||(e=k.createDocumentFragment(),c.clean(a,k,e,d));f&&(c.fragments[h]=g?e:1);return{fragment:e,cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=1===this.length&&this[0].parentNode;if(f&&11===f.nodeType&&1===f.childNodes.length&&1===d.length)return d[b](this[0]),this;for(var f= -0,g=d.length;f")?e=a.cloneNode(!0):(e=r.createElement("div"),pa.appendChild(e),e.innerHTML=a.outerHTML,e=e.firstChild);var k=e;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(1===a.nodeType||11===a.nodeType)&&!c.isXMLDoc(a)){V(a,k);e=G(a);f=G(k);for(g=0;e[g];++g)f[g]&&V(e[g], -f[g])}if(b&&(B(a,k),d)){e=G(a);f=G(k);for(g=0;e[g];++g)B(e[g],f[g])}return k},clean:function(a,b,d,e){var f,g=[];b=b||r;"undefined"===typeof b.createElement&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||r);for(var k=0,h;null!=(h=a[k]);k++)if("number"===typeof h&&(h+=""),h){if("string"===typeof h)if(Eb.test(h)){h=h.replace(Oa,"<$1>");f=(Pa.exec(h)||["",""])[1].toLowerCase();var l=D[f]||D._default,p=l[0],q=b.createElement("div"),n=pa.childNodes;b===r?pa.appendChild(q):y(b).appendChild(q);for(q.innerHTML= -l[1]+h+l[2];p--;)q=q.lastChild;if(!c.support.tbody){p=Db.test(h);l="table"===f&&!p?q.firstChild&&q.firstChild.childNodes:""===l[1]&&!p?q.childNodes:[];for(f=l.length-1;0<=f;--f)c.nodeName(l[f],"tbody")&&!l[f].childNodes.length&&l[f].parentNode.removeChild(l[f])}!c.support.leadingWhitespace&&oa.test(h)&&q.insertBefore(b.createTextNode(oa.exec(h)[0]),q.firstChild);h=q.childNodes;q&&(q.parentNode.removeChild(q),0c;c++)f[a+P[c]+b]=e[c]||e[c-2]||e[0];return f}}});var Ob=/%20/g,gb=/\[\]$/,Wa=/\r?\n/g,Pb=/#.*$/,Qb=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Rb=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Sb=/^(?:GET|HEAD)$/,Tb=/^\/\//,Xa=/\?/,Ub=/)<[^<]*)*<\/script>/gi,Vb=/^(?:select|textarea)/i,wa=/\s+/, -Wb=/([?&])_=[^&]*/,Ya=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Za=c.fn.load,ha={},$a={},N,L,ab=["*/"]+["*"];try{N=jb.href}catch(bc){N=r.createElement("a"),N.href="",N=N.href}L=Ya.exec(N.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if("string"!==typeof a&&Za)return Za.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";b&&(c.isFunction(b)?(d=b,b=m):"object"===typeof b&&(b=c.param(b,c.ajaxSettings.traditional), -e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a,b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?c("
").append(e.replace(Ub,"")).find(f):e));d&&g.each(d,[e,b,a])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Vb.test(this.nodeName)|| -Rb.test(this.type))}).map(function(a,b){var d=c(this).val();return null==d?null:c.isArray(d)?c.map(d,function(a,c){return{name:b.name,value:a.replace(Wa,"\r\n")}}):{name:b.name,value:d.replace(Wa,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.on(b,a)}});c.each(["get","post"],function(a,b){c[b]=function(a,e,f,g){c.isFunction(e)&&(g=g||f,f=e,e=m);return c.ajax({type:b,url:a,data:e,success:f,dataType:g})}}); -c.extend({getScript:function(a,b){return c.get(a,m,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?xa(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);xa(a,b);return a},ajaxSettings:{url:N,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(L[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript", -"*":ab},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":s.String,"text html":!0,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:va(ha),ajaxTransport:va($a),ajax:function(a,b){function d(a,b,d,n){if(2!==A){A=2;x&&clearTimeout(x);s=m;r=n||"";u.readyState=0a||304===a){if(e.ifModified){if(I=u.getResponseHeader("Last-Modified"))c.lastModified[p]=I;if(I=u.getResponseHeader("Etag"))c.etag[p]=I}if(304===a)n="notmodified",q=!0;else try{I=e;I.dataFilter&&(d=I.dataFilter(d, -I.dataType));var J=I.dataTypes;E={};var C,K,P=J.length,N,S=J[0],L,O,T,U,M;for(C=1;Ca&&(a=0);u.status=a;u.statusText=""+(b||n);q?k.resolveWith(f,[t,n,u]):k.rejectWith(f,[u,n,v]);u.statusCode(l);l=m;F&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]);h.fireWith(f,[u,n]);F&&(g.trigger("ajaxComplete",[u,e]),--c.active||c.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=m);b=b||{};var e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,k=c.Deferred(),h=c.Callbacks("once memory"),l=e.statusCode||{},p,q={}, -n={},r,t,s,x,w,A=0,F,y,u={readyState:0,setRequestHeader:function(a,b){if(!A){var c=a.toLowerCase();a=n[c]=n[c]||a;q[a]=b}return this},getAllResponseHeaders:function(){return 2===A?r:null},getResponseHeader:function(a){var b;if(2===A){if(!t)for(t={};b=Qb.exec(r);)t[b[1].toLowerCase()]=b[2];b=t[a.toLowerCase()]}return b===m?null:b},overrideMimeType:function(a){A||(e.mimeType=a);return this},abort:function(a){a=a||"abort";s&&s.abort(a);d(0,a);return this}};k.promise(u);u.success=u.done;u.error=u.fail; -u.complete=h.add;u.statusCode=function(a){if(a){var b;if(2>A)for(b in a)l[b]=[l[b],a[b]];else b=a[u.status],u.then(b,b)}return this};e.url=((a||e.url)+"").replace(Pb,"").replace(Tb,L[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(wa);null==e.crossDomain&&(w=Ya.exec(e.url.toLowerCase()),e.crossDomain=!(!w||!(w[1]!=L[1]||w[2]!=L[2]||(w[3]||("http:"===w[1]?80:443))!=(L[3]||("http:"===L[1]?80:443)))));e.data&&(e.processData&&"string"!==typeof e.data)&&(e.data=c.param(e.data,e.traditional)); -aa(ha,e,b,u);if(2===A)return!1;F=e.global;e.type=e.type.toUpperCase();e.hasContent=!Sb.test(e.type);F&&0===c.active++&&c.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(Xa.test(e.url)?"&":"?")+e.data,delete e.data),p=e.url,!1===e.cache)){w=c.now();var z=e.url.replace(Wb,"$1_="+w);e.url=z+(z===e.url?(Xa.test(e.url)?"&":"?")+"_="+w:"")}(e.data&&e.hasContent&&!1!==e.contentType||b.contentType)&&u.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(p=p||e.url,c.lastModified[p]&& -u.setRequestHeader("If-Modified-Since",c.lastModified[p]),c.etag[p]&&u.setRequestHeader("If-None-Match",c.etag[p]));u.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+ab+"; q=0.01":""):e.accepts["*"]);for(y in e.headers)u.setRequestHeader(y,e.headers[y]);if(e.beforeSend&&(!1===e.beforeSend.call(f,u,e)||2===A))return u.abort(),!1;for(y in{success:1,error:1,complete:1})u[y](e[y]);if(s=aa($a,e,b,u)){u.readyState=1;F&&g.trigger("ajaxSend", -[u,e]);e.async&&0A)d(-1,v);else throw v;}}else d(-1,"No Transport");return u},param:function(a,b){var d=[],e=function(a,b){b=c.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===m&&(b=c.ajaxSettings.traditional);if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)ia(f,a[f],b,e);return d.join("&").replace(Ob, -"+")}});c.extend({active:0,lastModified:{},etag:{}});var Xb=c.now(),ea=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+Xb++}});c.ajaxPrefilter("json jsonp",function(a,b,d){b="string"===typeof a.data&&/^application\/x\-www\-form\-urlencoded/.test(a.contentType);if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(ea.test(a.url)||b&&ea.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=s[f],k=a.url,h=a.data, -l="$1"+f+"$2";!1!==a.jsonp&&(k=k.replace(ea,l),a.url===k&&(b&&(h=h.replace(ea,l)),a.data===h&&(k+=(/\?/.test(k)?"&":"?")+a.jsonp+"="+f)));a.url=k;a.data=h;s[f]=function(a){e=[a]};d.always(function(){s[f]=g;if(e&&c.isFunction(g))s[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/}, -converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){a.cache===m&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=r.head||r.getElementsByTagName("head")[0]||r.documentElement;return{send:function(e,f){b=r.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,e){if(e||!b.readyState||/loaded|complete/.test(b.readyState))b.onload= -b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b),b=m,e||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var qa=s.ActiveXObject?function(){for(var a in Y)Y[a](0,1)}:!1,Yb=0,Y;c.ajaxSettings.xhr=s.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&ya()))a:{try{a=new s.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:ya;(function(a){c.extend(c.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&& -c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,k;a.username?f.open(a.type,a.url,a.async,a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(k in a.xhrFields)f[k]=a.xhrFields[k];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(k in d)f.setRequestHeader(k,d[k])}catch(h){}f.send(a.hasContent&&a.data||null);b=function(d, -h){var k,n,r,t,s;try{if(b&&(h||4===f.readyState))if(b=m,g&&(f.onreadystatechange=c.noop,qa&&delete Y[g]),h)4!==f.readyState&&f.abort();else{k=f.status;r=f.getAllResponseHeaders();t={};if((s=f.responseXML)&&s.documentElement)t.xml=s;try{t.text=f.responseText}catch(x){}try{n=f.statusText}catch(w){n=""}!k&&a.isLocal&&!a.crossDomain?k=t.text?200:404:1223===k&&(k=204)}}catch(F){h||e(-1,F)}t&&e(k,n,t,r)};!a.async||4===f.readyState?b():(g=++Yb,qa&&(Y||(Y={},c(s).unload(qa)),Y[g]=b),f.onreadystatechange= -b)},abort:function(){b&&b(0,1)}}}});var ja={},J,X,Zb=/^(?:toggle|show|hide)$/,$b=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,fa,ca=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ba;c.fn.extend({show:function(a,b,d){if(a||0===a)return this.animate(W("show",3),a,b,d);d=0;for(var e=this.length;d=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(b in g.animatedProperties)!0!==g.animatedProperties[b]&&(e=!1);if(e){null!=g.overflow&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]});g.hide&&c(f).hide();if(g.hide||g.show)for(b in g.animatedProperties)c.style(f, -b,g.orig[b]),c.removeData(f,"fxshow"+b,!0),c.removeData(f,"toggle"+b,!0);if(a=g.complete)g.complete=!1,a.call(f)}return!1}Infinity==g.duration?this.now=d:(a=d-this.startTime,this.state=a/g.duration,this.pos=c.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return!0}};c.extend(c.fx,{tick:function(){for(var a,b=c.timers,d=0;d=b[e]?b[d]:Math.max(a.body[e],b[e],a.body[f],b[f]);if(g===m)return a=c.css(a,b),b=parseFloat(a),c.isNumeric(b)?b:a;c(a).css(b,g)},b,a,arguments.length,null)}});s.jQuerySvg=s.$vg=c;"function"===typeof define&&(define.amd&&define.amd.jQuery)&&define("jquery",[],function(){return c})})(window);(function(){var s,m,$,O;O=0;$=/translate\((\d+)[ ,]+(\d+)\)/;s=function(m){return($.exec(m.attr("transform"))||[]).slice(1)};m=function(m){var Q,C;$vg(".text-overlay .series",m).hide();$vg(".reactive",m).hover(function(){return $vg(this).addClass("active")},function(){return $vg(this).removeClass("active")});$vg(".activate-serie",m).hover(function(){var s;s=this.id.replace("activate-serie-","");$vg(".text-overlay .serie-"+s,m).show();return $vg(".serie-"+s+" .reactive",m).addClass("active")},function(){var s; -s=this.id.replace("activate-serie-","");$vg(".text-overlay .serie-"+s,m).hide();return $vg(".serie-"+s+" .reactive",m).removeClass("active")});$vg(".tooltip-trigger",m).hover(function(){return Q($vg(this))},function(){return C()});Q=function(x){var z,y,B,C,G,Q,M;clearTimeout(O);C=$vg("#tooltip",m).css({opacity:1});B=C.find("text");z=C.find("tspan.label");G=C.find("tspan.value");y=C.find("rect");x.siblings(".tooltip").size()?(z.text(x.siblings(".tooltip").text()),G.text("")):(z.text(x.siblings(".label").text()), -G.text(x.siblings(".value").text()));M=x.siblings(".xlink").text()||null;Q=x.parent().attr("target");M&&C.find("a").attr("href",M).attr("target",Q);B.attr("x",5);B.attr("y",5+this.config.tooltip_font_size);G.attr("x",5);G.attr("dy",z.text()?this.config.tooltip_font_size+5:0);z=B.width()+10;B=B.height()+10;y.attr("width",z);y.attr("height",B);y=x.siblings(".x");G=x.siblings(".y");x=parseInt(y.text());y.hasClass("centered")?x-=z/2:y.hasClass("left")&&(x-=z);y=parseInt(G.text());G.hasClass("centered")? -y-=B/2:G.hasClass("top")&&(y-=B);z=s(C);B=z[0];z=z[1];if(!(B===x&&z===y))return C.attr("transform","translate("+x+" "+y+")")};return C=function(){return O=setTimeout(function(){return $vg("#tooltip",m).css({opacity:0})},1E3)}};this.init_svg=function(s){return m($vg(s))};$vg(function(){var s;s=$vg(".pygal-chart");return s.size()?s.each(function(){return init_svg(this)}):m()})}).call(this); -- cgit v1.2.3-70-g09d2