/*
 *    Gordon: An open source Flash™ runtime written in pure JavaScript
 *
 *    Copyright (c) 2010 Tobias Schneider
 *    Gordon is freely distributable under the terms of the MIT license.
 */
(function(ba){function sa(){this.list=this.next=null}function ta(){this.n=this.b=this.e=0;this.t=null}function fa(e,i,l,d,c,r){this.BMAX=16;this.N_MAX=288;this.status=0;this.root=null;this.m=0;var a=new Array(this.BMAX+1),t,x,h,j,o,m,u,f=new Array(this.BMAX+1),n,g,k,q=new ta,p=new Array(this.BMAX);j=new Array(this.N_MAX);var s,w=new Array(this.BMAX+1),v,B,A;A=this.root=null;for(o=0;o<a.length;o++)a[o]=0;for(o=0;o<f.length;o++)f[o]=0;for(o=0;o<p.length;o++)p[o]=null;for(o=0;o<j.length;o++)j[o]=0;for(o=
0;o<w.length;o++)w[o]=0;t=i>256?e[256]:this.BMAX;n=e;g=0;o=i;do{a[n[g]]++;g++}while(--o>0);if(a[0]==i){this.root=null;this.status=this.m=0}else{for(m=1;m<=this.BMAX;m++)if(a[m]!=0)break;u=m;if(r<m)r=m;for(o=this.BMAX;o!=0;o--)if(a[o]!=0)break;h=o;if(r>o)r=o;for(v=1<<m;m<o;m++,v<<=1)if((v-=a[m])<0){this.status=2;this.m=r;return}if((v-=a[o])<0){this.status=2;this.m=r}else{a[o]+=v;w[1]=m=0;n=a;g=1;for(k=2;--o>0;)w[k++]=m+=n[g++];n=e;o=g=0;do if((m=n[g++])!=0)j[w[m]++]=o;while(++o<i);i=w[h];w[0]=o=0;
n=j;g=0;j=-1;s=f[0]=0;k=null;for(B=0;u<=h;u++)for(e=a[u];e-- >0;){for(;u>s+f[1+j];){s+=f[1+j];j++;B=(B=h-s)>r?r:B;if((x=1<<(m=u-s))>e+1){x-=e+1;for(k=u;++m<B;){if((x<<=1)<=a[++k])break;x-=a[k]}}if(s+m>t&&s<t)m=t-s;B=1<<m;f[1+j]=m;k=new Array(B);for(x=0;x<B;x++)k[x]=new ta;A=A==null?(this.root=new sa):(A.next=new sa);A.next=null;A.list=k;p[j]=k;if(j>0){w[j]=o;q.b=f[j];q.e=16+m;q.t=k;m=(o&(1<<s)-1)>>s-f[j];p[j-1][m].e=q.e;p[j-1][m].b=q.b;p[j-1][m].n=q.n;p[j-1][m].t=q.t}}q.b=u-s;if(g>=i)q.e=99;else if(n[g]<
l){q.e=n[g]<256?16:15;q.n=n[g++]}else{q.e=c[n[g]-l];q.n=d[n[g++]-l]}x=1<<u-s;for(m=o>>s;m<B;m+=x){k[m].e=q.e;k[m].b=q.b;k[m].n=q.n;k[m].t=q.t}for(m=1<<u-1;(o&m)!=0;m>>=1)o^=m;for(o^=m;(o&(1<<s)-1)!=w[j];){s-=f[j];j--}}this.m=f[1];this.status=v!=0&&h!=1?1:0}}}function Ba(){if(ja.length==oa)return-1;return ja.charCodeAt(oa++)&255}function G(e){for(;ca<e;){ga|=Ba()<<ca;ca+=8}}function I(e){return ga&Ca[e]}function E(e){ga>>=e;ca-=e}function ka(e,i,l){var d,c,r;if(l==0)return 0;for(r=0;;){G(M);c=R.list[I(M)];
for(d=c.e;d>16;){if(d==99)return-1;E(c.b);d-=16;G(d);c=c.t[I(d)];d=c.e}E(c.b);if(d==16){N&=X-1;e[i+r++]=S[N++]=c.n}else{if(d==15)break;G(d);J=c.n+I(d);E(d);G(aa);c=pa.list[I(aa)];for(d=c.e;d>16;){if(d==99)return-1;E(c.b);d-=16;G(d);c=c.t[I(d)];d=c.e}E(c.b);G(d);da=N-c.n-I(d);for(E(d);J>0&&r<l;){J--;da&=X-1;N&=X-1;e[i+r++]=S[N++]=S[da++]}}if(r==l)return l}T=-1;return r}function Da(e,i,l){var d;d=ca&7;E(d);G(16);d=I(16);E(16);G(16);if(d!=(~ga&65535))return-1;E(16);J=d;for(d=0;J>0&&d<l;){J--;N&=X-1;
G(8);e[i+d++]=S[N++]=I(8);E(8)}if(J==0)T=-1;return d}function Ea(e,i,l){if(la==null){var d,c=new Array(288);for(d=0;d<144;d++)c[d]=8;for(;d<256;d++)c[d]=9;for(;d<280;d++)c[d]=7;for(;d<288;d++)c[d]=8;ma=7;d=new fa(c,288,257,ua,va,ma);if(d.status!=0){alert("HufBuild error: "+d.status);return-1}la=d.root;ma=d.m;for(d=0;d<30;d++)c[d]=5;zip_fixed_bd=5;d=new fa(c,30,0,wa,xa,zip_fixed_bd);if(d.status>1){la=null;alert("HufBuild error: "+d.status);return-1}ya=d.root;zip_fixed_bd=d.m}R=la;pa=ya;M=ma;aa=zip_fixed_bd;
return ka(e,i,l)}function Fa(e,i,l){var d,c,r,a,t,x,h,j=new Array(316);for(d=0;d<j.length;d++)j[d]=0;G(5);x=257+I(5);E(5);G(5);h=1+I(5);E(5);G(4);d=4+I(4);E(4);if(x>286||h>30)return-1;for(c=0;c<d;c++){G(3);j[za[c]]=I(3);E(3)}for(;c<19;c++)j[za[c]]=0;M=7;c=new fa(j,19,19,null,null,M);if(c.status!=0)return-1;R=c.root;M=c.m;a=x+h;for(d=r=0;d<a;){G(M);t=R.list[I(M)];c=t.b;E(c);c=t.n;if(c<16)j[d++]=r=c;else if(c==16){G(2);c=3+I(2);E(2);if(d+c>a)return-1;for(;c-- >0;)j[d++]=r}else{if(c==17){G(3);c=3+I(3);
E(3)}else{G(7);c=11+I(7);E(7)}if(d+c>a)return-1;for(;c-- >0;)j[d++]=0;r=0}}M=Ga;c=new fa(j,x,257,ua,va,M);if(M==0)c.status=1;if(c.status!=0)return-1;R=c.root;M=c.m;for(d=0;d<h;d++)j[d]=j[d+x];aa=Ha;c=new fa(j,h,0,wa,xa,aa);pa=c.root;aa=c.m;if(aa==0&&x>257)return-1;if(c.status!=0)return-1;return ka(e,i,l)}function Ia(){if(S==null)S=new Array(2*X);ca=ga=N=0;T=-1;ha=false;J=da=0;R=null}function Ja(e,i,l){var d,c;for(d=0;d<l;){if(ha&&T==-1)return d;if(J>0){if(T!=Ka)for(;J>0&&d<l;){J--;da&=X-1;N&=X-1;
e[i+d++]=S[N++]=S[da++]}else{for(;J>0&&d<l;){J--;N&=X-1;G(8);e[i+d++]=S[N++]=I(8);E(8)}if(J==0)T=-1}if(d==l)return d}if(T==-1){if(ha)break;G(1);if(I(1)!=0)ha=true;E(1);G(2);T=I(2);E(2);R=null;J=0}switch(T){case 0:c=Da(e,i+d,l-d);break;case 1:c=R!=null?ka(e,i+d,l-d):Ea(e,i+d,l-d);break;case 2:c=R!=null?ka(e,i+d,l-d):Fa(e,i+d,l-d);break;default:c=-1;break}if(c==-1){if(ha)return 0;return-1}d+=c}return d}function Aa(e){var i,l,d;Ia();ja=e;oa=0;i=new Array(1024);for(e="";(l=Ja(i,0,i.length))>0;)for(d=
0;d<l;d++)e+=String.fromCharCode(i[d]);ja=null;return e}var z={qualityValues:{LOW:"low",AUTO_LOW:"autolow",AUTO_HIGH:"autohigh",MEDIUM:"medium",HIGH:"high",BEST:"best"},scaleValues:{SHOW_ALL:"showall",NO_ORDER:"noorder",EXACT_FIT:"exactfit"},validSignatures:{SWF:"FWS",COMPRESSED_SWF:"CWS"},readyStates:{LOADING:0,UNINITIALIZED:1,LOADED:2,INTERACTIVE:3,COMPLETE:4},tagCodes:{END:0,SHOW_FRAME:1,DEFINE_SHAPE:2,PLACE_OBJECT:4,REMOVE_OBJECT:5,DEFINE_BITS:6,DEFINE_BUTTON:7,JPEG_TABLES:8,SET_BACKGROUND_COLOR:9,
DEFINE_FONT:10,DEFINE_TEXT:11,DO_ACTION:12,DEFINE_FONT_INFO:13,DEFINE_SOUND:14,START_SOUND:15,DEFINE_BUTTON_SOUND:17,SOUND_STREAM_HEAD:18,SOUND_STREAM_BLOCK:19,DEFINE_BITS_LOSSLESS:20,DEFINE_BITS_JPEG2:21,DEFINE_SHAPE2:22,DEFINE_BUTTON_CXFORM:23,PROTECT:24,PLACE_OBJECT2:26,REMOVE_OBJECT2:28,DEFINE_SHAPE3:32,DEFINE_TEXT2:33,DEFINE_BUTTON2:34,DEFINE_BITS_JPEG3:35,DEFINE_BITS_LOSSLESS2:36,DEFINE_EDIT_TEXT:37,DEFINE_SPRITE:39,FRAME_LABEL:43,SOUND_STREAM_HEAD2:45,DEFINE_MORPH_SHAPE:46,DEFINE_FONT2:48,
EXPORT_ASSETS:56,IMPORT_ASSETS:57,ENABLE_DEBUGGER:58,DO_INIT_ACTION:59,DEFINE_VIDEO_STREAM:60,VIDEO_FRAME:61,DEFINE_FONT_INFO2:62,ENABLE_DEBUGGER2:64,SCRIPT_LIMITS:65,SET_TAB_INDEX:66,FILE_ATTRIBUTES:69,PLACE_OBJECT3:70,IMPORT_ASSETS2:71,DEFINE_FONT_ALIGN_ZONES:73,CSM_TEXT_SETTINGS:74,DEFINE_FONT3:75,SYMBOL_CLASS:76,METADATA:77,DEFINE_SCALING_GRID:78,DO_ABC:82,DEFINE_SHAPE4:83,DEFINE_MORPH_SHAPE2:84,DEFINE_SCENE_AND_FRAME_LABEL_DATA:86,DEFINE_BINARY_DATA:87,DEFINE_FONT_NAME:88,START_SOUND2:89,DEFINE_BITS_JPEG4:90,
DEFINE_FONT4:91},tagNames:{},tagHandlers:{},fillStyleTypes:{SOLID:0,LINEAR_GRADIENT:16,RADIAL_GRADIENT:18,FOCAL_RADIAL_GRADIENT:19,REPEATING_BITMAP:64,CLIPPED_BITMAP:65,NON_SMOOTHED_REPEATING_BITMAP:66,NON_SMOOTHED_CLIPPED_BITMAP:67},spreadModes:{PAD:0,REFLECT:1,REPEAT:2},interpolationModes:{RGB:0,LINEAR_RGB:1},styleChangeStates:{MOVE_TO:1,LEFT_FILL_STYLE:2,RIGHT_FILL_STYLE:4,LINE_STYLE:8,NEW_STYLES:16},buttonStates:{UP:1,OVER:2,DOWN:4,HIT:8},mouseButtons:{LEFT:1,RIGHT:2,MIDDLE:3},textStyleFlags:{HAS_FONT:8,
HAS_COLOR:4,HAS_XOFFSET:1,HAS_YOFFSET:2},actionCodes:{PLAY:6,STOP:7,NEXT_FRAME:4,PREVIOUS_FRAME:5,GOTO_FRAME:129,GOTO_LABEL:140,WAIT_FOR_FRAME:138,GET_URL:131,STOP_SOUNDS:9,TOGGLE_QUALITY:8,SET_TARGET:139},urlTargets:{SELF:"_self",BLANK:"_blank",PARENT:"_parent",TOP:"_top"},bitmapFormats:{COLORMAPPED:3,RGB15:4,RGB24:5}};(function(){var e=z.tagCodes,i=z.tagNames,l=z.tagHandlers;for(var d in e){var c=e[d];i[c]=d;l[c]="_handle"+d.toLowerCase().replace(/(^|_)([a-z])/g,function(r,a,t){return t.toUpperCase()})}})();
var O=ba.document,Y=Array.prototype.push;(function(){function e(c,r){c=c+r;return i(r.length)+c+i(l(c))}function i(c){return String.fromCharCode(c>>24&255,c>>16&255,c>>8&255,c&255)}function l(c){for(var r=-1,a=b=0,t=c.length,x=0;x<t;x++){a=(r^c.charCodeAt(x))&255;b=d[a];r=r>>>8^b}return r^-1}z.inflate=function(c,r,a){var t=new z.Stream(c);c="\u0000"+t.seek(2).readString(t._length-6);t=t.readUI32(true)+65536;r="data:image/png;base64,"+btoa("\u0089PNG\r\n\u001a\n"+e("IHDR",i(r/4)+i(1)+"\u0008\u0006\u0000\u0000\u0000")+
e("IDAT","x\u009c\u0000\u0001\u0000\u00fe\u00ff"+c+i(t))+e("IEND",""));var x=new Image;x.src=r;x.onload=function(){var h=O.createElement("canvas");h.width=x.width;h.height=x.height;ctx=h.getContext("2d");ctx.drawImage(x,0,0);a(ctx.getImageData(0,0,x.width,x.height).data)}};var d=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,
4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,
112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,
1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,
1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,
1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]})();(function(){var e=
z.readyStates,i={id:null,width:0,height:0,autoplay:true,loop:true,quality:z.qualityValues.HIGH,scale:z.scaleValues.SHOW_ALL,bgcolor:null,renderer:null,onprogress:function(){},onreadystatechange:function(){},onenterframe:function(){}};z.Movie=function(l,d){var c=this;c.url=l;for(var r in i)c[r]=undefined!=d[r]?d[r]:i[r];if(!l)throw new Error("URL of a SWF movie file must be passed as first argument");c._startTime=+new Date;c._readyState=e.UNINITIALIZED;c._changeReadyState(c._readyState);var a=new XMLHttpRequest;
a.open("GET",l,false);a.overrideMimeType("text/plain; charset=x-user-defined");a.onreadystatechange=function(){a.readyState==2&&c._changeReadyState(e.LOADING)};a.send(null);if(200!=a.status)throw new Error("Unable to load "+l+" status: "+a.status);c._changeReadyState(e.LOADED);var t=c._dictionary={},x=c._timeline=[];c._framesLoaded=0;c.isPlaying=false;c.currentFrame=-1;new z.Parser(a.responseText,function(h){switch(h.type){case "header":for(var j in h)c["_"+j]=h[j];j=c._frameSize;h=j.right-j.left;
j=j.bottom-j.top;if(!(c.width&&c.height)){c.width=h;c.height=j}var o=c.renderer=c.renderer||z.SvgRenderer;c._renderer=new o(c.width,c.height,h,j,c.quality,c.scale,c.bgcolor);c.totalFrames=c._frameCount;break;case "frame":if((j=h.bgcolor)&&!c.bgcolor){c._renderer.setBgcolor(j);c.bgcolor=j}(j=h.action)&&eval("obj.action = function(){ ("+j+"(t)); }");x.push(h);h=++c._framesLoaded;c.onprogress(~~(h*100/c.totalFrames));if(h==1){if(c.id){h=O.getElementById(c.id);h.innerHTML="";h.appendChild(c._renderer.node);
c._changeReadyState(e.INTERACTIVE)}c.autoplay?c.play():c.goTo(0)}else h==c.totalFrames&&c._changeReadyState(e.COMPLETE);break;default:c._renderer.define(h);t[h.id]=h}})};z.Movie.prototype={_changeReadyState:function(l){this._readyState=l;this.onreadystatechange(l);return this},play:function(){var l=this,d=l.currentFrame,c=1E3/l._frameRate;l.isPlaying=true;if(d<l.totalFrames-1)if(l._framesLoaded>=d)l.goTo(d+1);else c=0;else if(l.loop)l.goTo(0);else return l.stop();setTimeout(function(){l.isPlaying&&
l.play()},c);return l},next:function(){var l=this,d=l.currentFrame;l.goTo(d<l.totalFrames-1?d+1:0);return l},goTo:function l(d){var c=this;l.caller!==c.play&&c.stop();if(c.currentFrame!=d){if(d<c.currentFrame)c.currentFrame=-1;for(;c.currentFrame!=d;){var r=c._timeline[++c.currentFrame],a=r.displayList,t=c._renderer;for(var x in a){var h=a[x];h?t.place(h):t.remove(x)}c.onenterframe(d);(r=r.action)&&r()}}return c},stop:function(){this.isPlaying=false;return this},prev:function(){var l=this,d=l.currentFrame;
l.goTo(d>0?d-1:l.totalFrames-1);return l},rewind:function(){this.goTo(0);return this},getURL:function(l,d){var c=z.urlTargets;switch(d){case c.BLANK:ba.open(l);break;case c.PARENT:parent.location.href=l;break;case c.TOP:top.location.href=l;break;default:location.href=l}return this},toggleQuality:function l(){var d=l._orig,c=this,r=c.quality;if(d){r=c.quality=d;l._orig=null}else c.quality=l._orig=r;c._renderer.setQuality(r);return c}}})();(function(){var e=!!ba.JSON;if(O&&ba.Worker){for(var i=/(^|.*\/)gordon.(min\.)?js$/,
l=O.getElementsByTagName("script"),d="gordon.min.js",c=l.length;c--;){var r=i.exec(l[c].src);if(r){d=r[0];break}}z.Parser=function(f,n){var g=this;g.data=f;g.ondata=n;n=g._worker=new Worker(d);n.onerror=function(){};n.onmessage=function(k){g.ondata(e?JSON.parse(k.data):k.data)};n.postMessage(f)}}else{var a=currFrame=null,t={},x=0,h=null;z.Parser=function(f,n){if(n)this.ondata=n;a=new z.Stream(f);f=a.readString(3);n=z.validSignatures;if(f!=n.SWF&&f!=n.COMPRESSED_SWF)throw new Error(url+" is not a SWF movie file");
var g=a.readUI8(),k=a.readUI32();f==n.COMPRESSED_SWF&&a.decompress();this.ondata({type:"header",version:g,fileLength:k,frameSize:a.readRect(),frameRate:a.readUI16()/256,frameCount:a.readUI16()});f=z.tagHandlers;n=z.tagCodes.SHOW_FRAME;do{currFrame={type:"frame",displayList:{}};do{k=a.readUI16();g=k>>6;k=k&63;if(k>=63)k=a.readUI32();var q=f[g];this[q]?this[q](a.offset,k):a.seek(k)}while(g&&g!=n)}while(g)};z.Parser.prototype={ondata:function(f){postMessage(e?JSON.stringify(f):f)},_handleShowFrame:function(){this.ondata(currFrame);
return this},_handleDefineShape:function(){var f=a.readUI16(),n=a.readRect(),g=this,k=g._readFillStyles(),q=g._readLineStyles(),p=a.readUB(4),s=a.readUB(4),w=[],v=true,B=[],A=rightFill=fsOffset=lsOffset=0,F={},Z={},K=line=0,ea={},U=z.styleChangeStates,P=y1=x2=y2=0,V=countLineChanges=0,W=true;do{var C=a.readUB(1),L=null;if(C){var La=a.readBool(),Q=a.readUB(4)+2,qa=cy=null;P=x2;y1=y2;if(La)if(a.readBool()){x2+=a.readSB(Q);y2+=a.readSB(Q)}else if(a.readBool())y2+=a.readSB(Q);else x2+=a.readSB(Q);else{qa=
P+a.readSB(Q);cy=y1+a.readSB(Q);x2=qa+a.readSB(Q);y2=cy+a.readSB(Q)}w.push({i:K++,f:v,x1:P,y1:y1,cx:qa,cy:cy,x2:x2,y2:y2});v=false}else{if(w.length){Y.apply(B,w);if(A){v=fsOffset+A;var D=F[v];D||(D=F[v]=[]);w.forEach(function(H){H=j(H);var $=H.x1,ia=H.y1;H.i=K++;H.x1=H.x2;H.y1=H.y2;H.x2=$;H.y2=ia;D.push(H)})}if(rightFill){v=fsOffset+rightFill;(D=Z[v])||(D=Z[v]=[]);Y.apply(D,w)}if(line){v=lsOffset+line;(D=ea[v])||(D=ea[v]=[]);Y.apply(D,w)}w=[];v=true}if(L=a.readUB(5)){if(L&U.MOVE_TO){Q=a.readUB(5);
x2=a.readSB(Q);y2=a.readSB(Q)}if(L&U.LEFT_FILL_STYLE){A=a.readUB(p);V++}if(L&U.RIGHT_FILL_STYLE){rightFill=a.readUB(p);V++}if(L&U.LINE_STYLE){line=a.readUB(s);countLineChanges++}if(A&&rightFill||V+countLineChanges>2)W=false;if(L&U.NEW_STYLES){Y.apply(k,g._readFillStyles());Y.apply(q,g._readLineStyles());p=a.readUB(4);s=a.readUB(4);fsOffset=k.length;lsOffset=q.length;W=false}}}}while(C||L);a.align();p=null;var na="s_"+f;if(W){w=A||rightFill;p=o(B,w?k[fsOffset+w-1]:null,q[lsOffset+line-1]);p.id=na;
p.bounds=n}else{B=[];for(K=k.length;K--;){w=K+1;D=F[w];fillEdges=[];D&&Y.apply(fillEdges,D);(D=Z[w])&&Y.apply(fillEdges,D);var ra={};fillEdges.forEach(function(H){var $=m(H.x1,H.y1),ia=ra[$];ia||(ia=ra[$]=[]);ia.push(H)});A=[];W=fillEdges.length;for(s=0;s<W&&!A[W-1];s++){C=fillEdges[s];if(!C.c){w=[];U=m(C.x1,C.y1);V={};do{w.push(C);V[C.i]=true;C=m(C.x2,C.y2);if(C==U){for(C=w.length;C--;)w[C].c=true;Y.apply(A,w);break}D=ra[C];if(!(D&&D.length))break;v=fillEdges[s+1];P=null;for(C=0;D[C];C++){L=D[C];
if(L==v&&!L.c){D.splice(C,1);P=L}}if(!P)for(C=0;D[C];C++){L=D[C];L.c||V[L.i]||(P=L)}C=P}while(C)}}if(A.length){p=o(A,k[K]);p.index=A.pop().i;B.push(p)}}k=[];for(K=q.length;K--;)if(A=ea[K+1]){p=o(A,null,q[K]);p.index=A.pop().i;k.push(p)}q=B.concat(k);q.sort(function(H,$){return H.index-$.index});if(q.length>1){q.forEach(function(H,$){H.id=na+"_"+($+1)});p={type:"shape",id:na,bounds:n,segments:q}}else{delete p.index;p.id=na;p.bounds=n}}g.ondata(p);t[f]=p;return g},_readFillStyles:function(){var f=a.readUI8();
if(255==f)f=a.readUI16();var n=[];for(f=f;f--;){var g=a.readUI8(),k=z.fillStyleTypes;switch(g){case k.SOLID:n.push(a.readRGB());break;case k.LINEAR_GRADIENT:case k.RADIAL_GRADIENT:g={type:g==k.LINEAR_GRADIENT?"linear":"radial",matrix:a.readMatrix(),spread:a.readUB(2),interpolation:a.readUB(2),stops:[]};var q=a.readUB(4);k=g.stops;for(q=q;q--;)k.push({offset:a.readUI8()/255,color:a.readRGB()});n.push(g);break;case k.REPEATING_BITMAP:case k.CLIPPED_BITMAP:g=a.readUI16();g=t[g];k=a.readMatrix();if(g){k.scaleX=
k.scaleX;k.scaleY=k.scaleY;k.skewX=k.skewX;k.skewY=k.skewY;n.push({type:"pattern",image:g,matrix:k})}else n.push(null);break}}return n},_readLineStyles:function(){var f=a.readUI8();if(255==f)f=a.readUI16();var n=[];for(f=f;f--;)n.push({width:a.readUI16(),color:a.readRGB()});return n},_handlePlaceObject:function(f,n){var g=a.readUI16(),k=a.readUI16();g={object:t[g].id,depth:k,matrix:a.readMatrix()};if(a.offset-f!=n){f="x_"+ ++x;this.ondata({type:"filter",id:f,cxform:a.readCxform()});g.filter=f}currFrame.displayList[k]=
g;return this},_handleRemoveObject:function(){a.readUI16();var f=a.readUI16();currFrame.displayList[f]=null;return this},_handleDefineBits:function(f,n,g){f=a.readUI16();n=this._readJpeg(n-2);if(g)g=u(n.data);else{g=h.substr(0,h.length-2);g=u(g+n.data.substr(2))}g={type:"image",id:"i_"+f,uri:"data:image/jpeg;base64,"+g,width:n.width,height:n.height};this.ondata(g);t[f]=g;return this},_readJpeg:function(f){for(var n=a.offset,g=p=0,k=0;k<f;k+=2){var q=a.readUI16(true);a.readUI16(true);if(q==65472){a.seek(1);
var p=a.readUI16(true);g=a.readUI16(true);break}}a.seek(n,true);return{data:a.readString(f),width:g,height:p}},_handleDefineButton:function(){var f=a.readUI16(),n={};do{var g=a.readUI8();if(g){var k=a.readUI16(),q=a.readUI16();k={object:t[k].id,depth:q,matrix:a.readMatrix()};for(var p=1;p<=8;){if(g&p){var s=n[p];s||(s=n[p]={});s[q]=k}p<<=1}}}while(g);n={type:"button",id:"b_"+f,states:n,action:this._readAction()};this.ondata(n);t[f]=n;return this},_readAction:function(){var f=[];do{var n=a.readUI8(),
g=n>128?a.readUI16():0,k=z.actionCodes;switch(n){case k.PLAY:f.push("t.play()");break;case k.STOP:f.push("t.stop()");break;case k.NEXT_FRAME:f.push("t.next()");break;case k.PREVIOUS_FRAME:f.push("t.prev()");break;case k.GOTO_FRAME:g=a.readUI16();f.push("t.goTo("+g+")");break;case k.GET_URL:g=a.readString();k=a.readString();f.push("t.getURL('"+g+"', '"+k+"')");break;case k.TOGGLE_QUALITY:f.push("t.toggleQuality()");break;default:a.seek(g)}}while(n);return"function(t){"+f.join(";")+"}"},_handleJpegTables:function(f,
n){h=a.readString(n);return this},_handleSetBackgroundColor:function(){currFrame.bgcolor=a.readRGB();return this},_handleDefineFont:function(){var f=a.readUI16(),n=a.readUI16()/2;a.seek(n*2-2);var g=z.styleChangeStates,k=[];for(n=n;n--;){var q=a.readUB(4);a.readUB(4);var p=y=0,s=[];do{var w=a.readUB(1),v=null;if(w){var B=a.readBool(),A=a.readUB(4)+2;if(B)if(a.readBool()){p+=a.readSB(A);y+=a.readSB(A);s.push("L",p,-y)}else if(a.readBool()){y+=a.readSB(A);s.push("V",-y)}else{p+=a.readSB(A);s.push("H",
p)}else{B=p+a.readSB(A);var F=y+a.readSB(A);p=B+a.readSB(A);y=F+a.readSB(A);s.push("Q",B,-F,p,-y)}}else if(v=a.readUB(5)){if(v&g.MOVE_TO){A=a.readUB(5);p=a.readSB(A);y=a.readSB(A);s.push("M",p,-y)}if(v&g.LEFT_FILL_STYLE||v&g.RIGHT_FILL_STYLE)a.readUB(q)}}while(w||v);a.align();k.push({commands:s.join(" ")})}g={type:"font",id:"f_"+f,glyphs:k};this.ondata(g);t[f]=g;return this},_handleDefineText:function(){var f=a.readUI16(),n={type:"text",id:"t_"+f,bounds:a.readRect(),matrix:a.readMatrix(),strings:[]},
g=a.readUI8(),k=a.readUI8(),q=fill=null,p=y=size=0,s=null,w=n.strings;do{var v=a.readUB(8);if(v)if(v>>7){if(s=v&15){var B=z.textStyleFlags;if(s&B.HAS_FONT)q=a.readUI16();if(s&B.HAS_COLOR)fill=a.readRGB();if(s&B.HAS_XOFFSET)p=a.readSI16();if(s&B.HAS_YOFFSET)y=a.readSI16();if(s&B.HAS_FONT)size=a.readUI16()}s={font:t[q].id,fill:fill,x:p,y:y,size:size};w.push(s)}else{var A=v&127;B=s.entries=[];for(A=A;A--;){var F={};F.index=a.readUB(g);F.advance=a.readSB(k);B.push(F)}a.align()}}while(v);this.ondata(n);
t[f]=n;return this},_handleDoAction:function(){currFrame.action=this._readAction();return this},_handleDefineFontInfo:function(){var f=a.readUI16(),n=t[f],g=n.info={name:a.readString(a.readUI8()),isSmall:a.readBool(3),isShiftJis:a.readBool(),isAnsi:a.readBool(),isItalic:a.readBool(),isBold:a.readBool(),codes:[]},k=a.readBool();g=g.codes;for(var q=n.glyphs.length;q--;){var p=k?a.readUI16():a.readUI8();g.push(p)}this.ondata(n);t[f]=n;return this},_handleDefineBitsJpeg2:function(f,n){return this._handleDefineBits(f,
n,true)},_handleDefineBitsLossless:function(f,n){var g=a.readUI16(),k=a.readUI8(),q=a.readUI16(),p=a.readUI16(),s=z.bitmapFormats;if(k==s.COLORMAPPED)var w=a.readUI8();a.seek(2);f=Aa(a.readString(n-(a.offset-f)));switch(k){case s.COLORMAPPED:var v=[];for(k=0;k<=w;k++)v.push(f.substr(k*3,3));v=[];for(k=0;k<q*p;k++)v.push(f[k]);case s.RGB15:case s.RGB24:v=[];for(k=0;f[k];k++)v.push(f[++k],f[++k],f[++k]);break}q={type:"image",id:"i_"+g,data:v.join(""),width:q,height:p};this.ondata(q);t[g]=q;return this},
_handleDefineShape2:function(){return this._handleDefineShape.apply(this,arguments)},_handleDefineButtonCxform:function(){var f=a.readUI16(),n="x_"+ ++x;this.ondata({id:n,type:"filter",cxform:a.readCxform()});var g=t[f];g.filter=n;this.ondata(g);t[f]=g;return this},_handleProtect:function(f,n){a.seek(n);return this}};function j(f){return{i:f.i,f:f.f,x1:f.x1,y1:f.y1,cx:f.cx,cy:f.cy,x2:f.x2,y2:f.y2}}function o(f,n,g){var k=y1=x2=y2=0,q=[];f.forEach(function(p,s){k=p.x1;y1=p.y1;if(k!=x2||y1!=y2||!s)q.push("M",
k,y1);x2=p.x2;y2=p.y2;if(null==p.cx||null==p.cy)if(x2==k)q.push("V",y2);else y2==y1?q.push("H",x2):q.push("L",x2,y2);else q.push("Q",p.cx,p.cy,x2,y2)});return{type:"shape",commands:q.join(" "),fill:n,stroke:g}}function m(f,n){return(f+5E4)*1E5+n}function u(f){var n=0,g=prevBits=null;chars=[];for(var k=0;f[k];k++){n=k%3;g=f.charCodeAt(k)&255;switch(n){case 0:chars.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>2]);break;case 1:chars.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(prevBits&
3)<<4|g>>4]);break;case 2:chars.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(prevBits&15)<<2|g>>6],"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g&63]);break}prevBits=g}if(n)n==1&&chars.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(prevBits&15)<<2],"=");else chars.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(prevBits&3)<<4],"==");return chars.join("")}ba.onmessage=function(f){new z.Parser(f.data)}}})();
(function(){z.Stream=function(e){var i=this;i.offset=0;i._buffer=e;i._length=i._buffer.length;i._bitBuffer=null;i._bitOffset=8};z.Stream.prototype={decompress:function(){var e=this;e.offset+=2;var i=e._buffer.substr(0,e.offset),l=e._buffer.substr(e.offset);l=Aa(l);e._buffer=i+l;e._length=e._buffer.length;return e},readByteAt:function(e){return this._buffer.charCodeAt(e)&255},readNumber:function(e,i){var l=this,d=0;if(i)for(i=e;i--;)d=(d<<8)+l.readByteAt(l.offset++);else{var c=l.offset;for(i=c+e;i>
c;)d=(d<<8)+l.readByteAt(--i);l.offset+=e}l.align();return d},readSNumber:function(e,i){i=this.readNumber(e,i);e=e*8;if(i>>e-1)i-=Math.pow(2,e);return i},readSI8:function(){return this.readSNumber(1)},readSI16:function(e){return this.readSNumber(2,e)},readSI32:function(e){return this.readSNumber(4,e)},readUI8:function(){return this.readNumber(1)},readUI16:function(e){return this.readNumber(2,e)},readUI24:function(e){return this.readNumber(3,e)},readUI32:function(e){return this.readNumber(4,e)},readFixed:function(){return this._readFixedPoint(32,
16)},_readFixedPoint:function(e,i){return this.readSB(e)*Math.pow(2,-i)},readFixed8:function(){return this._readFixedPoint(16,8)},readFloat:function(){return this._readFloatingPoint(8,23)},_readFloatingPoint:function(e,i){var l=(1+e+i)/8,d=this,c=0;if(l>4){for(var r="",a=Math.ceil(l/4);a--;)for(var t=d.offset,x=t+(l>=4?4:l%4);x>t;){r+=String.fromCharCode(d.readByteAt(--x));l--;d.offset++}a=new z.Stream(r);l=a.readUB(1);r=a.readUB(e);d=0;for(t=i;t>=0;t--)if(a.readBool())d+=Math.pow(2,t-1)}else{l=d.readUB(1);
r=d.readUB(e);d=d.readUB(i)}if(l||r||d){e=Math.pow(2,e);a=~~((e-1)/2);i=Math.pow(2,i);i=d/i;if(a)c=a<e?Math.pow(2,r-a)*(1+i):i?NaN:Infinity;else if(i)c=Math.pow(2,1-a)*i;if(c!=NaN&&l)c*=-1}return c},readFloat16:function(){return this._readFloatingPoint(5,10)},readDouble:function(){return this._readFloatingPoint(11,52)},readEncodedU32:function(){for(var e=0,i=5;i--;){var l=this.readByteAt(this.offset++);e=(e<<7)+(l&127);if(!(l&128))break}return e},readSB:function(e){var i=this.readUB(e);if(i>>e-1)i-=
Math.pow(2,e);return i},readUB:function(e){var i=this,l=0;for(e=e;e--;){if(8==i._bitOffset){i._bitBuffer=i.readUI8();i._bitOffset=0}l=(l<<1)+(i._bitBuffer&128>>i._bitOffset?1:0);i._bitOffset++}return l},readFB:function(e){return this._readFixedPoint(e,16)},readString:function(e){var i=this,l=i._buffer;if(undefined!=e){l=l.substr(i.offset,e);i.offset+=e}else{e=i._length-i.offset;l=[];for(e=e;e--;){var d=i.readByteAt(i.offset++);if(d)l.push(String.fromCharCode(d));else break}l=l.join("")}return l},
readBool:function(e){return!!this.readUB(e||1)},readLanguageCode:function(){return this.readUI8()},readRGB:function(){return{red:this.readUI8(),green:this.readUI8(),blue:this.readUI8()}},readRGBA:function(){var e=this.readRGB();e.alpha=this.readUI8()/256;return e},readARGB:function(){var e=this.readUI8()/256,i=this.readRGB();i.alpha=e;return i},readRect:function(){var e=this;numBits=e.readUB(5);rect={left:e.readSB(numBits),right:e.readSB(numBits),top:e.readSB(numBits),bottom:e.readSB(numBits)};e.align();
return rect},readMatrix:function(){var e=this;if(e.readBool())var i=e.readUB(5),l=e.readFB(i),d=e.readFB(i);else l=d=1;if(e.readBool()){i=e.readUB(5);var c=e.readFB(i),r=e.readFB(i)}else c=r=0;i=e.readUB(5);matrix={scaleX:l,scaleY:d,skewX:c,skewY:r,moveX:e.readSB(i),moveY:e.readSB(i)};e.align();return matrix},readCxform:function(){return this._readCxf()},readCxformA:function(){return this._readCxf(true)},_readCxf:function(e){var i=this;hasAddTerms=i.readBool();hasMultTerms=i.readBool();numBits=i.readUB(4);
if(hasMultTerms)var l=i.readSB(numBits)/256,d=i.readSB(numBits)/256,c=i.readSB(numBits)/256,r=e?i.readSB(numBits)/256:1;else l=d=c=r=1;if(hasAddTerms){var a=i.readSB(numBits),t=i.readSB(numBits),x=i.readSB(numBits);e=e?i.readSB(numBits):0}else a=t=x=e=0;l={multR:l,multG:d,multB:c,multA:r,addR:a,addG:t,addB:x,addA:e};i.align();return l},seek:function(e,i){this.offset=(i?0:this.offset)+e;return this},align:function(){this._bitBuffer=null;this._bitOffset=8;return this}}})();(function(){function e(h){if("string"==
typeof h)return x.test(h)?h:null;return"rgb("+[h.red,h.green,h.blue]+")"}function i(h){return"matrix("+[h.scaleX,h.skewX,h.skewY,h.scaleY,h.moveX,h.moveY]+")"}function l(h){return[h.multR,0,0,0,h.addR,0,h.multG,0,0,h.addG,0,0,h.multB,0,h.addB,0,0,0,h.multA,h.addA].toString()}function d(h){return{object:h.object,depth:h.depth,matrix:h.matrix,cxform:h.cxform}}var c=z.buttonStates,r={};for(var a in c)r[c[a]]=a.toLowerCase();var t=0;z.SvgRenderer=function(h,j,o,m,u,f,n){var g=this;g.width=h;g.height=
j;g.viewWidth=o;g.viewHeight=m;g.quality=u||z.qualityValues.HIGH;g.scale=f||z.scaleValues.SHOW_ALL;g.bgcolor=n;u=g.node=g._createElement("svg");attr={width:h,height:j};if(o&&m&&(h!=o||j!=m)){attr.viewBox=[0,0,o,m].toString();if(f==z.scaleValues.EXACT_FIT)attr.preserveAspectRatio="none"}g._setAttributes(u,attr);g._defs=u.appendChild(g._createElement("defs"));g._stage=u.appendChild(g._createElement("g"));g.setQuality(g.quality);n&&g.setBgcolor(n);g._dictionary={};g._displayList={};g._eventTarget=null};
z.SvgRenderer.prototype={_createElement:function(h){return O.createElementNS("http://www.w3.org/2000/svg",h)},_setAttributes:function(h,j,o){for(var m in j){var u=j[m];m=m=="className"?"class":m.replace(/_/g,"-");o?h.setAttributeNS(o,m,u):h.setAttribute(m,u)}return h},setQuality:function(h){var j=z.qualityValues,o=this;switch(h){case j.LOW:var m={shape_rendering:"crispEdges",image_rendering:"optimizeSpeed",text_rendering:"optimizeSpeed",color_rendering:"optimizeSpeed"};break;case j.AUTO_LOW:case j.AUTO_HIGH:m=
{shape_rendering:"auto",image_rendering:"auto",text_rendering:"auto",color_rendering:"auto"};break;case j.MEDIUM:m={shape_rendering:"optimizeSpeed",image_rendering:"optimizeSpeed",text_rendering:"optimizeLegibility",color_rendering:"optimizeSpeed"};break;case j.HIGH:m={shape_rendering:"geometricPrecision",image_rendering:"auto",text_rendering:"geometricPrecision",color_rendering:"optimizeQuality"};break;case j.BEST:m={shape_rendering:"geometricPrecision",image_rendering:"optimizeQuality",text_rendering:"geometricPrecision",
color_rendering:"optimizeQuality"};break}o._setAttributes(o._stage,m);o.quality=h;return o},setBgcolor:function(h){var j=this;if(!j.bgcolor){j.node.style.background=e(h);j.bgcolor=h}return j},define:function(h){var j=h.type,o=this,m=null,u=h.id,f={id:u},n=o._dictionary,g=n[u];if(!g||!g.node){switch(j){case "shape":if(j=h.segments){m=o._createElement("g");j.forEach(function(F){m.appendChild(o._buildShape(F))})}else m=o._buildShape(h);break;case "image":m=o._createElement("image");var k=h.width,q=h.height;
if(h.data){j=new z.Stream(h.data);g=k*q*4;var p=O.createElement("canvas");p.width=k;p.height=q;for(var s=p.getContext("2d"),w=s.createImageData(k,q),v=w.data,B=0;B<g;B+=4){v[B]=j.readUI8();v[B+1]=j.readUI8();v[B+2]=j.readUI8();v[B+3]=255}s.putImageData(w,0,0);j=p.toDataURL()}else j=h.uri;o._setAttributes(m,{href:j},"http://www.w3.org/1999/xlink");f.width=k;f.height=q;break;case "button":m=o._createElement("g");g=o._createElement("g");j=h.states;for(k in j){p=k==c.HIT?g:m.appendChild(o._createElement("g"));
o._setAttributes(p,{className:r[k],opacity:k==c.UP?1:0});s=h.filter;w=states[k];for(q in w){if(s){v=d(w[q]);v.filter=s}else v=w[q];p.appendChild(o._buildCharacter(v))}}m.appendChild(g);break;case "font":if(j=h.info){m=o._createElement("font");k=m.appendChild(o._createElement("font-face"));o._setAttributes(k,{font_family:j.name});var A=j.codes;h.glyphs.forEach(function(F,Z){var K=m.appendChild(o._createElement("glyph"));o._setAttributes(K,{unicode:String.fromCharCode(A[Z]),d:F.commands})})}break;case "text":m=
o._createElement("g");j=h.strings;j.forEach(function(F){var Z=m.appendChild(o._createElement("text")),K=[],ea=o._dictionary[F.font].object.info,U=ea.codes,P=[],V=F.x;F.entries.forEach(function(W){K.push(V);P.push(String.fromCharCode(U[W.index]));V+=W.advance});o._setAttributes(Z,{font_family:ea.name,font_size:F.size,fill:e(F.fill),x:K.join(" "),y:F.y});Z.appendChild(O.createTextNode(P.join("")))});f.transform=i(h.matrix);break;case "filter":m=o._createElement("filter");if(j=h.cxform){k=m.appendChild(o._createElement("feColorMatrix"));
o._setAttributes(k,{type:"matrix",values:l(j)})}break}if(m){o._setAttributes(m,f);o._defs.appendChild(m)}n[u]={object:h,node:m}}else n[u].object=h;return o},_buildShape:function(h){var j=this,o=j._createElement("path"),m=h.fill,u=h.stroke,f={d:h.commands};if(m){var n=m.type;if(m.type){m=j._defs.appendChild(j._buildFill(m));h=n[0]+h.id.substr(1);j._setAttributes(m,{id:h});f.fill="url(#"+h+")"}else f.fill=e(m);f.fill_rule="evenodd"}else f.fill="none";if(u){f.stroke=e(u.color);f.stroke_width=Math.max(u.width,
1);f.stroke_linecap=f.stroke_linejoin="round"}j._setAttributes(o,f);return o},_buildFill:function(h){var j=h.type,o=this,m={};switch(j){case "linear":case "radial":var u=o._createElement(j+"Gradient");m.gradientUnits="userSpaceOnUse";m.gradientTransform=i(h.matrix);if("linear"==j){m.x1=-819.2;m.x2=819.2}else{m.cx=m.cy=0;m.r=819.2}j=z.spreadModes;switch(h.spread){case j.REFLECT:m.spreadMethod="reflect";break;case j.REPEAT:m.spreadMethod="repeat";break}if(h.interpolation==z.interpolationModes.LINEAR_RGB)m.color_interpolation=
"linearRGB";h.stops.forEach(function(n){var g=u.appendChild(o._createElement("stop"));o._setAttributes(g,{offset:n.offset,stop_color:e(n.color)})});break;case "pattern":u=o._createElement("pattern");j=u.appendChild(o._createElement("use"));var f=h.image;o._setAttributes(j,{href:"#"+f.id},"http://www.w3.org/1999/xlink");m.patternUnits="userSpaceOnUse";m.patternTransform=i(h.matrix);m.width=f.width;m.height=f.height;break}o._setAttributes(u,m);return u},place:function(h){var j=h.depth,o=this,m=o._displayList,
u=m[j];if(!u||u.character!==h){var f=o._buildCharacter(h),n=o._stage;u&&u.character!==h&&o.remove(j);if(1==j)n.insertBefore(f,n.firstChild);else{u=0;for(var g in m)if(g>j){u=g;break}u?n.insertBefore(f,m[u].node):n.appendChild(f)}m[j]={character:h,node:f}}return o},_buildCharacter:function(h){var j=this,o=j._dictionary,m=o[h.object],u=m.object;switch(u.type){case "button":m=m.node.cloneNode(true);var f={};for(var n in r)f[n]=m.getElementsByClassName(r[n])[0];var g=z.mouseButtons,k=false,q=function(){if(!(t&
g.LEFT)){if(k){s(c.OVER);u.action()}else s(c.UP);O.removeEventListener("mouseup",q,false);j.eventTarget=null}return false};o=f[c.HIT];o.onmouseover=function(w){k=true;j.eventTarget||(t&g.LEFT?this.onmousedown(w):s(c.OVER));return false};o.onmouseout=function(){k=false;j.eventTarget||s(this==j.eventTarget?c.OVER:c.UP);return false};o.onmousedown=function(){if(t&g.LEFT){s(c.DOWN);O.addEventListener("mouseup",q,false);j.eventTarget=this}return false};o.onmouseup=function(){s(c.OVER);return false};var p=
c.UP,s=function(w){j._setAttributes(f[p],{opacity:0});j._setAttributes(f[w],{opacity:1});p=w};break;default:m=j._createElement("use");j._setAttributes(m,{href:"#"+u.id},"http://www.w3.org/1999/xlink")}(n=h.filter)&&j._setAttributes(m,{filter:"url(#"+n+")"});j._setAttributes(m,{transform:i(h.matrix)});return m},remove:function(h){var j=this._displayList,o=j[h].node;o.parentNode.removeChild(o);delete j[h];return this}};var x=/^([\da-f]{1,2}){3}$/i;if(O){O.addEventListener("mousedown",function(h){t|=
h.button},true);O.addEventListener("mouseup",function(h){t^=h.button},true)}})();var X=32768,Ka=0,Ga=9,Ha=6,S,N,la=null,ya,ma,ga,ca,T,ha,J,da,R,pa,M,aa,ja,oa,Ca=new Array(0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535),ua=new Array(3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0),va=new Array(0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99),wa=new Array(1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,
2049,3073,4097,6145,8193,12289,16385,24577),xa=new Array(0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13),za=new Array(16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15);ba.Gordon=z})(self);
