=e-1){var s=u[n];return s.x0=i,s.y0=o,s.x1=a,void(s.y1=c)}for(var l=f[n],h=r/2+l,d=n+1,p=e-1;d>>1;f[g]c-o){var _=r?(i*v+a*y)/r:a;t(n,d,y,i,o,_,c),t(d,e,v,_,o,a,c)}else{var b=r?(o*v+c*y)/r:c;t(n,d,y,i,o,a,b),t(d,e,v,i,b,a,c)}}(0,c,t.value,n,e,r,i)},t.treemapDice=qd,t.treemapResquarify=tp,t.treemapSlice=Zd,t.treemapSliceDice=function(t,n,e,r,i){(1&t.depth?Zd:qd)(t,n,e,r,i)},t.treemapSquarify=Jd,t.tsv=ju,t.tsvFormat=Pu,t.tsvFormatBody=zu,t.tsvFormatRow=Ru,t.tsvFormatRows=Du,t.tsvFormatValue=Fu,t.tsvParse=Nu,t.tsvParseRows=Cu,t.union=function(...t){const n=new E;for(const e of t)for(const t of e)n.add(t);return n},t.utcDay=ny,t.utcDays=ey,t.utcFriday=fy,t.utcFridays=yy,t.utcHour=Qg,t.utcHours=Jg,t.utcMillisecond=ug,t.utcMilliseconds=cg,t.utcMinute=Wg,t.utcMinutes=Zg,t.utcMonday=oy,t.utcMondays=hy,t.utcMonth=by,t.utcMonths=my,t.utcSaturday=sy,t.utcSaturdays=vy,t.utcSecond=yg,t.utcSeconds=vg,t.utcSunday=iy,t.utcSundays=ly,t.utcThursday=cy,t.utcThursdays=gy,t.utcTickInterval=Sy,t.utcTicks=Ty,t.utcTuesday=ay,t.utcTuesdays=dy,t.utcWednesday=uy,t.utcWednesdays=py,t.utcWeek=iy,t.utcWeeks=ly,t.utcYear=wy,t.utcYears=My,t.variance=w,t.version="7.6.1",t.window=hn,t.xml=Xu,t.zip=function(){return vt(arguments)},t.zoom=function(){var t,n,e,r=Hx,i=Xx,o=Zx,a=Vx,u=Wx,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Qr,h=Pt("start","zoom","end"),d=500,p=0,g=10;function y(t){t.property("__zoom",Gx).on("wheel.zoom",M,{passive:!1}).on("mousedown.zoom",A).on("dblclick.zoom",T).filter(u).on("touchstart.zoom",S).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",k).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(t,n){return(n=Math.max(c[0],Math.min(c[1],n)))===t.k?t:new Bx(n,t.x,t.y)}function _(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Bx(t.k,r,i)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function m(t,n,e,r){t.on("start.zoom",(function(){x(this,arguments).event(r).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(r).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(r),u=i.apply(t,o),c=null==e?b(u):"function"==typeof e?e.apply(t,o):e,f=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),s=t.__zoom,h="function"==typeof n?n.apply(t,o):n,d=l(s.invert(c).concat(f/s.k),h.invert(c).concat(f/h.k));return function(t){if(1===t)t=h;else{var n=d(t),e=f/n[2];t=new Bx(e,c[0]-n[0]*e,c[1]-n[1]*e)}a.zoom(null,t)}}))}function x(t,n,e){return!e&&t.__zooming||new w(t,n)}function w(t,n){this.that=t,this.args=n,this.active=0,this.sourceEvent=null,this.extent=i.apply(t,n),this.taps=0}function M(t,...n){if(r.apply(this,arguments)){var e=x(this,n).event(t),i=this.__zoom,u=Math.max(c[0],Math.min(c[1],i.k*Math.pow(2,a.apply(this,arguments)))),s=Jn(t);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=i.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(i.k===u)return;e.mouse=[s,i.invert(s)],Ri(this),e.start()}$x(t),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),150),e.zoom("mouse",o(_(v(i,u),e.mouse[0],e.mouse[1]),e.extent,f))}}function A(t,...n){if(!e&&r.apply(this,arguments)){var i=t.currentTarget,a=x(this,n,!0).event(t),u=Vn(t.view).on("mousemove.zoom",(function(t){if($x(t),!a.moved){var n=t.clientX-s,e=t.clientY-l;a.moved=n*n+e*e>p}a.event(t).zoom("mouse",o(_(a.that.__zoom,a.mouse[0]=Jn(t,i),a.mouse[1]),a.extent,f))}),!0).on("mouseup.zoom",(function(t){u.on("mousemove.zoom mouseup.zoom",null),oe(t.view,a.moved),$x(t),a.event(t).end()}),!0),c=Jn(t,i),s=t.clientX,l=t.clientY;ie(t.view),jx(t),a.mouse=[c,this.__zoom.invert(c)],Ri(this),a.start()}}function T(t,...n){if(r.apply(this,arguments)){var e=this.__zoom,a=Jn(t.changedTouches?t.changedTouches[0]:t,this),u=e.invert(a),c=e.k*(t.shiftKey?.5:2),l=o(_(v(e,c),a,u),i.apply(this,n),f);$x(t),s>0?Vn(this).transition().duration(s).call(m,l,a,t):Vn(this).call(y.transform,l,a,t)}}function S(e,...i){if(r.apply(this,arguments)){var o,a,u,c,f=e.touches,s=f.length,l=x(this,i,e.changedTouches.length===s).event(e);for(jx(e),a=0;a+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(D=O.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(t){H={apply:D.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(p(t),t=t||d,g)){if(11!==w&&(f=Z.exec(e)))if(o=f[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===w&&(U.test(e)||z.test(e))){for((m=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+xe(h[s]);y=h.join(",")}try{return H.apply(r,m.querySelectorAll(y)),r}catch(t){A(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=d&&9===a.nodeType&&a.documentElement&&(h=(d=a).documentElement,g=!o(d),w!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(d.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",F)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==d||e.ownerDocument==w&&x(w,e)?-1:t==d||t.ownerDocument==w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==d?-1:t==d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0}),d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return h(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return-1)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),N.test(r[1])&&w.isPlainObject(t))for(r in t)h(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=v.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):h(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,D=w(v);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=v.createDocumentFragment().appendChild(v.createElement("div")),(fe=v.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),d.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",d.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",d.option=!!ce.lastChild;var ge={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||w.expando+"_"+Ct.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Vt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Vt,"$1"+i):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||w.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){void 0===o?w(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(i)),a&&h(o)&&o(a[0]),a=o=void 0})),"script"})),d.createHTMLDocument=((Ut=v.implementation.createHTMLDocument("").body).innerHTML="",2===Ut.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&w(o).remove(),w.merge([],i.childNodes)));var r,i,o},w.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(w.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=w.css(e,"position"),c=w(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=w.css(e,"top"),u=w.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),h(t)&&(t=t.call(e,n,w.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),i.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-w.css(r,"marginTop",!0),left:t.left-i.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||re}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return B(this,(function(e,r,i){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=_e(d.pixelPosition,(function(e,n){if(n)return n=Be(e,t),Pe.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){w.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return B(this,(function(t,n,i){var o;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?w.css(t,n,s):w.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return 0t;t++)if(void 0!==this[t])return this[t]},f=function(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]},c=Object.prototype.toString,h=String,d=Array.isArray||function(t){return t instanceof Array||"[object Array]"==c.call(t)};eve=function(t,r){var i,a=n,o=Array.prototype.slice.call(arguments,2),u=eve.listeners(t),c=0,h=[],d={},p=[],g=e;p.firstDefined=l,p.lastDefined=f,e=t,n=0;for(var v=0,m=u.length;m>v;v++)"zIndex"in u[v]&&(h.push(u[v].zIndex),u[v].zIndex<0&&(d[u[v].zIndex]=u[v]));for(h.sort(s);h[c]<0;)if(i=d[h[c++]],p.push(i.apply(r,o)),n)return n=a,p;for(v=0;m>v;v++)if("zIndex"in(i=u[v]))if(i.zIndex==h[c]){if(p.push(i.apply(r,o)),n)break;do{if((i=d[h[++c]])&&p.push(i.apply(r,o)),n)break}while(i)}else d[i.zIndex]=i;else if(p.push(i.apply(r,o)),n)break;return n=a,e=g,p},eve._events=u,eve.listeners=function(t){var e,n,r,i,o,s,l,f,c=d(t)?t:t.split(a),h=u,p=[h],g=[];for(i=0,o=c.length;o>i;i++){for(f=[],s=0,l=p.length;l>s;s++)for(n=[(h=p[s].n)[c[i]],h["*"]],r=2;r--;)(e=n[r])&&(f.push(e),g=g.concat(e.f||[]));p=f}return g},eve.separator=function(t){t?(t="["+(t=h(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",a=new RegExp(t)):a=/[\.\/]/},eve.on=function(t,e){if("function"!=typeof e)return function(){};for(var n=d(t)?d(t[0])?t:[t]:h(t).split(o),r=0,i=n.length;i>r;r++)!function(t){for(var n,r=d(t)?t:h(t).split(a),i=u,o=0,s=r.length;s>o;o++)i=(i=i.n).hasOwnProperty(r[o])&&i[r[o]]||(i[r[o]]={n:{}});for(i.f=i.f||[],o=0,s=i.f.length;s>o;o++)if(i.f[o]==e){n=!0;break}!n&&i.f.push(e)}(n[r]);return function(t){+t==+t&&(e.zIndex=+t)}},eve.f=function(t){var e=[].slice.call(arguments,1);return function(){eve.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},eve.stop=function(){n=1},eve.nt=function(t){var n=d(e)?e.join("."):e;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(n):n},eve.nts=function(){return d(e)?e:e.split(a)},eve.off=eve.unbind=function(t,e){if(t){var n=d(t)?d(t[0])?t:[t]:h(t).split(o);if(n.length>1)for(var r=0,s=n.length;s>r;r++)eve.off(n[r],e);else{n=d(t)?t:h(t).split(a);var l,f,c,p,g,v=[u],m=[];for(r=0,s=n.length;s>r;r++)for(p=0;pr;r++)for(l=v[r];l.n;){if(e){if(l.f){for(p=0,g=l.f.length;g>p;p++)if(l.f[p]==e){l.f.splice(p,1);break}!l.f.length&&delete l.f}for(f in l.n)if(l.n[i](f)&&l.n[f].f){var y=l.n[f].f;for(p=0,g=y.length;g>p;p++)if(y[p]==e){y.splice(p,1);break}!y.length&&delete l.n[f].f}}else for(f in delete l.f,l.n)l.n[i](f)&&l.n[f].f&&delete l.n[f].f;l=l.n}t:for(r=0,s=m.length;s>r;r++){for(f in(l=m[r]).n[l.name].f)continue t;for(f in l.n[l.name].n)continue t;delete l.n[l.name]}}}else eve._events=u={n:{}}},eve.once=function(t,e){var n=function(){return eve.off(t,n),e.apply(this,arguments)};return eve.on(t,n)},eve.version=r,eve.toString=function(){return"You are running Eve "+r},"undefined"!=typeof module&&module.exports?module.exports=eve:"function"==typeof define&&define.amd?define("eve",[],(function(){return eve})):t.eve=eve}(this),function(t,e){if("function"==typeof define&&define.amd)define(["eve"],(function(n){return e(t,n)}));else if("undefined"!=typeof exports){var n=require("eve");module.exports=e(t,n)}else e(t,t.eve)}(window||this,(function(t,e){var n=function(e){var n,r={},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16,(new Date).getTime()),!0},a=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},o=0,s="M"+(+new Date).toString(36),u=function(){return s+(o++).toString(36)},l=Date.now||function(){return+new Date},f=function(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t},c=function(t){return null==t?this.spd:void(this.spd=t)},h=function(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))},d=function(){var t=this;delete r[t.id],t.update(),e("mina.stop."+t.id,t)},p=function(){var t=this;t.pdif||(delete r[t.id],t.update(),t.pdif=t.get()-t.b)},g=function(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,r[t.id]=t,m())},v=function(){var t,e=this;if(a(e.start)){t=[];for(var n=0,r=e.start.length;r>n;n++)t[n]=+e.start[n]+(e.end[n]-e.start[n])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)},m=function(t){if(t){var a=0;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o],u=s.get();a++,s.s=(u-s.b)/(s.dur/s.spd),s.s>=1&&(delete r[o],s.s=1,a--,function(t){setTimeout((function(){e("mina.finish."+t.id,t)}))}(s)),s.update()}n=!!a&&i(m)}else n||(n=i(m))},y=function(t,e,n,i,a,o,s){var l={id:u(),start:t,end:e,b:n,s:0,dur:i-n,spd:1,get:a,set:o,easing:s||y.linear,status:f,speed:c,duration:h,stop:d,pause:p,resume:g,update:v};r[l.id]=l;var x,b=0;for(x in r)if(r.hasOwnProperty(x)&&2==++b)break;return 1==b&&m(),l};return y.time=l,y.getById=function(t){return r[t]||null},y.linear=function(t){return t},y.easeout=function(t){return Math.pow(t,1.7)},y.easein=function(t){return Math.pow(t,.48)},y.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),r=n-e,i=-n-e,a=Math.pow(Math.abs(r),1/3)*(0>r?-1:1)+Math.pow(Math.abs(i),1/3)*(0>i?-1:1)+.5;return 3*(1-a)*a*a+a*a*a},y.backin=function(t){if(1==t)return 1;var e=1.70158;return t*t*((e+1)*t-e)},y.backout=function(t){if(0==t)return 0;var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},y.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},y.bounce=function(t){var e=7.5625,n=2.75;return 1/n>t?e*t*t:2/n>t?e*(t-=1.5/n)*t+.75:2.5/n>t?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},t.mina=y,y}(void 0===e?function(){}:e),r=function(t){function n(t,e){if(t){if(t.nodeType)return d(t);if(i(t,"array")&&n.set)return n.set.apply(n,t);if(t instanceof l)return t;if(null==e)try{return d(t=v.doc.querySelector(String(t)))}catch(t){return null}}return new h(t=null==t?"100%":t,e=null==e?"100%":e)}function r(t,e){if(e){if("#text"==t&&(t=v.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=v.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=r(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(q,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(O,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType){for(var n in e)if(e[m](n)){var i=y(e[n]);i?"xlink:"==n.substring(0,6)?t.setAttributeNS(q,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(O,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n)}}else"text"in e&&(t.nodeValue=e.text)}else t=v.doc.createElementNS(O,t);return t}function i(t,e){return"finite"==(e=y.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||S.call(t).slice(8,-1).toLowerCase()==e}function a(t,e,n){return function r(){var i=Array.prototype.slice.call(arguments,0),a=i.join("␀"),o=r.cache=r.cache||{},s=r.count=r.count||[];return o[m](a)?(function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(s,a),n?n(o[a]):o[a]):(s.length>=1e3&&delete o[s.shift()],s.push(a),o[a]=t.apply(e,i),n?n(o[a]):o[a])}}function o(t){return t%360*A/180}function s(t){return t.node.ownerSVGElement&&d(t.node.ownerSVGElement)||n.select("svg")}function u(t){i(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,r=this.node;this[e];)delete this[e++];for(e=0;en;n++){var i={type:t[n].type,attr:t[n].attr()},a=t[n].children();e.push(i),a.length&&p(a,i.childNodes=[])}}n.version="0.5.1",n.toString=function(){return"Snap v"+this.version},n._={};var v={win:t.window,doc:t.window.document};n._.glob=v;var m="hasOwnProperty",y=String,x=parseFloat,b=parseInt,F=Math,C=F.max,w=F.min,B=F.abs,A=(F.pow,F.PI),E=(F.round,""),S=Object.prototype.toString,k=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,D=(n._.separator=/[,\s]+/,/[\s]*,[\s]*/),_={hs:1,rg:1},T=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,M=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,N=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,j=0,P="S"+(+new Date).toString(36),L=function(t){return(t&&t.type?t.type:E)+P+(j++).toString(36)},q="http://www.w3.org/1999/xlink",O="http://www.w3.org/2000/svg",V={};n.url=function(t){return"url('#"+t+"')"},n._.$=r,n._.id=L,n.format=function(){var t=/\{([^\}]+)\}/g,e=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,n=function(t,n,r){var i=r;return n.replace(e,(function(t,e,n,r,a){e=e||r,i&&(e in i&&(i=i[e]),"function"==typeof i&&a&&(i=i()))})),i=(null==i||i==r?t:i)+""};return function(e,r){return y(e).replace(t,(function(t,e){return n(t,e,r)}))}}(),n._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var r in e)e[m](r)&&(n[r]=t(e[r]));return n},n._.cacher=a,n.rad=o,n.deg=function(t){return 180*t/A%360},n.sin=function(t){return F.sin(n.rad(t))},n.tan=function(t){return F.tan(n.rad(t))},n.cos=function(t){return F.cos(n.rad(t))},n.asin=function(t){return n.deg(F.asin(t))},n.acos=function(t){return n.deg(F.acos(t))},n.atan=function(t){return n.deg(F.atan(t))},n.atan2=function(t){return n.deg(F.atan2(t))},n.angle=function t(e,n,r,i,a,o){if(null==a){var s=e-r,u=n-i;return s||u?(180+180*F.atan2(-u,-s)/A+360)%360:0}return t(e,n,a,o)-t(r,i,a,o)},n.len=function(t,e,r,i){return Math.sqrt(n.len2(t,e,r,i))},n.len2=function(t,e,n,r){return(t-n)*(t-n)+(e-r)*(e-r)},n.closestPoint=function(t,e,n){function r(t){var r=t.x-e,i=t.y-n;return r*r+i*i}for(var i,a,o,s,u=t.node,l=u.getTotalLength(),f=l/u.pathSegList.numberOfItems*.125,c=1/0,h=0;l>=h;h+=f)(s=r(o=u.getPointAtLength(h))).5;){var d,p,g,v,m,y;(g=a-f)>=0&&(m=r(d=u.getPointAtLength(g)))a)return e-a;if(a>t-n)return e-a+t}return e},n.getRGB=a((function(t){if(!t||(t=y(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:I};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:I};if(!(_[m](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=G(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:I};var e,r,a,o,s,u,l=t.match(k);return l?(l[2]&&(a=b(l[2].substring(5),16),r=b(l[2].substring(3,5),16),e=b(l[2].substring(1,3),16)),l[3]&&(a=b((s=l[3].charAt(3))+s,16),r=b((s=l[3].charAt(2))+s,16),e=b((s=l[3].charAt(1))+s,16)),l[4]&&(u=l[4].split(D),e=x(u[0]),"%"==u[0].slice(-1)&&(e*=2.55),r=x(u[1]),"%"==u[1].slice(-1)&&(r*=2.55),a=x(u[2]),"%"==u[2].slice(-1)&&(a*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(o=x(u[3])),u[3]&&"%"==u[3].slice(-1)&&(o/=100)),l[5]?(u=l[5].split(D),e=x(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=x(u[1]),"%"==u[1].slice(-1)&&(r/=100),a=x(u[2]),"%"==u[2].slice(-1)&&(a/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(o=x(u[3])),u[3]&&"%"==u[3].slice(-1)&&(o/=100),n.hsb2rgb(e,r,a,o)):l[6]?(u=l[6].split(D),e=x(u[0]),"%"==u[0].slice(-1)&&(e/=100),r=x(u[1]),"%"==u[1].slice(-1)&&(r/=100),a=x(u[2]),"%"==u[2].slice(-1)&&(a/=100),("deg"==u[0].slice(-3)||"°"==u[0].slice(-1))&&(e/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(o=x(u[3])),u[3]&&"%"==u[3].slice(-1)&&(o/=100),n.hsl2rgb(e,r,a,o)):(e=w(F.round(e),255),r=w(F.round(r),255),a=w(F.round(a),255),o=w(C(o,0),1),(l={r:e,g:r,b:a,toString:I}).hex="#"+(16777216|a|r<<8|e<<16).toString(16).slice(1),l.opacity=i(o,"finite")?o:1,l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:I}}),n),n.hsb=a((function(t,e,r){return n.hsb2rgb(t,e,r).hex})),n.hsl=a((function(t,e,r){return n.hsl2rgb(t,e,r).hex})),n.rgb=a((function(t,e,n,r){if(i(r,"finite")){var a=F.round;return"rgba("+[a(t),a(e),a(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)}));var G=function(t){var e=v.doc.getElementsByTagName("head")[0]||v.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(G=a((function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;var r=v.doc.defaultView.getComputedStyle(e,E).getPropertyValue("color");return r==n?null:r})))(t)},z=function(){return"hsb("+[this.h,this.s,this.b]+")"},R=function(){return"hsl("+[this.h,this.s,this.l]+")"},I=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},U=function(t,e,r){if(null==e&&i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,e=t.g,t=t.r),null==e&&i(t,string)){var a=n.getRGB(t);t=a.r,e=a.g,r=a.b}return(t>1||e>1||r>1)&&(t/=255,e/=255,r/=255),[t,e,r]},X=function(t,e,r,a){var o={r:t=F.round(255*t),g:e=F.round(255*e),b:r=F.round(255*r),opacity:i(a,"finite")?a:1,hex:n.rgb(t,e,r),toString:I};return i(a,"finite")&&(o.opacity=a),o};n.color=function(t){var e;return i(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=n.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):i(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=n.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(i(t,"string")&&(t=n.getRGB(t)),i(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=n.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=n.rgb2hsb(t),t.v=e.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=I,t},n.hsb2rgb=function(t,e,n,r){var a,o,s,u,l;return i(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),u=(l=n*e)*(1-B((t=(t*=360)%360/60)%2-1)),a=o=s=n-l,X(a+=[l,u,0,0,u,l][t=~~t],o+=[u,l,l,u,0,0][t],s+=[0,0,u,l,l,u][t],r)},n.hsl2rgb=function(t,e,n,r){var a,o,s,u,l;return i(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),u=(l=2*e*(.5>n?n:1-n))*(1-B((t=(t*=360)%360/60)%2-1)),a=o=s=n-l/2,X(a+=[l,u,0,0,u,l][t=~~t],o+=[u,l,l,u,0,0][t],s+=[0,0,u,l,l,u][t],r)},n.rgb2hsb=function(t,e,n){var r,i;return t=(n=U(t,e,n))[0],e=n[1],n=n[2],{h:((0==(i=(r=C(t,e,n))-w(t,e,n))?null:r==t?(e-n)/i:r==e?(n-t)/i+2:(t-e)/i+4)+360)%6*60/360,s:0==i?0:i/r,b:r,toString:z}},n.rgb2hsl=function(t,e,n){var r,i,a,o;return t=(n=U(t,e,n))[0],e=n[1],n=n[2],r=((i=C(t,e,n))+(a=w(t,e,n)))/2,{h:((0==(o=i-a)?null:i==t?(e-n)/o:i==e?(n-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:.5>r?o/(2*r):o/(2-2*r),l:r,toString:R}},n.parsePathString=function(t){if(!t)return null;var e=n.path(t);if(e.arr)return n.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},a=[];return i(t,"array")&&i(t[0],"array")&&(a=n.path.clone(t)),a.length||y(t).replace(T,(function(t,e,n){var i=[],o=e.toLowerCase();if(n.replace(N,(function(t,e){e&&i.push(+e)})),"m"==o&&i.length>2&&(a.push([e].concat(i.splice(0,2))),o="l",e="m"==e?"l":"L"),"o"==o&&1==i.length&&a.push([e,i[0]]),"r"==o)a.push([e].concat(i));else for(;i.length>=r[o]&&(a.push([e].concat(i.splice(0,r[o]))),r[o]););})),a.toString=n.path.toString,e.arr=n.path.clone(a),a};var $=n.parseTransformString=function(t){if(!t)return null;var e=[];return i(t,"array")&&i(t[0],"array")&&(e=n.path.clone(t)),e.length||y(t).replace(M,(function(t,n,r){var i=[];n.toLowerCase(),r.replace(N,(function(t,e){e&&i.push(+e)})),e.push([n].concat(i))})),e.toString=n.path.toString,e};n._.svgTransform2string=function(t){var e=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,(function(t,n,r){return r=r.split(/\s*,\s*|\s+/),"rotate"==n&&1==r.length&&r.push(0,0),"scale"==n&&(r.length>2?r=r.slice(0,2):2==r.length&&r.push(0,0),1==r.length&&r.push(r[0],0,0)),"skewX"==n?e.push(["m",1,0,F.tan(o(r[0])),1,0,0]):"skewY"==n?e.push(["m",1,F.tan(o(r[0])),0,1,0,0]):e.push([n.charAt(0)].concat(r)),t})),e},n._.rgTransform=/^[a-z][\s]*-?\.?\d/i,n._.transform2matrix=function(t,e){var r=$(t),i=new n.Matrix;if(r)for(var a=0,o=r.length;o>a;a++){var s,u,l,f,c,h=r[a],d=h.length,p=y(h[0]).toLowerCase(),g=h[0]!=p,v=g?i.invert():0;"t"==p&&2==d?i.translate(h[1],0):"t"==p&&3==d?g?(s=v.x(0,0),u=v.y(0,0),l=v.x(h[1],h[2]),f=v.y(h[1],h[2]),i.translate(l-s,f-u)):i.translate(h[1],h[2]):"r"==p?2==d?(c=c||e,i.rotate(h[1],c.x+c.width/2,c.y+c.height/2)):4==d&&(g?(l=v.x(h[2],h[3]),f=v.y(h[2],h[3]),i.rotate(h[1],l,f)):i.rotate(h[1],h[2],h[3])):"s"==p?2==d||3==d?(c=c||e,i.scale(h[1],h[d-1],c.x+c.width/2,c.y+c.height/2)):4==d?g?(l=v.x(h[2],h[3]),f=v.y(h[2],h[3]),i.scale(h[1],h[1],l,f)):i.scale(h[1],h[1],h[2],h[3]):5==d&&(g?(l=v.x(h[3],h[4]),f=v.y(h[3],h[4]),i.scale(h[1],h[2],l,f)):i.scale(h[1],h[2],h[3],h[4])):"m"==p&&7==d&&i.add(h[1],h[2],h[3],h[4],h[5],h[6])}return i},n._unit2px=function(t,e,n){function i(t){if(null==t)return E;if(t==+t)return t;r(f,{width:t});try{return f.getBBox().width}catch(t){return 0}}function a(t){if(null==t)return E;if(t==+t)return t;r(f,{height:t});try{return f.getBBox().height}catch(t){return 0}}function o(r,i){null==e?l[r]=i(t.attr(r)||0):r==e&&(l=i(null==n?t.attr(r)||0:n))}var u=s(t).node,l={},f=u.querySelector(".svg---mgr");switch(f||(f=r("rect"),r(f,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),u.appendChild(f)),t.type){case"rect":o("rx",i),o("ry",a);case"image":o("width",i),o("height",a);case"text":o("x",i),o("y",a);break;case"circle":o("cx",i),o("cy",a),o("r",i);break;case"ellipse":o("cx",i),o("cy",a),o("rx",i),o("ry",a);break;case"line":o("x1",i),o("x2",i),o("y1",a),o("y2",a);break;case"marker":o("refX",i),o("markerWidth",i),o("refY",a),o("markerHeight",a);break;case"radialGradient":o("fx",i),o("fy",a);break;case"tspan":o("dx",i),o("dy",a);break;default:o(e,i)}return u.removeChild(f),l},v.doc.contains||v.doc.compareDocumentPosition,n._.getSomeDefs=function(t){var e=t.node.ownerSVGElement&&d(t.node.ownerSVGElement)||t.node.parentNode&&d(t.node.parentNode)||n.select("svg")||n(0,0),r=e.select("defs"),i=null!=r&&r.node;return i||(i=c("defs",e.node).node),i},n._.getSomeSVG=s,n.select=function(t){return t=y(t).replace(/([^\\]):/g,"$1\\:"),d(v.doc.querySelector(t))},n.selectAll=function(t){for(var e=v.doc.querySelectorAll(t),r=(n.set||Array)(),i=0;iu;u++)s[o[u].nodeName]=o[u].nodeValue;return s}if(i(t,"string")){if(!(arguments.length>1))return e("snap.util.getattr."+t,r).firstDefined();var f={};f[t]=n,t=f}for(var c in t)t[m](c)&&e("snap.util.attr."+c,r,t[c]);return r},n.parse=function(t){var e=v.doc.createDocumentFragment(),n=!0,r=v.doc.createElement("div");if((t=y(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t="",n=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new f(e)},n.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=v.doc.createDocumentFragment(),r=0,i=t.length;i>r;r++){var a=t[r];a.node&&a.node.nodeType&&e.appendChild(a.node),a.nodeType&&e.appendChild(a),"string"==typeof a&&e.appendChild(n.parse(a).node)}return new f(e)},n._.make=c,n._.wrap=d,h.prototype.el=function(t,e){var n=c(t,this.node);return e&&n.attr(e),n},l.prototype.children=function(){for(var t=[],e=this.node.childNodes,r=0,i=e.length;i>r;r++)t[r]=n(e[r]);return t},l.prototype.toJSON=function(){var t=[];return p([this],t),t[0]},e.on("snap.util.getattr",(function(){var t=e.nt(),n=(t=t.substring(t.lastIndexOf(".")+1)).replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return H[m](n)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(n):r(this.node,t)}));var H={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};e.on("snap.util.attr",(function(t){var n=e.nt(),i={};i[n=n.substring(n.lastIndexOf(".")+1)]=t;var a=n.replace(/-(\w)/gi,(function(t,e){return e.toUpperCase()})),o=n.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));H[m](o)?this.node.style[a]=null==t?E:t:r(this.node,i)})),h.prototype,n.ajax=function(t,n,r,a){var o=new XMLHttpRequest,s=L();if(o){if(i(n,"function"))a=r,r=n,n=null;else if(i(n,"object")){var u=[];for(var l in n)n.hasOwnProperty(l)&&u.push(encodeURIComponent(l)+"="+encodeURIComponent(n[l]));n=u.join("&")}return o.open(n?"POST":"GET",t,!0),n&&(o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(e.once("snap.ajax."+s+".0",r),e.once("snap.ajax."+s+".200",r),e.once("snap.ajax."+s+".304",r)),o.onreadystatechange=function(){4==o.readyState&&e("snap.ajax."+s+"."+o.status,a,o)},4==o.readyState||o.send(n),o}},n.load=function(t,e,r){n.ajax(t,(function(t){var i=n.parse(t.responseText);r?e.call(r,i):e(i)}))};var Y=function(t){var e=t.getBoundingClientRect(),n=t.ownerDocument,r=n.body,i=n.documentElement,a=i.clientTop||r.clientTop||0,o=i.clientLeft||r.clientLeft||0;return{y:e.top+(g.win.pageYOffset||i.scrollTop||r.scrollTop)-a,x:e.left+(g.win.pageXOffset||i.scrollLeft||r.scrollLeft)-o}};return n.getElementByPoint=function(t,e){var n=(this.canvas,v.doc.elementFromPoint(t,e));if(v.win.opera&&"svg"==n.tagName){var r=Y(n),i=n.createSVGRect();i.x=t-r.x,i.y=e-r.y,i.width=i.height=1;var a=n.getIntersectionList(i,null);a.length&&(n=a[a.length-1])}return n?d(n):null},n.plugin=function(t){t(n,l,h,v,f)},v.win.Snap=n,n}(t||this);return r.plugin((function(n,r,i,a,o){function s(t,e){if(null==e){var r=!0;if(!(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform")))return new n.Matrix;e=n._.svgTransform2string(e)}else e=n._.rgTransform.test(e)?c(e).replace(/\.{3}|\u2026/g,t._.transform||""):n._.svgTransform2string(e),f(e,"array")&&(e=n.path?n.path.toString.call(e):c(e)),t._.transform=e;var i=n._.transform2matrix(e,t.getBBox(1));return r?i:void(t.matrix=i)}function u(t){return function(){var e=t?"<"+this.type:"",n=this.node.attributes,r=this.node.childNodes;if(t)for(var i=0,a=n.length;a>i;i++)e+=" "+n[i].name+'="'+n[i].value.replace(/"/g,'\\"')+'"';if(r.length){for(t&&(e+=">"),i=0,a=r.length;a>i;i++)3==r[i].nodeType?e+=r[i].nodeValue:1==r[i].nodeType&&(e+=v(r[i]).toString());t&&(e+=""+this.type+">")}else t&&(e+="/>");return e}}var l=r.prototype,f=n.is,c=String,h=n._unit2px,d=n._.$,p=n._.make,g=n._.getSomeDefs,v=n._.wrap;l.getBBox=function(t){if("tspan"==this.type)return n._.box(this.node.getClientRects().item(0));if(!n.Matrix||!n.path)return this.node.getBBox();var e=this,r=new n.Matrix;if(e.removed)return n._.box();for(;"use"==e.type;)if(t||(r=r.add(e.transform().localMatrix.translate(e.attr("x")||0,e.attr("y")||0))),e.original)e=e.original;else{var i=e.attr("xlink:href");e=e.original=e.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var a=e._,o=n.path.get[e.type]||n.path.get.deflt;try{return t?(a.bboxwt=o?n.path.getBBox(e.realPath=o(e)):n._.box(e.node.getBBox()),n._.box(a.bboxwt)):(e.realPath=o(e),e.matrix=e.transform().localMatrix,a.bbox=n.path.getBBox(n.path.map(e.realPath,r.add(e.matrix))),n._.box(a.bbox))}catch(t){return n._.box()}};var m=function(){return this.string};l.transform=function(t){var e=this._;if(null==t){for(var r,i=this,a=new n.Matrix(this.node.getCTM()),o=s(this),u=[o],l=new n.Matrix,f=o.toTransformString(),h=c(o)==c(this.matrix)?c(e.transform):f;"svg"!=i.type&&(i=i.parent());)u.push(s(i));for(r=u.length;r--;)l.add(u[r]);return{string:h,globalMatrix:a,totalMatrix:l,localMatrix:o,diffMatrix:a.clone().add(o.invert()),global:a.toTransformString(),total:l.toTransformString(),local:f,toString:m}}return t instanceof n.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):s(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?d(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?d(this.node,{patternTransform:this.matrix}):d(this.node,{transform:this.matrix})),this},l.parent=function(){return v(this.node.parentNode)},l.append=l.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach((function(t){e.add(t)})),this}t=v(t),this.node.appendChild(t.node),t.paper=this.paper}return this},l.appendTo=function(t){return t&&(t=v(t)).append(this),this},l.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach((function(t){e?e.after(t):n.prepend(t),e=t})),this}var r=(t=v(t)).parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),r&&r.add()}return this},l.prependTo=function(t){return(t=v(t)).prepend(this),this},l.before=function(t){if("set"==t.type){var e=this;return t.forEach((function(t){var n=t.parent();e.node.parentNode.insertBefore(t.node,e.node),n&&n.add()})),this.parent().add(),this}var n=(t=v(t)).parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),n&&n.add(),t.paper=this.paper,this},l.after=function(t){var e=(t=v(t)).parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},l.insertBefore=function(t){t=v(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},l.insertAfter=function(t){t=v(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},l.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},l.select=function(t){return v(this.node.querySelector(t))},l.selectAll=function(t){for(var e=this.node.querySelectorAll(t),r=(n.set||Array)(),i=0;il;l++){e(i=a[l],"fill"),e(i,"stroke"),e(i,"filter"),e(i,"mask"),e(i,"clip-path"),r(i);var c=d(i.node,"id");c&&(d(i.node,{id:i.id}),s.push({old:c,id:i.id}))}for(l=0,f=s.length;f>l;l++){var h=u[s[l].old];if(h)for(var p=0,g=h.length;g>p;p++)h[p](s[l].id)}}(t),t.insertAfter(this),t},l.toDefs=function(){return g(this).appendChild(this.node),this},l.pattern=l.toPattern=function(t,e,n,r){var i=p("pattern",g(this));return null==t&&(t=this.getBBox()),f(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,t=t.x),d(i.node,{x:t,y:e,width:n,height:r,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[t,e,n,r].join(" ")}),i.node.appendChild(this.node),i},l.marker=function(t,e,n,r,i,a){var o=p("marker",g(this));return null==t&&(t=this.getBBox()),f(t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,i=t.refX||t.cx,a=t.refY||t.cy,t=t.x),d(o.node,{viewBox:[t,e,n,r].join(" "),markerWidth:n,markerHeight:r,orient:"auto",refX:i||0,refY:a||0,id:o.id}),o.node.appendChild(this.node),o};var y={};l.data=function(t,r){var i=y[this.id]=y[this.id]||{};if(0==arguments.length)return e("snap.data.get."+this.id,this,i,null),i;if(1==arguments.length){if(n.is(t,"object")){for(var a in t)t.hasOwnProperty(a)&&this.data(a,t[a]);return this}return e("snap.data.get."+this.id,this,i[t],t),i[t]}return i[t]=r,e("snap.data.set."+this.id,this,r,t),this},l.removeData=function(t){return null==t?y[this.id]={}:y[this.id]&&delete y[this.id][t],this},l.outerSVG=l.toString=u(1),l.innerSVG=u(),l.toDataURL=function(){if(t&&t.btoa){var e=this.getBBox(),r=n.format('',{x:+e.x.toFixed(3),y:+e.y.toFixed(3),width:+e.width.toFixed(3),height:+e.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(r)))}},o.prototype.select=l.select,o.prototype.selectAll=l.selectAll})),r.plugin((function(t,r,i,a,o){function s(t,e,n){return function(r){var i=r.slice(t,e);return 1==i.length&&(i=i[0]),n?n(i):i}}var u=r.prototype,l=t.is,f=String,c="hasOwnProperty",h=function(t,e,r,i){"function"!=typeof r||r.length||(i=r,r=n.linear),this.attr=t,this.dur=e,r&&(this.easing=r),i&&(this.callback=i)};t._.Animation=h,t.animation=function(t,e,n,r){return new h(t,e,n,r)},u.inAnim=function(){var t=this,e=[];for(var n in t.anims)t.anims[c](n)&&function(t){e.push({anim:new h(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(t.anims[n]);return e},t.animate=function(t,r,i,a,o,s){"function"!=typeof o||o.length||(s=o,o=n.linear);var u=n.time(),l=n(t,r,u,u+a,n.time,i,o);return s&&e.once("mina.finish."+l.id,s),l},u.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;n>e;e++)t[e].stop();return this},u.animate=function(t,r,i,a){"function"!=typeof i||i.length||(a=i,i=n.linear),t instanceof h&&(a=t.callback,i=t.easing,r=t.dur,t=t.attr);var o,u,d,p,g=[],v=[],m={},y=this;for(var x in t)if(t[c](x)){y.equal?(o=(p=y.equal(x,f(t[x]))).from,u=p.to,d=p.f):(o=+y.attr(x),u=+t[x]);var b=l(o,"array")?o.length:1;m[x]=s(g.length,g.length+b,d),g=g.concat(o),v=v.concat(u)}var F=n.time(),C=n(g,v,F,F+r,n.time,(function(t){var e={};for(var n in m)m[c](n)&&(e[n]=m[n](t));y.attr(e)}),i);return y.anims[C.id]=C,C._attrs=t,C._callback=a,e("snap.animcreated."+y.id,C),e.once("mina.finish."+C.id,(function(){e.off("mina.*."+C.id),delete y.anims[C.id],a&&a.call(y)})),e.once("mina.stop."+C.id,(function(){e.off("mina.*."+C.id),delete y.anims[C.id]})),y}})),r.plugin((function(t,e,n,r,i){function a(t,e,n,r,i,a){return null==e&&"[object SVGMatrix]"==o.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+r,this.e=+i,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var o=Object.prototype.toString,s=String,u=Math;!function(e){function n(t){return t[0]*t[0]+t[1]*t[1]}function r(t){var e=u.sqrt(n(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}e.add=function(t,e,n,r,i,o){if(t&&t instanceof a)return this.add(t.a,t.b,t.c,t.d,t.e,t.f);var s=t*this.a+e*this.c,u=t*this.b+e*this.d;return this.e+=i*this.a+o*this.c,this.f+=i*this.b+o*this.d,this.c=n*this.a+r*this.c,this.d=n*this.b+r*this.d,this.a=s,this.b=u,this},a.prototype.multLeft=function(t,e,n,r,i,o){if(t&&t instanceof a)return this.multLeft(t.a,t.b,t.c,t.d,t.e,t.f);var s=t*this.a+n*this.b,u=t*this.c+n*this.d,l=t*this.e+n*this.f+i;return this.b=e*this.a+r*this.b,this.d=e*this.c+r*this.d,this.f=e*this.e+r*this.f+o,this.a=s,this.c=u,this.e=l,this},e.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new a(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},e.clone=function(){return new a(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(t,e){return this.e+=t*this.a+e*this.c,this.f+=t*this.b+e*this.d,this},e.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.translate(n,r),this.a*=t,this.b*=t,this.c*=e,this.d*=e,(n||r)&&this.translate(-n,-r),this},e.rotate=function(e,n,r){e=t.rad(e),n=n||0,r=r||0;var i=+u.cos(e).toFixed(9),a=+u.sin(e).toFixed(9);return this.add(i,a,-a,i,n,r),this.add(1,0,0,1,-n,-r)},e.skewX=function(t){return this.skew(t,0)},e.skewY=function(t){return this.skew(0,t)},e.skew=function(e,n){e=e||0,n=n||0,e=t.rad(e),n=t.rad(n);var r=u.tan(e).toFixed(9),i=u.tan(n).toFixed(9);return this.add(1,i,r,1,0,0)},e.x=function(t,e){return t*this.a+e*this.c+this.e},e.y=function(t,e){return t*this.b+e*this.d+this.f},e.get=function(t){return+this[s.fromCharCode(97+t)].toFixed(4)},e.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.determinant=function(){return this.a*this.d-this.b*this.c},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var i=[[this.a,this.b],[this.c,this.d]];e.scalex=u.sqrt(n(i[0])),r(i[0]),e.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*e.shear,i[1][1]-i[0][1]*e.shear],e.scaley=u.sqrt(n(i[1])),r(i[1]),e.shear/=e.scaley,this.determinant()<0&&(e.scalex=-e.scalex);var a=i[0][1],o=i[1][1];return 0>o?(e.rotate=t.deg(u.acos(o)),0>a&&(e.rotate=360-e.rotate)):e.rotate=t.deg(u.asin(a)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:"")+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:"")+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:""))}}(a.prototype),t.Matrix=a,t.matrix=function(t,e,n,r,i,o){return new a(t,e,n,r,i,o)}})),r.plugin((function(t,n,r,i,a){function o(r){return function(i){if(e.stop(),i instanceof a&&1==i.node.childNodes.length&&("radialGradient"==i.node.firstChild.tagName||"linearGradient"==i.node.firstChild.tagName||"pattern"==i.node.firstChild.tagName)&&(i=i.node.firstChild,d(this).appendChild(i),i=c(i)),i instanceof n)if("radialGradient"==i.type||"linearGradient"==i.type||"pattern"==i.type){i.node.id||g(i.node,{id:i.id});var o=v(i.node.id)}else o=i.attr(r);else if((o=t.color(i)).error){var s=t(d(this).ownerSVGElement).gradient(i);s?(s.node.id||g(s.node,{id:s.id}),o=v(s.node.id)):o=i}else o=m(o);var u={};u[r]=o,g(this.node,u),this.node.style[r]=x}}function s(t){e.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function u(t){for(var e=[],n=t.childNodes,r=0,i=n.length;i>r;r++){var a=n[r];3==a.nodeType&&e.push(a.nodeValue),"tspan"==a.tagName&&(1==a.childNodes.length&&3==a.firstChild.nodeType?e.push(a.firstChild.nodeValue):e.push(u(a)))}return e}function l(){return e.stop(),this.node.style.fontSize}var f=t._.make,c=t._.wrap,h=t.is,d=t._.getSomeDefs,p=/^url\((['"]?)([^)]+)\1\)$/,g=t._.$,v=t.url,m=String,y=t._.separator,x="";t.deurl=function(t){var e=String(t).match(p);return e?e[2]:t},e.on("snap.util.attr.mask",(function(t){if(t instanceof n||t instanceof a){if(e.stop(),t instanceof a&&1==t.node.childNodes.length&&(t=t.node.firstChild,d(this).appendChild(t),t=c(t)),"mask"==t.type)var r=t;else(r=f("mask",d(this))).node.appendChild(t.node);!r.node.id&&g(r.node,{id:r.id}),g(this.node,{mask:v(r.id)})}})),function(t){e.on("snap.util.attr.clip",t),e.on("snap.util.attr.clip-path",t),e.on("snap.util.attr.clipPath",t)}((function(t){if(t instanceof n||t instanceof a){e.stop();for(var r,i=t.node;i;){if("clipPath"===i.nodeName){r=new n(i);break}if("svg"===i.nodeName){r=void 0;break}i=i.parentNode}r||((r=f("clipPath",d(this))).node.appendChild(t.node),!r.node.id&&g(r.node,{id:r.id})),g(this.node,{"clip-path":v(r.node.id||r.id)})}})),e.on("snap.util.attr.fill",o("fill")),e.on("snap.util.attr.stroke",o("stroke"));var b=/^([lr])(?:\(([^)]*)\))?(.*)$/i;e.on("snap.util.grad.parse",(function(t){function e(t,e){for(var n=(e-s)/(t-u),r=u;t>r;r++)a[r].offset=+(+s+n*(r-u)).toFixed(2);u=t,s=e}var n=(t=m(t)).match(b);if(!n)return null;var r=n[1],i=n[2],a=n[3];i=i.split(/\s*,\s*/).map((function(t){return+t==t?+t:t})),1==i.length&&0==i[0]&&(i=[]),a=(a=a.split("-")).map((function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=parseFloat(t[1])),e}));var o=a.length,s=0,u=0;o--;for(var l=0;o>l;l++)"offset"in a[l]&&e(l,a[l].offset);return a[o].offset=a[o].offset||100,e(o,a[o].offset),{type:r,params:i,stops:a}})),e.on("snap.util.attr.d",(function(n){e.stop(),h(n,"array")&&h(n[0],"array")&&(n=t.path.toString.call(n)),(n=m(n)).match(/[ruo]/i)&&(n=t.path.toAbsolute(n)),g(this.node,{d:n})}))(-1),e.on("snap.util.attr.#text",(function(t){e.stop(),t=m(t);for(var n=i.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(n)}))(-1),e.on("snap.util.attr.path",(function(t){e.stop(),this.attr({d:t})}))(-1),e.on("snap.util.attr.class",(function(t){e.stop(),this.node.className.baseVal=t}))(-1),e.on("snap.util.attr.viewBox",(function(t){var n;n=h(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):h(t,"array")?t.join(" "):t,g(this.node,{viewBox:n}),e.stop()}))(-1),e.on("snap.util.attr.transform",(function(t){this.transform(t),e.stop()}))(-1),e.on("snap.util.attr.r",(function(t){"rect"==this.type&&(e.stop(),g(this.node,{rx:t,ry:t}))}))(-1),e.on("snap.util.attr.textpath",(function(t){if(e.stop(),"text"==this.type){var r,i,a;if(!t&&this.textPath){for(i=this.textPath;i.node.firstChild;)this.node.appendChild(i.node.firstChild);return i.remove(),void delete this.textPath}if(h(t,"string")){var o=d(this),s=c(o.parentNode).path(t);o.appendChild(s.node),r=s.id,s.attr({id:r})}else(t=c(t))instanceof n&&((r=t.attr("id"))||(r=t.id,t.attr({id:r})));if(r)if(i=this.textPath,a=this.node,i)i.attr({"xlink:href":"#"+r});else{for(i=g("textPath",{"xlink:href":"#"+r});a.firstChild;)i.appendChild(a.firstChild);a.appendChild(i),this.textPath=c(i)}}}))(-1),e.on("snap.util.attr.text",(function(t){if("text"==this.type){for(var n=this.node,r=function(t){var e=g("tspan");if(h(t,"array"))for(var n=0;n1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},s.polygon=function(t){arguments.length>1&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},function(){function r(){return this.selectAll("stop")}function i(t,e){var r=f("stop"),i={offset:+e+"%"};t=n.color(t),i["stop-color"]=t.hex,t.opacity<1&&(i["stop-opacity"]=t.opacity),f(r,i);for(var a,o=this.stops(),s=0;se){this.node.insertBefore(r,o[s].node),a=!0;break}return a||this.node.appendChild(r),this}function a(){if("linearGradient"==this.type){var t=f(this.node,"x1")||0,e=f(this.node,"x2")||1,r=f(this.node,"y1")||0,i=f(this.node,"y2")||0;return n._.box(t,r,math.abs(e-t),math.abs(i-r))}var a=this.node.cx||.5,o=this.node.cy||.5,s=this.node.r||0;return n._.box(a-s,o-s,2*s,2*s)}function o(t){var r=t,i=this.stops();if("string"==typeof t&&(r=e("snap.util.grad.parse",null,"l(0,0,0,1)"+t).firstDefined().stops),n.is(r,"array")){for(var a=0;as;s++){var c=a[s];r.addStop(c.color,c.offset)}return r}(this.defs,t)},s.gradientLinear=function(t,e,n,r){return u(this.defs,t,e,n,r)},s.gradientRadial=function(t,e,n,r,i){return l(this.defs,t,e,n,r,i)},s.toString=function(){var t,e=this.node.ownerDocument,r=e.createDocumentFragment(),i=e.createElement("div"),a=this.node.cloneNode(!0);return r.appendChild(i),i.appendChild(a),n._.$(a,{xmlns:"http://www.w3.org/2000/svg"}),t=i.innerHTML,r.removeChild(r.firstChild),t},s.toDataURL=function(){return t&&t.btoa?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this))):void 0},s.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):s.clear.call({node:e}),e=t}}()})),r.plugin((function(t,e,n,r){function i(t){var e=i.ps=i.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout((function(){for(var n in e)e[M](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])})),e[t]}function a(t,e,n,r){return null==t&&(t=e=n=r=0),null==e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:P.min(n,r)/2,r2:P.max(n,r)/2,r0:P.sqrt(n*n+r*r)/2,path:b(t,e,n,r),vb:[t,e,n,r].join(" ")}}function o(){return this.join(",").replace(N,"$1")}function s(t){var e=T(t);return e.toString=o,e}function u(t,e,n,r,i,a,o,s,u){return null==u?g(t,e,n,r,i,a,o,s):f(t,e,n,r,i,a,o,s,function(t,e,n,r,i,a,o,s,u){if(!(0>u||g(t,e,n,r,i,a,o,s).01;)l=g(t,e,n,r,i,a,o,s,c+=(u>l?1:-1)*(f/=2));return c}}(t,e,n,r,i,a,o,s,u))}function l(n,r){function i(t){return+(+t).toFixed(3)}return t._.cacher((function(t,a,o){t instanceof e&&(t=t.attr("d"));for(var s,l,c,h,d,p="",g={},v=0,m=0,y=(t=S(t)).length;y>m;m++){if("M"==(c=t[m])[0])s=+c[1],l=+c[2];else{if(v+(h=u(s,l,c[1],c[2],c[3],c[4],c[5],c[6]))>a){if(r&&!g.start){if(p+=["C"+i((d=u(s,l,c[1],c[2],c[3],c[4],c[5],c[6],a-v)).start.x),i(d.start.y),i(d.m.x),i(d.m.y),i(d.x),i(d.y)],o)return p;g.start=p,p=["M"+i(d.x),i(d.y)+"C"+i(d.n.x),i(d.n.y),i(d.end.x),i(d.end.y),i(c[5]),i(c[6])].join(),v+=h,s=+c[5],l=+c[6];continue}if(!n&&!r)return u(s,l,c[1],c[2],c[3],c[4],c[5],c[6],a-v)}v+=h,s=+c[5],l=+c[6]}p+=c.shift()+c}return g.end=p,n?v:r?g:f(s,l,c[0],c[1],c[2],c[3],c[4],c[5],1)}),null,t._.clone)}function f(t,e,n,r,i,a,o,s,u){var l=1-u,f=V(l,3),c=V(l,2),h=u*u,d=h*u,p=t+2*u*(n-t)+h*(i-2*n+t),g=e+2*u*(r-e)+h*(a-2*r+e),v=n+2*u*(i-n)+h*(o-2*i+n),m=r+2*u*(a-r)+h*(s-2*a+r);return{x:f*t+3*c*u*n+3*l*u*u*i+d*o,y:f*e+3*c*u*r+3*l*u*u*a+d*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*P.atan2(p-v,g-m)/L}}function c(e,n,r,i,o,s,u,l){t.is(e,"array")||(e=[e,n,r,i,o,s,u,l]);var f=E.apply(null,e);return a(f.min.x,f.min.y,f.max.x-f.min.x,f.max.y-f.min.y)}function h(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function d(t,e){return t=a(t),h(e=a(e),t.x,t.y)||h(e,t.x2,t.y)||h(e,t.x,t.y2)||h(e,t.x2,t.y2)||h(t,e.x,e.y)||h(t,e.x2,e.y)||h(t,e.x,e.y2)||h(t,e.x2,e.y2)||(t.x