function getUrlVars(){for(var t=[],n,r=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<r.length;i++)n=r[i].split("="),t.push(n[0]),t[n[0]]=n[1];return t}function urldecode(n){return decodeURIComponent((n+"").replace(/\+/g,"%20"))}function getTagIndexToNavigateTo(n,t){var i=999;return $j(t).find(".tabItem").each(function(t){var r=$j(this).find(".tabName").html(),u=(r=r.replace(/\s+/g,"")).toLowerCase();n===u&&(i=t)}),i}function UpdateDataLayer(n){var t;n.event.preventDefault();t={type:"BranchSearchClicked",title:n.event.currentTarget.getAttribute("data-title"),position:n.event.currentTarget.getAttribute("data-position"),asset_category:n.obj.AssetCategory,asset_sub_category:n.obj.AssetSubCategory,asset_name:n.obj.AssetName,asset:n.obj.Asset,campaign:"",has_emphasis:"",standard:n.obj.Standard,asset_type:n.obj.AssetType,variant:""};RegisterEvent(t,n.event.currentTarget.getAttribute("href"))}function GetNearestBranches(n,t,i,r){var u=digitalData,f,e;u.page_assets=$j.grep(u.page_assets,function(n){return"Branch Finder Results Info Block"!==n.asset_name});u.branch_finder.branch_data=[];u.branch_finder.search_term="";u.branch_finder.search_results="";digitalData=u;f=new google.maps.LatLng(t,i);(0!=t||0!=i)&&n&&($j.each(n,function(n,r){r.Distance=CalcDistanceBetween(t,i,r.BranchLatitude,r.BranchLongitude);r.Distance=Math.round(r.Distance)}),sortByKey(n,"Distance"),$j("#noResultsError").hide(),e=n.slice(0,r),$j.each(e,function(n,t){var r=new google.maps.LatLng(t.BranchLatitude,t.BranchLongitude),i=[];i.push(r);i.push(t.BranchName+", UK");(new google.maps.DistanceMatrixService).getDistanceMatrix({origins:[f],destinations:i,travelMode:google.maps.TravelMode.DRIVING,unitSystem:google.maps.UnitSystem.IMPERIAL,avoidHighways:!1,avoidTolls:!1},GetDistanceMatrixCallBack)}))}function GetDistanceMatrixCallBack(n,t){var i,r;if(t==google.maps.DistanceMatrixStatus.OK){i=n.rows[0].elements[0];try{i.distance.text.indexOf(" ft")>=0&&(i.distance.text="0");r=i.distance.text.replace(" mi","").replace(" ft","").replace(",","")}catch(n){console.log(n+" - "+i.distance)}GetNearestBranchesCallback(r=Math.round(r),n.destinationAddresses[1].split(",")[0],resultsToReturn)}}function UseGeocoder(n){(new google.maps.Geocoder).geocode({address:n},function(n,t){if(t==google.maps.GeocoderStatus.OK){var i=n[0].geometry.location.lat(),r=n[0].geometry.location.lng();UseGeocoderCallback(i,r)}else geocoderResultError="No results were found from the Town or Postcode that was entered. .",setTimeout(function(){$j("#btnBranchSearch").removeClass("loading")},1e3),$j("#noResultsError").show()})}function CalcDistanceBetween(n,t,i,r){var u=toRad(i-n),f=toRad(r-t),e=Math.sin(u/2)*Math.sin(u/2)+Math.cos(toRad(n))*Math.cos(toRad(i))*Math.sin(f/2)*Math.sin(f/2);return 3958.7558657440545*2*Math.atan2(Math.sqrt(e),Math.sqrt(1-e))}function toRad(n){return n*Math.PI/180}function sortByKey(n,t){return n.sort(function(n,i){var r=n[t],u=i[t];return r<u?-1:r>u?1:0})}function GetNearestBranchesCallback(n,t){var i,o=$j("#btnBranchSearch"),s=$j("#jsonData").val(),h=jsonParse(s),u,r,f,e;$j.each(h,function(r,u){var f,o,e;if(t.toLowerCase()==u.BranchName.toLowerCase())u.Id,i=u.BranchName,u.distance=n,f=!0,branchesLists.forEach(function(n){n.BranchName==i&&(f=!1)}),1==f&&branchesLists.push(u);else if(null==i||""==i)for(o=u.BranchAliases.split(","),e=0;e<o.length;e++)o[e].toLowerCase()==t.toLowerCase()&&(u.Id,i=u.BranchName,u.distance=n,f=!0,branchesLists.forEach(function(n){n.BranchName==i&&(f=!1)}),1==f&&branchesLists.push(u))});null==i&&console.log(t+" could not be found - the alias may be missing ... please check.");u=resultsToReturn;branchesLists.length==u&&($j.each(branchesLists,function(n,t){t.Distance=Math.round(t.Distance)}),branchesLists=sortByKey(branchesLists,"distance"),r=1,$j.each(branchesLists,function(n,t){var i,u,f;t.distance=0==t.distance?"Less than a mile":1==t.distance?t.distance+" mile":t.distance+" miles";i=digitalData;i.page_assets.push({asset_category:t.AssetCategory,asset_sub_category:t.AssetSubCategory,asset_name:t.AssetName,asset:t.Asset,campaign:"",has_emphasis:"",standard:t.Standard,asset_type:t.AssetType,asset_variant:"",address:t.Street+" "+t.District+" "+t.Town+" "+t.County+" "+t.Postcode,contact_details:t.BranchTelephone+" "+t.BranchFax,link_destination:"branchfinder/"+t.BranchName,opening_times:t.BranchOpeningTimes,position_in_group:r,title:t.BranchAgencyName});i.branch_finder.branch_data.push({branch_name:t.BranchAgencyName,distance:t.distance,postcode:t.Postcode});u="";f=$j("#txtbranchSearch").val();u=f||$j("#searchTerm").val();i.branch_finder.search_term=u;i.branch_finder.search_results=r;digitalData=i;t.counter=r;r++}),f=new CustomEvent("branch_search_complete"),document.dispatchEvent(f),jsonSorted=branchesLists,e={details:[{tag:"div","class":"row-fluid page-asset-container",children:[{tag:"div",id:"branchDetails",children:[{tag:"div","class":"row-fluid branch-search-result clear-both","data-tag-asset_category":"${AssetCategory}","data-tag-asset_sub_category":"${AssetSubCategory}","data-tag-asset_name":"${AssetName}","data-tag-asset":"${Asset}","data-tag-campaign":"","data-tag-has_emphasis":"","data-tag-standard":"${Standard}","data-tag-asset_type":"${AssetType}","data-tag-asset_variant":"","data-tag-address":"${Street} ${District} ${Town} ${County} ${Postcode}","data-tag-contact_details":"${BranchTelephone} ${BranchFax}","data-tag-link_destination":"","data-tag-opening_times":"${branchOpeningTimesText}","data-tag-position_in_group":"${counter}","data-tag-title":"${BranchAgencyName} branch - ${distance}",children:[{tag:"h2",html:"${BranchAgencyName} branch - ${distance}"},{tag:"div",html:"${BranchMessage}"},{tag:"br"},{tag:"div","class":"span4 dl-horizontal",children:[{tag:"h3",style:"float:left",html:"Address:"},{tag:"div","class":"row-fluid clear-both",html:"${Street}"},{tag:"div",html:"${District}"},{tag:"div",html:"${Town}"},{tag:"div",html:"${County}"},{tag:"div",html:"${Postcode}"},{tag:"br"}]},{tag:"div","class":"span4",children:[{tag:"h3",html:"Opening times:<br>"},{tag:"dl"},{tag:"dl",html:"${branchOpeningTimesText}","class":"dl-horizontal"},{tag:"br"}]},{tag:"div","class":"span4",children:[{tag:"h3",html:"Contact details:<br>"},{tag:"div",html:"${BranchTelephone}<div>${BranchFax}<\/div>"}]},{tag:"div","class":"span4",children:[{tag:"a",href:"branchfinder/${BranchName}","data-type":"BranchSearchClicked","data-title":"${BranchAgencyName}","data-position":"${counter}","data-tag-marker":"true",onclick:function(n){UpdateDataLayer(n)},html:"Visit the branch page >"},{tag:"br"}]}]}]}]}]},jsonSorted&&$j.each(jsonSorted,function(n,t){var i="",r;for(r in t.BranchOpeningTimes)i+="<dt>"+r+":<\/dt>",i+="<dd>"+t.BranchOpeningTimes[r]+"<\/dd>";t.branchOpeningTimesText=i}),$j(".searchResultsAddress").json2html(jsonSorted,e.details,{events:!0}));$j(".searchResults").fadeIn("slow");setTimeout(function(){o.removeClass("loading")},1e3);$j('img[src=""]').hide()}function HandleError(n){data={type:"JavaScriptError",Message:n};$j.ajax({type:"GET",url:"/ajax/datamapper/RegisterEvent",data:{json:JSON.stringify(data)},traditional:!0,contentType:"application/json; charset=utf-8"}).done(function(n){digitalData=JSON.parse(n)}).fail(function(n){console.log("RegisterEvent failed :: "+n)})}function OptanonWrapper(){callbacks.InvokeCallBacks();trackOptanonEvent(dataLayer)}function CallBackManager(){var n=this;n.array=[];n.registerCallBacks=function(t){n.array.push(t)};n.executeCallBack=function(n,t){n.apply(this,t)};n.InvokeCallBacks=function(){for(var t=0;t<n.array.length;t++)n.array[t]()}}function trackOptanonEvent(n){if(n!==undefined)for(var t=0;t<n.length;t++)n[t].event===optanonEvent&&reloadPage(n[t])}function reloadPage(n){optanonActions.indexOf(n.optanonAction)!==-1}var resultsToReturn,branchesLists,requirejs,require,define;$j(document).ready(function(){$j.fn.search=function(){$j(this).each(function(n,t){var r=$j(t).children(".btn"),i=$j(t).children(".searchtext");i.bind("cut copy paste",function(n){n.preventDefault()});r.on("click",function(){var n=i.val(),u,t,r;if(n=n.substring(0,30),n.length==0)return!1;u="/search/searchresults.aspx";t=$j(".search-loading-bar");t.show();r=$j(".searchresults");$j.get(u,{ajax:"true",search:n},function(n){r.text("");r.append(n);t.fadeOut()},"html")});i.on("keydown",function(n){var t=n.keyCode?n.keyCode:n.which?n.which:n.charCode;return t==13?(i.val().length>0&&r.click(),!1):!0})})};$j.fn.searchbox=function(){$j(this).each(function(n,t){var i=$j(t).children("#siteSearchButton"),r=$j(t).children(".searchtext"),u=$j(t).attr("data-searchpageurl");i.on("click",function(){var n=$j(t).children(".searchtext").val(),i=u+"?search="+n,r;if(AssetDirectClick($j(t),i),r=30,n=n.substring(0,r),n.length==0)return!1;window.location=i});r.on("keydown",function(n){var t=n.keyCode?n.keyCode:n.which?n.which:n.charCode;return t==13?(r.val().length>0&&i.click(),!1):!0})})};$j.fn.branchbox=function(){$j(this).each(function(n,t){var i=$j(t).children("#branchSearchButton"),r=$j(t).children(".branchtext"),u=$j(t).attr("data-branchpageurl");i.on("click",function(){var n=$j(t).children(".branchtext").val(),i=u+"?searchTerm="+n,r;if(AssetDirectClick($j(t),i),r=30,n=n.substring(0,r),n.length==0)return!1;window.location=i});r.on("keydown",function(n){var t=n.keyCode?n.keyCode:n.which?n.which:n.charCode;return t==13?(r.val().length>0&&i.click(),!1):!0})})}});$j.fn.tabContainer=function(n){$j(this).each(function(t,i){var r=$j(i).find(".nav-tabs"),f=$j(i).find(".btnTabControl"),u=getTagIndexToNavigateTo(n,i);$j(i).find(".tabItem").each(function(n){var f=$j(this).find(".tabName").html(),t=$j(this).find(".tabName").attr("data-tag-tab-name"),e=$j(this).find(".tabName").attr("data-tag-tab-name"),h=$j(this).find(".tabName").attr("data-tag-producttab-type"),c=$j(this).find(".tabName").attr("data-tag-producttab"),l=$j(this).find(".tabName").attr("data-tag-asset"),a=$j(this).find(".tabName").attr("data-tag-asset_name"),v=$j(this).find(".tabName").attr("data-tag-asset_category"),y=$j(this).find(".tabName").attr("data-tag-asset_sub_category"),p=$j(this).find(".tabName").attr("data-tag-campaign"),w=$j(this).find(".tabName").attr("data-tag-has_emphasis"),b=$j(this).find(".tabName").attr("data-tag-standard"),k=$j(this).find(".tabName").attr("data-tag-type"),d=$j(this).find(".tabName").attr("data-tag-variant"),g=$j(this).find(".tabName").attr("data-tag-title"),nt=$j(this).find(".tabName").attr("data-tag-state"),tt=$j(this).find(".tabName").attr("data-tag-id"),it=$j(this).attr("id"),i="",rt=$j(this).find(".btnTabControl"),o=f,s;(o=o.replace(/\s+/g,"")).toLowerCase();u<999?n==u&&(i="active",$j(this).addClass("active")):0==n&&(i="active",$j(this).addClass("active"));t||(t="");e||(e="");s=n;$j('<li class ="'+i+'"><div instance="true" data-tag-asset="'+l+'" data-tag-id="'+tt+'" data-tag-asset_name="'+a+'" data-tag-asset_category="'+v+'" data-tag-asset_sub_category="'+y+'" data-tag-campaign="'+p+'" data-tag-has_emphasis="'+w+'" data-tag-standard="'+b+'" data-tag-type="'+k+'"data-tag-variant="'+d+'" data-tag-position_in_group="'+ ++s+'" data-tag-title="'+g+'" data-tag-state="'+nt+'"><\/div><a href="#'+it+'" class="data-toggle-tab" data-toggle="tab" data-tabnumber="'+n+'" data-tag-tab-name="'+t+'" data-tag-producttab-type="'+h+'" data-tag-producttab="'+c+'"> '+f+"<\/a><\/li> ").appendTo(r);rt.attr("data-toggle","tab")});f.click(function(){$j(r).find(".active").next("li").find("a").trigger("click");var n=$j(i).offset();$j(document).scrollTop(n.top-50)})})};resultsToReturn=5;branchesLists={};$j.fn.speedbump=function(){this.each(function(){$j(this).bind("click",function(){var n=$j(this).attr("href"),t=$j(this).attr("data-linkTitle"),i=$j(this).attr("data-linkLine"),r=$j(this).attr("data-dialogue"),u=$j(this).attr("data-okbtntext"),f=$j(this).attr("data-cancelbtntext");return $j("p#speedbump-title").html(decodeURIComponent(t)),$j("p#speedbump-linkLine").html(decodeURIComponent(i)),$j("p#speedbump-text").html(decodeURIComponent(r)),$j("div#speedbump-okbtn").replaceWith('<div id="speedbump-okbtn">'+decodeURIComponent(u)+"<\/div>"),$j("div#speedbump-cancelbtn").replaceWith('<div id="speedbump-cancelbtn">'+decodeURIComponent(f)+"<\/div>"),$j("#speedbump").modal("show"),$j("#url_link").attr("href",n),!1})})},function(n){var o="0.4.2",e="hasOwnProperty",f=/[\.\/]/,s="*",h=function(){},c=function(n,t){return n-t},r,i,u={n:{}},t=function(n,f){var o,p;n=String(n);var k=u,w=i,v=Array.prototype.slice.call(arguments,2),s=t.listeners(n),a=0,e,l=[],y={},h=[],b=r;for(r=n,i=0,o=0,p=s.length;o<p;o++)"zIndex"in s[o]&&(l.push(s[o].zIndex),s[o].zIndex<0&&(y[s[o].zIndex]=s[o]));for(l.sort(c);l[a]<0;)if(e=y[l[a++]],h.push(e.apply(f,v)),i)return i=w,h;for(o=0;o<p;o++)if(e=s[o],"zIndex"in e)if(e.zIndex==l[a]){if(h.push(e.apply(f,v)),i)break;do if(a++,e=y[l[a]],e&&h.push(e.apply(f,v)),i)break;while(e)}else y[e.zIndex]=e;else if(h.push(e.apply(f,v)),i)break;return i=w,r=b,h.length?h:null};t._events=u;t.listeners=function(n){for(var a=n.split(f),t=u,i,v,o,e,p,h,c=[t],l=[],r=0,y=a.length;r<y;r++){for(h=[],e=0,p=c.length;e<p;e++)for(t=c[e].n,v=[t[a[r]],t[s]],o=2;o--;)i=v[o],i&&(h.push(i),l=l.concat(i.f||[]));c=h}return l};t.on=function(n,t){var e,i,r,o;if(n=String(n),typeof t!="function")return function(){};for(e=n.split(f),i=u,r=0,o=e.length;r<o;r++)i=i.n,i=i.hasOwnProperty(e[r])&&i[e[r]]||(i[e[r]]={n:{}});for(i.f=i.f||[],r=0,o=i.f.length;r<o;r++)if(i.f[r]==t)return h;return i.f.push(t),function(n){+n==+n&&(t.zIndex=+n)}};t.f=function(n){var i=[].slice.call(arguments,1);return function(){t.apply(null,[n,null].concat(i).concat([].slice.call(arguments,0)))}};t.stop=function(){i=1};t.nt=function(n){return n?new RegExp("(?:\\.|\\/|^)"+n+"(?:\\.|\\/|$)").test(r):r};t.nts=function(){return r.split(f)};t.off=t.unbind=function(n,i){var a,r,h,v,c,p,o,w,l,y;if(!n){t._events=u={n:{}};return}for(a=n.split(f),l=[u],c=0,p=a.length;c<p;c++)for(o=0;o<l.length;o+=v.length-2){if(v=[o,1],r=l[o].n,a[c]!=s)r[a[c]]&&v.push(r[a[c]]);else for(h in r)r[e](h)&&v.push(r[h]);l.splice.apply(l,v)}for(c=0,p=l.length;c<p;c++)for(r=l[c];r.n;){if(i){if(r.f){for(o=0,w=r.f.length;o<w;o++)if(r.f[o]==i){r.f.splice(o,1);break}r.f.length||delete r.f}for(h in r.n)if(r.n[e](h)&&r.n[h].f){for(y=r.n[h].f,o=0,w=y.length;o<w;o++)if(y[o]==i){y.splice(o,1);break}y.length||delete r.n[h].f}}else{delete r.f;for(h in r.n)r.n[e](h)&&r.n[h].f&&delete r.n[h].f}r=r.n}};t.once=function(n,i){var r=function(){return t.unbind(n,r),i.apply(this,arguments)};return t.on(n,r)};t.version=o;t.toString=function(){return"You are running Eve "+o};typeof module!="undefined"&&module.exports?module.exports=t:typeof define!="undefined"?define("eve",[],function(){return t}):n.eve=t}(this),function(){function n(t){var i,r;return n.is(t,"function")?si?t():eve.on("raphael.DOMload",t):n.is(t,g)?n._engine.create[c](n,t.splice(0,3+n.is(t[0],v))).add(t):(i=Array.prototype.slice.call(arguments,0),n.is(i[i.length-1],"function")?(r=i.pop(),si?r.call(n._engine.create[c](n,i)):eve.on("raphael.DOMload",function(){r.call(n._engine.create[c](n,i))})):n._engine.create[c](n,arguments))}function vt(n){var i,t;if(Object(n)!==n)return n;i=new n.constructor;for(t in n)n[h](t)&&(i[t]=vt(n[t]));return i}function ff(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return n.push(n.splice(i,1)[0])}function nt(n,t,i){function r(){var o=Array.prototype.slice.call(arguments,0),u=o.join("␀"),f=r.cache=r.cache||{},e=r.count=r.count||[];return f[h](u)?(ff(e,u),i?i(f[u]):f[u]):(e.length>=1e3&&delete f[e.shift()],e.push(u),f[u]=n[c](t,o),i?i(f[u]):f[u])}return r}function ri(){return this.hex}function pr(n,t){for(var f=[],i,r=0,u=n.length;u-2*!t>r;r+=2)i=[{x:+n[r-2],y:+n[r-1]},{x:+n[r],y:+n[r+1]},{x:+n[r+2],y:+n[r+3]},{x:+n[r+4],y:+n[r+5]}],t?r?u-4==r?i[3]={x:+n[0],y:+n[1]}:u-2==r&&(i[2]={x:+n[0],y:+n[1]},i[3]={x:+n[2],y:+n[3]}):i[0]={x:+n[u-2],y:+n[u-1]}:u-4==r?i[3]=i[2]:r||(i[0]={x:+n[r],y:+n[r+1]}),f.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y]);return f}function wr(n,t,i,r,u){var f=-3*t+9*i-9*r+3*u,e=n*f+6*t-12*i+6*r;return n*e-3*t+3*i}function lt(n,t,r,u,f,e,o,s,h){var c;h==null&&(h=1);h=h>1?1:h<0?0:h;var l=h/2,w=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],b=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],a=0;for(c=0;c<12;c++){var v=l*w[c]+l,y=wr(v,n,r,f,o),p=wr(v,t,u,e,s),k=y*y+p*p;a+=b[c]*i.sqrt(k)}return l*a}function of(n,t,i,r,u,f,e,o,s){if(!(s<0)&&!(lt(n,t,i,r,u,f,e,o)<s)){for(var v=1,l=v/2,h=v-l,c=lt(n,t,i,r,u,f,e,o,h);a(c-s)>.01;)l/=2,h+=(c<s?1:-1)*l,c=lt(n,t,i,r,u,f,e,o,h);return h}}function sf(n,t,i,r,u,f,o,s){if(!(e(n,i)<l(u,o))&&!(l(n,i)>e(u,o))&&!(e(t,r)<l(f,s))&&!(l(t,r)>e(f,s))){var p=(n*r-t*i)*(u-o)-(n-i)*(u*s-f*o),w=(n*r-t*i)*(f-s)-(t-r)*(u*s-f*o),a=(n-i)*(f-s)-(t-r)*(u-o);if(a){var v=p/a,y=w/a,h=+v.toFixed(2),c=+y.toFixed(2);if(!(h<+l(n,i).toFixed(2))&&!(h>+e(n,i).toFixed(2))&&!(h<+l(u,o).toFixed(2))&&!(h>+e(u,o).toFixed(2))&&!(c<+l(t,r).toFixed(2))&&!(c>+e(t,r).toFixed(2))&&!(c<+l(f,s).toFixed(2))&&!(c>+e(f,s).toFixed(2)))return{x:v,y:y}}}}function bi(t,i,r){var it=n.bezierBBox(t),rt=n.bezierBBox(i),u,s,h,b,k;if(!n.isBBoxIntersect(it,rt))return r?0:[];var ut=lt.apply(0,t),ft=lt.apply(0,i),v=~~(ut/5),y=~~(ft/5),d=[],g=[],tt={},nt=r?0:[];for(u=0;u<v+1;u++)s=n.findDotsAtSegment.apply(n,t.concat(u/v)),d.push({x:s.x,y:s.y,t:u/v});for(u=0;u<y+1;u++)s=n.findDotsAtSegment.apply(n,i.concat(u/y)),g.push({x:s.x,y:s.y,t:u/y});for(u=0;u<v;u++)for(h=0;h<y;h++){var e=d[u],c=d[u+1],o=g[h],l=g[h+1],p=a(c.x-e.x)<.001?"y":"x",w=a(l.x-o.x)<.001?"y":"x",f=sf(e.x,e.y,c.x,c.y,o.x,o.y,l.x,l.y);if(f){if(tt[f.x.toFixed(4)]==f.y.toFixed(4))continue;tt[f.x.toFixed(4)]=f.y.toFixed(4);b=e.t+a((f[p]-e[p])/(c[p]-e[p]))*(c.t-e.t);k=o.t+a((f[w]-o[w])/(l[w]-o[w]))*(l.t-o.t);b>=0&&b<=1&&k>=0&&k<=1&&(r?nt++:nt.push({x:f.x,y:f.y,t1:b,t2:k}))}}return nt}function ki(t,i,r){var e,o,s,h,b,k,d,g,c,l,y,p,nt,a,w,tt,v,u,f,it;for(t=n._path2curve(t),i=n._path2curve(i),y=r?0:[],p=0,nt=t.length;p<nt;p++)if(a=t[p],a[0]=="M")e=b=a[1],o=k=a[2];else for(a[0]=="C"?(c=[e,o].concat(a.slice(1)),e=c[6],o=c[7]):(c=[e,o,e,o,b,k,b,k],e=b,o=k),w=0,tt=i.length;w<tt;w++)if(v=i[w],v[0]=="M")s=d=v[1],h=g=v[2];else if(v[0]=="C"?(l=[s,h].concat(v.slice(1)),s=l[6],h=l[7]):(l=[s,h,s,h,d,g,d,g],s=d,h=g),u=bi(c,l,r),r)y+=u;else{for(f=0,it=u.length;f<it;f++)u[f].segment1=p,u[f].segment2=w,u[f].bez1=c,u[f].bez2=l;y=y.concat(u)}return y}function ot(n,t,i,r,u,f){n!=null?(this.a=+n,this.b=+t,this.c=+i,this.d=+r,this.e=+u,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function ru(){return this.x+ht+this.y+ht+this.width+" × "+this.height}function bf(n,t,i,r,u,f){function l(n){return((h*n+o)*n+e)*n}function y(n,t){var i=p(n,t);return((v*i+c)*i+s)*i}function p(n,t){for(var r,u,f,s,i=n,c=0;c<8;c++){if(f=l(i)-n,a(f)<t)return i;if(s=(3*h*i+2*o)*i+e,a(s)<1e-6)break;i=i-f/s}if(r=0,u=1,i=n,i<r)return r;if(i>u)return u;while(r<u){if(f=l(i),a(f-n)<t)return i;n>f?r=i:u=i;i=(u-r)/2+r}return i}var e=3*t,o=3*(r-t)-e,h=1-e-o,s=3*i,c=3*(u-i)-s,v=1-s-c;return y(n,1/(200*f))}function rt(n,t){var i=[],u={},r;if(this.ms=t,this.times=1,n){for(r in n)n[h](r)&&(u[o(r)]=n[r],i.push(o(r)));i.sort(du)}this.anim=u;this.top=i[i.length-1];this.percents=i}function wt(t,i,u,e,s,c){var g,a,ft,l,lt,kt,ti,nt,at,dt,vt,k,rt,st,ht,gt,ut,ct;u=o(u);var tt,et,pt,ni,wt,bt,w=t.ms,y={},d={},b={};if(e){for(a=0,ft=r.length;a<ft;a++)if(g=r[a],g.el.id==i.id&&g.anim==t){g.percent!=u?(r.splice(a,1),pt=1):et=g;i.attr(g.totalOrigin);break}}else e=+d;for(a=0,ft=t.percents.length;a<ft;a++)if(t.percents[a]==u||t.percents[a]>e*t.top){u=t.percents[a];wt=t.percents[a-1]||0;w=w/t.top*(u-wt);ni=t.percents[a+1];tt=t.anim[u];break}else e&&i.attr(t.anim[t.percents[a]]);if(tt){if(et)et.initstatus=e,et.start=new Date-et.ms*e;else{for(l in tt)if(tt[h](l)&&(yi[h](l)||i.paper.customAttributes[h](l))){y[l]=i.attr(l);y[l]==null&&(y[l]=yu[l]);d[l]=tt[l];switch(yi[l]){case v:b[l]=(d[l]-y[l])/w;break;case"colour":y[l]=n.getRGB(y[l]);lt=n.getRGB(d[l]);b[l]={r:(lt.r-y[l].r)/w,g:(lt.g-y[l].g)/w,b:(lt.b-y[l].b)/w};break;case"path":for(kt=yt(y[l],d[l]),ti=kt[1],y[l]=kt[0],b[l]=[],a=0,ft=y[l].length;a<ft;a++)for(b[l][a]=[0],nt=1,at=y[l][a].length;nt<at;nt++)b[l][a][nt]=(ti[a][nt]-y[l][a][nt])/w;break;case"transform":if(dt=i._,vt=lf(dt[l],d[l]),vt)for(y[l]=vt.from,d[l]=vt.to,b[l]=[],b[l].real=!0,a=0,ft=y[l].length;a<ft;a++)for(b[l][a]=[y[l][a][0]],nt=1,at=y[l][a].length;nt<at;nt++)b[l][a][nt]=(d[l][a][nt]-y[l][a][nt])/w;else k=i.matrix||new ot,rt={_:{transform:dt.transform},getBBox:function(){return i.getBBox(1)}},y[l]=[k.a,k.b,k.c,k.d,k.e,k.f],nu(rt,d[l]),d[l]=rt._.transform,b[l]=[(rt.matrix.a-k.a)/w,(rt.matrix.b-k.b)/w,(rt.matrix.c-k.c)/w,(rt.matrix.d-k.d)/w,(rt.matrix.e-k.e)/w,(rt.matrix.f-k.f)/w];break;case"csv":if(st=p(tt[l])[it](hi),ht=p(y[l])[it](hi),l=="clip-rect")for(y[l]=ht,b[l]=[],a=ht.length;a--;)b[l][a]=(st[a]-y[l][a])/w;d[l]=st;break;default:for(st=[][f](tt[l]),ht=[][f](y[l]),b[l]=[],a=i.paper.customAttributes[l].length;a--;)b[l][a]=((st[a]||0)-(ht[a]||0))/w}}if(gt=tt.easing,ut=n.easing_formulas[gt],ut||(ut=p(gt).match(vu),ut&&ut.length==5?(ct=ut,ut=function(n){return bf(n,+ct[1],+ct[2],+ct[3],+ct[4],w)}):ut=nf),bt=tt.start||t.start||+new Date,g={anim:t,percent:u,timestamp:bt,start:bt+(t.del||0),status:0,initstatus:e||0,stop:!1,ms:w,easing:ut,from:y,diff:b,to:d,el:i,callback:tt.callback,prev:wt,next:ni,repeat:c||t.times,origin:i.attr(),totalOrigin:s},r.push(g),e&&!et&&!pt&&(g.stop=!0,g.start=new Date-w*e,r.length==1))return fr();pt&&(g.start=new Date-g.ms*e);r.length==1&&eu(fr)}eve("raphael.anim.start."+i.id,i,t)}}function ou(n){for(var t=0;t<r.length;t++)r[t].el.paper==n&&r.splice(t--,1)}var ni,ti,tf,ef,ut,pt,tr,st,iu,k,at,y,oi;n.version="2.1.0";n.eve=eve;var si,hi=/[, ]+/,su={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},hu=/\{(\d+)\}/g,h="hasOwnProperty",t={doc:document,win:window},ci={was:Object.prototype[h].call(t.win,"Raphael"),is:t.win.Raphael},or=function(){this.ca=this.customAttributes={}},s,c="apply",f="concat",li="createTouch"in t.doc,b="",ht=" ",p=String,it="split",sr="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[it](ht),ai={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},bt=p.prototype.toLowerCase,i=Math,e=i.max,l=i.min,a=i.abs,d=i.pow,w=i.PI,v="number",kt="string",g="array",cu=Object.prototype.toString,kf=n._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,lu=/^\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,au={NaN:1,Infinity:1,"-Infinity":1},vu=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,vi=i.round,o=parseFloat,et=parseInt,hr=p.prototype.toUpperCase,yu=n._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},yi=n._availableAnimAttrs={blur:v,"clip-rect":"csv",cx:v,cy:v,fill:"colour","fill-opacity":v,"font-size":v,height:v,opacity:v,path:"path",r:v,rx:v,ry:v,stroke:"colour","stroke-opacity":v,"stroke-width":v,transform:"transform",width:v,x:v,y:v},pi=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,pu={hs:1,rg:1},wu=/,?([achlmqrstvxz]),?/gi,bu=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,ku=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,cr=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig,df=n._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/,ct={},gf=function(n,t){return n.key-t.key},du=function(n,t){return o(n)-o(t)},gu=function(){},nf=function(n){return n},dt=n._rectPath=function(n,t,i,r,u){return u?[["M",n+u,t],["l",i-u*2,0],["a",u,u,0,0,1,u,u],["l",0,r-u*2],["a",u,u,0,0,1,-u,u],["l",u*2-i,0],["a",u,u,0,0,1,-u,-u],["l",0,u*2-r],["a",u,u,0,0,1,u,-u],["z"]]:[["M",n,t],["l",i,0],["l",0,r],["l",-i,0],["z"]]},lr=function(n,t,i,r){return r==null&&(r=i),[["M",n,t],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]]},gt=n._getPath={path:function(n){return n.attr("path")},circle:function(n){var t=n.attrs;return lr(t.cx,t.cy,t.r)},ellipse:function(n){var t=n.attrs;return lr(t.cx,t.cy,t.rx,t.ry)},rect:function(n){var t=n.attrs;return dt(t.x,t.y,t.width,t.height,t.r)},image:function(n){var t=n.attrs;return dt(t.x,t.y,t.width,t.height)},text:function(n){var t=n._getBBox();return dt(t.x,t.y,t.width,t.height)},set:function(n){var t=n._getBBox();return dt(t.x,t.y,t.width,t.height)}},wi=n.mapPath=function(n,t){if(!t)return n;var f,e,u,i,o,s,r;for(n=yt(n),u=0,o=n.length;u<o;u++)for(r=n[u],i=1,s=r.length;i<s;i+=2)f=t.x(r[i],r[i+1]),e=t.y(r[i],r[i+1]),r[i]=f,r[i+1]=e;return n};if(n._g=t,n.type=t.win.SVGAngle||t.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML",n.type=="VML"){if(ni=t.doc.createElement("div"),ni.innerHTML='<v:shape adj="1"/>',ti=ni.firstChild,ti.style.behavior="url(#default#VML)",!(ti&&typeof ti.adj=="object"))return n.type=b;ni=null}n.svg=!(n.vml=n.type=="VML");n._Paper=or;n.fn=s=or.prototype=n.prototype;n._id=0;n._oid=0;n.is=function(n,t){return(t=bt.call(t),t=="finite")?!au[h](+n):t=="array"?n instanceof Array:t=="null"&&n===null||t==typeof n&&n!==null||t=="object"&&n===Object(n)||t=="array"&&Array.isArray&&Array.isArray(n)||cu.call(n).slice(8,-1).toLowerCase()==t};n.angle=function(t,r,u,f,e,o){if(e==null){var s=t-u,h=r-f;return!s&&!h?0:(180+i.atan2(-h,-s)*180/w+360)%360}return n.angle(t,r,e,o)-n.angle(u,f,e,o)};n.rad=function(n){return n%360*w/180};n.deg=function(n){return n*180/w%360};n.snapTo=function(t,i,r){var f,u;if(r=n.is(r,"finite")?r:10,n.is(t,g)){for(f=t.length;f--;)if(a(t[f]-i)<=r)return t[f]}else{if(t=+t,u=i%t,u<r)return i-u;if(u>t-r)return i-u+t}return i};tf=n.createUUID=function(n,t){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(n,t).toUpperCase()}}(/[xy]/g,function(n){var t=i.random()*16|0,r=n=="x"?t:t&3|8;return r.toString(16)});n.setWindow=function(i){eve("raphael.setWindow",n,t.win,i);t.win=i;t.doc=t.win.document;n._engine.initWin&&n._engine.initWin(t.win)};var ii=function(i){var e,u,f,o,r;if(n.vml){e=/^\s+|\s+$/g;try{f=new ActiveXObject("htmlfile");f.write("<body>");f.close();u=f.body}catch(s){u=createPopup().document.body}o=u.createTextRange();ii=nt(function(n){try{u.style.color=p(n).replace(e,b);var t=o.queryCommandValue("ForeColor");return t=(t&255)<<16|t&65280|(t&16711680)>>>16,"#"+("000000"+t.toString(16)).slice(-6)}catch(i){return"none"}})}else r=t.doc.createElement("i"),r.title="Raphaël Colour Picker",r.style.display="none",t.doc.body.appendChild(r),ii=nt(function(n){return r.style.color=n,t.doc.defaultView.getComputedStyle(r,b).getPropertyValue("color")});return ii(i)},rf=function(){return"hsb("+[this.h,this.s,this.b]+")"},uf=function(){return"hsl("+[this.h,this.s,this.l]+")"},ar=function(){return this.hex},vr=function(t,i,r){if(i==null&&n.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,i=t.g,t=t.r),i==null&&n.is(t,kt)){var u=n.getRGB(t);t=u.r;i=u.g;r=u.b}return(t>1||i>1||r>1)&&(t/=255,i/=255,r/=255),[t,i,r]},yr=function(t,i,r,u){t*=255;i*=255;r*=255;var f={r:t,g:i,b:r,hex:n.rgb(t,i,r),toString:ar};return n.is(u,"finite")&&(f.opacity=u),f};n.color=function(t){var i;return n.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(i=n.hsb2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):n.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(i=n.hsl2rgb(t),t.r=i.r,t.g=i.g,t.b=i.b,t.hex=i.hex):(n.is(t,"string")&&(t=n.getRGB(t)),n.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(i=n.rgb2hsl(t),t.h=i.h,t.s=i.s,t.l=i.l,i=n.rgb2hsb(t),t.v=i.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=ar,t};n.hsb2rgb=function(n,t,i,r){this.is(n,"object")&&"h"in n&&"s"in n&&"b"in n&&(i=n.b,t=n.s,n=n.h,r=n.o);n*=360;var e,o,s,f,u;return n=n%360/60,u=i*t,f=u*(1-a(n%2-1)),e=o=s=i-u,n=~~n,e+=[u,f,0,0,f,u][n],o+=[f,u,u,f,0,0][n],s+=[0,0,f,u,u,f][n],yr(e,o,s,r)};n.hsl2rgb=function(n,t,i,r){this.is(n,"object")&&"h"in n&&"s"in n&&"l"in n&&(i=n.l,t=n.s,n=n.h);(n>1||t>1||i>1)&&(n/=360,t/=100,i/=100);n*=360;var e,o,s,f,u;return n=n%360/60,u=2*t*(i<.5?i:1-i),f=u*(1-a(n%2-1)),e=o=s=i-u/2,n=~~n,e+=[u,f,0,0,f,u][n],o+=[f,u,u,f,0,0][n],s+=[0,0,f,u,u,f][n],yr(e,o,s,r)};n.rgb2hsb=function(n,t,i){i=vr(n,t,i);n=i[0];t=i[1];i=i[2];var f,o,u,r;return u=e(n,t,i),r=u-l(n,t,i),f=r==0?null:u==n?(t-i)/r:u==t?(i-n)/r+2:(n-t)/r+4,f=(f+360)%6/6,o=r==0?0:r/u,{h:f,s:o,b:u,toString:rf}};n.rgb2hsl=function(n,t,i){i=vr(n,t,i);n=i[0];t=i[1];i=i[2];var o,h,u,f,s,r;return f=e(n,t,i),s=l(n,t,i),r=f-s,o=r==0?null:f==n?(t-i)/r:f==t?(i-n)/r+2:(n-t)/r+4,o=(o+360)%6/6,u=(f+s)/2,h=r==0?0:u<.5?r/(2*u):r/(2-2*u),{h:o,s:h,l:u,toString:uf}};n._path2string=function(){return this.join(",").replace(wu,"$1")};ef=n._preload=function(n,i){var r=t.doc.createElement("img");r.style.cssText="position:absolute;left:-9999em;top:-9999em";r.onload=function(){i.call(this);this.onload=null;t.doc.body.removeChild(this)};r.onerror=function(){t.doc.body.removeChild(this)};t.doc.body.appendChild(r);r.src=n};n.getRGB=nt(function(t){if(!t||!!((t=p(t)).indexOf("-")+1))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ri};if(t=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:ri};pu[h](t.toLowerCase().substring(0,2))||t.charAt()=="#"||(t=ii(t));var u,f,e,s,c,i,r=t.match(lu);return r?(r[2]&&(e=et(r[2].substring(5),16),f=et(r[2].substring(3,5),16),u=et(r[2].substring(1,3),16)),r[3]&&(e=et((c=r[3].charAt(3))+c,16),f=et((c=r[3].charAt(2))+c,16),u=et((c=r[3].charAt(1))+c,16)),r[4]&&(i=r[4][it](pi),u=o(i[0]),i[0].slice(-1)=="%"&&(u*=2.55),f=o(i[1]),i[1].slice(-1)=="%"&&(f*=2.55),e=o(i[2]),i[2].slice(-1)=="%"&&(e*=2.55),r[1].toLowerCase().slice(0,4)=="rgba"&&(s=o(i[3])),i[3]&&i[3].slice(-1)=="%"&&(s/=100)),r[5])?(i=r[5][it](pi),u=o(i[0]),i[0].slice(-1)=="%"&&(u*=2.55),f=o(i[1]),i[1].slice(-1)=="%"&&(f*=2.55),e=o(i[2]),i[2].slice(-1)=="%"&&(e*=2.55),(i[0].slice(-3)=="deg"||i[0].slice(-1)=="°")&&(u/=360),r[1].toLowerCase().slice(0,4)=="hsba"&&(s=o(i[3])),i[3]&&i[3].slice(-1)=="%"&&(s/=100),n.hsb2rgb(u,f,e,s)):r[6]?(i=r[6][it](pi),u=o(i[0]),i[0].slice(-1)=="%"&&(u*=2.55),f=o(i[1]),i[1].slice(-1)=="%"&&(f*=2.55),e=o(i[2]),i[2].slice(-1)=="%"&&(e*=2.55),(i[0].slice(-3)=="deg"||i[0].slice(-1)=="°")&&(u/=360),r[1].toLowerCase().slice(0,4)=="hsla"&&(s=o(i[3])),i[3]&&i[3].slice(-1)=="%"&&(s/=100),n.hsl2rgb(u,f,e,s)):(r={r:u,g:f,b:e,toString:ri},r.hex="#"+(16777216|e|f<<8|u<<16).toString(16).slice(1),n.is(s,"finite")&&(r.opacity=s),r):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ri}},n);n.hsb=nt(function(t,i,r){return n.hsb2rgb(t,i,r).hex});n.hsl=nt(function(t,i,r){return n.hsl2rgb(t,i,r).hex});n.rgb=nt(function(n,t,i){return"#"+(16777216|i|t<<8|n<<16).toString(16).slice(1)});n.getColor=function(n){var t=this.getColor.start=this.getColor.start||{h:0,s:1,b:n||.75},i=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),i.hex};n.getColor.reset=function(){delete this.start};n.parsePathString=function(t){var r,u,i;return t?(r=ut(t),r.arr)?tt(r.arr):(u={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},i=[],n.is(t,g)&&n.is(t[0],g)&&(i=tt(t)),i.length||p(t).replace(bu,function(n,t,r){var e=[],o=t.toLowerCase();if(r.replace(cr,function(n,t){t&&e.push(+t)}),o=="m"&&e.length>2&&(i.push([t][f](e.splice(0,2))),o="l",t=t=="m"?"l":"L"),o=="r")i.push([t][f](e));else while(e.length>=u[o])if(i.push([t][f](e.splice(0,u[o]))),!u[o])break}),i.toString=n._path2string,r.arr=tt(i),i):null};n.parseTransformString=nt(function(t){if(!t)return null;var i=[];return n.is(t,g)&&n.is(t[0],g)&&(i=tt(t)),i.length||p(t).replace(ku,function(n,t,r){var u=[],e=bt.call(t);r.replace(cr,function(n,t){t&&u.push(+t)});i.push([t][f](u))}),i.toString=n._path2string,i});ut=function(n){var t=ut.ps=ut.ps||{};return t[n]?t[n].sleep=100:t[n]={sleep:100},setTimeout(function(){for(var i in t)t[h](i)&&i!=n&&(t[i].sleep--,t[i].sleep||delete t[i])}),t[n]};n.findDotsAtSegment=function(n,t,r,u,f,e,o,s,h){var c=1-h,b=d(c,3),k=d(c,2),l=h*h,g=l*h,tt=b*n+k*3*h*r+c*3*h*h*f+g*o,it=b*t+k*3*h*u+c*3*h*h*e+g*s,a=n+2*h*(r-n)+l*(f-2*r+n),v=t+2*h*(u-t)+l*(e-2*u+t),y=r+2*h*(f-r)+l*(o-2*f+r),p=u+2*h*(e-u)+l*(s-2*e+u),rt=c*n+h*r,ut=c*t+h*u,ft=c*f+h*o,et=c*e+h*s,nt=90-i.atan2(a-y,v-p)*180/w;return(a>y||v<p)&&(nt+=180),{x:tt,y:it,m:{x:a,y:v},n:{x:y,y:p},start:{x:rt,y:ut},end:{x:ft,y:et},alpha:nt}};n.bezierBBox=function(t,i,r,u,f,e,o,s){n.is(t,"array")||(t=[t,i,r,u,f,e,o,s]);var h=gr.apply(null,t);return{x:h.min.x,y:h.min.y,x2:h.max.x,y2:h.max.y,width:h.max.x-h.min.x,height:h.max.y-h.min.y}};n.isPointInsideBBox=function(n,t,i){return t>=n.x&&t<=n.x2&&i>=n.y&&i<=n.y2};n.isBBoxIntersect=function(t,i){var r=n.isPointInsideBBox;return r(i,t.x,t.y)||r(i,t.x2,t.y)||r(i,t.x,t.y2)||r(i,t.x2,t.y2)||r(t,i.x,i.y)||r(t,i.x2,i.y)||r(t,i.x,i.y2)||r(t,i.x2,i.y2)||(t.x<i.x2&&t.x>i.x||i.x<t.x2&&i.x>t.x)&&(t.y<i.y2&&t.y>i.y||i.y<t.y2&&i.y>t.y)};n.pathIntersection=function(n,t){return ki(n,t)};n.pathIntersectionNumber=function(n,t){return ki(n,t,1)};n.isPointInsidePath=function(t,i,r){var u=n.pathBBox(t);return n.isPointInsideBBox(u,i,r)&&ki(t,[["M",i,r],["H",u.x2+10]],1)%2==1};n._removedFactory=function(n){return function(){eve("raphael.log",null,"Raphaël: you are calling to method “"+n+"” of removed object",n)}};var di=n.pathBBox=function(n){var a=ut(n),h,p,u;if(a.bbox)return vt(a.bbox);if(!n)return{x:0,y:0,width:0,height:0,x2:0,y2:0};n=yt(n);var o=0,s=0,i=[],r=[],t;for(h=0,p=n.length;h<p;h++)t=n[h],t[0]=="M"?(o=t[1],s=t[2],i.push(o),r.push(s)):(u=gr(o,s,t[1],t[2],t[3],t[4],t[5],t[6]),i=i[f](u.min.x,u.max.x),r=r[f](u.min.y,u.max.y),o=t[5],s=t[6]);var v=l[c](0,i),y=l[c](0,r),w=e[c](0,i),b=e[c](0,r),k=w-v,d=b-y,g={x:v,y:y,x2:w,y2:b,width:k,height:d,cx:v+k/2,cy:y+d/2};return a.bbox=vt(g),g},tt=function(t){var i=vt(t);return i.toString=n._path2string,i},hf=n._pathToRelative=function(t){var v=ut(t),u,p,f,i,s,w,h,b,c;if(v.rel)return tt(v.rel);n.is(t,g)&&n.is(t&&t[0],g)||(t=n.parsePathString(t));var r=[],o=0,e=0,l=0,a=0,y=0;for(t[0][0]=="M"&&(o=t[0][1],e=t[0][2],l=o,a=e,y++,r.push(["M",o,e])),u=y,p=t.length;u<p;u++){if(f=r[u]=[],i=t[u],i[0]!=bt.call(i[0])){f[0]=bt.call(i[0]);switch(f[0]){case"a":f[1]=i[1];f[2]=i[2];f[3]=i[3];f[4]=i[4];f[5]=i[5];f[6]=+(i[6]-o).toFixed(3);f[7]=+(i[7]-e).toFixed(3);break;case"v":f[1]=+(i[1]-e).toFixed(3);break;case"m":l=i[1];a=i[2];default:for(s=1,w=i.length;s<w;s++)f[s]=+(i[s]-(s%2?o:e)).toFixed(3)}}else for(f=r[u]=[],i[0]=="m"&&(l=i[1]+o,a=i[2]+e),h=0,b=i.length;h<b;h++)r[u][h]=i[h];c=r[u].length;switch(r[u][0]){case"z":o=l;e=a;break;case"h":o+=+r[u][c-1];break;case"v":e+=+r[u][c-1];break;default:o+=+r[u][c-2];e+=+r[u][c-1]}}return r.toString=n._path2string,v.rel=tt(r),r},br=n._pathToAbsolute=function(t){var p=ut(t),w,i,r,v,k,h,o,y,c,d;if(p.abs)return tt(p.abs);if(n.is(t,g)&&n.is(t&&t[0],g)||(t=n.parsePathString(t)),!t||!t.length)return[["M",0,0]];var s=[],u=0,e=0,l=0,a=0,b=0;for(t[0][0]=="M"&&(u=+t[0][1],e=+t[0][2],l=u,a=e,b++,s[0]=["M",u,e]),w=t.length==3&&t[0][0]=="M"&&t[1][0].toUpperCase()=="R"&&t[2][0].toUpperCase()=="Z",v=b,k=t.length;v<k;v++){if(s.push(i=[]),r=t[v],r[0]!=hr.call(r[0])){i[0]=hr.call(r[0]);switch(i[0]){case"A":i[1]=r[1];i[2]=r[2];i[3]=r[3];i[4]=r[4];i[5]=r[5];i[6]=+(r[6]+u);i[7]=+(r[7]+e);break;case"V":i[1]=+r[1]+e;break;case"H":i[1]=+r[1]+u;break;case"R":for(h=[u,e][f](r.slice(1)),o=2,y=h.length;o<y;o++)h[o]=+h[o]+u,h[++o]=+h[o]+e;s.pop();s=s[f](pr(h,w));break;case"M":l=+r[1]+u;a=+r[2]+e;default:for(o=1,y=r.length;o<y;o++)i[o]=+r[o]+(o%2?u:e)}}else if(r[0]=="R")h=[u,e][f](r.slice(1)),s.pop(),s=s[f](pr(h,w)),i=["R"][f](r.slice(-2));else for(c=0,d=r.length;c<d;c++)i[c]=r[c];switch(i[0]){case"Z":u=l;e=a;break;case"H":u=i[1];break;case"V":e=i[1];break;case"M":l=i[i.length-2];a=i[i.length-1];default:u=i[i.length-2];e=i[i.length-1]}}return s.toString=n._path2string,p.abs=tt(s),s},ui=function(n,t,i,r){return[n,t,i,r,i,r]},kr=function(n,t,i,r,u,f){var e=1/3,o=2/3;return[e*n+o*i,e*t+o*r,e*u+o*i,e*f+o*r,u,f]},dr=function(n,t,r,u,e,o,s,h,c,l){var at=w*120/180,et=w/180*(+e||0),p=[],g,ot=nt(function(n,t,r){var u=n*i.cos(r)-t*i.sin(r),f=n*i.sin(r)+t*i.cos(r);return{x:u,y:f}}),st,lt,b,gt;if(l)y=l[0],v=l[1],ut=l[2],ft=l[3];else{g=ot(n,t,-et);n=g.x;t=g.y;g=ot(h,c,-et);h=g.x;c=g.y;var oi=i.cos(w/180*e),si=i.sin(w/180*e),k=(n-h)/2,d=(t-c)/2,rt=k*k/(r*r)+d*d/(u*u);rt>1&&(rt=i.sqrt(rt),r=rt*r,u=rt*u);var ht=r*r,ct=u*u,vt=(o==s?-1:1)*i.sqrt(a((ht*ct-ht*d*d-ct*k*k)/(ht*d*d+ct*k*k))),ut=vt*r*d/u+(n+h)/2,ft=vt*-u*k/r+(t+c)/2,y=i.asin(((t-ft)/u).toFixed(9)),v=i.asin(((c-ft)/u).toFixed(9));y=n<ut?w-y:y;v=h<ut?w-v:v;y<0&&(y=w*2+y);v<0&&(v=w*2+v);s&&y>v&&(y=y-w*2);!s&&v>y&&(v=v-w*2)}if(st=v-y,a(st)>at){var ni=v,ti=h,ii=c;v=y+at*(s&&v>y?1:-1);h=ut+r*i.cos(v);c=ft+u*i.sin(v);p=dr(h,c,r,u,e,0,s,ti,ii,[v,ni,ut,ft])}st=v-y;var ri=i.cos(y),ui=i.sin(y),fi=i.cos(v),ei=i.sin(v),yt=i.tan(st/4),pt=4/3*r*yt,wt=4/3*u*yt,bt=[n,t],tt=[n+pt*ui,t-wt*ri],kt=[h+pt*ei,c-wt*fi],dt=[h,c];if(tt[0]=2*bt[0]-tt[0],tt[1]=2*bt[1]-tt[1],l)return[tt,kt,dt][f](p);for(p=[tt,kt,dt][f](p).join()[it](","),lt=[],b=0,gt=p.length;b<gt;b++)lt[b]=b%2?ot(p[b-1],p[b],et).y:ot(p[b],p[b+1],et).x;return lt},fi=function(n,t,i,r,u,f,e,o,s){var h=1-s;return{x:d(h,3)*n+d(h,2)*3*s*i+h*3*s*s*u+d(s,3)*e,y:d(h,3)*t+d(h,2)*3*s*r+h*3*s*s*f+d(s,3)*o}},gr=nt(function(n,t,r,u,f,o,s,h){var b=f-2*r+n-(s-2*f+r),v=2*(r-n)-2*(f-r),g=n-r,p=(-v+i.sqrt(v*v-4*b*g))/2/b,w=(-v-i.sqrt(v*v-4*b*g))/2/b,k=[t,h],d=[n,s],y;return a(p)>"1e12"&&(p=.5),a(w)>"1e12"&&(w=.5),p>0&&p<1&&(y=fi(n,t,r,u,f,o,s,h,p),d.push(y.x),k.push(y.y)),w>0&&w<1&&(y=fi(n,t,r,u,f,o,s,h,w),d.push(y.x),k.push(y.y)),b=o-2*u+t-(h-2*o+u),v=2*(u-t)-2*(o-u),g=t-u,p=(-v+i.sqrt(v*v-4*b*g))/2/b,w=(-v-i.sqrt(v*v-4*b*g))/2/b,a(p)>"1e12"&&(p=.5),a(w)>"1e12"&&(w=.5),p>0&&p<1&&(y=fi(n,t,r,u,f,o,s,h,p),d.push(y.x),k.push(y.y)),w>0&&w<1&&(y=fi(n,t,r,u,f,o,s,h,w),d.push(y.x),k.push(y.y)),{min:{x:l[c](0,d),y:l[c](0,k)},max:{x:e[c](0,d),y:e[c](0,k)}}}),yt=n._path2curve=nt(function(n,t){var w=!t&&ut(n),r,v;if(!t&&w.curve)return tt(w.curve);var u=br(n),i=t&&br(t),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},h={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},b=function(n,t){var i,r;if(!n)return["C",t.x,t.y,t.x,t.y,t.x,t.y];n[0]in{T:1,Q:1}||(t.qx=t.qy=null);switch(n[0]){case"M":t.X=n[1];t.Y=n[2];break;case"A":n=["C"][f](dr[c](0,[t.x,t.y][f](n.slice(1))));break;case"S":i=t.x+(t.x-(t.bx||t.x));r=t.y+(t.y-(t.by||t.y));n=["C",i,r][f](n.slice(1));break;case"T":t.qx=t.x+(t.x-(t.qx||t.x));t.qy=t.y+(t.y-(t.qy||t.y));n=["C"][f](kr(t.x,t.y,t.qx,t.qy,n[1],n[2]));break;case"Q":t.qx=n[1];t.qy=n[2];n=["C"][f](kr(t.x,t.y,n[1],n[2],n[3],n[4]));break;case"L":n=["C"][f](ui(t.x,t.y,n[1],n[2]));break;case"H":n=["C"][f](ui(t.x,t.y,n[1],t.y));break;case"V":n=["C"][f](ui(t.x,t.y,t.x,n[1]));break;case"Z":n=["C"][f](ui(t.x,t.y,t.X,t.Y))}return n},k=function(n,t){if(n[t].length>7){n[t].shift();for(var r=n[t];r.length;)n.splice(t++,0,["C"][f](r.splice(0,6)));n.splice(t,1);v=e(u.length,i&&i.length||0)}},d=function(n,t,r,f,o){n&&t&&n[o][0]=="M"&&t[o][0]!="M"&&(t.splice(o,0,["M",f.x,f.y]),r.bx=0,r.by=0,r.x=n[o][1],r.y=n[o][2],v=e(u.length,i&&i.length||0))};for(r=0,v=e(u.length,i&&i.length||0);r<v;r++){u[r]=b(u[r],s);k(u,r);i&&(i[r]=b(i[r],h));i&&k(i,r);d(u,i,s,h,r);d(i,u,h,s,r);var l=u[r],a=i&&i[r],y=l.length,p=i&&a.length;s.x=l[y-2];s.y=l[y-1];s.bx=o(l[y-4])||s.x;s.by=o(l[y-3])||s.y;h.bx=i&&(o(a[p-4])||h.x);h.by=i&&(o(a[p-3])||h.y);h.x=i&&a[p-2];h.y=i&&a[p-1]}return i||(w.curve=tt(u)),i?[u,i]:u},null,tt),ne=n._parseDots=nt(function(t){for(var r=[],f,h,c,e,u,l,i=0,s=t.length;i<s;i++){if(f={},h=t[i].match(/^([^:]*):?([\d\.]*)/),f.color=n.getRGB(h[1]),f.color.error)return null;f.color=f.color.hex;h[2]&&(f.offset=h[2]+"%");r.push(f)}for(i=1,s=r.length-1;i<s;i++)if(!r[i].offset){for(c=o(r[i-1].offset||0),e=0,u=i+1;u<s;u++)if(r[u].offset){e=r[u].offset;break}for(e||(e=100,u=s),e=o(e),l=(e-c)/(u-i+1);i<u;i++)c+=l,r[i].offset=c+"%"}return r}),ei=n._tear=function(n,t){n==t.top&&(t.top=n.prev);n==t.bottom&&(t.bottom=n.next);n.next&&(n.next.prev=n.prev);n.prev&&(n.prev.next=n.next)},te=n._tofront=function(n,t){t.top!==n&&(ei(n,t),n.next=null,n.prev=t.top,t.top.next=n,t.top=n)},ie=n._toback=function(n,t){t.bottom!==n&&(ei(n,t),n.next=t.bottom,n.prev=null,t.bottom.prev=n,t.bottom=n)},re=n._insertafter=function(n,t,i){ei(n,i);t==i.top&&(i.top=n);t.next&&(t.next.prev=n);n.next=t.next;n.prev=t;t.next=n},ue=n._insertbefore=function(n,t,i){ei(n,i);t==i.bottom&&(i.bottom=n);t.prev&&(t.prev.next=n);n.prev=t.prev;t.prev=n;n.next=t},cf=n.toMatrix=function(n,t){var r=di(n),i={_:{transform:b},getBBox:function(){return r}};return nu(i,t),i.matrix},fe=n.transformPath=function(n,t){return wi(n,cf(n,t))},nu=n._extractTransform=function(t,i){var k,tt;if(i==null)return t._.transform;i=p(i).replace(/\.{3}|\u2026/g,t._.transform||b);var a=n.parseTransformString(i),v=0,g=0,nt=0,y=1,w=1,e=t._,u=new ot;if(e.transform=a||[],a)for(k=0,tt=a.length;k<tt;k++){var r=a[k],o=r.length,l=p(r[0]).toLowerCase(),d=r[0]!=l,s=d?u.invert():0,it,rt,h,c,f;l=="t"&&o==3?d?(it=s.x(0,0),rt=s.y(0,0),h=s.x(r[1],r[2]),c=s.y(r[1],r[2]),u.translate(h-it,c-rt)):u.translate(r[1],r[2]):l=="r"?o==2?(f=f||t.getBBox(1),u.rotate(r[1],f.x+f.width/2,f.y+f.height/2),v+=r[1]):o==4&&(d?(h=s.x(r[2],r[3]),c=s.y(r[2],r[3]),u.rotate(r[1],h,c)):u.rotate(r[1],r[2],r[3]),v+=r[1]):l=="s"?o==2||o==3?(f=f||t.getBBox(1),u.scale(r[1],r[o-1],f.x+f.width/2,f.y+f.height/2),y*=r[1],w*=r[o-1]):o==5&&(d?(h=s.x(r[3],r[4]),c=s.y(r[3],r[4]),u.scale(r[1],r[2],h,c)):u.scale(r[1],r[2],r[3],r[4]),y*=r[1],w*=r[2]):l=="m"&&o==7&&u.add(r[1],r[2],r[3],r[4],r[5],r[6]);e.dirtyT=1;t.matrix=u}t.matrix=u;e.sx=y;e.sy=w;e.deg=v;e.dx=g=u.e;e.dy=nt=u.f;y==1&&w==1&&!v&&e.bbox?(e.bbox.x+=+g,e.bbox.y+=+nt):e.dirtyT=1},tu=function(n){var t=n[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return n.length==4?[t,0,n[2],n[3]]:[t,0];case"s":return n.length==5?[t,1,1,n[3],n[4]]:n.length==3?[t,1,1]:[t,1]}},lf=n._equaliseTransform=function(t,i){i=p(i).replace(/\.{3}|\u2026/g,t);t=n.parseTransformString(t)||[];i=n.parseTransformString(i)||[];for(var l=e(t.length,i.length),s=[],h=[],u=0,f,c,r,o;u<l;u++){if(r=t[u]||tu(i[u]),o=i[u]||tu(r),r[0]!=o[0]||r[0].toLowerCase()=="r"&&(r[2]!=o[2]||r[3]!=o[3])||r[0].toLowerCase()=="s"&&(r[3]!=o[3]||r[4]!=o[4]))return;for(s[u]=[],h[u]=[],f=0,c=e(r.length,o.length);f<c;f++)f in r&&(s[u][f]=r[f]),f in o&&(h[u][f]=o[f])}return{from:s,to:h}};n._getContainer=function(i,r,u,f){var e;if(e=f==null&&!n.is(i,"object")?t.doc.getElementById(i):i,e!=null)return e.tagName?r==null?{container:e,width:e.style.pixelWidth||e.offsetWidth,height:e.style.pixelHeight||e.offsetHeight}:{container:e,width:r,height:u}:{container:1,x:i,y:r,width:u,height:f}};n.pathToRelative=hf;n._engine={};n.path2curve=yt;n.matrix=function(n,t,i,r,u,f){return new ot(n,t,i,r,u,f)},function(t){function r(n){return n[0]*n[0]+n[1]*n[1]}function u(n){var t=i.sqrt(r(n));n[0]&&(n[0]/=t);n[1]&&(n[1]/=t)}t.add=function(n,t,i,r,u,f){var e=[[],[],[]],a=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],l=[[n,i,u],[t,r,f],[0,0,1]],o,s,h,c;for(n&&n instanceof ot&&(l=[[n.a,n.c,n.e],[n.b,n.d,n.f],[0,0,1]]),o=0;o<3;o++)for(s=0;s<3;s++){for(c=0,h=0;h<3;h++)c+=a[o][h]*l[h][s];e[o][s]=c}this.a=e[0][0];this.b=e[1][0];this.c=e[0][1];this.d=e[1][1];this.e=e[0][2];this.f=e[1][2]};t.invert=function(){var n=this,t=n.a*n.d-n.b*n.c;return new ot(n.d/t,-n.b/t,-n.c/t,n.a/t,(n.c*n.f-n.d*n.e)/t,(n.b*n.e-n.a*n.f)/t)};t.clone=function(){return new ot(this.a,this.b,this.c,this.d,this.e,this.f)};t.translate=function(n,t){this.add(1,0,0,1,n,t)};t.scale=function(n,t,i,r){t==null&&(t=n);(i||r)&&this.add(1,0,0,1,i,r);this.add(n,0,0,t,0,0);(i||r)&&this.add(1,0,0,1,-i,-r)};t.rotate=function(t,r,u){t=n.rad(t);r=r||0;u=u||0;var f=+i.cos(t).toFixed(9),e=+i.sin(t).toFixed(9);this.add(f,e,-e,f,r,u);this.add(1,0,0,1,-r,-u)};t.x=function(n,t){return n*this.a+t*this.c+this.e};t.y=function(n,t){return n*this.b+t*this.d+this.f};t.get=function(n){return+this[p.fromCharCode(97+n)].toFixed(4)};t.toString=function(){return n.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};t.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};t.split=function(){var t={},f,e,o;return t.dx=this.e,t.dy=this.f,f=[[this.a,this.c],[this.b,this.d]],t.scalex=i.sqrt(r(f[0])),u(f[0]),t.shear=f[0][0]*f[1][0]+f[0][1]*f[1][1],f[1]=[f[1][0]-f[0][0]*t.shear,f[1][1]-f[0][1]*t.shear],t.scaley=i.sqrt(r(f[1])),u(f[1]),t.shear/=t.scaley,e=-f[0][1],o=f[1][1],o<0?(t.rotate=n.deg(i.acos(o)),e<0&&(t.rotate=360-t.rotate)):t.rotate=n.deg(i.asin(e)),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};t.toTransformString=function(n){var t=n||this[it]();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,t.dy]:b)+(t.scalex!=1||t.scaley!=1?"s"+[t.scalex,t.scaley,0,0]:b)+(t.rotate?"r"+[t.rotate,0,0]:b)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(ot.prototype);pt=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);s.safari=navigator.vendor=="Apple Computer, Inc."&&(pt&&pt[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&pt&&pt[1]<8?function(){var n=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){n.remove()})}:gu;var af=function(){this.returnValue=!1},vf=function(){return this.originalEvent.preventDefault()},yf=function(){this.cancelBubble=!0},pf=function(){return this.originalEvent.stopPropagation()},wf=function(){return t.doc.addEventListener?function(n,i,r,u){var f=li&&ai[i]?ai[i]:i,e=function(f){var c=t.doc.documentElement.scrollTop||t.doc.body.scrollTop,l=t.doc.documentElement.scrollLeft||t.doc.body.scrollLeft,a=f.clientX+l,v=f.clientY+c,e,o,s;if(li&&ai[h](i))for(e=0,o=f.targetTouches&&f.targetTouches.length;e<o;e++)if(f.targetTouches[e].target==n){s=f;f=f.targetTouches[e];f.originalEvent=s;f.preventDefault=vf;f.stopPropagation=pf;break}return r.call(u,f,a,v)};return n.addEventListener(f,e,!1),function(){return n.removeEventListener(f,e,!1),!0}}:t.doc.attachEvent?function(n,i,r,u){var f=function(n){n=n||t.win.event;var i=t.doc.documentElement.scrollTop||t.doc.body.scrollTop,f=t.doc.documentElement.scrollLeft||t.doc.body.scrollLeft,e=n.clientX+f,o=n.clientY+i;return n.preventDefault=n.preventDefault||af,n.stopPropagation=n.stopPropagation||yf,r.call(u,n,e,o)};return n.attachEvent("on"+i,f),function(){return n.detachEvent("on"+i,f),!0}}:void 0}(),ft=[],gi=function(n){for(var u=n.clientX,f=n.clientY,a=t.doc.documentElement.scrollTop||t.doc.body.scrollTop,v=t.doc.documentElement.scrollLeft||t.doc.body.scrollLeft,i,c=ft.length,o,e;c--;){if(i=ft[c],li){for(o=n.touches.length;o--;)if(e=n.touches[o],e.identifier==i.el._drag.id){u=e.clientX;f=e.clientY;(n.originalEvent?n.originalEvent:n).preventDefault();break}}else n.preventDefault();var r=i.el.node,s,l=r.nextSibling,h=r.parentNode,y=r.style.display;t.win.opera&&h.removeChild(r);r.style.display="none";s=i.el.paper.getElementByPoint(u,f);r.style.display=y;t.win.opera&&(l?h.insertBefore(r,l):h.appendChild(r));s&&eve("raphael.drag.over."+i.el.id,i.el,s);u+=v;f+=a;eve("raphael.drag.move."+i.el.id,i.move_scope||i.el,u-i.el._drag.x,f-i.el._drag.y,u,f,n)}},nr=function(t){n.unmousemove(gi).unmouseup(nr);for(var r=ft.length,i;r--;)i=ft[r],i.el._drag={},eve("raphael.drag.end."+i.el.id,i.end_scope||i.start_scope||i.move_scope||i.el,t);ft=[]},u=n.el={};for(tr=sr.length;tr--;)(function(i){n[i]=u[i]=function(r,u){return n.is(r,"function")&&(this.events=this.events||[],this.events.push({name:i,f:r,unbind:wf(this.shape||this.node||t.doc,i,r,u||this)})),this};n["un"+i]=u["un"+i]=function(n){for(var t=this.events||[],r=t.length;r--;)if(t[r].name==i&&t[r].f==n)return t[r].unbind(),t.splice(r,1),t.length||delete this.events,this;return this}})(sr[tr]);u.data=function(t,i){var u=ct[this.id]=ct[this.id]||{},r;if(arguments.length==1){if(n.is(t,"object")){for(r in t)t[h](r)&&this.data(r,t[r]);return this}return eve("raphael.data.get."+this.id,this,u[t],t),u[t]}return u[t]=i,eve("raphael.data.set."+this.id,this,i,t),this};u.removeData=function(n){return n==null?ct[this.id]={}:ct[this.id]&&delete ct[this.id][n],this};u.getData=function(){return vt(ct[this.id]||{})};u.hover=function(n,t,i,r){return this.mouseover(n,i).mouseout(t,r||i)};u.unhover=function(n,t){return this.unmouseover(n).unmouseout(t)};st=[];u.drag=function(i,r,u,f,e,o){function s(s){(s.originalEvent||s).preventDefault();var h=t.doc.documentElement.scrollTop||t.doc.body.scrollTop,c=t.doc.documentElement.scrollLeft||t.doc.body.scrollLeft;this._drag.x=s.clientX+c;this._drag.y=s.clientY+h;this._drag.id=s.identifier;ft.length||n.mousemove(gi).mouseup(nr);ft.push({el:this,move_scope:f,start_scope:e,end_scope:o});r&&eve.on("raphael.drag.start."+this.id,r);i&&eve.on("raphael.drag.move."+this.id,i);u&&eve.on("raphael.drag.end."+this.id,u);eve("raphael.drag.start."+this.id,e||f||this,s.clientX+c,s.clientY+h,s)}return this._drag={},st.push({el:this,start:s}),this.mousedown(s),this};u.onDragOver=function(n){n?eve.on("raphael.drag.over."+this.id,n):eve.unbind("raphael.drag.over."+this.id)};u.undrag=function(){for(var t=st.length;t--;)st[t].el==this&&(this.unmousedown(st[t].start),st.splice(t,1),eve.unbind("raphael.drag.*."+this.id));st.length||n.unmousemove(gi).unmouseup(nr);ft=[]};s.circle=function(t,i,r){var u=n._engine.circle(this,t||0,i||0,r||0);return this.__set__&&this.__set__.push(u),u};s.rect=function(t,i,r,u,f){var e=n._engine.rect(this,t||0,i||0,r||0,u||0,f||0);return this.__set__&&this.__set__.push(e),e};s.ellipse=function(t,i,r,u){var f=n._engine.ellipse(this,t||0,i||0,r||0,u||0);return this.__set__&&this.__set__.push(f),f};s.path=function(t){!t||n.is(t,kt)||n.is(t[0],g)||(t+=b);var i=n._engine.path(n.format[c](n,arguments),this);return this.__set__&&this.__set__.push(i),i};s.image=function(t,i,r,u,f){var e=n._engine.image(this,t||"about:blank",i||0,r||0,u||0,f||0);return this.__set__&&this.__set__.push(e),e};s.text=function(t,i,r){var u=n._engine.text(this,t||0,i||0,p(r));return this.__set__&&this.__set__.push(u),u};s.set=function(t){n.is(t,"array")||(t=Array.prototype.splice.call(arguments,0,arguments.length));var i=new at(t);return this.__set__&&this.__set__.push(i),i.paper=this,i.type="set",i};s.setStart=function(n){this.__set__=n||this.set()};s.setFinish=function(){var n=this.__set__;return delete this.__set__,n};s.setSize=function(t,i){return n._engine.setSize.call(this,t,i)};s.setViewBox=function(t,i,r,u,f){return n._engine.setViewBox.call(this,t,i,r,u,f)};s.top=s.bottom=null;s.raphael=n;iu=function(n){var u=n.getBoundingClientRect(),f=n.ownerDocument,i=f.body,r=f.documentElement,e=r.clientTop||i.clientTop||0,o=r.clientLeft||i.clientLeft||0,s=u.top+(t.win.pageYOffset||r.scrollTop||i.scrollTop)-e,h=u.left+(t.win.pageXOffset||r.scrollLeft||i.scrollLeft)-o;return{y:s,x:h}};s.getElementByPoint=function(n,i){var o=this,f=o.canvas,r=t.doc.elementFromPoint(n,i),s,u,e;if(t.win.opera&&r.tagName=="svg"&&(s=iu(f),u=f.createSVGRect(),u.x=n-s.x,u.y=i-s.y,u.width=u.height=1,e=f.getIntersectionList(u,null),e.length&&(r=e[e.length-1])),!r)return null;while(r.parentNode&&r!=f.parentNode&&!r.raphael)r=r.parentNode;return r==o.canvas.parentNode&&(r=f),r&&r.raphael?o.getById(r.raphaelid):null};s.getElementsByBBox=function(t){var i=this.set();return this.forEach(function(r){n.isBBoxIntersect(r.getBBox(),t)&&i.push(r)}),i};s.getById=function(n){for(var t=this.bottom;t;){if(t.id==n)return t;t=t.next}return null};s.forEach=function(n,t){for(var i=this.bottom;i;){if(n.call(t,i)===!1)return this;i=i.next}return this};s.getElementsByPoint=function(n,t){var i=this.set();return this.forEach(function(r){r.isPointInside(n,t)&&i.push(r)}),i};u.isPointInside=function(t,i){var r=this.realPath=this.realPath||gt[this.type](this);return n.isPointInsidePath(r,t,i)};u.getBBox=function(n){if(this.removed)return{};var t=this._;return n?((t.dirty||!t.bboxwt)&&(this.realPath=gt[this.type](this),t.bboxwt=di(this.realPath),t.bboxwt.toString=ru,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&((t.dirty||!this.realPath)&&(t.bboxwt=0,this.realPath=gt[this.type](this)),t.bbox=di(wi(this.realPath,this.matrix)),t.bbox.toString=ru,t.dirty=t.dirtyT=0),t.bbox)};u.clone=function(){if(this.removed)return null;var n=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(n),n};u.glow=function(n){var r;if(this.type=="text")return null;n=n||{};var t={width:(n.width||10)+(+this.attr("stroke-width")||1),fill:n.fill||!1,opacity:n.opacity||.5,offsetx:n.offsetx||0,offsety:n.offsety||0,color:n.color||"#000"},u=t.width/2,f=this.paper,e=f.set(),i=this.realPath||gt[this.type](this);for(i=this.matrix?wi(i,this.matrix):i,r=1;r<u+1;r++)e.push(f.path(i).attr({stroke:t.color,fill:t.fill?t.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(t.width/u*r).toFixed(3),opacity:+(t.opacity/u).toFixed(3)}));return e.insertBefore(this).translate(t.offsetx,t.offsety)};var ir=function(t,i,r,u,f,e,o,s,h){return h==null?lt(t,i,r,u,f,e,o,s):n.findDotsAtSegment(t,i,r,u,f,e,o,s,of(t,i,r,u,f,e,o,s,h))},rr=function(t,i){return function(r,u,f){var y,p;r=yt(r);var s,h,e,a,c="",v={},o,l=0;for(y=0,p=r.length;y<p;y++){if(e=r[y],e[0]=="M")s=+e[1],h=+e[2];else{if(a=ir(s,h,e[1],e[2],e[3],e[4],e[5],e[6]),l+a>u){if(i&&!v.start){if(o=ir(s,h,e[1],e[2],e[3],e[4],e[5],e[6],u-l),c+=["C"+o.start.x,o.start.y,o.m.x,o.m.y,o.x,o.y],f)return c;v.start=c;c=["M"+o.x,o.y+"C"+o.n.x,o.n.y,o.end.x,o.end.y,e[5],e[6]].join();l+=a;s=+e[5];h=+e[6];continue}if(!t&&!i)return o=ir(s,h,e[1],e[2],e[3],e[4],e[5],e[6],u-l),{x:o.x,y:o.y,alpha:o.alpha}}l+=a;s=+e[5];h=+e[6]}c+=e.shift()+e}return v.end=c,o=t?l:i?v:n.findDotsAtSegment(s,h,e[0],e[1],e[2],e[3],e[4],e[5],1),o.alpha&&(o={x:o.x,y:o.y,alpha:o.alpha}),o}},uu=rr(1),fu=rr(),ur=rr(0,1);n.getTotalLength=uu;n.getPointAtLength=fu;n.getSubpath=function(n,t,i){if(this.getTotalLength(n)-i<1e-6)return ur(n,t).end;var r=ur(n,i,1);return t?ur(r,t).end:r};u.getTotalLength=function(){if(this.type=="path")return this.node.getTotalLength?this.node.getTotalLength():uu(this.attrs.path)};u.getPointAtLength=function(n){if(this.type=="path")return fu(this.attrs.path,n)};u.getSubpath=function(t,i){if(this.type=="path")return n.getSubpath(this.attrs.path,t,i)};k=n.easing_formulas={linear:function(n){return n},"<":function(n){return d(n,1.7)},">":function(n){return d(n,.48)},"<>":function(n){var r=.48-n/1.04,u=i.sqrt(.1734+r*r),f=u-r,o=d(a(f),1/3)*(f<0?-1:1),e=-u-r,s=d(a(e),1/3)*(e<0?-1:1),t=o+s+.5;return(1-t)*3*t*t+t*t*t},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){n=n-1;var t=1.70158;return n*n*((t+1)*n+t)+1},elastic:function(n){return n==!!n?n:d(2,-10*n)*i.sin((n-.075)*2*w/.3)+1},bounce:function(n){var r=7.5625,t=2.75,i;return n<1/t?i=r*n*n:n<2/t?(n-=1.5/t,i=r*n*n+.75):n<2.5/t?(n-=2.25/t,i=r*n*n+.9375):(n-=2.625/t,i=r*n*n+.984375),i}};k.easeIn=k["ease-in"]=k["<"];k.easeOut=k["ease-out"]=k[">"];k.easeInOut=k["ease-in-out"]=k["<>"];k["back-in"]=k.backIn;k["back-out"]=k.backOut;var r=[],eu=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){setTimeout(n,16)},fr=function(){for(var ut=+new Date,w=0,t,a,i,u,d,c,g,p,rt;w<r.length;w++)if(t=r[w],!t.el.removed&&!t.paused){var b=ut-t.start,s=t.ms,ft=t.easing,o=t.from,l=t.diff,nt=t.to,et=t.t,y=t.el,tt={},e,it={},k;if(t.initstatus?(b=(t.initstatus*t.anim.top-t.prev)/(t.percent-t.prev)*s,t.status=t.initstatus,delete t.initstatus,t.stop&&r.splice(w--,1)):t.status=(t.prev+(t.percent-t.prev)*(b/s))/t.anim.top,!(b<0))if(b<s){a=ft(b/s);for(i in o)if(o[h](i)){switch(yi[i]){case v:e=+o[i]+a*s*l[i];break;case"colour":e="rgb("+[er(vi(o[i].r+a*s*l[i].r)),er(vi(o[i].g+a*s*l[i].g)),er(vi(o[i].b+a*s*l[i].b))].join(",")+")";break;case"path":for(e=[],u=0,d=o[i].length;u<d;u++){for(e[u]=[o[i][u][0]],c=1,g=o[i][u].length;c<g;c++)e[u][c]=+o[i][u][c]+a*s*l[i][u][c];e[u]=e[u].join(ht)}e=e.join(ht);break;case"transform":if(l[i].real)for(e=[],u=0,d=o[i].length;u<d;u++)for(e[u]=[o[i][u][0]],c=1,g=o[i][u].length;c<g;c++)e[u][c]=o[i][u][c]+a*s*l[i][u][c];else p=function(n){return+o[i][n]+a*s*l[i][n]},e=[["m",p(0),p(1),p(2),p(3),p(4),p(5)]];break;case"csv":if(i=="clip-rect")for(e=[],u=4;u--;)e[u]=+o[i][u]+a*s*l[i][u];break;default:for(rt=[][f](o[i]),e=[],u=y.paper.customAttributes[i].length;u--;)e[u]=+rt[u]+a*s*l[i][u]}tt[i]=e}y.attr(tt),function(n,t,i){setTimeout(function(){eve("raphael.anim.frame."+n,t,i)})}(y.id,y,t.anim)}else{if(function(t,i,r){setTimeout(function(){eve("raphael.anim.frame."+i.id,i,r);eve("raphael.anim.finish."+i.id,i,r);n.is(t,"function")&&t.call(i)})}(t.callback,y,t.anim),y.attr(nt),r.splice(w--,1),t.repeat>1&&!t.next){for(k in nt)nt[h](k)&&(it[k]=t.totalOrigin[k]);t.el.attr(it);wt(t.anim,t.el,t.anim.percents[0],null,t.totalOrigin,t.repeat-1)}t.next&&!t.stop&&wt(t.anim,t.el,t.next,null,t.totalOrigin,t.repeat)}}n.svg&&y&&y.paper&&y.paper.safari();r.length&&eu(fr)},er=function(n){return n>255?255:n<0?0:n};u.animateWith=function(t,i,u,f,e,o){var s=this,c,h,l;if(s.removed)return o&&o.call(s),s;for(c=u instanceof rt?u:n.animation(u,f,e,o),wt(c,s,c.percents[0],null,s.attr()),h=0,l=r.length;h<l;h++)if(r[h].anim==i&&r[h].el==t){r[l-1].start=r[h].start;break}return s};u.onAnimation=function(n){return n?eve.on("raphael.anim.frame."+this.id,n):eve.unbind("raphael.anim.frame."+this.id),this};rt.prototype.delay=function(n){var t=new rt(this.anim,this.ms);return t.times=this.times,t.del=+n||0,t};rt.prototype.repeat=function(n){var t=new rt(this.anim,this.ms);return t.del=this.del,t.times=i.floor(e(n,0))||1,t};n.animation=function(t,i,r,u){if(t instanceof rt)return t;(n.is(r,"function")||!r)&&(u=u||r||null,r=null);t=Object(t);i=+i||0;var e={},s,f;for(f in t)t[h](f)&&o(f)!=f&&o(f)+"%"!=f&&(s=!0,e[f]=t[f]);return s?(r&&(e.easing=r),u&&(e.callback=u),new rt({100:e},i)):new rt(t,i)};u.animate=function(t,i,r,u){var f=this,e;return f.removed?(u&&u.call(f),f):(e=t instanceof rt?t:n.animation(t,i,r,u),wt(e,f,e.percents[0],null,f.attr()),f)};u.setTime=function(n,t){return n&&t!=null&&this.status(n,l(t,n.ms)/n.ms),this};u.status=function(n,t){var f=[],u=0,e,i;if(t!=null)return wt(n,this,-1,l(t,1)),this;for(e=r.length;u<e;u++)if(i=r[u],i.el.id==this.id&&(!n||i.anim==n)){if(n)return i.status;f.push({anim:i.anim,status:i.status})}return n?0:f};u.pause=function(n){for(var t=0;t<r.length;t++)r[t].el.id!=this.id||n&&r[t].anim!=n||eve("raphael.anim.pause."+this.id,this,r[t].anim)!==!1&&(r[t].paused=!0);return this};u.resume=function(n){for(var i,t=0;t<r.length;t++)r[t].el.id!=this.id||n&&r[t].anim!=n||(i=r[t],eve("raphael.anim.resume."+this.id,this,i.anim)!==!1&&(delete i.paused,this.status(i.anim,i.status)));return this};u.stop=function(n){for(var t=0;t<r.length;t++)r[t].el.id!=this.id||n&&r[t].anim!=n||eve("raphael.anim.stop."+this.id,this,r[t].anim)!==!1&&r.splice(t--,1);return this};eve.on("raphael.remove",ou);eve.on("raphael.clear",ou);u.toString=function(){return"Raphaël’s object"};at=function(n){if(this.items=[],this.length=0,this.type="set",n)for(var t=0,i=n.length;t<i;t++)n[t]&&(n[t].constructor==u.constructor||n[t].constructor==at)&&(this[this.items.length]=this.items[this.items.length]=n[t],this.length++)};y=at.prototype;y.push=function(){for(var n,i,t=0,r=arguments.length;t<r;t++)n=arguments[t],n&&(n.constructor==u.constructor||n.constructor==at)&&(i=this.items.length,this[i]=this.items[i]=n,this.length++);return this};y.pop=function(){return this.length&&delete this[this.length--],this.items.pop()};y.forEach=function(n,t){for(var i=0,r=this.items.length;i<r;i++)if(n.call(t,this.items[i],i)===!1)return this;return this};for(oi in u)u[h](oi)&&(y[oi]=function(n){return function(){var t=arguments;return this.forEach(function(i){i[n][c](i,t)})}}(oi));y.attr=function(t,i){var r,f,u,e;if(t&&n.is(t,g)&&n.is(t[0],"object"))for(r=0,f=t.length;r<f;r++)this.items[r].attr(t[r]);else for(u=0,e=this.items.length;u<e;u++)this.items[u].attr(t,i);return this};y.clear=function(){while(this.length)this.pop()};y.splice=function(n,t){var r;n=n<0?e(this.length+n,0):n;t=e(0,l(this.length-n,t));for(var u=[],o=[],f=[],i=2;i<arguments.length;i++)f.push(arguments[i]);for(i=0;i<t;i++)o.push(this[n+i]);for(;i<this.length-n;i++)u.push(this[n+i]);for(r=f.length,i=0;i<r+u.length;i++)this.items[n+i]=this[n+i]=i<r?f[i]:u[i-r];for(i=this.items.length=this.length-=t-r;this[i];)delete this[i++];return new at(o)};y.exclude=function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]==n)return this.splice(t,1),!0};y.animate=function(t,i,r,u){var e;(n.is(r,"function")||!r)&&(u=r||null);var o=this.items.length,f=o,h,c=this,s;if(!o)return this;for(u&&(s=function(){--o||u.call(c)}),r=n.is(r,kt)?r:s,e=n.animation(t,i,r,s),h=this.items[--f].animate(e);f--;)this.items[f]&&!this.items[f].removed&&this.items[f].animateWith(h,e,e);return this};y.insertAfter=function(n){for(var t=this.items.length;t--;)this.items[t].insertAfter(n);return this};y.getBBox=function(){for(var t=[],i=[],r=[],u=[],n,f=this.items.length;f--;)this.items[f].removed||(n=this.items[f].getBBox(),t.push(n.x),i.push(n.y),r.push(n.x+n.width),u.push(n.y+n.height));return t=l[c](0,t),i=l[c](0,i),r=e[c](0,r),u=e[c](0,u),{x:t,y:i,x2:r,y2:u,width:r-t,height:u-i}};y.clone=function(n){n=this.paper.set();for(var t=0,i=this.items.length;t<i;t++)n.push(this.items[t].clone());return n};y.toString=function(){return"Raphaël‘s set"};y.glow=function(n){var t=this.paper.set();return this.forEach(function(i){var r=i.glow(n);r!=null&&r.forEach(function(n){t.push(n)})}),t};n.registerFont=function(n){var i,u,f,r,t,e;if(!n.face)return n;this.fonts=this.fonts||{};i={w:n.w,face:{},glyphs:{}};u=n.face["font-family"];for(f in n.face)n.face[h](f)&&(i.face[f]=n.face[f]);if(this.fonts[u]?this.fonts[u].push(i):this.fonts[u]=[i],!n.svg){i.face["units-per-em"]=et(n.face["units-per-em"],10);for(r in n.glyphs)if(n.glyphs[h](r)&&(t=n.glyphs[r],i.glyphs[r]={w:t.w,k:{},d:t.d&&"M"+t.d.replace(/[mlcxtrv]/g,function(n){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[n]||"M"})+"z"},t.k))for(e in t.k)t[h](e)&&(i.glyphs[r].k[e]=t.k[e])}return n};s.getFont=function(t,i,r,u){var f,c,o,e,s,l;if(u=u||"normal",r=r||"normal",i=+i||{normal:400,bold:700,lighter:300,bolder:800}[i]||400,n.fonts){if(f=n.fonts[t],!f){c=new RegExp("(^|\\s)"+t.replace(/[^\w\d\s+!~.:_-]/g,b)+"(\\s|$)","i");for(o in n.fonts)if(n.fonts[h](o)&&c.test(o)){f=n.fonts[o];break}}if(f)for(s=0,l=f.length;s<l;s++)if(e=f[s],e.face["font-weight"]==i&&(e.face["font-style"]==r||!e.face["font-style"])&&e.face["font-stretch"]==u)break;return e}};s.print=function(t,i,r,u,f,o,s){var c,ft,k,v;o=o||"middle";s=e(l(s||0,1),-1);var a=p(r)[it](b),d=0,y=0,nt=b,h;if(n.is(u,"string")&&(u=this.getFont(u)),u){h=(f||16)/u.face["units-per-em"];var w=u.face.bbox[it](hi),tt=+w[0],g=w[3]-w[1],rt=0,ut=+w[1]+(o=="baseline"?g+ +u.face.descent:g/2);for(c=0,ft=a.length;c<ft;c++)a[c]=="\n"?(d=0,v=0,y=0,rt+=g):(k=y&&u.glyphs[a[c-1]]||{},v=u.glyphs[a[c]],d+=y?(k.w||u.w)+(k.k&&k.k[a[c]]||0)+u.w*s:0,y=1),v&&v.d&&(nt+=n.transformPath(v.d,["t",d*h,rt*h,"s",h,h,tt,ut,"t",(t-tt)/h,(i-ut)/h]))}return this.path(nt).attr({fill:"#000",stroke:"none"})};s.add=function(t){if(n.is(t,"array"))for(var u=this.set(),r=0,f=t.length,i;r<f;r++)i=t[r]||{},su[h](i.type)&&u.push(this[i.type]().attr(i));return u};n.format=function(t,i){var r=n.is(i,g)?[0][f](i):arguments;return t&&n.is(t,kt)&&r.length-1&&(t=t.replace(hu,function(n,t){return r[++t]==null?b:r[t]})),t||b};n.fullfill=function(){var n=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(n,i,r){var u=r;return i.replace(t,function(n,t,i,r,f){t=t||r;u&&(t in u&&(u=u[t]),typeof u=="function"&&f&&(u=u()))}),u=(u==null||u==r?n:u)+""};return function(t,r){return String(t).replace(n,function(n,t){return i(n,t,r)})}}();n.ninja=function(){return ci.was?t.win.Raphael=ci.is:delete Raphael,n};n.st=y,function(t,i,r){function u(){/in/.test(t.readyState)?setTimeout(u,9):n.eve("raphael.DOMload")}t.readyState==null&&t.addEventListener&&(t.addEventListener(i,r=function(){t.removeEventListener(i,r,!1);t.readyState="complete"},!1),t.readyState="loading");u()}(document,"DOMContentLoaded");ci.was?t.win.Raphael=n:Raphael=n;eve.on("raphael.DOMload",function(){si=!0})}();window.Raphael&&window.Raphael.svg&&function(n){var i="hasOwnProperty",u=String,f=parseFloat,tt=parseInt,c=Math,k=c.max,y=c.abs,d=c.pow,l=/[, ]+/,p=n.eve,o="",w=" ",a="http://www.w3.org/1999/xlink",ft={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},e={},nt,v;n.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var t=function(r,f){if(f){typeof r=="string"&&(r=t(r));for(var e in f)f[i](e)&&(e.substring(0,6)=="xlink:"?r.setAttributeNS(a,e.substring(6),u(f[e])):r.setAttribute(e,u(f[e])))}else r=n._g.doc.createElementNS("http://www.w3.org/2000/svg",r),r.style&&(r.style.webkitTapHighlightColor="rgba(0,0,0,0)");return r},it=function(i,r){var w="linear",l=i.id+r,b=.5,s=.5,tt=i.node,it=i.paper,g=tt.style,a=n._g.doc.getElementById(l),v,e,nt,p,h,rt;if(!a){if(r=u(r).replace(n._radial_gradient,function(n,t,i){if(w="radial",t&&i){b=f(t);s=f(i);var r=(s>.5)*2-1;d(b-.5,2)+d(s-.5,2)>.25&&(s=c.sqrt(.25-d(b-.5,2))*r+.5)&&s!=.5&&(s=s.toFixed(5)-1e-5*r)}return o}),r=r.split(/\s*\-\s*/),w=="linear"){if(v=r.shift(),v=-f(v),isNaN(v))return null;e=[0,0,c.cos(n.rad(v)),c.sin(n.rad(v))];nt=1/(k(y(e[2]),y(e[3]))||1);e[2]*=nt;e[3]*=nt;e[2]<0&&(e[0]=-e[2],e[2]=0);e[3]<0&&(e[1]=-e[3],e[3]=0)}if(p=n._parseDots(r),!p)return null;if(l=l.replace(/[\(\)\s,\xb0#]/g,"_"),i.gradient&&l!=i.gradient.id&&(it.defs.removeChild(i.gradient),delete i.gradient),!i.gradient)for(a=t(w+"Gradient",{id:l}),i.gradient=a,t(a,w=="radial"?{fx:b,fy:s}:{x1:e[0],y1:e[1],x2:e[2],y2:e[3],gradientTransform:i.matrix.invert()}),it.defs.appendChild(a),h=0,rt=p.length;h<rt;h++)a.appendChild(t("stop",{offset:p[h].offset?p[h].offset:h?"100%":"0%","stop-color":p[h].color||"#fff"}))}return t(tt,{fill:"url(#"+l+")",opacity:1,"fill-opacity":1}),g.fill=o,g.opacity=1,g.fillOpacity=1,1},b=function(n){var i=n.getBBox(1);t(n.pattern,{patternTransform:n.matrix.invert()+" translate("+i.x+","+i.y+")"})},s=function(r,f,s){var b,k,g,tt,it,rt;if(r.type=="path"){for(var ut=u(f).toLowerCase().split("-"),ht=r.paper,h=s?"end":"start",ct=r.node,l=r.attrs,d=l["stroke-width"],et=ut.length,a="classic",p,w,ot,st,c,v=3,y=3,nt=5;et--;)switch(ut[et]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":a=ut[et];break;case"wide":y=5;break;case"narrow":y=2;break;case"long":v=5;break;case"short":v=2}a=="open"?(v+=2,y+=2,nt+=2,ot=1,st=s?4:1,c={fill:"none",stroke:l.stroke}):(st=ot=v/2,c={fill:l.stroke,stroke:"none"});r._.arrows?s?(r._.arrows.endPath&&e[r._.arrows.endPath]--,r._.arrows.endMarker&&e[r._.arrows.endMarker]--):(r._.arrows.startPath&&e[r._.arrows.startPath]--,r._.arrows.startMarker&&e[r._.arrows.startMarker]--):r._.arrows={};a!="none"?(b="raphael-marker-"+a,k="raphael-marker-"+h+a+v+y,n._g.doc.getElementById(b)?e[b]++:(ht.defs.appendChild(t(t("path"),{"stroke-linecap":"round",d:ft[a],id:b})),e[b]=1),g=n._g.doc.getElementById(k),g?(e[k]++,tt=g.getElementsByTagName("use")[0]):(g=t(t("marker"),{id:k,markerHeight:y,markerWidth:v,orient:"auto",refX:st,refY:y/2}),tt=t(t("use"),{"xlink:href":"#"+b,transform:(s?"rotate(180 "+v/2+" "+y/2+") ":o)+"scale("+v/nt+","+y/nt+")","stroke-width":(2/(v/nt+y/nt)).toFixed(4)}),g.appendChild(tt),ht.defs.appendChild(g),e[k]=1),t(tt,c),it=ot*(a!="diamond"&&a!="oval"),s?(p=r._.arrows.startdx*d||0,w=n.getTotalLength(l.path)-it*d):(p=it*d,w=n.getTotalLength(l.path)-(r._.arrows.enddx*d||0)),c={},c["marker-"+h]="url(#"+k+")",(w||p)&&(c.d=Raphael.getSubpath(l.path,p,w)),t(ct,c),r._.arrows[h+"Path"]=b,r._.arrows[h+"Marker"]=k,r._.arrows[h+"dx"]=it,r._.arrows[h+"Type"]=a,r._.arrows[h+"String"]=f):(s?(p=r._.arrows.startdx*d||0,w=n.getTotalLength(l.path)-p):(p=0,w=n.getTotalLength(l.path)-(r._.arrows.enddx*d||0)),r._.arrows[h+"Path"]&&t(ct,{d:Raphael.getSubpath(l.path,p,w)}),delete r._.arrows[h+"Path"],delete r._.arrows[h+"Marker"],delete r._.arrows[h+"dx"],delete r._.arrows[h+"Type"],delete r._.arrows[h+"String"]);for(c in e)e[i](c)&&!e[c]&&(rt=n._g.doc.getElementById(c),rt&&rt.parentNode.removeChild(rt))}},et={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},rt=function(n,i,r){if(i=et[u(i).toLowerCase()],i){for(var e=n.attrs["stroke-width"]||"1",s={round:e,square:e,butt:0}[n.attrs["stroke-linecap"]||r["stroke-linecap"]]||0,o=[],f=i.length;f--;)o[f]=i[f]*e+(f%2?1:-1)*s;t(n.node,{"stroke-dasharray":o.join(",")})}},g=function(r,f){var h=r.node,c=r.attrs,vt=h.style.visibility,v,e,d,ft,g,p,et,lt,st,ht,ct,w,nt,ut,at;h.style.visibility="hidden";for(v in f)if(f[i](v)){if(!n._availableAttrs[i](v))continue;e=f[v];c[v]=e;switch(v){case"blur":r.blur(e);break;case"href":case"title":case"target":d=h.parentNode;d.tagName.toLowerCase()!="a"&&(ft=t("a"),d.insertBefore(ft,h),ft.appendChild(h),d=ft);v=="target"?d.setAttributeNS(a,"show",e=="blank"?"new":e):d.setAttributeNS(a,v,e);break;case"cursor":h.style.cursor=e;break;case"transform":r.transform(e);break;case"arrow-start":s(r,e);break;case"arrow-end":s(r,e,1);break;case"clip-rect":g=u(e).split(l);g.length==4&&(r.clip&&r.clip.parentNode.parentNode.removeChild(r.clip.parentNode),p=t("clipPath"),et=t("rect"),p.id=n.createUUID(),t(et,{x:g[0],y:g[1],width:g[2],height:g[3]}),p.appendChild(et),r.paper.defs.appendChild(p),t(h,{"clip-path":"url(#"+p.id+")"}),r.clip=et);e||(lt=h.getAttribute("clip-path"),lt&&(st=n._g.doc.getElementById(lt.replace(/(^url\(#|\)$)/g,o)),st&&st.parentNode.removeChild(st),t(h,{"clip-path":o}),delete r.clip));break;case"path":r.type=="path"&&(t(h,{d:e?c.path=n._pathToAbsolute(e):"M0,0"}),r._.dirty=1,r._.arrows&&("startString"in r._.arrows&&s(r,r._.arrows.startString),"endString"in r._.arrows&&s(r,r._.arrows.endString,1)));break;case"width":if(h.setAttribute(v,e),r._.dirty=1,c.fx)v="x",e=c.x;else break;case"x":c.fx&&(e=-c.x-(c.width||0));case"rx":if(v=="rx"&&r.type=="rect")break;case"cx":h.setAttribute(v,e);r.pattern&&b(r);r._.dirty=1;break;case"height":if(h.setAttribute(v,e),r._.dirty=1,c.fy)v="y",e=c.y;else break;case"y":c.fy&&(e=-c.y-(c.height||0));case"ry":if(v=="ry"&&r.type=="rect")break;case"cy":h.setAttribute(v,e);r.pattern&&b(r);r._.dirty=1;break;case"r":r.type=="rect"?t(h,{rx:e,ry:e}):h.setAttribute(v,e);r._.dirty=1;break;case"src":r.type=="image"&&h.setAttributeNS(a,"href",e);break;case"stroke-width":(r._.sx!=1||r._.sy!=1)&&(e/=k(y(r._.sx),y(r._.sy))||1);r.paper._vbSize&&(e*=r.paper._vbSize);h.setAttribute(v,e);c["stroke-dasharray"]&&rt(r,c["stroke-dasharray"],f);r._.arrows&&("startString"in r._.arrows&&s(r,r._.arrows.startString),"endString"in r._.arrows&&s(r,r._.arrows.endString,1));break;case"stroke-dasharray":rt(r,e,f);break;case"fill":if(ht=u(e).match(n._ISURL),ht){p=t("pattern");ct=t("image");p.id=n.createUUID();t(p,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});t(ct,{x:0,y:0,"xlink:href":ht[1]});p.appendChild(ct),function(i){n._preload(ht[1],function(){var n=this.offsetWidth,u=this.offsetHeight;t(i,{width:n,height:u});t(ct,{width:n,height:u});r.paper.safari()})}(p);r.paper.defs.appendChild(p);t(h,{fill:"url(#"+p.id+")"});r.pattern=p;r.pattern&&b(r);break}if(w=n.getRGB(e),w.error){if((r.type=="circle"||r.type=="ellipse"||u(e).charAt()!="r")&&it(r,e)){("opacity"in c||"fill-opacity"in c)&&(nt=n._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,o)),nt&&(ut=nt.getElementsByTagName("stop"),t(ut[ut.length-1],{"stop-opacity":("opacity"in c?c.opacity:1)*("fill-opacity"in c?c["fill-opacity"]:1)})));c.gradient=e;c.fill="none";break}}else delete f.gradient,delete c.gradient,!n.is(c.opacity,"undefined")&&n.is(f.opacity,"undefined")&&t(h,{opacity:c.opacity}),!n.is(c["fill-opacity"],"undefined")&&n.is(f["fill-opacity"],"undefined")&&t(h,{"fill-opacity":c["fill-opacity"]});w[i]("opacity")&&t(h,{"fill-opacity":w.opacity>1?w.opacity/100:w.opacity});case"stroke":w=n.getRGB(e);h.setAttribute(v,w.hex);v=="stroke"&&w[i]("opacity")&&t(h,{"stroke-opacity":w.opacity>1?w.opacity/100:w.opacity});v=="stroke"&&r._.arrows&&("startString"in r._.arrows&&s(r,r._.arrows.startString),"endString"in r._.arrows&&s(r,r._.arrows.endString,1));break;case"gradient":(r.type=="circle"||r.type=="ellipse"||u(e).charAt()!="r")&&it(r,e);break;case"opacity":c.gradient&&!c[i]("stroke-opacity")&&t(h,{"stroke-opacity":e>1?e/100:e});case"fill-opacity":if(c.gradient){nt=n._g.doc.getElementById(h.getAttribute("fill").replace(/^url\(#|\)$/g,o));nt&&(ut=nt.getElementsByTagName("stop"),t(ut[ut.length-1],{"stop-opacity":e}));break}default:v=="font-size"&&(e=tt(e,10)+"px");at=v.replace(/(\-.)/g,function(n){return n.substring(1).toUpperCase()});h.style[at]=e;r._.dirty=1;h.setAttribute(v,e)}}ot(r,f);h.style.visibility=vt},ut=1.2,ot=function(r,f){var y,h,l,e,a,p,v;if(r.type=="text"&&(f[i]("text")||f[i]("font")||f[i]("font-size")||f[i]("x")||f[i]("y"))){var c=r.attrs,s=r.node,w=s.firstChild?tt(n._g.doc.defaultView.getComputedStyle(s.firstChild,o).getPropertyValue("font-size"),10):10;if(f[i]("text")){for(c.text=f.text;s.firstChild;)s.removeChild(s.firstChild);for(y=u(f.text).split("\n"),h=[],e=0,a=y.length;e<a;e++)l=t("tspan"),e&&t(l,{dy:w*ut,x:c.x}),l.appendChild(n._g.doc.createTextNode(y[e])),s.appendChild(l),h[e]=l}else for(h=s.getElementsByTagName("tspan"),e=0,a=h.length;e<a;e++)e?t(h[e],{dy:w*ut,x:c.x}):t(h[0],{dy:0});t(s,{x:c.x,y:c.y});r._.dirty=1;p=r._getBBox();v=c.y-(p.y+p.height/2);v&&n.is(v,"finite")&&t(h[0],{dy:v})}},h=function(t,i){this[0]=this.node=t;t.raphael=!0;this.id=n._oid++;t.raphaelid=this.id;this.matrix=n.matrix();this.realPath=null;this.paper=i;this.attrs=this.attrs||{};this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};i.bottom||(i.bottom=this);this.prev=i.top;i.top&&(i.top.next=this);i.top=this;this.next=null},r=n.el;h.prototype=r;r.constructor=h;n._engine.path=function(n,i){var u=t("path"),r;return i.canvas&&i.canvas.appendChild(u),r=new h(u,i),r.type="path",g(r,{fill:"none",stroke:"#000",path:n}),r};r.rotate=function(n,t,i){if(this.removed)return this;if(n=u(n).split(l),n.length-1&&(t=f(n[1]),i=f(n[2])),n=f(n[0]),i==null&&(t=i),t==null||i==null){var r=this.getBBox(1);t=r.x+r.width/2;i=r.y+r.height/2}return this.transform(this._.transform.concat([["r",n,t,i]])),this};r.scale=function(n,t,i,r){if(this.removed)return this;if(n=u(n).split(l),n.length-1&&(t=f(n[1]),i=f(n[2]),r=f(n[3])),n=f(n[0]),t==null&&(t=n),r==null&&(i=r),i==null||r==null)var e=this.getBBox(1);return i=i==null?e.x+e.width/2:i,r=r==null?e.y+e.height/2:r,this.transform(this._.transform.concat([["s",n,t,i,r]])),this};r.translate=function(n,t){return this.removed?this:(n=u(n).split(l),n.length-1&&(t=f(n[1])),n=f(n[0])||0,t=+t||0,this.transform(this._.transform.concat([["t",n,t]])),this)};r.transform=function(r){var u=this._,f;return r==null?u.transform:(n._extractTransform(this,r),this.clip&&t(this.clip,{transform:this.matrix.invert()}),this.pattern&&b(this),this.node&&t(this.node,{transform:this.matrix}),(u.sx!=1||u.sy!=1)&&(f=this.attrs[i]("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":f})),this)};r.hide=function(){return this.removed||this.paper.safari(this.node.style.display="none"),this};r.show=function(){return this.removed||this.paper.safari(this.node.style.display=""),this};r.remove=function(){var t,i;if(!this.removed&&this.node.parentNode){t=this.paper;t.__set__&&t.__set__.exclude(this);p.unbind("raphael.*.*."+this.id);this.gradient&&t.defs.removeChild(this.gradient);n._tear(this,t);this.node.parentNode.tagName.toLowerCase()=="a"?this.node.parentNode.parentNode.removeChild(this.node.parentNode):this.node.parentNode.removeChild(this.node);for(i in this)this[i]=typeof this[i]=="function"?n._removedFactory(i):null;this.removed=!0}};r._getBBox=function(){var t,n;this.node.style.display=="none"&&(this.show(),t=!0);n={};try{n=this.node.getBBox()}catch(i){}finally{n=n||{}}return t&&this.hide(),n};r.attr=function(t,r){var e,c,a,s,o,h,f,u,v,y;if(this.removed)return this;if(t==null){e={};for(c in this.attrs)this.attrs[i](c)&&(e[c]=this.attrs[c]);return e.gradient&&e.fill=="none"&&(e.fill=e.gradient)&&delete e.gradient,e.transform=this._.transform,e}if(r==null&&n.is(t,"string")){if(t=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(t=="transform")return this._.transform;for(a=t.split(l),s={},o=0,h=a.length;o<h;o++)t=a[o],s[t]=t in this.attrs?this.attrs[t]:n.is(this.paper.customAttributes[t],"function")?this.paper.customAttributes[t].def:n._availableAttrs[t];return h-1?s:s[a[0]]}if(r==null&&n.is(t,"array")){for(s={},o=0,h=t.length;o<h;o++)s[t[o]]=this.attr(t[o]);return s}r!=null?(f={},f[t]=r):t!=null&&n.is(t,"object")&&(f=t);for(u in f)p("raphael.attr."+u+"."+this.id,this,f[u]);for(u in this.paper.customAttributes)if(this.paper.customAttributes[i](u)&&f[i](u)&&n.is(this.paper.customAttributes[u],"function")){v=this.paper.customAttributes[u].apply(this,[].concat(f[u]));this.attrs[u]=f[u];for(y in v)v[i](y)&&(f[y]=v[y])}return g(this,f),this};r.toFront=function(){if(this.removed)return this;this.node.parentNode.tagName.toLowerCase()=="a"?this.node.parentNode.parentNode.appendChild(this.node.parentNode):this.node.parentNode.appendChild(this.node);var t=this.paper;return t.top!=this&&n._tofront(this,t),this};r.toBack=function(){var t,i;return this.removed?this:(t=this.node.parentNode,t.tagName.toLowerCase()=="a"?t.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild):t.firstChild!=this.node&&t.insertBefore(this.node,this.node.parentNode.firstChild),n._toback(this,this.paper),i=this.paper,this)};r.insertAfter=function(t){if(this.removed)return this;var i=t.node||t[t.length-1].node;return i.nextSibling?i.parentNode.insertBefore(this.node,i.nextSibling):i.parentNode.appendChild(this.node),n._insertafter(this,t,this.paper),this};r.insertBefore=function(t){if(this.removed)return this;var i=t.node||t[0].node;return i.parentNode.insertBefore(this.node,i),n._insertbefore(this,t,this.paper),this};r.blur=function(i){var r=this,u,f;+i!=0?(u=t("filter"),f=t("feGaussianBlur"),r.attrs.blur=i,u.id=n.createUUID(),t(f,{stdDeviation:+i||1.5}),u.appendChild(f),r.paper.defs.appendChild(u),r._blur=u,t(r.node,{filter:"url(#"+u.id+")"})):(r._blur&&(r._blur.parentNode.removeChild(r._blur),delete r._blur,delete r.attrs.blur),r.node.removeAttribute("filter"))};n._engine.circle=function(n,i,r,u){var e=t("circle"),f;return n.canvas&&n.canvas.appendChild(e),f=new h(e,n),f.attrs={cx:i,cy:r,r:u,fill:"none",stroke:"#000"},f.type="circle",t(e,f.attrs),f};n._engine.rect=function(n,i,r,u,f,e){var s=t("rect"),o;return n.canvas&&n.canvas.appendChild(s),o=new h(s,n),o.attrs={x:i,y:r,width:u,height:f,r:e||0,rx:e||0,ry:e||0,fill:"none",stroke:"#000"},o.type="rect",t(s,o.attrs),o};n._engine.ellipse=function(n,i,r,u,f){var o=t("ellipse"),e;return n.canvas&&n.canvas.appendChild(o),e=new h(o,n),e.attrs={cx:i,cy:r,rx:u,ry:f,fill:"none",stroke:"#000"},e.type="ellipse",t(o,e.attrs),e};n._engine.image=function(n,i,r,u,f,e){var o=t("image"),s;return t(o,{x:r,y:u,width:f,height:e,preserveAspectRatio:"none"}),o.setAttributeNS(a,"href",i),n.canvas&&n.canvas.appendChild(o),s=new h(o,n),s.attrs={x:r,y:u,width:f,height:e,src:i},s.type="image",s};n._engine.text=function(i,r,u,f){var o=t("text"),e;return i.canvas&&i.canvas.appendChild(o),e=new h(o,i),e.attrs={x:r,y:u,"text-anchor":"middle",text:f,font:n._availableAttrs.font,stroke:"none",fill:"#000"},e.type="text",g(e,e.attrs),e};n._engine.setSize=function(n,t){return this.width=n||this.width,this.height=t||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this};n._engine.create=function(){var u=n._getContainer.apply(0,arguments),i=u&&u.container,o=u.x,s=u.y,f=u.width,e=u.height,r,h,c;if(!i)throw new Error("SVG container not found.");return r=t("svg"),h="overflow:hidden;",o=o||0,s=s||0,f=f||512,e=e||342,t(r,{height:e,version:1.1,width:f,xmlns:"http://www.w3.org/2000/svg"}),i==1?(r.style.cssText=h+"position:absolute;left:"+o+"px;top:"+s+"px",n._g.doc.body.appendChild(r),c=1):(r.style.cssText=h+"position:relative",i.firstChild?i.insertBefore(r,i.firstChild):i.appendChild(r)),i=new n._Paper,i.width=f,i.height=e,i.canvas=r,i.clear(),i._left=i._top=0,c&&(i.renderfix=function(){}),i.renderfix(),i};n._engine.setViewBox=function(n,i,r,u,f){p("raphael.setViewBox",this,this._viewBox,[n,i,r,u,f]);var o=k(r/this.width,u/this.height),e=this.top,c=f?"meet":"xMinYMin",s,h;for(n==null?(this._vbSize&&(o=1),delete this._vbSize,s="0 0 "+this.width+w+this.height):(this._vbSize=o,s=n+w+i+w+r+w+u),t(this.canvas,{viewBox:s,preserveAspectRatio:c});o&&e;)h="stroke-width"in e.attrs?e.attrs["stroke-width"]:1,e.attr({"stroke-width":h}),e._.dirty=1,e._.dirtyT=1,e=e.prev;return this._viewBox=[n,i,r,u,!!f],this};n.prototype.renderfix=function(){var n=this.canvas,u=n.style,t,i,r;try{t=n.getScreenCTM()||n.createSVGMatrix()}catch(f){t=n.createSVGMatrix()}i=-t.e%1;r=-t.f%1;(i||r)&&(i&&(this._left=(this._left+i)%1,u.left=this._left+"px"),r&&(this._top=(this._top+r)%1,u.top=this._top+"px"))};n.prototype.clear=function(){n.eve("raphael.clear",this);for(var i=this.canvas;i.firstChild;)i.removeChild(i.firstChild);this.bottom=this.top=null;(this.desc=t("desc")).appendChild(n._g.doc.createTextNode("Created with Raphaël "+n.version));i.appendChild(this.desc);i.appendChild(this.defs=t("defs"))};n.prototype.remove=function(){p("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var t in this)this[t]=typeof this[t]=="function"?n._removedFactory(t):null};nt=n.st;for(v in r)r[i](v)&&!nt[i](v)&&(nt[v]=function(n){return function(){var t=arguments;return this.forEach(function(i){i[n].apply(i,t)})}}(v))}(window.Raphael);window.Raphael&&window.Raphael.vml&&function(n){var h="hasOwnProperty",i=String,f=parseFloat,c=Math,e=c.round,k=c.max,g=c.min,p=c.abs,l="fill",a=/[, ]+/,ut=n.eve,ft=" progid:DXImageTransform.Microsoft",o=" ",u="",nt={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},et=/([clmz]),?([^clmz]*)/gi,ot=/ progid:\S+Blur\([^\)]+\)/g,st=/-?[^,\s-]+/g,tt="position:absolute;left:0;top:0;width:1px;height:1px",t=21600,ht={path:1,rect:1,image:1},ct={circle:1,ellipse:1},lt=function(r){var l=/[ahqstv]/ig,a=n._pathToAbsolute,v,c,y,f,s,w,h,p;if(i(r).match(l)&&(a=n._path2curve),l=/[clmz]/g,a==n._pathToAbsolute&&!i(r).match(l))return i(r).replace(et,function(n,i,r){var u=[],o=i.toLowerCase()=="m",f=nt[i];return r.replace(st,function(n){o&&u.length==2&&(f+=u+nt[i=="m"?"l":"L"],u=[]);u.push(e(n*t))}),f+u});for(c=a(r),v=[],s=0,w=c.length;s<w;s++){for(y=c[s],f=c[s][0].toLowerCase(),f=="z"&&(f="x"),h=1,p=y.length;h<p;h++)f+=e(y[h]*t)+(h!=p-1?",":u);v.push(f)}return v.join(o)},it=function(t,i,r){var u=n.matrix();return u.rotate(-t,.5,.5),{dx:u.x(i,r),dy:u.y(i,r)}},w=function(n,i,r,u,f,e){var v=n._,k=n.matrix,h=v.fillpos,c=n.node,y=c.style,w=1,b="",d=t/i,g=t/r,a,s;(y.visibility="hidden",i&&r)&&(c.coordsize=p(d)+o+p(g),y.rotation=e*(i*r<0?-1:1),e&&(a=it(e,u,f),u=a.dx,f=a.dy),i<0&&(b+="x"),r<0&&(b+=" y")&&(w=-1),y.flip=b,c.coordorigin=u*-d+o+f*-g,(h||v.fillsize)&&(s=c.getElementsByTagName(l),s=s&&s[0],c.removeChild(s),h&&(a=it(e,k.x(h[0],h[1]),k.y(h[0],h[1])),s.position=a.dx*w+o+a.dy*w),v.fillsize&&(s.size=v.fillsize[0]*p(i)+o+v.fillsize[1]*p(r)),c.appendChild(s)),y.visibility="visible")},s,d,y;n.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var rt=function(n,t,r){for(var u=i(t).toLowerCase().split("-"),o=r?"end":"start",f=u.length,s="classic",h="medium",c="medium",e;f--;)switch(u[f]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=u[f];break;case"wide":case"narrow":c=u[f];break;case"long":case"short":h=u[f]}e=n.node.getElementsByTagName("stroke")[0];e[o+"arrow"]=s;e[o+"arrowlength"]=h;e[o+"arrowwidth"]=c},v=function(r,c){var yt,nt,ot,ut,ft,y,si,pt,st,tt,d,dt,gt,et,ni,vt,ri,bt,hi;r.attrs=r.attrs||{};var b=r.node,v=r.attrs,it=b.style,ui=ht[r.type]&&(c.x!=v.x||c.y!=v.y||c.width!=v.width||c.height!=v.height||c.cx!=v.cx||c.cy!=v.cy||c.rx!=v.rx||c.ry!=v.ry||c.r!=v.r),ci=ct[r.type]&&(v.cx!=c.cx||v.cy!=c.cy||v.r!=c.r||v.rx!=c.rx||v.ry!=c.ry),p=r;for(yt in c)c[h](yt)&&(v[yt]=c[yt]);if(ui&&(v.path=n._getPath[r.type](r),r._.dirty=1),c.href&&(b.href=c.href),c.title&&(b.title=c.title),c.target&&(b.target=c.target),c.cursor&&(it.cursor=c.cursor),"blur"in c&&r.blur(c.blur),(c.path&&r.type=="path"||ui)&&(b.path=lt(~i(v.path).toLowerCase().indexOf("r")?n._pathToAbsolute(v.path):v.path),r.type=="image"&&(r._.fillpos=[v.x,v.y],r._.fillsize=[v.width,v.height],w(r,1,1,0,0,0))),"transform"in c&&r.transform(c.transform),ci){var kt=+v.cx,fi=+v.cy,ei=+v.rx||+v.r||0,oi=+v.ry||+v.r||0;b.path=n.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",e((kt-ei)*t),e((fi-oi)*t),e((kt+ei)*t),e((fi+oi)*t),e(kt*t))}if("clip-rect"in c&&(nt=i(c["clip-rect"]).split(a),nt.length==4&&(nt[2]=+nt[2]+ +nt[0],nt[3]=+nt[3]+ +nt[1],ot=b.clipRect||n._g.doc.createElement("div"),ut=ot.style,ut.clip=n.format("rect({1}px {2}px {3}px {0}px)",nt),b.clipRect||(ut.position="absolute",ut.top=0,ut.left=0,ut.width=r.paper.width+"px",ut.height=r.paper.height+"px",b.parentNode.insertBefore(ot,b),ot.appendChild(b),b.clipRect=ot)),c["clip-rect"]||b.clipRect&&(b.clipRect.style.clip="auto")),r.textpath&&(ft=r.textpath.style,c.font&&(ft.font=c.font),c["font-family"]&&(ft.fontFamily='"'+c["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,u)+'"'),c["font-size"]&&(ft.fontSize=c["font-size"]),c["font-weight"]&&(ft.fontWeight=c["font-weight"]),c["font-style"]&&(ft.fontStyle=c["font-style"])),"arrow-start"in c&&rt(p,c["arrow-start"]),"arrow-end"in c&&rt(p,c["arrow-end"],1),(c.opacity!=null||c["stroke-width"]!=null||c.fill!=null||c.src!=null||c.stroke!=null||c["stroke-width"]!=null||c["stroke-opacity"]!=null||c["fill-opacity"]!=null||c["stroke-dasharray"]!=null||c["stroke-miterlimit"]!=null||c["stroke-linejoin"]!=null||c["stroke-linecap"]!=null)&&(y=b.getElementsByTagName(l),si=!1,y=y&&y[0],y||(si=y=s(l)),r.type=="image"&&c.src&&(y.src=c.src),c.fill&&(y.on=!0),(y.on==null||c.fill=="none"||c.fill===null)&&(y.on=!1),y.on&&c.fill&&(pt=i(c.fill).match(n._ISURL),pt?(y.parentNode==b&&b.removeChild(y),y.rotate=!0,y.src=pt[1],y.type="tile",st=r.getBBox(1),y.position=st.x+o+st.y,r._.fillpos=[st.x,st.y],n._preload(pt[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]})):(y.color=n.getRGB(c.fill).hex,y.src=u,y.type="solid",n.getRGB(c.fill).error&&(p.type in{circle:1,ellipse:1}||i(c.fill).charAt()!="r")&&at(p,c.fill,y)&&(v.fill="none",v.gradient=c.fill,y.rotate=!1))),("fill-opacity"in c||"opacity"in c)&&(tt=((+v["fill-opacity"]+1||2)-1)*((+v.opacity+1||2)-1)*((+n.getRGB(c.fill).o+1||2)-1),tt=g(k(tt,0),1),y.opacity=tt,y.src&&(y.color="none")),b.appendChild(y),d=b.getElementsByTagName("stroke")&&b.getElementsByTagName("stroke")[0],dt=!1,d||(dt=d=s("stroke")),(c.stroke&&c.stroke!="none"||c["stroke-width"]||c["stroke-opacity"]!=null||c["stroke-dasharray"]||c["stroke-miterlimit"]||c["stroke-linejoin"]||c["stroke-linecap"])&&(d.on=!0),(c.stroke=="none"||c.stroke===null||d.on==null||c.stroke==0||c["stroke-width"]==0)&&(d.on=!1),gt=n.getRGB(c.stroke),d.on&&c.stroke&&(d.color=gt.hex),tt=((+v["stroke-opacity"]+1||2)-1)*((+v.opacity+1||2)-1)*((+gt.o+1||2)-1),et=(f(c["stroke-width"])||1)*.75,tt=g(k(tt,0),1),c["stroke-width"]==null&&(et=v["stroke-width"]),c["stroke-width"]&&(d.weight=et),et&&et<1&&(tt*=et)&&(d.weight=1),d.opacity=tt,c["stroke-linejoin"]&&(d.joinstyle=c["stroke-linejoin"]||"miter"),d.miterlimit=c["stroke-miterlimit"]||8,c["stroke-linecap"]&&(d.endcap=c["stroke-linecap"]=="butt"?"flat":c["stroke-linecap"]=="square"?"square":"round"),c["stroke-dasharray"]&&(ni={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},d.dashstyle=ni[h](c["stroke-dasharray"])?ni[c["stroke-dasharray"]]:u),dt&&b.appendChild(d)),p.type=="text"){p.paper.canvas.style.display=u;var ti=p.paper.span,ii=100,wt=v.font&&v.font.match(/\d+(?:\.\d*)?(?=px)/);for(it=ti.style,v.font&&(it.font=v.font),v["font-family"]&&(it.fontFamily=v["font-family"]),v["font-weight"]&&(it.fontWeight=v["font-weight"]),v["font-style"]&&(it.fontStyle=v["font-style"]),wt=f(v["font-size"]||wt&&wt[0])||10,it.fontSize=wt*ii+"px",p.textpath.string&&(ti.innerHTML=i(p.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>")),vt=ti.getBoundingClientRect(),p.W=v.w=(vt.right-vt.left)/ii,p.H=v.h=(vt.bottom-vt.top)/ii,p.X=v.x,p.Y=v.y+p.H/2,(("x"in c)||("y"in c))&&(p.path.v=n.format("m{0},{1}l{2},{1}",e(v.x*t),e(v.y*t),e(v.x*t)+1)),ri=["x","y","text","font","font-family","font-weight","font-style","font-size"],bt=0,hi=ri.length;bt<hi;bt++)if(ri[bt]in c){p._.dirty=1;break}switch(v["text-anchor"]){case"start":p.textpath.style["v-text-align"]="left";p.bbx=p.W/2;break;case"end":p.textpath.style["v-text-align"]="right";p.bbx=-p.W/2;break;default:p.textpath.style["v-text-align"]="center";p.bbx=0}p.textpath.style["v-text-kern"]=!0}},at=function(t,r,e){var l,s,a,h,w;t.attrs=t.attrs||{};var b=t.attrs,v=Math.pow,y="linear",p=".5 .5";if((t.attrs.gradient=r,r=i(r).replace(n._radial_gradient,function(n,t,i){return y="radial",t&&i&&(t=f(t),i=f(i),v(t-.5,2)+v(i-.5,2)>.25&&(i=c.sqrt(.25-v(t-.5,2))*((i>.5)*2-1)+.5),p=t+o+i),u}),r=r.split(/\s*\-\s*/),y=="linear"&&(l=r.shift(),l=-f(l),isNaN(l)))||(s=n._parseDots(r),!s))return null;if(t=t.shape||t.node,s.length){for(t.removeChild(e),e.on=!0,e.method="none",e.color=s[0].color,e.color2=s[s.length-1].color,a=[],h=0,w=s.length;h<w;h++)s[h].offset&&a.push(s[h].offset+o+s[h].color);e.colors=a.length?a.join():"0% "+e.color;y=="radial"?(e.type="gradientTitle",e.focus="100%",e.focussize="0 0",e.focusposition=p,e.angle=0):(e.type="gradient",e.angle=(270-l)%360);t.appendChild(e)}return 1},b=function(t,i){this[0]=this.node=t;t.raphael=!0;this.id=n._oid++;t.raphaelid=this.id;this.X=0;this.Y=0;this.attrs={};this.paper=i;this.matrix=n.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};i.bottom||(i.bottom=this);this.prev=i.top;i.top&&(i.top.next=this);i.top=this;this.next=null},r=n.el;b.prototype=r;r.constructor=b;r.transform=function(r){var e,a,l;if(r==null)return this._.transform;e=this.paper._viewBoxShift;a=e?"s"+[e.scale,e.scale]+"-1-1t"+[e.dx,e.dy]:u;e&&(l=r=i(r).replace(/\.{3}|\u2026/g,this._.transform||u));n._extractTransform(this,a+r);var s=this.matrix.clone(),h=this.skew,c=this.node,f,v=~i(this.attrs.fill).indexOf("-"),d=!i(this.attrs.fill).indexOf("url(");if(s.translate(-.5,-.5),d||v||this.type=="image")if(h.matrix="1 0 0 1",h.offset="0 0",f=s.split(),v&&f.noRotation||!f.isSimple){c.style.filter=s.toFilter();var y=this.getBBox(),p=this.getBBox(1),b=y.x-p.x,k=y.y-p.y;c.coordorigin=b*-t+o+k*-t;w(this,1,1,b,k,0)}else c.style.filter=u,w(this,f.scalex,f.scaley,f.dx,f.dy,f.rotate);else c.style.filter=u,h.matrix=i(s),h.offset=s.offset();return l&&(this._.transform=l),this};r.rotate=function(n,t,r){if(this.removed)return this;if(n!=null){if(n=i(n).split(a),n.length-1&&(t=f(n[1]),r=f(n[2])),n=f(n[0]),r==null&&(t=r),t==null||r==null){var u=this.getBBox(1);t=u.x+u.width/2;r=u.y+u.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",n,t,r]])),this}};r.translate=function(n,t){return this.removed?this:(n=i(n).split(a),n.length-1&&(t=f(n[1])),n=f(n[0])||0,t=+t||0,this._.bbox&&(this._.bbox.x+=n,this._.bbox.y+=t),this.transform(this._.transform.concat([["t",n,t]])),this)};r.scale=function(n,t,r,u){if(this.removed)return this;if(n=i(n).split(a),n.length-1&&(t=f(n[1]),r=f(n[2]),u=f(n[3]),isNaN(r)&&(r=null),isNaN(u)&&(u=null)),n=f(n[0]),t==null&&(t=n),u==null&&(r=u),r==null||u==null)var e=this.getBBox(1);return r=r==null?e.x+e.width/2:r,u=u==null?e.y+e.height/2:u,this.transform(this._.transform.concat([["s",n,t,r,u]])),this._.dirtyT=1,this};r.hide=function(){return this.removed||(this.node.style.display="none"),this};r.show=function(){return this.removed||(this.node.style.display=u),this};r._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};r.remove=function(){if(!this.removed&&this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this);n.eve.unbind("raphael.*.*."+this.id);n._tear(this,this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var t in this)this[t]=typeof this[t]=="function"?n._removedFactory(t):null;this.removed=!0}};r.attr=function(t,i){var f,c,y,o,e,s,r,u,p,w;if(this.removed)return this;if(t==null){f={};for(c in this.attrs)this.attrs[h](c)&&(f[c]=this.attrs[c]);return f.gradient&&f.fill=="none"&&(f.fill=f.gradient)&&delete f.gradient,f.transform=this._.transform,f}if(i==null&&n.is(t,"string")){if(t==l&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;for(y=t.split(a),o={},e=0,s=y.length;e<s;e++)t=y[e],o[t]=t in this.attrs?this.attrs[t]:n.is(this.paper.customAttributes[t],"function")?this.paper.customAttributes[t].def:n._availableAttrs[t];return s-1?o:o[y[0]]}if(this.attrs&&i==null&&n.is(t,"array")){for(o={},e=0,s=t.length;e<s;e++)o[t[e]]=this.attr(t[e]);return o}i!=null&&(r={},r[t]=i);i==null&&n.is(t,"object")&&(r=t);for(u in r)ut("raphael.attr."+u+"."+this.id,this,r[u]);if(r){for(u in this.paper.customAttributes)if(this.paper.customAttributes[h](u)&&r[h](u)&&n.is(this.paper.customAttributes[u],"function")){p=this.paper.customAttributes[u].apply(this,[].concat(r[u]));this.attrs[u]=r[u];for(w in p)p[h](w)&&(r[w]=p[w])}r.text&&this.type=="text"&&(this.textpath.string=r.text);v(this,r)}return this};r.toFront=function(){return this.removed||this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&n._tofront(this,this.paper),this};r.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),n._toback(this,this.paper)),this)};r.insertAfter=function(t){return this.removed?this:(t.constructor==n.st.constructor&&(t=t[t.length-1]),t.node.nextSibling?t.node.parentNode.insertBefore(this.node,t.node.nextSibling):t.node.parentNode.appendChild(this.node),n._insertafter(this,t,this.paper),this)};r.insertBefore=function(t){return this.removed?this:(t.constructor==n.st.constructor&&(t=t[0]),t.node.parentNode.insertBefore(this.node,t.node),n._insertbefore(this,t,this.paper),this)};r.blur=function(t){var i=this.node.runtimeStyle,r=i.filter;r=r.replace(ot,u);+t!=0?(this.attrs.blur=t,i.filter=r+o+ft+".Blur(pixelradius="+(+t||1.5)+")",i.margin=n.format("-{0}px 0 0 -{0}px",e(+t||1.5))):(i.filter=r,i.margin=0,delete this.attrs.blur)};n._engine.path=function(n,i){var f=s("shape"),r,h,e;return f.style.cssText=tt,f.coordsize=t+o+t,f.coordorigin=i.coordorigin,r=new b(f,i),h={fill:"none",stroke:"#000"},n&&(h.path=n),r.type="path",r.path=[],r.Path=u,v(r,h),i.canvas.appendChild(f),e=s("skew"),e.on=!0,f.appendChild(e),r.skew=e,r.transform(u),r};n._engine.rect=function(t,i,r,u,f,e){var h=n._rectPath(i,r,u,f,e),o=t.path(h),s=o.attrs;return o.X=s.x=i,o.Y=s.y=r,o.W=s.width=u,o.H=s.height=f,s.r=e,s.path=h,o.type="rect",o};n._engine.ellipse=function(n,t,i,r,u){var f=n.path(),e=f.attrs;return f.X=t-r,f.Y=i-u,f.W=r*2,f.H=u*2,f.type="ellipse",v(f,{cx:t,cy:i,rx:r,ry:u}),f};n._engine.circle=function(n,t,i,r){var u=n.path(),f=u.attrs;return u.X=t-r,u.Y=i-r,u.W=u.H=r*2,u.type="circle",v(u,{cx:t,cy:i,r:r}),u};n._engine.image=function(t,i,r,u,f,e){var a=n._rectPath(r,u,f,e),o=t.path(a).attr({stroke:"none"}),s=o.attrs,c=o.node,h=c.getElementsByTagName(l)[0];return s.src=i,o.X=s.x=r,o.Y=s.y=u,o.W=s.width=f,o.H=s.height=e,s.path=a,o.type="image",h.parentNode==c&&c.removeChild(h),h.rotate=!0,h.src=i,h.type="tile",o._.fillpos=[r,u],o._.fillsize=[f,e],c.appendChild(h),w(o,1,1,0,0,0),o};n._engine.text=function(r,f,h,c){var a=s("shape"),y=s("path"),p=s("textpath"),l,k,w;return f=f||0,h=h||0,c=c||"",y.v=n.format("m{0},{1}l{2},{1}",e(f*t),e(h*t),e(f*t)+1),y.textpathok=!0,p.string=i(c),p.on=!0,a.style.cssText=tt,a.coordsize=t+o+t,a.coordorigin="0 0",l=new b(a,r),k={fill:"#000",stroke:"none",font:n._availableAttrs.font,text:c},l.shape=a,l.path=y,l.textpath=p,l.type="text",l.attrs.text=i(c),l.attrs.x=f,l.attrs.y=h,l.attrs.w=1,l.attrs.h=1,v(l,k),a.appendChild(p),a.appendChild(y),r.canvas.appendChild(a),w=s("skew"),w.on=!0,a.appendChild(w),l.skew=w,l.transform(u),l};n._engine.setSize=function(t,i){var r=this.canvas.style;return this.width=t,this.height=i,t==+t&&(t+="px"),i==+i&&(i+="px"),r.width=t,r.height=i,r.clip="rect(0 "+t+" "+i+" 0)",this._viewBox&&n._engine.setViewBox.apply(this,this._viewBox),this};n._engine.setViewBox=function(t,i,r,u,f){n.eve("raphael.setViewBox",this,this._viewBox,[t,i,r,u,f]);var e=this.width,o=this.height,c=1/k(r/e,u/o),s,h;return f&&(s=o/u,h=e/r,r*s<e&&(t-=(e-r*s)/2/s),u*h<o&&(i-=(o-u*h)/2/h)),this._viewBox=[t,i,r,u,!!f],this._viewBoxShift={dx:-t,dy:-i,scale:c},this.forEach(function(n){n.transform("...")}),this};n._engine.initWin=function(n){var t=n.document;t.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{t.namespaces.rvml||t.namespaces.add("rvml","urn:schemas-microsoft-com:vml");s=function(n){return t.createElement("<rvml:"+n+' class="rvml">')}}catch(i){s=function(n){return t.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}};n._engine.initWin(n._g.win);n._engine.create=function(){var e=n._getContainer.apply(0,arguments),f=e.container,r=e.height,u=e.width,c=e.x,l=e.y;if(!f)throw new Error("VML container not found.");var i=new n._Paper,s=i.canvas=n._g.doc.createElement("div"),h=s.style;return c=c||0,l=l||0,u=u||512,r=r||342,i.width=u,i.height=r,u==+u&&(u+="px"),r==+r&&(r+="px"),i.coordsize=t*1e3+o+t*1e3,i.coordorigin="0 0",i.span=n._g.doc.createElement("span"),i.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",s.appendChild(i.span),h.cssText=n.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",u,r),f==1?(n._g.doc.body.appendChild(s),h.left=c+"px",h.top=l+"px",h.position="absolute"):f.firstChild?f.insertBefore(s,f.firstChild):f.appendChild(s),i.renderfix=function(){},i};n.prototype.clear=function(){n.eve("raphael.clear",this);this.canvas.innerHTML=u;this.span=n._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};n.prototype.remove=function(){n.eve("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var t in this)this[t]=typeof this[t]=="function"?n._removedFactory(t):null;return!0};d=n.st;for(y in r)r[h](y)&&!d[h](y)&&(d[y]=function(n){return function(){var t=arguments;return this.forEach(function(i){i[n].apply(i,t)})}}(y))}(window.Raphael);!function(n,t){function pt(n,t){return t||""}function a(n){return"[object Function]"===lt.call(n)}function v(n){return"[object Array]"===lt.call(n)}function f(n,t){if(n)for(var i=0;i<n.length&&(!n[i]||!t(n[i],i,n));i+=1);}function tt(n,t){if(n)for(var i=n.length-1;i>-1&&(!n[i]||!t(n[i],i,n));i-=1);}function u(n,t){return ni.call(n,t)}function r(n,t){return u(n,t)&&n[t]}function s(n,t){var i;for(i in n)if(u(n,i)&&t(n[i],i))break}function it(n,t,i,r){return t&&s(t,function(t,f){!i&&u(n,f)||(!r||"object"!=typeof t||!t||v(t)||a(t)||t instanceof RegExp?n[f]=t:(n[f]||(n[f]={}),it(n[f],t,i,r)))}),n}function e(n,t){return function(){return t.apply(n,arguments)}}function rt(){return document.getElementsByTagName("script")}function ot(n){throw n;}function st(t){if(!t)return t;var i=n;return f(t.split("."),function(n){i=i[n]}),i}function l(n,t,i,r){var u=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+n);return u.requireType=n,u.requireModules=r,i&&(u.originalError=i),u}function wt(o){function vi(n){for(var i,t=0;t<n.length;t++)if(i=n[t],"."===i)n.splice(t,1),t-=1;else if(".."===i){if(0===t||1===t&&".."===n[2]||".."===n[t-1])continue;t>0&&(n.splice(t-1,2),t-=2)}}function et(n,t,i){var w,e,o,f,h,c,l,s,b,a,k,d,u=t&&t.split("/"),v=y.map,p=v&&v["*"];if(n&&(n=n.split("/"),l=n.length-1,y.nodeIdCompat&&g.test(n[l])&&(n[l]=n[l].replace(g,"")),"."===n[0].charAt(0)&&u&&(d=u.slice(0,u.length-1),n=d.concat(n)),vi(n),n=n.join("/")),i&&v&&(u||p)){o=n.split("/");n:for(f=o.length;f>0;f-=1){if(c=o.slice(0,f).join("/"),u)for(h=u.length;h>0;h-=1)if(e=r(v,u.slice(0,h).join("/")),e&&(e=r(e,c))){s=e;b=f;break n}!a&&p&&r(p,c)&&(a=r(p,c),k=f)}!s&&a&&(s=a,b=k);s&&(o.splice(0,b,s),n=o.join("/"))}return w=r(y.pkgs,n),w?w:n}function oi(n){h&&f(rt(),function(t){if(t.getAttribute("data-requiremodule")===n&&t.getAttribute("data-requirecontext")===c.contextName)return t.parentNode.removeChild(t),!0})}function pt(n){var t=r(y.paths,n);if(t&&v(t)&&t.length>1)return t.shift(),c.require.undef(n),c.makeRequire(null,{skipMap:!0})([n]),!0}function si(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function d(n,t,i,u){var a,s,l,o,f=null,h=t?t.name:null,y=n,v=!0,e="";return n||(v=!1,n="_@r"+(yi+=1)),o=si(n),f=o[0],n=o[1],f&&(f=et(f,h,u),s=r(b,f)),n&&(f?e=s&&s.normalize?s.normalize(n,function(n){return et(n,h,u)}):n.indexOf("!")===-1?et(n,h,u):n:(e=et(n,h,u),o=si(e),f=o[0],e=o[1],i=!0,a=c.nameToUrl(e))),l=!f||s||i?"":"_unnormalized"+(pi+=1),{prefix:f,name:e,parentMap:t,unnormalized:!!l,url:a,originalName:y,isDefine:v,id:(f?f+"!"+e:e)+l}}function ht(n){var i=n.id,t=r(w,i);return t||(t=w[i]=new c.Module(n)),t}function ct(n,t,i){var e=n.id,f=r(w,e);!u(b,e)||f&&!f.defineEmitComplete?(f=ht(n),f.error&&"error"===t?i(f.error):f.on(t,i)):"defined"===t&&i(b[e])}function ut(n,t){var e=n.requireModules,u=!1;t?t(n):(f(e,function(t){var i=r(w,t);i&&(i.error=n,i.events.error&&(u=!0,i.emit("error",n)))}),u||i.onError(n))}function wt(){nt.length&&(f(nt,function(n){var t=n[0];"string"==typeof t&&(c.defQueueMap[t]=!0);ft.push(n)}),nt=[])}function bt(n){delete w[n];delete ui[n]}function hi(n,t,i){var u=n.map.id;n.error?n.emit("error",n.error):(t[u]=!0,f(n.depMaps,function(u,f){var e=u.id,o=r(w,e);!o||n.depMatched[f]||i[e]||(r(t,e)?(n.defineDep(f,b[e]),n.check()):hi(o,t,i))}),i[u]=!0)}function kt(){var i,e,o=1e3*y.waitSeconds,r=o&&c.startTime+o<(new Date).getTime(),n=[],a=[],u=!1,v=!0;if(!ni){if(ni=!0,s(ui,function(t){var i=t.map,f=i.id;if(t.enabled&&(i.isDefine||a.push(t),!t.error))if(!t.inited&&r)pt(f)?(e=!0,u=!0):(n.push(f),oi(f));else if(!t.inited&&t.fetched&&i.isDefine&&(u=!0,!i.prefix))return v=!1}),r&&n.length)return i=l("timeout","Load timeout for modules: "+n,null,n),i.contextName=c.contextName,ut(i);v&&f(a,function(n){hi(n,{},{})});r&&!e||!u||!h&&!at||ri||(ri=t(function(){ri=0;kt()},50));ni=!1}}function dt(n){u(b,n[0])||ht(d(n[0],null,!0)).init(n[1],n[2])}function ci(n,t,i,r){n.detachEvent&&!yt?r&&n.detachEvent(r,t):n.removeEventListener(i,t,!1)}function li(n){var t=n.currentTarget||n.srcElement;return ci(t,c.onScriptLoad,"load","onreadystatechange"),ci(t,c.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function ai(){var n;for(wt();ft.length;){if(n=ft.shift(),null===n[0])return ut(l("mismatch","Mismatched anonymous define() module: "+n[n.length-1]));dt(n)}c.defQueueMap={}}var ni,ii,c,lt,ri,y={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},w={},ui={},fi={},ft=[],b={},vt={},ei={},yi=1,pi=1;return lt={require:function(n){return n.require?n.require:n.require=c.makeRequire(n.map)},exports:function(n){if(n.usingExports=!0,n.map.isDefine)return n.exports?b[n.map.id]=n.exports:n.exports=b[n.map.id]={}},module:function(n){return n.module?n.module:n.module={id:n.map.id,uri:n.map.url,config:function(){return r(y.config,n.map.id)||{}},exports:n.exports||(n.exports={})}}},ii=function(n){this.events=r(fi,n.id)||{};this.map=n;this.shim=r(y.shim,n.id);this.depExports=[];this.depMaps=[];this.depMatched=[];this.pluginMaps={};this.depCount=0},ii.prototype={init:function(n,t,i,r){r=r||{};this.inited||(this.factory=t,i?this.on("error",i):this.events.error&&(i=e(this,function(n){this.emit("error",n)})),this.depMaps=n&&n.slice(0),this.errback=i,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(n,t){this.depMatched[n]||(this.depMatched[n]=!0,this.depCount-=1,this.depExports[n]=t)},fetch:function(){if(!this.fetched){this.fetched=!0;c.startTime=(new Date).getTime();var n=this.map;return this.shim?void c.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],e(this,function(){return n.prefix?this.callPlugin():this.load()})):n.prefix?this.callPlugin():this.load()}},load:function(){var n=this.map.url;vt[n]||(vt[n]=!0,c.load(this.map.id,n))},check:function(){var s;if(this.enabled&&!this.enabling){var t,e,r=this.map.id,h=this.depExports,n=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(a(o)){if(this.events.error&&this.map.isDefine||i.onError!==ot)try{n=c.execCb(r,o,h,n)}catch(e){t=e}else n=c.execCb(r,o,h,n);if(this.map.isDefine&&void 0===n&&(e=this.module,e?n=e.exports:this.usingExports&&(n=this.exports)),t)return t.requireMap=this.map,t.requireModules=this.map.isDefine?[this.map.id]:null,t.requireType=this.map.isDefine?"define":"require",ut(this.error=t)}else n=o;(this.exports=n,this.map.isDefine&&!this.ignore&&(b[r]=n,i.onResourceLoad))&&(s=[],f(this.depMaps,function(n){s.push(n.normalizedMap||n)}),i.onResourceLoad(c,this.map,s));bt(r);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else u(c.defQueueMap,r)||this.fetch()}},callPlugin:function(){var n=this.map,t=n.id,f=d(n.prefix);this.depMaps.push(f);ct(f,"defined",e(this,function(f){var o,h,a,p=r(ei,this.map.id),v=this.map.name,g=this.map.parentMap?this.map.parentMap.name:null,b=c.makeRequire(n.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(f.normalize&&(v=f.normalize(v,function(n){return et(n,g,!0)})||""),h=d(n.prefix+"!"+v,this.map.parentMap),ct(h,"defined",e(this,function(n){this.map.normalizedMap=h;this.init([],function(){return n},null,{enabled:!0,ignore:!0})})),a=r(w,h.id),void(a&&(this.depMaps.push(h),this.events.error&&a.on("error",e(this,function(n){this.emit("error",n)})),a.enable()))):p?(this.map.url=c.nameToUrl(p),void this.load()):(o=e(this,function(n){this.init([],function(){return n},null,{enabled:!0})}),o.error=e(this,function(n){this.inited=!0;this.error=n;n.requireModules=[t];s(w,function(n){0===n.map.id.indexOf(t+"_unnormalized")&&bt(n.map.id)});ut(n)}),o.fromText=e(this,function(r,f){var e=n.name,s=d(e),h=k;f&&(r=f);h&&(k=!1);ht(s);u(y.config,t)&&(y.config[e]=y.config[t]);try{i.exec(r)}catch(n){return ut(l("fromtexteval","fromText eval for "+t+" failed: "+n,n,[t]))}h&&(k=!0);this.depMaps.push(s);c.completeLoad(e);b([e],o)}),void f.load(n.name,b,o,y))}));c.enable(f,this);this.pluginMaps[f.id]=f},enable:function(){ui[this.map.id]=this;this.enabled=!0;this.enabling=!0;f(this.depMaps,e(this,function(n,t){var i,f,o;if("string"==typeof n){if(n=d(n,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=n,o=r(lt,n.id))return void(this.depExports[t]=o(this));this.depCount+=1;ct(n,"defined",e(this,function(n){this.undefed||(this.defineDep(t,n),this.check())}));this.errback?ct(n,"error",e(this,this.errback)):this.events.error&&ct(n,"error",e(this,function(n){this.emit("error",n)}))}i=n.id;f=w[i];u(lt,i)||!f||f.enabled||c.enable(n,this)}));s(this.pluginMaps,e(this,function(n){var t=r(w,n.id);t&&!t.enabled&&c.enable(n,this)}));this.enabling=!1;this.check()},on:function(n,t){var i=this.events[n];i||(i=this.events[n]=[]);i.push(t)},emit:function(n,t){f(this.events[n],function(n){n(t)});"error"===n&&delete this.events[n]}},c={config:y,contextName:o,registry:w,defined:b,urlFetched:vt,defQueue:ft,defQueueMap:{},Module:ii,makeModuleMap:d,nextTick:i.nextTick,onError:ut,configure:function(n){var i,t,r;(n.baseUrl&&"/"!==n.baseUrl.charAt(n.baseUrl.length-1)&&(n.baseUrl+="/"),"string"==typeof n.urlArgs)&&(i=n.urlArgs,n.urlArgs=function(n,t){return(t.indexOf("?")===-1?"?":"&")+i});t=y.shim;r={paths:!0,bundles:!0,config:!0,map:!0};s(n,function(n,t){r[t]?(y[t]||(y[t]={}),it(y[t],n,!0,!0)):y[t]=n});n.bundles&&s(n.bundles,function(n,t){f(n,function(n){n!==t&&(ei[n]=t)})});n.shim&&(s(n.shim,function(n,i){v(n)&&(n={deps:n});!n.exports&&!n.init||n.exportsFn||(n.exportsFn=c.makeShimExports(n));t[i]=n}),y.shim=t);n.packages&&f(n.packages,function(n){var i,t;n="string"==typeof n?{name:n}:n;t=n.name;i=n.location;i&&(y.paths[t]=n.location);y.pkgs[t]=n.name+"/"+(n.main||"main").replace(gt,"").replace(g,"")});s(w,function(n,t){n.inited||n.map.unnormalized||(n.map=d(t,null,!0))});(n.deps||n.callback)&&c.require(n.deps||[],n.callback)},makeShimExports:function(t){function i(){var i;return t.init&&(i=t.init.apply(n,arguments)),i||t.exports&&st(t.exports)}return i},makeRequire:function(n,t){function f(r,e,s){var h,y,v;return t.enableBuildCallback&&e&&a(e)&&(e.__requireJsBuild=!0),"string"==typeof r?a(e)?ut(l("requireargs","Invalid require call"),s):n&&u(lt,r)?lt[r](w[n.id]):i.get?i.get(c,r,n,f):(y=d(r,n,!1,!0),h=y.id,u(b,h)?b[h]:ut(l("notloaded",'Module name "'+h+'" has not been loaded yet for context: '+o+(n?"":". Use require([])")))):(ai(),c.nextTick(function(){ai();v=ht(d(null,n));v.skipMap=t.skipMap;v.init(r,e,s,{enabled:!0});kt()}),f)}return t=t||{},it(f,{isBrowser:h,toUrl:function(t){var r,i=t.lastIndexOf("."),u=t.split("/")[0],f="."===u||".."===u;return i!==-1&&(!f||i>1)&&(r=t.substring(i,t.length),t=t.substring(0,i)),c.nameToUrl(et(t,n&&n.id,!0),r,!0)},defined:function(t){return u(b,d(t,n,!1,!0).id)},specified:function(t){return t=d(t,n,!1,!0).id,u(b,t)||u(w,t)}}),n||(f.undef=function(t){wt();var u=d(t,n,!0),i=r(w,t);i.undefed=!0;oi(t);delete b[t];delete vt[u.url];delete fi[t];tt(ft,function(n,i){n[0]===t&&ft.splice(i,1)});delete c.defQueueMap[t];i&&(i.events.defined&&(fi[t]=i.events),bt(t))}),f},enable:function(n){var t=r(w,n.id);t&&ht(n).enable()},completeLoad:function(n){var i,t,f,e=r(y.shim,n)||{},o=e.exports;for(wt();ft.length;){if(t=ft.shift(),null===t[0]){if(t[0]=n,i)break;i=!0}else t[0]===n&&(i=!0);dt(t)}if(c.defQueueMap={},f=r(w,n),!i&&!u(b,n)&&f&&!f.inited){if(!(!y.enforceDefine||o&&st(o)))return pt(n)?void 0:ut(l("nodefine","No define call for "+n,null,[n]));dt([n,e.deps||[],e.exportsFn])}kt()},nameToUrl:function(n,t,u){var h,e,o,l,f,s,a,p=r(y.pkgs,n);if(p&&(n=p),a=r(ei,n))return c.nameToUrl(a,t,u);if(i.jsExtRegExp.test(n))f=n+(t||"");else{for(h=y.paths,e=n.split("/"),o=e.length;o>0;o-=1)if(l=e.slice(0,o).join("/"),s=r(h,l)){v(s)&&(s=s[0]);e.splice(0,o,s);break}f=e.join("/");f+=t||(/^data\:|^blob\:|\?/.test(f)||u?"":".js");f=("/"===f.charAt(0)||f.match(/^[\w\+\.\-]+:/)?"":y.baseUrl)+f}return y.urlArgs&&!/^blob\:/.test(f)?f+y.urlArgs(n,f):f},load:function(n,t){i.load(c,n,t)},execCb:function(n,t,i,r){return t.apply(r,i)},onScriptLoad:function(n){if("load"===n.type||ti.test((n.currentTarget||n.srcElement).readyState)){p=null;var t=li(n);c.completeLoad(t.id)}},onScriptError:function(n){var t=li(n),i;if(!pt(t.id))return i=[],s(w,function(n,r){0!==r.indexOf("_@r")&&f(n.depMaps,function(n){if(n.id===t.id)return i.push(r),!0})}),ut(l("scripterror",'Script error for "'+t.id+(i.length?'", needed by: '+i.join(", "):'"'),n,[t.id]))}},c.require=c.makeRequire(),c}function bt(){return p&&"interactive"===p.readyState?p:(tt(rt(),function(n){if("interactive"===n.readyState)return p=n}),p)}var i,ut,y,w,ft,d,p,et,o,ht,kt=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,dt=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,g=/\.js$/,gt=/^\.\//,ct=Object.prototype,lt=ct.toString,ni=ct.hasOwnProperty,h=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),at=!h&&"undefined"!=typeof importScripts,ti=h&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,vt="_",yt="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),b={},c={},nt=[],k=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(a(requirejs))return;c=requirejs;requirejs=void 0}"undefined"==typeof require||a(require)||(c=require,require=void 0);i=requirejs=function(n,t,u,f){var o,e,s=vt;return v(n)||"string"==typeof n||(e=n,v(t)?(n=t,t=u,u=f):n=[]),e&&e.context&&(s=e.context),o=r(b,s),o||(o=b[s]=i.s.newContext(s)),e&&o.configure(e),o.require(n,t,u)};i.config=function(n){return i(n)};i.nextTick="undefined"!=typeof t?function(n){t(n,4)}:function(n){n()};require||(require=i);i.version="2.3.2";i.jsExtRegExp=/^\/|:|\?|\.js$/;i.isBrowser=h;ut=i.s={contexts:b,newContext:wt};i({});f(["toUrl","undef","defined","specified"],function(n){i[n]=function(){var t=b[vt];return t.require[n].apply(t,arguments)}});h&&(y=ut.head=document.getElementsByTagName("head")[0],w=document.getElementsByTagName("base")[0],w&&(y=ut.head=w.parentNode));i.onError=ot;i.createNode=function(n){var t=n.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=n.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t};i.load=function(n,r,u){var f,e=n&&n.config||{};if(h)return f=i.createNode(e,r,u),f.setAttribute("data-requirecontext",n.contextName),f.setAttribute("data-requiremodule",r),!f.attachEvent||f.attachEvent.toString&&f.attachEvent.toString().indexOf("[native code")<0||yt?(f.addEventListener("load",n.onScriptLoad,!1),f.addEventListener("error",n.onScriptError,!1)):(k=!0,f.attachEvent("onreadystatechange",n.onScriptLoad)),f.src=u,e.onNodeCreated&&e.onNodeCreated(f,e,r,u),et=f,w?y.insertBefore(f,w):y.appendChild(f),et=null,f;if(at)try{t(function(){},0);importScripts(u);n.completeLoad(r)}catch(f){n.onError(l("importscripts","importScripts failed for "+r+" at "+u,f,[r]))}};h&&!c.skipDataMain&&tt(rt(),function(n){if(y||(y=n.parentNode),ft=n.getAttribute("data-main"))return o=ft,c.baseUrl||o.indexOf("!")!==-1||(d=o.split("/"),o=d.pop(),ht=d.length?d.join("/")+"/":"./",c.baseUrl=ht),o=o.replace(g,""),i.jsExtRegExp.test(o)&&(o=ft),c.deps=c.deps?c.deps.concat(o):[o],!0});define=function(n,t,i){var r,u;"string"!=typeof n&&(i=t,t=n,n=null);v(t)||(i=t,t=null);!t&&a(i)&&(t=[],i.length&&(i.toString().replace(kt,pt).replace(dt,function(n,i){t.push(i)}),t=(1===i.length?["require"]:["require","exports","module"]).concat(t)));k&&(r=et||bt(),r&&(n||(n=r.getAttribute("data-requiremodule")),u=b[r.getAttribute("data-requirecontext")]));u?(u.defQueue.push([n,t,i]),u.defQueueMap[n]=!0):nt.push([n,t,i])};define.amd={jQuery:!0};i.exec=function(text){return eval(text)};i(c)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout);require.config({baseUrl:"/assets/website/js",paths:{jqueryInternal:"Lib/jquery-3.6.1.min",jqueryNoConflict:"Lib/jquery.no-conflict",knockout:"Lib/knockout-3.5.1","ko-mapping":"Lib/knockout.mapping-latest",linq:"Lib/linq.min",bootstrap:"../Bootstrap/js/bootstrap.min",tagging:"Lib/Tagging",hasher:"Lib/hasher.min",signals:"Lib/signals.min","jquery.redirect":"Lib/jquery.redirect",utils:"Common/Utils","help-modal":"Common/HelpModal"},map:{tagging:{jquery:"jquery.redirect"},"*":{jquery:"jqueryNoConflict"}},shim:{linq:{deps:[],exports:"Enumerable"}}});require.onError=function(n){console.log(n)};require(["jquery","tagging"],function(n,t){window.tagging=t;n(function(){t.initializeDom()})});window.onerror=function(n,t,i,r,u){var f=r?"\ncolumn: "+r:"";return f+=u?"\nerror: "+u:"",event.preventDefault(),HandleError(n),!0};var callbacks=new CallBackManager,optanonEvent="trackOptanonEvent",optanonActions=["Banner Accept Cookies","Preferences Save Settings","Preferences Allow All"]