From 780410233d8e40c5825209719434595c292d68c4 Mon Sep 17 00:00:00 2001 From: Tobias von Klipstein Date: Tue, 25 Sep 2012 13:40:08 +0200 Subject: [PATCH 1/3] Add bonsai.js (worker environment) to CDN --- ajax/libs/bonsai/0.2.0/bonsai.min.js | 255 ++++++++++++++++++++++++ ajax/libs/bonsai/0.2/bonsai.min.js | 255 ++++++++++++++++++++++++ ajax/libs/bonsai/0.3.0/bonsai.min.js | 276 ++++++++++++++++++++++++++ ajax/libs/bonsai/0.3.1/bonsai.min.js | 276 ++++++++++++++++++++++++++ ajax/libs/bonsai/0.3.2/bonsai.min.js | 281 +++++++++++++++++++++++++++ ajax/libs/bonsai/0.3.3/bonsai.min.js | 280 ++++++++++++++++++++++++++ ajax/libs/bonsai/0.3.4/bonsai.min.js | 277 ++++++++++++++++++++++++++ ajax/libs/bonsai/0.3.5/bonsai.min.js | 277 ++++++++++++++++++++++++++ ajax/libs/bonsai/0.3.6/bonsai.min.js | 278 ++++++++++++++++++++++++++ ajax/libs/bonsai/0.3/bonsai.min.js | 278 ++++++++++++++++++++++++++ ajax/libs/bonsai/package.json | 21 ++ 11 files changed, 2754 insertions(+) create mode 100644 ajax/libs/bonsai/0.2.0/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.2/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.0/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.1/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.2/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.3/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.4/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.5/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3.6/bonsai.min.js create mode 100644 ajax/libs/bonsai/0.3/bonsai.min.js create mode 100644 ajax/libs/bonsai/package.json diff --git a/ajax/libs/bonsai/0.2.0/bonsai.min.js b/ajax/libs/bonsai/0.2.0/bonsai.min.js new file mode 100644 index 000000000..a76b2e1cb --- /dev/null +++ b/ajax/libs/bonsai/0.2.0/bonsai.min.js @@ -0,0 +1,255 @@ +/* +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ +(function(){function oa(a){if(!(this instanceof oa))return new oa(a);this.name="ParserError";this.message=a[0]}function vb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function oe(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function pe(a){var b=this.type,c=qe[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function re(){this._isStopped=!0}function Pc(a, +b){var c,d,e,f=[],g=!0,h=[],i=a&&a.length||0,b=b||M;if(0===i)return[];for(var k,l,m=0;m>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function wb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,k,l,m=pa(e,f,g);i=ba(e,f,g);k=(i+m)/2;if(m==i)h=i=0;else{l=m-i;i=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function Qc(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*ac(d,b,a+1/3),e=255*ac(d,b,a),a=255*ac(d,b,a-1/3);return da(c)<<24|da(e)<<16|da(a)<<8}function bc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function Rc(a){this.pendingAssets=a}function Sc(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return se.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function Tc(a){return{setup:function(b){var c= +Uc(b[a]);b[a+"_r"]=c.r();b[a+"_g"]=c.g();b[a+"_b"]=c.b();b[a+"_a"]=c.a();delete b[a]},step:function(b){b[a]=""+new Uc.RGBAColor(b[a+"_r"],b[a+"_g"],b[a+"_b"],b[a+"_a"]);delete b[a+"_r"];delete b[a+"_g"];delete b[a+"_b"];delete b[a+"_a"]}}}function Vc(a){return{setup:function(b){var c=b[a].stops,d;this[a]=b[a].clone();b[a].matrix&&(b[a+"MatrixA"]=b[a].matrix.a,b[a+"MatrixB"]=b[a].matrix.b,b[a+"MatrixC"]=b[a].matrix.c,b[a+"MatrixD"]=b[a].matrix.d,b[a+"MatrixTX"]=b[a].matrix.tx,b[a+"MatrixTY"]=b[a].matrix.ty); +"linear-gradient"===b[a].type?isNaN(b[a].direction)||(b[a+"Direction"]=b[a].direction):(this[a+"RadiusUnit"]=((""+b[a].radius).match(/\D$/)||[""])[0],b[a+"Radius"]=parseFloat(b[a].radius));for(var e=0,f=c.length;ea?b:a}function we(a){if(dc(a)){var a=+a%(2*xe)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix= +!0}}function ye(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function ze(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function Ae(){return this.matrix.tx}function Be(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function Ce(){return this.matrix.ty}function De(a){this._matrix.ty= +1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Ee(){return this._scaleX}function Fe(a){dc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Ge(){return this._scaleY}function He(a){dc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ie(){return(this.scaleX+this.scaleY)/2}function Je(a){this.scaleX=this.scaleY=a}function Ke(a){this._opacity=1a?0:+a}function Le(){return this._origin.clone()}function Me(a){var b= +this._origin;b.x=a.x;b.y=a.y}function Ne(){return this._cursor}function Oe(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Pe(){return this._filters.slice(0)}function Qe(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof ad.BaseFilter?a:new ad[a]})):this._filters.length=0}function Re(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&E.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&E.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Se(){return this._clip}function Te(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid mask"); +b.stage&&E.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&E.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Ue(){return this._mask}function E(){Object.defineProperty(this,"id",{value:Ve++});this._attributes=Object.create(null,{_owner:F(this),_matrix:F(new We),matrix:G(ye,ze,!0),_filters:F([],!0),filters:G(Pe,Qe,!0),_opacity:F(1,!0),opacity:G(Xe,Ke,!0),_origin:F(new Ye),origin:G(Le,Me,!0),rotation:G(ve,we,!0),_scaleX:F(1,!0),_scaleY:F(1, +!0),scale:G(Ie,Je,!0),scaleX:G(Ee,Fe,!0),scaleY:G(Ge,He,!0),x:G(Ae,Be,!0),y:G(Ce,De,!0),clip:G(Se,Re,!0),_clip:F(null,!0),_clipId:F(null,!0),mask:G(Ue,Te,!0),_mask:F(null,!0),_maskId:F(null,!0),cursor:G(Ne,Oe,!0),_cursor:F(null,!0),fillRule:F("inherit",!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule"};this._mutatedAttributes=ra.mixin({},this._renderAttributes)}function ec(){bd.call(this)} +function cd(a,b,c){fc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=dd.mixin({},this._domAttributes);this._mutatedCssStyles=dd.mixin({},this._cssStyles)})}function ed(a,b,c,d){fd.call(this);this.root=a;this._children=[];b&&a.loadSubMovie(b,c,d,this)}function Ze(){return this._textFillColor} +function $e(a){this._textFillColor=gd(a,this._textFillColor)}function af(){return this._textFillGradient}function bf(a){a&&(this._textFillGradient=cf(a))}function df(){return this._fontFamily}function ef(a){this._fontFamily=a?a.fontId||a:null}function ff(){return this._glyphx}function gf(a){Ga.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function hf(){return this._glyphy}function jf(a){Ga.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function kf(a){this._textLineColor=gd(a,this._textLineColor)} +function hd(a){id.call(this);Object.defineProperties(this._attributes,{text:D(a||"",!0,!0),fontSize:D(null,!0,!0),fontFamily:sa(df,ef,!0),_fontFamily:D(null,!0),fontStyle:D(null,!0,!0),fontWeight:D(null,!0,!0),_textFillColor:D(null,!0),textFillColor:sa(Ze,$e,!0),_textFillGradient:D(null,!0),textFillGradient:sa(af,bf,!0),textFillOpacity:D(1,!0,!0),_glyphx:D(null,!0),_glyphy:D(null,!0),glyphx:sa(ff,gf,!0),glyphy:sa(hf,jf,!0),textLineOpacity:D(1,!0,!0),_textLineColor:D(null,!0),textLineColor:sa(lf,kf, +!0),textLineWidth:D(0,!0,!0),selectable:D(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",lineOpacity:"textLineOpacity",lineColor:"_textLineColor",lineWidth:"textLineWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function mf(){return this._textFillColor} +function nf(a){this._textFillColor=jd(a,this._textFillColor)}function of(){return this._textFillGradient}function pf(a){a&&(this._textFillGradient=qf(a))}function rf(){return this._fontFamily}function sf(a){this._fontFamily=a?a.fontId||a:null}function tf(a){this._textLineColor=jd(a,this._textLineColor)}function uf(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function vf(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function wf(a){1<=a&&(this._miterLimit=+a)}function xf(a){this._owner.clear(); +this._owner.addChild(new gc(a))}function yf(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c()};d.onerror=c;d.send(null)}var zb={},zb={png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap",gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};zb.module$exports&&(zb=zb.module$exports);var Ab={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]): +(this.isLoading=!0,a(b,function(){c&&(d.isWaiting?f.push(c):c());d.isLoading=!1;e.length&&d.load.apply(d,e.shift())}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a, +4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0=== +a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a, +2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0===a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a- +c)*Math.PI/b)+1},bounceIn:function(a){return 1-Bb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a,2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Bb.bounceIn(2*a)/2:Bb.bounceOut(2*a-1)/2+0.5}};va.module$exports=Bb;va.module$exports&&(va=va.module$exports);var Pa={},Jd={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a, +b){Jd[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};Pa.module$exports=Jd;Pa.module$exports&&(Pa=Pa.module$exports);var ga={},Kd=S,fg=Math.cos,gg=Math.sin;vb.prototype={clone:function(){return new vb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+ +a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new Kd(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b= +fg(a),a=gg(a);return this.concat(new vb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new Kd(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};ga.module$exports=vb;ga.module$exports&&(ga=ga.module$exports);var Cb={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new oe, +needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null),plugins:[]}}};Cb.module$exports&&(Cb=Cb.module$exports);var Qa={},qe={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Qa.module$exports=function(a){a.emitOn=pe;a.stop=re;return a};Qa.module$exports&&(Qa=Qa.module$exports);var wa={},Ea=Na,M={arcBy:{attributes:["P","N","B","B", +"P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"],shorthands:["M"]},verticalLineBy:{attributes:["N"], +shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]},smoothQuadraticCurveTo:{attributes:["P"], +shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},Ld={},J;for(J in M)M.hasOwnProperty(J)&&M[J].shorthands.forEach(function(a){Ld[a]=J});var Md={};for(J in M)M.hasOwnProperty(J)&&(Md[J]=M[J].shorthands[0]);var Db=[];for(J in M)M.hasOwnProperty(J)&&(Db.push(J),Db=Db.concat(M[J].shorthands));wa.module$exports={validTokens:Db,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(Ld[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return Pc(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=Qc(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return da(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=W(a);return new wb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ba(255,pa(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ba(255, +pa(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ba(255,pa(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ba(1,pa(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?pa(0,ba(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ba(1,b*c+d-c/2):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(),d= +a.length;d--;)c._setPointAlongRange(a[d],lg(),b);return c};r.clone=function(a){return a?W(+this).set(a):W(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[da(360*this.h()),da(100*this.s())+"%",da(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};W.parse=function(a,b){var c,a=""+a;a in Pd&&(a=Pd[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=Qc(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:W.parse(b)};A.module$exports=W;A.module$exports&&(A=A.module$exports);var w={},mg=o,rc="".split,sc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof bc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new bc(b,c));for(var d=this._events||(this._events={}),e=-1,f=rc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new bc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},i=-1,k=rc.call(a," "),l=k.length;++id.length)return this;c=Sd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone(); +e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};tc=K.propertiesFromAbsoluteArc=function(a,b,c,d,e,f,g,h,i){var f=!!f,g=!!g,k=e*Y/180,l=Gb(k),m=ha(c,2),P=ha(d,2),k=Ib(k),j=(a-h)/2,o=(b-i)/2,n=l*j+k*o,q=-k*j+l*o,p;p=ha(n,2);var r=ha(q,2),j=ha(j,2)/m+ha(o,2)/P;if(1e?(c/=d,e=r+p/ha(c,2),d=Hb(e),c*=d, +q=f=0):(p=(f===g?-1:1)*Hb(e),f=p*c*q/d,q=-p*d*n/c);n=f*l-q*k+(a+h)/2;l=f*k+q*l+(b+i)/2;b=Td((b-l)/d);i=Td((i-l)/d);b=ab&&(b=2*Y+b);0>i&&(i=2*Y+i);g&&b>i&&(b-=2*Y);!g&&i>b&&(i-=2*Y);return{cx:n,cy:l,rx:c,ry:d,startAngle:b,endAngle:i}};Sd=K.splitAbsoluteCubicBezier=function(a,b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e); +return{left:[a,f,b,e],right:[e,g,c,d]}};K.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};Lb.mixin(cc.prototype,Eg);za.module$exports=cc;za.module$exports&&(za=za.module$exports);var L={},Fg=w,ra=o,We=ga,Ye=S,Xd=ka,Gg=za,ad=ja,G=ra.descriptorAccessor, +F=ra.descriptorData,Hg=ra.getter,Ve=1,$c=Math.atan2,xe=Math.PI,dc=isFinite,Xe=Hg("_opacity");E.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?E.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})), +b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ba.module$exports=hc;Ba.module$exports&&(Ba=Ba.module$exports);var fb={},qd=aa,Rg=Ba,Sg=o,ae=N.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype", +"font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};N.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Bc;N.fontIDs={};N.prefix="bs_"+(new Date).getTime()+"_";N.prototype=Object.create(qd.prototype);N.prototype.loadResource=function(a,b,c){var d=this, +e=a.src;/^data:/.test(e)?b(e):(new Rg(e)).on("load",function(){var c;a.type in ae?c=ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};N.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Bc||(Bc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f= +"";Sg.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Bc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};fb.module$exports=N;fb.module$exports&&(fb=fb.module$exports);var gb={},rd=aa,Tg="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Ug={"start-with-nothing":"loadstart", +metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};ic.prototype=Object.create(rd.prototype);ic.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Tg.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type", +h),e.src=a,this.registerElement(e),e.addEventListener(Ug[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};gb.module$exports=ic;gb.module$exports&&(gb=gb.module$exports);var Ca={},Cc=o,Vg=w,Wg=V,Xg=fb,Yg=gb,Zg=eb,$g=Ba;ea.assets={};ea.hasVideoSupport=function(){return!!domVideo.canPlayType};var be=ea.handlers={Bitmap:Zg,Font:Xg,Video:Yg, +Raw:$g};ea.prototype={load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in be)(new be[d](a.request,a.id)).on("registerElement",function(b){ea.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Cc.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Cc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,i=this.preloadID?++this.preloadID:this.preloadID= +1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(i+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"lineColor"in b||(c=a.getAttribute("data-stroke"))&& +a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",Sb(c)):null===c&&a.removeAttribute("transform")}}};var q=kc.prototype=Dc.mixin({},dh,fh),lh={Bitmap:"image",Group:"g",Movie:"g",Shape:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};q.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Da(b).rgba()}}; +q.render=function(a){var b,c,d,e,f,g,h,i=this,k=this.svg,l={},m={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=k[b],!c&&!f.detach&&("DOMElement"===h?(c=k[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=k[b]=u(lh[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete k[b],b=f[h],c=k[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(m[g]||(m[g]=[])).push(b),l[b]=f);if(this[b= +"draw"+h])this[b](c,f),this.drawAll(h,c,f);!Tb&&"Group"===h&&function ug(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&ug(c,c._filterSignature),c._fillColorSignature&&i.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&i.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&i.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&k.attr(c._root||c,f.attributes)}for(g in m){c=m[g];a=[];for(e= +0;b=c[e++];)f=l[b],(b=l[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=k[f.parent]){h=f.prev;c=k[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=k[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,k[f.next])}}this._logFrame();this.emit("canRender")};q.drawMovie=function(){};q.drawGroup=function(){};q.drawAll=function(a,b,c){var d=c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!Tb&&!e&&g&&b._fillColorSignature&& +(e=b._fillColorSignature);g.length?this.applyFilters(b,g):null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295);d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n=1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId? +this.applyMask(b,d):null===d.maskId&&this.removeMask(b);if("Shape"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!==d.fillRepeat.join())?gh?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"lineColor"in d&&this.applyStrokeColor(b,d.lineColor,"",d.lineWidth),"lineGradient"in d&&this.applyStrokeGradient(b,d.lineGradient,"",d.lineWidth)}; +q.drawShape=function(a,b){var c=b.data;c&&a.setAttribute("d",jh(c,!0))};q.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio","none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.source&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",Qb.assets[b.id].src);null==c.width&&null==c.height&&(c.width=d,c.height=e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&&a.setAttribute("width", +c.width)};q.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline","inherit");!1===c.selectable?Rb.add(a,"nonSelectable"):Rb.remove(a,"nonSelectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy?a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild);a._text= +c.text;a.appendChild(document.createTextNode(c.text))}};q.drawText=function(a,b){var c=b.attributes;!1===c.selectable?Rb.add(a,"nonSelectable"):Rb.remove(a,"nonSelectable");a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor="start"};q.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=Qb.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d= +c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};q.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml", +"body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=d[e].replace(/\{\{prefix\}\}/g,fe):a.setAttribute(e.slice(4), +d[e]):/^css_/.test(e)&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,fe));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};q.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a, +"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};q.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform", +Sb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());k=0;for(l=d.length;karguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};n.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData"); +return this};n.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};n.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};n.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData"); +return this};n.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};n.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Hc-d:e;e=sh(f-g);d=a+c*Gc(g);g=b+c*Ic(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};n.morphSegmentsTo= +function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};z.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var i,k,j,m=f;m>>=0;a=(new z).attr({x:a,y:b});a.moveTo(0,-c);for(var b=1,e;be)){g=b[d/2-0.5|0];var e=f[2],i=g[1],k=g[2];g=b[1];var j=(0+g[1])/2,e=j*i*-c/((e+g[2])/2*i-j*k+j*e)/j}for(c=0;c>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function wb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,k,l,m=pa(e,f,g);i=ba(e,f,g);k=(i+m)/2;if(m==i)h=i=0;else{l=m-i;i=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function Qc(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*ac(d,b,a+1/3),e=255*ac(d,b,a),a=255*ac(d,b,a-1/3);return da(c)<<24|da(e)<<16|da(a)<<8}function bc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function Rc(a){this.pendingAssets=a}function Sc(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return se.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function Tc(a){return{setup:function(b){var c= +Uc(b[a]);b[a+"_r"]=c.r();b[a+"_g"]=c.g();b[a+"_b"]=c.b();b[a+"_a"]=c.a();delete b[a]},step:function(b){b[a]=""+new Uc.RGBAColor(b[a+"_r"],b[a+"_g"],b[a+"_b"],b[a+"_a"]);delete b[a+"_r"];delete b[a+"_g"];delete b[a+"_b"];delete b[a+"_a"]}}}function Vc(a){return{setup:function(b){var c=b[a].stops,d;this[a]=b[a].clone();b[a].matrix&&(b[a+"MatrixA"]=b[a].matrix.a,b[a+"MatrixB"]=b[a].matrix.b,b[a+"MatrixC"]=b[a].matrix.c,b[a+"MatrixD"]=b[a].matrix.d,b[a+"MatrixTX"]=b[a].matrix.tx,b[a+"MatrixTY"]=b[a].matrix.ty); +"linear-gradient"===b[a].type?isNaN(b[a].direction)||(b[a+"Direction"]=b[a].direction):(this[a+"RadiusUnit"]=((""+b[a].radius).match(/\D$/)||[""])[0],b[a+"Radius"]=parseFloat(b[a].radius));for(var e=0,f=c.length;ea?b:a}function we(a){if(dc(a)){var a=+a%(2*xe)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix= +!0}}function ye(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function ze(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function Ae(){return this.matrix.tx}function Be(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function Ce(){return this.matrix.ty}function De(a){this._matrix.ty= +1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Ee(){return this._scaleX}function Fe(a){dc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Ge(){return this._scaleY}function He(a){dc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ie(){return(this.scaleX+this.scaleY)/2}function Je(a){this.scaleX=this.scaleY=a}function Ke(a){this._opacity=1a?0:+a}function Le(){return this._origin.clone()}function Me(a){var b= +this._origin;b.x=a.x;b.y=a.y}function Ne(){return this._cursor}function Oe(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Pe(){return this._filters.slice(0)}function Qe(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof ad.BaseFilter?a:new ad[a]})):this._filters.length=0}function Re(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&E.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&E.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Se(){return this._clip}function Te(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid mask"); +b.stage&&E.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&E.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Ue(){return this._mask}function E(){Object.defineProperty(this,"id",{value:Ve++});this._attributes=Object.create(null,{_owner:F(this),_matrix:F(new We),matrix:G(ye,ze,!0),_filters:F([],!0),filters:G(Pe,Qe,!0),_opacity:F(1,!0),opacity:G(Xe,Ke,!0),_origin:F(new Ye),origin:G(Le,Me,!0),rotation:G(ve,we,!0),_scaleX:F(1,!0),_scaleY:F(1, +!0),scale:G(Ie,Je,!0),scaleX:G(Ee,Fe,!0),scaleY:G(Ge,He,!0),x:G(Ae,Be,!0),y:G(Ce,De,!0),clip:G(Se,Re,!0),_clip:F(null,!0),_clipId:F(null,!0),mask:G(Ue,Te,!0),_mask:F(null,!0),_maskId:F(null,!0),cursor:G(Ne,Oe,!0),_cursor:F(null,!0),fillRule:F("inherit",!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule"};this._mutatedAttributes=ra.mixin({},this._renderAttributes)}function ec(){bd.call(this)} +function cd(a,b,c){fc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=dd.mixin({},this._domAttributes);this._mutatedCssStyles=dd.mixin({},this._cssStyles)})}function ed(a,b,c,d){fd.call(this);this.root=a;this._children=[];b&&a.loadSubMovie(b,c,d,this)}function Ze(){return this._textFillColor} +function $e(a){this._textFillColor=gd(a,this._textFillColor)}function af(){return this._textFillGradient}function bf(a){a&&(this._textFillGradient=cf(a))}function df(){return this._fontFamily}function ef(a){this._fontFamily=a?a.fontId||a:null}function ff(){return this._glyphx}function gf(a){Ga.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function hf(){return this._glyphy}function jf(a){Ga.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function kf(a){this._textLineColor=gd(a,this._textLineColor)} +function hd(a){id.call(this);Object.defineProperties(this._attributes,{text:D(a||"",!0,!0),fontSize:D(null,!0,!0),fontFamily:sa(df,ef,!0),_fontFamily:D(null,!0),fontStyle:D(null,!0,!0),fontWeight:D(null,!0,!0),_textFillColor:D(null,!0),textFillColor:sa(Ze,$e,!0),_textFillGradient:D(null,!0),textFillGradient:sa(af,bf,!0),textFillOpacity:D(1,!0,!0),_glyphx:D(null,!0),_glyphy:D(null,!0),glyphx:sa(ff,gf,!0),glyphy:sa(hf,jf,!0),textLineOpacity:D(1,!0,!0),_textLineColor:D(null,!0),textLineColor:sa(lf,kf, +!0),textLineWidth:D(0,!0,!0),selectable:D(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",lineOpacity:"textLineOpacity",lineColor:"_textLineColor",lineWidth:"textLineWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function mf(){return this._textFillColor} +function nf(a){this._textFillColor=jd(a,this._textFillColor)}function of(){return this._textFillGradient}function pf(a){a&&(this._textFillGradient=qf(a))}function rf(){return this._fontFamily}function sf(a){this._fontFamily=a?a.fontId||a:null}function tf(a){this._textLineColor=jd(a,this._textLineColor)}function uf(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function vf(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function wf(a){1<=a&&(this._miterLimit=+a)}function xf(a){this._owner.clear(); +this._owner.addChild(new gc(a))}function yf(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c()};d.onerror=c;d.send(null)}var zb={},zb={png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap",gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};zb.module$exports&&(zb=zb.module$exports);var Ab={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]): +(this.isLoading=!0,a(b,function(){c&&(d.isWaiting?f.push(c):c());d.isLoading=!1;e.length&&d.load.apply(d,e.shift())}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a, +4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0=== +a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a, +2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0===a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a- +c)*Math.PI/b)+1},bounceIn:function(a){return 1-Bb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a,2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Bb.bounceIn(2*a)/2:Bb.bounceOut(2*a-1)/2+0.5}};va.module$exports=Bb;va.module$exports&&(va=va.module$exports);var Pa={},Jd={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a, +b){Jd[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};Pa.module$exports=Jd;Pa.module$exports&&(Pa=Pa.module$exports);var ga={},Kd=S,fg=Math.cos,gg=Math.sin;vb.prototype={clone:function(){return new vb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+ +a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new Kd(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b= +fg(a),a=gg(a);return this.concat(new vb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new Kd(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};ga.module$exports=vb;ga.module$exports&&(ga=ga.module$exports);var Cb={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new oe, +needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null),plugins:[]}}};Cb.module$exports&&(Cb=Cb.module$exports);var Qa={},qe={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Qa.module$exports=function(a){a.emitOn=pe;a.stop=re;return a};Qa.module$exports&&(Qa=Qa.module$exports);var wa={},Ea=Na,M={arcBy:{attributes:["P","N","B","B", +"P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"],shorthands:["M"]},verticalLineBy:{attributes:["N"], +shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]},smoothQuadraticCurveTo:{attributes:["P"], +shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},Ld={},J;for(J in M)M.hasOwnProperty(J)&&M[J].shorthands.forEach(function(a){Ld[a]=J});var Md={};for(J in M)M.hasOwnProperty(J)&&(Md[J]=M[J].shorthands[0]);var Db=[];for(J in M)M.hasOwnProperty(J)&&(Db.push(J),Db=Db.concat(M[J].shorthands));wa.module$exports={validTokens:Db,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(Ld[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return Pc(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=Qc(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return da(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=W(a);return new wb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ba(255,pa(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ba(255, +pa(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ba(255,pa(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ba(1,pa(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?pa(0,ba(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ba(1,b*c+d-c/2):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(),d= +a.length;d--;)c._setPointAlongRange(a[d],lg(),b);return c};r.clone=function(a){return a?W(+this).set(a):W(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[da(360*this.h()),da(100*this.s())+"%",da(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};W.parse=function(a,b){var c,a=""+a;a in Pd&&(a=Pd[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=Qc(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:W.parse(b)};A.module$exports=W;A.module$exports&&(A=A.module$exports);var w={},mg=o,rc="".split,sc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof bc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new bc(b,c));for(var d=this._events||(this._events={}),e=-1,f=rc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new bc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},i=-1,k=rc.call(a," "),l=k.length;++id.length)return this;c=Sd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone(); +e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};tc=K.propertiesFromAbsoluteArc=function(a,b,c,d,e,f,g,h,i){var f=!!f,g=!!g,k=e*Y/180,l=Gb(k),m=ha(c,2),P=ha(d,2),k=Ib(k),j=(a-h)/2,o=(b-i)/2,n=l*j+k*o,q=-k*j+l*o,p;p=ha(n,2);var r=ha(q,2),j=ha(j,2)/m+ha(o,2)/P;if(1e?(c/=d,e=r+p/ha(c,2),d=Hb(e),c*=d, +q=f=0):(p=(f===g?-1:1)*Hb(e),f=p*c*q/d,q=-p*d*n/c);n=f*l-q*k+(a+h)/2;l=f*k+q*l+(b+i)/2;b=Td((b-l)/d);i=Td((i-l)/d);b=ab&&(b=2*Y+b);0>i&&(i=2*Y+i);g&&b>i&&(b-=2*Y);!g&&i>b&&(i-=2*Y);return{cx:n,cy:l,rx:c,ry:d,startAngle:b,endAngle:i}};Sd=K.splitAbsoluteCubicBezier=function(a,b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e); +return{left:[a,f,b,e],right:[e,g,c,d]}};K.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};Lb.mixin(cc.prototype,Eg);za.module$exports=cc;za.module$exports&&(za=za.module$exports);var L={},Fg=w,ra=o,We=ga,Ye=S,Xd=ka,Gg=za,ad=ja,G=ra.descriptorAccessor, +F=ra.descriptorData,Hg=ra.getter,Ve=1,$c=Math.atan2,xe=Math.PI,dc=isFinite,Xe=Hg("_opacity");E.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?E.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})), +b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ba.module$exports=hc;Ba.module$exports&&(Ba=Ba.module$exports);var fb={},qd=aa,Rg=Ba,Sg=o,ae=N.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype", +"font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};N.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Bc;N.fontIDs={};N.prefix="bs_"+(new Date).getTime()+"_";N.prototype=Object.create(qd.prototype);N.prototype.loadResource=function(a,b,c){var d=this, +e=a.src;/^data:/.test(e)?b(e):(new Rg(e)).on("load",function(){var c;a.type in ae?c=ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};N.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Bc||(Bc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f= +"";Sg.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Bc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};fb.module$exports=N;fb.module$exports&&(fb=fb.module$exports);var gb={},rd=aa,Tg="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Ug={"start-with-nothing":"loadstart", +metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};ic.prototype=Object.create(rd.prototype);ic.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Tg.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type", +h),e.src=a,this.registerElement(e),e.addEventListener(Ug[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};gb.module$exports=ic;gb.module$exports&&(gb=gb.module$exports);var Ca={},Cc=o,Vg=w,Wg=V,Xg=fb,Yg=gb,Zg=eb,$g=Ba;ea.assets={};ea.hasVideoSupport=function(){return!!domVideo.canPlayType};var be=ea.handlers={Bitmap:Zg,Font:Xg,Video:Yg, +Raw:$g};ea.prototype={load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in be)(new be[d](a.request,a.id)).on("registerElement",function(b){ea.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Cc.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Cc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,i=this.preloadID?++this.preloadID:this.preloadID= +1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(i+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"lineColor"in b||(c=a.getAttribute("data-stroke"))&& +a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",Sb(c)):null===c&&a.removeAttribute("transform")}}};var q=kc.prototype=Dc.mixin({},dh,fh),lh={Bitmap:"image",Group:"g",Movie:"g",Shape:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};q.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Da(b).rgba()}}; +q.render=function(a){var b,c,d,e,f,g,h,i=this,k=this.svg,l={},m={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=k[b],!c&&!f.detach&&("DOMElement"===h?(c=k[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=k[b]=u(lh[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete k[b],b=f[h],c=k[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(m[g]||(m[g]=[])).push(b),l[b]=f);if(this[b= +"draw"+h])this[b](c,f),this.drawAll(h,c,f);!Tb&&"Group"===h&&function ug(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&ug(c,c._filterSignature),c._fillColorSignature&&i.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&i.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&i.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&k.attr(c._root||c,f.attributes)}for(g in m){c=m[g];a=[];for(e= +0;b=c[e++];)f=l[b],(b=l[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=k[f.parent]){h=f.prev;c=k[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=k[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,k[f.next])}}this._logFrame();this.emit("canRender")};q.drawMovie=function(){};q.drawGroup=function(){};q.drawAll=function(a,b,c){var d=c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!Tb&&!e&&g&&b._fillColorSignature&& +(e=b._fillColorSignature);g.length?this.applyFilters(b,g):null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295);d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n=1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId? +this.applyMask(b,d):null===d.maskId&&this.removeMask(b);if("Shape"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!==d.fillRepeat.join())?gh?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"lineColor"in d&&this.applyStrokeColor(b,d.lineColor,"",d.lineWidth),"lineGradient"in d&&this.applyStrokeGradient(b,d.lineGradient,"",d.lineWidth)}; +q.drawShape=function(a,b){var c=b.data;c&&a.setAttribute("d",jh(c,!0))};q.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio","none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.source&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",Qb.assets[b.id].src);null==c.width&&null==c.height&&(c.width=d,c.height=e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&&a.setAttribute("width", +c.width)};q.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline","inherit");!1===c.selectable?Rb.add(a,"nonSelectable"):Rb.remove(a,"nonSelectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy?a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild);a._text= +c.text;a.appendChild(document.createTextNode(c.text))}};q.drawText=function(a,b){var c=b.attributes;!1===c.selectable?Rb.add(a,"nonSelectable"):Rb.remove(a,"nonSelectable");a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor="start"};q.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=Qb.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d= +c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};q.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml", +"body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=d[e].replace(/\{\{prefix\}\}/g,fe):a.setAttribute(e.slice(4), +d[e]):/^css_/.test(e)&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,fe));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};q.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a, +"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};q.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform", +Sb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());k=0;for(l=d.length;karguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};n.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData"); +return this};n.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};n.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};n.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData"); +return this};n.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};n.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Hc-d:e;e=sh(f-g);d=a+c*Gc(g);g=b+c*Ic(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};n.morphSegmentsTo= +function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};z.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var i,k,j,m=f;m>>=0;a=(new z).attr({x:a,y:b});a.moveTo(0,-c);for(var b=1,e;be)){g=b[d/2-0.5|0];var e=f[2],i=g[1],k=g[2];g=b[1];var j=(0+g[1])/2,e=j*i*-c/((e+g[2])/2*i-j*k+j*e)/j}for(c=0;c>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Fb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,k,l,m=ga(e,f,g);i=ha(e,f,g);k=(i+m)/2;if(m==i)h=i=0;else{l=m-i;i=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function gd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*lc(d,b,a+1/3),e=255*lc(d,b,a),a=255*lc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function mc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function hd(a){this.pendingAssets=a}function id(a,b){this.disconnect=b;this.notifyRenderer=a}function R(a){return df.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function jd(a){return{setup:function(b){var c= +kd(b[a]);b[a+"_r"]=c.r();b[a+"_g"]=c.g();b[a+"_b"]=c.b();b[a+"_a"]=c.a();delete b[a]},step:function(b){b[a]=""+new kd.RGBAColor(b[a+"_r"],b[a+"_g"],b[a+"_b"],b[a+"_a"]);delete b[a+"_r"];delete b[a+"_g"];delete b[a+"_b"];delete b[a+"_a"]}}}function ld(a){return{setup:function(b){var c=b[a].stops,d;this[a]=b[a].clone();b[a].matrix&&(b[a+"MatrixA"]=b[a].matrix.a,b[a+"MatrixB"]=b[a].matrix.b,b[a+"MatrixC"]=b[a].matrix.c,b[a+"MatrixD"]=b[a].matrix.d,b[a+"MatrixTX"]=b[a].matrix.tx,b[a+"MatrixTY"]=b[a].matrix.ty); +"linear-gradient"===b[a].type?isNaN(b[a].direction)||(b[a+"Direction"]=b[a].direction):(this[a+"RadiusUnit"]=((""+b[a].radius).match(/\D$/)||[""])[0],b[a+"Radius"]=parseFloat(b[a].radius));for(var e=0,f=c.length;ee?(c/=d,e=q+p/ka(c,2),d=Ib(e), +c*=d,ta=f=0):(p=(f===g?-1:1)*Ib(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*l-ta*k+(a+h)/2;l=f*k+ta*l+(b+i)/2;b=qd((b-l)/d);i=qd((i-l)/d);b=ab&&(b=2*Z+b);0>i&&(i=2*Z+i);g&&b>i&&(b-=2*Z);!g&&i>b&&(i-=2*Z);return{cx:o,cy:l,rx:c,ry:d,startAngle:b,endAngle:i}}function rd(a,b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b, +e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:gf[e];this.clock=a;this.duration=Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=La.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c); +this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function oc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b);this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number); +this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function hf(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function jf(a){if(pc(a)){var a=+a%(2*kf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function lf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-= +a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function mf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function nf(){return this.matrix.tx}function of(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function pf(){return this.matrix.ty}function qf(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function rf(){return this._scaleX}function sf(a){pc(a)&& +(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function tf(){return this._scaleY}function uf(a){pc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function vf(){return(this.scaleX+this.scaleY)/2}function wf(a){this.scaleX=this.scaleY=a}function xf(a){this._opacity=1a?0:+a}function yf(){return this._origin.clone()}function zf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Af(){return this._cursor}function Bf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor= +a):this._cursor=null}function Cf(){return this._filters.slice(0)}function Df(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Ef(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&E.registerOffStageObj(b,a,b.stage,"clip"); +this._clipId=a.id;this._clip=a}else this._clip&&E.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Ff(){return this._clip}function Gf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&E.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&E.unregisterOffStageObj(b, +this._mask),this._maskId=this._mask=null}function Hf(){return this._mask}function E(){Object.defineProperty(this,"id",{value:If++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new Jf),matrix:F(lf,mf,!0),_filters:C([],!0),filters:F(Cf,Df,!0),_opacity:C(1,!0),opacity:F(Kf,xf,!0),_origin:C(new Lf),origin:F(yf,zf,!0),rotation:F(hf,jf,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:F(vf,wf,!0),scaleX:F(rf,sf,!0),scaleY:F(tf,uf,!0),x:F(nf,of,!0),y:F(pf,qf,!0),clip:F(Ff,Ef,!0),_clip:C(null,!0), +_clipId:C(null,!0),mask:F(Hf,Gf,!0),_mask:C(null,!0),_maskId:C(null,!0),cursor:F(Af,Bf,!0),_cursor:C(null,!0),fillRule:C("inherit",!0),visible:C(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule",visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function qc(){ud.call(this)}function vd(a,b,c){rc.call(this);this.nodeName=a||"";this._domAttributes= +{};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=wd.mixin({},this._domAttributes);this._mutatedCssStyles=wd.mixin({},this._cssStyles)})}function xd(a,b,c){yd.call(this);c&&this.bindAssetCallback(c);this.root=a;this._children=[];var d=this;b&&a.loadSubMovie(b,function(a){a?d.emitAsync("error",a,d):d.emitAsync("load",d)},this)}function Mf(){return this._textFillColor} +function Nf(a){this._textFillColor=zd(a,this._textFillColor)}function Of(){return this._textFillGradient}function Pf(a){a&&(this._textFillGradient=Qf(a))}function Rf(){return this._fontFamily}function Sf(a){this._fontFamily=a?a.fontId||a:null}function Tf(){return this._glyphx}function Uf(a){Ma.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function Vf(){return this._glyphy}function Wf(a){Ma.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function Xf(a){this._textLineColor=zd(a,this._textLineColor)} +function Ad(a){Bd.call(this);Object.defineProperties(this._attributes,{text:D(a||"",!0,!0),fontSize:D(null,!0,!0),fontFamily:wa(Rf,Sf,!0),_fontFamily:D(null,!0),fontStyle:D(null,!0,!0),fontWeight:D(null,!0,!0),_textFillColor:D(null,!0),textFillColor:wa(Mf,Nf,!0),_textFillGradient:D(null,!0),textFillGradient:wa(Of,Pf,!0),textFillOpacity:D(1,!0,!0),_glyphx:D(null,!0),_glyphy:D(null,!0),glyphx:wa(Tf,Uf,!0),glyphy:wa(Vf,Wf,!0),textLineOpacity:D(1,!0,!0),_textLineColor:D(null,!0),textLineColor:wa(Yf,Xf, +!0),textLineWidth:D(0,!0,!0),selectable:D(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",lineOpacity:"textLineOpacity",lineColor:"_textLineColor",lineWidth:"textLineWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function Zf(){return this._textFillColor} +function $f(a){this._textFillColor=Cd(a,this._textFillColor)}function ag(){return this._textFillGradient}function bg(a){a&&(this._textFillGradient=cg(a))}function dg(){return this._fontFamily}function eg(a){this._fontFamily=a?a.fontId||a:null}function fg(a){this._textLineColor=Cd(a,this._textLineColor)}function gg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function hg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function ig(a){1<=a&&(this._miterLimit=+a)}function jg(a){this._owner.clear(); +this._owner.addChild(new sc(a))}function kg(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c(d.status+ +" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Mb={},Mb={png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap",gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};Mb.module$exports&&(Mb=Mb.module$exports);var Nb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting? +f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- +1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ +2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Pb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Pb.bounceIn(2*a)/2:Pb.bounceOut(2*a-1)/2+0.5}};Ba.module$exports=Pb;Ba.module$exports&&(Ba=Ba.module$exports);var Ua={},he={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){he[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Ua.module$exports=he;Ua.module$exports&&(Ua=Ua.module$exports);var aa={},ie=T,Ug=Math.cos,Vg=Math.sin;Eb.prototype={clone:function(){return new Eb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new ie(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=Ug(a),a=Vg(a);return this.concat(new Eb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new ie(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Eb;aa.module$exports&&(aa=aa.module$exports);var Va={},Wg=aa;Va.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new Wg},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Va.module$exports&&(Va=Va.module$exports);var Qb={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new $e,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Qb.module$exports&&(Qb=Qb.module$exports);var Wa={},bf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Wa.module$exports=function(a){a.emitOn=af;a.stop=cf;return a};Wa.module$exports&&(Wa=Wa.module$exports);var Ca={}, +Ka=Sa,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, +smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},je={},I;for(I in N)N.hasOwnProperty(I)&&N[I].shorthands.forEach(function(a){je[a]=I});var ke={};for(I in N)N.hasOwnProperty(I)&&(ke[I]=N[I].shorthands[0]);var Rb=[];for(I in N)N.hasOwnProperty(I)&&(Rb.push(I),Rb=Rb.concat(N[I].shorthands));Ca.module$exports={validTokens:Rb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(je[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return fd(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=gd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=Y(a);return new Fb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255, +ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],ah(),b);return c};r.clone=function(a){return a?Y(+this).set(a):Y(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360*this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};Y.parse=function(a,b){var c,a=""+a;a in ne&&(a=ne[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=gd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:Y.parse(b)};z.module$exports=Y;z.module$exports&&(z=z.module$exports);var w={},bh=n,Lc="".split,Mc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof mc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new mc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Lc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new mc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, +i=-1,k=Lc.call(a," "),l=k.length;++id.length)return this;c=rd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x, +c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};K.propertiesFromAbsoluteArc=nc;K.splitAbsoluteCubicBezier=rd;K.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame= +a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1< +this.currentAnimation&&(this.animations[this.currentAnimation].isPlaying=!1);return this},reset:function(){this.animations.forEach(function(a){a.reset()});this.currentAnimation=-1;return this},begin:function(){var a=this.keyframes[0],b=this.subjects,c,d;if(a&&b.length)for(var e=0,f=b.length;ed&&(d=c);d>this.duration&&(this.duration=d);return h}};Vb.mixin(oc.prototype,vh);Ea.module$exports=oc;Ea.module$exports&&(Ea=Ea.module$exports);var L={},wh=w,va=n,Jf=aa,Lf=T,te=pa,xh=Ea,td=oa,F=va.descriptorAccessor,C=va.descriptorData,yh=va.getter,If=1,sd=Math.atan2,kf=Math.PI,pc=isFinite,Kf=yh("_opacity");E.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b, +c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?E.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}}; +Ga.module$exports=tc;Ga.module$exports&&(Ga=Ga.module$exports);var lb={},Jd=fa,Jh=Ga,Kh=n,xe=P.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg", +"application/vnd.ms-fontobject":"eot"};P.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Uc;P.fontIDs={};P.prefix="bs_"+(new Date).getTime()+"_";P.prototype=Object.create(Jd.prototype);P.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Jh(e)).on("load",function(){var c;a.type in xe?c=xe[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler")); +d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};P.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Uc||(Uc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Kh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Uc.appendChild(document.createTextNode('@font-face {font-family: "'+ +a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};lb.module$exports=P;lb.module$exports&&(lb=lb.module$exports);var mb={},Kd=fa,Lh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Mh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};uc.prototype=Object.create(Kd.prototype);uc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth, +height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Lh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Mh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause", +function(){},!1))};mb.module$exports=uc;mb.module$exports&&(mb=mb.module$exports);var Ha={},Vc=n,Nh=w,Oh=W,Ph=lb,Qh=mb,Rh=kb,Sh=Ga;la.assets={};la.hasVideoSupport=function(){return!!domVideo.canPlayType};var ye=la.handlers={Bitmap:Rh,Font:Ph,Video:Qh,Raw:Sh};la.prototype={load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in ye)(new ye[d](a.request,a.id)).on("registerElement",function(b){la.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Vc.mixin(a,c))}).on("error", +this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Vc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,i=this.preloadID?++this.preloadID:this.preloadID=1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(i+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"lineColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",bc(c)):null===c&&a.removeAttribute("transform")}}};var p=wc.prototype=Wc.mixin({},Wh,Yh),di={Bitmap:"image",Group:"g", +Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ia(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,i=this,k=this.svg,l={},m={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=k[b],!c&& +!f.detach&&("DOMElement"===h?(c=k[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=k[b]=u(di[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete k[b],b=f[h],c=k[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(m[g]||(m[g]=[])).push(b),l[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!cc&&"Group"===h&&function ff(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&ff(c,c._filterSignature),c._fillColorSignature&&i.applyFillColor(c, +c._fillColorSignature,b),c._strokeColorSignature&&i.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&i.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&k.attr(c._root||c,f.attributes)}for(g in m){c=m[g];a=[];for(e=0;b=c[e++];)f=l[b],(b=l[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=k[f.parent]){h=f.prev;c=k[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=k[h.id], +c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,k[f.next])}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!cc&&!e&&g&&b._fillColorSignature&&(e=b._fillColorSignature);g.length?this.applyFilters(b,g):null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295); +d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n=1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId?this.applyMask(b,d):null===d.maskId&&this.removeMask(b);null!=d.visible&&(b.style.visibility=d.visible?"":"hidden");if("Path"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!== +d.fillRepeat.join())?Zh?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"lineColor"in d&&this.applyStrokeColor(b,d.lineColor,"",d.lineWidth),"lineGradient"in d&&this.applyStrokeGradient(b,d.lineGradient,"",d.lineWidth)};p.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",bi(c,!0))};p.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio", +"none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.source&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",$b.assets[b.id].src);null==c.width&&null==c.height&&(c.width=d,c.height=e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&&a.setAttribute("width",c.width)};p.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline", +"inherit");!1!==c.selectable?ac.add(a,"selectable"):ac.remove(a,"selectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy?a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild);a._text=c.text;a.appendChild(document.createTextNode(c.text))}};p.drawText=function(a,b){var c=b.attributes;!1!==c.selectable?ac.add(a,"selectable"):ac.remove(a,"selectable");a.setAttributeNS("http://www.w3.org/1999/xlink", +"text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor="start"};p.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=$b.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform"); +e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&& +a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ce):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Ce));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&& +!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};p.removeFilters=function(a){var b= +a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",bc(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());k=0;for(l=d.length;karguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments"); +this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData"); +return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ge-d:e;e=li(f-g);d=a+c*Ee(g);g=b+c*He(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(), +h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Lb.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var i,k,j,m=f;m< +b;m++){e.push(f=[]);i=a[m];j=i.length;k=i[0];if(/By/.test(k))switch(f[0]=k.replace(/By/,"To"),k){case "arcBy":f[1]=i[1];f[2]=i[2];f[3]=i[3];f[4]=i[4];f[5]=i[5];f[6]=i[6]+g;f[7]=i[7]+h;break;case "verticalLineBy":f[1]=i[1]+h;break;case "horizontalLineBy":f[1]=i[1]+g;break;case "moveBy":c=i[1]+g,d=i[2]+h;default:for(k=1;k>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],i=f[2];f=b[1];var j=(0+f[1])/2,e=j*h*-a/((e+f[2])/2*h-j*i+j*e)/j}for(a=0;a>ERROR WORKER",c)}});self.load=function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new bj(a),d=c.env.exports;Xe.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"=== +c.command&&("stage"in self.exports&&delete self.exports.stage,Xe.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a=this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,i=[],j=[];h.root=this;for(var l in g)i.push(l),j.push(g[l]);Sg(a,function(a){i.push(a);Function.apply(null,i).apply(h,j);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Db.module$exports&&(Db=Db.module$exports);var cd={},dd=zb, +dj=Ya,ej=Db,fj=nb,gj=pb,hj=n;if("undefined"!=typeof importScripts){var jc,Ye=function(a){jc.notify(a.data)};jc=new dj(function(a){postMessage(a)},function(){removeEventListener("message",Ye);jc=null});addEventListener("message",Ye);ej(jc)}else{window.bonsai=dd;for(var Ze="bonsai.js",ed=document.getElementsByTagName("script"),kc=0,ij=ed.length;kc>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Gb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,k,l,m=ga(e,f,g);i=ha(e,f,g);k=(i+m)/2;if(m==i)h=i=0;else{l=m-i;i=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function hd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*nc(d,b,a+1/3),e=255*nc(d,b,a),a=255*nc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function oc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function id(a){this.pendingAssets=a}function jd(a,b){this.disconnect=b;this.notifyRenderer=a}function R(a){return ef.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function kd(a){return{setup:function(b){var c= +ld(b[a]);b[a+"_r"]=c.r();b[a+"_g"]=c.g();b[a+"_b"]=c.b();b[a+"_a"]=c.a();delete b[a]},step:function(b){b[a]=""+new ld.RGBAColor(b[a+"_r"],b[a+"_g"],b[a+"_b"],b[a+"_a"]);delete b[a+"_r"];delete b[a+"_g"];delete b[a+"_b"];delete b[a+"_a"]}}}function md(a){return{setup:function(b){var c=b[a].stops,d;this[a]=b[a].clone();b[a].matrix&&(b[a+"MatrixA"]=b[a].matrix.a,b[a+"MatrixB"]=b[a].matrix.b,b[a+"MatrixC"]=b[a].matrix.c,b[a+"MatrixD"]=b[a].matrix.d,b[a+"MatrixTX"]=b[a].matrix.tx,b[a+"MatrixTY"]=b[a].matrix.ty); +"linear-gradient"===b[a].type?isNaN(b[a].direction)||(b[a+"Direction"]=b[a].direction):(this[a+"RadiusUnit"]=((""+b[a].radius).match(/\D$/)||[""])[0],b[a+"Radius"]=parseFloat(b[a].radius));for(var e=0,f=c.length;ee?(c/=d,e=q+p/ka(c,2),d=Jb(e), +c*=d,ta=f=0):(p=(f===g?-1:1)*Jb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*l-ta*k+(a+h)/2;l=f*k+ta*l+(b+i)/2;b=rd((b-l)/d);i=rd((i-l)/d);b=ab&&(b=2*Z+b);0>i&&(i=2*Z+i);g&&b>i&&(b-=2*Z);!g&&i>b&&(i-=2*Z);return{cx:o,cy:l,rx:c,ry:d,startAngle:b,endAngle:i}}function sd(a,b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b, +e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:hf[e];this.clock=a;this.duration=Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Ma.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c); +this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function qc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b);this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number); +this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function jf(){var a=this._matrix,b=td(a.b,a.a),a=-td(a.c,a.d);return b>a?b:a}function kf(a){if(rc(a)){var a=+a%(2*lf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function mf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-= +a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function nf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function of(){return this.matrix.tx}function pf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function qf(){return this.matrix.ty}function rf(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function sf(){return this._scaleX}function tf(a){rc(a)&& +(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function uf(){return this._scaleY}function vf(a){rc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function wf(){return(this.scaleX+this.scaleY)/2}function xf(a){this.scaleX=this.scaleY=a}function yf(a){this._opacity=1a?0:+a}function zf(){return this._origin.clone()}function Af(a){var b=this._origin;b.x=a.x;b.y=a.y}function Bf(){return this._cursor}function Cf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor= +a):this._cursor=null}function Df(){return this._filters.slice(0)}function Ef(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof ud.BaseFilter?a:new ud[a]})):this._filters.length=0}function Ff(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&E.registerOffStageObj(b,a,b.stage,"clip"); +this._clipId=a.id;this._clip=a}else this._clip&&E.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Gf(){return this._clip}function Hf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&E.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&E.unregisterOffStageObj(b, +this._mask),this._maskId=this._mask=null}function If(){return this._mask}function E(){Object.defineProperty(this,"id",{value:Jf++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new Kf),matrix:F(mf,nf,!0),_filters:C([],!0),filters:F(Df,Ef,!0),_opacity:C(1,!0),opacity:F(Lf,yf,!0),_origin:C(new Mf),origin:F(zf,Af,!0),rotation:F(jf,kf,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:F(wf,xf,!0),scaleX:F(sf,tf,!0),scaleY:F(uf,vf,!0),x:F(of,pf,!0),y:F(qf,rf,!0),clip:F(Gf,Ff,!0),_clip:C(null,!0), +_clipId:C(null,!0),mask:F(If,Hf,!0),_mask:C(null,!0),_maskId:C(null,!0),cursor:F(Bf,Cf,!0),_cursor:C(null,!0),fillRule:C("inherit",!0),visible:C(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule",visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function sc(){vd.call(this)}function wd(a,b,c){tc.call(this);this.nodeName=a||"";this._domAttributes= +{};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=xd.mixin({},this._domAttributes);this._mutatedCssStyles=xd.mixin({},this._cssStyles)})}function yd(a,b,c){zd.call(this);c&&this.bindAssetCallback(c);this.root=a;this._children=[];var d=this;b&&a.loadSubMovie(b,function(a){a?d.emitAsync("error",a,d):d.emitAsync("load",d)},this)}function Nf(){return this._textFillColor} +function Of(a){this._textFillColor=Ad(a,this._textFillColor)}function Pf(){return this._textFillGradient}function Qf(a){a&&(this._textFillGradient=Rf(a))}function Sf(){return this._fontFamily}function Tf(a){this._fontFamily=a?a.fontId||a:null}function Uf(){return this._glyphx}function Vf(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function Wf(){return this._glyphy}function Xf(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function Yf(a){this._textLineColor=Ad(a,this._textLineColor)} +function Bd(a){Cd.call(this);Object.defineProperties(this._attributes,{text:D(a||"",!0,!0),fontSize:D(null,!0,!0),fontFamily:wa(Sf,Tf,!0),_fontFamily:D(null,!0),fontStyle:D(null,!0,!0),fontWeight:D(null,!0,!0),_textFillColor:D(null,!0),textFillColor:wa(Nf,Of,!0),_textFillGradient:D(null,!0),textFillGradient:wa(Pf,Qf,!0),textFillOpacity:D(1,!0,!0),_glyphx:D(null,!0),_glyphy:D(null,!0),glyphx:wa(Uf,Vf,!0),glyphy:wa(Wf,Xf,!0),textLineOpacity:D(1,!0,!0),_textLineColor:D(null,!0),textLineColor:wa(Zf,Yf, +!0),textLineWidth:D(0,!0,!0),selectable:D(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",lineOpacity:"textLineOpacity",lineColor:"_textLineColor",lineWidth:"textLineWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function $f(){return this._textFillColor} +function ag(a){this._textFillColor=Dd(a,this._textFillColor)}function bg(){return this._textFillGradient}function cg(a){a&&(this._textFillGradient=dg(a))}function eg(){return this._fontFamily}function fg(a){this._fontFamily=a?a.fontId||a:null}function gg(a){this._textLineColor=Dd(a,this._textLineColor)}function hg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function ig(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function jg(a){1<=a&&(this._miterLimit=+a)}function kg(a){this._owner.clear(); +this._owner.addChild(new uc(a))}function lg(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Ob={},Ob={png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap",gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};Ob.module$exports&&(Ob=Ob.module$exports);var Pb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading|| +this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1* +(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1=== +a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)* +(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0===a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2* +(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Rb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a,2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Rb.bounceIn(2*a)/2:Rb.bounceOut(2*a-1)/2+0.5}};Ba.module$exports=Rb;Ba.module$exports&&(Ba=Ba.module$exports);var Va={},ie={BaseFilter:function(a, +b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ie[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};Va.module$exports=ie;Va.module$exports&&(Va=Va.module$exports);var aa={},je=T,Vg=Math.cos,Wg=Math.sin;Fb.prototype={clone:function(){return new Fb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c= +d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new je(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d= +b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=Vg(a),a=Wg(a);return this.concat(new Fb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new je(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Fb;aa.module$exports&&(aa=aa.module$exports);var Wa={},Xg=aa;Wa.module$exports={matrix:{setupTo:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new Xg},setupFrom:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c; +delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Sb={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new af,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Sb.module$exports&&(Sb=Sb.module$exports);var Xa={},cf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0, +"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=bf;a.stop=df;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Ca={},La=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"}, +lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"],shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P", +"P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]},smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},ke={},I;for(I in N)N.hasOwnProperty(I)&&N[I].shorthands.forEach(function(a){ke[a]=I});var le={};for(I in N)N.hasOwnProperty(I)&&(le[I]=N[I].shorthands[0]);var Tb=[];for(I in N)N.hasOwnProperty(I)&& +(Tb.push(I),Tb=Tb.concat(N[I].shorthands));Ca.module$exports={validTokens:Tb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,function(a,d,e){b.push(ke[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return gd(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=hd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+ +a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=Y(a);return new Gb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/ +2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255,ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a, +c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(),d=a.length;d--;)c._setPointAlongRange(a[d],bh(),b);return c};r.clone=function(a){return a?Y(+this).set(a):Y(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360* +this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};Y.parse=function(a,b){var c,a=""+a;a in oe&&(a=oe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1), +16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0,-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=hd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null== +b?null:Y.parse(b)};z.module$exports=Y;z.module$exports&&(z=z.module$exports);var w={},ch=n,Nc="".split,Oc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof oc,e=typeof c;if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new oc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Nc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&& +(c=b,b=null);return this.addListener(a,new oc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},i=-1,k=Nc.call(a," "),l=k.length;++id.length)return this;c=sd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y, +b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};K.propertiesFromAbsoluteArc=pc;K.splitAbsoluteCubicBezier=sd;K.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*= +1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1< +this.currentAnimation&&(this.animations[this.currentAnimation].isPlaying=!1);return this},reset:function(){this.animations.forEach(function(a){a.reset()});this.currentAnimation=-1;return this},begin:function(){var a=this.keyframes[0],b=this.subjects,c,d;if(a&&b.length)for(var e=0,f=b.length;ed&&(d=c);d>this.duration&&(this.duration=d);return h}};Xb.mixin(qc.prototype,wh);Ea.module$exports=qc;Ea.module$exports&&(Ea=Ea.module$exports);var L={},xh=w,va=n,Kf=aa,Mf=T,ue=pa,yh=Ea,ud=oa,F=va.descriptorAccessor,C=va.descriptorData,zh=va.getter,Jf=1,td=Math.atan2,lf=Math.PI,rc=isFinite,Lf=zh("_opacity");E.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b, +c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?E.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}}; +Ga.module$exports=vc;Ga.module$exports&&(Ga=Ga.module$exports);var mb={},Kd=fa,Kh=Ga,Lh=n,ye=P.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg", +"application/vnd.ms-fontobject":"eot"};P.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Wc;P.fontIDs={};P.prefix="bs_"+(new Date).getTime()+"_";P.prototype=Object.create(Kd.prototype);P.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Kh(e)).on("load",function(){var c;a.type in ye?c=ye[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler")); +d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};P.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Wc||(Wc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Lh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Wc.appendChild(document.createTextNode('@font-face {font-family: "'+ +a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=P;mb.module$exports&&(mb=mb.module$exports);var nb={},Ld=fa,Mh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Nh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};wc.prototype=Object.create(Ld.prototype);wc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth, +height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Mh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Nh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause", +function(){},!1))};nb.module$exports=wc;nb.module$exports&&(nb=nb.module$exports);var Ha={},Xc=n,Oh=w,Ph=W,Qh=mb,Rh=nb,Sh=lb,Th=Ga;la.assets={};la.hasVideoSupport=function(){return!!domVideo.canPlayType};var ze=la.handlers={Bitmap:Sh,Font:Qh,Video:Rh,Raw:Th};la.prototype={load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in ze)(new ze[d](a.request,a.id)).on("registerElement",function(b){la.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Xc.mixin(a,c))}).on("error", +this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Xc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,i=this.preloadID?++this.preloadID:this.preloadID=1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(i+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"lineColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",dc(c)):null===c&&a.removeAttribute("transform")}}};var p=yc.prototype=Yc.mixin({},Xh,Zh),ei={Bitmap:"image",Group:"g", +Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ia(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,i=this,k=this.svg,l={},m={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=k[b],!c&& +!f.detach&&("DOMElement"===h?(c=k[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=k[b]=u(ei[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete k[b],b=f[h],c=k[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(m[g]||(m[g]=[])).push(b),l[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!ec&&"Group"===h&&function gf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&gf(c,c._filterSignature),c._fillColorSignature&&i.applyFillColor(c, +c._fillColorSignature,b),c._strokeColorSignature&&i.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&i.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&k.attr(c._root||c,f.attributes)}for(g in m){c=m[g];a=[];for(e=0;b=c[e++];)f=l[b],(b=l[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=k[f.parent]){h=f.prev;c=k[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=k[h.id], +c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,k[f.next])}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!ec&&!e&&g&&b._fillColorSignature&&(e=b._fillColorSignature);g.length?this.applyFilters(b,g):null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295); +d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n=1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId?this.applyMask(b,d):null===d.maskId&&this.removeMask(b);null!=d.visible&&(b.style.visibility=d.visible?"":"hidden");if("Path"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!== +d.fillRepeat.join())?$h?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"lineColor"in d&&this.applyStrokeColor(b,d.lineColor,"",d.lineWidth),"lineGradient"in d&&this.applyStrokeGradient(b,d.lineGradient,"",d.lineWidth)};p.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",ci(c,!0))};p.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio", +"none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.source&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",bc.assets[b.id].src);null==c.width&&null==c.height&&(c.width=d,c.height=e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&&a.setAttribute("width",c.width)};p.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline", +"inherit");!1!==c.selectable?cc.add(a,"selectable"):cc.remove(a,"selectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy?a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild);a._text=c.text;a.appendChild(document.createTextNode(c.text))}};p.drawText=function(a,b){var c=b.attributes;!1!==c.selectable?cc.add(a,"selectable"):cc.remove(a,"selectable");a.setAttributeNS("http://www.w3.org/1999/xlink", +"text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor="start"};p.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=bc.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform"); +e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&& +a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,De):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,De));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&& +!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};p.removeFilters=function(a){var b= +a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",dc(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());k=0;for(l=d.length;karguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments"); +this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData"); +return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?He-d:e;e=mi(f-g);d=a+c*Fe(g);g=b+c*Ie(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(), +h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Mb.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var i,k,j,m=f;m< +b;m++){e.push(f=[]);i=a[m];j=i.length;k=i[0];if(/By/.test(k))switch(f[0]=k.replace(/By/,"To"),k){case "arcBy":f[1]=i[1];f[2]=i[2];f[3]=i[3];f[4]=i[4];f[5]=i[5];f[6]=i[6]+g;f[7]=i[7]+h;break;case "verticalLineBy":f[1]=i[1]+h;break;case "horizontalLineBy":f[1]=i[1]+g;break;case "moveBy":c=i[1]+g,d=i[2]+h;default:for(k=1;k>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],i=f[2];f=b[1];var j=(0+f[1])/2,e=j*h*-a/((e+f[2])/2*h-j*i+j*e)/j}for(a=0;a>ERROR WORKER",c)}});self.load= +function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new dj(a),d=c.env.exports;Ye.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,Ye.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a= +this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,i=[],j=[];h.root=this;for(var l in g)i.push(l),j.push(g[l]);Tg(a,function(a){i.push(a);Function.apply(null,i).apply(h,j);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Eb.module$exports&&(Eb=Eb.module$exports);var ed={},fd=zb,fj=Za,gj=Eb,hj=ob,ij=qb,Ze=n,jj=Ab;if("undefined"!=typeof importScripts){var mc,$e=function(a){mc.notify(a.data)};mc=new fj(function(a){postMessage(a)}, +function(){removeEventListener("message",$e);mc=null});addEventListener("message",$e);gj(mc)}else{window.bonsai=fd;var kj=Ze.map(document.getElementsByTagName("script"),function(a){return a.src});fd.Renderer=ij;fd.setup({baseUrl:Ze.baseUri(document),runnerContext:hj,runnerUrl:jj.chooseRunnerUrl(kj)||"bonsai.js"})}ed.module$exports&&(ed=ed.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3.2/bonsai.min.js b/ajax/libs/bonsai/0.3.2/bonsai.min.js new file mode 100644 index 000000000..4119bc142 --- /dev/null +++ b/ajax/libs/bonsai/0.3.2/bonsai.min.js @@ -0,0 +1,281 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function X(a,b){this.x=a||0;this.y=b||0}function Gb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function ff(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function gf(a){var b=this.type,c=hf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function jf(){this._isStopped= +!0}function id(a,b){var c,d,e,f=[],g=!0,h=[],i=a&&a.length||0,b=b||M;if(0===i)return[];for(var k,l,m=0;m>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Hb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,k,l,m=ha(e,f,g);i=ia(e,f,g);k=(i+m)/2;if(m==i)h=i=0;else{l=m-i;i=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function jd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*pc(d,b,a+1/3),e=255*pc(d,b,a),a=255*pc(d,b,a-1/3);return ka(c)<<24|ka(e)<<16|ka(a)<<8}function qc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function kd(a){this.pendingAssets=a}function ld(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return kf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function md(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/la(c,2),d=Kb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Kb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*l-ta*k+(a+h)/2;l=f*k+ta*l+(b+i)/2;b=ud((b-l)/d);i=ud((i-l)/d);b=ab&&(b=2*Z+b);0>i&&(i=2*Z+i);g&&b>i&&(b-=2*Z);!g&&i>b&&(i-=2*Z);return{cx:o,cy:l,rx:c,ry:d,startAngle:b,endAngle:i}}function vd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:qf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Ma.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function sc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function rf(){var a=this._matrix,b=wd(a.b,a.a),a=-wd(a.c,a.d);return b>a?b:a}function sf(a){if(tc(a)){var a=+a%(2*tf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= +d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function uf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function vf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function wf(){return this.matrix.tx}function xf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= +!0}function yf(){return this.matrix.ty}function zf(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Af(){return this._scaleX}function Bf(a){tc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Cf(){return this._scaleY}function Df(a){tc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ef(){return(this.scaleX+this.scaleY)/2}function Ff(a){this.scaleX=this.scaleY=a}function Gf(a){this._opacity= +1a?0:+a}function Hf(){return this._origin.clone()}function If(a){var b=this._origin;b.x=a.x;b.y=a.y}function Jf(){return this._cursor}function Kf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Lf(){return this._filters.slice(0)}function Mf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof xd.BaseFilter?a:new xd[a]})):this._filters.length=0}function Nf(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& +!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&E.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&E.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Of(){return this._clip}function Pf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&E.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&E.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Qf(){return this._mask}function E(){Object.defineProperty(this,"id",{value:Rf++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new Sf),matrix:F(uf,vf,!0),_filters:C([],!0),filters:F(Lf,Mf,!0),_opacity:C(1,!0),opacity:F(Tf,Gf,!0),_origin:C(new Uf), +origin:F(Hf,If,!0),rotation:F(rf,sf,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:F(Ef,Ff,!0),scaleX:F(Af,Bf,!0),scaleY:F(Cf,Df,!0),x:F(wf,xf,!0),y:F(yf,zf,!0),clip:F(Of,Nf,!0),_clip:C(null,!0),_clipId:C(null,!0),mask:F(Qf,Pf,!0),_mask:C(null,!0),_maskId:C(null,!0),cursor:F(Jf,Kf,!0),_cursor:C(null,!0),fillRule:C("inherit",!0),visible:C(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function yd(a,b,c){a&&(this._loader=a);uc.call(this);c&&this.bindAssetCallback(c)}function vc(){zd.call(this)}function Ad(a,b,c){wc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=Bd.mixin({},this._domAttributes); +this._mutatedCssStyles=Bd.mixin({},this._cssStyles)})}function Cd(a,b,c){Dd.call(this,null,b,c);this.root=a;this._children=[];var d=this;b&&a.loadSubMovie(b,function(a){a?d.emitAsync("error",a,d):d.emitAsync("load",d)},this)}function Vf(){return this._textFillColor}function Wf(a){this._textFillColor=Ed(a,this._textFillColor)}function Xf(){return this._textFillGradient}function Yf(a){a&&(this._textFillGradient=Zf(a))}function $f(){return this._fontFamily}function ag(a){this._fontFamily=a?a.fontId|| +a:null}function bg(){return this._glyphx}function cg(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function dg(){return this._glyphy}function eg(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function fg(a){this._textStrokeColor=Ed(a,this._textStrokeColor)}function Fd(a){Gd.call(this);Object.defineProperties(this._attributes,{text:D(a||"",!0,!0),fontSize:D(null,!0,!0),fontFamily:wa($f,ag,!0),_fontFamily:D(null,!0),fontStyle:D(null,!0,!0),fontWeight:D(null,!0,!0),_textFillColor:D(null, +!0),textFillColor:wa(Vf,Wf,!0),_textFillGradient:D(null,!0),textFillGradient:wa(Xf,Yf,!0),textFillOpacity:D(1,!0,!0),_glyphx:D(null,!0),_glyphy:D(null,!0),glyphx:wa(bg,cg,!0),glyphy:wa(dg,eg,!0),textLineOpacity:D(1,!0,!0),_textStrokeColor:D(null,!0),textStrokeColor:wa(gg,fg,!0),textStrokeWidth:D(0,!0,!0),selectable:D(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient", +fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function hg(){return this._textFillColor}function ig(a){this._textFillColor=Hd(a,this._textFillColor)}function jg(){return this._textFillGradient}function kg(a){a&&(this._textFillGradient=lg(a))}function mg(){return this._fontFamily}function ng(a){this._fontFamily= +a?a.fontId||a:null}function og(a){this._textStrokeColor=Hd(a,this._textStrokeColor)}function pg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function qg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function rg(a){1<=a&&(this._miterLimit=+a)}function sg(a){this._owner.clear();this._owner.addChild(new xc(a))}function tg(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Qb={},Qb={png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap", +gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};Qb.module$exports&&(Qb=Qb.module$exports);var Rb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++}, +done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- +1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ +2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Tb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Tb.bounceIn(2*a)/2:Tb.bounceOut(2*a-1)/2+0.5}};Ba.module$exports=Tb;Ba.module$exports&&(Ba=Ba.module$exports);var Va={},me={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){me[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Va.module$exports=me;Va.module$exports&&(Va=Va.module$exports);var ba={},ne=S,ch=Math.cos,dh=Math.sin;Gb.prototype={clone:function(){return new Gb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new ne(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=ch(a),a=dh(a);return this.concat(new Gb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new ne(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};ba.module$exports=Gb;ba.module$exports&&(ba=ba.module$exports);var Wa={},eh=ba;Wa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new eh},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Ub={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new ff,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Ub.module$exports&&(Ub=Ub.module$exports);var Xa={},hf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=gf;a.stop=jf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Ca={}, +La=Ta,M={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, +smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},oe={},I;for(I in M)M.hasOwnProperty(I)&&M[I].shorthands.forEach(function(a){oe[a]=I});var pe={};for(I in M)M.hasOwnProperty(I)&&(pe[I]=M[I].shorthands[0]);var Vb=[];for(I in M)M.hasOwnProperty(I)&&(Vb.push(I),Vb=Vb.concat(M[I].shorthands));Ca.module$exports={validTokens:Vb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(oe[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return id(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=jd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ka(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=Y(a);return new Hb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ia(255,ha(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ia(255, +ha(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ia(255,ha(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ia(1,ha(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ha(0,ia(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ha(0,ia(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],jh(),b);return c};r.clone=function(a){return a?Y(+this).set(a):Y(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ka(360*this.h()),ka(100*this.s())+"%",ka(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};Y.parse=function(a,b){var c,a=""+a;a in se&&(a=se[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=jd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:Y.parse(b)};z.module$exports=Y;z.module$exports&&(z=z.module$exports);var w={},kh=n,Pc="".split,Qc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof qc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new qc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Pc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new qc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, +i=-1,k=Pc.call(a," "),l=k.length;++id.length)return this;c=vd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from= +b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};K.propertiesFromAbsoluteArc=rc;K.splitAbsoluteCubicBezier=vd;K.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+ +"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1< +this.currentAnimation&&(this.animations[this.currentAnimation].isPlaying=!1);return this},reset:function(){this.animations.forEach(function(a){a.reset()});this.currentAnimation=-1;return this},begin:function(){var a=this.keyframes[0],b=this.subjects,c,d;if(a&&b.length)for(var e=0,f=b.length;ed&&(d=c);d>this.duration&&(this.duration=d);return h}};$b.mixin(sc.prototype,Gh);Ea.module$exports=sc;Ea.module$exports&&(Ea=Ea.module$exports);var U={},Hh=w,va=n,Sf=ba,Uf=S,ye=pa,Ih=Ea,xd=oa,F=va.descriptorAccessor,C=va.descriptorData,Jh=va.getter,Rf=1,wd=Math.atan2,tf=Math.PI,tc=isFinite,Tf=Jh("_opacity");E.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b, +c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?E.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}}; +Ga.module$exports=yc;Ga.module$exports&&(Ga=Ga.module$exports);var nb={},Od=ga,Vh=Ga,Wh=n,De=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg", +"application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Yc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Od.prototype);O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Vh(e)).on("load",function(){var c;a.type in De?c=De[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler")); +d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Yc||(Yc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Wh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Yc.appendChild(document.createTextNode('@font-face {font-family: "'+ +a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};nb.module$exports=O;nb.module$exports&&(nb=nb.module$exports);var ob={},Pd=ga,Xh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Yh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};zc.prototype=Object.create(Pd.prototype);zc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth, +height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Xh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Yh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause", +function(){},!1))};ob.module$exports=zc;ob.module$exports&&(ob=ob.module$exports);var Ha={},Zc=n,Zh=w,$h=W,ai=nb,bi=ob,ci=mb,di=Ga;aa.assets={};aa.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ee=aa.handlers={Bitmap:ci,Font:ai,Video:bi,Raw:di};aa.prototype={destroy:function(a){delete aa.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ee)(new Ee[d](a.request,a.id)).on("registerElement",function(b){aa.assets[a.id]=b}).on("load",this, +function(c){this.emit(b,Zc.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Zc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,i=this.preloadID?++this.preloadID:this.preloadID=1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(i+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!= +c?a.setAttribute("transform",gc(c)):null===c&&a.removeAttribute("transform")}}};var p=Bc.prototype=Ge.mixin({},hi,ji),qi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ia(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,i=this,k=this.svg, +l={},m={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=k[b],!c&&!f.detach&&("DOMElement"===h?(c=k[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=k[b]=u(qi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete k[b],b=f[h],c=k[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(m[g]||(m[g]=[])).push(b),l[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!hc&&"Group"=== +h&&function pf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&pf(c,c._filterSignature),c._fillColorSignature&&i.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&i.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&i.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&k.attr(c._root||c,f.attributes)}for(g in m){c=m[g];a=[];for(e=0;b=c[e++];)f=l[b],(b=l[f.next])?b.prev=f:a.push(f);for(e= +0;f=a[e++];)if(g=k[f.parent]){h=f.prev;c=k[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=k[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,k[f.next])}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!hc&&!e&&g&&b._fillColorSignature&&(e=b._fillColorSignature);g.length?this.applyFilters(b,g): +null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295);d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n=1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId?this.applyMask(b,d):null===d.maskId&&this.removeMask(b); +null!=d.visible&&(b.style.visibility=d.visible?"":"hidden");if("Path"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!==d.fillRepeat.join())?ki?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b),"strokeColor"in d&&this.applyStrokeColor(b,d.strokeColor,"",d.strokeWidth),"strokeGradient"in d&&this.applyStrokeGradient(b,d.strokeGradient, +"",d.strokeWidth)};p.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",ni(c,!0))};p.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio","none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.source&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",ec.assets[b.id].src);null==c.width&&null==c.height&&(c.width=d,c.height=e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&& +a.setAttribute("width",c.width)};p.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline","inherit");!1!==c.selectable?fc.add(a,"selectable"):fc.remove(a,"selectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy?a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild); +a._text=c.text;a.appendChild(document.createTextNode(c.text))}};p.drawText=function(a,b){var c=b.attributes;!1!==c.selectable?fc.add(a,"selectable"):fc.remove(a,"selectable");a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor="start"};p.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=ec.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d= +c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml", +"body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Je):a.setAttribute(e.slice(4), +d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Je));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&& +this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform", +gc(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());k=0;for(l=d.length;karguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData"); +return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData"); +return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=xi(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)}; +Nb.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var i,k,j,m=f;m>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2], +h=f[1],i=f[2];f=b[1];var j=(0+f[1])/2,e=j*h*-a/((e+f[2])/2*h-j*i+j*e)/j}for(a=0;a>ERROR WORKER",c)}});self.load=function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new nj(a),d=c.env.exports;cf.mixin(self, +d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,cf.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a=this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,i=[],j=[];h.root=this;for(var l in g)i.push(l),j.push(g[l]);ah(a, +function(a){i.push(a);Function.apply(null,i).apply(h,j);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Fb.module$exports&&(Fb=Fb.module$exports);var gd={},hd=Ab,pj=Za,qj=Fb,rj=pb,sj=rb,df=n,tj=Bb;if("undefined"!=typeof importScripts){var oc,ef=function(a){oc.notify(a.data)};oc=new pj(function(a){postMessage(a)},function(){removeEventListener("message",ef);oc=null});addEventListener("message",ef);qj(oc)}else{window.bonsai=hd;var uj=df.map(document.getElementsByTagName("script"), +function(a){return a.src});hd.Renderer=sj;hd.setup({baseUrl:df.baseUri(document),runnerContext:rj,runnerUrl:tj.chooseRunnerUrl(uj)||"bonsai.js"})}gd.module$exports&&(gd=gd.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3.3/bonsai.min.js b/ajax/libs/bonsai/0.3.3/bonsai.min.js new file mode 100644 index 000000000..c7ecb98e6 --- /dev/null +++ b/ajax/libs/bonsai/0.3.3/bonsai.min.js @@ -0,0 +1,280 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Ib(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function gf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function hf(a){var b=this.type,c=jf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function kf(){this._isStopped= +!0}function gd(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var i,n,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Jb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,i,n,l=ha(e,f,g);k=ia(e,f,g);i=(k+l)/2;if(l==k)h=k=0;else{n=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function hd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ka(c)<<24|ka(e)<<16|ka(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function id(a){this.pendingAssets=a}function jd(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return lf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function kd(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/la(c,2),d=Mb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Mb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*n-ta*i+(a+h)/2;n=f*i+ta*n+(b+k)/2;b=sd((b-n)/d);k=sd((k-n)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:o,cy:n,rx:c,ry:d,startAngle:b,endAngle:k}}function td(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:rf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Na.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function sf(){var a=this._matrix,b=ud(a.b,a.a),a=-ud(a.c,a.d);return b>a?b:a}function tf(a){if(sc(a)){var a=+a%(2*uf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= +d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function vf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function wf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function xf(){return this.matrix.tx}function yf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= +!0}function zf(){return this.matrix.ty}function Af(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Bf(){return this._scaleX}function Cf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Df(){return this._scaleY}function Ef(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ff(){return(this.scaleX+this.scaleY)/2}function Gf(a){this.scaleX=this.scaleY=a}function Hf(a){this._opacity= +1a?0:+a}function If(){return this._origin.clone()}function Jf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Kf(){return this._cursor}function Lf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Mf(){return this._filters.slice(0)}function Nf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof vd.BaseFilter?a:new vd[a]})):this._filters.length=0}function Of(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& +!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Pf(){return this._clip}function Qf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Rf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:Sf++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new Tf),matrix:G(vf,wf,!0),_filters:D([],!0),filters:G(Mf,Nf,!0),_opacity:D(1,!0),opacity:G(Uf,Hf,!0),_origin:D(new Vf), +origin:G(If,Jf,!0),rotation:G(sf,tf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(Ff,Gf,!0),scaleX:G(Bf,Cf,!0),scaleY:G(Df,Ef,!0),x:G(xf,yf,!0),y:G(zf,Af,!0),clip:G(Pf,Of,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(Rf,Qf,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(Kf,Lf,!0),_cursor:D(null,!0),fillRule:D("inherit",!0),visible:D(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function tc(){wd.call(this)}function xd(a,b,c){uc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=yd.mixin({},this._domAttributes);this._mutatedCssStyles=yd.mixin({},this._cssStyles)})}function Wf(){return this._textFillColor} +function Xf(a){this._textFillColor=zd(a,this._textFillColor)}function Yf(){return this._textFillGradient}function Zf(a){a&&(this._textFillGradient=$f(a))}function ag(){return this._fontFamily}function bg(a){this._fontFamily=a?a.fontId||a:null}function cg(){return this._glyphx}function dg(a){Oa.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function eg(){return this._glyphy}function fg(a){Oa.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function gg(a){this._textStrokeColor=zd(a,this._textStrokeColor)} +function Ad(a){Bd.call(this);Object.defineProperties(this._attributes,{text:E(a||"",!0,!0),fontSize:E(null,!0,!0),fontFamily:wa(ag,bg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:wa(Wf,Xf,!0),_textFillGradient:E(null,!0),textFillGradient:wa(Yf,Zf,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:wa(cg,dg,!0),glyphy:wa(eg,fg,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:wa(hg, +gg,!0),textStrokeWidth:E(0,!0,!0),selectable:E(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function ig(){return this._textFillColor} +function jg(a){this._textFillColor=Cd(a,this._textFillColor)}function kg(){return this._textFillGradient}function lg(a){a&&(this._textFillGradient=mg(a))}function ng(){return this._fontFamily}function og(a){this._fontFamily=a?a.fontId||a:null}function pg(a){this._textStrokeColor=Cd(a,this._textStrokeColor)}function qg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function rg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function sg(a){1<=a&&(this._miterLimit=+a)}function tg(a){this._owner.clear(); +this._owner.addChild(new vc(a))}function ug(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Rb={},Rb= +{png:"Bitmap",jpg:"Bitmap",jpeg:"Bitmap",gif:"Bitmap",bmp:"Bitmap",svg:"Bitmap",css:"Raw",json:"Raw",xml:"Raw",html:"Raw",txt:"Raw"};Rb.module$exports&&(Rb=Rb.module$exports);var Sb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d, +e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- +1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ +2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Ub.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Ub.bounceIn(2*a)/2:Ub.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=Ub;Ca.module$exports&&(Ca=Ca.module$exports);var Wa={},me={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){me[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Wa.module$exports=me;Wa.module$exports&&(Wa=Wa.module$exports);var aa={},ne=S,eh=Math.cos,fh=Math.sin;Ib.prototype={clone:function(){return new Ib(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new ne(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=eh(a),a=fh(a);return this.concat(new Ib(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new ne(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Ib;aa.module$exports&&(aa=aa.module$exports);var Xa={},gh=aa;Xa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new gh},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Xa.module$exports&&(Xa=Xa.module$exports);var Vb={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new gf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Vb.module$exports&&(Vb=Vb.module$exports);var Ya={},jf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Ya.module$exports=function(a){a.emitOn=hf;a.stop=kf;return a};Ya.module$exports&&(Ya=Ya.module$exports);var Da={}, +Ma=Ua,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, +smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},oe={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){oe[a]=J});var pe={};for(J in N)N.hasOwnProperty(J)&&(pe[J]=N[J].shorthands[0]);var Wb=[];for(J in N)N.hasOwnProperty(J)&&(Wb.push(J),Wb=Wb.concat(N[J].shorthands));Da.module$exports={validTokens:Wb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(oe[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return gd(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=hd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ka(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Jb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ia(255,ha(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ia(255, +ha(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ia(255,ha(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ia(1,ha(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ha(0,ia(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ha(0,ia(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],lh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ka(360*this.h()),ka(100*this.s())+"%",ka(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in se&&(a=se[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=hd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},mh=m,Mc="".split,Nc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Mc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, +k=-1,i=Mc.call(a," "),n=i.length;++kd.length)return this;c=td(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from= +b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=td;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+ +"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1< +this.currentAnimation&&(this.animations[this.currentAnimation].isPlaying=!1);return this},reset:function(){this.animations.forEach(function(a){a.reset()});this.currentAnimation=-1;return this},begin:function(){var a=this.keyframes[0],b=this.subjects,c,d;if(a&&b.length)for(var e=0,f=b.length;ed&&(d=c);d>this.duration&&(this.duration=d);return h}};ac.mixin(rc.prototype,Ih);Fa.module$exports=rc;Fa.module$exports&&(Fa=Fa.module$exports);var U={},Jh=w,va=m,Tf=aa,Vf=S,ye=pa,Kh=Fa,vd=oa,G=va.descriptorAccessor,D=va.descriptorData,Lh=va.getter,Sf=1,ud=Math.atan2,uf=Math.PI,sc=isFinite,Uf=Lh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b, +c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ha.module$exports=wc;Ha.module$exports&&(Ha=Ha.module$exports);var nb={},Jd=fa,Th=Ha,Uh=m,Be=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype", +"application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Jd.prototype); +O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Th(e)).on("load",function(){var c;a.type in Be?c=Be[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style"))); +var c,d,e=[],f="";Uh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};nb.module$exports=O;nb.module$exports&&(nb=nb.module$exports);var ob={},Kd=fa,Vh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Wh={"start-with-nothing":"loadstart", +metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Kd.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Vh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type", +h),e.src=a,this.registerElement(e),e.addEventListener(Wh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};ob.module$exports=xc;ob.module$exports&&(ob=ob.module$exports);var Ia={},Wc=m,Xh=w,Yh=ea,Zh=nb,$h=ob,ai=mb,bi=Ha;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ce=$.handlers={Bitmap:ai,Font:Zh,Video:$h,Raw:bi}; +$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ce)(new Ce[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Wc.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);},preload:function(a,b){a=Wc.isArray(a)?a:[a];a.length||b();var c,d,e,f,g=0,h=0,k=this.preloadID? +++this.preloadID:this.preloadID=1;this.on("_preloadedAssetLoadSuccess",function(a){0==a.id.indexOf(k+"__")&&h++;h==g&&b()});this.on("_preloadedAssetLoadError",function(){});c=0;for(d=a.length;c=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",sb(c)):null===c&&a.removeAttribute("transform")}}};var p=zc.prototype=Xc.mixin({},fi,hi),oi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering", +b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ja(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,k=this,i=this.svg,n={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=i[b]=u(oi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b], +b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),n[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function qf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&qf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c, +c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e=0;b=c[e++];)f=n[b],(b=n[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next])}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d= +c.attributes,e=d.fillColor,f=d.fillGradient,g=d.filters||[];!gc&&!e&&g&&b._fillColorSignature&&(e=b._fillColorSignature);g.length?this.applyFilters(b,g):null===g&&b._filterSignature&&this.removeFilters(b);"clip"===c.offStageType&&(d.fillImage=null,f=d.fillGradient=null,e=d.fillColor=4294967295);d.clipId?(g=d.clipId+"_offStageParent",(b._clip=this.svg[g])?b._clip!==this.svg[g]&&b._clip.n++:(b._clip=this.svg[g]=this.svg.defs.appendChild(u("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=g,b._clip.n= +1),b.setAttribute("mask","url(#"+b._clip.id+")")):null===d.clipId&&this.removeClip(b);d.maskId?this.applyMask(b,d):null===d.maskId&&this.removeMask(b);null!=d.visible&&(b.style.visibility=d.visible?"":"hidden");if("Path"===a||"Text"===a||"TextSpan"===a)d.fillImageId||f&&(e||d.fillRepeat&&"1,1"!==d.fillRepeat.join())?ii?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):f?this.applyFillGradient(b,f,d.matrix):null!=e&&this.applyFillColor(b,e),"fillImageId"in d&&!d.fillImageId&&this.removeFillImage(b), +"strokeColor"in d&&this.applyStrokeColor(b,d.strokeColor,"",d.strokeWidth),"strokeGradient"in d&&this.applyStrokeGradient(b,d.strokeGradient,"",d.strokeWidth)};p.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",li(c,!0))};p.drawBitmap=function(a,b){var c=b.attributes;a.setAttribute("preserveAspectRatio","none");var d=c.naturalWidth,e=c.naturalHeight,f=e/d;null!=c.absoluteUrl&&a.setAttributeNS("http://www.w3.org/1999/xlink","href",c.absoluteUrl);null==c.width&&null==c.height&&(c.width=d,c.height= +e);null==c.height&&(c.height=(c.width||0)*f);null==c.width&&(c.width=(c.height||0)/f);c.height&&a.setAttribute("height",c.height);c.width&&a.setAttribute("width",c.width)};p.drawTextSpan=function(a,b){var c=b.attributes;a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");a.setAttribute("alignment-baseline","inherit");!1!==c.selectable?fc.add(a,"selectable"):fc.remove(a,"selectable");c.glyphx?a.setAttribute("x",c.glyphx.join(" ")):null===c.glyphx&&a.removeAttribute("x");c.glyphy? +a.setAttribute("y",c.glyphy.join(" ")):null===c.glyphy&&a.removeAttribute("y");if(a._text!==c.text){for(;a.firstChild;)a.removeChild(a.firstChild);a._text=c.text;a.appendChild(document.createTextNode(c.text))}};p.drawText=function(a,b){var c=b.attributes;!1!==c.selectable?fc.add(a,"selectable"):fc.remove(a,"selectable");a.setAttributeNS("http://www.w3.org/1999/xlink","text-anchor","start");null!=c.textOrigin&&a.setAttribute("alignment-baseline","top"===c.textOrigin?"hanging":"");a.style.textAnchor= +"start"};p.drawVideo=function(a,b){var c=b.attributes,d=b.id,e=Yc.assets[d];if("undefined"===typeof e)throw Error("asset <"+d+"> is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)}; +p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height), +a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ge):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Ge));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&& +c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);a._filterSignature&&this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/ +180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",sb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());i=0;for(n=d.length;iarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy", +a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo", +a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=zi(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d); +return this.animate(b,{segments:a.attr("segments")},c)};Ob.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,i,j,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],k=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*k+i*e)/i}for(a=0;a>ERROR WORKER",c)}});self.load= +function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new oj(a),d=c.env.exports;df.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,df.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a= +this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,k=[],i=[];h.root=this;for(var j in g)k.push(j),i.push(g[j]);ch(a,function(a){k.push(a);Function.apply(null,k).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Hb.module$exports&&(Hb=Hb.module$exports);var ed={},fd=Cb,qj=$a,rj=Hb,sj=pb,tj=rb,ef=m,uj=Db;if("undefined"!=typeof importScripts){var nc,ff=function(a){nc.notify(a.data)};nc=new qj(function(a){postMessage(a)}, +function(){removeEventListener("message",ff);nc=null});addEventListener("message",ff);rj(nc)}else{window.bonsai=fd;var vj=ef.map(document.getElementsByTagName("script"),function(a){return a.src});fd.Renderer=tj;fd.setup({baseUrl:ef.baseUri(document),runnerContext:sj,runnerUrl:uj.chooseRunnerUrl(vj)||"bonsai.js"})}ed.module$exports&&(ed=ed.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3.4/bonsai.min.js b/ajax/libs/bonsai/0.3.4/bonsai.min.js new file mode 100644 index 000000000..83df6e9e7 --- /dev/null +++ b/ajax/libs/bonsai/0.3.4/bonsai.min.js @@ -0,0 +1,277 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Hb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function gf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function hf(a){var b=this.type,c=jf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function kf(){this._isStopped= +!0}function ed(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var i,n,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Ib(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,i,n,l=ga(e,f,g);k=ha(e,f,g);i=(k+l)/2;if(l==k)h=k=0;else{n=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return lf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/ka(c,2),d=Lb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Lb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*n-ta*i+(a+h)/2;n=f*i+ta*n+(b+k)/2;b=qd((b-n)/d);k=qd((k-n)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:o,cy:n,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:rf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Mb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function sf(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function tf(a){if(sc(a)){var a=+a%(2*uf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= +d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function vf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function wf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function xf(){return this.matrix.tx}function yf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= +!0}function zf(){return this.matrix.ty}function Af(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Bf(){return this._scaleX}function Cf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Df(){return this._scaleY}function Ef(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ff(){return(this.scaleX+this.scaleY)/2}function Gf(a){this.scaleX=this.scaleY=a}function Hf(a){this._opacity= +1a?0:+a}function If(){return this._origin.clone()}function Jf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Kf(){return this._cursor}function Lf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Mf(){return this._filters.slice(0)}function Nf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Of(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& +!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Pf(){return this._clip}function Qf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Rf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:Sf++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new Tf),matrix:G(vf,wf,!0),_filters:D([],!0),filters:G(Mf,Nf,!0),_opacity:D(1,!0),opacity:G(Uf,Hf,!0),_origin:D(new Vf), +origin:G(If,Jf,!0),rotation:G(sf,tf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(Ff,Gf,!0),scaleX:G(Bf,Cf,!0),scaleY:G(Df,Ef,!0),x:G(xf,yf,!0),y:G(zf,Af,!0),clip:G(Pf,Of,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(Rf,Qf,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(Kf,Lf,!0),_cursor:D(null,!0),fillRule:D("inherit",!0),visible:D(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function tc(){ud.call(this)}function vd(a,b,c){uc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=wd.mixin({},this._domAttributes);this._mutatedCssStyles=wd.mixin({},this._cssStyles)})}function Wf(){return this._textFillColor} +function Xf(a){this._textFillColor=xd(a,this._textFillColor)}function Yf(){return this._textFillGradient}function Zf(a){a&&(this._textFillGradient=$f(a))}function ag(){return this._fontFamily}function bg(a){this._fontFamily=a?a.fontId||a:null}function cg(){return this._glyphx}function dg(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function eg(){return this._glyphy}function fg(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function gg(a){this._textStrokeColor=xd(a,this._textStrokeColor)} +function yd(a){zd.call(this);Object.defineProperties(this._attributes,{text:E(a||"",!0,!0),fontSize:E(null,!0,!0),fontFamily:wa(ag,bg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:wa(Wf,Xf,!0),_textFillGradient:E(null,!0),textFillGradient:wa(Yf,Zf,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:wa(cg,dg,!0),glyphy:wa(eg,fg,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:wa(hg, +gg,!0),textStrokeWidth:E(0,!0,!0),selectable:E(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};a&&this.attr("text",a)}function ig(){return this._textFillColor} +function jg(a){this._textFillColor=Ad(a,this._textFillColor)}function kg(){return this._textFillGradient}function lg(a){a&&(this._textFillGradient=mg(a))}function ng(){return this._fontFamily}function og(a){this._fontFamily=a?a.fontId||a:null}function pg(a){this._textStrokeColor=Ad(a,this._textStrokeColor)}function qg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function rg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function sg(a){1<=a&&(this._miterLimit=+a)}function tg(a){this._owner.clear(); +this._owner.addChild(new vc(a))}function ug(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Rb={module$exports:function(a){return{isLoading:!1, +isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1* +(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1=== +a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)* +(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0===a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2* +(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Tb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a,2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Tb.bounceIn(2*a)/2:Tb.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=Tb;Ca.module$exports&&(Ca=Ca.module$exports);var Va={},ke={BaseFilter:function(a, +b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ke[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};Va.module$exports=ke;Va.module$exports&&(Va=Va.module$exports);var aa={},le=S,eh=Math.cos,fh=Math.sin;Hb.prototype={clone:function(){return new Hb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c= +d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new le(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d= +b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=eh(a),a=fh(a);return this.concat(new Hb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new le(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Hb;aa.module$exports&&(aa=aa.module$exports);var Wa={},gh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new gh},setupFrom:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c; +delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Ub={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new gf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Ub.module$exports&&(Ub=Ub.module$exports);var Xa={},jf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0, +"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=hf;a.stop=kf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Da={},Ma=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"}, +lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"],shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P", +"P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]},smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},me={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){me[a]=J});var ne={};for(J in N)N.hasOwnProperty(J)&&(ne[J]=N[J].shorthands[0]);var Vb=[];for(J in N)N.hasOwnProperty(J)&& +(Vb.push(J),Vb=Vb.concat(N[J].shorthands));Da.module$exports={validTokens:Vb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,function(a,d,e){b.push(me[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return ed(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+ +a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Ib((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/ +2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255,ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a, +c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(),d=a.length;d--;)c._setPointAlongRange(a[d],lh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360* +this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in qe&&(a=qe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1), +16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0,-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null== +b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},mh=m,Mc="".split,Nc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c;if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Mc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&& +(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},k=-1,i=Mc.call(a," "),n=i.length;++kd.length)return this;c=rd(d.from.clone(), +new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b; +for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};$b.mixin(rc.prototype,Jh);Fa.module$exports=rc;Fa.module$exports&&(Fa=Fa.module$exports);var U={},Kh=w,va=m,Tf=aa,Vf=S,xe= +oa,Lh=Fa,td=na,G=va.descriptorAccessor,D=va.descriptorData,Mh=va.getter,Sf=1,sd=Math.atan2,uf=Math.PI,sc=isFinite,Uf=Mh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount? +F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ha.module$exports=wc;Ha.module$exports&& +(Ha=Ha.module$exports);var mb={},Hd=ea,Uh=Ha,Vh=m,Ae=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"}; +O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Hd.prototype);O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Uh(e)).on("load",function(){var c;a.type in Ae?c=Ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler")); +d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Vh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+ +a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=O;mb.module$exports&&(mb=mb.module$exports);var nb={},Id=ea,Wh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Xh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Id.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth, +height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Wh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Xh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause", +function(){},!1))};nb.module$exports=xc;nb.module$exports&&(nb=nb.module$exports);var Ia={},Be=m,Yh=w,Zh=mb,$h=nb,ai=lb,bi=Ha;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ce=$.handlers={Bitmap:ai,Font:Zh,Video:$h,Raw:bi};$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ce)(new Ce[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){this.emit(b, +Be.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);}};Be.mixin($.prototype,Yh);Ia.module$exports=$;Ia.module$exports&&(Ia=Ia.module$exports);var ob={},ci=V,De=Jd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=ci.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage= +function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)},run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},w);De.notifyRunnerAsync=De.notifyRunner;ob.module$exports=Jd;ob.module$exports&&(ob=ob.module$exports);var pb={},Oa=m,di=w,zg=V,ei=Kd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a, +function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext;b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"});b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions(); +return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a},destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this},debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b); +break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command,b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id);break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady|| +(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl=a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a,data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!== +typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup=!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message", +a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ei,di);pb.module$exports=Kd;pb.module$exports&&(pb=pb.module$exports);var qb={},fi=w,ec=m,Ja=z,gi=Da,Ee=ab,ya=Ua,hi=$a,Wc=Ia,Ld={},ii=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),fc=ya.cssClasses,rb=ya.matrixToString,ji=ya.gradientToSignature,ki=ya.filterToSignature,Fe=ya.valueFromSignatureForType,li=gi.exportToPath,gc=Ee.isFEColorMatrixEnabled,mi=Ee.filterElementsFromList, +ni=Wc.handlers.Font.fontIDs,Ge=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit",opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},Md="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),oi=ec.isArray; +yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c=b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=ni[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&& +a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",rb(c)):null===c&&a.removeAttribute("transform")}}};var p=zc.prototype=ec.mixin({},fi,hi),pi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ja(b).rgba()}}; +p.render=function(a){var b,c,d,e,f,g,h,k=this,i=this.svg,n={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=i[b]=u(pi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b],b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),n[b]=f);if(this[b= +"draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function qf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&qf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e= +0;b=c[e++];)f=n[b],(b=n[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next]||null)}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&& +(f=b._fillColorSignature);oi(e)&&(0 is unkown.");var d= +c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml", +"body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ge):a.setAttribute(e.slice(4), +d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Ge));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&& +this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform", +rb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());i=0;for(n=d.length;iarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData"); +return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments"); +this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=Ai(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo= +function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Ob.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,i,j,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],k=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*k+i*e)/i}for(a=0;a>ERROR WORKER",c)}});self.load=function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new pj(a),d=c.env.exports;df.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage, +df.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a=this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,k=[],i=[];h.root=this;for(var j in g)k.push(j),i.push(g[j]);ch(a,function(a){k.push(a);Function.apply(null,k).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Gb.module$exports&&(Gb=Gb.module$exports);var cd={},dd=Bb,rj=Za,sj=Gb,tj=ob,uj=qb,ef=m,vj=Cb;if("undefined"!=typeof importScripts){var nc, +ff=function(a){nc.notify(a.data)};nc=new rj(function(a){postMessage(a)},function(){removeEventListener("message",ff);nc=null});addEventListener("message",ff);sj(nc)}else{window.bonsai=dd;var wj=ef.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=uj;dd.setup({baseUrl:ef.baseUri(document),runnerContext:tj,runnerUrl:vj.chooseRunnerUrl(wj)||"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3.5/bonsai.min.js b/ajax/libs/bonsai/0.3.5/bonsai.min.js new file mode 100644 index 000000000..b245987e1 --- /dev/null +++ b/ajax/libs/bonsai/0.3.5/bonsai.min.js @@ -0,0 +1,277 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Hb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function gf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function hf(a){var b=this.type,c=jf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function kf(){this._isStopped= +!0}function ed(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var i,n,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Ib(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,i,n,l=ga(e,f,g);k=ha(e,f,g);i=(k+l)/2;if(l==k)h=k=0;else{n=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return lf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/ka(c,2),d=Lb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Lb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*n-ta*i+(a+h)/2;n=f*i+ta*n+(b+k)/2;b=qd((b-n)/d);k=qd((k-n)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:o,cy:n,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:rf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Mb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function sf(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function tf(a){if(sc(a)){var a=+a%(2*uf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= +d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function vf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function wf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function xf(){return this.matrix.tx}function yf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= +!0}function zf(){return this.matrix.ty}function Af(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Bf(){return this._scaleX}function Cf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Df(){return this._scaleY}function Ef(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ff(){return(this.scaleX+this.scaleY)/2}function Gf(a){this.scaleX=this.scaleY=a}function Hf(a){this._opacity= +1a?0:+a}function If(){return this._origin.clone()}function Jf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Kf(){return this._cursor}function Lf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Mf(){return this._filters.slice(0)}function Nf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Of(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& +!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Pf(){return this._clip}function Qf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Rf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:Sf++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new Tf),matrix:G(vf,wf,!0),_filters:D([],!0),filters:G(Mf,Nf,!0),_opacity:D(1,!0),opacity:G(Uf,Hf,!0),_origin:D(new Vf), +origin:G(If,Jf,!0),rotation:G(sf,tf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(Ff,Gf,!0),scaleX:G(Bf,Cf,!0),scaleY:G(Df,Ef,!0),x:G(xf,yf,!0),y:G(zf,Af,!0),clip:G(Pf,Of,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(Rf,Qf,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(Kf,Lf,!0),_cursor:D(null,!0),fillRule:D("inherit",!0),visible:D(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function tc(){ud.call(this)}function vd(a,b,c){uc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=wd.mixin({},this._domAttributes);this._mutatedCssStyles=wd.mixin({},this._cssStyles)})}function Wf(){return this._textFillColor} +function Xf(a){this._textFillColor=xd(a,this._textFillColor)}function Yf(){return this._textFillGradient}function Zf(a){a&&(this._textFillGradient=$f(a))}function ag(){return this._fontFamily}function bg(a){this._fontFamily=a?a.fontId||a:null}function cg(){return this._glyphx}function dg(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function eg(){return this._glyphy}function fg(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function gg(a){this._textStrokeColor=xd(a,this._textStrokeColor)} +function yd(a){zd.call(this);a=""+a;Object.defineProperties(this._attributes,{text:E("",!0,!0),fontSize:E(null,!0,!0),fontFamily:wa(ag,bg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:wa(Wf,Xf,!0),_textFillGradient:E(null,!0),textFillGradient:wa(Yf,Zf,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:wa(cg,dg,!0),glyphy:wa(eg,fg,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:wa(hg, +gg,!0),textStrokeWidth:E(0,!0,!0),selectable:E(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};null!=a&&this.attr("text",a)}function ig(){return this._textFillColor} +function jg(a){this._textFillColor=Ad(a,this._textFillColor)}function kg(){return this._textFillGradient}function lg(a){a&&(this._textFillGradient=mg(a))}function ng(){return this._fontFamily}function og(a){this._fontFamily=a?a.fontId||a:null}function pg(a){this._textStrokeColor=Ad(a,this._textStrokeColor)}function qg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function rg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function sg(a){1<=a&&(this._miterLimit=+a)}function tg(a){this._owner.clear(); +this._owner.addChild(new vc(a))}function ug(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Rb={module$exports:function(a){return{isLoading:!1, +isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1* +(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a-1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1=== +a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)* +(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0===a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2* +(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Tb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a,2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Tb.bounceIn(2*a)/2:Tb.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=Tb;Ca.module$exports&&(Ca=Ca.module$exports);var Va={},ke={BaseFilter:function(a, +b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ke[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};Va.module$exports=ke;Va.module$exports&&(Va=Va.module$exports);var aa={},le=S,eh=Math.cos,fh=Math.sin;Hb.prototype={clone:function(){return new Hb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c= +d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new le(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d= +b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=eh(a),a=fh(a);return this.concat(new Hb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new le(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Hb;aa.module$exports&&(aa=aa.module$exports);var Wa={},gh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new gh},setupFrom:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c; +delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Ub={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new gf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Ub.module$exports&&(Ub=Ub.module$exports);var Xa={},jf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0, +"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=hf;a.stop=kf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Da={},Ma=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"}, +lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"],shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P", +"P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]},smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},me={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){me[a]=J});var ne={};for(J in N)N.hasOwnProperty(J)&&(ne[J]=N[J].shorthands[0]);var Vb=[];for(J in N)N.hasOwnProperty(J)&& +(Vb.push(J),Vb=Vb.concat(N[J].shorthands));Da.module$exports={validTokens:Vb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,function(a,d,e){b.push(me[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return ed(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+ +a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Ib((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/ +2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255,ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a, +c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(),d=a.length;d--;)c._setPointAlongRange(a[d],lh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360* +this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in qe&&(a=qe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1), +16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0,-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null== +b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},mh=m,Mc="".split,Nc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c;if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Mc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&& +(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{},k=-1,i=Mc.call(a," "),n=i.length;++kd.length)return this;c=rd(d.from.clone(), +new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b; +for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};$b.mixin(rc.prototype,Jh);Fa.module$exports=rc;Fa.module$exports&&(Fa=Fa.module$exports);var U={},Kh=w,va=m,Tf=aa,Vf=S,xe= +oa,Lh=Fa,td=na,G=va.descriptorAccessor,D=va.descriptorData,Mh=va.getter,Sf=1,sd=Math.atan2,uf=Math.PI,sc=isFinite,Uf=Mh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount? +F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ha.module$exports=wc;Ha.module$exports&& +(Ha=Ha.module$exports);var mb={},Hd=ea,Uh=Ha,Vh=m,Ae=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"}; +O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Hd.prototype);O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Uh(e)).on("load",function(){var c;a.type in Ae?c=Ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler")); +d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Vh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+ +a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=O;mb.module$exports&&(mb=mb.module$exports);var nb={},Id=ea,Wh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Xh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Id.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth, +height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Wh.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Xh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause", +function(){},!1))};nb.module$exports=xc;nb.module$exports&&(nb=nb.module$exports);var Ia={},Be=m,Yh=w,Zh=mb,$h=nb,ai=lb,bi=Ha;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ce=$.handlers={Bitmap:ai,Font:Zh,Video:$h,Raw:bi};$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ce)(new Ce[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){this.emit(b, +Be.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);}};Be.mixin($.prototype,Yh);Ia.module$exports=$;Ia.module$exports&&(Ia=Ia.module$exports);var ob={},ci=V,De=Jd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=ci.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage= +function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)},run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},w);De.notifyRunnerAsync=De.notifyRunner;ob.module$exports=Jd;ob.module$exports&&(ob=ob.module$exports);var pb={},Oa=m,di=w,zg=V,ei=Kd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a, +function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext;b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"});b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions(); +return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a},destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this},debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b); +break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command,b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id);break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady|| +(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl=a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a,data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!== +typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup=!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message", +a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ei,di);pb.module$exports=Kd;pb.module$exports&&(pb=pb.module$exports);var qb={},fi=w,ec=m,Ja=z,gi=Da,Ee=ab,ya=Ua,hi=$a,Wc=Ia,Ld={},ii=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),fc=ya.cssClasses,rb=ya.matrixToString,ji=ya.gradientToSignature,ki=ya.filterToSignature,Fe=ya.valueFromSignatureForType,li=gi.exportToPath,gc=Ee.isFEColorMatrixEnabled,mi=Ee.filterElementsFromList, +ni=Wc.handlers.Font.fontIDs,Ge=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit",opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},Md="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),oi=ec.isArray; +yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c=b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=ni[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&& +a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",rb(c)):null===c&&a.removeAttribute("transform")}}};var p=zc.prototype=ec.mixin({},fi,hi),pi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ja(b).rgba()}}; +p.render=function(a){var b,c,d,e,f,g,h,k=this,i=this.svg,n={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=i[b]=u(pi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b],b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),n[b]=f);if(this[b= +"draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function qf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&qf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e= +0;b=c[e++];)f=n[b],(b=n[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next]||null)}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&& +(f=b._fillColorSignature);oi(e)&&(0 is unkown.");var d= +c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml", +"body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ge):a.setAttribute(e.slice(4), +d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Ge));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&& +this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform", +rb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());i=0;for(n=d.length;iarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData"); +return this};o.curveBy=function(a,b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments"); +this._segments.push(["quadraticCurveBy",a,b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=Ai(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo= +function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Ob.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,i,j,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],k=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*k+i*e)/i}for(a=0;a>ERROR WORKER",c)}});self.load=function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new pj(a),d=c.env.exports;df.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,df.mixin(self, +self.exports))});c.loadSubMovie=function(a,b,g){var a=this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,k=[],i=[];h.root=this;for(var j in g)k.push(j),i.push(g[j]);ch(a,function(a){k.push(a);Function.apply(null,k).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Gb.module$exports&&(Gb=Gb.module$exports);var cd={},dd=Bb,rj=Za,sj=Gb,tj=ob,uj=qb,ef=m,vj=Cb;if("undefined"!=typeof importScripts){var nc, +ff=function(a){nc.notify(a.data)};nc=new rj(function(a){postMessage(a)},function(){removeEventListener("message",ff);nc=null});addEventListener("message",ff);sj(nc)}else{window.bonsai=dd;var wj=ef.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=uj;dd.setup({baseUrl:ef.baseUri(document),runnerContext:tj,runnerUrl:vj.chooseRunnerUrl(wj)||"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3.6/bonsai.min.js b/ajax/libs/bonsai/0.3.6/bonsai.min.js new file mode 100644 index 000000000..9204019f4 --- /dev/null +++ b/ajax/libs/bonsai/0.3.6/bonsai.min.js @@ -0,0 +1,278 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Hb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function gf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function hf(a){var b=this.type,c=jf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function kf(){this._isStopped= +!0}function ed(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var i,n,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Ib(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,i,n,l=ga(e,f,g);k=ha(e,f,g);i=(k+l)/2;if(l==k)h=k=0;else{n=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return lf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/ka(c,2),d=Lb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Lb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*n-ta*i+(a+h)/2;n=f*i+ta*n+(b+k)/2;b=qd((b-n)/d);k=qd((k-n)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:o,cy:n,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:rf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Mb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function sf(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function tf(a){if(sc(a)){var a=+a%(2*uf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= +d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function vf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function wf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function xf(){return this.matrix.tx}function yf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= +!0}function zf(){return this.matrix.ty}function Af(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Bf(){return this._scaleX}function Cf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Df(){return this._scaleY}function Ef(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ff(){return(this.scaleX+this.scaleY)/2}function Gf(a){this.scaleX=this.scaleY=a}function Hf(a){this._opacity= +1a?0:+a}function If(){return this._origin.clone()}function Jf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Kf(){return this._cursor}function Lf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Mf(){return this._filters.slice(0)}function Nf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Of(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& +!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Pf(){return this._clip}function Qf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Rf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:Sf++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new Tf),matrix:G(vf,wf,!0),_filters:D([],!0),filters:G(Mf,Nf,!0),_opacity:D(1,!0),opacity:G(Uf,Hf,!0),_origin:D(new Vf), +origin:G(If,Jf,!0),rotation:G(sf,tf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(Ff,Gf,!0),scaleX:G(Bf,Cf,!0),scaleY:G(Df,Ef,!0),x:G(xf,yf,!0),y:G(zf,Af,!0),clip:G(Pf,Of,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(Rf,Qf,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(Kf,Lf,!0),_cursor:D(null,!0),fillRule:D("inherit",!0),visible:D(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function tc(){ud.call(this)}function vd(a,b,c){uc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=wd.mixin({},this._domAttributes);this._mutatedCssStyles=wd.mixin({},this._cssStyles)})}function Wf(){return this._textFillColor} +function Xf(a){this._textFillColor=xd(a,this._textFillColor)}function Yf(){return this._textFillGradient}function Zf(a){a&&(this._textFillGradient=$f(a))}function ag(){return this._fontFamily}function bg(a){this._fontFamily=a?a.fontId||a:null}function cg(){return this._glyphx}function dg(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function eg(){return this._glyphy}function fg(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function gg(a){this._textStrokeColor=xd(a,this._textStrokeColor)} +function yd(a){zd.call(this);a=""+a;Object.defineProperties(this._attributes,{text:E("",!0,!0),fontSize:E(null,!0,!0),fontFamily:wa(ag,bg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:wa(Wf,Xf,!0),_textFillGradient:E(null,!0),textFillGradient:wa(Yf,Zf,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:wa(cg,dg,!0),glyphy:wa(eg,fg,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:wa(hg, +gg,!0),textStrokeWidth:E(0,!0,!0),selectable:E(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};null!=a&&this.attr("text",a)}function ig(){return this._textFillColor} +function jg(a){this._textFillColor=Ad(a,this._textFillColor)}function kg(){return this._textFillGradient}function lg(a){a&&(this._textFillGradient=mg(a))}function ng(){return this._fontFamily}function og(a){this._fontFamily=a?a.fontId||a:null}function pg(a){this._textStrokeColor=Ad(a,this._textStrokeColor)}function qg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function rg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function sg(a){1<=a&&(this._miterLimit=+a)}function tg(a){this._owner.clear(); +this._owner.addChild(new vc(a))}function ug(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText): +c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Rb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c= +this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- +1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ +2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Tb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Tb.bounceIn(2*a)/2:Tb.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=Tb;Ca.module$exports&&(Ca=Ca.module$exports);var Va={},ke={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ke[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Va.module$exports=ke;Va.module$exports&&(Va=Va.module$exports);var aa={},le=S,eh=Math.cos,fh=Math.sin;Hb.prototype={clone:function(){return new Hb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new le(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=eh(a),a=fh(a);return this.concat(new Hb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new le(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Hb;aa.module$exports&&(aa=aa.module$exports);var Wa={},gh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new gh},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Ub={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new gf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Ub.module$exports&&(Ub=Ub.module$exports);var Xa={},jf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=hf;a.stop=kf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Da={}, +Ma=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, +smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},me={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){me[a]=J});var ne={};for(J in N)N.hasOwnProperty(J)&&(ne[J]=N[J].shorthands[0]);var Vb=[];for(J in N)N.hasOwnProperty(J)&&(Vb.push(J),Vb=Vb.concat(N[J].shorthands));Da.module$exports={validTokens:Vb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(me[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return ed(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Ib((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255, +ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],lh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360*this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in qe&&(a=qe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},mh=m,Mc="".split,Nc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Mc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, +k=-1,i=Mc.call(a," "),n=i.length;++kd.length)return this;c=rd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from= +b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+ +"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};$b.mixin(rc.prototype,Jh);Fa.module$exports=rc;Fa.module$exports&&(Fa=Fa.module$exports);var U={},Kh=w,va=m,Tf=aa,Vf=S,xe=oa,Lh=Fa,td=na,G=va.descriptorAccessor, +D=va.descriptorData,Mh=va.getter,Sf=1,sd=Math.atan2,uf=Math.PI,sc=isFinite,Uf=Mh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})), +b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ha.module$exports=wc;Ha.module$exports&&(Ha=Ha.module$exports);var mb={},Hd=ea,Uh=Ha,Vh=m,Ae=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff", +otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"}; +var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Hd.prototype);O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Uh(e)).on("load",function(){var c;a.type in Ae?c=Ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId; +b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Vh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=O;mb.module$exports&&(mb=mb.module$exports); +var nb={},Id=ea,Wh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Xh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Id.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Wh.canPlayType(h)||this.hasInitiatedLoad? +this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Xh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};nb.module$exports=xc;nb.module$exports&&(nb=nb.module$exports);var Ia={},Be=m,Yh=w,Zh=mb,$h=nb,ai= +lb,bi=Ha;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ce=$.handlers={Bitmap:ai,Font:Zh,Video:$h,Raw:bi};$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ce)(new Ce[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Be.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+ +d);}};Be.mixin($.prototype,Yh);Ia.module$exports=$;Ia.module$exports&&(Ia=Ia.module$exports);var ob={},ci=V,De=Jd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=ci.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage=function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)}, +run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},w);De.notifyRunnerAsync=De.notifyRunner;ob.module$exports=Jd;ob.module$exports&&(ob=ob.module$exports);var pb={},Oa=m,di=w,zg=V,ei=Kd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext; +b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"});b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions();return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a}, +destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this},debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b);break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command, +b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id);break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady||(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl= +a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a,data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!==typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup= +!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message",a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ei, +di);pb.module$exports=Kd;pb.module$exports&&(pb=pb.module$exports);var qb={},fi=w,ec=m,Ja=z,gi=Da,Ee=ab,ya=Ua,hi=$a,Wc=Ia,Ld={},ii=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),fc=ya.cssClasses,rb=ya.matrixToString,ji=ya.gradientToSignature,ki=ya.filterToSignature,Fe=ya.valueFromSignatureForType,li=gi.exportToPath,gc=Ee.isFEColorMatrixEnabled,mi=Ee.filterElementsFromList,ni=Wc.handlers.Font.fontIDs,Ge=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit", +opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},Md="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),oi=ec.isArray;yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c= +b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=ni[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",rb(c)):null===c&&a.removeAttribute("transform")}}}; +var p=zc.prototype=ec.mixin({},fi,hi),pi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ja(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,k=this,i=this.svg,n={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&& +0===f.parent&&(f.parent=f.id+"_offStageParent"),c=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=i[b]=u(pi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b],b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),n[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function qf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&& +qf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e=0;b=c[e++];)f=n[b],(b=n[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d= +document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next]||null)}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&&(f=b._fillColorSignature);oi(e)&&(0 is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width", +d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width", +"100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ge):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g, +Ge));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a); +this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",rb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"), +g.id=this._genDefUID());i=0;for(n=d.length;iarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6> +arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a, +b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=Ai(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length, +this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Ob.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,i,j,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],k=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*k+i*e)/i}for(a=0;a>ERROR WORKER",c)}});self.load= +function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new pj(a),d=c.env.exports;df.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,df.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a= +this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,k=[],i=[];h.root=this;for(var j in g)k.push(j),i.push(g[j]);ch(a,function(a){k.push(a);Function.apply(null,k).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Gb.module$exports&&(Gb=Gb.module$exports);var cd={},dd=Bb,rj=Za,sj=Gb,tj=ob,uj=qb,ef=m,vj=Cb;if("undefined"!=typeof importScripts){var nc,ff=function(a){nc.notify(a.data)};nc=new rj(function(a){postMessage(a)}, +function(){removeEventListener("message",ff);nc=null});addEventListener("message",ff);sj(nc)}else{window.bonsai=dd;var wj=ef.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=uj;dd.setup({baseUrl:ef.baseUri(document),runnerContext:tj,runnerUrl:vj.chooseRunnerUrl(wj)||"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3/bonsai.min.js b/ajax/libs/bonsai/0.3/bonsai.min.js new file mode 100644 index 000000000..9204019f4 --- /dev/null +++ b/ajax/libs/bonsai/0.3/bonsai.min.js @@ -0,0 +1,278 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Hb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function gf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function hf(a){var b=this.type,c=jf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function kf(){this._isStopped= +!0}function ed(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var i,n,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Ib(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,i,n,l=ga(e,f,g);k=ha(e,f,g);i=(k+l)/2;if(l==k)h=k=0;else{n=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return lf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/ka(c,2),d=Lb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Lb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*n-ta*i+(a+h)/2;n=f*i+ta*n+(b+k)/2;b=qd((b-n)/d);k=qd((k-n)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:o,cy:n,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:rf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Mb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function sf(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function tf(a){if(sc(a)){var a=+a%(2*uf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= +d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function vf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function wf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function xf(){return this.matrix.tx}function yf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= +!0}function zf(){return this.matrix.ty}function Af(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Bf(){return this._scaleX}function Cf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Df(){return this._scaleY}function Ef(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ff(){return(this.scaleX+this.scaleY)/2}function Gf(a){this.scaleX=this.scaleY=a}function Hf(a){this._opacity= +1a?0:+a}function If(){return this._origin.clone()}function Jf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Kf(){return this._cursor}function Lf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Mf(){return this._filters.slice(0)}function Nf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Of(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& +!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Pf(){return this._clip}function Qf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Rf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:Sf++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new Tf),matrix:G(vf,wf,!0),_filters:D([],!0),filters:G(Mf,Nf,!0),_opacity:D(1,!0),opacity:G(Uf,Hf,!0),_origin:D(new Vf), +origin:G(If,Jf,!0),rotation:G(sf,tf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(Ff,Gf,!0),scaleX:G(Bf,Cf,!0),scaleY:G(Df,Ef,!0),x:G(xf,yf,!0),y:G(zf,Af,!0),clip:G(Pf,Of,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(Rf,Qf,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(Kf,Lf,!0),_cursor:D(null,!0),fillRule:D("inherit",!0),visible:D(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function tc(){ud.call(this)}function vd(a,b,c){uc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=wd.mixin({},this._domAttributes);this._mutatedCssStyles=wd.mixin({},this._cssStyles)})}function Wf(){return this._textFillColor} +function Xf(a){this._textFillColor=xd(a,this._textFillColor)}function Yf(){return this._textFillGradient}function Zf(a){a&&(this._textFillGradient=$f(a))}function ag(){return this._fontFamily}function bg(a){this._fontFamily=a?a.fontId||a:null}function cg(){return this._glyphx}function dg(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function eg(){return this._glyphy}function fg(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function gg(a){this._textStrokeColor=xd(a,this._textStrokeColor)} +function yd(a){zd.call(this);a=""+a;Object.defineProperties(this._attributes,{text:E("",!0,!0),fontSize:E(null,!0,!0),fontFamily:wa(ag,bg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:wa(Wf,Xf,!0),_textFillGradient:E(null,!0),textFillGradient:wa(Yf,Zf,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:wa(cg,dg,!0),glyphy:wa(eg,fg,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:wa(hg, +gg,!0),textStrokeWidth:E(0,!0,!0),selectable:E(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};null!=a&&this.attr("text",a)}function ig(){return this._textFillColor} +function jg(a){this._textFillColor=Ad(a,this._textFillColor)}function kg(){return this._textFillGradient}function lg(a){a&&(this._textFillGradient=mg(a))}function ng(){return this._fontFamily}function og(a){this._fontFamily=a?a.fontId||a:null}function pg(a){this._textStrokeColor=Ad(a,this._textStrokeColor)}function qg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function rg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function sg(a){1<=a&&(this._miterLimit=+a)}function tg(a){this._owner.clear(); +this._owner.addChild(new vc(a))}function ug(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText): +c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Rb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c= +this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- +1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ +2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Tb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Tb.bounceIn(2*a)/2:Tb.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=Tb;Ca.module$exports&&(Ca=Ca.module$exports);var Va={},ke={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ke[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Va.module$exports=ke;Va.module$exports&&(Va=Va.module$exports);var aa={},le=S,eh=Math.cos,fh=Math.sin;Hb.prototype={clone:function(){return new Hb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new le(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=eh(a),a=fh(a);return this.concat(new Hb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new le(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Hb;aa.module$exports&&(aa=aa.module$exports);var Wa={},gh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new gh},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Ub={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new gf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Ub.module$exports&&(Ub=Ub.module$exports);var Xa={},jf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=hf;a.stop=kf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Da={}, +Ma=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, +smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},me={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){me[a]=J});var ne={};for(J in N)N.hasOwnProperty(J)&&(ne[J]=N[J].shorthands[0]);var Vb=[];for(J in N)N.hasOwnProperty(J)&&(Vb.push(J),Vb=Vb.concat(N[J].shorthands));Da.module$exports={validTokens:Vb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(me[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return ed(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Ib((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255, +ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],lh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360*this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in qe&&(a=qe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},mh=m,Mc="".split,Nc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Mc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, +k=-1,i=Mc.call(a," "),n=i.length;++kd.length)return this;c=rd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from= +b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+ +"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};$b.mixin(rc.prototype,Jh);Fa.module$exports=rc;Fa.module$exports&&(Fa=Fa.module$exports);var U={},Kh=w,va=m,Tf=aa,Vf=S,xe=oa,Lh=Fa,td=na,G=va.descriptorAccessor, +D=va.descriptorData,Mh=va.getter,Sf=1,sd=Math.atan2,uf=Math.PI,sc=isFinite,Uf=Mh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})), +b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ha.module$exports=wc;Ha.module$exports&&(Ha=Ha.module$exports);var mb={},Hd=ea,Uh=Ha,Vh=m,Ae=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff", +otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"}; +var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Hd.prototype);O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Uh(e)).on("load",function(){var c;a.type in Ae?c=Ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId; +b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Vh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=O;mb.module$exports&&(mb=mb.module$exports); +var nb={},Id=ea,Wh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Xh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Id.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Wh.canPlayType(h)||this.hasInitiatedLoad? +this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Xh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};nb.module$exports=xc;nb.module$exports&&(nb=nb.module$exports);var Ia={},Be=m,Yh=w,Zh=mb,$h=nb,ai= +lb,bi=Ha;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ce=$.handlers={Bitmap:ai,Font:Zh,Video:$h,Raw:bi};$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ce)(new Ce[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Be.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+ +d);}};Be.mixin($.prototype,Yh);Ia.module$exports=$;Ia.module$exports&&(Ia=Ia.module$exports);var ob={},ci=V,De=Jd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=ci.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage=function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)}, +run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},w);De.notifyRunnerAsync=De.notifyRunner;ob.module$exports=Jd;ob.module$exports&&(ob=ob.module$exports);var pb={},Oa=m,di=w,zg=V,ei=Kd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext; +b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"});b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions();return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a}, +destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this},debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b);break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command, +b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id);break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady||(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl= +a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a,data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!==typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup= +!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message",a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ei, +di);pb.module$exports=Kd;pb.module$exports&&(pb=pb.module$exports);var qb={},fi=w,ec=m,Ja=z,gi=Da,Ee=ab,ya=Ua,hi=$a,Wc=Ia,Ld={},ii=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),fc=ya.cssClasses,rb=ya.matrixToString,ji=ya.gradientToSignature,ki=ya.filterToSignature,Fe=ya.valueFromSignatureForType,li=gi.exportToPath,gc=Ee.isFEColorMatrixEnabled,mi=Ee.filterElementsFromList,ni=Wc.handlers.Font.fontIDs,Ge=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit", +opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},Md="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),oi=ec.isArray;yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c= +b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=ni[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",rb(c)):null===c&&a.removeAttribute("transform")}}}; +var p=zc.prototype=ec.mixin({},fi,hi),pi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ja(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,k=this,i=this.svg,n={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&& +0===f.parent&&(f.parent=f.id+"_offStageParent"),c=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=i[b]=u(pi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b],b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),n[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function qf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&& +qf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e=0;b=c[e++];)f=n[b],(b=n[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d= +document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next]||null)}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&&(f=b._fillColorSignature);oi(e)&&(0 is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width", +d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width", +"100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ge):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g, +Ge));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a); +this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",rb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"), +g.id=this._genDefUID());i=0;for(n=d.length;iarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6> +arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a, +b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=Ai(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length, +this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Ob.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,i,j,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],k=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*k+i*e)/i}for(a=0;a>ERROR WORKER",c)}});self.load= +function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new pj(a),d=c.env.exports;df.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,df.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a= +this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,k=[],i=[];h.root=this;for(var j in g)k.push(j),i.push(g[j]);ch(a,function(a){k.push(a);Function.apply(null,k).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Gb.module$exports&&(Gb=Gb.module$exports);var cd={},dd=Bb,rj=Za,sj=Gb,tj=ob,uj=qb,ef=m,vj=Cb;if("undefined"!=typeof importScripts){var nc,ff=function(a){nc.notify(a.data)};nc=new rj(function(a){postMessage(a)}, +function(){removeEventListener("message",ff);nc=null});addEventListener("message",ff);sj(nc)}else{window.bonsai=dd;var wj=ef.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=uj;dd.setup({baseUrl:ef.baseUri(document),runnerContext:tj,runnerUrl:vj.chooseRunnerUrl(wj)||"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); diff --git a/ajax/libs/bonsai/package.json b/ajax/libs/bonsai/package.json new file mode 100644 index 000000000..3baecdbeb --- /dev/null +++ b/ajax/libs/bonsai/package.json @@ -0,0 +1,21 @@ +{ + "name": "bonsai.min.js", + "filename": "bonsai.min.js", + "version": "0.3.6", + "description": "BonsaiJS is a graphics library and renderer", + "homepage": "http://bonsaijs.org", + "keywords": [ + "graphics", + "svg", + "vector" + ], + "maintainers": [{ + "name": "uxebu Inc.", + "email": "contact+bonsaijs@uxebu.com", + "web": "http://uxebu.com" + }], + "repositories": [{ + "type": "git", + "url": "https://github.com/uxebu/bonsai/" + }] +} From 7b242d6cb48f89cf7463c45c02fc325664bb37e7 Mon Sep 17 00:00:00 2001 From: Tobias von Klipstein Date: Tue, 25 Sep 2012 14:10:09 +0200 Subject: [PATCH 2/3] Fix package name --- ajax/libs/bonsai/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax/libs/bonsai/package.json b/ajax/libs/bonsai/package.json index 3baecdbeb..ed0ae8b23 100644 --- a/ajax/libs/bonsai/package.json +++ b/ajax/libs/bonsai/package.json @@ -1,5 +1,5 @@ { - "name": "bonsai.min.js", + "name": "bonsai", "filename": "bonsai.min.js", "version": "0.3.6", "description": "BonsaiJS is a graphics library and renderer", From da6e3f474e4e4468741ab946adb05b64ec06c853 Mon Sep 17 00:00:00 2001 From: Tobias von Klipstein Date: Wed, 26 Sep 2012 10:57:45 +0200 Subject: [PATCH 3/3] Add BonsaiJS version 0.3.7 --- ajax/libs/bonsai/0.3.7/bonsai.min.js | 281 ++++++++++++++++ ajax/libs/bonsai/0.3/bonsai.min.js | 475 ++++++++++++++------------- ajax/libs/bonsai/package.json | 2 +- 3 files changed, 521 insertions(+), 237 deletions(-) create mode 100644 ajax/libs/bonsai/0.3.7/bonsai.min.js diff --git a/ajax/libs/bonsai/0.3.7/bonsai.min.js b/ajax/libs/bonsai/0.3.7/bonsai.min.js new file mode 100644 index 000000000..6770bb44b --- /dev/null +++ b/ajax/libs/bonsai/0.3.7/bonsai.min.js @@ -0,0 +1,281 @@ +/* +(The MIT License) + +Copyright 2012 uxebu Inc. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + +External libraries (each with their own license): + + - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE + - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - phantom-jasmine: Apache 2 - https://github.com/jcarver989/phantom-jasmine/issues/8 + - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING + - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING +*/ +(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Gb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function pf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function qf(a){var b=this.type,c=rf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function sf(){this._isStopped= +!0}function ed(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var j,o,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Hb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,j,o,l=ha(e,f,g);k=ia(e,f,g);j=(k+l)/2;if(l==k)h=k=0;else{o=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ka(c)<<24|ka(e)<<16|ka(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function R(a){return tf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/la(c,2),d=Kb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Kb(e),f=p*c*ta/d,ta=-p*d*n/c);n=f*o-ta*j+(a+h)/2;o=f*j+ta*o+(b+k)/2;b=qd((b-o)/d);k=qd((k-o)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:n,cy:o,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:zf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Lb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.addSubjects(d.subjects,d.strategy)}function Af(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function Bf(a){if(sc(a)){var a=+a%(2*Cf)||0,b=this._matrix, +c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function Df(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function Ef(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function Ff(){return this.matrix.tx}function Gf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+ +(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function Hf(){return this.matrix.ty}function If(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Jf(){return this._scaleX}function Kf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Lf(){return this._scaleY}function Mf(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Nf(){return(this.scaleX+this.scaleY)/2}function Of(a){this.scaleX= +this.scaleY=a}function Pf(a){this._opacity=1a?0:+a}function Qf(){return this._origin.clone()}function Rf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Sf(){return this._cursor}function Tf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Uf(){return this._filters.slice(0)}function Vf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Wf(a){var b=this._owner;b._mutatedAttributes.clipId= +!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Xf(){return this._clip}function Yf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Zf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:$f++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new ag),matrix:G(Df,Ef,!0),_filters:C([],!0),filters:G(Uf,Vf,!0),_opacity:C(1,!0),opacity:G(bg,Pf,!0),_origin:C(new cg), +origin:G(Qf,Rf,!0),rotation:G(Af,Bf,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:G(Nf,Of,!0),scaleX:G(Jf,Kf,!0),scaleY:G(Lf,Mf,!0),x:G(Ff,Gf,!0),y:G(Hf,If,!0),clip:G(Xf,Wf,!0),_clip:C(null,!0),_clipId:C(null,!0),mask:G(Zf,Yf,!0),_mask:C(null,!0),_maskId:C(null,!0),cursor:G(Sf,Tf,!0),_cursor:C(null,!0),fillRule:C("inherit",!0),visible:C(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function dg(a){return-1!==this.indexOf(a)}function ud(a){this.children=[];this.owner=a}function vd(a){wd.prototype._activate.call(this,a);for(var b=this.displayList.children,c=0,d=b.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Qb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--; +if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- +1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ +2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Sb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Sb.bounceIn(2*a)/2:Sb.bounceOut(2*a-1)/2+0.5}};Ba.module$exports=Sb;Ba.module$exports&&(Ba=Ba.module$exports);var Va={},pe={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){pe[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Va.module$exports=pe;Va.module$exports&&(Va=Va.module$exports);var aa={},qe=T,qh=Math.cos,rh=Math.sin;Gb.prototype={clone:function(){return new Gb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new qe(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=qh(a),a=rh(a);return this.concat(new Gb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new qe(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Gb;aa.module$exports&&(aa=aa.module$exports);var Wa={},sh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new sh},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Tb={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new pf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Tb.module$exports&&(Tb=Tb.module$exports);var Xa={},rf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=qf;a.stop=sf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Ca={}, +La=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, +smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},re={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){re[a]=J});var se={};for(J in N)N.hasOwnProperty(J)&&(se[J]=N[J].shorthands[0]);var Ub=[];for(J in N)N.hasOwnProperty(J)&&(Ub.push(J),Ub=Ub.concat(N[J].shorthands));Ca.module$exports={validTokens:Ub,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, +function(a,d,e){b.push(re[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return ed(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ka(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Hb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ia(255,ha(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ia(255, +ha(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ia(255,ha(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ia(1,ha(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ha(0,ia(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ha(0,ia(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],xh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ka(360*this.h()),ka(100*this.s())+"%",ka(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in ve&&(a=ve[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},yh=m,Lc="".split,Mc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Lc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, +k=-1,j=Lc.call(a," "),o=j.length;++kd.length)return this;c=rd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y, +b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*= +1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};Oc.mixin(rc.prototype,Vh);Ea.module$exports=rc;Ea.module$exports&&(Ea=Ea.module$exports);var Q={},Wh=w,va=m,ag=aa,cg=T,Be=oa,Xh=Ea,td=na,G=va.descriptorAccessor,C=va.descriptorData,Yh=va.getter,$f=1,sd=Math.atan2,Cf=Math.PI,sc=isFinite,bg=Yh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]= +b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),e=b.displayList&&b.displayList.children))for(var f=0,g=e.length;f>>0,g):g;c?e.splice.apply(e,[b,0].concat(a)):e.splice(b,0,a);0d.status||304==d.status)?b(d.responseText):!e&&404===d.status&&(c(d.status),e=!0)}};Ga.module$exports=wc;Ga.module$exports&&(Ga=Ga.module$exports);var lb={},Ld=fa,fi=Ga,gi=m,Ge=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype", +ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Ld.prototype);O.prototype.loadResource=function(a, +b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new fi(e)).on("load",function(){var c;a.type in Ge?c=Ge[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style"))); +var c,d,e=[],f="";gi.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};lb.module$exports=O;lb.module$exports&&(lb=lb.module$exports);var mb={},Md=fa,hi="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,ii={"start-with-nothing":"loadstart", +metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Md.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!hi.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type", +h),e.src=a,this.registerElement(e),e.addEventListener(ii[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};mb.module$exports=xc;mb.module$exports&&(mb=mb.module$exports);var Ha={},ji=m,ki=w,li=lb,mi=mb,ni=kb,oi=Ga;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var He=$.handlers={Bitmap:ni,Font:li,Video:mi,Raw:oi}; +$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in He)(new He[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){a.loadData=c;this.emit(b,a)}).on("error",this,function(b){a.loadData=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);}};ji.mixin($.prototype,ki);Ha.module$exports=$;Ha.module$exports&&(Ha=Ha.module$exports); +var nb={},pi=V,Ie=Nd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=pi.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage=function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)},run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript", +url:a})}},w);Ie.notifyRunnerAsync=Ie.notifyRunner;nb.module$exports=Nd;nb.module$exports&&(nb=nb.module$exports);var ob={},Oa=m,qi=w,Jg=V,ri=Od.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext;b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"}); +b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions();return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a},destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this}, +debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b);break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command,b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id); +break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady||(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl=a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a, +data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!==typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup=!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft, +document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message",a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ri,qi);ob.module$exports=Od;ob.module$exports&&(ob=ob.module$exports);var pb={},si=w,ec=m,Ia=z,ti=Ca,Je=ab,xa=Ua,ui=$a,Wc=Ha,Pd={},vi=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion), +fc=xa.cssClasses,qb=xa.matrixToString,wi=xa.gradientToSignature,xi=xa.filterToSignature,Ke=xa.valueFromSignatureForType,yi=ti.exportToPath,gc=Je.isFEColorMatrixEnabled,zi=Je.filterElementsFromList,Ai=Wc.handlers.Font.fontIDs,Le=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit",opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor", +text:"text",cursor:"cursor",fillRule:"fill-rule"},Qd="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),Bi=ec.isArray;yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c=b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=Ai[c]||c;null!=c?a.setAttribute("font-family", +c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",qb(c)):null===c&&a.removeAttribute("transform")}}};var p=zc.prototype=ec.mixin({},si,ui),Ci={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"}; +p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ia(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,k=this,j=this.svg,o={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=j[b],!c&&!f.detach&&("DOMElement"===h?(c=j[b]=document.createElement(f.attributes.nodeName), +c.setAttribute("data-bs-id",b)):c=j[b]=u(Ci[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete j[b],b=f[h],c=j[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),o[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function yf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&yf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature, +b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&j.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e=0;b=c[e++];)f=o[b],(b=o[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=j[f.parent]){h=f.prev;c=j[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=j[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,j[f.next]||null)}}this._logFrame(); +this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&&(f=b._fillColorSignature);Bi(e)&&(0 is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls", +"controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&& +(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Le):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Le));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject= +function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,i=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(i[2]),Math.abs(i[3]))||1),i[2]*=e,i[3]*=e,0>i[2]&&(i[0]=-i[2],i[2]=0),0>i[3])i[1]=-i[3],i[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",qb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());j=0;for(o=d.length;jarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};n.curveBy=function(a,b,c,d,e,f){if(6> +arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};n.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};n.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a, +b,c,d]);this.markUpdate("shapeData");return this};n.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};n.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};n.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Te-d:e;e=Mi(f-g);d=a+c*Re(g);g=b+c*Ue(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};n.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length, +this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Nb.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,j,i,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],i=f[2];f=b[1];var j=(0+f[1])/2,e=j*h*-a/((e+f[2])/2*h-j*i+j*e)/j}for(a=0;a>ERROR WORKER",c)}});self.load=function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new Bj(a),d=c.env.exports;mf.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}): +"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,mf.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a=this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,i=[],j=[];h.root=this;for(var m in g)i.push(m),j.push(g[m]);oh(a,function(a){i.push(a);Function.apply(null,i).apply(h,j);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})}; +Fb.module$exports&&(Fb=Fb.module$exports);var cd={},dd=Ab,Dj=Za,Ej=Fb,Fj=nb,Gj=pb,nf=m,Hj=Bb;if("undefined"!=typeof importScripts){var nc,of=function(a){nc.notify(a.data)};nc=new Dj(function(a){postMessage(a)},function(){removeEventListener("message",of);nc=null});addEventListener("message",of);Ej(nc)}else{window.bonsai=dd;var Ij=nf.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=Gj;dd.setup({baseUrl:nf.baseUri(document),runnerContext:Fj,runnerUrl:Hj.chooseRunnerUrl(Ij)|| +"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); diff --git a/ajax/libs/bonsai/0.3/bonsai.min.js b/ajax/libs/bonsai/0.3/bonsai.min.js index 9204019f4..6770bb44b 100644 --- a/ajax/libs/bonsai/0.3/bonsai.min.js +++ b/ajax/libs/bonsai/0.3/bonsai.min.js @@ -26,253 +26,256 @@ External libraries (each with their own license): - requirejs: https://github.com/jrburke/requirejs/blob/master/LICENSE - jasmine: https://github.com/pivotal/jasmine/blob/master/MIT.LICENSE + - phantom-jasmine: Apache 2 - https://github.com/jcarver989/phantom-jasmine/issues/8 - closure: http://code.google.com/p/closure-compiler/source/browse/trunk/COPYING - qc.js: https://github.com/darrint/qc.js/blob/master/COPYING */ -(function(){function sa(a){if(!(this instanceof sa))return new sa(a);this.name="ParserError";this.message=a[0]}function W(a,b){this.x=a||0;this.y=b||0}function Hb(a,b,c,d,e,f){this.a=null!=a?a:1;this.b=b||0;this.c=c||0;this.d=null!=d?d:1;this.tx=e||0;this.ty=f||0}function gf(){var a=this.movies=[];this.add=function(b){-1===a.indexOf(b)&&a.push(b)};this.remove=function(b){b=a.indexOf(b);delete a[b]}}function hf(a){var b=this.type,c=jf[b];do a.emit(b,this),a=a.parent;while(c&&!this._isStopped&&a)}function kf(){this._isStopped= -!0}function ed(a,b){var c,d,e,f=[],g=!0,h=[],k=a&&a.length||0,b=b||N;if(0===k)return[];for(var i,n,l=0;l>24&255,a>>16&255,a>>8&255,(a>>0&255)/ -255)}function Ib(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,i,n,l=ga(e,f,g);k=ha(e,f,g);i=(k+l)/2;if(l==k)h=k=0;else{n=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, -b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ja(c)<<24|ja(e)<<16|ja(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function Q(a){return lf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= -a||[],b,c=0,d=a.length;c>24&255,a>>16&255,a>>8&255,(a>>0&255)/ +255)}function Hb(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,k,j,o,l=ha(e,f,g);k=ia(e,f,g);j=(k+l)/2;if(l==k)h=k=0;else{o=l-k;k=0.5c?c+1:16*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function fd(a, +b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*oc(d,b,a+1/3),e=255*oc(d,b,a),a=255*oc(d,b,a-1/3);return ka(c)<<24|ka(e)<<16|ka(a)<<8}function pc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function gd(a){this.pendingAssets=a}function hd(a,b){this.disconnect=b;this.notifyRenderer=a}function R(a){return tf.mixin({},a)}function s(a,b,c){a=document.createElementNS("http://www.w3.org/2000/svg",a);if(b)for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild(a);return a}function id(a){for(var a= +a||[],b,c=0,d=a.length;ce?(c/=d,e=q+p/ka(c,2),d=Lb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Lb(e),f=p*c*ta/d,ta=-p*d*o/c);o=f*n-ta*i+(a+h)/2;n=f*i+ta*n+(b+k)/2;b=qd((b-n)/d);k=qd((k-n)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:o,cy:n,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, -b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:rf[e];this.clock=a;this.duration= -Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Mb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); -this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.setSubjects(d.subjects,d.strategy)}function sf(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function tf(a){if(sc(a)){var a=+a%(2*uf)||0,b=this._matrix,c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-= -d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function vf(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function wf(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function xf(){return this.matrix.tx}function yf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx);this._owner._mutatedAttributes.matrix= -!0}function zf(){return this.matrix.ty}function Af(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Bf(){return this._scaleX}function Cf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Df(){return this._scaleY}function Ef(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Ff(){return(this.scaleX+this.scaleY)/2}function Gf(a){this.scaleX=this.scaleY=a}function Hf(a){this._opacity= -1a?0:+a}function If(){return this._origin.clone()}function Jf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Kf(){return this._cursor}function Lf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Mf(){return this._filters.slice(0)}function Nf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Of(a){var b=this._owner;b._mutatedAttributes.clipId=!0;if(a){if(a.stage&& -!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Pf(){return this._clip}function Qf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); -if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Rf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:Sf++});this._attributes=Object.create(null,{_owner:D(this),_matrix:D(new Tf),matrix:G(vf,wf,!0),_filters:D([],!0),filters:G(Mf,Nf,!0),_opacity:D(1,!0),opacity:G(Uf,Hf,!0),_origin:D(new Vf), -origin:G(If,Jf,!0),rotation:G(sf,tf,!0),_scaleX:D(1,!0),_scaleY:D(1,!0),scale:G(Ff,Gf,!0),scaleX:G(Bf,Cf,!0),scaleY:G(Df,Ef,!0),x:G(xf,yf,!0),y:G(zf,Af,!0),clip:G(Pf,Of,!0),_clip:D(null,!0),_clipId:D(null,!0),mask:G(Rf,Qf,!0),_mask:D(null,!0),_maskId:D(null,!0),cursor:G(Kf,Lf,!0),_cursor:D(null,!0),fillRule:D("inherit",!0),visible:D(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", -visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function tc(){ud.call(this)}function vd(a,b,c){uc.call(this);this.nodeName=a||"";this._domAttributes={};this._cssStyles={};this._mutatedDomAttributes={};this._mutatedCssStyles={};this.type="DOMElement";this.setStyles(c);this.setAttributes(b);this.on("removedFromStage",function(){this._mutatedDomAttributes=wd.mixin({},this._domAttributes);this._mutatedCssStyles=wd.mixin({},this._cssStyles)})}function Wf(){return this._textFillColor} -function Xf(a){this._textFillColor=xd(a,this._textFillColor)}function Yf(){return this._textFillGradient}function Zf(a){a&&(this._textFillGradient=$f(a))}function ag(){return this._fontFamily}function bg(a){this._fontFamily=a?a.fontId||a:null}function cg(){return this._glyphx}function dg(a){Na.isArray(a)&&(this._glyphx=a);a||(this._glyphx=null)}function eg(){return this._glyphy}function fg(a){Na.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function gg(a){this._textStrokeColor=xd(a,this._textStrokeColor)} -function yd(a){zd.call(this);a=""+a;Object.defineProperties(this._attributes,{text:E("",!0,!0),fontSize:E(null,!0,!0),fontFamily:wa(ag,bg,!0),_fontFamily:E(null,!0),fontStyle:E(null,!0,!0),fontWeight:E(null,!0,!0),_textFillColor:E(null,!0),textFillColor:wa(Wf,Xf,!0),_textFillGradient:E(null,!0),textFillGradient:wa(Yf,Zf,!0),textFillOpacity:E(1,!0,!0),_glyphx:E(null,!0),_glyphy:E(null,!0),glyphx:wa(cg,dg,!0),glyphy:wa(eg,fg,!0),textLineOpacity:E(1,!0,!0),_textStrokeColor:E(null,!0),textStrokeColor:wa(hg, -gg,!0),textStrokeWidth:E(0,!0,!0),selectable:E(!0,!0,!0)});this._renderAttributes={fontSize:"fontSize",fontFamily:"_fontFamily",fontStyle:"fontStyle",fontWeight:"fontWeight",fillColor:"_textFillColor",fillGradient:"_textFillGradient",fillOpacity:"textFillOpacity",filters:"_filters",glyphx:"_glyphx",glyphy:"_glyphy",strokeOpacity:"textLineOpacity",strokeColor:"_textStrokeColor",strokeWidth:"textStrokeWidth",opacity:"_opacity",text:"text",selectable:"selectable"};null!=a&&this.attr("text",a)}function ig(){return this._textFillColor} -function jg(a){this._textFillColor=Ad(a,this._textFillColor)}function kg(){return this._textFillGradient}function lg(a){a&&(this._textFillGradient=mg(a))}function ng(){return this._fontFamily}function og(a){this._fontFamily=a?a.fontId||a:null}function pg(a){this._textStrokeColor=Ad(a,this._textStrokeColor)}function qg(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function rg(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function sg(a){1<=a&&(this._miterLimit=+a)}function tg(a){this._owner.clear(); -this._owner.addChild(new vc(a))}function ug(){for(var a=this._owner.children(),b=[],c=0,d=a.length;cd.status||304==d.status?b(this.responseText): -c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Rb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--;if(!this.isWaiting)for(var a=0,c= -this.waitingCallbacks.length;ae?(c/=d,e=q+p/la(c,2),d=Kb(e),c*=d,ta=f=0):(p=(f===g?-1:1)*Kb(e),f=p*c*ta/d,ta=-p*d*n/c);n=f*o-ta*j+(a+h)/2;o=f*j+ta*o+(b+k)/2;b=qd((b-o)/d);k=qd((k-o)/d);b=ab&&(b=2*Y+b);0>k&&(k=2*Y+k);g&&b>k&&(b-=2*Y);!g&&k>b&&(k-=2*Y);return{cx:n,cy:o,rx:c,ry:d,startAngle:b,endAngle:k}}function rd(a, +b,c,d,e){if(0==e)return{left:[a,a,a,a],right:[a,b,c,d]};if(1==e)return{left:[a,b,c,d],right:[d,d,d,d]};var f=v.lerp(a,b,e),g=v.lerp(b,c,e),c=v.lerp(c,d,e),b=v.lerp(f,g,e),g=v.lerp(g,c,e),e=v.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function ua(a,b,c,d){if(b instanceof ua)return b.clone();this.subjectsById={};this.subjects=[];d=this.options=d||{};this.isTimelineBound=!1!==d.isTimelineBound;this._parseEventProps(d);var e=d.easing;this.easing="function"==typeof e?e:zf[e];this.clock=a;this.duration= +Math.floor(+b||a.toFrameNumber(b));this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.properties=c=Lb.mixin({},c);this._cleanProperties();this.propertyNames=Object.keys(c);this.translations=d.translate?[d.translate]:[];this._translationData={};this._getTranslations();this._runTranslations(c,"setupTo");this.propertyNames=Object.keys(c);this.strategy=d.strategy;this._bind()}function rc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b); +this.subjects=[];this.animations=[];this.initialValues=null;this.currentAnimation=-1;this.repeat=d.repeat||0;this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.easing=d.easing;this.keyframes=this._convertKeysToFrames(c);this.keys=Object.keys(this.keyframes).map(Number);this.keys.sort(function(a,b){return a-b});d.subjects&&this.addSubjects(d.subjects,d.strategy)}function Af(){var a=this._matrix,b=sd(a.b,a.a),a=-sd(a.c,a.d);return b>a?b:a}function Bf(a){if(sc(a)){var a=+a%(2*Cf)||0,b=this._matrix, +c=b.transformPoint(this.origin),d=c.x,c=c.y;b.tx-=d;b.ty-=c;b.rotate(a-this.rotation);b.tx+=d;b.ty+=c;this._owner._mutatedAttributes.matrix=!0}}function Df(){var a,b=this._matrix.clone(),c=this._scaleX,d=this._scaleY;if(1!==c||1!==d)a=b.transformPoint(this._origin),b.tx-=a.x,b.ty-=a.y,b.scale(c,d),b.tx+=a.x,b.ty+=a.y;return b}function Ef(a){var b=this._matrix;b.a=a.a;b.b=a.b;b.c=a.c;b.d=a.d;b.tx=a.tx;b.ty=a.ty}function Ff(){return this.matrix.tx}function Gf(a){this._matrix.tx=1===this._scaleX?a:this._matrix.tx+ +(a-this.matrix.tx);this._owner._mutatedAttributes.matrix=!0}function Hf(){return this.matrix.ty}function If(a){this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty);this._owner._mutatedAttributes.matrix=!0}function Jf(){return this._scaleX}function Kf(a){sc(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Lf(){return this._scaleY}function Mf(a){sc(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Nf(){return(this.scaleX+this.scaleY)/2}function Of(a){this.scaleX= +this.scaleY=a}function Pf(a){this._opacity=1a?0:+a}function Qf(){return this._origin.clone()}function Rf(a){var b=this._origin;b.x=a.x;b.y=a.y}function Sf(){return this._cursor}function Tf(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Uf(){return this._filters.slice(0)}function Vf(a){a?(a=[].concat(a),this._filters=a=a.map(function(a){return a instanceof td.BaseFilter?a:new td[a]})):this._filters.length=0}function Wf(a){var b=this._owner;b._mutatedAttributes.clipId= +!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a clip that has been previously added to the stage");if(!("composeRenderMessage"in a))throw Error("Not a valid clip element");b.stage&&F.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&F.unregisterOffStageObj(b,this._clip),this._clipId=this._clip=null}function Xf(){return this._clip}function Yf(a){var b=this._owner;b._mutatedAttributes.maskId=!0;if(a){if(a.stage&&!a._isOffStage)throw Error("You cannot set a mask that has been previously added to the stage"); +if(!("composeRenderMessage"in a))throw Error("Not a valid mask");b.stage&&F.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&F.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function Zf(){return this._mask}function F(){Object.defineProperty(this,"id",{value:$f++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new ag),matrix:G(Df,Ef,!0),_filters:C([],!0),filters:G(Uf,Vf,!0),_opacity:C(1,!0),opacity:G(bg,Pf,!0),_origin:C(new cg), +origin:G(Qf,Rf,!0),rotation:G(Af,Bf,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:G(Nf,Of,!0),scaleX:G(Jf,Kf,!0),scaleY:G(Lf,Mf,!0),x:G(Ff,Gf,!0),y:G(Hf,If,!0),clip:G(Xf,Wf,!0),_clip:C(null,!0),_clipId:C(null,!0),mask:G(Zf,Yf,!0),_mask:C(null,!0),_maskId:C(null,!0),cursor:G(Sf,Tf,!0),_cursor:C(null,!0),fillRule:C("inherit",!0),visible:C(!0,!0)});this._isOffStage=!1;this._renderAttributes={matrix:"matrix",filters:"_filters",opacity:"_opacity",clipId:"_clipId",maskId:"_maskId",cursor:"_cursor",fillRule:"fillRule", +visible:"visible"};this._mutatedAttributes=va.mixin({},this._renderAttributes)}function dg(a){return-1!==this.indexOf(a)}function ud(a){this.children=[];this.owner=a}function vd(a){wd.prototype._activate.call(this,a);for(var b=this.displayList.children,c=0,d=b.length;cd.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var Qb={module$exports:function(a){return{isLoading:!1,isWaiting:0,waitingCallbacks:[],queue:[],load:function(b,c){var d=this,e=this.queue,f=this.waitingCallbacks;this.isLoading||this.isWaiting?e.push([b,c]):(this.isLoading=!0,a(b,function(a){a?c(a):(c&&(d.isWaiting?f.push(c):c(null)),d.isLoading=!1,e.length&&d.load.apply(d,e.shift()))}))},wait:function(){this.isWaiting++},done:function(){this.isWaiting--; +if(!this.isWaiting)for(var a=0,c=this.waitingCallbacks.length;aa?Math.pow(a,2)/2:-1*(--a*(a-2)-1)/2},cubicIn:function(a){return Math.pow(a,3)},cubicOut:function(a){return Math.pow(a-1,3)+1},cubicInOut:function(a){a*=2;return 1>a?Math.pow(a,3)/2:(Math.pow(a-2,3)+2)/2},quartIn:function(a){return Math.pow(a,4)},quartOut:function(a){return-1*(Math.pow(a-1,4)-1)},quartInOut:function(a){a*=2;return 1>a?Math.pow(a,4)/2:-0.5*(Math.pow(a-2,4)-2)},quintIn:function(a){return Math.pow(a,5)},quintOut:function(a){return Math.pow(a- 1,5)+1},quintInOut:function(a){a*=2;return 1>a?Math.pow(a,5)/2:(Math.pow(a-2,5)+2)/2},sineIn:function(a){return-1*Math.cos(a*(Math.PI/2))+1},sineOut:function(a){return Math.sin(a*(Math.PI/2))},sineInOut:function(a){return-1*(Math.cos(Math.PI*a)-1)/2},expoIn:function(a){return 0===a?0:Math.pow(2,10*(a-1))},expoOut:function(a){return 1===a?1:-1*Math.pow(2,-10*a)+1},expoInOut:function(a){if(0===a)return 0;if(1===a)return 1;a*=2;if(1>a)return Math.pow(2,10*(a-1))/2;--a;return(-1*Math.pow(2,-10*a)+2)/ 2},circIn:function(a){return-1*(Math.sqrt(1-Math.pow(a,2))-1)},circOut:function(a){return Math.sqrt(1-Math.pow(a-1,2))},circInOut:function(a){a*=2;return 1>a?-0.5*(Math.sqrt(1-Math.pow(a,2))-1):0.5*(Math.sqrt(1-Math.pow(a-2,2))+1)},backIn:function(a){return Math.pow(a,2)*(2.70158*a-1.70158)},backOut:function(a){a-=1;return Math.pow(a,2)*(2.70158*a+1.70158)+1},backInOut:function(a){a*=2;if(1>a)return Math.pow(a,2)*(3.5949095*a-2.5949095)/2;a-=2;return(Math.pow(a,2)*(3.5949095*a+2.5949095)+2)/2},elasticIn:function(a){if(0=== -a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Tb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, -2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Tb.bounceIn(2*a)/2:Tb.bounceOut(2*a-1)/2+0.5}};Ca.module$exports=Tb;Ca.module$exports&&(Ca=Ca.module$exports);var Va={},ke={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){ke[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? -d:a}}};Va.module$exports=ke;Va.module$exports&&(Va=Va.module$exports);var aa={},le=S,eh=Math.cos,fh=Math.sin;Hb.prototype={clone:function(){return new Hb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, -e)},deltaTransformPoint:function(a){return new le(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=eh(a),a=fh(a);return this.concat(new Hb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= -b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new le(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Hb;aa.module$exports&&(aa=aa.module$exports);var Wa={},gh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new gh},setupFrom:function(a){var b= -a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Ub={module$exports:function(){return{displayObjects:Object.create(null), -loadingDisplayObjects:Object.create(null),movies:new gf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Ub.module$exports&&(Ub=Ub.module$exports);var Xa={},jf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=hf;a.stop=kf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Da={}, -Ma=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], +a||1===a)return a;a-=1;return-1*Math.pow(2,10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)},elasticOut:function(a){return 0===a||1===a?a:Math.pow(2,-10*a)*Math.sin(2*(a-0.075)*Math.PI/0.3)+1},elasticInOut:function(a){if(0===a)return 0;a*=2;if(2===a)return 1;var b=0.3*1.5,c=b/4;if(1>a)return a-=1,-0.5*Math.pow(2,10*a)*Math.sin(2*(a-c)*Math.PI/b);a-=1;return 0.5*Math.pow(2,-10*a)*Math.sin(2*(a-c)*Math.PI/b)+1},bounceIn:function(a){return 1-Sb.bounceOut(1-a)},bounceOut:function(a){return a<1/2.75?7.5625*Math.pow(a, +2):a<2/2.75?7.5625*Math.pow(a-1.5/2.75,2)+0.75:a<2.5/2.75?7.5625*Math.pow(a-2.25/2.75,2)+0.9375:7.5625*Math.pow(a-2.625/2.75,2)+0.984375},bounceInOut:function(a){return 0.5>a?Sb.bounceIn(2*a)/2:Sb.bounceOut(2*a-1)/2+0.5}};Ba.module$exports=Sb;Ba.module$exports&&(Ba=Ba.module$exports);var Va={},pe={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){pe[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d? +d:a}}};Va.module$exports=pe;Va.module$exports&&(Va=Va.module$exports);var aa={},qe=T,qh=Math.cos,rh=Math.sin;Gb.prototype={clone:function(){return new Gb(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=b*a.a+c*a.c;this.b=b*a.b+c*a.d;this.c=d*a.a+e*a.c;this.d=d*a.b+e*a.d;this.tx=f*a.a+g*a.c+a.tx;this.ty=f*a.b+g*a.d+a.ty;return this},createBox:function(a,b,c,d,e){return this.identify().rotate(c).scale(a,b).translate(d, +e)},deltaTransformPoint:function(a){return new qe(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identify:function(){this.a=this.d=1;this.b=this.c=this.tx=this.ty=0;return this},invert:function(){var a=this.a*this.d-this.b*this.c,b=this.a,c=this.b,d=this.c,e=this.d,f=this.tx,g=this.ty;this.a=e/a;this.b=-c/a;this.c=-d/a;this.d=b/a;this.tx=(d*g-e*f)/a;this.ty=(c*f-b*g)/a;return this},rotate:function(a){var b=qh(a),a=rh(a);return this.concat(new Gb(b,a,-a,b,0,0))},scale:function(a,b){this.a*=a;this.b*= +b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b;return this},transformPoint:function(a){return new qe(this.a*a.x+this.c*a.y+this.tx,this.b*a.x+this.d*a.y+this.ty)},translate:function(a,b){this.tx+=a;this.ty+=b;return this}};aa.module$exports=Gb;aa.module$exports&&(aa=aa.module$exports);var Wa={},sh=aa;Wa.module$exports={matrix:{setupTo:function(a){var b=a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;this.animatedMatrix=new sh},setupFrom:function(a){var b= +a.matrix;a.matrix_a=b.a;a.matrix_b=b.b;a.matrix_c=b.c;a.matrix_d=b.d;a.matrix_tx=b.tx;a.matrix_ty=b.ty;delete a.matrix},step:function(a){a.matrix=this.animatedMatrix;a.matrix.a=a.matrix_a;a.matrix.b=a.matrix_b;a.matrix.c=a.matrix_c;a.matrix.d=a.matrix_d;a.matrix.tx=a.matrix_tx;a.matrix.ty=a.matrix_ty;delete a.matrix_a;delete a.matrix_b;delete a.matrix_c;delete a.matrix_d;delete a.matrix_tx;delete a.matrix_ty}}};Wa.module$exports&&(Wa=Wa.module$exports);var Tb={module$exports:function(){return{displayObjects:Object.create(null), +loadingDisplayObjects:Object.create(null),movies:new pf,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};Tb.module$exports&&(Tb=Tb.module$exports);var Xa={},rf={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};Xa.module$exports=function(a){a.emitOn=qf;a.stop=sf;return a};Xa.module$exports&&(Xa=Xa.module$exports);var Ca={}, +La=Ta,N={arcBy:{attributes:["P","N","B","B","P"],shorthands:["a"]},arcTo:{attributes:["P","N","B","B","P"],shorthands:["A"]},closePath:{attributes:[],shorthands:["Z","z"]},curveBy:{attributes:["P","P","P"],shorthands:["c"]},curveTo:{attributes:["P","P","P"],shorthands:["C"]},horizontalLineTo:{attributes:["N"],shorthands:["H"],convertTo:"lineTo"},lineBy:{attributes:["P"],shorthands:["l"]},lineTo:{attributes:["P"],shorthands:["L"]},moveBy:{attributes:["P"],shorthands:["m"]},moveTo:{attributes:["P"], shorthands:["M"]},verticalLineBy:{attributes:["N"],shorthands:["v"],convertTo:"lineBy"},verticalLineTo:{attributes:["N"],shorthands:["V"],convertTo:"lineTo"},horizontalLineBy:{attributes:["N"],shorthands:["h"],convertTo:"lineBy"},quadraticCurveBy:{attributes:["P","P"],shorthands:["q"]},quadraticCurveTo:{attributes:["P","P"],shorthands:["Q"]},smoothCurveBy:{attributes:["P","P"],shorthands:["s"]},smoothCurveTo:{attributes:["P","P"],shorthands:["S"]},smoothQuadraticCurveBy:{attributes:["P"],shorthands:["t"]}, -smoothQuadraticCurveTo:{attributes:["P"],shorthands:["T"]},throughCurveBy:{attributes:["P","P"],shorthands:["tc"]},throughCurveTo:{attributes:["P","P"],shorthands:["TC"]}},me={},J;for(J in N)N.hasOwnProperty(J)&&N[J].shorthands.forEach(function(a){me[a]=J});var ne={};for(J in N)N.hasOwnProperty(J)&&(ne[J]=N[J].shorthands[0]);var Vb=[];for(J in N)N.hasOwnProperty(J)&&(Vb.push(J),Vb=Vb.concat(N[J].shorthands));Da.module$exports={validTokens:Vb,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig, -function(a,d,e){b.push(me[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});return ed(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;farguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ja(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ -a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Ib((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ha(255,ga(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ha(255, -ga(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ha(255,ga(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ha(1,ga(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ga(0,ha(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ga(0,ha(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), -d=a.length;d--;)c._setPointAlongRange(a[d],lh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ja(360*this.h()),ja(100*this.s())+"%",ja(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ -("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in qe&&(a=qe[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, --1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},mh=m,Mc="".split,Nc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c; -if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Mc.call(a," "),g=f.length;++earguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;db)throw Error("Property: "+a+" must be from 0 to 1");d[a]=b;c=fd(d.h,d.s,d.l);d.r=c>>24&255;d.g=c>>16&255;d.b=c>>8&255;break;default:throw Error("No support for setting: "+a);}return this};r.get=function(a){var b=this._properties;switch(a){case "r":case "g":case "b":return ka(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+ +a);}};r.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};r.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};r.midpoint=function(a){a=X(a);return new Hb((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};r.setColorMatrix=function(a){for(var b=[],c=this._properties,d=c.r,e=c.g,f=c.b,c=c.a,g=a.length;g--;)b[g]=+a[g];this.set("r",ia(255,ha(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",ia(255, +ha(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",ia(255,ha(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",ia(1,ha(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};r._setPointAlongRange=function(a,b,c){var a=a.charAt(0),d=this[a]();switch(a){case "r":case "g":case "b":this.set(a,c?ha(0,ia(255,b*c+(d-c/2))):255*b);break;default:this.set(a,c?ha(0,ia(1,b*c+d-c/2)):b)}return this};r.randomize=function(a,b){if(!a||"string"==typeof a)a=a?[a]:["r","g","b"];for(var c=this.clone(), +d=a.length;d--;)c._setPointAlongRange(a[d],xh(),b);return c};r.clone=function(a){return a?X(+this).set(a):X(+this)};r.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};r.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};r.hsla=function(){return"hsla("+[ka(360*this.h()),ka(100*this.s())+"%",ka(100*this.l())+"%",this.a()].join()+")"};r.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};r.toString=function(){return"0x"+ +("0000000"+(((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0).toString(16)).slice(-8)};X.parse=function(a,b){var c,a=""+a;a in ve&&(a=ve[a]);if(/^#[0-9a-f]{6}$/i.test(a))a=(parseInt(a.slice(1),16)<<8|255)>>>0;else if(/^#[0-9a-f]{8}$/i.test(a))a=parseInt(a.slice(1),16)>>>0;else if(/^#[0-9a-f]{3}$/i.test(a))var a=parseInt(a.slice(1),16),d=a&3840,e=a&240,f=a&15,a=(d<<20|d<<16|e<<16|e<<12|f<<12|f<<8|255)>>>0;if(!isNaN(a))return+a;a=a.split("(");if(2==a.length)switch(d=a[1].slice(0, +-1).split(","),e=d.length,a[0]){case "rgb":c=255;case "rgba":if(4==e||3==e&&c)return((d[0]&255)<<24|(d[1]&255)<<16|(d[2]&255)<<8|(c||255*d[3]&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=fd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:X.parse(b)};z.module$exports=X;z.module$exports&&(z=z.module$exports);var w={},yh=m,Lc="".split,Mc={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof pc,e=typeof c; +if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new pc(b,c));for(var d=this._events||(this._events={}),e=-1,f=Lc.call(a," "),g=f.length;++e=g&&this.removeListener(a,c,d.listener);return this},listeners:function(a){var b=this._events||(this._events={}),a=":"+a;return b[a]||(b[a]=[])},once:function(a,b,c){2===arguments.length&&(c=b,b=null);return this.addListener(a,new pc(b,c,1))},removeListener:function(a,b,c){2===arguments.length&&(c=b,b=null);for(var d,e,f,g,h=this._events||{}, -k=-1,i=Mc.call(a," "),n=i.length;++kd.length)return this;c=rd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y,b[2].x,b[2].y,b[3].x,b[3].y];f.from= -b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*=1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+ -"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&ad.length)return this;c=rd(d.from.clone(),new v(d[1],d[2]),new v(d[3],d[4]),new v(d[5],d[6]),0.5);b=c.left;c=c.right;var f=["curveTo",b[1].x,b[1].y, +b[2].x,b[2].y,b[3].x,b[3].y];f.from=b[0].clone();f.lastMoveTo=d.lastMoveTo.clone();e.push(f);b=["curveTo",c[1].x,c[1].y,c[2].x,c[2].y,c[3].x,c[3].y];b.from=c[0].clone();b.lastMoveTo=d.lastMoveTo.clone();e.push(b);this._segments.splice(a,1,f,b);return this};L.propertiesFromAbsoluteArc=qc;L.splitAbsoluteCubicBezier=rd;L.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;dd&&(d=b),this.on(b,a[c]);d>this.length()&&(this._length=d+1);return this},length:function(a){var b=this._length||(this._length=0);if(!arguments.length)return b;for(a*=1;b-- >=a;)this.removeAllListeners(b);this._length=a;return this},play:function(a){a*= +1;this.isPlaying=!0;0<=a&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},stop:function(a){a*=1;this.isPlaying=!1;0<=a&&athis.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1this.currentAnimation)this.begin();else return this.animations[this.currentAnimation].isPlaying=!0,this},pause:function(){-1d&&(d=c);d>this.duration&&(this.duration=d);return h}};$b.mixin(rc.prototype,Jh);Fa.module$exports=rc;Fa.module$exports&&(Fa=Fa.module$exports);var U={},Kh=w,va=m,Tf=aa,Vf=S,xe=oa,Lh=Fa,td=na,G=va.descriptorAccessor, -D=va.descriptorData,Mh=va.getter,Sf=1,sd=Math.atan2,uf=Math.PI,sc=isFinite,Uf=Mh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]=b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})), -b._activate(c),b._children))for(var e=0,f=b._children.length;ed.status||304==d.status)?b(d.responseText):404===d.status&&c(d.status)}};Ha.module$exports=wc;Ha.module$exports&&(Ha=Ha.module$exports);var mb={},Hd=ea,Uh=Ha,Vh=m,Ae=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff", -otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype",ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"}; -var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Hd.prototype);O.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Uh(e)).on("load",function(){var c;a.type in Ae?c=Ae[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId; -b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Vh.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};mb.module$exports=O;mb.module$exports&&(mb=mb.module$exports); -var nb={},Id=ea,Wh="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,Xh={"start-with-nothing":"loadstart",metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Id.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!Wh.canPlayType(h)||this.hasInitiatedLoad? -this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type",h),e.src=a,this.registerElement(e),e.addEventListener(Xh[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};nb.module$exports=xc;nb.module$exports&&(nb=nb.module$exports);var Ia={},Be=m,Yh=w,Zh=mb,$h=nb,ai= -lb,bi=Ha;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var Ce=$.handlers={Bitmap:ai,Font:Zh,Video:$h,Raw:bi};$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in Ce)(new Ce[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){this.emit(b,Be.mixin(a,c))}).on("error",this,function(b){a.err=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+ -d);}};Be.mixin($.prototype,Yh);Ia.module$exports=$;Ia.module$exports&&(Ia=Ia.module$exports);var ob={},ci=V,De=Jd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=ci.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage=function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)}, -run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},w);De.notifyRunnerAsync=De.notifyRunner;ob.module$exports=Jd;ob.module$exports&&(ob=ob.module$exports);var pb={},Oa=m,di=w,zg=V,ei=Kd.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext; -b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"});b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions();return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a}, -destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this},debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b);break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command, -b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id);break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady||(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl= -a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a,data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!==typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup= -!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft,document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message",a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ei, -di);pb.module$exports=Kd;pb.module$exports&&(pb=pb.module$exports);var qb={},fi=w,ec=m,Ja=z,gi=Da,Ee=ab,ya=Ua,hi=$a,Wc=Ia,Ld={},ii=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),fc=ya.cssClasses,rb=ya.matrixToString,ji=ya.gradientToSignature,ki=ya.filterToSignature,Fe=ya.valueFromSignatureForType,li=gi.exportToPath,gc=Ee.isFEColorMatrixEnabled,mi=Ee.filterElementsFromList,ni=Wc.handlers.Font.fontIDs,Ge=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit", -opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor",text:"text",cursor:"cursor",fillRule:"fill-rule"},Md="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),oi=ec.isArray;yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c= -b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=ni[c]||c;null!=c?a.setAttribute("font-family",c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",rb(c)):null===c&&a.removeAttribute("transform")}}}; -var p=zc.prototype=ec.mixin({},fi,hi),pi={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"};p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ja(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,k=this,i=this.svg,n={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&& -0===f.parent&&(f.parent=f.id+"_offStageParent"),c=i[b],!c&&!f.detach&&("DOMElement"===h?(c=i[b]=document.createElement(f.attributes.nodeName),c.setAttribute("data-bs-id",b)):c=i[b]=u(pi[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete i[b],b=f[h],c=i[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),n[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function qf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&& -qf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature,b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&i.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e=0;b=c[e++];)f=n[b],(b=n[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=i[f.parent]){h=f.prev;c=i[f.id];c=c._root||c;if(h){d||(d= -document.createDocumentFragment());d.appendChild(c);do b=c,c=i[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,i[f.next]||null)}}this._logFrame();this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&&(f=b._fillColorSignature);oi(e)&&(0 is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width", -d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls","controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width", -"100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&&(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Ge):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g, -Ge));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject=function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a); -this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,j=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(j[2]),Math.abs(j[3]))||1),j[2]*=e,j[3]*=e,0>j[2]&&(j[0]=-j[2],j[2]=0),0>j[3])j[1]=-j[3],j[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",rb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"), -g.id=this._genDefUID());i=0;for(n=d.length;iarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.curveBy=function(a,b,c,d,e,f){if(6> -arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};o.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};o.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a, -b,c,d]);this.markUpdate("shapeData");return this};o.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};o.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Ne-d:e;e=Ai(f-g);d=a+c*Le(g);g=b+c*Oe(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};o.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length, -this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Ob.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,i,j,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],k=f[2];f=b[1];var i=(0+f[1])/2,e=i*h*-a/((e+f[2])/2*h-i*k+i*e)/i}for(a=0;a>ERROR WORKER",c)}});self.load= -function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new pj(a),d=c.env.exports;df.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,df.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a= -this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,k=[],i=[];h.root=this;for(var j in g)k.push(j),i.push(g[j]);ch(a,function(a){k.push(a);Function.apply(null,k).apply(h,i);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};Gb.module$exports&&(Gb=Gb.module$exports);var cd={},dd=Bb,rj=Za,sj=Gb,tj=ob,uj=qb,ef=m,vj=Cb;if("undefined"!=typeof importScripts){var nc,ff=function(a){nc.notify(a.data)};nc=new rj(function(a){postMessage(a)}, -function(){removeEventListener("message",ff);nc=null});addEventListener("message",ff);sj(nc)}else{window.bonsai=dd;var wj=ef.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=uj;dd.setup({baseUrl:ef.baseUri(document),runnerContext:tj,runnerUrl:vj.chooseRunnerUrl(wj)||"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); +0,e;e=c[d++];)this.initialValues[e]=a[e];break;default:this.initialValues=b.get(a,this.propertyNames)}this.subjects.push({subject:a,strategy:b});if(this.animations.length){c=0;for(d=this.animations.length;cd&&(d=c);d>this.duration&&(this.duration=d);return h}};Oc.mixin(rc.prototype,Vh);Ea.module$exports=rc;Ea.module$exports&&(Ea=Ea.module$exports);var Q={},Wh=w,va=m,ag=aa,cg=T,Be=oa,Xh=Ea,td=na,G=va.descriptorAccessor,C=va.descriptorData,Yh=va.getter,$f=1,sd=Math.atan2,Cf=Math.PI,sc=isFinite,bg=Yh("_opacity");F.registerOffStageObj=function(a,b,c,d,e){if(c&&(b.stage=c,b._offStageType=d,b._isOffStage=!0,c.registry.needsDraw[b.id]=b,c.registry.needsInsertion[b.id]=b,c.registry.displayObjects[b.id]= +b,"Movie"===b.type&&c.registry.movies.add(b),e||(b.parent=c,b._offStageUseCount=b._offStageUseCount?b._offStageUseCount+1:1,a.once("removedFromStage",function(){1===b._offStageUseCount?F.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),e=b.displayList&&b.displayList.children))for(var f=0,g=e.length;f>>0,g):g;c?e.splice.apply(e,[b,0].concat(a)):e.splice(b,0,a);0d.status||304==d.status)?b(d.responseText):!e&&404===d.status&&(c(d.status),e=!0)}};Ga.module$exports=wc;Ga.module$exports&&(Ga=Ga.module$exports);var lb={},Ld=fa,fi=Ga,gi=m,Ge=O.mimeToFormat={woff:"woff","font/woff":"woff","application/x-woff":"woff","application/x-font-woff":"woff",otf:"opentype","font/otf":"opentype","font/opentype":"opentype","application/x-font-otf":"opentype","application/x-font-opentype":"opentype", +ttf:"truetype","font/ttf":"truetype","font/truetype":"truetype","application/x-font-ttf":"truetype","application/x-font-truetype":"truetype",svg:"svg","image/svg+xml":"svg","application/vnd.ms-fontobject":"eot"};O.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Vc;O.fontIDs={};O.prefix="bs_"+(new Date).getTime()+"_";O.prototype=Object.create(Ld.prototype);O.prototype.loadResource=function(a, +b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new fi(e)).on("load",function(){var c;a.type in Ge?c=Ge[a.type]:(c=a.type,console.warn("Resource type of "+a.type+" might be not supported by the Font type handler"));d.fontFormats.push({uri:e,format:c});b()}).on("error",function(){c("Cannot load font: "+e)}).load()};O.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Vc||(Vc=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style"))); +var c,d,e=[],f="";gi.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+'")':e.push('url("'+d+'") format("'+c+'")')});Vc.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};lb.module$exports=O;lb.module$exports&&(lb=lb.module$exports);var mb={},Md=fa,hi="undefined"!==typeof document&&document.createElement?document.createElement("video"):0,ii={"start-with-nothing":"loadstart", +metadata:"loadedmetadata","risky-to-play":"loadeddata","can-play":"canplay","can-play-through":"canplaythrough"};xc.prototype=Object.create(Md.prototype);xc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"can-play",h=a.type,a=a.src;!hi.canPlayType(h)||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),e.setAttribute("id",f),e.setAttribute("type", +h),e.src=a,this.registerElement(e),e.addEventListener(ii[g],d,!1),e.addEventListener("error",function(){c("Could not load video.")},!1),e.addEventListener("ended",function(){},!1),e.addEventListener("play",function(){},!1),e.addEventListener("pause",function(){},!1))};mb.module$exports=xc;mb.module$exports&&(mb=mb.module$exports);var Ha={},ji=m,ki=w,li=lb,mi=mb,ni=kb,oi=Ga;$.assets={};$.hasVideoSupport=function(){return!!domVideo.canPlayType};var He=$.handlers={Bitmap:ni,Font:li,Video:mi,Raw:oi}; +$.prototype={destroy:function(a){delete $.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",d=a.type;if(d in He)(new He[d](a.request,a.id)).on("registerElement",function(b){$.assets[a.id]=b}).on("load",this,function(c){a.loadData=c;this.emit(b,a)}).on("error",this,function(b){a.loadData=b;this.emit(c,a)}).load();else throw Error("Type not found in AssetController.handlers: "+d);}};ji.mixin($.prototype,ki);Ha.module$exports=$;Ha.module$exports&&(Ha=Ha.module$exports); +var nb={},pi=V,Ie=Nd.prototype=m.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},init:function(a){var b=pi.parse(this.runnerUrl);b.fragment=encodeURIComponent(JSON.stringify(a));var c=this;(this._worker=new Worker(b)).onmessage=function(a){a=a.data;c.emit("message",a);"scriptLoaded"===a.command&&c.emit("scriptLoaded",a.url)}},notifyRunner:function(a){this._worker.postMessage(a)},run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript", +url:a})}},w);Ie.notifyRunnerAsync=Ie.notifyRunner;nb.module$exports=Nd;nb.module$exports&&(nb=nb.module$exports);var ob={},Oa=m,qi=w,Jg=V,ri=Od.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;Oa.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())});d.on("scriptLoaded",function(){++h===g&&b()})}var b=this._movieOptions,c=this,d=this.runnerContext;b.url&&(b.urls||(b.urls=[])).push(b.url);b.plugins&&b.plugins.length?a(b.plugins,function(){d.notifyRunner({command:"exposePluginExports"}); +b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);c.emit("load")}):b.code&&d.run(b.code)},initRenderer:function(){this._sendOptions();return this},_cleanOptions:function(a){a||(a={});var b=this.renderer;a.framerate=+a.framerate||void 0;a.width=b.width;a.height=b.height;return a},destroy:function(){this.renderer.destroy();delete this.renderer;this.runnerContext.destroy();delete this.runnerContext;return this}, +debug:function(a){console.log.apply(console,["RUNNER DEBUG:"].concat(a))},freeze:function(){return this.post("freeze")},handleEvent:function(a){var b=a.data;switch(a.command){case "render":this.currentFrame=a.frame;this.renderer.render(b);break;case "renderConfig":this.renderer.config(b);break;case "play":case "stop":case "freeze":case "unfreeze":this.emit(a.command,b);break;case "debug":this.debug(b);break;case "loadAsset":this.assetController.load(b);break;case "destroyAsset":this.assetController.destroy(b.id); +break;case "message":this.emit("message",b);break;case "isReady":this.isRunnerListening=!0,this._sendOptions(),this._onRunnerContextReady(),this.emit("start")}},_sendOptions:function(){if(this.isRunnerListening){this.isReady||(this._sendEnvData(),this.isReady=!0);var a=Oa.mixin({},this._movieOptions);a.baseUrl=a.baseUrl&&a.baseUrl.toString();a.assetBaseUrl=a.assetBaseUrl&&a.assetBaseUrl.toString();this.post("options",a)}return this},play:function(a){return this.post("play",a)},post:function(a,b){this.runnerContext.notifyRunner({command:a, +data:b});return this},postAsync:function(a,b){this.runnerContext.notifyRunnerAsync({command:a,data:b});return this},_sendEnvData:function(){if(!this._isEnvSenderSetup){if("undefined"!==typeof window){var a=Oa.hitch(this,this._sendEnvData);window.addEventListener("resize",a,!1);window.addEventListener("scroll",a,!1)}this._isEnvSenderSetup=!0}a=this.renderer.getOffset();"undefined"!==typeof window&&this.post("env",{windowHeight:window.innerHeight,windowWidth:window.innerWidth,windowScrollX:Math.max(document.body.scrollLeft, +document.documentElement.scrollLeft),windowScrollY:Math.max(document.body.scrollTop,document.documentElement.scrollTop),offsetX:a.left,offsetY:a.top})},sendMessage:function(a){return this.post("message",a)},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};Oa.mixin(ri,qi);ob.module$exports=Od;ob.module$exports&&(ob=ob.module$exports);var pb={},si=w,ec=m,Ia=z,ti=Ca,Je=ab,xa=Ua,ui=$a,Wc=Ha,Pd={},vi=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion), +fc=xa.cssClasses,qb=xa.matrixToString,wi=xa.gradientToSignature,xi=xa.filterToSignature,Ke=xa.valueFromSignatureForType,yi=ti.exportToPath,gc=Je.isFEColorMatrixEnabled,zi=Je.filterElementsFromList,Ai=Wc.handlers.Font.fontIDs,Le=Wc.handlers.Font.prefix,Xc={cap:"stroke-linecap",join:"stroke-linejoin",miterLimit:"stroke-miterlimit",opacity:"opacity",fillOpacity:"fill-opacity",strokeOpacity:"stroke-opacity",fontSize:"font-size",fontWeight:"font-weight",fontStyle:"font-style",textAnchor:"text-anchor", +text:"text",cursor:"cursor",fillRule:"fill-rule"},Qd="dblclick click mouseenter mouseleave mouseover mouseout mouseup mousedown touchstart touchend mousemove touchmove mousewheel".split(" "),Bi=ec.isArray;yc.prototype={viewBox:function(a,b){a&&b&&this.root.setAttribute("viewBox","-0.5 -0.5 "+a+" "+b)},attr:function(a,b){var c,d;for(d in b)if(c=b[d],d in Xc)null!=c?a.setAttribute(Xc[d],c):null===c&&a.removeAttribute(Xc[d]);else switch(d){case "fontFamily":c=Ai[c]||c;null!=c?a.setAttribute("font-family", +c):null===c&&a.removeAttribute("font-family");break;case "strokeWidth":a.setAttribute("stroke-width",c);0>=c?(c=a.getAttribute("stroke"))&&a.setAttribute("data-stroke",c):"strokeColor"in b||(c=a.getAttribute("data-stroke"))&&a.setAttribute("stroke",c);break;case "matrix":null!=c?a.setAttribute("transform",qb(c)):null===c&&a.removeAttribute("transform")}}};var p=zc.prototype=ec.mixin({},si,ui),Ci={Bitmap:"image",Group:"g",Movie:"g",Path:"path",Text:"text",TextSpan:"tspan",Video:"foreignObject",Mask:"mask"}; +p.config=function(a){var b=a.value;switch(a.item){case "crispEdges":this.svg.root.setAttribute("shape-rendering",b?"crispEdges":"auto");break;case "backgroundColor":this.svg.root.style.backgroundColor=Ia(b).rgba()}};p.render=function(a){var b,c,d,e,f,g,h,k=this,j=this.svg,o={},l={};for(e=0;f=a[e++];)if(b=f.id,h=f.type,"bitmap_hidden"!==h)if(f.offStageType&&0===f.parent&&(f.parent=f.id+"_offStageParent"),c=j[b],!c&&!f.detach&&("DOMElement"===h?(c=j[b]=document.createElement(f.attributes.nodeName), +c.setAttribute("data-bs-id",b)):c=j[b]=u(Ci[h],b)),f.detach){f=f.children||0;h=0;do c&&this.removeObject(c),delete j[b],b=f[h],c=j[b],h+=1;while(c)}else{"parent"in f&&(g=f.parent,(l[g]||(l[g]=[])).push(b),o[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!gc&&"Group"===h&&function yf(a,b){if(b){var c=a.firstChild||{};do c instanceof SVGGElement&&yf(c,c._filterSignature),c._fillColorSignature&&k.applyFillColor(c,c._fillColorSignature,b),c._strokeColorSignature&&k.applyStrokeColor(c,c._strokeColorSignature, +b),c._fillGradientSignature&&k.applyFillGradient(c,c._fillGradientSignature,null,b);while(c=c.nextSibling)}}(c,c._filterSignature);f.attributes&&j.attr(c._root||c,f.attributes)}for(g in l){c=l[g];a=[];for(e=0;b=c[e++];)f=o[b],(b=o[f.next])?b.prev=f:a.push(f);for(e=0;f=a[e++];)if(g=j[f.parent]){h=f.prev;c=j[f.id];c=c._root||c;if(h){d||(d=document.createDocumentFragment());d.appendChild(c);do b=c,c=j[h.id],c=c._root||c,d.insertBefore(c,b);while(h=h.prev);c=d}g.insertBefore(c,j[f.next]||null)}}this._logFrame(); +this.emit("canRender")};p.drawMovie=function(){};p.drawGroup=function(){};p.drawAll=function(a,b,c){var d=c.attributes,e=d.filters,f=d.fillColor,g=d.fillGradient;!gc&&!f&&e&&b._fillColorSignature&&(f=b._fillColorSignature);Bi(e)&&(0 is unkown.");var d=c.width||100,f=c.height||100,g=c.matrix||{tx:0,ty:0};a.setAttribute("x",g.tx);a.setAttribute("y",g.ty);a.setAttribute("width",d);a.setAttribute("height",f);a.setAttribute("preserveAspectRatio","none");a.removeAttribute("transform");e.setAttribute("width",d);e.setAttribute("height",f);e.setAttribute("controls", +"controls");c.autoplay&&e.play();a.appendChild(e)};p.drawDOMElement=function(a,b){var c,d=b.attributes;if((c=this.svg[b.parent])&&!a._root&&!(c instanceof HTMLElement))c=document.createElementNS("http://www.w3.org/1999/xhtml","body"),a._root=u("foreignObject",b.id),a._root.appendChild(c),c.appendChild(a),a._root.setAttribute("width","100%"),a._root.setAttribute("height","100%");a._root&&("css_width"in d&&/px$/.test(d.css_width)&&a._root.setAttribute("width",d.css_width),"css_height"in d&&/px$/.test(d.css_height)&& +(a._root.setAttribute("height",d.css_height),a._root._height=d.css_height));a._isBSDOMElement=!0;for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,Le):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&"undefined"!==typeof d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,Le));if("dom_innerHTML"in d&&a.parentNode){d=a;e=a._root;if(!e)for(;(d=d.parentNode)&&!(e=d._root););e.setAttribute("height",e._height||"100%")}};p.removeObject= +function(a){var b=a._root||a,c=b.parentNode;c&&c.removeChild(b);a._pattern&&(this.removeFillImage(a),this.svg.defs.removeChild(a._pattern),a._pattern._fillGradientSignature&&this.removeGradient(a._pattern,"fill"));a._fillGradientSignature&&this.removeGradient(a,"fill");a._strokeGradientSignature&&this.removeGradient(a,"stroke");this.removeMask(a);this.removeFilters(a)};p.removeFilters=function(a){var b=a._filterSignature,c=this.definitions[b];c&&(1e&&(e+=360),e=-e,i=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(i[2]),Math.abs(i[3]))||1),i[2]*=e,i[3]*=e,0>i[2]&&(i[0]=-i[2],i[2]=0),0>i[3])i[1]=-i[3],i[3]=0;g||(g=u("linearGradient"),g.setAttribute("gradientTransform",qb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());j=0;for(o=d.length;jarguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};n.curveBy=function(a,b,c,d,e,f){if(6> +arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveBy",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};n.quadraticCurveTo=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveTo needs 4 arguments");this._segments.push(["quadraticCurveTo",a,b,c,d]);this.markUpdate("shapeData");return this};n.quadraticCurveBy=function(a,b,c,d){if(4>arguments.length)throw Error("quadraticCurveBy needs 4 arguments");this._segments.push(["quadraticCurveBy",a, +b,c,d]);this.markUpdate("shapeData");return this};n.arcTo=function(a,b,c,d,e,f,g){this._segments.push(["arcTo",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};n.arcBy=function(a,b,c,d,e,f,g){this._segments.push(["arcBy",a,b,c,d,e,f,g]);this.markUpdate("shapeData");return this};n.arc=function(a,b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Te-d:e;e=Mi(f-g);d=a+c*Re(g);g=b+c*Ue(g);ee.length,g=f?e:d,d=(f?d:e).map(function(a,b){return g[b]>a?g[b]:a});this.toCurves(d);a.toCurves(d);var a=a.attr(),h;for(h in a)(null==a[h]||!(h in this.morphableAttributes))&&delete a[h];return this.animate(b,a,c)};n.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Math.max(a._segments.length, +this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};Nb.toAbsolute=function(a){var b=a&&a.length;if(!b)return[["moveTo",0,0]];var c=0,d=0,e=[],f=0,g=0,h=0;"moveTo"==a[0][0]&&(g=a[0][1],h=a[0][2],c=g,d=h,f++,e[0]=["moveTo",g,h]);for(var k,j,i,l=f;l>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;be)){f=b[d/2-0.5|0];var e=c[2],h=f[1],i=f[2];f=b[1];var j=(0+f[1])/2,e=j*h*-a/((e+f[2])/2*h-j*i+j*e)/j}for(a=0;a>ERROR WORKER",c)}});self.load=function(a,c){return b.load(a,c)};self.wait=function(){return b.wait()};self.done=function(){return b.done()};var c=new Bj(a),d=c.env.exports;mf.mixin(self,d);self.exports={};a.on("message",function(c){"loadScript"===c.command?b.load(c.url,function(){a.notifyRenderer({command:"scriptLoaded",url:c.url})}): +"runScript"===c.command?Function(c.code)():"exposePluginExports"===c.command&&("stage"in self.exports&&delete self.exports.stage,mf.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g){var a=this.assetBaseUrl.resolveUri(a),h=g||new d.Movie,g=c.getSubMovieEnvironment(h,a).exports,i=[],j=[];h.root=this;for(var m in g)i.push(m),j.push(g[m]);oh(a,function(a){i.push(a);Function.apply(null,i).apply(h,j);b.call(h,null,h)},function(c){b.call(h,c+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})}; +Fb.module$exports&&(Fb=Fb.module$exports);var cd={},dd=Ab,Dj=Za,Ej=Fb,Fj=nb,Gj=pb,nf=m,Hj=Bb;if("undefined"!=typeof importScripts){var nc,of=function(a){nc.notify(a.data)};nc=new Dj(function(a){postMessage(a)},function(){removeEventListener("message",of);nc=null});addEventListener("message",of);Ej(nc)}else{window.bonsai=dd;var Ij=nf.map(document.getElementsByTagName("script"),function(a){return a.src});dd.Renderer=Gj;dd.setup({baseUrl:nf.baseUri(document),runnerContext:Fj,runnerUrl:Hj.chooseRunnerUrl(Ij)|| +"bonsai.js"})}cd.module$exports&&(cd=cd.module$exports)})(); diff --git a/ajax/libs/bonsai/package.json b/ajax/libs/bonsai/package.json index ed0ae8b23..76d6ff4f4 100644 --- a/ajax/libs/bonsai/package.json +++ b/ajax/libs/bonsai/package.json @@ -1,7 +1,7 @@ { "name": "bonsai", "filename": "bonsai.min.js", - "version": "0.3.6", + "version": "0.3.7", "description": "BonsaiJS is a graphics library and renderer", "homepage": "http://bonsaijs.org", "keywords": [