123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- (function(){// During the rave-canvas.js build, this file is added to the top.
- // Create an inner self-executing function that will be run with the global scope
- // On browsers, this is 'window'. Everywhere else should use 'this' if available.
- // Need to run eval('this') "indirectly" by having eval returned by (1,eval). OBVIOUSLY :)
- var _window = (1, eval)('this');
- (function (global, factory) {
- // dynamically determine how 'rave' variable should be loaded depeneding on loader type
- var _rave;
- if (typeof module === "object" && typeof module.exports === "object" && typeof require == "function") {
- // CommonJS/node.js
- module.exports = factory(global,require("rave"));
- } else if (typeof define === "function" && define.amd) {
- // AMD
- define(['rave'], function(rave) {
- return factory(global,rave);
- });
- } else {
- // probably loading via script tag. run as is, setting stuff on rave
- factory(global,global['rave']);
- }
- }(_window, function (_global, _rave) {function gb(){return function(ob){return ob}}function q(){return function(){}}function w(ob){return function(U){this[ob]=U}}function x(ob){return function(){return this[ob]}}function A(ob){return function(){return ob}}
- function a(b,
- c,d,e,f,g){var h=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix();h.a=b||1;h.b=c||0;h.c=d||0;h.d=e||1;h.e=f||0;h.f=g||0;return{matrix:h,multiply:function(b){b=this.matrix.multiply(b.matrix);return new a(b.a,b.b,b.c,b.d,b.e,b.f)},identity:function(){this.matrix.a=1;this.matrix.b=0;this.matrix.c=0;this.matrix.d=1;this.matrix.e=0;this.matrix.f=0}}}function b(a,b,c){this.id=a;this.name=b;this.Ag=c}function c(a){if(!a)return null;var b={};k.uf(b,a);b.preventDefault=function(){this.defaultPrevented=
- !0};b.stopImmediatePropagation=function(){this.immediatePropagationStopped=!0};b.stopPropagation=function(){this.propagationStopped=!0};return b}function d(a,b){b.defaultPrevented&&a.preventDefault();b.immediatePropagationStopped&&a.stopImmediatePropagation();b.propagationStopped&&a.stopPropagation()}var e="undefined"!==typeof _global?_global:(0,eval)("this"),f="undefined"!==typeof _rave?_rave:e.rave,g={},h=f._.com_ibm_rave_core_nativeImpl_Declare,k=f._.com_ibm_rave_core_nativeImpl_Object,l=f._.com_ibm_rave_core_internal_nativeImpl_Lang,
- n=f._.com_ibm_rave_core_geom_PointStruct,t=f.internal.RectStruct,p=f.internal.RaveRect,s=f.internal.MatrixUtil,u=f._.com_ibm_rave_core_scene_SceneNodeType,v=f._.com_ibm_rave_core_internal_css_CSSUtil,z=f._.com_ibm_rave_core_internal_css_CSSTransformParser,B=f._.com_ibm_rave_core_internal_css_om_CSSStyleDeclarationImpl,F=f._.com_ibm_rave_core_internal_css_CSSParser,L=f.internal.RaveContextManager,J=f.internal.RaveOperationalMode,P=f._.rave_document,M={remove:function(a,b){var c=a.indexOf(b);return 0<=
- c?(a.splice(c,1),!0):!1}},E={SD:function(a){return 27>=a},x:0,y:1,width:2,height:3,x1:4,x2:5,r:6,y1:7,y2:8,cx:9,cy:10,transform:11,rx:12,ry:13,YL:14,dx:15,dy:16,offset:17,fx:18,fy:19,font:20,vK:21,wK:22,xK:23,zK:24,yK:25,display:26,yN:27,FJ:27,fill:28,stroke:29,opacity:30,vN:31,uN:32,tK:33,pN:34,qN:35,rN:36,sN:37,tN:38,zN:39,nN:40,oN:41,wM:42,cursor:43,yA:44,visibility:45,AN:46,hN:47,F:"x y width height x1 x2 r y1 y2 cx cy transform rx ry line-height dx dy offset fx fy font font-family font-size font-style font-weight font-variant display text-anchor fill stroke opacity stroke-width stroke-opacity fill-opacity stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit text-decoration stop-color stop-opacity pointer-events cursor clip-path visibility text-shadow shape-rendering".split(" ")},
- Q={Xn:function(a,b,c){a=$.INSTANCE.jo(a);if(null!=b&&a){var d=a.jf();if(d&&(b=d.Ko(1E3,b,a.Oc()))){a=0;for(d=c.length;a<d;++a){var e=c[a];if(b.rave_getDrawType()==e)return b}}}return null}},R={ELLIPSE:"ellipse",RECT:"rect",CIRCLE:"circle",LINE:"line",TEXT:"text",TEXTPATH:"textPath",uJ:"g",PATH:"path",POLYGON:"polygon",POLYLINE:"polyline",DEFS:"defs",LINEARGRADIENT:"linearGradient",STOP:"stop",RADIALGRADIENT:"radialGradient",IMAGE:"image",CLIP_PATH:"clipPath",TJ:"stop-color",OJ:"offset",VJ:"tspan"},
- G={tH:function(a,b,c,d){var e=0,f=0,g,h=0;d?(g=d.l,h=d.ba):g=b[0];for(;1>f;)f=S.DH(a,g),1==f&&(e=S.DA(a),e={l:g-e,ba:h}),a=S.sH(a,f),h%2||c.push(a[0]),a=a[1],++h,g=b[h%b.length];return e},Xc:function(a,b,c,d,e,f){var g=4===e.length?"quadraticCurveTo":"bezierCurveTo",h=[];b=G.tH([c,d].concat(e),b,h,f);for(c=0;c<h.length;++c)d=h[c],a.moveTo(d[0],d[1]),a[g].apply(a,d.slice(2));return b},Yc:function(a,b,c,d,e,f,g){var h=0,k=0,l=0,m=S.distance(c,d,e,f),n=0,p=c,r=d,s;g?(l=g.l,n=g.ba):l+=b[0];for(;0<Math.abs(1-
- k);)l>m&&(h={l:l-m,ba:n},l=m),k=l/m,g=c+(e-c)*k,s=d+(f-d)*k,n++%2||(a.moveTo(p,r),a.lineTo(g,s)),p=g,r=s,l+=b[n%b.length];!h&&n&&(h={l:b[n%b.length],ba:n});return h}},S=function(){function a(b,c){var d=1-c,e=d*d,nb=e*d,f=c*c,g=f*c,ab=b[0],h=b[1],yb=b[2],k=b[3],l=b[4],rd=b[5],m=b[6],sd=b[7],n=nb*ab+3*e*c*yb+3*d*f*l+g*m,nb=nb*h+3*e*c*k+3*d*f*rd+g*sd;return[[ab,h,d*ab+c*yb,d*h+c*k,e*ab+2*d*c*yb+f*l,e*h+2*d*c*k+f*rd,n,nb],[n,nb,e*yb+2*d*c*l+f*m,e*k+2*d*c*rd+f*sd,d*l+c*m,d*rd+c*sd,m,sd]]}function b(a,
- c){var d=1-c,e=d*d,nb=c*c,f=a[0],g=a[1],ab=a[2],h=a[3],yb=a[4],k=a[5],l=e*f+2*d*c*ab+nb*yb,e=e*g+2*d*c*h+nb*k;return[[f,g,d*f+c*ab,d*g+c*h,l,e],[l,e,d*ab+c*yb,d*h+c*k,yb,k]]}var c={DH:function(a,c){function d(b,f){for(var ab=0,l=0;l<b.length-2;l+=2)ab+=e(b[l],b[l+1],b[l+2],b[l+3]);l=g?e(a[0],a[1],a[4],a[5]):e(a[0],a[1],a[6],a[7]);ab-l>f||h+ab>c+f?(++yb,ab=k(b,0.5),d(ab[0],f),Math.abs(h-c)<=f||d(ab[1],f)):(h+=ab,nb+=1/(1<<yb))}var nb=0,g=6==a.length,h=0,yb=0,k=g?b:f;c&&d(a,0.5);return nb}},d=c.DA=
- function(c){for(var f=6==c.length,g=0,h=0;h<c.length-2;h+=2)g+=e(c[h],c[h+1],c[h+2],c[h+3]);h=f?e(c[0],c[1],c[4],c[5]):e(c[0],c[1],c[6],c[7]);0.1<g-h&&(c=f?b(c,0.5):a(c,0.5),g=d(c[0],f),g+=d(c[1],f));return g},e=c.distance=function(a,b,c,d){return Math.sqrt((c-a)*(c-a)+(d-b)*(d-b))},f=c.sH=function(c,d){return 6==c.length?b(c,d):a(c,d)};return c}(),K=h({constructor:function(a){this.R=[];this.D=new W(a)},YC:function(){var a=L.INSTANCE.getRaveContext().getData("QUERY_PARSER_REG_EXP_KEY");a||(a=new K.ay,
- L.INSTANCE.getRaveContext().putData("QUERY_PARSER_REG_EXP_KEY",a));return a},St:function(){this.D.kk();if(this.D.sf.apply(this.D,K.xn))this.R.push(new I.ny),this.wn(this.D.Oh());else if(!this.xs())return null;for(;!this.D.isEmpty();){var a=this.D.kk();if(this.D.sf.apply(this.D,K.xn))this.wn(this.D.Oh());else if(a)this.wn(32);else if(!this.xs())return null}return 1==this.R.length?this.R[0]:new N.Le(this.R)},wn:function(a){this.D.kk();var b=this.FA(),c,d=K.Ng(b),e=!1;1==this.R.length?(b=c=this.R[0],
- k.isInstanceOf(b,N.Pm)&&44!=a&&(c=c.MG(),e=!0)):b=c=new N.Le(this.R);this.R=[];if(62==a)c=new N.Le([d,new I.kx(c)]);else if(32==a)c=new N.Le([d,new I.Tx(c)]);else if(43==a)c=new N.Le([d,new I.lx(c)]);else if(126==a)c=new N.Le([d,new I.Yx(c)]);else if(44==a)k.isInstanceOf(c,N.Pm)?a=c:(a=new N.Pm(null),a.add(c)),a.add(d),c=a;else return;e?b.GG(c):b=c;this.R.push(b)},FA:function(){for(var a="";!this.D.isEmpty();)if(this.D.ri(40))a+="("+this.D.Ze(40,41)+")";else if(this.D.ri(91))a+="["+this.D.Ze(91,93)+
- "]";else if(this.D.sf.apply(this.D,K.xn))break;else a+=String.fromCharCode(this.D.Oh());return a},xs:function(){if(this.D.Jo(46))this.Uz();else if(this.D.Jo(35))this.Vz();else if(this.D.Jo(42))this.yz();else if(this.D.ri(91))this.Tz();else if(this.D.Gg())this.Wz();else if(this.D.ri(58))if(this.D.Ea(":lt("))this.zD();else if(this.D.Ea(":gt("))this.yD();else if(this.D.Ea(":eq("))this.xD();else if(this.D.matches(":has("))this.has();else if(this.D.matches(":contains("))this.contains(!1);else if(this.D.matches(":containsOwn("))this.contains(!0);
- else if(this.D.matches(":matches("))this.matches(!1);else if(this.D.matches(":matchesOwn("))this.matches(!0);else if(this.D.matches(":not("))this.xF();else if(this.D.Ea(":nth-child("))this.nk(!1,!1);else if(this.D.Ea(":nth-last-child("))this.nk(!0,!1);else if(this.D.Ea(":nth-of-type("))this.nk(!1,!0);else if(this.D.Ea(":nth-last-of-type("))this.nk(!0,!0);else if(this.D.Ea(":first-child"))this.R.push(new y.tx);else if(this.D.Ea(":last-child"))this.R.push(new y.ux);else if(this.D.Ea(":first-of-type"))this.R.push(new y.Dq(0,
- 1));else if(this.D.Ea(":last-of-type"))this.R.push(new y.Cq(0,1));else if(this.D.Ea(":only-child"))this.R.push(new y.xx);else if(this.D.Ea(":only-of-type"))this.R.push(new y.yx);else if(this.D.Ea(":empty"))this.R.push(new y.sx);else if(this.D.Ea(":root"))this.R.push(new y.zx);else return!1;else return!1;return!0},Vz:function(){var a=this.D.Tr();this.R.push(new y.ix(a))},Uz:function(){var a=this.D.Tr();this.R.push(new y.rw(a.trim()))},Wz:function(){var a=this.D.EA();0<=a.indexOf("|")&&(a=a.replace("|",
- ":"));this.R.push(new y.Ny(a.trim()))},Tz:function(){var a=new W(this.D.Ze(91,93)),b=a.HA.apply(a,K.dw);a.kk();a.isEmpty()?this.R.push(new y.cw(b)):a.Ea("\x3d")?this.R.push(new y.ew(b,a.Ef())):a.Ea("!\x3d")?this.R.push(new y.iw(b,a.Ef())):a.Ea("^\x3d")?this.R.push(new y.jw(b,a.Ef())):a.Ea("$\x3d")?this.R.push(new y.gw(b,a.Ef())):a.Ea("*\x3d")?this.R.push(new y.fw(b,a.Ef())):a.Ea("~\x3d")&&this.R.push(new y.hw(b,RegExp(a.Ef(),"i")))},yz:function(){this.R.push(new y.tq)},zD:function(){this.R.push(new y.qx(this.zn()))},
- yD:function(){this.R.push(new y.nx(this.zn()))},xD:function(){this.R.push(new y.mx(this.zn()))},nk:function(a,b){var c=this.D.Er(")").trim().toLowerCase(),d=this.YC(),e=d.Jx.exec(c),d=d.Kx.exec(c);if("odd"==c)c=2,e=1;else if("even"==c)c=2,e=0;else if(e&&0<e.length)c=null!=e[3]?~~e[1].replace("^\\+",""):1,e=null!=e[4]?~~e[4].replace("^\\+",""):1;else if(d&&0<d.length)c=0,e=~~d[0].replace("^\\+","");else return;b?a?this.R.push(new y.Cq(c,e)):this.R.push(new y.Dq(c,e)):a?this.R.push(new y.wx(c,e)):this.R.push(new y.vx(c,
- e))},zn:function(){var a=this.D.Er(")").trim();return parseInt(a)},has:function(){this.D.Ph(":has");var a=this.D.Ze(40,41);this.R.push(new I.bx(K.Ng(a)))},contains:function(a){this.D.Ph(a?":containsOwn":":contains");var b=W.unescape(this.D.Ze(40,41));a?this.R.push(new y.vw(b)):this.R.push(new y.ww(b))},matches:function(a){this.D.Ph(a?":matchesOwn":":matches");var b=this.D.Ze(40,41);a?this.R.push(new y.Hx(RegExp(b,""))):this.R.push(new y.Gx(RegExp(b,"")))},xF:function(){this.D.Ph(":not");var a=this.D.Ze(40,
- 41);this.R.push(new I.Nx(K.Ng(a)))},parse:function(){return this.St()}});K.Ng=function(a){return(new K(a)).St()};K.parse=function(a){return K.Ng(a)};K.ay=h({constructor:function(){this.Jx=/((\+|-)?(\d+)?)n(\s*(\+|-)?\s*\d*)?/i;this.Kx=/(\+|-)?(\d+)/}});K.xn=[44,62,43,126,32];K.dw="\x3d !\x3d ^\x3d $\x3d *\x3d ~\x3d".split(" ");var y=h({pg:A(null)});y.Ny=h(y,{constructor:w("tagName"),matches:function(a,b){return a==b?!1:b.rave_getName()==this.tagName}});y.ix=h(y,{constructor:w("id"),matches:function(a,
- b){return this.id==b.getId()},pg:function(a,b){if(!a)return null;var c=a.Ko(1E3,this.id,b);return!c?null:[c]}});y.rw=h(y,{constructor:w("className"),pg:A(null),matches:function(a,b){return-1<b.Is().indexOf(this.className)}});y.$f=h(y,{hl:!1,jt:!1,constructor:function(a,b){var c=b;this.key=a.trim().toLowerCase();null!=c&&(c.match("^[\"'].*")&&c.match(".*[\"']$")&&(c=c.substring(1,c.length-1)),this.value=c.trim());"id"==this.key?this.hl=!0:"class"==this.key&&(this.jt=!0)},pg:A(null)});y.cw=h(y.$f,{matches:function(a,
- b){return a==b?!1:this.hl?null!=b.getId():null!=b.getAttribute(this.key)},pg:A(null)});y.ew=h(y.$f,{pg:function(a,b){if(!a)return null;if(this.hl){var c=a.Ko(1E3,this.value,b);return!c?null:[c]}return this.jt?a.AE(1001,this.value,b):null},matches:function(a,b){if(a==b)return!1;if(this.hl)return this.value==b.getId();var c=null==b.getAttribute(this.key)?"":""+b.getAttribute(this.key);return this.value.toUpperCase()==c.toUpperCase()}});y.iw=h(y.$f,{matches:function(a,b){var c=null==b.getAttribute(this.key)?
- "":""+b.getAttribute(this.key);return this.value.toUpperCase()!=c.toUpperCase()}});y.jw=h(y.$f,{matches:function(a,b){var c=b.getAttribute(this.key);return null==c?!1:(""+c).match("^"+this.value+".*")}});y.gw=h(y.$f,{matches:function(a,b){var c=b.getAttribute(this.key);return null==c?!1:(""+c).match(".*"+this.value+"$")}});y.fw=h(y.$f,{matches:function(a,b){var c=b.getAttribute(this.key);return null==c?!1:0<=(""+c).indexOf(this.value)}});y.hw=h(y,{constructor:function(a,b){this.key=a.trim().toLowerCase();
- this.pattern=b},matches:function(a,b){return null!=b.getAttribute(this.key)&&this.pattern.test(""+b.getAttribute(this.key))}});y.tq=h(y,{matches:function(a,b){return b!=a}});y.Mm=h(y,{index:0,constructor:w("index")});y.qx=h(y.Mm,{matches:function(a,b){return b.qe()<this.index}});y.nx=h(y.Mm,{matches:function(a,b){return b.qe()>this.index}});y.mx=h(y.Mm,{matches:function(a,b){return b.qe()==this.index}});y.ux=h(y,{matches:function(a,b){var c=b.rave_getParentNode();return b!=a&&c&&b.qe()==c.rave_getChildNodes().length-
- 1}});y.ij=h(y,{a:0,b:0,constructor:function(a,b){this.a=a;this.b=b},matches:function(a,b){if(!b.rave_getParentNode())return!1;var c=this.$j(a,b);return 0==this.a?c==this.b:0<=(c-this.b)*this.a&&0==(c-this.b)%this.a}});y.Cq=h(y.ij,{$j:function(a,b){for(var c=0,d=b.rave_getParentNode().rave_getChildNodes(),e=b.qe();e<d.length;++e)d[e].rave_getName()==b.rave_getName()&&c++;return c}});y.Dq=h(y.ij,{$j:function(a,b){for(var c=0,d=b.rave_getParentNode().rave_getChildNodes(),e=0;e<d.length&&!(d[e].rave_getName()==
- b.rave_getName()&&c++,d[e]==b);++e);return c}});y.vx=h(y.ij,{$j:function(a,b){return b.qe()+1}});y.wx=h(y.ij,{$j:function(a,b){return b.rave_getParentNode().rave_getChildNodes().length-b.qe()}});y.tx=h(y,{matches:function(a,b){return b.rave_getParentNode()&&0==b.qe()}});y.zx=h(y,{matches:function(a,b){return!b.rave_getParentNode()}});y.xx=h(y,{matches:function(a,b){return b.rave_getParentNode()&&!b.rave_getPreviousSibling()&&!b.rave_getNextSibling()}});y.yx=h(y,{matches:function(a,b){var c=b.rave_getParentNode();
- if(!c)return!1;for(var d=0,c=c.rave_getChildNodes(),e=0;e<c.length;++e)c[e].rave_getName()==b.rave_getName()&&d++;return 1==d}});y.sx=h(y,{matches:function(a,b){return!b.rave_hasChildNodes()}});y.ww=h(y,{constructor:function(a){this.xp=a.toLowerCase()},matches:function(a,b){if(a==b)return!1;if(0<=b.rave_getText().toLowerCase().indexOf(this.xp))return!0;for(var c=0,d=b.rave_getChildNodes(),e=d.length;c<e;++c)if(this.matches(b,d[c]))return!0;return!1}});y.vw=h(y,{constructor:function(a){this.xp=a.toLowerCase()},
- matches:function(a,b){return 0<=b.rave_getText().toLowerCase().indexOf(this.xp)}});y.Gx=h(y,{constructor:w("pattern"),matches:function(a,b){if(this.pattern.test(b.rave_getText()))return!0;for(var c=0,d=b.rave_getChildNodes(),e=d.length;c<e;++c)if(this.matches(b,d[c]))return!0;return!1}});y.Hx=h(y,{constructor:w("pattern"),matches:function(a,b){return this.pattern.test(b.rave_getText())}});var I=h(y,{});I.ny=h(y,{matches:function(a,b){return a==b}});I.bx=h(I,{constructor:w("mb"),matches:function(a,
- b){for(var c=0,d=V.Pr(new y.tq,b,null),e=d.length;c<e;++c){var f=d[c];if(f!=b&&this.mb.matches(a,f))return!0}return!1}});I.Nx=h(I,{constructor:w("mb"),matches:function(a,b){return!this.mb.matches(a,b)}});I.Tx=h(I,{constructor:w("mb"),matches:function(a,b){if(a==b)return!1;for(var c=b.rave_getParentNode();c;){if(this.mb.matches(a,c))return!0;c=c.rave_getParentNode()}return!1}});I.kx=h(I,{constructor:w("mb"),matches:function(a,b){if(a==b)return!1;var c=b.rave_getParentNode();return c&&this.mb.matches(a,
- c)}});I.Yx=h(I,{constructor:w("mb"),matches:function(a,b){if(a==b)return!1;for(var c=b.rave_getPreviousSibling();c;){if(this.mb.matches(a,c))return!0;c=c.rave_getPreviousSibling()}return!1}});I.lx=h(I,{constructor:w("mb"),matches:function(a,b){if(a==b)return!1;var c=b.rave_getPreviousSibling();return c&&this.mb.matches(a,c)}});var aa=h({constructor:w("pI"),gI:function(a){a&&this.visit(a,0)},visit:function(a,b){if(a){this.pI.head(a,b);for(var c=0,d=a.rave_getChildNodes(),e=d.length;c<e;++c)this.visit(d[c],
- b+1)}}}),V=h({});V.Pr=function(a,b,c){var d=[];if(a)if(c=a.pg(c,b)){a=0;for(b=c.length;a<b;++a)d.push(c[a])}else(new aa(new V.$v(b,d,a))).gI(b);return d};V.$v=h({constructor:function(a,b,c){this.root=a;this.elements=b;this.mb=c},head:function(a){this.mb&&this.mb.matches(this.root,a)&&this.elements.push(a)},xN:q()});var N=h(y,{xf:0,constructor:function(a){this.rd=[];if(a)for(var b=0,c=a.length;b<c;++b)this.rd.push(a[b]);this.Np()},MG:function(){return 0<this.xf?this.rd[this.xf-1]:null},GG:function(a){this.rd[this.xf-
- 1]=a},Np:function(){this.xf=this.rd.length}});N.Le=h(N,{matches:function(a,b){for(var c=0;c<this.xf;++c)if(!this.rd[c].matches(a,b))return!1;return!0}});N.Pm=h(N,{constructor:function(a){if(1<this.xf)this.rd.push(new N.Le(a));else if(a)for(var b=0,c=a.length;b<c;++b)this.rd.push(a[b]);this.Np()},add:function(a){this.rd.push(a);this.Np()},matches:function(a,b){for(var c=0;c<this.xf;++c)if(this.rd[c].matches(a,b))return!0;return!1}});var W=h({T:0,constructor:w("Ja"),isEmpty:function(){return 0==this.AG()},
- AG:function(){return this.Ja.length-this.T},matches:function(a){return Z.Iu(this.Ja,!0,this.T,a,a.length)},cM:function(a){return Z.wH(this.Ja,a,this.T)},BE:function(a){if(null!==a||1<arguments.length)a=Array.prototype.slice.call(arguments);for(var b=0,c=a.length;b<c;++b)if(this.matches(a[b]))return!0;return!1},sf:function(a){if(null!==a||1<arguments.length)a=Array.prototype.slice.call(arguments);for(var b=this.Ja.charCodeAt(this.T),c=0;c<a.length;++c)if(a[c]==b)return!0;return!1},ri:function(a){return this.Ja.charCodeAt(this.T)==
- a},Ea:function(a){return this.matches(a)?(this.T+=a.length,!0):!1},Jo:function(a){return this.ri(a)?(this.T++,!0):!1},CE:function(){return!this.isEmpty()&&Z.il(this.Ja.charCodeAt(this.T))},Gg:function(){var a=this.Ja.charCodeAt(this.T);return 97<=a&&122>=a||65<=a&&90>=a||48<=a&&57>=a},Oh:function(){return this.Ja.charCodeAt(this.T++)},Ph:function(a){this.T+=a.length},GA:function(a){a=this.Ja.indexOf(a,this.T);return-1!=a?(a=this.Ja.substring(this.T,a),this.T+=a.length,a):this.Ef()},HA:function(a){if(null!==
- a||1<arguments.length)a=Array.prototype.slice.call(arguments);for(var b=this.T;!this.isEmpty()&&!this.BE.apply(this,a);)this.T++;return this.Ja.substring(b,this.T)},Er:function(a){var b=this.GA(a);this.Ea(a);return b},Ze:function(a,b){var c=-1,d=-1,e=0,f=0;do{if(this.isEmpty())break;var g=this.Oh();if(0==f||92!=f)g==a?(e++,-1==c&&(c=this.T)):g==b&&e--;0<e&&0!=f&&(d=this.T);f=g}while(0<e);return 0<=d?this.Ja.substring(c,d):""},kk:function(){for(var a=!1;this.CE();)this.T++,a=!0;return a},kK:function(){for(var a=
- this.T;this.Gg();)this.T++;return this.Ja.substring(a,this.T)},jK:function(){for(var a=this.T;!this.isEmpty()&&(this.Gg()||this.sf(58,95,45));)this.T++;return this.Ja.substring(a,this.T)},EA:function(){for(var a=this.T;!this.isEmpty()&&(this.Gg()||this.sf(124,95,45));)this.T++;return this.Ja.substring(a,this.T)},Tr:function(){for(var a=this.T;!this.isEmpty()&&(this.Gg()||this.sf(45,95));)this.T++;return this.Ja.substring(a,this.T)},iK:function(){for(var a=this.T;!this.isEmpty()&&(this.Gg()||this.sf(45,
- 95,58));)this.T++;return this.Ja.substring(a,this.T)},Ef:function(){var a=this.Ja.substring(this.T,this.Ja.length);this.T=this.Ja.length;return a},hK:function(a){return 0==arguments.length?this.Oh():this.Ph(a)}});W.AL=function(){var a=L.INSTANCE.getRaveContext().getData("TOKEN_QUEUE_REG_EXP_KEY");a||(a=/[A-Z\d]/i,L.INSTANCE.getRaveContext().putData("TOKEN_QUEUE_REG_EXP_KEY",a));return a};W.unescape=function(a){for(var b="",c=0,d=0;d<a.length;++d){var e=a.charCodeAt(d);92==e?0!=c&&92==c&&(b+=String.fromCharCode(e)):
- b+=String.fromCharCode(e);c=e}return b.valueOf()};W.ESC=92;W.NJ=0;var Z=h({});Z.il=function(a){return 32==a||9==a||10==a||12==a||13==a};Z.Iu=function(a,b,c,d,e){if(a.length<c+e||a.length<0+e)return!1;a=a.substring(c,c+e);d=d.substring(0,0+e);return b?a.toLowerCase()==d.toLowerCase():a==d};Z.wH=function(a,b,c){return Z.Iu(a,!1,0,b,c)};Z.padding="; ; ; ; ; ; ; ; ; ; ".split(";");var $=h({constructor:function(){this.Gd=[]},vL:x("Gd"),jo:function(a){for(var b=
- 0,c=this.Gd,d=c.length;b<d;++b){var e=c[b];if(a.rave_getOwner()==e.Oc().rave_getOwner())return e}return null},sz:function(a){this.Gd.push(a)},DM:function(a){a=this.Gd.indexOf(a);0<=a&&this.Gd.splice(a,1)},EG:function(a){for(var b=-1,c=!1,d=0,e=this.Gd,f=e.length;d<f;++d){var g=e[d];b++;if(a==g.Oc().rave_getOwner()){c=!0;break}}c&&this.Gd.splice(b,1)}});$.INSTANCE=new $;var da=h({constructor:function(a,b,c){this.mb=K.Ng(a.trim());this.root=b;this.Jh=c},selectAll:function(){return V.Pr(this.mb,this.root,
- this.Jh)}});da.select=function(a,b,c){return(new da(a,b,c)).selectAll()};var ea=h({matches:function(a,b){if(null!=b){var c=K.Ng(b);if(c)return c.matches(a.rave_getOwner(),a)}return!1},fG:function(a,b){if(null!=a){var c=this.mp(a,b);if(0<c.length)return c[0]}return null},gG:function(a){return null!=a&&(a=this.ku(a))&&0<a.length?a[0]:null},ku:function(a){return this.mp(a,null)},mp:function(a,b){var c=[];null!=a&&ea.ps(c,a,b,":root"==a);return c},querySelector:function(a,b){return 1==arguments.length?
- this.gG(a):this.fG(a,b)},querySelectorAll:function(a,b){return 1==arguments.length?this.ku(a):this.mp(a,b)}});ea.ps=function(a,b,c,d){if(c){var e=$.INSTANCE.jo(c),f=null;if(e){f=e.jf();c==e.Oc().rave_getOwner()&&(c=e.Oc());e=0;b=da.select(b,c,f);for(f=b.length;e<f;++e){var g=b[e];!1==d&&g==c||a.push(g)}}}else{d=0;c=$.INSTANCE.Gd;for(e=c.length;d<e;++d)ea.ps(a,b,c[d].Oc(),!0)}};var ha=h(ea,{constructor:w("Zy"),matches:function(a,b){return 0<=this.Zy.querySelectorAll(b,null).indexOf(a)}}),ka=function(){return h({constructor:w("tj"),
- matches:function(a,b){return this.tj.matches(a,b)||0<=this.querySelectorAll(b,null).indexOf(a)},querySelector:function(a,b){if(a){var c=this.tj.querySelector(a,b);if(c)return c;if((c=this.querySelectorAll(a,b))&&c.length)return c[0]}return null},querySelectorAll:function(a,b){if(!a)return[];b=b||P;var c=this.tj.querySelectorAll(a,b);c.concat||(c=Array.prototype.slice.call(c,0));for(var d=$.INSTANCE.Gd,e=0;e<d.length;e++){var f=da.select(a,d[e].Oc(),d[e].jf());f&&f.length&&(c=c.concat(f))}f=F.fv(a);
- for(e=0;e<f.length;e++){var g=F.fs(f[e]);if(1<g.length)for(var h=[];1<g.length;){h.unshift(g.pop());var k=h.join(" "),l=this.tj.querySelectorAll(g.join(" "),b);if(l&&l.length)for(e=0;e<d.length;e++)for(var m=d[e],n=0;n<l.length;n++){var p=l[n],r=m.Oc().rave_getOwner();do if(r==p)break;while(r=r.parentNode);if(r){if((m=da.select(k,m.Oc(),m.jf()))&&m.length)for(n=0;n<m.length;n++)-1==c.indexOf(m[n])&&c.push(m[n]);break}}}}return c}})}(),la=g.SceneItemFactory=h({_$functionClassMethod:function(){return function(a,
- b,c){return"rect"==b?new qa(a,c):"circle"==b?new za(a,c):"line"==b?new ya(a,c):"text"==b?new pa(a,c):"textPath"==b?new Ia(a,c):"g"==b?new Aa(a,c):"path"==b?new Ga(a,c):"polygon"==b?new Na(a,c):"polyline"==b?new Oa(a,c):"defs"==b?new Pa(a,c):R.LINEARGRADIENT==b?new Qa(a,c):R.RADIALGRADIENT==b?new Ra(a,c):"stop"==b?new Sa(a,c):"image"==b?new Ta(a,c):"ellipse"==b?new Ua(a,c):"clipPath"==b?new Va(a,c):"tspan"==b?new xa(a,c):new Xa(a,c,b)}}}),Y=g.SceneNode=h({rave_getParentNode:function(){return this.rave_getParentNode.call(this)},
- rave_getOwner:q(),rave_setOwner:q(),rave_setParentNode:q(),rave_appendChild:function(a){this.appendChild.call(this,a)},rave_hasChildNodes:function(){return this.rave_hasChildNodes.call(this)},rave_getChildNodes:function(){return this.rave_getChildNodes.call(this)},rave_getNextSibling:function(){return this.rave_getNextSibling.call(this)},rave_getFirstChild:function(){return this.rave_getFirstChild.call(this)},rave_getPreviousSibling:function(){return this.rave_getPreviousSibling.call(this)},rave_insertBefore:function(a,
- b){this.insertBefore.call(this,a,b)},rave_setText:function(a){this.rave_setText.call(this,a)},removeChild:function(a){return this.removeChild.call(this,a)},uG:function(a,b){this.rave_setStyle.call(this,a,b,"")},vG:function(a,b,c){this.rave_setStyle.call(this,a,b,c)},dispatchEvent:q(),rave_getEventListener:q(),rave_removeEventListeners:q(),getAttribute:q(),getAttributeNS:q(),setAttributeNS:q(),removeAttribute:q(),removeAttributeNS:q(),rave_getStyle:q(),rave_getComputedStyle:q(),rave_removeStyle:q(),
- rave_getText:q(),rave_getHtml:q(),rave_setHtml:q(),rave_containsClass:q(),rave_addClass:q(),rave_removeClass:q(),rave_getData:function(){return this.rave_getProperty("__data__")},rave_setData:function(a){this.rave_setProperty("__data__",a)},rave_hasData:function(){return this.rave_hasProperty("__data__")},rave_setProperty:function(a,b){this.rave_setProperty.call(this,a,b)},rave_removeProperty:function(a){this.DG.call(this,a)},setAttribute:function(a,b){this.setAttribute.call(this,a,b)},rave_getProperty:q(),
- rave_hasProperty:q(),rave_getName:q(),rave_getNamespaceURI:q(),rave_getQualifiedName:q(),getBoundingClientRect:q(),getBBox:q(),rave_getDrawType:A(0),getScreenCTM:function(){return this.getScreenCTM.call(this)},getCTM:function(){return this.getCTM.call(this)},rave_dispose:q(),rave_intersectionList:q(),rave_getSizePx:q(),rave_intersection:q(),rave_initExtensions:q(),rave_getComputedStyles:q(),rave_setStyle:function(a,b,c){return 2==arguments.length?this.uG(a,b):this.vG(a,b,c)},rave_addEventListener:function(a,
- b,c,d){var e=arguments;return 2==e.length?this.xu(a,b):3==e.length?this.yu(a,b,c):this.Ol(a,b,c,d)},rave_removeEventListener:function(a,b){return 1==arguments.length?this.zu(a):this.Pl(a,b)}});Y.DATA_PROPERTY="__data__";var D=h(Y,{text:"",html:"",Cb:!0,Vh:!1,constructor:function(a,b){this.attributes=new U;this.rave_initExtensions();this.namespaceURI=a;b&&(this.Fa=b.Fa);this.Ba=new ba(this)},getId:function(){var a=this.attributes.ud(0);return null==a?null:""+a},rave_hasProperty:function(a){return this.Sg?
- this.Sg.hasOwnProperty(a):!1},Bn:function(){this.children=[]},rave_getEventListener:function(a){return(a=this.Bb?this.Bb[a]:null)?a.v:null},xu:function(a,b){this.Ol(a,b,!1,null)},yu:function(a,b,c){this.Ol(a,b,c,null)},Ol:function(a,b,c,d){var e=D.Xr(a,d);this.Bb?this.Bb.hasOwnProperty(e)&&this.Pl(a,d):(this.Bb={},this.rf={},this.te={});b=new D.Cx(e,a,b,c);this.Bb[e]=b;e=this.rf[d];e||(e=[],this.rf[d]=e);e.push(b);d=this.te[a];d||(d=[],this.te[a]=d,(e=this.Fa?this.Fa.Jb:null)&&e.registerEvent(a,this));
- d.push(b)},zu:function(a){this.Bb&&this.Pl(a,null)},Pl:function(a,b){if(this.Bb){var c=D.Xr(a,b),d=this.Bb[c];d&&(delete this.Bb[c],d.kt=!0,c=this.rf[b],M.remove(c,d)&&0==c.length&&delete this.rf[b],c=this.te[a],M.remove(c,d)&&0==c.length&&(delete this.te[a],(d=this.Fa?this.Fa.Jb:null)&&d.unregisterEvent(a,this)))}},rave_removeEventListeners:function(a){if(this.rf){var b=this.rf[a];if(b){for(var c=this.Fa?this.Fa.Jb:null,d=0,e=b.length;d<e;++d){var f=b[d];delete this.Bb[f.id];f.kt=!0;var g=this.te[f.type];
- M.remove(g,f)&&0==g.length&&(delete this.te[f.type],c&&c.unregisterEvent(f.type,this))}delete this.rf[a]}}},dispatchEvent:function(a){if(!a)throw Error("Null event");if(null==a.type||0==a.type.length)throw Error("Uninitialized event");var b=[];a.target=this;for(var c=this.rave_getParentNode();k.isInstanceOf(c,D);)b.push(c),c=c.rave_getParentNode();a.eventPhase=1;D.ms(a,b,!0)&&(a.eventPhase=2,D.ls(a,this,!1,!0)&&(a.bubbles&&!a.propagationStopped)&&(a.eventPhase=3,D.ms(a,b,!1)));a.currentTarget=null;
- a.eventPhase=0;return a.defaultPrevented},getAttribute:function(a){return null!=a?this.attributes.get(a):null},am:function(a){this.Fa=a;if(this.children)for(var b=0,c=this.children,d=c.length;b<d;++b)c[b].am(a)},Fb:function(a,b,c,d,e){this.Fa&&(this.Fa.jf()&&this.Fa.jf().wz(a,b,c,d,e,this),this.Fa.Jb&&this.Fa.Jb.handleDrawEvent(a,this))},rave_getStyle:function(a){return(a=this.Ba.gD(a))&&!a.hf?null!=a.value?a.value.toString():"":""},ik:function(a){this.ge();return this.Ba.ea(a).value},Gc:function(a){this.ge();
- return this.Ba.ea(a)},Q:function(a){return this.Ba.Q(a)},ea:function(a){return this.Ba.ea(a)},rave_getComputedStyle:function(a){this.ge();return(a=this.Ba.ea(H.nc(a)))?null!=a.value?a.value.toString():"":void 0},rave_getComputedStyles:function(){this.ge();for(var a={},b=0,c=Object.keys(this.Ba.Ab),d=c.length;b<d;++b){var e=this.Ba.Ab[c[b]],f;if("string"===typeof e.value||e.value instanceof String||"number"===typeof e.value||e.value instanceof Number)f=""+e.value;else if(l.isArray(e.value)){f="";for(var g=
- e.value,h=0;h<g.length;++h)f+=g[h].toString(),h<g.length-1&&(f+=",")}else f=null==e.value?"":e.value.toString();a[e.name]=f}return a},ge:function(){var a=this.rave_getParentNode();a&&a.ge();this.jk()},rave_getText:function(){for(var a=this.text,b=0,c=this.rave_getChildNodes(),d=c.length;b<d;++b)a+=c[b].rave_getText();return a},rave_getHtml:function(){var a;a=""+("\x3c"+this.rave_getName()+" "+this.attributes.Ap()+" "+this.Ba.Ap());if(this.rave_hasChildNodes()){a+="\x3e";for(var b=0,c=this.rave_getChildNodes(),
- d=c.length;b<d;++b)a+=c[b].rave_getHtml();a+=this.text+"\x3c/"+this.rave_getName()+"\x3e"}else a=null!=this.text&&0<this.text.length?a+("\x3e"+this.text+"\x3c/"+this.rave_getName()+"\x3e"):a+"/\x3e";return a},rave_setHtml:function(a){this.cb(!0,!0);this.html=a=null==a?"":a;this.Fb(1E3,2003,"html",a,null)},rave_addClass:function(a){return this.qr(a,!0)},qr:function(a,b){var c=!1,d=a.split(/\s+/);if(0<d.length){this.classList||(this.classList=[]);for(var e=null,f=0,g=d.length;f<g;++f){var h=d[f];0<
- h.length&&!(-1<this.classList.indexOf(h))&&(c||(c=!0,this.cb(!0,!0),this.Ba.me=!0,e=this.attributes.ud(2),null==e&&(e="")),0<e.length&&(e+=" "),e+=h,this.classList.push(h),this.Fb(1001,2001,"class",h,null))}c&&b&&this.attributes.$l(2,e)}return c},rave_removeClass:function(a){var b=!1;if(this.classList&&0<this.classList.length&&(a=a.split(/\s+/),0<a.length)){for(var c=0,d=a.length;c<d;++c){var e=a[c];0<e.length&&-1<this.classList.indexOf(e)&&(b||(b=!0,this.cb(!0,!0),this.Ba.me=!0),M.remove(this.classList,
- e),this.Fb(1002,2001,"class",null,e))}b&&this.attributes.$l(2,this.classList.join(" "))}return b},rave_containsClass:function(a){if(!this.classList)return!1;a=a.trim().split(/\s/);for(var b=0,c=a.length;b<c;++b)if(!(-1<this.classList.indexOf(a[b].trim())))return!1;return!0},rave_getNamespaceURI:x("namespaceURI"),rave_getQualifiedName:function(){null==this.ju&&(this.ju=this.namespaceURI+":"+this.rave_getName());return this.ju},getAttributeNS:function(a,b){return this.getAttribute(a+":"+b)},setAttributeNS:function(a,
- b,c){this.setAttribute(a+":"+b,c)},removeAttribute:function(a){var b=this.attributes.get(a);null!=b&&(this.setAttribute(a,null),this.Fb(1002,2E3,a,null,b))},removeAttributeNS:function(a,b){this.removeAttribute(a+":"+b)},rave_removeStyle:function(a){this.Ba.Lu(a)},jk:function(){this.Ba.jk()},rave_getProperty:function(a){return this.Sg?this.Sg[a]:null},Is:function(){this.classList||(this.classList=[]);return this.classList},Ps:function(){this.Sg||(this.Sg={});return this.Sg},rave_setParentNode:function(a){var b=
- !1;if(!this.Fa&&a){var c=a.Fa;c&&(this.am(c),b=!0)}this.Fa&&this.Fa.Jb&&(!this.parent&&a||b?this.Cu():this.parent&&!a&&this.Du(),a||this.am(null));this.parent=a},rave_getOwner:function(){if(this.owner)return this.owner;var a=this.rave_getParentNode();return!a?null:a.rave_getOwner()},rave_setOwner:w("owner"),computeCTM:function(a,b){var c=s.identity(),d=a.ik(11);d&&(c=d);if(d=a.rave_getParentNode())(d=b?d.getScreenCTM():d.getCTM())&&(c?s.isIdentityMatrix(d)||(c=d.multiply(c)):c=d);return c?c:s.identity()},
- Cu:function(){if(this.Bb)for(var a=this.Fa.Jb,b=0,c=Object.keys(this.Bb),d=c.length;b<d;++b)a.registerEvent(c[b],this);if(this.children){a=0;b=this.children;for(c=b.length;a<c;++a)b[a].Cu()}},Du:function(){if(this.Bb)for(var a=this.Fa.Jb,b=0,c=Object.keys(this.Bb),d=c.length;b<d;++b)a.unregisterEvent(c[b],this);if(this.children){a=0;b=this.children;for(c=b.length;a<c;++a)b[a].Du()}},PD:function(a){a=this.children.indexOf(a);0<=a&&this.children.splice(a,1)},OD:function(a){this.children||this.Bn();
- this.cb(!0,!0);a.rave_getParentNode()&&a.rave_getParentNode().removeChild(a);this.children.push(a);a.rave_setParentNode(this);return this.children.length-1},LD:function(a,b){this.children||this.Bn();var c=this.children.indexOf(b);if(b&&0<=c){if(a==b)return c;this.cb(!0,!0);this.PD(a);c=this.children.indexOf(b);a.rave_setParentNode(this);this.children.splice(c,0,a);return c}this.cb(!0,!0);this.children.push(a);a.rave_setParentNode(this);return this.children.length-1},ko:function(a){var b;if(this.parent){var c=
- this.parent.rave_getChildNodes(),d=c.indexOf(this);a=d+a;-1<d&&(0<=a&&a<c.length)&&(b=c[a])}return b},Yq:function(a,b){if(!this.cr()&&this.rave_intersects(b))if(this.rave_hasChildNodes())for(var c=this.wd(),d=c.length-1;0<=d;--d){var e=c[d],f=e.Q(11);e.Yq(a,f?s.transformBounds(b,f.inverse()):b)}else"none"!=this.Q(42)&&a.push(this)},Xq:function(a){if(this.cr())return null;if(this.rave_intersects(a)){if(this.rave_hasChildNodes())for(var b=this.wd(),c=b.length-1;0<=c;--c){var d=b[c],e=d.Q(11);if(d=d.Xq(e?
- s.transformBounds(a,e.inverse()):a))return d}else if("none"!=this.Q(42))return this;return!this.rave_getParentNode()?this:null}return null},cr:function(){return!this.Cd()||"none"==this.Q(26)},rave_intersects:function(a){return"none"==this.ik(26)||"none"==this.Q(42)||!this.Fg(a)?!1:this.getBBox().intersects(a)},Fg:function(a){var b=Q.Xn(this,this.Q(44),[1014]);return!b||b.rave_intersects(a)},rave_intersectionList:function(a){var b=[];this.Yq(b,a);return b},rave_intersection:function(a,b){return this.Xq(new t(a,
- b,0.5,0.5))},rave_initExtensions:function(){this.rave_setProperty=D.sy;this.DG=D.ly;this.appendChild=D.Zv;this.rave_getParentNode=D.Rx;this.insertBefore=D.hx;this.rave_getNextSibling=D.Vw;this.rave_getPreviousSibling=D.Ww;this.rave_getFirstChild=D.Uw;this.rave_hasChildNodes=D.Yw;this.rave_getChildNodes=D.Sw;this.removeChild=D.ky;this.rave_setStyle=D.ty;this.setAttribute=D.qy;this.rave_setText=D.uy;this.getCTM=D.Tw;this.getScreenCTM=D.Xw},qe:function(){return this.parent.rave_getChildNodes().indexOf(this)},
- eu:q(),mi:A(!0),rave_getSizePx:function(a){var b=0;if(a)switch(b=a.value,a.unit.type){case 4:b*=96*0.3937007874;break;case 3:b*=96;break;case 6:b*=1.3333333344;break;case 7:b*=16.0000000032;break;case 5:b*=96*0.0393700787}return b},co:function(a){return this.rave_getSizePx(this.ea(a).value)},getBBox:function(){this.Cb&&this.layout();this.jn||(this.jn=this.Lb());return this.jn},zg:function(){return this.getBBox()},layout:function(){this.Cb&&(this.ge(),this.ub());this.Cb=!1},Bd:function(){this.Cb=!0;
- this.jn=null;var a=this;(a=a.rave_getParentNode())&&!a.Cb&&a.Bd()},it:function(){this.ln=this.mn=this.kn=null;if(this.rave_hasChildNodes())for(var a=0,b=this.wd(),c=b.length;a<c;++a)b[a].it()},getBoundingClientRect:function(){this.Cb&&this.layout();if(!this.kn){var a=this.zg(),b=0,c=0;this.rave_getOwner()!=this&&(c=this.rave_getOwner().getBoundingClientRect(),b=c.left,c=c.top);a=s.transformBounds(new t(a.x,a.y,a.width,a.height),this.getCTM());b=a.x+b;c=a.y+c;this.kn=new Pf(b,b+a.width,c+a.height,
- c,a.width,a.height)}return this.kn},Cd:function(){return this.Ba.Cd()},NL:x("Vh"),cb:function(a,b){if(a){var c=!1;if(!this.Vh)switch(c=this.Vh=!0,this.rave_getDrawType()){case -1:case 1004:case 1015:break;default:this.Fa&&this.Fa.Jb&&this.Fa.Jb.makeDirty(this)}b&&(this.Bd(),this.it());if(c&&this.rave_hasChildNodes())for(var c=0,d=this.wd(),e=d.length;c<e;++c)d[c].cb(!0,!1)}else this.Vh=!1},wd:x("children"),Uk:function(){return ja.parse(this.rave_getProperty("_rave_drop_shadow"))},rave_addEventListener:function(a,
- b,c,d){var e=arguments;return 2==e.length?this.xu(a,b):3==e.length?this.yu(a,b,c):this.Ol(a,b,c,d)},rave_removeEventListener:function(a,b){return 1==arguments.length?this.zu(a):this.Pl(a,b)}});D.Xr=function(a,b){return a+(null!=b?"."+b:"")};D.ms=function(a,b,c){var d=0,e=1,f=b.length;c&&(d=b.length-1,e=f=-1);for(;d!=f&&!a.propagationStopped&&!a.immediatePropagationStopped;d+=e)D.ls(a,b[d],c,!1);return!a.propagationStopped};D.ls=function(a,b,c,d){if(b.te){var e=b.te[a.type];if(e)for(var e=e.slice(),
- f=e.length;0<=--f;){var g=e[f];if(!g.kt&&(d||g.capture==c))a.currentTarget=b,g.v.call(b,a)}}return!a.propagationStopped};D.Cx=function(a,b,c,d){this.id=a;this.type=b;this.v=c;this.capture=d};D.sy=function(a,b){"__rave-mirrored__"==a&&this.Bd();this.Ps()[a]=b};D.ly=function(a){delete this.Ps()[a]};D.Zv=function(a){this.OD(a);a.Fb(1001,3E3,null,null,null)};D.hx=function(a,b){this.LD(a,b);a.Fb(1001,3E3,null,null,null)};D.Vw=function(){return this.ko(1)};D.Ww=function(){return this.ko(-1)};D.Uw=function(){return this.children&&
- 0<this.children.length?this.children[0]:this.ko(1)};D.Yw=function(){return this.children&&0<this.children.length};D.Sw=function(){this.children||this.Bn();return this.children};D.ky=function(a){var b=!1,c=this.children.indexOf(a);0<=c&&(b=!0,a.cb(!0,!0),this.children.splice(c,1),a.Fb(1002,3E3,null,null,null),a.rave_setParentNode(null));return b};D.Rx=x("parent");D.uy=function(a){this.cb(!0,!0);var b=this.text;a=null==a?"":a;for(var c=[],d=0,e=this.rave_getChildNodes(),f=e.length;d<f;++d){var g=e[d];
- c.push(g)}d=0;for(e=c.length;d<e;++d)g=c[d],this.removeChild(g);this.text=a;this.Fb(1E3,2004,"text",a,b)};D.qy=function(a,b){if(null!=a){var c=a.toLowerCase(),d,e=this.attributes.nc(c);switch(e){case 2:this.classList&&(this.classList=null);null!=b?this.qr(""+b,!1):this.cb(!0,!1);break;case 1:this.Ba.CG();d=0;for(var f=F.parse("a{"+b+"}").cssRules,g=f.length;d<g;++d)for(var h=f[d].style,k=0;k<h.length;++k){var l=h.item(k);this.rave_setStyle(l,h.getPropertyValue(l),h.getPropertyPriority(l))}break;default:if(d=
- H.nc(c),0<=d)if(f=this.Ba.mo(d))f.hf&&(this.rave_setStyle(c,b,null),f.hf=!0);else{if(this.rave_setStyle(c,b,null),f=this.Ba.mo(d))f.hf=!0}else this.cb(!0,!0)}-1==e?(d=this.attributes.get(c),this.attributes.put(c,b)):(d=this.attributes.ud(e),this.attributes.$l(e,b));this.Fb(1E3,2E3,c,b,d)}};D.ty=function(a,b,c){this.Ba.Li(this,a,b,c)};D.Tw=function(){this.ln||(this.ln=this.computeCTM(this,!1));return this.ln};D.Xw=function(){this.mn||(this.mn=this.computeCTM(this,!0));return this.mn};var qa=h(D,{x:0,
- y:0,width:0,height:0,rx:0,ry:0,Lb:function(){return new p(this.x,this.y,this.width,this.height)},rave_getDrawType:A(1E3),rave_getName:A("rect"),getX:x("x"),getY:x("y"),getWidth:x("width"),getHeight:x("height"),aD:x("rx"),bD:x("ry"),rave_intersects:function(a){var b=this.rx,c=this.ry;if(1>b&&1>c)return D.prototype.rave_intersects.call(this,a);var d=this.getX(),e=this.getY(),f=this.getWidth(),g=this.getHeight(),b=0==b?c:b,c=0==c?b:c;b>f/2&&(b=f/2);c>g/2&&(c=g/2);var h=0.5522848*b,k=0.5522848*c,l=d+
- f,m=e+g,n=new ua.qj;n.moveTo(d+b,e);n.lineTo(d+f-b,e);n.bezierCurveTo(l-b+h,e,l,e+c-k,l,e+c);n.lineTo(d+f,e+g-c);n.bezierCurveTo(l,m-c+k,l-b+h,m,l-b,m);n.lineTo(d+b,e+g);n.bezierCurveTo(d+b-h,m,d,m-c+k,d,m-c);n.lineTo(d,e+c);n.bezierCurveTo(d,e+c-k,d+b-h,e,d+b,e);n.closePath();return n.Pb[0].fl(a)&&this.Fg(a)},vb:function(a){a.setStrokeAndFill(this);a.drawRect(this)},ub:function(){this.x=this.rave_getSizePx(this.ea(0).value);this.y=this.rave_getSizePx(this.ea(1).value);this.width=this.rave_getSizePx(this.ea(2).value);
- this.height=this.rave_getSizePx(this.ea(3).value);this.rx=this.rave_getSizePx(this.ea(12).value);this.ry=this.rave_getSizePx(this.ea(13).value)}}),Y=h({Pj:!0,ud:function(a){return this.ze[a]},$l:function(a,b){this.ze[a]=b},get:function(a){var b=this.nc(a);return-1==b?this.Pj&&this.Jc?this.Jc[a.toLowerCase()]:null:this.ze[b]},put:function(a,b){var c=this.nc(a);-1==c?this.Pj&&(this.Jc||(this.Jc={}),this.Jc[a]=b):this.$l(c,b);return c},nc:function(a){for(var b=0,c=this.Ib.length;b<c;++b)if(this.Ib[b]==
- a)return b;return-1},size:function(){return this.Ib.length+(!this.Pj||!this.Jc?0:Object.keys(this.Jc).length)},lK:function(a){for(var b=this.Ib,c=0;c<b.length;++c)if(b[c]==a)return!0;return this.Pj&&this.Jc?this.Jc.hasOwnProperty(a):!1},Pk:function(){for(var a=[],b=0,c=this.Ib,d=c.length;b<d;++b){var e=c[b];a.push(e)}if(this.Jc){b=0;c=Object.keys(this.Jc);for(d=c.length;b<d;++b)e=c[b],a.push(e)}return a},Ap:function(){for(var a="",b=0,c=this.Pk(),d=c.length;b<d;++b){var e=c[b],f=this.get(e);null!=
- f&&(a+=e+'\x3d"'+f+'" ')}return a.trim()}}),U=h(Y,{constructor:function(){this.Ib=U.F;this.ze=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}});U.id=0;U.style=1;U.fK=2;U.transform=3;U.yA=4;U.x=5;U.y=6;U.width=7;U.height=8;U.x1=9;U.x2=10;U.r=11;U.y1=12;U.y2=13;U.cx=14;U.cy=15;U.d=16;U.points=17;U.F="id style class transform clip-path x y width height x1 x2 r y1 y2 cx cy d points".split(" ");var ra=h({}),ga=h(ra,{constructor:function(a,b,c,d,e,f){this.values=
- [];b=v.Tt(b);null==a&&(a="");this.values.push(a);this.style=a;this.values.push(c);this.size=c;null==b&&(b="");this.values.push(b);this.ws=b;this.Up=d;this.values.push(this.Up);null==f&&(f="");this.values.push(f);this.Gv=f;this.values.push(e);this.lineHeight=e},getStyle:x("style"),lo:function(){return this.size.value},lD:function(){return this.size.unit},FK:x("size"),WK:x("ws"),EL:x("Up"),OC:function(){return null==this.lineHeight?"normal":this.lineHeight},XK:x("Gv"),toString:function(){return(this.style+
- " "+this.Gv+" "+this.Up+" "+~~this.lo()+this.lD()+"/"+this.OC()+" "+this.ws).trim()},Pk:function(){return ga.keys},Vs:function(a){a=ga.keys.indexOf(a);return-1<a?this.values[a]:null}});ga.dp=function(a){a=v.dp(a);var b=v.parseSize(a[3]),c=v.Wt(a[2]),d=a[5];return!b||null==d||null==c?null:new ga(a[0],d,b,c,a[4],a[1])};ga.keys="font-style font-size font-family font-weight font-variant line-height".split(" ");var ia=h({opacity:1,lf:x("opacity"),Wu:w("opacity"),Cd:function(){return 0<this.opacity},nn:function(){var a=
- this.oe();return f.rgba(a.r,a.g,a.b,a.a*this.opacity)}}),ja=h(ia,{constructor:function(a,b,c,d){this.Nt=a;this.Ot=b;this.Xj=c;this.color=d},getType:A(1004),oe:x("color")});ja.parse=function(a){a=v.parseShadowStyle(a);return!a?null:new ja(a[0],a[1],a[2],a[3])};var oa=h({});oa.ib=function(a,b,c){switch(a){case 11:return z.parse(""+c);case 38:case 30:case 32:case 33:case 41:return+c;case 35:case 31:case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 16:case 15:case 9:case 10:case 22:case 12:case 13:case 17:case 18:case 19:return v.parseSize(c);
- case 14:if(null==c)return"normal";a=(""+c).trim();return"normal"==a?"normal":v.parseSize(c).toString();case 34:return v.QF(c.toString());case 28:if(null!=v.ep(c))return c;case 29:return"transparent"==c.toString().toLowerCase()||"none"==c.toString().toLowerCase()?"none":f.rgb(c);case 24:return v.Wt(c);case 44:return v.ep(c);case 20:return ga.dp(c);case 21:return v.Tt(c);case 46:return ja.parse(c);default:return c}};var H=h({});H.Vr=function(a,c){return new b(a,c,H.Mn[a].Ag)};H.K=function(a,c,d,e){e=
- new b(a,c,e);e.value=oa.ib(a,c,d);e.Ql=d.toString();return e};H.nc=function(a){return E.F.indexOf(a)};H.OA=function(){var a=[];a[46]=H.K(46,E.F[46],"none",!0);a[28]=H.K(28,E.F[28],"#000000",!0);a[29]=H.K(29,E.F[29],"none",!0);a[30]=H.K(30,E.F[30],1,!1);a[31]=H.K(31,E.F[31],"1px",!0);a[32]=H.K(32,E.F[32],1,!0);a[33]=H.K(33,E.F[33],1,!0);a[26]=H.K(26,E.F[26],"block",!1);a[21]=H.K(21,E.F[21],"serif",!0);a[22]=H.K(22,E.F[22],"16px",!0);a[23]=H.K(23,E.F[23],"normal",!0);a[24]=H.K(24,E.F[24],"normal",!0);
- a[25]=H.K(25,E.F[25],"normal",!0);a[34]=H.K(34,E.F[34],"none",!0);a[35]=H.K(35,E.F[35],0,!0);a[36]=H.K(36,E.F[36],"butt",!0);a[37]=H.K(37,E.F[37],"miter",!0);a[38]=H.K(38,E.F[38],4,!0);a[27]=H.K(27,E.F[27],"start",!0);a[39]=H.K(39,E.F[39],"none",!1);a[45]=H.K(45,E.F[45],"visible",!0);a[40]=H.K(40,E.F[40],"#000000",!1);a[41]=H.K(41,E.F[41],1,!1);a[42]=H.K(42,E.F[42],"auto",!0);a[43]=H.K(43,E.F[43],"auto",!0);a[20]=H.K(20,E.F[20],"normal normal normal 16/normal serif",!0);a[47]=H.K(47,E.F[47],"auto",
- !0);a[0]=H.K(0,E.F[0],"",!1);a[1]=H.K(1,E.F[1],"",!1);a[2]=H.K(2,E.F[2],"",!1);a[3]=H.K(3,E.F[3],"",!1);a[4]=H.K(4,E.F[4],"",!1);a[5]=H.K(5,E.F[5],"",!1);a[6]=H.K(6,E.F[6],"",!1);a[7]=H.K(7,E.F[7],"",!1);a[8]=H.K(8,E.F[8],"",!1);a[9]=H.K(9,E.F[9],"",!1);a[10]=H.K(10,E.F[10],"",!1);a[11]=H.K(11,E.F[11],"",!1);a[12]=H.K(12,E.F[12],"",!1);a[13]=H.K(13,E.F[13],"",!1);a[44]=H.K(44,E.F[44],"",!1);a[14]=H.K(14,E.F[14],"normal",!0);a[15]=H.K(15,E.F[15],"",!1);a[16]=H.K(16,E.F[16],"",!1);a[17]=H.K(17,E.F[17],
- "",!1);a[18]=H.K(18,E.F[18],"",!1);a[19]=H.K(19,E.F[19],"",!1);return a};H.Mn=H.OA();var ba=h({ki:!0,me:!0,Wh:!0,constructor:function(a){this.Ab={};this.Ee={};this.node=a},Dv:function(a,b,c,d,e,f){this.Ee[b]=a;this.Wh=!0;c?(this.Qc||(this.Qc={}),this.Qc[b]=a,this.ee&&delete this.ee[b]):(this.ee||(this.ee={}),this.ee[b]=a,this.Qc&&delete this.Qc[b]);a?(a.value=d,a.Ql=e,a.ei=c,a.hf=!1):this.me=!0;this.node.cb(!0,E.SD(b));this.node.Fb(1E3,2002,f,d,a?a.value:null)},jk:function(){if(this.Wh||this.me||
- this.ki){var a=null;if(this.Wh){if(this.Qc){for(var b=0,c=Object.keys(this.Qc),d=c.length;b<d;++b){var e=c[b],f=this.Qc[e],e=f.id,g=this.Ab[e];if(!g||g==ba.Oe||g.owner!=this.node)g=f,this.Ab[g.id]=f;this.node.rave_hasChildNodes()&&g.Ag&&(a||(a=[]),a.push(e))}this.Qc=null}if(this.ee){b=0;c=Object.keys(this.ee);for(d=c.length;b<d;++b)if(e=c[b],f=this.ee[e],g=this.Ab[e],!g||!g.ei)if(f){if(!g||g==ba.Oe||g.owner!=this.node)g=f,this.Ab[e]=g,this.node.rave_hasChildNodes()&&g.Ag&&(a||(a=[]),a.push(e))}else g&&
- g.owner==this.node&&(this.Ab[e]=ba.Oe,this.node.rave_hasChildNodes()&&g.Ag&&(a||(a=[]),a.push(e)),this.ki=!0);this.ee=null}}if(this.me||this.ki){e=null;g=this.node.rave_getParentNode();b=0;for(c=E.F.length;b<c;++b){if((f=this.Ab[b])&&f==ba.Oe&&this.node.rave_hasChildNodes()&&f.Ag)a||(a=[]),a.push(b);if(this.me)if(e||(e=this.JC()),0<e.length&&e[b]){if(e[b].ei||!f||f==ba.Oe||f.owner!=this.node||f.hf)f=e[b],this.Ab[b]=f}else f&&f.owner==ba.Km&&(f=null,this.Ab[b]=f);if(!f||f==ba.Oe)f=null,g&&(H.Mn[b].Ag&&
- -1!=g.rave_getDrawType())&&(f=g.ea(b));f||(f=H.Mn[b]);this.Ab[b]=f}this.ki=!1}if(a){f=0;g=this.node.wd();for(b=g.length;f<b;++f)for(var d=c=g[f],h=0,k=a,l=k.length;h<l;++h){var e=k[h],m=d.Ba.Ab[e];m&&(m.owner!=c&&m.owner!=ba.Km)&&(d.Ba.Ab[e]=ba.Oe,d.Ba.Wh=!0,d.Ba.ki=!0)}}this.me=this.Wh=!1}},JC:function(){var a,b=ta.CA(this.node);if(0<b.length){a=[];for(var c=0,d=b.length;c<d;++c)for(var e=b[c].style,f=0,g=e.length;f<g;++f){var h=e.item(f);this.Cv(h,a,e.getPropertyValue(h),"important"==e.getPropertyPriority(h))}}else a=
- [];return a},Cv:function(a,b,c,d){var e=H.nc(a);if(-1!=e){var f=b[e];if(!f||d&&!f.ei){c=oa.ib(e,a,c);if(k.isInstanceOf(c,ra))for(var f=0,g=c.Pk(),h=g.length;f<h;++f){var l=g[f];this.Cv(l,b,c.Vs(l),d)}null!=c&&(b[e]=H.Vr(e,a),b[e].owner=ba.Km,b[e].value=c,b[e].Ql=c.toString(),b[e].ei=d)}}},CG:function(){for(var a=0,b=Object.keys(this.Ee),c=b.length;a<c;++a){var d=b[a];this.Ee[d]&&this.node.rave_removeStyle(E.F[d])}},Lu:function(a){if(null!=a){var b=a.toLowerCase(),c=H.nc(a),d=this.Ee[c];if(d){var e=
- !1;d.hf||(a=this.node.attributes.get(a),null!=a&&(a=oa.ib(c,b,a),null!=a&&(d.value=a,d.Ql=a.toString(),d.hf=!0,d.ei=!1,e=!0)));e||(this.Dv(null,c,!1,null,null,b),this.Qc&&delete this.Qc[c])}}},Li:function(a,b,c,d){if(null!=b)if(null==c)this.Lu(b);else{b=b.toLowerCase();var e=H.nc(b);if(0<=e){var f=a.Ba.ea(e);if(!f||c!==f.Ql)if(f=oa.ib(e,b,c),null!=f){var g=null!=d&&"important"==d.toLowerCase();if(k.isInstanceOf(f,ra))for(var h=0,l=f.Pk(),n=l.length;h<n;++h){var p=l[h];a.rave_setStyle(p,f.Vs(p),d)}d=
- this.Ee[e];d||(d=H.Vr(e,b),d.owner=a);this.Dv(d,e,g,f,c,b)}}}},Q:function(a){a=this.ea(a);return!a?null:a.value},ea:function(a){return this.Ab[a]},KM:w("me"),gD:function(a){return this.mo(H.nc(a))},mo:function(a){return this.Ee[a]},Cd:function(){return"hidden"!=this.Q(45)},Ap:function(){for(var a=[],b=0,c=Object.keys(this.Ee),d=c.length;b<d;++b){var e=this.Ee[c[b]];e&&a.push(e.name+":"+e.value+";")}b="";0<a.length&&(b='style\x3d"'+a.join(" ")+'"');return b}});ba.Km={};ba.Oe=new b(-1,null,!0);var ta=
- h({});ta.CA=function(a){var b=[],c={},d=f.configuration.getQueryEngine(null);if(d)for(var e=0,g=ta.UC(a),h=g.length;e<h;++e){var k=g[e],l=k.selectorText;c.hasOwnProperty(l)||(d.matches(a,l)&&b.push(k),c[l]=1)}return b};ta.UC=function(a){var b=X.INSTANCE,c=[],d=a.getId();if(null!=d&&(d=b.WC("#"+d)))for(var e=0,f=d,g=f.length;e<g;++e)d=f[e],c.push(d);e=0;f=a.Is();for(g=f.length;e<g;++e)if(d=f[e],null!=d&&(d=b.VC("."+d)))for(var h=0,k=d,l=k.length;h<l;++h)d=k[h],c.push(d);a=a.rave_getName();if(null!=
- a&&(d=b.XC(a))){b=0;a=d;for(e=a.length;b<e;++b)d=a[b],c.push(d)}return c};var X=h({constructor:function(){this.Eh=[];this.initialize()},add:function(a){var b=0;a=a.cssRules;for(var c=a.length;b<c;++b){var d=a[b];null!=d.selectorText&&this.uz(d)}},initialize:function(){this.ro={};this.tn={};this.Hp={};this.Eh.length=0;this.Eh.push(this.ro);this.Eh.push(this.tn);this.Eh.push(this.Hp)},clear:function(){this.initialize()},VC:function(a){return this.tn[a]},WC:function(a){return this.ro[a]},XC:function(a){return this.Hp[a]},
- uz:function(a){for(var b=0,c=F.fv(a.selectorText),d=c.length;b<d;++b)for(var e=F.fs(c[b]),e=X.gv(e[e.length-1]),f=0,g=e.length;f<g;++f){var h=e[f];if(0!=h.length){var k=null;switch(X.is(h)){case 3:k=this.Hp;break;case 2:k=this.ro;break;case 1:k=this.tn}if(k){var l=k[h],m=0;if(l)for(h=0;h<l.length;++h){k=l[h];if(X.js(a)>=X.js(k))break;m++}else l=[],k[h]=l;l.splice(m,0,a)}}}},remove:function(a){for(var b=!1,c=0,d=this.Eh,e=d.length;c<e;++c)for(var f=d[c],g=0,h=Object.keys(f),k=h.length;g<k;++g){for(var l=
- h[g],m=f[l],n=0;n<m.length;++n)m[n].parentStyleSheet==a&&(m.splice(n--,1),b=!0);0==m.length&&delete f[l]}return b}});X.gv=function(a){return a.replace(RegExp(",","g")," ").split(/(?=[\.\#\s])/)};X.js=function(a){if(0<a.$d)return a.$d;for(var b=0,c=0,d=X.gv(a.selectorText),e=d.length;c<e;++c)switch(X.is(d[c])){case 3:b++;break;case 2:b+=256;break;case 1:b+=16}return a.$d=b};X.is=function(a){if(null==a)return-1;a=a.charCodeAt(0);return 35==a?2:46==a||58==a?1:3};X.ZI=1;X.xJ=2;X.UJ=3;X.INSTANCE=new X;
- X.UNKNOWN=-1;var p=g.RaveRect=h({x:0,y:0,width:0,height:0,constructor:function(a,b,c,d){this.x=a;this.y=b;this.width=c;this.height=d},getX:x("x"),getX2:function(){return this.x+this.width},getY:x("y"),getY2:function(){return this.y+this.height},getWidth:x("width"),getHeight:x("height"),intersects:function(a){return this.x<=a.x+a.width&&this.x+this.width>=a.x&&this.y<=a.y+a.height&&this.y+this.height>=a.y},contains:function(a,b){return 0>this.width||0>this.height?!1:a>=this.x&&b>=this.y&&a<=this.x+
- this.width&&b<=this.y+this.height}}),ua={Ii:function(a,b){var c=new n(a.x,a.y);if(ua.Fl(c,b)||ua.bu(b[0],a))return!0;for(var d=new n(a.x+a.width,a.y),e=new n(a.x+a.width,a.y+a.height),f=new n(a.x,a.y+a.height),g=b[b.length-1],h=0,k=b.length;h<k;++h){var l=b[h];if(ua.re(c.x,c.y,d.x,d.y,g.x,g.y,l.x,l.y)||ua.re(d.x,d.y,e.x,e.y,g.x,g.y,l.x,l.y)||ua.re(e.x,e.y,f.x,f.y,g.x,g.y,l.x,l.y)||ua.re(f.x,f.y,c.x,c.y,g.x,g.y,l.x,l.y))return!0;g=l}return!1},du:function(a,b){if(ua.bu(b[0],a))return!0;for(var c=new n(a.x,
- a.y),d=new n(a.x+a.width,a.y),e=new n(a.x+a.width,a.y+a.height),f=new n(a.x,a.y+a.height),g=b[b.length-1],h=0,k=b.length;h<k;++h){var l=b[h];if(ua.re(c.x,c.y,d.x,d.y,g.x,g.y,l.x,l.y)||ua.re(d.x,d.y,e.x,e.y,g.x,g.y,l.x,l.y)||ua.re(e.x,e.y,f.x,f.y,g.x,g.y,l.x,l.y)||ua.re(f.x,f.y,c.x,c.y,g.x,g.y,l.x,l.y))return!0;g=l}return!1},Fl:function(a,b){for(var c=!1,d=b[b.length-1],e=0,f=b.length;e<f;++e){var g=b[e];g.y>=a.y!=d.y>=a.y&&a.x<=(d.x-g.x)*(a.y-g.y)/(d.y-g.y)+g.x&&(c=!c);d=g}return c},cu:function(a,
- b,c){for(var d,e=0,f=b.length;e<f;++e){var g=b[e];if(d&&ua.Yz(a.x,a.y,d.x,d.y,g.x,g.y)<=c)return!0;d=g}return!1},bu:function(a,b){return a.x>=b.x&&a.x<b.x+b.width&&a.y>=b.y&&a.y<b.y+b.height},sA:function(a,b,c,d){var e=ua.clamp(a,d.x,d.x+d.width);d=ua.clamp(b,d.y,d.y+d.height);a-=e;b-=d;return a*a+b*b<c*c},clamp:function(a,b,c){return a<b?b:a>c?c:a},Yz:function(a,b,c,d,e,f){var g=(e-c)*(e-c)+(f-d)*(f-d),h=-1;0!=g&&(h=((a-c)*(e-c)+(b-d)*(f-d))/g);0>h||(1<h?(c=e,d=f):(c+=h*(e-c),d+=h*(f-d)));a-=c;b-=
- d;return Math.sqrt(a*a+b*b)},re:function(a,b,c,d,e,f,g,h){var k=(h-f)*(c-a)-(g-e)*(d-b);if(1E-5>=k)return!1;g=((g-e)*(b-f)-(h-f)*(a-e))/k;a=((c-a)*(b-f)-(d-b)*(a-e))/k;return 0<g&&1>g&&0<a&&1>a},AM:function(a,b,c,d,e,f,g,h){return!(a>e+g||a+c<e||b>f+h||b+d<f)}};ua.Ux=h({isClosed:!1,Bo:!0,dt:0,et:!1,constructor:function(){this.points=[]},mg:function(a){if(!(0!=this.points.length&&a.x==this.points[this.points.length-1].x&&a.y==this.points[this.points.length-1].y)&&(this.points.push(a),this.bounds?(a.x<
- this.bounds[0].x?this.bounds[0].x=a.x:a.x>this.bounds[1].x&&(this.bounds[1].x=a.x),a.y<this.bounds[0].y?this.bounds[0].y=a.y:a.y>this.bounds[1].y&&(this.bounds[1].y=a.y)):(this.bounds=[],this.bounds[0]=new n(a.x,a.y),this.bounds[1]=new n(a.x,a.y)),this.Bo&&2<=this.points.length)){var b=this.points[this.points.length-1].x-this.points[this.points.length-2].x,c=this.points[this.points.length-1].y-this.points[this.points.length-2].y,b=(a=1E-4>Math.abs(c))?0:b/c;2==this.points.length?(this.et=a,this.dt=
- b):this.Bo=a==this.et&&1E-4>Math.abs(this.dt-b)}},Tu:function(){this.Bo||(this.isClosed=!0)},Gs:x("bounds"),ht:function(a){return this.isClosed?ua.Fl(a,this.points):ua.cu(a,this.points,5)},fl:function(a){return 2>=a.width&&2>=a.height?this.ht(new n(a.x,a.y)):a.x>this.bounds[1].x||a.x+a.width<this.bounds[0].x||a.y>this.bounds[1].y||a.y+a.height<this.bounds[0].y?!1:this.isClosed?ua.Ii(a,this.points):ua.du(a,this.points)},ji:function(a){return 1==arguments.length&&(null==a||k.isInstanceOf(a,n))?this.ht(a):
- this.fl(a)}});ua.qj=h({le:-1,constructor:function(){this.Pb=[]},fail:q(),startPath:q(),closePath:function(){this.Pb[this.le].Tu();this.Wb=null},moveTo:function(a,b){this.le++;this.Pb.push(new ua.Ux);this.Wb=new n(a,b);this.Pb[this.le].mg(this.Wb)},lineTo:function(a,b){this.Wb=new n(a,b);this.Pb[this.le].mg(this.Wb)},quadraticCurveTo:function(a,b,c,d){var e=this.Wb.x,f=this.Wb.y,g=~~(Math.max(Math.abs(c-e),Math.abs(d-f))/2);if(1<g)for(var h=1/g,k=h,l=0;l<g;++l)this.Pb[this.le].mg(new n((1-k)*(1-k)*
- e+2*(1-k)*k*a+k*k*c,(1-k)*(1-k)*f+2*(1-k)*k*b+k*k*d)),k+=h;this.Wb=new n(c,d);this.Pb[this.le].mg(this.Wb)},bezierCurveTo:function(a,b,c,d,e,f){var g=this.Wb.x,h=this.Wb.y,k=~~(Math.max(Math.abs(e-g),Math.abs(f-h))/2);if(1<k)for(var l=1/k,m=l,p=0;p<k;++p)this.Pb[this.le].mg(new n((1-m)*(1-m)*(1-m)*g+3*(1-m)*(1-m)*m*a+3*(1-m)*(m*m)*c+m*m*m*e,(1-m)*(1-m)*(1-m)*h+3*(1-m)*(1-m)*m*b+3*(1-m)*(m*m)*d+m*m*m*f)),m+=l;this.Wb=new n(e,f);this.Pb[this.le].mg(this.Wb)},arcTo:function(a,b,c,d,e,f,g,h,k){wa.tr(this,
- a,b,c,d,e,f,g,h,k)},xL:x("Pb")});var wa={tr:function(a,b,c,d,e,f,g,h,k,l){f%=360;var m=(b-k)/2,n=(c-l)/2,p=f/180*Math.PI,r=Math.cos(p),t=Math.sin(p),p=r*m+t*n,m=-t*m+r*n;d=Math.abs(d);e=Math.abs(e);var n=d*d,u=e*e,v=p*p,y=m*m,z=v/n+y/u;1<z&&(d*=Math.sqrt(z),e*=Math.sqrt(z),n=d*d,u=e*e);n=(n*u-n*y-u*v)/(n*y+u*v);n=(g==h?-1:1)*Math.sqrt(0>n?0:n);g=n*(d*m/e);n*=-(e*p/d);b=(b+k)/2+(r*g-t*n);c=(c+l)/2+(t*g+r*n);r=(p-g)/d;t=(m-n)/e;p=(-p-g)/d;g=(-m-n)/e;n=Math.sqrt(r*r+t*t);m=180*(0>t?-1:1)*Math.acos(r/
- n)/Math.PI;n=Math.sqrt((r*r+t*t)*(p*p+g*g));p=180*(0>r*g-t*p?-1:1)*Math.acos((r*p+t*g)/n)/Math.PI;!h&&0<p?p-=360:h&&0>p&&(p+=360);h=wa.Dz(m%360,p%360);p=s.identity();s.mapPoints(h,p.scaleNonUniform(d,e));s.mapPoints(h,p.rotate(f));s.mapPoints(h,p.translate(b,c));h[h.length-2]=k;h[h.length-1]=l;for(k=0;k<h.length;k+=6)a.bezierCurveTo(h[k],h[k+1],h[k+2],h[k+3],h[k+4],h[k+5])},Dz:function(a,b){for(var c=Math.ceil(Math.abs(b)/90),d=a/180*Math.PI,e=b/180*Math.PI/c,f=4/3*Math.sin(e/2)/(1+Math.cos(e/2)),
- g=[],h=0,k=0;k<c;++k){var l=d+k*e,m=Math.cos(l),n=Math.sin(l);g[h++]=m-f*n;g[h++]=n+f*m;l+=e;m=Math.cos(l);n=Math.sin(l);g[h++]=m+f*n;g[h++]=n-f*m;g[h++]=m;g[h++]=n}return g}},za=h(D,{cx:0,r:0,cy:0,Lb:function(){return new p(this.cx-this.r,this.cy-this.r,2*this.r,2*this.r)},rave_getDrawType:A(1002),rave_getName:A("circle"),DC:x("cx"),EC:x("cy"),getR:x("r"),rave_intersects:function(a){return ua.sA(this.cx,this.cy,this.r,a)&&this.Fg(a)},vb:function(a){a.setStrokeAndFill(this);a.drawCircle(this)},ub:function(){this.cx=
- this.rave_getSizePx(this.ea(9).value);this.cy=this.rave_getSizePx(this.ea(10).value);this.r=this.rave_getSizePx(this.ea(6).value)}}),ya=h(D,{x1:0,x2:0,y1:0,y2:0,Lb:function(){var a;this.x1>this.x2&&(a=this.x1,this.x1=this.x2,this.x2=a);this.y1>this.y2&&(a=this.y1,this.y1=this.y2,this.y2=a);return new p(this.x1,this.y1,this.x2-this.x1,this.y2-this.y1)},rave_getDrawType:A(1001),rave_getName:A("line"),oo:x("x1"),getX2:x("x2"),po:x("y1"),getY2:x("y2"),rave_intersects:function(a){var b=[];b.push(new n(this.x1,
- this.y1));b.push(new n(this.x2,this.y2));return 2>=a.width&&2>=a.height?ua.cu(new n(a.x,a.y),b,5):ua.du(a,b)&&this.Fg(a)},vb:function(a){a.setStrokeAndFill(this);a.drawLine(this)},ub:function(){this.x1=this.rave_getSizePx(this.ea(4).value);this.x2=this.rave_getSizePx(this.ea(5).value);this.y1=this.rave_getSizePx(this.ea(7).value);this.y2=this.rave_getSizePx(this.ea(8).value)}});ya.GJ=5;var pa=h(D,{x:0,y:0,width:0,height:0,ve:0,we:0,rave_getDrawType:A(1003),rave_getName:A("text"),Fb:function(a,b,c,
- d,e){this.Pf=null;D.prototype.Fb.call(this,a,b,c,d,e)},Bd:function(){D.prototype.Bd.call(this);this.Xe=null},Lb:function(){var a=new t(this.x,this.y-this.ic,this.width,this.height);if(this.rave_hasChildNodes())for(var b=0,c=this.rave_getChildNodes(),d=c.length;b<d;++b){var e=c[b].Lb();this.Yh(e,a)}return new p(a.x,a.y,a.width,a.height)},zg:function(){if(!this.Xe){this.Cb&&this.layout();var a=new t(this.x,this.y-this.ic,this.width,this.height);if(this.rave_hasChildNodes())for(var b=0,c=this.wd(),d=
- c.length;b<d;++b){var e=c[b].zg();this.Yh(e,a)}this.Xe=new p(a.x,a.y,a.width,a.height)}return this.Xe},Yh:function(a,b){var c=b.x+b.width,d=b.y+b.height,e=a.x+a.width,f=a.y+a.height;b.x=Math.min(a.x,b.x);b.y=Math.min(a.y,b.y);b.width=Math.max(c,e)-b.x;b.height=Math.max(d,f)-b.y},xd:function(){this.Pf||(this.Pf=na.Ls(this));return this.Pf},Uk:function(){var a=this.Q(46);a||(a=ja.parse(this.rave_getProperty("_rave_drop_shadow")));return!a||"none"==a?null:a},Rs:x("text"),getX:x("x"),getY:x("y"),rave_getSizePx:function(a){if(a)switch(a.unit.type){case 1:return a.value*
- this.xd().lo();default:return D.prototype.rave_getSizePx.call(this,a)}return 0},vb:function(a){null!=this.text&&0<this.text.length&&(a.setStrokeAndFill(this),a.drawText(this))},ub:function(){this.Kh();this.ve=this.x+this.width;this.we=this.y;this.Cb=!1;if(this.rave_hasChildNodes())for(var a=0,b=this.rave_getChildNodes(),c=b.length;a<c;++a){var d=b[a];k.isInstanceOf(d,xa)&&(d.Cb&&d.layout(),this.ve=d.ve,this.we=d.we)}},cb:function(a,b){if(a&&b&&this.rave_hasChildNodes())for(var c=0,d=this.rave_getChildNodes(),
- e=d.length;c<e;++c){var f=d[c];k.isInstanceOf(f,xa)&&f.Bd()}D.prototype.cb.call(this,a,b)},Kh:function(){this.ge();var a=this.Zj();this.width=a.width;var b=this.rave_getSizePx(this.ea(22).value);this.ic=a.actualBoundingBoxAscent;this.bf=a.actualBoundingBoxDescent;void 0==this.ic&&(this.ic=0.7*b+0.1*b);void 0==this.bf&&(this.bf=0.3*b);this.height=this.ic+this.bf;this.width=this.Zj().width;this.x=this.pn();this.y=this.rave_getSizePx(this.ea(1).value)+this.rave_getSizePx(this.ea(16).value)},pn:function(){var a=
- this.rave_getSizePx(this.Q(0)),b=this.Q(27);"middle"==b?a-=this.width/2:"end"==b&&(a-=this.width);return a+this.rave_getSizePx(this.Q(15))},Zj:function(){var a=f.canvas.create(1,1).getContext("2d");a.font=this.xd().toString();var b=a.measureText(this.text);f.canvas.disposeContext(a);return b}}),Y=h(ia,{constructor:function(){this.Ri=[]},tz:function(a){this.Ri.push(this.nI(a));return this},zL:x("Ri"),oe:A(null),nn:A(null),nI:function(a){for(var b,c=0,d=this.Ri,e=d.length;c<e;++c){var f=d[c];if(!b||
- f.offset>b.offset)b=f}b&&(c=b.offset,a.offset<=c&&(a.Vu(c),b.Vu(c-1E-5)));return a}});Y.pJ=1E-5;var Ca=h(Y,{x1:0,y1:0,x2:0,y2:0,constructor:function(a,b,c,d){this.x1=a;this.y1=b;this.x2=c;this.y2=d},getType:A(1001)}),Da=h(Y,{cx:0,cy:0,r:0,fx:0,fy:0,constructor:function(a,b,c,d,e){this.cx=a;this.cy=b;this.r=c;this.fx=d;this.fy=e},getType:A(1002)}),Ea=h(ia,{constructor:function(a,b){this.Wu(b);this.color=f.rgb(a)},oe:x("color"),Cd:function(){return ia.prototype.Cd.call(this)&&this.color},getType:A(1E3)}),
- Fa=h({offset:0,opacity:0,constructor:function(a,b,c){this.offset=this.Yn(a);this.color=b;this.opacity=this.Yn(c)},zr:function(){return f.rgb("rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a*this.opacity+")")},Yn:function(a){return Math.min(Math.max(a,0),1)},Sk:x("offset"),Vu:function(a){this.offset=this.Yn(a)},lf:x("opacity")}),Ha=h(ia,{width:0,miterLimit:0,Kn:0,constructor:function(a,b,c,d,e,g,h,k){this.Wu(c);this.strokeColor=f.rgb(a);this.width=b;this.miterLimit=d;this.lineJoin=
- e;this.lineCap=g;this.ok=h;this.Kn=k},Cd:function(){return ia.prototype.Cd.call(this)&&0<this.width},getWidth:x("width"),$K:x("lineCap"),bL:x("lineJoin"),eL:x("miterLimit"),oe:x("strokeColor"),QK:x("ok"),RK:x("Kn"),getType:A(1003)}),na=h({});na.Ks=function(a){var b=a.Q(28),c;if(null!=b&&"none"!=b){var d=v.ep(b);if(null!=d){if(b=Q.Xn(a,d,[1011,1012]))switch(b.rave_getDrawType()){case 1011:c=new Ca(b.oo(a),b.po(a),b.getX2(a),b.getY2(a));na.rr(c,b);break;case 1012:c=new Da(b.yC(a),b.zC(a),b.getR(a),
- b.KC(a),b.LC(a)),na.rr(c,b)}}else d=a.Q(30),a=a.Q(33),a=(null!=d?d:1)*(null!=a?a:1),0<a&&(c=new Ea(b,Math.min(a,1)))}return c};na.rr=function(a,b){for(var c=0,d=b.rave_getChildNodes(),e=d.length;c<e;++c){var f=d[c];1016==f.rave_getDrawType()&&a.tz(new Fa(f.Sk(),f.oe(),f.lf()))}};na.fD=function(a){var b=a.Q(29);if(null==b||"none"==b)return null;var c=a.co(31);if(0<c){var d=a.Q(30),e=a.Q(32),d=(null!=d?d:1)*(null!=e?e:1);if(0<d){var e=a.Q(38),f=a.Q(37),g=a.Q(36),h=a.Q(34);a=a.co(35);return new Ha(b,
- c,Math.min(d,1),e,f,g,h,a)}}return null};na.Ls=function(a){return new ga(a.Q(23),a.Q(21),a.Q(22),a.Q(24),""+a.Q(14),a.Q(25))};var xa=h(pa,{rave_getName:A("tspan"),constructor:function(){this.Cb=!0},ub:function(){var a=this.rave_getParentNode();a&&a.Cb?a.ub():pa.prototype.ub.call(this)},getBoundingClientRect:function(){var a=this.rave_getParentNode();return a?a.getBoundingClientRect():D.prototype.getBoundingClientRect.call(this)},getBBox:function(){var a=this.rave_getParentNode();return a?a.getBBox():
- D.prototype.getBBox.call(this)},xd:function(){var a=this.rave_getParentNode();return a&&k.isInstanceOf(a,pa)?a.xd():pa.prototype.xd.call(this)},Kh:function(){pa.prototype.Kh.call(this);var a=this.rave_getParentNode();a&&k.isInstanceOf(a,pa)&&(null==this.getAttribute("x")&&(this.x+=a.ve),null==this.getAttribute("y")&&(this.y+=a.we))}}),Ia=h(D,{x:0,y:0,width:0,height:0,ve:0,we:0,getDrawType:A(1017),getName:A("textPath"),Fb:function(a,b,c,d,e){this.Pf=null;D.prototype.Fb.call(this,a,b,c,d,e)},Bd:function(){D.prototype.Bd.call(this);
- this.Xe=null},Lb:function(){var a=new t(this.x,this.y-this.ic,this.width,this.height);if(this.rave_hasChildNodes())for(var b=0,c=this.rave_getChildNodes(),d=c.length;b<d;++b){var e=c[b].Lb();this.Yh(e,a)}return new p(a.x,a.y,a.width,a.height)},zg:function(){if(!this.Xe){this.Cb&&this.layout();var a=new t(this.x,this.y-this.ic,this.width,this.height);if(this.rave_hasChildNodes())for(var b=0,c=this.wd(),d=c.length;b<d;++b){var e=c[b].zg();this.Yh(e,a)}this.Xe=new p(a.x,a.y,a.width,a.height)}return this.Xe},
- Yh:function(a,b){var c=b.x+b.width,d=b.y+b.height,e=a.x+a.width,f=a.y+a.height;b.x=Math.min(a.x,b.x);b.y=Math.min(a.y,b.y);b.width=Math.max(c,e)-b.x;b.height=Math.max(d,f)-b.y},xd:function(){this.Pf||(this.Pf=na.Ls(this));return this.Pf},Uk:function(){var a=this.Q(46);a||(a=ja.parse(this.rave_getProperty("_rave_drop_shadow")));return!a||"none"==a?null:a},Rs:x("text"),getX:x("x"),FL:function(){return+this.rave_getParentNode().getAttribute("x")+ +this.rave_getParentNode().getAttribute("dx")},GL:function(){return+this.rave_getParentNode().getAttribute("y")+
- +this.rave_getParentNode().getAttribute("dy")},getY:x("y"),getSizePx:function(a){if(a)switch(a.unit.type){case 1:return a.value*this.xd().lo();default:return D.prototype.rave_getSizePx.call(this,a)}return 0},vb:function(a){null!=this.text&&0<this.text.length&&(a.setStrokeAndFill(this),a.drawTextPath(this,this.MC()))},MC:function(){var a=this.getAttribute("http://www.w3.org/1999/xlink:href").substring(1);return f.selectAll("path").filter(function(){return a==this.getAttribute("id")?!0:!1})},ub:function(){this.Kh();
- this.ve=this.x+this.width;this.we=this.y;this.Cb=!1;if(this.rave_hasChildNodes())for(var a=0,b=this.rave_getChildNodes(),c=b.length;a<c;++a){var d=b[a];k.isInstanceOf(d,xa)&&(d.Cb&&d.layout(),this.ve=d.ve,this.we=d.we)}},cb:function(a,b){if(a&&b&&this.rave_hasChildNodes())for(var c=0,d=this.rave_getChildNodes(),e=d.length;c<e;++c){var f=d[c];k.isInstanceOf(f,xa)&&f.Bd()}D.prototype.cb.call(this,a,b)},Kh:function(){this.ge();var a=this.Zj();this.width=a.width;var b=this.getSizePx(this.ea(22).value);
- this.ic=a.actualBoundingBoxAscent;this.bf=a.actualBoundingBoxDescent;void 0==this.ic&&(this.ic=0.7*b+0.1*b);void 0==this.bf&&(this.bf=0.3*b);this.height=this.ic+this.bf;k.isInstanceOf(this.rave_getParentNode(),pa)?(this.x=this.pn(),this.y=this.getSizePx(this.rave_getParentNode().Q(1))+this.getSizePx(this.rave_getParentNode().Q(16))):this.y=this.x=0},pn:function(){var a=this.getSizePx(this.rave_getParentNode().Q(0)),b=this.Q(27);"middle"==b?a-=this.width/2:"end"==b&&(a-=this.width);return a+this.getSizePx(this.rave_getParentNode().Q(15))},
- Zj:function(){var a=f.canvas.create(1,1).getContext("2d");a.font=this.xd().toString();var b=a.measureText(this.text);f.canvas.disposeContext(a);return b}}),Aa=h(D,{Do:!1,rave_getName:A("g"),rave_getDrawType:A(1004),rave_intersects:function(a){return this.rave_hasChildNodes()?D.prototype.rave_intersects.call(this,a):!1},Lb:function(){var a,b,c,d,e,f;a=b=c=d=0;if(this.rave_hasChildNodes()){a=b=Infinity;c=d=-Infinity;for(var g=0,h=this.wd(),k=h.length;g<k;++g){var l=h[g];f=l.getBBox();var m=f.x,n=f.y;
- e=f.width;f=f.height;if(l=l.ik(11))f=s.transformBounds(new t(m,n,e,f),l),m=f.x,n=f.y,e=f.width,f=f.height;e=m+e;f=n+f;m<a&&(a=m);n<b&&(b=n);e>c&&(c=e);f>d&&(d=f)}}return new p(a,b,c-a,d-b)},vb:function(a){(this.Do=this.UD())&&a.push()},eu:function(a){this.Do&&a.pop(this.lf())},ub:q(),UD:function(){return 1>this.lf()?!0:!1},lf:function(){var a=this.Q(30);return null!=a?a:1}}),Ga=h(D,{Lb:function(){if(!this.d)return new p(0,0,0,0);var a=new ua.qj;this.d.draw(a);a=a.Pb;if(0==a.length)return new p(0,
- 0,0,0);for(var b=a[0].Gs(),c=b[0].x,d=b[0].y,e=b[1].x,f=b[1].y,g=1;g<a.length;++g)b=a[g].Gs(),b[0].x<c&&(c=b[0].x),b[1].x>e&&(e=b[1].x),b[0].y<d&&(d=b[0].y),b[1].y>f&&(f=b[1].y);return new p(c,d,e-c,f-d)},rave_getDrawType:A(1006),rave_getName:A("path"),rave_intersects:function(a){var b=!1;if(this.d){var c=new ua.qj;this.d.draw(c);c=c.Pb;if(0==c.length)return!1;for(var d=na.Ks(this),e=0,f=c.length;e<f;++e){var g=c[e];d&&g.Tu();g.fl(a)&&this.Fg(a)&&(b=!b)}}return b},vb:function(a){this.Os()&&(a.setStrokeAndFill(this),
- a.drawPath(this))},Os:x("d"),ai:x("fp"),rave_initExtensions:function(){D.prototype.rave_initExtensions.call(this);var a=this.setAttribute,b=this;this.setAttribute=function(c,d){a.call(this,c,d);if(null!=d&&"d"==c){var e=b.attributes.ud(16);b.fp=null;l.isString(e)?(b.fp=""+e,b.d=new Ka(b.ai())):(b.d=new Ma,k.isInstanceOf(e,eb)&&b.d.context(e))}else null!=d&&"points"==c&&(e=b.attributes.ud(17),b.fp=""+e,b.d=new Ka(b.ai()))}},ub:q()}),Ka=h({_$functionClassMethod:function(){return A(null)},constructor:w("path"),
- tg:A(null),$e:function(){return this},draw:function(a){(new La(a)).parse(this.path)},context:function(a){return 0==arguments.length?this.tg():this.$e(a)}}),La=h({Ua:0,Va:0,Ie:0,Je:0,V:0,mc:0,fail:!1,Gn:0,Hn:-1,constructor:w("path"),parse:function(a){if(null!=a){this.Gn=this.Ua=this.Va=this.Ie=this.Je=this.V=0;this.Hn=-1;this.d=a;this.mc=a.length;for(this.path.startPath();this.V<this.mc;)switch(this.fail=!1,this.Ug(),this.vd(this.V++)){case 109:this.gr(!1);break;case 77:this.gr(!0);break;case 108:this.Re(!1,
- !0,!0);break;case 76:this.Re(!0,!0,!0);break;case 99:this.sj(!1,!1);break;case 67:this.sj(!0,!1);break;case 115:this.sj(!1,!0);break;case 83:this.sj(!0,!0);break;case 113:this.zj(!1,!1);break;case 81:this.zj(!0,!1);break;case 116:this.zj(!1,!0);break;case 84:this.zj(!0,!0);break;case 104:this.Re(!1,!1,!0);break;case 72:this.Re(!0,!1,!0);break;case 118:this.Re(!1,!0,!1);break;case 86:this.Re(!0,!0,!1);break;case 97:this.Uq(!1);break;case 65:this.Uq(!0);break;case 122:case 90:this.path.closePath();
- break;default:this.path.fail(this.V-1);return}}},Ug:function(){for(;this.V<this.mc;)switch(this.vd(this.V)){case 32:case 13:case 10:case 9:this.V++;break;default:return}},Vg:function(){this.Ug();this.V<this.mc&&44==this.vd(this.V)&&(this.V++,this.Ug())},Zu:function(){if(this.V<this.mc){var a=this.vd(this.V);(45==a||43==a)&&this.V++}},Pn:function(a){for(var b=a;this.V<this.mc;)switch(this.vd(this.V)){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.V++;b=!0;break;
- default:!a&&!b&&(this.fail=!0);return}},exponent:function(){if(this.V<this.mc){var a=this.vd(this.V);if(101==a||69==a)this.V++,this.Zu(),this.Pn(!1)}},Vt:function(a){this.Pn(!0);if(this.V<this.mc&&46==this.vd(this.V)&&(this.V++,this.Pn(!1),this.fail))return NaN;this.V<this.mc&&this.exponent();if(this.V==a)return this.fail=!0,NaN;a=parseFloat(this.d.substring(a,this.V));this.fail=isNaN(a);return a},number:function(){var a=this.V;this.Zu();return this.Vt(a)},Lt:function(){var a=this.V;this.V<this.mc&&
- 43==this.vd(this.V)&&this.V++;return this.Vt(a)},bd:function(){this.Vg();return this.number()},gh:function(a){a?this.Ug():this.Vg();return this.number()},CI:function(){this.Vg();return this.Lt()},DI:function(a){a?this.Ug():this.Vg();return this.Lt()},As:function(){this.Vg();var a=!0;if(this.V<this.mc){var b=this.vd(this.V);48==b?a=!1:49!=b&&(this.fail=!0)}else this.fail=!0;this.fail||this.V++;return a},gr:function(a){this.Ug();var b=this.number();if(!this.fail){var c=this.bd();this.fail||(a||(b+=
- this.Ua,c+=this.Va),this.path.moveTo(b,c),this.Ie=this.Ua=b,this.Je=this.Va=c,this.Vg(),this.Re(a,!0,!0))}},Re:function(a,b,c){for(var d=!0;;){var e=0,f=0;if(c){e=this.gh(d);d=!1;if(this.fail)break;a||(e+=this.Ua)}else e=this.Ua;if(b){f=this.gh(d);if(this.fail)break;a||(f+=this.Va)}else f=this.Va;this.path.lineTo(e,f);this.Ie=this.Ua=e;this.Je=this.Va=f;d=!1}},zj:function(a,b){for(var c=!0,d,e,f;;){if(b)d=2*this.Ua-this.Ie,e=2*this.Va-this.Je;else{d=this.gh(c);c=!1;if(this.fail)break;e=this.bd();
- if(this.fail)break}c=this.gh(c);if(this.fail)break;f=this.bd();if(this.fail)break;a||(c+=this.Ua,f+=this.Va);this.path.quadraticCurveTo(d,e,c,f);this.Ua=c;this.Va=f;this.Ie=d;this.Je=e;c=!1}},sj:function(a,b){for(var c=!0,d,e,f,g,h;;){if(b)d=2*this.Ua-this.Ie,e=2*this.Va-this.Je;else{d=this.gh(c);c=!1;if(this.fail)break;e=this.bd();if(this.fail)break}c=this.gh(c);if(this.fail)break;f=this.bd();if(this.fail)break;g=this.bd();if(this.fail)break;h=this.bd();if(this.fail)break;a||(d+=this.Ua,e+=this.Va,
- c+=this.Ua,f+=this.Va,g+=this.Ua,h+=this.Va);this.path.bezierCurveTo(d,e,c,f,g,h);this.Ua=g;this.Va=h;this.Ie=c;this.Je=f;c=!1}},Uq:function(a){for(var b=!0,c,d,e,f,g,h;;){d=this.DI(b);if(this.fail)break;e=this.CI();if(this.fail)break;f=this.bd();if(this.fail)break;b=this.As();if(this.fail)break;c=this.As();if(this.fail)break;g=this.bd();if(this.fail)break;h=this.bd();if(this.fail)break;a||(g+=this.Ua,h+=this.Va);if(this.Ua!=g||this.Va!=h)0==d||0==e?this.path.lineTo(g,h):this.path.arcTo(this.Ua,this.Va,
- d,e,f,b,c,g,h),this.Ie=this.Ua=g,this.Je=this.Va=h;b=!1}},vd:function(a){this.Hn!=a&&(this.Hn=a,this.Gn=this.d.charCodeAt(a));return this.Gn}}),Ma=h({_$functionClassMethod:function(){return A(null)},tg:x("Ek"),$e:function(a){this.Ek=a;return this},draw:function(a){for(var b=0,c=0,d=0,e=this.Ek.Mj,f=e.length;d<f;++d){var g=e[d];switch(g.type()){case 1:b=g.x;c=g.y;a.moveTo(g.x,g.y);break;case 2:a.lineTo(g.x,g.y);break;case 3:var h=g.radius;a.arcTo(b,c,h,h,0,!1,!1,g.x,g.y)}}},context:function(a){return 0==
- arguments.length?this.tg():this.$e(a)}}),Na=h(Ga,{rave_getDrawType:A(1010),rave_getName:A("polygon"),vb:function(a){var b=this.attributes.ud(17);null!=b&&0<b.length&&(a.setStrokeAndFill(this),a.drawPath(this))},ai:function(){return"M"+this.attributes.ud(17)+"Z"}}),Oa=h(Ga,{rave_getDrawType:A(1009),rave_getName:A("polyline"),vb:function(a){var b=this.attributes.ud(17);null!=b&&0<b.length&&(a.setStrokeAndFill(this),a.drawPath(this))},ai:function(){return"M"+this.attributes.ud(17)}}),Pa=h(D,{rave_getName:A("defs"),
- rave_getDrawType:A(1015),mi:A(!1),Lb:function(){return new p(0,0,0,0)},vb:q(),ub:q()}),Y=h(D,{Lb:function(){return new p(0,0,0,0)},rave_getSizePx:function(a){var b=0;if(a)switch(b=a.value,a.unit.type){case 2:b/=100}return b},vb:q(),ub:q(),Qk:function(a,b){var c=b.getBBox();return f.scale.linear().range([c.x,c.x+c.width]).call(this,a,-1,-1)},Rk:function(a,b){var c=b.getBBox();return f.scale.linear().range([c.y,c.y+c.height]).call(this,a,-1,-1)}}),Qa=h(Y,{rave_getName:function(){return R.LINEARGRADIENT},
- mi:A(!1),oo:function(a){var b=this.rave_getSizePx(this.Gc(4).value);return this.Qk(b,a)},getX2:function(a){var b=this.rave_getSizePx(this.Gc(5).value);return this.Qk(b,a)},po:function(a){var b=this.rave_getSizePx(this.Gc(7).value);return this.Rk(b,a)},getY2:function(a){var b=this.rave_getSizePx(this.Gc(8).value);return this.Rk(b,a)},rave_getDrawType:A(1011)}),Ra=h(Y,{rave_getName:function(){return R.RADIALGRADIENT},mi:A(!1),rave_getDrawType:A(1012),yC:function(a){var b=this.rave_getSizePx(this.Gc(9).value);
- return this.Qk(b,a)},zC:function(a){var b=this.rave_getSizePx(this.Gc(10).value);return this.Rk(b,a)},getR:function(a){var b=this.rave_getSizePx(this.Gc(6).value);a=a.getBBox();return f.scale.linear().range([0,a.width]).call(this,b,-1,-1)},KC:function(a){var b=this.rave_getSizePx(this.Gc(18).value);return this.Qk(b,a)},LC:function(a){var b=this.rave_getSizePx(this.Gc(19).value);return this.Rk(b,a)}}),Sa=h(Y,{rave_getName:A("stop"),rave_getDrawType:A(1016),oe:function(){return f.rgb(this.getAttribute("stop-color"))},
- Sk:function(){return this.rave_getSizePx(this.Gc(17).value)},lf:function(){return this.Q(41)}}),Ta=h(qa,{ex:"__rave__image",href:"",getName:A("image"),getDrawType:A(1007),vb:function(a){a.setStrokeAndFill(this);a.drawImage(this)},setAttributeNS:function(a,b,c){"href"==b&&(this.rave_setProperty(this.ex,null),this.href=null==c?"":""+c);D.prototype.setAttributeNS.call(this,a,b,c)},ZK:x("href")}),Ua=h(D,{cx:0,cy:0,rx:0,ry:0,Lb:function(){return new p(this.cx-this.rx,this.cy-this.ry,2*this.rx,2*this.ry)},
- rave_getDrawType:A(1013),rave_getName:A("ellipse"),DC:x("cx"),EC:x("cy"),aD:x("rx"),bD:x("ry"),rave_intersects:function(a){var b=0.5522848*this.rx,c=0.5522848*this.ry,d=new ua.qj;d.moveTo(this.cx-this.rx,this.cy);d.bezierCurveTo(this.cx-this.rx,this.cy-c,this.cx-b,this.cy-this.ry,this.cx,this.cy-this.ry);d.bezierCurveTo(this.cx+b,this.cy-this.ry,this.cx+this.rx,this.cy-c,this.cx+this.rx,this.cy);d.bezierCurveTo(this.cx+this.rx,this.cy+c,this.cx+b,this.cy+this.ry,this.cx,this.cy+this.ry);d.bezierCurveTo(this.cx-
- b,this.cy+this.ry,this.cx-this.rx,this.cy+c,this.cx-this.rx,this.cy);d.closePath();return d.Pb[0].fl(a)&&this.Fg(a)},vb:function(a){a.setStrokeAndFill(this);a.drawEllipse(this)},ub:function(){this.cx=this.rave_getSizePx(this.ea(9).value);this.cy=this.rave_getSizePx(this.ea(10).value);this.rx=this.rave_getSizePx(this.ea(12).value);this.ry=this.rave_getSizePx(this.ea(13).value)}}),Va=h(Aa,{mi:A(!1),rave_getDrawType:A(1014),rave_getName:A("clipPath"),vb:function(a){a.addClip(this)},ub:function(){for(var a=
- 0,b=this.rave_getChildNodes(),c=b.length;a<c;++a)b[a].ub()},rave_intersects:function(a){if(this.rave_hasChildNodes()){if("none"==this.ik(26)||"none"==this.Q(42))return!1;for(var b=0,c=this.rave_getChildNodes(),d=c.length;b<d;++b)if(c[b].rave_intersects(a))return!0}return!1}}),Xa=h(Aa,{constructor:function(a,b,c){this.Vq=new p(0,0,0,0);this.iz=c},getName:x("iz"),intersects:A(!1),getBBox:x("Vq"),Lb:x("Vq")}),Ya=h(Aa,{constructor:function(){this.am(this)},rave_getName:A("root"),rave_dispose:function(){$.INSTANCE.EG(this.rave_getOwner())},
- rave_getDrawType:A(-1),rave_intersects:A(!0),uL:x("Jb"),eH:w("Jb"),jf:x("Xz"),aH:w("Xz")}),Y=g.AbstractRenderer=h({root:null,Rn:!1,pt:0,rt:0,qt:0,isDirtyRegionEnabled:x("kb"),getDirtyRegionFlagFromRoot:function(){return this.root.rave_getProperty("rave-dirtyRegions")},getWidth:function(){return+this.root.getAttribute("width")},getHeight:function(){return+this.root.getAttribute("height")},repaint:function(){this.getDirtyRegionFlagFromRoot()?this.kb||(this.kb=new Ja):this.kb=null;var a=this.getWidth(),
- b=this.getHeight();this.kb&&(a!=this.rt||b!=this.qt)&&this.kb.forceRedraw();this.start(!this.kb||this.kb.mf);this.render(this.root);this.finish();this.rt=a;this.qt=b},constructor:w("root"),makeDirty:function(a){this.kb&&this.kb.add(a)},createEventManager:q(),registerEvent:function(a,b){this.Ik||(this.Ik=this.createEventManager());this.Ik.registerEvent(a,b)},unregisterEvent:function(a,b){this.Ik&&this.Ik.unregisterEvent(a,b)},handleDrawEvent:function(){if(1!=J.MODE&&!this.Rn){this.Rn=!0;var a=this,
- b=Date.now()-this.pt;f.timer(function(){a.repaint();a.pt=Date.now();a.Rn=!1;return!0},15<b?0:b)}},render:function(a){for(var b=a;b.rave_getParentNode();)b=b.rave_getParentNode();this.Bu(b);var c;if(this.kb&&!this.kb.mf&&(c=this.kb.BC()))this.saveGraphicsState(),this.addRectClip(c),this.clearRect(c);this.qs(a);this.kb&&(this.kb.clear(),c&&this.restoreGraphicsState())},Bu:function(a){a.jk();var b=0;a=a.rave_getChildNodes();for(var c=a.length;b<c;++b)this.Bu(a[b])},qs:function(a){if(a.mi()){this.saveGraphicsState();
- var b=a.Q(11);b&&this.Bz(b);if(b=Q.Xn(a,a.Q(44),[1014]))b.layout(),b.vb(this);this.shapeRendering(a.Q(47));b=!1;if(-1!=a.rave_getDrawType()&&(!this.kb||a.Vh||this.kb.intersects(a)))a.layout(),a.Cd()&&(a.vb(this),b=!0);if(a.rave_hasChildNodes())for(var c=0,d=a.wd(),e=d.length;c<e;++c)this.qs(d[c]);b&&a.eu(this);a.cb(!1,!1);this.restoreGraphicsState()}},start:q(),finish:q(),Bz:function(a){this.transform(a.a,a.b,a.c,a.d,a.e,a.f)},setStrokeAndFill:function(a){var b=na.Ks(a);this.fill(b);this.stroke(na.fD(a))},
- drawPath:q(),addClip:q(),drawEllipse:q(),drawRect:q(),drawLine:q(),drawText:q(),drawTextPath:q(),drawCircle:q(),push:q(),pop:q(),drawImage:q(),fill:q(),stroke:q(),transform:q(),saveGraphicsState:q(),restoreGraphicsState:q(),addRectClip:q(),clearRect:q(),shapeRendering:q()}),Za=h(Y,{constructor:function(){this.P=this.Ac().getContext("2d");this.$m=[];this.mr=[];var b=this.Ac().rave_getProperty("__rave_canvas_ratio__")||1;this.gd=new a(b,0,0,b,0,0);this.br="function"==typeof this.P.setLineDash;this.dz=
- !!e.Path2D;this.fd=!1},getWidth:function(){return this.Ac().width},getHeight:function(){return this.Ac().height},getDirtyRegionFlagFromRoot:function(){return!!this.Ac()["rave-dirtyRegions"]||this.root&&this.root.rave_hasChildNodes()&&!!this.root.rave_getChildNodes()[0].rave_getProperty("rave-dirtyRegions")},clear:function(){this.saveGraphicsState();var a=this.Ac(),b=this.P;this.setTransform(1,0,0,1,0,0);b.clearRect(0,0,a.width,a.height);this.restoreGraphicsState()},fill:w("dg"),stroke:function(a){this.uh=
- a;this.zc=!this.br&&a?a.ok:null},start:function(a){if(a){this.saveGraphicsState();a=this.Ac();var b=this.P;this.$m=[];this.setTransform(1,0,0,1,0,0);b.clearRect(0,0,a.width,a.height);this.restoreGraphicsState()}},clearRect:function(a){this.P.clearRect(a.x,a.y,a.width,a.height)},finish:q(),transform:function(b,c,d,e,f,g){this.P.transform(b,c,d,e,f,g);this.gd=this.gd.multiply(new a(b,c,d,e,f,g))},setTransform:function(b,c,d,e,f,g){this.P.setTransform(b,c,d,e,f,g);this.gd=new a(b,c,d,e,f,g)},drawEllipse:function(a){this.Zq(a.cx,
- a.cy,a.rx,a.ry)},drawRect:function(a){var b=this.hc(a.getX()),c=this.hc(a.getY()),d=this.fd?Math.round(a.getWidth()):a.getWidth(),e=this.fd?Math.round(a.getHeight()):a.getHeight(),f=a.rx;a=a.ry;var g=b+d,h=c+e,k=this.P,l=this.zc,m;0<f&&0>=a?a=f:0<a&&0>=f&&(f=a);f=Math.min(f,d/2);a=Math.min(a,e/2);if(0<f)var n=0.5522848*f,p=0.5522848*a;this.yj();!this.Qe&&l?0<f?(m=G.Yc(k,l,b+f,c,b+d-f,c),m=G.Xc(k,l,b+d-f,c,[g-f+n,c,g,c+a-p,g,c+a],m),m=G.Yc(k,l,b+d,c+a,b+d,c+e-a,m),m=G.Xc(k,l,b+d,c+e-a,[g,h-a+p,g-f+
- n,h,g-f,h],m),m=G.Yc(k,l,b+d-f,c+e,b+f,c+e,m),m=G.Xc(k,l,b+f,c+e,[b+f-n,h,b,h-a+p,b,h-a],m),m=G.Yc(k,l,b,c+e-a,b,c+a,m),G.Xc(k,l,b,c+a,[b,c+a-p,b+f-n,c,b+f,c],m)):(m=G.Yc(k,l,b,c,g,c),m=G.Yc(k,l,g,c,g,h,m),m=G.Yc(k,l,g,endY,b,h,m),G.Yc(k,l,b,xy,b,c,m)):0<f?(k.moveTo(b+f,c),k.lineTo(b+d-f,c),k.bezierCurveTo(g-f+n,c,g,c+a-p,g,c+a),k.lineTo(b+d,c+e-a),k.bezierCurveTo(g,h-a+p,g-f+n,h,g-f,h),k.lineTo(b+f,c+e),k.bezierCurveTo(b+f-n,h,b,h-a+p,b,h-a),k.lineTo(b,c+a),k.bezierCurveTo(b,c+a-p,b+f-n,c,b+f,c)):
- k.rect(b,c,d,e);this.xj()},drawLine:function(a){var b=this.hc(a.oo()),c=this.hc(a.po()),d=this.hc(a.getX2());a=this.hc(a.getY2());this.yj();var e=this.P;this.zc?G.Yc(e,this.zc,b,c,d,a):(e.moveTo(b,c),e.lineTo(d,a));this.xj()},drawPath:function(a){var b,c=a.Os();b=a.ai();var d=this.dz&&b&&!this.fd;!this.Qe&&d?b=new Path2D(b):(b=new $a(this.fd),c&&c.draw(b));this.yj();var c=this.P,e=a.Uk();null!=e&&(c.save(),c.shadowOffsetX=a.rave_getSizePx(e.Nt),c.shadowOffsetY=a.rave_getSizePx(e.Ot),c.shadowColor=
- null!=e.color?e.oe().toString():c.fillStyle,null!=e.Xj&&(c.shadowBlur=a.rave_getSizePx(e.Xj)));(!d||this.Qe)&&b.draw(c,this);this.Qe||(this.dg&&(this.Wm(this.dg,d),d&&c.fill(b)),this.uh&&(this.Xm(this.uh,d),d&&c.stroke(b)));null!=e&&c.restore();this.xj()},drawCircle:function(a){var b=a.getR();this.Zq(a.cx,a.cy,b,b)},shapeRendering:function(a){this.fd="crispEdges"===a},Zq:function(a,b,c,d){this.yj();var e=this.P,f=this.zc;if(e.ellipse&&!f)e.ellipse(a,b,c,d,0,0,2*Math.PI,!1);else if(f){var g,h=0.5522848*
- c,k=0.5522848*d;g=G.Xc(e,f,a-c,b,[a-c,b-k,a-h,b-d,a,b-d],g);g=G.Xc(e,f,a,b-d,[a+h,b-d,a+c,b-k,a+c,b],g);g=G.Xc(e,f,a+c,b,[a+c,b+k,a+h,b+d,a,b+d],g);G.Xc(e,f,a,b+d,[a-h,b+d,a-c,b+k,a-c,b],g)}else f=c,g=2*Math.PI,c!=d?(this.saveGraphicsState(),e.translate(a,b),c>d?e.scale(1,d/c):(f=d,e.scale(c/d,1)),e.arc(0,0,f,0,g,!1),this.restoreGraphicsState()):e.arc(a,b,f,0,g,!1);this.xj()},drawText:function(a){var b=a.Rs(),c=a.getX(),d=a.getY();this.P.font=a.xd().toString();this.dg&&this.Wm(this.dg,!0);var e=a.Uk();
- null!=e&&(this.P.save(),this.P.shadowOffsetX=a.rave_getSizePx(e.Nt),this.P.shadowOffsetY=a.rave_getSizePx(e.Ot),this.P.shadowColor=null!=e.color?e.oe().toString():this.P.fillStyle,null!=e.Xj&&(this.P.shadowBlur=a.rave_getSizePx(e.Xj)));this.P.fillText(b,c,d);null!=e&&this.P.restore();this.uh&&(this.Xm(this.uh,!0),this.P.strokeText(b,c,d))},vj:0,drawImage:function(a){var b=a.href;if(b&&b.length){var c=a.rave_getProperty("__rave__image");c?-1!=c&&this.cz(c,a):this.Yy(a,b)}},Yy:function(a,b){var c=this;
- c.vj++;var d=new Image;d.onload=function(){a.rave_setProperty("__rave__image",d);c.vj--;clearTimeout(c.fz);c.vj?c.fz=setTimeout(c.repaint(),50):c.repaint()};d.onerror=function(){a.rave_setProperty("__rave__image",-1);c.vj--};d.src=b;return d},cz:function(a,b){var c=b.getX(),d=b.getY(),e=b.getWidth(),f=b.getHeight(),g=this.P.globalAlpha;this.P.globalAlpha=this.dg.lf();this.P.drawImage(a,c,d,e,f);this.P.globalAlpha=g},push:function(){this.$m.push([this.Ac(),this.P]);var b=this.gd;this.saveGraphicsState();
- var c=document.createElement("canvas");c.width=this.getWidth();c.height=this.getHeight();this.jr(c);this.P=c.getContext("2d");this.gd=new a(1,0,0,1,0,0);this.transform(b.matrix.a,b.matrix.b,b.matrix.c,b.matrix.d,b.matrix.e,b.matrix.f)},pop:function(a){var b=this.Ac(),c=this.$m.pop(),d=this.gd;this.jr(c[0]);this.P=c[1];this.setTransform(1,0,0,1,0,0);this.$y(b,a);this.setTransform(d.matrix.a,d.matrix.b,d.matrix.c,d.matrix.d,d.matrix.e,d.matrix.f);this.restoreGraphicsState()},$y:function(a,b){var c=
- this.P.globalAlpha,d=this.P.globalCompositeOperation;this.P.globalAlpha=b;this.P.globalCompositeOperation="source-over";this.P.drawImage(a,0,0);this.P.globalAlpha=c;this.P.globalCompositeOperation=d},saveGraphicsState:function(){this.P.save();this.mr.push(this.gd)},restoreGraphicsState:function(){this.P.restore();this.gd=this.mr.pop()},addClip:function(a){var b=this.P;b.beginPath();this.Qe=1;a=a.rave_getChildNodes();for(var c=0;c<a.length;c++){var d=a[c];switch(d.rave_getDrawType()){case u.CIRCLE:this.drawCircle(d);
- break;case u.RECT:this.drawRect(d);break;case u.PATH:case u.POLYGON:case u.POLYLINE:this.drawPath(d);break;case u.ELLIPSE:this.drawEllipse(d)}}delete this.Qe;b.clip()},Ac:function(){return this.root.Wq},jr:function(a){this.root.Wq=a},yj:function(){!this.Qe&&this.P.beginPath();if(this.fd){this.saveGraphicsState();var a=this.gd.matrix;this.transform(1,0,0,1,Math.floor(a.e)+0.5-a.e,Math.floor(a.f)+0.5-a.f)}},xj:function(){!this.Qe&&this.Xy(this.dg,this.uh);this.fd&&this.restoreGraphicsState()},Xy:function(a,
- b){this.Wm(a);this.Xm(b)},Wm:function(a,b){if(a){var c=a.getType(),d=null;if(1001==c)for(var d=this.P.createLinearGradient(a.x1,a.y1,a.x2,a.y2),c=a.Ri,e=0;e<c.length;e++)d.addColorStop(c[e].Sk(),c[e].zr().toString());else if(1002==c){d=this.P.createRadialGradient(a.fx,a.fy,a.r/24,a.cx,a.cy,a.r);c=a.Ri;for(e=0;e<c.length;e++)d.addColorStop(c[e].Sk(),c[e].zr().toString())}else d=a.nn().toString();this.P.fillStyle=d;b||this.P.fill()}},Xm:function(a,b){if(a){var c=a.nn().toString();if(c){var d=this.P;
- d.strokeStyle=c;d.lineWidth=a.getWidth();d.lineCap=a.lineCap;d.lineJoin=a.lineJoin;d.miterLimit=a.miterLimit;this.br&&a.ok&&(d.setLineDash(a.ok),d.XL=a.Kn);b||d.stroke()}}},createEventManager:function(){var a=this.Ac();return new (h(sa,{addNativeEventListener:function(b,e){function f(a){var b=c(a);e(b);d(a,b)}a.addEventListener(b,f);return f},removeNativeEventListener:function(b,c){a.removeEventListener(b,c)}}))(this)},hc:function(a){return this.fd?Math.round(a):a}}),$a=h({constructor:function(a){this.Vd=
- [];this.YJ=a},draw:function(a,b){for(var c=this.Vd,d=0;d<c.length;d++)c[d](a,b,this)},fail:function(){this.Vd.push(function(a){a.closePath()})},startPath:function(){this.Vd.push(function(a,b,c){c.Ue=c.Ve=0})},closePath:function(){this.Vd.push(function(a){a.closePath()})},moveTo:function(a,b){this.Vd.push(function(c,d,e){c.moveTo(e.hc(a),e.hc(b));e.Ue=a;e.Ve=b})},lineTo:function(a,b){var c=this.hc(a),d=this.hc(b);this.Vd.push(function(e,f,g){f.zc?(g.qh=G.Yc(e,f.zc,g.Ue,g.Ve,c,d,g.qh),g.Ue=a,g.Ve=b):
- e.lineTo(c,d)})},bezierCurveTo:function(a,b,c,d,e,f){this.Vd.push(function(g,h,k){h.zc?(k.qh=G.Xc(g,h.zc,k.Ue,k.Ve,[a,b,c,d,e,f],k.qh),k.Ue=e,k.Ve=f):g.bezierCurveTo(a,b,c,d,e,f)})},quadraticCurveTo:function(a,b,c,d){this.Vd.push(function(e,f,g){f.zc?(g.qh=G.Xc(e,f.zc,g.Ue,g.Ve,[a,b,c,d],g.qh),g.Ue=c,g.Ve=d):e.quadraticCurveTo(a,b,c,d)})},arcTo:function(a,b,c,d,e,f,g,h,k){wa.tr(this,a,b,c,d,e,f,g,h,k)},hc:function(a){return this.fd?Math.round(a):a}}),Ja=h({mf:!0,constructor:function(){this.Xh=[]},
- PL:x("mf"),add:function(a){this.mf||(this.Xh.push(a),this.pr(a,a.rave_getProperty("__drc__")))},pr:function(a,b){var c,d,e,f;b?(c=b.x,e=b.x+b.width,d=b.y,f=b.y+b.height):(f=this.Sr(a),c=f.x,e=f.x+f.width,d=f.y,f=f.y+f.height);this.mf||(this.Eb=null,this.lb?(this.lb.left=Math.min(this.lb.left,c),this.lb.top=Math.min(this.lb.top,d),this.lb.bottom=Math.max(this.lb.bottom,f),this.lb.right=Math.max(this.lb.right,e)):this.lb=new Ja.Kq(c,e,d,f))},HC:function(a){var b=a.rave_getProperty("__drc__");b||(b=
- this.Sr(a));return b},Sr:function(a){var b=a.zg(),c=b.x,d=b.y,e=b.x+b.width,b=b.y+b.height,f=a.co(31);0<f&&(f=1.5*f/2,c-=f,d-=f,e+=f,b+=f);c=s.transformBounds(new t(c,d,e-c,b-d),a.getCTM());a.rave_setProperty("__drc__",c);return c},clear:function(){this.Eb=this.lb=null;this.mf=!1;this.Xh.length=0},forceRedraw:function(){for(var a=0,b=this.Xh,c=b.length;a<c;++a)b[a].rave_removeProperty("__drc__");this.clear();this.mf=!0},normalize:function(){for(var a=0,b=this.Xh,c=b.length;a<c;++a)this.pr(b[a],null);
- this.Xh.length=0;this.Eb=new Ja.Kq(Math.max(0,Math.floor(this.lb.left-2)),Math.max(0,Math.ceil(this.lb.right+2)),Math.max(0,Math.floor(this.lb.top-2)),Math.max(0,Math.ceil(this.lb.bottom+2)))},BC:function(){return this.lb?(this.Eb||this.normalize(),new p(this.Eb.left,this.Eb.top,this.Eb.right-this.Eb.left,this.Eb.bottom-this.Eb.top)):null},intersects:function(a){return this.lb&&(this.Eb||this.normalize(),a=this.HC(a),a.x>=this.Eb.right||a.y>=this.Eb.bottom||a.y+a.height<=this.Eb.top||a.x+a.width<=
- this.Eb.left)?!1:!0}});Ja.Kq=function(a,b,c,d){this.left=a;this.right=b;this.top=c;this.bottom=d};Ja.mJ="__drc__";Ja.qJ=2;var sa=g.EventManager=h({constructor:function(a){this.Hk={};this.Jb=a},registerEvent:function(a,b){var c=this.Hk[a],d="__rave-eventmanager"+a;if(c)b.rave_hasProperty(d)||(b.rave_setProperty(d,a),c.sr(b));else if(c=this.aB(a))this.Hk[a]=c,b.rave_setProperty(d,a),c.sr(b)},unregisterEvent:function(a,b){var c=this.Hk[a];if(c){var d="__rave-eventmanager"+a;b.rave_hasProperty(d)&&(b.rave_removeProperty(d),
- c.removeNode(b),c.eA()&&(c.dispose(),delete this.Hk[a]))}},aB:function(a){var b;if("mouseover"==a)b=this.$A(a);else if("mouseout"==a)b=this.ZA(a);else if("mouseenter"==a)b=this.XA(a);else if("mouseleave"==a)b=this.YA(a);else if("click"==a||"dblclick"==a||"mousemove"==a||"mouseup"==a||"mousedown"==a||"contextmenu"==a||"wheel"==a)b=this.fB(a);else if("touchmove"==a||"touchend"==a||"touchcancel"==a)b=this.hB(a);else if("touchstart"==a)b=this.iB(a);else if("keydown"==a||"keypress"==a||"keyup"==a)b=this.PA(a);
- return b},$A:function(a){var b,c=this,d=new sa.Pd(this,a);d.gb.push(new sa.rb("mousemove",this.addNativeEventListener("mousemove",function(d){var e=c.gf(d.clientX,d.clientY);e&&e!=b&&(d.type=a,e.dispatchEvent(d),d.type="mousemove");b=e})));d.gb.push(new sa.rb("mouseout",this.addNativeEventListener("mouseout",function(){b=null})));return d},ZA:function(a){var b,c=this,d=new sa.Pd(this,a);d.gb.push(new sa.rb("mousemove",this.addNativeEventListener("mousemove",function(d){var e=c.gf(d.clientX,d.clientY);
- b&&e!=b&&(d.type=a,b.dispatchEvent(d),d.type="mousemove");b=e})));d.gb.push(new sa.rb("mouseout",this.addNativeEventListener("mouseout",function(a){b&&(b.dispatchEvent(a),b=null)})));return d},XA:function(a){var b,c=this,d=[],e=new sa.Pd(this,a);e.gb.push(new sa.rb("mousemove",this.addNativeEventListener("mousemove",function(e){var f=c.gf(e.clientX,e.clientY);if(f){if(f!=b){var g=d.indexOf(f);if(0<=g)d.length=g+1;else{e.type=a;for(var g=e.bubbles,h=e.bubbles=!1,k=d.length-1;0<=k;--k){var l=d[k];if(sa.li(l,
- f)){d.length=k+1;h=[];k=f;do h.push(k),k.dispatchEvent(e);while((k=k.rave_getParentNode())!=l);for(l=h.length-1;0<=l;--l)d.push(h[l]);h=!0;break}}if(!h){d.length=0;k=f;do d.push(k),k.dispatchEvent(e);while(k=k.rave_getParentNode());d.reverse()}e.bubbles=g;e.type="mousemove"}}}else b&&(d.length=0);b=f})));e.gb.push(new sa.rb("mouseout",this.addNativeEventListener("mouseout",function(){b=null;d.length=0})));return e},YA:function(a){var b,c=this,d=[],e=new sa.Pd(this,a);e.gb.push(new sa.rb("mousemove",
- this.addNativeEventListener("mousemove",function(e){var f=c.gf(e.clientX,e.clientY);if(f!=b){if(b){var g=d.indexOf(f);if(0<=g){for(var h=d.length-1;h>g;--h)d[h].dispatchEvent(e);d.length=g+1}else{e.type=a;for(var g=e.bubbles,k=e.bubbles=!1,h=d.length-1;0<=h;--h){var l=d[h];if(f&&sa.li(l,f)){d.length=h+1;h=[];k=f;do h.push(k);while((k=k.rave_getParentNode())!=l);for(l=h.length-1;0<=l;--l)d.push(h[l]);k=!0;break}l.dispatchEvent(e)}if(!k&&f){k=f;do d.push(k);while(k=k.rave_getParentNode());d.reverse()}e.bubbles=
- g;e.type="mousemove"}}else{k=f;do d.push(k);while(k=k.rave_getParentNode());d.reverse()}b=f}})));e.gb.push(new sa.rb("mouseout",this.addNativeEventListener("mouseout",function(c){b&&(c.type=a,b.dispatchEvent(c),b=null,d.length=0,c.type="mouseout")})));return e},fB:function(a){var b=this;a=new sa.Pd(this,a);a.gb.push(new sa.rb(a.Kc,this.addNativeEventListener(a.Kc,function(a){var c=b.gf(a.clientX,a.clientY);c&&c.dispatchEvent(a)})));return a},PA:function(a){var b=this;a=new sa.Pd(this,a);a.gb.push(new sa.rb(a.Kc,
- this.addNativeEventListener(a.Kc,function(a){b.Jb.root.dispatchEvent(a)})));return a},iB:function(a){var b=this;a=new sa.Pd(this,a);a.gb.push(new sa.rb(a.Kc,this.addNativeEventListener(a.Kc,function(a){for(var c=0,d=a.changedTouches,e=d.length;c<e;++c){var f=d[c];(f=b.gf(f.clientX,f.clientY))&&f.dispatchEvent(a)}})));return a},hB:function(a){function b(a){var c=0;a=a.changedTouches;for(var e=a.length;c<e;++c)delete d[a[c].identifier]}var c=this,d={};a=new sa.Pd(this,a);a.gb.push(new sa.rb(a.Kc,this.addNativeEventListener(a.Kc,
- function(a){for(var b=0,c=a.changedTouches,e=c.length;b<e;++b){var f=d[c[b].identifier];f&&f.dispatchEvent(a)}})));a.gb.push(new sa.rb("touchstart",this.addNativeEventListener("touchstart",function(a){var b=0;a=a.changedTouches;for(var e=a.length;b<e;++b){var f=a[b],g=c.gf(f.clientX,f.clientY);g&&(d[f.identifier]=g)}})));a.gb.push(new sa.rb("touchend",this.addNativeEventListener("touchend",b)));a.gb.push(new sa.rb("touchcancel",this.addNativeEventListener("touchcancel",b)));return a},gf:function(a,
- b){var c=this.Jb.root,d=c.rave_getOwner().getBoundingClientRect();return c.rave_intersection(a-d.left,b-d.top)},addNativeEventListener:q(),removeNativeEventListener:q()});sa.li=function(a,b){for(var c=b;c=c.rave_getParentNode();)if(c==a)return!0;return!1};sa.rb=function(a,b){this.Kc=a;this.OE=b};sa.Pd=h({nodeCount:0,constructor:function(a,b){this.gb=[];this.UB=a;this.Kc=b},dispose:function(){for(var a=0,b=this.gb,c=b.length;a<c;++a){var d=b[a];this.UB.removeNativeEventListener(d.Kc,d.OE)}},sr:function(){this.nodeCount++},
- removeNode:function(){this.nodeCount--},eA:function(){return 0==this.nodeCount}});var bb=h({constructor:function(){this.qo=new cb;this.tA=new db},Ko:function(a,b,c){return 1E3==a&&(a=this.qo.get(b),this.li(a,c))?a:null},li:function(a,b){if(a){var c=a;do if(c==b)return!0;while(c=c.rave_getParentNode())}return!1},AE:function(a,b,c){var d;if(1001==a&&(a=this.tA.get(b))){b=0;for(var e=a.length;b<e;++b){var f=a[b];this.li(f,c)&&(d||(d=[]),d.push(f))}}return d},Oj:function(a,b,c){if(null!=b&&(this.qo.add(""+
- b,a),c)){b=0;a=a.rave_getChildNodes();for(c=a.length;b<c;++b){var d=a[b];this.Oj(d,d.getId(),!0)}}},Sl:function(a,b,c){this.qo.Rl(""+b,a);if(c&&a.rave_hasChildNodes()){b=0;a=a.rave_getChildNodes();for(c=a.length;b<c;++b){var d=a[b];this.Sl(d,d.getId(),!0)}}},wz:function(a,b,c,d,e,f){switch(a){case 1E3:2E3==b&&"id"==c&&(null!=e&&this.Sl(f,e,!1),this.Oj(f,d,!1));break;case 1001:2E3==b?"id"==c&&this.Oj(f,d,!1):2001!=b&&3E3==b&&(a=f.getId(),null!=a&&this.Oj(f,a,!0));break;case 1002:2E3==b?"id"==c&&this.Sl(f,
- e,!1):2001!=b&&3E3==b&&(a=f.getId(),this.Sl(f,a,!0))}}}),Wa=h({fg:!0,constructor:function(){this.Jh={}},QL:x("fg"),add:function(a,b){if(!this.fg||null==a)return null;var c=this.get(a);c||(c=this.factory(b),this.Jh[a]=c);return c},$J:function(a,b){if(!this.fg||!a)return null;for(var c=0,d=a.length;c<d;++c)this.add(a[c],b);return a},get:function(a){return!this.fg||null==a?null:this.Jh[a]},Rl:function(a){this.fg&&null!=a&&delete this.Jh[a]},BG:function(a,b){if(this.fg&&a)for(var c=0,d=a.length;c<d;++c)this.Rl(a[c],
- b)},remove:function(a,b){return 2==arguments.length&&(null==a||"string"===typeof a)?this.Rl(a,b):this.BG(a,b)}}),cb=h(Wa,{constructor:function(){this.factory=gb()}}),db=h(Wa,{constructor:function(){this.factory=function(){return[]}},add:function(a,b){var c=Wa.prototype.add.call(this,a,b);null!=a&&c.push(b);return c},Rl:function(a,b){var c=this.get(a);if(c){var d=c.indexOf(b);0<=d&&c.splice(d,1)}}}),fb=g.RaveCSSEngine=h({constructor:function(){this.Yg=[]},importCSS:function(a){return(a=F.parse(a))?
- this.importStyleSheet(a)?a:null:null},importStyleSheets:function(a){if(a){for(var b=!0,c=0,d=a.length;c<d;++c)this.importStyleSheet(a[c])||(b=!1);return b}return!1},importStyleSheet:function(a){return a&&!(-1<this.Yg.indexOf(a))?(X.INSTANCE.add(a),this.Yg.push(a),!0):!1},styleSheets:x("Yg"),removeAllStyleSheets:function(){this.Yg.length=0;X.INSTANCE.clear()},removeStyleSheet:function(a){var b=this.Yg.indexOf(a);return-1<b?(this.Yg.splice(b,1),X.INSTANCE.remove(a)):!1}});(function(){var a=f.configuration,
- b=new la;a.setSceneNodeFactory("canvas",b);a.setSceneNodeFactory("http://www.w3.org/1999/xhtml:CANVAS",function(a,c,d){a=$.INSTANCE.jo(d);if(!a){var e=new Ya("canvas",d);e.getBoundingClientRect=function(){return d.getBoundingClientRect()};e.Wq=d;e.rave_setOwner(d);e.id="__rave_canvas_root__";d.rave_setProperty("__rave_canvas_root__",e);var f=e.computeCTM;e.computeCTM=function(a,b){var c=f(a,b);if(d&&b){var e=d.getBoundingClientRect();c.e+=e.left;c.f+=e.top}return c};var g=new bb(e);e.eH(new Za(e));
- e.aH(g);a={Oc:function(){return e},jf:function(){return g}};$.INSTANCE.sz(a)}return b("canvas",c,a.Oc())});var g=a.getQueryEngine(null),g=new ka(g);a.setQueryEngine(null,g);a.setQueryEngine("http://www.w3.org/1999/xhtml",g);g=new ha(g);a.setQueryEngine("canvas",g);a.setQueryEngine("http://www.w3.org/1999/xhtml:CANVAS",g);var h=D.prototype.dispatchEvent;D.prototype.dispatchEvent=function(a){var b=c(a),e=h.call(this,b);d(a,b);return e};f.css=new fb;Object.defineProperty(B.prototype,"length",{get:function(){return this.Ib.length}});
- f.canvas.fixPixelDensity=function(a){return a.each(function(){var a=this.getBoundingClientRect(),b=this.getContext("2d"),c=a.width,a=a.height,d=(e.devicePixelRatio||1)/(b.ON||b.gM||b.hM||b.mM||b.bK||1);this.width=c*d;this.height=a*d;this.style.width=c+"px";this.style.height=a+"px";b.setTransform(d,0,0,d,0,0);b.save();this.rave_setProperty("__rave_canvas_ratio__",d)})}})() // This is the end of the factory method defined in the header. Added only during a full compiled JS build.
- return rave;
- }));})();
|