window.bsfmodernizr=function(t,o){function e(t){c.cssText=t}function a(t,e){return typeof t===e}function s(t,e){for(var n in t){n=t[n];if(!~(""+n).indexOf("-")&&c[n]!==o)return"pfx"!=e||n}return!1}function r(t,e,n){var r=t.charAt(0).toUpperCase()+t.slice(1),i=(t+" "+d.join(r+" ")+r).split(" ");return a(e,"string")||void 0===e?s(i,e):function(t,e,n){for(var r in t){var i=e[t[r]];if(i!==o)return!1===n?t[r]:a(i,"function")?i.bind(n||e):i}return!1}(i=(t+" "+f.join(r+" ")+r).split(" "),e,n)}var n,i,l={},u=t.documentElement,c=t.createElement("bsfmodernizr").style,h="Webkit Moz O ms",d=h.split(" "),f=h.toLowerCase().split(" "),p={},g=[],m=g.slice,y={}.hasOwnProperty,v=void 0!==y&&void 0!==y.call?function(t,e){return y.call(t,e)}:function(t,e){return e in t&&void 0===t.constructor.prototype[e]};for(i in Function.prototype.bind||(Function.prototype.bind=function(n){var r=this;if("function"!=typeof r)throw new TypeError;var i=m.call(arguments,1),o=function(){if(this instanceof o){var t=function(){};t.prototype=r.prototype;var e=new t,t=r.apply(e,i.concat(m.call(arguments)));return Object(t)===t?t:e}return r.apply(n,i.concat(m.call(arguments)))};return o}),p.csstransitions=function(){return r("transition")},p)v(p,i)&&(n=i.toLowerCase(),l[n]=p[i](),g.push((l[n]?"":"no-")+n));return l.addTest=function(t,e){if("object"==typeof t)for(var n in t)v(t,n)&&l.addTest(n,t[n]);else{if(t=t.toLowerCase(),l[t]!==o)return l;e="function"==typeof e?e():e,u.className+=" "+(e?"":"no-")+t,l[t]=e}return l},e(""),0,function(t,s){function l(){var t=p.elements;return"string"==typeof t?t.split(" "):t}function u(t){var e=f[t[o]];return e||(e={},a++,t[o]=a,f[a]=e),e}function c(t,e,n){return e=e||s,d?e.createElement(t):!(e=(n=n||u(e)).cache[t]?n.cache[t].cloneNode():i.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t)).canHaveChildren||r.test(t)||e.tagUrn?e:n.frag.appendChild(e)}function e(t){var e,n,r,i,o,a=u(t=t||s);return!p.shivCSS||h||a.hasCSS||(a.hasCSS=(i="article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}",o=(r=t).createElement("p"),r=r.getElementsByTagName("head")[0]||r.documentElement,o.innerHTML="x<style>"+i+"</style>",!!r.insertBefore(o.lastChild,r.firstChild))),d||(e=t,(n=a).cache||(n.cache={},n.createElem=e.createElement,n.createFrag=e.createDocumentFragment,n.frag=n.createFrag()),e.createElement=function(t){return p.shivMethods?c(t,e,n):n.createElem(t)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/[\w\-]+/g,function(t){return n.createElem(t),n.frag.createElement(t),'c("'+t+'")'})+");return n}")(p,n.frag)),t}var h,d,n=t.html5||{},r=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,i=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o="_html5shiv",a=0,f={};!function(){try{var t=s.createElement("a");t.innerHTML="<xyz></xyz>",h="hidden"in t,d=1==t.childNodes.length||function(){s.createElement("a");var t=s.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){d=h=!0}}();var p={elements:n.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==n.shivCSS,supportsUnknownElements:d,shivMethods:!1!==n.shivMethods,type:"default",shivDocument:e,createElement:c,createDocumentFragment:function(t,e){if(t=t||s,d)return t.createDocumentFragment();for(var n=(e=e||u(t)).frag.cloneNode(),r=0,i=l(),o=i.length;r<o;r++)n.createElement(i[r]);return n}};t.html5=p,e(s)}(this,t),l._version="2.7.1",l._domPrefixes=f,l._cssomPrefixes=d,l.testProp=function(t){return s([t])},l.testAllProps=r,l.prefixed=function(t,e,n){return e?r(t,e,n):r(t,"pfx")},u.className=u.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(" js "+g.join(" ")),l}(this.document),function(t,f){function h(t){return"[object Function]"==i.call(t)}function p(t){return"string"==typeof t}function d(){}function g(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function m(){var t=x.shift();b=1,t?t.t?y(function(){("c"==t.t?T.injectCss:T.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),m()):b=0}function e(t,e,n,r,i){return b=0,e=e||"j",p(t)?(a="c"==e?k:S,s=t,l=e,e=this.i++,n=n,r=r,i=(i=i)||T.errorTimeout,u=f.createElement(a),h=c=0,d={t:l,s:s,e:n,a:r,x:i},1===E[s]&&(h=1,E[s]=[]),"object"==a?u.data=s:(u.src=s,u.type=a),u.width=u.height="0",u.onerror=u.onload=u.onreadystatechange=function(){o.call(this,h)},x.splice(e,0,d),"img"!=a&&(h||2===E[s]?(C.insertBefore(u,w?null:v),y(o,i)):E[s].push(u))):(x.splice(this.i++,0,t),1==x.length&&m()),this;function o(t){if(!c&&g(u.readyState)&&(d.r=c=1,b||m(),u.onload=u.onreadystatechange=null,t))for(var e in"img"!=a&&y(function(){C.removeChild(u)},50),E[s])E[s].hasOwnProperty(e)&&E[s][e].onload()}var a,s,l,u,c,h,d}function s(){var t=T;return t.loader={load:e,i:0},t}var n,r=f.documentElement,y=t.setTimeout,v=f.getElementsByTagName("script")[0],i={}.toString,x=[],b=0,o="MozAppearance"in r.style,w=o&&!!f.createRange().compareNode,C=w?r:v.parentNode,r=t.opera&&"[object Opera]"==i.call(t.opera),r=!!f.attachEvent&&!r,S=o?"object":r?"script":"img",k=r?"script":S,a=Array.isArray||function(t){return"[object Array]"==i.call(t)},l=[],E={},u={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}},T=function(t){function c(t,e,n,r,i){var o=function(t){for(var e,n,t=t.split("!"),r=l.length,i=t.pop(),o=t.length,i={url:i,origUrl:i,prefixes:t},a=0;a<o;a++)n=t[a].split("="),(e=u[n.shift()])&&(i=e(i,n));for(a=0;a<r;a++)i=l[a](i);return i}(t),a=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(e=e&&(h(e)?e:e[t]||e[r]||e[t.split("/").pop().split("?")[0]]),o.instead?o.instead(t,e,n,r,i):(E[o.url]?o.noexec=!0:E[o.url]=1,n.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":void 0,o.noexec,o.attrs,o.timeout),(h(e)||h(a))&&n.load(function(){s(),e&&e(o.origUrl,i,r),a&&a(o.origUrl,i,r),E[o.url]=2})))}function e(t,e){function n(n,t){if(n){if(p(n))c(n,s=!t?function(){var t=[].slice.call(arguments);l.apply(this,t),u()}:s,e,0,o);else if(Object(n)===n)for(i in r=function(){var t,e=0;for(t in n)n.hasOwnProperty(t)&&e++;return e}(),n)n.hasOwnProperty(i)&&(t||--r||(h(s)?s=function(){var t=[].slice.call(arguments);l.apply(this,t),u()}:s[i]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),u()}}(l[i])),c(n[i],s,e,i,o))}else t||u()}var r,i,o=!!t.test,a=t.load||t.both,s=t.callback||d,l=s,u=t.complete||d;n(o?t.yep:t.nope,!!a),a&&n(a)}var n,r,i=this.yepnope.loader;if(p(t))c(t,0,i,0);else if(a(t))for(n=0;n<t.length;n++)p(r=t[n])?c(r,0,i,0):a(r)?T(r):Object(r)===r&&e(r,i);else Object(t)===t&&e(t,i)};T.addPrefix=function(t,e){u[t]=e},T.addFilter=function(t){l.push(t)},T.errorTimeout=1e4,null==f.readyState&&f.addEventListener&&(f.readyState="loading",f.addEventListener("DOMContentLoaded",n=function(){f.removeEventListener("DOMContentLoaded",n,0),f.readyState="complete"},0)),t.yepnope=s(),t.yepnope.executeStack=m,t.yepnope.injectJs=function(t,e,n,r,i,o){var a,s,l=f.createElement("script"),r=r||T.errorTimeout;for(s in l.src=t,n)l.setAttribute(s,n[s]);e=o?m:e||d,l.onreadystatechange=l.onload=function(){!a&&g(l.readyState)&&(a=1,e(),l.onload=l.onreadystatechange=null)},y(function(){a||e(a=1)},r),i?l.onload():v.parentNode.insertBefore(l,v)},t.yepnope.injectCss=function(t,e,n,r,i,o){var a,e=o?m:e||d;for(a in(r=f.createElement("link")).href=t,r.rel="stylesheet",r.type="text/css",n)r.setAttribute(a,n[a]);i||(v.parentNode.insertBefore(r,v),y(e,0))}}(this,document),bsfmodernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(t){"use strict";function n(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")}var r,i;function e(t,e){(r(t,e)?o:i)(t,e)}var o="classList"in document.documentElement?(r=function(t,e){return t.classList.contains(e)},i=function(t,e){t.classList.add(e)},function(t,e){t.classList.remove(e)}):(r=function(t,e){return n(e).test(t.className)},i=function(t,e){r(t,e)||(t.className=t.className+" "+e)},function(t,e){t.className=t.className.replace(n(e)," ")}),a={hasClass:r,addClass:i,removeClass:o,toggleClass:e,has:r,add:i,remove:o,toggle:e};"function"==typeof define&&define.amd?define(a):t.classie=a}(window);var Froogaloop=function(){function e(t){return new e.fn.init(t)}function o(t,e,n){var r;n.contentWindow.postMessage&&(r=n.getAttribute("src").split("?")[0],t=JSON.stringify({method:t,value:e}),"//"===r.substr(0,2)&&(r=window.location.protocol+r),n.contentWindow.postMessage(t,r))}function t(t){try{i=(r=JSON.parse(t.data)).event||r.method}catch(t){}if("ready"!=i||l||(l=!0),t.origin!=u)return!1;var t=r.value,e=r.data,n=r.player_id,r=(n?s[n]:s)[i],i=[];return!!r&&(void 0!==t&&i.push(t),e&&i.push(e),n&&i.push(n),0<i.length?r.apply(null,i):r.call())}function a(t,e,n){n?(s[n]||(s[n]={}),s[n][t]=e):s[t]=e}var s={},l=!1,u="";return e.fn=e.prototype={element:null,init:function(t){"string"==typeof t&&(t=document.getElementById(t)),this.element=t;for(var e="",n=0,r=(t=(t="//"===(t=this.element.getAttribute("src")).substr(0,2)?window.location.protocol+t:t).split("/")).length;n<r&&n<3;n++)e+=t[n],n<2&&(e+="/");return u=e,this},api:function(t,e){if(!this.element||!t)return!1;var n=this.element,r=""!==n.id?n.id:null,i=e&&e.constructor&&e.call&&e.apply?null:e,e=e&&e.constructor&&e.call&&e.apply?e:null;return e&&a(t,e,r),o(t,i,n),this},addEvent:function(t,e){if(!this.element)return!1;var n=this.element,r=""!==n.id?n.id:null;return a(t,e,r),"ready"!=t?o("addEventListener",t,n):"ready"==t&&l&&e.call(null,r),this},removeEvent:function(t){if(!this.element)return!1;var e,n=this.element;t:{if((e=""!==n.id?n.id:null)&&s[e]){if(!s[e][t]){e=!1;break t}s[e][t]=null}else{if(!s[t]){e=!1;break t}s[t]=null}e=!0}"ready"!=t&&e&&o("removeEventListener",t,n)}},e.fn.init.prototype=e.fn,window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent("onmessage",t),window.Froogaloop=window.$f=e}();!function(t){function a(){}function f(t,e){return t-e}var p,g,d="hasOwnProperty",m=/[\.\/]/,y={n:{}},v=function(t,e){t=String(t);var n,r=g,i=Array.prototype.slice.call(arguments,2),o=v.listeners(t),a=0,s=[],l={},u=[],c=p;p=t;for(var h=g=0,d=o.length;h<d;h++)"zIndex"in o[h]&&(s.push(o[h].zIndex),o[h].zIndex<0&&(l[o[h].zIndex]=o[h]));for(s.sort(f);s[a]<0;)if(n=l[s[a++]],u.push(n.apply(e,i)),g)return g=r,u;for(h=0;h<d;h++)if("zIndex"in(n=o[h]))if(n.zIndex==s[a]){if(u.push(n.apply(e,i)),g)break;do{if((n=l[s[++a]])&&u.push(n.apply(e,i)),g)break}while(n)}else l[n.zIndex]=n;else if(u.push(n.apply(e,i)),g)break;return g=r,p=c,u.length?u:null};v._events=y,v.listeners=function(t){for(var e,n,r,i,o,a,s,l=t.split(m),u=[y],c=[],h=0,d=l.length;h<d;h++){for(a=[],i=0,o=u.length;i<o;i++)for(n=[(s=u[i].n)[l[h]],s["*"]],r=2;r--;)(e=n[r])&&(a.push(e),c=c.concat(e.f||[]));u=a}return c},v.on=function(t,e){if(t=String(t),"function"!=typeof e)return function(){};for(var n=t.split(m),r=y,i=0,o=n.length;i<o;i++)r=(r=r.n).hasOwnProperty(n[i])&&r[n[i]]||(r[n[i]]={n:{}});for(r.f=r.f||[],i=0,o=r.f.length;i<o;i++)if(r.f[i]==e)return a;return r.f.push(e),function(t){+t==+t&&(e.zIndex=+t)}},v.f=function(t){var e=[].slice.call(arguments,1);return function(){v.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},v.stop=function(){g=1},v.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(p):p},v.nts=function(){return p.split(m)},v.off=v.unbind=function(t,e){if(t){for(var n,r,i,o=t.split(m),a=[y],s=0,l=o.length;s<l;s++)for(c=0;c<a.length;c+=i.length-2){if(i=[c,1],n=a[c].n,"*"!=o[s])n[o[s]]&&i.push(n[o[s]]);else for(r in n)n[d](r)&&i.push(n[r]);a.splice.apply(a,i)}for(s=0,l=a.length;s<l;s++)for(n=a[s];n.n;){if(e){if(n.f){for(c=0,h=n.f.length;c<h;c++)if(n.f[c]==e){n.f.splice(c,1);break}n.f.length||delete n.f}for(r in n.n)if(n.n[d](r)&&n.n[r].f){for(var u=n.n[r].f,c=0,h=u.length;c<h;c++)if(u[c]==e){u.splice(c,1);break}u.length||delete n.n[r].f}}else for(r in delete n.f,n.n)n.n[d](r)&&n.n[r].f&&delete n.n[r].f;n=n.n}}else v._events=y={n:{}}},v.once=function(t,e){var n=function(){return v.unbind(t,n),e.apply(this,arguments)};return v.on(t,n)},v.version="0.4.2",v.toString=function(){return"You are running Eve 0.4.2"},"undefined"!=typeof module&&module.exports?module.exports=v:"undefined"!=typeof define?define("eve",[],function(){return v}):t.eve=v}(this),function(e,n){"function"==typeof define&&define.amd?define(["eve"],function(t){return n(e,t)}):n(e,e.eve)}(this,function(bt,wt){var s,u,c,l,h,d,t,f,p,Ct=(s=void 0===wt?function(){}:wt,u={},c=bt.requestAnimationFrame||bt.webkitRequestAnimationFrame||bt.mozRequestAnimationFrame||bt.oRequestAnimationFrame||bt.msRequestAnimationFrame||function(t){setTimeout(t,16)},l=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},h=0,d="M"+(+new Date).toString(36),t=Date.now||function(){return+new Date},f=function(){var t,e=0;for(t in u)if(u.hasOwnProperty(t)){var n=u[t],r=n.get();if(e++,n.s=(r-n.b)/(n.dur/n.spd),1<=n.s&&(delete u[t],n.s=1,e--,function(t){setTimeout(function(){s("mina.finish."+t.id,t)})}(n)),l(n.start))for(var i=[],o=0,a=n.start.length;o<a;o++)i[o]=+n.start[o]+(n.end[o]-n.start[o])*n.easing(n.s);else i=+n.start+(n.end-n.start)*n.easing(n.s);n.set(i)}e&&c(f)},(p=function(t,e,n,r,i,o,a){a={id:d+(h++).toString(36),start:t,end:e,b:n,s:0,dur:r-n,spd:1,get:i,set:o,easing:a||p.linear,status:m,speed:y,duration:v,stop:x,pause:b,resume:w};u[a.id]=a;var s,l=0;for(s in u)if(u.hasOwnProperty(s)&&(l++,2==l))break;return 1==l&&c(f),a}).time=t,p.getById=function(t){return u[t]||null},p.linear=function(t){return t},p.easeout=function(t){return Math.pow(t,1.7)},p.easein=function(t){return Math.pow(t,.48)},p.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),t=n-e,e=-n-e,e=Math.pow(Math.abs(t),1/3)*(t<0?-1:1)+Math.pow(Math.abs(e),1/3)*(e<0?-1:1)+.5;return 3*(1-e)*e*e+e*e*e},p.backin=function(t){if(1==t)return 1;return t*t*(2.70158*t-1.70158)},p.backout=function(t){if(0==t)return 0;return--t*t*(2.70158*t+1.70158)+1},p.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin(2*(t-.075)*Math.PI/.3)+1},p.bounce=function(t){var e=7.5625,n=2.75,t=t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375;return t},bt.mina=p),t=function(){function s(t,e){if(t){if(t.tagName)return C(t);if(t instanceof p)return t;if(null==e)return C(t=F.doc.querySelector(t))}return new w(t=null==t?"100%":t,e=null==e?"100%":e)}function f(t,e){if(e){if("string"==typeof t&&(t=f(t)),"string"==typeof e)return"xlink:"==e.substring(0,6)?t.getAttributeNS(Q,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(K,e.substring(4)):t.getAttribute(e);for(var n in e){var r;e[A](n)&&((r=N(e[n]))?"xlink:"==n.substring(0,6)?t.setAttributeNS(Q,n.substring(6),r):"xml:"==n.substring(0,4)?t.setAttributeNS(K,n.substring(4),r):t.setAttribute(n,r):t.removeAttribute(n))}}else t=F.doc.createElementNS(K,t);return t}function m(t,e){return"finite"==(e=N.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)||R.call(t).slice(8,-1).toLowerCase()==e)}function r(i,o,a){function s(){var t=Array.prototype.slice.call(arguments,0),e=t.join("␀"),n=s.cache=s.cache||{},r=s.count=s.count||[];return n[A](e)?function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(r,e):(1e3<=r.length&&delete n[r.shift()],r.push(e),n[e]=i.apply(o,t)),a?a(n[e]):n[e]}return s}function i(t){return t%360*D/180}function o(t){return 180*t/D%360}function y(t,e,n,r,i,o){return null==e&&"[object SVGMatrix]"==R.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=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}function a(t){var r=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,e,n){return n=n.split(/\s*,\s*|\s+/),"rotate"==e&&1==n.length&&n.push(0,0),"scale"==e&&(2==n.length&&n.push(0,0),1==n.length&&n.push(n[0],0,0)),"skewX"==e?r.push(["m",1,0,L.tan(i(n[0])),1,0,0]):"skewY"==e?r.push(["m",1,L.tan(i(n[0])),0,1,0,0]):r.push([e.charAt(0)].concat(n)),t}),r}function l(t,e){var n=ft(t),r=new y;if(n)for(var i=0,o=n.length;i<o;i++){var a,s,l,u,c,h=n[i],d=h.length,f=N(h[0]).toLowerCase(),p=h[0]!=f,g=p?r.invert():0;"t"==f&&2==d?r.translate(h[1],0):"t"==f&&3==d?p?(a=g.x(0,0),s=g.y(0,0),l=g.x(h[1],h[2]),u=g.y(h[1],h[2]),r.translate(l-a,u-s)):r.translate(h[1],h[2]):"r"==f?2==d?r.rotate(h[1],(c=c||e).x+c.width/2,c.y+c.height/2):4==d&&(p?(l=g.x(h[2],h[3]),u=g.y(h[2],h[3]),r.rotate(h[1],l,u)):r.rotate(h[1],h[2],h[3])):"s"==f?2==d||3==d?r.scale(h[1],h[d-1],(c=c||e).x+c.width/2,c.y+c.height/2):4==d?p?(l=g.x(h[2],h[3]),u=g.y(h[2],h[3]),r.scale(h[1],h[1],l,u)):r.scale(h[1],h[1],h[2],h[3]):5==d&&(p?(l=g.x(h[3],h[4]),u=g.y(h[3],h[4]),r.scale(h[1],h[2],l,u)):r.scale(h[1],h[2],h[3],h[4])):"m"==f&&7==d&&r.add(h[1],h[2],h[3],h[4],h[5],h[6])}return r}function u(t,e){if(null==e){var n=!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 y;e=a(e)}else m(e=s._.rgTransform.test(e)?N(e).replace(/\.{3}|\u2026/g,t._.transform||""):a(e),"array")&&(e=s.path?s.path.toString.call(e):N(e)),t._.transform=e;e=l(e,t.getBBox(1));return n?e:void(t.matrix=e)}function c(t){var e=s._.someDefs;if(e&&gt(e.ownerDocument.documentElement,e))return e;e=t.node.ownerSVGElement&&C(t.node.ownerSVGElement)||t.node.parentNode&&C(t.node.parentNode)||s.select("svg")||s(0,0),t=e.select("defs"),t=(t=null!=t&&t.node)||b("defs",e.node).node;return s._.someDefs=t}function h(n,r,i){function t(t){return null==t?"":t==+t?t:(f(l,{width:t}),l.getBBox().width)}function e(t){return null==t?"":t==+t?t:(f(l,{height:t}),l.getBBox().height)}function o(t,e){null==r?s[t]=e(n.attr(t)):t==r&&(s=e(null==i?n.attr(t):i))}var a=c(n),s={},l=a.querySelector(".svg---mgr");switch(l||(l=f("rect"),f(l,{width:10,height:10,class:"svg---mgr"}),a.appendChild(l)),n.type){case"rect":o("rx",t),o("ry",e);case"image":o("width",t),o("height",e);case"text":o("x",t),o("y",e);break;case"circle":o("cx",t),o("cy",e),o("r",t);break;case"ellipse":o("cx",t),o("cy",e),o("rx",t),o("ry",e);break;case"line":o("x1",t),o("x2",t),o("y1",e),o("y2",e);break;case"marker":o("refX",t),o("markerWidth",t),o("refY",e),o("markerHeight",e);break;case"radialGradient":o("fx",t),o("fy",e);break;case"tspan":o("dx",t),o("dy",e);break;default:o(r,t)}return s}function d(t){m(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;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){r.appendChild(t.node)}):r.appendChild(t[e].node);for(var i=r.childNodes,e=0;e<i.length;e++)this[n++]=C(i[e]);return this}function p(t){if(t.snap in tt)return tt[t.snap];var e,n=this.id=Z();try{e=t.ownerSVGElement}catch(t){}if(this.node=t,e&&(this.paper=new w(e)),this.type=t.tagName,this.anims={},this._={transform:[]},t.snap=n,"g"==(tt[n]=this).type)for(var r in this.add=d,w.prototype)w.prototype[A](r)&&(this[r]=w.prototype[r])}function v(t){for(var e,n=0,r=t.length;n<r;n++)if(e=e||t[n])return e}function x(t){this.node=t}function b(t,e){var n=f(t);e.appendChild(n);n=C(n);return n.type=t,n}function w(t,e){var n,r,i,o=w.prototype;if(t&&"svg"==t.tagName){if(t.snap in tt)return tt[t.snap];for(var a in n=new p(t),r=t.getElementsByTagName("desc")[0],i=t.getElementsByTagName("defs")[0],r||((r=f("desc")).appendChild(F.doc.createTextNode("Created with Snap")),n.node.appendChild(r)),i||(i=f("defs"),n.node.appendChild(i)),n.defs=i,o)o[A](a)&&(n[a]=o[a]);n.paper=n.root=n}else f((n=b("svg",F.doc.body)).node,{height:e,version:1.1,width:t,xmlns:K});return n}function C(t){return t&&(t instanceof p||t instanceof x?t:new("svg"==t.tagName?w:p)(t))}function S(){return this.selectAll("stop")}function k(t,e){var n=f("stop"),e={offset:+e+"%"};return t=s.color(t),e["stop-color"]=t.hex,t.opacity<1&&(e["stop-opacity"]=t.opacity),f(n,e),this.node.appendChild(n),this}function E(){if("linearGradient"==this.type){var t=f(this.node,"x1")||0,e=f(this.node,"x2")||1,n=f(this.node,"y1")||0,r=f(this.node,"y2")||0;return s._.box(t,n,L.abs(e-t),L.abs(r-n))}t=this.node.cx||.5,r=this.node.cy||.5,n=this.node.r||0;return s._.box(t-n,r-n,2*n,2*n)}function T(t,e){function n(t,e){for(var n=(e-a)/(t-s),r=s;r<t;r++)i[r].offset=+(+a+n*(r-s)).toFixed(2);s=t,a=e}var r,e=v(wt("snap.util.grad.parse",null,e));if(!e)return null;e.params.unshift(t),r=("l"==e.type.toLowerCase()?M:B).apply(0,e.params),e.type!=e.type.toLowerCase()&&f(r.node,{gradientUnits:"userSpaceOnUse"});var i=e.stops,o=i.length,a=0,s=0;o--;for(var l=0;l<o;l++)"offset"in i[l]&&n(l,i[l].offset);for(i[o].offset=i[o].offset||100,n(o,i[o].offset),l=0;l<=o;l++){var u=i[l];r.addStop(u.color,u.offset)}return r}function M(t,e,n,r,i){t=b("linearGradient",t);return t.stops=S,t.addStop=k,t.getBBox=E,null!=e&&f(t.node,{x1:e,y1:n,x2:r,y2:i}),t}function B(t,e,n,r,i,o){t=b("radialGradient",t);return t.stops=S,t.addStop=k,t.getBBox=E,null!=e&&f(t.node,{cx:e,cy:n,r:r}),null!=i&&null!=o&&f(t.node,{fx:i,fy:o}),t}function t(r){return function(t){var e,n;wt.stop(),t instanceof x&&1==t.node.childNodes.length&&("radialGradient"==t.node.firstChild.tagName||"linearGradient"==t.node.firstChild.tagName||"pattern"==t.node.firstChild.tagName)&&(t=t.node.firstChild,c(this).appendChild(t),t=C(t)),n=t instanceof p?"radialGradient"==t.type||"linearGradient"==t.type||"pattern"==t.type?(t.node.id||f(t.node,{id:t.id}),et(t.node.id)):t.attr(r):(n=s.color(t)).error?(e=T(c(this),t))?(e.node.id||f(e.node,{id:e.id}),et(e.node.id)):t:N(n);t={};t[r]=n,f(this.node,t),this.node.style[r]=""}}s.version="0.2.0",s.toString=function(){return"Snap v"+this.version};var F={win:bt,doc:bt.document};(s._={}).glob=F;var e,_,A="hasOwnProperty",N=String,P=parseFloat,j=parseInt,L=Math,q=L.max,O=L.min,z=L.abs,D=(L.pow,L.PI),R=(L.round,Object.prototype.toString),U=/^\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,n=/^url\(#?([^)]+)\)$/,G="\t\n\v\f\r   ᠎              \u2028\u2029",$=new RegExp("[,"+G+"]+"),V=(new RegExp("["+G+"]","g"),new RegExp("["+G+"]*,["+G+"]*")),I={hs:1,rg:1},H=new RegExp("([a-z])["+G+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+G+"]*,?["+G+"]*)+)","ig"),X=new RegExp("([rstm])["+G+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+G+"]*,?["+G+"]*)+)","ig"),Y=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+G+"]*,?["+G+"]*","ig"),W=0,J="S"+(+new Date).toString(36),Z=function(){return J+(W++).toString(36)},Q="http://www.w3.org/1999/xlink",K="http://www.w3.org/2000/svg",tt={},et=s.url=function(t){return"url('#"+t+"')"};s._.$=f,s._.id=Z,s.format=(e=/\{([^\}]+)\}/g,_=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,r){return N(t).replace(e,function(t,e){return n=t,o=t=r,e.replace(_,function(t,e,n,r,i){e=e||r,o&&("function"==typeof(o=e in o?o[e]:o)&&i&&(o=o()))}),o=(null==o||o==t?n:o)+"";var n,o})});var nt,rt=function(t,e){var n=F.doc.createElement("img"),r=F.doc.body;n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(n),n.onload=n.onerror=null,r.removeChild(n)},n.onerror=it,r.appendChild(n),n.src=t};function it(){this.parentNode.removeChild(this)}function ot(t){return t[0]*t[0]+t[1]*t[1]}function at(t){var e=L.sqrt(ot(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}s._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n,r=new e.constructor;for(n in e)e[A](n)&&(r[n]=t(e[n]));return r},s._.cacher=r,s.rad=i,s.deg=o,s.angle=function t(e,n,r,i,o,a){if(null!=o)return t(e,n,o,a)-t(r,i,o,a);r=e-r,i=n-i;return r||i?(180+180*L.atan2(-i,-r)/D+360)%360:0},s.is=m,s.snapTo=function(t,e,n){if(n=m(n,"finite")?n:10,m(t,"array")){for(var r=t.length;r--;)if(z(t[r]-e)<=n)return t[r]}else{var i=e%(t=+t);if(i<n)return e-i;if(t-n<i)return e-i+t}return e},(nt=y.prototype).add=function(t,e,n,r,i,o){var a,s,l,u,c=[[],[],[]],h=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],d=[[t,n,i],[e,r,o],[0,0,1]];for(t&&t instanceof y&&(d=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;a<3;a++)for(s=0;s<3;s++){for(l=u=0;l<3;l++)u+=h[a][l]*d[l][s];c[a][s]=u}return this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2],this},nt.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new y(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)},nt.clone=function(){return new y(this.a,this.b,this.c,this.d,this.e,this.f)},nt.translate=function(t,e){return this.add(1,0,0,1,t,e)},nt.scale=function(t,e,n,r){return null==e&&(e=t),(n||r)&&this.add(1,0,0,1,n,r),this.add(t,0,0,e,0,0),(n||r)&&this.add(1,0,0,1,-n,-r),this},nt.rotate=function(t,e,n){t=i(t),e=e||0,n=n||0;var r=+L.cos(t).toFixed(9),t=+L.sin(t).toFixed(9);return this.add(r,t,-t,r,e,n),this.add(1,0,0,1,-e,-n)},nt.x=function(t,e){return t*this.a+e*this.c+this.e},nt.y=function(t,e){return t*this.b+e*this.d+this.f},nt.get=function(t){return+this[N.fromCharCode(97+t)].toFixed(4)},nt.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},nt.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},nt.split=function(){var t={};t.dx=this.e,t.dy=this.f;var e=[[this.a,this.c],[this.b,this.d]];t.scalex=L.sqrt(ot(e[0])),at(e[0]),t.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1],e[1]=[e[1][0]-e[0][0]*t.shear,e[1][1]-e[0][1]*t.shear],t.scaley=L.sqrt(ot(e[1])),at(e[1]),t.shear/=t.scaley;var n=-e[0][1],e=e[1][1];return e<0?(t.rotate=o(L.acos(e)),n<0&&(t.rotate=360-t.rotate)):t.rotate=o(L.asin(n)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},nt.toTransformString=function(t){t=t||this.split();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:"")+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]},s.Matrix=y,s.getRGB=r(function(t){if(!t||(t=N(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:dt};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:dt};if(!(t=!I[A](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()?ht(t):t))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:dt};var e,n,r,i,o,a=t.match(U);return a?(a[2]&&(r=j(a[2].substring(5),16),n=j(a[2].substring(3,5),16),e=j(a[2].substring(1,3),16)),a[3]&&(r=j((t=a[3].charAt(3))+t,16),n=j((t=a[3].charAt(2))+t,16),e=j((t=a[3].charAt(1))+t,16)),a[4]&&(o=a[4].split(V),e=P(o[0]),"%"==o[0].slice(-1)&&(e*=2.55),n=P(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),r=P(o[2]),"%"==o[2].slice(-1)&&(r*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(i=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(i/=100)),a[5]?(o=a[5].split(V),e=P(o[0]),"%"==o[0].slice(-1)&&(e/=100),n=P(o[1]),"%"==o[1].slice(-1)&&(n/=100),r=P(o[2]),"%"==o[2].slice(-1)&&(r/=100),"deg"!=o[0].slice(-3)&&"°"!=o[0].slice(-1)||(e/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(i=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(i/=100),s.hsb2rgb(e,n,r,i)):a[6]?(o=a[6].split(V),e=P(o[0]),"%"==o[0].slice(-1)&&(e/=100),n=P(o[1]),"%"==o[1].slice(-1)&&(n/=100),r=P(o[2]),"%"==o[2].slice(-1)&&(r/=100),"deg"!=o[0].slice(-3)&&"°"!=o[0].slice(-1)||(e/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(i=P(o[3])),o[3]&&"%"==o[3].slice(-1)&&(i/=100),s.hsl2rgb(e,n,r,i)):(e=O(L.round(e),255),n=O(L.round(n),255),r=O(L.round(r),255),i=O(q(i,0),1),(a={r:e,g:n,b:r,toString:dt}).hex="#"+(16777216|r|n<<8|e<<16).toString(16).slice(1),a.opacity=m(i,"finite")?i:1,a)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:dt}},s),s.hsb=r(function(t,e,n){return s.hsb2rgb(t,e,n).hex}),s.hsl=r(function(t,e,n){return s.hsl2rgb(t,e,n).hex}),s.rgb=r(function(t,e,n,r){if(m(r,"finite")){var i=L.round;return"rgba("+[i(t),i(e),i(n),+r.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});function st(){return"hsb("+[this.h,this.s,this.b]+")"}function lt(){return"hsl("+[this.h,this.s,this.l]+")"}function ut(t,e,n){var r;return null==e&&m(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),null==e&&m(t,string)&&(t=(r=s.getRGB(t)).r,e=r.g,n=r.b),(1<t||1<e||1<n)&&(t/=255,e/=255,n/=255),[t,e,n]}function ct(t,e,n,r){return n={r:t=L.round(255*t),g:e=L.round(255*e),b:n=L.round(255*n),opacity:m(r,"finite")?r:1,hex:s.rgb(t,e,n),toString:dt},m(r,"finite")&&(n.opacity=r),n}var ht=function(t){var e=F.doc.getElementsByTagName("head")[0],n="rgb(255, 0, 0)";return(ht=r(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;t=F.doc.defaultView.getComputedStyle(e,"").getPropertyValue("color");return t==n?null:t}))(t)},dt=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"};s.color=function(t){var e;return m(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=s.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):m(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=s.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(m(t,"string")&&(t=s.getRGB(t)),m(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=s.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=s.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=dt,t},s.hsb2rgb=function(t,e,n,r){var i,o,a;return m(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=(t=t.h).o),o=(a=n*e)*(1-z((t=(t*=360)%360/60)%2-1)),n=e=i=n-a,ct(n+=[a,o,0,0,o,a][t=~~t],e+=[o,a,a,o,0,0][t],i+=[0,0,o,a,a,o][t],r)},s.hsl2rgb=function(t,e,n,r){var i,o,a;return m(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(1<t||1<e||1<n)&&(t/=360,e/=100,n/=100),o=(a=2*e*(n<.5?n:1-n))*(1-z((t=(t*=360)%360/60)%2-1)),n=e=i=n-a/2,ct(n+=[a,o,0,0,o,a][t=~~t],e+=[o,a,a,o,0,0][t],i+=[0,0,o,a,a,o][t],r)},s.rgb2hsb=function(t,e,n){var r,i;return t=(n=ut(t,e,n))[0],e=n[1],n=n[2],{h:((0==(i=(r=q(t,e,n))-O(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:st}},s.rgb2hsl=function(t,e,n){var r,i,o;return t=(n=ut(t,e,n))[0],e=n[1],n=n[2],r=((i=q(t,e,n))+(o=O(t,e,n)))/2,{h:((0==(o=i-o)?null:i==t?(e-n)/o:i==e?(n-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:r<.5?o/(2*r):o/(2-2*r),l:r,toString:lt}},s.parsePathString=function(t){if(!t)return null;var e=s.path(t);if(e.arr)return s.path.clone(e.arr);var o={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(a=m(t,"array")&&m(t[0],"array")?s.path.clone(t):a).length||N(t).replace(H,function(t,e,n){var r=[],i=e.toLowerCase();if(n.replace(Y,function(t,e){e&&r.push(+e)}),"m"==i&&2<r.length&&(a.push([e].concat(r.splice(0,2))),i="l",e="m"==e?"l":"L"),"o"==i&&1==r.length&&a.push([e,r[0]]),"r"==i)a.push([e].concat(r));else for(;r.length>=o[i]&&(a.push([e].concat(r.splice(0,o[i]))),o[i]););}),a.toString=s.path.toString,e.arr=s.path.clone(a),a};var ft=s.parseTransformString=function(t){if(!t)return null;var i=[];return(i=m(t,"array")&&m(t[0],"array")?s.path.clone(t):i).length||N(t).replace(X,function(t,e,n){var r=[];e.toLowerCase(),n.replace(Y,function(t,e){e&&r.push(+e)}),i.push([e].concat(r))}),i.toString=s.path.toString,i};s._.svgTransform2string=a,s._.rgTransform=new RegExp("^[a-z]["+G+"]*-?\\.?\\d","i"),s._.transform2matrix=l,s._unit2px=h;var pt,gt=F.doc.contains||F.doc.compareDocumentPosition?function(t,e){var n=9==t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t==e||!(!e||1!=e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e;)if((e=e.parentNode)==t)return!0;return!1};s._.getSomeDefs=c,s.select=function(t){return C(F.doc.querySelector(t))},s.selectAll=function(t){for(var e=F.doc.querySelectorAll(t),n=(s.set||Array)(),r=0;r<e.length;r++)n.push(C(e[r]));return n},function(t){function e(t){function e(n,r){var t=f(n.node,r);!(t=(t=t&&t.match(i))&&t[2])||"#"!=t.charAt()||(t=t.substring(1))&&(a[t]=(a[t]||[]).concat(function(t){var e={};e[r]=et(t),f(n.node,e)}))}for(var n,r=t.selectAll("*"),i=/^\s*url\(("|'|)(.*)\1\)\s*$/,o=[],a={},s=0,l=r.length;s<l;s++){e(n=r[s],"fill"),e(n,"stroke"),e(n,"filter"),e(n,"mask"),e(n,"clip-path"),function(e){var t=f(e.node,"xlink:href");!t||"#"!=t.charAt()||(t=t.substring(1))&&(a[t]=(a[t]||[]).concat(function(t){e.attr("xlink:href","#"+t)}))}(n);var u=f(n.node,"id");u&&(f(n.node,{id:n.id}),o.push({old:u,id:n.id}))}for(s=0,l=o.length;s<l;s++){var c=a[o[s].old];if(c)for(var h=0,d=c.length;h<d;h++)c[h](o[s].id)}}function n(o){return function(){var t=o?"<"+this.type:"",e=this.node.attributes,n=this.node.childNodes;if(o)for(var r=0,i=e.length;r<i;r++)t+=" "+e[r].name+'="'+e[r].value.replace(/"/g,'\\"')+'"';if(n.length){for(o&&(t+=">"),r=0,i=n.length;r<i;r++)3==n[r].nodeType?t+=n[r].nodeValue:1==n[r].nodeType&&(t+=C(n[r]).toString());o&&(t+="</"+this.type+">")}else o&&(t+="/>");return t}}t.attr=function(t,e){var n,r=this;if(r.node,!t)return r;if(m(t,"string")){if(!(1<arguments.length))return v(wt("snap.util.getattr."+t,r));var i={};i[t]=e,t=i}for(n in t)t[A](n)&&wt("snap.util.attr."+n,r,t[n]);return r},t.getBBox=function(t){var e=this;if((e="use"==e.type?e.original:e).removed)return{};var n=e._;return t?(n.bboxwt=s.path.get[e.type]?s.path.getBBox(e.realPath=s.path.get[e.type](e)):s._.box(e.node.getBBox()),s._.box(n.bboxwt)):(e.realPath=(s.path.get[e.type]||s.path.get.deflt)(e),n.bbox=s.path.getBBox(s.path.map(e.realPath,e.matrix)),s._.box(n.bbox))};function i(){return this.string}t.transform=function(t){var e=this._;if(null!=t)return u(this,t=t instanceof y?t.toTransformString():t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?f(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?f(this.node,{patternTransform:this.matrix}):f(this.node,{transform:this.matrix})),this;var n=new y(this.node.getCTM()),r=u(this),t=r.toTransformString();return{string:N(r)==N(this.matrix)?e.transform:t,globalMatrix:n,localMatrix:r,diffMatrix:n.clone().add(r.invert()),global:n.toTransformString(),local:t,toString:i}},t.parent=function(){return C(this.node.parentNode)},t.append=t.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=C(t),this.node.appendChild(t.node),t.paper=this.paper}return this},t.appendTo=function(t){return t&&(t=C(t)).append(this),this},t.prepend=function(t){var e;return t&&(e=(t=C(t)).parent(),this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),e&&e.add()),this},t.prependTo=function(t){return(t=C(t)).prepend(this),this},t.before=function(t){if("set"==t.type){var n=this;return t.forEach(function(t){var e=t.parent();n.node.parentNode.insertBefore(t.node,n.node),e&&e.add()}),this.parent().add(),this}var e=(t=C(t)).parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},t.after=function(t){var e=(t=C(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},t.insertBefore=function(t){t=C(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},t.insertAfter=function(t){t=C(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},t.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},t.select=function(t){return C(this.node.querySelector(t))},t.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(s.set||Array)(),r=0;r<e.length;r++)n.push(C(e[r]));return n},t.asPX=function(t,e){return null==e&&(e=this.attr(t)),+h(this,t,e)},t.use=function(){var t,e=this.node.id;return e||(e=this.id,f(this.node,{id:e})),f((t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?b(this.type,this.node.parentNode):b("use",this.node.parentNode)).node,{"xlink:href":"#"+e}),t.original=this,t},t.clone=function(){var t=C(this.node.cloneNode(!0));return f(t.node,"id")&&f(t.node,{id:t.id}),e(t),t.insertAfter(this),t},t.toDefs=function(){return c(this).appendChild(this.node),this},t.pattern=function(t,e,n,r){var i=b("pattern",c(this));return m(t=null==t?this.getBBox():t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,t=t.x),f(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},t.marker=function(t,e,n,r,i,o){var a=b("marker",c(this));return m(t=null==t?this.getBBox():t,"object")&&"x"in t&&(e=t.y,n=t.width,r=t.height,i=t.refX||t.cx,o=t.refY||t.cy,t=t.x),f(a.node,{viewBox:[t,e,n,r].join(" "),markerWidth:n,markerHeight:r,orient:"auto",refX:i||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};function g(t,e,n,r){"function"!=typeof n||n.length||(r=n,n=Ct.linear),this.attr=t,this.dur=e,n&&(this.easing=n),r&&(this.callback=r)}s.animation=function(t,e,n,r){return new g(t,e,n,r)},t.inAnim=function(){var t,n=[];for(t in this.anims)this.anims[A](t)&&function(e){n.push({anim:new g(e._attrs,e.dur,e.easing,e._callback),curStatus:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(this.anims[t]);return n},s.animate=function(t,e,n,r,i,o){"function"!=typeof i||i.length||(o=i,i=Ct.linear);var a=Ct.time(),i=Ct(t,e,a,a+r,Ct.time,n,i);return o&&wt.once("mina.finish."+i.id,o),i},t.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e<n;e++)t[e].stop();return this},t.animate=function(t,e,n,r){"function"!=typeof n||n.length||(r=n,n=Ct.linear),t instanceof g&&(r=t.callback,e=(n=t.easing).dur,t=t.attr);var i,o,a,s,l,u=[],c=[],h={},d=this;for(s in t)t[A](s)&&(d.equal?(i=(l=d.equal(s,N(t[s]))).from,o=l.to,a=l.f):(i=+d.attr(s),o=+t[s]),l=m(i,"array")?i.length:1,h[s]=function(e,n,r){return function(t){t=t.slice(e,n);return 1==t.length&&(t=t[0]),r?r(t):t}}(u.length,u.length+l,a),u=u.concat(i),c=c.concat(o));var f=Ct.time(),p=Ct(u,c,f,f+e,Ct.time,function(t){var e,n={};for(e in h)h[A](e)&&(n[e]=h[e](t));d.attr(n)},n);return(d.anims[p.id]=p)._attrs=t,p._callback=r,wt.once("mina.finish."+p.id,function(){delete d.anims[p.id],r&&r.call(d)}),wt.once("mina.stop."+p.id,function(){delete d.anims[p.id]}),d};var o={};t.data=function(t,e){var n=o[this.id]=o[this.id]||{};if(0==arguments.length)return wt("snap.data.get."+this.id,this,n,null),n;if(1!=arguments.length)return n[t]=e,wt("snap.data.set."+this.id,this,e,t),this;if(s.is(t,"object")){for(var r in t)t[A](r)&&this.data(r,t[r]);return this}return wt("snap.data.get."+this.id,this,n[t],t),n[t]},t.removeData=function(t){return null==t?o[this.id]={}:o[this.id]&&delete o[this.id][t],this},t.outerSVG=t.toString=n(1),t.innerSVG=n()}(p.prototype),s.parse=function(t){var e=F.doc.createDocumentFragment(),n=!0,r=F.doc.createElement("div");if((t=N(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),r.innerHTML=t,t=r.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return r.innerHTML="",new x(e)},x.prototype.select=p.prototype.select,x.prototype.selectAll=p.prototype.selectAll,s.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=F.doc.createDocumentFragment(),n=0,r=t.length;n<r;n++){var i=t[n];i.node&&i.node.nodeType&&e.appendChild(i.node),i.nodeType&&e.appendChild(i),"string"==typeof i&&e.appendChild(s.parse(i).node)}return new x(e)},(pt=w.prototype).el=function(t,e){return b(t,this.node).attr(e)},pt.rect=function(t,e,n,r,i,o){var a;return null==o&&(o=i),m(t,"object")&&"x"in t?a=t:null!=t&&(a={x:t,y:e,width:n,height:r},null!=i&&(a.rx=i,a.ry=o)),this.el("rect",a)},pt.circle=function(t,e,n){var r;return m(t,"object")&&"cx"in t?r=t:null!=t&&(r={cx:t,cy:e,r:n}),this.el("circle",r)},pt.image=function(t,e,n,r,i){var o,a=b("image",this.node);return m(t,"object")&&"src"in t?a.attr(t):null!=t&&(o={"xlink:href":t,preserveAspectRatio:"none"},null!=e&&null!=n&&(o.x=e,o.y=n),null!=r&&null!=i?(o.width=r,o.height=i):rt(t,function(){f(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),f(a.node,o)),a},pt.ellipse=function(t,e,n,r){var i=b("ellipse",this.node);return m(t,"object")&&"cx"in t?i.attr(t):null!=t&&i.attr({cx:t,cy:e,rx:n,ry:r}),i},pt.path=function(t){var e=b("path",this.node);return m(t,"object")&&!m(t,"array")?e.attr(t):t&&e.attr({d:t}),e},pt.group=pt.g=function(t){var e,n=b("g",this.node);for(e in n.add=d,pt)pt[A](e)&&(n[e]=pt[e]);return 1==arguments.length&&t&&!t.type?n.attr(t):arguments.length&&n.add(Array.prototype.slice.call(arguments,0)),n},pt.text=function(t,e,n){var r=b("text",this.node);return m(t,"object")?r.attr(t):null!=t&&r.attr({x:t,y:e,text:n||""}),r},pt.line=function(t,e,n,r){var i=b("line",this.node);return m(t,"object")?i.attr(t):null!=t&&i.attr({x1:t,x2:n,y1:e,y2:r}),i},pt.polyline=function(t){1<arguments.length&&(t=Array.prototype.slice.call(arguments,0));var e=b("polyline",this.node);return m(t,"object")&&!m(t,"array")?e.attr(t):null!=t&&e.attr({points:t}),e},pt.polygon=function(t){1<arguments.length&&(t=Array.prototype.slice.call(arguments,0));var e=b("polygon",this.node);return m(t,"object")&&!m(t,"array")?e.attr(t):null!=t&&e.attr({points:t}),e},pt.gradient=function(t){return T(this.defs,t)},pt.gradientLinear=function(t,e,n,r){return M(this.defs,t,e,n,r)},pt.gradientRadial=function(t,e,n,r,i){return B(this.defs,t,e,n,r,i)},pt.toString=function(){var t=F.doc.createDocumentFragment(),e=F.doc.createElement("div"),n=this.node.cloneNode(!0);return t.appendChild(e),e.appendChild(n),f(n,{xmlns:K}),e=e.innerHTML,t.removeChild(t.firstChild),e},pt.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName&&e.parentNode.removeChild(e),e=t},s.ajax=function(t,e,n,r){var i=new XMLHttpRequest,o=Z();if(i){if(m(e,"function"))r=n,n=e,e=null;else if(m(e,"object")){var a,s=[];for(a in e)e.hasOwnProperty(a)&&s.push(encodeURIComponent(a)+"="+encodeURIComponent(e[a]));e=s.join("&")}return i.open(e?"POST":"GET",t,!0),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),e&&i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n&&(wt.once("snap.ajax."+o+".0",n),wt.once("snap.ajax."+o+".200",n),wt.once("snap.ajax."+o+".304",n)),i.onreadystatechange=function(){4==i.readyState&&wt("snap.ajax."+o+"."+i.status,r,i)},4==i.readyState||i.send(e),i}},s.load=function(t,e,n){s.ajax(t,function(t){t=s.parse(t.responseText);n?e.call(n,t):e(t)})},wt.on("snap.util.attr.mask",function(t){var e;(t instanceof p||t instanceof x)&&(wt.stop(),t instanceof x&&1==t.node.childNodes.length&&(t=t.node.firstChild,c(this).appendChild(t),t=C(t)),"mask"==t.type?e=t:((e=b("mask",c(this))).node.appendChild(t.node),e.node.id||f(e.node,{id:e.id})),f(this.node,{mask:et(e.id)}))}),G=function(t){var e;(t instanceof p||t instanceof x)&&(wt.stop(),"clipPath"==t.type?e=t:((e=b("clipPath",c(this))).node.appendChild(t.node),e.node.id||f(e.node,{id:e.id})),f(this.node,{"clip-path":et(e.id)}))},wt.on("snap.util.attr.clip",G),wt.on("snap.util.attr.clip-path",G),wt.on("snap.util.attr.clipPath",G),wt.on("snap.util.attr.fill",t("fill")),wt.on("snap.util.attr.stroke",t("stroke"));var mt=/^([lr])(?:\(([^)]*)\))?(.*)$/i;wt.on("snap.util.grad.parse",function(t){var e=(t=N(t)).match(mt);if(!e)return null;var n=e[1],t=e[2],e=e[3];return{type:n,params:t=1==(t=t.split(/\s*,\s*/).map(function(t){return+t==t?+t:t})).length&&0==t[0]?[]:t,stops:e=(e=e.split("-")).map(function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=t[1]),e})}}),wt.on("snap.util.attr.d",function(t){wt.stop(),m(t,"array")&&m(t[0],"array")&&(t=s.path.toString.call(t)),(t=N(t)).match(/[ruo]/i)&&(t=s.path.toAbsolute(t)),f(this.node,{d:t})})(-1),wt.on("snap.util.attr.#text",function(t){wt.stop(),t=N(t);for(t=F.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(t)})(-1),wt.on("snap.util.attr.path",function(t){wt.stop(),this.attr({d:t})})(-1),wt.on("snap.util.attr.viewBox",function(t){t=m(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):m(t,"array")?t.join(" "):t;f(this.node,{viewBox:t}),wt.stop()})(-1),wt.on("snap.util.attr.transform",function(t){this.transform(t),wt.stop()})(-1),wt.on("snap.util.attr.r",function(t){"rect"==this.type&&(wt.stop(),f(this.node,{rx:t,ry:t}))})(-1),wt.on("snap.util.attr.textpath",function(t){if(wt.stop(),"text"==this.type){var e,n,r,i;if(!t&&this.textPath){for(e=this.textPath;e.node.firstChild;)this.node.appendChild(e.node.firstChild);return e.remove(),void delete this.textPath}if(m(t,"string")?(i=C((r=c(this)).parentNode).path(t),r.appendChild(i.node),r=i.id,i.attr({id:r})):(t=C(t))instanceof p&&((r=t.attr("id"))||(r=t.id,t.attr({id:r}))),r)if(e=this.textPath,n=this.node,e)e.attr({"xlink:href":"#"+r});else{for(e=f("textPath",{"xlink:href":"#"+r});n.firstChild;)e.appendChild(n.firstChild);n.appendChild(e),this.textPath=C(e)}}})(-1),wt.on("snap.util.attr.text",function(t){if("text"==this.type){for(var e=this.node,r=function(t){var e=f("tspan");if(m(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(r(t[n]));else e.appendChild(F.doc.createTextNode(t));return e.normalize&&e.normalize(),e};e.firstChild;)e.removeChild(e.firstChild);for(var n=r(t);n.firstChild;)e.appendChild(n.firstChild)}wt.stop()})(-1);var yt={"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};function vt(e){return function(){wt.stop();var t=F.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+e);return"none"==t?t:s(F.doc.getElementById(t.match(n)[1]))}}function xt(r){return function(t){wt.stop();var e,n="marker"+r.charAt(0).toUpperCase()+r.substring(1);""!=t&&t?"marker"==t.type&&((e=t.node.id)||f(t.node,{id:t.id}),this.node.style[n]=et(e)):this.node.style[n]="none"}}wt.on("snap.util.attr",function(t){var e=wt.nt(),n={};n[e=e.substring(e.lastIndexOf(".")+1)]=t;var r=e.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),e=e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});yt[A](e)?this.node.style[r]=null==t?"":t:f(this.node,n)}),wt.on("snap.util.getattr.transform",function(){return wt.stop(),this.transform()})(-1),wt.on("snap.util.getattr.textpath",function(){return wt.stop(),this.textPath})(-1),wt.on("snap.util.getattr.marker-end",vt("end"))(-1),wt.on("snap.util.getattr.markerEnd",vt("end"))(-1),wt.on("snap.util.getattr.marker-start",vt("start"))(-1),wt.on("snap.util.getattr.markerStart",vt("start"))(-1),wt.on("snap.util.getattr.marker-mid",vt("mid"))(-1),wt.on("snap.util.getattr.markerMid",vt("mid"))(-1),wt.on("snap.util.attr.marker-end",xt("end"))(-1),wt.on("snap.util.attr.markerEnd",xt("end"))(-1),wt.on("snap.util.attr.marker-start",xt("start"))(-1),wt.on("snap.util.attr.markerStart",xt("start"))(-1),wt.on("snap.util.attr.marker-mid",xt("mid"))(-1),wt.on("snap.util.attr.markerMid",xt("mid"))(-1),wt.on("snap.util.getattr.r",function(){return"rect"==this.type&&f(this.node,"rx")==f(this.node,"ry")?(wt.stop(),f(this.node,"rx")):void 0})(-1),wt.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){wt.stop();var t=function t(e){for(var n=[],r=e.childNodes,i=0,o=r.length;i<o;i++){var a=r[i];3==a.nodeType&&n.push(a.nodeValue),"tspan"==a.tagName&&(1==a.childNodes.length&&3==a.firstChild.nodeType?n.push(a.firstChild.nodeValue):n.push(t(a)))}return n}(this.node);return 1==t.length?t[0]:t}})(-1),wt.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),wt.on("snap.util.getattr.viewBox",function(){wt.stop();var t=f(this.node,"viewBox").split($);return s._.box(+t[0],+t[1],+t[2],+t[3])})(-1),wt.on("snap.util.getattr.points",function(){var t=f(this.node,"points");return wt.stop(),t.split($)}),wt.on("snap.util.getattr.path",function(){var t=f(this.node,"d");return wt.stop(),t}),wt.on("snap.util.getattr",function(){var t=wt.nt(),e=(t=t.substring(t.lastIndexOf(".")+1)).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return yt[A](e)?F.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue(e):f(this.node,t)});return s.getElementByPoint=function(t,e){var n,r,i,o,a,s=(this.canvas,F.doc.elementFromPoint(t,e));return F.win.opera&&"svg"==s.tagName&&(r=(n=s).getBoundingClientRect(),i=n.ownerDocument,o=i.body,a=i.documentElement,n=a.clientTop||o.clientTop||0,i=a.clientLeft||o.clientLeft||0,o={y:r.top+(g.win.pageYOffset||a.scrollTop||o.scrollTop)-n,x:r.left+(g.win.pageXOffset||a.scrollLeft||o.scrollLeft)-i},(i=s.createSVGRect()).x=t-o.x,i.y=e-o.y,i.width=i.height=1,(i=s.getIntersectionList(i,null)).length&&(s=i[i.length-1])),s?C(s):null},s.plugin=function(t){t(s,p,w,F)},F.win.Snap=s}();function m(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}function y(t){return null==t?this.spd:void(this.spd=t)}function v(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))}function x(){delete u[this.id],s("mina.stop."+this.id,this)}function b(){var t=this;t.pdif||(delete u[t.id],t.pdif=t.get()-t.b)}function w(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,u[t.id]=t)}return t.plugin(function(T,m){function x(e){var n=x.ps=x.ps||{};return n[e]?n[e].sleep=100:n[e]={sleep:100},setTimeout(function(){for(var t in n)n[r](t)&&t!=e&&(n[t].sleep--,n[t].sleep||delete n[t])}),n[e]}function d(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:O.min(n,r)/2,r2:O.max(n,r)/2,r0:O.sqrt(n*n+r*r)/2,path:s(t,e,n,r),vb:[t,e,n,r].join(" ")}}function b(){return this.join(",").replace(n,"$1")}function w(t){t=p(t);return t.toString=b,t}function y(t,e,n,r,i,o,a,s,l){return null==l?E(t,e,n,r,i,o,a,s):C(t,e,n,r,i,o,a,s,function(t,e,n,r,i,o,a,s,l){if(!(l<0||E(t,e,n,r,i,o,a,s)<l)){var u,c=.5,h=1-c;for(u=E(t,e,n,r,i,o,a,s,h);.01<G(u-l);)u=E(t,e,n,r,i,o,a,s,h+=(u<l?1:-1)*(c/=2));return h}}(t,e,n,r,i,o,a,s,l))}function t(f,p){function g(t){return+(+t).toFixed(3)}return T._.cacher(function(t,e,n){for(var r,i,o,a,s,l="",u={},c=0,h=0,d=(t=P(t=t instanceof m?t.attr("d"):t)).length;h<d;h++){if("M"==(o=t[h])[0])r=+o[1],i=+o[2];else{if(e<c+(a=y(r,i,o[1],o[2],o[3],o[4],o[5],o[6]))){if(p&&!u.start){if(l+=["C"+g((s=y(r,i,o[1],o[2],o[3],o[4],o[5],o[6],e-c)).start.x),g(s.start.y),g(s.m.x),g(s.m.y),g(s.x),g(s.y)],n)return l;u.start=l,l=["M"+g(s.x),g(s.y)+"C"+g(s.n.x),g(s.n.y),g(s.end.x),g(s.end.y),g(o[5]),g(o[6])].join(),c+=a,r=+o[5],i=+o[6];continue}if(!f&&!p)return y(r,i,o[1],o[2],o[3],o[4],o[5],o[6],e-c)}c+=a,r=+o[5],i=+o[6]}l+=o.shift()+o}return u.end=l,f?c:p?u:C(r,i,o[0],o[1],o[2],o[3],o[4],o[5],1)},null,T._.clone)}function C(t,e,n,r,i,o,a,s,l){var u=1-l,c=U(u,3),h=U(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),m=n+2*l*(i-n)+d*(a-2*i+n),d=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:m,y:d},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*O.atan2(p-m,g-d)/z}}function S(t,e,n,r,i,o,a,s){T.is(t,"array")||(t=[t,e,n,r,i,o,a,s]);t=f.apply(null,t);return d(t.min.x,t.min.y,t.max.x-t.min.x,t.max.y-t.min.y)}function i(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function k(t,e){return t=d(t),i(e=d(e),t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function v(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}function E(t,e,n,r,i,o,a,s,l){for(var u=(l=1<(l=null==l?1:l)?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=u*c[f]+u,g=v(p,t,n,i,a),p=v(p,e,r,o,s);d+=h[f]*O.sqrt(g*g+p*p)}return u*d}function M(t,e,n){if(!k(S(t),S(e)))return n?0:[];for(var r=~~(E.apply(0,t)/5),i=~~(E.apply(0,e)/5),o=[],a=[],s={},l=n?0:[],u=0;u<1+r;u++){var c=C.apply(0,t.concat(u/r));o.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<1+i;u++)c=C.apply(0,e.concat(u/i)),a.push({x:c.x,y:c.y,t:u/i});for(u=0;u<r;u++)for(var h=0;h<i;h++){var d=o[u],f=o[u+1],p=a[h],g=a[h+1],m=G(f.x-d.x)<.001?"y":"x",y=G(g.x-p.x)<.001?"y":"x",v=function(t,e,n,r,i,o,a,s){if(!(R(t,n)<D(i,a)||D(t,n)>R(i,a)||R(e,r)<D(o,s)||D(e,r)>R(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),l=+c.toFixed(2);if(!(h<+D(t,n).toFixed(2)||h>+R(t,n).toFixed(2)||h<+D(i,a).toFixed(2)||h>+R(i,a).toFixed(2)||l<+D(e,r).toFixed(2)||l>+R(e,r).toFixed(2)||l<+D(o,s).toFixed(2)||l>+R(o,s).toFixed(2)))return{x:u,y:c}}}}(d.x,d.y,f.x,f.y,p.x,p.y,g.x,g.y);v&&s[v.x.toFixed(4)]!=v.y.toFixed(4)&&(s[v.x.toFixed(4)]=v.y.toFixed(4),d=d.t+G((v[m]-d[m])/(f[m]-d[m]))*(f.t-d.t),p=p.t+G((v[y]-p[y])/(g[y]-p[y]))*(g.t-p.t),0<=d&&d<=1&&0<=p&&p<=1&&(n?l++:l.push({x:v.x,y:v.y,t1:d,t2:p})))}return l}function o(t,e,n){t=P(t),e=P(e);for(var r,i,o,a,s,l,u,c,h=n?0:[],d=0,f=t.length;d<f;d++){var p=t[d];if("M"==p[0])r=o=p[1],g=a=p[2];else for(var g="C"==p[0]?(r=(u=[r,g].concat(p.slice(1)))[6],u[7]):(u=[r,g,r,g,o,a,o,a],r=o,a),m=0,y=e.length;m<y;m++){var v=e[m];if("M"==v[0])i=s=v[1],x=l=v[2];else{var x="C"==v[0]?(i=(c=[i,x].concat(v.slice(1)))[6],c[7]):(c=[i,x,i,x,s,l,s,l],i=s,l),b=M(u,c,n);if(n)h+=b;else{for(var w=0,C=b.length;w<C;w++)b[w].segment1=d,b[w].segment2=m,b[w].bez1=u,b[w].bez2=c;h=h.concat(b)}}}}return h}function a(t){var e=x(t);if(e.bbox)return p(e.bbox);if(!t)return d();for(var n,r,i=0,o=0,a=[],s=[],l=0,u=(t=P(t)).length;l<u;l++)"M"==(n=t[l])[0]?(i=n[1],o=n[2],a.push(i),s.push(o)):(r=f(i,o,n[1],n[2],n[3],n[4],n[5],n[6]),a=a.concat(r.min.x,r.max.x),s=s.concat(r.min.y,r.max.y),i=n[5],o=n[6]);var c=D.apply(0,a),h=D.apply(0,s),h=d(c,h,R.apply(0,a)-c,R.apply(0,s)-h);return e.bbox=p(h),h}function s(t,e,n,r,i){if(i)return[["M",t+i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];n=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return n.toString=b,n}function B(t,e,n,r,i){var o,a,s;return null==i&&null==r&&(r=n),(r=null!=i?(o=Math.PI/180,a=t+n*Math.cos(-r*o),s=t+n*Math.cos(-i*o),[["M",a,e+n*Math.sin(-r*o)],["A",n,n,0,+(180<i-r),0,s,e+n*Math.sin(-i*o)]]):[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]]).toString=b,r}function F(t){var e=x(t);if(e.abs)return w(e.abs);if(!(t=!L(t,"array")||!L(t&&t[0],"array")?T.parsePathString(t):t)||!t.length)return[["M",0,0]];var n,r=[],i=0,o=0,a=0,s=0,l=0;"M"==t[0][0]&&(i=+t[0][1],o=+t[0][2],l++,r[0]=["M",a=i,s=o]);for(var u,c,h=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),d=l,f=t.length;d<f;d++){if(r.push(u=[]),(n=(c=t[d])[0])!=n.toUpperCase())switch(u[0]=n.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+(c[6]+i),u[7]=+(c[7]+o);break;case"V":u[1]=+c[1]+o;break;case"H":u[1]=+c[1]+i;break;case"R":for(var p=[i,o].concat(c.slice(1)),g=2,m=p.length;g<m;g++)p[g]=+p[g]+i,p[++g]=+p[g]+o;r.pop(),r=r.concat(j(p,h));break;case"O":r.pop(),(p=B(i,o,c[1],c[2])).push(p[0]),r=r.concat(p);break;case"U":r.pop(),r=r.concat(B(i,o,c[1],c[2],c[3])),u=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+c[1]+i,s=+c[2]+o;default:for(g=1,m=c.length;g<m;g++)u[g]=+c[g]+(g%2?i:o)}else if("R"==n)p=[i,o].concat(c.slice(1)),r.pop(),r=r.concat(j(p,h)),u=["R"].concat(c.slice(-2));else if("O"==n)r.pop(),(p=B(i,o,c[1],c[2])).push(p[0]),r=r.concat(p);else if("U"==n)r.pop(),r=r.concat(B(i,o,c[1],c[2],c[3])),u=["U"].concat(r[r.length-1].slice(-2));else for(var y=0,v=c.length;y<v;y++)u[y]=c[y];if("O"!=(n=n.toUpperCase()))switch(u[0]){case"Z":i=a,o=s;break;case"H":i=u[1];break;case"V":o=u[1];break;case"M":a=u[u.length-2],s=u[u.length-1];default:i=u[u.length-2],o=u[u.length-1]}}return r.toString=b,e.abs=w(r),r}function _(t,e,n,r){return[t,e,n,r,n,r]}function A(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]}function N(t,e,n,r,i,o,a,s,l){var u=1-l;return{x:U(u,3)*t+3*U(u,2)*l*n+3*u*l*l*i+U(l,3)*a,y:U(u,3)*e+3*U(u,2)*l*r+3*u*l*l*o+U(l,3)*s}}function f(t,e,n,r,i,o,a,s){var l,u=i-2*n+t-(a-2*i+n),c=2*(n-t)-2*(i-n),h=t-n,d=(-c+O.sqrt(c*c-4*u*h))/2/u,f=(-c-O.sqrt(c*c-4*u*h))/2/u,p=[e,s],g=[t,a];return"1e12"<G(d)&&(d=.5),"1e12"<G(f)&&(f=.5),0<d&&d<1&&(l=N(t,e,n,r,i,o,a,s,d),g.push(l.x),p.push(l.y)),0<f&&f<1&&(l=N(t,e,n,r,i,o,a,s,f),g.push(l.x),p.push(l.y)),d=(-(c=2*(r-e)-2*(o-r))+O.sqrt(c*c-4*(u=o-2*r+e-(s-2*o+r))*(h=e-r)))/2/u,f=(-c-O.sqrt(c*c-4*u*h))/2/u,"1e12"<G(d)&&(d=.5),"1e12"<G(f)&&(f=.5),0<d&&d<1&&(l=N(t,e,n,r,i,o,a,s,d),g.push(l.x),p.push(l.y)),0<f&&f<1&&(l=N(t,e,n,r,i,o,a,s,f),g.push(l.x),p.push(l.y)),{min:{x:D.apply(0,g),y:D.apply(0,p)},max:{x:R.apply(0,g),y:R.apply(0,p)}}}function P(t,e){var n=!e&&x(t);if(!e&&n.curve)return w(n.curve);function r(t,e){if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(t[0]in{T:1,Q:1}||(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,r,i,o,a,s,l,u,c){var h,d,f,p=120*z/180,g=z/180*(+o||0),m=[],y=T._.cacher(function(t,e,n){return{x:t*O.cos(n)-e*O.sin(n),y:t*O.sin(n)+e*O.cos(n)}});c?(w=c[0],C=c[1],x=c[2],b=c[3]):(e=(d=y(e,n,-g)).x,n=d.y,l=(d=y(l,u,-g)).x,u=d.y,1<(O.cos(z/180*o),O.sin(z/180*o),v=(f=(e-l)/2)*f/(r*r)+(h=(n-u)/2)*h/(i*i))&&(r*=v=O.sqrt(v),i*=v),x=(d=(a==s?-1:1)*O.sqrt(G(((d=r*r)*(v=i*i)-d*h*h-v*f*f)/(d*h*h+v*f*f))))*r*h/i+(e+l)/2,w=O.asin(((n-(b=d*-i*f/r+(n+u)/2))/i).toFixed(9)),C=O.asin(((u-b)/i).toFixed(9)),(w=e<x?z-w:w)<0&&(w=2*z+w),(C=l<x?z-C:C)<0&&(C=2*z+C),s&&C<w&&(w-=2*z),!s&&w<C&&(C-=2*z)),G(v=C-w)>p&&(h=C,d=l,f=u,m=t(l=x+r*O.cos(C=w+p*(s&&w<C?1:-1)),u=b+i*O.sin(C),r,i,o,0,s,d,f,[C,h,x,b]));var v=C-w,x=O.cos(w),b=O.sin(w),w=O.cos(C),C=O.sin(C),v=O.tan(v/4),r=4/3*r*v,i=4/3*i*v,v=[e,n],x=[e+r*b,n-i*x],w=[l+r*C,u-i*w],u=[l,u];if(x[0]=2*v[0]-x[0],x[1]=2*v[1]-x[1],c)return[x,w,u].concat(m);for(var S=[],k=0,E=(m=[x,w,u].concat(m).join().split(",")).length;k<E;k++)S[k]=k%2?y(m[k-1],m[k],g).y:y(m[k],m[k+1],g).x;return S}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":t=["C",e.x+(e.x-(e.bx||e.x)),e.y+(e.y-(e.by||e.y))].concat(t.slice(1));break;case"T":e.qx=e.x+(e.x-(e.qx||e.x)),e.qy=e.y+(e.y-(e.qy||e.y)),t=["C"].concat(A(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(A(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(_(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(_(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(_(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(_(e.x,e.y,e.X,e.Y))}return t}function i(t,e){if(7<t[e].length){t[e].shift();for(var n=t[e];n.length;)t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),h=R(a.length,s&&s.length||0)}}function o(t,e,n,r,i){t&&e&&"M"==t[i][0]&&"M"!=e[i][0]&&(e.splice(i,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[i][1],n.y=t[i][2],h=R(a.length,s&&s.length||0))}for(var a=F(t),s=e&&F(e),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=0,h=R(a.length,s&&s.length||0);c<h;c++){a[c]=r(a[c],l),i(a,c),s&&(s[c]=r(s[c],u)),s&&i(s,c),o(a,s,l,u,c),o(s,a,u,l,c);var d=a[c],f=s&&s[c],p=d.length,g=s&&f.length;l.x=d[p-2],l.y=d[p-1],l.bx=q(d[p-4])||l.x,l.by=q(d[p-3])||l.y,u.bx=s&&(q(f[g-4])||u.x),u.by=s&&(q(f[g-3])||u.y),u.x=s&&f[g-2],u.y=s&&f[g-1]}return s||(n.curve=w(a)),s?[a,s]:a}function j(t,e){for(var n=[],r=0,i=t.length;r<i-2*!e;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4==r?o[3]={x:+t[0],y:+t[1]}:i-2==r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4==r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var e=m.prototype,L=T.is,p=T._.clone,r="hasOwnProperty",n=/,?([a-z]),?/gi,q=parseFloat,O=Math,z=O.PI,D=O.min,R=O.max,U=O.pow,G=O.abs,l=t(1),u=t(),c=t(0,1),h=T._unit2px,g={path:function(t){return t.attr("path")},circle:function(t){t=h(t);return B(t.cx,t.cy,t.r)},ellipse:function(t){t=h(t);return B(t.cx,t.cy,t.rx,t.ry)},rect:function(t){t=h(t);return s(t.x,t.y,t.width,t.height,t.rx,t.ry)},image:function(t){t=h(t);return s(t.x,t.y,t.width,t.height)},text:function(t){t=t.node.getBBox();return s(t.x,t.y,t.width,t.height)},g:function(t){t=t.node.getBBox();return s(t.x,t.y,t.width,t.height)},symbol:function(t){t=t.getBBox();return s(t.x,t.y,t.width,t.height)},line:function(t){return"M"+[t.attr("x1"),t.attr("y1"),t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},svg:function(t){t=t.node.getBBox();return s(t.x,t.y,t.width,t.height)},deflt:function(t){t=t.node.getBBox();return s(t.x,t.y,t.width,t.height)}};T.path=x,T.path.getTotalLength=l,T.path.getPointAtLength=u,T.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return c(t,e).end;n=c(t,n,1);return e?c(n,e).end:n},e.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},e.getPointAtLength=function(t){return u(this.attr("d"),t)},e.getSubpath=function(t,e){return T.path.getSubpath(this.attr("d"),t,e)},T._.box=d,T.path.findDotsAtSegment=C,T.path.bezierBBox=S,T.path.isPointInsideBBox=i,T.path.isBBoxIntersect=k,T.path.intersection=function(t,e){return o(t,e)},T.path.intersectionNumber=function(t,e){return o(t,e,1)},T.path.isPointInside=function(t,e,n){var r=a(t);return i(r,e,n)&&1==o(t,[["M",e,n],["H",r.x2+10]],1)%2},T.path.getBBox=a,T.path.get=g,T.path.toRelative=function(t){var e=x(t),n=String.prototype.toLowerCase;if(e.rel)return w(e.rel);var r=[],i=0,o=0,a=0,s=0,l=0;"M"==(t=!T.is(t,"array")||!T.is(t&&t[0],"array")?T.parsePathString(t):t)[0][0]&&(i=t[0][1],o=t[0][2],l++,r.push(["M",a=i,s=o]));for(var u=l,c=t.length;u<c;u++){var h=r[u]=[],d=t[u];if(d[0]!=n.call(d[0]))switch(h[0]=n.call(d[0]),h[0]){case"a":h[1]=d[1],h[2]=d[2],h[3]=d[3],h[4]=d[4],h[5]=d[5],h[6]=+(d[6]-i).toFixed(3),h[7]=+(d[7]-o).toFixed(3);break;case"v":h[1]=+(d[1]-o).toFixed(3);break;case"m":a=d[1],s=d[2];default:for(var f=1,p=d.length;f<p;f++)h[f]=+(d[f]-(f%2?i:o)).toFixed(3)}else{h=r[u]=[],"m"==d[0]&&(a=d[1]+i,s=d[2]+o);for(var g=0,m=d.length;g<m;g++)r[u][g]=d[g]}var y=r[u].length;switch(r[u][0]){case"z":i=a,o=s;break;case"h":i+=+r[u][y-1];break;case"v":o+=+r[u][y-1];break;default:i+=+r[u][y-2],o+=+r[u][y-1]}}return r.toString=b,e.rel=w(r),r},T.path.toAbsolute=F,T.path.toCubic=P,T.path.map=function(t,e){if(!e)return t;for(var n,r,i,o,a,s=0,l=(t=P(t)).length;s<l;s++)for(i=1,o=(a=t[s]).length;i<o;i+=2)n=e.x(a[i],a[i+1]),r=e.y(a[i],a[i+1]),a[i]=n,a[i+1]=r;return t},T.path.toString=b,T.path.clone=w}),t.plugin(function(t){function s(t){if(this.items=[],this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)}var l=Math.max,u=Math.min,e=s.prototype;e.push=function(){for(var t,e,n=0,r=arguments.length;n<r;n++)(t=arguments[n])&&(this[e=this.items.length]=this.items[e]=t,this.length++);return this},e.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},e.forEach=function(t,e){for(var n=0,r=this.items.length;n<r;n++)if(!1===t.call(e,this.items[n],n))return this;return this},e.remove=function(){for(;this.length;)this.pop().remove();return this},e.attr=function(t){for(var e=0,n=this.items.length;e<n;e++)this.items[e].attr(t);return this},e.clear=function(){for(;this.length;)this.pop()},e.splice=function(t,e){t=t<0?l(this.length+t,0):t,e=l(0,u(this.length-t,e));for(var n=[],r=[],i=[],o=2;o<arguments.length;o++)i.push(arguments[o]);for(o=0;o<e;o++)r.push(this[t+o]);for(;o<this.length-t;o++)n.push(this[t+o]);var a=i.length;for(o=0;o<a+n.length;o++)this.items[t+o]=this[t+o]=o<a?i[o]:n[o-a];for(o=this.items.length=this.length-=e-a;this[o];)delete this[o++];return new s(r)},e.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},e.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},e.getBBox=function(){for(var t,e=[],n=[],r=[],i=[],o=this.items.length;o--;)this.items[o].removed||(t=this.items[o].getBBox(),e.push(t.x),n.push(t.y),r.push(t.x+t.width),i.push(t.y+t.height));return{x:e=u.apply(0,e),y:n=u.apply(0,n),x2:r=l.apply(0,r),y2:i=l.apply(0,i),width:r-e,height:i-n,cx:e+(r-e)/2,cy:n+(i-n)/2}},e.clone=function(t){t=new s;for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},e.toString=function(){return"Snap‘s set"},e.type="set",t.set=function(){var t=new s;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),t.plugin(function(h,t){function d(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function s(t){return t}function l(t){return h.rgb(t[0],t[1],t[2])}function f(t){for(var e,n,r,i,o=0,a=[],s=0,l=t.length;s<l;s++){for(r="[",i=['"'+t[s][0]+'"'],e=1,n=t[s].length;e<n;e++)i[e]="val["+o+++"]";r+=i+"]",a[s]=r}return Function("val","return Snap.path.toString.call(["+a+"])")}function p(t){for(var e=[],n=0,r=t.length;n<r;n++)for(var i=1,o=t[n].length;i<o;i++)e.push(t[n][i]);return e}var u={},c=/[a-z]+$/i,g=String;u.stroke=u.fill="colour",t.prototype.equal=function(t,e){var n=g(this.attr(t)||""),r=this;if(n==+n&&e==+e)return{from:+n,to:+e,f:s};if("colour"==u[t])return o=h.color(n),a=h.color(e),{from:[o.r,o.g,o.b,o.opacity],to:[a.r,a.g,a.b,a.opacity],f:l};if("transform"==t||"gradientTransform"==t||"patternTransform"==t)return e instanceof h.Matrix&&(e=e.toTransformString()),function(t,e,n){e=g(e).replace(/\.{3}|\u2026/g,t),t=h.parseTransformString(t)||[],e=h.parseTransformString(e)||[];for(var r,i,o,a,s=Math.max(t.length,e.length),l=[],u=[],c=0;c<s;c++){if(o=t[c]||d(e[c]),a=e[c]||d(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4])){t=h._.transform2matrix(t,n()),e=h._.transform2matrix(e,n()),l=[["m",t.a,t.b,t.c,t.d,t.e,t.f]],u=[["m",e.a,e.b,e.c,e.d,e.e,e.f]];break}for(l[c]=[],u[c]=[],r=0,i=Math.max(o.length,a.length);r<i;r++)r in o&&(l[c][r]=o[r]),r in a&&(u[c][r]=a[r])}return{from:p(l),to:p(u),f:f(l)}}(n,e=!h._.rgTransform.test(e)?h._.svgTransform2string(e):e,function(){return r.getBBox(1)});if("d"==t||"path"==t)return{from:p((o=h.path.toCubic(n,e))[0]),to:p(o[1]),f:f(o[0])};if("points"==t)return{from:o=g(n).split(","),to:a=g(e).split(","),f:function(t){return t}};var i,o=n.match(c),a=g(e).match(c);return o&&o==a?{from:parseFloat(n),to:parseFloat(e),f:(i=o,function(t){return+t.toFixed(3)+i})}:{from:this.asPX(t),to:this.asPX(t,e),f:s}}}),t.plugin(function(c,t,e,o){function h(t){return t="y"==t?"scrollTop":"scrollLeft",o.doc.documentElement[t]||o.doc.body[t]}function a(){this.returnValue=!1}function d(){return this.originalEvent.preventDefault()}function s(){this.cancelBubble=!0}function f(){return this.originalEvent.stopPropagation()}function u(t){for(var e,n=t.clientX,r=t.clientY,i=h("y"),o=h("x"),a=m.length;a--;){if(e=m[a],p){for(var s,l=t.touches&&t.touches.length;l--;)if((s=t.touches[l]).identifier==e.el._drag.id||e.el.node.contains(s.target)){n=s.clientX,r=s.clientY,(t.originalEvent||t).preventDefault();break}}else t.preventDefault();var u=e.el.node;c._.glob,u.nextSibling,u.parentNode,u.style.display,n+=o,r+=i,wt("snap.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,r-e.el._drag.y,n,r,t)}}for(var n=t.prototype,p=("createTouch"in o.doc),r=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],g={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},i=o.doc.addEventListener?function(a,s,l,u){function t(t){var e=h("y"),n=h("x");if(p&&g.hasOwnProperty(s))for(var r=0,i=t.targetTouches&&t.targetTouches.length;r<i;r++)if(t.targetTouches[r].target==a||a.contains(t.targetTouches[r].target)){var o=t;(t=t.targetTouches[r]).originalEvent=o,t.preventDefault=d,t.stopPropagation=f;break}return n=t.clientX+n,e=t.clientY+e,l.call(u,t,n,e)}var e=p&&g[s]?g[s]:s;return s!==e&&a.addEventListener(s,t,!1),a.addEventListener(e,t,!1),function(){return s!==e&&a.removeEventListener(s,t,!1),a.removeEventListener(e,t,!1),!0}}:o.doc.attachEvent?function(t,e,r,i){function n(t){t=t||o.win.event;var e=h("y"),n=h("x"),n=t.clientX+n,e=t.clientY+e;return t.preventDefault=t.preventDefault||a,t.stopPropagation=t.stopPropagation||s,r.call(i,t,n,e)}t.attachEvent("on"+e,n);return function(){return t.detachEvent("on"+e,n),!0}}:void 0,m=[],y=function(t){c.unmousemove(u).unmouseup(y);for(var e,n=m.length;n--;)(e=m[n]).el._drag={},wt("snap.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t);m=[]},l=r.length;l--;)!function(r){c[r]=n[r]=function(t,e){return c.is(t,"function")&&(this.events=this.events||[],this.events.push({name:r,f:t,unbind:i(this.shape||this.node||o.doc,r,t,e||this)})),this},c["un"+r]=n["un"+r]=function(t){for(var e=this.events||[],n=e.length;n--;)if(e[n].name==r&&(e[n].f==t||!t))return e[n].unbind(),e.splice(n,1),e.length||delete this.events,this;return this}}(r[l]);n.hover=function(t,e,n,r){return this.mouseover(t,n).mouseout(e,r||n)},n.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var v=[];n.drag=function(r,i,o,a,s,l){function t(t,e,n){(t.originalEvent||t).preventDefault(),this._drag.x=e,this._drag.y=n,this._drag.id=t.identifier,m.length||c.mousemove(u).mouseup(y),m.push({el:this,move_scope:a,start_scope:s,end_scope:l}),i&&wt.on("snap.drag.start."+this.id,i),r&&wt.on("snap.drag.move."+this.id,r),o&&wt.on("snap.drag.end."+this.id,o),wt("snap.drag.start."+this.id,s||a||this,e,n,t)}return arguments.length?(this._drag={},v.push({el:this,start:t}),this.mousedown(t),this):this.drag(function(t,e){this.attr({transform:n+(n?"T":"t")+[t,e]})},function(){n=this.transform().local});var n},n.undrag=function(){for(var t=v.length;t--;)v[t].el==this&&(this.unmousedown(v[t].start),v.splice(t,1),wt.unbind("snap.drag.*."+this.id));return v.length||c.unmousemove(u).unmouseup(y),this}}),t.plugin(function(i,o,t){var t=(o.prototype,t.prototype),e=/^\s*url\((.+)\)/,a=String,s=i._.$;i.filter={},t.filter=function(t){var e=this;"svg"!=e.type&&(e=e.paper);var n=i.parse(a(t)),r=i._.id(),t=(e.node.offsetWidth,e.node.offsetHeight,s("filter"));return s(t,{id:r,filterUnits:"userSpaceOnUse"}),t.appendChild(n.node),e.defs.appendChild(t),new o(t)},wt.on("snap.util.getattr.filter",function(){wt.stop();var t=s(this.node,"filter");if(t){t=a(t).match(e);return t&&i.select(t[1])}}),wt.on("snap.util.attr.filter",function(t){var e;t instanceof o&&"filter"==t.type&&(wt.stop(),(e=t.node.id)||(s(t.node,{id:t.id}),e=t.id),s(this.node,{filter:i.url(e)})),t&&"none"!=t||(wt.stop(),this.node.removeAttribute("filter"))}),i.filter.blur=function(t,e){return null==t&&(t=2),i.format('<feGaussianBlur stdDeviation="{def}"/>',{def:null==e?t:[t,e]})},i.filter.blur.toString=function(){return this()},i.filter.shadow=function(t,e,n,r){return r=r||"#000","string"==typeof(n=null==n?4:n)&&(r=n,n=4),null==t&&(t=0,e=2),null==e&&(e=t),r=i.color(r),i.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:r,dx:t,dy:e,blur:n})},i.filter.shadow.toString=function(){return this()},i.filter.grayscale=function(t){return i.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-(t=null==t?1:t)),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})},i.filter.grayscale.toString=function(){return this()},i.filter.sepia=function(t){return i.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-(t=null==t?1:t)),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})},i.filter.sepia.toString=function(){return this()},i.filter.saturate=function(t){return i.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-(t=null==t?1:t)})},i.filter.saturate.toString=function(){return this()},i.filter.hueRotate=function(t){return i.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:t=t||0})},i.filter.hueRotate.toString=function(){return this()},i.filter.invert=function(t){return i.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:t=null==t?1:t,amount2:1-t})},i.filter.invert.toString=function(){return this()},i.filter.brightness=function(t){return i.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:t=null==t?1:t})},i.filter.brightness.toString=function(){return this()},i.filter.contrast=function(t){return i.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:t=null==t?1:t,amount2:.5-t/2})},i.filter.contrast.toString=function(){return this()}}),t}),function(u){u(".overlay-show");let i=u("div.ult-overlay");i.find("div.ult-overlay-close");function n(t){var e,t="div.ult-overlay."+t;joverlay=document.querySelector(t),i=u(t),i.hasClass("ult-open")?(i.removeClass("ult-open"),i.addClass("ult-close"),e=function(t){if(support.transitions){if("visibility"!==t.propertyName)return;this.removeEventListener(transEndEventName,e)}i.removeClass("ult-close")},support.transitions?(joverlay.addEventListener(transEndEventName,e),i.removeClass("ult-close"),r<n&&u("html").css({overflow:"auto"})):e()):i.hasClass("ult-close")||i.addClass("ult-open");var n=i.find(".ult_modal").outerHeight(),r=u(window).outerHeight();r<n&&u("html").css({overflow:"hidden"})}transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},transEndEventName=transEndEventNames[bsfmodernizr.prefixed("transition")],support={transitions:bsfmodernizr.csstransitions};u(".overlay-show-cornershape").find("path").attr("d");function r(t){t="div.overlay-cornershape."+t;const e=document.querySelector(t),n=u(t),r=Snap(e.querySelector("svg")),i=r.select("path"),o={from:"m 0,0 1439.999975,0 0,805.99999 0,-805.99999 z ",to:" m 0,0 1439.999975,0 0,805.99999 -1439.999975,0 z  "};n.hasClass("ult-open")?(n.removeClass("ult-open"),n.addClass("ult-close"),i.animate({path:o.from},400,mina.linear,function(t){n.removeClass("ult-close")})):n.hasClass("ult-close")||(n.addClass("ult-open"),i.animate({path:o.to},400,mina.linear))}function o(t){var e,n,t="div.overlay-genie."+t;const r=document.querySelector(t),i=u(t),o=Snap(r.querySelector("svg")),a=o.select("path"),s=r.getAttribute("data-steps").split(";"),l=s.length;i.hasClass("ult-open")?(e=l-1,i.removeClass("ult-open"),i.addClass("ult-close"),(n=function(t){--t<0||a.animate({path:s[t]},60,mina.linear,function(){0===t&&i.removeClass("ult-close"),n(t)})})(e)):i.hasClass("ult-close")||(e=0,i.addClass("ult-open"),(n=function(t){++t>l-1||a.animate({path:s[t]},60,mina.linear,function(){n(t)})})(e))}function a(t){t="div.overlay-boxes."+t;const e=document.querySelector(t),n=u(t),r=[].slice.call(e.querySelectorAll("svg > path")),i=r.length;let o=0;!function(t){let e=t.length,n,r;for(;0!==e;)r=Math.floor(Math.random()*e),--e,n=t[e],t[e]=t[r],t[r]=n}(r),n.hasClass("ult-open")?(n.removeClass("ult-open"),n.addClass("ult-close"),r.forEach(function(t,e){setTimeout(function(){++o,t.style.display="none",o===i&&n.removeClass("ult-close")},30*e)})):n.hasClass("ult-close")||(n.addClass("ult-open"),r.forEach(function(t,e){setTimeout(function(){t.style.display="block"},30*e)}))}function s(t){var e=u("."+t).find(".ult_modal-content").height();u(window).height()<e?u("."+t).addClass("ult_modal-auto-top"):u("."+t).removeClass("ult_modal-auto-top"),0<u("."+t).find("iframe").length&&u("."+t).find("iframe").each(function(t,e){u(e).attr("src",u(e).attr("src"))}),u(document).trigger("onUVCModalPopupOpen",t)}u(window).on("load",function(){const e=new Array;u(".ult-onload").each(function(t){e.push(u(this)),setTimeout(function(){e[t].trigger("click")},1e3*parseInt(u(this).data("onload-delay")))}),u(".ult-vimeo iframe").each(function(t,e){u(this).attr("id");const n=u(this)[0],r=$f(n);r.addEvent("ready",function(){r.addEvent("pause"),r.addEvent("finish")})})}),u(document).ready(function(){u(".ult-overlay").each(function(){u(this).appendTo(document.body)}),u(".ult-overlay").show(),u(".overlay-show").each(function(t,e){var n=u(this).data("class-id");u("."+n).find(".ult-vimeo iframe").attr("id","video_"+n),u("."+n).find(".ult-youtube iframe").attr("id","video_"+n)});u(document).on("click",".overlay-show",function(t){t.stopPropagation(),t.preventDefault();const e=u(this).data("class-id");1!=u(this).parent().hasClass("modal-hide-mobile")&&1!=u(this).parent().hasClass("modal-hide-tablet")&&(u("."+e).find(".ult_modal-content").removeClass("ult-hide"),u("."+e).find(".ult-vimeo iframe").html(u(".ult-vimeo iframe").html()),u("."+e).addClass(u(this).data("overlay-class")),setTimeout(function(){u("body, html").addClass("ult_modal-body-open"),n(e),s(e)},500),"keypress-control-enable"!=u(this).parent().attr("data-keypress-control")&&"keypress-control-enable"!=u(this).attr("data-keypress-control")||(window.onkeydown=function(t){27==t.keyCode&&u(document).find(".ult-overlay.ult-open."+e).removeClass("ult-open")}))}),u(document).on("click",".overlay-show-cornershape",function(t){t.stopPropagation(),t.preventDefault();const e=u(this).data("class-id");u("."+e).find(".ult_modal-content").removeClass("ult-hide"),setTimeout(function(){u("."+e).addClass("overlay-cornershape"),r(e),u("body, html").addClass("ult_modal-body-open"),s(e)},300)}),u(document).on("click","div.overlay-cornershape div.ult-overlay-close",function(t){t.stopPropagation();t=u(this).parents("div.overlay-cornershape").data("class");r(t),u("body, html").removeClass("ult_modal-body-open"),u("html").css({overflow:"auto"}),u(document).trigger("onUVCModalPopUpClosed",t)}),u(document).on("click",".overlay-show-boxes",function(t){t.stopPropagation(),t.preventDefault();const e=u(this).data("class-id");u("."+e).find(".ult_modal-content").removeClass("ult-hide"),setTimeout(function(){u("."+e).addClass("overlay-boxes"),a(e),u("body, html").addClass("ult_modal-body-open"),s(e)},300)}),u(document).on("click","div.overlay-boxes div.ult-overlay-close",function(t){t.stopPropagation();t=u(this).parents("div.overlay-boxes").data("class");a(t),u("body, html").removeClass("ult_modal-body-open"),u("html").css({overflow:"auto"}),u(document).trigger("onUVCModalPopUpClosed",t)}),u(document).on("click",".overlay-show-genie",function(t){t.preventDefault();const e=u(this).data("class-id");u("."+e).find(".ult_modal-content").removeClass("ult-hide"),setTimeout(function(){u("."+e).addClass("overlay-genie"),o(e),u("body, html").addClass("ult_modal-body-open"),s(e),u("html").css({overflow:"auto"})},300)}),u(document).on("click","div.overlay-genie div.ult-overlay-close",function(t){t.stopPropagation();t=u(this).parents("div.overlay-genie").data("class");o(t),u("body, html").removeClass("ult_modal-body-open"),u("html").css({overflow:"auto"}),u(document).trigger("onUVCModalPopUpClosed",t)}),u(document).on("click",".ult-overlay .ult-overlay-close",function(t){t.stopPropagation(),$this=u(this),n($this.parents(".ult-overlay").data("class")),u("body, html").removeClass("ult_modal-body-open"),$this.parent().find(".ult-vimeo").length&&$this.parent().find(".ult-vimeo iframe").each(function(t,e){var n=u(e),r=u(e).attr("src");u(e).attr("src",""),u(e).attr("src",r);e=n[0];$f(e).api("pause")}),$this.parent().find(".ult-youtube").length&&$this.parent().find(".ult-youtube iframe").each(function(t,e){var n=u(e).attr("src");u(e).attr("src",""),u(e).attr("src",n)}),$this.parent().find(".ult-video-shortcode").length&&$this.parent().find(".ult-video-shortcode video").each(function(t,e){e.pause()}),u("html").css({overflow:"auto"}),u(document).trigger("onUVCModalPopUpClosed")}),u(document).on("click",".ult-overlay .ult_modal",function(t){t.stopPropagation()}),u(document).on("click",".ult-overlay",function(t){t.stopPropagation(),t.preventDefault(),$this=u(this);const e=$this.data("class"),n=u(document).find(".ult-modal-input-wrapper").children();n.each(function(){u(this).data("class-id")==e&&"overlay-control-enable"==u(this).parent(".ult-modal-input-wrapper").data("overlay-control")&&($this.find(".ult-overlay-close").trigger("click"),u("html").css({overflow:"auto"}))})})}),u(document).on("onUVCModalPopupOpen",function(){u(".ult_modal-body iframe").each(function(t,e){let n=u(this).parent().width();u(this).parent().parent().parent().hasClass("ult-small"),u(this).parent().parent().parent().hasClass("ult-medium");var r=!!u(this).parent().parent().parent().hasClass("ult-container"),i=!!u(this).parent().parent().parent().hasClass("ult-block"),o=n/10;let a=n*(9/16)+o;if(!!(!u(this).parent().hasClass("ult-youtube")&&!u(this).parent().hasClass("ult-vimeo")))return!1;!r||(r=u(window).height())<a&&(a=r-100),i&&(n=u(this).attr("width"),a=u(this).attr("height"),void 0!==n&&""!=n||(n=640),void 0!==a&&""!=a||(a=360)),u(this).css({width:n+"px",height:a+"px"})}),u(window).trigger("resize")})}(jQuery);