-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconcurrentgophers.js
719 lines (719 loc) · 362 KB
/
concurrentgophers.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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
(function(r){function m(a,b){function c(){}c.prototype=a;var e=new c,f;for(f in b)e[f]=b[f];b.toString!==Object.prototype.toString&&(e.toString=b.toString);return e}function t(a,b){if(null==b)return null;null==b.__id__&&(b.__id__=L++);var c;null==a.hx__closures__?a.hx__closures__={}:c=a.hx__closures__[b.__id__];null==c&&(c=function(){return c.method.apply(c.scope,arguments)},c.scope=a,c.method=b,a.hx__closures__[b.__id__]=c);return c}r.openfl=r.openfl||{};var g={},i=function(){return p.Boot.__string_rec(this,
"")},G;G=function(){};g["_Map.Map_Impl_"]=G;G.__name__=["_Map","Map_Impl_"];var j=function(){};g.ApplicationMain=j;j.__name__=["ApplicationMain"];j.preloader=null;j.embed=r.openfl.embed=function(a,b,d,e){var f=null;null!=a&&(f=window.document.getElementById(a));a=null;null!=e&&(e=s.replace(e,"#",""),a=-1<e.indexOf("0x")?k.parseInt(e):k.parseInt("0x"+e));c.Lib.create(f,b,d,a);j.preloader=new z;c.Lib.current.addChild(j.preloader);j.preloader.onInit();b=[];e=new Image;d="assets/bigpile.png";j.images.set(d,
e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/empty.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/emptypile.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/full.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/function.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/gopher.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=
d;j.total++;e=new Image;d="assets/gophercolor16x16.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/gophercolor16x16flipped.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/oven.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/pick.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;e=new Image;d="assets/shovel.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;
e=new Image;d="assets/smallpile.png";j.images.set(d,e);e.onload=j.image_onLoad;e.src=d;j.total++;if(0==j.total)j.start();else{for(d=j.urlLoaders.keys();d.hasNext();)e=d.next(),f=j.urlLoaders.get(e),f.addEventListener("complete",j.loader_onComplete),f.load(new c.net.URLRequest(e));for(d=0;d<b.length;)e=b[d],++d,f=new c.media.Sound,f.addEventListener(c.events.Event.COMPLETE,j.sound_onComplete),f.addEventListener(c.events.IOErrorEvent.IO_ERROR,j.sound_onIOError),f.load(new c.net.URLRequest(e+".ogg"))}};
j.main=function(){};j.start=function(){j.preloader.addEventListener(c.events.Event.COMPLETE,j.preloader_onComplete);j.preloader.onLoaded()};j.image_onLoad=function(){j.assetsLoaded++;j.preloader.onUpdate(j.assetsLoaded,j.total);j.assetsLoaded==j.total&&j.start()};j.loader_onComplete=function(){j.assetsLoaded++;j.preloader.onUpdate(j.assetsLoaded,j.total);j.assetsLoaded==j.total&&j.start()};j.preloader_onComplete=function(){j.preloader.removeEventListener(c.events.Event.COMPLETE,j.preloader_onComplete);
c.Lib.current.removeChild(j.preloader);j.preloader=null;for(var a=!1,b=0,d=q.getClassFields(v);b<d.length;){var e=d[b];++b;if("main"==e){a=!0;break}}a?n.callMethod(v,n.field(v,"main"),[]):(a=q.createInstance(C,[]),p.Boot.__instanceof(a,c.display.DisplayObject)?c.Lib.current.addChild(a):(h.Log.trace("Error: No entry point found",{fileName:"ApplicationMain.hx",lineNumber:312,className:"ApplicationMain",methodName:"preloader_onComplete"}),h.Log.trace("If you are using DCE with a static main, you may need to @:keep the function",
{fileName:"ApplicationMain.hx",lineNumber:313,className:"ApplicationMain",methodName:"preloader_onComplete"})))};j.sound_onComplete=function(){j.assetsLoaded++;j.preloader.onUpdate(j.assetsLoaded,j.total);j.assetsLoaded==j.total&&j.start()};j.sound_onIOError=function(){j.assetsLoaded++;j.preloader.onUpdate(j.assetsLoaded,j.total);j.assetsLoaded==j.total&&j.start()};var c={events:{}};c.events.IEventDispatcher=function(){};g["openfl.events.IEventDispatcher"]=c.events.IEventDispatcher;c.events.IEventDispatcher.__name__=
["openfl","events","IEventDispatcher"];c.events.IEventDispatcher.prototype={__class__:c.events.IEventDispatcher};c.events.EventDispatcher=function(a){null!=a&&(this.__targetDispatcher=a)};g["openfl.events.EventDispatcher"]=c.events.EventDispatcher;c.events.EventDispatcher.__name__=["openfl","events","EventDispatcher"];c.events.EventDispatcher.__interfaces__=[c.events.IEventDispatcher];c.events.EventDispatcher.__sortByPriority=function(a,b){return a.priority==b.priority?0:a.priority>b.priority?-1:
1};c.events.EventDispatcher.prototype={addEventListener:function(a,b,d,e){null==e&&(e=0);null==d&&(d=!1);null==this.__eventMap&&(this.__eventMap=new h.ds.StringMap);if(this.__eventMap.exists(a))a=this.__eventMap.get(a),a.push(new c.events._EventDispatcher.Listener(b,d,e)),a.sort(c.events.EventDispatcher.__sortByPriority);else{var f=[];f.push(new c.events._EventDispatcher.Listener(b,d,e));this.__eventMap.set(a,f)}},dispatchEvent:function(a){if(null==this.__eventMap||null==a)return!1;var b=this.__eventMap.get(a.type);
if(null==b)return!1;null==a.target&&(a.target=null!=this.__targetDispatcher?this.__targetDispatcher:this);a.currentTarget=this;for(var c=0==a.eventPhase,e=0,f;e<b.length;){f=b[e];if(f.useCapture==c&&(f.callback(a),a.__isCancelledNow))break;f==b[e]&&e++}return!0},hasEventListener:function(a){return null==this.__eventMap?!1:this.__eventMap.exists(a)},removeEventListener:function(a,b,c){null==c&&(c=!1);if(null!=this.__eventMap){var e=this.__eventMap.get(a);if(null!=e){for(var f=0,l=e.length;f<l;){var g=
f++;if(e[g].match(b,c)){e.splice(g,1);break}}0==e.length&&this.__eventMap.remove(a);this.__eventMap.iterator().hasNext()||(this.__eventMap=null)}}},toString:function(){return"[object "+q.getClassName(q.getClass(this)).split(".").pop()+"]"},willTrigger:function(a){return this.hasEventListener(a)},__class__:c.events.EventDispatcher};c.display={};c.display.IBitmapDrawable=function(){};g["openfl.display.IBitmapDrawable"]=c.display.IBitmapDrawable;c.display.IBitmapDrawable.__name__=["openfl","display",
"IBitmapDrawable"];c.display.IBitmapDrawable.prototype={__class__:c.display.IBitmapDrawable};c.display.DisplayObject=function(){c.events.EventDispatcher.call(this);this.set_alpha(1);this.set_rotation(0);this.set_scaleX(1);this.set_scaleY(1);this.set_visible(!0);this.set_x(0);this.set_y(0);this.__worldAlpha=1;this.__worldTransform=new c.geom.Matrix;this.__worldVisible=!0;this.set_name("instance"+ ++c.display.DisplayObject.__instanceCount)};g["openfl.display.DisplayObject"]=c.display.DisplayObject;
c.display.DisplayObject.__name__=["openfl","display","DisplayObject"];c.display.DisplayObject.__interfaces__=[c.display.IBitmapDrawable];c.display.DisplayObject.__super__=c.events.EventDispatcher;c.display.DisplayObject.prototype=m(c.events.EventDispatcher.prototype,{dispatchEvent:function(a){var b=c.events.EventDispatcher.prototype.dispatchEvent.call(this,a);if(a.__isCancelled)return!0;a.bubbles&&(null!=this.parent&&this.parent!=this)&&(a.eventPhase=2,this.parent.dispatchEvent(a));return b},getBounds:function(a){var b=
this.__getTransform();null!=a&&(b=new c.geom.Matrix(b.a,b.b,b.c,b.d,b.tx,b.ty),b.concat(a.__worldTransform.clone().invert()));a=new c.geom.Rectangle;this.__getBounds(a,b);return a},getRect:function(a){return this.getBounds(a)},globalToLocal:function(a){return this.__getTransform().clone().invert().transformPoint(a)},hitTestObject:function(){return!1},hitTestPoint:function(){return!1},localToGlobal:function(a){return this.__getTransform().transformPoint(a)},__applyStyle:function(a,b,c,e){b&&this.__worldTransformChanged&&
this.__style.setProperty(a.transformProperty,this.__worldTransform.to3DString(a.roundPixels),null);this.__worldZ!=++a.z&&(this.__worldZ=a.z,this.__style.setProperty("z-index",k.string(this.__worldZ),null));c&&this.__worldAlphaChanged&&(1>this.__worldAlpha?this.__style.setProperty("opacity",k.string(this.__worldAlpha),null):this.__style.removeProperty("opacity"));e&&this.__worldClipChanged&&(null==this.__worldClip?this.__style.removeProperty("clip"):(a=this.__worldClip.transform(this.__worldTransform.clone().invert()),
this.__style.setProperty("clip","rect("+a.y+"px, "+a.get_right()+"px, "+a.get_bottom()+"px, "+a.x+"px)",null)))},__broadcast:function(a){if(null!=this.__eventMap&&this.hasEventListener(a.type)){var b=c.events.EventDispatcher.prototype.dispatchEvent.call(this,a);return a.__isCancelled?!0:b}return!1},__getBounds:function(){},__getInteractive:function(){},__getLocalBounds:function(a){this.__getTransform();this.__getBounds(a,new c.geom.Matrix)},__getTransform:function(){if(0<c.display.DisplayObject.__worldTransformDirty){for(var a=
[],b=this,d=this.__transformDirty;null!=b.parent;)a.push(b),b=b.parent,b.__transformDirty&&(d=!0);if(d)for(b=a.length;0<=--b;)a[b].__update(!0,!1)}return this.__worldTransform},__hitTest:function(){return!1},__initializeElement:function(a,b){this.__style=a.style;this.__style.setProperty("position","absolute",null);this.__style.setProperty("top","0",null);this.__style.setProperty("left","0",null);this.__style.setProperty(b.transformOriginProperty,"0 0 0",null);b.element.appendChild(a);this.__worldVisibleChanged=
this.__worldTransformChanged=this.__worldClipChanged=this.__worldAlphaChanged=!0;this.__worldZ=-1},__renderCanvas:function(){},__renderDOM:function(){},__renderMask:function(){},__setStageReference:function(a){this.stage!=a&&(null!=this.stage&&this.dispatchEvent(new c.events.Event(c.events.Event.REMOVED_FROM_STAGE,!1,!1)),this.stage=a,null!=a&&this.dispatchEvent(new c.events.Event(c.events.Event.ADDED_TO_STAGE,!1,!1)))},__setRenderDirty:function(){this.__renderDirty||(this.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++)},
__setTransformDirty:function(){this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++)},__update:function(a,b){this.__renderable=this.get_visible()&&0!=this.get_scaleX()&&0!=this.get_scaleY()&&!this.__isMask;if(this.get_rotation()!=this.__rotationCache){this.__rotationCache=this.get_rotation();var d=this.get_rotation()*(Math.PI/180);this.__rotationSine=Math.sin(d);this.__rotationCosine=Math.cos(d)}if(null!=this.parent){var d=this.parent.__worldTransform,e=
this.__rotationCosine*this.get_scaleX(),f=this.__rotationSine*this.get_scaleX(),l=-this.__rotationSine*this.get_scaleY(),g=this.__rotationCosine*this.get_scaleY(),h=d.a,k=d.b,u=d.c,i=d.d;this.__worldTransform.a=e*h+f*u;this.__worldTransform.b=e*k+f*i;this.__worldTransform.c=l*h+g*u;this.__worldTransform.d=l*k+g*i;null==this.get_scrollRect()?(this.__worldTransform.tx=this.get_x()*h+this.get_y()*u+d.tx,this.__worldTransform.ty=this.get_x()*k+this.get_y()*i+d.ty):(this.__worldTransform.tx=(this.get_x()-
this.get_scrollRect().x)*h+(this.get_y()-this.get_scrollRect().y)*u+d.tx,this.__worldTransform.ty=(this.get_x()-this.get_scrollRect().x)*k+(this.get_y()-this.get_scrollRect().y)*i+d.ty)}else this.__worldTransform.a=this.__rotationCosine*this.get_scaleX(),this.__worldTransform.c=-this.__rotationSine*this.get_scaleY(),this.__worldTransform.b=this.__rotationSine*this.get_scaleX(),this.__worldTransform.d=this.__rotationCosine*this.get_scaleY(),null==this.get_scrollRect()?(this.__worldTransform.tx=this.get_x(),
this.__worldTransform.ty=this.get_y()):(this.__worldTransform.tx=this.get_y()-this.get_scrollRect().x,this.__worldTransform.ty=this.get_y()-this.get_scrollRect().y);b&&this.__transformDirty&&(this.__transformDirty=!1,c.display.DisplayObject.__worldTransformDirty--);if(!a&&(this.__worldTransformChanged=!this.__worldTransform.equals(this.__worldTransformCache),this.__worldTransformCache=this.__worldTransform.clone(),d=null,null!=this.parent?(e=this.parent.__worldVisible&&this.get_visible(),this.__worldVisibleChanged=
this.__worldVisible!=e,this.__worldVisible=e,e=this.get_alpha()*this.parent.__worldAlpha,this.__worldAlphaChanged=this.__worldAlpha!=e,this.__worldAlpha=e,null!=this.parent.__worldClip&&(d=this.parent.__worldClip.clone()),null!=this.get_scrollRect()&&(e=this.get_scrollRect().clone(),e=e.transform(this.__worldTransform),null!=d&&e.__contract(d.x-this.get_scrollRect().x,d.y-this.get_scrollRect().y,d.width,d.height),d=e)):(this.__worldAlpha=this.get_alpha(),this.__worldVisibleChanged=this.__worldVisible!=
this.get_visible(),this.__worldVisible=this.get_visible(),this.__worldAlphaChanged=this.__worldAlpha!=this.get_alpha(),null!=this.get_scrollRect()&&(d=this.get_scrollRect().clone().transform(this.__worldTransform))),this.__worldClipChanged=null==d&&null!=this.__worldClip||null!=d&&!d.equals(this.__worldClip),this.__worldClip=d,b&&this.__renderDirty))this.__renderDirty=!1},__updateChildren:function(){if((this.__renderable=this.get_visible()&&0!=this.get_scaleX()&&0!=this.get_scaleY()&&!this.__isMask)||
this.__isMask)this.__worldAlpha=this.get_alpha(),this.__transformDirty&&(this.__transformDirty=!1,c.display.DisplayObject.__worldTransformDirty--)},get_alpha:function(){return this.__alpha},set_alpha:function(a){a!=this.__alpha&&!this.__renderDirty&&(this.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++);return this.__alpha=a},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(a){return a},get_height:function(){var a=new c.geom.Rectangle;
this.__getTransform();this.__getBounds(a,new c.geom.Matrix);return a.height*this.get_scaleY()},set_height:function(a){var b=new c.geom.Rectangle;this.__getTransform();this.__getBounds(b,new c.geom.Matrix);a!=b.height?this.set_scaleY(a/b.height):this.set_scaleY(1);return a},get_mask:function(){return this.__mask},set_mask:function(a){a!=this.__mask&&!this.__renderDirty&&(this.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++);null!=this.__mask&&(this.__mask.__isMask=!1);null!=a&&(a.__isMask=
!0);return this.__mask=a},get_mouseX:function(){return null!=this.stage?this.globalToLocal(new c.geom.Point(this.stage.__mouseX,0)).x:0},get_mouseY:function(){return null!=this.stage?this.globalToLocal(new c.geom.Point(0,this.stage.__mouseY)).y:0},get_name:function(){return this.__name},set_name:function(a){return this.__name=a},get_root:function(){return null!=this.stage?c.Lib.current:null},get_rotation:function(){return this.__rotation},set_rotation:function(a){a!=this.__rotation&&!this.__transformDirty&&
(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++);return this.__rotation=a},get_scaleX:function(){return this.__scaleX},set_scaleX:function(a){a!=this.__scaleX&&!this.__transformDirty&&(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++);return this.__scaleX=a},get_scaleY:function(){return this.__scaleY},set_scaleY:function(a){this.__scaleY!=a&&!this.__transformDirty&&(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++);return this.__scaleY=
a},get_scrollRect:function(){return this.__scrollRect},set_scrollRect:function(a){if(a!=this.__scrollRect&&(this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),!this.__renderDirty))this.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++;return this.__scrollRect=a},get_transform:function(){null==this.__transform&&(this.__transform=new c.geom.Transform(this));return this.__transform},set_transform:function(a){if(null==a)throw new c.errors.TypeError("Parameter transform must be non-null.");
null==this.__transform&&(this.__transform=new c.geom.Transform(this));this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++);this.__transform.set_matrix(a.get_matrix().clone());this.__transform.colorTransform=new c.geom.ColorTransform(a.colorTransform.redMultiplier,a.colorTransform.greenMultiplier,a.colorTransform.blueMultiplier,a.colorTransform.alphaMultiplier,a.colorTransform.redOffset,a.colorTransform.greenOffset,a.colorTransform.blueOffset,a.colorTransform.alphaOffset);
return this.__transform},get_visible:function(){return this.__visible},set_visible:function(a){a!=this.__visible&&!this.__renderDirty&&(this.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++);return this.__visible=a},get_width:function(){var a=new c.geom.Rectangle;this.__getTransform();this.__getBounds(a,new c.geom.Matrix);return a.width*this.get_scaleX()},set_width:function(a){var b=new c.geom.Rectangle;this.__getTransform();this.__getBounds(b,new c.geom.Matrix);a!=b.width?this.set_scaleX(a/
b.width):this.set_scaleX(1);return a},get_x:function(){return this.__x},set_x:function(a){a!=this.__x&&!this.__transformDirty&&(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++);return this.__x=a},get_y:function(){return this.__y},set_y:function(a){a!=this.__y&&!this.__transformDirty&&(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++);return this.__y=a},__class__:c.display.DisplayObject,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",
set_width:"set_width",get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_transform:"set_transform",get_transform:"get_transform",set_scrollRect:"set_scrollRect",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_rotation:"set_rotation",get_rotation:"get_rotation",get_root:"get_root",set_name:"set_name",get_name:"get_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_mask:"set_mask",get_mask:"get_mask",
set_height:"set_height",get_height:"get_height",set_filters:"set_filters",get_filters:"get_filters",set_alpha:"set_alpha",get_alpha:"get_alpha"}});c.display.InteractiveObject=function(){c.display.DisplayObject.call(this);this.doubleClickEnabled=!1;this.mouseEnabled=!0;this.needsSoftKeyboard=!1;this.tabEnabled=!0;this.tabIndex=-1};g["openfl.display.InteractiveObject"]=c.display.InteractiveObject;c.display.InteractiveObject.__name__=["openfl","display","InteractiveObject"];c.display.InteractiveObject.__super__=
c.display.DisplayObject;c.display.InteractiveObject.prototype=m(c.display.DisplayObject.prototype,{requestSoftKeyboard:function(){c.Lib.notImplemented("InteractiveObject.requestSoftKeyboard");return!1},__getInteractive:function(a){a.push(this);null!=this.parent&&this.parent.__getInteractive(a)},__class__:c.display.InteractiveObject});c.display.DisplayObjectContainer=function(){c.display.InteractiveObject.call(this);this.mouseChildren=!0;this.__children=[];this.__removedChildren=[]};g["openfl.display.DisplayObjectContainer"]=
c.display.DisplayObjectContainer;c.display.DisplayObjectContainer.__name__=["openfl","display","DisplayObjectContainer"];c.display.DisplayObjectContainer.__super__=c.display.InteractiveObject;c.display.DisplayObjectContainer.prototype=m(c.display.InteractiveObject.prototype,{addChild:function(a){null!=a&&(null!=a.parent&&a.parent.removeChild(a),this.__children.push(a),a.parent=this,null!=this.stage&&a.__setStageReference(this.stage),a.__transformDirty||(a.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),
a.__renderDirty||(a.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++),a.dispatchEvent(new c.events.Event(c.events.Event.ADDED,!0)));return a},addChildAt:function(a,b){if(b>this.__children.length||0>b)throw"Invalid index position "+b;a.parent==this?o.remove(this.__children,a):(null!=a.parent&&a.parent.removeChild(a),a.parent=this,null!=this.stage&&a.__setStageReference(this.stage),a.__transformDirty||(a.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),a.__renderDirty||
(a.__renderDirty=!0,c.display.DisplayObject.__worldRenderDirty++),a.dispatchEvent(new c.events.Event(c.events.Event.ADDED,!0)));this.__children.splice(b,0,a);return a},areInaccessibleObjectsUnderPoint:function(){return!1},contains:function(a){return-1<o.indexOf(this.__children,a,0)},getChildAt:function(a){return 0<=a&&a<this.__children.length?this.__children[a]:null},getChildByName:function(a){for(var b=0,c=this.__children;b<c.length;){var e=c[b];++b;if(e.get_name()==a)return e}return null},getChildIndex:function(a){for(var b=
0,c=this.__children.length;b<c;){var e=b++;if(this.__children[e]==a)return e}return-1},getObjectsUnderPoint:function(a){var a=this.localToGlobal(a),b=[];this.__hitTest(a.x,a.y,!1,b,!1);b.shift();return b},removeChild:function(a){null!=a&&a.parent==this&&(null!=this.stage&&a.__setStageReference(null),a.parent=null,o.remove(this.__children,a),this.__removedChildren.push(a),a.__transformDirty||(a.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),a.__renderDirty||(a.__renderDirty=!0,
c.display.DisplayObject.__worldRenderDirty++),a.dispatchEvent(new c.events.Event(c.events.Event.REMOVED,!0)));return a},removeChildAt:function(a){return 0<=a&&a<this.__children.length?this.removeChild(this.__children[a]):null},removeChildren:function(a,b){null==b&&(b=2147483647);null==a&&(a=0);if(2147483647==b&&(b=this.__children.length-1,0>b))return;if(!(a>this.__children.length-1)){if(b<a||0>a||b>this.__children.length)throw new c.errors.RangeError("The supplied index is out of bounds.");for(var d=
b-a;0<=d;)this.removeChildAt(a),d--}},setChildIndex:function(a,b){0<=b&&(b<=this.__children.length&&a.parent==this)&&(o.remove(this.__children,a),this.__children.splice(b,0,a))},swapChildren:function(a,b){if(a.parent==this&&b.parent==this){var c=o.indexOf(this.__children,a,0),e=o.indexOf(this.__children,b,0);this.__children[c]=b;this.__children[e]=a}},swapChildrenAt:function(a,b){var c=this.__children[a];this.__children[a]=this.__children[b];this.__children[b]=c},__broadcast:function(a,b){null==a.target&&
(a.target=this);if(b)for(var d=0,e=this.__children;d<e.length;){var f=e[d];++d;f.__broadcast(a,!0);if(a.__isCancelled)return!0}return c.display.InteractiveObject.prototype.__broadcast.call(this,a,b)},__getBounds:function(a,b){if(0!=this.__children.length){var c=null;null!=b&&(c=this.__worldTransform,this.__worldTransform=b,this.__updateChildren(!0));for(var e=0,f=this.__children;e<f.length;){var l=f[e];++e;l.__renderable&&l.__getBounds(a,null)}null!=b&&(this.__worldTransform=c,this.__updateChildren(!0))}},
__hitTest:function(a,b,c,e,f){if(!this.get_visible()||f&&!this.mouseEnabled)return!1;var l=this.__children.length;if(f&&(null==e||!this.mouseChildren))for(;0<=--l;){if(this.__children[l].__hitTest(a,b,c,null,f))return null!=e&&e.push(this),!0}else if(null!=e)for(var g=e.length;0<=--l;)if(this.__children[l].__hitTest(a,b,c,e,f))return e.splice(g,0,this),!0;return!1},__renderCanvas:function(a){if(this.__renderable&&!(0>=this.__worldAlpha)){null!=this.get_scrollRect()&&a.maskManager.pushRect(this.get_scrollRect(),
this.__worldTransform);null!=this.__mask&&a.maskManager.pushMask(this.__mask);for(var b=0,c=this.__children;b<c.length;){var e=c[b];++b;e.__renderCanvas(a)}this.__removedChildren=[];null!=this.__mask&&a.maskManager.popMask();null!=this.get_scrollRect()&&a.maskManager.popMask()}},__renderDOM:function(a){for(var b=0,c=this.__children;b<c.length;){var e=c[b];++b;e.__renderDOM(a)}b=0;for(c=this.__removedChildren;b<c.length;)e=c[b],++b,null==e.stage&&e.__renderDOM(a);this.__removedChildren=[]},__renderMask:function(a){var b=
new c.geom.Rectangle;this.__getTransform();this.__getBounds(b,new c.geom.Matrix);a.context.rect(0,0,b.width,b.height)},__setStageReference:function(a){if(this.stage!=a){null!=this.stage&&this.dispatchEvent(new c.events.Event(c.events.Event.REMOVED_FROM_STAGE,!1,!1));this.stage=a;null!=a&&this.dispatchEvent(new c.events.Event(c.events.Event.ADDED_TO_STAGE,!1,!1));for(var b=0,d=this.__children;b<d.length;){var e=d[b];++b;e.__setStageReference(a)}}},__update:function(a,b){c.display.InteractiveObject.prototype.__update.call(this,
a,b);if((this.__renderable||this.__worldAlphaChanged||this.__worldClipChanged||this.__worldTransformChanged||this.__worldVisibleChanged)&&b)for(var d=0,e=this.__children;d<e.length;){var f=e[d];++d;f.__update(a,!0)}},__updateChildren:function(a){c.display.InteractiveObject.prototype.__updateChildren.call(this,a);for(var b=0,d=this.__children;b<d.length;){var e=d[b];++b;e.__update(a,!0)}},get_numChildren:function(){return this.__children.length},__class__:c.display.DisplayObjectContainer,__properties__:m(c.display.InteractiveObject.prototype.__properties__,
{get_numChildren:"get_numChildren"})});c.display.Sprite=function(){c.display.DisplayObjectContainer.call(this);this.buttonMode=!1;this.useHandCursor=!0};g["openfl.display.Sprite"]=c.display.Sprite;c.display.Sprite.__name__=["openfl","display","Sprite"];c.display.Sprite.__super__=c.display.DisplayObjectContainer;c.display.Sprite.prototype=m(c.display.DisplayObjectContainer.prototype,{startDrag:function(){c.Lib.notImplemented("Sprite.startDrag")},stopDrag:function(){c.Lib.notImplemented("Sprite.stopDrag")},
__getBounds:function(a,b){c.display.DisplayObjectContainer.prototype.__getBounds.call(this,a,b);null!=this.__graphics&&this.__graphics.__getBounds(a,null!=b?b:this.__worldTransform)},__hitTest:function(a,b,d,e,f){if(!this.get_visible()||f&&!this.mouseEnabled)return!1;var l=0;null!=e&&(l=e.length);return c.display.DisplayObjectContainer.prototype.__hitTest.call(this,a,b,d,e,f)?!0:null!=this.__graphics&&this.__graphics.__hitTest(a,b,d,this.__worldTransform)?(null!=e&&e.splice(l,0,this),!0):!1},__renderCanvas:function(a){if(this.__renderable&&
!(0>=this.__worldAlpha)){if(null!=this.__graphics&&(this.__graphics.__render(),null!=this.__graphics.__canvas)){null!=this.__mask&&a.maskManager.pushMask(this.__mask);var b=a.context;b.globalAlpha=this.__worldAlpha;var d=this.__worldTransform;a.roundPixels?b.setTransform(d.a,d.b,d.c,d.d,d.tx|0,d.ty|0):b.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);null==this.get_scrollRect()?b.drawImage(this.__graphics.__canvas,this.__graphics.__bounds.x,this.__graphics.__bounds.y):b.drawImage(this.__graphics.__canvas,
this.get_scrollRect().x-this.__graphics.__bounds.x,this.get_scrollRect().y-this.__graphics.__bounds.y,this.get_scrollRect().width,this.get_scrollRect().height,this.__graphics.__bounds.x+this.get_scrollRect().x,this.__graphics.__bounds.y+this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height);null!=this.__mask&&a.maskManager.popMask()}c.display.DisplayObjectContainer.prototype.__renderCanvas.call(this,a)}},__renderDOM:function(a){if(null!=this.stage&&this.__worldVisible&&
this.__renderable&&null!=this.__graphics){if(this.__graphics.__dirty||this.__worldAlphaChanged||null==this.__canvas&&null!=this.__graphics.__canvas)this.__graphics.__render(),null!=this.__graphics.__canvas?(null==this.__canvas&&(this.__canvas=window.document.createElement("canvas"),this.__canvasContext=this.__canvas.getContext("2d"),this.__initializeElement(this.__canvas,a)),this.__canvas.width=this.__graphics.__canvas.width,this.__canvas.height=this.__graphics.__canvas.height,this.__canvasContext.globalAlpha=
this.__worldAlpha,this.__canvasContext.drawImage(this.__graphics.__canvas,0,0)):null!=this.__canvas&&(a.element.removeChild(this.__canvas),this.__style=this.__canvas=null);if(null!=this.__canvas){if(this.__worldTransformChanged){var b=new c.geom.Matrix;b.translate(this.__graphics.__bounds.x,this.__graphics.__bounds.y);b=b.mult(this.__worldTransform);this.__style.setProperty(a.transformProperty,a.roundPixels?"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+(b.tx|0)+", "+(b.ty|
0)+", 0, 1)":"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+b.tx+", "+b.ty+", 0, 1)",null)}this.__applyStyle(a,!1,!1,!0)}}else null!=this.__canvas&&(a.element.removeChild(this.__canvas),this.__style=this.__canvas=null);c.display.DisplayObjectContainer.prototype.__renderDOM.call(this,a)},__renderMask:function(a){null!=this.__graphics?this.__graphics.__renderMask(a):c.display.DisplayObjectContainer.prototype.__renderMask.call(this,a)},get_graphics:function(){null==this.__graphics&&
(this.__graphics=new c.display.Graphics);return this.__graphics},__class__:c.display.Sprite,__properties__:m(c.display.DisplayObjectContainer.prototype.__properties__,{get_graphics:"get_graphics"})});var v=function(){c.display.Sprite.call(this);b.Go_main_Start.callFromHaxe(this)};g.Main=v;v.__name__=["Main"];v.__super__=c.display.Sprite;v.prototype=m(c.display.Sprite.prototype,{__class__:v});var C=function(){this.stage=c.Lib.current.stage;v.call(this);this.dispatchEvent(new c.events.Event(c.events.Event.ADDED_TO_STAGE,
!1,!1))};g.DocumentClass=C;C.__name__=["DocumentClass"];C.__super__=v;C.prototype=m(v.prototype,{__class__:C});c.AssetLibrary=function(){};g["openfl.AssetLibrary"]=c.AssetLibrary;c.AssetLibrary.__name__=["openfl","AssetLibrary"];c.AssetLibrary.prototype={exists:function(){return!1},getBitmapData:function(){return null},getBytes:function(){return null},getFont:function(){return null},getMovieClip:function(){return null},getMusic:function(a){return this.getSound(a)},getPath:function(){return null},
getSound:function(){return null},getText:function(a){a=this.getBytes(a);return null==a?null:a.readUTFBytes(a.length)},isLocal:function(){return!0},list:function(){return null},load:function(a){a(this)},loadBitmapData:function(a,b){b(this.getBitmapData(a))},loadBytes:function(a,b){b(this.getBytes(a))},loadFont:function(a,b){b(this.getFont(a))},loadMovieClip:function(a,b){b(this.getMovieClip(a))},loadMusic:function(a,b){b(this.getMusic(a))},loadSound:function(a,b){b(this.getSound(a))},loadText:function(a,
b){this.loadBytes(a,function(a){null==a?b(null):b(a.readUTFBytes(a.length))})},__class__:c.AssetLibrary};var D=function(){this.type=new h.ds.StringMap;this.path=new h.ds.StringMap;this.className=new h.ds.StringMap;c.AssetLibrary.call(this);var a;a="assets/bigpile.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/empty.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/emptypile.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/full.png";this.path.set(a,
a);this.type.set(a,c.AssetType.IMAGE);a="assets/function.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/gopher.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/gophercolor16x16.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/gophercolor16x16flipped.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/oven.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/pick.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);
a="assets/shovel.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE);a="assets/smallpile.png";this.path.set(a,a);this.type.set(a,c.AssetType.IMAGE)};g.DefaultAssetLibrary=D;D.__name__=["DefaultAssetLibrary"];D.__super__=c.AssetLibrary;D.prototype=m(c.AssetLibrary.prototype,{exists:function(a,b){var d=this.type.get(a);return null!=d&&(d==b||(b==c.AssetType.SOUND||b==c.AssetType.MUSIC)&&(d==c.AssetType.MUSIC||d==c.AssetType.SOUND)||b==c.AssetType.BINARY||null==b)?!0:!1},getBitmapData:function(a){return c.display.BitmapData.fromImage(function(b){b=
b.path.get(a);return j.images.get(b)}(this))},getBytes:function(a){var b=null,b=this.path.get(a),a=j.urlLoaders.get(b).data;"string"==typeof a?(b=new c.utils.ByteArray,b.writeUTFBytes(a)):b=p.Boot.__instanceof(a,c.utils.ByteArray)?a:null;return null!=b?(b.position=0,b):null},getFont:function(a){return p.Boot.__cast(q.createInstance(this.className.get(a),[]),c.text.Font)},getMusic:function(a){var b=new c.media.Sound;b.__buffer=!0;b.load(new c.net.URLRequest(this.path.get(a)));return b},getPath:function(a){return this.path.get(a)},
getSound:function(a){return new c.media.Sound(new c.net.URLRequest(this.path.get(a)))},getText:function(a){var b=null,a=this.path.get(a),a=j.urlLoaders.get(a).data;if("string"==typeof a)return a;b=p.Boot.__instanceof(a,c.utils.ByteArray)?a:null;return null!=b?(b.position=0,b.readUTFBytes(b.length)):null},isLocal:function(){return!0},list:function(a){for(var b=[],c=this.type.keys();c.hasNext();){var e=c.next();(null==a||this.exists(e,a))&&b.push(e)}return b},loadBitmapData:function(a,b){if(this.path.exists(a)){var d=
new c.display.Loader;d.contentLoaderInfo.addEventListener(c.events.Event.COMPLETE,function(a){b(p.Boot.__cast(a.currentTarget.content,c.display.Bitmap).bitmapData)});d.load(new c.net.URLRequest(this.path.get(a)))}else b(this.getBitmapData(a))},loadBytes:function(a,b){if(this.path.exists(a)){var d=new c.net.URLLoader;d.addEventListener(c.events.Event.COMPLETE,function(a){var d=new c.utils.ByteArray;d.writeUTFBytes(a.currentTarget.data);d.position=0;b(d)});d.load(new c.net.URLRequest(this.path.get(a)))}else b(this.getBytes(a))},
loadFont:function(a,b){b(this.getFont(a))},loadMusic:function(a,b){b(this.getMusic(a))},loadSound:function(a,b){b(this.getSound(a))},loadText:function(a,b){if(this.path.exists(a)){var d=new c.net.URLLoader;d.addEventListener(c.events.Event.COMPLETE,function(a){b(a.currentTarget.data)});d.load(new c.net.URLRequest(this.path.get(a)))}else b(this.getText(a))},__class__:D});var o=function(){};g.HxOverrides=o;o.__name__=["HxOverrides"];o.dateStr=function(a){var b=a.getMonth()+1,c=a.getDate(),e=a.getHours(),
f=a.getMinutes(),l=a.getSeconds();return a.getFullYear()+"-"+(10>b?"0"+b:""+b)+"-"+(10>c?"0"+c:""+c)+" "+(10>e?"0"+e:""+e)+":"+(10>f?"0"+f:""+f)+":"+(10>l?"0"+l:""+l)};o.strDate=function(a){switch(a.length){case 8:var a=a.split(":"),b=new Date;b.setTime(0);b.setUTCHours(a[0]);b.setUTCMinutes(a[1]);b.setUTCSeconds(a[2]);return b;case 10:return a=a.split("-"),new Date(a[0],a[1]-1,a[2],0,0,0);case 19:return b=a.split(" "),a=b[0].split("-"),b=b[1].split(":"),new Date(a[0],a[1]-1,a[2],b[0],b[1],b[2]);
default:throw"Invalid date format : "+a;}};o.cca=function(a,b){var c=a.charCodeAt(b);return c!=c?void 0:c};o.substr=function(a,b,c){if(null!=b&&0!=b&&null!=c&&0>c)return"";null==c&&(c=a.length);0>b?(b=a.length+b,0>b&&(b=0)):0>c&&(c=a.length+c-b);return a.substr(b,c)};o.indexOf=function(a,b,c){var e=a.length;0>c&&(c+=e,0>c&&(c=0));for(;c<e;){if(a[c]===b)return c;c++}return-1};o.remove=function(a,b){var c=o.indexOf(a,b,0);if(-1==c)return!1;a.splice(c,1);return!0};o.iter=function(a){return{cur:0,arr:a,
hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}};var w=function(){this.length=0};g.List=w;w.__name__=["List"];w.prototype={add:function(a){a=[a];null==this.h?this.h=a:this.q[1]=a;this.q=a;this.length++},push:function(a){this.h=a=[a,this.h];null==this.q&&(this.q=a);this.length++},first:function(){return null==this.h?null:this.h[0]},pop:function(){if(null==this.h)return null;var a=this.h[0];this.h=this.h[1];null==this.h&&(this.q=null);this.length--;
return a},isEmpty:function(){return null==this.h},iterator:function(){return{h:this.h,hasNext:function(){return null!=this.h},next:function(){if(null==this.h)return null;var a=this.h[0];this.h=this.h[1];return a}}},__class__:w};var E=function(){};g.IMap=E;E.__name__=["IMap"];Math.__name__=["Math"];var z=function(){c.display.Sprite.call(this);var a=this.getBackgroundColor(),b=0;70>0.299*(a>>16&255)+0.587*(a>>8&255)+0.114*(a&255)&&(b=16777215);var a=this.getHeight()/2-4.5,d=this.getWidth()-60;this.outline=
new c.display.Sprite;this.outline.get_graphics().lineStyle(1,b,0.15,!0);this.outline.get_graphics().drawRoundRect(0,0,d,9,6,6);this.outline.set_x(30);this.outline.set_y(a);this.addChild(this.outline);this.progress=new c.display.Sprite;this.progress.get_graphics().beginFill(b,0.35);this.progress.get_graphics().drawRect(0,0,d-6,3);this.progress.set_x(33);this.progress.set_y(a+3);this.progress.set_scaleX(0);this.addChild(this.progress)};g.NMEPreloader=z;z.__name__=["NMEPreloader"];z.__super__=c.display.Sprite;
z.prototype=m(c.display.Sprite.prototype,{getBackgroundColor:function(){return 16777215},getHeight:function(){return 230},getWidth:function(){return 800},onInit:function(){},onLoaded:function(){this.dispatchEvent(new c.events.Event(c.events.Event.COMPLETE))},onUpdate:function(a,b){var c=a/b;1<c&&1==c;this.progress.set_scaleX(c)},__class__:z});var n=function(){};g.Reflect=n;n.__name__=["Reflect"];n.hasField=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};n.field=function(a,b){try{return a[b]}catch(c){return null}};
n.setField=function(a,b,c){a[b]=c};n.getProperty=function(a,b){var c;return null==a?null:a.__properties__&&(c=a.__properties__["get_"+b])?a[c]():a[b]};n.setProperty=function(a,b,c){var e;if(a.__properties__&&(e=a.__properties__["set_"+b]))a[e](c);else a[b]=c};n.callMethod=function(a,b,c){return b.apply(a,c)};n.fields=function(a){var b=[];if(null!=a){var c=Object.prototype.hasOwnProperty,e;for(e in a)"__id__"!=e&&("hx__closures__"!=e&&c.call(a,e))&&b.push(e)}return b};n.isFunction=function(a){return"function"==
typeof a&&!(a.__name__||a.__ename__)};n.isObject=function(a){if(null==a)return!1;var b=typeof a;return"string"==b||"object"==b&&null==a.__enum__||"function"==b&&null!=(a.__name__||a.__ename__)};n.deleteField=function(a,b){if(!Object.prototype.hasOwnProperty.call(a,b))return!1;delete a[b];return!0};var k=function(){};g.Std=k;k.__name__=["Std"];k.string=function(a){return p.Boot.__string_rec(a,"")};k["int"]=function(a){return a|0};k.parseInt=function(a){var b=parseInt(a,10);if(0==b&&(120==o.cca(a,1)||
88==o.cca(a,1)))b=parseInt(a);return isNaN(b)?null:b};k.parseFloat=function(a){return parseFloat(a)};k.random=function(a){return 0>=a?0:Math.floor(Math.random()*a)};var F=function(){this.b=""};g.StringBuf=F;F.__name__=["StringBuf"];F.prototype={__class__:F};var s=function(){};g.StringTools=s;s.__name__=["StringTools"];s.urlEncode=function(a){return encodeURIComponent(a)};s.urlDecode=function(a){return decodeURIComponent(a.split("+").join(" "))};s.startsWith=function(a,b){return a.length>=b.length&&
o.substr(a,0,b.length)==b};s.replace=function(a,b,c){return a.split(b).join(c)};s.hex=function(a,b){var c="";do c="0123456789ABCDEF".charAt(a&15)+c,a>>>=4;while(0<a);if(null!=b)for(;c.length<b;)c="0"+c;return c};s.fastCodeAt=function(a,b){return a.charCodeAt(b)};var q=function(){};g.Type=q;q.__name__=["Type"];q.getClass=function(a){return null==a?null:a instanceof Array&&null==a.__enum__?Array:a.__class__};q.getClassName=function(a){return a.__name__.join(".")};q.resolveClass=function(a){a=g[a];return null==
a||!a.__name__?null:a};q.resolveEnum=function(a){a=g[a];return null==a||!a.__ename__?null:a};q.createInstance=function(a,b){switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3]);case 5:return new a(b[0],b[1],b[2],b[3],b[4]);case 6:return new a(b[0],b[1],b[2],b[3],b[4],b[5]);case 7:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6]);case 8:return new a(b[0],b[1],b[2],b[3],b[4],b[5],b[6],
b[7]);default:throw"Too many arguments";}};q.createEmptyInstance=function(a){function b(){}b.prototype=a.prototype;return new b};q.createEnum=function(a,b,c){var e=n.field(a,b);if(null==e)throw"No such constructor "+b;if(n.isFunction(e)){if(null==c)throw"Constructor "+b+" need parameters";return e.apply(a,c)}if(null!=c&&0!=c.length)throw"Constructor "+b+" does not need parameters";return e};q.getClassFields=function(a){a=n.fields(a);o.remove(a,"__name__");o.remove(a,"__interfaces__");o.remove(a,"__properties__");
o.remove(a,"__super__");o.remove(a,"prototype");return a};q.getEnumConstructs=function(a){return a.__constructs__.slice()};var h={};h.StackItem=g["haxe.StackItem"]={__ename__:!0,__constructs__:["CFunction","Module","FilePos","Method","LocalFunction"]};h.StackItem.CFunction=["CFunction",0];h.StackItem.CFunction.toString=i;h.StackItem.CFunction.__enum__=h.StackItem;h.StackItem.Module=function(a){a=["Module",1,a];a.__enum__=h.StackItem;a.toString=i;return a};h.StackItem.FilePos=function(a,b,c){a=["FilePos",
2,a,b,c];a.__enum__=h.StackItem;a.toString=i;return a};h.StackItem.Method=function(a,b){var c=["Method",3,a,b];c.__enum__=h.StackItem;c.toString=i;return c};h.StackItem.LocalFunction=function(a){a=["LocalFunction",4,a];a.__enum__=h.StackItem;a.toString=i;return a};h.CallStack=function(){};g["haxe.CallStack"]=h.CallStack;h.CallStack.__name__=["haxe","CallStack"];h.CallStack.exceptionStack=function(){return[]};h.CallStack.toString=function(a){for(var b=new F,c=0;c<a.length;){var e=a[c];++c;b.b+="\nCalled from ";
h.CallStack.itemToString(b,e)}return b.b};h.CallStack.itemToString=function(a,b){switch(b[1]){case 0:a.b+="a C function";break;case 1:var c=b[2];a.b+="module ";a.b=null==c?a.b+"null":a.b+(""+c);break;case 2:var c=b[4],e=b[3],f=b[2];null!=f&&(h.CallStack.itemToString(a,f),a.b+=" (");a.b=null==e?a.b+"null":a.b+(""+e);a.b+=" line ";a.b=null==c?a.b+"null":a.b+(""+c);null!=f&&(a.b+=")");break;case 3:c=b[3];e=b[2];a.b=null==e?a.b+"null":a.b+(""+e);a.b+=".";a.b=null==c?a.b+"null":a.b+(""+c);break;case 4:c=
b[2],a.b+="local function #",a.b=null==c?a.b+"null":a.b+(""+c)}};h.Log=function(){};g["haxe.Log"]=h.Log;h.Log.__name__=["haxe","Log"];h.Log.trace=function(a,b){p.Boot.__trace(a,b)};h.Timer=function(){};g["haxe.Timer"]=h.Timer;h.Timer.__name__=["haxe","Timer"];h.Timer.stamp=function(){return(new Date).getTime()/1E3};h.Unserializer=function(a){this.buf=a;this.length=a.length;this.pos=0;this.scache=[];this.cache=[];a=h.Unserializer.DEFAULT_RESOLVER;null==a&&(a=q,h.Unserializer.DEFAULT_RESOLVER=a);this.setResolver(a)};
g["haxe.Unserializer"]=h.Unserializer;h.Unserializer.__name__=["haxe","Unserializer"];h.Unserializer.initCodes=function(){for(var a=[],b=0,c=h.Unserializer.BASE64.length;b<c;){var e=b++;a[h.Unserializer.BASE64.charCodeAt(e)]=e}return a};h.Unserializer.prototype={setResolver:function(a){this.resolver=null==a?{resolveClass:function(){return null},resolveEnum:function(){return null}}:a},get:function(a){return this.buf.charCodeAt(a)},readDigits:function(){for(var a=0,b=!1,c=this.pos;;){var e=this.buf.charCodeAt(this.pos);
if(e!=e)break;if(45==e){if(this.pos!=c)break;b=!0}else{if(48>e||57<e)break;a=10*a+(e-48)}this.pos++}b&&(a*=-1);return a},unserializeObject:function(a){for(;;){if(this.pos>=this.length)throw"Invalid object";if(103==this.buf.charCodeAt(this.pos))break;var b=this.unserialize();if("string"!=typeof b)throw"Invalid object key";var c=this.unserialize();a[b]=c}this.pos++},unserializeEnum:function(a,b){if(58!=this.get(this.pos++))throw"Invalid enum format";var c=this.readDigits();if(0==c)return q.createEnum(a,
b);for(var e=[];0<c--;)e.push(this.unserialize());return q.createEnum(a,b,e)},unserialize:function(){switch(this.get(this.pos++)){case 110:return null;case 116:return!0;case 102:return!1;case 122:return 0;case 105:return this.readDigits();case 100:for(var a=this.pos;;){var b=this.buf.charCodeAt(this.pos);if(43<=b&&58>b||101==b||69==b)this.pos++;else break}return k.parseFloat(o.substr(this.buf,a,this.pos-a));case 121:a=this.readDigits();if(58!=this.get(this.pos++)||this.length-this.pos<a)throw"Invalid string length";
b=o.substr(this.buf,this.pos,a);this.pos+=a;b=decodeURIComponent(b.split("+").join(" "));this.scache.push(b);return b;case 107:return Math.NaN;case 109:return Math.NEGATIVE_INFINITY;case 112:return Math.POSITIVE_INFINITY;case 97:a=[];for(this.cache.push(a);;){b=this.buf.charCodeAt(this.pos);if(104==b){this.pos++;break}117==b?(this.pos++,b=this.readDigits(),a[a.length+b-1]=null):a.push(this.unserialize())}return a;case 111:return a={},this.cache.push(a),this.unserializeObject(a),a;case 114:a=this.readDigits();
if(0>a||a>=this.cache.length)throw"Invalid reference";return this.cache[a];case 82:a=this.readDigits();if(0>a||a>=this.scache.length)throw"Invalid string reference";return this.scache[a];case 120:throw this.unserialize();case 99:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw"Class not found "+a;a=q.createEmptyInstance(b);this.cache.push(a);this.unserializeObject(a);return a;case 119:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw"Enum not found "+a;a=this.unserializeEnum(b,
this.unserialize());this.cache.push(a);return a;case 106:a=this.unserialize();b=this.resolver.resolveEnum(a);if(null==b)throw"Enum not found "+a;this.pos++;var c=this.readDigits(),e=q.getEnumConstructs(b)[c];if(null==e)throw"Unknown enum index "+a+"@"+c;a=this.unserializeEnum(b,e);this.cache.push(a);return a;case 108:a=new w;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)a.add(this.unserialize());this.pos++;return a;case 98:a=new h.ds.StringMap;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=
this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 113:a=new h.ds.IntMap;this.cache.push(a);for(b=this.get(this.pos++);58==b;)b=this.readDigits(),a.set(b,this.unserialize()),b=this.get(this.pos++);if(104!=b)throw"Invalid IntMap format";return a;case 77:a=new h.ds.ObjectMap;for(this.cache.push(a);104!=this.buf.charCodeAt(this.pos);)b=this.unserialize(),a.set(b,this.unserialize());this.pos++;return a;case 118:return a=o.substr(this.buf,this.pos,19),a=o.strDate(a),this.cache.push(a),
this.pos+=19,a;case 115:a=this.readDigits();e=this.buf;if(58!=this.get(this.pos++)||this.length-this.pos<a)throw"Invalid bytes length";var f=h.Unserializer.CODES;null==f&&(f=h.Unserializer.initCodes(),h.Unserializer.CODES=f);for(var l=this.pos,g=a&3,i=l+(a-g),b=h.io.Bytes.alloc(3*(a>>2)+(2<=g?g-1:0)),c=0;l<i;){var j=f[s.fastCodeAt(e,l++)],u=f[s.fastCodeAt(e,l++)];b.set(c++,j<<2|u>>4);j=f[s.fastCodeAt(e,l++)];b.set(c++,u<<4|j>>2);u=f[s.fastCodeAt(e,l++)];b.set(c++,j<<6|u)}2<=g&&(u=f[s.fastCodeAt(e,
l++)],i=f[s.fastCodeAt(e,l++)],b.set(c++,u<<2|i>>4),3==g&&(e=f[s.fastCodeAt(e,l++)],b.set(c++,i<<4|e>>2)));this.pos+=a;this.cache.push(b);return b;case 67:a=this.unserialize();b=this.resolver.resolveClass(a);if(null==b)throw"Class not found "+a;a=q.createEmptyInstance(b);this.cache.push(a);a.hxUnserialize(this);if(103!=this.get(this.pos++))throw"Invalid custom data";return a}this.pos--;throw"Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos;},__class__:h.Unserializer};h.crypto={};
h.crypto.BaseCode=function(a){for(var b=a.length,c=1;b>1<<c;)c++;if(8<c||b!=1<<c)throw"BaseCode : base length must be a power of two.";this.base=a;this.nbits=c};g["haxe.crypto.BaseCode"]=h.crypto.BaseCode;h.crypto.BaseCode.__name__=["haxe","crypto","BaseCode"];h.crypto.BaseCode.prototype={encodeBytes:function(a){for(var b=this.nbits,c=this.base,e=8*a.length/b|0,f=h.io.Bytes.alloc(e+(0==8*a.length%b?0:1)),l=0,g=0,k=(1<<b)-1,i=0,u=0;u<e;){for(;g<b;)g+=8,l<<=8,l|=a.get(i++);g-=b;f.set(u++,c.b[l>>g&k])}0<
g&&f.set(u++,c.b[l<<b-g&k]);return f},__class__:h.crypto.BaseCode};h.ds={};h.ds.IntMap=function(){this.h={}};g["haxe.ds.IntMap"]=h.ds.IntMap;h.ds.IntMap.__name__=["haxe","ds","IntMap"];h.ds.IntMap.__interfaces__=[E];h.ds.IntMap.prototype={set:function(a,b){this.h[a]=b},__class__:h.ds.IntMap};h.ds.ObjectMap=function(){this.h={};this.h.__keys__={}};g["haxe.ds.ObjectMap"]=h.ds.ObjectMap;h.ds.ObjectMap.__name__=["haxe","ds","ObjectMap"];h.ds.ObjectMap.__interfaces__=[E];h.ds.ObjectMap.prototype={set:function(a,
b){var c=a.__id__||(a.__id__=++h.ds.ObjectMap.count);this.h[c]=b;this.h.__keys__[c]=a},__class__:h.ds.ObjectMap};h.ds.StringMap=function(){this.h={}};g["haxe.ds.StringMap"]=h.ds.StringMap;h.ds.StringMap.__name__=["haxe","ds","StringMap"];h.ds.StringMap.__interfaces__=[E];h.ds.StringMap.prototype={set:function(a,b){this.h["$"+a]=b},get:function(a){return this.h["$"+a]},exists:function(a){return this.h.hasOwnProperty("$"+a)},remove:function(a){a="$"+a;if(!this.h.hasOwnProperty(a))return!1;delete this.h[a];
return!0},keys:function(){var a=[],b;for(b in this.h)this.h.hasOwnProperty(b)&&a.push(b.substr(1));return o.iter(a)},iterator:function(){return{ref:this.h,it:this.keys(),hasNext:function(){return this.it.hasNext()},next:function(){var a=this.it.next();return this.ref["$"+a]}}},__class__:h.ds.StringMap};h.ds._Vector={};h.ds._Vector.Vector_Impl_=function(){};g["haxe.ds._Vector.Vector_Impl_"]=h.ds._Vector.Vector_Impl_;h.ds._Vector.Vector_Impl_.__name__=["haxe","ds","_Vector","Vector_Impl_"];h.ds._Vector.Vector_Impl_.blit=
function(a,b,c,e,f){for(var l=0;l<f;){var g=l++;c[e+g]=a[b+g]}};h.ds._Vector.Vector_Impl_.toArray=function(a){for(var b=[],c=a.length,e=0;e<c;){var f=e++;b[f]=a[f]}return b};h.io={};h.io.Bytes=function(a,b){this.length=a;this.b=b};g["haxe.io.Bytes"]=h.io.Bytes;h.io.Bytes.__name__=["haxe","io","Bytes"];h.io.Bytes.alloc=function(a){for(var b=[],c=0;c<a;)c++,b.push(0);return new h.io.Bytes(a,b)};h.io.Bytes.ofString=function(a){for(var b=[],c=0;c<a.length;){var e=s.fastCodeAt(a,c++);55296<=e&&56319>=
e&&(e=e-55232<<10|s.fastCodeAt(a,c++)&1023);127>=e?b.push(e):(2047>=e?b.push(192|e>>6):(65535>=e?b.push(224|e>>12):(b.push(240|e>>18),b.push(128|e>>12&63)),b.push(128|e>>6&63)),b.push(128|e&63))}return new h.io.Bytes(b.length,b)};h.io.Bytes.ofData=function(a){return new h.io.Bytes(a.length,a)};h.io.Bytes.prototype={get:function(a){return this.b[a]},set:function(a,b){this.b[a]=b&255},getString:function(a,b){if(0>a||0>b||a+b>this.length)throw h.io.Error.OutsideBounds;for(var c="",e=this.b,f=String.fromCharCode,
l=a,g=a+b;l<g;){var k=e[l++];if(128>k){if(0==k)break;c+=f(k)}else if(224>k)c+=f((k&63)<<6|e[l++]&127);else if(240>k)var i=e[l++],c=c+f((k&31)<<12|(i&127)<<6|e[l++]&127);else var i=e[l++],u=e[l++],k=(k&15)<<18|(i&127)<<12|(u&127)<<6|e[l++]&127,c=c+f((k>>10)+55232),c=c+f(k&1023|56320)}return c},toString:function(){return this.getString(0,this.length)},__class__:h.io.Bytes};h.io.Eof=function(){};g["haxe.io.Eof"]=h.io.Eof;h.io.Eof.__name__=["haxe","io","Eof"];h.io.Eof.prototype={toString:function(){return"Eof"},
__class__:h.io.Eof};h.io.Error=g["haxe.io.Error"]={__ename__:!0,__constructs__:["Blocked","Overflow","OutsideBounds","Custom"]};h.io.Error.Blocked=["Blocked",0];h.io.Error.Blocked.toString=i;h.io.Error.Blocked.__enum__=h.io.Error;h.io.Error.Overflow=["Overflow",1];h.io.Error.Overflow.toString=i;h.io.Error.Overflow.__enum__=h.io.Error;h.io.Error.OutsideBounds=["OutsideBounds",2];h.io.Error.OutsideBounds.toString=i;h.io.Error.OutsideBounds.__enum__=h.io.Error;h.io.Error.Custom=function(a){a=["Custom",
3,a];a.__enum__=h.io.Error;a.toString=i;return a};h.io.Path=function(a){var b=a.lastIndexOf("/"),c=a.lastIndexOf("\\");b<c?(this.dir=o.substr(a,0,c),a=o.substr(a,c+1,null),this.backslash=!0):c<b?(this.dir=o.substr(a,0,b),a=o.substr(a,b+1,null)):this.dir=null;b=a.lastIndexOf(".");-1!=b?(this.ext=o.substr(a,b+1,null),this.file=o.substr(a,0,b)):(this.ext=null,this.file=a)};g["haxe.io.Path"]=h.io.Path;h.io.Path.__name__=["haxe","io","Path"];h.io.Path.withoutExtension=function(a){a=new h.io.Path(a);a.ext=
null;return a.toString()};h.io.Path.prototype={toString:function(){return(null==this.dir?"":this.dir+(this.backslash?"\\":"/"))+this.file+(null==this.ext?"":"."+this.ext)},__class__:h.io.Path};var p={Boot:function(){}};g["js.Boot"]=p.Boot;p.Boot.__name__=["js","Boot"];p.Boot.__unhtml=function(a){return a.split("&").join("&").split("<").join("<").split(">").join(">")};p.Boot.__trace=function(a,b){var c;c=null!=b?b.fileName+":"+b.lineNumber+": ":"";c+=p.Boot.__string_rec(a,"");if(null!=b&&
null!=b.customParams)for(var e=0,f=b.customParams;e<f.length;){var l=f[e];++e;c+=","+p.Boot.__string_rec(l,"")}var g;"undefined"!=typeof document&&null!=(g=document.getElementById("haxe:trace"))?g.innerHTML+=p.Boot.__unhtml(c)+"<br/>":"undefined"!=typeof console&&null!=console.log&&console.log(c)};p.Boot.getClass=function(a){return a instanceof Array&&null==a.__enum__?Array:a.__class__};p.Boot.__string_rec=function(a,b){if(null==a)return"null";if(5<=b.length)return"<...>";var c=typeof a;if("function"==
c&&(a.__name__||a.__ename__))c="object";switch(c){case "object":if(a instanceof Array){if(a.__enum__){if(2==a.length)return a[0];for(var c=a[0]+"(",b=b+"\t",e=2,f=a.length;e<f;)var l=e++,c=2!=l?c+(","+p.Boot.__string_rec(a[l],b)):c+p.Boot.__string_rec(a[l],b);return c+")"}c=a.length;e="[";b+="\t";for(f=0;f<c;)l=f++,e+=(0<l?",":"")+p.Boot.__string_rec(a[l],b);return e+"]"}try{e=a.toString}catch(g){return"???"}if(null!=e&&e!=Object.toString&&(c=a.toString(),"[object Object]"!=c))return c;c=null;e="{\n";
b+="\t";f=null!=a.hasOwnProperty;for(c in a)if(!f||a.hasOwnProperty(c))"prototype"==c||("__class__"==c||"__super__"==c||"__interfaces__"==c||"__properties__"==c)||(2!=e.length&&(e+=", \n"),e+=b+c+" : "+p.Boot.__string_rec(a[c],b));b=b.substring(1);return e+("\n"+b+"}");case "function":return"<function>";case "string":return a;default:return String(a)}};p.Boot.__interfLoop=function(a,b){if(null==a)return!1;if(a==b)return!0;var c=a.__interfaces__;if(null!=c)for(var e=0,f=c.length;e<f;){var l=e++,l=
c[l];if(l==b||p.Boot.__interfLoop(l,b))return!0}return p.Boot.__interfLoop(a.__super__,b)};p.Boot.__instanceof=function(a,b){if(null==b)return!1;switch(b){case H:return(a|0)===a;case I:return"number"==typeof a;case J:return"boolean"==typeof a;case String:return"string"==typeof a;case Array:return a instanceof Array&&null==a.__enum__;case M:return!0;default:if(null!=a){if("function"==typeof b&&(a instanceof b||p.Boot.__interfLoop(p.Boot.getClass(a),b)))return!0}else return!1;return b==N&&null!=a.__name__||
b==O&&null!=a.__ename__?!0:a.__enum__==b}};p.Boot.__cast=function(a,b){if(p.Boot.__instanceof(a,b))return a;throw"Cannot cast "+k.string(a)+" to "+k.string(b);};c.AssetCache=function(){this.enabled=!0;this.bitmapData=new h.ds.StringMap;this.font=new h.ds.StringMap;this.sound=new h.ds.StringMap};g["openfl.AssetCache"]=c.AssetCache;c.AssetCache.__name__=["openfl","AssetCache"];c.AssetCache.prototype={clear:function(a){if(null==a)this.bitmapData=new h.ds.StringMap,this.font=new h.ds.StringMap,this.sound=
new h.ds.StringMap;else{for(var b=this.bitmapData.keys();b.hasNext();){var c=b.next();s.startsWith(c,a)&&this.bitmapData.remove(c)}for(b=this.font.keys();b.hasNext();)c=b.next(),s.startsWith(c,a)&&this.font.remove(c);for(b=this.sound.keys();b.hasNext();)c=b.next(),s.startsWith(c,a)&&this.sound.remove(c)}},__class__:c.AssetCache};c.Assets=function(){};g["openfl.Assets"]=c.Assets;c.Assets.__name__=["openfl","Assets"];c.Assets.addEventListener=function(a,b,d,e,f){null==f&&(f=!1);null==e&&(e=0);null==
d&&(d=!1);c.Assets.initialize();c.Assets.dispatcher.addEventListener(a,b,d,e,f)};c.Assets.dispatchEvent=function(a){c.Assets.initialize();return c.Assets.dispatcher.dispatchEvent(a)};c.Assets.exists=function(a,b){c.Assets.initialize();null==b&&(b=c.AssetType.BINARY);var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);d=c.Assets.getLibrary(d);return null!=d?d.exists(e,b):!1};c.Assets.getBitmapData=function(a,b){null==b&&(b=!0);c.Assets.initialize();if(b&&c.Assets.cache.enabled&&
c.Assets.cache.bitmapData.exists(a)){var d=c.Assets.cache.bitmapData.get(a);if(c.Assets.isValidBitmapData(d))return d}var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f)if(f.exists(e,c.AssetType.IMAGE)){if(f.isLocal(e,c.AssetType.IMAGE))return d=f.getBitmapData(e),b&&c.Assets.cache.enabled&&c.Assets.cache.bitmapData.set(a,d),d;h.Log.trace('[openfl.Assets] BitmapData asset "'+a+'" exists, but only asynchronously',{fileName:"Assets.hx",
lineNumber:139,className:"openfl.Assets",methodName:"getBitmapData"})}else h.Log.trace('[openfl.Assets] There is no BitmapData asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:145,className:"openfl.Assets",methodName:"getBitmapData"});else h.Log.trace('[openfl.Assets] There is no asset library named "'+d+'"',{fileName:"Assets.hx",lineNumber:151,className:"openfl.Assets",methodName:"getBitmapData"});return null};c.Assets.getBytes=function(a){c.Assets.initialize();var b=a.substring(0,a.indexOf(":")),
d;d=a.indexOf(":")+1;d=o.substr(a,d,null);var e=c.Assets.getLibrary(b);if(null!=e)if(e.exists(d,c.AssetType.BINARY)){if(e.isLocal(d,c.AssetType.BINARY))return e.getBytes(d);h.Log.trace('[openfl.Assets] String or ByteArray asset "'+a+'" exists, but only asynchronously',{fileName:"Assets.hx",lineNumber:188,className:"openfl.Assets",methodName:"getBytes"})}else h.Log.trace('[openfl.Assets] There is no String or ByteArray asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:194,className:"openfl.Assets",
methodName:"getBytes"});else h.Log.trace('[openfl.Assets] There is no asset library named "'+b+'"',{fileName:"Assets.hx",lineNumber:200,className:"openfl.Assets",methodName:"getBytes"});return null};c.Assets.getFont=function(a,b){null==b&&(b=!0);c.Assets.initialize();if(b&&c.Assets.cache.enabled&&c.Assets.cache.font.exists(a))return c.Assets.cache.font.get(a);var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f)if(f.exists(e,c.AssetType.FONT)){if(f.isLocal(e,
c.AssetType.FONT))return d=f.getFont(e),b&&c.Assets.cache.enabled&&c.Assets.cache.font.set(a,d),d;h.Log.trace('[openfl.Assets] Font asset "'+a+'" exists, but only asynchronously',{fileName:"Assets.hx",lineNumber:251,className:"openfl.Assets",methodName:"getFont"})}else h.Log.trace('[openfl.Assets] There is no Font asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:257,className:"openfl.Assets",methodName:"getFont"});else h.Log.trace('[openfl.Assets] There is no asset library named "'+d+
'"',{fileName:"Assets.hx",lineNumber:263,className:"openfl.Assets",methodName:"getFont"});return null};c.Assets.getLibrary=function(a){if(null==a||""==a)a="default";return c.Assets.libraries.get(a)};c.Assets.getMovieClip=function(a){c.Assets.initialize();var b=a.substring(0,a.indexOf(":")),d;d=a.indexOf(":")+1;d=o.substr(a,d,null);var e=c.Assets.getLibrary(b);if(null!=e)if(e.exists(d,c.AssetType.MOVIE_CLIP)){if(e.isLocal(d,c.AssetType.MOVIE_CLIP))return e.getMovieClip(d);h.Log.trace('[openfl.Assets] MovieClip asset "'+
a+'" exists, but only asynchronously',{fileName:"Assets.hx",lineNumber:313,className:"openfl.Assets",methodName:"getMovieClip"})}else h.Log.trace('[openfl.Assets] There is no MovieClip asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:319,className:"openfl.Assets",methodName:"getMovieClip"});else h.Log.trace('[openfl.Assets] There is no asset library named "'+b+'"',{fileName:"Assets.hx",lineNumber:325,className:"openfl.Assets",methodName:"getMovieClip"});return null};c.Assets.getMusic=
function(a,b){null==b&&(b=!0);c.Assets.initialize();if(b&&c.Assets.cache.enabled&&c.Assets.cache.sound.exists(a)){var d=c.Assets.cache.sound.get(a);if(c.Assets.isValidSound(d))return d}var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f)if(f.exists(e,c.AssetType.MUSIC)){if(f.isLocal(e,c.AssetType.MUSIC))return d=f.getMusic(e),b&&c.Assets.cache.enabled&&c.Assets.cache.sound.set(a,d),d;h.Log.trace('[openfl.Assets] Sound asset "'+a+'" exists, but only asynchronously',
{fileName:"Assets.hx",lineNumber:382,className:"openfl.Assets",methodName:"getMusic"})}else h.Log.trace('[openfl.Assets] There is no Sound asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:388,className:"openfl.Assets",methodName:"getMusic"});else h.Log.trace('[openfl.Assets] There is no asset library named "'+d+'"',{fileName:"Assets.hx",lineNumber:394,className:"openfl.Assets",methodName:"getMusic"});return null};c.Assets.getPath=function(a){c.Assets.initialize();var b=a.substring(0,
a.indexOf(":")),d;d=a.indexOf(":")+1;d=o.substr(a,d,null);var e=c.Assets.getLibrary(b);if(null!=e){if(e.exists(d,null))return e.getPath(d);h.Log.trace('[openfl.Assets] There is no asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:429,className:"openfl.Assets",methodName:"getPath"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+b+'"',{fileName:"Assets.hx",lineNumber:435,className:"openfl.Assets",methodName:"getPath"});return null};c.Assets.getSound=function(a,b){null==
b&&(b=!0);c.Assets.initialize();if(b&&c.Assets.cache.enabled&&c.Assets.cache.sound.exists(a)){var d=c.Assets.cache.sound.get(a);if(c.Assets.isValidSound(d))return d}var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f)if(f.exists(e,c.AssetType.SOUND)){if(f.isLocal(e,c.AssetType.SOUND))return d=f.getSound(e),b&&c.Assets.cache.enabled&&c.Assets.cache.sound.set(a,d),d;h.Log.trace('[openfl.Assets] Sound asset "'+a+'" exists, but only asynchronously',
{fileName:"Assets.hx",lineNumber:492,className:"openfl.Assets",methodName:"getSound"})}else h.Log.trace('[openfl.Assets] There is no Sound asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:498,className:"openfl.Assets",methodName:"getSound"});else h.Log.trace('[openfl.Assets] There is no asset library named "'+d+'"',{fileName:"Assets.hx",lineNumber:504,className:"openfl.Assets",methodName:"getSound"});return null};c.Assets.getText=function(a){c.Assets.initialize();var b=a.substring(0,
a.indexOf(":")),d;d=a.indexOf(":")+1;d=o.substr(a,d,null);var e=c.Assets.getLibrary(b);if(null!=e)if(e.exists(d,c.AssetType.TEXT)){if(e.isLocal(d,c.AssetType.TEXT))return e.getText(d);h.Log.trace('[openfl.Assets] String asset "'+a+'" exists, but only asynchronously',{fileName:"Assets.hx",lineNumber:541,className:"openfl.Assets",methodName:"getText"})}else h.Log.trace('[openfl.Assets] There is no String asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:547,className:"openfl.Assets",methodName:"getText"});
else h.Log.trace('[openfl.Assets] There is no asset library named "'+b+'"',{fileName:"Assets.hx",lineNumber:553,className:"openfl.Assets",methodName:"getText"});return null};c.Assets.hasEventListener=function(a){c.Assets.initialize();return c.Assets.dispatcher.hasEventListener(a)};c.Assets.initialize=function(){c.Assets.initialized||(c.Assets.registerLibrary("default",new D),c.Assets.initialized=!0)};c.Assets.isLocal=function(a,b,d){null==d&&(d=!0);c.Assets.initialize();if(d&&c.Assets.cache.enabled&&
((b==c.AssetType.IMAGE||null==b)&&c.Assets.cache.bitmapData.exists(a)||(b==c.AssetType.FONT||null==b)&&c.Assets.cache.font.exists(a)||(b==c.AssetType.SOUND||b==c.AssetType.MUSIC||null==b)&&c.Assets.cache.sound.exists(a)))return!0;var d=a.substring(0,a.indexOf(":")),e=a.indexOf(":")+1,a=o.substr(a,e,null),d=c.Assets.getLibrary(d);return null!=d?d.isLocal(a,b):!1};c.Assets.isValidBitmapData=function(a){return null!=a.__sourceImage||null!=a.__sourceCanvas};c.Assets.isValidSound=function(){return!0};
c.Assets.list=function(a){c.Assets.initialize();for(var b=[],d=c.Assets.libraries.iterator();d.hasNext();){var e=d.next().list(a);null!=e&&(b=b.concat(e))}return b};c.Assets.loadBitmapData=function(a,b,d){null==d&&(d=!0);c.Assets.initialize();if(d&&c.Assets.cache.enabled&&c.Assets.cache.bitmapData.exists(a)){var e=c.Assets.cache.bitmapData.get(a);if(c.Assets.isValidBitmapData(e)){b(e);return}}var e=a.substring(0,a.indexOf(":")),f;f=a.indexOf(":")+1;f=o.substr(a,f,null);var l=c.Assets.getLibrary(e);
if(null!=l){if(l.exists(f,c.AssetType.IMAGE)){d&&c.Assets.cache.enabled?l.loadBitmapData(f,function(d){c.Assets.cache.bitmapData.set(a,d);b(d)}):l.loadBitmapData(f,b);return}h.Log.trace('[openfl.Assets] There is no BitmapData asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:750,className:"openfl.Assets",methodName:"loadBitmapData"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+e+'"',{fileName:"Assets.hx",lineNumber:756,className:"openfl.Assets",methodName:"loadBitmapData"});
b(null)};c.Assets.loadBytes=function(a,b){c.Assets.initialize();var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f){if(f.exists(e,c.AssetType.BINARY)){f.loadBytes(e,b);return}h.Log.trace('[openfl.Assets] There is no String or ByteArray asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:786,className:"openfl.Assets",methodName:"loadBytes"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+d+'"',{fileName:"Assets.hx",
lineNumber:792,className:"openfl.Assets",methodName:"loadBytes"});b(null)};c.Assets.loadFont=function(a,b,d){null==d&&(d=!0);c.Assets.initialize();if(d&&c.Assets.cache.enabled&&c.Assets.cache.font.exists(a))b(c.Assets.cache.font.get(a));else{var e=a.substring(0,a.indexOf(":")),f;f=a.indexOf(":")+1;f=o.substr(a,f,null);var l=c.Assets.getLibrary(e);if(null!=l){if(l.exists(f,c.AssetType.FONT)){d&&c.Assets.cache.enabled?l.loadFont(f,function(d){c.Assets.cache.font.set(a,d);b(d)}):l.loadFont(f,b);return}h.Log.trace('[openfl.Assets] There is no Font asset with an ID of "'+
a+'"',{fileName:"Assets.hx",lineNumber:843,className:"openfl.Assets",methodName:"loadFont"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+e+'"',{fileName:"Assets.hx",lineNumber:849,className:"openfl.Assets",methodName:"loadFont"});b(null)}};c.Assets.loadLibrary=function(a,b){c.Assets.initialize();var d=c.Assets.getText("libraries/"+a+".dat");null!=d&&""!=d?(d=new h.Unserializer(d),d.setResolver({resolveEnum:c.Assets.resolveEnum,resolveClass:c.Assets.resolveClass}),d=d.unserialize(),
c.Assets.libraries.set(a,d),d.eventCallback=c.Assets.library_onEvent,d.load(b)):h.Log.trace('[openfl.Assets] There is no asset library named "'+a+'"',{fileName:"Assets.hx",lineNumber:880,className:"openfl.Assets",methodName:"loadLibrary"})};c.Assets.loadMusic=function(a,b,d){null==d&&(d=!0);c.Assets.initialize();if(d&&c.Assets.cache.enabled&&c.Assets.cache.sound.exists(a)){var e=c.Assets.cache.sound.get(a);if(c.Assets.isValidSound(e)){b(e);return}}var e=a.substring(0,a.indexOf(":")),f;f=a.indexOf(":")+
1;f=o.substr(a,f,null);var l=c.Assets.getLibrary(e);if(null!=l){if(l.exists(f,c.AssetType.MUSIC)){d&&c.Assets.cache.enabled?l.loadMusic(f,function(d){c.Assets.cache.sound.set(a,d);b(d)}):l.loadMusic(f,b);return}h.Log.trace('[openfl.Assets] There is no Sound asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:935,className:"openfl.Assets",methodName:"loadMusic"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+e+'"',{fileName:"Assets.hx",lineNumber:941,className:"openfl.Assets",
methodName:"loadMusic"});b(null)};c.Assets.loadMovieClip=function(a,b){c.Assets.initialize();var d=a.substring(0,a.indexOf(":")),e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f){if(f.exists(e,c.AssetType.MOVIE_CLIP)){f.loadMovieClip(e,b);return}h.Log.trace('[openfl.Assets] There is no MovieClip asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:971,className:"openfl.Assets",methodName:"loadMovieClip"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+
d+'"',{fileName:"Assets.hx",lineNumber:977,className:"openfl.Assets",methodName:"loadMovieClip"});b(null)};c.Assets.loadSound=function(a,b,d){null==d&&(d=!0);c.Assets.initialize();if(d&&c.Assets.cache.enabled&&c.Assets.cache.sound.exists(a)){var e=c.Assets.cache.sound.get(a);if(c.Assets.isValidSound(e)){b(e);return}}var e=a.substring(0,a.indexOf(":")),f;f=a.indexOf(":")+1;f=o.substr(a,f,null);var l=c.Assets.getLibrary(e);if(null!=l){if(l.exists(f,c.AssetType.SOUND)){d&&c.Assets.cache.enabled?l.loadSound(f,
function(d){c.Assets.cache.sound.set(a,d);b(d)}):l.loadSound(f,b);return}h.Log.trace('[openfl.Assets] There is no Sound asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:1034,className:"openfl.Assets",methodName:"loadSound"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+e+'"',{fileName:"Assets.hx",lineNumber:1040,className:"openfl.Assets",methodName:"loadSound"});b(null)};c.Assets.loadText=function(a,b){c.Assets.initialize();var d=a.substring(0,a.indexOf(":")),
e;e=a.indexOf(":")+1;e=o.substr(a,e,null);var f=c.Assets.getLibrary(d);if(null!=f){if(f.exists(e,c.AssetType.TEXT)){f.loadText(e,b);return}h.Log.trace('[openfl.Assets] There is no String asset with an ID of "'+a+'"',{fileName:"Assets.hx",lineNumber:1070,className:"openfl.Assets",methodName:"loadText"})}else h.Log.trace('[openfl.Assets] There is no asset library named "'+d+'"',{fileName:"Assets.hx",lineNumber:1076,className:"openfl.Assets",methodName:"loadText"});b(null)};c.Assets.registerLibrary=
function(a,b){c.Assets.libraries.exists(a)&&c.Assets.unloadLibrary(a);null!=b&&(b.eventCallback=c.Assets.library_onEvent);c.Assets.libraries.set(a,b)};c.Assets.removeEventListener=function(a,b,d){null==d&&(d=!1);c.Assets.initialize();c.Assets.dispatcher.removeEventListener(a,b,d)};c.Assets.resolveClass=function(a){return q.resolveClass(a)};c.Assets.resolveEnum=function(a){return q.resolveEnum(a)};c.Assets.unloadLibrary=function(a){c.Assets.initialize();var b=c.Assets.libraries.get(a);null!=b&&(c.Assets.cache.clear(a+
":"),b.eventCallback=null);c.Assets.libraries.remove(a)};c.Assets.library_onEvent=function(a,b){"change"==b&&(c.Assets.cache.clear(),c.Assets.dispatchEvent(new c.events.Event(c.events.Event.CHANGE)))};c.AssetData=function(){};g["openfl.AssetData"]=c.AssetData;c.AssetData.__name__=["openfl","AssetData"];c.AssetData.prototype={__class__:c.AssetData};c.AssetType=g["openfl.AssetType"]={__ename__:!0,__constructs__:"BINARY FONT IMAGE MOVIE_CLIP MUSIC SOUND TEMPLATE TEXT".split(" ")};c.AssetType.BINARY=
["BINARY",0];c.AssetType.BINARY.toString=i;c.AssetType.BINARY.__enum__=c.AssetType;c.AssetType.FONT=["FONT",1];c.AssetType.FONT.toString=i;c.AssetType.FONT.__enum__=c.AssetType;c.AssetType.IMAGE=["IMAGE",2];c.AssetType.IMAGE.toString=i;c.AssetType.IMAGE.__enum__=c.AssetType;c.AssetType.MOVIE_CLIP=["MOVIE_CLIP",3];c.AssetType.MOVIE_CLIP.toString=i;c.AssetType.MOVIE_CLIP.__enum__=c.AssetType;c.AssetType.MUSIC=["MUSIC",4];c.AssetType.MUSIC.toString=i;c.AssetType.MUSIC.__enum__=c.AssetType;c.AssetType.SOUND=
["SOUND",5];c.AssetType.SOUND.toString=i;c.AssetType.SOUND.__enum__=c.AssetType;c.AssetType.TEMPLATE=["TEMPLATE",6];c.AssetType.TEMPLATE.toString=i;c.AssetType.TEMPLATE.__enum__=c.AssetType;c.AssetType.TEXT=["TEXT",7];c.AssetType.TEXT.toString=i;c.AssetType.TEXT.__enum__=c.AssetType;c.Lib=function(){};g["openfl.Lib"]=c.Lib;c.Lib.__name__=["openfl","Lib"];c.Lib.current=null;c.Lib.as=function(a,b){return p.Boot.__instanceof(a,b)?a:null};c.Lib.attach=function(){return new c.display.MovieClip};c.Lib.create=
function(a,b,d,e){null==b&&(b=0);null==d&&(d=0);for(var f=0,l=["ms","moz","webkit","o"],g=0;g<l.length&&!window.requestAnimationFrame;++g)window.requestAnimationFrame=window[l[g]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[l[g]+"CancelAnimationFrame"]||window[l[g]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(a){var b=(new Date).getTime(),c=Math.max(0,16-(b-f)),K=window.setTimeout(function(){a(b+c)},c);f=b+c;return K});window.cancelAnimationFrame||
(window.cancelAnimationFrame=function(a){clearTimeout(a)});window.requestAnimFrame=window.requestAnimationFrame;a=new c.display.Stage(b,d,a,e);null==c.Lib.current&&(c.Lib.current=new c.display.MovieClip,a.addChild(c.Lib.current))};c.Lib.getTimer=function(){return k["int"](1E3*(h.Timer.stamp()-c.Lib.__startTime))};c.Lib.getURL=function(a,b){null==b&&(b="_blank");window.open(a.url,b)};c.Lib.notImplemented=function(a){c.Lib.__sentWarnings.exists(a)||(c.Lib.__sentWarnings.set(a,!0),h.Log.trace("Warning: "+
a+" is not implemented",{fileName:"Lib.hx",lineNumber:114,className:"openfl.Lib",methodName:"notImplemented"}))};c.Lib.preventDefaultTouchMove=function(){window.document.addEventListener("touchmove",function(a){a.preventDefault()},!1)};c.Lib.trace=function(a){h.Log.trace(a,{fileName:"Lib.hx",lineNumber:134,className:"openfl.Lib",methodName:"trace"})};c._Vector={};c._Vector.Vector_Impl_=function(){};g["openfl._Vector.Vector_Impl_"]=c._Vector.Vector_Impl_;c._Vector.Vector_Impl_.__name__=["openfl","_Vector",
"Vector_Impl_"];c._Vector.Vector_Impl_.__properties__={set_fixed:"set_fixed",get_fixed:"get_fixed",set_length:"set_length",get_length:"get_length"};c._Vector.Vector_Impl_._new=function(a,b){null==b&&(b=!1);null==a&&(a=0);var d;d=new c.VectorData;d.data=Array(a);d.length=a;d.fixed=b;return d};c._Vector.Vector_Impl_.concat=function(a,b){var d=new c.VectorData;d.length=null!=b?a.length+b.length:a.length;d.fixed=!1;d.data=Array(d.length);h.ds._Vector.Vector_Impl_.blit(a.data,0,d.data,0,a.length);null!=
b&&h.ds._Vector.Vector_Impl_.blit(b.data,0,d.data,a.length,b.length);return d};c._Vector.Vector_Impl_.copy=function(a){var b=new c.VectorData;b.length=a.length;b.fixed=a.fixed;b.data=Array(a.length);h.ds._Vector.Vector_Impl_.blit(a.data,0,b.data,0,a.length);return b};c._Vector.Vector_Impl_.iterator=function(a){return new c.VectorDataIterator(a)};c._Vector.Vector_Impl_.join=function(a,b){for(var c="",e=0,f=a.length;e<f;){var l=e++;0<l&&(c+=b);c+=k.string(a.data[l])}return c};c._Vector.Vector_Impl_.pop=
function(a){return!a.fixed&&0<a.length?(a.length--,a.data[a.length]):null};c._Vector.Vector_Impl_.push=function(a,b){if(!a.fixed){a.length++;if(a.data.length<a.length){var c;c=Array(a.data.length+10);h.ds._Vector.Vector_Impl_.blit(a.data,0,c,0,a.data.length);a.data=c}a.data[a.length-1]=b}return a.length};c._Vector.Vector_Impl_.reverse=function(a){var b;b=Array(a.length);for(var c=0,e=a.length;c<e;){var f=c++;b[a.length-1-f]=a.data[f]}a.data=b};c._Vector.Vector_Impl_.shift=function(a){if(!a.fixed&&
0<a.length){var b=a.data[0];a.length--;h.ds._Vector.Vector_Impl_.blit(a.data,1,a.data,0,a.length);return b}return null};c._Vector.Vector_Impl_.unshift=function(a,b){if(!a.fixed){a.length++;if(a.data.length<a.length){var c;c=Array(a.length+10);h.ds._Vector.Vector_Impl_.blit(a.data,0,c,1,a.data.length);a.data=c}else h.ds._Vector.Vector_Impl_.blit(a.data,0,a.data,1,a.length-1);a.data[0]=b}};c._Vector.Vector_Impl_.slice=function(a,b,d){null==d&&(d=0);null==b&&(b=0);0>b&&(b+=a.length);0>=d&&(d+=a.length);
d>a.length&&(d=a.length);var e=d-b;if(0>=e||e>a.length)e=a.length;var f=new c.VectorData;f.length=d-b;f.fixed=!0;f.data=Array(e);h.ds._Vector.Vector_Impl_.blit(a.data,b,f.data,0,e);return f};c._Vector.Vector_Impl_.sort=function(a,b){var c=h.ds._Vector.Vector_Impl_.toArray(a.data);c.sort(b);var e;e=Array(c.length);for(var f=0,l=c.length;f<l;){var g=f++;e[g]=c[g]}a.data=e};c._Vector.Vector_Impl_.splice=function(a,b,d){0>b&&(b+=a.length);b+d>a.length&&(d=a.length-b);0>d&&(d=0);var e=new c.VectorData;
e.length=d;e.fixed=!1;e.data=Array(d);h.ds._Vector.Vector_Impl_.blit(a.data,b,e.data,0,d);0<d&&(a.length-=d,h.ds._Vector.Vector_Impl_.blit(a.data,b+d,a.data,b,a.length-b));return e};c._Vector.Vector_Impl_.toString=function(){return""};c._Vector.Vector_Impl_.indexOf=function(a,b,c){null==c&&(c=0);for(var e=a.length;c<e;){var f=c++;if(a.data[f]==b)return f}return-1};c._Vector.Vector_Impl_.lastIndexOf=function(a,b,c){null==c&&(c=0);for(var e=a.length-1;e>=c;){if(a.data[e]==b)return e;e--}return-1};c._Vector.Vector_Impl_.ofArray=
function(a){var b=new c.VectorData;b.length=a.length;b.fixed=!0;var d;d=Array(a.length);for(var e=0,f=a.length;e<f;){var l=e++;d[l]=a[l]}b.data=d;return b};c._Vector.Vector_Impl_.convert=function(a){return a};c._Vector.Vector_Impl_.arrayAccess=function(a,b){return a.data[b]};c._Vector.Vector_Impl_.arrayWrite=function(a,b,c){b>=a.length&&!a.fixed&&(a.length=b+1);return a.data[b]=c};c._Vector.Vector_Impl_.fromArray=function(a){var b=new c.VectorData;b.length=a.length;b.fixed=!0;var d;d=Array(a.length);
for(var e=0,f=a.length;e<f;){var l=e++;d[l]=a[l]}b.data=d;return b};c._Vector.Vector_Impl_.toArray=function(a){for(var b=[],c=0,e=a.data.length;c<e;){var f=c++;b.push(a.data[f])}return b};c._Vector.Vector_Impl_.fromHaxeVector=function(a){var b=new c.VectorData;b.length=a.length;b.fixed=!0;b.data=a;return b};c._Vector.Vector_Impl_.toHaxeVector=function(a){return a.data};c._Vector.Vector_Impl_.fromVectorData=function(a){return a};c._Vector.Vector_Impl_.toVectorData=function(a){return a};c._Vector.Vector_Impl_.get_length=
function(a){return a.length};c._Vector.Vector_Impl_.set_length=function(a,b){if(!a.fixed){if(b>a.length){var c;c=Array(b);h.ds._Vector.Vector_Impl_.blit(a.data,0,c,0,k["int"](Math.min(a.data.length,b)));a.data=c}a.length=b}return b};c._Vector.Vector_Impl_.get_fixed=function(a){return a.fixed};c._Vector.Vector_Impl_.set_fixed=function(a,b){return a.fixed=b};c.VectorData=function(){this.length=0};g["openfl.VectorData"]=c.VectorData;c.VectorData.__name__=["openfl","VectorData"];c.VectorData.prototype=
{__class__:c.VectorData};c.VectorDataIterator=function(a){this.index=0;this.vectorData=a};g["openfl.VectorDataIterator"]=c.VectorDataIterator;c.VectorDataIterator.__name__=["openfl","VectorDataIterator"];c.VectorDataIterator.prototype={hasNext:function(){return this.index<this.vectorData.length},next:function(){var a=this.index++;return this.vectorData.data[a]},__class__:c.VectorDataIterator};c.display.Bitmap=function(a,b,d){null==d&&(d=!1);c.display.DisplayObjectContainer.call(this);this.bitmapData=
a;this.pixelSnapping=b;this.smoothing=d;null==b&&(this.pixelSnapping=c.display.PixelSnapping.AUTO)};g["openfl.display.Bitmap"]=c.display.Bitmap;c.display.Bitmap.__name__=["openfl","display","Bitmap"];c.display.Bitmap.__super__=c.display.DisplayObjectContainer;c.display.Bitmap.prototype=m(c.display.DisplayObjectContainer.prototype,{__getBounds:function(a){if(null!=this.bitmapData){var b=new c.geom.Rectangle(0,0,this.bitmapData.width,this.bitmapData.height),b=b.transform(this.__worldTransform);a.__expand(b.x,
b.y,b.width,b.height)}},__hitTest:function(a,b,d,e){if(!this.get_visible()||null==this.bitmapData)return!1;a=this.globalToLocal(new c.geom.Point(a,b));return 0<a.x&&0<a.y&&a.x<=this.bitmapData.width&&a.y<=this.bitmapData.height?(null!=e&&e.push(this),!0):!1},__renderCanvas:function(a){if(this.__renderable&&!(0>=this.__worldAlpha)){var b=a.context;if(null!=this.bitmapData&&this.bitmapData.__valid){null!=this.__mask&&a.maskManager.pushMask(this.__mask);this.bitmapData.__syncImageData();b.globalAlpha=
this.__worldAlpha;var c=this.__worldTransform;a.roundPixels?b.setTransform(c.a,c.b,c.c,c.d,c.tx|0,c.ty|0):b.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty);this.smoothing||(b.mozImageSmoothingEnabled=!1,b.webkitImageSmoothingEnabled=!1,b.imageSmoothingEnabled=!1);null==this.get_scrollRect()?null!=this.bitmapData.__sourceImage?b.drawImage(this.bitmapData.__sourceImage,0,0):b.drawImage(this.bitmapData.__sourceCanvas,0,0):null!=this.bitmapData.__sourceImage?b.drawImage(this.bitmapData.__sourceImage,this.get_scrollRect().x,
this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height):b.drawImage(this.bitmapData.__sourceCanvas,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height);this.smoothing||(b.mozImageSmoothingEnabled=!0,b.webkitImageSmoothingEnabled=
!0,b.imageSmoothingEnabled=!0);null!=this.__mask&&a.maskManager.popMask()}}},__renderDOM:function(a){if(null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=this.bitmapData&&this.bitmapData.__valid)null!=this.bitmapData.__sourceImage?this.__renderDOMImage(a):this.__renderDOMCanvas(a);else if(null!=this.__image&&(a.element.removeChild(this.__image),this.__style=this.__image=null),null!=this.__canvas)a.element.removeChild(this.__canvas),this.__style=this.__canvas=null},__renderDOMCanvas:function(a){null!=
this.__image&&(a.element.removeChild(this.__image),this.__image=null);null==this.__canvas&&(this.__canvas=window.document.createElement("canvas"),this.__canvasContext=this.__canvas.getContext("2d"),this.smoothing||(this.__canvasContext.mozImageSmoothingEnabled=!1,this.__canvasContext.webkitImageSmoothingEnabled=!1,this.__canvasContext.imageSmoothingEnabled=!1),this.__initializeElement(this.__canvas,a));this.bitmapData.__syncImageData();this.__canvas.width=this.bitmapData.width;this.__canvas.height=
this.bitmapData.height;this.__canvasContext.globalAlpha=this.__worldAlpha;this.__canvasContext.drawImage(this.bitmapData.__sourceCanvas,0,0);this.__applyStyle(a,!0,!1,!0)},__renderDOMImage:function(a){null!=this.__canvas&&(a.element.removeChild(this.__canvas),this.__canvas=null);null==this.__image&&(this.__image=window.document.createElement("img"),this.__image.src=this.bitmapData.__sourceImage.src,this.__initializeElement(this.__image,a));this.__applyStyle(a,!0,!0,!0)},__renderMask:function(a){a.context.rect(0,
0,this.get_width(),this.get_height())},get_height:function(){return null!=this.bitmapData?this.bitmapData.height*this.get_scaleY():0},set_height:function(a){return null!=this.bitmapData?(a!=this.bitmapData.height&&(this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),this.set_scaleY(a/this.bitmapData.height)),a):0},get_width:function(){return null!=this.bitmapData?this.bitmapData.width*this.get_scaleX():0},set_width:function(a){return null!=this.bitmapData?
(a!=this.bitmapData.width&&(this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),this.set_scaleX(a/this.bitmapData.width)),a):0},__class__:c.display.Bitmap});c.display.BitmapData=function(a,b,d,e){null==e&&(e=-1);null==d&&(d=!0);this.transparent=d;0<a&&0<b&&(this.width=a,this.height=b,this.rect=new c.geom.Rectangle(0,0,a,b),this.__createCanvas(a,b),d||(e=-16777216|e&16777215),this.__fillRect(new c.geom.Rectangle(0,0,a,b),e))};g["openfl.display.BitmapData"]=
c.display.BitmapData;c.display.BitmapData.__name__=["openfl","display","BitmapData"];c.display.BitmapData.__interfaces__=[c.display.IBitmapDrawable];c.display.BitmapData.__base64Encoder=null;c.display.BitmapData.fromBase64=function(a,b,d){var e=new c.display.BitmapData(0,0,!0);e.__loadFromBase64(a,b,d);return e};c.display.BitmapData.fromBytes=function(a,b,d){var e=new c.display.BitmapData(0,0,!0);e.__loadFromBytes(a,b,d);return e};c.display.BitmapData.fromFile=function(a,b,d){var e=new c.display.BitmapData(0,
0,!0);e.__sourceImage=new Image;e.__sourceImage.onload=function(){e.width=e.__sourceImage.width;e.height=e.__sourceImage.height;e.rect=new c.geom.Rectangle(0,0,e.__sourceImage.width,e.__sourceImage.height);e.__valid=!0;null!=b&&b(e)};e.__sourceImage.onerror=function(){e.__valid=!1;null!=d&&d()};e.__sourceImage.src=a;return e};c.display.BitmapData.fromImage=function(a,b){null==b&&(b=!0);var d=new c.display.BitmapData(0,0,b);d.__sourceImage=a;d.width=a.width;d.height=a.height;d.rect=new c.geom.Rectangle(0,
0,a.width,a.height);d.__valid=!0;return d};c.display.BitmapData.fromCanvas=function(a,b){null==b&&(b=!0);var d=new c.display.BitmapData(0,0,b);d.width=a.width;d.height=a.height;d.rect=new c.geom.Rectangle(0,0,a.width,a.height);d.__createCanvas(a.width,a.height);d.__sourceContext.drawImage(a,0,0);return d};c.display.BitmapData.__base64Encode=function(a){var b;switch(a.length%3){case 1:b="==";break;case 2:b="=";break;default:b=""}null==c.display.BitmapData.__base64Encoder&&(c.display.BitmapData.__base64Encoder=
new h.crypto.BaseCode(h.io.Bytes.ofString(c.display.BitmapData.__base64Chars)));return c.display.BitmapData.__base64Encoder.encodeBytes(h.io.Bytes.ofData(a.byteView)).toString()+b};c.display.BitmapData.__isJPG=function(a){a.position=0;return 255==a.readByte()&&216==a.readByte()};c.display.BitmapData.__isPNG=function(a){a.position=0;return 137==a.readByte()&&80==a.readByte()&&78==a.readByte()&&71==a.readByte()&&13==a.readByte()&&10==a.readByte()&&26==a.readByte()&&10==a.readByte()};c.display.BitmapData.__isGIF=
function(a){a.position=0;if(71==a.readByte()&&73==a.readByte()&&70==a.readByte()&&38==a.readByte()){var b=a.readByte();return(7==b||9==b)&&97==a.readByte()}return!1};c.display.BitmapData.prototype={applyFilter:function(a,b,c,e){this.__valid&&(null!=a&&a.__valid)&&(this.__convertToCanvas(),this.__createImageData(),a.__convertToCanvas(),a.__createImageData(),e.__applyFilter(this.__sourceImageData,a.__sourceImageData,b,c),this.__sourceImageDataChanged=!0)},clone:function(){this.__syncImageData();return this.__valid?
null!=this.__sourceImage?c.display.BitmapData.fromImage(this.__sourceImage,this.transparent):c.display.BitmapData.fromCanvas(this.__sourceCanvas,this.transparent):new c.display.BitmapData(this.width,this.height,this.transparent)},colorTransform:function(a,b){a=this.__clipRect(a);if(this.__valid&&null!=a){this.__convertToCanvas();this.__createImageData();for(var c=this.__sourceImageData.data,e=4*this.width,f,l=a.y|0,g=a.height|0;l<g;)for(var h=l++,k=a.x|0,i=a.width|0;k<i;)f=k++,f=h*e+4*f,c[f]=c[f]*
b.redMultiplier+b.redOffset|0,c[f+1]=c[f+1]*b.greenMultiplier+b.greenOffset|0,c[f+2]=c[f+2]*b.blueMultiplier+b.blueOffset|0,c[f+3]=c[f+3]*b.alphaMultiplier+b.alphaOffset|0;this.__sourceImageDataChanged=!0}},copyChannel:function(a,b,c,e,f){b=this.__clipRect(b);if(this.__valid&&null!=b&&(8!=f||this.transparent))if(!(0>=b.width||0>=b.height)){b.x+b.width>a.width&&(b.width=a.width-b.x);b.y+b.height>a.height&&(b.height=a.height-b.y);var l=-1;if(8==f)l=3;else if(4==f)l=2;else if(2==f)l=1;else if(1==f)l=
0;else throw"Invalid destination BitmapDataChannel passed to BitmapData::copyChannel.";f=-1;if(8==e)f=3;else if(4==e)f=2;else if(2==e)f=1;else if(1==e)f=0;else throw"Invalid source BitmapDataChannel passed to BitmapData::copyChannel.";a.__convertToCanvas();a.__createImageData();var e=a.__sourceImageData.data,a=4*a.width|0,f=4*b.x+a*b.y+f|0,g=a-(4*b.width|0),h=4*(b.x+b.width)|0;this.__convertToCanvas();this.__createImageData();for(var k=this.__sourceImageData.data,i=4*this.width|0,l=4*c.x+i*c.y+l|
0,j=i-(4*b.width|0),c=4*(c.x+b.width)|0,b=b.width*b.height|0,m=0;m<b;)m++,k[l]=e[f],f+=4,l+=4,f%a>h&&(f+=g),l%i>c&&(l+=j);this.__sourceImageDataChanged=!0}},copyPixels:function(a,b,d,e,f,l){null==l&&(l=!1);if(this.__valid&&(b.x+b.width>a.width&&(b.width=a.width-b.x),b.y+b.height>a.height&&(b.height=a.height-b.y),!(0>=b.width||0>=b.height)))null!=e&&e.transparent&&(null==f&&(f=new c.geom.Point),a=this.clone(),a.copyChannel(e,new c.geom.Rectangle(f.x,f.y,b.width,b.height),new c.geom.Point(b.x,b.y),
8,8)),this.__syncImageData(),l||this.transparent&&a.transparent&&this.__sourceContext.clearRect(d.x,d.y,b.width,b.height),a.__syncImageData(),null!=a.__sourceImage?this.__sourceContext.drawImage(a.__sourceImage,b.x|0,b.y|0,b.width|0,b.height|0,d.x|0,d.y|0,b.width|0,b.height|0):null!=a.__sourceCanvas&&this.__sourceContext.drawImage(a.__sourceCanvas,b.x|0,b.y|0,b.width|0,b.height|0,d.x|0,d.y|0,b.width|0,b.height|0)},dispose:function(){this.__sourceContext=this.__sourceCanvas=this.__sourceImage=null;
this.height=this.width=0;this.rect=null;this.__valid=!1},draw:function(a,b,d,e,f,l){null==l&&(l=!1);this.__valid&&(this.__convertToCanvas(),this.__syncImageData(),d=new c.display.RenderSession,d.context=this.__sourceContext,d.roundPixels=!0,l||(this.__sourceContext.mozImageSmoothingEnabled=!1,this.__sourceContext.webkitImageSmoothingEnabled=!1,this.__sourceContext.imageSmoothingEnabled=!1),e=a.__worldTransform,a.__worldTransform=null!=b?b:new c.geom.Matrix,a.__updateChildren(!1),a.__renderCanvas(d),
a.__worldTransform=e,a.__updateChildren(!0),l||(this.__sourceContext.mozImageSmoothingEnabled=!0,this.__sourceContext.webkitImageSmoothingEnabled=!0,this.__sourceContext.imageSmoothingEnabled=!0),this.__sourceContext.setTransform(1,0,0,1,0,0))},encode:function(){c.Lib.notImplemented("BitmapData.encode");return null},fillRect:function(a,b){a=this.__clipRect(a);this.__valid&&null!=a&&(this.__convertToCanvas(),this.__syncImageData(),0==a.x&&0==a.y&&a.width==this.width&&a.height==this.height&&this.transparent&&
0==(b&-16777216)?this.__sourceCanvas.width=this.width:this.__fillRect(a,b))},floodFill:function(a,b,c){if(this.__valid){this.__convertToCanvas();this.__createImageData();var e=this.__sourceImageData.data,f=b*4*this.width+4*a,l=e[f],g=e[f+1],h=e[f+2],f=this.transparent?e[f+3]:255,k=(c&16711680)>>>16,i=(c&65280)>>>8,j=c&255,c=this.transparent?(c&-16777216)>>>24:255;if(!(l==k&&g==i&&h==j&&f==c)){var m=[0,-1,1,0],n=[-1,0,0,1],o=[];o.push(a);for(o.push(b);0<o.length;)for(var a=o.pop(),b=o.pop(),p=0;4>
p;){var s=p++,r=b+m[s],s=a+n[s];if(!(0>r||0>s||r>=this.width||s>=this.height)){var q=4*(s*this.width+r);e[q]==l&&(e[q+1]==g&&e[q+2]==h&&e[q+3]==f)&&(e[q]=k,e[q+1]=i,e[q+2]=j,e[q+3]=c,o.push(r),o.push(s))}}this.__sourceImageDataChanged=!0}}},generateFilterRect:function(a){return a.clone()},getColorBoundsRect:function(){return this.rect.clone()},getPixel:function(a,b){if(!this.__valid||0>a||0>b||a>=this.width||b>=this.height)return 0;this.__convertToCanvas();this.__createImageData();var c=4*b*this.width+
4*a;return this.__sourceImageData.data[c]<<16|this.__sourceImageData.data[c+1]<<8|this.__sourceImageData.data[c+2]},getPixel32:function(a,b){if(!this.__valid||0>a||0>b||a>=this.width||b>=this.height)return 0;this.__convertToCanvas();this.__createImageData();return this.__getInt32(4*b*this.width+4*a,this.__sourceImageData.data)},getPixels:function(a){if(!this.__valid)return null;this.__convertToCanvas();this.__createImageData();var b=new c.utils.ByteArray;if(null==a||a.equals(this.rect))b.set_length(this.__sourceImageData.data.length),
b.byteView.set(this.__sourceImageData.data);else{var d=this.__sourceImageData.data,e=4*this.width|0,f=4*a.x+e*a.y|0,l=e-(4*a.width|0),g=4*(a.x+a.width)|0,a=4*a.width*a.height|0;b.allocated<a?b.___resizeBuffer(b.allocated=k["int"](Math.max(a,2*b.allocated))):b.allocated>a&&b.___resizeBuffer(b.allocated=a);b.length=a;a;for(var h=0;h<a;){var i=h++;b.__set(i,d[f++]);f%e>g&&(f+=l)}}b.position=0;return b},getVector:function(){c.Lib.notImplemented("BitmapData.getVector");var a=[],b=new c.VectorData;b.length=
a.length;b.fixed=!0;var d;d=Array(a.length);for(var e=0,f=a.length;e<f;){var l=e++;d[l]=a[l]}b.data=d;return b},hitTest:function(){if(!this.__valid)return!1;c.Lib.notImplemented("BitmapData.hitTest");return!1},lock:function(){},noise:function(){this.__valid&&c.Lib.notImplemented("BitmapData.noise")},perlinNoise:function(){c.Lib.notImplemented("BitmapData.perlinNoise")},scroll:function(){c.Lib.notImplemented("BitmapData.scroll")},setVector:function(){c.Lib.notImplemented("BitmapData.setVector")},setPixel:function(a,
b,c){if(this.__valid&&!(0>a||0>b||a>=this.width||b>=this.height))this.__convertToCanvas(),this.__createImageData(),a=4*b*this.width+4*a,this.__sourceImageData.data[a]=(c&16711680)>>>16,this.__sourceImageData.data[a+1]=(c&65280)>>>8,this.__sourceImageData.data[a+2]=c&255,this.transparent&&(this.__sourceImageData.data[a+3]=255),this.__sourceImageDataChanged=!0},setPixel32:function(a,b,c){if(this.__valid&&!(0>a||0>b||a>=this.width||b>=this.height))this.__convertToCanvas(),this.__createImageData(),a=
4*b*this.width+4*a,this.__sourceImageData.data[a]=(c&16711680)>>>16,this.__sourceImageData.data[a+1]=(c&65280)>>>8,this.__sourceImageData.data[a+2]=c&255,this.__sourceImageData.data[a+3]=this.transparent?(c&-16777216)>>>24:255,this.__sourceImageDataChanged=!0},setPixels:function(a,b){a=this.__clipRect(a);if(this.__valid&&null!=a){this.__convertToCanvas();var c=Math.round(4*a.width*a.height);if(0==a.x&&0==a.y&&a.width==this.width&&a.height==this.height)null==this.__sourceImageData&&(this.__sourceImageData=
this.__sourceContext.createImageData(this.width,this.height)),this.__sourceImageData.data.set(b.byteView);else{this.__createImageData();for(var e=Math.round(4*this.width*a.y+4*a.x),f=Math.round(4*(a.x+a.width)),l=this.__sourceImageData.data,g=0;g<c;)g++,e%(4*this.width)>f-1&&(e+=4*this.width-f),l[e]=b.readByte(),e++}this.__sourceImageDataChanged=!0}},threshold:function(){c.Lib.notImplemented("BitmapData.threshold");return 0},unlock:function(){},__clipRect:function(a){return null==a||0>a.x&&(a.width-=
-a.x,a.x=0,0>=a.x+a.width)||0>a.y&&(a.height-=-a.y,a.y=0,0>=a.y+a.height)||a.x+a.width>=this.width&&(a.width-=a.x+a.width-this.width,0>=a.width)||a.y+a.height>=this.height&&(a.height-=a.y+a.height-this.height,0>=a.height)?null:a},__convertToCanvas:function(){!this.__loading&&null!=this.__sourceImage&&(null==this.__sourceCanvas&&(this.__createCanvas(this.__sourceImage.width,this.__sourceImage.height),this.__sourceContext.drawImage(this.__sourceImage,0,0)),this.__sourceImage=null)},__createCanvas:function(a,
b){null==this.__sourceCanvas&&(this.__sourceCanvas=window.document.createElement("canvas"),this.__sourceCanvas.width=a,this.__sourceCanvas.height=b,this.transparent?this.__sourceContext=this.__sourceCanvas.getContext("2d"):(this.transparent||this.__sourceCanvas.setAttribute("moz-opaque","true"),this.__sourceContext=this.__sourceCanvas.getContext("2d",{alpha:!1})),this.__sourceContext.mozImageSmoothingEnabled=!1,this.__sourceContext.webkitImageSmoothingEnabled=!1,this.__sourceContext.imageSmoothingEnabled=
!1,this.__valid=!0)},__createImageData:function(){null==this.__sourceImageData&&(this.__sourceImageData=this.__sourceContext.getImageData(0,0,this.width,this.height))},__fillRect:function(a,b){this.__sourceContext.fillStyle="rgba("+((b&16711680)>>>16)+", "+((b&65280)>>>8)+", "+(b&255)+", "+(this.transparent?(b&-16777216)>>>24:255)/255+")";this.__sourceContext.fillRect(a.x,a.y,a.width,a.height)},__getInt32:function(a,b){return(this.transparent?b[a+3]:255)<<24|b[a]<<16|b[a+1]<<8|b[a+2]},__loadFromBase64:function(a,
b,d){var e=this;this.__sourceImage=window.document.createElement("img");this.__sourceImage.addEventListener("load",function(a){null==e.__sourceImage&&(e.__sourceImage=a.target);e.width=e.__sourceImage.width;e.height=e.__sourceImage.height;e.rect=new c.geom.Rectangle(0,0,e.width,e.height);e.__valid=!0;null!=d&&d(e)},!1);this.__sourceImage.src="data:"+b+";base64,"+a},__loadFromBytes:function(a,b,d){var e=this,f="";if(c.display.BitmapData.__isPNG(a))f="image/png";else if(c.display.BitmapData.__isJPG(a))f=
"image/jpeg";else if(c.display.BitmapData.__isGIF(a))f="image/gif";else throw new c.errors.IOError("BitmapData tried to read a PNG/JPG ByteArray, but found an invalid header.");null!=b?this.__loadFromBase64(c.display.BitmapData.__base64Encode(a),f,function(){e.__convertToCanvas();e.__createImageData();for(var a=e.__sourceImageData.data,c=0,f=b.length;c<f;){var g=c++;a[4*g+3]=b.readUnsignedByte()}e.__sourceImageDataChanged=!0;null!=d&&d(e)}):this.__loadFromBase64(c.display.BitmapData.__base64Encode(a),
f,d)},__renderCanvas:function(a){if(this.__valid){this.__syncImageData();var b=a.context;null==this.__worldTransform&&(this.__worldTransform=new c.geom.Matrix);b.globalAlpha=1;var d=this.__worldTransform;a.roundPixels?b.setTransform(d.a,d.b,d.c,d.d,d.tx|0,d.ty|0):b.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty);null!=this.__sourceImage?b.drawImage(this.__sourceImage,0,0):b.drawImage(this.__sourceCanvas,0,0)}},__renderMask:function(){},__syncImageData:function(){this.__sourceImageDataChanged&&(this.__sourceContext.putImageData(this.__sourceImageData,
0,0),this.__sourceImageData=null,this.__sourceImageDataChanged=!1)},__updateChildren:function(){},__class__:c.display.BitmapData};c.display.BitmapDataChannel=function(){};g["openfl.display.BitmapDataChannel"]=c.display.BitmapDataChannel;c.display.BitmapDataChannel.__name__=["openfl","display","BitmapDataChannel"];c.display.BlendMode=g["openfl.display.BlendMode"]={__ename__:!0,__constructs__:"ADD ALPHA DARKEN DIFFERENCE ERASE HARDLIGHT INVERT LAYER LIGHTEN MULTIPLY NORMAL OVERLAY SCREEN SUBTRACT".split(" ")};
c.display.BlendMode.ADD=["ADD",0];c.display.BlendMode.ADD.toString=i;c.display.BlendMode.ADD.__enum__=c.display.BlendMode;c.display.BlendMode.ALPHA=["ALPHA",1];c.display.BlendMode.ALPHA.toString=i;c.display.BlendMode.ALPHA.__enum__=c.display.BlendMode;c.display.BlendMode.DARKEN=["DARKEN",2];c.display.BlendMode.DARKEN.toString=i;c.display.BlendMode.DARKEN.__enum__=c.display.BlendMode;c.display.BlendMode.DIFFERENCE=["DIFFERENCE",3];c.display.BlendMode.DIFFERENCE.toString=i;c.display.BlendMode.DIFFERENCE.__enum__=
c.display.BlendMode;c.display.BlendMode.ERASE=["ERASE",4];c.display.BlendMode.ERASE.toString=i;c.display.BlendMode.ERASE.__enum__=c.display.BlendMode;c.display.BlendMode.HARDLIGHT=["HARDLIGHT",5];c.display.BlendMode.HARDLIGHT.toString=i;c.display.BlendMode.HARDLIGHT.__enum__=c.display.BlendMode;c.display.BlendMode.INVERT=["INVERT",6];c.display.BlendMode.INVERT.toString=i;c.display.BlendMode.INVERT.__enum__=c.display.BlendMode;c.display.BlendMode.LAYER=["LAYER",7];c.display.BlendMode.LAYER.toString=
i;c.display.BlendMode.LAYER.__enum__=c.display.BlendMode;c.display.BlendMode.LIGHTEN=["LIGHTEN",8];c.display.BlendMode.LIGHTEN.toString=i;c.display.BlendMode.LIGHTEN.__enum__=c.display.BlendMode;c.display.BlendMode.MULTIPLY=["MULTIPLY",9];c.display.BlendMode.MULTIPLY.toString=i;c.display.BlendMode.MULTIPLY.__enum__=c.display.BlendMode;c.display.BlendMode.NORMAL=["NORMAL",10];c.display.BlendMode.NORMAL.toString=i;c.display.BlendMode.NORMAL.__enum__=c.display.BlendMode;c.display.BlendMode.OVERLAY=["OVERLAY",
11];c.display.BlendMode.OVERLAY.toString=i;c.display.BlendMode.OVERLAY.__enum__=c.display.BlendMode;c.display.BlendMode.SCREEN=["SCREEN",12];c.display.BlendMode.SCREEN.toString=i;c.display.BlendMode.SCREEN.__enum__=c.display.BlendMode;c.display.BlendMode.SUBTRACT=["SUBTRACT",13];c.display.BlendMode.SUBTRACT.toString=i;c.display.BlendMode.SUBTRACT.__enum__=c.display.BlendMode;c.display._CapsStyle={};c.display._CapsStyle.CapsStyle_Impl_=function(){};g["openfl.display._CapsStyle.CapsStyle_Impl_"]=c.display._CapsStyle.CapsStyle_Impl_;
c.display._CapsStyle.CapsStyle_Impl_.__name__=["openfl","display","_CapsStyle","CapsStyle_Impl_"];c.display.FrameLabel=function(a,b){c.events.EventDispatcher.call(this);this.__name=a;this.__frame=b};g["openfl.display.FrameLabel"]=c.display.FrameLabel;c.display.FrameLabel.__name__=["openfl","display","FrameLabel"];c.display.FrameLabel.__super__=c.events.EventDispatcher;c.display.FrameLabel.prototype=m(c.events.EventDispatcher.prototype,{get_frame:function(){return this.__frame},get_name:function(){return this.__name},
__class__:c.display.FrameLabel,__properties__:{get_name:"get_name",get_frame:"get_frame"}});c.display.GradientType=g["openfl.display.GradientType"]={__ename__:!0,__constructs__:["RADIAL","LINEAR"]};c.display.GradientType.RADIAL=["RADIAL",0];c.display.GradientType.RADIAL.toString=i;c.display.GradientType.RADIAL.__enum__=c.display.GradientType;c.display.GradientType.LINEAR=["LINEAR",1];c.display.GradientType.LINEAR.toString=i;c.display.GradientType.LINEAR.__enum__=c.display.GradientType;c.display.Graphics=
function(){this.__commands=[];this.__positionY=this.__positionX=this.__halfStrokeWidth=0};g["openfl.display.Graphics"]=c.display.Graphics;c.display.Graphics.__name__=["openfl","display","Graphics"];c.display.Graphics.prototype={beginBitmapFill:function(a,b,d,e){null==e&&(e=!1);null==d&&(d=!0);this.__commands.push(c.display.DrawCommand.BeginBitmapFill(a,b,d,e));this.__visible=!0},beginFill:function(a,b){null==b&&(b=1);this.__commands.push(c.display.DrawCommand.BeginFill(a&16777215,b));0<b&&(this.__visible=
!0)},beginGradientFill:function(){c.Lib.notImplemented("Graphics.beginGradientFill")},clear:function(){this.__commands=[];this.__halfStrokeWidth=0;null!=this.__bounds&&(this.__dirty=!0,this.__bounds=null);this.__visible=!1},curveTo:function(a,b,d,e){this.__inflateBounds(this.__positionX-this.__halfStrokeWidth,this.__positionY-this.__halfStrokeWidth);this.__inflateBounds(this.__positionX+this.__halfStrokeWidth,this.__positionY+this.__halfStrokeWidth);this.__inflateBounds(a,b);this.__positionX=d;this.__positionY=
e;this.__inflateBounds(this.__positionX-this.__halfStrokeWidth,this.__positionY-this.__halfStrokeWidth);this.__inflateBounds(this.__positionX+this.__halfStrokeWidth,this.__positionY+this.__halfStrokeWidth);this.__commands.push(c.display.DrawCommand.CurveTo(a,b,d,e));this.__dirty=!0},drawCircle:function(a,b,d){0>=d||(this.__inflateBounds(a-d-this.__halfStrokeWidth,b-d-this.__halfStrokeWidth),this.__inflateBounds(a+d+this.__halfStrokeWidth,b+d+this.__halfStrokeWidth),this.__commands.push(c.display.DrawCommand.DrawCircle(a,
b,d)),this.__dirty=!0)},drawEllipse:function(a,b,d,e){0>=d||0>=e||(this.__inflateBounds(a-this.__halfStrokeWidth,b-this.__halfStrokeWidth),this.__inflateBounds(a+d+this.__halfStrokeWidth,b+e+this.__halfStrokeWidth),this.__commands.push(c.display.DrawCommand.DrawEllipse(a,b,d,e)),this.__dirty=!0)},drawGraphicsData:function(){c.Lib.notImplemented("Graphics.drawGraphicsData")},drawPath:function(){c.Lib.notImplemented("Graphics.drawPath")},drawRect:function(a,b,d,e){0>=d||0>=e||(this.__inflateBounds(a-
this.__halfStrokeWidth,b-this.__halfStrokeWidth),this.__inflateBounds(a+d+this.__halfStrokeWidth,b+e+this.__halfStrokeWidth),this.__commands.push(c.display.DrawCommand.DrawRect(a,b,d,e)),this.__dirty=!0)},drawRoundRect:function(){c.Lib.notImplemented("Graphics.drawRoundRect")},drawRoundRectComplex:function(){c.Lib.notImplemented("Graphics.drawRoundRectComplex")},drawTiles:function(a,b,d,e){null==e&&(e=0);null==d&&(d=!1);this.__inflateBounds(0,0);this.__inflateBounds(c.Lib.current.stage.stageWidth,
c.Lib.current.stage.stageHeight);this.__commands.push(c.display.DrawCommand.DrawTiles(a,b,d,e));this.__visible=this.__dirty=!0},drawTriangles:function(){c.Lib.notImplemented("Graphics.drawTriangles")},endFill:function(){this.__commands.push(c.display.DrawCommand.EndFill)},lineBitmapStyle:function(){c.Lib.notImplemented("Graphics.lineBitmapStyle")},lineGradientStyle:function(){c.Lib.notImplemented("Graphics.lineGradientStyle")},lineStyle:function(a,b,d,e,f,l,g,h){this.__halfStrokeWidth=null!=a?a/2:
0;this.__commands.push(c.display.DrawCommand.LineStyle(a,b,d,e,f,l,g,h));null!=a&&(this.__visible=!0)},lineTo:function(a,b){this.__inflateBounds(this.__positionX-this.__halfStrokeWidth,this.__positionY-this.__halfStrokeWidth);this.__inflateBounds(this.__positionX+this.__halfStrokeWidth,this.__positionY+this.__halfStrokeWidth);this.__positionX=a;this.__positionY=b;this.__inflateBounds(this.__positionX-this.__halfStrokeWidth,this.__positionY-this.__halfStrokeWidth);this.__inflateBounds(this.__positionX+
this.__halfStrokeWidth,this.__positionY+this.__halfStrokeWidth);this.__commands.push(c.display.DrawCommand.LineTo(a,b));this.__dirty=!0},moveTo:function(a,b){this.__commands.push(c.display.DrawCommand.MoveTo(a,b));this.__positionX=a;this.__positionY=b},__beginPath:function(){this.__inPath||(this.__context.beginPath(),this.__inPath=!0)},__closePath:function(a){this.__inPath&&(this.__hasFill&&this.__context.fill(),this.__context.closePath(),this.__hasStroke&&this.__context.stroke());this.__inPath=!1;
a&&(this.__hasStroke=this.__hasFill=!1)},__getBounds:function(a,b){if(null!=this.__bounds){var c=this.__bounds.clone().transform(b);a.__expand(c.x,c.y,c.width,c.height)}},__hitTest:function(a,b,c,e){if(null==this.__bounds)return!1;c=this.__bounds.clone().transform(e);return a>c.x&&b>c.y&&a<=c.get_right()&&b<=c.get_bottom()},__inflateBounds:function(a,b){if(null==this.__bounds)this.__bounds=new c.geom.Rectangle(a,b,0,0);else if(a<this.__bounds.x&&(this.__bounds.width+=this.__bounds.x-a,this.__bounds.x=
a),b<this.__bounds.y&&(this.__bounds.height+=this.__bounds.y-b,this.__bounds.y=b),a>this.__bounds.x+this.__bounds.width&&(this.__bounds.width=a-this.__bounds.x),b>this.__bounds.y+this.__bounds.height)this.__bounds.height=b-this.__bounds.y},__render:function(){if(this.__dirty){this.__inPath=this.__hasStroke=this.__hasFill=!1;this.__positionY=this.__positionX=0;if(!this.__visible||0==this.__commands.length||null==this.__bounds||0==this.__bounds.width||0==this.__bounds.height)this.__context=this.__canvas=
null;else{null==this.__canvas&&(this.__canvas=window.document.createElement("canvas"),this.__context=this.__canvas.getContext("2d"));this.__canvas.width=Math.ceil(this.__bounds.width);this.__canvas.height=Math.ceil(this.__bounds.height);for(var a=this.__bounds.x,b=this.__bounds.y,c=null,e=null,f=!1,l=null,g=!1,h=0,k=this.__commands;h<k.length;){var i=k[h];++h;switch(i[1]){case 0:var e=i[4],j=i[3],i=i[2];this.__closePath(!1);if(i!=c||e!=f)c=i,f=e,l=null,g=!1,i.__syncImageData();e=j;this.__hasFill=
!0;break;case 1:c=i[3];g=i[2];this.__closePath(!1);this.__context.fillStyle=1==c?"#"+s.hex(g,6):"rgba("+((g&16711680)>>>16)+", "+((g&65280)>>>8)+", "+(g&255)+", "+c+")";c=null;this.__hasFill=g=!0;break;case 2:var j=i[5],m=i[4],n=i[3],i=i[2];this.__beginPath();this.__context.quadraticCurveTo(i-a,n-b,m-a,j-b);this.__positionX=m;this.__positionY=j;break;case 3:j=i[4];m=i[3];i=i[2];!g&&null!=c&&(null==l&&(l=null!=c.__sourceImage?this.__context.createPattern(c.__sourceImage,f?"repeat":"no-repeat"):this.__context.createPattern(c.__sourceCanvas,
f?"repeat":"no-repeat")),this.__context.fillStyle=l,g=!0);this.__closePath(!1);this.__beginPath();this.__context.arc(i-a,m-b,j,0,2*Math.PI,!0);this.__closePath(!1);break;case 4:var m=i[5],o=i[4],j=i[3],i=i[2];!g&&null!=c&&(null==l&&(l=null!=c.__sourceImage?this.__context.createPattern(c.__sourceImage,f?"repeat":"no-repeat"):this.__context.createPattern(c.__sourceCanvas,f?"repeat":"no-repeat")),this.__context.fillStyle=l,g=!0);var i=i-a,j=j-b,n=0.5522848*(o/2),p=0.5522848*(m/2),q=i+o,r=j+m,o=i+o/2,
m=j+m/2;this.__closePath(!1);this.__beginPath();this.__context.moveTo(i,m);this.__context.bezierCurveTo(i,m-p,o-n,j,o,j);this.__context.bezierCurveTo(o+n,j,q,m-p,q,m);this.__context.bezierCurveTo(q,m+p,o+n,r,o,r);this.__context.bezierCurveTo(o-n,r,i,m+p,i,m);this.__closePath(!1);break;case 5:j=i[5];m=i[4];n=i[3];i=i[2];null!=c&&m<=c.width&&j<=c.height?(this.__closePath(!1),p=i,q=n,null!=e&&(p-=e.tx,q-=e.ty),null!=c.__sourceImage?this.__context.drawImage(c.__sourceImage,p,q,m,j,i,n,m,j):this.__context.drawImage(c.__sourceCanvas,
p,q,m,j,i,n,m,j)):(this.__closePath(!1),this.__beginPath(),!g&&null!=c&&(null==l&&(l=null!=c.__sourceImage?this.__context.createPattern(c.__sourceImage,f?"repeat":"no-repeat"):this.__context.createPattern(c.__sourceCanvas,f?"repeat":"no-repeat")),this.__context.fillStyle=l,g=!0),this.__context.rect(i-a,n-b,m,j),this.__closePath(!1));break;case 6:q=i[5];j=i[3];i=i[2];this.__closePath(!1);var m=0<(q&1),n=0<(q&2),p=0<(q&16),t=0<(q&4),q=0<(q&8);p&&(n=m=!1);var v=o=r=0,w=0,y=3;m&&(r=y,y++);n&&(o=y,y++);
p&&(w=y,y+=4);t&&(y+=3);q&&(v=y,y++);var t=j.length,x=0,A=null,z=null,C=-1,D;i.__bitmap.__syncImageData();for(D=null!=i.__bitmap.__sourceImage?i.__bitmap.__sourceImage:i.__bitmap.__sourceCanvas;x<t;){var B=j[x+2]|0;B!=C&&(A=i.__tileRects[B],z=i.__centerPoints[B],C=B);null!=A&&(0<A.width&&0<A.height&&null!=z)&&(this.__context.save(),this.__context.translate(j[x],j[x+1]),n&&this.__context.rotate(j[x+o]),B=1,m&&(B=j[x+r]),p&&this.__context.transform(j[x+w],j[x+w+1],j[x+w+2],j[x+w+3],0,0),q&&(this.__context.globalAlpha=
j[x+v]),this.__context.drawImage(D,A.x,A.y,A.width,A.height,-z.x*B,-z.y*B,A.width*B,A.height*B),this.__context.restore());x+=y}break;case 7:this.__closePath(!0);break;case 8:j=i[9];m=i[8];n=i[7];p=i[3];i=i[2];this.__closePath(!1);null==i?this.__hasStroke=!1:(this.__context.lineWidth=i,this.__context.lineJoin=m,this.__context.lineCap=n,this.__context.miterLimit=j,this.__context.strokeStyle="#"+s.hex(p,6),this.__hasStroke=!0);break;case 9:j=i[3];i=i[2];this.__beginPath();this.__context.lineTo(i-a,j-
b);this.__positionX=i;this.__positionY=j;break;case 10:j=i[3],i=i[2],this.__beginPath(),this.__context.moveTo(i-a,j-b),this.__positionX=i,this.__positionY=j}}}this.__dirty=!1;this.__closePath(!1)}},__renderMask:function(a){if(0!=this.__commands.length)for(var a=a.context,b=0,c=this.__commands;b<c.length;){var e=c[b];++b;switch(e[1]){case 2:a.quadraticCurveTo(e[2],e[3],e[4],e[5]);break;case 3:a.arc(e[2]-0,e[3]-0,e[4],0,2*Math.PI,!0);break;case 4:var f=e[5],l=e[4],g=e[3],e=e[2],e=e-0,g=g-0,h=0.5522848*
(l/2),i=0.5522848*(f/2),j=e+l,k=g+f,l=e+l/2,f=g+f/2;a.moveTo(e,f);a.bezierCurveTo(e,f-i,l-h,g,l,g);a.bezierCurveTo(l+h,g,j,f-i,j,f);a.bezierCurveTo(j,f+i,l+h,k,l,k);a.bezierCurveTo(l-h,k,e,f+i,e,f);break;case 5:a.rect(e[2]-0,e[3]-0,e[4],e[5]);break;case 9:a.lineTo(e[2]-0,e[3]-0);break;case 10:a.moveTo(e[2]-0,e[3]-0)}}},__class__:c.display.Graphics};c.display.DrawCommand=g["openfl.display.DrawCommand"]={__ename__:!0,__constructs__:"BeginBitmapFill BeginFill CurveTo DrawCircle DrawEllipse DrawRect DrawTiles EndFill LineStyle LineTo MoveTo".split(" ")};
c.display.DrawCommand.BeginBitmapFill=function(a,b,d,e){a=["BeginBitmapFill",0,a,b,d,e];a.__enum__=c.display.DrawCommand;a.toString=i;return a};c.display.DrawCommand.BeginFill=function(a,b){var d=["BeginFill",1,a,b];d.__enum__=c.display.DrawCommand;d.toString=i;return d};c.display.DrawCommand.CurveTo=function(a,b,d,e){a=["CurveTo",2,a,b,d,e];a.__enum__=c.display.DrawCommand;a.toString=i;return a};c.display.DrawCommand.DrawCircle=function(a,b,d){a=["DrawCircle",3,a,b,d];a.__enum__=c.display.DrawCommand;
a.toString=i;return a};c.display.DrawCommand.DrawEllipse=function(a,b,d,e){a=["DrawEllipse",4,a,b,d,e];a.__enum__=c.display.DrawCommand;a.toString=i;return a};c.display.DrawCommand.DrawRect=function(a,b,d,e){a=["DrawRect",5,a,b,d,e];a.__enum__=c.display.DrawCommand;a.toString=i;return a};c.display.DrawCommand.DrawTiles=function(a,b,d,e){a=["DrawTiles",6,a,b,d,e];a.__enum__=c.display.DrawCommand;a.toString=i;return a};c.display.DrawCommand.EndFill=["EndFill",7];c.display.DrawCommand.EndFill.toString=
i;c.display.DrawCommand.EndFill.__enum__=c.display.DrawCommand;c.display.DrawCommand.LineStyle=function(a,b,d,e,f,l,g,h){a=["LineStyle",8,a,b,d,e,f,l,g,h];a.__enum__=c.display.DrawCommand;a.toString=i;return a};c.display.DrawCommand.LineTo=function(a,b){var d=["LineTo",9,a,b];d.__enum__=c.display.DrawCommand;d.toString=i;return d};c.display.DrawCommand.MoveTo=function(a,b){var d=["MoveTo",10,a,b];d.__enum__=c.display.DrawCommand;d.toString=i;return d};c.display.GraphicsPathWinding=g["openfl.display.GraphicsPathWinding"]=
{__ename__:!0,__constructs__:["EVEN_ODD","NON_ZERO"]};c.display.GraphicsPathWinding.EVEN_ODD=["EVEN_ODD",0];c.display.GraphicsPathWinding.EVEN_ODD.toString=i;c.display.GraphicsPathWinding.EVEN_ODD.__enum__=c.display.GraphicsPathWinding;c.display.GraphicsPathWinding.NON_ZERO=["NON_ZERO",1];c.display.GraphicsPathWinding.NON_ZERO.toString=i;c.display.GraphicsPathWinding.NON_ZERO.__enum__=c.display.GraphicsPathWinding;c.display.IGraphicsData=function(){};g["openfl.display.IGraphicsData"]=c.display.IGraphicsData;
c.display.IGraphicsData.__name__=["openfl","display","IGraphicsData"];c.display.IGraphicsData.prototype={__class__:c.display.IGraphicsData};c.display.GraphicsDataType=g["openfl.display.GraphicsDataType"]={__ename__:!0,__constructs__:"STROKE SOLID GRADIENT PATH BITMAP END".split(" ")};c.display.GraphicsDataType.STROKE=["STROKE",0];c.display.GraphicsDataType.STROKE.toString=i;c.display.GraphicsDataType.STROKE.__enum__=c.display.GraphicsDataType;c.display.GraphicsDataType.SOLID=["SOLID",1];c.display.GraphicsDataType.SOLID.toString=
i;c.display.GraphicsDataType.SOLID.__enum__=c.display.GraphicsDataType;c.display.GraphicsDataType.GRADIENT=["GRADIENT",2];c.display.GraphicsDataType.GRADIENT.toString=i;c.display.GraphicsDataType.GRADIENT.__enum__=c.display.GraphicsDataType;c.display.GraphicsDataType.PATH=["PATH",3];c.display.GraphicsDataType.PATH.toString=i;c.display.GraphicsDataType.PATH.__enum__=c.display.GraphicsDataType;c.display.GraphicsDataType.BITMAP=["BITMAP",4];c.display.GraphicsDataType.BITMAP.toString=i;c.display.GraphicsDataType.BITMAP.__enum__=
c.display.GraphicsDataType;c.display.GraphicsDataType.END=["END",5];c.display.GraphicsDataType.END.toString=i;c.display.GraphicsDataType.END.__enum__=c.display.GraphicsDataType;c.display.InterpolationMethod=g["openfl.display.InterpolationMethod"]={__ename__:!0,__constructs__:["RGB","LINEAR_RGB"]};c.display.InterpolationMethod.RGB=["RGB",0];c.display.InterpolationMethod.RGB.toString=i;c.display.InterpolationMethod.RGB.__enum__=c.display.InterpolationMethod;c.display.InterpolationMethod.LINEAR_RGB=
["LINEAR_RGB",1];c.display.InterpolationMethod.LINEAR_RGB.toString=i;c.display.InterpolationMethod.LINEAR_RGB.__enum__=c.display.InterpolationMethod;c.display._JointStyle={};c.display._JointStyle.JointStyle_Impl_=function(){};g["openfl.display._JointStyle.JointStyle_Impl_"]=c.display._JointStyle.JointStyle_Impl_;c.display._JointStyle.JointStyle_Impl_.__name__=["openfl","display","_JointStyle","JointStyle_Impl_"];c.display.LineScaleMode=g["openfl.display.LineScaleMode"]={__ename__:!0,__constructs__:["HORIZONTAL",
"NONE","NORMAL","VERTICAL"]};c.display.LineScaleMode.HORIZONTAL=["HORIZONTAL",0];c.display.LineScaleMode.HORIZONTAL.toString=i;c.display.LineScaleMode.HORIZONTAL.__enum__=c.display.LineScaleMode;c.display.LineScaleMode.NONE=["NONE",1];c.display.LineScaleMode.NONE.toString=i;c.display.LineScaleMode.NONE.__enum__=c.display.LineScaleMode;c.display.LineScaleMode.NORMAL=["NORMAL",2];c.display.LineScaleMode.NORMAL.toString=i;c.display.LineScaleMode.NORMAL.__enum__=c.display.LineScaleMode;c.display.LineScaleMode.VERTICAL=
["VERTICAL",3];c.display.LineScaleMode.VERTICAL.toString=i;c.display.LineScaleMode.VERTICAL.__enum__=c.display.LineScaleMode;c.display.Loader=function(){c.display.Sprite.call(this);this.contentLoaderInfo=c.display.LoaderInfo.create(this)};g["openfl.display.Loader"]=c.display.Loader;c.display.Loader.__name__=["openfl","display","Loader"];c.display.Loader.__super__=c.display.Sprite;c.display.Loader.prototype=m(c.display.Sprite.prototype,{load:function(a){var b="",d=a.url.split(".");0<d.length&&(b=d[d.length-
1].toLowerCase());this.contentLoaderInfo.url=a.url;if(null==a.contentType&&""!=a.contentType)switch(b){case "swf":this.contentLoaderInfo.contentType="application/x-shockwave-flash";break;case "jpg":case "jpeg":this.contentLoaderInfo.contentType="image/jpeg";break;case "png":this.contentLoaderInfo.contentType="image/png";break;case "gif":this.contentLoaderInfo.contentType="image/gif";break;default:this.contentLoaderInfo.contentType="application/x-www-form-urlencoded"}else this.contentLoaderInfo.contentType=
a.contentType;c.display.BitmapData.fromFile(a.url,t(this,this.BitmapData_onLoad),t(this,this.BitmapData_onError))},loadBytes:function(a){c.display.BitmapData.fromBytes(a,null,t(this,this.BitmapData_onLoad))},unload:function(){if(0<this.get_numChildren()){for(;0<this.get_numChildren();)this.removeChildAt(0);this.content=null;this.contentLoaderInfo.url=null;this.contentLoaderInfo.contentType=null;this.contentLoaderInfo.content=null;this.contentLoaderInfo.bytesLoaded=0;this.contentLoaderInfo.bytesTotal=
0;this.contentLoaderInfo.width=0;this.contentLoaderInfo.height=0;var a=new c.events.Event(c.events.Event.UNLOAD);a.currentTarget=this;this.dispatchEvent(a)}},BitmapData_onLoad:function(a){this.contentLoaderInfo.content=new c.display.Bitmap(a);this.content=this.contentLoaderInfo.content;this.addChild(this.contentLoaderInfo.content);a=new c.events.Event(c.events.Event.COMPLETE);a.target=this.contentLoaderInfo;a.currentTarget=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},BitmapData_onError:function(){var a=
new c.events.IOErrorEvent(c.events.IOErrorEvent.IO_ERROR);a.target=this.contentLoaderInfo;a.currentTarget=this.contentLoaderInfo;this.contentLoaderInfo.dispatchEvent(a)},__class__:c.display.Loader});c.display.LoaderInfo=function(){c.events.EventDispatcher.call(this);this.applicationDomain=c.system.ApplicationDomain.currentDomain;this.bytesTotal=this.bytesLoaded=0;this.childAllowsParent=!0;this.parameters={}};g["openfl.display.LoaderInfo"]=c.display.LoaderInfo;c.display.LoaderInfo.__name__=["openfl",
"display","LoaderInfo"];c.display.LoaderInfo.create=function(a){var b=new c.display.LoaderInfo;null!=a?b.loader=a:b.url="";return b};c.display.LoaderInfo.__super__=c.events.EventDispatcher;c.display.LoaderInfo.prototype=m(c.events.EventDispatcher.prototype,{__class__:c.display.LoaderInfo});c.display.MovieClip=function(){c.display.Sprite.call(this);this.__currentFrame=0;this.__currentLabels=[];this.__totalFrames=0;this.enabled=!0;this.loaderInfo=c.display.LoaderInfo.create(null)};g["openfl.display.MovieClip"]=
c.display.MovieClip;c.display.MovieClip.__name__=["openfl","display","MovieClip"];c.display.MovieClip.__super__=c.display.Sprite;c.display.MovieClip.prototype=m(c.display.Sprite.prototype,{gotoAndPlay:function(){},gotoAndStop:function(){},nextFrame:function(){},play:function(){},prevFrame:function(){},stop:function(){},get_currentFrame:function(){return this.__currentFrame},get_currentFrameLabel:function(){return this.__currentFrameLabel},get_currentLabel:function(){return this.__currentLabel},get_currentLabels:function(){return this.__currentLabels},
get_framesLoaded:function(){return this.__totalFrames},get_totalFrames:function(){return this.__totalFrames},__class__:c.display.MovieClip,__properties__:m(c.display.Sprite.prototype.__properties__,{get_totalFrames:"get_totalFrames",get_framesLoaded:"get_framesLoaded",get_currentLabels:"get_currentLabels",get_currentLabel:"get_currentLabel",get_currentFrameLabel:"get_currentFrameLabel",get_currentFrame:"get_currentFrame"})});c.display.PixelSnapping=g["openfl.display.PixelSnapping"]={__ename__:!0,
__constructs__:["NEVER","AUTO","ALWAYS"]};c.display.PixelSnapping.NEVER=["NEVER",0];c.display.PixelSnapping.NEVER.toString=i;c.display.PixelSnapping.NEVER.__enum__=c.display.PixelSnapping;c.display.PixelSnapping.AUTO=["AUTO",1];c.display.PixelSnapping.AUTO.toString=i;c.display.PixelSnapping.AUTO.__enum__=c.display.PixelSnapping;c.display.PixelSnapping.ALWAYS=["ALWAYS",2];c.display.PixelSnapping.ALWAYS.toString=i;c.display.PixelSnapping.ALWAYS.__enum__=c.display.PixelSnapping;c.display.Shape=function(){c.display.DisplayObject.call(this)};
g["openfl.display.Shape"]=c.display.Shape;c.display.Shape.__name__=["openfl","display","Shape"];c.display.Shape.__super__=c.display.DisplayObject;c.display.Shape.prototype=m(c.display.DisplayObject.prototype,{__getBounds:function(a){null!=this.__graphics&&this.__graphics.__getBounds(a,this.__worldTransform)},__hitTest:function(a,b,c,e,f){return this.get_visible()&&null!=this.__graphics&&this.__graphics.__hitTest(a,b,c,this.__worldTransform)?(f||e.push(this),!0):!1},__renderCanvas:function(a){if(this.__renderable&&
!(0>=this.__worldAlpha)&&null!=this.__graphics&&(this.__graphics.__render(),null!=this.__graphics.__canvas)){var b=a.context;b.globalAlpha=this.__worldAlpha;var c=this.__worldTransform;a.roundPixels?b.setTransform(c.a,c.b,c.c,c.d,c.tx|0,c.ty|0):b.setTransform(c.a,c.b,c.c,c.d,c.tx,c.ty);null==this.get_scrollRect()?b.drawImage(this.__graphics.__canvas,this.__graphics.__bounds.x,this.__graphics.__bounds.y):b.drawImage(this.__graphics.__canvas,this.get_scrollRect().x-this.__graphics.__bounds.x,this.get_scrollRect().y-
this.__graphics.__bounds.y,this.get_scrollRect().width,this.get_scrollRect().height,this.__graphics.__bounds.x+this.get_scrollRect().x,this.__graphics.__bounds.y+this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height)}},__renderDOM:function(a){if(null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=this.__graphics){if(this.__graphics.__dirty||this.__worldAlphaChanged||null==this.__canvas&&null!=this.__graphics.__canvas)this.__graphics.__render(),null!=this.__graphics.__canvas?
(null==this.__canvas&&(this.__canvas=window.document.createElement("canvas"),this.__canvasContext=this.__canvas.getContext("2d"),this.__initializeElement(this.__canvas,a)),this.__canvas.width=this.__graphics.__canvas.width,this.__canvas.height=this.__graphics.__canvas.height,this.__canvasContext.globalAlpha=this.__worldAlpha,this.__canvasContext.drawImage(this.__graphics.__canvas,0,0)):null!=this.__canvas&&(a.element.removeChild(this.__canvas),this.__style=this.__canvas=null);if(null!=this.__canvas){if(this.__worldTransformChanged){var b=
new c.geom.Matrix;b.translate(this.__graphics.__bounds.x,this.__graphics.__bounds.y);b=b.mult(this.__worldTransform);this.__style.setProperty(a.transformProperty,a.roundPixels?"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+(b.tx|0)+", "+(b.ty|0)+", 0, 1)":"matrix3d("+b.a+", "+b.b+", 0, 0, "+b.c+", "+b.d+", 0, 0, 0, 0, 1, 0, "+b.tx+", "+b.ty+", 0, 1)",null)}this.__applyStyle(a,!1,!1,!0)}}else null!=this.__canvas&&(a.element.removeChild(this.__canvas),this.__style=this.__canvas=
null)},get_graphics:function(){null==this.__graphics&&(this.__graphics=new c.display.Graphics);return this.__graphics},__class__:c.display.Shape,__properties__:m(c.display.DisplayObject.prototype.__properties__,{get_graphics:"get_graphics"})});c.display.SpreadMethod=g["openfl.display.SpreadMethod"]={__ename__:!0,__constructs__:["REPEAT","REFLECT","PAD"]};c.display.SpreadMethod.REPEAT=["REPEAT",0];c.display.SpreadMethod.REPEAT.toString=i;c.display.SpreadMethod.REPEAT.__enum__=c.display.SpreadMethod;
c.display.SpreadMethod.REFLECT=["REFLECT",1];c.display.SpreadMethod.REFLECT.toString=i;c.display.SpreadMethod.REFLECT.__enum__=c.display.SpreadMethod;c.display.SpreadMethod.PAD=["PAD",2];c.display.SpreadMethod.PAD.toString=i;c.display.SpreadMethod.PAD.__enum__=c.display.SpreadMethod;c.display.Stage=function(a,b,d,e){this.__mouseX=this.__mouseY=0;c.display.Sprite.call(this);this.__element=d;null==e?(this.__transparent=!0,this.set_color(0)):this.set_color(e);this.set_name(null);this.__mouseY=this.__mouseX=
0;this.__div=window.document.createElement("div");e=this.__div.style;this.__transparent||(e.backgroundColor=this.__colorString);e.setProperty("-webkit-transform","translate3D(0,0,0)",null);e.setProperty("transform","translate3D(0,0,0)",null);e.position="relative";e.overflow="hidden";e.setProperty("-webkit-user-select","none",null);e.setProperty("-moz-user-select","none",null);e.setProperty("-ms-user-select","none",null);e.setProperty("-o-user-select","none",null);window.document.addEventListener("dragstart",
function(a){if(a.target.nodeName.toLowerCase()=="img"){a.preventDefault();return false}return true},!1);this.__originalWidth=a;this.__originalHeight=b;0==a&&0==b&&(null!=d?(a=d.clientWidth,b=d.clientHeight):(a=window.innerWidth,b=window.innerHeight),this.__fullscreen=!0);this.stageWidth=a;this.stageHeight=b;null!=this.__canvas?(this.__canvas.width=a,this.__canvas.height=b):(this.__div.style.width=a+"px",this.__div.style.height=b+"px");this.__resize();window.addEventListener("resize",t(this,this.window_onResize));
window.addEventListener("focus",t(this,this.window_onFocus));window.addEventListener("blur",t(this,this.window_onBlur));null!=d&&(null!=this.__canvas?d!=this.__canvas&&d.appendChild(this.__canvas):d.appendChild(this.__div));this.stage=this;this.align=c.display.StageAlign.TOP_LEFT;this.allowsFullScreen=!1;this.set_displayState(c.display.StageDisplayState.NORMAL);this.frameRate=60;this.quality="high";this.scaleMode=c.display.StageScaleMode.NO_SCALE;this.__clearBeforeRender=this.stageFocusRect=!0;this.__stack=
[];this.__renderSession=new c.display.RenderSession;this.__renderSession.context=this.__context;this.__renderSession.roundPixels=!0;null!=this.__div&&(this.__renderSession.element=this.__div,a=window.getComputedStyle(document.documentElement,""),a=(Array.prototype.slice.call(a).join("").match(/-(moz|webkit|ms)-/)||""===a.OLink&&["","o"])[1],"WebKit|Moz|MS|O".match(RegExp("("+a+")","i")),a[0].toUpperCase(),a.substr(1),this.__renderSession.vendorPrefix=a,this.__renderSession.transformProperty="webkit"==
a?"-webkit-transform":"transform",this.__renderSession.transformOriginProperty="webkit"==a?"-webkit-transform-origin":"transform-origin");for(var f=["keydown","keyup"],e=["touchstart","touchmove","touchend"],d=["mousedown","mousemove","mouseup","dblclick","mousewheel"],a=["focus","blur"],b=null!=this.__canvas?this.__canvas:this.__div,g=0;g<f.length;){var h=f[g];++g;window.addEventListener(h,t(this,this.window_onKey),!1)}for(f=0;f<e.length;)g=e[f],++f,b.addEventListener(g,t(this,this.element_onTouch),
!0);for(e=0;e<d.length;)f=d[e],++e,b.addEventListener(f,t(this,this.element_onMouse),!0);for(d=0;d<a.length;)e=a[d],++d,b.addEventListener(e,t(this,this.element_onFocus),!0);window.requestAnimationFrame(t(this,this.__render))};g["openfl.display.Stage"]=c.display.Stage;c.display.Stage.__name__=["openfl","display","Stage"];c.display.Stage.__super__=c.display.Sprite;c.display.Stage.prototype=m(c.display.Sprite.prototype,{globalToLocal:function(a){return a},invalidate:function(){this.__invalidated=!0},
localToGlobal:function(a){return a},__fireEvent:function(a,b){var c=b.length;if(0==c)a.eventPhase=1,a.target.__broadcast(a,!1);else{a.eventPhase=0;a.target=b[b.length-1];for(var e=0,f=c-1;e<f;){var g=e++;b[g].__broadcast(a,!1);if(a.__isCancelled)return}a.eventPhase=1;a.target.__broadcast(a,!1);if(!a.__isCancelled&&a.bubbles){a.eventPhase=2;for(c-=2;0<=c;){b[c].__broadcast(a,!1);if(a.__isCancelled)break;c--}}}},__getInteractive:function(a){a.push(this)},__render:function(){this.__broadcast(new c.events.Event(c.events.Event.ENTER_FRAME),
!0);this.__invalidated&&(this.__invalidated=!1,this.__broadcast(new c.events.Event(c.events.Event.RENDER),!0));this.__renderable=!0;this.__update(!1,!0);if(null!=this.__canvas){if(!this.__fullscreen||this.__element!=this.__canvas){if(this.stageWidth!=this.__canvas.width||this.stageHeight!=this.__canvas.height)this.__canvas.width=this.stageWidth,this.__canvas.height=this.stageHeight}else this.stageWidth=this.__canvas.width,this.stageHeight=this.__canvas.height;this.__context.setTransform(1,0,0,1,0,
0);this.__context.globalAlpha=1;!this.__transparent&&this.__clearBeforeRender?(this.__context.fillStyle=this.__colorString,this.__context.fillRect(0,0,this.stageWidth,this.stageHeight)):this.__transparent&&this.__clearBeforeRender&&this.__context.clearRect(0,0,this.stageWidth,this.stageHeight);this.__renderCanvas(this.__renderSession)}else this.__renderSession.z=1,this.__renderDOM(this.__renderSession);window.requestAnimationFrame(t(this,this.__render))},__resize:function(){if(null!=this.__element&&
null==this.__div)if(this.__fullscreen)this.stageWidth=this.__element.clientWidth,this.stageHeight=this.__element.clientHeight,null!=this.__canvas?this.__element!=this.__canvas&&(this.__canvas.width=this.stageWidth,this.__canvas.height=this.stageHeight):(this.__div.style.width=this.stageWidth+"px",this.__div.style.height=this.stageHeight+"px");else{var a=Math.min(this.__element.clientWidth/this.__originalWidth,this.__element.clientHeight/this.__originalHeight);null!=this.__canvas?this.__element!=this.__canvas&&
(this.__canvas.style.width=this.__originalWidth*a+"px",this.__canvas.style.height=this.__originalHeight*a+"px",this.__canvas.style.marginLeft=(this.__element.clientWidth-this.__originalWidth*a)/2+"px",this.__canvas.style.marginTop=(this.__element.clientHeight-this.__originalHeight*a)/2+"px"):(this.__div.style.width=this.__originalWidth*a+"px",this.__div.style.height=this.__originalHeight*a+"px",this.__div.style.marginLeft=(this.__element.clientWidth-this.__originalWidth*a)/2+"px",this.__div.style.marginTop=
(this.__element.clientHeight-this.__originalHeight*a)/2+"px")}},__setCursor:function(a){this.__cursor!=a&&(this.__cursor=a,this.__cursorHidden||((null!=this.__canvas?this.__canvas:this.__div).style.cursor=a))},__setCursorHidden:function(a){this.__cursorHidden!=a&&(this.__cursorHidden=a,(null!=this.__canvas?this.__canvas:this.__div).style.cursor=a?"none":this.__cursor)},__update:function(a,b){a?0<c.display.DisplayObject.__worldTransformDirty&&(c.display.Sprite.prototype.__update.call(this,!0,b),b&&
(c.display.DisplayObject.__worldTransformDirty=0,this.__dirty=!0)):0<c.display.DisplayObject.__worldTransformDirty||this.__dirty||0<c.display.DisplayObject.__worldRenderDirty?(c.display.Sprite.prototype.__update.call(this,!1,b),b&&(this.__wasDirty=!0,c.display.DisplayObject.__worldTransformDirty=0,c.display.DisplayObject.__worldRenderDirty=0,this.__dirty=!1)):this.__wasDirty&&(c.display.Sprite.prototype.__update.call(this,!1,b),b&&(this.__wasDirty=!1))},get_mouseX:function(){return this.__mouseX},
get_mouseY:function(){return this.__mouseY},element_onFocus:function(){},element_onTouch:function(a){a.preventDefault();var b;b=null!=this.__canvas?this.__canvas.getBoundingClientRect():this.__div.getBoundingClientRect();var d=a.changedTouches[0],e=new c.geom.Point((d.pageX-b.left)*(this.stageWidth/b.width),(d.pageY-b.top)*(this.stageHeight/b.height));this.__mouseX=e.x;this.__mouseY=e.y;this.__stack=[];var f=b=null;switch(a.type){case "touchstart":b="touchBegin";f=c.events.MouseEvent.MOUSE_DOWN;break;
case "touchmove":b="touchMove";f=c.events.MouseEvent.MOUSE_MOVE;break;case "touchend":b="touchEnd",f=c.events.MouseEvent.MOUSE_UP}if(this.__hitTest(this.get_mouseX(),this.get_mouseY(),!1,this.__stack,!0)){var g=this.__stack[this.__stack.length-1],h=g.globalToLocal(e),e=c.events.TouchEvent.__create(b,a,d,h,g);e.touchPointID=d.identifier;e.isPrimaryTouchPoint=!0;a=c.events.MouseEvent.__create(f,a,h,g);a.buttonDown="touchEnd"!=b;this.__fireEvent(e,this.__stack);this.__fireEvent(a,this.__stack)}else g=
c.events.TouchEvent.__create(b,a,d,e,this),g.touchPointID=d.identifier,g.isPrimaryTouchPoint=!0,a=c.events.MouseEvent.__create(f,a,e,this),a.buttonDown="touchEnd"!=b,this.__fireEvent(g,[this]),this.__fireEvent(a,[this])},element_onMouse:function(a){var b;null!=this.__canvas?(b=this.__canvas.getBoundingClientRect(),this.__mouseX=(a.clientX-b.left)*(this.stageWidth/b.width),this.__mouseY=(a.clientY-b.top)*(this.stageHeight/b.height)):(b=this.__div.getBoundingClientRect(),this.__mouseX=a.clientX-b.left,
this.__mouseY=a.clientY-b.top);this.__stack=[];switch(a.type){case "mousedown":b=c.events.MouseEvent.MOUSE_DOWN;break;case "mouseup":b=c.events.MouseEvent.MOUSE_UP;break;case "mousemove":b=c.events.MouseEvent.MOUSE_MOVE;break;case "dblclick":b=c.events.MouseEvent.DOUBLE_CLICK;break;case "mousewheel":b=c.events.MouseEvent.MOUSE_WHEEL;break;default:b=null}if(this.__hitTest(this.get_mouseX(),this.get_mouseY(),!1,this.__stack,!0)){var d=this.__stack[this.__stack.length-1];this.__setCursor(d.buttonMode?
"pointer":"default");this.__fireEvent(c.events.MouseEvent.__create(b,a,d.globalToLocal(new c.geom.Point(this.get_mouseX(),this.get_mouseY())),d),this.__stack);b==c.events.MouseEvent.MOUSE_UP&&this.__fireEvent(c.events.MouseEvent.__create(c.events.MouseEvent.CLICK,a,d.globalToLocal(new c.geom.Point(this.get_mouseX(),this.get_mouseY())),d),this.__stack)}else this.__setCursor(this.buttonMode?"pointer":"default"),this.__fireEvent(c.events.MouseEvent.__create(b,a,new c.geom.Point(this.get_mouseX(),this.get_mouseY()),
this),[this]),b==c.events.MouseEvent.MOUSE_UP&&this.__fireEvent(c.events.MouseEvent.__create(c.events.MouseEvent.CLICK,a,new c.geom.Point(this.get_mouseX(),this.get_mouseY()),this),[this])},window_onKey:function(a){var b;b=null!=a.keyCode?a.keyCode:a.which;b=c.ui.Keyboard.__convertMozillaCode(b);var d;d=p.Boot.__cast(null!=a.location?a.location:a.keyLocation,H);var e=[];null==this.__focus?this.__getInteractive(e):this.__focus.__getInteractive(e);0<e.length&&(e.reverse(),this.__fireEvent(new c.events.KeyboardEvent("keydown"==
a.type?c.events.KeyboardEvent.KEY_DOWN:c.events.KeyboardEvent.KEY_UP,!0,!1,a.charCode,b,d,a.ctrlKey,a.altKey,a.shiftKey),e))},window_onResize:function(){this.__resize();var a=new c.events.Event(c.events.Event.RESIZE);this.__broadcast(a,!1)},window_onFocus:function(){var a=new c.events.Event(c.events.Event.ACTIVATE);this.__broadcast(a,!0)},window_onBlur:function(){var a=new c.events.Event(c.events.Event.DEACTIVATE);this.__broadcast(a,!0)},get_color:function(){return this.__color},set_color:function(a){this.__colorString=
"#"+s.hex(a,6);return this.__color=a},get_focus:function(){return this.__focus},set_focus:function(a){if(a!=this.__focus){if(null!=this.__focus){var b=new c.events.FocusEvent(c.events.FocusEvent.FOCUS_OUT,!0,!1,a,!1,0);this.__stack=[];this.__focus.__getInteractive(this.__stack);this.__stack.reverse();this.__fireEvent(b,this.__stack)}null!=a&&(b=new c.events.FocusEvent(c.events.FocusEvent.FOCUS_IN,!0,!1,this.__focus,!1,0),this.__stack=[],a.__getInteractive(this.__stack),this.__stack.reverse(),this.__fireEvent(b,
this.__stack));this.__focus=a}return this.__focus},set_displayState:function(a){switch(a[1]){case 0:document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen();break;case 1:case 2:var b=this.__element;b.requestFullscreen?b.requestFullscreen():b.msRequestFullscreen?b.msRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():
b.webkitRequestFullscreen&&b.webkitRequestFullscreen()}return this.displayState=a},__class__:c.display.Stage,__properties__:m(c.display.Sprite.prototype.__properties__,{set_focus:"set_focus",get_focus:"get_focus",set_displayState:"set_displayState",set_color:"set_color",get_color:"get_color"})});c.display.RenderSession=function(){this.maskManager=new c.display.MaskManager(this)};g["openfl.display.RenderSession"]=c.display.RenderSession;c.display.RenderSession.__name__=["openfl","display","RenderSession"];
c.display.RenderSession.prototype={__class__:c.display.RenderSession};c.display.MaskManager=function(a){this.renderSession=a};g["openfl.display.MaskManager"]=c.display.MaskManager;c.display.MaskManager.__name__=["openfl","display","MaskManager"];c.display.MaskManager.prototype={pushMask:function(a){var b=this.renderSession.context;b.save();var d=a.__worldTransform;null==d&&(d=new c.geom.Matrix);b.setTransform(d.a,d.c,d.b,d.d,d.tx,d.ty);b.beginPath();a.__renderMask(this.renderSession);b.clip()},pushRect:function(a,
b){var c=this.renderSession.context;c.save();c.setTransform(b.a,b.c,b.b,b.d,b.tx,b.ty);c.beginPath();c.rect(a.x,a.y,a.width,a.height);c.clip()},popMask:function(){this.renderSession.context.restore()},__class__:c.display.MaskManager};c.display.StageAlign=g["openfl.display.StageAlign"]={__ename__:!0,__constructs__:"TOP_RIGHT TOP_LEFT TOP RIGHT LEFT BOTTOM_RIGHT BOTTOM_LEFT BOTTOM".split(" ")};c.display.StageAlign.TOP_RIGHT=["TOP_RIGHT",0];c.display.StageAlign.TOP_RIGHT.toString=i;c.display.StageAlign.TOP_RIGHT.__enum__=
c.display.StageAlign;c.display.StageAlign.TOP_LEFT=["TOP_LEFT",1];c.display.StageAlign.TOP_LEFT.toString=i;c.display.StageAlign.TOP_LEFT.__enum__=c.display.StageAlign;c.display.StageAlign.TOP=["TOP",2];c.display.StageAlign.TOP.toString=i;c.display.StageAlign.TOP.__enum__=c.display.StageAlign;c.display.StageAlign.RIGHT=["RIGHT",3];c.display.StageAlign.RIGHT.toString=i;c.display.StageAlign.RIGHT.__enum__=c.display.StageAlign;c.display.StageAlign.LEFT=["LEFT",4];c.display.StageAlign.LEFT.toString=i;
c.display.StageAlign.LEFT.__enum__=c.display.StageAlign;c.display.StageAlign.BOTTOM_RIGHT=["BOTTOM_RIGHT",5];c.display.StageAlign.BOTTOM_RIGHT.toString=i;c.display.StageAlign.BOTTOM_RIGHT.__enum__=c.display.StageAlign;c.display.StageAlign.BOTTOM_LEFT=["BOTTOM_LEFT",6];c.display.StageAlign.BOTTOM_LEFT.toString=i;c.display.StageAlign.BOTTOM_LEFT.__enum__=c.display.StageAlign;c.display.StageAlign.BOTTOM=["BOTTOM",7];c.display.StageAlign.BOTTOM.toString=i;c.display.StageAlign.BOTTOM.__enum__=c.display.StageAlign;
c.display.StageDisplayState=g["openfl.display.StageDisplayState"]={__ename__:!0,__constructs__:["NORMAL","FULL_SCREEN","FULL_SCREEN_INTERACTIVE"]};c.display.StageDisplayState.NORMAL=["NORMAL",0];c.display.StageDisplayState.NORMAL.toString=i;c.display.StageDisplayState.NORMAL.__enum__=c.display.StageDisplayState;c.display.StageDisplayState.FULL_SCREEN=["FULL_SCREEN",1];c.display.StageDisplayState.FULL_SCREEN.toString=i;c.display.StageDisplayState.FULL_SCREEN.__enum__=c.display.StageDisplayState;c.display.StageDisplayState.FULL_SCREEN_INTERACTIVE=
["FULL_SCREEN_INTERACTIVE",2];c.display.StageDisplayState.FULL_SCREEN_INTERACTIVE.toString=i;c.display.StageDisplayState.FULL_SCREEN_INTERACTIVE.__enum__=c.display.StageDisplayState;c.display._StageQuality={};c.display._StageQuality.StageQuality_Impl_=function(){};g["openfl.display._StageQuality.StageQuality_Impl_"]=c.display._StageQuality.StageQuality_Impl_;c.display._StageQuality.StageQuality_Impl_.__name__=["openfl","display","_StageQuality","StageQuality_Impl_"];c.display.StageScaleMode=g["openfl.display.StageScaleMode"]=
{__ename__:!0,__constructs__:["SHOW_ALL","NO_SCALE","NO_BORDER","EXACT_FIT"]};c.display.StageScaleMode.SHOW_ALL=["SHOW_ALL",0];c.display.StageScaleMode.SHOW_ALL.toString=i;c.display.StageScaleMode.SHOW_ALL.__enum__=c.display.StageScaleMode;c.display.StageScaleMode.NO_SCALE=["NO_SCALE",1];c.display.StageScaleMode.NO_SCALE.toString=i;c.display.StageScaleMode.NO_SCALE.__enum__=c.display.StageScaleMode;c.display.StageScaleMode.NO_BORDER=["NO_BORDER",2];c.display.StageScaleMode.NO_BORDER.toString=i;c.display.StageScaleMode.NO_BORDER.__enum__=
c.display.StageScaleMode;c.display.StageScaleMode.EXACT_FIT=["EXACT_FIT",3];c.display.StageScaleMode.EXACT_FIT.toString=i;c.display.StageScaleMode.EXACT_FIT.__enum__=c.display.StageScaleMode;c.display.Tilesheet=function(a){this.__bitmap=a;this.__centerPoints=[];this.__tileRects=[];this.__tileUVs=[]};g["openfl.display.Tilesheet"]=c.display.Tilesheet;c.display.Tilesheet.__name__=["openfl","display","Tilesheet"];c.display.Tilesheet.prototype={addTileRect:function(a,b){this.__tileRects.push(a);null==
b&&(b=new c.geom.Point);this.__centerPoints.push(b);this.__tileUVs.push(new c.geom.Rectangle(a.get_left()/this.__bitmap.width,a.get_top()/this.__bitmap.height,a.get_right()/this.__bitmap.width,a.get_bottom()/this.__bitmap.height));return this.__tileRects.length-1},drawTiles:function(a,b,c,e){null==e&&(e=0);null==c&&(c=!1);a.drawTiles(this,b,c,e)},getTileCenter:function(a){return this.__centerPoints[a]},getTileRect:function(a){return this.__tileRects[a]},getTileUVs:function(a){return this.__tileUVs[a]},
__class__:c.display.Tilesheet};c.display.TriangleCulling=g["openfl.display.TriangleCulling"]={__ename__:!0,__constructs__:["NEGATIVE","NONE","POSITIVE"]};c.display.TriangleCulling.NEGATIVE=["NEGATIVE",0];c.display.TriangleCulling.NEGATIVE.toString=i;c.display.TriangleCulling.NEGATIVE.__enum__=c.display.TriangleCulling;c.display.TriangleCulling.NONE=["NONE",1];c.display.TriangleCulling.NONE.toString=i;c.display.TriangleCulling.NONE.__enum__=c.display.TriangleCulling;c.display.TriangleCulling.POSITIVE=
["POSITIVE",2];c.display.TriangleCulling.POSITIVE.toString=i;c.display.TriangleCulling.POSITIVE.__enum__=c.display.TriangleCulling;c.errors={};c.errors.Error=function(a,b){null==b&&(b=0);null==a&&(a="");this.message=a;this.errorID=b;this.name="Error"};g["openfl.errors.Error"]=c.errors.Error;c.errors.Error.__name__=["openfl","errors","Error"];c.errors.Error.prototype={getStackTrace:function(){return h.CallStack.toString(h.CallStack.exceptionStack())},toString:function(){return null!=this.message?this.message:
"Error"},__class__:c.errors.Error};c.errors.IOError=function(a){null==a&&(a="");c.errors.Error.call(this,a)};g["openfl.errors.IOError"]=c.errors.IOError;c.errors.IOError.__name__=["openfl","errors","IOError"];c.errors.IOError.__super__=c.errors.Error;c.errors.IOError.prototype=m(c.errors.Error.prototype,{__class__:c.errors.IOError});c.errors.RangeError=function(a){null==a&&(a="");c.errors.Error.call(this,a,0)};g["openfl.errors.RangeError"]=c.errors.RangeError;c.errors.RangeError.__name__=["openfl",
"errors","RangeError"];c.errors.RangeError.__super__=c.errors.Error;c.errors.RangeError.prototype=m(c.errors.Error.prototype,{__class__:c.errors.RangeError});c.errors.TypeError=function(a){null==a&&(a="");c.errors.Error.call(this,a,0)};g["openfl.errors.TypeError"]=c.errors.TypeError;c.errors.TypeError.__name__=["openfl","errors","TypeError"];c.errors.TypeError.__super__=c.errors.Error;c.errors.TypeError.prototype=m(c.errors.Error.prototype,{__class__:c.errors.TypeError});c.events.Event=function(a,
b,c){null==c&&(c=!1);null==b&&(b=!1);this.type=a;this.bubbles=b;this.cancelable=c;this.eventPhase=1};g["openfl.events.Event"]=c.events.Event;c.events.Event.__name__=["openfl","events","Event"];c.events.Event.prototype={clone:function(){var a=new c.events.Event(this.type,this.bubbles,this.cancelable);a.eventPhase=this.eventPhase;a.target=this.target;a.currentTarget=this.currentTarget;return a},isDefaultPrevented:function(){return this.__isCancelled||this.__isCancelledNow},stopImmediatePropagation:function(){this.__isCancelledNow=
this.__isCancelled=!0},stopPropagation:function(){this.__isCancelled=!0},toString:function(){return"[Event type="+this.type+" bubbles="+k.string(this.bubbles)+" cancelable="+k.string(this.cancelable)+"]"},__class__:c.events.Event};c.events.TextEvent=function(a,b,d,e){null==e&&(e="");null==d&&(d=!1);null==b&&(b=!1);c.events.Event.call(this,a,b,d);this.text=e};g["openfl.events.TextEvent"]=c.events.TextEvent;c.events.TextEvent.__name__=["openfl","events","TextEvent"];c.events.TextEvent.__super__=c.events.Event;
c.events.TextEvent.prototype=m(c.events.Event.prototype,{__class__:c.events.TextEvent});c.events.ErrorEvent=function(a,b,d,e,f){null==f&&(f=0);null==e&&(e="");null==d&&(d=!1);null==b&&(b=!1);c.events.TextEvent.call(this,a,b,d);this.text=e;this.errorID=f};g["openfl.events.ErrorEvent"]=c.events.ErrorEvent;c.events.ErrorEvent.__name__=["openfl","events","ErrorEvent"];c.events.ErrorEvent.__super__=c.events.TextEvent;c.events.ErrorEvent.prototype=m(c.events.TextEvent.prototype,{__class__:c.events.ErrorEvent});
c.events._EventDispatcher={};c.events._EventDispatcher.Listener=function(a,b,c){this.callback=a;this.useCapture=b;this.priority=c};g["openfl.events._EventDispatcher.Listener"]=c.events._EventDispatcher.Listener;c.events._EventDispatcher.Listener.__name__=["openfl","events","_EventDispatcher","Listener"];c.events._EventDispatcher.Listener.prototype={match:function(a,b){return this.callback==a&&this.useCapture==b},__class__:c.events._EventDispatcher.Listener};c.events._EventPhase={};c.events._EventPhase.EventPhase_Impl_=
function(){};g["openfl.events._EventPhase.EventPhase_Impl_"]=c.events._EventPhase.EventPhase_Impl_;c.events._EventPhase.EventPhase_Impl_.__name__=["openfl","events","_EventPhase","EventPhase_Impl_"];c.events.FocusEvent=function(a,b,d,e,f,g){null==g&&(g=0);null==f&&(f=!1);null==d&&(d=!1);null==b&&(b=!1);c.events.Event.call(this,a,b,d);this.keyCode=g;this.shiftKey=null==f?!1:f;this.relatedObject=e};g["openfl.events.FocusEvent"]=c.events.FocusEvent;c.events.FocusEvent.__name__=["openfl","events","FocusEvent"];
c.events.FocusEvent.__super__=c.events.Event;c.events.FocusEvent.prototype=m(c.events.Event.prototype,{clone:function(){var a=new c.events.FocusEvent(this.type,this.bubbles,this.cancelable,this.relatedObject,this.shiftKey,this.keyCode);a.target=this.target;a.currentTarget=this.currentTarget;a.eventPhase=this.eventPhase;return a},__class__:c.events.FocusEvent});c.events.HTTPStatusEvent=function(a,b,d,e){null==e&&(e=0);null==d&&(d=!1);null==b&&(b=!1);this.status=e;c.events.Event.call(this,a,b,d)};g["openfl.events.HTTPStatusEvent"]=
c.events.HTTPStatusEvent;c.events.HTTPStatusEvent.__name__=["openfl","events","HTTPStatusEvent"];c.events.HTTPStatusEvent.__super__=c.events.Event;c.events.HTTPStatusEvent.prototype=m(c.events.Event.prototype,{__class__:c.events.HTTPStatusEvent});c.events.IOErrorEvent=function(a,b,d,e,f){null==f&&(f=0);null==e&&(e="");null==d&&(d=!1);null==b&&(b=!0);c.events.ErrorEvent.call(this,a,b,d,e,f)};g["openfl.events.IOErrorEvent"]=c.events.IOErrorEvent;c.events.IOErrorEvent.__name__=["openfl","events","IOErrorEvent"];
c.events.IOErrorEvent.__super__=c.events.ErrorEvent;c.events.IOErrorEvent.prototype=m(c.events.ErrorEvent.prototype,{clone:function(){return new c.events.IOErrorEvent(this.type,this.bubbles,this.cancelable,this.text,this.errorID)},toString:function(){return"[IOErrorEvent type="+this.type+" bubbles="+k.string(this.bubbles)+" cancelable="+k.string(this.cancelable)+" text="+this.text+" errorID="+this.errorID+"]"},__class__:c.events.IOErrorEvent});c.events.KeyboardEvent=function(a,b,d,e,f,g,h,i,j,k,m){null==
m&&(m=!1);null==k&&(k=!1);null==j&&(j=!1);null==i&&(i=!1);null==h&&(h=!1);null==f&&(f=0);null==e&&(e=0);null==d&&(d=!1);null==b&&(b=!1);c.events.Event.call(this,a,b,d);this.charCode=e;this.keyCode=f;this.keyLocation=null!=g?g:0;this.ctrlKey=h;this.altKey=i;this.shiftKey=j;this.controlKey=k;this.commandKey=m};g["openfl.events.KeyboardEvent"]=c.events.KeyboardEvent;c.events.KeyboardEvent.__name__=["openfl","events","KeyboardEvent"];c.events.KeyboardEvent.__super__=c.events.Event;c.events.KeyboardEvent.prototype=
m(c.events.Event.prototype,{__class__:c.events.KeyboardEvent});c.events.MouseEvent=function(a,b,d,e,f,g,h,i,j,k,m,n,o){null==o&&(o=0);null==n&&(n=!1);null==m&&(m=0);null==k&&(k=!1);null==j&&(j=!1);null==i&&(i=!1);null==h&&(h=!1);null==f&&(f=0);null==e&&(e=0);null==d&&(d=!1);null==b&&(b=!0);c.events.Event.call(this,a,b,d);this.shiftKey=j;this.altKey=i;this.ctrlKey=h;this.bubbles=b;this.relatedObject=g;this.delta=m;this.localX=e;this.localY=f;this.buttonDown=k;this.commandKey=n;this.clickCount=o};g["openfl.events.MouseEvent"]=
c.events.MouseEvent;c.events.MouseEvent.__name__=["openfl","events","MouseEvent"];c.events.MouseEvent.__buttonDown=null;c.events.MouseEvent.__create=function(a,b,d,e){var f=2;a==c.events.MouseEvent.MOUSE_WHEEL&&(b.wheelDelta?f=b.wheelDelta/120|0:b.detail&&-b.detail|0);a==c.events.MouseEvent.MOUSE_DOWN?c.events.MouseEvent.__buttonDown=!0:a==c.events.MouseEvent.MOUSE_UP&&(c.events.MouseEvent.__buttonDown=!1);a=new c.events.MouseEvent(a,!0,!1,d.x,d.y,null,b.ctrlKey,b.altKey,b.shiftKey,c.events.MouseEvent.__buttonDown,
f);a.stageX=c.Lib.current.stage.get_mouseX();a.stageY=c.Lib.current.stage.get_mouseY();a.target=e;return a};c.events.MouseEvent.__super__=c.events.Event;c.events.MouseEvent.prototype=m(c.events.Event.prototype,{updateAfterEvent:function(){},__class__:c.events.MouseEvent});c.events.ProgressEvent=function(a,b,d,e,f){null==f&&(f=0);null==e&&(e=0);null==d&&(d=!1);null==b&&(b=!1);c.events.Event.call(this,a,b,d);this.bytesLoaded=e;this.bytesTotal=f};g["openfl.events.ProgressEvent"]=c.events.ProgressEvent;
c.events.ProgressEvent.__name__=["openfl","events","ProgressEvent"];c.events.ProgressEvent.__super__=c.events.Event;c.events.ProgressEvent.prototype=m(c.events.Event.prototype,{__class__:c.events.ProgressEvent});c.events.SecurityErrorEvent=function(a,b,d,e){null==e&&(e="");null==d&&(d=!1);null==b&&(b=!1);c.events.ErrorEvent.call(this,a,b,d);this.text=e};g["openfl.events.SecurityErrorEvent"]=c.events.SecurityErrorEvent;c.events.SecurityErrorEvent.__name__=["openfl","events","SecurityErrorEvent"];c.events.SecurityErrorEvent.__super__=
c.events.ErrorEvent;c.events.SecurityErrorEvent.prototype=m(c.events.ErrorEvent.prototype,{__class__:c.events.SecurityErrorEvent});c.events.TouchEvent=function(a,b,d,e,f,g,h,i,j,k,m,n,o,p){null==p&&(p=!1);null==o&&(o=0);null==n&&(n=!1);null==m&&(m=!1);null==k&&(k=!1);null==j&&(j=!1);null==h&&(h=1);null==g&&(g=1);null==f&&(f=0);null==e&&(e=0);null==d&&(d=!1);null==b&&(b=!0);c.events.Event.call(this,a,b,d);this.shiftKey=m;this.altKey=k;this.ctrlKey=j;this.bubbles=b;this.relatedObject=i;this.delta=o;
this.localX=e;this.localY=f;this.sizeX=g;this.sizeY=h;this.buttonDown=n;this.commandKey=p;this.pressure=1;this.touchPointID=0;this.isPrimaryTouchPoint=!0};g["openfl.events.TouchEvent"]=c.events.TouchEvent;c.events.TouchEvent.__name__=["openfl","events","TouchEvent"];c.events.TouchEvent.__create=function(a,b,d,e,f){a=new c.events.TouchEvent(a,!0,!1,e.x,e.y,null,null,null,b.ctrlKey,b.altKey,b.shiftKey,!1,0,null,0);a.stageX=c.Lib.current.stage.get_mouseX();a.stageY=c.Lib.current.stage.get_mouseY();a.target=
f;return a};c.events.TouchEvent.__super__=c.events.Event;c.events.TouchEvent.prototype=m(c.events.Event.prototype,{updateAfterEvent:function(){},__class__:c.events.TouchEvent});c.filters={};c.filters.BitmapFilter=function(){};g["openfl.filters.BitmapFilter"]=c.filters.BitmapFilter;c.filters.BitmapFilter.__name__=["openfl","filters","BitmapFilter"];c.filters.BitmapFilter.prototype={clone:function(){return new c.filters.BitmapFilter},__applyFilter:function(){},__class__:c.filters.BitmapFilter};c.geom=
{};c.geom.ColorTransform=function(a,b,c,e,f,g,h,i){null==i&&(i=0);null==h&&(h=0);null==g&&(g=0);null==f&&(f=0);null==e&&(e=1);null==c&&(c=1);null==b&&(b=1);null==a&&(a=1);this.redMultiplier=a;this.greenMultiplier=b;this.blueMultiplier=c;this.alphaMultiplier=e;this.redOffset=f;this.greenOffset=g;this.blueOffset=h;this.alphaOffset=i};g["openfl.geom.ColorTransform"]=c.geom.ColorTransform;c.geom.ColorTransform.__name__=["openfl","geom","ColorTransform"];c.geom.ColorTransform.prototype={concat:function(a){this.redMultiplier+=
a.redMultiplier;this.greenMultiplier+=a.greenMultiplier;this.blueMultiplier+=a.blueMultiplier;this.alphaMultiplier+=a.alphaMultiplier},get_color:function(){return(this.redOffset|0)<<16|(this.greenOffset|0)<<8|this.blueOffset|0},set_color:function(a){this.redOffset=a>>16&255;this.greenOffset=a>>8&255;this.blueOffset=a&255;this.blueMultiplier=this.greenMultiplier=this.redMultiplier=0;return this.get_color()},__class__:c.geom.ColorTransform,__properties__:{set_color:"set_color",get_color:"get_color"}};
c.geom.Matrix=function(a,b,c,e,f,g){null==g&&(g=0);null==f&&(f=0);null==e&&(e=1);null==c&&(c=0);null==b&&(b=0);null==a&&(a=1);this.a=a;this.b=b;this.c=c;this.d=e;this.tx=f;this.ty=g};g["openfl.geom.Matrix"]=c.geom.Matrix;c.geom.Matrix.__name__=["openfl","geom","Matrix"];c.geom.Matrix.prototype={clone:function(){return new c.geom.Matrix(this.a,this.b,this.c,this.d,this.tx,this.ty)},concat:function(a){var b=this.a*a.a+this.b*a.c;this.b=this.a*a.b+this.b*a.d;this.a=b;b=this.c*a.a+this.d*a.c;this.d=this.c*
a.b+this.d*a.d;this.c=b;b=this.tx*a.a+this.ty*a.c+a.tx;this.ty=this.tx*a.b+this.ty*a.d+a.ty;this.tx=b},copyColumnFrom:function(a,b){if(2<a)throw"Column "+a+" out of bounds (2)";0==a?(this.a=b.x,this.c=b.y):1==a?(this.b=b.x,this.d=b.y):(this.tx=b.x,this.ty=b.y)},copyColumnTo:function(a,b){if(2<a)throw"Column "+a+" out of bounds (2)";0==a?(b.x=this.a,b.y=this.c,b.z=0):1==a?(b.x=this.b,b.y=this.d,b.z=0):(b.x=this.tx,b.y=this.ty,b.z=1)},copyFrom:function(a){this.a=a.a;this.b=a.b;this.c=a.c;this.d=a.d;
this.tx=a.tx;this.ty=a.ty},copyRowFrom:function(a,b){if(2<a)throw"Row "+a+" out of bounds (2)";0==a?(this.a=b.x,this.c=b.y):1==a?(this.b=b.x,this.d=b.y):(this.tx=b.x,this.ty=b.y)},copyRowTo:function(a,b){if(2<a)throw"Row "+a+" out of bounds (2)";0==a?(b.x=this.a,b.y=this.b,b.z=this.tx):1==a?(b.x=this.c,b.y=this.d,b.z=this.ty):(b.x=0,b.y=0,b.z=1)},createBox:function(a,b,c,e,f){null==f&&(f=0);null==e&&(e=0);null==c&&(c=0);this.a=a;this.d=b;this.b=c;this.tx=e;this.ty=f},createGradientBox:function(a,
b,c,e,f){null==f&&(f=0);null==e&&(e=0);null==c&&(c=0);this.a=a/1638.4;this.d=b/1638.4;if(0!=c){var g=Math.cos(c),c=Math.sin(c);this.b=c*this.d;this.c=-c*this.a;this.a*=g;this.d*=g}else this.c=this.b=0;this.tx=e+a/2;this.ty=f+b/2},equals:function(a){return null!=a&&this.tx==a.tx&&this.ty==a.ty&&this.a==a.a&&this.b==a.b&&this.c==a.c&&this.d==a.d},deltaTransformPoint:function(a){return new c.geom.Point(a.x*this.a+a.y*this.c,a.x*this.b+a.y*this.d)},identity:function(){this.a=1;this.c=this.b=0;this.d=
1;this.ty=this.tx=0},invert:function(){var a=this.a*this.d-this.b*this.c;if(0==a)this.a=this.b=this.c=this.d=0,this.tx=-this.tx,this.ty=-this.ty;else{var a=1/a,b=this.d*a;this.d=this.a*a;this.a=b;this.b*=-a;this.c*=-a;a=-this.a*this.tx-this.c*this.ty;this.ty=-this.b*this.tx-this.d*this.ty;this.tx=a}return this},mult:function(a){var b=new c.geom.Matrix(this.a,this.b,this.c,this.d,this.tx,this.ty);b.concat(a);return b},rotate:function(a){var b=Math.cos(a),a=Math.sin(a),c=this.a*b-this.b*a;this.b=this.a*
a+this.b*b;this.a=c;c=this.c*b-this.d*a;this.d=this.c*a+this.d*b;this.c=c;c=this.tx*b-this.ty*a;this.ty=this.tx*a+this.ty*b;this.tx=c},scale:function(a,b){this.a*=a;this.b*=b;this.c*=a;this.d*=b;this.tx*=a;this.ty*=b},setRotation:function(a,b){null==b&&(b=1);this.a=Math.cos(a)*b;this.c=Math.sin(a)*b;this.b=-this.c;this.d=this.a},setTo:function(a,b,c,e,f,g){this.a=a;this.b=b;this.c=c;this.d=e;this.tx=f;this.ty=g},to3DString:function(a){null==a&&(a=!1);return a?"matrix3d("+this.a+", "+this.b+", 0, 0, "+
this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+(this.tx|0)+", "+(this.ty|0)+", 0, 1)":"matrix3d("+this.a+", "+this.b+", 0, 0, "+this.c+", "+this.d+", 0, 0, 0, 0, 1, 0, "+this.tx+", "+this.ty+", 0, 1)"},toMozString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+"px, "+this.ty+"px)"},toString:function(){return"matrix("+this.a+", "+this.b+", "+this.c+", "+this.d+", "+this.tx+", "+this.ty+")"},transformPoint:function(a){return new c.geom.Point(a.x*this.a+a.y*this.c+this.tx,
a.x*this.b+a.y*this.d+this.ty)},translate:function(a,b){var d=new c.geom.Matrix;d.tx=a;d.ty=b;this.concat(d)},__cleanValues:function(){this.a=Math.round(1E3*this.a)/1E3;this.b=Math.round(1E3*this.b)/1E3;this.c=Math.round(1E3*this.c)/1E3;this.d=Math.round(1E3*this.d)/1E3;this.tx=Math.round(10*this.tx)/10;this.ty=Math.round(10*this.ty)/10},__transformX:function(a){return a.x*this.a+a.y*this.c+this.tx},__transformY:function(a){return a.x*this.b+a.y*this.d+this.ty},__translateTransformed:function(a){this.tx=
a.x*this.a+a.y*this.c+this.tx;this.ty=a.x*this.b+a.y*this.d+this.ty},__class__:c.geom.Matrix};c.geom.Point=function(a,b){null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b};g["openfl.geom.Point"]=c.geom.Point;c.geom.Point.__name__=["openfl","geom","Point"];c.geom.Point.distance=function(a,b){var c=a.x-b.x,e=a.y-b.y;return Math.sqrt(c*c+e*e)};c.geom.Point.interpolate=function(a,b,d){return new c.geom.Point(b.x+d*(a.x-b.x),b.y+d*(a.y-b.y))};c.geom.Point.polar=function(a,b){return new c.geom.Point(a*Math.cos(b),
a*Math.sin(b))};c.geom.Point.prototype={add:function(a){return new c.geom.Point(a.x+this.x,a.y+this.y)},clone:function(){return new c.geom.Point(this.x,this.y)},equals:function(a){return null!=a&&a.x==this.x&&a.y==this.y},normalize:function(a){0==this.x&&0==this.y||(a/=Math.sqrt(this.x*this.x+this.y*this.y),this.x*=a,this.y*=a)},offset:function(a,b){this.x+=a;this.y+=b},setTo:function(a,b){this.x=a;this.y=b},subtract:function(a){return new c.geom.Point(this.x-a.x,this.y-a.y)},get_length:function(){return Math.sqrt(this.x*
this.x+this.y*this.y)},__class__:c.geom.Point,__properties__:{get_length:"get_length"}};c.geom.Rectangle=function(a,b,c,e){null==e&&(e=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.x=a;this.y=b;this.width=c;this.height=e};g["openfl.geom.Rectangle"]=c.geom.Rectangle;c.geom.Rectangle.__name__=["openfl","geom","Rectangle"];c.geom.Rectangle.prototype={clone:function(){return new c.geom.Rectangle(this.x,this.y,this.width,this.height)},contains:function(a,b){return a>=this.x&&b>=this.y&&a<this.get_right()&&
b<this.get_bottom()},containsPoint:function(a){return this.contains(a.x,a.y)},containsRect:function(a){return 0>=a.width||0>=a.height?a.x>this.x&&a.y>this.y&&a.get_right()<this.get_right()&&a.get_bottom()<this.get_bottom():a.x>=this.x&&a.y>=this.y&&a.get_right()<=this.get_right()&&a.get_bottom()<=this.get_bottom()},copyFrom:function(a){this.x=a.x;this.y=a.y;this.width=a.width;this.height=a.height},equals:function(a){return null!=a&&this.x==a.x&&this.y==a.y&&this.width==a.width&&this.height==a.height},
inflate:function(a,b){this.x-=a;this.width+=2*a;this.y-=b;this.height+=2*b},inflatePoint:function(a){this.inflate(a.x,a.y)},intersection:function(a){var b;b=this.x<a.x?a.x:this.x;var d;d=this.get_right()>a.get_right()?a.get_right():this.get_right();if(d<=b)return new c.geom.Rectangle;var e;e=this.y<a.y?a.y:this.y;a=this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom();return a<=e?new c.geom.Rectangle:new c.geom.Rectangle(b,e,d-b,a-e)},intersects:function(a){var b;b=this.x<a.x?a.x:this.x;
if((this.get_right()>a.get_right()?a.get_right():this.get_right())<=b)return!1;b=this.y<a.y?a.y:this.y;return(this.get_bottom()>a.get_bottom()?a.get_bottom():this.get_bottom())>b},isEmpty:function(){return 0>=this.width||0>=this.height},offset:function(a,b){this.x+=a;this.y+=b},offsetPoint:function(a){this.x+=a.x;this.y+=a.y},setEmpty:function(){this.x=this.y=this.width=this.height=0},setTo:function(a,b,c,e){this.x=a;this.y=b;this.width=c;this.height=e},transform:function(a){var b=a.a*this.x+a.c*
this.y,d=b,e=a.b*this.x+a.d*this.y,f=b,g=a.a*(this.x+this.width)+a.c*this.y,h=a.b*(this.x+this.width)+a.d*this.y;g<b&&(b=g);h<e&&(e=h);g>d&&(d=g);h>f&&(f=h);g=a.a*(this.x+this.width)+a.c*(this.y+this.height);h=a.b*(this.x+this.width)+a.d*(this.y+this.height);g<b&&(b=g);h<e&&(e=h);g>d&&(d=g);h>f&&(f=h);g=a.a*this.x+a.c*(this.y+this.height);h=a.b*this.x+a.d*(this.y+this.height);g<b&&(b=g);h<e&&(e=h);g>d&&(d=g);h>f&&(f=h);return new c.geom.Rectangle(b+a.tx,e+a.ty,d-b,f-e)},union:function(a){if(0==this.width||
0==this.height)return a.clone();if(0==a.width||0==a.height)return this.clone();var b;b=this.x>a.x?a.x:this.x;var d;d=this.get_right()<a.get_right()?a.get_right():this.get_right();var e;e=this.y>a.y?a.y:this.y;a=this.get_bottom()<a.get_bottom()?a.get_bottom():this.get_bottom();return new c.geom.Rectangle(b,e,d-b,a-e)},__contract:function(a,b,c,e){if(!(0==this.width&&0==this.height)&&(this.get_right(),this.get_bottom(),this.x<a&&(this.x=a),this.y<b&&(this.y=b),this.get_right()>a+c&&(this.width=a+c-
this.x),this.get_bottom()>b+e))this.height=b+e-this.y},__expand:function(a,b,c,e){if(0==this.width&&0==this.height)this.x=a,this.y=b,this.width=c,this.height=e;else{var f=this.get_right(),g=this.get_bottom();this.x>a&&(this.x=a);this.y>b&&(this.y=b);f<a+c&&(this.width=a+c-this.x);g<b+e&&(this.height=b+e-this.y)}},get_bottom:function(){return this.y+this.height},set_bottom:function(a){this.height=a-this.y;return a},get_bottomRight:function(){return new c.geom.Point(this.x+this.width,this.y+this.height)},
set_bottomRight:function(a){this.width=a.x-this.x;this.height=a.y-this.y;return a.clone()},get_left:function(){return this.x},set_left:function(a){this.width-=a-this.x;return this.x=a},get_right:function(){return this.x+this.width},set_right:function(a){this.width=a-this.x;return a},get_size:function(){return new c.geom.Point(this.width,this.height)},set_size:function(a){this.width=a.x;this.height=a.y;return a.clone()},get_top:function(){return this.y},set_top:function(a){this.height-=a-this.y;return this.y=
a},get_topLeft:function(){return new c.geom.Point(this.x,this.y)},set_topLeft:function(a){this.x=a.x;this.y=a.y;return a.clone()},__class__:c.geom.Rectangle,__properties__:{set_topLeft:"set_topLeft",get_topLeft:"get_topLeft",set_top:"set_top",get_top:"get_top",set_size:"set_size",get_size:"get_size",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left",set_bottomRight:"set_bottomRight",get_bottomRight:"get_bottomRight",set_bottom:"set_bottom",get_bottom:"get_bottom"}};
c.geom.Transform=function(a){this.colorTransform=new c.geom.ColorTransform;this.concatenatedColorTransform=new c.geom.ColorTransform;this.concatenatedMatrix=new c.geom.Matrix;this.pixelBounds=new c.geom.Rectangle;this.__displayObject=a;this.__matrix=new c.geom.Matrix};g["openfl.geom.Transform"]=c.geom.Transform;c.geom.Transform.__name__=["openfl","geom","Transform"];c.geom.Transform.prototype={get_matrix:function(){return null!=this.__matrix?(this.__matrix.identity(),this.__matrix.scale(this.__displayObject.get_scaleX(),
this.__displayObject.get_scaleY()),this.__matrix.rotate(this.__displayObject.get_rotation()*(Math.PI/180)),this.__matrix.translate(this.__displayObject.get_x(),this.__displayObject.get_y()),this.__matrix.clone()):null},set_matrix:function(a){if(null==a)return this.__matrix=null;null!=this.__displayObject&&(this.__displayObject.set_x(a.tx),this.__displayObject.set_y(a.ty),this.__displayObject.set_scaleX(Math.sqrt(a.a*a.a+a.b*a.b)),this.__displayObject.set_scaleY(Math.sqrt(a.c*a.c+a.d*a.d)),this.__displayObject.set_rotation(Math.atan2(a.b,
a.a)*(180/Math.PI)));return a},__class__:c.geom.Transform,__properties__:{set_matrix:"set_matrix",get_matrix:"get_matrix"}};c.geom.Vector3D=function(a,b,c,e){null==e&&(e=0);null==c&&(c=0);null==b&&(b=0);null==a&&(a=0);this.w=e;this.x=a;this.y=b;this.z=c};g["openfl.geom.Vector3D"]=c.geom.Vector3D;c.geom.Vector3D.__name__=["openfl","geom","Vector3D"];c.geom.Vector3D.__properties__={get_Z_AXIS:"get_Z_AXIS",get_Y_AXIS:"get_Y_AXIS",get_X_AXIS:"get_X_AXIS"};c.geom.Vector3D.X_AXIS=null;c.geom.Vector3D.Y_AXIS=
null;c.geom.Vector3D.Z_AXIS=null;c.geom.Vector3D.angleBetween=function(a,b){var d=new c.geom.Vector3D(a.x,a.y,a.z,a.w);d.normalize();var e=new c.geom.Vector3D(b.x,b.y,b.z,b.w);e.normalize();return Math.acos(d.x*e.x+d.y*e.y+d.z*e.z)};c.geom.Vector3D.distance=function(a,b){var c=b.x-a.x,e=b.y-a.y,f=b.z-a.z;return Math.sqrt(c*c+e*e+f*f)};c.geom.Vector3D.get_X_AXIS=function(){return new c.geom.Vector3D(1,0,0)};c.geom.Vector3D.get_Y_AXIS=function(){return new c.geom.Vector3D(0,1,0)};c.geom.Vector3D.get_Z_AXIS=
function(){return new c.geom.Vector3D(0,0,1)};c.geom.Vector3D.prototype={add:function(a){return new c.geom.Vector3D(this.x+a.x,this.y+a.y,this.z+a.z)},clone:function(){return new c.geom.Vector3D(this.x,this.y,this.z,this.w)},copyFrom:function(a){this.x=a.x;this.y=a.y;this.z=a.z},crossProduct:function(a){return new c.geom.Vector3D(this.y*a.z-this.z*a.y,this.z*a.x-this.x*a.z,this.x*a.y-this.y*a.x,1)},decrementBy:function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},dotProduct:function(a){return this.x*a.x+
this.y*a.y+this.z*a.z},equals:function(a,b){null==b&&(b=!1);return this.x==a.x&&this.y==a.y&&this.z==a.z&&(!b||this.w==a.w)},incrementBy:function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},nearEquals:function(a,b,c){null==c&&(c=!1);return Math.abs(this.x-a.x)<b&&Math.abs(this.y-a.y)<b&&Math.abs(this.z-a.z)<b&&(!c||Math.abs(this.w-a.w)<b)},negate:function(){this.x*=-1;this.y*=-1;this.z*=-1},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z);0!=a&&(this.x/=a,this.y/=a,this.z/=
a);return a},project:function(){this.x/=this.w;this.y/=this.w;this.z/=this.w},scaleBy:function(a){this.x*=a;this.y*=a;this.z*=a},setTo:function(a,b,c){this.x=a;this.y=b;this.z=c},subtract:function(a){return new c.geom.Vector3D(this.x-a.x,this.y-a.y,this.z-a.z)},toString:function(){return"Vector3D("+this.x+", "+this.y+", "+this.z+")"},get_length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},get_lengthSquared:function(){return this.x*this.x+this.y*this.y+this.z*this.z},__class__:c.geom.Vector3D,
__properties__:{get_lengthSquared:"get_lengthSquared",get_length:"get_length"}};c.media={};c.media.ID3Info=function(){};g["openfl.media.ID3Info"]=c.media.ID3Info;c.media.ID3Info.__name__=["openfl","media","ID3Info"];c.media.ID3Info.prototype={__class__:c.media.ID3Info};c.media.Sound=function(a,b){c.events.EventDispatcher.call(this,this);this.bytesTotal=this.bytesLoaded=0;this.id3=null;this.isBuffering=!1;this.length=0;this.url=null;null!=a&&this.load(a,b)};g["openfl.media.Sound"]=c.media.Sound;c.media.Sound.__name__=
["openfl","media","Sound"];c.media.Sound.__super__=c.events.EventDispatcher;c.media.Sound.prototype=m(c.events.EventDispatcher.prototype,{close:function(){c.media.Sound.__registeredSounds.exists(this.__soundID)&&createjs.Sound.removeSound(this.__soundID)},load:function(a){this.url=a.url;this.__soundID=h.io.Path.withoutExtension(a.url);c.media.Sound.__registeredSounds.exists(this.__soundID)?this.dispatchEvent(new c.events.Event(c.events.Event.COMPLETE)):(c.media.Sound.__registeredSounds.set(this.__soundID,
!0),createjs.Sound.addEventListener("fileload",t(this,this.SoundJS_onFileLoad)),createjs.Sound.registerSound(this.url,this.__soundID))},loadCompressedDataFromByteArray:function(){c.Lib.notImplemented("Sound.loadCompressedDataFromByteArray")},loadPCMFromByteArray:function(){c.Lib.notImplemented("Sound.loadPCMFromByteArray")},play:function(a,b,d){null==b&&(b=0);null==a&&(a=0);null==d&&(d=new c.media.SoundTransform(1,0));a=createjs.Sound.play(this.__soundID,"any",0,a|0,b,d.volume,d.pan);return new c.media.SoundChannel(a)},
get_id3:function(){return new c.media.ID3Info},SoundJS_onFileLoad:function(a){a.id==this.__soundID&&(createjs.Sound.removeEventListener("fileload",t(this,this.SoundJS_onFileLoad)),this.dispatchEvent(new c.events.Event(c.events.Event.COMPLETE)))},__class__:c.media.Sound,__properties__:{get_id3:"get_id3"}});c.media.SoundChannel=function(a){c.events.EventDispatcher.call(this,this);this.__soundInstance=a;this.__soundInstance.addEventListener("complete",t(this,this.soundInstance_onComplete))};g["openfl.media.SoundChannel"]=
c.media.SoundChannel;c.media.SoundChannel.__name__=["openfl","media","SoundChannel"];c.media.SoundChannel.__super__=c.events.EventDispatcher;c.media.SoundChannel.prototype=m(c.events.EventDispatcher.prototype,{stop:function(){this.__soundInstance.stop()},__dispose:function(){this.__soundInstance.stop();this.__soundInstance=null},get_position:function(){return this.__soundInstance.getPosition()},set_position:function(a){this.__soundInstance.setPosition(a|0);return this.__soundInstance.getPosition()},
get_soundTransform:function(){return new c.media.SoundTransform(this.__soundInstance.getVolume(),this.__soundInstance.getPan())},set_soundTransform:function(a){this.__soundInstance.setVolume(a.volume);this.__soundInstance.setPan(a.pan);return a},soundInstance_onComplete:function(){this.dispatchEvent(new c.events.Event(c.events.Event.SOUND_COMPLETE))},__class__:c.media.SoundChannel,__properties__:{set_soundTransform:"set_soundTransform",get_soundTransform:"get_soundTransform",set_position:"set_position",
get_position:"get_position"}});c.media.SoundLoaderContext=function(a,b){null==b&&(b=!1);null==a&&(a=0);this.bufferTime=a;this.checkPolicyFile=b};g["openfl.media.SoundLoaderContext"]=c.media.SoundLoaderContext;c.media.SoundLoaderContext.__name__=["openfl","media","SoundLoaderContext"];c.media.SoundLoaderContext.prototype={__class__:c.media.SoundLoaderContext};c.media.SoundTransform=function(a,b){null==b&&(b=0);null==a&&(a=1);this.volume=a;this.pan=b;this.rightToRight=this.rightToLeft=this.leftToRight=
this.leftToLeft=0};g["openfl.media.SoundTransform"]=c.media.SoundTransform;c.media.SoundTransform.__name__=["openfl","media","SoundTransform"];c.media.SoundTransform.prototype={__class__:c.media.SoundTransform};c.net={};c.net.URLLoader=function(a){c.events.EventDispatcher.call(this);this.bytesTotal=this.bytesLoaded=0;this.set_dataFormat(c.net.URLLoaderDataFormat.TEXT);null!=a&&this.load(a)};g["openfl.net.URLLoader"]=c.net.URLLoader;c.net.URLLoader.__name__=["openfl","net","URLLoader"];c.net.URLLoader.__super__=
c.events.EventDispatcher;c.net.URLLoader.prototype=m(c.events.EventDispatcher.prototype,{close:function(){},getData:function(){return null},load:function(a){this.requestUrl(a.url,a.method,a.data,a.formatRequestHeaders())},registerEvents:function(a){var b=this;"undefined"!=typeof XMLHttpRequestProgressEvent&&a.addEventListener("progress",t(this,this.onProgress),!1);a.onreadystatechange=function(){if(4==a.readyState){var c;try{c=a.status}catch(e){c=null}void 0==c&&(c=null);if(null!=c)b.onStatus(c);
if(null!=c&&200<=c&&400>c)b.onData(a.response);else if(null==c)b.onError("Failed to connect or resolve host");else if(12029==c)b.onError("Failed to connect to host");else if(12007==c)b.onError("Unknown host");else if(0==c)b.onError("Unable to make request (may be blocked due to cross-domain permissions)"),b.onSecurityError("Unable to make request (may be blocked due to cross-domain permissions)");else b.onError("Http Error #"+a.status)}}},requestUrl:function(a,b,d,e){var f=new XMLHttpRequest;this.registerEvents(f);
var g="";if(p.Boot.__instanceof(d,c.utils.ByteArray))switch(this.dataFormat[1]){case 0:g=d.data.buffer;break;default:g=d.readUTFBytes(d.length)}else if(p.Boot.__instanceof(d,c.net.URLVariables))for(var h=0,i=n.fields(d);h<i.length;){var j=i[h];++h;0!=g.length&&(g+="&");g+=encodeURIComponent(j)+"="+s.urlEncode(n.field(d,j))}else null!=d&&(g=d.toString());try{if("GET"==b&&null!=g&&""!=g){var m=1>=a.split("?").length;f.open(b,a+(m?"?":"&")+k.string(g),!0);g=""}else f.open(b,a,!0)}catch(o){this.onError(o.toString());
return}switch(this.dataFormat[1]){case 0:f.responseType="arraybuffer"}for(a=0;a<e.length;)b=e[a],++a,f.setRequestHeader(b.name,b.value);f.send(g);this.onOpen();this.getData=function(){return null!=f.response?f.response:f.responseText}},onData:function(){var a=this.getData();switch(this.dataFormat[1]){case 0:this.data=c.utils.ByteArray.__ofBuffer(a);break;default:this.data=k.string(a)}a=new c.events.Event(c.events.Event.COMPLETE);a.currentTarget=this;this.dispatchEvent(a)},onError:function(a){var b=
new c.events.IOErrorEvent(c.events.IOErrorEvent.IO_ERROR);b.text=a;b.currentTarget=this;this.dispatchEvent(b)},onOpen:function(){var a=new c.events.Event(c.events.Event.OPEN);a.currentTarget=this;this.dispatchEvent(a)},onProgress:function(a){var b=new c.events.ProgressEvent(c.events.ProgressEvent.PROGRESS);b.currentTarget=this;b.bytesLoaded=a.loaded;b.bytesTotal=a.total;this.dispatchEvent(b)},onSecurityError:function(a){var b=new c.events.SecurityErrorEvent(c.events.SecurityErrorEvent.SECURITY_ERROR);
b.text=a;b.currentTarget=this;this.dispatchEvent(b)},onStatus:function(a){a=new c.events.HTTPStatusEvent(c.events.HTTPStatusEvent.HTTP_STATUS,!1,!1,a);a.currentTarget=this;this.dispatchEvent(a)},set_dataFormat:function(a){return this.dataFormat=a==c.net.URLLoaderDataFormat.BINARY&&!n.hasField(window,"ArrayBuffer")?c.net.URLLoaderDataFormat.TEXT:a},__class__:c.net.URLLoader,__properties__:{set_dataFormat:"set_dataFormat"}});c.net.URLLoaderDataFormat=g["openfl.net.URLLoaderDataFormat"]={__ename__:!0,
__constructs__:["BINARY","TEXT","VARIABLES"]};c.net.URLLoaderDataFormat.BINARY=["BINARY",0];c.net.URLLoaderDataFormat.BINARY.toString=i;c.net.URLLoaderDataFormat.BINARY.__enum__=c.net.URLLoaderDataFormat;c.net.URLLoaderDataFormat.TEXT=["TEXT",1];c.net.URLLoaderDataFormat.TEXT.toString=i;c.net.URLLoaderDataFormat.TEXT.__enum__=c.net.URLLoaderDataFormat;c.net.URLLoaderDataFormat.VARIABLES=["VARIABLES",2];c.net.URLLoaderDataFormat.VARIABLES.toString=i;c.net.URLLoaderDataFormat.VARIABLES.__enum__=c.net.URLLoaderDataFormat;
c.net.URLRequest=function(a){null!=a&&(this.url=a);this.requestHeaders=[];this.method=c.net.URLRequestMethod.GET;this.contentType=null};g["openfl.net.URLRequest"]=c.net.URLRequest;c.net.URLRequest.__name__=["openfl","net","URLRequest"];c.net.URLRequest.prototype={formatRequestHeaders:function(){var a=this.requestHeaders;null==a&&(a=[]);if(this.method==c.net.URLRequestMethod.GET||null==this.data)return a;if("string"==typeof this.data||p.Boot.__instanceof(this.data,c.utils.ByteArray))a=a.slice(),a.push(new c.net.URLRequestHeader("Content-Type",
null!=this.contentType?this.contentType:"application/x-www-form-urlencoded"));return a},__class__:c.net.URLRequest};c.net.URLRequestHeader=function(a,b){null==b&&(b="");null==a&&(a="");this.name=a;this.value=b};g["openfl.net.URLRequestHeader"]=c.net.URLRequestHeader;c.net.URLRequestHeader.__name__=["openfl","net","URLRequestHeader"];c.net.URLRequestHeader.prototype={__class__:c.net.URLRequestHeader};c.net.URLRequestMethod=function(){};g["openfl.net.URLRequestMethod"]=c.net.URLRequestMethod;c.net.URLRequestMethod.__name__=
["openfl","net","URLRequestMethod"];c.net.URLVariables=function(a){null!=a&&this.decode(a)};g["openfl.net.URLVariables"]=c.net.URLVariables;c.net.URLVariables.__name__=["openfl","net","URLVariables"];c.net.URLVariables.prototype={decode:function(a){for(var b=n.fields(this),c=0;c<b.length;){var e=b[c];++c;n.deleteField(this,e)}a=a.split(";").join("&").split("&");for(b=0;b<a.length;)c=a[b],++b,e=c.indexOf("="),0<e?n.setField(this,s.urlDecode(o.substr(c,0,e)),s.urlDecode(o.substr(c,e+1,null))):0!=e&&
n.setField(this,decodeURIComponent(c.split("+").join(" ")),"")},toString:function(){for(var a=[],b=n.fields(this),c=0;c<b.length;){var e=b[c];++c;a.push(encodeURIComponent(e)+"="+s.urlEncode(n.field(this,e)))}return a.join("&")},__class__:c.net.URLVariables};c.system={};c.system.ApplicationDomain=function(a){this.parentDomain=null!=a?a:c.system.ApplicationDomain.currentDomain};g["openfl.system.ApplicationDomain"]=c.system.ApplicationDomain;c.system.ApplicationDomain.__name__=["openfl","system","ApplicationDomain"];
c.system.ApplicationDomain.prototype={getDefinition:function(a){return q.resolveClass(a)},hasDefinition:function(a){return null!=q.resolveClass(a)},__class__:c.system.ApplicationDomain};c.system.LoaderContext=function(a,b,c){null==a&&(a=!1);this.checkPolicyFile=a;this.securityDomain=c;this.applicationDomain=b;this.allowLoadBytesCodeExecution=this.allowCodeImport=!0};g["openfl.system.LoaderContext"]=c.system.LoaderContext;c.system.LoaderContext.__name__=["openfl","system","LoaderContext"];c.system.LoaderContext.prototype=
{__class__:c.system.LoaderContext};c.system.SecurityDomain=function(){};g["openfl.system.SecurityDomain"]=c.system.SecurityDomain;c.system.SecurityDomain.__name__=["openfl","system","SecurityDomain"];c.system.SecurityDomain.prototype={__class__:c.system.SecurityDomain};c.text={};c.text._AntiAliasType={};c.text._AntiAliasType.AntiAliasType_Impl_=function(){};g["openfl.text._AntiAliasType.AntiAliasType_Impl_"]=c.text._AntiAliasType.AntiAliasType_Impl_;c.text._AntiAliasType.AntiAliasType_Impl_.__name__=
["openfl","text","_AntiAliasType","AntiAliasType_Impl_"];c.text.Font=function(){};g["openfl.text.Font"]=c.text.Font;c.text.Font.__name__=["openfl","text","Font"];c.text.Font.enumerateFonts=function(){return[]};c.text.Font.registerFont=function(){};c.text.Font.prototype={__class__:c.text.Font};c.text.FontStyle=g["openfl.text.FontStyle"]={__ename__:!0,__constructs__:["REGULAR","ITALIC","BOLD_ITALIC","BOLD"]};c.text.FontStyle.REGULAR=["REGULAR",0];c.text.FontStyle.REGULAR.toString=i;c.text.FontStyle.REGULAR.__enum__=
c.text.FontStyle;c.text.FontStyle.ITALIC=["ITALIC",1];c.text.FontStyle.ITALIC.toString=i;c.text.FontStyle.ITALIC.__enum__=c.text.FontStyle;c.text.FontStyle.BOLD_ITALIC=["BOLD_ITALIC",2];c.text.FontStyle.BOLD_ITALIC.toString=i;c.text.FontStyle.BOLD_ITALIC.__enum__=c.text.FontStyle;c.text.FontStyle.BOLD=["BOLD",3];c.text.FontStyle.BOLD.toString=i;c.text.FontStyle.BOLD.__enum__=c.text.FontStyle;c.text.FontType=g["openfl.text.FontType"]={__ename__:!0,__constructs__:["DEVICE","EMBEDDED","EMBEDDED_CFF"]};
c.text.FontType.DEVICE=["DEVICE",0];c.text.FontType.DEVICE.toString=i;c.text.FontType.DEVICE.__enum__=c.text.FontType;c.text.FontType.EMBEDDED=["EMBEDDED",1];c.text.FontType.EMBEDDED.toString=i;c.text.FontType.EMBEDDED.__enum__=c.text.FontType;c.text.FontType.EMBEDDED_CFF=["EMBEDDED_CFF",2];c.text.FontType.EMBEDDED_CFF.toString=i;c.text.FontType.EMBEDDED_CFF.__enum__=c.text.FontType;c.text.GridFitType=g["openfl.text.GridFitType"]={__ename__:!0,__constructs__:["NONE","PIXEL","SUBPIXEL"]};c.text.GridFitType.NONE=
["NONE",0];c.text.GridFitType.NONE.toString=i;c.text.GridFitType.NONE.__enum__=c.text.GridFitType;c.text.GridFitType.PIXEL=["PIXEL",1];c.text.GridFitType.PIXEL.toString=i;c.text.GridFitType.PIXEL.__enum__=c.text.GridFitType;c.text.GridFitType.SUBPIXEL=["SUBPIXEL",2];c.text.GridFitType.SUBPIXEL.toString=i;c.text.GridFitType.SUBPIXEL.__enum__=c.text.GridFitType;c.text.TextField=function(){c.display.InteractiveObject.call(this);this.__height=this.__width=100;this.__text="";this.set_type(c.text.TextFieldType.DYNAMIC);
this.set_autoSize(c.text.TextFieldAutoSize.NONE);this.embedFonts=this.displayAsPassword=!1;this.selectable=!0;this.set_borderColor(0);this.set_border(!1);this.set_backgroundColor(16777215);this.set_background(!1);this.gridFitType=c.text.GridFitType.PIXEL;this.maxChars=0;this.multiline=!1;this.scrollH=this.sharpness=0;this.scrollV=1;this.set_wordWrap(!1);null==c.text.TextField.__defaultTextFormat&&(c.text.TextField.__defaultTextFormat=new c.text.TextFormat("Times New Roman",12,0,!1,!1,!1,"","",c.text.TextFormatAlign.LEFT,
0,0,0,0),c.text.TextField.__defaultTextFormat.blockIndent=0,c.text.TextField.__defaultTextFormat.bullet=!1,c.text.TextField.__defaultTextFormat.letterSpacing=0,c.text.TextField.__defaultTextFormat.kerning=!1);this.__textFormat=c.text.TextField.__defaultTextFormat.clone()};g["openfl.text.TextField"]=c.text.TextField;c.text.TextField.__name__=["openfl","text","TextField"];c.text.TextField.__defaultTextFormat=null;c.text.TextField.__super__=c.display.InteractiveObject;c.text.TextField.prototype=m(c.display.InteractiveObject.prototype,
{appendText:function(a){this.set_text(this.get_text()+a)},getCharBoundaries:function(){c.Lib.notImplemented("TextField.getCharBoundaries");return null},getCharIndexAtPoint:function(){c.Lib.notImplemented("TextField.getCharIndexAtPoint");return 0},getLineIndexAtPoint:function(){c.Lib.notImplemented("TextField.getLineIndexAtPoint");return 0},getLineMetrics:function(){c.Lib.notImplemented("TextField.getLineMetrics");return null},getLineOffset:function(){c.Lib.notImplemented("TextField.getLineOffset");
return 0},getLineText:function(){c.Lib.notImplemented("TextField.getLineText");return""},getTextFormat:function(){return this.__textFormat.clone()},setSelection:function(){c.Lib.notImplemented("TextField.setSelection")},setTextFormat:function(a){null!=a.font&&(this.__textFormat.font=a.font);null!=a.size&&(this.__textFormat.size=a.size);null!=a.color&&(this.__textFormat.color=a.color);null!=a.bold&&(this.__textFormat.bold=a.bold);null!=a.italic&&(this.__textFormat.italic=a.italic);null!=a.underline&&
(this.__textFormat.underline=a.underline);null!=a.url&&(this.__textFormat.url=a.url);null!=a.target&&(this.__textFormat.target=a.target);null!=a.align&&(this.__textFormat.align=a.align);null!=a.leftMargin&&(this.__textFormat.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.__textFormat.rightMargin=a.rightMargin);null!=a.indent&&(this.__textFormat.indent=a.indent);null!=a.leading&&(this.__textFormat.leading=a.leading);null!=a.blockIndent&&(this.__textFormat.blockIndent=a.blockIndent);null!=a.bullet&&
(this.__textFormat.bullet=a.bullet);null!=a.kerning&&(this.__textFormat.kerning=a.kerning);null!=a.letterSpacing&&(this.__textFormat.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.__textFormat.tabStops=a.tabStops);this.__dirty=!0},__getBounds:function(a){var b=new c.geom.Rectangle(0,0,this.__width,this.__height);b.transform(this.__worldTransform);a.__expand(b.x,b.y,b.width,b.height)},__getFont:function(a){var b;b=a.italic?"italic ":"normal ";b+="normal ";b=a.bold?b+"bold ":b+"normal ";b+=
a.size+"px";b+="/"+(a.size+a.leading+4)+"px ";switch(a.font){case "_sans":a="sans-serif";break;case "_serif":a="serif";break;case "_typewriter":a="monospace";break;default:a=a.font}return b+("'"+a)+"'"},__hitTest:function(a,b,d,e,f){if(!this.get_visible()||f&&!this.mouseEnabled)return!1;a=this.globalToLocal(new c.geom.Point(a,b));return 0<a.x&&0<a.y&&a.x<=this.__width&&a.y<=this.__height?(null!=e&&e.push(this),!0):!1},__measureText:function(){if(null==this.__ranges)return this.__context.font=this.__getFont(this.__textFormat),
[this.__context.measureText(this.__text).width];for(var a=[],b=0,c=this.__ranges;b<c.length;){var e=c[b];++b;this.__context.font=this.__getFont(e.format);a.push(this.__context.measureText(this.get_text().substring(e.start,e.end)).width)}return a},__measureTextWithDOM:function(){var a=this.__div;null==this.__div&&(a=window.document.createElement("div"),a.innerHTML=this.__text,a.style.setProperty("font",this.__getFont(this.__textFormat),null),a.style.position="absolute",a.style.top="110%",window.document.body.appendChild(a));
this.__measuredWidth=a.clientWidth;null==this.__div&&(a.style.width=k.string(this.__width)+"px");this.__measuredHeight=a.clientHeight;null==this.__div&&window.document.body.removeChild(a)},__renderCanvas:function(a){if(this.__renderable&&!(0>=this.__worldAlpha)){if(this.__dirty){if((null==this.__text||""==this.__text)&&!this.background&&!this.border||(0>=this.get_width()||0>=this.get_height())&&this.autoSize!=c.text.TextFieldAutoSize.LEFT)this.__context=this.__canvas=null;else if(null==this.__canvas&&
(this.__canvas=window.document.createElement("canvas"),this.__context=this.__canvas.getContext("2d")),null!=this.__text&&""!=this.__text){for(var b=this.__measureText(),d=0,e=0;e<b.length;){var f=b[e];++e;d+=f}this.autoSize==c.text.TextFieldAutoSize.LEFT&&(this.__width=d+4);this.__canvas.width=Math.ceil(this.__width);this.__canvas.height=Math.ceil(this.__height);if(this.border||this.background)if(this.__context.rect(0.5,0.5,this.__width-1,this.__height-1),this.background&&(this.__context.fillStyle=
"#"+s.hex(this.backgroundColor,6),this.__context.fill()),this.border)this.__context.lineWidth=1,this.__context.strokeStyle="#"+s.hex(this.borderColor,6),this.__context.stroke();if(null==this.__ranges)this.__renderText(this.get_text(),this.__textFormat,0);else for(var f=e=0,g=this.__ranges.length;f<g;){var h=f++,d=this.__ranges[h];this.__renderText(this.get_text().substring(d.start,d.end),d.format,e);e+=b[h]}}else if(this.autoSize==c.text.TextFieldAutoSize.LEFT&&(this.__width=4),this.__canvas.width=
Math.ceil(this.__width),this.__canvas.height=Math.ceil(this.__height),this.border||this.background)if(this.border?this.__context.rect(0.5,0.5,this.__width-1,this.__height-1):this.__context.rect(0,0,this.__width,this.__height),this.background&&(this.__context.fillStyle="#"+s.hex(this.backgroundColor,6),this.__context.fill()),this.border)this.__context.lineWidth=1,this.__context.lineCap="square",this.__context.strokeStyle="#"+s.hex(this.borderColor,6),this.__context.stroke();this.__dirty=!1}null!=this.__canvas&&
(b=a.context,b.globalAlpha=this.__worldAlpha,d=this.__worldTransform,a.roundPixels?b.setTransform(d.a,d.b,d.c,d.d,d.tx|0,d.ty|0):b.setTransform(d.a,d.b,d.c,d.d,d.tx,d.ty),null==this.get_scrollRect()?b.drawImage(this.__canvas,0,0):b.drawImage(this.__canvas,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height,this.get_scrollRect().x,this.get_scrollRect().y,this.get_scrollRect().width,this.get_scrollRect().height))}},__renderDOM:function(a){if(null!=
this.stage&&this.__worldVisible&&this.__renderable){if(this.__dirty||null==this.__div)if(""!=this.__text||this.background||this.border){null==this.__div&&(this.__div=window.document.createElement("div"),this.__initializeElement(this.__div,a),this.__style.setProperty("cursor","inherit",null));this.__div.innerHTML=this.__text;this.background?this.__style.setProperty("background-color","#"+s.hex(this.backgroundColor,6),null):this.__style.removeProperty("background-color");this.border?this.__style.setProperty("border",
"solid 1px #"+s.hex(this.borderColor,6),null):this.__style.removeProperty("border");this.__style.setProperty("font",this.__getFont(this.__textFormat),null);this.__style.setProperty("color","#"+s.hex(this.__textFormat.color,6),null);this.autoSize!=c.text.TextFieldAutoSize.NONE?this.__style.setProperty("width","auto",null):this.__style.setProperty("width",this.__width+"px",null);this.__style.setProperty("height",this.__height+"px",null);switch(this.__textFormat.align[1]){case 3:this.__style.setProperty("text-align",
"center",null);break;case 1:this.__style.setProperty("text-align","right",null);break;default:this.__style.setProperty("text-align","left",null)}this.__dirty=!1}else null!=this.__div&&(a.element.removeChild(this.__div),this.__div=null);null!=this.__div&&this.__applyStyle(a,!0,!0,!1)}else null!=this.__div&&(a.element.removeChild(this.__div),this.__style=this.__div=null)},__renderText:function(a,b,c){this.__context.font=this.__getFont(b);this.__context.textBaseline="top";this.__context.fillStyle="#"+
s.hex(b.color,6);switch(b.align[1]){case 3:this.__context.textAlign="center";this.__context.fillText(a,this.__width/2,2,this.__width-4);break;case 1:this.__context.textAlign="end";this.__context.fillText(a,this.__width-2,2,this.__width-4);break;default:this.__context.textAlign="start",this.__context.fillText(a,2+c,2,this.__width-4)}},set_autoSize:function(a){a!=this.autoSize&&(this.__dirty=!0);return this.autoSize=a},set_background:function(a){a!=this.background&&(this.__dirty=!0);return this.background=
a},set_backgroundColor:function(a){a!=this.backgroundColor&&(this.__dirty=!0);return this.backgroundColor=a},set_border:function(a){a!=this.border&&(this.__dirty=!0);return this.border=a},set_borderColor:function(a){a!=this.borderColor&&(this.__dirty=!0);return this.borderColor=a},get_bottomScrollV:function(){return this.get_numLines()},get_caretPos:function(){return 0},get_defaultTextFormat:function(){return this.__textFormat.clone()},set_defaultTextFormat:function(a){this.__textFormat.__merge(a);
return a},get_height:function(){return this.__height*this.get_scaleY()},set_height:function(a){if(1!=this.get_scaleY()||a!=this.__height)this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),this.__dirty=!0;this.set_scaleY(1);return this.__height=a},get_htmlText:function(){return this.__text},set_htmlText:function(a){if(!this.__isHTML||this.__text!=a)this.__dirty=!0;this.__ranges=null;this.__isHTML=!0;return this.__text=a},get_maxScrollH:function(){return 0},
get_maxScrollV:function(){return 1},get_numLines:function(){if(""!=this.get_text()&&null!=this.get_text()){var a=this.get_text().split("\n").length;this.__isHTML&&(a+=this.get_text().split("<br>").length-1);return a}return 1},get_text:function(){return this.__text},set_text:function(a){if(this.__isHTML||this.__text!=a)this.__dirty=!0;this.__ranges=null;this.__isHTML=!1;return this.__text=a},get_textColor:function(){return this.__textFormat.color},set_textColor:function(a){a!=this.__textFormat.color&&
(this.__dirty=!0);if(null!=this.__ranges)for(var b=0,c=this.__ranges;b<c.length;){var e=c[b];++b;e.format.color=a}return this.__textFormat.color=a},get_textWidth:function(){if(null!=this.__canvas){for(var a=this.__measureText(),b=0,c=0;c<a.length;){var e=a[c];++c;b+=e}return b}if(null!=this.__div)return this.__div.clientWidth;this.__measureTextWithDOM();return this.__measuredWidth},get_textHeight:function(){if(null!=this.__canvas)return 1.185*this.__textFormat.size;if(null!=this.__div)return this.__div.clientHeight;
this.__measureTextWithDOM();return this.__measuredHeight+0.185*this.__textFormat.size},set_type:function(a){return this.type=a},get_width:function(){return this.autoSize==c.text.TextFieldAutoSize.LEFT?(this.get_textWidth()+4)*this.get_scaleX():this.__width*this.get_scaleX()},set_width:function(a){if(1!=this.get_scaleX()||this.__width!=a)this.__transformDirty||(this.__transformDirty=!0,c.display.DisplayObject.__worldTransformDirty++),this.__dirty=!0;this.set_scaleX(1);return this.__width=a},get_wordWrap:function(){return this.wordWrap},
set_wordWrap:function(a){return this.wordWrap=a},__class__:c.text.TextField,__properties__:m(c.display.InteractiveObject.prototype.__properties__,{set_wordWrap:"set_wordWrap",get_wordWrap:"get_wordWrap",set_type:"set_type",get_textWidth:"get_textWidth",get_textHeight:"get_textHeight",set_textColor:"set_textColor",get_textColor:"get_textColor",set_text:"set_text",get_text:"get_text",get_numLines:"get_numLines",get_maxScrollV:"get_maxScrollV",get_maxScrollH:"get_maxScrollH",set_htmlText:"set_htmlText",
get_htmlText:"get_htmlText",set_defaultTextFormat:"set_defaultTextFormat",get_defaultTextFormat:"get_defaultTextFormat",get_caretPos:"get_caretPos",get_bottomScrollV:"get_bottomScrollV",set_borderColor:"set_borderColor",set_border:"set_border",set_backgroundColor:"set_backgroundColor",set_background:"set_background",set_autoSize:"set_autoSize"})});c.text.TextFormatRange=function(a,b,c){this.format=a;this.start=b;this.end=c};g["openfl.text.TextFormatRange"]=c.text.TextFormatRange;c.text.TextFormatRange.__name__=
["openfl","text","TextFormatRange"];c.text.TextFormatRange.prototype={__class__:c.text.TextFormatRange};c.text.TextFieldAutoSize=g["openfl.text.TextFieldAutoSize"]={__ename__:!0,__constructs__:["CENTER","LEFT","NONE","RIGHT"]};c.text.TextFieldAutoSize.CENTER=["CENTER",0];c.text.TextFieldAutoSize.CENTER.toString=i;c.text.TextFieldAutoSize.CENTER.__enum__=c.text.TextFieldAutoSize;c.text.TextFieldAutoSize.LEFT=["LEFT",1];c.text.TextFieldAutoSize.LEFT.toString=i;c.text.TextFieldAutoSize.LEFT.__enum__=
c.text.TextFieldAutoSize;c.text.TextFieldAutoSize.NONE=["NONE",2];c.text.TextFieldAutoSize.NONE.toString=i;c.text.TextFieldAutoSize.NONE.__enum__=c.text.TextFieldAutoSize;c.text.TextFieldAutoSize.RIGHT=["RIGHT",3];c.text.TextFieldAutoSize.RIGHT.toString=i;c.text.TextFieldAutoSize.RIGHT.__enum__=c.text.TextFieldAutoSize;c.text.TextFieldType=g["openfl.text.TextFieldType"]={__ename__:!0,__constructs__:["DYNAMIC","INPUT"]};c.text.TextFieldType.DYNAMIC=["DYNAMIC",0];c.text.TextFieldType.DYNAMIC.toString=
i;c.text.TextFieldType.DYNAMIC.__enum__=c.text.TextFieldType;c.text.TextFieldType.INPUT=["INPUT",1];c.text.TextFieldType.INPUT.toString=i;c.text.TextFieldType.INPUT.__enum__=c.text.TextFieldType;c.text.TextFormat=function(a,b,c,e,f,g,h,i,j,k,m,n,o){this.font=a;this.size=b;this.color=c;this.bold=e;this.italic=f;this.underline=g;this.url=h;this.target=i;this.align=j;this.leftMargin=k;this.rightMargin=m;this.indent=n;this.leading=o};g["openfl.text.TextFormat"]=c.text.TextFormat;c.text.TextFormat.__name__=
["openfl","text","TextFormat"];c.text.TextFormat.prototype={clone:function(){var a=new c.text.TextFormat(this.font,this.size,this.color,this.bold,this.italic,this.underline,this.url,this.target);a.align=this.align;a.leftMargin=this.leftMargin;a.rightMargin=this.rightMargin;a.indent=this.indent;a.leading=this.leading;a.blockIndent=this.blockIndent;a.bullet=this.bullet;a.kerning=this.kerning;a.letterSpacing=this.letterSpacing;a.tabStops=this.tabStops;return a},__merge:function(a){null!=a.font&&(this.font=
a.font);null!=a.size&&(this.size=a.size);null!=a.color&&(this.color=a.color);null!=a.bold&&(this.bold=a.bold);null!=a.italic&&(this.italic=a.italic);null!=a.underline&&(this.underline=a.underline);null!=a.url&&(this.url=a.url);null!=a.target&&(this.target=a.target);null!=a.align&&(this.align=a.align);null!=a.leftMargin&&(this.leftMargin=a.leftMargin);null!=a.rightMargin&&(this.rightMargin=a.rightMargin);null!=a.indent&&(this.indent=a.indent);null!=a.leading&&(this.leading=a.leading);null!=a.blockIndent&&
(this.blockIndent=a.blockIndent);null!=a.bullet&&(this.bullet=a.bullet);null!=a.kerning&&(this.kerning=a.kerning);null!=a.letterSpacing&&(this.letterSpacing=a.letterSpacing);null!=a.tabStops&&(this.tabStops=a.tabStops)},__class__:c.text.TextFormat};c.text.TextFormatAlign=g["openfl.text.TextFormatAlign"]={__ename__:!0,__constructs__:["LEFT","RIGHT","JUSTIFY","CENTER"]};c.text.TextFormatAlign.LEFT=["LEFT",0];c.text.TextFormatAlign.LEFT.toString=i;c.text.TextFormatAlign.LEFT.__enum__=c.text.TextFormatAlign;
c.text.TextFormatAlign.RIGHT=["RIGHT",1];c.text.TextFormatAlign.RIGHT.toString=i;c.text.TextFormatAlign.RIGHT.__enum__=c.text.TextFormatAlign;c.text.TextFormatAlign.JUSTIFY=["JUSTIFY",2];c.text.TextFormatAlign.JUSTIFY.toString=i;c.text.TextFormatAlign.JUSTIFY.__enum__=c.text.TextFormatAlign;c.text.TextFormatAlign.CENTER=["CENTER",3];c.text.TextFormatAlign.CENTER.toString=i;c.text.TextFormatAlign.CENTER.__enum__=c.text.TextFormatAlign;c.text.TextLineMetrics=function(a,b,c,e,f,g){this.x=a;this.width=
b;this.height=c;this.ascent=e;this.descent=f;this.leading=g};g["openfl.text.TextLineMetrics"]=c.text.TextLineMetrics;c.text.TextLineMetrics.__name__=["openfl","text","TextLineMetrics"];c.text.TextLineMetrics.prototype={__class__:c.text.TextLineMetrics};c.ui={};c.ui._KeyLocation={};c.ui._KeyLocation.KeyLocation_Impl_=function(){};g["openfl.ui._KeyLocation.KeyLocation_Impl_"]=c.ui._KeyLocation.KeyLocation_Impl_;c.ui._KeyLocation.KeyLocation_Impl_.__name__=["openfl","ui","_KeyLocation","KeyLocation_Impl_"];
c.ui.Keyboard=function(){};g["openfl.ui.Keyboard"]=c.ui.Keyboard;c.ui.Keyboard.__name__=["openfl","ui","Keyboard"];c.ui.Keyboard.capsLock=null;c.ui.Keyboard.numLock=null;c.ui.Keyboard.isAccessible=function(){return!1};c.ui.Keyboard.__convertMozillaCode=function(a){switch(a){case 8:return 8;case 9:return 9;case 13:return 13;case 14:return 13;case 16:return 16;case 17:return 17;case 20:return 20;case 27:return 27;case 32:return 32;case 33:return 33;case 34:return 34;case 35:return 35;case 36:return 36;
case 37:return 37;case 39:return 39;case 38:return 38;case 40:return 40;case 45:return 45;case 46:return 46;case 144:return 144;default:return a}};c.ui.Keyboard.__convertWebkitCode=function(a){switch(a.toLowerCase()){case "backspace":return 8;case "tab":return 9;case "enter":return 13;case "shift":return 16;case "control":return 17;case "capslock":return 20;case "escape":return 27;case "space":return 32;case "pageup":return 33;case "pagedown":return 34;case "end":return 35;case "home":return 36;case "left":return 37;
case "right":return 39;case "up":return 38;case "down":return 40;case "insert":return 45;case "delete":return 46;case "numlock":return 144;case "break":return 19}if(0==a.indexOf("U+"))return k.parseInt("0x"+o.substr(a,3,null));throw"Unrecognized key code: "+a;};c.utils={};c.utils.ByteArray=function(){this.littleEndian=!1;this.length=this.position=this.allocated=0;this.___resizeBuffer(this.allocated)};g["openfl.utils.ByteArray"]=c.utils.ByteArray;c.utils.ByteArray.__name__=["openfl","utils","ByteArray"];
c.utils.ByteArray.fromBytes=function(a){var b=new c.utils.ByteArray;b.byteView=new Uint8Array(a.b);b.set_length(b.byteView.length);b.allocated=b.length;return b};c.utils.ByteArray.__ofBuffer=function(a){var b=new c.utils.ByteArray;b.set_length(b.allocated=a.byteLength);b.data=new DataView(a);b.byteView=new Uint8Array(a);return b};c.utils.ByteArray.prototype={clear:function(){0>this.allocated?this.___resizeBuffer(this.allocated=k["int"](Math.max(0,2*this.allocated))):0<this.allocated&&this.___resizeBuffer(this.allocated=
0);this.length=0;0;this.position=0},readBoolean:function(){return 0!=this.readByte()},readByte:function(){return this.data.getInt8(this.position++)},readBytes:function(a,b,d){null==d&&(d=0);null==b&&(b=0);if(0>b||0>d)throw new c.errors.IOError("Read error - Out of bounds");0==d&&(d=this.length);var e=b+d;a.length<e&&(a.allocated<e?a.___resizeBuffer(a.allocated=k["int"](Math.max(e,2*a.allocated))):a.allocated>e&&a.___resizeBuffer(a.allocated=e),a.length=e,e);a.byteView.set(this.byteView.subarray(this.position,
this.position+d),b);a.position=b;this.position+=d;a.position+d>a.length&&a.set_length(a.position+d)},readDouble:function(){var a=this.data.getFloat64(this.position,this.littleEndian);this.position+=8;return a},readFloat:function(){var a=this.data.getFloat32(this.position,this.littleEndian);this.position+=4;return a},readFullBytes:function(a,b,c){this.length<c&&(this.allocated<c?this.___resizeBuffer(this.allocated=k["int"](Math.max(c,2*this.allocated))):this.allocated>c&&this.___resizeBuffer(this.allocated=
c),this.length=c,c);for(var e=b,b=b+c;e<b;)c=e++,this.data.setInt8(this.position++,a.b[c])},readInt:function(){var a=this.data.getInt32(this.position,this.littleEndian);this.position+=4;return a},readShort:function(){var a=this.data.getInt16(this.position,this.littleEndian);this.position+=2;return a},readUnsignedByte:function(){return this.data.getUint8(this.position++)},readUnsignedInt:function(){var a=this.data.getUint32(this.position,this.littleEndian);this.position+=4;return a},readUnsignedShort:function(){var a=
this.data.getUint16(this.position,this.littleEndian);this.position+=2;return a},readUTF:function(){var a=this.readUnsignedShort();return this.readUTFBytes(a)},readUTFBytes:function(a){for(var b="",a=this.position+a;this.position<a;){var c=this.data,e=c.getUint8(this.position++);if(128>e){if(0==e)break;b+=String.fromCharCode(e)}else if(224>e)b+=String.fromCharCode((e&63)<<6|c.getUint8(this.position++)&127);else if(240>e)var f=c.getUint8(this.position++),b=b+String.fromCharCode((e&31)<<12|(f&127)<<
6|c.getUint8(this.position++)&127);else var f=c.getUint8(this.position++),g=c.getUint8(this.position++),b=b+String.fromCharCode((e&15)<<18|(f&127)<<12|g<<6&127|c.getUint8(this.position++)&127)}return b},toString:function(){var a=this.position;this.position=0;var b=this.readUTFBytes(this.length);this.position=a;return b},writeBoolean:function(a){this.writeByte(a?1:0)},writeByte:function(a){var b=this.position+1;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,
2*this.allocated))):this.allocated>b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt8(this.position,a);this.position+=1},writeBytes:function(a,b,d){null==d&&(d=0);null==b&&(b=0);if(0>b||0>d)throw new c.errors.IOError("Write error - Out of bounds");0==d&&(d=a.length);var e=this.position+d;this.length<e&&(this.allocated<e?this.___resizeBuffer(this.allocated=k["int"](Math.max(e,2*this.allocated))):this.allocated>e&&this.___resizeBuffer(this.allocated=e),this.length=e,e);this.byteView.set(a.byteView.subarray(b,
b+d),this.position);this.position+=d},writeDouble:function(a){var b=this.position+8;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,2*this.allocated))):this.allocated>b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setFloat64(this.position,a,this.littleEndian);this.position+=8},writeFloat:function(a){var b=this.position+4;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,2*this.allocated))):this.allocated>
b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setFloat32(this.position,a,this.littleEndian);this.position+=4},writeInt:function(a){var b=this.position+4;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,2*this.allocated))):this.allocated>b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt32(this.position,a,this.littleEndian);this.position+=4},writeShort:function(a){var b=this.position+2;this.length<b&&(this.allocated<
b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,2*this.allocated))):this.allocated>b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setInt16(this.position,a,this.littleEndian);this.position+=2},writeUnsignedInt:function(a){var b=this.position+4;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,2*this.allocated))):this.allocated>b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setUint32(this.position,a,this.littleEndian);
this.position+=4},writeUnsignedShort:function(a){var b=this.position+2;this.length<b&&(this.allocated<b?this.___resizeBuffer(this.allocated=k["int"](Math.max(b,2*this.allocated))):this.allocated>b&&this.___resizeBuffer(this.allocated=b),this.length=b,b);this.data.setUint16(this.position,a,this.littleEndian);this.position+=2},writeUTF:function(a){this.writeUnsignedShort(this._getUTFBytesCount(a));this.writeUTFBytes(a)},writeUTFBytes:function(a){for(var b=0,c=a.length;b<c;){var e=b++,e=a.charCodeAt(e);
127>=e?this.writeByte(e):(2047>=e?this.writeByte(192|e>>6):(65535>=e?this.writeByte(224|e>>12):(this.writeByte(240|e>>18),this.writeByte(128|e>>12&63)),this.writeByte(128|e>>6&63)),this.writeByte(128|e&63))}},__fromBytes:function(a){this.byteView=new Uint8Array(a.b);this.set_length(this.byteView.length);this.allocated=this.length},__get:function(a){return this.data.getInt8(a)},_getUTFBytesCount:function(a){for(var b=0,c=0,e=a.length;c<e;)var f=c++,f=a.charCodeAt(f),b=127>=f?b+1:2047>=f?b+2:65535>=
f?b+3:b+4;return b},___resizeBuffer:function(a){var b=this.byteView,c=new Uint8Array(a);null!=b&&(b.length<=a?c.set(b):c.set(b.subarray(0,a)));this.byteView=c;this.data=new DataView(c.buffer)},__getBuffer:function(){return this.data.buffer},__set:function(a,b){this.data.setUint8(a,b)},get_bytesAvailable:function(){return this.length-this.position},get_endian:function(){return this.littleEndian?"littleEndian":"bigEndian"},set_endian:function(a){this.littleEndian="littleEndian"==a;return a},set_length:function(a){this.allocated<
a?this.___resizeBuffer(this.allocated=k["int"](Math.max(a,2*this.allocated))):this.allocated>a&&this.___resizeBuffer(this.allocated=a);return this.length=a},__class__:c.utils.ByteArray,__properties__:{set_length:"set_length",set_endian:"set_endian",get_endian:"get_endian",get_bytesAvailable:"get_bytesAvailable"}};c.utils.Endian=function(){};g["openfl.utils.Endian"]=c.utils.Endian;c.utils.Endian.__name__=["openfl","utils","Endian"];var b={Deep:function(){}};g["tardis.Deep"]=b.Deep;b.Deep.__name__=
["tardis","Deep"];b.Deep.copy=function(a){if(n.isObject(a)){if("string"==typeof a)return a;if(p.Boot.__instanceof(a,b.Pointer)||p.Boot.__instanceof(a,b.PointerBasic))return a.copy();if(p.Boot.__instanceof(a,b.Closure))return a;if(a instanceof Array&&null==a.__enum__){for(var c=q.createInstance(q.getClass(a),[]),d=0,e=a.length;d<e;){var f=d++;c.push(b.Deep.copy(a[f]))}return c}if(p.Boot.__instanceof(a,G)){c=q.createInstance(q.getClass(a),[]);for(d=a.keys();d.hasNext();)e=d.next(),c.set(e,b.Deep.copy(a.get(e)));
return c}if(null==q.getClass(a)){c={};d=0;for(e=n.fields(a);d<e.length;)f=e[d],++d,n.setField(c,f,b.Deep.copy(n.field(a,f)));return c}c=q.createEmptyInstance(q.getClass(a));d=0;for(e=n.fields(a);d<e.length;)f=e[d],++d,n.setField(c,f,b.Deep.copy(n.field(a,f)));return c}return a};b.Force=function(){};g["tardis.Force"]=b.Force;b.Force.__name__=["tardis","Force"];b.Force.toUint8=function(a){return a&255};b.Force.toUint16=function(a){return a&65535};b.Force.toUint32=function(a){return a>>>0};b.Force.toUint64=
function(a){return a};b.Force.toInt8=function(a){a&=255;return 0!=(a&128)?-256+a:a};b.Force.toInt16=function(a){a&=65535;return 0!=(a&32768)?-65536+a:a};b.Force.toInt32=function(a){return a>>0};b.Force.toInt64=function(a){return a};b.Force.toInt=function(a){return n.isObject(a)?p.Boot.__instanceof(a,b.Interface)?(a=a.val,n.isObject(a)?b.Int64.getLow(a):a):b.Int64.getLow(a):a};b.Force.toFloat=function(a){return a};b.Force.uintCompare=function(a,b){return a==b?0:0<=a?0<=b?a-b:-1:0<=b?1:a-b};b.Force.checkIntDiv=
function(a,c,d){var e=c;switch(c){case 0:b.Scheduler.panicFromHaxe("attempt to divide integer value by 0");break;case -1:switch(d){case 1:-128==a&&(e=1);break;case 2:-32768==a&&(e=1);break;case 4:-2147483648==a&&(e=1)}}return e};b.Force.intDiv=function(a,c,d){c=b.Force.checkIntDiv(a,c,d);if(1==c)return a;if(0<d||0<a&&0<c)return a=p.Boot.__cast(a,I)/p.Boot.__cast(c,I),0<=a?Math.floor(a):Math.ceil(a);a=b._Go.HaxeInt64abs_Impl_.div(new b.Int64(0,a),new b.Int64(0,c),!1);return b.Int64.getLow(a)};b.Force.intMod=
function(a,c,d){c=b.Force.checkIntDiv(a,c,d);if(1==c)return 0;if(0<d||0<a&&0<c)return a%c;a=b._Go.HaxeInt64abs_Impl_.mod(new b.Int64(0,a),new b.Int64(0,c),!1);return b.Int64.getLow(a)};b.Force.floatDiv=function(a,c){0==c&&b.Scheduler.panicFromHaxe("attempt to divide float value by 0");return a/c};b.Force.floatMod=function(a,c){0==c&&b.Scheduler.panicFromHaxe("attempt to modulo float value by 0");return a%c};b.Force.toUTF8length=function(a,c){return b.Force.toUTF8slice(a,c).len()};b.Force.toUTF8slice=
function(a,c){for(var d=[],e=255,e=65535,f=0,g=c.length;f<g;){var h=f++,i=o.cca(c,h);null==i?b.Scheduler.panicFromHaxe("Haxe runtime Force.toUTF8slice() unexpected null encountered"):d[h]=p.Boot.__cast(i,H)&e}d=new b.Pointer(d);d=new b.SliceNonAbs(d,0,-1);d=b.Go_haxegoruntime_UTF16toRunes.callFromRT(a,d);return b.Go_haxegoruntime_RunesToUTF8.callFromRT(a,d)};b.Force.toRawString=function(a,c){for(var d="",e=255,e=b.Go_haxegoruntime_UTF8toRunes.callFromRT(a,c),c=b.Go_haxegoruntime_RunesToUTF16.callFromRT(a,
e),e=65535,f=0,g=c.length;f<g;)var h=f++,d=d+String.fromCharCode(c.getAt(h)&e);return d};b.Make=function(){};g["tardis.Make"]=b.Make;b.Make.__name__=["tardis","Make"];b.Make.prototype={array:function(a,b){for(var c=[],e=0;e<b;){var f=e++;c[f]=a}return c},__class__:b.Make};b.UnsafePointer=function(){};g["tardis.UnsafePointer"]=b.UnsafePointer;b.UnsafePointer.__name__=["tardis","UnsafePointer"];b.UnsafePointer.prototype={__class__:b.UnsafePointer};b.PointerIF=function(){};g["tardis.PointerIF"]=b.PointerIF;
b.PointerIF.__name__=["tardis","PointerIF"];b.PointerIF.prototype={__class__:b.PointerIF};b.PointerBasic=function(a){this.heapObj=a};g["tardis.PointerBasic"]=b.PointerBasic;b.PointerBasic.__name__=["tardis","PointerBasic"];b.PointerBasic.__interfaces__=[b.PointerIF];b.PointerBasic.prototype={load:function(){return this.heapObj},store:function(a){this.heapObj=a},addr:function(){b.Scheduler.panicFromHaxe("cannot index a simple variable");return this},fieldAddr:function(){b.Scheduler.panicFromHaxe("cannot get the address of a field in a simple variable");
return this},len:function(){return 1},copy:function(){return this},__class__:b.PointerBasic};b.Pointer=function(a){this.heapObj=a;this.offs=[]};g["tardis.Pointer"]=b.Pointer;b.Pointer.__name__=["tardis","Pointer"];b.Pointer.__interfaces__=[b.PointerIF];b.Pointer.prototype={load:function(){for(var a=this.heapObj,c=0,d=this.offs.length;c<d;){var e=c++;if(null==a)return b.Scheduler.panicFromHaxe("attempt to dereference a nil pointer"),null;if("string"==typeof this.offs[e])try{a=n.getProperty(a,this.offs[e])}catch(f){b.Scheduler.panicFromHaxe("failed attempt to dereference pointer reading from field:"+
this.offs.toString())}else try{a=a[this.offs[e]]}catch(g){b.Scheduler.panicFromHaxe("failed attempt to dereference pointer reading from index:"+this.offs.toString())}}return a},store:function(a){if(0==this.offs.length)this.heapObj=a;else{for(var c=this.heapObj,d=0,e=this.offs.length-1;d<e;){var f=d++;if(null==c){b.Scheduler.panicFromHaxe("attempt to dereference a nil pointer");return}if("string"==typeof this.offs[f])try{c=n.getProperty(c,this.offs[f])}catch(g){b.Scheduler.panicFromHaxe("failed attempt to dereference pointer writing to field:"+
this.offs.toString())}else try{c=c[this.offs[f]]}catch(h){b.Scheduler.panicFromHaxe("failed attempt to dereference pointer writing to index:"+this.offs.toString())}}if("string"==typeof this.offs[this.offs.length-1])try{n.setProperty(c,this.offs[this.offs.length-1],a)}catch(i){b.Scheduler.panicFromHaxe("failed attempt to dereference pointer writing to field:"+this.offs.toString())}else try{c[this.offs[this.offs.length-1]]=a}catch(j){b.Scheduler.panicFromHaxe("failed attempt to dereference pointer writing to index:"+
this.offs.toString())}}},addr:function(a){var c=new b.Pointer(this.heapObj);c.offs=this.offs.slice();c.offs[this.offs.length]=a;return c},fieldAddr:function(a){var c=new b.Pointer(this.heapObj);c.offs=this.offs.slice();c.offs[this.offs.length]=a;return c},get_length:function(){return this.len()},len:function(){return this.load().length},copy:function(){return this},__class__:b.Pointer,__properties__:{get_length:"get_length"}};b._Go={};b._Go.Slice_Impl_=function(){};g["tardis._Go.Slice_Impl_"]=b._Go.Slice_Impl_;
b._Go.Slice_Impl_.__name__=["tardis","_Go","Slice_Impl_"];b._Go.Slice_Impl_._new=function(a,c,d){return new b.SliceNonAbs(a,c,d)};b._Go.Slice_Impl_.arrayRead=function(a,b){return a.getAt(b)};b._Go.Slice_Impl_.arrayWrite=function(a,b,c){a.setAt(b,c);return c};b.SliceNonAbs=function(a,c,d){this.baseArray=a;null==this.baseArray?this.end=this.start=0:(-1==d&&(d=this.baseArray.len()),0>c&&b.Scheduler.panicFromHaxe("new Slice() low bound -ve"),d>this.baseArray.len()&&b.Scheduler.panicFromHaxe("new Slice() high bound exceeds underlying array length"),
c>d&&b.Scheduler.panicFromHaxe("new Slice() low bound exceeds high bound"),this.start=c,this.end=d);this.length=this.end-this.start};g["tardis.SliceNonAbs"]=b.SliceNonAbs;b.SliceNonAbs.__name__=["tardis","SliceNonAbs"];b.SliceNonAbs.prototype={subSlice:function(a,c){-1==c&&(c=this.length);return new b.SliceNonAbs(this.baseArray,a+this.start,c+this.start)},getAt:function(a){(0>a||a>=this.end-this.start)&&b.Scheduler.panicFromHaxe("Slice index out of range for getAt()");return this.baseArray.addr(a+
this.start).load()},setAt:function(a,c){(0>a||a>=this.end-this.start)&&b.Scheduler.panicFromHaxe("Slice index out of range for setAt()");this.baseArray.addr(a+this.start).store(c)},len:function(){return this.length},cap:function(){return null==this.baseArray?0:p.Boot.__cast(this.baseArray.len(),H)-this.start},addr:function(a){(0>a||a>=this.end-this.start)&&b.Scheduler.panicFromHaxe("Slice index out of range for addr()");return this.baseArray.addr(a+this.start)},toString:function(){var a="Slice{"+
this.start+","+this.end+",[";if(null!=this.baseArray)for(var b=0,c=this.baseArray.len();b<c;){var e=b++;0!=e&&(a+=",");a+=k.string(this.baseArray.addr(e).load())}return a+"]}"},__class__:b.SliceNonAbs};b.Closure=function(a,c){p.Boot.__instanceof(a,b.Closure)?(n.isFunction(a.fn)||b.Scheduler.panicFromHaxe("invalid function reference passed to make Closure(): "+k.string(a.fn)),this.fn=a.fn):(n.isFunction(a)||b.Scheduler.panicFromHaxe("invalid function reference passed to make Closure(): "+k.string(a)),
this.fn=a);null==this.fn&&b.Scheduler.panicFromHaxe("new Closure() function has become null!");this.bds=c};g["tardis.Closure"]=b.Closure;b.Closure.__name__=["tardis","Closure"];b.Closure.prototype={toString:function(){return"Closure{"+k.string(this.fn)+","+k.string(this.bds.toString())+"}"},methVal:function(a,c){var d=b.Deep.copy(a);return this.fn.apply(null,[[],d,c])},callFn:function(a){null==this.fn&&b.Scheduler.panicFromHaxe("attempt to call null function reference in Closure()");n.isFunction(this.fn)||
b.Scheduler.panicFromHaxe("invalid function reference in Closure(): "+k.string(this.fn));return n.callMethod(null,this.fn,a)},__class__:b.Closure};b.Interface=function(a,b){this.typ=a;this.val=b};g["tardis.Interface"]=b.Interface;b.Interface.__name__=["tardis","Interface"];b.Interface.change=function(a,c){if(null==c)return b.TypeInfo.isConcrete(a)||b.Scheduler.panicFromHaxe("can't change the Interface of a nil value to Interface type: "+b.TypeInfo.getName(a)),new b.Interface(a,b.TypeInfo.zeroValue(a));
if(p.Boot.__instanceof(c,b.Interface))return b.TypeInfo.isConcrete(a)?new b.Interface(a,b.Deep.copy(c.val)):new b.Interface(c.typ,b.Deep.copy(c.val));b.Scheduler.panicFromHaxe("Can't change the Interface of a non-Interface type:"+k.string(c)+" to: "+b.TypeInfo.getName(a));return new b.Interface(a,b.TypeInfo.zeroValue(a))};b.Interface.isEqual=function(a,c){return null==a?null==c?!0:!1:null==c?!1:!b.TypeInfo.isIdentical(a.typ,c.typ)&&!b.TypeInfo.isAssignableTo(a.typ,c.typ)&&!b.TypeInfo.isAssignableTo(c.typ,
a.typ)?!1:a.val==c.val?!0:p.Boot.__instanceof(a.val,b.Pointer)&&p.Boot.__instanceof(c.val,b.Pointer)?a.val.load()==c.val.load():!1};b.Interface.assert=function(a,c){return null==c?(b.Scheduler.panicFromHaxe("Interface.assert null Interface"),null):!b.TypeInfo.isAssignableTo(c.typ,a)&&!b.TypeInfo.isIdentical(a,c.typ)?(b.Scheduler.panicFromHaxe("type assert failed: expected "+b.TypeInfo.getName(a)+", got "+b.TypeInfo.getName(c.typ)),null):b.TypeInfo.isConcrete(a)?b.Deep.copy(c.val):new b.Interface(c.typ,
c.val)};b.Interface.assertOk=function(a,c){return null==c||!b.TypeInfo.isAssignableTo(c.typ,a)&&!b.TypeInfo.isIdentical(a,c.typ)?{r0:b.TypeInfo.zeroValue(a),r1:!1}:b.TypeInfo.isConcrete(a)?{r0:b.Deep.copy(c.val),r1:!0}:{r0:new b.Interface(c.typ,c.val),r1:!0}};b.Interface.invoke=function(a,c,d){null==a&&b.Scheduler.panicFromHaxe("Interface.invoke null Interface");p.Boot.__instanceof(a,b.Interface)||b.Scheduler.panicFromHaxe("Interface.invoke on non-Interface value");return b.TypeInfo.method(a.typ,
c).apply(null,d)};b.Interface.prototype={toString:function(){return null==this.val?"Interface{nil:"+b.TypeInfo.getName(this.typ)+"}":"Interface{"+k.string(this.val)+":"+b.TypeInfo.getName(this.typ)+"}"},__class__:b.Interface};b.Channel=function(a){0>=a&&(a=1);this.entries=[];this.max_entries=a;this.num_entries=this.oldest_entry=0;this.closed=!1};g["tardis.Channel"]=b.Channel;b.Channel.__name__=["tardis","Channel"];b.Channel.prototype={hasSpace:function(){return this.closed?!1:this.num_entries<this.max_entries},
send:function(a){this.closed&&b.Scheduler.panicFromHaxe("attempt to send to closed channel");var c;return this.hasSpace()?(c=(this.oldest_entry+this.num_entries)%this.max_entries,this.num_entries++,this.entries[c]=b.Deep.copy(a),!0):!1},hasNoContents:function(){return this.closed?!1:0==this.num_entries},hasContents:function(){return this.closed?!0:0!=this.num_entries},receive:function(a){if(0<this.num_entries)return a=this.entries[this.oldest_entry],this.oldest_entry=(this.oldest_entry+1)%this.max_entries,
this.num_entries--,{r0:a,r1:!0};this.closed||b.Scheduler.panicFromHaxe("channel receive unreachable code!");return{r0:a,r1:!1}},len:function(){return this.num_entries},cap:function(){return this.max_entries},close:function(){this.closed=!0},__class__:b.Channel};b.Complex=function(a,b){this.real=a;this.imag=b};g["tardis.Complex"]=b.Complex;b.Complex.__name__=["tardis","Complex"];b.Complex.neg=function(a){return new b.Complex(0-a.real,0-a.imag)};b.Complex.add=function(a,c){return new b.Complex(a.real+
c.real,a.imag+c.imag)};b.Complex.sub=function(a,c){return new b.Complex(a.real-c.real,a.imag-c.imag)};b.Complex.mul=function(a,c){return new b.Complex(a.real*c.real-a.imag*c.imag,a.imag*c.real+a.real*c.imag)};b.Complex.div=function(a,c){return 0==c.real&&0==c.imag?(b.Scheduler.panicFromHaxe("complex divide by zero"),new b.Complex(0,0)):new b.Complex((a.real*c.real+a.imag*c.imag)/(c.real*c.real+c.imag*c.imag),(a.imag*c.real-a.real*c.imag)/(c.real*c.real+c.imag*c.imag))};b.Complex.eq=function(a,b){return a.real==
b.real&&a.imag==b.imag};b.Complex.neq=function(a,b){return a.real!=b.real||a.imag!=b.imag};b.Complex.prototype={__class__:b.Complex};b._Go.HaxeInt64abs_Impl_=function(){};g["tardis._Go.HaxeInt64abs_Impl_"]=b._Go.HaxeInt64abs_Impl_;b._Go.HaxeInt64abs_Impl_.__name__=["tardis","_Go","HaxeInt64abs_Impl_"];b._Go.HaxeInt64abs_Impl_._new=function(a){return a};b._Go.HaxeInt64abs_Impl_.toInt=function(a){return b.Int64.getLow(a)};b._Go.HaxeInt64abs_Impl_.ofInt=function(a){return new b.Int64(a>>31,a)};b._Go.HaxeInt64abs_Impl_.toFloat=
function(a){var c=!1;if(0>a.high){c=new b.Int64(-2147483648,0);if(0==b.Int64.compare(a,c))return-9223372036854775E3;c=!0;a=b.Int64.neg(a)}var d=0,e=1,f;f=new b.Int64(0,1);for(var g=0;63>g;){g++;var h=void 0,h=void 0,h=new b.Int64(a.high&f.high,a.low&f.low);(h=0==(h.high|h.low))||(d+=e);e*=2;a=b._Go.HaxeInt64abs_Impl_.ushr(a,1)}return c?-d:d};b._Go.HaxeInt64abs_Impl_.toUFloat=function(a){var c=0,d=1,e;e=new b.Int64(0,1);for(var f=0;64>f;){f++;var g=void 0,g=void 0,g=new b.Int64(a.high&e.high,a.low&
e.low);(g=0==(g.high|g.low))||(c+=d);d*=2;a=b._Go.HaxeInt64abs_Impl_.ushr(a,1)}return c};b._Go.HaxeInt64abs_Impl_.ofFloat=function(a){if(0==a)return new b.Int64(0,0);if(Math.isNaN(a))return new b.Int64(-2147483648,0);var c=!1;0>a&&(c=!0,a=-a);if(2147483647>a)return c?b.Int64.neg(b.Int64.ofInt(Math.ceil(a))):b.Int64.ofInt(Math.floor(a));if(9223372036854775E3<a)return c?new b.Int64(-2147483648,0):new b.Int64(2147483647,-1);var d=Math.floor(a/4294967296),e=Math.floor(a-4294967296*d),a=Math.floor(e/65536),
d=new b.Int64(d,Math.floor(e-65536*a)),d=b.Int64.or(d,b.Int64.shl(new b.Int64(0,a),16));return c?b.Int64.neg(d):d};b._Go.HaxeInt64abs_Impl_.ofUFloat=function(a){if(0>=a)return new b.Int64(0,0);if(Math.isNaN(a))return new b.Int64(-2147483648,0);if(2147483647>a){var c=Math.floor(a);return new b.Int64(c>>31,c)}if(1.8446744073709552E19<a)return new b.Int64(-1,-1);var c=Math.floor(a/4294967296),d=Math.floor(a-4294967296*c),a=Math.floor(d/65536),c=new b.Int64(c,Math.floor(d-65536*a));return c=b.Int64.or(c,
b.Int64.shl(new b.Int64(0,a),16))};b._Go.HaxeInt64abs_Impl_.make=function(a,c){return new b.Int64(a,c)};b._Go.HaxeInt64abs_Impl_.toString=function(a){return a.toString()};b._Go.HaxeInt64abs_Impl_.toStr=function(a){return a.toString()};b._Go.HaxeInt64abs_Impl_.neg=function(a){return b.Int64.neg(a)};b._Go.HaxeInt64abs_Impl_.isZero=function(a){return 0==(a.high|a.low)};b._Go.HaxeInt64abs_Impl_.isNeg=function(a){return 0>a.high};b._Go.HaxeInt64abs_Impl_.add=function(a,c){return b.Int64.add(a,c)};b._Go.HaxeInt64abs_Impl_.and=
function(a,c){return new b.Int64(a.high&c.high,a.low&c.low)};b._Go.HaxeInt64abs_Impl_.checkDiv=function(a,c,d){0==(c.high|c.low)&&b.Scheduler.panicFromHaxe("attempt to divide 64-bit value by 0");d&&(0==b.Int64.compare(c,new b.Int64(-1,-1))&&0==b.Int64.compare(a,new b.Int64(-2147483648,0)))&&(c=new b.Int64(0,1));return c};b._Go.HaxeInt64abs_Impl_.div=function(a,c,d){c=b._Go.HaxeInt64abs_Impl_.checkDiv(a,c,d);if(0==b.Int64.compare(c,new b.Int64(0,1)))return a;if(d||!(0>a.high)&&!(0>c.high))return b.Int64.div(a,
c);if(0>a.high){if(0>c.high)return 0>b.Int64.compare(a,c)?new b.Int64(0,0):new b.Int64(0,1);var d=new b.Int64(2147483647,-1),a=new b.Int64(a.high&d.high,a.low&d.low),e=new b.Int64(0,1),e=b.Int64.add(e,b.Int64.mod(d,c)),e=b.Int64.add(e,b.Int64.mod(a,c)),e=0<=b.Int64.ucompare(e,c)?new b.Int64(0,1):new b.Int64(0,0),d=b.Int64.div(d,c),a=b.Int64.div(a,c);return b.Int64.add(d,b.Int64.add(a,e))}return new b.Int64(0,0)};b._Go.HaxeInt64abs_Impl_.mod=function(a,c,d){c=b._Go.HaxeInt64abs_Impl_.checkDiv(a,c,
d);return 0==b.Int64.compare(c,new b.Int64(0,1))?new b.Int64(0,0):b.Int64.mod(a,c)};b._Go.HaxeInt64abs_Impl_.mul=function(a,c){return b.Int64.mul(a,c)};b._Go.HaxeInt64abs_Impl_.or=function(a,c){return new b.Int64(a.high|c.high,a.low|c.low)};b._Go.HaxeInt64abs_Impl_.shl=function(a,c){return 64==c?new b.Int64(0,0):0==(c&63)?a:32>(c&63)?new b.Int64(a.high<<c|a.low>>>(32-(c&63)|0),a.low<<c):new b.Int64(a.low<<(c-32|0),0)};b._Go.HaxeInt64abs_Impl_.shr=function(a,c){return 0==(c&63)?a:32>(c&63)?new b.Int64(a.high>>
c,a.low>>>c|a.high<<(32-(c&63)|0)):new b.Int64(a.high>>31,a.high>>(c-32|0))};b._Go.HaxeInt64abs_Impl_.ushr=function(a,c){return 0==(c&63)?a:32>(c&63)?new b.Int64(a.high>>>c,a.low>>>c|a.high<<(32-(c&63)|0)):new b.Int64(0,a.high>>>(c-32|0))};b._Go.HaxeInt64abs_Impl_.sub=function(a,c){return b.Int64.sub(a,c)};b._Go.HaxeInt64abs_Impl_.xor=function(a,c){return new b.Int64(a.high^c.high,a.low^c.low)};b._Go.HaxeInt64abs_Impl_.compare=function(a,c){return b.Int64.compare(a,c)};b._Go.HaxeInt64abs_Impl_.ucompare=
function(a,c){return b.Int64.ucompare(a,c)};b.Int64=function(a,b){this.high=a|0;this.low=b|0};g["tardis.Int64"]=b.Int64;b.Int64.__name__=["tardis","Int64"];b.Int64.ushr32=function(a,b){return a>>>b};b.Int64.make=function(a,c){return new b.Int64(a,c)};b.Int64.ofInt=function(a){return new b.Int64(a>>31,a)};b.Int64.toInt=function(a){if(0!=a.high){if(0>a.high)return-b.Int64.toInt(b.Int64.neg(a));throw"Overflow";}return a.low};b.Int64.getLow=function(a){return a.low};b.Int64.getHigh=function(a){return a.high};
b.Int64.add=function(a,c){var d=a.high+c.high|0,e=a.low+c.low|0;0>b.Int64.uicompare(e,a.low)&&d++;return new b.Int64(d,e)};b.Int64.sub=function(a,c){var d=a.high-c.high|0,e=a.low-c.low|0;0>b.Int64.uicompare(a.low,c.low)&&d--;return new b.Int64(d,e)};b.Int64.mul=function(a,c){var d=a.low&65535,e=a.low>>>16,f=c.low&65535,g=c.low>>>16,h=e*f,i=d*g,e=e*g+(i>>>16)+(h>>>16)|0,i=i<<16|0,d=d*f+i|0;0>b.Int64.uicompare(d,i)&&(e=e+1|0);h=h<<16|0;d=d+h|0;0>b.Int64.uicompare(d,h)&&(e=e+1|0);h=a.low;i=c.high;f=
a.high;g=c.low;return new b.Int64((e+((h*(i>>>16)<<16|0)+h*(i&65535)|0)|0)+((f*(g>>>16)<<16|0)+f*(g&65535)|0)|0,d)};b.Int64.divMod=function(a,c){for(var d=new b.Int64(0,0),e=0,f=1,c=new b.Int64(c.high,c.low);0<=c.high;){var g=b.Int64.ucompare(c,a);c.high=c.high<<1|0|c.low>>>31|0;c.low=c.low<<1|0;e=e<<1|0|f>>>31|0;f=f<<1|0;if(0<=g)break}for(;0!=(f|e|0);)0<=b.Int64.ucompare(a,c)&&(d.high=d.high|e|0,d.low=d.low|f|0,a=b.Int64.sub(a,c)),f=f>>>1|(e<<31|0)|0,e>>>=1,c.low=c.low>>>1|(c.high<<31|0)|0,c.high>>>=
1;return{quotient:d,modulus:a}};b.Int64.div=function(a,c){if(0==c.high)switch(c.low){case 0:throw"divide by zero";case 1:return new b.Int64(a.high,a.low)}var d=(0>a.high||0>c.high)&&!(0>a.high&&0>c.high);0>a.high&&(a=b.Int64.neg(a));0>c.high&&(c=b.Int64.neg(c));var e=b.Int64.divMod(a,c).quotient;return d?b.Int64.neg(e):e};b.Int64.mod=function(a,c){if(0==c.high)switch(c.low){case 0:throw"modulus by zero";case 1:return new b.Int64(0,0)}var d=0>a.high;0>a.high&&(a=b.Int64.neg(a));0>c.high&&(c=b.Int64.neg(c));
var e=b.Int64.divMod(a,c).modulus;return d?b.Int64.neg(e):e};b.Int64.shl=function(a,c){return 0==(c&63)?a:32>(c&63)?new b.Int64(a.high<<c|a.low>>>(32-(c&63)|0),a.low<<c):new b.Int64(a.low<<(c-32|0),0)};b.Int64.shr=function(a,c){return 0==(c&63)?a:32>(c&63)?new b.Int64(a.high>>c,a.low>>>c|a.high<<(32-(c&63)|0)):new b.Int64(a.high>>31,a.high>>(c-32|0))};b.Int64.ushr=function(a,c){return 0==(c&63)?a:32>(c&63)?new b.Int64(a.high>>>c,a.low>>>c|a.high<<(32-(c&63)|0)):new b.Int64(0,a.high>>>(c-32|0))};b.Int64.and=
function(a,c){return new b.Int64(a.high&c.high,a.low&c.low)};b.Int64.or=function(a,c){return new b.Int64(a.high|c.high,a.low|c.low)};b.Int64.xor=function(a,c){return new b.Int64(a.high^c.high,a.low^c.low)};b.Int64.neg=function(a){var c=~a.high|0,a=-a.low|0;0==a&&c++;return new b.Int64(c,a)};b.Int64.isNeg=function(a){return 0>a.high};b.Int64.isZero=function(a){return 0==(a.high|a.low)};b.Int64.uicompare=function(a,b){return 0>a?0>b?~b-~a|0:1:0>b?-1:a-b|0};b.Int64.compare=function(a,c){var d=a.high-
c.high|0;return 0!=d?d:b.Int64.uicompare(a.low,c.low)};b.Int64.ucompare=function(a,c){var d=b.Int64.uicompare(a.high,c.high);return 0!=d?d:b.Int64.uicompare(a.low,c.low)};b.Int64.toStr=function(a){return a.toString()};b.Int64.prototype={toString:function(){if(0==(this.high|this.low))return"0";var a="",c=!1,d=this;0>d.high&&(c=!0,d=b.Int64.neg(d));for(var e=new b.Int64(0,10);0!=(d.high|d.low);)d=b.Int64.divMod(d,e),a=d.modulus.low+a,d=d.quotient;c&&(a="-"+a);return a},__class__:b.Int64};b.StackFrameBasis=
function(a,b,c){this._latestPH=this._latestBlock=0;this._incomplete=!0;this._goroutine=a;this._functionPH=b;this._functionName=c;this._deferStack=new w};g["tardis.StackFrameBasis"]=b.StackFrameBasis;b.StackFrameBasis.__name__=["tardis","StackFrameBasis"];b.StackFrameBasis.prototype={setLatest:function(a,b){this.setPH(a);this._latestBlock=b},setPH:function(a){this._latestPH=a},defer:function(a){this._deferStack.add(a)},runDefers:function(){for(;!this._deferStack.isEmpty();)b.Scheduler.push(this._goroutine,
this._deferStack.pop())},__class__:b.StackFrameBasis};b.StackFrame=function(){};g["tardis.StackFrame"]=b.StackFrame;b.StackFrame.__name__=["tardis","StackFrame"];b.StackFrame.prototype={__class__:b.StackFrame};b.Scheduler=function(){};g["tardis.Scheduler"]=b.Scheduler;b.Scheduler.__name__=["tardis","Scheduler"];b.Scheduler.timerEventHandler=function(){b.Scheduler.runAll()};b.Scheduler.runAll=function(){b.Scheduler.entryCount++;if(2<b.Scheduler.entryCount)throw"Scheduler.runAll() entryCount exceeded - "+
b.Scheduler.stackDump();if(b.Scheduler.grStacks[0].isEmpty()){if(1>=b.Scheduler.grStacks.length)throw"Scheduler: there is only one goroutine and its stack is empty\n"+b.Scheduler.stackDump();}else b.Scheduler.runOne(0,b.Scheduler.entryCount);if(b.Scheduler.doneInit&&1==b.Scheduler.entryCount){for(var a=1,c=b.Scheduler.grStacks.length;a<c;){var d=a++;b.Scheduler.grStacks[d].isEmpty()||b.Scheduler.runOne(d,b.Scheduler.entryCount)}for(;1<b.Scheduler.grStacks.length;)if(b.Scheduler.grStacks[b.Scheduler.grStacks.length-
1].isEmpty())b.Scheduler.grStacks.pop();else break}b.Scheduler.entryCount--};b.Scheduler.runOne=function(a,c){if(b.Scheduler.grInPanic[a])if(1!=c){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}else for(;b.Scheduler.grInPanic[a];){if(b.Scheduler.grStacks[a].isEmpty())throw"Panic in goroutine "+a+"\n"+b.Scheduler.panicStackDump;
for(var d=b.Scheduler.grStacks[a].pop();!d._deferStack.isEmpty();){var e=d._deferStack.pop();for(b.Scheduler.push(a,e);e._incomplete;)b.Scheduler.runAll()}}else{if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Scheduler.run1=function(a){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+
"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()};b.Scheduler.makeGoroutine=function(){for(var a=0,c=b.Scheduler.grStacks.length;a<c;){var d=a++;if(b.Scheduler.grStacks[d].isEmpty())return b.Scheduler.grInPanic[d]=!1,b.Scheduler.grPanicMsg[d]=null,d}a=b.Scheduler.grStacks.length;b.Scheduler.grStacks[a]=new w;b.Scheduler.grInPanic[a]=!1;b.Scheduler.grPanicMsg[a]=null;return a};b.Scheduler.pop=function(a){if(a>=
b.Scheduler.grStacks.length||0>a)throw"Scheduler.pop() invalid goroutine";return b.Scheduler.grStacks[a].pop()};b.Scheduler.push=function(a,c){if(a>=b.Scheduler.grStacks.length||0>a)throw"Scheduler.push() invalid goroutine";b.Scheduler.grStacks[a].push(c)};b.Scheduler.NumGoroutine=function(){return b.Scheduler.grStacks.length};b.Scheduler.stackDump=function(){var a;a=""+("runAll() entryCount="+b.Scheduler.entryCount+"\n");for(var c=0,d=b.Scheduler.grStacks.length;c<d;){var e=c++;a+="Goroutine "+e+
" "+k.string(b.Scheduler.grPanicMsg[e])+"\n";if(b.Scheduler.grStacks[e].isEmpty())a+="Stack is empty\n";else{a+="Stack has "+b.Scheduler.grStacks[e].length+" entries:\n";for(e=b.Scheduler.grStacks[e].iterator();e.hasNext();){var f=e.next();null==f?a+="\tStack entry is null\n":(a+="\t"+f._functionName+" starting at "+b.Go.CPos(f._functionPH),a+=" latest position "+b.Go.CPos(f._latestPH),a+=" latest block "+f._latestBlock+"\n")}}}return a};b.Scheduler.traceStackDump=function(){h.Log.trace(b.Scheduler.stackDump(),
{fileName:"Go.hx",lineNumber:1621,className:"tardis.Scheduler",methodName:"traceStackDump"})};b.Scheduler.panic=function(a,c){if(a>=b.Scheduler.grStacks.length||0>a)throw"Scheduler.panic() invalid goroutine";b.Scheduler.grInPanic[a]||(b.Scheduler.grInPanic[a]=!0,b.Scheduler.grPanicMsg[a]=c,b.Scheduler.panicStackDump=b.Scheduler.stackDump())};b.Scheduler.recover=function(a){if(a>=b.Scheduler.grStacks.length||0>a)throw"Scheduler.recover() invalid goroutine";b.Scheduler.grInPanic[a]=!1;return b.Scheduler.grPanicMsg[a]};
b.Scheduler.panicFromHaxe=function(a){b.Scheduler.currentGR>=b.Scheduler.grStacks.length||0>b.Scheduler.currentGR?b.Scheduler.panic(0,new b.Interface(b.TypeInfo.getId("string"),"Runtime panic, unknown goroutine, "+a+" ")):b.Scheduler.panic(b.Scheduler.currentGR,new b.Interface(b.TypeInfo.getId("string"),"Runtime panic, "+a+" "));throw b.Scheduler.panicStackDump;};b.Scheduler.bbi=function(){b.Scheduler.panicFromHaxe("bad block ID (internal phi error)")};b.Scheduler.ioor=function(){b.Scheduler.panicFromHaxe("index out of range")};
b.Scheduler.wraprangechk=function(a,c){(0>a||a>=c)&&b.Scheduler.ioor()};b.Scheduler.wrapnilchk=function(a){null==a&&b.Scheduler.panicFromHaxe("unexpected nil pointer (ssa:wrapnilchk)");return a};b.Go_main_Start=r.Go_main_Start=function(a,c,d){this._Next=0;this._t0=this._t1=this._t2=this._t3=this._t4=this._t5=this._t6=this._t7=this._t8=this._t9=this._t10=this._t12=this._t15=this._t17=this._t19=this._t20=this._t21=this._t22=this._t23=this._t24=this._t25=this._t26=this._t27=this._t28=this._t30=this._t31=
this._t32=this._t33=this._t34=this._t35=this._t36=this._t37=this._t38=null;b.StackFrameBasis.call(this,a,162,"Go_main_Start");this._bds=c;this.p_mt=d;b.Scheduler.push(a,this)};g["tardis.Go_main_Start"]=b.Go_main_Start;b.Go_main_Start.__name__=["tardis","Go_main_Start"];b.Go_main_Start.__interfaces__=[b.StackFrame];b.Go_main_Start.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_main_Start(0,null,a)).run();a._incomplete;)b.Scheduler.runAll()};b.Go_main_Start.callFromRT=function(a,
c){for(var d=(new b.Go_main_Start(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_main_Start.call=function(a,c,d){return new b.Go_main_Start(a,c,d)};b.Go_main_Start.__super__=b.StackFrameBasis;b.Go_main_Start.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return b.Go.main_mainThis.store(this.p_mt),
this._SF1=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/emptypile.png"),this._Next=-1,this;case -1:return this._t0=this._SF1.res(),b.Go.main_emptyPilePng.store(this._t0),this._SF2=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/smallpile.png"),this._Next=-2,this;case -2:return this._t1=this._SF2.res(),b.Go.main_smallPilePng.store(this._t1),this._SF3=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/pick.png"),this._Next=-3,this;case -3:return this._t2=this._SF3.res(),b.Go.main_pickPng1.store(this._t2),
this._SF4=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/pick.png"),this._Next=-4,this;case -4:return this._t3=this._SF4.res(),b.Go.main_pickPng2.store(this._t3),this._SF5=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/full.png"),this._Next=-5,this;case -5:return this._t4=this._SF5.res(),b.Go.main_fullPng1.store(this._t4),this._SF6=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/full.png"),this._Next=-6,this;case -6:return this._t5=this._SF6.res(),b.Go.main_fullPng2.store(this._t5),
this._SF7=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/empty.png"),this._Next=-7,this;case -7:return this._t6=this._SF7.res(),b.Go.main_emptyPng1.store(this._t6),this._SF8=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/empty.png"),this._Next=-8,this;case -8:return this._t7=this._SF8.res(),b.Go.main_emptyPng2.store(this._t7),this._SF9=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/shovel.png"),this._Next=-9,this;case -9:return this._t8=this._SF9.res(),b.Go.main_shovelPng1.store(this._t8),
this._SF10=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/shovel.png"),this._Next=-10,this;case -10:return this._t9=this._SF10.res(),b.Go.main_shovelPng2.store(this._t9),this._SF11=new b._Go.Go_main_makeText(this._goroutine,[],!1,200,10,500,50,32768,""),this._Next=-11,this;case -11:return this._t10=this._SF11.res(),b.Go.main_headline.store(this._t10),new b._Go.Go_main_makeText(this._goroutine,[],!1,10,140,180,200,32768,"Both animated gophers are \nrunning the code on the right.\nThe 2 logos show where they\neach are in that code now.\nGo uses the tardsigolib/hx\npackage to call Haxe."),
this._Next=-12,this;case -12:return this._SF13=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/function.png"),this._Next=-13,this;case -13:return this._t12=this._SF13.res(),new b._Go.Go_main_makeSprite(this._goroutine,[],this._t12,200,110),this._Next=-14,this;case -14:return new b._Go.Go_main_makeText(this._goroutine,[],!0,590,140,200,200,32768,'Inspired by Rob Pike:\n"Concurrency is not Parallelism"\nhttp://blog.golang.org/\nconcurrency-is-not-parallelism\n\n- Gopher by Renee French'),this._Next=
-15,this;case -15:return this._SF16=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/bigpile.png"),this._Next=-16,this;case -16:return this._t15=this._SF16.res(),new b._Go.Go_main_makeSprite(this._goroutine,[],this._t15,10,20),this._Next=-17,this;case -17:return this._SF18=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/oven.png"),this._Next=-18,this;case -18:return this._t17=this._SF18.res(),new b._Go.Go_main_makeSprite(this._goroutine,[],this._t17,690,0),this._Next=-19,this;case -19:return this._t19=
b.Go.main_emptyPilePng.heapObj,this._SF20=new b._Go.Go_main_makeSprite(this._goroutine,[],this._t19,390,50),this._Next=-20,this;case -20:return this._t20=this._SF20.res(),b.Go.main_Books.store(this._t20),this._SF21=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/gophercolor16x16.png"),this._Next=-21,this;case -21:return this._t21=this._SF21.res(),this._SF22=new b._Go.Go_main_makeSprite(this._goroutine,[],this._t21,230,140),this._Next=-22,this;case -22:return this._t22=this._SF22.res(),b.Go.main_Logo1.store(this._t22),
this._SF23=new b._Go.Go_main_makeBitmap(this._goroutine,[],"assets/gophercolor16x16flipped.png"),this._Next=-23,this;case -23:return this._t23=this._SF23.res(),this._SF24=new b._Go.Go_main_makeSprite(this._goroutine,[],this._t23,540,140),this._Next=-24,this;case -24:return this._t24=this._SF24.res(),b.Go.main_Logo2.store(this._t24),this._t25=b.Go.main_pickPng1.heapObj,this._SF25=new b._Go.Go_main_makeSprite(this._goroutine,[],this._t25,90,45),this._Next=-25,this;case -25:return this._t26=this._SF25.res(),
b.Go.main_Sprite1.store(this._t26),this._t27=b.Go.main_pickPng2.heapObj,this._SF26=new b._Go.Go_main_makeSprite(this._goroutine,[],this._t27,420,45),this._Next=-26,this;case -26:return this._t28=this._SF26.res(),b.Go.main_Sprite2.store(this._t28),new b._Go.Go_main_startGophers(this._goroutine,[]),this._Next=-27,this;case -27:b._Go.Go_main_monitor.call(b.Scheduler.makeGoroutine(),[]);this._t30=b.Go.main_mainThis.heapObj;this._t31=c.events.Event.ENTER_FRAME;this._t32=b.Scheduler.timerEventHandler;this.SubFn19();
var a=this._t38;n.callMethod(this._t30,n.field(this._t30,"addEventListener"),[a.getAt(0).val,a.getAt(1).val]);this._incomplete=!1;b.Scheduler.pop(this._goroutine);return this;default:b.Scheduler.bbi()}},SubFn0:function(){b.Go.main_mainThis.store(this.p_mt)},SubFn1:function(){b.Go.main_emptyPilePng.store(this._t0)},SubFn2:function(){b.Go.main_smallPilePng.store(this._t1)},SubFn3:function(){b.Go.main_pickPng1.store(this._t2)},SubFn4:function(){b.Go.main_pickPng2.store(this._t3)},SubFn5:function(){b.Go.main_fullPng1.store(this._t4)},
SubFn6:function(){b.Go.main_fullPng2.store(this._t5)},SubFn7:function(){b.Go.main_emptyPng1.store(this._t6)},SubFn8:function(){b.Go.main_emptyPng2.store(this._t7)},SubFn9:function(){b.Go.main_shovelPng1.store(this._t8)},SubFn10:function(){b.Go.main_shovelPng2.store(this._t9)},SubFn11:function(){b.Go.main_headline.store(this._t10)},SubFn12:function(){this._t19=b.Go.main_emptyPilePng.heapObj},SubFn13:function(){b.Go.main_Books.store(this._t20)},SubFn14:function(){b.Go.main_Logo1.store(this._t22)},SubFn15:function(){b.Go.main_Logo2.store(this._t24);
this._t25=b.Go.main_pickPng1.heapObj},SubFn16:function(){b.Go.main_Sprite1.store(this._t26);this._t27=b.Go.main_pickPng2.heapObj},SubFn17:function(){b.Go.main_Sprite2.store(this._t28)},SubFn18:function(){b._Go.Go_main_monitor.call(b.Scheduler.makeGoroutine(),[]);this._t30=b.Go.main_mainThis.heapObj},SubFn19:function(){var a,c,d;a=new b.Pointer((new b.Make).array(null,2));c=a.addr(0);d=new b.Interface(0,this._t31);c.store(d);c=a.addr(1);d=new b.Interface(0,this._t32);c.store(d);this._t38=new b.SliceNonAbs(a,
0,-1)},__class__:b.Go_main_Start});b._Go.Go_main_gopher=function(a,c,d,e,f,g,h){this._t0=this._Next=0;b.StackFrameBasis.call(this,a,64,"Go_main_gopher");this._bds=c;this.p_x=d;this.p_y=e;this.p_state=f;this.p_in=g;this.p_out=h;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_gopher"]=b._Go.Go_main_gopher;b._Go.Go_main_gopher.__name__=["tardis","_Go","Go_main_gopher"];b._Go.Go_main_gopher.__interfaces__=[b.StackFrame];b._Go.Go_main_gopher.callFromHaxe=function(a,c,d,e,f){b.Go.doneInit||b.Go.init();
for(a=(new b._Go.Go_main_gopher(0,null,a,c,d,e,f)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_gopher.callFromRT=function(a,c,d,e,f,g){for(c=(new b._Go.Go_main_gopher(a,null,c,d,e,f,g)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_gopher.call=function(a,c,d,e,f,g,h){return new b._Go.Go_main_gopher(a,
c,d,e,f,g,h)};b._Go.Go_main_gopher.__super__=b.StackFrameBasis;b._Go.Go_main_gopher.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this._Next=1;break;case 1:return this._SF1=new b._Go.Go_main_pickBooks(this._goroutine,[],this.p_x,this.p_y,this.p_state,this.p_in),this._Next=-1,this;case -1:return this._t0=this._SF1.res(),new b._Go.Go_main_pushBooks(this._goroutine,[],this.p_x,this.p_y,this.p_state,this._t0),this._Next=-2,this;case -2:return new b._Go.Go_main_fireBooks(this._goroutine,
[],this.p_x,this.p_y,this.p_state,this._t0,this.p_out),this._Next=-3,this;case -3:return new b._Go.Go_main_moreBooks(this._goroutine,[],this.p_x,this.p_y,this.p_state),this._Next=-4,this;case -4:this._Next=1;break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=1},SubFn1:function(){this._Next=1},__class__:b._Go.Go_main_gopher});b._Go.Go_main_pickBooks=function(a,c,d,e,f,g){this._t0=this._Next=0;b.StackFrameBasis.call(this,a,73,"Go_main_pickBooks");this._bds=c;this.p_x=d;this.p_y=e;this.p_state=
f;this.p_in=g;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_pickBooks"]=b._Go.Go_main_pickBooks;b._Go.Go_main_pickBooks.__name__=["tardis","_Go","Go_main_pickBooks"];b._Go.Go_main_pickBooks.__interfaces__=[b.StackFrame];b._Go.Go_main_pickBooks.callFromHaxe=function(a,c,d,e){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_pickBooks(0,null,a,c,d,e)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b._Go.Go_main_pickBooks.callFromRT=function(a,c,d,e,f){for(c=(new b._Go.Go_main_pickBooks(a,
null,c,d,e,f)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b._Go.Go_main_pickBooks.call=function(a,c,d,e,f,g){return new b._Go.Go_main_pickBooks(a,c,d,e,f,g)};b._Go.Go_main_pickBooks.__super__=b.StackFrameBasis;b._Go.Go_main_pickBooks.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},
run:function(){for(;;)switch(this._Next){case 0:return this.p_state.store(0),this.p_x.store(0),this._Next=-1,this;case -1:if(this.p_in.hasNoContents())return this;this._t0=this.p_in.receive(0).r0;new b._Go.Go_main_loop(this._goroutine,[],this._t0);this._Next=-2;return this;case -2:return this._res=this._t0,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this.p_state.store(0);this.p_x.store(0)},__class__:b._Go.Go_main_pickBooks});b._Go.Go_utf8_init=
function(a,c){this._Next=0;this._t0=!1;b.StackFrameBasis.call(this,a,75,"Go_utf8_init");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_utf8_init"]=b._Go.Go_utf8_init;b._Go.Go_utf8_init.__name__=["tardis","_Go","Go_utf8_init"];b._Go.Go_utf8_init.__interfaces__=[b.StackFrame];b._Go.Go_utf8_init.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_utf8_init(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_utf8_init.callFromRT=function(a){for(var c=(new b._Go.Go_utf8_init(a,
null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_utf8_init.call=function(a,c){return new b._Go.Go_utf8_init(a,c)};b._Go.Go_utf8_init.__super__=b.StackFrameBasis;b._Go.Go_utf8_init.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();
break;case 1:b.Go.utf8_init_36_guard.heapObj=!0;this._Next=2;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=b.Go.utf8_init_36_guard.heapObj?2:1},SubFn1:function(){b.Go.utf8_init_36_guard.heapObj=!0;this._Next=2},__class__:b._Go.Go_utf8_init});b.Go_utf16_DecodeRune=r.Go_utf16_DecodeRune=function(a,c,d,e){this._Next=0;this._t6=this._t7=this._t8=!1;this._t1=this._t2=this._t3=this._t4=this._t5=0;this._t0=!1;b.StackFrameBasis.call(this,
a,489,"Go_utf16_DecodeRune");this._bds=c;this.p_r1=d;this.p_r2=e;b.Scheduler.push(a,this)};g["tardis.Go_utf16_DecodeRune"]=b.Go_utf16_DecodeRune;b.Go_utf16_DecodeRune.__name__=["tardis","Go_utf16_DecodeRune"];b.Go_utf16_DecodeRune.__interfaces__=[b.StackFrame];b.Go_utf16_DecodeRune.callFromHaxe=function(a,c){b.Go.doneInit||b.Go.init();for(var d=(new b.Go_utf16_DecodeRune(0,null,a,c)).run();d._incomplete;)b.Scheduler.runAll();return d._res};b.Go_utf16_DecodeRune.callFromRT=function(a,c,d){for(c=(new b.Go_utf16_DecodeRune(a,
null,c,d)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b.Go_utf16_DecodeRune.call=function(a,c,d,e){return new b.Go_utf16_DecodeRune(a,c,d,e)};b.Go_utf16_DecodeRune.__super__=b.StackFrameBasis;b.Go_utf16_DecodeRune.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},
run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:return this.SubFn1(),this._res=this._t5,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 2:return this._res=65533,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this.SubFn2();break;case 4:this.SubFn3();break;case 5:this.SubFn4();break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=55296<=this.p_r1?5:2},SubFn1:function(){var a,c;a=b.Force.toInt32(this.p_r1-55296);c=new b.Int64(0,10);
c=b.Int64.getLow(c);a=0==c?a:a<<c;c=b.Force.toInt32(this.p_r2-56320);a=b.Force.toInt32(a|c);this._t5=b.Force.toInt32(a+65536)},SubFn2:function(){this._Next=57344>this.p_r2?1:2},SubFn3:function(){this._Next=56320<=this.p_r2?3:2},SubFn4:function(){this._Next=56320>this.p_r1?4:2},__class__:b.Go_utf16_DecodeRune});b._Go.Go_hx_init=function(a,c){this._Next=0;this._t0=!1;b.StackFrameBasis.call(this,a,490,"Go_hx_init");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_hx_init"]=b._Go.Go_hx_init;b._Go.Go_hx_init.__name__=
["tardis","_Go","Go_hx_init"];b._Go.Go_hx_init.__interfaces__=[b.StackFrame];b._Go.Go_hx_init.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_hx_init(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_hx_init.callFromRT=function(a){for(var c=(new b._Go.Go_hx_init(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=
a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_hx_init.call=function(a,c){return new b._Go.Go_hx_init(a,c)};b._Go.Go_hx_init.__super__=b.StackFrameBasis;b._Go.Go_hx_init.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:b.Go.hx_init_36_guard.heapObj=!0;this._Next=2;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=b.Go.hx_init_36_guard.heapObj?
2:1},SubFn1:function(){b.Go.hx_init_36_guard.heapObj=!0;this._Next=2},__class__:b._Go.Go_hx_init});b.Go_hx_CodeDynamic=r.Go_hx_CodeDynamic=function(a,c,d,e){this._Next=0;b.StackFrameBasis.call(this,a,1077,"Go_hx_CodeDynamic");this._bds=c;this.p_code=d;this.p_args=e;b.Scheduler.push(a,this)};g["tardis.Go_hx_CodeDynamic"]=b.Go_hx_CodeDynamic;b.Go_hx_CodeDynamic.__name__=["tardis","Go_hx_CodeDynamic"];b.Go_hx_CodeDynamic.__interfaces__=[b.StackFrame];b.Go_hx_CodeDynamic.callFromHaxe=function(a,c){b.Go.doneInit||
b.Go.init();for(var d=(new b.Go_hx_CodeDynamic(0,null,a,c)).run();d._incomplete;)b.Scheduler.runAll();return d._res};b.Go_hx_CodeDynamic.callFromRT=function(a,c,d){for(c=(new b.Go_hx_CodeDynamic(a,null,c,d)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b.Go_hx_CodeDynamic.call=function(a,
c,d,e){return new b.Go_hx_CodeDynamic(a,c,d,e)};b.Go_hx_CodeDynamic.__super__=b.StackFrameBasis;b.Go_hx_CodeDynamic.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._res=0,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_CodeDynamic});b._Go.Go_main_loop=function(a,c,d){this._Phi=this._Next=0;this._t3=!1;this._t0=this._t2=0;b.StackFrameBasis.call(this,a,116,"Go_main_loop");
this._bds=c;this.p_n=d;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_loop"]=b._Go.Go_main_loop;b._Go.Go_main_loop.__name__=["tardis","_Go","Go_main_loop"];b._Go.Go_main_loop.__interfaces__=[b.StackFrame];b._Go.Go_main_loop.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_loop(0,null,a)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_loop.callFromRT=function(a,c){for(var d=(new b._Go.Go_main_loop(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_loop.call=function(a,c,d){return new b._Go.Go_main_loop(a,c,d)};b._Go.Go_main_loop.__super__=b.StackFrameBasis;b._Go.Go_main_loop.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this._Next=3;this._Phi=0;break;case 1:return this._t0=b.Force.toInt32(this._t2-
1),new b.Go_tardisgolib_Gosched(this._goroutine,[]),this._Next=-1,this;case -1:this._Next=3;this._Phi=1;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this._t2=0==this._Phi?this.p_n:1==this._Phi?this._t0:0;this.SubFn3();this._Phi=3;break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=3},SubFn1:function(){this._t0=b.Force.toInt32(this._t2-1)},SubFn2:function(){this._Next=3},SubFn3:function(){this._Next=0<this._t2?1:2},__class__:b._Go.Go_main_loop});b._Go.Go_haxegoruntime_init_36_1=
function(a,c){this._Next=0;this._t11=null;b.StackFrameBasis.call(this,a,319,"Go_haxegoruntime_init_36_1");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_haxegoruntime_init_36_1"]=b._Go.Go_haxegoruntime_init_36_1;b._Go.Go_haxegoruntime_init_36_1.__name__=["tardis","_Go","Go_haxegoruntime_init_36_1"];b._Go.Go_haxegoruntime_init_36_1.__interfaces__=[b.StackFrame];b._Go.Go_haxegoruntime_init_36_1.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_haxegoruntime_init_36_1(0,
null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_haxegoruntime_init_36_1.callFromRT=function(a){for(var c=(new b._Go.Go_haxegoruntime_init_36_1(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_haxegoruntime_init_36_1.call=function(a,c){return new b._Go.Go_haxegoruntime_init_36_1(a,
c)};b._Go.Go_haxegoruntime_init_36_1.__super__=b.StackFrameBasis;b._Go.Go_haxegoruntime_init_36_1.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return new b.Go_haxegoruntime_UTF16toRunes(this._goroutine,[],null),this._Next=-1,this;case -1:return new b.Go_haxegoruntime_UTF8toRunes(this._goroutine,[],null),this._Next=-2,this;case -2:return new b.Go_haxegoruntime_Raw2Runes(this._goroutine,[],null),this._Next=-3,this;case -3:return new b.Go_haxegoruntime_RunesToUTF16(this._goroutine,
[],null),this._Next=-4,this;case -4:return new b.Go_haxegoruntime_RunesToUTF8(this._goroutine,[],null),this._Next=-5,this;case -5:return new b.Go_haxegoruntime_Runes2Raw(this._goroutine,[],null),this._Next=-6,this;case -6:return new b.Go_haxegoruntime_Rune2Raw(this._goroutine,[],42),this._Next=-7,this;case -7:return new b.Go_haxegoruntime_StringCompare(this._goroutine,[],"X","Y"),this._Next=-8,this;case -8:return new b.Go_utf16_Decode(this._goroutine,[],null),this._Next=-9,this;case -9:return new b.Go_utf8_RuneCount(this._goroutine,
[],null),this._Next=-10,this;case -10:return this._SF11=new b.Go_utf8_DecodeRune(this._goroutine,[],null),this._Next=-11,this;case -11:return this._t11=this._SF11.res(),new b.Go_utf16_Encode(this._goroutine,[],null),this._Next=-12,this;case -12:return new b.Go_utf8_RuneLen(this._goroutine,[],42),this._Next=-13,this;case -13:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){},SubFn1:function(){},__class__:b._Go.Go_haxegoruntime_init_36_1});
b._Go.Go_tardisgolib_init=function(a,c){this._Next=0;this._t0=!1;b.StackFrameBasis.call(this,a,334,"Go_tardisgolib_init");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_tardisgolib_init"]=b._Go.Go_tardisgolib_init;b._Go.Go_tardisgolib_init.__name__=["tardis","_Go","Go_tardisgolib_init"];b._Go.Go_tardisgolib_init.__interfaces__=[b.StackFrame];b._Go.Go_tardisgolib_init.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_tardisgolib_init(0,null)).run();a._incomplete;)b.Scheduler.runAll()};
b._Go.Go_tardisgolib_init.callFromRT=function(a){for(var c=(new b._Go.Go_tardisgolib_init(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_tardisgolib_init.call=function(a,c){return new b._Go.Go_tardisgolib_init(a,c)};b._Go.Go_tardisgolib_init.__super__=b.StackFrameBasis;b._Go.Go_tardisgolib_init.prototype=
m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:b.Go.tardisgolib_init_36_guard.heapObj=!0;this._Next=2;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=b.Go.tardisgolib_init_36_guard.heapObj?2:1},SubFn1:function(){b.Go.tardisgolib_init_36_guard.heapObj=!0},SubFn2:function(){this._Next=2},__class__:b._Go.Go_tardisgolib_init});b.Go_hx_GetString=
r.Go_hx_GetString=function(a,c,d){this._Next=0;b.StackFrameBasis.call(this,a,1107,"Go_hx_GetString");this._bds=c;this.p_name=d;b.Scheduler.push(a,this)};g["tardis.Go_hx_GetString"]=b.Go_hx_GetString;b.Go_hx_GetString.__name__=["tardis","Go_hx_GetString"];b.Go_hx_GetString.__interfaces__=[b.StackFrame];b.Go_hx_GetString.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_GetString(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_hx_GetString.callFromRT=function(a,
c){for(var d=(new b.Go_hx_GetString(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_hx_GetString.call=function(a,c,d){return new b.Go_hx_GetString(a,c,d)};b.Go_hx_GetString.__super__=b.StackFrameBasis;b.Go_hx_GetString.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},
run:function(){for(;;)switch(this._Next){case 0:return this._res="",this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_GetString});b.Go_utf16_IsSurrogate=r.Go_utf16_IsSurrogate=function(a,c,d){this._Phi=this._Next=0;this._t0=this._t1=this._t2=!1;b.StackFrameBasis.call(this,a,482,"Go_utf16_IsSurrogate");this._bds=c;this.p_r=d;b.Scheduler.push(a,this)};g["tardis.Go_utf16_IsSurrogate"]=b.Go_utf16_IsSurrogate;b.Go_utf16_IsSurrogate.__name__=["tardis",
"Go_utf16_IsSurrogate"];b.Go_utf16_IsSurrogate.__interfaces__=[b.StackFrame];b.Go_utf16_IsSurrogate.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf16_IsSurrogate(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_utf16_IsSurrogate.callFromRT=function(a,c){for(var d=(new b.Go_utf16_IsSurrogate(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+
a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_utf16_IsSurrogate.call=function(a,c,d){return new b.Go_utf16_IsSurrogate(a,c,d)};b.Go_utf16_IsSurrogate.__super__=b.StackFrameBasis;b.Go_utf16_IsSurrogate.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();this._Phi=0;break;case 1:this._t1=57344>this.p_r;this._Next=2;this._Phi=1;break;case 2:return this._res=
this._t2=0==this._Phi?!1:1==this._Phi?this._t1:!1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=55296<=this.p_r?1:2},SubFn1:function(){this._t1=57344>this.p_r;this._Next=2},__class__:b.Go_utf16_IsSurrogate});b.Go_haxegoruntime_RunesToUTF8=r.Go_haxegoruntime_RunesToUTF8=function(a,c,d){this._Phi=this._Next=0;this._t13=null;this._t11=0;this._t9=this._t10=null;this._t7=this._t8=0;this._t6=null;this._t5=!1;this._t3=this._t4=0;this._t2=
null;this._t1=0;this._t0=null;b.StackFrameBasis.call(this,a,389,"Go_haxegoruntime_RunesToUTF8");this._bds=c;this.p_r=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_RunesToUTF8"]=b.Go_haxegoruntime_RunesToUTF8;b.Go_haxegoruntime_RunesToUTF8.__name__=["tardis","Go_haxegoruntime_RunesToUTF8"];b.Go_haxegoruntime_RunesToUTF8.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_RunesToUTF8.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_haxegoruntime_RunesToUTF8(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();
return a._res};b.Go_haxegoruntime_RunesToUTF8.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_RunesToUTF8(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_haxegoruntime_RunesToUTF8.call=function(a,c,d){return new b.Go_haxegoruntime_RunesToUTF8(a,c,d)};b.Go_haxegoruntime_RunesToUTF8.__super__=
b.StackFrameBasis;b.Go_haxegoruntime_RunesToUTF8.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();this._Phi=0;break;case 1:if(0==this._Phi)this._t2=this._t0;else if(2==this._Phi)this._t2=this._t13;else{var a=new b.Pointer([]);this._t2=new b.SliceNonAbs(a,0,0)}this._t3=0==this._Phi?-1:2==this._Phi?this._t4:0;this.SubFn1();this._Phi=1;break;case 2:return this.SubFn2(),this._SF1=new b.Go_utf8_RuneLen(this._goroutine,
[],this._t7),this._Next=-1,this;case -1:return this._t8=this._SF1.res(),this.SubFn3(),new b.Go_utf8_EncodeRune(this._goroutine,[],this._t9,this._t11),this._Next=-2,this;case -2:this.SubFn4();this._Phi=2;break;case 3:return this._res=this._t2,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){var a=new b.Pointer((new b.Make).array(0,0));this._t0=new b.SliceNonAbs(a,0,0);a=this.p_r;this._t1=null==a?0:a.length;this._Next=1},SubFn1:function(){this._t4=
b.Force.toInt32(this._t3+1);this._Next=this._t4<this._t1?2:3},SubFn2:function(){b.Scheduler.wraprangechk(this._t4,this.p_r.length);this._t7=this.p_r.addr(this._t4).load()|0},SubFn3:function(){var a=new b.Pointer((new b.Make).array(0,this._t8));this._t9=new b.SliceNonAbs(a,0,this._t8);b.Scheduler.wraprangechk(this._t4,this.p_r.length);this._t11=this.p_r.addr(this._t4).load()|0},SubFn4:function(){var a;if(null==this._t2)a=this._t9;else if(0==this._t2.length)a=this._t9;else if(null==this._t9)a=this._t2;
else if(0==this._t9.length)a=this._t2;else{var c=this._t2.length;a=new b.Pointer((new b.Make).array(0,this._t2.length+this._t9.length));a=new b.SliceNonAbs(a,0,this._t2.length+this._t9.length);for(var d=0;d<c;){var e=d++;a.setAt(e,b.Deep.copy(this._t2.getAt(e)))}d=0;for(e=this._t9.length;d<e;){var f=d++;a.setAt(f+c,b.Deep.copy(this._t9.getAt(f)))}}this._t13=a;this._Next=1},__class__:b.Go_haxegoruntime_RunesToUTF8});b.Go_haxegoruntime_Runes2Raw=r.Go_haxegoruntime_Runes2Raw=function(a,c,d){this._t25=
this._t26=this._Phi=this._Next=0;this._t23=this._t24=null;this._t22=!1;this._t20=this._t21=0;this._t18=this._t19=null;this._t16=this._t17=0;this._t14=this._t15=null;this._t13=!1;this._t11=this._t12=0;this._t10=!1;this._t9=0;this._t8=null;this._t7=0;this._t6=null;this._t5=0;this._t4=null;this._t3=0;this._t2=null;this._t1=!1;this._t0=0;b.StackFrameBasis.call(this,a,401,"Go_haxegoruntime_Runes2Raw");this._bds=c;this.p_r=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_Runes2Raw"]=b.Go_haxegoruntime_Runes2Raw;
b.Go_haxegoruntime_Runes2Raw.__name__=["tardis","Go_haxegoruntime_Runes2Raw"];b.Go_haxegoruntime_Runes2Raw.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_Runes2Raw.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_haxegoruntime_Runes2Raw(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_haxegoruntime_Runes2Raw.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_Runes2Raw(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_haxegoruntime_Runes2Raw.call=function(a,c,d){return new b.Go_haxegoruntime_Runes2Raw(a,c,d)};b.Go_haxegoruntime_Runes2Raw.__super__=b.StackFrameBasis;b.Go_haxegoruntime_Runes2Raw.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();
this._Phi=0;break;case 1:return this._SF1=new b.Go_haxegoruntime_RunesToUTF16(this._goroutine,[],this.p_r),this._Next=-1,this;case -1:this._t2=this._SF1.res();this.SubFn1();this._Phi=1;break;case 2:return this._SF2=new b.Go_haxegoruntime_RunesToUTF8(this._goroutine,[],this.p_r),this._Next=-2,this;case -2:this._t6=this._SF2.res();this.SubFn2();this._Phi=2;break;case 3:this.SubFn3();this._Phi=3;break;case 4:this._t11=1==this._Phi?-1:5==this._Phi?this._t12:0;this.SubFn4();this._Phi=4;break;case 5:this.SubFn5();
this._Phi=5;break;case 6:return this._res=this._t4,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 7:return this.SubFn6(),this._res=this._t19,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 8:this._t20=2==this._Phi?-1:9==this._Phi?this._t21:0;this.SubFn7();this._Phi=8;break;case 9:this.SubFn8();this._Phi=9;break;case 10:return this._res=this._t8,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._t0=b.Go.haxegoruntime_ZiLen.heapObj|
0;this._Next=0==b.Force.uintCompare(this._t0,1)?1:3},SubFn1:function(){var a;a=this._t2;a=null==a?0:a.length;var c=new b.Pointer((new b.Make).array(0,a));this._t4=new b.SliceNonAbs(c,0,a);a=this._t2;this._t5=null==a?0:a.length;this._Next=4},SubFn2:function(){var a;a=this._t6;a=null==a?0:a.length;var c=new b.Pointer((new b.Make).array(0,a));this._t8=new b.SliceNonAbs(c,0,a);a=this._t6;this._t9=null==a?0:a.length;this._Next=8},SubFn3:function(){this._Next=0==b.Force.uintCompare(this._t0,3)?2:7},SubFn4:function(){this._t12=
b.Force.toInt32(this._t11+1);this._Next=this._t12<this._t5?5:6},SubFn5:function(){var a,c;b.Scheduler.wraprangechk(this._t12,this._t4.length);a=this._t4.addr(this._t12);b.Scheduler.wraprangechk(this._t12,this._t2.length);c=this._t2.addr(this._t12).load()|0;a.store(c);this._Next=4},SubFn6:function(){var a;a=new b.Pointer((new b.Make).array(0,0));this._t19=new b.SliceNonAbs(a,0,-1)},SubFn7:function(){this._t21=b.Force.toInt32(this._t20+1);this._Next=this._t21<this._t9?9:10},SubFn8:function(){var a,
c;b.Scheduler.wraprangechk(this._t21,this._t8.length);a=this._t8.addr(this._t21);b.Scheduler.wraprangechk(this._t21,this._t6.length);c=this._t6.addr(this._t21).load()|0;a.store(c);this._Next=8},__class__:b.Go_haxegoruntime_Runes2Raw});b._Go.Go_main_startGophers=function(a,c){this._Next=0;this._t0=this._t1=this._t2=this._t3=this._t4=this._t5=this._t6=this._t7=this._t8=null;b.StackFrameBasis.call(this,a,28,"Go_main_startGophers");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_startGophers"]=
b._Go.Go_main_startGophers;b._Go.Go_main_startGophers.__name__=["tardis","_Go","Go_main_startGophers"];b._Go.Go_main_startGophers.__interfaces__=[b.StackFrame];b._Go.Go_main_startGophers.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_main_startGophers(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_startGophers.callFromRT=function(a){for(var c=(new b._Go.Go_main_startGophers(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_startGophers.call=function(a,c){return new b._Go.Go_main_startGophers(a,c)};b._Go.Go_main_startGophers.__super__=b.StackFrameBasis;b._Go.Go_main_startGophers.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this.SubFn0(),this._Next=-1,this;
case -1:if(!this._t1.hasSpace())return this;this._t1.send(1);this.SubFn1();this._Next=-2;return this;case -2:if(!this._t3.hasSpace())return this;this._t3.send(10);this.SubFn2();this._incomplete=!1;b.Scheduler.pop(this._goroutine);return this;default:b.Scheduler.bbi()}},SubFn0:function(){var a;a=new b.Channel(0);b.Go.main_bigpile.heapObj=a;this._t1=b.Go.main_bigpile.heapObj},SubFn1:function(){var a;b._Go.Go_main_fillbigpile.call(b.Scheduler.makeGoroutine(),[]);a=new b.Channel(0);b.Go.main_smallpile.heapObj=
a;this._t3=b.Go.main_smallpile.heapObj},SubFn2:function(){var a,c;a=new b.Channel(0);b.Go.main_oven.heapObj=a;b._Go.Go_main_fire.call(b.Scheduler.makeGoroutine(),[]);a=b.Go.main_bigpile.heapObj;c=b.Go.main_smallpile.heapObj;b._Go.Go_main_gopher.call(b.Scheduler.makeGoroutine(),[],b.Go.main_Sprite1X,b.Go.main_Sprite1Y,b.Go.main_Sprite1state,a,c);a=b.Go.main_smallpile.heapObj;c=b.Go.main_oven.heapObj;b._Go.Go_main_gopher.call(b.Scheduler.makeGoroutine(),[],b.Go.main_Sprite2X,b.Go.main_Sprite2Y,b.Go.main_Sprite2state,
a,c)},__class__:b._Go.Go_main_startGophers});b._Go.Go_main_monitor=function(a,c){this._Phi=this._Next=0;this._t68=this._t70=this._t72=!1;this._t62=this._t63=0;this._t61=null;this._t58=this._t59=0;this._t57=null;this._t56=0;this._t55=!1;this._t51=this._t52=this._t53=0;this._t50=null;this._t49=0;this._t41=this._t44=this._t46=this._t48=!1;this._t37=this._t38=this._t40=0;this._t36=null;this._t33=this._t34=0;this._t32=null;this._t31=0;this._t30=!1;this._t26=this._t27=this._t28=0;this._t25=null;this._t24=
0;this._t21=!1;this._t20=0;this._t18=this._t19=!1;this._t17=0;this._t16=null;this._t15="";this._t14=0;this._t9=this._t10=this._t11=this._t12="";this._t8=null;this._t7="";this._t6=!1;this._t5=0;this._t4="";this._t1=this._t2=this._t3=0;this._t0=!1;b.StackFrameBasis.call(this,a,236,"Go_main_monitor");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_monitor"]=b._Go.Go_main_monitor;b._Go.Go_main_monitor.__name__=["tardis","_Go","Go_main_monitor"];b._Go.Go_main_monitor.__interfaces__=[b.StackFrame];
b._Go.Go_main_monitor.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_main_monitor(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_monitor.callFromRT=function(a){for(var c=(new b._Go.Go_main_monitor(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};
b._Go.Go_main_monitor.call=function(a,c){return new b._Go.Go_main_monitor(a,c)};b._Go.Go_main_monitor.__super__=b.StackFrameBasis;b._Go.Go_main_monitor.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this._Next=1;this._Phi=0;break;case 1:this._t0=0==this._Phi?!1:19==this._Phi?this._t19:!1;this._t1=0==this._Phi?0:19==this._Phi?this._t31:0;this._t2=0==this._Phi?0:19==this._Phi?this._t56:0;this._t3=0==this._Phi?-1:19==this._Phi?this._t14:
0;this._t4=0==this._Phi?"":19==this._Phi?this._t15:"";this._t5=(new Date).getSeconds();this.SubFn1();this._Phi=1;break;case 2:this._t7=o.dateStr(new Date);this._t8=b.Go.main_headline.heapObj;this._t9=b.Go.Platform();this.SubFn3();n.setProperty(this._t8,"text",this._t12);this._Next=3;this._Phi=2;break;case 3:this._t14=1==this._Phi?this._t3:2==this._Phi?this._t5:0;this._t15=1==this._Phi?this._t4:2==this._Phi?this._t7:"";this.SubFn5();this._Phi=3;break;case 4:this._Next=this._t0?5:7;this._Phi=4;break;
case 5:this._t19=4==this._Phi?this._t0:6==this._Phi?this._t0:7==this._Phi?!0:!1;this.SubFn7();this._Phi=5;break;case 6:this._Next=this._t0?8:5;this._Phi=6;break;case 7:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Books,b.Go.main_smallPilePng),this._Next=-5,this;case -5:this._Next=5;this._Phi=7;break;case 8:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Books,b.Go.main_emptyPilePng),this._Next=-6,this;case -6:this._Next=5;this._Phi=8;break;case 9:this.SubFn11();
n.setProperty(this._t25,"y",this._t28);this.SubFn12();this._Phi=9;break;case 10:this._t31=5==this._Phi?this._t1:11==this._Phi?this._t24:12==this._Phi?this._t24:14==this._Phi?this._t24:16==this._Phi?this._t24:17==this._Phi?this._t24:0;this.SubFn13();n.setProperty(this._t32,"x",this._t34);this.SubFn14();n.setProperty(this._t36,"y",this._t38);this.SubFn15();this._Phi=10;break;case 11:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Sprite1,b.Go.main_pickPng1),this._Next=-10,this;case -10:this._Next=
10;this._Phi=11;break;case 12:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Sprite1,b.Go.main_fullPng1),this._Next=-11,this;case -11:this._Next=10;this._Phi=12;break;case 13:this.SubFn18();this._Phi=13;break;case 14:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Sprite1,b.Go.main_shovelPng1),this._Next=-12,this;case -12:this._Next=10;this._Phi=14;break;case 15:this.SubFn20();this._Phi=15;break;case 16:return new b._Go.Go_main_replaceBitmap(this._goroutine,
[],b.Go.main_Sprite1,b.Go.main_emptyPng1),this._Next=-13,this;case -13:this._Next=10;this._Phi=16;break;case 17:this.SubFn22();this._Phi=17;break;case 18:this.SubFn23();n.setProperty(this._t50,"y",this._t53);this.SubFn24();this._Phi=18;break;case 19:return this._t56=10==this._Phi?this._t2:20==this._Phi?this._t49:21==this._Phi?this._t49:23==this._Phi?this._t49:25==this._Phi?this._t49:26==this._Phi?this._t49:0,this.SubFn25(),n.setProperty(this._t57,"x",this._t59),this.SubFn26(),n.setProperty(this._t61,
"y",this._t63),new b.Go_tardisgolib_Gosched(this._goroutine,[]),this._Next=-17,this;case -17:this._Next=1;this._Phi=19;break;case 20:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Sprite2,b.Go.main_pickPng2),this._Next=-18,this;case -18:this._Next=19;this._Phi=20;break;case 21:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Sprite2,b.Go.main_fullPng2),this._Next=-19,this;case -19:this._Next=19;this._Phi=21;break;case 22:this.SubFn30();this._Phi=22;break;case 23:return new b._Go.Go_main_replaceBitmap(this._goroutine,
[],b.Go.main_Sprite2,b.Go.main_shovelPng2),this._Next=-20,this;case -20:this._Next=19;this._Phi=23;break;case 24:this.SubFn32();this._Phi=24;break;case 25:return new b._Go.Go_main_replaceBitmap(this._goroutine,[],b.Go.main_Sprite2,b.Go.main_emptyPng2),this._Next=-21,this;case -21:this._Next=19;this._Phi=25;break;case 26:this.SubFn34();this._Phi=26;break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=1},SubFn1:function(){this._Next=this._t3!=this._t5?2:3},SubFn2:function(){this._t8=b.Go.main_headline.heapObj},
SubFn3:function(){this._t12="This is written in Go, translated go->haxe->"+this._t9+", running live: "+this._t7},SubFn4:function(){this._Next=3},SubFn5:function(){var a=b.Go.main_smallpile.heapObj;this._Next=0<(null==a?0:a.num_entries)?4:6},SubFn6:function(){this._Next=this._t0?5:7},SubFn7:function(){this._Next=this._t1!=(b.Go.main_Sprite1state.heapObj|0)?9:10},SubFn8:function(){this._Next=this._t0?8:5},SubFn9:function(){this._Next=5},SubFn10:function(){this._Next=5},SubFn11:function(){var a;this._t24=
b.Go.main_Sprite1state.heapObj|0;this._t25=b.Go.main_Logo1.heapObj;a=b.Force.toInt32(15*(b.Go.main_Sprite1state.heapObj|0));this._t28=b.Force.toInt32(140+a)},SubFn12:function(){this._Next=0==this._t24?11:13},SubFn13:function(){this._t32=b.Go.main_Sprite1.heapObj;this._t34=90+b.Go.main_Sprite1X.heapObj},SubFn14:function(){this._t36=b.Go.main_Sprite1.heapObj;this._t38=45+b.Go.main_Sprite1Y.heapObj},SubFn15:function(){this._Next=this._t2!=(b.Go.main_Sprite2state.heapObj|0)?18:19},SubFn16:function(){this._Next=
10},SubFn17:function(){this._Next=10},SubFn18:function(){this._Next=1==this._t24?12:15},SubFn19:function(){this._Next=10},SubFn20:function(){this._Next=2==this._t24?14:17},SubFn21:function(){this._Next=10},SubFn22:function(){this._Next=3==this._t24?16:10},SubFn23:function(){var a;this._t49=b.Go.main_Sprite2state.heapObj|0;this._t50=b.Go.main_Logo2.heapObj;a=b.Force.toInt32(15*(b.Go.main_Sprite2state.heapObj|0));this._t53=b.Force.toInt32(140+a)},SubFn24:function(){this._Next=0==this._t49?20:22},SubFn25:function(){this._t57=
b.Go.main_Sprite2.heapObj;this._t59=420+b.Go.main_Sprite2X.heapObj},SubFn26:function(){this._t61=b.Go.main_Sprite2.heapObj;this._t63=45+b.Go.main_Sprite2Y.heapObj},SubFn27:function(){this._Next=1},SubFn28:function(){this._Next=19},SubFn29:function(){this._Next=19},SubFn30:function(){this._Next=1==this._t49?21:24},SubFn31:function(){this._Next=19},SubFn32:function(){this._Next=2==this._t49?23:26},SubFn33:function(){this._Next=19},SubFn34:function(){this._Next=3==this._t49?25:19},__class__:b._Go.Go_main_monitor});
b.Go_haxegoruntime_UTF16toRunes=r.Go_haxegoruntime_UTF16toRunes=function(a,c,d){this._Next=0;this._t0=null;b.StackFrameBasis.call(this,a,342,"Go_haxegoruntime_UTF16toRunes");this._bds=c;this.p_s=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_UTF16toRunes"]=b.Go_haxegoruntime_UTF16toRunes;b.Go_haxegoruntime_UTF16toRunes.__name__=["tardis","Go_haxegoruntime_UTF16toRunes"];b.Go_haxegoruntime_UTF16toRunes.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_UTF16toRunes.callFromHaxe=function(a){b.Go.doneInit||
b.Go.init();for(a=(new b.Go_haxegoruntime_UTF16toRunes(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_haxegoruntime_UTF16toRunes.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_UTF16toRunes(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};
b.Go_haxegoruntime_UTF16toRunes.call=function(a,c,d){return new b.Go_haxegoruntime_UTF16toRunes(a,c,d)};b.Go_haxegoruntime_UTF16toRunes.__super__=b.StackFrameBasis;b.Go_haxegoruntime_UTF16toRunes.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._SF1=new b.Go_utf16_Decode(this._goroutine,[],this.p_s),this._Next=-1,this;case -1:return this._res=this._t0=this._SF1.res(),this._incomplete=!1,b.Scheduler.pop(this._goroutine),
this;default:b.Scheduler.bbi()}},__class__:b.Go_haxegoruntime_UTF16toRunes});b.Go_utf8_EncodeRune=r.Go_utf8_EncodeRune=function(a,c,d,e){this._t50=this._t51=this._t52=this._Phi=this._Next=0;this._t49=null;this._t45=this._t46=this._t47=this._t48=0;this._t44=null;this._t40=this._t41=this._t42=this._t43=0;this._t39=null;this._t36=this._t37=this._t38=0;this._t35=null;this._t32=this._t33=this._t34=0;this._t31=null;this._t27=this._t28=this._t29=this._t30=0;this._t26=null;this._t23=this._t24=this._t25=0;
this._t22=null;this._t20=this._t21=!1;this._t18=this._t19=0;this._t17=!1;this._t16=0;this._t15=!1;this._t11=this._t12=this._t13=this._t14=0;this._t10=null;this._t7=this._t8=this._t9=0;this._t6=null;this._t5=!1;this._t3=this._t4=0;this._t2=null;this._t1=!1;this._t0=0;b.StackFrameBasis.call(this,a,890,"Go_utf8_EncodeRune");this._bds=c;this.p_p=d;this.p_r=e;b.Scheduler.push(a,this)};g["tardis.Go_utf8_EncodeRune"]=b.Go_utf8_EncodeRune;b.Go_utf8_EncodeRune.__name__=["tardis","Go_utf8_EncodeRune"];b.Go_utf8_EncodeRune.__interfaces__=
[b.StackFrame];b.Go_utf8_EncodeRune.callFromHaxe=function(a,c){b.Go.doneInit||b.Go.init();for(var d=(new b.Go_utf8_EncodeRune(0,null,a,c)).run();d._incomplete;)b.Scheduler.runAll();return d._res};b.Go_utf8_EncodeRune.callFromRT=function(a,c,d){for(c=(new b.Go_utf8_EncodeRune(a,null,c,d)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;
b.Scheduler.grStacks[a].first().run()}return c._res};b.Go_utf8_EncodeRune.call=function(a,c,d,e){return new b.Go_utf8_EncodeRune(a,c,d,e)};b.Go_utf8_EncodeRune.__super__=b.StackFrameBasis;b.Go_utf8_EncodeRune.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();this._Phi=0;break;case 1:return this.SubFn1(),this._res=1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 2:this.SubFn2();this._Phi=2;break;case 3:return this.SubFn3(),
this._res=2,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 4:this.SubFn4();this._Phi=4;break;case 5:this._Next=6;this._Phi=5;break;case 6:this._t16=4==this._Phi?this.p_r:5==this._Phi?65533:0;this.SubFn6();this._Phi=6;break;case 7:this._Next=8;this._Phi=7;break;case 8:this._t18=6==this._Phi?this._t16:9==this._Phi?this._t16:7==this._Phi?65533:0;this.SubFn8();this._Phi=8;break;case 9:this.SubFn9();this._Phi=9;break;case 10:return this.SubFn10(),this._res=3,this._incomplete=!1,b.Scheduler.pop(this._goroutine),
this;case 11:return this.SubFn11(),this._res=4,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=0>=b.Force.uintCompare(this.p_r,127)?1:2},SubFn1:function(){0>=this.p_p.length&&b.Scheduler.ioor();this.p_p.addr(0).store(this.p_r)},SubFn2:function(){this._Next=0>=b.Force.uintCompare(this.p_r,2047)?3:4},SubFn3:function(){var a;0>=this.p_p.length&&b.Scheduler.ioor();a=this.p_p.addr(0);var c=this.p_r,d;d=new b.Int64(0,6);d=b.Int64.getLow(d);
a.store((192|(0==d?c:c>>d))&255);1>=this.p_p.length&&b.Scheduler.ioor();this.p_p.addr(1).store((128|this.p_r&63)&255)},SubFn4:function(){this._Next=0<b.Force.uintCompare(this.p_r,1114111)?5:6},SubFn5:function(){this._Next=6},SubFn6:function(){this._Next=55296<=this._t16?9:8},SubFn7:function(){this._Next=8},SubFn8:function(){this._Next=0>=b.Force.uintCompare(this._t18,65535)?10:11},SubFn9:function(){this._Next=57343>=this._t16?7:8},SubFn10:function(){var a;0>=this.p_p.length&&b.Scheduler.ioor();a=
this.p_p.addr(0);var c=this._t18,d;d=new b.Int64(0,12);d=b.Int64.getLow(d);a.store((224|(0==d?c:c>>d))&255);1>=this.p_p.length&&b.Scheduler.ioor();a=this.p_p.addr(1);c=this._t18;d=new b.Int64(0,6);d=b.Int64.getLow(d);a.store((128|(0==d?c:c>>d)&63)&255);2>=this.p_p.length&&b.Scheduler.ioor();this.p_p.addr(2).store((128|this._t18&63)&255)},SubFn11:function(){var a;0>=this.p_p.length&&b.Scheduler.ioor();a=this.p_p.addr(0);var c=this._t18,d;d=new b.Int64(0,18);d=b.Int64.getLow(d);a.store((240|(0==d?c:
c>>d))&255);1>=this.p_p.length&&b.Scheduler.ioor();a=this.p_p.addr(1);c=this._t18;d=new b.Int64(0,12);d=b.Int64.getLow(d);a.store((128|(0==d?c:c>>d)&63)&255);2>=this.p_p.length&&b.Scheduler.ioor();a=this.p_p.addr(2);c=this._t18;d=new b.Int64(0,6);d=b.Int64.getLow(d);a.store((128|(0==d?c:c>>d)&63)&255);3>=this.p_p.length&&b.Scheduler.ioor();this.p_p.addr(3).store((128|this._t18&63)&255)},__class__:b.Go_utf8_EncodeRune});b.Go_hx_FsetString=r.Go_hx_FsetString=function(a,c,d,e,f){this._Next=0;b.StackFrameBasis.call(this,
a,1134,"Go_hx_FsetString");this._bds=c;this.p_object=d;this.p_name=e;this.p_val=f;b.Scheduler.push(a,this)};g["tardis.Go_hx_FsetString"]=b.Go_hx_FsetString;b.Go_hx_FsetString.__name__=["tardis","Go_hx_FsetString"];b.Go_hx_FsetString.__interfaces__=[b.StackFrame];b.Go_hx_FsetString.callFromHaxe=function(a,c,d){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_FsetString(0,null,a,c,d)).run();a._incomplete;)b.Scheduler.runAll()};b.Go_hx_FsetString.callFromRT=function(a,c,d,e){for(c=(new b.Go_hx_FsetString(a,
null,c,d,e)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_hx_FsetString.call=function(a,c,d,e,f){return new b.Go_hx_FsetString(a,c,d,e,f)};b.Go_hx_FsetString.__super__=b.StackFrameBasis;b.Go_hx_FsetString.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=
!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_FsetString});b._Go.Go_main_makeBitmap=function(a,c,d){this._Next=0;this._t0=this._t1=this._t2=this._t3=this._t4=null;b.StackFrameBasis.call(this,a,147,"Go_main_makeBitmap");this._bds=c;this.p_file=d;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_makeBitmap"]=b._Go.Go_main_makeBitmap;b._Go.Go_main_makeBitmap.__name__=["tardis","_Go","Go_main_makeBitmap"];b._Go.Go_main_makeBitmap.__interfaces__=[b.StackFrame];b._Go.Go_main_makeBitmap.callFromHaxe=
function(a){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_makeBitmap(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b._Go.Go_main_makeBitmap.callFromRT=function(a,c){for(var d=(new b._Go.Go_main_makeBitmap(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};
b._Go.Go_main_makeBitmap.call=function(a,c,d){return new b._Go.Go_main_makeBitmap(a,c,d)};b._Go.Go_main_makeBitmap.__super__=b.StackFrameBasis;b._Go.Go_main_makeBitmap.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this.SubFn0(),this._res=this._t4=new c.display.Bitmap(c.Assets.getBitmapData(this._t3.getAt(0).val)),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){var a,
c,d;a=new b.Pointer((new b.Make).array(null,1));c=a.addr(0);d=new b.Interface(1,this.p_file);c.store(d);this._t3=new b.SliceNonAbs(a,0,-1)},__class__:b._Go.Go_main_makeBitmap});b._Go.Go_main_fillbigpile=function(a,c){this._Next=0;this._t14=null;this._t8=this._t9=this._t10=this._t11=this._t12=this._t13=!1;this._t7=0;this._t0=this._t1=this._t2=this._t3=this._t4=this._t5=this._t6=null;b.StackFrameBasis.call(this,a,44,"Go_main_fillbigpile");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_fillbigpile"]=
b._Go.Go_main_fillbigpile;b._Go.Go_main_fillbigpile.__name__=["tardis","_Go","Go_main_fillbigpile"];b._Go.Go_main_fillbigpile.__interfaces__=[b.StackFrame];b._Go.Go_main_fillbigpile.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_main_fillbigpile(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_fillbigpile.callFromRT=function(a){for(var c=(new b._Go.Go_main_fillbigpile(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_fillbigpile.call=function(a,c){return new b._Go.Go_main_fillbigpile(a,c)};b._Go.Go_main_fillbigpile.__super__=b.StackFrameBasis;b._Go.Go_main_fillbigpile.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this._Next=1;break;case 1:return this._t5=
this._t4=this._t3=this._t2=this._t1=this._t0=b.Go.main_bigpile.heapObj,this._Next=-1,this;case -1:this._t6={r0:0,r1:!1};this._t6.r0=-1;var a=[],c=k.random(6);a[0]=this._t0.hasSpace();a[1]=this._t1.hasSpace();a[2]=this._t2.hasSpace();a[3]=this._t3.hasSpace();a[4]=this._t4.hasSpace();a[5]=this._t5.hasSpace();for(var d=0;6>d;){var e=(d++ +c)%6;if(a[e]){this._t6.r0=e;break}}switch(this._t6.r0){case 0:this._t0.send(1);break;case 1:this._t1.send(2);break;case 2:this._t2.send(3);break;case 3:this._t3.send(8);
break;case 4:this._t4.send(9);break;case 5:this._t5.send(10)}if(-1==this._t6.r0)return this;this.SubFn2();break;case 2:this.SubFn3();break;case 3:this.SubFn4();break;case 4:this.SubFn5();break;case 5:this.SubFn6();break;case 6:this.SubFn7();break;case 7:return this._t14=new b.Interface(1,"blocking select matched no case"),b.Scheduler.panic(this._goroutine,this._t14),this._Next=-2,this;case -2:break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=1},SubFn1:function(){this._t5=this._t4=this._t3=
this._t2=this._t1=this._t0=b.Go.main_bigpile.heapObj},SubFn2:function(){this._t7=this._t6.r0;this._Next=0==this._t7?1:2},SubFn3:function(){this._Next=1==this._t7?1:3},SubFn4:function(){this._Next=2==this._t7?1:4},SubFn5:function(){this._Next=3==this._t7?1:5},SubFn6:function(){this._Next=4==this._t7?1:6},SubFn7:function(){this._Next=5==this._t7?1:7},SubFn8:function(){this._t14=new b.Interface(1,"blocking select matched no case")},__class__:b._Go.Go_main_fillbigpile});b.Go_utf16_Decode=r.Go_utf16_Decode=
function(a,c,d){this._Phi=this._Next=0;this._t41=this._t42=!1;this._t39=this._t40=0;this._t38=null;this._t36=this._t37=!1;this._t34=this._t35=0;this._t33=!1;this._t32=0;this._t31=null;this._t30=0;this._t28=this._t29=!1;this._t27=0;this._t26=null;this._t25=0;this._t24=!1;this._t23=0;this._t22=null;this._t17=this._t18=this._t19=this._t20=this._t21=0;this._t16=null;this._t14=this._t15=0;this._t13=null;this._t10=this._t11=this._t12=0;this._t9=!1;this._t6=this._t7=this._t8=0;this._t5=null;this._t4=!1;
this._t3=0;this._t1=this._t2=null;this._t0=0;b.StackFrameBasis.call(this,a,538,"Go_utf16_Decode");this._bds=c;this.p_s=d;b.Scheduler.push(a,this)};g["tardis.Go_utf16_Decode"]=b.Go_utf16_Decode;b.Go_utf16_Decode.__name__=["tardis","Go_utf16_Decode"];b.Go_utf16_Decode.__interfaces__=[b.StackFrame];b.Go_utf16_Decode.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf16_Decode(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_utf16_Decode.callFromRT=function(a,
c){for(var d=(new b.Go_utf16_Decode(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_utf16_Decode.call=function(a,c,d){return new b.Go_utf16_Decode(a,c,d)};b.Go_utf16_Decode.__super__=b.StackFrameBasis;b.Go_utf16_Decode.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},
run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();this._Phi=0;break;case 1:this.SubFn1();this._Phi=1;break;case 2:return this._res=this._t5=this._t1.subSlice(0,this._t6),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this._t6=0==this._Phi?0:4==this._Phi?this._t10:0;this._t7=0==this._Phi?0:4==this._Phi?this._t12:0;this.SubFn3();this._Phi=3;break;case 4:this._t10=5==this._Phi?this._t21:6==this._Phi?this._t23:13==this._Phi?this._t40:0;this._t11=5==this._Phi?this._t20:6==
this._Phi?this._t7:13==this._Phi?this._t7:0;this._t12=b.Force.toInt32(this._t11+1);this._Next=3;this._Phi=4;break;case 5:return this.SubFn5(),this._SF1=new b.Go_utf16_DecodeRune(this._goroutine,[],this._t14,this._t18),this._Next=-1,this;case -1:this._t19=this._SF1.res();this._t13.store(this._t19);this._t20=b.Force.toInt32(this._t7+1);this._t21=b.Force.toInt32(this._t6+1);this._Next=4;this._Phi=5;break;case 6:this.SubFn7();this._Phi=6;break;case 7:this.SubFn8();this._Phi=7;break;case 8:this.SubFn9();
this._Phi=8;break;case 9:this._Next=(this._t29=1==this._Phi?!1:12==this._Phi?!1:11==this._Phi?!1:10==this._Phi?!1:8==this._Phi?this._t28:!1)?5:7;this._Phi=9;break;case 10:this.SubFn11();this._Phi=10;break;case 11:this.SubFn12();this._Phi=11;break;case 12:this.SubFn13();this._Phi=12;break;case 13:this.SubFn14();this._Phi=13;break;case 14:this._t41=0>b.Force.uintCompare(this._t3,57344);this._Next=15;this._Phi=14;break;case 15:this._Next=(this._t42=7==this._Phi?!1:14==this._Phi?this._t41:!1)?6:13;this._Phi=
15;break;default:b.Scheduler.bbi()}},SubFn0:function(){var a;a=this.p_s;a=null==a?0:a.length;var c=new b.Pointer((new b.Make).array(0,a));this._t1=new b.SliceNonAbs(c,0,a);this._Next=3},SubFn1:function(){b.Scheduler.wraprangechk(this._t7,this.p_s.length);this._t3=this.p_s.addr(this._t7).load()|0;this._Next=0>=b.Force.uintCompare(55296,this._t3)?12:9},SubFn2:function(){this._t5=this._t1.subSlice(0,this._t6)},SubFn3:function(){var a=this.p_s;this._Next=this._t7<(null==a?0:a.length)?1:2},SubFn4:function(){this._t12=
b.Force.toInt32(this._t11+1);this._Next=3},SubFn5:function(){var a;b.Scheduler.wraprangechk(this._t6,this._t1.length);this._t13=this._t1.addr(this._t6);this._t14=this._t3;a=b.Force.toInt32(this._t7+1);(0>a||a>=this.p_s.length)&&b.Scheduler.ioor();this._t18=this.p_s.addr(a).load()|0},SubFn6:function(){this._t13.store(this._t19);this._t20=b.Force.toInt32(this._t7+1);this._t21=b.Force.toInt32(this._t6+1);this._Next=4},SubFn7:function(){b.Scheduler.wraprangechk(this._t6,this._t1.length);this._t1.addr(this._t6).store(65533);
this._t23=b.Force.toInt32(this._t6+1);this._Next=4},SubFn8:function(){this._Next=0>=b.Force.uintCompare(55296,this._t3)?14:15},SubFn9:function(){var a;a=b.Force.toInt32(this._t7+1);(0>a||a>=this.p_s.length)&&b.Scheduler.ioor();a=this.p_s.addr(a).load()|0;this._t28=0>b.Force.uintCompare(a,57344);this._Next=9},SubFn10:function(){this._Next=this._t29?5:7},SubFn11:function(){var a;a=b.Force.toInt32(this._t7+1);(0>a||a>=this.p_s.length)&&b.Scheduler.ioor();a=this.p_s.addr(a).load()|0;this._Next=0>=b.Force.uintCompare(56320,
a)?8:9},SubFn12:function(){var a;a=b.Force.toInt32(this._t7+1);var c=this.p_s;this._Next=a<(null==c?0:c.length)?10:9},SubFn13:function(){this._Next=0>b.Force.uintCompare(this._t3,56320)?11:9},SubFn14:function(){b.Scheduler.wraprangechk(this._t6,this._t1.length);this._t1.addr(this._t6).store(this._t3);this._t40=b.Force.toInt32(this._t6+1);this._Next=4},SubFn15:function(){this._t41=0>b.Force.uintCompare(this._t3,57344);this._Next=15},SubFn16:function(){this._Next=this._t42?6:13},__class__:b.Go_utf16_Decode});
b.Go_utf8_DecodeRune=r.Go_utf8_DecodeRune=function(a,c,d){this._t1=this._t2=this._Next=0;this._t0=null;b.StackFrameBasis.call(this,a,779,"Go_utf8_DecodeRune");this._bds=c;this.p_p=d;b.Scheduler.push(a,this)};g["tardis.Go_utf8_DecodeRune"]=b.Go_utf8_DecodeRune;b.Go_utf8_DecodeRune.__name__=["tardis","Go_utf8_DecodeRune"];b.Go_utf8_DecodeRune.__interfaces__=[b.StackFrame];b.Go_utf8_DecodeRune.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf8_DecodeRune(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();
return a._res};b.Go_utf8_DecodeRune.callFromRT=function(a,c){for(var d=(new b.Go_utf8_DecodeRune(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_utf8_DecodeRune.call=function(a,c,d){return new b.Go_utf8_DecodeRune(a,c,d)};b.Go_utf8_DecodeRune.__super__=b.StackFrameBasis;
b.Go_utf8_DecodeRune.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._SF1=new b._Go.Go_utf8_decodeRuneInternal(this._goroutine,[],this.p_p),this._Next=-1,this;case -1:return this._t0=this._SF1.res(),this._t1=this._t0.r0,this._t2=this._t0.r1,this._res={r0:this._t1,r1:this._t2},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._t1=this._t0.r0;this._t2=this._t0.r1},
__class__:b.Go_utf8_DecodeRune});b.Go_hx_FsetBool=r.Go_hx_FsetBool=function(a,c,d,e,f){this._Next=0;b.StackFrameBasis.call(this,a,1131,"Go_hx_FsetBool");this._bds=c;this.p_object=d;this.p_name=e;this.p_val=f;b.Scheduler.push(a,this)};g["tardis.Go_hx_FsetBool"]=b.Go_hx_FsetBool;b.Go_hx_FsetBool.__name__=["tardis","Go_hx_FsetBool"];b.Go_hx_FsetBool.__interfaces__=[b.StackFrame];b.Go_hx_FsetBool.callFromHaxe=function(a,c,d){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_FsetBool(0,null,a,c,d)).run();a._incomplete;)b.Scheduler.runAll()};
b.Go_hx_FsetBool.callFromRT=function(a,c,d,e){for(c=(new b.Go_hx_FsetBool(a,null,c,d,e)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_hx_FsetBool.call=function(a,c,d,e,f){return new b.Go_hx_FsetBool(a,c,d,e,f)};b.Go_hx_FsetBool.__super__=b.StackFrameBasis;b.Go_hx_FsetBool.prototype=m(b.StackFrameBasis.prototype,
{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_FsetBool});b.Go_hx_GetDynamic=r.Go_hx_GetDynamic=function(a,c,d){this._Next=0;b.StackFrameBasis.call(this,a,1108,"Go_hx_GetDynamic");this._bds=c;this.p_name=d;b.Scheduler.push(a,this)};g["tardis.Go_hx_GetDynamic"]=b.Go_hx_GetDynamic;b.Go_hx_GetDynamic.__name__=["tardis","Go_hx_GetDynamic"];b.Go_hx_GetDynamic.__interfaces__=
[b.StackFrame];b.Go_hx_GetDynamic.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_GetDynamic(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_hx_GetDynamic.callFromRT=function(a,c){for(var d=(new b.Go_hx_GetDynamic(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};
b.Go_hx_GetDynamic.call=function(a,c,d){return new b.Go_hx_GetDynamic(a,c,d)};b.Go_hx_GetDynamic.__super__=b.StackFrameBasis;b.Go_hx_GetDynamic.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._res=0,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_GetDynamic});b.Go_haxegoruntime_Rune2Raw=r.Go_haxegoruntime_Rune2Raw=function(a,c,d){this._Next=0;this._t0=this._t1=
this._t2=null;b.StackFrameBasis.call(this,a,424,"Go_haxegoruntime_Rune2Raw");this._bds=c;this.p_oneRune=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_Rune2Raw"]=b.Go_haxegoruntime_Rune2Raw;b.Go_haxegoruntime_Rune2Raw.__name__=["tardis","Go_haxegoruntime_Rune2Raw"];b.Go_haxegoruntime_Rune2Raw.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_Rune2Raw.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_haxegoruntime_Rune2Raw(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();
return a._res};b.Go_haxegoruntime_Rune2Raw.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_Rune2Raw(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_haxegoruntime_Rune2Raw.call=function(a,c,d){return new b.Go_haxegoruntime_Rune2Raw(a,c,d)};b.Go_haxegoruntime_Rune2Raw.__super__=
b.StackFrameBasis;b.Go_haxegoruntime_Rune2Raw.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this.SubFn0(),this._SF1=new b.Go_haxegoruntime_Runes2Raw(this._goroutine,[],this._t0),this._Next=-1,this;case -1:return this._res=this._t2=this._SF1.res(),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){var a=new b.Pointer((new b.Make).array(0,1));this._t0=new b.SliceNonAbs(a,
0,1);0>=this._t0.length&&b.Scheduler.ioor();this._t0.addr(0).store(this.p_oneRune)},__class__:b.Go_haxegoruntime_Rune2Raw});b._Go.Go_main_fireBooks=function(a,c,d,e,f,g,h){this._Next=0;b.StackFrameBasis.call(this,a,95,"Go_main_fireBooks");this._bds=c;this.p_x=d;this.p_y=e;this.p_state=f;this.p_cartLoad=g;this.p_out=h;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_fireBooks"]=b._Go.Go_main_fireBooks;b._Go.Go_main_fireBooks.__name__=["tardis","_Go","Go_main_fireBooks"];b._Go.Go_main_fireBooks.__interfaces__=
[b.StackFrame];b._Go.Go_main_fireBooks.callFromHaxe=function(a,c,d,e,f){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_fireBooks(0,null,a,c,d,e,f)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_fireBooks.callFromRT=function(a,c,d,e,f,g){for(c=(new b._Go.Go_main_fireBooks(a,null,c,d,e,f,g)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=
a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_fireBooks.call=function(a,c,d,e,f,g,h){return new b._Go.Go_main_fireBooks(a,c,d,e,f,g,h)};b._Go.Go_main_fireBooks.__super__=b.StackFrameBasis;b._Go.Go_main_fireBooks.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this.p_state.store(2),new b._Go.Go_main_loop(this._goroutine,[],this.p_cartLoad),this._Next=-1,this;case -1:return this._Next=-2,this;case -2:if(!this.p_out.hasSpace())return this;
this.p_out.send(this.p_cartLoad);this._incomplete=!1;b.Scheduler.pop(this._goroutine);return this;default:b.Scheduler.bbi()}},SubFn0:function(){this.p_state.store(2)},__class__:b._Go.Go_main_fireBooks});b.Go_hx_CodeInt=r.Go_hx_CodeInt=function(a,c,d,e){this._Next=0;b.StackFrameBasis.call(this,a,1068,"Go_hx_CodeInt");this._bds=c;this.p_code=d;this.p_args=e;b.Scheduler.push(a,this)};g["tardis.Go_hx_CodeInt"]=b.Go_hx_CodeInt;b.Go_hx_CodeInt.__name__=["tardis","Go_hx_CodeInt"];b.Go_hx_CodeInt.__interfaces__=
[b.StackFrame];b.Go_hx_CodeInt.callFromHaxe=function(a,c){b.Go.doneInit||b.Go.init();for(var d=(new b.Go_hx_CodeInt(0,null,a,c)).run();d._incomplete;)b.Scheduler.runAll();return d._res};b.Go_hx_CodeInt.callFromRT=function(a,c,d){for(c=(new b.Go_hx_CodeInt(a,null,c,d)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};
b.Go_hx_CodeInt.call=function(a,c,d,e){return new b.Go_hx_CodeInt(a,c,d,e)};b.Go_hx_CodeInt.__super__=b.StackFrameBasis;b.Go_hx_CodeInt.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._res=0,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_CodeInt});b._Go.Go_main_replaceBitmap=function(a,c,d,e){this._Next=0;this._t0=this._t1=this._t2=this._t3=this._t4=this._t6=
this._t7=this._t8=this._t9=this._t10=this._t11=null;b.StackFrameBasis.call(this,a,231,"Go_main_replaceBitmap");this._bds=c;this.p_sprite=d;this.p_bitmap=e;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_replaceBitmap"]=b._Go.Go_main_replaceBitmap;b._Go.Go_main_replaceBitmap.__name__=["tardis","_Go","Go_main_replaceBitmap"];b._Go.Go_main_replaceBitmap.__interfaces__=[b.StackFrame];b._Go.Go_main_replaceBitmap.callFromHaxe=function(a,c){b.Go.doneInit||b.Go.init();for(var d=(new b._Go.Go_main_replaceBitmap(0,
null,a,c)).run();d._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_replaceBitmap.callFromRT=function(a,c,d){for(c=(new b._Go.Go_main_replaceBitmap(a,null,c,d)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_replaceBitmap.call=function(a,c,d,e){return new b._Go.Go_main_replaceBitmap(a,
c,d,e)};b._Go.Go_main_replaceBitmap.__super__=b.StackFrameBasis;b._Go.Go_main_replaceBitmap.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();var a=this._t4;n.callMethod(this._t0,n.field(this._t0,"removeChildAt"),[a.getAt(0).val]);this.SubFn1();a=this._t11;n.callMethod(this._t6,n.field(this._t6,"addChild"),[a.getAt(0).val]);this._incomplete=!1;b.Scheduler.pop(this._goroutine);return this;default:b.Scheduler.bbi()}},SubFn0:function(){var a,
c,d;this._t0=this.p_sprite.load();a=new b.Pointer((new b.Make).array(null,1));c=a.addr(0);d=new b.Interface(2,0);c.store(d);this._t4=new b.SliceNonAbs(a,0,-1)},SubFn1:function(){var a,c,d;this._t6=this.p_sprite.load();a=this.p_bitmap.load();c=new b.Pointer((new b.Make).array(null,1));d=c.addr(0);a=new b.Interface(0,a);d.store(a);this._t11=new b.SliceNonAbs(c,0,-1)},__class__:b._Go.Go_main_replaceBitmap});b.Go_haxegoruntime_Raw2Runes=r.Go_haxegoruntime_Raw2Runes=function(a,c,d){this._Phi=this._Next=
0;this._t26=null;this._t24=this._t25=0;this._t22=this._t23=null;this._t21=!1;this._t19=this._t20=0;this._t16=this._t17=this._t18=null;this._t14=this._t15=0;this._t12=this._t13=null;this._t11=!1;this._t9=this._t10=0;this._t8=!1;this._t7=0;this._t6=null;this._t4=this._t5=0;this._t3=null;this._t2=0;this._t1=!1;this._t0=0;b.StackFrameBasis.call(this,a,363,"Go_haxegoruntime_Raw2Runes");this._bds=c;this.p_s=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_Raw2Runes"]=b.Go_haxegoruntime_Raw2Runes;
b.Go_haxegoruntime_Raw2Runes.__name__=["tardis","Go_haxegoruntime_Raw2Runes"];b.Go_haxegoruntime_Raw2Runes.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_Raw2Runes.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_haxegoruntime_Raw2Runes(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_haxegoruntime_Raw2Runes.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_Raw2Runes(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_haxegoruntime_Raw2Runes.call=function(a,c,d){return new b.Go_haxegoruntime_Raw2Runes(a,c,d)};b.Go_haxegoruntime_Raw2Runes.__super__=b.StackFrameBasis;b.Go_haxegoruntime_Raw2Runes.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();
this._Phi=0;break;case 1:this.SubFn1();this._Phi=1;break;case 2:this.SubFn2();this._Phi=2;break;case 3:this.SubFn3();this._Phi=3;break;case 4:this._t9=1==this._Phi?-1:5==this._Phi?this._t10:0;this.SubFn4();this._Phi=4;break;case 5:this.SubFn5();this._Phi=5;break;case 6:return this._SF1=new b.Go_haxegoruntime_UTF16toRunes(this._goroutine,[],this._t3),this._Next=-1,this;case -1:return this._res=this._t16=this._SF1.res(),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 7:return this.SubFn6(),
this._res=this._t18,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 8:this._t19=2==this._Phi?-1:9==this._Phi?this._t20:0;this.SubFn7();this._Phi=8;break;case 9:this.SubFn8();this._Phi=9;break;case 10:return this._SF2=new b.Go_haxegoruntime_UTF8toRunes(this._goroutine,[],this._t6),this._Next=-2,this;case -2:return this._res=this._t26=this._SF2.res(),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._t0=b.Go.haxegoruntime_ZiLen.heapObj|
0;this._Next=0==b.Force.uintCompare(this._t0,1)?1:3},SubFn1:function(){var a;a=this.p_s;a=null==a?0:a.length;var c=new b.Pointer((new b.Make).array(0,a));this._t3=new b.SliceNonAbs(c,0,a);a=this.p_s;this._t4=null==a?0:a.length;this._Next=4},SubFn2:function(){var a;a=this.p_s;a=null==a?0:a.length;var c=new b.Pointer((new b.Make).array(0,a));this._t6=new b.SliceNonAbs(c,0,a);a=this.p_s;this._t7=null==a?0:a.length;this._Next=8},SubFn3:function(){this._Next=0==b.Force.uintCompare(this._t0,3)?2:7},SubFn4:function(){this._t10=
b.Force.toInt32(this._t9+1);this._Next=this._t10<this._t4?5:6},SubFn5:function(){var a,c;b.Scheduler.wraprangechk(this._t10,this._t3.length);a=this._t3.addr(this._t10);b.Scheduler.wraprangechk(this._t10,this.p_s.length);c=this.p_s.addr(this._t10).load()|0;a.store(c);this._Next=4},SubFn6:function(){var a;a=new b.Pointer((new b.Make).array(0,0));this._t18=new b.SliceNonAbs(a,0,-1)},SubFn7:function(){this._t20=b.Force.toInt32(this._t19+1);this._Next=this._t20<this._t7?9:10},SubFn8:function(){var a,c;
b.Scheduler.wraprangechk(this._t20,this._t6.length);a=this._t6.addr(this._t20);b.Scheduler.wraprangechk(this._t20,this.p_s.length);c=this.p_s.addr(this._t20).load()|0;a.store(c);this._Next=8},__class__:b.Go_haxegoruntime_Raw2Runes});b.Go_tardisgolib_Gosched=r.Go_tardisgolib_Gosched=function(a,c){this._Next=0;b.StackFrameBasis.call(this,a,1038,"Go_tardisgolib_Gosched");this._bds=c;b.Scheduler.push(a,this)};g["tardis.Go_tardisgolib_Gosched"]=b.Go_tardisgolib_Gosched;b.Go_tardisgolib_Gosched.__name__=
["tardis","Go_tardisgolib_Gosched"];b.Go_tardisgolib_Gosched.__interfaces__=[b.StackFrame];b.Go_tardisgolib_Gosched.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b.Go_tardisgolib_Gosched(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b.Go_tardisgolib_Gosched.callFromRT=function(a){for(var c=(new b.Go_tardisgolib_Gosched(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+
a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_tardisgolib_Gosched.call=function(a,c){return new b.Go_tardisgolib_Gosched(a,c)};b.Go_tardisgolib_Gosched.__super__=b.StackFrameBasis;b.Go_tardisgolib_Gosched.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_tardisgolib_Gosched});
b._Go.Go_main_pushBooks=function(a,c,d,e,f,g){this._t7=this._t8=this._t9=this._t10=this._t11=this._t12=this._Next=0;this._t5=!1;this._t4=0;this._t3=!1;this._t2=0;this._t1=!1;this._t0=0;b.StackFrameBasis.call(this,a,80,"Go_main_pushBooks");this._bds=c;this.p_x=d;this.p_y=e;this.p_state=f;this.p_cartLoad=g;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_pushBooks"]=b._Go.Go_main_pushBooks;b._Go.Go_main_pushBooks.__name__=["tardis","_Go","Go_main_pushBooks"];b._Go.Go_main_pushBooks.__interfaces__=[b.StackFrame];
b._Go.Go_main_pushBooks.callFromHaxe=function(a,c,d,e){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_pushBooks(0,null,a,c,d,e)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_pushBooks.callFromRT=function(a,c,d,e,f){for(c=(new b._Go.Go_main_pushBooks(a,null,c,d,e,f)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};
b._Go.Go_main_pushBooks.call=function(a,c,d,e,f,g){return new b._Go.Go_main_pushBooks(a,c,d,e,f,g)};b._Go.Go_main_pushBooks.__super__=b.StackFrameBasis;b._Go.Go_main_pushBooks.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.p_state.store(1);this.p_x.store(0);this._Next=3;break;case 1:this.SubFn1();break;case 2:this.SubFn2();break;case 3:this.SubFn3();break;case 4:this.p_y.store(0);this._Next=5;break;case 5:return new b.Go_tardisgolib_Gosched(this._goroutine,
[]),this._Next=-1,this;case -1:this.SubFn5();break;case 6:this._t11=k.random(3);this.SubFn6();break;case 7:this.p_x.store(150);this._Next=8;break;case 8:return this.p_y.store(0),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this.p_state.store(1);this.p_x.store(0);this._Next=3},SubFn1:function(){this._Next=0<this.p_y.load()?4:6},SubFn2:function(){this._Next=150<this.p_x.load()?7:8},SubFn3:function(){this._Next=150>this.p_x.load()?1:2},SubFn4:function(){this.p_y.store(0);
this._Next=5},SubFn5:function(){var a;a=b.Force.floatDiv(10,this.p_cartLoad);a=this.p_x.load()+a;this.p_x.store(a);this._Next=3},SubFn6:function(){this.p_y.store(this._t11);this._Next=5},SubFn7:function(){this.p_x.store(150);this._Next=8},SubFn8:function(){this.p_y.store(0)},__class__:b._Go.Go_main_pushBooks});b._Go.Go_utf8_decodeRuneInternal=function(a,c,d){this._Next=0;this._t59=this._t60=!1;this._t45=this._t46=this._t47=this._t48=this._t49=this._t50=this._t51=this._t52=this._t53=this._t54=this._t55=
this._t56=this._t57=this._t58=0;this._t42=this._t43=this._t44=!1;this._t41=0;this._t40=null;this._t36=this._t37=this._t38=this._t39=!1;this._t26=this._t27=this._t28=this._t29=this._t30=this._t31=this._t32=this._t33=this._t34=this._t35=0;this._t23=this._t24=this._t25=!1;this._t22=0;this._t21=null;this._t19=this._t20=!1;this._t13=this._t14=this._t15=this._t16=this._t17=this._t18=0;this._t10=this._t11=this._t12=!1;this._t9=0;this._t8=null;this._t6=this._t7=!1;this._t5=0;this._t4=!1;this._t3=0;this._t2=
null;this._t1=!1;this._t0=0;b.StackFrameBasis.call(this,a,605,"Go_utf8_decodeRuneInternal");this._bds=c;this.p_p=d;b.Scheduler.push(a,this)};g["tardis._Go.Go_utf8_decodeRuneInternal"]=b._Go.Go_utf8_decodeRuneInternal;b._Go.Go_utf8_decodeRuneInternal.__name__=["tardis","_Go","Go_utf8_decodeRuneInternal"];b._Go.Go_utf8_decodeRuneInternal.__interfaces__=[b.StackFrame];b._Go.Go_utf8_decodeRuneInternal.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_utf8_decodeRuneInternal(0,null,
a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b._Go.Go_utf8_decodeRuneInternal.callFromRT=function(a,c){for(var d=(new b._Go.Go_utf8_decodeRuneInternal(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b._Go.Go_utf8_decodeRuneInternal.call=function(a,c,d){return new b._Go.Go_utf8_decodeRuneInternal(a,
c,d)};b._Go.Go_utf8_decodeRuneInternal.__super__=b.StackFrameBasis;b._Go.Go_utf8_decodeRuneInternal.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:return this._res={r0:65533,r1:0,r2:!0},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 2:this.SubFn1();break;case 3:return this._t5=this._t3,this._res={r0:this._t5,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 4:this.SubFn3();
break;case 5:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 6:this.SubFn4();break;case 7:return this._res={r0:65533,r1:1,r2:!0},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 8:this.SubFn5();break;case 9:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 10:this.SubFn6();break;case 11:this.SubFn7();break;case 12:this.SubFn8();break;case 13:this.SubFn9();break;case 14:return this._res=
{r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 15:return this._res={r0:this._t18,r1:2,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 16:return this._res={r0:65533,r1:1,r2:!0},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 17:this.SubFn10();break;case 18:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 19:this.SubFn11();break;case 20:this.SubFn12();break;case 21:this.SubFn13();
break;case 22:this.SubFn14();break;case 23:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 24:this.SubFn15();break;case 25:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 26:return this._res={r0:this._t35,r1:3,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 27:this.SubFn16();break;case 28:return this._res={r0:65533,r1:1,r2:!0},this._incomplete=!1,b.Scheduler.pop(this._goroutine),
this;case 29:this.SubFn17();break;case 30:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 31:this.SubFn18();break;case 32:this.SubFn19();break;case 33:this.SubFn20();break;case 34:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 35:return this._res={r0:65533,r1:1,r2:!1},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 36:return this._res={r0:this._t58,r1:4,r2:!1},this._incomplete=
!1,b.Scheduler.pop(this._goroutine),this;case 37:this.SubFn21();break;default:b.Scheduler.bbi()}},SubFn0:function(){var a=this.p_p;this._t0=null==a?0:a.length;this._Next=1>this._t0?1:2},SubFn1:function(){0>=this.p_p.length&&b.Scheduler.ioor();this._t3=this.p_p.addr(0).load()|0;this._Next=0>b.Force.uintCompare(this._t3,128)?3:4},SubFn2:function(){this._t5=this._t3},SubFn3:function(){this._Next=0>b.Force.uintCompare(this._t3,192)?5:6},SubFn4:function(){this._Next=2>this._t0?7:8},SubFn5:function(){1>=
this.p_p.length&&b.Scheduler.ioor();this._t9=this.p_p.addr(1).load()|0;this._Next=0>b.Force.uintCompare(this._t9,128)?9:11},SubFn6:function(){this._Next=0>b.Force.uintCompare(this._t3,224)?12:13},SubFn7:function(){this._Next=0>=b.Force.uintCompare(192,this._t9)?9:10},SubFn8:function(){var a=this._t3&31,c;c=new b.Int64(0,6);c=b.Int64.getLow(c);this._t18=b.Force.toInt32((0==c?a:a<<c)|this._t9&63);this._Next=127>=this._t18?14:15},SubFn9:function(){this._Next=3>this._t0?16:17},SubFn10:function(){2>=this.p_p.length&&
b.Scheduler.ioor();this._t22=this.p_p.addr(2).load()|0;this._Next=0>b.Force.uintCompare(this._t22,128)?18:20},SubFn11:function(){this._Next=0>b.Force.uintCompare(this._t3,240)?21:22},SubFn12:function(){this._Next=0>=b.Force.uintCompare(192,this._t22)?18:19},SubFn13:function(){var a;a=this._t3&15;var c;c=new b.Int64(0,12);c=b.Int64.getLow(c);a=0==c?a:a<<c;c=this._t9&63;var d;d=new b.Int64(0,6);d=b.Int64.getLow(d);a=b.Force.toInt32(a|(0==d?c:c<<d));this._t35=b.Force.toInt32(a|this._t22&63);this._Next=
2047>=this._t35?23:24},SubFn14:function(){this._Next=4>this._t0?28:29},SubFn15:function(){this._Next=55296<=this._t35?27:26},SubFn16:function(){this._Next=57343>=this._t35?25:26},SubFn17:function(){3>=this.p_p.length&&b.Scheduler.ioor();this._t41=this.p_p.addr(3).load()|0;this._Next=0>b.Force.uintCompare(this._t41,128)?30:32},SubFn18:function(){this._Next=0>b.Force.uintCompare(this._t3,248)?33:34},SubFn19:function(){this._Next=0>=b.Force.uintCompare(192,this._t41)?30:31},SubFn20:function(){var a;
a=this._t3&7;var c;c=new b.Int64(0,18);c=b.Int64.getLow(c);a=0==c?a:a<<c;c=this._t9&63;var d;d=new b.Int64(0,12);d=b.Int64.getLow(d);a=b.Force.toInt32(a|(0==d?c:c<<d));c=this._t22&63;d=new b.Int64(0,6);d=b.Int64.getLow(d);a=b.Force.toInt32(a|(0==d?c:c<<d));this._t58=b.Force.toInt32(a|this._t41&63);this._Next=65535>=this._t58?35:37},SubFn21:function(){this._Next=1114111<this._t58?35:36},__class__:b._Go.Go_utf8_decodeRuneInternal});b.Go_haxegoruntime_StringCompare=r.Go_haxegoruntime_StringCompare=function(a,
c,d,e){this._Phi=this._Next=0;this._t23=!1;this._t20=this._t21=this._t22=0;this._t19=!1;this._t18=0;this._t17=null;this._t16=0;this._t15=null;this._t14=!1;this._t13=0;this._t12=!1;this._t10=this._t11=0;this._t9=!1;this._t7=this._t8=0;this._t6=!1;this._t5=0;this._t4=null;this._t3=0;this._t0=this._t1=this._t2=null;b.StackFrameBasis.call(this,a,431,"Go_haxegoruntime_StringCompare");this._bds=c;this.p_a=d;this.p_b=e;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_StringCompare"]=b.Go_haxegoruntime_StringCompare;
b.Go_haxegoruntime_StringCompare.__name__=["tardis","Go_haxegoruntime_StringCompare"];b.Go_haxegoruntime_StringCompare.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_StringCompare.callFromHaxe=function(a,c){b.Go.doneInit||b.Go.init();for(var d=(new b.Go_haxegoruntime_StringCompare(0,null,a,c)).run();d._incomplete;)b.Scheduler.runAll();return d._res};b.Go_haxegoruntime_StringCompare.callFromRT=function(a,c,d){for(c=(new b.Go_haxegoruntime_StringCompare(a,null,c,d)).run();c._incomplete;){if(null==
b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b.Go_haxegoruntime_StringCompare.call=function(a,c,d,e){return new b.Go_haxegoruntime_StringCompare(a,c,d,e)};b.Go_haxegoruntime_StringCompare.__super__=b.StackFrameBasis;b.Go_haxegoruntime_StringCompare.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},
run:function(){for(;;)switch(this._Next){case 0:this._t0=b.Force.toUTF8slice(this._goroutine,this.p_a);this._t1=b.Force.toUTF8slice(this._goroutine,this.p_b);this._Next=3;this._Phi=0;break;case 1:this.SubFn1();this._Phi=1;break;case 2:this.SubFn2();this._Phi=2;break;case 3:this._t10=0==this._Phi?0:8==this._Phi?this._t20:0;this.SubFn3();this._Phi=3;break;case 4:this.SubFn4();this._Phi=4;break;case 5:return this._res=-1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 6:this.SubFn5();
this._Phi=6;break;case 7:return this._res=1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 8:this._t20=b.Force.toInt32(this._t10+1);this._Next=3;this._Phi=8;break;case 9:return this._res=0,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 10:this.SubFn7();this._Phi=10;break;case 11:return this._res=-1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 12:return this._res=1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},
SubFn0:function(){this._t0=b.Force.toUTF8slice(this._goroutine,this.p_a);this._t1=b.Force.toUTF8slice(this._goroutine,this.p_b);this._Next=3},SubFn1:function(){var a,c;b.Scheduler.wraprangechk(this._t10,this._t0.length);a=this._t0.addr(this._t10).load()|0;b.Scheduler.wraprangechk(this._t10,this._t1.length);c=this._t1.addr(this._t10).load()|0;this._Next=0>b.Force.uintCompare(a,c)?5:6},SubFn2:function(){var a=this._t0,b=this._t1;this._Next=(null==a?0:a.length)==(null==b?0:b.length)?9:10},SubFn3:function(){var a=
this._t0;this._Next=this._t10<(null==a?0:a.length)?4:2},SubFn4:function(){var a=this._t1;this._Next=this._t10<(null==a?0:a.length)?1:2},SubFn5:function(){var a,c;b.Scheduler.wraprangechk(this._t10,this._t0.length);a=this._t0.addr(this._t10).load()|0;b.Scheduler.wraprangechk(this._t10,this._t1.length);c=this._t1.addr(this._t10).load()|0;this._Next=0<b.Force.uintCompare(a,c)?7:8},SubFn6:function(){this._t20=b.Force.toInt32(this._t10+1);this._Next=3},SubFn7:function(){var a=this._t0,b=this._t1;this._Next=
(null==a?0:a.length)<(null==b?0:b.length)?11:12},__class__:b.Go_haxegoruntime_StringCompare});b.Go_hx_FsetInt=r.Go_hx_FsetInt=function(a,c,d,e,f){this._Next=0;b.StackFrameBasis.call(this,a,1132,"Go_hx_FsetInt");this._bds=c;this.p_object=d;this.p_name=e;this.p_val=f;b.Scheduler.push(a,this)};g["tardis.Go_hx_FsetInt"]=b.Go_hx_FsetInt;b.Go_hx_FsetInt.__name__=["tardis","Go_hx_FsetInt"];b.Go_hx_FsetInt.__interfaces__=[b.StackFrame];b.Go_hx_FsetInt.callFromHaxe=function(a,c,d){b.Go.doneInit||b.Go.init();
for(a=(new b.Go_hx_FsetInt(0,null,a,c,d)).run();a._incomplete;)b.Scheduler.runAll()};b.Go_hx_FsetInt.callFromRT=function(a,c,d,e){for(c=(new b.Go_hx_FsetInt(a,null,c,d,e)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_hx_FsetInt.call=function(a,c,d,e,f){return new b.Go_hx_FsetInt(a,c,d,e,f)};
b.Go_hx_FsetInt.__super__=b.StackFrameBasis;b.Go_hx_FsetInt.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_FsetInt});b.Go_tardisgolib_Platform=r.Go_tardisgolib_Platform=function(a,c){this._Next=0;b.StackFrameBasis.call(this,a,1018,"Go_tardisgolib_Platform");this._bds=c;b.Scheduler.push(a,this)};g["tardis.Go_tardisgolib_Platform"]=
b.Go_tardisgolib_Platform;b.Go_tardisgolib_Platform.__name__=["tardis","Go_tardisgolib_Platform"];b.Go_tardisgolib_Platform.__interfaces__=[b.StackFrame];b.Go_tardisgolib_Platform.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b.Go_tardisgolib_Platform(0,null)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_tardisgolib_Platform.callFromRT=function(a){for(var c=(new b.Go_tardisgolib_Platform(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b.Go_tardisgolib_Platform.call=function(a,c){return new b.Go_tardisgolib_Platform(a,c)};b.Go_tardisgolib_Platform.__super__=b.StackFrameBasis;b.Go_tardisgolib_Platform.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._res="go",this._incomplete=
!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_tardisgolib_Platform});b.Go_haxegoruntime_UTF8toRunes=r.Go_haxegoruntime_UTF8toRunes=function(a,c,d){this._Phi=this._Next=0;this._t25=!1;this._t20=this._t21=this._t22=this._t23=this._t24=0;this._t19=null;this._t17=this._t18=0;this._t16=null;this._t14=this._t15=0;this._t13=null;this._t12=0;this._t11=null;this._t10=!1;this._t9=0;this._t8=!1;this._t5=this._t6=this._t7=0;this._t4=null;this._t2=this._t3=0;this._t1=null;
this._t0=0;b.StackFrameBasis.call(this,a,347,"Go_haxegoruntime_UTF8toRunes");this._bds=c;this.p_s=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_UTF8toRunes"]=b.Go_haxegoruntime_UTF8toRunes;b.Go_haxegoruntime_UTF8toRunes.__name__=["tardis","Go_haxegoruntime_UTF8toRunes"];b.Go_haxegoruntime_UTF8toRunes.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_UTF8toRunes.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_haxegoruntime_UTF8toRunes(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();
return a._res};b.Go_haxegoruntime_UTF8toRunes.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_UTF8toRunes(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_haxegoruntime_UTF8toRunes.call=function(a,c,d){return new b.Go_haxegoruntime_UTF8toRunes(a,c,d)};b.Go_haxegoruntime_UTF8toRunes.__super__=
b.StackFrameBasis;b.Go_haxegoruntime_UTF8toRunes.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._SF1=new b.Go_utf8_RuneCount(this._goroutine,[],this.p_s),this._Next=-1,this;case -1:this._t0=this._SF1.res();this.SubFn0();this._Phi=0;break;case 1:this.SubFn1();this._Phi=1;break;case 2:return this._res=this._t1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this._t5=0==this._Phi?0:6==this._Phi?this._t20:
0;this._t6=0==this._Phi?0:6==this._Phi?this._t21:0;this.SubFn2();this._Phi=3;break;case 4:this.SubFn3();this._Phi=4;break;case 5:this.SubFn4();this._Phi=5;break;case 6:return this._SF2=new b.Go_utf8_DecodeRune(this._goroutine,[],this._t4),this._Next=-2,this;case -2:this._t16=this._SF2.res();this.SubFn5();this._Phi=6;break;case 7:this._t22=1==this._Phi?0:5==this._Phi?this._t15:0;this.SubFn6();this._Phi=7;break;default:b.Scheduler.bbi()}},SubFn0:function(){var a=new b.Pointer((new b.Make).array(0,this._t0));
this._t1=new b.SliceNonAbs(a,0,this._t0);this._Next=3},SubFn1:function(){var a;a=this.p_s;a=b.Force.toInt32((null==a?0:a.length)-this._t5);var c=new b.Pointer((new b.Make).array(0,a));this._t4=new b.SliceNonAbs(c,0,a);this._Next=7},SubFn2:function(){var a=this.p_s;this._Next=this._t5<(null==a?0:a.length)?4:2},SubFn3:function(){var a=this._t1;this._Next=this._t6<(null==a?0:a.length)?1:2},SubFn4:function(){var a,c;b.Scheduler.wraprangechk(this._t22,this._t4.length);a=this._t4.addr(this._t22);c=b.Force.toInt32(this._t5+
this._t22);(0>c||c>=this.p_s.length)&&b.Scheduler.ioor();c=this.p_s.addr(c).load()|0;a.store(c);this._t15=b.Force.toInt32(this._t22+1);this._Next=7},SubFn5:function(){this._t17=this._t16.r0;this._t18=this._t16.r1;b.Scheduler.wraprangechk(this._t6,this._t1.length);this._t1.addr(this._t6).store(this._t17);this._t20=b.Force.toInt32(this._t5+this._t18);this._t21=b.Force.toInt32(this._t6+1);this._Next=3},SubFn6:function(){var a;a=this.p_s;a=b.Force.toInt32((null==a?0:a.length)-this._t5);this._Next=this._t22<
a?5:6},__class__:b.Go_haxegoruntime_UTF8toRunes});b.Go_utf16_EncodeRune=r.Go_utf16_EncodeRune=function(a,c,d){this._Next=0;this._t7=this._t8=!1;this._t1=this._t2=this._t3=this._t4=this._t5=this._t6=0;this._t0=!1;b.StackFrameBasis.call(this,a,499,"Go_utf16_EncodeRune");this._bds=c;this.p_r=d;b.Scheduler.push(a,this)};g["tardis.Go_utf16_EncodeRune"]=b.Go_utf16_EncodeRune;b.Go_utf16_EncodeRune.__name__=["tardis","Go_utf16_EncodeRune"];b.Go_utf16_EncodeRune.__interfaces__=[b.StackFrame];b.Go_utf16_EncodeRune.callFromHaxe=
function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf16_EncodeRune(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_utf16_EncodeRune.callFromRT=function(a,c){for(var d=(new b.Go_utf16_EncodeRune(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_utf16_EncodeRune.call=
function(a,c,d){return new b.Go_utf16_EncodeRune(a,c,d)};b.Go_utf16_EncodeRune.__super__=b.StackFrameBasis;b.Go_utf16_EncodeRune.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:return this._res={r0:65533,r1:65533},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 2:return this.SubFn1(),this._res={r0:this._t4,r1:this._t6},this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:return this._SF1=
new b.Go_utf16_IsSurrogate(this._goroutine,[],this.p_r),this._Next=-1,this;case -1:this._Next=(this._t7=this._SF1.res())?1:2;break;case 4:this.SubFn3();break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=65536>this.p_r?1:4},SubFn1:function(){var a;a=this._t1=b.Force.toInt32(this.p_r-65536);var c;c=new b.Int64(0,10);c=b.Int64.getLow(c);a=b.Force.toInt32((0==c?a:a>>c)&1023);this._t4=b.Force.toInt32(55296+a);a=b.Force.toInt32(this._t1&1023);this._t6=b.Force.toInt32(56320+a)},SubFn2:function(){this._Next=
this._t7?1:2},SubFn3:function(){this._Next=1114111<this.p_r?1:3},__class__:b.Go_utf16_EncodeRune});b._Go.Go_main_main=function(a,c){this._Next=0;b.StackFrameBasis.call(this,a,13,"Go_main_main");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_main"]=b._Go.Go_main_main;b._Go.Go_main_main.__name__=["tardis","_Go","Go_main_main"];b._Go.Go_main_main.__interfaces__=[b.StackFrame];b._Go.Go_main_main.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_main_main(0,null)).run();a._incomplete;)b.Scheduler.runAll()};
b._Go.Go_main_main.callFromRT=function(a){for(var c=(new b._Go.Go_main_main(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_main.call=function(a,c){return new b._Go.Go_main_main(a,c)};b._Go.Go_main_main.__super__=b.StackFrameBasis;b._Go.Go_main_main.prototype=m(b.StackFrameBasis.prototype,
{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b._Go.Go_main_main});b._Go.Go_main_makeText=function(a,c,d,e,f,g,h,i,j){this._Next=0;this._t0=this._t8=this._t9=this._t10=this._t11=this._t12=null;b.StackFrameBasis.call(this,a,134,"Go_main_makeText");this._bds=c;this.p_selectable=d;this.p_x=e;this.p_y=f;this.p_width=g;this.p_height=h;this.p_textColor=i;this.p_text=j;b.Scheduler.push(a,
this)};g["tardis._Go.Go_main_makeText"]=b._Go.Go_main_makeText;b._Go.Go_main_makeText.__name__=["tardis","_Go","Go_main_makeText"];b._Go.Go_main_makeText.__interfaces__=[b.StackFrame];b._Go.Go_main_makeText.callFromHaxe=function(a,c,d,e,f,g,h){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_makeText(0,null,a,c,d,e,f,g,h)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b._Go.Go_main_makeText.callFromRT=function(a,c,d,e,f,g,h,i){for(c=(new b._Go.Go_main_makeText(a,null,c,d,e,f,g,h,i)).run();c._incomplete;){if(null==
b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b._Go.Go_main_makeText.call=function(a,c,d,e,f,g,h,i,j){return new b._Go.Go_main_makeText(a,c,d,e,f,g,h,i,j)};b._Go.Go_main_makeText.__super__=b.StackFrameBasis;b._Go.Go_main_makeText.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this._t0=
new c.text.TextField;n.setProperty(this._t0,"selectable",this.p_selectable);n.setProperty(this._t0,"x",this.p_x);n.setProperty(this._t0,"y",this.p_y);n.setProperty(this._t0,"width",this.p_width);n.setProperty(this._t0,"height",this.p_height);n.setProperty(this._t0,"textColor",this.p_textColor);n.setProperty(this._t0,"text",this.p_text);this.SubFn0();var a=this._t12;n.callMethod(this._t8,n.field(this._t8,"addChild"),[a.getAt(0).val]);this._res=this._t0;this._incomplete=!1;b.Scheduler.pop(this._goroutine);
return this;default:b.Scheduler.bbi()}},SubFn0:function(){var a,c,d;this._t8=b.Go.main_mainThis.heapObj;a=new b.Pointer((new b.Make).array(null,1));c=a.addr(0);d=new b.Interface(0,this._t0);c.store(d);this._t12=new b.SliceNonAbs(a,0,-1)},__class__:b._Go.Go_main_makeText});b._Go.Go_main_makeSprite=function(a,c,d,e,f){this._Next=0;this._t0=this._t1=this._t2=this._t3=this._t4=this._t8=this._t9=this._t10=this._t11=this._t12=null;b.StackFrameBasis.call(this,a,151,"Go_main_makeSprite");this._bds=c;this.p_bitmap=
d;this.p_x=e;this.p_y=f;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_makeSprite"]=b._Go.Go_main_makeSprite;b._Go.Go_main_makeSprite.__name__=["tardis","_Go","Go_main_makeSprite"];b._Go.Go_main_makeSprite.__interfaces__=[b.StackFrame];b._Go.Go_main_makeSprite.callFromHaxe=function(a,c,d){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_makeSprite(0,null,a,c,d)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b._Go.Go_main_makeSprite.callFromRT=function(a,c,d,e){for(c=(new b._Go.Go_main_makeSprite(a,
null,c,d,e)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return c._res};b._Go.Go_main_makeSprite.call=function(a,c,d,e,f){return new b._Go.Go_main_makeSprite(a,c,d,e,f)};b._Go.Go_main_makeSprite.__super__=b.StackFrameBasis;b._Go.Go_main_makeSprite.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},
run:function(){for(;;)switch(this._Next){case 0:this._t0=new c.display.Sprite;this.SubFn0();var a=this._t4;n.callMethod(this._t0,n.field(this._t0,"addChild"),[a.getAt(0).val]);n.setProperty(this._t0,"x",this.p_x);n.setProperty(this._t0,"y",this.p_y);this.SubFn1();a=this._t12;n.callMethod(this._t8,n.field(this._t8,"addChild"),[a.getAt(0).val]);this._res=this._t0;this._incomplete=!1;b.Scheduler.pop(this._goroutine);return this;default:b.Scheduler.bbi()}},SubFn0:function(){var a,c,d;a=new b.Pointer((new b.Make).array(null,
1));c=a.addr(0);d=new b.Interface(0,this.p_bitmap);c.store(d);this._t4=new b.SliceNonAbs(a,0,-1)},SubFn1:function(){var a,c,d;this._t8=b.Go.main_mainThis.heapObj;a=new b.Pointer((new b.Make).array(null,1));c=a.addr(0);d=new b.Interface(0,this._t0);c.store(d);this._t12=new b.SliceNonAbs(a,0,-1)},__class__:b._Go.Go_main_makeSprite});b._Go.Go_haxegoruntime_init=function(a,c){this._Next=0;this._t0=!1;b.StackFrameBasis.call(this,a,156,"Go_haxegoruntime_init");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_haxegoruntime_init"]=
b._Go.Go_haxegoruntime_init;b._Go.Go_haxegoruntime_init.__name__=["tardis","_Go","Go_haxegoruntime_init"];b._Go.Go_haxegoruntime_init.__interfaces__=[b.StackFrame];b._Go.Go_haxegoruntime_init.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_haxegoruntime_init(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_haxegoruntime_init.callFromRT=function(a){for(var c=(new b._Go.Go_haxegoruntime_init(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_haxegoruntime_init.call=function(a,c){return new b._Go.Go_haxegoruntime_init(a,c)};b._Go.Go_haxegoruntime_init.__super__=b.StackFrameBasis;b._Go.Go_haxegoruntime_init.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:return b.Go.haxegoruntime_init_36_guard.heapObj=
!0,new b._Go.Go_utf16_init(this._goroutine,[]),this._Next=-1,this;case -1:return new b._Go.Go_utf8_init(this._goroutine,[]),this._Next=-2,this;case -2:return new b._Go.Go_haxegoruntime_init_36_1(this._goroutine,[]),this._Next=-3,this;case -3:this._Next=2;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=b.Go.haxegoruntime_init_36_guard.heapObj?2:1},SubFn1:function(){b.Go.haxegoruntime_init_36_guard.heapObj=!0},SubFn2:function(){this._Next=
2},__class__:b._Go.Go_haxegoruntime_init});b._Go.Go_utf16_init=function(a,c){this._Next=0;this._t0=!1;b.StackFrameBasis.call(this,a,156,"Go_utf16_init");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_utf16_init"]=b._Go.Go_utf16_init;b._Go.Go_utf16_init.__name__=["tardis","_Go","Go_utf16_init"];b._Go.Go_utf16_init.__interfaces__=[b.StackFrame];b._Go.Go_utf16_init.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_utf16_init(0,null)).run();a._incomplete;)b.Scheduler.runAll()};
b._Go.Go_utf16_init.callFromRT=function(a){for(var c=(new b._Go.Go_utf16_init(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_utf16_init.call=function(a,c){return new b._Go.Go_utf16_init(a,c)};b._Go.Go_utf16_init.__super__=b.StackFrameBasis;b._Go.Go_utf16_init.prototype=m(b.StackFrameBasis.prototype,
{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();break;case 1:b.Go.utf16_init_36_guard.heapObj=!0;this._Next=2;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=b.Go.utf16_init_36_guard.heapObj?2:1},SubFn1:function(){b.Go.utf16_init_36_guard.heapObj=!0;this._Next=2},__class__:b._Go.Go_utf16_init});b.Go_haxegoruntime_RunesToUTF16=r.Go_haxegoruntime_RunesToUTF16=function(a,
c,d){this._Next=0;this._t0=null;b.StackFrameBasis.call(this,a,384,"Go_haxegoruntime_RunesToUTF16");this._bds=c;this.p_r=d;b.Scheduler.push(a,this)};g["tardis.Go_haxegoruntime_RunesToUTF16"]=b.Go_haxegoruntime_RunesToUTF16;b.Go_haxegoruntime_RunesToUTF16.__name__=["tardis","Go_haxegoruntime_RunesToUTF16"];b.Go_haxegoruntime_RunesToUTF16.__interfaces__=[b.StackFrame];b.Go_haxegoruntime_RunesToUTF16.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_haxegoruntime_RunesToUTF16(0,null,
a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_haxegoruntime_RunesToUTF16.callFromRT=function(a,c){for(var d=(new b.Go_haxegoruntime_RunesToUTF16(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_haxegoruntime_RunesToUTF16.call=function(a,c,d){return new b.Go_haxegoruntime_RunesToUTF16(a,
c,d)};b.Go_haxegoruntime_RunesToUTF16.__super__=b.StackFrameBasis;b.Go_haxegoruntime_RunesToUTF16.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._SF1=new b.Go_utf16_Encode(this._goroutine,[],this.p_r),this._Next=-1,this;case -1:return this._res=this._t0=this._SF1.res(),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_haxegoruntime_RunesToUTF16});b._Go.Go_main_init=
function(a,c){this._Next=0;this._t0=!1;b.StackFrameBasis.call(this,a,385,"Go_main_init");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_init"]=b._Go.Go_main_init;b._Go.Go_main_init.__name__=["tardis","_Go","Go_main_init"];b._Go.Go_main_init.__interfaces__=[b.StackFrame];b._Go.Go_main_init.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_main_init(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_init.callFromRT=function(a){for(var c=(new b._Go.Go_main_init(a,
null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_init.call=function(a,c){return new b._Go.Go_main_init(a,c)};b._Go.Go_main_init.__super__=b.StackFrameBasis;b._Go.Go_main_init.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();
break;case 1:return b.Go.main_init_36_guard.heapObj=!0,new b._Go.Go_haxegoruntime_init(this._goroutine,[]),this._Next=-1,this;case -1:return new b._Go.Go_tardisgolib_init(this._goroutine,[]),this._Next=-2,this;case -2:this._Next=2;break;case 2:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=b.Go.main_init_36_guard.heapObj?2:1},SubFn1:function(){b.Go.main_init_36_guard.heapObj=!0},SubFn2:function(){this._Next=2},__class__:b._Go.Go_main_init});
b.Go_utf8_RuneCount=r.Go_utf8_RuneCount=function(a,c,d){this._t15=this._t16=this._Phi=this._Next=0;this._t12=this._t13=null;this._t8=this._t9=this._t10=this._t11=0;this._t7=!1;this._t3=this._t4=this._t5=this._t6=0;this._t2=!1;this._t1=0;this._t0=null;b.StackFrameBasis.call(this,a,927,"Go_utf8_RuneCount");this._bds=c;this.p_p=d;b.Scheduler.push(a,this)};g["tardis.Go_utf8_RuneCount"]=b.Go_utf8_RuneCount;b.Go_utf8_RuneCount.__name__=["tardis","Go_utf8_RuneCount"];b.Go_utf8_RuneCount.__interfaces__=[b.StackFrame];
b.Go_utf8_RuneCount.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf8_RuneCount(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_utf8_RuneCount.callFromRT=function(a,c){for(var d=(new b.Go_utf8_RuneCount(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};
b.Go_utf8_RuneCount.call=function(a,c,d){return new b.Go_utf8_RuneCount(a,c,d)};b.Go_utf8_RuneCount.__super__=b.StackFrameBasis;b.Go_utf8_RuneCount.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this._Next=3;this._Phi=0;break;case 1:this.SubFn1();this._Phi=1;break;case 2:return this._res=this._t4,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this._t3=0==this._Phi?0:5==this._Phi?this._t9:0;this._t4=0==this._Phi?
0:5==this._Phi?this._t11:0;this._t5=0==this._Phi?0:5==this._Phi?this._t10:0;this.SubFn2();this._Phi=3;break;case 4:this._t8=b.Force.toInt32(this._t3+1);this._Next=5;this._Phi=4;break;case 5:this._t9=4==this._Phi?this._t8:6==this._Phi?this._t16:0;this._t10=4==this._Phi?this._t5:6==this._Phi?this._t15:0;this._t11=b.Force.toInt32(this._t4+1);this._Next=3;this._Phi=5;break;case 6:return this._t12=this.p_p.subSlice(this._t3,-1),this._SF1=new b.Go_utf8_DecodeRune(this._goroutine,[],this._t12),this._Next=
-1,this;case -1:this._t13=this._SF1.res();this._t15=this._t13.r1;this._t16=b.Force.toInt32(this._t3+this._t15);this._Next=5;this._Phi=6;break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=3},SubFn1:function(){var a;b.Scheduler.wraprangechk(this._t3,this.p_p.length);a=this.p_p.addr(this._t3).load()|0;this._Next=0>b.Force.uintCompare(a,128)?4:6},SubFn2:function(){var a=this.p_p;this._Next=this._t3<(null==a?0:a.length)?1:2},SubFn3:function(){this._t8=b.Force.toInt32(this._t3+1);this._Next=
5},SubFn4:function(){this._t11=b.Force.toInt32(this._t4+1);this._Next=3},SubFn5:function(){this._t12=this.p_p.subSlice(this._t3,-1)},SubFn6:function(){this._t15=this._t13.r1;this._t16=b.Force.toInt32(this._t3+this._t15);this._Next=5},__class__:b.Go_utf8_RuneCount});b.Go_utf16_Encode=r.Go_utf16_Encode=function(a,c,d){this._t36=this._t37=this._Phi=this._Next=0;this._t35=null;this._t33=this._t34=0;this._t32=null;this._t30=this._t31=0;this._t29=null;this._t24=this._t25=this._t26=this._t27=this._t28=!1;
this._t22=this._t23=0;this._t21=null;this._t20=0;this._t19=null;this._t18=!1;this._t17=0;this._t16=null;this._t15=!1;this._t10=this._t11=this._t12=this._t13=this._t14=0;this._t9=null;this._t8=!1;this._t7=0;this._t6=null;this._t5=!1;this._t0=this._t1=this._t2=this._t3=this._t4=0;b.StackFrameBasis.call(this,a,508,"Go_utf16_Encode");this._bds=c;this.p_s=d;b.Scheduler.push(a,this)};g["tardis.Go_utf16_Encode"]=b.Go_utf16_Encode;b.Go_utf16_Encode.__name__=["tardis","Go_utf16_Encode"];b.Go_utf16_Encode.__interfaces__=
[b.StackFrame];b.Go_utf16_Encode.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf16_Encode(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_utf16_Encode.callFromRT=function(a,c){for(var d=(new b.Go_utf16_Encode(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};
b.Go_utf16_Encode.call=function(a,c,d){return new b.Go_utf16_Encode(a,c,d)};b.Go_utf16_Encode.__super__=b.StackFrameBasis;b.Go_utf16_Encode.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();this._Phi=0;break;case 1:this._t2=0==this._Phi?this._t0:2==this._Phi?this._t2:4==this._Phi?this._t11:0;this._t3=0==this._Phi?-1:2==this._Phi?this._t4:4==this._Phi?this._t4:0;this.SubFn1();this._Phi=1;break;case 2:this.SubFn2();
this._Phi=2;break;case 3:this.SubFn3();this._Phi=3;break;case 4:this._t11=b.Force.toInt32(this._t2+1);this._Next=1;this._Phi=4;break;case 5:this._t12=3==this._Phi?0:9==this._Phi?this._t23:15==this._Phi?this._t37:0;this._t13=3==this._Phi?-1:9==this._Phi?this._t14:15==this._Phi?this._t14:0;this.SubFn5();this._Phi=5;break;case 6:this.SubFn6();this._Phi=6;break;case 7:return this._res=this._t19=this._t9.subSlice(0,this._t12),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 8:this._Next=
9;this._Phi=8;break;case 9:this._t20=8==this._Phi?65533:14==this._Phi?this._t17:0;this.SubFn9();this._Phi=9;break;case 10:this.SubFn10();this._Phi=10;break;case 11:this.SubFn11();this._Phi=11;break;case 12:this._t26=57344>this._t17;this._Next=13;this._Phi=12;break;case 13:this._Next=(this._t27=10==this._Phi?!1:12==this._Phi?this._t26:!1)?8:11;this._Phi=13;break;case 14:this.SubFn14();this._Phi=14;break;case 15:return this._SF1=new b.Go_utf16_EncodeRune(this._goroutine,[],this._t17),this._Next=-1,
this;case -1:this._t29=this._SF1.res();this.SubFn15();this._Phi=15;break;default:b.Scheduler.bbi()}},SubFn0:function(){var a=this.p_s;this._t0=null==a?0:a.length;a=this.p_s;this._t1=null==a?0:a.length;this._Next=1},SubFn1:function(){this._t4=b.Force.toInt32(this._t3+1);this._Next=this._t4<this._t1?2:3},SubFn2:function(){b.Scheduler.wraprangechk(this._t4,this.p_s.length);this._t7=this.p_s.addr(this._t4).load()|0;this._Next=65536<=this._t7?4:1},SubFn3:function(){var a=new b.Pointer((new b.Make).array(0,
this._t2));this._t9=new b.SliceNonAbs(a,0,this._t2);a=this.p_s;this._t10=null==a?0:a.length;this._Next=5},SubFn4:function(){this._t11=b.Force.toInt32(this._t2+1);this._Next=1},SubFn5:function(){this._t14=b.Force.toInt32(this._t13+1);this._Next=this._t14<this._t10?6:7},SubFn6:function(){b.Scheduler.wraprangechk(this._t14,this.p_s.length);this._t17=this.p_s.addr(this._t14).load()|0;this._Next=0>this._t17?8:10},SubFn7:function(){this._t19=this._t9.subSlice(0,this._t12)},SubFn8:function(){this._Next=
9},SubFn9:function(){b.Scheduler.wraprangechk(this._t12,this._t9.length);this._t9.addr(this._t12).store(this._t20);this._t23=b.Force.toInt32(this._t12+1);this._Next=5},SubFn10:function(){this._Next=55296<=this._t17?12:13},SubFn11:function(){this._Next=1114111<this._t17?8:14},SubFn12:function(){this._t26=57344>this._t17;this._Next=13},SubFn13:function(){this._Next=this._t27?8:11},SubFn14:function(){this._Next=65536>this._t17?9:15},SubFn15:function(){var a;this._t30=this._t29.r0;this._t31=this._t29.r1;
b.Scheduler.wraprangechk(this._t12,this._t9.length);this._t9.addr(this._t12).store(this._t30);a=b.Force.toInt32(this._t12+1);(0>a||a>=this._t9.length)&&b.Scheduler.ioor();this._t9.addr(a).store(this._t31);this._t37=b.Force.toInt32(this._t12+2);this._Next=5},__class__:b.Go_utf16_Encode});b.Go_utf8_RuneLen=r.Go_utf8_RuneLen=function(a,c,d){this._Phi=this._Next=0;this._t0=this._t1=this._t2=this._t3=this._t4=this._t5=this._t6=this._t7=!1;b.StackFrameBasis.call(this,a,870,"Go_utf8_RuneLen");this._bds=
c;this.p_r=d;b.Scheduler.push(a,this)};g["tardis.Go_utf8_RuneLen"]=b.Go_utf8_RuneLen;b.Go_utf8_RuneLen.__name__=["tardis","Go_utf8_RuneLen"];b.Go_utf8_RuneLen.__interfaces__=[b.StackFrame];b.Go_utf8_RuneLen.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_utf8_RuneLen(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};b.Go_utf8_RuneLen.callFromRT=function(a,c){for(var d=(new b.Go_utf8_RuneLen(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+
k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_utf8_RuneLen.call=function(a,c,d){return new b.Go_utf8_RuneLen(a,c,d)};b.Go_utf8_RuneLen.__super__=b.StackFrameBasis;b.Go_utf8_RuneLen.prototype=m(b.StackFrameBasis.prototype,{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:this.SubFn0();this._Phi=0;break;case 1:return this._res=
-1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 2:return this._res=1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this.SubFn1();this._Phi=3;break;case 4:return this._res=2,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 5:this.SubFn2();this._Phi=5;break;case 6:return this._res=-1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 7:this.SubFn3();this._Phi=7;break;case 8:return this._res=3,this._incomplete=!1,b.Scheduler.pop(this._goroutine),
this;case 9:this.SubFn4();this._Phi=9;break;case 10:this._t5=57343>=this.p_r;this._Next=11;this._Phi=10;break;case 11:this._Next=(this._t6=7==this._Phi?!1:10==this._Phi?this._t5:!1)?6:9;this._Phi=11;break;case 12:return this._res=4,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 13:this.SubFn7();this._Phi=13;break;case 14:return this._res=-1,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=0>this.p_r?1:3},SubFn1:function(){this._Next=
127>=this.p_r?2:5},SubFn2:function(){this._Next=2047>=this.p_r?4:7},SubFn3:function(){this._Next=55296<=this.p_r?10:11},SubFn4:function(){this._Next=65535>=this.p_r?8:13},SubFn5:function(){this._t5=57343>=this.p_r;this._Next=11},SubFn6:function(){this._Next=this._t6?6:9},SubFn7:function(){this._Next=1114111>=this.p_r?12:14},__class__:b.Go_utf8_RuneLen});b.Go_hx_Meth=r.Go_hx_Meth=function(a,c,d,e,f,g){this._Next=0;b.StackFrameBasis.call(this,a,1091,"Go_hx_Meth");this._bds=c;this.p_object=d;this.p_method=
e;this.p_nargs=f;this.p_args=g;b.Scheduler.push(a,this)};g["tardis.Go_hx_Meth"]=b.Go_hx_Meth;b.Go_hx_Meth.__name__=["tardis","Go_hx_Meth"];b.Go_hx_Meth.__interfaces__=[b.StackFrame];b.Go_hx_Meth.callFromHaxe=function(a,c,d,e){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_Meth(0,null,a,c,d,e)).run();a._incomplete;)b.Scheduler.runAll()};b.Go_hx_Meth.callFromRT=function(a,c,d,e,f){for(c=(new b.Go_hx_Meth(a,null,c,d,e,f)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+
"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_hx_Meth.call=function(a,c,d,e,f,g){return new b.Go_hx_Meth(a,c,d,e,f,g)};b.Go_hx_Meth.__super__=b.StackFrameBasis;b.Go_hx_Meth.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_Meth});
b._Go.Go_main_fire=function(a,c){this._Next=0;this._t0=null;b.StackFrameBasis.call(this,a,57,"Go_main_fire");this._bds=c;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_fire"]=b._Go.Go_main_fire;b._Go.Go_main_fire.__name__=["tardis","_Go","Go_main_fire"];b._Go.Go_main_fire.__interfaces__=[b.StackFrame];b._Go.Go_main_fire.callFromHaxe=function(){b.Go.doneInit||b.Go.init();for(var a=(new b._Go.Go_main_fire(0,null)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_fire.callFromRT=function(a){for(var c=
(new b._Go.Go_main_fire(a,null)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_fire.call=function(a,c){return new b._Go.Go_main_fire(a,c)};b._Go.Go_main_fire.__super__=b.StackFrameBasis;b._Go.Go_main_fire.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this._Next=
1;break;case 1:return this._t0=b.Go.main_oven.heapObj,this._Next=-1,this;case -1:if(this._t0.hasNoContents())return this;this._t0.receive(0).r0;this._Next=1;break;default:b.Scheduler.bbi()}},SubFn0:function(){this._Next=1},SubFn1:function(){this._t0=b.Go.main_oven.heapObj},SubFn2:function(){this._Next=1},__class__:b._Go.Go_main_fire});b._Go.Go_main_moreBooks=function(a,c,d,e,f){this._t9=this._t10=this._Next=0;this._t7=!1;this._t6=0;this._t5=!1;this._t4=0;this._t3=!1;this._t0=this._t1=this._t2=0;b.StackFrameBasis.call(this,
a,100,"Go_main_moreBooks");this._bds=c;this.p_x=d;this.p_y=e;this.p_state=f;b.Scheduler.push(a,this)};g["tardis._Go.Go_main_moreBooks"]=b._Go.Go_main_moreBooks;b._Go.Go_main_moreBooks.__name__=["tardis","_Go","Go_main_moreBooks"];b._Go.Go_main_moreBooks.__interfaces__=[b.StackFrame];b._Go.Go_main_moreBooks.callFromHaxe=function(a,c,d){b.Go.doneInit||b.Go.init();for(a=(new b._Go.Go_main_moreBooks(0,null,a,c,d)).run();a._incomplete;)b.Scheduler.runAll()};b._Go.Go_main_moreBooks.callFromRT=function(a,
c,d,e){for(c=(new b._Go.Go_main_moreBooks(a,null,c,d,e)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b._Go.Go_main_moreBooks.call=function(a,c,d,e,f){return new b._Go.Go_main_moreBooks(a,c,d,e,f)};b._Go.Go_main_moreBooks.__super__=b.StackFrameBasis;b._Go.Go_main_moreBooks.prototype=m(b.StackFrameBasis.prototype,
{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:this.p_state.store(3);this._Next=3;break;case 1:this.SubFn1();break;case 2:return this.p_y.store(0),this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;case 3:this.SubFn3();break;case 4:this.p_x.store(0);this._Next=5;break;case 5:this.SubFn5();break;case 6:this.p_y.store(0);this._Next=7;break;case 7:return new b.Go_tardisgolib_Gosched(this._goroutine,[]),this._Next=-1,this;case -1:this._Next=3;break;case 8:this._t9=
k.random(5);this.SubFn8();break;default:b.Scheduler.bbi()}},SubFn0:function(){this.p_state.store(3);this._Next=3},SubFn1:function(){var a;a=this.p_x.load()-10;this.p_x.store(a);this._Next=0>this.p_x.load()?4:5},SubFn2:function(){this.p_y.store(0)},SubFn3:function(){this._Next=0<this.p_x.load()?1:2},SubFn4:function(){this.p_x.store(0);this._Next=5},SubFn5:function(){this._Next=0<this.p_y.load()?6:8},SubFn6:function(){this.p_y.store(0);this._Next=7},SubFn7:function(){this._Next=3},SubFn8:function(){this.p_y.store(this._t9);
this._Next=7},__class__:b._Go.Go_main_moreBooks});b.Go_hx_GetInt=r.Go_hx_GetInt=function(a,c,d){this._Next=0;b.StackFrameBasis.call(this,a,1105,"Go_hx_GetInt");this._bds=c;this.p_name=d;b.Scheduler.push(a,this)};g["tardis.Go_hx_GetInt"]=b.Go_hx_GetInt;b.Go_hx_GetInt.__name__=["tardis","Go_hx_GetInt"];b.Go_hx_GetInt.__interfaces__=[b.StackFrame];b.Go_hx_GetInt.callFromHaxe=function(a){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_GetInt(0,null,a)).run();a._incomplete;)b.Scheduler.runAll();return a._res};
b.Go_hx_GetInt.callFromRT=function(a,c){for(var d=(new b.Go_hx_GetInt(a,null,c)).run();d._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}return d._res};b.Go_hx_GetInt.call=function(a,c,d){return new b.Go_hx_GetInt(a,c,d)};b.Go_hx_GetInt.__super__=b.StackFrameBasis;b.Go_hx_GetInt.prototype=m(b.StackFrameBasis.prototype,
{res:function(){return this._res},run:function(){for(;;)switch(this._Next){case 0:return this._res=0,this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_GetInt});b.Go_hx_FsetFloat=r.Go_hx_FsetFloat=function(a,c,d,e,f){this._Next=0;b.StackFrameBasis.call(this,a,1133,"Go_hx_FsetFloat");this._bds=c;this.p_object=d;this.p_name=e;this.p_val=f;b.Scheduler.push(a,this)};g["tardis.Go_hx_FsetFloat"]=b.Go_hx_FsetFloat;b.Go_hx_FsetFloat.__name__=["tardis",
"Go_hx_FsetFloat"];b.Go_hx_FsetFloat.__interfaces__=[b.StackFrame];b.Go_hx_FsetFloat.callFromHaxe=function(a,c,d){b.Go.doneInit||b.Go.init();for(a=(new b.Go_hx_FsetFloat(0,null,a,c,d)).run();a._incomplete;)b.Scheduler.runAll()};b.Go_hx_FsetFloat.callFromRT=function(a,c,d,e){for(c=(new b.Go_hx_FsetFloat(a,null,c,d,e)).run();c._incomplete;){if(null==b.Scheduler.grStacks[a].first())throw"Panic:"+k.string(b.Scheduler.grPanicMsg)+"\nScheduler: null stack entry for goroutine "+a+"\n"+b.Scheduler.stackDump();
b.Scheduler.currentGR=a;b.Scheduler.grStacks[a].first().run()}};b.Go_hx_FsetFloat.call=function(a,c,d,e,f){return new b.Go_hx_FsetFloat(a,c,d,e,f)};b.Go_hx_FsetFloat.__super__=b.StackFrameBasis;b.Go_hx_FsetFloat.prototype=m(b.StackFrameBasis.prototype,{res:function(){return null},run:function(){for(;;)switch(this._Next){case 0:return this._incomplete=!1,b.Scheduler.pop(this._goroutine),this;default:b.Scheduler.bbi()}},__class__:b.Go_hx_FsetFloat});b.Go=r.Go=function(){};g["tardis.Go"]=b.Go;b.Go.__name__=
["tardis","Go"];b.Go.Platform=function(){return"js"};b.Go.init=function(){b.Go.doneInit=!0;var a=b.Scheduler.makeGoroutine();if(0!=a)throw"non-zero goroutine number in init";for(var c=(new b._Go.Go_haxegoruntime_init(a,[])).run();c._incomplete;)b.Scheduler.runAll();for(a=(new b._Go.Go_main_init(a,[])).run();a._incomplete;)b.Scheduler.runAll();b.Scheduler.doneInit=!0;b.Go.haxegoruntime_ZiLen.heapObj=1};b.Go.main=function(){b._Go.Go_main_main.callFromHaxe()};b.Go.CPos=function(a){var b="";if(0==a)return"(pogo.NoPosHash)";
0>a&&(a=-a,b="near ");return 1043<a?b+"/Users/elliott/go/src/github.com/tardisgo/tardisgo/tardisgolib/hx/hx.go:"+k.string(a-1043):1003<a?b+"/Users/elliott/go/src/github.com/tardisgo/tardisgo/tardisgolib/tardisgolib.go:"+k.string(a-1003):560<a?b+"/usr/local/go/src/pkg/unicode/utf8/utf8.go:"+k.string(a-560):452<a?b+"/usr/local/go/src/pkg/unicode/utf16/utf16.go:"+k.string(a-452):302<a?b+"/Users/elliott/go/src/github.com/tardisgo/tardisgo/haxe/haxegoruntime/haxegoruntime.go:"+k.string(a-302):0<a?b+"gophers.go:"+
(null==a?"null":""+a):"(invalid pogo.PosHash:"+(null==a?"null":""+a)+")"};b.TypeInfo=function(){};g["tardis.TypeInfo"]=b.TypeInfo;b.TypeInfo.__name__=["tardis","TypeInfo"];b.TypeInfo.getName=function(a){switch(a){case 0:return"uintptr";case 1:return"string";case 2:return"int";default:return"UNKNOWN"}};b.TypeInfo.typeString=function(a){return b.TypeInfo.getName(a.typ)};b.TypeInfo.getId=function(a){switch(a){case "uintptr":return 0;case "string":return 1;case "int":return 2;default:return-1}};b.TypeInfo.isAssignableTo=
function(a,b){if(a==b)return!0;switch(a){case 0:return!1;case 1:return!1;case 2:return!1;default:return!1}};b.TypeInfo.isIdentical=function(a,b){if(a==b)return!0;switch(a){case 0:return!1;case 1:return!1;case 2:return!1;default:return!1}};b.TypeInfo.isConcrete=function(a){switch(a){case 0:return!0;case 1:return!0;case 2:return!0;default:return!1}};b.TypeInfo.zeroValue=function(a){switch(a){case 0:return null;case 1:return"";case 2:return 0;default:return null}};b.TypeInfo.method=function(){b.Scheduler.panicFromHaxe("no method found!");
return null};var L=0;Array.prototype.indexOf&&(o.indexOf=function(a,b,c){return Array.prototype.indexOf.call(a,b,c)});Math.NaN=Number.NaN;Math.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY;Math.POSITIVE_INFINITY=Number.POSITIVE_INFINITY;g.Math=Math;Math.isFinite=function(a){return isFinite(a)};Math.isNaN=function(a){return isNaN(a)};String.prototype.__class__=g.String=String;String.__name__=["String"];g.Array=Array;Array.__name__=["Array"];Date.prototype.__class__=g.Date=Date;Date.__name__=["Date"];
var H=g.Int={__name__:["Int"]},M=g.Dynamic={__name__:["Dynamic"]},I=g.Float=Number;I.__name__=["Float"];var J=g.Bool=Boolean;J.__ename__=["Bool"];var N=g.Class={__name__:["Class"]},O={};null!=window.createjs&&(createjs.Sound.alternateExtensions=["ogg","mp3","wav"]);j.images=new h.ds.StringMap;j.urlLoaders=new h.ds.StringMap;j.assetsLoaded=0;j.total=0;c.display.DisplayObject.__instanceCount=0;c.display.DisplayObject.__worldRenderDirty=0;c.display.DisplayObject.__worldTransformDirty=0;h.Unserializer.DEFAULT_RESOLVER=
q;h.Unserializer.BASE64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:";h.Unserializer.CODES=null;h.ds.ObjectMap.count=0;c.Assets.cache=new c.AssetCache;c.Assets.libraries=new h.ds.StringMap;c.Assets.dispatcher=new c.events.EventDispatcher;c.Assets.initialized=!1;c.Lib.__sentWarnings=new h.ds.StringMap;c.Lib.__startTime=h.Timer.stamp();c.display.BitmapData.__base64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";c.display.BitmapDataChannel.ALPHA=8;c.display.BitmapDataChannel.BLUE=
4;c.display.BitmapDataChannel.GREEN=2;c.display.BitmapDataChannel.RED=1;c.display._CapsStyle.CapsStyle_Impl_.NONE="butt";c.display._CapsStyle.CapsStyle_Impl_.ROUND="round";c.display._CapsStyle.CapsStyle_Impl_.SQUARE="square";c.display.Graphics.TILE_SCALE=1;c.display.Graphics.TILE_ROTATION=2;c.display.Graphics.TILE_RGB=4;c.display.Graphics.TILE_ALPHA=8;c.display.Graphics.TILE_TRANS_2x2=16;c.display.Graphics.TILE_BLEND_NORMAL=0;c.display.Graphics.TILE_BLEND_ADD=65536;c.display._JointStyle.JointStyle_Impl_.MITER=
"miter";c.display._JointStyle.JointStyle_Impl_.ROUND="round";c.display._JointStyle.JointStyle_Impl_.BEVEL="bevel";c.display._StageQuality.StageQuality_Impl_.BEST="best";c.display._StageQuality.StageQuality_Impl_.HIGH="high";c.display._StageQuality.StageQuality_Impl_.MEDIUM="medium";c.display._StageQuality.StageQuality_Impl_.LOW="low";c.display.Tilesheet.TILE_SCALE=1;c.display.Tilesheet.TILE_ROTATION=2;c.display.Tilesheet.TILE_RGB=4;c.display.Tilesheet.TILE_ALPHA=8;c.display.Tilesheet.TILE_TRANS_2x2=
16;c.display.Tilesheet.TILE_BLEND_NORMAL=0;c.display.Tilesheet.TILE_BLEND_ADD=65536;c.display.Tilesheet.TILE_BLEND_MULTIPLY=131072;c.display.Tilesheet.TILE_BLEND_SCREEN=262144;c.errors.Error.DEFAULT_TO_STRING="Error";c.events.Event.ACTIVATE="activate";c.events.Event.ADDED="added";c.events.Event.ADDED_TO_STAGE="addedToStage";c.events.Event.CANCEL="cancel";c.events.Event.CHANGE="change";c.events.Event.CLOSE="close";c.events.Event.COMPLETE="complete";c.events.Event.CONNECT="connect";c.events.Event.CONTEXT3D_CREATE=
"context3DCreate";c.events.Event.DEACTIVATE="deactivate";c.events.Event.ENTER_FRAME="enterFrame";c.events.Event.ID3="id3";c.events.Event.INIT="init";c.events.Event.MOUSE_LEAVE="mouseLeave";c.events.Event.OPEN="open";c.events.Event.REMOVED="removed";c.events.Event.REMOVED_FROM_STAGE="removedFromStage";c.events.Event.RENDER="render";c.events.Event.RESIZE="resize";c.events.Event.SCROLL="scroll";c.events.Event.SELECT="select";c.events.Event.TAB_CHILDREN_CHANGE="tabChildrenChange";c.events.Event.TAB_ENABLED_CHANGE=
"tabEnabledChange";c.events.Event.TAB_INDEX_CHANGE="tabIndexChange";c.events.Event.UNLOAD="unload";c.events.Event.SOUND_COMPLETE="soundComplete";c.events.TextEvent.LINK="link";c.events.TextEvent.TEXT_INPUT="textInput";c.events.ErrorEvent.ERROR="error";c.events._EventPhase.EventPhase_Impl_.CAPTURING_PHASE=0;c.events._EventPhase.EventPhase_Impl_.AT_TARGET=1;c.events._EventPhase.EventPhase_Impl_.BUBBLING_PHASE=2;c.events.FocusEvent.FOCUS_IN="focusIn";c.events.FocusEvent.FOCUS_OUT="focusOut";c.events.FocusEvent.KEY_FOCUS_CHANGE=
"keyFocusChange";c.events.FocusEvent.MOUSE_FOCUS_CHANGE="mouseFocusChange";c.events.HTTPStatusEvent.HTTP_RESPONSE_STATUS="httpResponseStatus";c.events.HTTPStatusEvent.HTTP_STATUS="httpStatus";c.events.IOErrorEvent.IO_ERROR="ioError";c.events.KeyboardEvent.KEY_DOWN="keyDown";c.events.KeyboardEvent.KEY_UP="keyUp";c.events.MouseEvent.CLICK="click";c.events.MouseEvent.DOUBLE_CLICK="doubleClick";c.events.MouseEvent.MIDDLE_CLICK="middleClick";c.events.MouseEvent.MIDDLE_MOUSE_DOWN="middleMouseDown";c.events.MouseEvent.MIDDLE_MOUSE_UP=
"middleMouseUp";c.events.MouseEvent.MOUSE_DOWN="mouseDown";c.events.MouseEvent.MOUSE_MOVE="mouseMove";c.events.MouseEvent.MOUSE_OUT="mouseOut";c.events.MouseEvent.MOUSE_OVER="mouseOver";c.events.MouseEvent.MOUSE_UP="mouseUp";c.events.MouseEvent.MOUSE_WHEEL="mouseWheel";c.events.MouseEvent.RIGHT_CLICK="rightClick";c.events.MouseEvent.RIGHT_MOUSE_DOWN="rightMouseDown";c.events.MouseEvent.RIGHT_MOUSE_UP="rightMouseUp";c.events.MouseEvent.ROLL_OUT="rollOut";c.events.MouseEvent.ROLL_OVER="rollOver";c.events.ProgressEvent.PROGRESS=
"progress";c.events.ProgressEvent.SOCKET_DATA="socketData";c.events.SecurityErrorEvent.SECURITY_ERROR="securityError";c.events.TouchEvent.TOUCH_BEGIN="touchBegin";c.events.TouchEvent.TOUCH_END="touchEnd";c.events.TouchEvent.TOUCH_MOVE="touchMove";c.events.TouchEvent.TOUCH_OUT="touchOut";c.events.TouchEvent.TOUCH_OVER="touchOver";c.events.TouchEvent.TOUCH_ROLL_OUT="touchRollOut";c.events.TouchEvent.TOUCH_ROLL_OVER="touchRollOver";c.events.TouchEvent.TOUCH_TAP="touchTap";c.geom.Matrix.__identity=new c.geom.Matrix;
c.media.Sound.__registeredSounds=new h.ds.StringMap;c.net.URLRequestMethod.DELETE="DELETE";c.net.URLRequestMethod.GET="GET";c.net.URLRequestMethod.HEAD="HEAD";c.net.URLRequestMethod.OPTIONS="OPTIONS";c.net.URLRequestMethod.POST="POST";c.net.URLRequestMethod.PUT="PUT";c.system.ApplicationDomain.currentDomain=new c.system.ApplicationDomain(null);c.system.SecurityDomain.currentDomain=new c.system.SecurityDomain;c.text._AntiAliasType.AntiAliasType_Impl_.ADVANCED="advanced";c.text._AntiAliasType.AntiAliasType_Impl_.NORMAL=
"normal";c.ui._KeyLocation.KeyLocation_Impl_.STANDARD=0;c.ui._KeyLocation.KeyLocation_Impl_.LEFT=1;c.ui._KeyLocation.KeyLocation_Impl_.RIGHT=2;c.ui._KeyLocation.KeyLocation_Impl_.NUM_PAD=3;c.ui.Keyboard.NUMBER_0=48;c.ui.Keyboard.NUMBER_1=49;c.ui.Keyboard.NUMBER_2=50;c.ui.Keyboard.NUMBER_3=51;c.ui.Keyboard.NUMBER_4=52;c.ui.Keyboard.NUMBER_5=53;c.ui.Keyboard.NUMBER_6=54;c.ui.Keyboard.NUMBER_7=55;c.ui.Keyboard.NUMBER_8=56;c.ui.Keyboard.NUMBER_9=57;c.ui.Keyboard.A=65;c.ui.Keyboard.B=66;c.ui.Keyboard.C=
67;c.ui.Keyboard.D=68;c.ui.Keyboard.E=69;c.ui.Keyboard.F=70;c.ui.Keyboard.G=71;c.ui.Keyboard.H=72;c.ui.Keyboard.I=73;c.ui.Keyboard.J=74;c.ui.Keyboard.K=75;c.ui.Keyboard.L=76;c.ui.Keyboard.M=77;c.ui.Keyboard.N=78;c.ui.Keyboard.O=79;c.ui.Keyboard.P=80;c.ui.Keyboard.Q=81;c.ui.Keyboard.R=82;c.ui.Keyboard.S=83;c.ui.Keyboard.T=84;c.ui.Keyboard.U=85;c.ui.Keyboard.V=86;c.ui.Keyboard.W=87;c.ui.Keyboard.X=88;c.ui.Keyboard.Y=89;c.ui.Keyboard.Z=90;c.ui.Keyboard.NUMPAD_0=96;c.ui.Keyboard.NUMPAD_1=97;c.ui.Keyboard.NUMPAD_2=
98;c.ui.Keyboard.NUMPAD_3=99;c.ui.Keyboard.NUMPAD_4=100;c.ui.Keyboard.NUMPAD_5=101;c.ui.Keyboard.NUMPAD_6=102;c.ui.Keyboard.NUMPAD_7=103;c.ui.Keyboard.NUMPAD_8=104;c.ui.Keyboard.NUMPAD_9=105;c.ui.Keyboard.NUMPAD_MULTIPLY=106;c.ui.Keyboard.NUMPAD_ADD=107;c.ui.Keyboard.NUMPAD_ENTER=108;c.ui.Keyboard.NUMPAD_SUBTRACT=109;c.ui.Keyboard.NUMPAD_DECIMAL=110;c.ui.Keyboard.NUMPAD_DIVIDE=111;c.ui.Keyboard.F1=112;c.ui.Keyboard.F2=113;c.ui.Keyboard.F3=114;c.ui.Keyboard.F4=115;c.ui.Keyboard.F5=116;c.ui.Keyboard.F6=
117;c.ui.Keyboard.F7=118;c.ui.Keyboard.F8=119;c.ui.Keyboard.F9=120;c.ui.Keyboard.F10=121;c.ui.Keyboard.F11=122;c.ui.Keyboard.F12=123;c.ui.Keyboard.F13=124;c.ui.Keyboard.F14=125;c.ui.Keyboard.F15=126;c.ui.Keyboard.BACKSPACE=8;c.ui.Keyboard.TAB=9;c.ui.Keyboard.ALTERNATE=18;c.ui.Keyboard.ENTER=13;c.ui.Keyboard.COMMAND=15;c.ui.Keyboard.SHIFT=16;c.ui.Keyboard.CONTROL=17;c.ui.Keyboard.CAPS_LOCK=20;c.ui.Keyboard.NUMPAD=21;c.ui.Keyboard.ESCAPE=27;c.ui.Keyboard.SPACE=32;c.ui.Keyboard.PAGE_UP=33;c.ui.Keyboard.PAGE_DOWN=
34;c.ui.Keyboard.END=35;c.ui.Keyboard.HOME=36;c.ui.Keyboard.LEFT=37;c.ui.Keyboard.RIGHT=39;c.ui.Keyboard.UP=38;c.ui.Keyboard.DOWN=40;c.ui.Keyboard.INSERT=45;c.ui.Keyboard.DELETE=46;c.ui.Keyboard.NUMLOCK=144;c.ui.Keyboard.BREAK=19;c.ui.Keyboard.SEMICOLON=186;c.ui.Keyboard.EQUAL=187;c.ui.Keyboard.COMMA=188;c.ui.Keyboard.MINUS=189;c.ui.Keyboard.PERIOD=190;c.ui.Keyboard.SLASH=191;c.ui.Keyboard.BACKQUOTE=192;c.ui.Keyboard.LEFTBRACKET=219;c.ui.Keyboard.BACKSLASH=220;c.ui.Keyboard.RIGHTBRACKET=221;c.ui.Keyboard.QUOTE=
222;c.ui.Keyboard.DOM_VK_CANCEL=3;c.ui.Keyboard.DOM_VK_HELP=6;c.ui.Keyboard.DOM_VK_BACK_SPACE=8;c.ui.Keyboard.DOM_VK_TAB=9;c.ui.Keyboard.DOM_VK_CLEAR=12;c.ui.Keyboard.DOM_VK_RETURN=13;c.ui.Keyboard.DOM_VK_ENTER=14;c.ui.Keyboard.DOM_VK_SHIFT=16;c.ui.Keyboard.DOM_VK_CONTROL=17;c.ui.Keyboard.DOM_VK_ALT=18;c.ui.Keyboard.DOM_VK_PAUSE=19;c.ui.Keyboard.DOM_VK_CAPS_LOCK=20;c.ui.Keyboard.DOM_VK_ESCAPE=27;c.ui.Keyboard.DOM_VK_SPACE=32;c.ui.Keyboard.DOM_VK_PAGE_UP=33;c.ui.Keyboard.DOM_VK_PAGE_DOWN=34;c.ui.Keyboard.DOM_VK_END=
35;c.ui.Keyboard.DOM_VK_HOME=36;c.ui.Keyboard.DOM_VK_LEFT=37;c.ui.Keyboard.DOM_VK_UP=38;c.ui.Keyboard.DOM_VK_RIGHT=39;c.ui.Keyboard.DOM_VK_DOWN=40;c.ui.Keyboard.DOM_VK_PRINTSCREEN=44;c.ui.Keyboard.DOM_VK_INSERT=45;c.ui.Keyboard.DOM_VK_DELETE=46;c.ui.Keyboard.DOM_VK_0=48;c.ui.Keyboard.DOM_VK_1=49;c.ui.Keyboard.DOM_VK_2=50;c.ui.Keyboard.DOM_VK_3=51;c.ui.Keyboard.DOM_VK_4=52;c.ui.Keyboard.DOM_VK_5=53;c.ui.Keyboard.DOM_VK_6=54;c.ui.Keyboard.DOM_VK_7=55;c.ui.Keyboard.DOM_VK_8=56;c.ui.Keyboard.DOM_VK_9=
57;c.ui.Keyboard.DOM_VK_SEMICOLON=59;c.ui.Keyboard.DOM_VK_EQUALS=61;c.ui.Keyboard.DOM_VK_A=65;c.ui.Keyboard.DOM_VK_B=66;c.ui.Keyboard.DOM_VK_C=67;c.ui.Keyboard.DOM_VK_D=68;c.ui.Keyboard.DOM_VK_E=69;c.ui.Keyboard.DOM_VK_F=70;c.ui.Keyboard.DOM_VK_G=71;c.ui.Keyboard.DOM_VK_H=72;c.ui.Keyboard.DOM_VK_I=73;c.ui.Keyboard.DOM_VK_J=74;c.ui.Keyboard.DOM_VK_K=75;c.ui.Keyboard.DOM_VK_L=76;c.ui.Keyboard.DOM_VK_M=77;c.ui.Keyboard.DOM_VK_N=78;c.ui.Keyboard.DOM_VK_O=79;c.ui.Keyboard.DOM_VK_P=80;c.ui.Keyboard.DOM_VK_Q=
81;c.ui.Keyboard.DOM_VK_R=82;c.ui.Keyboard.DOM_VK_S=83;c.ui.Keyboard.DOM_VK_T=84;c.ui.Keyboard.DOM_VK_U=85;c.ui.Keyboard.DOM_VK_V=86;c.ui.Keyboard.DOM_VK_W=87;c.ui.Keyboard.DOM_VK_X=88;c.ui.Keyboard.DOM_VK_Y=89;c.ui.Keyboard.DOM_VK_Z=90;c.ui.Keyboard.DOM_VK_CONTEXT_MENU=93;c.ui.Keyboard.DOM_VK_NUMPAD0=96;c.ui.Keyboard.DOM_VK_NUMPAD1=97;c.ui.Keyboard.DOM_VK_NUMPAD2=98;c.ui.Keyboard.DOM_VK_NUMPAD3=99;c.ui.Keyboard.DOM_VK_NUMPAD4=100;c.ui.Keyboard.DOM_VK_NUMPAD5=101;c.ui.Keyboard.DOM_VK_NUMPAD6=102;
c.ui.Keyboard.DOM_VK_NUMPAD7=103;c.ui.Keyboard.DOM_VK_NUMPAD8=104;c.ui.Keyboard.DOM_VK_NUMPAD9=105;c.ui.Keyboard.DOM_VK_MULTIPLY=106;c.ui.Keyboard.DOM_VK_ADD=107;c.ui.Keyboard.DOM_VK_SEPARATOR=108;c.ui.Keyboard.DOM_VK_SUBTRACT=109;c.ui.Keyboard.DOM_VK_DECIMAL=110;c.ui.Keyboard.DOM_VK_DIVIDE=111;c.ui.Keyboard.DOM_VK_F1=112;c.ui.Keyboard.DOM_VK_F2=113;c.ui.Keyboard.DOM_VK_F3=114;c.ui.Keyboard.DOM_VK_F4=115;c.ui.Keyboard.DOM_VK_F5=116;c.ui.Keyboard.DOM_VK_F6=117;c.ui.Keyboard.DOM_VK_F7=118;c.ui.Keyboard.DOM_VK_F8=
119;c.ui.Keyboard.DOM_VK_F9=120;c.ui.Keyboard.DOM_VK_F10=121;c.ui.Keyboard.DOM_VK_F11=122;c.ui.Keyboard.DOM_VK_F12=123;c.ui.Keyboard.DOM_VK_F13=124;c.ui.Keyboard.DOM_VK_F14=125;c.ui.Keyboard.DOM_VK_F15=126;c.ui.Keyboard.DOM_VK_F16=127;c.ui.Keyboard.DOM_VK_F17=128;c.ui.Keyboard.DOM_VK_F18=129;c.ui.Keyboard.DOM_VK_F19=130;c.ui.Keyboard.DOM_VK_F20=131;c.ui.Keyboard.DOM_VK_F21=132;c.ui.Keyboard.DOM_VK_F22=133;c.ui.Keyboard.DOM_VK_F23=134;c.ui.Keyboard.DOM_VK_F24=135;c.ui.Keyboard.DOM_VK_NUM_LOCK=144;
c.ui.Keyboard.DOM_VK_SCROLL_LOCK=145;c.ui.Keyboard.DOM_VK_COMMA=188;c.ui.Keyboard.DOM_VK_PERIOD=190;c.ui.Keyboard.DOM_VK_SLASH=191;c.ui.Keyboard.DOM_VK_BACK_QUOTE=192;c.ui.Keyboard.DOM_VK_OPEN_BRACKET=219;c.ui.Keyboard.DOM_VK_BACK_SLASH=220;c.ui.Keyboard.DOM_VK_CLOSE_BRACKET=221;c.ui.Keyboard.DOM_VK_QUOTE=222;c.ui.Keyboard.DOM_VK_META=224;c.ui.Keyboard.DOM_VK_KANA=21;c.ui.Keyboard.DOM_VK_HANGUL=21;c.ui.Keyboard.DOM_VK_JUNJA=23;c.ui.Keyboard.DOM_VK_FINAL=24;c.ui.Keyboard.DOM_VK_HANJA=25;c.ui.Keyboard.DOM_VK_KANJI=
25;c.ui.Keyboard.DOM_VK_CONVERT=28;c.ui.Keyboard.DOM_VK_NONCONVERT=29;c.ui.Keyboard.DOM_VK_ACEPT=30;c.ui.Keyboard.DOM_VK_MODECHANGE=31;c.ui.Keyboard.DOM_VK_SELECT=41;c.ui.Keyboard.DOM_VK_PRINT=42;c.ui.Keyboard.DOM_VK_EXECUTE=43;c.ui.Keyboard.DOM_VK_SLEEP=95;c.utils.Endian.BIG_ENDIAN="bigEndian";c.utils.Endian.LITTLE_ENDIAN="littleEndian";b.Scheduler.doneInit=!1;b.Scheduler.grStacks=[];b.Scheduler.grInPanic=[];b.Scheduler.grPanicMsg=[];b.Scheduler.panicStackDump="";b.Scheduler.entryCount=0;b.Scheduler.currentGR=
0;b.Go.utf8_RuneError=65533;b.Go.utf8_RuneSelf=128;b.Go.utf8_MaxRune=1114111;b.Go.utf8_UTFMax=4;b.Go.main_Pick=0;b.Go.main_Full=1;b.Go.main_Shovel=2;b.Go.main_Empty=3;b.Go.haxegoruntime_ZiLen=new b.PointerBasic(0);b.Go.haxegoruntime_init_36_guard=new b.PointerBasic(!1);b.Go.utf16_init_36_guard=new b.PointerBasic(!1);b.Go.utf8_init_36_guard=new b.PointerBasic(!1);b.Go.main_goTimer=new b.PointerBasic(null);b.Go.main_Sprite2state=new b.PointerBasic(0);b.Go.main_Sprite2=new b.PointerBasic(null);b.Go.main_fullPng1=
new b.PointerBasic(null);b.Go.main_emptyPilePng=new b.PointerBasic(null);b.Go.main_Sprite1X=new b.PointerBasic(0);b.Go.main_Sprite2X=new b.PointerBasic(0);b.Go.main_oven=new b.PointerBasic(new b.Channel(1));b.Go.main_Sprite2Y=new b.PointerBasic(0);b.Go.main_Sprite1=new b.PointerBasic(null);b.Go.main_pickPng1=new b.PointerBasic(null);b.Go.main_emptyPng2=new b.PointerBasic(null);b.Go.main_init_36_guard=new b.PointerBasic(!1);b.Go.main_bigpile=new b.PointerBasic(new b.Channel(1));b.Go.main_Sprite1state=
new b.PointerBasic(0);b.Go.main_mainThis=new b.PointerBasic(null);b.Go.main_Books=new b.PointerBasic(null);b.Go.main_Logo1=new b.PointerBasic(null);b.Go.main_smallPilePng=new b.PointerBasic(null);b.Go.main_Logo2=new b.PointerBasic(null);b.Go.main_Sprite1Y=new b.PointerBasic(0);b.Go.main_fullPng2=new b.PointerBasic(null);b.Go.main_shovelPng1=new b.PointerBasic(null);b.Go.main_smallpile=new b.PointerBasic(new b.Channel(1));b.Go.main_headline=new b.PointerBasic(null);b.Go.main_pickPng2=new b.PointerBasic(null);
b.Go.main_emptyPng1=new b.PointerBasic(null);b.Go.main_shovelPng2=new b.PointerBasic(null);b.Go.tardisgolib_init_36_guard=new b.PointerBasic(!1);b.Go.hx_init_36_guard=new b.PointerBasic(!1);b.Go.doneInit=!1;j.main()})("undefined"!=typeof window?window:exports);