-
Notifications
You must be signed in to change notification settings - Fork 0
/
bonsai-0.4.4.min.js
308 lines (299 loc) · 136 KB
/
bonsai-0.4.4.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
/*
(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
- calc_box: http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html
External resources (each with their own license):
- cinematicBoomNorm(ogg/mp3/m4a): http://creativecommons.org/licenses/by/3.0/
http://www.freesound.org/people/HerbertBoland/sounds/33637/
*/
(function __bonsaiRunnerCode__(){function wa(a){if(!(this instanceof wa))return new wa(a);this.name="ParserError";this.message=a[0]}function ca(a,b){this.x=a||0;this.y=b||0}function Q(a,b,c,d,e){this.type=a;this.charCode=c;this.keyCode=b;this.inputValue=e;this.altKey=!!(d&fc);this.ctrlKey=!!(d&gc);this.metaKey=!!(d&hc);this.shiftKey=!!(d&ic)}function ma(a,b,c,d,e){this.type=a;this.stageX=this.x=b;this.stageY=this.y=c;this.clientX=d;this.clientY=e;this.deltaX=this.deltaY=this.diffX=this.diffY=this.isLeft=
this.isRight=this.isMiddle=this.touchId=void 0}function Od(a,b,c){this.translationData={};this.numericStartValues=c?c.toNumeric.call(this.translationData,a,!1):[a];this.numericEndValues=c?c.toNumeric.call(this.translationData,b,!0):[b];this.length=this.numericStartValues.length;this.translator=c}function vg(){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 wg(a){var b=this.type,c=xg[b];do a.emit(b,this),a=a.parent;
while(c&&!this._isStopped&&a)}function yg(){this._isStopped=!0}function Pd(a,b){var c,d,e,f=[],g=!0,h=[],i=a&&a.length||0,b=b||R;if(0===i)return[];for(var j,o,m=0;m<i;m++){o=a[m];if(g){g=!1;f=[];c=b[o];if("undefined"===typeof c){if("undefined"===typeof j)throw new Va.ParserError(['Unknown command: "'+o+'"']);c=b[j];m--}else j=o;f.push(j);d=c.attributes.slice(0)}else switch(c=d.shift(),e=+o,c){case "B":if(0!=e&&1!=e)throw new Va.ParserError(['Invalid parameter for command "'+j+'", expected 0 or 1 but got "'+
o+'".']);f.push(e);break;case "N":if(isNaN(e))throw new Va.ParserError(['Invalid parameter for command "'+j+'", expected numeric but got "'+o+'".']);f.push(e);break;case "P":if(isNaN(e))throw new Va.ParserError(['Could not create Point from String for command "'+j+'", expected numeric but got "'+o+'".']);f.push(e);e=+a[++m];if(isNaN(e))throw new Va.ParserError(['Could not create Point from String for command "'+j+'", expected numeric but got "'+a[m]+'".']);f.push(e)}0===d.length&&(g=!0,h.push(f))}return h}
function da(a,b){a=da.parse(a,b);return null===a?a:new jc(a>>24&255,a>>16&255,a>>8&255,(a>>0&255)/255)}function jc(a,b,c,d){var e,f,g;e=a/255;f=b/255;g=c/255;var h,i,j,o,m=W(e,f,g);i=X(e,f,g);j=(i+m)/2;if(m==i)h=i=0;else{o=m-i;i=0.5<j?o/(2-m-i):o/(m+i);switch(m){case e:h=(f-g)/o+(f<g?6:0);break;case f:h=(g-e)/o+2;break;case g:h=(e-f)/o+4}h/=6}this._properties={r:a||0,g:b||0,b:c||0,a:null==d?1:d,h:h,s:i,l:j}}function na(a){return function(b){return 0<arguments.length?this.set(a,b):this.get(a)}}function Qc(a,
b,c){c=0>c?c+1:1<c?c-1:c;return 1>6*c?a+6*(b-a)*c:1>2*c?b:2>3*c?a+6*(b-a)*(2/3-c):a}function Qd(a,b,c){var b=0.5>=c?c*(b+1):c+b-c*b,d=2*c-b,c=255*Qc(d,b,a+1/3),e=255*Qc(d,b,a),a=255*Qc(d,b,a-1/3);return oa(c)<<24|oa(e)<<16|oa(a)<<8}function Rc(a,b,c){this.context=a;this.listener=b;this.times=c||Infinity}function Rd(a){this.pendingAssets=a}function Sd(a,b){this.disconnect=b;this.notifyRenderer=a}function Td(a,b){this.runnerUrl=a;this.doc=b}function kc(a){return(a=a&&a.nodeType===Ud&&a.getAttribute("data-bs-id"))?
+a:-1}function Sc(a){for(;a&&(a.nodeType!==Ud||!a.hasAttribute("data-bs-id"));)a=a.parentNode;return a}function Tc(a,b,c,d,e){a.emit("userevent",b,c,d,e);lc||a.emit("userevent",b.clone("multi:"+b.type),c,d,e)}function Vd(a,b,c,d,e){var f=b.type;b.type="multi:"+f;a.emit("userevent",b,c,null,e);d||a.emit("userevent",b.clone(f),c,null,e)}function t(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 Wd(a){for(var a=
a||[],b,c=0,d=a.length;c<d;c+=1)if(b=a[c],zg&&b instanceof window.SVGFEMergeElement||Ag&&b instanceof window.SVGFEBlendElement||Bg&&b instanceof window.SVGFECompositeElement)return!0;return!1}function Xd(){return{toNumeric:function(a){a=Yd(a);return[a.r(),a.g(),a.b(),a.a()]},toAttr:function(a){return""+new Yd.RGBAColor(a[0],a[1],a[2],a[3])}}}function Zd(){return{toNumeric:function(a){var b=a.stops,c=[];this.mutableGradient=a.clone();a.matrix&&(this.hasMatrix=!0,c.push(a.matrix.a,a.matrix.b,a.matrix.c,
a.matrix.d,a.matrix.tx,a.matrix.ty));"linear-gradient"===a.type?isNaN(a.direction)||(this.hasDirection=!0,c.push(a.direction)):(this.hasRadius=!0,this.radiusUnit=((""+a.radius).match(/\D$/)||[""])[0],c.push(parseFloat(a.radius)));for(var d=0,e=b.length;d<e;++d)a=$d(b[d][0]),c.push(a.r(),a.g(),a.b(),a.a(),b[d][1]);return c},toAttr:function(a){var b=this.mutableGradient,c=0;b.matrix&&(b.matrix.a=a[c++],b.matrix.b=a[c++],b.matrix.c=a[c++],b.matrix.d=a[c++],b.matrix.tx=a[c++],b.matrix.ty=a[c++]);this.hasDirection?
b.direction=a[c++]:b.radius=a[c++]+this.radiusUnit;for(var d=b.stops,e=0,f=d.length;e<f;++e)d[e][0]=+new $d.RGBAColor(a[c++],a[c++],a[c++],a[c++]),d[e][1]=a[c++];return b}}}function pa(a,b,c,d,e,f){if(Cg.isArray(a))return pa.apply(this,a);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 Uc(a,b){this.propertiesFrom=Y({},a);this.propertiesTo=Y({},b);for(var c in this.propertiesFrom)c in this.propertiesTo||delete this.propertiesFrom[c];this.propertyNames=
Object.keys(this.propertiesFrom).filter(function(a){return void 0!==this.propertiesFrom[a]&&void 0!==this.propertiesTo[a]},this);this.propertyLength=this.propertyNames.length;this.propertyTweens=[];this._setupTweens();this._values={}}function Vc(a){return"function"==typeof a?a:Dg[a]}function mc(a,b,c,d){d||(d={});this.clock=a;b=this.duration=+b||a.toFrameNumber(b);this._parseEventProps(d);this.subjects=[];this.repeat=(d.repeat||0)-(d.repeat%1||0);this.delay=d.delay&&a.toFrameNumber(d.delay)||0;this.isTimelineBound=
!1!==d.isTimelineBound;this.easing=Vc(d.easing);this.frame=this.prevFrame=0;this.currentDelay=this.delay;this.currentTweenIndex=0;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)}function Eg(){var a=this._matrix,b=ae(a.b,a.a),a=-ae(a.c,a.d);return b>a?b:a}function Fg(a){if(Wa(a)){var a=+a%(2*Gg)||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 Hg(){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 Ig(a){var b=this._scaleX=be(a.a*a.a+a.b*a.b),c=this._scaleY=be(a.d*a.d+a.c*a.c),d=this._matrix;d.a=a.a;d.b=a.b;d.c=a.c;d.d=a.d;d.tx=a.tx;d.ty=a.ty;if(1!==b||1!==c)a=d.transformPoint(this._origin),d.tx-=a.x,d.ty-=a.y,d.scale(1/
b||1,1/c||1),d.tx+=a.x,d.ty+=a.y}function Jg(){return this.matrix.tx}function Kg(a){Wa(a)&&(this._matrix.tx=1===this._scaleX?a:this._matrix.tx+(a-this.matrix.tx),this._owner._mutatedAttributes.matrix=!0)}function Lg(){return this.matrix.ty}function Mg(a){Wa(a)&&(this._matrix.ty=1===this._scaleY?a:this._matrix.ty+(a-this.matrix.ty),this._owner._mutatedAttributes.matrix=!0)}function Ng(){return this._scaleX}function Og(a){Wa(a)&&(this._scaleX=+a,this._owner._mutatedAttributes.matrix=!0)}function Pg(){return this._scaleY}
function Qg(a){Wa(a)&&(this._scaleY=+a,this._owner._mutatedAttributes.matrix=!0)}function Rg(){return(this.scaleX+this.scaleY)/2}function Sg(a){this.scaleX=this.scaleY=a}function Tg(a){this._opacity=1<a?1:0>a?0:+a}function Ug(){return this._origin.clone()}function Vg(a){var b=this._origin;b.x=a.x;b.y=a.y}function Wg(){return this._cursor}function Xg(a){a?/^(?:default|pointer|wait|progress)$/.test(a)&&(this._cursor=a):this._cursor=null}function Yg(){return this._filters.slice(0)}function Zg(a){a?(a=
[].concat(a),this._filters=a=a.map(function(a){return a instanceof ce.BaseFilter?a:new ce[a]})):this._filters.length=0}function $g(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&&G.registerOffStageObj(b,a,b.stage,"clip");this._clipId=a.id;this._clip=a}else this._clip&&G.unregisterOffStageObj(b,this._clip),
this._clipId=this._clip=null}function ah(){return this._clip}function bh(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&&G.registerOffStageObj(b,a,b.stage,"mask");this._maskId=a.id;this._mask=a}else this._mask&&G.unregisterOffStageObj(b,this._mask),this._maskId=this._mask=null}function ch(){return this._mask}
function G(){Object.defineProperty(this,"id",{value:dh++});this._attributes=Object.create(null,{_owner:C(this),_matrix:C(new eh),matrix:H(Hg,Ig,!0),_filters:C([],!0),filters:H(Yg,Zg,!0),interactive:C(!0,!0),_opacity:C(1,!0),opacity:H(fh,Tg,!0),_origin:C(new gh),origin:H(Ug,Vg,!0),rotation:H(Eg,Fg,!0),_scaleX:C(1,!0),_scaleY:C(1,!0),scale:H(Rg,Sg,!0),scaleX:H(Ng,Og,!0),scaleY:H(Pg,Qg,!0),x:H(Jg,Kg,!0),y:H(Lg,Mg,!0),clip:H(ah,$g,!0),_clip:C(null,!0),_clipId:C(null,!0),mask:H(ch,bh,!0),_mask:C(null,
!0),_maskId:C(null,!0),cursor:H(Wg,Xg,!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",interactive:"interactive"};this._mutatedAttributes=xa.mixin({},this._renderAttributes)}function hh(a){return-1!==this.indexOf(a)}function de(a){this.children=[];this.owner=a}function ee(a){Wc.prototype._activate.call(this,
a);for(var b=this.displayList.children,c=0,d=b.length;c<d;c+=1)b[c]._activate(a)}function fe(){Wc.prototype._deactivate.call(this);for(var a=this.displayList.children,b=0,c=a.length;b<c;b+=1)a[b]._deactivate()}function r(a){return a instanceof r.LinearGradient||a instanceof r.RadialGradient?a:r.parse(a)}function Xc(a){a||(a=new ih);a.owner=this;this.displayList=a;ge.call(this)}function he(a,b,c){Yc.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=ie.mixin({},this._domAttributes);this._mutatedCssStyles=ie.mixin({},this._cssStyles)})}function J(){this._segments=[];this.requiredCurves=0;this.currentPoint=new w(0,0);this.lastMoveTo=new w(0,0)}function Zc(a,b,c,d,e,f,g,h,i){var f=!!f,g=!!g,j=e*ea/180,o=nc(j),m=K(c,2),l=K(d,2),j=oc(j),u=(a-h)/2,k=(b-i)/2,n=o*u+j*k,ya=-j*u+o*k,p;p=K(n,2);var q=
K(ya,2),u=K(u,2)/m+K(k,2)/l;if(1<u)return c*=za(u),d*=za(u),Zc(a,b,c,d,e,f,g,h,i);e=(m*l-m*q-l*p)/(m*q+l*p);0>e?(c/=d,e=q+p/K(c,2),d=za(e),c*=d,ya=f=0):(p=(f===g?-1:1)*za(e),f=p*c*ya/d,ya=-p*d*n/c);n=f*o-ya*j+(a+h)/2;o=f*j+ya*o+(b+i)/2;b=je((b-o)/d);i=je((i-o)/d);b=a<n?ea-b:b;i=h<n?ea-i:i;0>b&&(b=2*ea+b);0>i&&(i=2*ea+i);g&&b>i&&(b-=2*ea);!g&&i>b&&(i-=2*ea);return{cx:n,cy:o,rx:c,ry:d,startAngle:b,endAngle:i}}function ke(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=w.lerp(a,b,e),g=w.lerp(b,c,e),c=w.lerp(c,d,e),b=w.lerp(f,g,e),g=w.lerp(g,c,e),e=w.lerp(b,g,e);return{left:[a,f,b,e],right:[e,g,c,d]}}function jh(){return this._textFillColor}function kh(a){this._textFillColor=le(a,this._textFillColor)}function lh(){return this._textFillGradient}function mh(a){a&&(this._textFillGradient=nh(a))}function oh(){return this._fontFamily}function ph(a){this._fontFamily=a?a.fontId||a:null}function qh(){return this._glyphx}function rh(a){Xa.isArray(a)&&
(this._glyphx=a);a||(this._glyphx=null)}function sh(){return this._glyphy}function th(a){Xa.isArray(a)&&(this._glyphy=a);a||(this._glyphy=null)}function uh(a){this._textStrokeColor=le(a,this._textStrokeColor)}function me(a){ne.call(this);a=""+a;Object.defineProperties(this._attributes,{text:F("",!0,!0),fontSize:F(null,!0,!0),fontFamily:Aa(oh,ph,!0),_fontFamily:F(null,!0),fontStyle:F(null,!0,!0),fontWeight:F(null,!0,!0),_textFillColor:F(null,!0),textFillColor:Aa(jh,kh,!0),_textFillGradient:F(null,
!0),textFillGradient:Aa(lh,mh,!0),textFillOpacity:F(1,!0,!0),_glyphx:F(null,!0),_glyphy:F(null,!0),glyphx:Aa(qh,rh,!0),glyphy:Aa(sh,th,!0),textLineOpacity:F(1,!0,!0),_textStrokeColor:F(null,!0),textStrokeColor:Aa(vh,uh,!0),textStrokeWidth:F(null,!0,!0),selectable:F(!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 wh(){return this._textFillColor}function xh(a){this._textFillColor=oe(a,this._textFillColor)}function yh(){return this._textFillGradient}function zh(a){a&&(this._textFillGradient=Ah(a))}function Bh(){return this._fontFamily}function Ch(a){this._fontFamily=a?a.fontId||a:null}function Dh(a){this._textStrokeColor=
oe(a,this._textStrokeColor)}function Eh(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function Fh(a){if("miter"===a||"round"===a||"bevel"===a)this._join=""+a}function Gh(a){1<=a&&(this._miterLimit=+a)}function Hh(a){this._owner.clear();this._owner.addChild(new $c(a))}function Ih(){for(var a=this._owner.children(),b=[],c=0,d=a.length;c<d;++c)b.push(a[c].attr("text"));return b.join("")}function Jh(){return this._textAlign}function Kh(a){if("left"===a||"center"===a||"right"===a)this._textAlign=
a}function pe(a){qe.call(this);Object.defineProperties(this._attributes,{fontSize:A(16,!0,!0),_fontFamily:A("monospace",!0),fontFamily:Z(Bh,Ch,!0),fontStyle:A("normal",!0,!0),fontWeight:A("normal",!0,!0),_cap:A("butt",!0),cap:Z(Lh,Eh,!0),_textAlign:A("left",!0),textAlign:Z(Jh,Kh,!0),_textFillColor:A(255,!0),textFillColor:Z(wh,xh,!0),_textFillGradient:A(null,!0),textFillGradient:Z(yh,zh,!0),textFillOpacity:A(1,!0,!0),textLineOpacity:A(1,!0,!0),_join:A("miter",!0),join:Z(Mh,Fh,!0),_textStrokeColor:A(255,
!0),textStrokeColor:Z(Nh,Dh,!0),textStrokeWidth:A(0,!0,!0),_miterLimit:A(4,!0),miterLimit:Z(Oh,Gh,!0),text:Z(Ih,Hh,!0),textOrigin:A("top",!0,!0),selectable:A(!0,!0,!0)});var b=this._renderAttributes;b.fontSize="fontSize";b.fontFamily="_fontFamily";b.fontStyle="fontStyle";b.fontWeight="fontWeight";b.cap="_cap";b.fillColor="_textFillColor";b.strokeColor="_textStrokeColor";b.fillGradient="_textFillGradient";b.fillOpacity="textFillOpacity";b.strokeOpacity="textLineOpacity";b.join="_join";b.strokeWidth=
"textStrokeWidth";b.miterLimit="_miterLimit";b.selectable="selectable";b.textOrigin="textOrigin";b.textAlign="_textAlign";null!=a&&this.attr("text",a)}function $(a,b,c,d,e){this.scheme=a||void 0;this.authority=b||void 0;this.path=c||"";this.query=d||"";this.fragment=e||""}function Ya(a,b,c){this.timeoutDuration=c||Ya.DEFAULT_TIMEOUT;this.request=a instanceof re?a:new re(a);this.resources=this.request.resources;this.resourcesExpectedLength=this.resources.length;this.resourcesLoaded=0;this.id=b;this.assetData=
{};this.resourceLoadSuccess=Za.hitch(this,"resourceLoadSuccess");this.resourceLoadError=Za.hitch(this,"resourceLoadError")}function pc(){ad.apply(this,arguments)}function se(){te.apply(this,arguments)}function bd(){ue.apply(this,arguments)}function S(){ve.apply(this,arguments);var a=this.request.id;this.fontFormats=[];this.fontId=S.fontIDs[a]=S.prefix+a;this.on("resourcesLoaded",function(){this.applyFontFace()})}function qc(){cd.apply(this,arguments)}function qa(){}function we(a,b,c){this.runnerUrl=
a;this.baseUrl=c}function dd(a){var b=a._pendingMessages;a._pendingMessages=null;var c=a.sendMessage;$a.forEach(b,function(b){c.apply(a,b)});a.emit("load")}function xe(a,b,c,d){this.renderer=a;this.assetController=b;this.runnerContext=c;this._movieOptions=this._cleanOptions(d);this.baseUrl=Ph.parse(d.baseUrl);this._pendingMessages=[];c.on("message",this,this.handleEvent);b.on("assetLoadSuccess",this,function(a){this.post("assetLoadSuccess",a)});b.on("assetLoadError",this,function(a){this.post("assetLoadError",
a)});this.renderer.on("userevent",this,function(a,b,c,d){this.post("userevent",{event:a,targetId:b,relatedTargetId:c,objectsUnderPointerIds:d})});this.renderer.on("canRender",ye(this,this.postAsync,"canRender"));c.init(d)}function ab(a,b,c){c?a[b]=c:a[b]&&(a[b]="")}function v(a,b){if(!a)throw TypeError("Invalid tag name: "+a);var c=(ze[a]||(ze[a]=document.createElementNS("http://www.w3.org/2000/svg",a))).cloneNode(!1);(b||0===b)&&c.setAttribute("data-bs-id",b);return c}function ed(a,b,c){var d=this.root=
this[0]=v("svg",0),e=this.rootContainer=document.createElement("div");e.style.paddingLeft="0";e.style.paddingTop="0";b&&d.setAttribute("width",b);c&&d.setAttribute("height",c);Ba.cssClasses.add(d,"nonSelectable");this.viewBox(b,c);this.defs=this.root.appendChild(v("defs"));e.appendChild(d);a.appendChild(e)}function fd(a,b,c,d){d=d||{};this.width=b;this.height=c;this.allowEventDefaults=!!d.allowEventDefaults;this.objectsUnderPointer=!!d.objectsUnderPointer;var e=this.svg=new ed(a,b,c);this.definitions=
Object.create(null);Ae.forEach(function(a){e.root.addEventListener(a,this,!1)},this);document.addEventListener("touchmove",Boolean,!1);document.addEventListener("keyup",this,!1);document.addEventListener("keydown",this,!1);document.addEventListener("keypress",this,!1);this._isLoggingFps=!1;this._fpsInterval=null;this._setupFPSLog(d.fpsLog);d.disableContextMenu&&this.config({item:"disableContextMenu",value:!0})}function Be(a,b,c){a&&(this._loader=a);this._request=null;Ce.call(this);c&&this.bindAssetCallback(c)}
function Qh(a){this._source=a;this._owner.request(a)}function gd(a,b,c){De.call(this,a,b,c);this.type="Bitmap";Object.defineProperties(this._attributes,{height:Ca(null,!0,!0),width:Ca(null,!0,!0),_naturalWidth:Ca(0,!0,!0),_naturalHeight:Ca(0,!0,!0),source:Rh(Sh,Qh,!0),_source:Ca("",!0,!0),_absoluteUrl:Ca("",!0,!0)});a=this._renderAttributes;a.height="height";a.width="width";a.naturalHeight="_naturalHeight";a.naturalWidth="_naturalWidth";a.absoluteUrl="_absoluteUrl";this.attr("source",b)}function Ee(a,
b,c){Object.defineProperty(this,"id",{value:"font_"+Th++});this._loader=a;this.fontId=b;this.resources=c;this._load()}function Uh(){return this._time}function Vh(a){a=+a;"number"===typeof a&&!isNaN(a)&&isFinite(a)&&(this._time=a)}function Wh(){return this._volume}function Xh(a){null!=a&&(this._volume=Math.min(Math.max(+a,0),1))}function Fe(a,b,c){Ge.call(this,a,b,c);Object.defineProperties(this._attributes,{playing:rc(!1,!0,!0),prepareUserEvent:rc(!1,!0,!0),volume:He(Wh,Xh,!0),_volume:rc(1,!0,!0),
time:He(Uh,Vh,!0),_time:rc(0,!0,!0)});a=this._renderAttributes;a.playing="playing";a.volume="_volume";a.time="_time";a.prepareUserEvent="prepareUserEvent"}function hd(a,b,c){Ie.call(this,a,b,c);this.type="Audio";this.request(b)}function Je(a,b,c,d,e){4===arguments.length&&"function"===typeof d&&(e=d,d=null);Ke.call(this,null,c,e);b||(b=new Yh);b.owner=this;this.displayList=b;this.root=a;var f=this;c&&a.loadSubMovie(c,d,function(a){a?f.emitAsync("error",a,f):f.emitAsync("load",f)},this)}function Zh(){return this._fillColor}
function $h(a){this._fillColor=Le(a,this._fillColor)}function ai(){return this._fillGradient}function bi(a){this._fillGradient=a?Da(a):null}function ci(){return this._fillImage}function di(a){var b=this._owner;b._mutatedAttributes.fillImageId=!0;a?(b.stage&&bb.registerOffStageObj(b,a,b.stage,"fillImage"),this._fillImageId=a.id,this._fillImage=a):(this._fillImage&&bb.unregisterOffStageObj(b,this._fillImage),this._fillImageId=this._fillImage=null)}function ei(){return this._fillRepeat}function fi(a){var b=
ra.isArray(a);a||(a=1);if(b&&!isNaN(a[0])&&!isNaN(a[1])||!isNaN(a))this._fillRepeat=b?a:[a,a];else throw Error("repeat argument must be a number or an array [n, n].");}function gi(a){this._strokeColor=Le(a,this._strokeColor)}function hi(a){this._strokeDash=ra.isArray(a)?a:null}function ii(){return this._strokeGradient}function ji(a){this._strokeGradient=a?Da(a):null}function ki(a){if("butt"===a||"round"===a||"square"===a)this._cap=""+a}function li(a){if("miter"===a||"round"===a||"bevel"===a)this._join=
""+a}function mi(a){1<=a&&(this._miterLimit=+a)}function ni(){return this._owner._segments}function oi(a){this._owner._segments=a;this._owner.markUpdate("shapeData")}function sc(a){bb.call(this);Object.defineProperties(this._attributes,{_cap:D("butt",!0),cap:O(pi,ki,!0),_fillColor:D(0,!0),fillColor:O(Zh,$h,!0),_fillGradient:D(void 0,!0),fillGradient:O(ai,bi,!0),_fillImage:D(null,!0),_fillImageId:D(null,!0),fillImage:O(ci,di,!0),_fillRepeat:D([1,1],!0),fillRepeat:O(ei,fi,!0),fillOpacity:D(1,!0,!0),
strokeOpacity:D(1,!0,!0),_join:D("miter",!0),join:O(qi,li,!0),_strokeColor:D(255,!0),strokeColor:O(ri,gi,!0),_strokeGradient:D(void 0,!0),strokeGradient:O(ii,ji,!0),_strokeDash:D(null,!0),strokeDash:O(si,hi,!0),strokeDashOffset:D(0,!0,!0),strokeWidth:D(0,!0,!0),_miterLimit:D(4,!0),miterLimit:O(ti,mi,!0),segments:O(ni,oi,!0)});var b=this._renderAttributes;b.cap="_cap";b.fillColor="_fillColor";b.strokeColor="_strokeColor";b.strokeGradient="_strokeGradient";b.fillGradient="_fillGradient";b.fillImageId=
"_fillImageId";b.fillRepeat="_fillRepeat";b.fillOpacity="fillOpacity";b.strokeOpacity="strokeOpacity";b.join="_join";b.strokeWidth="strokeWidth";b.miterLimit="_miterLimit";b.strokeDash="_strokeDash";b.strokeDashOffset="strokeDashOffset";this.morphableAttributes={x:1,y:1,segments:1,fillColor:1,strokeColor:1,strokeWidth:1,fillOpacity:1,strokeOpacity:1,strokeDash:1,strokeDashOffset:1,opacity:1,fillGradient:1,scale:1,scaleX:1,scaleY:1,rotation:1,filters:1};this._segments=[];this._curve=new Ea;this._mutatedAttributes=
ra.mixin({},this._renderAttributes);if(a){b=cb(a)?cb(a[0])?a[0][0]:a[0]:a;if(-1!=ui.indexOf(b))return this.segments.apply(this,arguments);if("number"==typeof b)return this.points.apply(this,arguments);if("string"==typeof a)return this.path(a);throw TypeError('Expected array of segments or points, or SVG path string. Got "'+a+" instead.");}}function vi(a,b){var c=b;return wi.descriptorAccessor(function(){return c},function(a){c=a;this._owner._isProcessingPathAttribute||(this._owner._isProcessingPathAttribute=
!0,this._owner.clear(),this._owner._make(),this._owner._isProcessingPathAttribute=!1)},!0)}function Me(a){id.call(this);this._isProcessingPathAttribute=!1;for(var b in a)Object.defineProperty(this._attributes,b,vi(b,a[b]))}function jd(a,b,c,d,e,f){Ne.call(this,{radius:0,startAngle:0,endAngle:0,antiClockwise:!1});this.attr({x:a,y:b,radius:c,startAngle:d,endAngle:e,antiClockwise:f})}function kd(a,b,c){Oe.call(this,{radius:0});this.attr({x:a,y:b,radius:c})}function ld(a,b,c,d){Pe.call(this,{radiusX:0,
radiusY:0});this.attr({x:a,y:b,radiusX:c,radiusY:d})}function md(a,b,c,d){Qe.call(this,{radius:0,sides:3});this.attr({x:a,y:b,sides:d,radius:c})}function nd(a,b,c,d,e){Re.call(this,{height:0,width:0,cornerRadius:0});this.attr({x:a,y:b,width:c,height:d,cornerRadius:e,origin:{x:c/2,y:d/2}})}function od(a,b,c,d,e){Se.call(this,{radius:0,rays:0,factor:0});this.attr({x:a,y:b,radius:c,rays:d,factor:e})}function Te(a,b,c){Ue.call(this);this._loader=a;this._callback=c;this.sources=b;this.currentBitmapIndex=
0;c&&xi.prototype.bindAssetCallback.call(this,c);Object.defineProperties(this._attributes,{height:Ve(0,!0,!0),width:Ve(0,!0,!0)});this._load()}function pd(a,b,c){We.call(this,a,b,c);this.type="Video";Object.defineProperties(this._attributes,{height:Xe(0,!0,!0),width:Xe(0,!0,!0)});a=this._renderAttributes;a.height="height";a.width="width";this.request(b)}function fa(a,b){function c(){b.length=d;b.push.apply(b,arguments);return a.apply(this,b)}var d=b.length,b=b.slice();c.prototype=a.prototype;return c}
function Ye(a){var b=[];if(a)for(var a=a.children,c,d=0;c=a[d];++d)b.push(c.id),(c=c.displayList)&&b.push.apply(b,Ye(c));return b}function Ze(a,b){var c=this.registry=new yi;b||(b=new zi);b.owner=this;this.displayList=b;c=this.assetLoader=(new $e(c.pendingAssets)).on("request",tc(this,this.loadAsset,null)).on("destroy",tc(this,this.destroyAsset));this.env=new af(this,c);this.stage=this.root=this;this._canRender=!0;Object.defineProperties(this,{id:{value:0}});this._queuedFramesById={};this._queuedFrames=
[];this.messageChannel=a;a.on("message",this,this.handleEvent)}function Ai(a,b,c){var d=new XMLHttpRequest;d.open("GET",a);d.onload=function(){200<=d.status&&300>d.status||304==d.status?b(this.responseText):c(d.status+" ("+d.statusText+")")};d.onerror=c;d.send(null)}var db={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;a<c;++a)this.waitingCallbacks[a](null);this.queue.length&&this.load.apply(this,this.queue.shift())}}}};db.module$exports&&(db=db.module$exports);var eb={},bf={aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,
black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,
darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,
hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,
lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,
orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,
slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,transparent:0,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};Object.defineProperty(bf,"random",{get:function(){return 16777215*Math.random()<<8|255}});eb.module$exports=bf;eb.module$exports&&(eb=eb.module$exports);var fb={};wa.prototype=Error();wa.prototype.constructor=
wa;fb.module$exports={ParserError:wa};fb.module$exports&&(fb=fb.module$exports);var T={},Bi=Math.sqrt,I=ca.prototype;I.add=function(a){this.x+=a.x;this.y+=a.y;return this};I.equals=function(a){return this.x==a.x&&this.y==a.y};I.clone=function(){return new ca(this.x,this.y)};I.normalize=function(a){a/=this.length;this.x*=a;this.y*=a;return this};I.offset=function(a,b){this.x+=a;this.y+=b;return this};I.subtract=function(a){this.x-=a.x;this.y-=a.y;return this};I.divide=function(a){this.x/=a;this.y/=
a;return this};I.multiply=function(a){this.x*=a;this.y*=a;return this};I.toString=function(){return this.x+","+this.y+" "};I.toObject=function(){return Object.create(null,{x:{value:this.x},y:{value:this.y}})};I.toArray=function(){return[this.x,this.y]};I.distance=function(a){var b=this.x-a.x,a=this.y-a.y;return Bi(b*b+a*a)};I.angle=function(a){return Math.atan2(this.y-a.y,this.x-a.x)};ca.interpolate=function(a,b,c){return new ca(a.x+c*(a.x-b.x),a.y+c*(a.y-b.y))};ca.polar=function(a,b){return new ca(a*
Math.cos(b),a*Math.sin(b))};ca.lerp=function(a,b,c){return a.clone().multiply(1-c).add(b.clone().multiply(c))};T.module$exports=ca;T.module$exports&&(T=T.module$exports);var gb={},qd={click:"click",dblclick:"dblclick",keypress:"key",keyup:"keyup",keydown:"keydown",mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove",mouseover:"mouseover",mouseout:"mouseout",touchcancel:"pointerup",touchstart:"pointerdown",touchmove:"pointermove",touchend:"pointerup"},fc=1,gc=2,hc=4,ic=8;Q.fromDomKeyboardEvent=
function(a){return new Q(qd[a.type],a.keyCode,a.charCode,(a.altKey?fc:0)|(a.ctrlKey?gc:0)|(a.metaKey?hc:0)|(a.shiftKey?ic:0),a.target.value)};Q.NO_MODIFIER=0;Q.ALT_KEY=fc;Q.CTRL_KEY=gc;Q.META_KEY=hc;Q.SHIFT_KEY=ic;Q.prototype.clone=function(a){return new Q(a||this.type,this.keyCode,this.charCode,(this.altKey?fc:0)|(this.ctrlKey?gc:0)|(this.metaKey?hc:0)|(this.shiftKey?ic:0),this.inputValue)};ma.fromDomMouseEvent=function(a,b,c){var d=a.clientX,e=a.clientY,b=new ma(qd[a.type],d-b,e-c,d,e),a=a.button;
b.isLeft=0===a;b.isMiddle=1===a;b.isRight=2===a;return b};ma.fromDomTouch=function(a,b,c,d){var e=a.clientX,f=a.clientY,b=new ma(qd[b.type],e-c,f-d,e,f);b.touchId=a.identifier;return b};ma.prototype.clone=function(a){a=new ma(a||this.type,this.x,this.y,this.clientX,this.clientY);a.deltaX=this.deltaX;a.deltaY=this.deltaY;a.diffX=this.diffX;a.diffY=this.diffY;a.isLeft=this.isLeft;a.isRight=this.isRight;a.isMiddle=this.isMiddle;a.isLeft=this.isLeft;a.touchId=this.touchId;return a};gb.module$exports=
{KeyboardEvent:Q,PointerEvent:ma};gb.module$exports&&(gb=gb.module$exports);var hb={},ib,U;hb.module$exports=function(a,b,c){if(void 0===ib){var d=a;U=d.createSVGRect();U.width=U.height=1;U.x=U.y=0;try{ib=!!d.getIntersectionList(U,null)}catch(e){ib=!1}ib||(U=null)}if(!ib)return null;U.x=b;U.y=c;a=a.getIntersectionList(U,null);b=a.length;if(!b)return null;c=Array(b);for(d=0;d<b;d+=1)c[d]=a[b-1-d];return c};hb.module$exports&&(hb=hb.module$exports);var jb={},Ci={}.hasOwnProperty,rd={filterToSignature:function(a){return a.type+
"("+a.value+")"},gradientToSignature:function(a){switch(a.type){case "linear-gradient":return"linear-gradient"+[a.direction,a.stops,rd.matrixToString(a.matrix),a.spreadMethod].join(":");case "radial-gradient":return"radial-gradient"+[a.cx,a.cy,a.radius,a.stops,rd.matrixToString(a.matrix),a.spreadMethod].join(":")}},valueFromSignatureForType:function(a,b){var c=RegExp(b+"\\((.+)\\)").exec(a);return c&&c[1]},matrixToString:function(a){return a?"matrix("+[a.a,a.b,a.c,a.d,a.tx,a.ty].join()+")":""},cssClasses:function(){if("undefined"!=
typeof document){var a={nonSelectable:"-webkit-touch-callout: none;-webkit-user-select: none;-khtml-user-select: none;-moz-user-select: none;-moz-user-select: -moz-none;-ms-user-select: none;-o-user-select: none;user-select: none;",selectable:"-webkit-touch-callout: default;-webkit-user-select: text;-khtml-user-select: text;-moz-user-select: text;-ms-user-select: text;-o-user-select: text;user-select: text;"},b={},c=0,d=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")),
e=[],f;for(f in a)b[f]="bs-"+ +new Date+"-"+ ++c,Ci.call(a,f)&&e.push("."+b[f]+"{"+a[f]+"}\n");d.appendChild(document.createTextNode(e.join("")));return{add:function(a,c){a.setAttribute("class",(a.getAttribute("class")||"")+" "+b[c])},remove:function(a,c){a.setAttribute("class",(a.getAttribute("class")||"").replace(b[c],""))}}}}()};jb.module$exports=rd;jb.module$exports&&(jb=jb.module$exports);var Fa={},uc={linear:function(a){return a},quadIn:function(a){return Math.pow(a,2)},quadOut:function(a){return-1*
a*(a-2)},quadInOut:function(a){a*=2;return 1>a?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-uc.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?uc.bounceIn(2*a)/2:uc.bounceOut(2*a-1)/2+0.5}};Fa.module$exports=uc;Fa.module$exports&&(Fa=Fa.module$exports);var kb={};Od.prototype.at=function(a){for(var b=this.numericStartValues,c=this.numericEndValues,d=[],e=0,f=this.length;e<f;++e){var g=b[e];d[e]=g+(c[e]-g)*a}return this.translator?this.translator.toAttr.call(this.translationData,
d):d[0]};kb.module$exports=Od;kb.module$exports&&(kb=kb.module$exports);var vc={module$exports:{cornerRadius:{toNumeric:function(a){a=a||0;return[a[0]||a,a[1]||a,a[2]||a,a[3]||a]},toAttr:function(a){return a}}}};vc.module$exports&&(vc=vc.module$exports);var wc={module$exports:{strokeDash:{toNumeric:function(a){var b=[],c=0,d=a.length;for(c;c<d;++c)isNaN(a[c])||b.push(a[c]);return b},toAttr:function(a){var b=0,c=a.length;for(b;b<c;++b)isNaN(a[b])&&(a[b]=0);return a}}}};wc.module$exports&&(wc=wc.module$exports);
var lb={},cf={BaseFilter:function(a,b,c){this.type=a;this.value="undefined"==typeof b?c:b},createFactory:function(a,b){cf[a]=function(){var a=Object.create(b.prototype),d=b.apply(a,arguments);return"object"===typeof d?d:a}}};lb.module$exports=cf;lb.module$exports&&(lb=lb.module$exports);var xc={module$exports:function(){return{displayObjects:Object.create(null),loadingDisplayObjects:Object.create(null),movies:new vg,needsDraw:Object.create(null),needsInsertion:Object.create(null),pendingAssets:Object.create(null)}}};
xc.module$exports&&(xc=xc.module$exports);var mb={},xg={mouseover:!0,mouseout:!0,mousewheel:!0,pointerup:!0,pointerdown:!0,pointermove:!0,click:!0,doubleclick:!0,drag:!0,"multi:drag":!0,"multi:pointerdown":!0,"multi:pointermove":!0,"multi:pointerup":!0};mb.module$exports=function(a){a.emitOn=wg;a.stop=yg;return a};mb.module$exports&&(mb=mb.module$exports);var Ga={},Va=fb,R={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"]}},df={},L;for(L in R)R.hasOwnProperty(L)&&R[L].shorthands.forEach(function(a){df[a]=L});var ef={};for(L in R)R.hasOwnProperty(L)&&(ef[L]=R[L].shorthands[0]);var yc=[];for(L in R)R.hasOwnProperty(L)&&(yc.push(L),yc=yc.concat(R[L].shorthands));Ga.module$exports={validTokens:yc,parsePath:function(a){var b=[];a.replace(/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,function(a,d,e){b.push(df[d]);e.replace(/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,function(a,c){c&&b.push(c)})});
return Pd(b)},exportToPath:function(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++){c=a[f];for(var h=0,i=c.length;h<i;h++)d=c[h],e.push("string"==typeof d?ef[d]:d)}e=e.join(" ");return b&&"M"!==e.slice(0,1)?"M 0 0 "+e:e},parseCommandList:Pd};Ga.module$exports&&(Ga=Ga.module$exports);var n={},ff={}.hasOwnProperty,Di=[].indexOf,gf=function(){},Ei=[].push,Fi=[].slice,Gi={}.toString,sd=Math.PI,nb={baseUri:function(a){var b=a.baseURI;if(void 0!==b)return b.replace(/[/]+[^/]*$/,"/");a=a.createElement("a");
a.href=".";return a.href},beget:function(a){gf.prototype=a;return new gf},descriptorAccessor:function(a,b,c,d){return{get:a,set:b,enumerable:!!c,configurable:!!d}},descriptorData:function(a,b,c,d){return{value:a,writable:!!b,enumerable:!!c,configurable:!!d}},forEach:function(a,b,c){var d=a.length;c&&(b=nb.hitch(c,b));for(c=0;c<d&&!1!==b(a[c],c,a);c+=1);return a},forOwn:function(a,b,c){c&&(b=nb.hitch(c,b));for(var d in a)if(ff.call(a,d)&&!1===b(a[d],d,a))break;return a},getter:function(a){return function(){return this[a]}},
hitch:function(a,b,c){if(2<arguments.length)var c=Fi.call(arguments,2),d=c.length;"string"==typeof b&&(b=a[b]);return c?function(){c.length=d;Ei.apply(c,arguments);return b.apply(a,c)}:function(){return b.apply(a,arguments)}},indexOf:function(a,b,c){return Di.call(a,b,c)},isArray:Array.isArray||function(a){return"[object Array]"==Gi.call(a)},keys:Object.keys||function(a){if(a!==Object(a))throw TypeError();var b=[],c;for(c in a)ff.call(a,c)&&b.push(c);return b},map:function(a,b,c){var d=a.length,e=
Array(d);c&&(b=nb.hitch(c,b));for(c=0;c<d;c+=1)e[c]=b(a[c],c,a);return e},mixin:function(a,b){var c,d,e=arguments.length;for(c=1;c<e;c+=1)for(d in b=arguments[c]||{},b)a[d]=b[d];return a},offset:function(a){var b=0,c=0;do b+=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent);return{left:b,top:c}},reduce:function(a,b,c){var d=3>arguments.length,e=a.length;d&&(c=a[0]);for(d=d?1:0;d<e;d+=1)c=b(c,a[d],d,a);return c},removeValueFromArray:function(a,b){for(var c,d=0,e=0,f=a.length;e<f;e+=1)c=a[e],c===
b?d+=1:d&&(a[e-d]=c);a.length-=d;return a},extractUnit:function(a){return(""+a).replace(/\s+$/,"").match(/[a-z%]*$/i)[0]},parseAngle:function(a){var b,c=nb.extractUnit(a),a=parseFloat(a);switch(c){case "":case "rad":b=a;break;case "deg":b=a*sd/180;break;case "grad":b=a*sd/200;break;case "turn":b=2*a*sd}return b}};n.module$exports=nb;n.module$exports&&(n=n.module$exports);var B={},hf=eb,W=Math.max,X=Math.min,Hi=Math.random,oa=Math.round;da.RGBAColor=jc;var s=jc.prototype;s.red=s.r=na("r");s.green=
s.g=na("g");s.blue=s.b=na("b");s.alpha=s.a=na("a");s.hue=s.h=na("h");s.saturation=s.s=na("s");s.lightness=s.l=na("l");s.set=function(a,b){var c,d=this._properties;if(null==b){if(a)for(c in a)this.set(c,a[c]);return this}b=+b;a=a.charAt(0);switch(a){case "r":case "g":case "b":case "a":d[a]=b;break;case "h":case "s":case "l":d[a]=W(0,X(1,b));c=Qd(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};s.get=function(a){var b=this._properties;
switch(a){case "r":case "g":case "b":return oa(b[a]);case "a":return b[a];case "h":case "s":case "l":return b[a];default:throw Error("No support for getting: "+a);}};s.lighter=function(a){var b=this.clone();b.set("l",b.get("l")+(null==a?0.01:a));return b};s.darker=function(a){var b=this.clone();b.set("l",b.get("l")-(null==a?0.01:a));return b};s.midpoint=function(a){a=da(a);return new jc((this.r()+a.r())/2,(this.g()+a.g())/2,(this.b()+a.b())/2,(this.a()+a.a())/2)};s.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",X(255,W(0,d*b[0]+e*b[1]+f*b[2]+c*b[3]+255*b[4])));this.set("g",X(255,W(0,d*b[5]+e*b[6]+f*b[7]+c*b[8]+255*b[9])));this.set("b",X(255,W(0,d*b[10]+e*b[11]+f*b[12]+c*b[13]+255*b[14])));this.set("a",X(1,W(0,d*b[15]+e*b[16]+f*b[17]+c*b[18]+b[19])));return this};s._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?W(0,X(255,b*c+(d-c/2))):255*b);break;default:this.set(a,
c?W(0,X(1,b*c+d-c/2)):b)}return this};s.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],Hi(),b);return c};s.clone=function(a){return a?da(+this).set(a):da(+this)};s.rgba=function(){return"rgba("+[this.r(),this.g(),this.b(),this.a()].join()+")"};s.rgb=function(){return"rgb("+[this.r(),this.g(),this.b()].join()+")"};s.hsla=function(){return"hsla("+[oa(360*this.h()),oa(100*this.s())+"%",oa(100*this.l())+"%",this.a()].join()+
")"};s.int32=function(){return((this.r()&255)<<24|(this.g()&255)<<16|(this.b()&255)<<8|255*this.a()&255)>>>0};s.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)};da.parse=function(a,b){var c,a=""+a;a in hf&&(a=hf[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*X(1,W(0,d[3]))&255))>>>0;break;case "hsl":c=255;case "hsla":if(4==e||3==e&&c)return a=Qd(d[0]%360/360,parseInt(d[1])/100,parseInt(d[2])/100),a|(c||255*d[3]&255)}return null==b?null:da.parse(b)};B.module$exports=da;B.module$exports&&
(B=B.module$exports);var z={},Ii=n,td="".split,ud={addListener:function(a,b,c){2===arguments.length&&(c=b,b=null);var d=c instanceof Rc,e=typeof c;if("function"!=e&&"string"!=e&&!d)throw TypeError("Expected function or string, instead got "+e+".");d||(c=new Rc(b,c));for(var d=this._events||(this._events={}),e=-1,f=td.call(a," "),g=f.length;++e<g;)a=":"+f[e],(d[a]||(d[a]=[])).push(c);return this},emitAsync:function(a){var b=this,c=arguments;setTimeout(function(){b.emit.apply(b,c)},1)},emit:function(a){var b=
this._events,c=b&&b[":"+a],d=c&&c.length;if(!c||!d)return this;for(var e=arguments.length,f=Array(e-1),b=1;b<e;b+=1)f[b-1]=arguments[b];e=Array(d);for(b=0;b<d;b+=1)e[b]=c[b];for(var g,b=0;e[b];b+=1)d=e[b],c=d.context,g=d.listener,"string"===typeof g&&(g=c[g]),g.apply(c||this,f),g=d.times-=1,0>=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 Rc(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,j=td.call(a," "),o=j.length;++i<o;){d=!1;g=h[":"+j[i]]||[];for(f=0;e=g[f];f+=1)d?g[f-1]=e:d=e.listener===c&&e.context===b;d&&(g.length-=1)}return this},removeAllListeners:function(a){for(var b=this._events||{},c=!0,d=-1,a=a&&td.call(a," ")||(c=!1,Ii.keys(b)),e=a.length;++d<e;)(b[c?":"+a[d]:a[d]]||[]).length=0;return this}};ud.on=ud.addListener;z.module$exports=ud;z.module$exports&&
(z=z.module$exports);var ob={},Ji=z,Ki=n,Li=Rd.prototype={handleEvent:function(a,b,c){var d=this.pendingAssets,e;b in d&&(e=d[b],e.notify(a,c),delete d[b])},request:function(a,b,c){this.pendingAssets[a.id]=a;this.emit("request",a.id,b,c)},destroyAsset:function(a){this.emit("destroy",a.id)}};Ki.mixin(Li,Ji);ob.module$exports=Rd;ob.module$exports&&(ob=ob.module$exports);var Ha={};Sd.prototype=n.mixin({destroy:function(){this.removeAllListeners();this.disconnect();this.disconnect=this.notifyRenderer=
null},notify:function(a){this.emit("message",a)}},z);Ha.module$exports=Sd;Ha.module$exports&&(Ha=Ha.module$exports);var pb={},vd=n;Td.prototype=vd.mixin({MessageChannel:Ha,destroy:function(){this.notifyRunner({command:"freeze"});this.messageChannel.destroy();delete this.messageChannel;this.removeAllListeners();var a=this.frame;a.contentDocument.documentElement.innerHTML="";a.parentNode.removeChild(a);delete this.frame},init:function(a){var b=this.doc||document,c=this.frame=b.createElement("iframe");
(b.body||b.documentElement).appendChild(c);c.style.display="none";b=this.frameWindow=c.contentWindow;c=this.frameDocument=c.contentDocument;c.open();this.messageChannel=b.messageChannel=new this.MessageChannel(vd.hitch(this,this.notify),function(){});b.options=a;b.isBonsaiMovie=!0;var d=this;this.messageChannel.on("message",function(a){"scriptLoaded"===a.command&&d.emit("scriptLoaded",a.url)});-1<this.runnerUrl.indexOf("function __bonsaiRunnerCode__")?(a=this.runnerUrl.substring(this.runnerUrl.indexOf("{")+
1,this.runnerUrl.lastIndexOf("}")),c.write("<script>"+a+"<\/script>")):c.write('<script src="'+this.runnerUrl+'"><\/script>');c.close();this.doc=this.init=null;return this},notify:function(a){this.emit("message",a)},notifyRunner:function(a){this.messageChannel.notify(a)},notifyRunnerAsync:function(a){setTimeout(vd.hitch(this,this.notifyRunner,a),1)},run:function(a){this.notifyRunner({command:"runScript",code:a})},load:function(a){this.notifyRunner({command:"loadScript",url:a})}},z);pb.module$exports=
Td;pb.module$exports&&(pb=pb.module$exports);var qb={},jf=gb,Mi=hb,Ni=Math.max,Ud=1,lc=null,Oi=jf.KeyboardEvent,kf=jf.PointerEvent;qb.module$exports={handleEvent:function(a){var b=a.target,c=a.type;null===lc&&(lc="createTouch"in b.ownerDocument);var d=Sc(b),d=kc(d),e="click"===c||"dblclick"===c||"mousedown"===c||"mousemove"===c||"mouseout"===c||"mouseover"===c||"mouseup"===c||"mousewheel"===c,f;0>d&&(d=0);if(e||"touchstart"===c||"touchend"===c||"touchmove"===c||"touchcancel"===c){var g=this.getOffset();
f=g.left;var g=g.top,h;if(e)h=kf.fromDomMouseEvent(a,f,g),a=Sc(a.relatedTarget||a.fromElement),this.handleMouseEvent(h,d,a&&kc(a));else{lc=!0;var i,e=a.changedTouches,j=e.length;"touchstart"===c?this._isMultiTouch=this._isMultiTouch||1<j||1<a.touches.length:"touchmove"===c?(this._hadTouchMove=!0,this.allowEventDefaults||a.preventDefault()):"touchcancel"===c&&(this._hadTouchCancel=!0);for(var o=0;o<j;o+=1)i=e[o],h=kf.fromDomTouch(i,a,f,g),i=i.target===b?d:Ni(0,kc(Sc(i.target))),this.handleTouchEvent(h,
i);"touchend"===c&&0===a.touches.length&&(!this._isMultiTouch&&!this._hadTouchMove&&!this._hadTouchCancel&&(b=a.timeStamp,this._lastClickFromTouch=(c=300>b-(this._lastClickFromTouch||0))?0:b,Tc(this,h.clone(c?"dblclick":"click"),i),a.preventDefault()),this._isMultiTouch=this._hadTouchCancel=!1)}}else("keydown"===c||"keypress"===c||"keyup"===c)&&this.emit("userevent",Oi.fromDomKeyboardEvent(a),d)},handleMouseEvent:function(a,b,c){var d=a.type,e=a.x,f=a.y;if(d){var g;this.objectsUnderPointer&&(g=this.getElementIdsUnderPointer(e,
f));if("pointerdown"===d)this._mouseDragId=b,this._mouseDragStartX=e,this._mouseDragStartY=f;else if("pointermove"===d){if(a.deltaX=e-this._mouseMoveLastX,a.deltaY=f-this._mouseMoveLastY,d=this._mouseDragId,d===+d){var h=a.clone("drag");h.diffX=e-this._mouseDragStartX;h.diffY=f-this._mouseDragStartY;Tc(this,h,d,null,g)}}else"pointerup"===d&&(this._mouseDragId=this._mouseDragStartX=this._mouseDragStartY=void 0);this._mouseMoveLastX=e;this._mouseMoveLastY=f;Tc(this,a,b,c,g)}},handleTouchEvent:function(a,
b){var c=a.type,d=a.touchId;if(c){var e=a.x,f=a.y,g;this.objectsUnderPointer&&(g=this.getElementIdsUnderPointer(e,f));var h=this._isMultiTouch,i=this._touchStates||(this._touchStates={});"pointerup"===c?delete i[d]:(d=i[d]||(i[d]={}),"pointerdown"===c?(d.dragStartX=e,d.dragStartY=f,d.dragId=b):"pointermove"===c&&(a.diffX=e-d.dragStartX,a.diffY=f-d.dragStartY,a.deltaX=e-d.lastX,a.deltaY=f-d.lastY,Vd(this,a.clone("drag"),b,h,g)),d.lastX=e,d.lastY=f);Vd(this,a,b,h,g)}},getElementIdsUnderPointer:function(a,
b){var c=Mi(this.svg.root,a,b);if(!c)return null;for(var d=[],e=!1,f=0,g;g=c[f];f+=1)g=kc(g),0<g&&1!==d.indexOf(g)&&(e=!0,d.push(g));return e?d:null}};qb.module$exports&&(qb=qb.module$exports);var rb={},lf=B,Pi=[].unshift,Qi=[].push,Ri=[].concat,sb="undefined"!==typeof window,Si=sb&&"SVGFEDropShadowElement"in window,zg=sb&&"SVGFEMergeElement"in window,Ag=sb&&"SVGFEBlendElement"in window,Bg=sb&&"SVGFECompositeElement"in window,zc={blur:function(a){return t("feGaussianBlur",{stdDeviation:a})},brightness:function(a){var b=
t("feComponentTransfer");["R","G","B"].forEach(function(c){t("feFunc"+c,{type:"linear",slope:a},b)});return b},contrast:function(a){var b=-(0.5*a+0.5),c=t("feComponentTransfer");["R","G","B"].forEach(function(d){t("feFunc"+d,{type:"linear",slope:a,intercept:b},c)});return c},innerShadowByAngle:function(a){var b=a[0],c=a[1];return this.innerShadowByOffset([c*Math.cos(b),c*Math.sin(b),a[2],a[3]])},innerShadowByOffset:function(a){var b=a[0],c=a[1],d=a[2],e=lf(a[3]),a=[],b=t("feOffset",{dx:b,dy:c,result:"offset"});
a.push(b);d=t("feGaussianBlur",{stdDeviation:d,"in":"offset",result:"blur"});a.push(d);d=t("feComposite",{"in":"SourceGraphic",in2:"blur",operator:"out",result:"composite1"});a.push(d);e=t("feFlood",{"flood-color":e.rgb(),"flood-opacity":e.alpha(),"in":"composite1",result:"flood"});a.push(e);e=t("feComposite",{"in":"flood",in2:"composite1",operator:"in",result:"composite2"});a.push(e);e=t("feComposite",{"in":"composite2",in2:"SourceGraphic",operator:"over",result:"composite3"});a.push(e);return a},
dropShadowByAngle:function(a){var b=a[0],c=a[1];return this.dropShadowByOffset([c*Math.cos(b),c*Math.sin(b),a[2],a[3]])},dropShadowByOffset:function(a){var b=a[0],c=a[1],d=a[2],e=lf(a[3]),f=255===e.int32(),a=[];if(Si)return t("feDropShadow",{stdDeviation:d,dx:b,dy:c,"flood-color":e.rgb(),"flood-opacity":e.alpha()});d=t("feGaussianBlur",{stdDeviation:d,"in":"SourceAlpha",result:"blur"});a.push(d);f||(d=t("feFlood",{"flood-color":e.rgb(),"flood-opacity":e.alpha(),"in":"blur",result:"flood"}),a.push(d));
f=t("feComposite",{"in":f?"blur":"flood",in2:"blur",operator:"in",result:"composite1"});a.push(f);b=t("feOffset",{dx:b,dy:c,result:"offset"});a.push(b);b=t("feComposite",{"in":"SourceGraphic",in2:"offset",operator:"over",result:"composite2"});a.push(b);return a},grayscale:function(a){a=Math.min(1,Math.max(0,a));return zc.saturate(a)},hueRotate:function(a){a=Math.min(360,Math.max(0,a));return t("feColorMatrix",{type:"hueRotate",values:a})},invert:function(a){var a=Math.min(1,Math.max(0,a)),b=1-a,c=
t("feComponentTransfer");["R","G","B"].forEach(function(d){t("feFunc"+d,{type:"table",tableValues:a+" "+b},c)});return c},opacity:function(a){var a=Math.min(1,Math.max(0,a)),b=t("feComponentTransfer");t("feFuncA",{type:"table",tableValues:"0 "+a},b);return b},saturate:function(a){return t("feColorMatrix",{type:"saturate",values:1-a})},sepia:function(a){a=Math.min(1,Math.max(0,a));a=1-a;return t("feColorMatrix",{type:"matrix",values:[0.393+0.607*a,0.769-0.769*a,0.189-0.189*a,0,0,0.349-0.349*a,0.686+
0.314*a,0.168-0.168*a,0,0,0.272-0.272*a,0.534-0.534*a,0.131+0.869*a,0,0,0,0,0,1,0].join(" ")})},colorMatrix:function(a){return t("feColorMatrix",{type:"matrix",values:a.join(" ")})}};rb.module$exports={create:function(a,b){return zc[a](b)},containsFlattenFilter:Wd,filterElementsFromList:function(a){for(var a=a||[],b,c=[],d=0,e=a.length;d<e;d+=1)b=a[d],"function"===typeof zc[b.type]&&(b=Ri.call([],zc[b.type](b.value)),Wd(b)&&0<d?Pi.apply(c,b):Qi.apply(c,b));return c},isFEColorMatrixEnabled:sb&&"SVGFEColorMatrixElement"in
window};rb.module$exports&&(rb=rb.module$exports);var tb={},Yd=B;tb.module$exports={strokeColor:Xd("strokeColor"),fillColor:Xd("fillColor")};tb.module$exports&&(tb=tb.module$exports);var ub={},$d=B;ub.module$exports={fillGradient:Zd("fillGradient"),strokeGradient:Zd("strokeGradient")};ub.module$exports&&(ub=ub.module$exports);var Ac={module$exports:{segments:{toNumeric:function(a,b){var c=[];b||(this.segments=a);for(var d=0,e=a.length;d<e;++d)for(var f=a[d],g=0,h=f.length;g<h;++g)isNaN(f[g])||c.push(f[g]);
return c},toAttr:function(a){for(var b=this.segments,c=0,d=0,e=b.length;d<e;++d)for(var f=b[d],g=0,h=f.length;g<h;++g)isNaN(f[g])||(f[g]=a[c++]);return b}}}};Ac.module$exports&&(Ac=Ac.module$exports);var Ia={},k=lb,Ti=B;k.Blur=function(a){return new k.BaseFilter("blur",a,1)};k.createFactory("blur",k.Blur);k.Brightness=function(a){return new k.BaseFilter("brightness",a,2)};k.createFactory("brightness",k.Brightness);k.ColorMatrix=function(a){return new k.BaseFilter("colorMatrix",a,[1,0,0,0,0,0,1,0,
0,0,0,0,1,0,0,0,0,0,1,0])};k.createFactory("colorMatrix",k.ColorMatrix);k.Contrast=function(a){return new k.BaseFilter("contrast",a,2)};k.createFactory("contrast",k.Contrast);k.DropShadow=function(a,b,c,d){d=Ti.parse(d,0);return/deg$/.test(a)?(a=Math.PI/180*parseFloat(a),new k.BaseFilter("dropShadowByAngle",[a,b,c,d],[0,0,0,255])):new k.BaseFilter("dropShadowByOffset",[a,b,c,d],[0,0,0,255])};k.createFactory("dropShadow",k.DropShadow);k.Grayscale=function(a){return new k.BaseFilter("grayscale",a,1)};
k.createFactory("grayscale",k.Grayscale);k.HueRotate=function(a){return new k.BaseFilter("hueRotate",a,90)};k.createFactory("hueRotate",k.HueRotate);k.Invert=function(a){return new k.BaseFilter("invert",a,1)};k.createFactory("invert",k.Invert);k.Opacity=function(a){return new k.BaseFilter("opacity",a,0.5)};k.createFactory("opacity",k.Opacity);k.Saturate=function(a){return new k.BaseFilter("saturate",a,5)};k.createFactory("saturate",k.Saturate);k.Sepia=function(a){return new k.BaseFilter("sepia",a,
1)};k.createFactory("sepia",k.Sepia);Ia.module$exports=k;Ia.module$exports&&(Ia=Ia.module$exports);var vb={},wd=n,mf=B;vb.module$exports={filters:{toNumeric:function(a,b){var c=[];wd.isArray(a)||(a=[a]);b||(this.filters=a);for(var d=0,e=a.length;d<e;d++){var f=a[d];if(null!=f)if("number"==typeof f)c.push(f);else if(wd.isArray(f.value))for(var g=0,h=f.value.length;g<h;++g)if(("dropShadowByOffset"===f.type||"dropShadowByAngle"===f.type)&&3===g){var i=mf(f.value[g]);c.push(i.r(),i.g(),i.b(),i.a())}else c.push(f.value[g]);
else c.push(f.value)}return c},toAttr:function(a){for(var b=this.filters,c=0,d=0,e=b.length;d<e;d++){var f=b[d];if(null!=f)if(wd.isArray(f.value))for(var g=0,h=f.value.length;g<h;++g)if(("dropShadowByOffset"===f.type||"dropShadowByAngle"===f.type)&&3===g){var i=Number(new mf.RGBAColor(a[c++],a[c++],a[c++],a[c++]));f.value[g]=i}else f.value[g]=a[c++];else f.value=a[c++]}return b}}};vb.module$exports&&(vb=vb.module$exports);var ga={},nf=T,Cg=n,Ui=Math.cos,Vi=Math.sin;pa.prototype={clone:function(){return new pa(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.identity().rotate(c).scale(a,b).translate(d,e)},deltaTransformPoint:function(a){return new nf(this.a*a.x+this.c*a.y,this.b*a.x+this.d*a.y)},identity: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=Ui(a),a=Vi(a);return this.concat(new pa(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 nf(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}};pa.fromString=function(a){return new pa(a.match(/[^matrix(,)]+/g).map(Number))};ga.module$exports=pa;ga.module$exports&&(ga=ga.module$exports);var wb={},Wi=ga;wb.module$exports={matrix:{toNumeric:function(a){this.animatedMatrix=new Wi;return[a.a,a.b,a.c,a.d,a.tx,a.ty]},toAttr:function(a){var b=this.animatedMatrix;b.a=a[0];b.b=a[1];b.c=a[2];b.d=a[3];b.tx=a[4];b.ty=a[5];return this.animatedMatrix}}};wb.module$exports&&(wb=wb.module$exports);
var xb={},of=n,Xi=kb,Yi=tb,Zi=ub,$i=vb,aj=Ac,bj=wb,cj=vc,dj=wc,Y=of.mixin,ej=of.forEach,ha=Uc.propertyTranslators={};Y(ha,Yi);Y(ha,Zi);Y(ha,$i);Y(ha,aj);Y(ha,bj);Y(ha,cj);Y(ha,dj);Uc.prototype={at:function(a){for(var b=this._values,c=this.propertyTweens,d=this.propertyNames,e=0,f=this.propertyLength;e<f;++e)b[d[e]]=c[e].at(a);return b},_setupTweens:function(){var a=this.propertiesFrom,b=this.propertiesTo,c=this.propertyTweens;ej(this.propertyNames,function(d){c.push(new Xi(a[d],b[d],ha[d]))})}};xb.module$exports=
Uc;xb.module$exports&&(xb=xb.module$exports);var sa={},Dg=Fa,yb=n,fj=z,pf=xb,Bc={}.hasOwnProperty,Ja=yb.forEach;mc.prototype={clock:null,currentDelay:-1,currentTweenIndex:-1,delay:-1,duration:-1,easing:null,frame:-1,isPlaying:!1,isTimelineBound:!1,keys:null,keyframes:null,prevFrame:-1,repeat:-1,subjects:null,_parseEventProps:function(a){var b,c;for(b in a)"function"===typeof a[b]&&0===b.indexOf("on")&&(c=b.slice(2).toLowerCase(),this.on(c,a[b]),delete a[b])},clone:function(){return new mc(this.clock,
this.duration,yb.mixin({},this.keyframes),{clock:this.clock,duration:this.duration,easing:this.easing,isTimelineBound:this.isTimelineBound})},play:function(a){a&&this.addSubjects(a);if(!this.subjects.length)throw Error("No subjects defined -- animation cannot play");if(this.isPlaying)return this;0===this.frame&&this.emit("beforebegin",this);this.emit("play",this);var b=this.keyframes[0];b&&0===this.currentTweenIndex&&Ja(this.subjects,function(a){a.subject.attr(b)});this.isPlaying=!0;this.clock.on(this.isTimelineBound?
"advance":"tick",this,this._onStep);return this},pause:function(){this.clock.removeListener(this.isTimelineBound?"advance":"tick",this,this._onStep);this.emit("pause",this);this.isPlaying=!1;return this},reset:function(){this.frame=0;this.isPlaying=!1;this.currentTweenIndex=0;this.clock.removeListener(this.isTimelineBound?"advance":"tick",this,this._onStep);return this},_onStep:function(a,b,c){if(!(0<this.currentDelay&&this.currentDelay--)){this.prevFrame=this.prevFrame||b;var a=this.duration,d=this.frame=
this.isTimelineBound?this.frame+(b-this.prevFrame||1):this.frame+1;this.step(d/a);this.isTimelineBound&&c||d===a?(this.prevFrame=0,this.currentDelay=this.delay,this.reset(),0<this.repeat--?this.play():this.emit("end",this)):this.prevFrame=b}},step:function(a){var b=a;this.easing&&(a=this.easing(a));var c=this.subjects[0].tweens.length,d=this.subjects[0].tweens[this.currentTweenIndex],a=(a-d.startProgress)/(d.endProgress-d.startProgress);if(1<a&&this.currentTweenIndex+1<c)return this.currentTweenIndex+=
1,this.step(b);b=this.subjects;c=0;for(d=b.length;c<d;++c){var e=b[c].tweens[this.currentTweenIndex],f=e.easing;b[c].subject.attr(e.at(f?f(a):a))}},addSubject:function(a){var b=yb.mixin(a.attr(),this.keyframes[0]);this.subjects.length||this._fillInProperties(b);this.subjects.push({subject:a,tweens:this._createTweens(b)});return this},addSubjects:function(a){a=yb.isArray(a)?a:[a];Ja(a,this.addSubject,this);return this},removeSubject:function(a){for(var b=this.subjects,c=b.length-1;0<=c;c-=1)b[c].subject===
a&&b.splice(c,1)},removeSubjects:function(a){Ja(a,this.removeSubject,this);return this},_createTweens:function(a){var b,c=0,d=[],e=this.keyframes,f=a;Ja(this.keys,function(a){if(0!==a){var h,i=e[a].easing;h=new pf(f,e[a]);h.easing=Vc(i);b=a-c;h.startProgress=c/this.duration;h.endProgress=h.startProgress+b/this.duration;c+=b;f=e[a];d.push(h)}},this);return d},_fillInProperties:function(a){var b=this.easing,c=this.duration,d=this.keys,e=this.keyframes,f,g={};Ja(d,function(a){f=e[a];for(var b in f)Bc.call(f,
b)&&(g[b]=!0)});Ja(d,function(h,i){var j,o,m,l,u;f=e[h];for(var k in g)if(!Bc.call(f,k)&&"easing"!==k){a:{j=k;for(o=i;o--;)if(Bc.call(e[d[o]],j)){j=d[o];break a}j=null}a:{o=k;u=i;for(l=d.length;u<l;++u)if(Bc.call(e[d[u]],o)){o=d[u];break a}o=null}m=j&&e[j][k]||a[k];l=o&&e[o][k];if(null==m)throw Error("No initial value specified for property: "+k);null==l&&(l=m,o=c);u={};u[k]=m;m={};m[k]=l;j=(h-j)/(o-j);b&&(j=b(j));o.easing&&(j=Vc(o.easing)(j));f[k]=(new pf(u,m)).at(j)[k]}},this)},_convertKeysToFrames:function(a){for(var b,
c,d=0,e=this.clock,f=this.duration,g=Object.keys(a),h=Object.create(null),i=0,j=g.length;i<j;i++)b=g[i],c=b==+b?b:/^(?:from|start)$/.test(b)?0:/^(?:to|end)$/.test(b)?f:/^\d+%$/.test(b)?f*parseFloat(b)/100:e.toFrameNumber(b),h[c]=a[b],c>d&&(d=c);d>this.duration&&(this.duration=d);return h}};yb.mixin(mc.prototype,fj);sa.module$exports=mc;sa.module$exports&&(sa=sa.module$exports);var Ka={},gj=sa;Ka.module$exports=function(a,b,c,d){return new gj(a,b,{to:c},d)};Ka.module$exports&&(Ka=Ka.module$exports);
var V={},hj=z,xa=n,eh=ga,gh=T,qf=Ka,ij=sa,ce=Ia,H=xa.descriptorAccessor,C=xa.descriptorData,jj=xa.getter,dh=1,ae=Math.atan2,be=Math.sqrt,Gg=Math.PI,Wa=isFinite,fh=jj("_opacity");G.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?G.unregisterOffStageObj(a,b,!0):b._offStageUseCount--})),b._activate(c),e=b.displayList&&b.displayList.children))for(var f=0,g=e.length;f<g;++f){var h=e[f];h&&G.registerOffStageObj(a,h,c,d,!0)}};G.unregisterOffStageObj=function(a,b,c){if(!c){if(0<--b._offStageUseCount)return;delete b._offStageUseCount}if(c=b.stage)if(b.emit("removedFromStage"),c.registry.needsDraw[b.id]=b,delete c.registry.needsInsertion[b.id],delete c.registry.displayObjects[b.id],delete b.stage,
b.markUpdate("shapeData"),delete b._offStageType,b._isOffStage=!1,b=b.displayList&&b.displayList.children)for(var c=0,d=b.length;c<d;++c){var e=b[c];e&&G.unregisterOffStageObj(a,e,!0)}};var kj=G.prototype={parent:null,type:"DisplayObject",_activate:function(a){this.stage=a;this._mutatedAttributes=xa.mixin({},this._renderAttributes);var b=this._attributes,c=b._clip;c&&G.registerOffStageObj(this,c,a,"clip");(b=b._mask)&&G.registerOffStageObj(this,b,a,"mask");this.parent._isOffStage&&(this._offStageType=
this.parent._offStageType,this._isOffStage=!0);a=a.registry;a.displayObjects[this.id]=this;a.needsInsertion[this.id]=this;this.markUpdate();this.emit("addedToStage")},_deactivate:function(){var a=this.stage;if(a){var a=a.registry,b=this.id;this.stage=void 0;a.needsDraw[b]=this;delete a.displayObjects[b];delete a.needsInsertion[b]}this.emit("removedFromStage")},attr:function(a,b){var c,d;c=!1;var e=this._attributes;switch(arguments.length){case 0:c={};for(d in e)"_"!=d.charAt(0)&&(c[d]=e[d]);return c;
case 1:if("string"==typeof a)return a in e&&"_"!=a.charAt(0)?e[a]:void 0;for(d in a)b=a[d],d in e&&("_"!==d.charAt(0)&&(e[d]!==b||"object"===typeof e[d]))&&(e[d]=b,c=this._mutatedAttributes[d]=!0);break;case 2:a in e&&("_"!==a.charAt(0)&&(e[a]!==b||"object"===typeof e[a]))&&(e[a]=b,c=this._mutatedAttributes[a]=!0)}c&&this.markUpdate();return this},getAbsoluteMatrix:function(){for(var a=this.attr("matrix").clone(),b=this;(b=b.parent)&&0!==b.id;)a.concat(b.attr("matrix"));return a},getAbsoluteBoundingBox:function(){return this.getBoundingBox(this.getAbsoluteMatrix())},
getBoundingBox:function(a){var b=0,c=0;a&&(a=a.transformPoint({x:0,y:0}),b=a.x,c=a.y);return{top:c,right:b,bottom:c,left:b,width:0,height:0}},globalToLocal:function(a){return this.getAbsoluteMatrix().invert().transformPoint(a)},localToGlobal:function(a){return this.getAbsoluteMatrix().transformPoint(a)},destroy:function(){return this.emit("destroy",this).removeAllListeners().remove()},mask:function(){},blendMode:function(){},markUpdate:function(){var a=this.stage;a&&(a.registry.needsDraw[this.id]=
this);return this},addTo:function(a,b){1===arguments.length?a.addChild(this):a.addChild(this,b);return this},addAfter:function(a){var b=a.parent;b.addChild(this,b.getIndexOfChild(a)+1);return this},addBefore:function(a){var b=a.parent;b.addChild(this,b.getIndexOfChild(a));return this},remove:function(a){var b=this.parent;b&&b.removeChild(this,a);return this},setOrigin:function(a,b){return this.attr("origin",{x:a,y:b})},composeRenderMessage:function(a){a||(a={attributes:{},id:this.id});var b=a.attributes||
{},c=this._mutatedAttributes,d=this._renderAttributes,e=this._attributes,f;for(f in c)f in d&&(b[f]=e[d[f]]);this._mutatedAttributes={};a.attributes=b;a.data=this._getRenderData&&this._getRenderData();a.type=this.type;a.offStageType=this._offStageType;return a},animate:function(a,b,c){var d=a;if(/number|string/.test(typeof a)||!(d instanceof qf||d instanceof ij)){d=c&&c.clock||this.stage;c||(c={});if(!d)for(d=this;d&&!d.emitFrame;)d=d.parent;if(!d)return this.once("addedToStage",function(){this.animate(a,
b,c)}),this;d=new qf(d,a,b,c)}d.addSubject(this).play();return this}};xa.mixin(kj,hj);V.module$exports=G;V.module$exports&&(V=V.module$exports);var ia={},xd=n,Wc=V,lj=xd.isArray,rf=Math.max,yd=Math.min;de.prototype={add:function(a,b){var c=lj(a),d=this.owner,e;e=d;var f=[];do f.push(e),e=e.parent;while(e);e=f;f=c?a.length:1;if(c||-1===e.indexOf(a))if((!c||!a.some(hh,e))&&0!==f){e=this.children;var g=e.length,b=void 0===b?g:yd(b>>>0,g);c?e.splice.apply(e,[b,0].concat(a)):e.splice(b,0,a);0<b&&(e[b-
1].next=c?a[0]:a);for(var c=b+f,f=d.stage,h,g=b;g<c;g+=1)a=h||e[g],(h=a.parent)&&h.displayList.remove(a),h=e[g+1],a.next=h,a.parent=d,f&&a._activate(f)}},clear:function(){for(var a=this.children,b=0,c;c=a[b];b+=1)c.stage&&c._deactivate(),c.next=c.parent=void 0;a.length=0},contains:function(a){var b=this.children;return-1!==b.indexOf(a)||b.some(function(b){return b.displayList&&b.displayList.contains(a)})},remove:function(a){var b=this.children,c=b.indexOf(a);if(-1===c)return!1;0<c&&(b[c-1].next=a.next);
a.next=a.parent=void 0;a.stage&&a._deactivate();b.splice(c,1);return!0}};var sf={_activate:ee,_deactivate:fe,addChild:function(a,b){this.displayList.add(a,b);return this},children:function(a){var b=this.displayList;return arguments.length?(b.clear(),b.add(a),this):b.children.slice()},clear:function(){this.displayList.clear();return this},getBoundingBox:function(a){var b=this.displayList.children;if(!b.length)return Wc.prototype.getBoundingBox.call(this,a);b=xd.reduce(b,function(b,d,e){var f=d.attr("matrix").clone(),
f=d.getBoundingBox(a?f.concat(a):f),g=d.attr("x");d.attr("y");var g=d=0,e=0===e,h=d+f.top;b.top=e?h:yd(b.top,h);h=g+f.right;b.right=e?h:rf(b.right,h);d+=f.bottom;b.bottom=e?d:rf(b.bottom,d);f=g+f.left;b.left=e?f:yd(b.left,f);return b},{top:0,right:0,bottom:0,left:0,width:0,height:0});b.height=b.bottom-b.top;b.width=b.right-b.left;return b},getIndexOfChild:function(a){return this.displayList.children.indexOf(a)},removeChild:function(a){this.displayList.remove(a);return this}},zd=xd.mixin({},sf);zd._activate=
function(a){ee.call(this,a);a&&a.registry.movies.add(this)};zd._deactivate=function(){this.stage&&this.stage.registry.movies.remove(this);fe.call(this)};ia.module$exports={DisplayList:de,methods:sf,timelineMethods:zd};ia.module$exports&&(ia=ia.module$exports);var ja={},zb=n,Cc=B,mj=ga,tf={}.hasOwnProperty;r.DEFAULT_UNITS="boundingBox";r.LinearGradient=function(a,b,c,d){this.type="linear-gradient";this.stops=b;this.matrix=c;this.direction=a;this.units=d};r.LinearGradient.prototype.clone=function(){var a=
[];this.stops.forEach(function(b){a.push([b[0],b[1]])});return new r.LinearGradient(this.direction,a,this.matrix&&this.matrix.clone(),this.units)};r.RadialGradient=function(a,b,c,d,e,f){this.type="radial-gradient";this.stops=a;this.radius=b;this.matrix=c;this.units=d;this.fx=e;this.fy=f};r.RadialGradient.prototype.clone=function(){var a=[];this.stops.forEach(function(b){a.push([b[0],b[1]])});return new r.RadialGradient(a,this.radius,this.matrix&&this.matrix.clone(),this.units,this.fx,this.fy)};r._repeat=
function(a,b){for(var c=a.length,d,e,f=[],g=0;g<b;++g)for(var h=0;h<c;++h)e=a[h].slice(0),d=100/b*g,e[1]=e[1]/b+d,f.push(e);return f};r._fillOffsets=function(a){var b,c,d=a.length-1;if(a&&a.length){a[0][1]=a[0][1]||0;a[d][1]=null==a[d][1]?100:a[d][1];b=a[0][1];for(var e=1;e<d;++e)if(a[e][1])b=parseFloat(a[e][1]);else{c=b;b=null;for(var f=e+1;f<d;++f)if(a[f][1]){b=a[f][1];break}(b=parseFloat(b))||(b=a[d][1]);for(var g=(b-c)/(f-e+1);e<f;++e)c+=g,a[e][1]=c}return a}};r.linear=function(a,b,c){return r.advancedLinear(a,
b,null,c)};r.radial=function(a,b,c,d,e){return r.advancedRadial(a,(b||50)+"%",new mj(1,0,0,1,null==c?0.5:c/100,null==d?0.5:d/100),e)};r.advancedLinear=function(a,b,c,d,e){var e=e||r.DEFAULT_UNITS,f=parseFloat(a);zb.isArray(a)?f=a:isNaN(f)&&(f=nj[a]);if(!zb.isArray(b)){var a=[],g;for(g in b)tf.call(b,g)&&a.push([b[g],parseFloat(g)]);b=a;b.sort(function(a,b){return a[1]-b[1]})}b=b.map(function(a){return zb.isArray(a)?[Cc.parse(a[0]),a[1]]:[Cc.parse(a)]});r._fillOffsets(b);d&&(b=r._repeat(b,d));return new r.LinearGradient(f,
b,c,e)};r.advancedRadial=function(a,b,c,d,e,f,g){e=e||r.DEFAULT_UNITS;f=f||0;g=g||0;b=null==b?"50%":b;if(!zb.isArray(a)){var h=[],i;for(i in a)tf.call(a,i)&&h.push([a[i],parseFloat(i)]);a=h;a.sort(function(a,b){return a[1]-b[1]})}a=a.map(function(a){return zb.isArray(a)?[Cc.parse(a[0]),a[1]]:[Cc.parse(a)]});r._fillOffsets(a);d&&(a=r._repeat(a,d));return new r.RadialGradient(a,b,c,e,f,g)};r.parse=function(a){var b=a.match(/(linear)-gradient\((.+)\)$/);if(b&&"linear"===b[1])return r.parseLinearGradient(b[2]);
throw Error("Invalid gradient: "+a);};var nj={top:0,right:90,bottom:180,left:270,"top left":315,"top right":45,"bottom left":225,"bottom right":135};r.parseLinearGradient=function(a){for(var b=a.match(/^\s*(?:(-?(?:[0-9]+\.)?[0-9]+)deg|to\s+((?:(?:top|bottom)\s*)?(?:left|right)|(?:top|bottom)))/)||["",,"bottom"],c=b[1],d=b[2],e=/(?:,|^)\s*(#[0-9a-f]{3,8}|(?:hsl|rgb)a?\(.+?\)|\w+)\s*((?:[0-9]+\.)?[0-9]+%|)?/ig,f=[],a=a.slice(b[0].length);b=e.exec(a);)f.push([b[1],parseFloat(b[2])||null]);return r.linear(c||
d,f)};ja.module$exports=r;ja.module$exports&&(ja=ja.module$exports);var ka={},ge=V,uf=ia,oj=n,ih=uf.DisplayList,Ad=Xc.prototype=Object.create(ge.prototype);oj.mixin(Ad,uf.methods);Ad.type="Group";Ad.clone=function(a){var b=new Xc;a.attributes&&b.attr(this.attr());this.children().forEach(function(c){c.clone&&b.addChild(c.clone(a))},this);return b};ka.module$exports=Xc;ka.module$exports&&(ka=ka.module$exports);var Ab={},Yc=ka,ie=n,ta=he.prototype=Object.create(Yc.prototype);ta.getAttribute=function(a){return this._domAttributes[a]};
ta.getStyle=function(a){return this._cssStyles[a]};ta.setAttribute=function(a,b){this._domAttributes[a]=b;this._mutatedDomAttributes[a]=!0;this.markUpdate();return this};ta.setAttributes=function(a){for(var b in a)this.setAttribute(b,a[b]);return this};ta.setStyles=function(a){for(var b in a)this.setStyle(b,a[b]);return this};ta.setStyle=function(a,b){this._cssStyles[a]=b;this._mutatedCssStyles[a]=!0;this.markUpdate();return this};ta.composeRenderMessage=function(a){var a=Yc.prototype.composeRenderMessage.call(this,
a),b,a=a.attributes,c=this._cssStyles,d=this._domAttributes,e=this._mutatedDomAttributes,f=this._mutatedCssStyles;a.nodeName=this.nodeName;for(b in e)a["dom_"+b]=d[b];for(b in f)a["css_"+b]=c[b];this._mutatedCssStyles={};this._mutatedDomAttributes={};return{id:this.id,attributes:a,data:this._getRenderData&&this._getRenderData(),type:this.type,offStageType:this._offStageType}};Ab.module$exports=he;Ab.module$exports&&(Ab=Ab.module$exports);var Bb={},w=T,vf=n,Bd=Math.abs,je=Math.asin,pj=Math.ceil,nc=
Math.cos,wf=Math.max,xf=Math.min,ea=Math.PI,K=Math.pow,za=Math.sqrt,oc=Math.sin,qj=Math.tan,E=J.prototype;E.clear=function(){this._segments.length=0};E._push=function(){var a=[].slice.call(arguments);a.from=this.currentPoint.clone();a.lastMoveTo=this.lastMoveTo.clone();this._segments.push(a);return this};E.moveTo=function(a,b){this._push("moveTo",a,b);this.currentPoint=new w(a,b);this.lastMoveTo=new w(a,b);return this};E.moveBy=function(a,b){var c=this.currentPoint;return this.moveTo(c.x+a,c.y+b)};
E.closePath=function(){this._push("closePath");this.currentPoint=this.lastMoveTo.clone();return this};E.lineTo=function(a,b){var c=this.currentPoint;this._push("curveTo",c.x,c.y,a,b,a,b);this.currentPoint=new w(a,b);return this};E.lineBy=function(a,b){var c=this.currentPoint;return this.lineTo(c.x+a,c.y+b)};E.curveTo=function(a,b,c,d,e,f){this._push("curveTo",a,b,c,d,e,f);this.currentPoint=new w(e,f);return this};E.curveBy=function(a,b,c,d,e,f){var g=this.currentPoint.x,h=this.currentPoint.y;return this.curveTo(g+
a,h+b,g+c,h+d,g+e,h+f)};E.arcTo=function(a,b,c,d,e,f,g){var h,i,j=this.currentPoint.x,o=this.currentPoint.y,b=Zc(j,o,a,b,c,d,e,f,g),c=b.cx,d=b.cy,e=b.startAngle;h=b.endAngle-e;a=b.rx;b=b.ry;i=pj(Bd(h)/(ea/2));h/=i;for(var m=0;m<i;++m){var l=l||j,u=u||o,k=e+h*m,n=k+h,p=4/3*qj((n-k)/4),q=c+a*nc(n),r=d+b*oc(n),s=l+p*a*-oc(k),k=u+p*b*nc(k),t=q+p*a*oc(n),n=r+p*b*-nc(n),l=q,u=r;this._push("curveTo",s,k,t,n,q,r)}this.currentPoint=new w(f,g);return this};E.arcBy=function(a,b,c,d,e,f,g){var h=this.currentPoint;
return this.arcTo(a,b,c,d,e,f+h.x,g+h.y)};E.quadraticCurveTo=function(a,b,c,d){var e=1/3,f=2/3,g=this.currentPoint;this._push("curveTo",e*g.x+f*a,e*g.y+f*b,e*c+f*a,e*d+f*b,c,d);this.currentPoint=new w(c,d);return this};E.quadraticCurveBy=function(a,b,c,d){var e=this.currentPoint;return this.quadraticCurveTo(a+e.x,b+e.y,c+e.x,d+e.y)};E.nullCurve=function(a){var a=null==a?this._segments.length-1:a,b,c,d,e=this._segments[a];e?(c=e[e.length-2],d=e[e.length-1]):c=d=0;b=["curveTo",c,d,c,d,c,d];b.from=new w(c,
d);b.lastMoveTo=e?e.lastMoveTo.clone():new w(0,0);this._segments.splice(a+1,0,b);return this};E.splitCurve=function(a){var b,c,d=this._segments[a],e=[];if(!d||7>d.length)return this;c=ke(d.from.clone(),new w(d[1],d[2]),new w(d[3],d[4]),new w(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};J.propertiesFromAbsoluteArc=Zc;J.splitAbsoluteCubicBezier=ke;J.countSubPaths=function(a){for(var b=[],c=0,d=0,e=a.length;d<e;++d)"closePath"===a[d][0]||d===e-1?(b.push(c+1),c=0):++c;return b};J.subPathToCurves=function(a,b){var c=new J,d=c._segments,e,f,g,h=!1;if(!a)return[];!a.length&&b&&(a=[["moveTo",0,0],["closePath"]]);e=0;for(h=a.length;e<h;++e)f=a[e],(g=f[0])&&c[g].apply(c,f.slice(1));h=(e=d.length)&&"closePath"===d[e-1][0];if(e<b){b-=e;
h&&e--;g=Math.ceil(e/b);f=Math.ceil(1/(e/b));e-=1;a:for(;0<=e;e-=g)for(var i=f;i--;)if(b--)c.nullCurve(e);else break a;for(e=d.length;0<b--;)c.nullCurve(h?e-2:e-1)}return d};J.toCurves=function(a,b){if(!vf.isArray(a))return[];vf.isArray(b)||(b=[b]);for(var c=J.countSubPaths(a),d=[],e=0,f=Math.max(c.length,b.length);e<f;++e)d=d.concat(J.subPathToCurves(a.splice(0,c[e]),b[e]));return d};J.getBoundsOfCurve=function(a,b,c,d,e,f,g,h){function i(a){return K(1-a,3)*j[k]+3*K(1-a,2)*a*o[k]+3*(1-a)*K(a,2)*
m[k]+K(a,3)*l[k]}var j=[a,b],o=[c,d],m=[e,f],l=[g,h],c=[[],[]];c[0].push(a);c[1].push(b);c[0].push(l[0]);c[1].push(l[1]);for(var k=0;2>k;++k)a=6*j[k]-12*o[k]+6*m[k],b=-3*j[k]+9*o[k]-9*m[k]+3*l[k],d=3*o[k]-3*j[k],0==b?0!=a&&(a=-d/a,0<a&&1>a&&c[k].push(i(a))):(d=K(a,2)-4*d*b,0>d||(e=(-a+za(d))/(2*b),0<e&&1>e&&c[k].push(i(e)),a=(-a-za(d))/(2*b),0<a&&1>a&&c[k].push(i(a))));return{left:xf.apply(null,c[0]),top:xf.apply(null,c[1]),right:wf.apply(null,c[0]),bottom:wf.apply(null,c[1])}};J.fromArc=function(a,
b,c,d,e,f,g,h,i){if(!(a===h&&b===i)){if(0===c||0===d)return["lineTo",x,y];Bd(c);Bd(d)}};Bb.module$exports=J;Bb.module$exports&&(Bb=Bb.module$exports);var La={},ne=V,nh=ja,Xa=n,Aa=Xa.descriptorAccessor,F=Xa.descriptorData,rj=Xa.getter,le=B.parse,vh=rj("_textStrokeColor"),Cd=me.prototype=Object.create(ne.prototype);Cd.type="TextSpan";Cd.setText=function(a){return this.attr("text",a)};Cd.getText=function(){return this.attr("text")};La.module$exports=me;La.module$exports&&(La=La.module$exports);var Cb=
{},qe=ka,$c=La,Ah=ja,Dc=n,Z=Dc.descriptorAccessor,A=Dc.descriptorData,Ec=Dc.getter,oe=B.parse,sj=Dc.isArray,Nh=Ec("_textStrokeColor"),Lh=Ec("_cap"),Mh=Ec("_join"),Oh=Ec("_miterLimit"),yf=qe.prototype,Fc=pe.prototype=Object.create(yf);Fc.addChild=function(a,b){if(!(sj(a)?a.every(function(a){return a instanceof $c}):a instanceof $c))throw TypeError("child is not a TextSpan instance/an array of TextSpans");return yf.addChild.apply(this,arguments)};Fc.type="Text";Fc.setText=function(a){return this.attr("text",
a)};Fc.getText=function(){return this.attr("text")};Cb.module$exports=pe;Cb.module$exports&&(Cb=Cb.module$exports);var Ma={},zf=Math.round;Ma.module$exports=n.mixin({currentFrame:0,isPlaying:!0,incrementFrame:function(){this.currentFrame=(this.currentFrame+1)%(null==this._length?Infinity:this._length)||0;return this},emitFrame:function(){var a=this.currentFrame,b=this.skipFrame;this.emit("tick",this,a);if(this.isPlaying){if(null==this.skipFrame||this.skipFrame!=a)this.emit(""+a,this,a),this.emit("advance",
this,a);this.skipFrame===b&&(this.skipFrame=null)}},frames:function(a){var b,c,d=0;for(c in a)b=this.toFrameNumber(c),b>d&&(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&&a<this.length()&&(this.currentFrame=a,this.emit(a+"",this,a),this.skipFrame=a);return this},toFrameNumber:function(a){if(a==+a)return+a;if("from"==a||"start"==a)return 0;if("to"==a||"end"==a)return this._length;a=/^([\d.]+)(\D+)$/.exec(a)||[];switch(a[2]){case "ms":a[1]/=1E3;case "s":return zf(a[1]*(this.framerate||this.root.framerate));case "%":return zf(this._length*a[1]/100)||0;default:throw Error("Unknown frame format: "+a[2]);}}},z);Ma.module$exports&&(Ma=Ma.module$exports);var aa={};
$.parse=function(a){a=/^(?:([a-z][a-z0-9+.-]*):)?(?:\/\/([^/#?]*))?([^?#]*)(?:[?]([^#]*))?(?:#(.*))?/.exec(a);return!a?a:new $(a[1],a[2],a[3],a[4],a[5])};$.prototype={isAbsolute:function(){return void 0!==this.authority||"/"===this.path.charAt(0)},resolvePath:function(a){a="/"===a.charAt(0)?a:this.path.replace(/[/]+[^/]*$/,"/")+a;return(new $(this.scheme,this.authority,a)).toString()},resolveUri:function(a){a instanceof $||(a=$.parse(a));if("data"===a.scheme)return new $(a.scheme,"",a.path);var b=
a.scheme||this.scheme,c=a.authority||this.authority,d="/"===a.path.charAt(0)?a.path:this.path.replace(/[/]+[^/]*$/,"/")+a.path;return new $(b,c,d,a.query,a.fragment)},toString:function(){var a=this.path;this.authority&&(a="//"+this.authority+a);this.scheme&&(a=this.scheme+":"+a);this.query&&(a+="?"+this.query);this.fragment&&(a+="#"+this.fragment);return a}};aa.module$exports=$;aa.module$exports&&(aa=aa.module$exports);var Db={},tj=aa;Db.module$exports=function(a){var b,c;if(!a)throw Error("AssetResource needs at least a valid url as parameter.");
"string"===typeof a?b=a:(b=a.src,c=a.type);if(!b||"string"!==typeof b)throw Error("AssetResource: src parameter invalid: "+b);this.src=b;c&&"string"===typeof c?this.type=c:(a=tj.parse(b),this.type=(a.path.match("data"===a.scheme?/^(\w+\/[\w+]+)[;,]/:/\.([^.]+)$/)||[])[1]);if(!this.type)throw Error("Cannot determine type of resource with src: "+b);};Db.module$exports&&(Db=Db.module$exports);var ua={},Gc=Db,Dd=n,Af=Dd.isArray;ua.module$exports=function(a){var b,c;if(!a)throw Error("AssetRequest needs at least a valid url.");
b=a.resources;c=a.loadLevel;if("string"===typeof a)b=[new Gc(a)];else if(Af(a))b=Dd.map(a,function(a){return new Gc(a)});else if(b&&b.src||"string"===typeof b)b=[new Gc(b)];else if(Af(b)&&b.length)b=Dd.map(b,function(a){return new Gc(a)});else throw Error("resources are not valid.");this.resources=b;this.id=a.id;this.loadLevel=c||null};ua.module$exports&&(ua=ua.module$exports);var ba={},re=ua,uj=z,Za=n,Ed=Za.forEach,vj=[].slice;Ya.DEFAULT_TIMEOUT=1E4;Ya.MIME_TYPES=function(a){var b={audio:{},video:{},
image:{}};if(!a)return b;Ed(vj.call(a),function(a){var d=(a.description.match(/audio|video|image/i)||[])[0];d&&(d=d.toLowerCase(),Ed(a.suffixes.split(","),function(e){e&&(b[d][e]=a.type)}))});return b}("undefined"!==typeof navigator&&navigator.mimeTypes);var wj=Ya.prototype={load:function(){this.initTimeout();Ed(this.resources,function(a){this.loadResource(a,this.resourceLoadSuccess,this.resourceLoadError)},this);return this},initTimeout:function(){this._timeoutID=setTimeout(Za.hitch(this,function(){this.resourcesLoaded<
this.resourcesExpectedLength&&this.resourceLoadError("Timeout error when trying to load resources")}),this.timeoutDuration)},registerElement:function(a){this.emit("registerElement",a)},resourceLoadSuccess:function(a){if((this.resourcesLoaded+=1)===this.resourcesExpectedLength)clearTimeout(this._timeoutID),this.emit("resourcesLoaded"),this.emit("load",a)},resourceLoadError:function(a){clearTimeout(this._timeoutID);this.emit("error",a)}};Za.mixin(wj,uj);ba.module$exports=Ya;ba.module$exports&&(ba=ba.module$exports);
var Eb={},ad=ba,xj=ad.MIME_TYPES.audio,Fb;try{Fb=document.createElement("audio")}catch(il){}var yj={progress:"progress",loadstart:"loadstart",loadedmetadata:"loadedmetadata",loadeddata:"loadeddata",canplay:"canplay",canplaythrough:"canplaythrough"},zj=pc.getPlayableMimeType=function(a){if(!Fb)return"";if(Fb.canPlayType(a))return a;var b=xj[a];if(b&&Fb.canPlayType(b))return b;a="audio/"+a;return Fb.canPlayType(a)?a:""};pc.prototype=Object.create(ad.prototype);pc.prototype.loadResource=function(a,b,
c){function d(){b()}var e=this.id,f=this.request.loadLevel||"canplay",g=zj(a.type),h=a.src;!g||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,a=document.createElement("audio"),a.setAttribute("id",e),a.setAttribute("type",g),a.src=h,a.load(),this.registerElement(a),a.addEventListener(yj[f],d,!1),a.addEventListener("error",function(){c("Could not load video ("+h+").")},!1))};Eb.module$exports=pc;Eb.module$exports&&(Eb=Eb.module$exports);var Gb={},te=ba;(se.prototype=
Object.create(te.prototype)).loadResource=function(a,b,c){var d=new Image;d.onload=function(){b({width:d.width,height:d.height})};d.onerror=function(){c("Could not load image")};d.src=a.src;if(d.complete)d.onload()};Gb.module$exports=se;Gb.module$exports&&(Gb=Gb.module$exports);var Na={},ue=ba;bd.prototype=Object.create(ue.prototype);bd.prototype.loadResource=function(a,b,c){var d=new XMLHttpRequest,e=!1;d.open("GET",a.src,!0);d.send(null);d.onreadystatechange=function(){4==d.readyState&&(200<=d.status||
300>d.status||304==d.status)?b(d.responseText):!e&&404===d.status&&(c(d.status),e=!0)}};Na.module$exports=bd;Na.module$exports&&(Na=Na.module$exports);var Hb={},ve=ba,Aj=Na,Bj=n,Bf=S.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"};S.formatToMime={eot:"application/vnd.ms-fontobject",woff:"application/x-font-woff",otf:"font/opentype",svg:"image/svg+xml",ttf:"application/x-font-ttf"};var Fd;S.fontIDs={};S.prefix="bs_"+(new Date).getTime()+"_";S.prototype=Object.create(ve.prototype);S.prototype.loadResource=function(a,b,c){var d=this,e=a.src;/^data:/.test(e)?b(e):(new Aj(e)).on("load",function(){var c;a.type in Bf?c=
Bf[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()};S.prototype.applyFontFace=function(a,b){a=this.fontId;b=this.fontFormats;Fd||(Fd=(document.getElementsByTagName("head")||[document.body])[0].appendChild(document.createElement("style")));var c,d,e=[],f="";Bj.forEach(b,function(a){d=a.uri;c=a.format;"eot"===c?f='url("'+d+'") format("'+c+
'")':e.push('url("'+d+'") format("'+c+'")')});Fd.appendChild(document.createTextNode('@font-face {font-family: "'+a+'";\n'+(f?"src: "+f+";\n":"")+(e.length?'src: local("\u263a"), '+e.join(",\n")+";\n":"")+"}"))};Hb.module$exports=S;Hb.module$exports&&(Hb=Hb.module$exports);var Ib={},cd=ba,Cj=cd.MIME_TYPES.video,Jb;try{Jb=document.createElement("video")}catch(jl){}var Dj={progress:"progress",loadstart:"loadstart",loadedmetadata:"loadedmetadata",loadeddata:"loadeddata",canplay:"canplay",canplaythrough:"canplaythrough"},
Ej=qc.getPlayableMimeType=function(a){if(!Jb)return"";if(Jb.canPlayType(a))return a;var b=Cj[a];if(b&&Jb.canPlayType(b))return b;a="video/"+a;return Jb.canPlayType(a)?a:""};qc.prototype=Object.create(cd.prototype);qc.prototype.loadResource=function(a,b,c){function d(){b({width:e.videoWidth,height:e.videoHeight})}var e,f=this.id,g=this.request.loadLevel||"canplay",h=Ej(a.type),i=a.src;!h||this.hasInitiatedLoad?this.resourcesExpectedLength--:(this.hasInitiatedLoad=!0,e=document.createElement("video"),
e.setAttribute("id",f),e.setAttribute("type",h),e.src=i,this.registerElement(e),e.addEventListener(Dj[g],d,!1),e.addEventListener("error",function(){c("Could not load video ("+i+").")},!1))};Ib.module$exports=qc;Ib.module$exports&&(Ib=Ib.module$exports);var Oa={},Fj=n,Gj=z,Hj=Hb,Ij=Ib,Jj=Eb,Kj=Gb,Lj=Na;qa.assets={};var Cf=qa.handlers={Bitmap:Kj,Font:Hj,Audio:Jj,Video:Ij,Raw:Lj};qa.prototype={destroy:function(a){delete qa.assets[a]},load:function(a,b,c){var b=b||"assetLoadSuccess",c=c||"assetLoadError",
d=a.type;if(d in Cf)(new Cf[d](a.request,a.id)).on("registerElement",function(b){qa.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);}};Fj.mixin(qa.prototype,Gj);Oa.module$exports=qa;Oa.module$exports&&(Oa=Oa.module$exports);var Kb={},Mj=aa,Df=we.prototype=n.mixin({destroy:function(){var a=this._worker;a.terminate();delete a.onmessage;delete this._worker},
init:function(a){var b=Mj.parse(this.runnerUrl);-1===(""+b).indexOf("blob")&&(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})}},z);Df.notifyRunnerAsync=Df.notifyRunner;
Kb.module$exports=we;Kb.module$exports&&(Kb=Kb.module$exports);var Lb={},$a=n,Nj=z,Ph=aa,ye=$a.hitch,Oj=xe.prototype={_onRunnerContextReady:function(){function a(a,b){var g=a.length,h=0;d.on("scriptLoaded",function(){++h===g&&b()});$a.forEach(a,function(a){d.load(c.baseUrl.resolveUri(a).toString())})}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);dd(c)}):b.code&&d.run(b.code)}):b.urls?a(b.urls,function(){b.code&&d.run(b.code);dd(c)}):b.code&&(d.run(b.code),dd(c))},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":"category"in
a?this.emit("message:"+a.category,b):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=$a.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=ye(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,b){var c=this._pendingMessages;if(c)return c.push(arguments),this;2>arguments.length?this.post("message",a):this.runnerContext.notifyRunner({command:"message",category:a,data:b});return this},stop:function(a){return this.post("stop",a)},unfreeze:function(){return this.post("unfreeze")}};
$a.mixin(Oj,Nj);Lb.module$exports=xe;Lb.module$exports&&(Lb=Lb.module$exports);var Mb={},Pj=z,Hc=n,Pa=B,Qj=Ga,Ef=rb,Ba=jb,Rj=qb,Ic=Oa,ze={},Sj=/AppleWebKit\/53([0-3]|4.([0-4]))/.test(navigator.appVersion),Ff=Math.min,Gf=Math.max,Jc=Ba.cssClasses,Nb=Ba.matrixToString,Tj=Ba.gradientToSignature,Uj=Ba.filterToSignature,Hf=Ba.valueFromSignatureForType,Vj=Qj.exportToPath,Kc=Ef.isFEColorMatrixEnabled,Wj=Ef.filterElementsFromList,Xj=Ic.handlers.Font.fontIDs,If=Ic.handlers.Font.prefix,Jf={cap:["stroke-linecap",
"butt"],join:["stroke-linejoin","miter"],miterLimit:["stroke-miterlimit","4"],opacity:["opacity","1"],fillOpacity:["fill-opacity","1"],strokeOpacity:["stroke-opacity","1"],strokeDash:["stroke-dasharray"],strokeDashOffset:["stroke-dashoffset"],fontSize:["font-size"],fontWeight:["font-weight"],fontStyle:["font-style"],text:["text"],cursor:["cursor","inherit"],fillRule:["fill-rule","inherit"]},Ae="click dblclick mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup touchcancel touchend touchmove touchstart".split(" "),
Yj={left:"start",center:"middle",right:"end"},Kf={top:"hanging",center:"middle",bottom:"auto"},Zj=Hc.isArray;ed.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 Jf){var e=Jf[d],f=e[0],e=""+c===e[1];null!==c&&!e?a.setAttribute(f,c):(null===c||e)&&a.removeAttribute(f)}else switch(d){case "interactive":ab(a.style,"pointerEvents",c?"":"none");break;case "fontFamily":c=Xj[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?(c=Nb(c),"matrix(1,0,0,1,0,0)"==c?a.removeAttribute("transform"):a.setAttribute("transform",c)):null===c&&a.removeAttribute("transform")}}};var p=fd.prototype=Hc.mixin({},Pj,Rj),$j={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=Pa(b).rgba();break;case "disableContextMenu":this.svg.root.oncontextmenu=b?function(){return!1}:null}};p.render=function(a){var b,c,d,e,f,g,h,i=this,j=this.svg,o={},k={};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="Audio"===h?j[b]=Ic.assets[b]:j[b]=v($j[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,(k[g]||(k[g]=[])).push(b),o[b]=f);if(this[b="draw"+h])this[b](c,f),this.drawAll(h,c,f);!Kc&&"Group"===h&&function u(a,b){if(b){var c=a.firstChild||{};
do c instanceof SVGGElement&&u(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&&j.attr(c._root||c,f.attributes)}for(g in k){c=k[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._isLoggingFps&&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;!Kc&&!f&&e&&b._fillColorSignature&&(f=b._fillColorSignature);Zj(e)&&(0<e.length?this.applyFilters(b,e):this.removeFilters(b));
"clip"===c.offStageType&&(d.fillImage=null,g=d.fillGradient=null,f=d.fillColor=4294967295);d.clipId?(e=d.clipId+"_offStageParent",(b._clip=this.svg[e])?b._clip!==this.svg[e]&&b._clip.n++:(b._clip=this.svg[e]=this.svg.defs.appendChild(v("mask")),b._clip.id=this._genDefUID(),b._clip._clipId=e,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&&ab(b.style,"visibility",d.visible?
"":"hidden");if("Path"===a||"Text"===a||"TextSpan"===a)d.fillImageId||g&&(f||d.fillRepeat&&"1,1"!==d.fillRepeat.join())?Sj?this.applyWebkitFills(b,c):this.applyFills(b,c.attributes):g?this.applyFillGradient(b,g,d.matrix):null!=f&&this.applyFillColor(b,f),"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),"strokeDash"in d&&this.applyStrokeDashArray(b,
d.strokeDash,d.strokeDashOffset)};p.drawPath=function(a,b){var c=b.data;c&&a.setAttribute("d",Vj(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?Jc.add(a,"selectable"):Jc.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,d=a.style,e=c.textOrigin,f=c.textAlign;void 0!==c.selectable&&(!1!==c.selectable?Jc.add(a,"selectable"):Jc.remove(a,"selectable"));null!=f&&ab(d,"textAnchor",Yj[f]);null!=e&&(ab(d,"alignmentBaseline",Kf[e]),ab(d,"dominantBaseline",Kf[e]))};p.drawVideo=function(a,b){var c,d=b.attributes;c=b.id;var e=Ic.assets[c],f=d.playing;if("undefined"===typeof e)throw Error("asset <"+c+"> is unknown.");a.removeAttribute("transform");
"matrix"in d&&(a.setAttribute("x",d.matrix.tx),a.setAttribute("y",d.matrix.ty));"width"in d&&(a.setAttribute("width",d.width),e.setAttribute("width",d.width));"height"in d&&(a.setAttribute("height",d.height),e.setAttribute("height",d.height));a.setAttribute("preserveAspectRatio","none");if(d.prepareUserEvent&&"ontouchstart"in document){var g=function(){e.play();e.pause();document.removeEventListener("touchstart",g,!0)};document.addEventListener("touchstart",g,!0)}"volume"in d&&(e.volume=Ff(Gf(+d.volume||
0,0),1));if("time"in d){c=e.volume;e.volume=0;try{e.currentTime=+d.time||0.01}catch(h){}e.volume=c}!0===f&&e.play();!1===f&&e.pause();e.setAttribute("controls","controls");a.appendChild(e)};p.drawAudio=function(a,b){var c,d=b.attributes;c=b.id;var e=d.playing;if("undefined"===typeof a)throw Error("asset <"+c+"> is unknown.");if(d.prepareUserEvent&&"ontouchstart"in document){var f=function(){a.play();a.pause();document.removeEventListener("touchstart",f,!0)};document.addEventListener("touchstart",
f,!0)}"volume"in d&&(a.volume=Ff(Gf(+d.volume||0,0),1));if("time"in d){c=a.volume;a.volume=0;try{a.currentTime=+d.time||0.01}catch(g){}a.volume=c}!0===e&&a.play();!1===e&&a.pause()};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=v("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));for(var e in d)/^dom_/.test(e)?"dom_innerHTML"===e?a.innerHTML=(d[e]||"").replace(/\{\{prefix\}\}/g,If):a.setAttribute(e.slice(4),d[e]):/^css_/.test(e)&&null!=d[e]&&(a.style[e.slice(4)]=d[e].toString().replace(/\{\{prefix\}\}/g,If));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.getTime=Date.now||function(){return(new Date).getTime()};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&&(1<c.n?c.n--:(this.svg.defs.removeChild(c.element),delete this.definitions[b]),a.removeAttribute("filter"),delete a._filterSignature)};p.removeFillImage=function(a){if((a=a._pattern)&&a._fillImage)a.removeChild(a._fillImage),delete this.svg[a._fillImage._fillImageId],delete a._fillImage};p.removeGradient=function(a,b){var c=a["_"+b+"GradientSignature"],d=this.definitions[c];d&&(1<d.n?d.n--:(this.svg.defs.removeChild(d.element),
delete this.definitions[c]),delete a["_"+b+"GradientSignature"])};p.removeClip=function(a){var b=a._clip;b&&(1<b.n?b.n--:(this.svg.defs.removeChild(b),delete this.svg[b._clipId]),a.removeAttribute("mask"),delete a._clip)};p.removeMask=function(a){var b=a._mask;b&&(1<b.n?b.n--:(this.svg.defs.removeChild(b),delete this.svg[b._maskId]),a.removeAttribute("mask"),delete a._mask)};p.destroy=function(){var a=this.svg;Ae.forEach(function(b){a.root.removeEventListener(b,this,!1)},this);document.removeEventListener("keyup",
this,!1);document.removeEventListener("keydown",this,!1);document.removeEventListener("keypress",this,!1);clearInterval(this._fpsInterval);a.root.parentNode&&a.root.parentNode.removeChild(a.root);delete this.svg};p._genDefUID=function(){return"def-"+ +new Date+"-"+(this.__defID=this.__defID?this.__defID+1:1)};p.applyFillColor=function(a,b,c){return this.applyColor("fill",a,b,c)};p.applyStrokeColor=function(a,b,c,d){null!=b?0<d||+a.getAttribute("stroke-width")?this.applyColor("stroke",a,b,c):this.applyColor("data-stroke",
a,b,c):null===b&&(a.removeAttribute("stroke"),a.removeAttribute("data-stroke"))};p.applyStrokeDashArray=function(a,b,c){b?(a.setAttribute("stroke-dasharray",b),a.setAttribute("stroke-dashoffset",c||0)):(a.removeAttribute("stroke-dasharray"),a.removeAttribute("stroke-dashoffset"))};p.applyStrokeGradient=function(a,b,c,d){null!=b?0<d||+a.getAttribute("stroke-width")?this.applyGradient("stroke",a,b,b.matrix,c):this.applyGradient("data-stroke",a,b,b.matrix,c):null===b&&(a.removeAttribute("stroke"),a.removeAttribute("data-stroke"))};
p.applyColor=function(a,b,c,d){d=b._filterSignature||d;b["_"+a+"ColorSignature"]=c;c=Pa(c);!Kc&&d&&(d=Hf(d,"colorMatrix"))&&c.setColorMatrix(d.split(","));b.setAttribute(a,c.rgba())};p.applyFillGradient=function(a,b,c,d){return this.applyGradient("fill",a,b,c,d)};p.applyGradient=function(a,b,c,d,e){var e=b._filterSignature||e,f,g,h,i,j,o,d=c.stops,k=Tj(c),l="_"+a+"GradientSignature";!Kc&&e&&(e=Hf(e,"colorMatrix"))&&(f=e.split(","));if(!f&&k in this.definitions)e=this.definitions[k],b[l]!==k&&(e.n++,
b[l]=k,b.setAttribute(a,"url(#"+e.element.id+")"));else{if(b[l])if(e=this.definitions[b[l]],1<e.n)e.n--;else{delete this.definitions[b[l]];for(g=e.element;e=g.firstChild;)g.removeChild(e)}b[l]=k;switch(c.type){case "linear-gradient":if(isNaN(c.direction))l=c.direction;else if(e=360-c.direction-270,0>e&&(e+=360),e=-e,l=[0,0,Math.cos(Math.PI/180*e),Math.sin(Math.PI/180*e)],e=1/(Math.max(Math.abs(l[2]),Math.abs(l[3]))||1),l[2]*=e,l[3]*=e,0>l[2]&&(l[0]=-l[2],l[2]=0),0>l[3])l[1]=-l[3],l[3]=0;g||(g=v("linearGradient"),
g.setAttribute("gradientTransform",Nb(c.matrix)),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());j=0;for(o=d.length;j<o;++j)h=d[j],e=v("stop"),i=f?Pa(h[0]).setColorMatrix(f):Pa(h[0]),e.setAttribute("offset",h[1]+"%"),e.setAttribute("stop-color",i.rgb()),e.setAttribute("stop-opacity",i.a()),g.appendChild(e);g.setAttribute("x1",l[0]);g.setAttribute("y1",l[1]);g.setAttribute("x2",l[2]);g.setAttribute("y2",
l[3]);break;case "radial-gradient":g||(g=v("radialGradient"),g.setAttribute("gradientUnits","boundingBox"==c.units?"objectBoundingBox":"userSpaceOnUse"),g.setAttribute("spreadMethod","PAD"),g.id=this._genDefUID());g.setAttribute("gradientTransform",Nb(c.matrix));j=0;for(o=d.length;j<o;++j)h=d[j],e=v("stop"),i=f?Pa(h[0]).setColorMatrix(f):Pa(h[0]),e.setAttribute("offset",h[1]+"%"),e.setAttribute("stop-color",i.rgb()),e.setAttribute("stop-opacity",i.a()),g.appendChild(e);g.setAttribute("cx","0%");g.setAttribute("cy",
"0%");g.setAttribute("r",c.radius);g.setAttribute("fx",c.fx);g.setAttribute("fy",c.fy)}this.svg.defs.appendChild(g);b.setAttribute(a,"url(#"+g.id+")");this.definitions[k]={n:1,element:g}}};p.applyWebkitFills=function(a,b){var c,d,e=b.attributes,f=this.svg,g=f.defs,h=e.fillColor,i=e.fillGradient,j=(d=a._friend)&&d._fillImage,k=d&&d._fillGradient,m=d&&d._fillColor,l=!(d&&d._pattern);f.root.appendChild(a);l&&(c=a.getBBox(),d=function(a,b,c,d){var e=v("g",a);b[a]=e;d.tx+=c.x;d.ty+=c.y;e.setAttribute("transform",
Nb(d));return e}(b.id,f,c,e.matrix),function(b,c,e){b=v("mask");b.id=c;e.appendChild(b);d._pattern=b;d.setAttribute("mask","url(#"+c+")");b.appendChild(a)}(d,this._genDefUID(),g),a._friend=d,e.matrix.tx=-1*c.x,e.matrix.ty=-1*c.y,a.setAttribute("fill","rgba(255, 255, 255, 1)"),a._friend=d);!j&&e.fillImageId&&(j=d._fillImage=v("g"),j._fillImageId=e.fillImageId+"_offStageParent",f[j._fillImageId]=j);!k&&i&&(c||(c=a.getBBox()),k=d._fillGradient=v("rect"),k.setAttribute("x",0),k.setAttribute("y",0),k.setAttribute("width",
c.width),k.setAttribute("height",c.height));h&&(m=d._fillColor=v("rect"),m.setAttribute("x",0),m.setAttribute("y",0),m.setAttribute("width",c.width),m.setAttribute("height",c.height),m._fillColorSignature!==h?this.applyFillColor(m,h):0!==m._fillColorSignature&&this.applyFillColor(m,0));i&&(this.applyFillGradient(k,i,e.matrix),d._fillGradientSignature=k._fillGradientSignature);l&&(m&&d.appendChild(m),k&&d.appendChild(k),j&&d.appendChild(j))};p.applyFills=function(a,b){var c,d,e=this.svg.defs,f=(d=
b.fillRepeat)&&d[0]||1,g=d&&d[1]||1,h=b.fillColor,i=b.fillGradient,j=a._pattern,k=j&&j._fillImage,m=j&&j._fillGradient,l=j&&j._fillColor,n=!j;this.svg.root.appendChild(a);n&&(c=a.getBBox(),j=a._pattern=v("pattern"),l=j._fillColor=v("rect"),j.setAttribute("patternUnits","userSpaceOnUse"),j.setAttribute("x",0),j.setAttribute("y",0),j.setAttribute("width",c.width/f),j.setAttribute("height",c.height/g),d=Hc.mixin({},b.matrix),d.tx=c.x,d.ty=c.y,j.setAttribute("patternTransform",Nb(d)),l.setAttribute("x",
0),l.setAttribute("y",0),l.setAttribute("width",c.width/f),l.setAttribute("height",c.height/g));!m&&i&&(c||(c=a.getBBox()),m=j._fillGradient=v("rect"),m.setAttribute("x",0),m.setAttribute("y",0),m.setAttribute("width",c.width/f),m.setAttribute("height",c.height/g));!k&&b.fillImageId&&(k=j._fillImage=v("g"),k._fillImageId=b.fillImageId+"_offStageParent",this.svg[k._fillImageId]=k);h?l._fillColorSignature!==h&&this.applyFillColor(l,h):0!==l._fillColorSignature&&this.applyFillColor(l,0);i&&(this.applyFillGradient(m,
i,b.matrix),j._fillGradientSignature=m._fillGradientSignature);n&&(j.appendChild(l),m&&j.appendChild(m),k&&j.appendChild(k),j.id=this._genDefUID(),a.setAttribute("fill","url(#"+j.id+")"),e.appendChild(j))};p.applyFilters=function(a,b){var c,d;d="filter:"+b.map(function(a){return Uj(a)}).join();if(d in this.definitions)c=this.definitions[d],a._filterSignature!==d&&(c.n++,a._filterSignature=d,a.setAttribute("filter","url(#"+c.element.id+")"));else{this.removeFilters(a);c=v("filter");c.id=this._genDefUID();
c.setAttribute("x","-100%");c.setAttribute("y","-100%");c.setAttribute("width","300%");c.setAttribute("height","300%");for(var e=Wj(b),f=0,g=e.length;f<g;f+=1)c.appendChild(e[f]);this.svg.defs.appendChild(c);a.setAttribute("filter","url(#"+c.id+")");a._filterSignature=d;this.definitions[d]={n:1,element:c}}};p.applyMask=function(a,b){var c=b.maskId+"_offStageParent",d=this.svg;(a._mask=d[c])?a._mask!==d[c]&&a._mask.n++:(a._mask=d[c]=d.defs.appendChild(v("mask")),a._mask.id=this._genDefUID(),a._mask._maskId=
c,a._mask.n=1);a.setAttribute("mask","url(#"+a._mask.id+")")};p.getOffset=function(){var a,b=this.svg.rootContainer.getBoundingClientRect();if(isNaN(b.left)||isNaN(b.top))a=this.svg.rootContainer.getScreenCTM(),b.left=a.e,b.top=a.f;return b};p._setupFPSLog=function(a){var b="function"===typeof a,c=!0===a||b;this._isLoggingFps=c;clearInterval(this._fpsInterval);c&&(!0===a&&this.render([{parent:0,id:0.5,type:"Text",attributes:{matrix:{a:1,b:0,c:0,d:1,tx:10,ty:20}}}]),this._fpsInterval=setInterval(Hc.hitch(this,
function(){var c=this.getFPS();b?a(c):(this.render([{id:0.6,parent:0.5,type:"TextSpan",attributes:{text:c+"FPS",textFillColor:255,fontFamily:"Arial"}}]),this.svg.root.appendChild(this.svg[0.5]))}),1E3))};p._logFrame=function(){(this._frameTimes||(this._frameTimes=[])).push(this.getTime())};p.getFPS=function(){for(var a=this._frameTimes,b=0,c=this.getTime()-1E3,d=a.length;d--&&!(a[d]<c);)++b;this._frameTimes=a.slice(d);return b};fd.Svg=ed;Mb.module$exports=fd;Mb.module$exports&&(Mb=Mb.module$exports);
var la={},ak=n,Ce=V,bk=ua,Lf=Be.prototype=Object.create(Ce.prototype);Lf.request=function(a){if("undefined"===typeof a)return this._request;this._loader.request(this,this._request=new bk(a),this.type);return this};Lf.bindAssetCallback=function(a){function b(){d();a.call(this,null,this)}function c(b){d();a.call(this,b,this)}var d=ak.hitch(this,function(){this.removeListener("load",b);this.removeListener("error",c)});this.on("load",b);this.on("error",c);return this};la.module$exports=Be;la.module$exports&&
(la=la.module$exports);var va={},De=la,Gd=n,Mf=T,Ca=Gd.descriptorData,Rh=Gd.descriptorAccessor,Sh=Gd.getter("_source"),Nf=De.prototype,ck=Nf.request,Lc=gd.prototype=Object.create(Nf);Lc.clone=function(){return new gd(this._loader,this.attr("source"))};Lc.request=function(a){if("undefined"===typeof a)return this._request;ck.call(this,a);this._attributes._absoluteUrl=this._request.resources[0].src;return this};Lc.notify=function(a,b){switch(a){case "load":this._attributes._naturalWidth=b.width;this._attributes._naturalHeight=
b.height;if(null==this._attributes.width||null==this._attributes.height)this._mutatedAttributes.naturalWidth=!0,this._mutatedAttributes.naturalHeight=!0;this._mutatedAttributes.absoluteUrl=!0;this.emitAsync("load",this);this.markUpdate();break;case "error":this.emitAsync("error",Error(b.error),this)}return this};Lc.getBoundingBox=function(a){var b={top:0,right:0,bottom:0,left:0},c=this._attributes._naturalWidth,d=this._attributes._naturalHeight,e=this.attr("width"),f=this.attr("height"),g=c/d,c=e||
(null!=f?g*f:c)||0,e=f||(null!=e?e/g:d)||0;b.right=b.width=c;b.bottom=b.height=e;a&&(d=a.transformPoint(new Mf(0,0)),a=a.transformPoint(new Mf(c,e)),b.top=d.y,b.left=d.x,b.right=a.x,b.bottom=a.y);return b};va.module$exports=gd;va.module$exports&&(va=va.module$exports);var Ob={},dk=ua,Th=0,Of=Ee.prototype=Object.create(z);Of._load=function(){this._loader.request(this,new dk({id:this.fontId,resources:this.resources}),"Font")};Of.notify=function(a,b){switch(a){case "load":this.emitAsync("load",this);
break;case "error":this.emitAsync("error",Error(b.error),this)}return this};Ob.module$exports=Ee;Ob.module$exports&&(Ob=Ob.module$exports);var Qa={},Ge=la,Pf=n,rc=Pf.descriptorData,He=Pf.descriptorAccessor,Qf=Ge.prototype,ek=Qf.destroy,Ra=Fe.prototype=Object.create(Qf);Ra.destroy=function(){ek.call(this);this._loader.destroyAsset(this);return this};Ra.notify=function(a,b){switch(a){case "load":this.emitAsync("load",this);break;case "error":this.emitAsync("error",Error(b.error))}return this};Ra.play=
function(a){void 0!==a&&this.attr("time",a);return this.attr("playing",!0)};Ra.prepareUserEvent=function(){return this.attr("prepareUserEvent",!0)};Ra.pause=function(){return this.attr("playing",!1)};Ra.stop=function(){return this.attr({playing:!1,time:0})};Qa.module$exports=Fe;Qa.module$exports&&(Qa=Qa.module$exports);var Pb={},Ie=Qa;(hd.prototype=Object.create(Ie.prototype)).clone=function(){return new hd(this._loader,this._request)};Pb.module$exports=hd;Pb.module$exports&&(Pb=Pb.module$exports);
var Qb={},Ke=la,Rf=ia,fk=Ma,Yh=Rf.DisplayList,Sf=Je.prototype=n.mixin(Object.create(Ke.prototype),fk,Rf.timelineMethods);Sf.loadSubMovie=function(){return this.root.loadSubMovie.apply(this.root,arguments)};Sf.type="Movie";Qb.module$exports=Je;Qb.module$exports&&(Qb=Qb.module$exports);var M={},Hd=T,Ea=Bb,Mc=Ga,bb=V,ra=n,Id=B,Da=ja,gk=va,O=ra.descriptorAccessor,D=ra.descriptorData,Rb=ra.getter,cb=ra.isArray,Le=Id.parse,hk=Mc.exportToPath,ui=Mc.validTokens,ik=Mc.parsePath,jk=Mc.parseCommandList,kk=Math.abs,
Tf=Math.cos,Uf=Math.PI,Vf=2*Uf,Wf=Math.sin,Xf=Math.min,Jd=Math.max,ri=Rb("_strokeColor"),si=Rb("_strokeDash"),pi=Rb("_cap"),qi=Rb("_join"),ti=Rb("_miterLimit"),Kd=bb.prototype,q=sc.prototype=Object.create(Kd);q._activate=function(a){var b=Kd._activate.apply(this,arguments),c=this._attributes._fillImage;c&&bb.registerOffStageObj(this,c,a,"fillImage");this.markUpdate("shapeData");return b};q.markUpdate=function(a){"shapeData"===a&&(this._isPathDataMutated=!0);return Kd.markUpdate.call(this)};q.clone=
function(a){for(var b=-1,c=this._segments,d=c.length,e=Array(d),f=new sc;++b<d;)e[b]=c[b].slice();a&&a.attributes&&f.attr(this.attr());return f.segments(e)};q.segments=function(a){if(0===arguments.length)return this._segments.slice().map(function(a){return a.slice()});if(cb(a)){if(cb(a[0]))var b=a.concat,a=b.call.apply(b,a)}else if("string"==typeof a)a=arguments;else throw new TypeError("Invalid parameter: "+a);this._segments=jk(a);this.markUpdate("shapeData");return this};q.points=function(a){if("undefined"==
typeof a)return this._segments.map(function(a){return a.slice(-2)}).filter(Boolean);for(var a=cb(a)?a:arguments,b=0,c,d,e=a.length;b<e;b+=2)c=a[b],d=a[b+1],b?this.lineTo(c,d):this.clear().moveTo(c,d);this.markUpdate("shapeData");return this};q.path=function(a){var b=this._segments;if("undefined"==typeof a)return hk(b);if("string"==typeof a)return this._segments=ik(a),this.markUpdate("shapeData"),this;throw new TypeError("Invalid parameter: "+a);};q.moveTo=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("moveTo needs two finite arguments");
this._segments.push(["moveTo",a,b]);this.markUpdate("shapeData");return this};q.moveBy=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("moveBy needs two finite arguments");this._segments.push(["moveBy",a,b]);this.markUpdate("shapeData");return this};q.closePath=function(){this._segments.push(["closePath"]);this.markUpdate("shapeData");return this};q.lineTo=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("lineTo needs two finite arguments");this._segments.push(["lineTo",a,b]);
this.markUpdate("shapeData");return this};q.lineBy=function(a,b){if(!isFinite(a)||!isFinite(b))throw TypeError("lineBy needs two finite arguments");this._segments.push(["lineBy",a,b]);this.markUpdate("shapeData");return this};q.verticalLineTo=function(a){return this.lineTo(this.lastPoint()[0],a)};q.verticalLineBy=function(a){return this.lineBy(0,a)};q.horizontalLineTo=function(a){var b=this.lastPoint();return this.lineTo(a,b[1])};q.horizontalLineBy=function(a){return this.lineBy(a,0)};q.curveTo=function(a,
b,c,d,e,f){if(6>arguments.length)throw Error("Incorrect number of arguments.");this._segments.push(["curveTo",a,b,c,d,e,f]);this.markUpdate("shapeData");return this};q.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};q.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};q.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};q.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};q.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};q.arc=function(a,
b,c,d,e,f){var f=!!f,g;g=f?e:d;f=f?Vf-d:e;e=kk(f-g);d=a+c*Tf(g);g=b+c*Wf(g);e<Vf?(a+=c*Tf(f),b+=c*Wf(f)):(a=d,b=g-1.0E-4);return this[this._segments.length?"lineTo":"moveTo"](d,g).arcTo(c,c,0,e<Uf?0:1,1,a,b)};q.boundingBox=function(){throw"Not implemented";};q.pointAtLength=function(){throw"Not implemented";};q.clear=function(){this._segments.length=0;this._curve.clear();return this};q.fill=function(a){if("string"===typeof a||"number"===typeof a||a instanceof Id.RGBAColor)return this.attr("fillColor",
a);if(a instanceof Da.LinearGradient||a instanceof Da.RadialGradient)return this.attr("fillGradient",a);if(a instanceof gk)return this.attr("fillImage",a);throw Error('A fill of "'+a+'" is not supported');};q.stroke=function(a,b){b&&this.attr("strokeWidth",b);if("string"===typeof a||"number"===typeof a||a instanceof Id.RGBAColor)return this.attr("strokeColor",a);if(a instanceof Da.LinearGradient||a instanceof Da.RadialGradient)return this.attr("strokeGradient",a);throw Error('A fill of "'+fill+'" is not supported');
};q.lastSegment=function(){var a=this._segments.slice(-1);if("undefined"!=typeof a[0])return a};q.lastPoint=function(){var a,b,c,d,e,f,g,h=0,i=0,j=!1;a=this._segments.slice(-1)[0];if(/To/.test(a[0]))return a.slice(-2);f=this._segments;for(g=f.length;0<g--;){a=f[g];b=a[0];c=a.length;d=j?/moveTo/:/To/;e=j?/moveBy/:/By/;if(d.test(b))return[a[c-2]+h,a[c-1]+i];/close/.test(b)?j=!0:e.test(b)&&(h+=a[c-2],i+=a[c-1])}throw Error("Could not find a point.");};q.type="Path";q._getRenderData=function(){if(this._isPathDataMutated){for(var a,
b,c,d=[],e=this._segments,f=0,g=e.length;f<g;f++){b=e[f];c=[];for(var h=0,i=b.length;h<i;h++)a=b[h],c.push(h&&a instanceof Hd?[a.x,a.y]:a);d.push(c)}this._isPathDataMutated=!1;return d}};q.toCurves=function(a){this._segments=Ea.toCurves(this._segments,a)};q.morphTo=function(a,b,c){this.toCurves();a.toCurves();var d=Ea.countSubPaths(this._segments),e=Ea.countSubPaths(a._segments),f=d.length>e.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)};q.morphSegmentsTo=function(a,b,c){this.toCurves();a.toCurves();var d=Jd(a._segments.length,this._segments.length);this.toCurves(d);a.toCurves(d);return this.animate(b,{segments:a.attr("segments")},c)};sc.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,j,k,m=f;m<b;m++){e.push(f=
[]);i=a[m];k=i.length;j=i[0];if(/By/.test(j))switch(f[0]=j.replace(/By/,"To"),j){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(j=1;j<k;j++)f[j]=i[j]+(j%2?g:h)}else for(j=0;j<k;j++)f[j]=i[j];switch(f[0]){case "closePath":g=c;h=d;break;case "horizontalLineTo":g=f[1];break;case "verticalLineTo":h=f[1];break;case "moveTo":c=f[f.length-
2],d=f[f.length-1];default:g=f[f.length-2],h=f[f.length-1]}}return e};q.getBoundingBox=function(a){function b(b,c){var d=new Hd(b,c);return a?a.transformPoint(d):d}for(var c=[],d=[],e=Ea.toCurves(this.attr("segments").slice()),f=new Hd(0,0),g=0,h;h=e[g++];)switch(h[0]){case "moveTo":var i=b(h[1],h[2]),f=i;c.push(i.x);d.push(i.y);break;case "curveTo":var i=b(h[1],h[2]),j=b(h[3],h[4]);h=b(h[5],h[6]);f=Ea.getBoundsOfCurve(f.x,f.y,i.x,i.y,j.x,j.y,h.x,h.y);c.push(f.left,f.right);d.push(f.top,f.bottom);
f=h}e={};e.left=Xf.apply(null,c);e.right=Jd.apply(null,c);e.top=Xf.apply(null,d);e.bottom=Jd.apply(null,d);e.width=e.right-e.left;e.height=e.bottom-e.top;return e};M.module$exports=sc;M.module$exports&&(M=M.module$exports);var P={},id=M,wi=n,Ld=Me.prototype=Object.create(id.prototype),Yf=id.prototype.attr;Ld.attr=function(a,b){var c=arguments.length;return!this._isProcessingPathAttribute&&1===c&&"string"!==typeof a?(this._isProcessingPathAttribute=!0,Yf.call(this,a),this.clear(),this._make(),this._isProcessingPathAttribute=
!1,this):Yf.apply(this,arguments)};Ld.morphTo=function(){throw Error("SpecialAttrPath's are not morphable");};Ld._make=function(){};P.module$exports=Me;P.module$exports&&(P=P.module$exports);var Sb={},Zf=M,Ne=P;Zf.arc=function(a,b,c,d,e,f){return(new Zf((new jd(a,b,c,d,e,f)).segments())).attr({x:a,y:b})};var $f=Math.PI,ag=2*$f,bg=Math.sin,cg=Math.cos,lk=Math.abs;(jd.prototype=Object.create(Ne.prototype))._make=function(){var a=this._attributes,b=a.radius,c=a.startAngle,d=a.endAngle,e=a.antiClockwise,
e=!!e,f,a=e?d:c;f=e?ag-c:d;d=lk(f-a);c=b*cg(a);a=b*bg(a);d<ag?(e=b*cg(f),f=b*bg(f)):(e=c,f=a-1.0E-4);return this.moveTo(c,a).arcTo(b,b,0,d<$f?0:1,1,e,f)};Sb.module$exports=jd;Sb.module$exports&&(Sb=Sb.module$exports);var Tb={},dg=M,Oe=P;dg.circle=function(a,b,c){return(new dg((new kd(a,b,c)).segments())).attr({x:a,y:b})};(kd.prototype=Object.create(Oe.prototype))._make=function(){var a=this._attributes.radius;this.moveTo(a,0).arcTo(a,a,0,0,0,-a,0).arcTo(a,a,0,0,0,a,0)};Tb.module$exports=kd;Tb.module$exports&&
(Tb=Tb.module$exports);var Ub={},eg=M,Pe=P;eg.ellipse=function(a,b,c,d){return(new eg((new ld(a,b,c,d)).segments())).attr({x:a,y:b})};(ld.prototype=Object.create(Pe.prototype))._make=function(){var a=this._attributes,b=a.radiusX,a=a.radiusY;this.moveTo(b,0).arcTo(b,a,0,0,0,-b,0).arcTo(b,a,0,0,0,b,0)};Ub.module$exports=ld;Ub.module$exports&&(Ub=Ub.module$exports);var Sa={},fg=M,Qe=P;fg.polygon=function(a,b,c,d){return(new fg((new md(a,b,c,d)).segments())).attr({x:a,y:b})};var mk=2*Math.PI,nk=Math.sin,
ok=Math.cos;(md.prototype=Object.create(Qe.prototype))._make=function(){var a=this._attributes,b=a.x,c=a.y,d=a.sides,a=a.radius;if(!(3<=d))throw RangeError("A polygon needs at least 3 sides.");d>>>=0;this.attr({x:b,y:c});this.moveTo(0,-a);for(b=1;b<d;b++)c=mk*b/d,this.lineTo(nk(c)*a,-ok(c)*a);this.closePath()};Sa.module$exports=md;Sa.module$exports&&(Sa=Sa.module$exports);var Vb={},gg=M,Re=P;gg.rect=function(a,b,c,d,e){return(new gg((new nd(a,b,c,d,e)).segments())).attr({x:a,y:b})};(nd.prototype=
Object.create(Re.prototype))._make=function(){var a=this._attributes,b=a.width,c=a.height,d=a.cornerRadius,e,f;d?(e=d[0]||d,f=d[1]||d,a=d[2]||d,d=d[3]||d,this.moveTo(0,e).arcBy(e,e,0,0,1,e,-e).lineBy(b-e-f,0).arcBy(f,f,0,0,1,f,f).lineBy(0,c-f-a).arcBy(a,a,0,0,1,-a,a).lineBy(-(b-d-a),0).arcBy(d,d,0,0,1,-d,-d)):this.moveTo(0,0).lineBy(b,0).lineBy(0,c).lineBy(-b,0);this.closePath()};Vb.module$exports=nd;Vb.module$exports&&(Vb=Vb.module$exports);var Wb={},hg=M,Se=P,pk=Sa;hg.star=function(a,b,c,d,e){return(new hg((new od(a,
b,c,d,e)).segments())).attr({x:a,y:b})};(od.prototype=Object.create(Se.prototype))._make=function(){var a=this._attributes,b=a.x,c=a.y,d=0|a.rays,e=a.factor,a=a.radius;if(!(3<=d))throw RangeError("A star needs at least 3 rays.");this.segments((new pk(b,c,a,d)).segments());var b=this.segments(),c=b[0],f,g=[c.slice()];if(!(0<=e||0>e)){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<d;a++)f=b[(a+1)%d],g.push(["lineTo",(c[1]+f[1])/2*e,(c[2]+
f[2])/2*e],f),c=f;f[0]="closePath";f.length=1;this.segments(g)};Wb.module$exports=od;Wb.module$exports&&(Wb=Wb.module$exports);var Xb={},qk=va,Ue=ka,xi=la,Ve=n.descriptorData,ig=Te.prototype=Object.create(Ue.prototype);ig._load=function(){for(var a=this,b=this.sources,c=0,d=b.length;c<d;++c)new qk(this._loader,b[c],function(b,c){b?a.emit("error",c):a._bitmapLoaded(this)})};ig._bitmapLoaded=function(a){var b=this._callback;this.addChild(a);b&&this.displayList.children.length==this.sources.length&&
this.emit("load",b)};Xb.module$exports=Te;Xb.module$exports&&(Xb=Xb.module$exports);var Yb={},We=Qa,Xe=n.descriptorData,Md=pd.prototype=Object.create(We.prototype);Md.clone=function(){return new pd(this._loader,this._request)};Md.notify=function(a,b){switch(a){case "load":"undefined"!==typeof b&&this.attr({width:b.width,height:b.height});this.emitAsync("load",this);break;case "error":this.emitAsync("error",Error(b.error))}return this};Md.getBoundingBox=function(a){var b={top:0,right:0,bottom:0,left:0};
b.right=b.width=this.attr("width")||0;b.bottom=b.height=this.attr("height")||0;if(a){var c=a.transformPoint({x:0,y:0}),a=a.transformPoint({x:b.right,y:b.bottom});b.top=c.y;b.left=c.x;b.right=a.x;b.bottom=a.y;b.width=b.right-b.left;b.height=b.bottom-b.top}return b};Yb.module$exports=pd;Yb.module$exports&&(Yb=Yb.module$exports);var Zb={module$exports:"0.4.3"};Zb.module$exports&&(Zb=Zb.module$exports);var $b={},Nc=n,jg=aa;$b.module$exports={version:Zb,AssetController:Oa,EventEmitter:z,RendererController:Lb,
tools:Nc,defaultRunnerOptions:{},_addDefaultRunnerOptions:function(a){var b=this.defaultRunnerOptions,c;for(c in b)c in a||(a[c]=b[c])},_baseUrl:null,baseUrl:function(){return this._baseUrl||(this._baseUrl=jg.parse(Nc.baseUri(document)))},createRenderer:function(a,b,c,d){d||(d={});this._addDefaultRunnerOptions(d);var e=this.baseUrl();d.baseUrl="baseUrl"in d?e.resolveUri(d.baseUrl).toString():e.toString();"assetBaseUrl"in d&&(d.assetBaseUrl=e.resolveUri(d.assetBaseUrl).toString());"url"in d&&(d.url=
e.resolveUri(d.url).toString());Nc.isArray(d.urls)&&(d.urls=Nc.forEach(d.urls,function(a,b,c){c[b]=e.resolveUri(a).toString()}));"function"===typeof d.code&&(d.code="("+d.code.toString()+"());");var f=new this.RunnerContext(this.runnerUrl,"undefined"===typeof document?null:document,d.baseUrl),a=new this.Renderer(a,b,c,{allowEventDefaults:d.allowEventDefaults,objectsUnderPointer:d.objectsUnderPointer,fpsLog:d.fpsLog,disableContextMenu:d.disableContextMenu}),b=new this.AssetController;return new this.RendererController(a,
b,f,d)},run:function(a,b,c){"string"===typeof a&&(a=document.getElementById(a));b&&"string"!=typeof b?c=b:(c||(c={}),c.url=b);b=this._getSize(a,c.width,c.height);a=this.createRenderer(a,b.width,b.height,c);a.initRenderer();return a},setup:function(a){"runnerContext"in a&&(this.RunnerContext=a.runnerContext);"runnerUrl"in a&&(this.runnerUrl=a.runnerUrl);"baseUrl"in a&&(this._baseUrl=jg.parse(a.baseUrl));"renderer"in a&&(this.Renderer=a.renderer);return this},_getSize:function(a,b,c){var d;if(!b||!c)a?
(d=a.ownerDocument.defaultView,d=d.getComputedStyle(a,null),b||(b=a.clientWidth-parseInt(d.paddingLeft)-parseInt(d.paddingRight)),c||(c=a.clientWidth-parseInt(d.paddingLeft)-parseInt(d.paddingRight))):b=c=0;return{width:b,height:c}}};$b.module$exports&&($b=$b.module$exports);var ac={},rk=function(){try{var a=new Worker("data:application/javascript,"+encodeURIComponent("this.onmessage=function(e){postMessage(e.data)}"));a.onmessage=function(){a.terminate()};a.postMessage("");return!0}catch(b){return!1}}(),
sk=function(){var a,b,c,d;try{return a=new Blob(["this.onmessage=function(e){postMessage(e.data)}"],{type:"text/javascript"}),c=window.URL||window.webkitURL,b=c.createObjectURL(a),d=new Worker(b),d.onmessage=function(){d.terminate();c.revokeObjectURL(b)},d.postMessage(""),!0}catch(e){return b&&c.revokeObjectURL(b),!1}}();ac.module$exports={getUrl:function(a){var b=window.URL||window.webkitURL,a="("+a+")();";return sk?(a=new Blob([a],{type:"text/javascript"}),b.createObjectURL(a)):rk?"data:application/javascript,"+
encodeURIComponent(a):""}};ac.module$exports&&(ac=ac.module$exports);var bc={},kg=n,lg=z,tk=Qb,uk=T,vk=M,wk=P,xk=Vb,yk=Sa,zk=Wb,Ak=Ub,Bk=Tb,Ck=Sb,Dk=va,Ek=V,Fk=ka,Gk=Ka,Hk=sa,Ik=Fa,Jk=Ob,Kk=ga,Lk=Xb,Mk=B,Nk=ja,Ok=Cb,Pk=La,Qk=Pb,Rk=Yb,Sk=Ia,Tk=ia,Uk=Ab,Vk=Zb;bc.module$exports=function(a,b){var c=this.exports={DOMElement:Uk,DisplayObject:Ek,Group:Fk,Matrix:Kk,Text:Ok,TextSpan:Pk,Path:vk,SpecialAttrPath:wk,Rect:xk,Polygon:yk,Star:zk,Ellipse:Ak,Circle:Bk,Arc:Ck,DisplayList:Tk.DisplayList,EventEmitter:lg,
Point:uk,color:Mk,tools:kg,gradient:Nk,easing:Ik,filter:Sk,stage:a,version:Vk};this.assetLoader=b;c.Animation=fa(Gk,[a]);c.KeyframeAnimation=fa(Hk,[a]);c.Bitmap=fa(Dk,[b]);c.FontFamily=fa(Jk,[b]);c.Movie=fa(tk,[a,null]);c.Sprite=fa(Lk,[b]);c.Video=fa(Rk,[b]);c.Audio=fa(Qk,[b]);c.bonsai=c;c.env=c.environment=kg.mixin({windowHeight:0,windowWidth:0,windowScrollX:0,windowScrollY:0,offsetX:0,offsetY:0},lg)};bc.module$exports&&(bc=bc.module$exports);var Ta={},Wk=z,mg=ia,Xk=B,Yk=Ma,cc=n,yi=xc,$e=ob,af=bc,
Zk=mb,Oc=aa,tc=cc.hitch,zi=mg.DisplayList,ng=Ze.prototype={_isFrozen:!0,assetBaseUrl:new Oc(null,null,""),height:Infinity,width:Infinity,destroy:function(){clearInterval(this._interval);return this},freeze:function(){clearInterval(this._interval);this._isFrozen=!0;return this},handleEvent:function(a){var b=a.command,c=a.data;switch(b){case "options":this.setOptions(c);break;case "play":case "stop":case "freeze":case "unfreeze":this[b](c);break;case "assetLoadSuccess":this.assetLoader.handleEvent("load",
c.id,c.loadData);break;case "assetLoadError":this.assetLoader.handleEvent("error",c.id,c.loadData);break;case "userevent":a=this.registry.displayObjects;if(b=(b=c.targetId)?a[b]:this){var d=c.event;d.target=b;var e=c.relatedTargetId;if(0===e||0<e)d.relatedTarget=a[e]||this;if(c=c.objectsUnderPointerIds)for(var e=d.underPointer=[],f=0,g;g=c[f];f+=1)e[f]=a[g];Zk(d).emitOn(b)}break;case "env":cc.mixin(this.env.exports.env,c);this.env.exports.env.emit("change",c);break;case "message":"category"in a?this.emit("message:"+
a.category,c):this.emit("message",c);break;case "canRender":this._canRender=!0,this.postFrames()}},loadAsset:function(a,b,c,d){a=a||this.assetBaseUrl;cc.forEach(c.resources,function(b){var c=Oc.parse(b.src);"data"!==c.scheme&&(b.src=a.resolveUri(c).toString())});this.post({command:"loadAsset",data:{id:b,type:d,request:c}})},destroyAsset:function(a){this.post({command:"destroyAsset",data:{id:a}})},loadSubMovie:function(){},getSubMovieEnvironment:function(a,b,c){b=this.assetBaseUrl.resolveUri(b);a.url=
b.toString();return new af(a,(new $e(this.registry.pendingAssets)).on("request",tc(this,this.loadAsset,"data"===c.scheme?null:c)))},loop:function(){this.emitFrame();for(var a=this.registry,b=cc.removeValueFromArray(a.movies.movies),c,d,e=0;e<c||e<(c=b.length);)(d=b[e])&&d.emitFrame(),e+=1;this.emit("subMoviesAdvanced");b=[this].concat(b);e=0;for(c=b.length;e<c;++e)(d=b[e])&&d.isPlaying&&d.incrementFrame();c=this._queuedFramesById;d=this._queuedFrames;var e=a.displayObjects,b=a.needsDraw,f=a.needsInsertion,
g;for(g in b){var h=b[g],i=c[g];if(e[g]){a=h.composeRenderMessage?h.composeRenderMessage(d[i]):a={id:+g};if(g in f){delete f[g];var j=h.next;a.next=j&&j.id;a.parent=h.parent.id}h.emit("render");delete a.detach}else h=Ye(h.displayList),a={id:+g,detach:!0},h.length&&(a.children=h);delete b[g];0<=i?d[i]=a:c[g]=d.push(a)-1}this.emit("exitFrame");this.postFrames()},post:function(a){this.messageChannel.notifyRenderer(a);return this},postFrames:function(){var a=this._queuedFrames;this._canRender&&a.length&&
(this._canRender=!1,this._queuedFramesById={},this._queuedFrames=[],this.post({command:"render",data:a,frame:this.currentFrame}))},sendMessage:function(a,b){return 1<arguments.length?this.post({command:"message",category:a,data:b}):this.post({command:"message",data:a})},setFramerate:function(a){if(a){var b=this._isFrozen;this.freeze();this.framerate=Math.abs(a);b||this.unfreeze()}},setOptions:function(a){this.options=a;this.baseUrl=Oc.parse(a.baseUrl);this.assetBaseUrl=Oc.parse(a.assetBaseUrl||a.url||
a.urls&&a.urls[0]||a.baseUrl);this.setFramerate(a.framerate||30);this.width=+a.width||Infinity;this.height=+a.height||Infinity;return this},setRendering:function(a){"crispEdges"===a&&this.post({command:"renderConfig",data:{item:"crispEdges",value:!0}})},setBackgroundColor:function(a){this.post({command:"renderConfig",data:{item:"backgroundColor",value:Xk.parse(a)}})},unfreeze:function(){this._isFrozen&&(this._interval=setInterval(tc(this,this.loop),1E3/this.framerate),this._isFrozen=!1)}};cc.mixin(ng,
Wk,mg.timelineMethods,Yk);delete ng.markUpdate;Ta.module$exports=Ze;Ta.module$exports&&(Ta=Ta.module$exports);var dc={},$k=Ta,og=db,Ua=n;dc.module$exports=function(a,b){var c=b.document,d=og(function(a,b){var d=c.createElement("script");d.src=a;d.onload=function(){b(null)};d.onerror=function(){b("Could not load: "+a)};c.documentElement.appendChild(d)});b.load=function(a,b){return d.load(a,b)};b.wait=function(){return d.wait()};b.done=function(){return d.done()};var e=new $k(a),f=e.env.exports;Ua.mixin(b,
f);var g=b.exports={};e.loadSubMovie=function(a,b,d,k){4>arguments.length&&(k=d,d=b,b=null);var a=this.assetBaseUrl.resolveUri(a),b=b?a.resolveUri(b):a,m=c.createElement("iframe");c.documentElement.appendChild(m);var l=m.contentWindow,n=k||new f.Movie,m=e.getSubMovieEnvironment(n,a,b);l.document.open();l.document.close();Ua.mixin(l,m.exports);delete g.stage;Ua.mixin(l.bonsai,g);Ua.mixin(l,g);l.stage=n;n.root=this;og(function(a,b){var c=l.document.createElement("script");c.src=a;c.onload=function(){b(null)};
c.onerror=function(){b("Could not load: "+a)};l.document.documentElement.appendChild(c)}).load(e.assetBaseUrl.resolveUri(a),function(a){a?d.call(n,a):d.call(n,null,n)})};a.on("message",function(c){"loadScript"===c.command?d.load(c.url,function(){a.notify({command:"scriptLoaded",url:c.url})}):"runScript"===c.command?d.load("data:text/javascript,"+encodeURIComponent(c.code)):"exposePluginExports"===c.command&&(delete g.stage,Ua.mixin(f,g),Ua.mixin(b,g))});e.unfreeze();a.notifyRenderer({command:"isReady"})};
dc.module$exports&&(dc=dc.module$exports);var ec={},al=Ta,bl=db,pg=n;ec.module$exports=function(a){"console"in self||(self.console={log:function(){try{a.notifyRenderer({command:"debug",data:[].map.call(arguments,function(a){return"function"==typeof a?""+a:a})})}catch(b){a.notifyRenderer({command:"debug",data:"Error logging argument: ("+b+")"})}}});var b=bl(function(a,b){try{importScripts(a),b(null)}catch(c){console.log(">>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 al(a),d=c.env.exports;pg.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,pg.mixin(self,self.exports))});c.loadSubMovie=function(a,b,g,h){4>arguments.length&&(h=g,g=b,b=null);var a=this.assetBaseUrl.resolveUri(a),
b=b?a.resolveUri(b):a,i=h||new d.Movie,j=c.getSubMovieEnvironment(i,a,b).exports,k=[],m=[];i.root=this;for(var l in j)k.push(l),m.push(j[l]);Ai(a,function(a){k.push(a);Function.apply(null,k).apply(i,m);g.call(i,null,i)},function(b){g.call(i,b+":"+a)})};c.unfreeze();a.notifyRenderer({command:"isReady"})};ec.module$exports&&(ec=ec.module$exports);var Nd={},N=$b,cl=Ha,dl=dc,qg=pb,el=ec,rg=Kb,fl=Mb,sg=n,gl=ac;if("undefined"!=typeof window&&window.messageChannel)setTimeout(function(){var a=window.messageChannel;
delete window.messageChannel;dl(a,window)},1);else if("undefined"!=typeof importScripts){var Pc,tg=function(a){Pc.notify(a.data)};Pc=new cl(function(a){postMessage(a)},function(){removeEventListener("message",tg);Pc=null});addEventListener("message",tg);el(Pc)}else{window.bonsai=N;var ug=gl.getUrl(__bonsaiRunnerCode__);N.Renderer=fl;N.IframeRunnerContext=qg;N.WorkerRunnerContext=rg;var hl=N.run;N.run=sg.hitch(N,function(a,b,c){N.setup({baseUrl:N._baseUrl||sg.baseUri(document),runnerContext:N.RunnerContext||
(ug?rg:qg),runnerUrl:N.runnerUrl||ug||""+__bonsaiRunnerCode__});return hl.apply(N,arguments)})}Nd.module$exports&&(Nd=Nd.module$exports)})();